@teammodlr/ui-kit 2.1.29 → 2.1.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/lib/index.cjs.js +1 -1
- package/lib/index.es.js +66 -66
- package/package.json +1 -1
- package/src/components/select/Select.vue +2 -2
package/lib/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, renderSlot as L, ref as b, watch as q, computed as p, openBlock as v, createElementBlock as y, normalizeClass as h, normalizeStyle as re, inject as fe, onMounted as pe, resolveComponent as le, createBlock as ne, mergeProps as $e, reactive as
|
|
1
|
+
import { defineComponent as P, renderSlot as L, ref as b, watch as q, computed as p, openBlock as v, createElementBlock as y, normalizeClass as h, normalizeStyle as re, inject as fe, onMounted as pe, resolveComponent as le, createBlock as ne, mergeProps as $e, reactive as Ie, toRef as X, provide as Se, Fragment as Q, renderList as he, createElementVNode as T, createVNode as J, withCtx as Z, createTextVNode as ie, toDisplayString as W, createCommentVNode as N, onBeforeUnmount as It, resolveDynamicComponent as rn, readonly as oo, onUnmounted as dr, withDirectives as _t, vModelCheckbox as cr, getCurrentScope as so, onScopeDispose as lo, unref as an, isRef as io, toRefs as uo, customRef as co, getCurrentInstance as fr, watchEffect as ct, nextTick as Ge, toHandlers as ft, Teleport as Le, Transition as Je, withModifiers as Oe, withKeys as nt, shallowRef as Nt, TransitionGroup as fo, vModelRadio as po, vModelText as vo, toRaw as Mn, onActivated as mo, onDeactivated as ho, h as rt } from "vue";
|
|
2
2
|
const go = {
|
|
3
3
|
h: {
|
|
4
4
|
type: Function,
|
|
@@ -172,7 +172,7 @@ const Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
setup(e) {
|
|
175
|
-
const t =
|
|
175
|
+
const t = Ie({
|
|
176
176
|
size: X(e, "size"),
|
|
177
177
|
rounded: X(e, "rounded"),
|
|
178
178
|
max: X(e, "max")
|
|
@@ -279,7 +279,7 @@ const qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
279
279
|
Array.from(t).forEach((s, o) => {
|
|
280
280
|
s.label || (s.label = o + 1);
|
|
281
281
|
});
|
|
282
|
-
}, r =
|
|
282
|
+
}, r = Ie({
|
|
283
283
|
separator: X(e, "seperator"),
|
|
284
284
|
refreshItems: n
|
|
285
285
|
}), a = p(() => [
|
|
@@ -508,7 +508,7 @@ const gs = P({
|
|
|
508
508
|
}
|
|
509
509
|
},
|
|
510
510
|
setup(e) {
|
|
511
|
-
const t =
|
|
511
|
+
const t = Ie({
|
|
512
512
|
size: X(e, "size")
|
|
513
513
|
});
|
|
514
514
|
return Se(yr, t), {
|
|
@@ -777,7 +777,7 @@ const Tr = /* @__PURE__ */ V(Ms, [["render", Es]]);
|
|
|
777
777
|
function As(e) {
|
|
778
778
|
return so() ? (lo(e), !0) : !1;
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function Ae(e) {
|
|
781
781
|
return typeof e == "function" ? e() : an(e);
|
|
782
782
|
}
|
|
783
783
|
const sn = typeof window < "u" && typeof document < "u", Rs = Object.prototype.toString, zs = (e) => Rs.call(e) === "[object Object]", Xt = () => {
|
|
@@ -797,7 +797,7 @@ function js(e, t = {}) {
|
|
|
797
797
|
},
|
|
798
798
|
set(a) {
|
|
799
799
|
var s;
|
|
800
|
-
if ((s =
|
|
800
|
+
if ((s = Ae(t.replaceRef)) != null ? s : !0)
|
|
801
801
|
if (Array.isArray(e.value)) {
|
|
802
802
|
const l = [...e.value];
|
|
803
803
|
l[r] = a, e.value = l;
|
|
@@ -813,7 +813,7 @@ function js(e, t = {}) {
|
|
|
813
813
|
}
|
|
814
814
|
function Ve(e) {
|
|
815
815
|
var t;
|
|
816
|
-
const n =
|
|
816
|
+
const n = Ae(e);
|
|
817
817
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
818
818
|
}
|
|
819
819
|
const Qe = sn ? window : void 0;
|
|
@@ -825,7 +825,7 @@ function te(...e) {
|
|
|
825
825
|
const s = [], o = () => {
|
|
826
826
|
s.forEach((d) => d()), s.length = 0;
|
|
827
827
|
}, l = (d, c, f, m) => (d.addEventListener(c, f, m), () => d.removeEventListener(c, f, m)), i = q(
|
|
828
|
-
() => [Ve(t),
|
|
828
|
+
() => [Ve(t), Ae(a)],
|
|
829
829
|
([d, c]) => {
|
|
830
830
|
if (o(), !d)
|
|
831
831
|
return;
|
|
@@ -905,14 +905,14 @@ function Ps(e, t = {}) {
|
|
|
905
905
|
containerElement: g,
|
|
906
906
|
handle: O = e
|
|
907
907
|
} = t, k = b(
|
|
908
|
-
(n =
|
|
908
|
+
(n = Ae(c)) != null ? n : { x: 0, y: 0 }
|
|
909
909
|
), M = b(), B = (A) => a ? a.includes(A.pointerType) : !0, R = (A) => {
|
|
910
|
-
|
|
910
|
+
Ae(s) && A.preventDefault(), Ae(o) && A.stopPropagation();
|
|
911
911
|
}, C = (A) => {
|
|
912
912
|
var _;
|
|
913
|
-
if (!B(A) ||
|
|
913
|
+
if (!B(A) || Ae(l) && A.target !== Ae(e))
|
|
914
914
|
return;
|
|
915
|
-
const z = ((_ =
|
|
915
|
+
const z = ((_ = Ae(g)) != null ? _ : Ae(e)).getBoundingClientRect(), $ = {
|
|
916
916
|
x: A.clientX - z.left,
|
|
917
917
|
y: A.clientY - z.top
|
|
918
918
|
};
|
|
@@ -1122,7 +1122,7 @@ var ge = "top", Te = "bottom", Me = "right", ye = "left", un = "auto", pt = [ge,
|
|
|
1122
1122
|
}, []), Rr = /* @__PURE__ */ [].concat(pt, [un]).reduce(function(e, t) {
|
|
1123
1123
|
return e.concat([t, t + "-" + Ue, t + "-" + it]);
|
|
1124
1124
|
}, []), ol = "beforeRead", sl = "read", ll = "afterRead", il = "beforeMain", ul = "main", dl = "afterMain", cl = "beforeWrite", fl = "write", pl = "afterWrite", vl = [ol, sl, ll, il, ul, dl, cl, fl, pl];
|
|
1125
|
-
function
|
|
1125
|
+
function ze(e) {
|
|
1126
1126
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
1127
1127
|
}
|
|
1128
1128
|
function we(e) {
|
|
@@ -1152,7 +1152,7 @@ function ml(e) {
|
|
|
1152
1152
|
var t = e.state;
|
|
1153
1153
|
Object.keys(t.elements).forEach(function(n) {
|
|
1154
1154
|
var r = t.styles[n] || {}, a = t.attributes[n] || {}, s = t.elements[n];
|
|
1155
|
-
!Ce(s) || !
|
|
1155
|
+
!Ce(s) || !ze(s) || (Object.assign(s.style, r), Object.keys(a).forEach(function(o) {
|
|
1156
1156
|
var l = a[o];
|
|
1157
1157
|
l === !1 ? s.removeAttribute(o) : s.setAttribute(o, l === !0 ? "" : l);
|
|
1158
1158
|
}));
|
|
@@ -1176,7 +1176,7 @@ function hl(e) {
|
|
|
1176
1176
|
var a = t.elements[r], s = t.attributes[r] || {}, o = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), l = o.reduce(function(i, u) {
|
|
1177
1177
|
return i[u] = "", i;
|
|
1178
1178
|
}, {});
|
|
1179
|
-
!Ce(a) || !
|
|
1179
|
+
!Ce(a) || !ze(a) || (Object.assign(a.style, l), Object.keys(s).forEach(function(i) {
|
|
1180
1180
|
a.removeAttribute(i);
|
|
1181
1181
|
}));
|
|
1182
1182
|
});
|
|
@@ -1190,7 +1190,7 @@ const gl = {
|
|
|
1190
1190
|
effect: hl,
|
|
1191
1191
|
requires: ["computeStyles"]
|
|
1192
1192
|
};
|
|
1193
|
-
function
|
|
1193
|
+
function Re(e) {
|
|
1194
1194
|
return e.split("-")[0];
|
|
1195
1195
|
}
|
|
1196
1196
|
var Ne = Math.max, At = Math.min, Xe = Math.round;
|
|
@@ -1246,7 +1246,7 @@ function je(e) {
|
|
|
1246
1246
|
return we(e).getComputedStyle(e);
|
|
1247
1247
|
}
|
|
1248
1248
|
function yl(e) {
|
|
1249
|
-
return ["table", "td", "th"].indexOf(
|
|
1249
|
+
return ["table", "td", "th"].indexOf(ze(e)) >= 0;
|
|
1250
1250
|
}
|
|
1251
1251
|
function De(e) {
|
|
1252
1252
|
return ((We(e) ? e.ownerDocument : (
|
|
@@ -1255,7 +1255,7 @@ function De(e) {
|
|
|
1255
1255
|
)) || window.document).documentElement;
|
|
1256
1256
|
}
|
|
1257
1257
|
function Lt(e) {
|
|
1258
|
-
return
|
|
1258
|
+
return ze(e) === "html" ? e : (
|
|
1259
1259
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
1260
1260
|
// $FlowFixMe[incompatible-return]
|
|
1261
1261
|
// $FlowFixMe[prop-missing]
|
|
@@ -1278,7 +1278,7 @@ function bl(e) {
|
|
|
1278
1278
|
return null;
|
|
1279
1279
|
}
|
|
1280
1280
|
var a = Lt(e);
|
|
1281
|
-
for (dn(a) && (a = a.host); Ce(a) && ["html", "body"].indexOf(
|
|
1281
|
+
for (dn(a) && (a = a.host); Ce(a) && ["html", "body"].indexOf(ze(a)) < 0; ) {
|
|
1282
1282
|
var s = je(a);
|
|
1283
1283
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
|
|
1284
1284
|
return a;
|
|
@@ -1289,7 +1289,7 @@ function bl(e) {
|
|
|
1289
1289
|
function vt(e) {
|
|
1290
1290
|
for (var t = we(e), n = An(e); n && yl(n) && je(n).position === "static"; )
|
|
1291
1291
|
n = An(n);
|
|
1292
|
-
return n && (
|
|
1292
|
+
return n && (ze(n) === "html" || ze(n) === "body" && je(n).position === "static") ? t : n || bl(e) || t;
|
|
1293
1293
|
}
|
|
1294
1294
|
function fn(e) {
|
|
1295
1295
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
@@ -1323,7 +1323,7 @@ var $l = function(t, n) {
|
|
|
1323
1323
|
})) : t, jr(typeof t != "number" ? t : Lr(t, pt));
|
|
1324
1324
|
};
|
|
1325
1325
|
function kl(e) {
|
|
1326
|
-
var t, n = e.state, r = e.name, a = e.options, s = n.elements.arrow, o = n.modifiersData.popperOffsets, l =
|
|
1326
|
+
var t, n = e.state, r = e.name, a = e.options, s = n.elements.arrow, o = n.modifiersData.popperOffsets, l = Re(n.placement), i = fn(l), u = [ye, Me].indexOf(l) >= 0, d = u ? "height" : "width";
|
|
1327
1327
|
if (!(!s || !o)) {
|
|
1328
1328
|
var c = $l(a.padding, n), f = cn(s), m = i === "y" ? ge : ye, g = i === "y" ? Te : Me, O = n.rects.reference[d] + n.rects.reference[i] - o[i] - n.rects.popper[d], k = o[i] - n.rects.reference[i], M = vt(s), B = M ? i === "y" ? M.clientHeight || 0 : M.clientWidth || 0 : 0, R = O / 2 - k / 2, C = c[m], w = B - f[d] - c[g], E = B / 2 - f[d] / 2 + R, A = ot(C, E, w), _ = i;
|
|
1329
1329
|
n.modifiersData[r] = (t = {}, t[_] = A, t.centerOffset = A - E, t);
|
|
@@ -1404,7 +1404,7 @@ function Rn(e) {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
function Ol(e) {
|
|
1406
1406
|
var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, s = n.adaptive, o = s === void 0 ? !0 : s, l = n.roundOffsets, i = l === void 0 ? !0 : l, u = {
|
|
1407
|
-
placement:
|
|
1407
|
+
placement: Re(t.placement),
|
|
1408
1408
|
variation: Ze(t.placement),
|
|
1409
1409
|
popper: t.elements.popper,
|
|
1410
1410
|
popperRect: t.rects.popper,
|
|
@@ -1512,7 +1512,7 @@ function mn(e) {
|
|
|
1512
1512
|
return /auto|scroll|overlay|hidden/.test(n + a + r);
|
|
1513
1513
|
}
|
|
1514
1514
|
function Dr(e) {
|
|
1515
|
-
return ["html", "body", "#document"].indexOf(
|
|
1515
|
+
return ["html", "body", "#document"].indexOf(ze(e)) >= 0 ? e.ownerDocument.body : Ce(e) && mn(e) ? e : Dr(Lt(e));
|
|
1516
1516
|
}
|
|
1517
1517
|
function st(e, t) {
|
|
1518
1518
|
var n;
|
|
@@ -1541,7 +1541,7 @@ function In(e, t, n) {
|
|
|
1541
1541
|
function Ll(e) {
|
|
1542
1542
|
var t = st(Lt(e)), n = ["absolute", "fixed"].indexOf(je(e).position) >= 0, r = n && Ce(e) ? vt(e) : e;
|
|
1543
1543
|
return We(r) ? t.filter(function(a) {
|
|
1544
|
-
return We(a) && Ir(a, r) &&
|
|
1544
|
+
return We(a) && Ir(a, r) && ze(a) !== "body";
|
|
1545
1545
|
}) : [];
|
|
1546
1546
|
}
|
|
1547
1547
|
function Dl(e, t, n, r) {
|
|
@@ -1552,7 +1552,7 @@ function Dl(e, t, n, r) {
|
|
|
1552
1552
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
1553
1553
|
}
|
|
1554
1554
|
function Pr(e) {
|
|
1555
|
-
var t = e.reference, n = e.element, r = e.placement, a = r ?
|
|
1555
|
+
var t = e.reference, n = e.element, r = e.placement, a = r ? Re(r) : null, s = r ? Ze(r) : null, o = t.x + t.width / 2 - n.width / 2, l = t.y + t.height / 2 - n.height / 2, i;
|
|
1556
1556
|
switch (a) {
|
|
1557
1557
|
case ge:
|
|
1558
1558
|
i = {
|
|
@@ -1634,14 +1634,14 @@ function Pl(e, t) {
|
|
|
1634
1634
|
boundary: a,
|
|
1635
1635
|
rootBoundary: s,
|
|
1636
1636
|
padding: o
|
|
1637
|
-
})[
|
|
1637
|
+
})[Re(O)], g;
|
|
1638
1638
|
}, {});
|
|
1639
1639
|
return Object.keys(m).sort(function(g, O) {
|
|
1640
1640
|
return m[g] - m[O];
|
|
1641
1641
|
});
|
|
1642
1642
|
}
|
|
1643
1643
|
function Vl(e) {
|
|
1644
|
-
if (
|
|
1644
|
+
if (Re(e) === un)
|
|
1645
1645
|
return [];
|
|
1646
1646
|
var t = Mt(e);
|
|
1647
1647
|
return [zn(e), t, zn(t)];
|
|
@@ -1649,8 +1649,8 @@ function Vl(e) {
|
|
|
1649
1649
|
function Nl(e) {
|
|
1650
1650
|
var t = e.state, n = e.options, r = e.name;
|
|
1651
1651
|
if (!t.modifiersData[r]._skip) {
|
|
1652
|
-
for (var a = n.mainAxis, s = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, i = n.fallbackPlacements, u = n.padding, d = n.boundary, c = n.rootBoundary, f = n.altBoundary, m = n.flipVariations, g = m === void 0 ? !0 : m, O = n.allowedAutoPlacements, k = t.options.placement, M =
|
|
1653
|
-
return
|
|
1652
|
+
for (var a = n.mainAxis, s = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, i = n.fallbackPlacements, u = n.padding, d = n.boundary, c = n.rootBoundary, f = n.altBoundary, m = n.flipVariations, g = m === void 0 ? !0 : m, O = n.allowedAutoPlacements, k = t.options.placement, M = Re(k), B = M === k, R = i || (B || !g ? [Mt(k)] : Vl(k)), C = [k].concat(R).reduce(function(_e, G) {
|
|
1653
|
+
return _e.concat(Re(G) === un ? Pl(t, {
|
|
1654
1654
|
placement: G,
|
|
1655
1655
|
boundary: d,
|
|
1656
1656
|
rootBoundary: c,
|
|
@@ -1659,7 +1659,7 @@ function Nl(e) {
|
|
|
1659
1659
|
allowedAutoPlacements: O
|
|
1660
1660
|
}) : G);
|
|
1661
1661
|
}, []), w = t.rects.reference, E = t.rects.popper, A = /* @__PURE__ */ new Map(), _ = !0, j = C[0], z = 0; z < C.length; z++) {
|
|
1662
|
-
var $ = C[z], S =
|
|
1662
|
+
var $ = C[z], S = Re($), D = Ze($) === Ue, H = [ge, Te].indexOf(S) >= 0, K = H ? "width" : "height", I = ut(t, {
|
|
1663
1663
|
placement: $,
|
|
1664
1664
|
boundary: d,
|
|
1665
1665
|
rootBoundary: c,
|
|
@@ -1668,8 +1668,8 @@ function Nl(e) {
|
|
|
1668
1668
|
}), x = H ? D ? Me : ye : D ? Te : ge;
|
|
1669
1669
|
w[K] > E[K] && (x = Mt(x));
|
|
1670
1670
|
var Y = Mt(x), ae = [];
|
|
1671
|
-
if (s && ae.push(I[S] <= 0), l && ae.push(I[x] <= 0, I[Y] <= 0), ae.every(function(
|
|
1672
|
-
return
|
|
1671
|
+
if (s && ae.push(I[S] <= 0), l && ae.push(I[x] <= 0, I[Y] <= 0), ae.every(function(_e) {
|
|
1672
|
+
return _e;
|
|
1673
1673
|
})) {
|
|
1674
1674
|
j = $, _ = !1;
|
|
1675
1675
|
break;
|
|
@@ -1745,7 +1745,7 @@ const Wl = {
|
|
|
1745
1745
|
fn: Hl
|
|
1746
1746
|
};
|
|
1747
1747
|
function xl(e, t, n) {
|
|
1748
|
-
var r =
|
|
1748
|
+
var r = Re(e), a = [ye, ge].indexOf(r) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, t, {
|
|
1749
1749
|
placement: e
|
|
1750
1750
|
})) : n, o = s[0], l = s[1];
|
|
1751
1751
|
return o = o || 0, l = (l || 0) * a, [ye, Me].indexOf(r) >= 0 ? {
|
|
@@ -1794,7 +1794,7 @@ function Yl(e) {
|
|
|
1794
1794
|
rootBoundary: u,
|
|
1795
1795
|
padding: c,
|
|
1796
1796
|
altBoundary: d
|
|
1797
|
-
}), M =
|
|
1797
|
+
}), M = Re(t.placement), B = Ze(t.placement), R = !B, C = fn(M), w = Xl(C), E = t.modifiersData.popperOffsets, A = t.rects.reference, _ = t.rects.popper, j = typeof O == "function" ? O(Object.assign({}, t.rects, {
|
|
1798
1798
|
placement: t.placement
|
|
1799
1799
|
})) : O, z = typeof j == "number" ? {
|
|
1800
1800
|
mainAxis: j,
|
|
@@ -1808,10 +1808,10 @@ function Yl(e) {
|
|
|
1808
1808
|
};
|
|
1809
1809
|
if (E) {
|
|
1810
1810
|
if (s) {
|
|
1811
|
-
var D, H = C === "y" ? ge : ye, K = C === "y" ? Te : Me, I = C === "y" ? "height" : "width", x = E[C], Y = x + k[H], ae = x - k[K], ue = m ? -_[I] / 2 : 0, be = B === Ue ? A[I] : _[I], se = B === Ue ? -_[I] : -A[I], ke = t.elements.arrow,
|
|
1811
|
+
var D, H = C === "y" ? ge : ye, K = C === "y" ? Te : Me, I = C === "y" ? "height" : "width", x = E[C], Y = x + k[H], ae = x - k[K], ue = m ? -_[I] / 2 : 0, be = B === Ue ? A[I] : _[I], se = B === Ue ? -_[I] : -A[I], ke = t.elements.arrow, _e = m && ke ? cn(ke) : {
|
|
1812
1812
|
width: 0,
|
|
1813
1813
|
height: 0
|
|
1814
|
-
}, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : _r(), de = G[H], ve = G[K], ce = ot(0, A[I],
|
|
1814
|
+
}, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : _r(), de = G[H], ve = G[K], ce = ot(0, A[I], _e[I]), xe = R ? A[I] / 2 - ue - ce - de - z.mainAxis : be - ce - de - z.mainAxis, Pt = R ? -A[I] / 2 + ue + ce + ve + z.mainAxis : se + ce + ve + z.mainAxis, tt = t.elements.arrow && vt(t.elements.arrow), F = tt ? C === "y" ? tt.clientTop || 0 : tt.clientLeft || 0 : 0, ee = (D = $ == null ? void 0 : $[C]) != null ? D : 0, U = x + xe - ee - F, Be = x + Pt - ee, Ke = ot(m ? At(Y, U) : Y, x, m ? Ne(ae, Be) : ae);
|
|
1815
1815
|
E[C] = Ke, S[C] = Ke - x;
|
|
1816
1816
|
}
|
|
1817
1817
|
if (l) {
|
|
@@ -1850,7 +1850,7 @@ function ti(e, t, n) {
|
|
|
1850
1850
|
x: 0,
|
|
1851
1851
|
y: 0
|
|
1852
1852
|
};
|
|
1853
|
-
return (r || !r && !n) && ((
|
|
1853
|
+
return (r || !r && !n) && ((ze(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1854
1854
|
mn(s)) && (l = Ql(t)), Ce(t) ? (i = Ye(t, !0), i.x += t.clientLeft, i.y += t.clientTop) : s && (i.x = vn(s))), {
|
|
1855
1855
|
x: o.left + l.scrollLeft - i.x,
|
|
1856
1856
|
y: o.top + l.scrollTop - i.y,
|
|
@@ -2437,7 +2437,7 @@ const Ur = /* @__PURE__ */ V(Ai, [["render", Ii]]), _i = P({
|
|
|
2437
2437
|
MButton: br
|
|
2438
2438
|
},
|
|
2439
2439
|
setup(e, { emit: t }) {
|
|
2440
|
-
const { isSupported: n, open: r, sRGBHex: a } = Vs(), { nextZIndex: s } = et(), o = b(!1), l = b(!1), i = b(""), u = b(""), d = b(""), c = b(""), f = b(""), m = b(), g = b(), O = b(), k = X(e, "transfer"), M = X(e, "placement"), B = b(), R = b(0), C = b(100), w = b(!1), E =
|
|
2440
|
+
const { isSupported: n, open: r, sRGBHex: a } = Vs(), { nextZIndex: s } = et(), o = b(!1), l = b(!1), i = b(""), u = b(""), d = b(""), c = b(""), f = b(""), m = b(), g = b(), O = b(), k = X(e, "transfer"), M = X(e, "placement"), B = b(), R = b(0), C = b(100), w = b(!1), E = Ie({
|
|
2441
2441
|
x: 0,
|
|
2442
2442
|
y: 0
|
|
2443
2443
|
}), A = b(e.zIndex ?? s()), { elementX: _, elementY: j } = Mr(m), { pressed: z } = Or(), { popper: $, transferTo: S, updatePopper: D } = Dt({
|
|
@@ -2604,7 +2604,7 @@ function Wi(e, t, n, r, a, s) {
|
|
|
2604
2604
|
T("div", {
|
|
2605
2605
|
class: h(e.style.sliderThumb),
|
|
2606
2606
|
onMousedown: t[1] || (t[1] = (...u) => e.handleMouseDown && e.handleMouseDown(...u)),
|
|
2607
|
-
onDragover: t[2] || (t[2] =
|
|
2607
|
+
onDragover: t[2] || (t[2] = Oe(() => {
|
|
2608
2608
|
}, ["prevent"])),
|
|
2609
2609
|
style: re({ left: `${e.position.x * 100}%`, top: `${e.position.y * 100}%` })
|
|
2610
2610
|
}, null, 38)
|
|
@@ -2696,7 +2696,7 @@ function Wi(e, t, n, r, a, s) {
|
|
|
2696
2696
|
}, null, 8, ["onKeyup", "onBlur", "modelValue"])),
|
|
2697
2697
|
J(i, {
|
|
2698
2698
|
icon: "",
|
|
2699
|
-
onClick: t[12] || (t[12] =
|
|
2699
|
+
onClick: t[12] || (t[12] = Oe((u) => e.rgbOrHex = !e.rgbOrHex, ["prevent"]))
|
|
2700
2700
|
}, {
|
|
2701
2701
|
default: Z(() => [
|
|
2702
2702
|
(v(), y("svg", Ni, Hi))
|
|
@@ -2828,7 +2828,7 @@ const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2828
2828
|
offset: a ? [-2, 2] : [0, 14]
|
|
2829
2829
|
}), k = Yr(s, d);
|
|
2830
2830
|
Se("dropdown-select", null);
|
|
2831
|
-
const M =
|
|
2831
|
+
const M = Ie({
|
|
2832
2832
|
handleSelect: C,
|
|
2833
2833
|
isOpen: o
|
|
2834
2834
|
});
|
|
@@ -3162,7 +3162,7 @@ const vu = P({
|
|
|
3162
3162
|
],
|
|
3163
3163
|
expose: ["submit"],
|
|
3164
3164
|
setup(e, { emit: t }) {
|
|
3165
|
-
const n = [], r =
|
|
3165
|
+
const n = [], r = Ie({
|
|
3166
3166
|
add: (i, u, d, c) => {
|
|
3167
3167
|
const f = n.find((m) => m.name === i);
|
|
3168
3168
|
f ? (f.focus = u, f.validate = d, f.setError = c) : n.push({
|
|
@@ -3221,7 +3221,7 @@ function mu(e, t, n, r, a, s) {
|
|
|
3221
3221
|
class: h([
|
|
3222
3222
|
e.computedClasses
|
|
3223
3223
|
]),
|
|
3224
|
-
onSubmit: t[0] || (t[0] =
|
|
3224
|
+
onSubmit: t[0] || (t[0] = Oe((...o) => e.submit && e.submit(...o), ["prevent"]))
|
|
3225
3225
|
}, [
|
|
3226
3226
|
L(e.$slots, "default", { loading: e.loading })
|
|
3227
3227
|
], 38);
|
|
@@ -3460,7 +3460,7 @@ const Wu = /* @__PURE__ */ V(Tu, [["render", Hu]]), xu = P({
|
|
|
3460
3460
|
};
|
|
3461
3461
|
Se("m-message", a);
|
|
3462
3462
|
function s(u, d) {
|
|
3463
|
-
const c = Math.random().toString(16).slice(2, 14), f =
|
|
3463
|
+
const c = Math.random().toString(16).slice(2, 14), f = Ie({
|
|
3464
3464
|
...d,
|
|
3465
3465
|
content: u,
|
|
3466
3466
|
key: c,
|
|
@@ -4231,7 +4231,7 @@ const Qd = P({
|
|
|
4231
4231
|
set(o) {
|
|
4232
4232
|
n(o);
|
|
4233
4233
|
}
|
|
4234
|
-
}), a =
|
|
4234
|
+
}), a = Ie({
|
|
4235
4235
|
size: X(e, "size"),
|
|
4236
4236
|
name: X(e, "name"),
|
|
4237
4237
|
modelValue: r,
|
|
@@ -4319,7 +4319,7 @@ function uc(e, t, n, r, a, s) {
|
|
|
4319
4319
|
]),
|
|
4320
4320
|
e.closeable ? (v(), y("button", {
|
|
4321
4321
|
key: 0,
|
|
4322
|
-
onClick: t[0] || (t[0] =
|
|
4322
|
+
onClick: t[0] || (t[0] = Oe((...o) => e.close && e.close(...o), ["stop"])),
|
|
4323
4323
|
class: h(e.style.close),
|
|
4324
4324
|
tabindex: "0"
|
|
4325
4325
|
}, [
|
|
@@ -4467,12 +4467,12 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4467
4467
|
throw new Error("Option value is undefined");
|
|
4468
4468
|
if (U[e.optionLabel] === void 0)
|
|
4469
4469
|
throw new Error("Option label is undefined");
|
|
4470
|
-
let
|
|
4471
|
-
return e.multiple && Array.isArray(S.value) ? Ke = S.value.includes(
|
|
4472
|
-
value:
|
|
4470
|
+
let Be = U[e.optionValue], Ke;
|
|
4471
|
+
return e.multiple && Array.isArray(S.value) ? Ke = S.value.includes(Be) : Ke = S.value === Be, {
|
|
4472
|
+
value: Be,
|
|
4473
4473
|
label: U[e.optionLabel],
|
|
4474
4474
|
active: Ke,
|
|
4475
|
-
onClick: () => ue(
|
|
4475
|
+
onClick: () => ue(Be)
|
|
4476
4476
|
};
|
|
4477
4477
|
});
|
|
4478
4478
|
return e.allowBlank && ee.unshift({
|
|
@@ -4487,11 +4487,11 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4487
4487
|
throw new Error("Option value is undefined");
|
|
4488
4488
|
if (ee[e.optionLabel] === void 0)
|
|
4489
4489
|
throw new Error("Option label is undefined");
|
|
4490
|
-
let U = ee[e.optionValue],
|
|
4491
|
-
return e.multiple && Array.isArray(S.value) ?
|
|
4490
|
+
let U = ee[e.optionValue], Be;
|
|
4491
|
+
return e.multiple && Array.isArray(S.value) ? Be = S.value.includes(U) : Be = S.value === U, {
|
|
4492
4492
|
value: U,
|
|
4493
4493
|
label: ee[e.optionLabel],
|
|
4494
|
-
active:
|
|
4494
|
+
active: Be,
|
|
4495
4495
|
onClick: () => ue(U)
|
|
4496
4496
|
};
|
|
4497
4497
|
});
|
|
@@ -4583,7 +4583,7 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4583
4583
|
break;
|
|
4584
4584
|
}
|
|
4585
4585
|
}
|
|
4586
|
-
const ke = p(() => `m-transition__${e.transitionName}`),
|
|
4586
|
+
const ke = p(() => `m-transition__${e.transitionName}`), _e = p(() => [
|
|
4587
4587
|
"m-select__container",
|
|
4588
4588
|
{
|
|
4589
4589
|
"m-form__input": R
|
|
@@ -4662,7 +4662,7 @@ const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4662
4662
|
computedOptions: I,
|
|
4663
4663
|
selectedIndex: i,
|
|
4664
4664
|
search: c,
|
|
4665
|
-
containerComputedClasses:
|
|
4665
|
+
containerComputedClasses: _e,
|
|
4666
4666
|
selectComputedClasses: de,
|
|
4667
4667
|
computedWrapperClasses: G,
|
|
4668
4668
|
computedConsistentWidth: K,
|
|
@@ -4725,8 +4725,8 @@ function Gc(e, t, n, r, a, s) {
|
|
|
4725
4725
|
"aria-disabled": e.disabled ? "true" : "false",
|
|
4726
4726
|
"aria-labelledby": `${e.id}-label`,
|
|
4727
4727
|
tabindex: "0",
|
|
4728
|
-
onFocusin: t[2] || (t[2] = (...l) => e.focusSelect && e.focusSelect(...l)),
|
|
4729
|
-
onClick: t[3] || (t[3] = (...l) => e.onSelectClick && e.onSelectClick(...l))
|
|
4728
|
+
onFocusin: t[2] || (t[2] = Oe((...l) => e.focusSelect && e.focusSelect(...l), ["stop"])),
|
|
4729
|
+
onClick: t[3] || (t[3] = Oe((...l) => e.onSelectClick && e.onSelectClick(...l), ["stop"]))
|
|
4730
4730
|
}), [
|
|
4731
4731
|
T("div", {
|
|
4732
4732
|
class: h(e.selectComputedClasses)
|
|
@@ -4789,7 +4789,7 @@ function Gc(e, t, n, r, a, s) {
|
|
|
4789
4789
|
[e.style.checkAllButton]: !0,
|
|
4790
4790
|
[e.style.checkAllButtonActive]: e.computedOptions.length > 0 && e.computedOptions.length === e.selected.length
|
|
4791
4791
|
}),
|
|
4792
|
-
onClick: t[0] || (t[0] =
|
|
4792
|
+
onClick: t[0] || (t[0] = Oe((...l) => e.toggleAllItems && e.toggleAllItems(...l), ["prevent"])),
|
|
4793
4793
|
"aria-description": "Select all items"
|
|
4794
4794
|
}, [
|
|
4795
4795
|
e.computedOptions.length > 0 && e.computedOptions.length === e.selected.length ? (v(), y("svg", Nc, Hc)) : N("", !0)
|
|
@@ -4818,7 +4818,7 @@ function Gc(e, t, n, r, a, s) {
|
|
|
4818
4818
|
[e.style.optionSelected]: l.active,
|
|
4819
4819
|
[e.style.optionFocused]: e.selectedIndex === i
|
|
4820
4820
|
}),
|
|
4821
|
-
onClick:
|
|
4821
|
+
onClick: Oe(l.onClick, ["prevent"]),
|
|
4822
4822
|
onHover: (u) => e.selectedIndex = i
|
|
4823
4823
|
}, [
|
|
4824
4824
|
T("span", {
|
|
@@ -4973,7 +4973,7 @@ const rf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4973
4973
|
function lf(e, t, n, r, a, s) {
|
|
4974
4974
|
return v(), y("label", {
|
|
4975
4975
|
class: h(e.style.base),
|
|
4976
|
-
onClick: t[1] || (t[1] =
|
|
4976
|
+
onClick: t[1] || (t[1] = Oe((...o) => e.toggle && e.toggle(...o), ["prevent"]))
|
|
4977
4977
|
}, [
|
|
4978
4978
|
_t(T("input", $e({
|
|
4979
4979
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.checked = o),
|
|
@@ -5020,7 +5020,7 @@ const uf = /* @__PURE__ */ V(af, [["render", lf]]), df = P({
|
|
|
5020
5020
|
tabsContentRef: b(null),
|
|
5021
5021
|
selectTab: (c) => {
|
|
5022
5022
|
},
|
|
5023
|
-
state:
|
|
5023
|
+
state: Ie({
|
|
5024
5024
|
active: ""
|
|
5025
5025
|
})
|
|
5026
5026
|
}), l = p(() => ({
|
|
@@ -5057,7 +5057,7 @@ function pf(e, t, n, r, a, s) {
|
|
|
5057
5057
|
type: "button",
|
|
5058
5058
|
ref: "tabRef",
|
|
5059
5059
|
class: h(e.computedTabClasses),
|
|
5060
|
-
onClick: t[0] || (t[0] =
|
|
5060
|
+
onClick: t[0] || (t[0] = Oe((...o) => e.handleClick && e.handleClick(...o), ["prevent"])),
|
|
5061
5061
|
disabled: e.disabled
|
|
5062
5062
|
}, [
|
|
5063
5063
|
L(e.$slots, "tab", {
|
|
@@ -5098,7 +5098,7 @@ const vf = /* @__PURE__ */ V(df, [["render", pf]]), mf = P({
|
|
|
5098
5098
|
ct(() => {
|
|
5099
5099
|
s.value = e.modelValue;
|
|
5100
5100
|
});
|
|
5101
|
-
const o =
|
|
5101
|
+
const o = Ie({
|
|
5102
5102
|
active: p(() => s.value)
|
|
5103
5103
|
}), l = p(() => ({
|
|
5104
5104
|
"m-tab-group": !0,
|
|
@@ -5352,7 +5352,7 @@ function Df(e, t, n, r, a, s) {
|
|
|
5352
5352
|
modelValue: e.selected,
|
|
5353
5353
|
"onUpdate:modelValue": t[0] || (t[0] = (O) => e.selected = O),
|
|
5354
5354
|
value: f,
|
|
5355
|
-
onClick: t[1] || (t[1] =
|
|
5355
|
+
onClick: t[1] || (t[1] = Oe(() => {
|
|
5356
5356
|
}, ["stop"]))
|
|
5357
5357
|
}, null, 8, ["modelValue", "value"])
|
|
5358
5358
|
]),
|
|
@@ -6693,7 +6693,7 @@ var He = function(e) {
|
|
|
6693
6693
|
return !0;
|
|
6694
6694
|
}
|
|
6695
6695
|
return !1;
|
|
6696
|
-
}, lt = typeof window < "u" ? window : {}, kt = /* @__PURE__ */ new WeakMap(), Zn = /auto|scroll/, Sv = /^tb|vertical/, Tv = /msie|trident/i.test(lt.navigator && lt.navigator.userAgent),
|
|
6696
|
+
}, lt = typeof window < "u" ? window : {}, kt = /* @__PURE__ */ new WeakMap(), Zn = /auto|scroll/, Sv = /^tb|vertical/, Tv = /msie|trident/i.test(lt.navigator && lt.navigator.userAgent), Ee = function(e) {
|
|
6697
6697
|
return parseFloat(e || "0");
|
|
6698
6698
|
}, qe = function(e, t, n) {
|
|
6699
6699
|
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new kv((n ? t : e) || 0, (n ? e : t) || 0);
|
|
@@ -6707,7 +6707,7 @@ var He = function(e) {
|
|
|
6707
6707
|
return kt.get(e);
|
|
6708
6708
|
if (qa(e))
|
|
6709
6709
|
return kt.set(e, Jn), Jn;
|
|
6710
|
-
var n = getComputedStyle(e), r = gn(e) && e.ownerSVGElement && e.getBBox(), a = !Tv && n.boxSizing === "border-box", s = Sv.test(n.writingMode || ""), o = !r && Zn.test(n.overflowY || ""), l = !r && Zn.test(n.overflowX || ""), i = r ? 0 :
|
|
6710
|
+
var n = getComputedStyle(e), r = gn(e) && e.ownerSVGElement && e.getBBox(), a = !Tv && n.boxSizing === "border-box", s = Sv.test(n.writingMode || ""), o = !r && Zn.test(n.overflowY || ""), l = !r && Zn.test(n.overflowX || ""), i = r ? 0 : Ee(n.paddingTop), u = r ? 0 : Ee(n.paddingRight), d = r ? 0 : Ee(n.paddingBottom), c = r ? 0 : Ee(n.paddingLeft), f = r ? 0 : Ee(n.borderTopWidth), m = r ? 0 : Ee(n.borderRightWidth), g = r ? 0 : Ee(n.borderBottomWidth), O = r ? 0 : Ee(n.borderLeftWidth), k = c + u, M = i + d, B = O + m, R = f + g, C = l ? e.offsetHeight - R - e.clientHeight : 0, w = o ? e.offsetWidth - B - e.clientWidth : 0, E = a ? k + B : 0, A = a ? M + R : 0, _ = r ? r.width : Ee(n.width) - E - w, j = r ? r.height : Ee(n.height) - A - C, z = _ + k + w + B, $ = j + M + C + R, S = He({
|
|
6711
6711
|
devicePixelContentBoxSize: qe(Math.round(_ * devicePixelRatio), Math.round(j * devicePixelRatio), s),
|
|
6712
6712
|
borderBoxSize: qe(z, $, s),
|
|
6713
6713
|
contentBoxSize: qe(_, j, s),
|
package/package.json
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
:aria-disabled="disabled ? 'true' : 'false'"
|
|
16
16
|
:aria-labelledby="`${id}-label`"
|
|
17
17
|
tabindex="0"
|
|
18
|
-
@focusin="focusSelect"
|
|
19
|
-
@click="onSelectClick">
|
|
18
|
+
@focusin.stop="focusSelect"
|
|
19
|
+
@click.stop="onSelectClick">
|
|
20
20
|
<div :class="selectComputedClasses">
|
|
21
21
|
<template
|
|
22
22
|
v-if="
|