@milaboratories/uikit 2.2.30 → 2.2.31
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 +158 -160
- package/dist/pl-uikit.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/PlDropdownLine/PlDropdownLine.vue +2 -6
- package/src/components/PlDropdownLine/resizable-input.scss +2 -2
package/dist/pl-uikit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ro = Object.defineProperty;
|
|
2
2
|
var Po = (n, e, t) => e in n ? Ro(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var Rn = (n, e, t) => Po(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { defineComponent as N, openBlock as u, createElementBlock as p, Fragment as ae, renderList as ce, withModifiers as se, createElementVNode as v, toDisplayString as M, h as xn, render as Pn, inject as fn, reactive as de, computed as g, ref as F, normalizeClass as E, unref as y, createBlock as Z, resolveDynamicComponent as Kn, createTextVNode as f, renderSlot as
|
|
4
|
+
import { defineComponent as N, openBlock as u, createElementBlock as p, Fragment as ae, renderList as ce, withModifiers as se, createElementVNode as v, toDisplayString as M, h as xn, render as Pn, inject as fn, reactive as de, computed as g, ref as F, normalizeClass as E, unref as y, createBlock as Z, resolveDynamicComponent as Kn, createTextVNode as f, renderSlot as U, createCommentVNode as $, normalizeStyle as oe, nextTick as Ne, onMounted as he, onUnmounted as Le, watchEffect as Yn, watch as ie, provide as Nt, watchPostEffect as Xt, createVNode as J, withCtx as Q, useSlots as _e, withDirectives as be, mergeModels as Je, useModel as mt, withKeys as Te, Teleport as vt, mergeProps as me, toRef as It, Transition as Jt, vModelText as Me, normalizeProps as Ao, guardReactiveProps as Do, onUpdated as Mo, onBeforeUnmount as Io, vModelDynamic as Lo, useCssVars as Fo, useTemplateRef as $n, vShow as An, createSlots as Gn, useAttrs as Xn, getCurrentScope as jo, onScopeDispose as No, readonly as zo } from "vue";
|
|
5
5
|
function zt(n, e) {
|
|
6
6
|
if (n == null)
|
|
7
7
|
throw Error(e ?? "Empty (null | undefined) value");
|
|
@@ -395,7 +395,7 @@ const Vs = /* @__PURE__ */ $e(xs, [["render", Cs]]), Ss = { class: "tr-head" },
|
|
|
395
395
|
__name: "TrHead",
|
|
396
396
|
setup(n) {
|
|
397
397
|
return (e, t) => (u(), p("div", Ss, [
|
|
398
|
-
|
|
398
|
+
U(e.$slots, "default")
|
|
399
399
|
]));
|
|
400
400
|
}
|
|
401
401
|
});
|
|
@@ -472,7 +472,7 @@ const Bs = ["^data-col-id"], Rs = /* @__PURE__ */ N({
|
|
|
472
472
|
style: oe(s.row.style),
|
|
473
473
|
onScroll: t
|
|
474
474
|
}, [
|
|
475
|
-
|
|
475
|
+
U(s.$slots, "default")
|
|
476
476
|
], 38));
|
|
477
477
|
}
|
|
478
478
|
}), As = /* @__PURE__ */ N({
|
|
@@ -908,8 +908,8 @@ const or = { class: "command-menu__container" }, sr = {
|
|
|
908
908
|
}, [
|
|
909
909
|
J(Ts, null, {
|
|
910
910
|
default: Q(() => [
|
|
911
|
-
(u(!0), p(ae, null, ce(y(m), (V,
|
|
912
|
-
key:
|
|
911
|
+
(u(!0), p(ae, null, ce(y(m), (V, W) => (u(), Z(Rs, {
|
|
912
|
+
key: W,
|
|
913
913
|
col: V,
|
|
914
914
|
style: oe(V.style),
|
|
915
915
|
"onChange:sort": I[0] || (I[0] = (B) => D.$emit("change:sort", B))
|
|
@@ -934,13 +934,13 @@ const or = { class: "command-menu__container" }, sr = {
|
|
|
934
934
|
])
|
|
935
935
|
])) : $("", !0),
|
|
936
936
|
I[6] || (I[6] = f()),
|
|
937
|
-
(u(!0), p(ae, null, ce(y(k), (V,
|
|
938
|
-
key:
|
|
937
|
+
(u(!0), p(ae, null, ce(y(k), (V, W) => (u(), Z(Ps, {
|
|
938
|
+
key: W,
|
|
939
939
|
row: V
|
|
940
940
|
}, {
|
|
941
941
|
default: Q(() => [
|
|
942
942
|
(u(!0), p(ae, null, ce(V.cells, (B) => (u(), Z(ks, {
|
|
943
|
-
key: B.column.id + ":" +
|
|
943
|
+
key: B.column.id + ":" + W,
|
|
944
944
|
cell: B,
|
|
945
945
|
style: oe(B.style)
|
|
946
946
|
}, null, 8, ["cell", "style"]))), 128))
|
|
@@ -950,8 +950,8 @@ const or = { class: "command-menu__container" }, sr = {
|
|
|
950
950
|
], 36),
|
|
951
951
|
I[9] || (I[9] = f()),
|
|
952
952
|
v("div", rr, [
|
|
953
|
-
(u(!0), p(ae, null, ce(y(m), (V,
|
|
954
|
-
key:
|
|
953
|
+
(u(!0), p(ae, null, ce(y(m), (V, W) => (u(), Z(As, {
|
|
954
|
+
key: W,
|
|
955
955
|
column: V,
|
|
956
956
|
style: oe(V.style),
|
|
957
957
|
"onChange:sort": I[1] || (I[1] = (B) => D.$emit("change:sort", B))
|
|
@@ -1229,21 +1229,21 @@ const Sm = /* @__PURE__ */ N({
|
|
|
1229
1229
|
y(e).title ? (u(), p("div", Sr, [
|
|
1230
1230
|
v("div", Tr, [
|
|
1231
1231
|
be((u(), p("span", null, [
|
|
1232
|
-
|
|
1232
|
+
U(o.$slots, "title")
|
|
1233
1233
|
])), [
|
|
1234
1234
|
[s]
|
|
1235
1235
|
]),
|
|
1236
1236
|
r[0] || (r[0] = f()),
|
|
1237
|
-
|
|
1237
|
+
U(o.$slots, "after-title")
|
|
1238
1238
|
]),
|
|
1239
1239
|
r[1] || (r[1] = f()),
|
|
1240
1240
|
v("div", Er, [
|
|
1241
|
-
|
|
1241
|
+
U(o.$slots, "append")
|
|
1242
1242
|
])
|
|
1243
1243
|
])) : (u(), p("div", Or)),
|
|
1244
1244
|
r[2] || (r[2] = f()),
|
|
1245
1245
|
v("div", Br, [
|
|
1246
|
-
|
|
1246
|
+
U(o.$slots, "default")
|
|
1247
1247
|
])
|
|
1248
1248
|
], 2));
|
|
1249
1249
|
}
|
|
@@ -1262,7 +1262,7 @@ const Sm = /* @__PURE__ */ N({
|
|
|
1262
1262
|
class: "pl-container pl-layout-component",
|
|
1263
1263
|
style: oe(t.value)
|
|
1264
1264
|
}, [
|
|
1265
|
-
|
|
1265
|
+
U(s.$slots, "default")
|
|
1266
1266
|
], 4));
|
|
1267
1267
|
}
|
|
1268
1268
|
}), Ar = {
|
|
@@ -1278,7 +1278,7 @@ const Sm = /* @__PURE__ */ N({
|
|
|
1278
1278
|
return (e, t) => (u(), p("div", {
|
|
1279
1279
|
class: E(["pl-layout-component pl-row", { wrap: e.wrap, "align-center": e.alignCenter }])
|
|
1280
1280
|
}, [
|
|
1281
|
-
|
|
1281
|
+
U(e.$slots, "default")
|
|
1282
1282
|
], 2));
|
|
1283
1283
|
}
|
|
1284
1284
|
}), Dr = {
|
|
@@ -1306,7 +1306,7 @@ const Sm = /* @__PURE__ */ N({
|
|
|
1306
1306
|
class: "pl-layout-component pl-grid",
|
|
1307
1307
|
style: oe(t.value)
|
|
1308
1308
|
}, [
|
|
1309
|
-
|
|
1309
|
+
U(s.$slots, "default")
|
|
1310
1310
|
], 4));
|
|
1311
1311
|
}
|
|
1312
1312
|
}), Lr = {
|
|
@@ -1349,7 +1349,7 @@ const Sm = /* @__PURE__ */ N({
|
|
|
1349
1349
|
t.label ? (u(), p("label", jr, M(t.label), 1)) : $("", !0),
|
|
1350
1350
|
s[1] || (s[1] = f()),
|
|
1351
1351
|
v("div", Nr, [
|
|
1352
|
-
|
|
1352
|
+
U(t.$slots, "default")
|
|
1353
1353
|
])
|
|
1354
1354
|
]),
|
|
1355
1355
|
s[3] || (s[3] = f()),
|
|
@@ -1508,7 +1508,7 @@ const Gr = /* @__PURE__ */ N({
|
|
|
1508
1508
|
var h;
|
|
1509
1509
|
r.value = _, c.open = !1, (h = i == null ? void 0 : i.value) == null || h.focus();
|
|
1510
1510
|
};
|
|
1511
|
-
function
|
|
1511
|
+
function W() {
|
|
1512
1512
|
o("click");
|
|
1513
1513
|
}
|
|
1514
1514
|
const B = (_) => {
|
|
@@ -1518,7 +1518,7 @@ const Gr = /* @__PURE__ */ N({
|
|
|
1518
1518
|
else
|
|
1519
1519
|
return;
|
|
1520
1520
|
if (_.target === d.value && _.code === "Enter") {
|
|
1521
|
-
|
|
1521
|
+
W();
|
|
1522
1522
|
return;
|
|
1523
1523
|
}
|
|
1524
1524
|
const { open: h, activeIndex: S } = c;
|
|
@@ -1531,7 +1531,7 @@ 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 R = A.findIndex((L) => L.index === S) ?? -1,
|
|
1534
|
+
const R = A.findIndex((L) => L.index === S) ?? -1, q = _.code === "ArrowDown" ? 1 : _.code === "ArrowUp" ? -1 : 0, O = Math.abs(R + q + Y) % Y;
|
|
1535
1535
|
c.activeIndex = C.value[O].index ?? -1;
|
|
1536
1536
|
}, P = (_) => {
|
|
1537
1537
|
var S, A;
|
|
@@ -1550,8 +1550,8 @@ const Gr = /* @__PURE__ */ N({
|
|
|
1550
1550
|
ref: d,
|
|
1551
1551
|
class: "pl-btn-split__title flex-grow-1 d-flex align-center text-s-btn",
|
|
1552
1552
|
tabindex: "0",
|
|
1553
|
-
onClick:
|
|
1554
|
-
onKeyup: Te(se(
|
|
1553
|
+
onClick: W,
|
|
1554
|
+
onKeyup: Te(se(W, ["stop"]), ["enter"])
|
|
1555
1555
|
}, M(I.value), 41, el),
|
|
1556
1556
|
h[1] || (h[1] = f()),
|
|
1557
1557
|
v("div", {
|
|
@@ -1630,7 +1630,7 @@ const tl = { key: 0 }, nl = {
|
|
|
1630
1630
|
class: { loading: r.loading, small: s.value, large: o.value, round: r.round, reverse: r.reverse, justifyCenter: r.justifyCenter, [r.$attrs.class + ""]: !0 }
|
|
1631
1631
|
}, { ...r.$attrs, disabled: !!r.$attrs.disabled || r.loading }), [
|
|
1632
1632
|
r.round ? $("", !0) : (u(), p("span", tl, [
|
|
1633
|
-
|
|
1633
|
+
U(r.$slots, "default")
|
|
1634
1634
|
])),
|
|
1635
1635
|
i[0] || (i[0] = f()),
|
|
1636
1636
|
r.loading ? (u(), Z(y(et), {
|
|
@@ -1660,7 +1660,7 @@ const tl = { key: 0 }, nl = {
|
|
|
1660
1660
|
const e = n;
|
|
1661
1661
|
return (t, s) => (u(), Z(tn, me({ class: "pl-btn-primary" }, e), {
|
|
1662
1662
|
default: Q(() => [
|
|
1663
|
-
|
|
1663
|
+
U(t.$slots, "default")
|
|
1664
1664
|
]),
|
|
1665
1665
|
_: 3
|
|
1666
1666
|
}, 16));
|
|
@@ -1681,7 +1681,7 @@ const tl = { key: 0 }, nl = {
|
|
|
1681
1681
|
const e = n;
|
|
1682
1682
|
return (t, s) => (u(), Z(tn, me({ class: "pl-btn-accent" }, e), {
|
|
1683
1683
|
default: Q(() => [
|
|
1684
|
-
|
|
1684
|
+
U(t.$slots, "default")
|
|
1685
1685
|
]),
|
|
1686
1686
|
_: 3
|
|
1687
1687
|
}, 16));
|
|
@@ -1702,7 +1702,7 @@ const tl = { key: 0 }, nl = {
|
|
|
1702
1702
|
const e = n;
|
|
1703
1703
|
return (t, s) => (u(), Z(tn, me({ class: "pl-btn-danger" }, e), {
|
|
1704
1704
|
default: Q(() => [
|
|
1705
|
-
|
|
1705
|
+
U(t.$slots, "default")
|
|
1706
1706
|
]),
|
|
1707
1707
|
_: 3
|
|
1708
1708
|
}, 16));
|
|
@@ -1723,7 +1723,7 @@ const tl = { key: 0 }, nl = {
|
|
|
1723
1723
|
const e = n;
|
|
1724
1724
|
return (t, s) => (u(), Z(tn, me(e, { class: "pl-btn-secondary" }), {
|
|
1725
1725
|
default: Q(() => [
|
|
1726
|
-
|
|
1726
|
+
U(t.$slots, "default")
|
|
1727
1727
|
]),
|
|
1728
1728
|
_: 3
|
|
1729
1729
|
}, 16));
|
|
@@ -1749,7 +1749,7 @@ const tl = { key: 0 }, nl = {
|
|
|
1749
1749
|
class: ["pl-btn-ghost", { loading: i.loading, small: t.value, large: s.value, round: i.round, reverse: i.reverse, justifyCenter: i.justifyCenter, [i.$attrs.class + ""]: !0 }]
|
|
1750
1750
|
}, { ...i.$attrs, disabled: !!i.$attrs.disabled || i.loading }), [
|
|
1751
1751
|
y(r).default && !i.round ? (u(), p("span", dl, [
|
|
1752
|
-
|
|
1752
|
+
U(i.$slots, "default")
|
|
1753
1753
|
])) : $("", !0),
|
|
1754
1754
|
l[0] || (l[0] = f()),
|
|
1755
1755
|
i.loading ? (u(), Z(y(et), {
|
|
@@ -1762,7 +1762,7 @@ const tl = { key: 0 }, nl = {
|
|
|
1762
1762
|
size: i.size
|
|
1763
1763
|
}, null, 8, ["name", "size"])) : $("", !0),
|
|
1764
1764
|
l[1] || (l[1] = f()),
|
|
1765
|
-
|
|
1765
|
+
U(i.$slots, "append")
|
|
1766
1766
|
], 16));
|
|
1767
1767
|
}
|
|
1768
1768
|
}), Im = /* @__PURE__ */ N({
|
|
@@ -1787,7 +1787,7 @@ const tl = { key: 0 }, nl = {
|
|
|
1787
1787
|
hover: t.value
|
|
1788
1788
|
}, e), null, 16, ["hover"]),
|
|
1789
1789
|
o[2] || (o[2] = f()),
|
|
1790
|
-
|
|
1790
|
+
U(s.$slots, "default")
|
|
1791
1791
|
], 34));
|
|
1792
1792
|
}
|
|
1793
1793
|
});
|
|
@@ -1906,7 +1906,7 @@ const gl = /* @__PURE__ */ $e(ml, [["render", hl]]), dn = /* @__PURE__ */ new Ma
|
|
|
1906
1906
|
onMouseleave: m
|
|
1907
1907
|
}), {
|
|
1908
1908
|
default: Q(() => [
|
|
1909
|
-
|
|
1909
|
+
U(I.$slots, "default"),
|
|
1910
1910
|
V[1] || (V[1] = f()),
|
|
1911
1911
|
I.$slots.tooltip && r.open ? (u(), Z(vt, {
|
|
1912
1912
|
key: 0,
|
|
@@ -1928,7 +1928,7 @@ const gl = /* @__PURE__ */ $e(ml, [["render", hl]]), dn = /* @__PURE__ */ new Ma
|
|
|
1928
1928
|
onMouseleave: m
|
|
1929
1929
|
}, [
|
|
1930
1930
|
v("div", null, [
|
|
1931
|
-
|
|
1931
|
+
U(I.$slots, "tooltip")
|
|
1932
1932
|
]),
|
|
1933
1933
|
V[0] || (V[0] = f()),
|
|
1934
1934
|
J(gl)
|
|
@@ -1947,7 +1947,7 @@ const gl = /* @__PURE__ */ $e(ml, [["render", hl]]), dn = /* @__PURE__ */ new Ma
|
|
|
1947
1947
|
}, bl = { class: "inner-border" };
|
|
1948
1948
|
function wl(n, e, t, s, o, r) {
|
|
1949
1949
|
return u(), p("div", bl, [
|
|
1950
|
-
|
|
1950
|
+
U(n.$slots, "default")
|
|
1951
1951
|
]);
|
|
1952
1952
|
}
|
|
1953
1953
|
const kl = /* @__PURE__ */ $e(_l, [["render", wl]]), xl = { key: 0 }, $l = ["tabindex", "onKeydown", "onClick"], Cl = {
|
|
@@ -1989,7 +1989,7 @@ const kl = /* @__PURE__ */ $e(_l, [["render", wl]]), xl = { key: 0 }, $l = ["tab
|
|
|
1989
1989
|
position: "top"
|
|
1990
1990
|
}, {
|
|
1991
1991
|
tooltip: Q(() => [
|
|
1992
|
-
|
|
1992
|
+
U(l.$slots, "tooltip")
|
|
1993
1993
|
]),
|
|
1994
1994
|
_: 3
|
|
1995
1995
|
})) : $("", !0)
|
|
@@ -2118,7 +2118,7 @@ const Ol = "_component_1abv8_1", Bl = "_container_1abv8_15", Rl = "_error_1abv8_
|
|
|
2118
2118
|
function Il(n, e, t, s, o, r) {
|
|
2119
2119
|
return u(), p("div", Ml, [
|
|
2120
2120
|
v("div", Ao(Do(n.$attrs)), [
|
|
2121
|
-
|
|
2121
|
+
U(n.$slots, "default")
|
|
2122
2122
|
], 16)
|
|
2123
2123
|
]);
|
|
2124
2124
|
}
|
|
@@ -2261,7 +2261,7 @@ const jl = /* @__PURE__ */ N({
|
|
|
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
2262
|
const P = [];
|
|
2263
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
|
-
}), I = g(() => D.value.length > 0), V = g(() => s.clearable && C.value && s.type !== "password" && !s.disabled),
|
|
2264
|
+
}), I = g(() => D.value.length > 0), V = g(() => s.clearable && C.value && s.type !== "password" && !s.disabled), W = () => i.value = !i.value, B = () => {
|
|
2265
2265
|
l.cached = void 0;
|
|
2266
2266
|
};
|
|
2267
2267
|
return Ke(o), (P, _) => (u(), p("div", Kl, [
|
|
@@ -2286,7 +2286,7 @@ const jl = /* @__PURE__ */ N({
|
|
|
2286
2286
|
position: "top"
|
|
2287
2287
|
}, {
|
|
2288
2288
|
tooltip: Q(() => [
|
|
2289
|
-
|
|
2289
|
+
U(P.$slots, "tooltip")
|
|
2290
2290
|
]),
|
|
2291
2291
|
_: 3
|
|
2292
2292
|
})) : $("", !0)
|
|
@@ -2319,10 +2319,10 @@ const jl = /* @__PURE__ */ N({
|
|
|
2319
2319
|
key: 1,
|
|
2320
2320
|
name: c.value,
|
|
2321
2321
|
style: { cursor: "pointer" },
|
|
2322
|
-
onClick:
|
|
2322
|
+
onClick: W
|
|
2323
2323
|
}, null, 8, ["name"])) : $("", !0),
|
|
2324
2324
|
_[4] || (_[4] = f()),
|
|
2325
|
-
|
|
2325
|
+
U(P.$slots, "append")
|
|
2326
2326
|
]),
|
|
2327
2327
|
_[8] || (_[8] = f()),
|
|
2328
2328
|
J(qe, { class: "pl-text-field__contour" })
|
|
@@ -2466,7 +2466,7 @@ const jl = /* @__PURE__ */ N({
|
|
|
2466
2466
|
position: "top"
|
|
2467
2467
|
}, {
|
|
2468
2468
|
tooltip: Q(() => [
|
|
2469
|
-
|
|
2469
|
+
U(w.$slots, "tooltip")
|
|
2470
2470
|
]),
|
|
2471
2471
|
_: 3
|
|
2472
2472
|
})) : $("", !0)
|
|
@@ -2487,7 +2487,7 @@ const jl = /* @__PURE__ */ N({
|
|
|
2487
2487
|
]),
|
|
2488
2488
|
C[4] || (C[4] = f()),
|
|
2489
2489
|
v("div", yi, [
|
|
2490
|
-
|
|
2490
|
+
U(w.$slots, "append")
|
|
2491
2491
|
]),
|
|
2492
2492
|
C[5] || (C[5] = f()),
|
|
2493
2493
|
J(qe, { class: "ui-text-area__contour" })
|
|
@@ -2536,7 +2536,7 @@ const fo = /* @__PURE__ */ N({
|
|
|
2536
2536
|
ref: t,
|
|
2537
2537
|
class: E(o.value)
|
|
2538
2538
|
}, [
|
|
2539
|
-
|
|
2539
|
+
U(c.$slots, "default")
|
|
2540
2540
|
], 2)
|
|
2541
2541
|
], 32)
|
|
2542
2542
|
], 16));
|
|
@@ -2611,7 +2611,7 @@ const vo = /* @__PURE__ */ N({
|
|
|
2611
2611
|
style: o,
|
|
2612
2612
|
tabindex: "-1"
|
|
2613
2613
|
}), [
|
|
2614
|
-
|
|
2614
|
+
U(a.$slots, "default", { ref: "list" })
|
|
2615
2615
|
], 16)
|
|
2616
2616
|
]));
|
|
2617
2617
|
}
|
|
@@ -2676,7 +2676,7 @@ const vo = /* @__PURE__ */ N({
|
|
|
2676
2676
|
), I = g(() => {
|
|
2677
2677
|
const b = y(D).find((x) => xe(x.value, s.modelValue));
|
|
2678
2678
|
return (b == null ? void 0 : b.label) || s.modelValue;
|
|
2679
|
-
}), V = g(() => !a.open && s.modelValue ? "" : s.modelValue ? String(I.value) : s.placeholder),
|
|
2679
|
+
}), V = g(() => !a.open && s.modelValue ? "" : s.modelValue ? String(I.value) : s.placeholder), W = g(() => s.modelValue !== void 0 && s.modelValue !== null), B = g(() => {
|
|
2680
2680
|
const O = D.value;
|
|
2681
2681
|
return a.search ? O.filter((b) => {
|
|
2682
2682
|
const x = a.search.toLowerCase();
|
|
@@ -2692,7 +2692,7 @@ const vo = /* @__PURE__ */ N({
|
|
|
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);
|
|
2695
|
-
},
|
|
2695
|
+
}, q = (O) => {
|
|
2696
2696
|
var ot, ht;
|
|
2697
2697
|
if (["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(O.code))
|
|
2698
2698
|
O.preventDefault();
|
|
@@ -2726,7 +2726,7 @@ const vo = /* @__PURE__ */ N({
|
|
|
2726
2726
|
ref: r,
|
|
2727
2727
|
tabindex: P.value,
|
|
2728
2728
|
class: E(["pl-dropdown", { open: a.open, error: O.error, disabled: k.value }]),
|
|
2729
|
-
onKeydown:
|
|
2729
|
+
onKeydown: q,
|
|
2730
2730
|
onFocusout: R
|
|
2731
2731
|
}, [
|
|
2732
2732
|
v("div", Vi, [
|
|
@@ -2764,13 +2764,13 @@ const vo = /* @__PURE__ */ N({
|
|
|
2764
2764
|
name: "loading"
|
|
2765
2765
|
})) : $("", !0),
|
|
2766
2766
|
b[1] || (b[1] = f()),
|
|
2767
|
-
O.clearable &&
|
|
2767
|
+
O.clearable && W.value ? (u(), Z(y(ut), {
|
|
2768
2768
|
key: 1,
|
|
2769
2769
|
name: "delete-clear",
|
|
2770
2770
|
onClick: se(h, ["stop"])
|
|
2771
2771
|
})) : $("", !0),
|
|
2772
2772
|
b[2] || (b[2] = f()),
|
|
2773
|
-
|
|
2773
|
+
U(O.$slots, "append"),
|
|
2774
2774
|
b[3] || (b[3] = f()),
|
|
2775
2775
|
O.arrowIconLarge ? (u(), p("div", {
|
|
2776
2776
|
key: 2,
|
|
@@ -2799,7 +2799,7 @@ const vo = /* @__PURE__ */ N({
|
|
|
2799
2799
|
position: "top"
|
|
2800
2800
|
}, {
|
|
2801
2801
|
tooltip: Q(() => [
|
|
2802
|
-
|
|
2802
|
+
U(O.$slots, "tooltip")
|
|
2803
2803
|
]),
|
|
2804
2804
|
_: 3
|
|
2805
2805
|
})) : $("", !0)
|
|
@@ -2962,17 +2962,15 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
2962
2962
|
}), a = F(""), d = Li(It(s, "options"), a), c = g(() => !!(s.clearable && o.isOpen && s.modelValue && m.value)), m = g(() => {
|
|
2963
2963
|
if (s.modelValue) {
|
|
2964
2964
|
const R = C();
|
|
2965
|
-
if (R !== -1)
|
|
2966
|
-
|
|
2967
|
-
return typeof U.label == "object" ? U.label.title : U.label;
|
|
2968
|
-
}
|
|
2965
|
+
if (R !== -1)
|
|
2966
|
+
return Qe(s.options)[R].label;
|
|
2969
2967
|
}
|
|
2970
2968
|
return "";
|
|
2971
2969
|
}), k = F(m.value);
|
|
2972
2970
|
ie(m, (R) => {
|
|
2973
2971
|
k.value = R;
|
|
2974
2972
|
});
|
|
2975
|
-
const w = g(() => o.isOpen && a.value && a.value.length >= m.value.length - 1 ? a.value : m.value
|
|
2973
|
+
const w = g(() => o.isOpen && a.value && a.value.length >= m.value.length - 1 ? a.value : m.value || "...");
|
|
2976
2974
|
Sn(r, () => {
|
|
2977
2975
|
s.mode === "list" && (o.isOpen = !1);
|
|
2978
2976
|
}), ie(
|
|
@@ -2983,8 +2981,8 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
2983
2981
|
), ie(
|
|
2984
2982
|
() => o.isOpen,
|
|
2985
2983
|
(R) => {
|
|
2986
|
-
var
|
|
2987
|
-
R && r.value && ((
|
|
2984
|
+
var q;
|
|
2985
|
+
R && r.value && ((q = r.value.querySelector("input")) == null || q.focus(), Ne(() => S()));
|
|
2988
2986
|
}
|
|
2989
2987
|
), ie(
|
|
2990
2988
|
() => s.modelValue,
|
|
@@ -3008,22 +3006,22 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3008
3006
|
o.isOpen = !o.isOpen;
|
|
3009
3007
|
});
|
|
3010
3008
|
}
|
|
3011
|
-
function
|
|
3009
|
+
function W() {
|
|
3012
3010
|
s.mode === "list" && (o.isOpen = !1);
|
|
3013
3011
|
}
|
|
3014
3012
|
function B(R) {
|
|
3015
|
-
R && (t("update:modelValue", R.value),
|
|
3013
|
+
R && (t("update:modelValue", R.value), W(), I());
|
|
3016
3014
|
}
|
|
3017
3015
|
function P(R) {
|
|
3018
3016
|
return xe(R.value, s.modelValue);
|
|
3019
3017
|
}
|
|
3020
3018
|
const _ = (R) => {
|
|
3021
3019
|
var O, b;
|
|
3022
|
-
const
|
|
3023
|
-
!((O = r.value) != null && O.contains(
|
|
3020
|
+
const q = R.relatedTarget;
|
|
3021
|
+
!((O = r.value) != null && O.contains(q)) && !((b = i.value) != null && b.contains(q)) && (a.value = "", o.isOpen = !1);
|
|
3024
3022
|
};
|
|
3025
3023
|
function h(R) {
|
|
3026
|
-
const { activeOption:
|
|
3024
|
+
const { activeOption: q } = o;
|
|
3027
3025
|
if (!o.isOpen && R.code === "Enter") {
|
|
3028
3026
|
o.isOpen = !0;
|
|
3029
3027
|
return;
|
|
@@ -3031,14 +3029,14 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3031
3029
|
const { length: O } = d.value;
|
|
3032
3030
|
if (!O)
|
|
3033
3031
|
return;
|
|
3034
|
-
["ArrowDown", "ArrowUp", "Enter"].includes(R.code) && R.preventDefault(), R.code === "Enter" && B(d.value[
|
|
3032
|
+
["ArrowDown", "ArrowUp", "Enter"].includes(R.code) && R.preventDefault(), R.code === "Enter" && B(d.value[q]);
|
|
3035
3033
|
const b = R.code === "ArrowDown" ? 1 : R.code === "ArrowUp" ? -1 : 0;
|
|
3036
|
-
o.activeOption = Math.abs(
|
|
3034
|
+
o.activeOption = Math.abs(q + b + O) % O, requestAnimationFrame(S);
|
|
3037
3035
|
}
|
|
3038
3036
|
function S() {
|
|
3039
3037
|
const R = i.value;
|
|
3040
|
-
R && ve(R.querySelector(".hovered-item"), (
|
|
3041
|
-
s.mode === "list" ? En(R,
|
|
3038
|
+
R && ve(R.querySelector(".hovered-item"), (q) => {
|
|
3039
|
+
s.mode === "list" ? En(R, q) : q.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
|
|
3042
3040
|
});
|
|
3043
3041
|
}
|
|
3044
3042
|
function A() {
|
|
@@ -3050,13 +3048,13 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3050
3048
|
});
|
|
3051
3049
|
return ie(i, (R) => {
|
|
3052
3050
|
if (R) {
|
|
3053
|
-
const
|
|
3054
|
-
o.optionsHeight =
|
|
3051
|
+
const q = R.getBoundingClientRect();
|
|
3052
|
+
o.optionsHeight = q.height, window.dispatchEvent(new CustomEvent("adjust"));
|
|
3055
3053
|
}
|
|
3056
3054
|
}), en(r, (R) => {
|
|
3057
3055
|
const O = R.top + R.height + 2;
|
|
3058
3056
|
O + o.optionsHeight > R.clientHeight ? Y.top = R.top - o.optionsHeight - 2 + "px" : Y.top = O + "px", Y.left = R.left + "px";
|
|
3059
|
-
}), (R,
|
|
3057
|
+
}), (R, q) => (u(), p("div", {
|
|
3060
3058
|
ref_key: "container",
|
|
3061
3059
|
ref: r,
|
|
3062
3060
|
tabindex: "0",
|
|
@@ -3066,20 +3064,20 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3066
3064
|
onClick: V
|
|
3067
3065
|
}, [
|
|
3068
3066
|
v("div", Zi, M(s == null ? void 0 : s.prefix), 1),
|
|
3069
|
-
|
|
3067
|
+
q[6] || (q[6] = f()),
|
|
3070
3068
|
J(Ni, {
|
|
3071
3069
|
modelValue: k.value,
|
|
3072
|
-
"onUpdate:modelValue":
|
|
3070
|
+
"onUpdate:modelValue": q[0] || (q[0] = (O) => k.value = O),
|
|
3073
3071
|
placeholder: w.value,
|
|
3074
3072
|
disabled: s.disabled,
|
|
3075
3073
|
class: "pl-line-dropdown__input"
|
|
3076
3074
|
}, null, 8, ["modelValue", "placeholder", "disabled"]),
|
|
3077
|
-
|
|
3075
|
+
q[7] || (q[7] = f()),
|
|
3078
3076
|
v("div", Ui, [
|
|
3079
3077
|
be(v("div", Wi, null, 512), [
|
|
3080
3078
|
[An, !c.value]
|
|
3081
3079
|
]),
|
|
3082
|
-
|
|
3080
|
+
q[1] || (q[1] = f()),
|
|
3083
3081
|
be(v("div", {
|
|
3084
3082
|
class: "pl-line-dropdown__icon-clear",
|
|
3085
3083
|
onClick: A
|
|
@@ -3087,7 +3085,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3087
3085
|
[An, c.value]
|
|
3088
3086
|
])
|
|
3089
3087
|
]),
|
|
3090
|
-
|
|
3088
|
+
q[8] || (q[8] = f()),
|
|
3091
3089
|
o.isOpen ? (u(), Z(vt, {
|
|
3092
3090
|
key: 0,
|
|
3093
3091
|
to: "body"
|
|
@@ -3101,7 +3099,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3101
3099
|
class: "pl-line-dropdown__items",
|
|
3102
3100
|
onFocusout: _
|
|
3103
3101
|
}, [
|
|
3104
|
-
(u(!0), p(ae, null, ce(y(d), (O, b) =>
|
|
3102
|
+
(u(!0), p(ae, null, ce(y(d), (O, b) => U(R.$slots, "item", {
|
|
3105
3103
|
key: b,
|
|
3106
3104
|
item: O,
|
|
3107
3105
|
textItem: "text",
|
|
@@ -3118,8 +3116,8 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3118
3116
|
onClick: se((x) => B(O), ["stop"])
|
|
3119
3117
|
}, null, 8, ["option", "is-selected", "is-hovered", "onClick"])
|
|
3120
3118
|
])), 128)),
|
|
3121
|
-
|
|
3122
|
-
y(d).length === 0 ? (u(), p("div", qi,
|
|
3119
|
+
q[3] || (q[3] = f()),
|
|
3120
|
+
y(d).length === 0 ? (u(), p("div", qi, q[2] || (q[2] = [
|
|
3123
3121
|
v("div", { class: "pl-line-dropdown__no-item-title text-s" }, "Didn't find anything that matched", -1)
|
|
3124
3122
|
]))) : $("", !0)
|
|
3125
3123
|
], 36)) : s.mode === "tabs" ? (u(), p("div", {
|
|
@@ -3131,7 +3129,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3131
3129
|
class: "pl-line-dropdown__items-tabs",
|
|
3132
3130
|
onFocusout: _
|
|
3133
3131
|
}, [
|
|
3134
|
-
(u(!0), p(ae, null, ce(y(d), (O, b) =>
|
|
3132
|
+
(u(!0), p(ae, null, ce(y(d), (O, b) => U(R.$slots, "item", {
|
|
3135
3133
|
key: b,
|
|
3136
3134
|
item: O,
|
|
3137
3135
|
isSelected: P(O),
|
|
@@ -3145,8 +3143,8 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3145
3143
|
onClick: se((x) => B(O), ["stop"])
|
|
3146
3144
|
}, null, 8, ["option", "is-selected", "is-hovered", "onClick"])
|
|
3147
3145
|
])), 128)),
|
|
3148
|
-
|
|
3149
|
-
y(d).length === 0 ? (u(), p("div", Ki,
|
|
3146
|
+
q[5] || (q[5] = f()),
|
|
3147
|
+
y(d).length === 0 ? (u(), p("div", Ki, q[4] || (q[4] = [
|
|
3150
3148
|
v("div", { class: "pl-line-dropdown__no-item-title text-s" }, "Didn't find anything that matched", -1)
|
|
3151
3149
|
]))) : $("", !0)
|
|
3152
3150
|
], 36)) : $("", !0)
|
|
@@ -3213,7 +3211,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3213
3211
|
), I = g(() => {
|
|
3214
3212
|
const x = y(D).find((L) => xe(L.value, s.modelValue));
|
|
3215
3213
|
return (x == null ? void 0 : x.label) || s.modelValue;
|
|
3216
|
-
}), V = g(() => !a.open && s.modelValue ? "" : s.modelValue ? String(I.value) : s.placeholder),
|
|
3214
|
+
}), V = g(() => !a.open && s.modelValue ? "" : s.modelValue ? String(I.value) : s.placeholder), W = g(() => s.modelValue !== void 0 && s.modelValue !== null), B = g(() => {
|
|
3217
3215
|
const b = D.value;
|
|
3218
3216
|
return a.search ? b.filter((x) => {
|
|
3219
3217
|
const L = a.search.toLowerCase();
|
|
@@ -3228,7 +3226,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3228
3226
|
}, A = () => a.open = !a.open, Y = () => a.open = !0, R = (b) => {
|
|
3229
3227
|
var x;
|
|
3230
3228
|
(x = r == null ? void 0 : r.value) != null && x.contains(b.relatedTarget) || (a.search = "", a.open = !1);
|
|
3231
|
-
},
|
|
3229
|
+
}, q = () => {
|
|
3232
3230
|
const b = i.value;
|
|
3233
3231
|
b && ve(b.querySelector(".hovered-item"), (x) => {
|
|
3234
3232
|
En(b, x);
|
|
@@ -3259,7 +3257,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3259
3257
|
return b ? (x = l.value) == null ? void 0 : x.focus() : "";
|
|
3260
3258
|
}
|
|
3261
3259
|
), Xt(() => {
|
|
3262
|
-
a.search, a.activeIndex >= 0 && a.open &&
|
|
3260
|
+
a.search, a.activeIndex >= 0 && a.open && q();
|
|
3263
3261
|
}), (b, x) => (u(), p("div", Yi, [
|
|
3264
3262
|
v("div", {
|
|
3265
3263
|
ref_key: "root",
|
|
@@ -3304,13 +3302,13 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3304
3302
|
name: "loading"
|
|
3305
3303
|
})) : $("", !0),
|
|
3306
3304
|
x[1] || (x[1] = f()),
|
|
3307
|
-
b.clearable &&
|
|
3305
|
+
b.clearable && W.value ? (u(), Z(y(ut), {
|
|
3308
3306
|
key: 1,
|
|
3309
3307
|
name: "delete-clear",
|
|
3310
3308
|
onClick: se(h, ["stop"])
|
|
3311
3309
|
})) : $("", !0),
|
|
3312
3310
|
x[2] || (x[2] = f()),
|
|
3313
|
-
|
|
3311
|
+
U(b.$slots, "append"),
|
|
3314
3312
|
x[3] || (x[3] = f()),
|
|
3315
3313
|
b.arrowIconLarge ? (u(), p("div", {
|
|
3316
3314
|
key: 2,
|
|
@@ -3339,7 +3337,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3339
3337
|
position: "top"
|
|
3340
3338
|
}, {
|
|
3341
3339
|
tooltip: Q(() => [
|
|
3342
|
-
|
|
3340
|
+
U(b.$slots, "tooltip")
|
|
3343
3341
|
]),
|
|
3344
3342
|
_: 3
|
|
3345
3343
|
})) : $("", !0)
|
|
@@ -3423,8 +3421,8 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3423
3421
|
return l.value && t.modelValue !== void 0 ? new Number(t.modelValue).toString() : "";
|
|
3424
3422
|
},
|
|
3425
3423
|
set(V) {
|
|
3426
|
-
var
|
|
3427
|
-
V = V.replace(/,/g, ""), k(V) ? (s("update:modelValue", +V), V.toString() !== ((
|
|
3424
|
+
var W;
|
|
3425
|
+
V = V.replace(/,/g, ""), k(V) ? (s("update:modelValue", +V), V.toString() !== ((W = t.modelValue) == null ? void 0 : W.toString()) && +V === t.modelValue && V[V.length - 1] !== "." && (l.value = !1, Ne(() => {
|
|
3428
3426
|
l.value = !0;
|
|
3429
3427
|
}))) : (V.trim() === "" && s("update:modelValue", void 0), l.value = !1, Ne(() => {
|
|
3430
3428
|
l.value = !0;
|
|
@@ -3455,16 +3453,16 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3455
3453
|
const I = (V) => {
|
|
3456
3454
|
V.detail > 1 && V.preventDefault();
|
|
3457
3455
|
};
|
|
3458
|
-
return (V,
|
|
3456
|
+
return (V, W) => (u(), p("div", {
|
|
3459
3457
|
ref_key: "root",
|
|
3460
3458
|
ref: o,
|
|
3461
3459
|
class: E([{ error: !!d.value.trim(), disabled: V.disabled }, "mi-number-field d-flex-column"]),
|
|
3462
3460
|
onMousedown: I,
|
|
3463
|
-
onKeydown:
|
|
3461
|
+
onKeydown: W[1] || (W[1] = (B) => D(B))
|
|
3464
3462
|
}, [
|
|
3465
3463
|
v("div", pa, [
|
|
3466
3464
|
J(qe, { class: "mi-number-field__contour" }),
|
|
3467
|
-
|
|
3465
|
+
W[6] || (W[6] = f()),
|
|
3468
3466
|
v("div", fa, [
|
|
3469
3467
|
V.label ? (u(), p("label", ma, [
|
|
3470
3468
|
f(M(V.label) + " ", 1),
|
|
@@ -3474,16 +3472,16 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3474
3472
|
position: "top"
|
|
3475
3473
|
}, {
|
|
3476
3474
|
tooltip: Q(() => [
|
|
3477
|
-
|
|
3475
|
+
U(V.$slots, "tooltip")
|
|
3478
3476
|
]),
|
|
3479
3477
|
_: 3
|
|
3480
3478
|
})) : $("", !0)
|
|
3481
3479
|
])) : $("", !0),
|
|
3482
|
-
|
|
3480
|
+
W[2] || (W[2] = f()),
|
|
3483
3481
|
be(v("input", {
|
|
3484
3482
|
ref_key: "input",
|
|
3485
3483
|
ref: i,
|
|
3486
|
-
"onUpdate:modelValue":
|
|
3484
|
+
"onUpdate:modelValue": W[0] || (W[0] = (B) => a.value = B),
|
|
3487
3485
|
disabled: V.disabled,
|
|
3488
3486
|
placeholder: V.placeholder,
|
|
3489
3487
|
class: "text-s flex-grow"
|
|
@@ -3491,12 +3489,12 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3491
3489
|
[Me, a.value]
|
|
3492
3490
|
])
|
|
3493
3491
|
]),
|
|
3494
|
-
|
|
3492
|
+
W[7] || (W[7] = f()),
|
|
3495
3493
|
v("div", ha, [
|
|
3496
3494
|
v("div", {
|
|
3497
3495
|
class: E([{ disabled: c.value }, "mi-number-field__icon d-flex flex-justify-center uc-pointer flex-grow flex-align-center"]),
|
|
3498
3496
|
onClick: w
|
|
3499
|
-
},
|
|
3497
|
+
}, W[3] || (W[3] = [
|
|
3500
3498
|
v("svg", {
|
|
3501
3499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3502
3500
|
width: "16",
|
|
@@ -3512,11 +3510,11 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3512
3510
|
})
|
|
3513
3511
|
], -1)
|
|
3514
3512
|
]), 2),
|
|
3515
|
-
|
|
3513
|
+
W[5] || (W[5] = f()),
|
|
3516
3514
|
v("div", {
|
|
3517
3515
|
class: E([{ disabled: m.value }, "mi-number-field__icon d-flex flex-justify-center uc-pointer flex-grow flex-align-center"]),
|
|
3518
3516
|
onClick: C
|
|
3519
|
-
},
|
|
3517
|
+
}, W[4] || (W[4] = [
|
|
3520
3518
|
v("svg", {
|
|
3521
3519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3522
3520
|
width: "16",
|
|
@@ -3534,7 +3532,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3534
3532
|
]), 2)
|
|
3535
3533
|
])
|
|
3536
3534
|
]),
|
|
3537
|
-
|
|
3535
|
+
W[8] || (W[8] = f()),
|
|
3538
3536
|
d.value.trim() ? (u(), p("div", ga, M(d.value), 1)) : $("", !0)
|
|
3539
3537
|
], 34));
|
|
3540
3538
|
}
|
|
@@ -3563,7 +3561,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3563
3561
|
class: E(["pl-chip", { small: s.small }])
|
|
3564
3562
|
}, [
|
|
3565
3563
|
v("div", ya, [
|
|
3566
|
-
|
|
3564
|
+
U(s.$slots, "default")
|
|
3567
3565
|
]),
|
|
3568
3566
|
o[3] || (o[3] = f()),
|
|
3569
3567
|
s.closeable ? (u(), p("div", {
|
|
@@ -3582,7 +3580,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3582
3580
|
t.value ? {
|
|
3583
3581
|
name: "tooltip",
|
|
3584
3582
|
fn: Q(() => [
|
|
3585
|
-
|
|
3583
|
+
U(s.$slots, "default")
|
|
3586
3584
|
]),
|
|
3587
3585
|
key: "0"
|
|
3588
3586
|
} : void 0
|
|
@@ -3639,13 +3637,13 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3639
3637
|
var A;
|
|
3640
3638
|
const S = y(c);
|
|
3641
3639
|
s(cn(S, h) ? S.filter((Y) => !xe(Y, h)) : [...S, h]), d.search = "", (A = i == null ? void 0 : i.value) == null || A.focus();
|
|
3642
|
-
}, V = (h) => s(y(c).filter((S) => !xe(S, h))),
|
|
3640
|
+
}, V = (h) => s(y(c).filter((S) => !xe(S, h))), W = () => {
|
|
3643
3641
|
var h;
|
|
3644
3642
|
return (h = l.value) == null ? void 0 : h.focus();
|
|
3645
3643
|
}, B = () => d.open = !d.open, P = (h) => {
|
|
3646
|
-
var A, Y, R,
|
|
3644
|
+
var A, Y, R, q;
|
|
3647
3645
|
const S = h.relatedTarget;
|
|
3648
|
-
console.log(">>>> overlay.value?.$el", (A = a.value) == null ? void 0 : A.$el), !((Y = i.value) != null && Y.contains(S)) && !((
|
|
3646
|
+
console.log(">>>> overlay.value?.$el", (A = a.value) == null ? void 0 : A.$el), !((Y = i.value) != null && Y.contains(S)) && !((q = (R = a.value) == null ? void 0 : R.listRef) != null && q.contains(S)) && (d.search = "", d.open = !1);
|
|
3649
3647
|
}, _ = (h) => {
|
|
3650
3648
|
var O;
|
|
3651
3649
|
const { open: S, activeOption: A } = d;
|
|
@@ -3658,8 +3656,8 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3658
3656
|
if (!R)
|
|
3659
3657
|
return;
|
|
3660
3658
|
["ArrowDown", "ArrowUp", "Enter"].includes(h.code) && h.preventDefault(), h.code === "Enter" && I(Y[A].value);
|
|
3661
|
-
const
|
|
3662
|
-
d.activeOption = Math.abs(A +
|
|
3659
|
+
const q = h.code === "ArrowDown" ? 1 : h.code === "ArrowUp" ? -1 : 0;
|
|
3660
|
+
d.activeOption = Math.abs(A + q + R) % R, requestAnimationFrame(() => {
|
|
3663
3661
|
var b;
|
|
3664
3662
|
return (b = a.value) == null ? void 0 : b.scrollIntoActive();
|
|
3665
3663
|
});
|
|
@@ -3700,7 +3698,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3700
3698
|
d.open ? $("", !0) : (u(), p("div", {
|
|
3701
3699
|
key: 0,
|
|
3702
3700
|
class: "chips-container",
|
|
3703
|
-
onClick:
|
|
3701
|
+
onClick: W
|
|
3704
3702
|
}, [
|
|
3705
3703
|
(u(!0), p(ae, null, ce(k.value, (A, Y) => (u(), Z(y(zn), {
|
|
3706
3704
|
key: Y,
|
|
@@ -3722,7 +3720,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3722
3720
|
}),
|
|
3723
3721
|
S[5] || (S[5] = f()),
|
|
3724
3722
|
v("div", $a, [
|
|
3725
|
-
|
|
3723
|
+
U(h.$slots, "append")
|
|
3726
3724
|
])
|
|
3727
3725
|
]),
|
|
3728
3726
|
S[10] || (S[10] = f()),
|
|
@@ -3737,7 +3735,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3737
3735
|
position: "top"
|
|
3738
3736
|
}, {
|
|
3739
3737
|
tooltip: Q(() => [
|
|
3740
|
-
|
|
3738
|
+
U(h.$slots, "tooltip")
|
|
3741
3739
|
]),
|
|
3742
3740
|
_: 3
|
|
3743
3741
|
})) : $("", !0)
|
|
@@ -3829,7 +3827,7 @@ const Fi = { class: "resizable-input" }, ji = ["placeholder", "value", "disabled
|
|
|
3829
3827
|
v("label", {
|
|
3830
3828
|
onClick: o[1] || (o[1] = (r) => s.$emit("update:modelValue", !s.$props.modelValue))
|
|
3831
3829
|
}, [
|
|
3832
|
-
|
|
3830
|
+
U(s.$slots, "default")
|
|
3833
3831
|
])
|
|
3834
3832
|
], 2)) : (u(), Z(yn, me({ key: 1 }, e, {
|
|
3835
3833
|
"onUpdate:modelValue": o[2] || (o[2] = (r) => s.$emit("update:modelValue", r))
|
|
@@ -3931,20 +3929,20 @@ const ja = {
|
|
|
3931
3929
|
})) : $("", !0),
|
|
3932
3930
|
d[1] || (d[1] = f()),
|
|
3933
3931
|
y(t).title ? (u(), p("div", za, [
|
|
3934
|
-
|
|
3932
|
+
U(a.$slots, "title")
|
|
3935
3933
|
])) : $("", !0),
|
|
3936
3934
|
d[2] || (d[2] = f()),
|
|
3937
3935
|
v("div", {
|
|
3938
3936
|
class: E(["pl-dialog-modal__content", { "no-content-gutters": a.noContentGutters, "no-top-content-gutter": a.noTopContentGutter }])
|
|
3939
3937
|
}, [
|
|
3940
|
-
|
|
3938
|
+
U(a.$slots, "default")
|
|
3941
3939
|
], 2),
|
|
3942
3940
|
d[3] || (d[3] = f()),
|
|
3943
3941
|
y(t).actions ? (u(), p("div", {
|
|
3944
3942
|
key: 2,
|
|
3945
3943
|
class: E(["pl-dialog-modal__actions", { "has-top-border": a.actionsHasTopBorder }])
|
|
3946
3944
|
}, [
|
|
3947
|
-
|
|
3945
|
+
U(a.$slots, "actions")
|
|
3948
3946
|
], 2)) : $("", !0)
|
|
3949
3947
|
], 16)
|
|
3950
3948
|
])) : $("", !0)
|
|
@@ -3968,7 +3966,7 @@ const ja = {
|
|
|
3968
3966
|
onAfterLeave: t
|
|
3969
3967
|
}, {
|
|
3970
3968
|
default: Q(() => [
|
|
3971
|
-
|
|
3969
|
+
U(s.$slots, "default")
|
|
3972
3970
|
]),
|
|
3973
3971
|
_: 3
|
|
3974
3972
|
}));
|
|
@@ -4015,15 +4013,15 @@ const ja = {
|
|
|
4015
4013
|
}),
|
|
4016
4014
|
a[3] || (a[3] = f()),
|
|
4017
4015
|
y(t).title ? (u(), p("div", Wa, [
|
|
4018
|
-
|
|
4016
|
+
U(l.$slots, "title")
|
|
4019
4017
|
])) : $("", !0),
|
|
4020
4018
|
a[4] || (a[4] = f()),
|
|
4021
4019
|
v("div", qa, [
|
|
4022
|
-
|
|
4020
|
+
U(l.$slots, "default")
|
|
4023
4021
|
]),
|
|
4024
4022
|
a[5] || (a[5] = f()),
|
|
4025
4023
|
y(t).actions ? (u(), p("div", Ka, [
|
|
4026
|
-
|
|
4024
|
+
U(l.$slots, "actions")
|
|
4027
4025
|
])) : $("", !0)
|
|
4028
4026
|
], 16)) : $("", !0)
|
|
4029
4027
|
]),
|
|
@@ -4295,7 +4293,7 @@ const ld = { key: 0 }, id = { class: "pl-log-view__copy" }, ad = {
|
|
|
4295
4293
|
f(M(s.option.label), 1)
|
|
4296
4294
|
]),
|
|
4297
4295
|
default: Q(() => [
|
|
4298
|
-
|
|
4296
|
+
U(s.$slots, "default"),
|
|
4299
4297
|
o[0] || (o[0] = f())
|
|
4300
4298
|
]),
|
|
4301
4299
|
_: 3
|
|
@@ -4328,7 +4326,7 @@ const ld = { key: 0 }, id = { class: "pl-log-view__copy" }, ad = {
|
|
|
4328
4326
|
onClick: (a) => s(i.value)
|
|
4329
4327
|
}, {
|
|
4330
4328
|
default: Q(() => [
|
|
4331
|
-
|
|
4329
|
+
U(o.$slots, i.value, { option: i }, () => [
|
|
4332
4330
|
v("span", null, M(i.label), 1)
|
|
4333
4331
|
])
|
|
4334
4332
|
]),
|
|
@@ -4348,7 +4346,7 @@ const ld = { key: 0 }, id = { class: "pl-log-view__copy" }, ad = {
|
|
|
4348
4346
|
v("div", {
|
|
4349
4347
|
class: E(e.$style.content)
|
|
4350
4348
|
}, [
|
|
4351
|
-
|
|
4349
|
+
U(e.$slots, "default")
|
|
4352
4350
|
], 2)
|
|
4353
4351
|
], 2));
|
|
4354
4352
|
}
|
|
@@ -4369,9 +4367,9 @@ const ld = { key: 0 }, id = { class: "pl-log-view__copy" }, ad = {
|
|
|
4369
4367
|
setup(n) {
|
|
4370
4368
|
const e = mt(n, "modelValue"), t = n;
|
|
4371
4369
|
return Nt("pl-accordion-model", e), Nt("pl-accordion-props", It(t)), (s, o) => (u(), p(ae, null, [
|
|
4372
|
-
|
|
4370
|
+
U(s.$slots, "header"),
|
|
4373
4371
|
o[0] || (o[0] = f()),
|
|
4374
|
-
|
|
4372
|
+
U(s.$slots, "default")
|
|
4375
4373
|
], 64));
|
|
4376
4374
|
}
|
|
4377
4375
|
}), xd = /* @__PURE__ */ N({
|
|
@@ -4390,7 +4388,7 @@ const ld = { key: 0 }, id = { class: "pl-log-view__copy" }, ad = {
|
|
|
4390
4388
|
onAfterLeave: t
|
|
4391
4389
|
}, {
|
|
4392
4390
|
default: Q(() => [
|
|
4393
|
-
|
|
4391
|
+
U(s.$slots, "default")
|
|
4394
4392
|
]),
|
|
4395
4393
|
_: 3
|
|
4396
4394
|
}));
|
|
@@ -4436,7 +4434,7 @@ const ld = { key: 0 }, id = { class: "pl-log-view__copy" }, ad = {
|
|
|
4436
4434
|
key: 0,
|
|
4437
4435
|
class: E(l.$style.content)
|
|
4438
4436
|
}, [
|
|
4439
|
-
|
|
4437
|
+
U(l.$slots, "default")
|
|
4440
4438
|
], 2)) : $("", !0)
|
|
4441
4439
|
]),
|
|
4442
4440
|
_: 3
|
|
@@ -4644,7 +4642,7 @@ const eu = ["title", "onClick"], tu = {
|
|
|
4644
4642
|
_ && !s.multi || o.items.filter((h) => h.canBeSelected).forEach((h) => {
|
|
4645
4643
|
h.selected = _;
|
|
4646
4644
|
});
|
|
4647
|
-
},
|
|
4645
|
+
}, W = () => V(!0), B = () => V(!1), P = () => {
|
|
4648
4646
|
if (r(), B(), !window.platforma) {
|
|
4649
4647
|
console.warn("platforma API is not found");
|
|
4650
4648
|
return;
|
|
@@ -4676,7 +4674,7 @@ const eu = ["title", "onClick"], tu = {
|
|
|
4676
4674
|
if (!s.modelValue || _.target !== document.body)
|
|
4677
4675
|
return;
|
|
4678
4676
|
const h = t(_);
|
|
4679
|
-
h && _.code === "KeyA" && (_.preventDefault(),
|
|
4677
|
+
h && _.code === "KeyA" && (_.preventDefault(), W()), h && _.shiftKey && _.code === "Period" && (_.preventDefault(), o.showHiddenItems = !o.showHiddenItems), _.code === "Enter" && s.submit();
|
|
4680
4678
|
}), e({
|
|
4681
4679
|
isReady: w,
|
|
4682
4680
|
getFilesToImport: C
|
|
@@ -7936,14 +7934,14 @@ const _c = {
|
|
|
7936
7934
|
},
|
|
7937
7935
|
{ immediate: !0 }
|
|
7938
7936
|
);
|
|
7939
|
-
const
|
|
7940
|
-
return r.cellStyle || Ke(
|
|
7937
|
+
const W = F();
|
|
7938
|
+
return r.cellStyle || Ke(W), (B, P) => (u(), p(ae, null, [
|
|
7941
7939
|
v("div", {
|
|
7942
7940
|
class: E([{ "pl-file-input__cell-style": !!B.cellStyle, "has-file": !!l.value }, "pl-file-input__envelope"])
|
|
7943
7941
|
}, [
|
|
7944
7942
|
v("div", {
|
|
7945
7943
|
ref_key: "rootRef",
|
|
7946
|
-
ref:
|
|
7944
|
+
ref: W,
|
|
7947
7945
|
class: E(["pl-file-input", { dashed: B.dashed, error: k.value }]),
|
|
7948
7946
|
tabindex: "0",
|
|
7949
7947
|
onKeyup: Te(D, ["enter"]),
|
|
@@ -7965,7 +7963,7 @@ const _c = {
|
|
|
7965
7963
|
position: "top"
|
|
7966
7964
|
}, {
|
|
7967
7965
|
tooltip: Q(() => [
|
|
7968
|
-
y(s).tooltip ?
|
|
7966
|
+
y(s).tooltip ? U(B.$slots, "tooltip", { key: 0 }) : (u(), p(ae, { key: 1 }, [
|
|
7969
7967
|
f(M(a.value), 1)
|
|
7970
7968
|
], 64))
|
|
7971
7969
|
]),
|
|
@@ -8045,7 +8043,7 @@ const _c = {
|
|
|
8045
8043
|
}, [
|
|
8046
8044
|
v("div", Cc, [
|
|
8047
8045
|
v("div", Vc, [
|
|
8048
|
-
|
|
8046
|
+
U(o.$slots, "default")
|
|
8049
8047
|
]),
|
|
8050
8048
|
r[0] || (r[0] = f()),
|
|
8051
8049
|
o.closable ? (u(), p("div", Sc, [
|
|
@@ -8057,7 +8055,7 @@ const _c = {
|
|
|
8057
8055
|
]),
|
|
8058
8056
|
r[1] || (r[1] = f()),
|
|
8059
8057
|
o.$slots.actions ? (u(), p("div", Tc, [
|
|
8060
|
-
|
|
8058
|
+
U(o.$slots, "actions")
|
|
8061
8059
|
])) : $("", !0)
|
|
8062
8060
|
], 6)) : $("", !0);
|
|
8063
8061
|
}
|
|
@@ -8072,7 +8070,7 @@ const _c = {
|
|
|
8072
8070
|
return Nt(
|
|
8073
8071
|
e.contextKey,
|
|
8074
8072
|
g(() => e.context)
|
|
8075
|
-
), (t, s) =>
|
|
8073
|
+
), (t, s) => U(t.$slots, "default");
|
|
8076
8074
|
}
|
|
8077
8075
|
});
|
|
8078
8076
|
function ge(n, e, t) {
|
|
@@ -8140,16 +8138,16 @@ const Bn = (n) => g(() => {
|
|
|
8140
8138
|
r.deltaValue = A / S.width * i.value, a.value = V(ge((o.modelValue ?? 0) + r.deltaValue, o.min, o.max)), _.stop && (s("update:modelValue", V(l.value)), r.deltaValue = 0);
|
|
8141
8139
|
});
|
|
8142
8140
|
});
|
|
8143
|
-
function
|
|
8141
|
+
function W(_) {
|
|
8144
8142
|
s("update:modelValue", V(_));
|
|
8145
8143
|
}
|
|
8146
8144
|
function B(_) {
|
|
8147
|
-
|
|
8145
|
+
W(+_.target.value);
|
|
8148
8146
|
}
|
|
8149
8147
|
function P(_) {
|
|
8150
8148
|
["ArrowDown", "ArrowUp", "ArrowRight", "ArrowLeft", "Enter"].includes(_.code) && _.preventDefault();
|
|
8151
8149
|
const h = _.code === "ArrowUp" || _.code === "ArrowRight" ? o.step * 1 : _.code === "ArrowDown" || _.code === "ArrowLeft" ? o.step * -1 : 0;
|
|
8152
|
-
|
|
8150
|
+
W(o.modelValue + h);
|
|
8153
8151
|
}
|
|
8154
8152
|
return (_, h) => (u(), p("div", {
|
|
8155
8153
|
class: E([o.disabled ? "ui-slider__disabled" : void 0, "ui-slider__envelope"])
|
|
@@ -8168,7 +8166,7 @@ const Bn = (n) => g(() => {
|
|
|
8168
8166
|
position: "top"
|
|
8169
8167
|
}, {
|
|
8170
8168
|
tooltip: Q(() => [
|
|
8171
|
-
|
|
8169
|
+
U(_.$slots, "tooltip")
|
|
8172
8170
|
]),
|
|
8173
8171
|
_: 3
|
|
8174
8172
|
})) : $("", !0)
|
|
@@ -8331,12 +8329,12 @@ function iv(n, e) {
|
|
|
8331
8329
|
}
|
|
8332
8330
|
const D = w.map((h) => gt(h)), I = gt(C);
|
|
8333
8331
|
(_ = n.value) == null || _.replaceChildren(...w);
|
|
8334
|
-
const V = gt(C),
|
|
8335
|
-
for (let h = 0; h <
|
|
8332
|
+
const V = gt(C), W = w.map((h) => gt(h)), B = [];
|
|
8333
|
+
for (let h = 0; h < W.length; h++) {
|
|
8336
8334
|
const S = w[h];
|
|
8337
8335
|
if (S === t.item.el)
|
|
8338
8336
|
continue;
|
|
8339
|
-
const A =
|
|
8337
|
+
const A = W[h], R = D[h] - A;
|
|
8340
8338
|
S.style.transform = `translateY(${R}px)`, B.push(S);
|
|
8341
8339
|
}
|
|
8342
8340
|
const P = V - I;
|
|
@@ -8353,11 +8351,11 @@ function iv(n, e) {
|
|
|
8353
8351
|
return;
|
|
8354
8352
|
const { el: C } = t.item;
|
|
8355
8353
|
m(t.item, w.y);
|
|
8356
|
-
const D = gt(t.item.el), I = jc(t.item.el), V = l(C),
|
|
8354
|
+
const D = gt(t.item.el), I = jc(t.item.el), V = l(C), W = a(C);
|
|
8357
8355
|
V.forEach((B) => {
|
|
8358
8356
|
const P = qn(B);
|
|
8359
8357
|
D + o < P && k(d(B, C));
|
|
8360
|
-
}),
|
|
8358
|
+
}), W.forEach((B) => {
|
|
8361
8359
|
const P = qn(B);
|
|
8362
8360
|
I - o > P && k(c(B, C));
|
|
8363
8361
|
});
|
|
@@ -8504,13 +8502,13 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8504
8502
|
return [...o.modelValue].forEach((re) => {
|
|
8505
8503
|
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.");
|
|
8506
8504
|
}), ne.length > 0 ? ne.join(" ") : o.error;
|
|
8507
|
-
}), V = g(() => (w.value - o.min) / c.value),
|
|
8505
|
+
}), V = g(() => (w.value - o.min) / c.value), W = g(() => (C.value - o.min) / c.value), B = g(() => (D.value - o.min) / c.value), P = g(() => R()), _ = g(() => ({
|
|
8508
8506
|
right: P.value[0] + "%",
|
|
8509
8507
|
left: 100 - P.value[2] + "%"
|
|
8510
8508
|
})), h = g(() => ({
|
|
8511
8509
|
right: Math.ceil((1 - V.value) * 100) + "%"
|
|
8512
8510
|
})), S = g(() => ({
|
|
8513
|
-
right: Math.ceil((1 -
|
|
8511
|
+
right: Math.ceil((1 - W.value) * 100) + "%"
|
|
8514
8512
|
})), A = g(() => ({
|
|
8515
8513
|
right: Math.ceil((1 - B.value) * 100) + "%"
|
|
8516
8514
|
}));
|
|
@@ -8518,30 +8516,30 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8518
8516
|
var j;
|
|
8519
8517
|
ve((j = y(i)) == null ? void 0 : j.getBoundingClientRect(), (ne) => {
|
|
8520
8518
|
const { dx: re } = L;
|
|
8521
|
-
r.deltaValue1 = re / ne.width * c.value, l.value && Y(l.value, o.modelValue[0], r.deltaValue1), L.stop && (O([
|
|
8519
|
+
r.deltaValue1 = re / ne.width * c.value, l.value && Y(l.value, o.modelValue[0], r.deltaValue1), L.stop && (O([q(w.value), q(C.value), q(D.value)]), r.deltaValue1 = 0);
|
|
8522
8520
|
});
|
|
8523
8521
|
}), Ge(a, (L) => {
|
|
8524
8522
|
var j;
|
|
8525
8523
|
ve((j = y(i)) == null ? void 0 : j.getBoundingClientRect(), (ne) => {
|
|
8526
8524
|
const { dx: re } = L;
|
|
8527
|
-
r.deltaValue2 = re / ne.width * c.value, a.value && Y(a.value, o.modelValue[1], r.deltaValue2), L.stop && (O([
|
|
8525
|
+
r.deltaValue2 = re / ne.width * c.value, a.value && Y(a.value, o.modelValue[1], r.deltaValue2), L.stop && (O([q(w.value), q(C.value), q(D.value)]), r.deltaValue2 = 0);
|
|
8528
8526
|
});
|
|
8529
8527
|
}), Ge(d, (L) => {
|
|
8530
8528
|
var j;
|
|
8531
8529
|
ve((j = y(i)) == null ? void 0 : j.getBoundingClientRect(), (ne) => {
|
|
8532
8530
|
const { dx: re } = L;
|
|
8533
|
-
r.deltaValue3 = re / ne.width * c.value, d.value && Y(d.value, o.modelValue[2], r.deltaValue3), L.stop && (O([
|
|
8531
|
+
r.deltaValue3 = re / ne.width * c.value, d.value && Y(d.value, o.modelValue[2], r.deltaValue3), L.stop && (O([q(w.value), q(C.value), q(D.value)]), r.deltaValue3 = 0);
|
|
8534
8532
|
});
|
|
8535
8533
|
});
|
|
8536
8534
|
function Y(L, j, ne) {
|
|
8537
|
-
const re =
|
|
8535
|
+
const re = q(ge((j ?? 0) + ne, o.min, o.max));
|
|
8538
8536
|
L.dataset.percent = `${re}${o.measure}`, b();
|
|
8539
8537
|
}
|
|
8540
8538
|
function R() {
|
|
8541
|
-
const L = Math.ceil((1 - V.value) * 100), j = Math.ceil((1 -
|
|
8539
|
+
const L = Math.ceil((1 - V.value) * 100), j = Math.ceil((1 - W.value) * 100), ne = Math.ceil((1 - B.value) * 100);
|
|
8542
8540
|
return [L, j, ne].sort((re, Ye) => re - Ye);
|
|
8543
8541
|
}
|
|
8544
|
-
function
|
|
8542
|
+
function q(L) {
|
|
8545
8543
|
const j = ge(L, o.min, o.max);
|
|
8546
8544
|
return Math.round((j + Number.EPSILON) * (1 / o.step)) / (1 / o.step);
|
|
8547
8545
|
}
|
|
@@ -8580,7 +8578,7 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8580
8578
|
position: "top"
|
|
8581
8579
|
}, {
|
|
8582
8580
|
tooltip: Q(() => [
|
|
8583
|
-
|
|
8581
|
+
U(L.$slots, "tooltip")
|
|
8584
8582
|
]),
|
|
8585
8583
|
_: 3
|
|
8586
8584
|
})) : $("", !0)
|
|
@@ -8748,7 +8746,7 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8748
8746
|
const t = _e(), s = e, o = n, r = de({
|
|
8749
8747
|
deltaValue1: 0,
|
|
8750
8748
|
deltaValue2: 0
|
|
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)),
|
|
8749
|
+
}), 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)), W = g(() => {
|
|
8752
8750
|
const b = o.modelValue;
|
|
8753
8751
|
return Array.isArray(b) && b.length === 2 && b.every((L) => Number.isFinite(L)) ? o.error : "Expected model [number, number]";
|
|
8754
8752
|
}), B = g(() => (I.value - o.min) / D.value), P = g(() => (V.value - o.min) / D.value), _ = g(() => Y()), h = g(() => ({
|
|
@@ -8769,13 +8767,13 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8769
8767
|
var x;
|
|
8770
8768
|
ve((x = y(i)) == null ? void 0 : x.getBoundingClientRect(), (L) => {
|
|
8771
8769
|
const { dx: j } = b;
|
|
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 && (
|
|
8770
|
+
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 && (q([R(I.value), R(V.value)]), r.deltaValue1 = 0);
|
|
8773
8771
|
});
|
|
8774
8772
|
}), Ge(a, (b) => {
|
|
8775
8773
|
var x;
|
|
8776
8774
|
ve((x = y(i)) == null ? void 0 : x.getBoundingClientRect(), (L) => {
|
|
8777
8775
|
const { dx: j } = b;
|
|
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 && (
|
|
8776
|
+
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 && (q([R(I.value), R(V.value)]), r.deltaValue2 = 0);
|
|
8779
8777
|
});
|
|
8780
8778
|
});
|
|
8781
8779
|
function Y() {
|
|
@@ -8786,13 +8784,13 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8786
8784
|
const x = ge(b, o.min, o.max);
|
|
8787
8785
|
return Math.round((x + Number.EPSILON) * (1 / o.step)) / (1 / o.step);
|
|
8788
8786
|
}
|
|
8789
|
-
function
|
|
8787
|
+
function q(b) {
|
|
8790
8788
|
s("update:modelValue", b);
|
|
8791
8789
|
}
|
|
8792
8790
|
function O(b, x) {
|
|
8793
8791
|
["ArrowDown", "ArrowUp", "ArrowRight", "ArrowLeft", "Enter"].includes(b.code) && b.preventDefault();
|
|
8794
8792
|
const L = b.code === "ArrowUp" || b.code === "ArrowRight" ? o.step * 1 : b.code === "ArrowDown" || b.code === "ArrowLeft" ? o.step * -1 : 0, j = [...o.modelValue];
|
|
8795
|
-
j[x] = ge(j[x] + L, o.min, o.max),
|
|
8793
|
+
j[x] = ge(j[x] + L, o.min, o.max), q(j);
|
|
8796
8794
|
}
|
|
8797
8795
|
return (b, x) => (u(), p("div", {
|
|
8798
8796
|
class: E([o.disabled ? "ui-slider__disabled" : void 0, "ui-slider__envelope"])
|
|
@@ -8811,7 +8809,7 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8811
8809
|
position: "top"
|
|
8812
8810
|
}, {
|
|
8813
8811
|
tooltip: Q(() => [
|
|
8814
|
-
|
|
8812
|
+
U(b.$slots, "tooltip")
|
|
8815
8813
|
]),
|
|
8816
8814
|
_: 3
|
|
8817
8815
|
})) : $("", !0)
|
|
@@ -8872,12 +8870,12 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
8872
8870
|
modelValue: d.value,
|
|
8873
8871
|
"onUpdate:modelValue": x[2] || (x[2] = (L) => d.value = L),
|
|
8874
8872
|
class: "ui-focused-border",
|
|
8875
|
-
onChange:
|
|
8873
|
+
onChange: q
|
|
8876
8874
|
}, null, 8, ["modelValue"])) : $("", !0)
|
|
8877
8875
|
])
|
|
8878
8876
|
], 2),
|
|
8879
8877
|
x[12] || (x[12] = f()),
|
|
8880
|
-
|
|
8878
|
+
W.value ? (u(), p("div", ip, M(W.value), 1)) : $("", !0)
|
|
8881
8879
|
], 2));
|
|
8882
8880
|
}
|
|
8883
8881
|
}), ap = /* @__PURE__ */ N({
|
|
@@ -9000,7 +8998,7 @@ const Nc = { class: "ui-slider__wrapper" }, zc = { class: "ui-slider__label-sect
|
|
|
9000
8998
|
class: "ui-scrollable__container",
|
|
9001
8999
|
onWheel: o
|
|
9002
9000
|
}, [
|
|
9003
|
-
|
|
9001
|
+
U(l.$slots, "default")
|
|
9004
9002
|
], 544),
|
|
9005
9003
|
a[2] || (a[2] = f()),
|
|
9006
9004
|
J(ap, {
|