prlg-ui 1.8.37 → 1.8.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icons/index.cjs.js +1 -1
- package/dist/icons/index.es.js +245 -229
- package/dist/icons.d.ts +2 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.es.js +76 -74
- package/package.json +1 -1
package/dist/prlg-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, computed as M, resolveComponent as oo, createBlock as N, openBlock as d, resolveDynamicComponent as Ie, normalizeClass as O, withCtx as J, createCommentVNode as A, createElementBlock as m, renderSlot as Z, Fragment as se, createTextVNode as pe, toDisplayString as q, ref as _, useTemplateRef as
|
|
1
|
+
import { defineComponent as z, computed as M, resolveComponent as oo, createBlock as N, openBlock as d, resolveDynamicComponent as Ie, normalizeClass as O, withCtx as J, createCommentVNode as A, createElementBlock as m, renderSlot as Z, Fragment as se, createTextVNode as pe, toDisplayString as q, ref as _, useTemplateRef as qe, onMounted as ge, createElementVNode as w, createVNode as W, renderList as me, unref as g, mergeModels as ee, useModel as re, withDirectives as xe, vModelCheckbox as Ct, shallowRef as Te, watch as oe, getCurrentScope as Vo, onScopeDispose as Mo, shallowReadonly as He, toRefs as To, useId as Ke, onUnmounted as Le, Transition as Ae, normalizeStyle as ne, nextTick as ce, withModifiers as De, vModelRadio as _o, vModelText as rt, provide as ke, toRef as Fe, useSlots as lo, inject as ve, vModelDynamic as Ao, toValue as Ge, isRef as Bo, createStaticVNode as Do, Teleport as it, reactive as no, TransitionGroup as Oo, vShow as ao, createApp as Lo } from "vue";
|
|
2
2
|
import { P as so, j as Eo, k as zo, I as Pt, A as Ho, f as xt, C as Go, a as Fo, b as ro, h as No, M as qo, S as Yo, i as jo, c as Wo, d as Uo, E as Ko, B as Xo, e as Zo, W as Qo, g as Jo } from "./WarningFillIcon-THHKSchs.js";
|
|
3
3
|
import { o as el, d as Q } from "./parseFileSize.util-CxVk4CvB.js";
|
|
4
4
|
import { _ as ue, C as Rt, a as tl } from "./FileIcon-maHE2Nhr.js";
|
|
@@ -64,7 +64,7 @@ const ll = {
|
|
|
64
64
|
size: { default: "default" }
|
|
65
65
|
},
|
|
66
66
|
setup(e) {
|
|
67
|
-
const t = _(!1), o =
|
|
67
|
+
const t = _(!1), o = qe("menuRef"), s = qe("targetRef"), n = () => {
|
|
68
68
|
t.value = !t.value;
|
|
69
69
|
}, r = (l) => {
|
|
70
70
|
l.command && l.command(), t.value = !1;
|
|
@@ -246,7 +246,7 @@ const ll = {
|
|
|
246
246
|
}, null, 8, ["class"])
|
|
247
247
|
]));
|
|
248
248
|
}
|
|
249
|
-
}), gl = /* @__PURE__ */ ue(ml, [["__scopeId", "data-v-6bf78a73"]]), hl = ["top", "right", "bottom", "left"], Ze = Math.min,
|
|
249
|
+
}), gl = /* @__PURE__ */ ue(ml, [["__scopeId", "data-v-6bf78a73"]]), hl = ["top", "right", "bottom", "left"], Ze = Math.min, Ye = Math.max, ot = Math.round, Re = (e) => ({
|
|
250
250
|
x: e,
|
|
251
251
|
y: e
|
|
252
252
|
}), yl = {
|
|
@@ -259,7 +259,7 @@ const ll = {
|
|
|
259
259
|
end: "start"
|
|
260
260
|
};
|
|
261
261
|
function yt(e, t, o) {
|
|
262
|
-
return
|
|
262
|
+
return Ye(e, Ze(t, o));
|
|
263
263
|
}
|
|
264
264
|
function Xe(e, t) {
|
|
265
265
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -787,7 +787,7 @@ const Bl = function(e) {
|
|
|
787
787
|
function ct() {
|
|
788
788
|
return typeof window < "u";
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Ee(e) {
|
|
791
791
|
return Tt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
792
792
|
}
|
|
793
793
|
function be(e) {
|
|
@@ -822,7 +822,7 @@ function tt(e) {
|
|
|
822
822
|
}
|
|
823
823
|
const Ll = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
824
824
|
function El(e) {
|
|
825
|
-
return Ll.has(
|
|
825
|
+
return Ll.has(Ee(e));
|
|
826
826
|
}
|
|
827
827
|
const zl = [":popover-open", ":modal"];
|
|
828
828
|
function dt(e) {
|
|
@@ -841,7 +841,7 @@ function _t(e) {
|
|
|
841
841
|
}
|
|
842
842
|
function Nl(e) {
|
|
843
843
|
let t = Be(e);
|
|
844
|
-
for (; Ve(t) && !
|
|
844
|
+
for (; Ve(t) && !Ue(t); ) {
|
|
845
845
|
if (_t(t))
|
|
846
846
|
return t;
|
|
847
847
|
if (dt(t))
|
|
@@ -854,8 +854,8 @@ function At() {
|
|
|
854
854
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
855
855
|
}
|
|
856
856
|
const ql = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
857
|
-
function
|
|
858
|
-
return ql.has(
|
|
857
|
+
function Ue(e) {
|
|
858
|
+
return ql.has(Ee(e));
|
|
859
859
|
}
|
|
860
860
|
function Pe(e) {
|
|
861
861
|
return be(e).getComputedStyle(e);
|
|
@@ -870,7 +870,7 @@ function ft(e) {
|
|
|
870
870
|
};
|
|
871
871
|
}
|
|
872
872
|
function Be(e) {
|
|
873
|
-
if (
|
|
873
|
+
if (Ee(e) === "html")
|
|
874
874
|
return e;
|
|
875
875
|
const t = (
|
|
876
876
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -883,7 +883,7 @@ function Be(e) {
|
|
|
883
883
|
}
|
|
884
884
|
function co(e) {
|
|
885
885
|
const t = Be(e);
|
|
886
|
-
return
|
|
886
|
+
return Ue(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ve(t) && tt(t) ? t : co(t);
|
|
887
887
|
}
|
|
888
888
|
function fo(e, t, o) {
|
|
889
889
|
var s;
|
|
@@ -907,7 +907,7 @@ function vo(e) {
|
|
|
907
907
|
function po(e) {
|
|
908
908
|
return Ce(e) ? e : e.contextElement;
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function je(e) {
|
|
911
911
|
const t = po(e);
|
|
912
912
|
if (!Ve(t))
|
|
913
913
|
return Re(1);
|
|
@@ -937,14 +937,14 @@ function Qe(e, t, o, s) {
|
|
|
937
937
|
t === void 0 && (t = !1), o === void 0 && (o = !1);
|
|
938
938
|
const n = e.getBoundingClientRect(), r = po(e);
|
|
939
939
|
let l = Re(1);
|
|
940
|
-
t && (s ? Ce(s) && (l =
|
|
940
|
+
t && (s ? Ce(s) && (l = je(s)) : l = je(e));
|
|
941
941
|
const a = jl(r, o, s) ? mo(r) : Re(0);
|
|
942
942
|
let i = (n.left + a.x) / l.x, u = (n.top + a.y) / l.y, c = n.width / l.x, p = n.height / l.y;
|
|
943
943
|
if (r) {
|
|
944
944
|
const f = be(r), y = s && Ce(s) ? be(s) : s;
|
|
945
945
|
let v = f, h = wt(v);
|
|
946
946
|
for (; h && s && y !== v; ) {
|
|
947
|
-
const C =
|
|
947
|
+
const C = je(h), T = h.getBoundingClientRect(), x = Pe(h), D = T.left + (h.clientLeft + parseFloat(x.paddingLeft)) * C.x, B = T.top + (h.clientTop + parseFloat(x.paddingTop)) * C.y;
|
|
948
948
|
i *= C.x, u *= C.y, c *= C.x, p *= C.y, i += D, u += B, v = be(h), h = wt(v);
|
|
949
949
|
}
|
|
950
950
|
}
|
|
@@ -981,9 +981,9 @@ function Wl(e) {
|
|
|
981
981
|
scrollTop: 0
|
|
982
982
|
}, u = Re(1);
|
|
983
983
|
const c = Re(0), p = Ve(s);
|
|
984
|
-
if ((p || !p && !r) && ((
|
|
984
|
+
if ((p || !p && !r) && ((Ee(s) !== "body" || tt(l)) && (i = ft(s)), Ve(s))) {
|
|
985
985
|
const y = Qe(s);
|
|
986
|
-
u =
|
|
986
|
+
u = je(s), c.x = y.x + s.clientLeft, c.y = y.y + s.clientTop;
|
|
987
987
|
}
|
|
988
988
|
const f = l && !p && !r ? go(l, i) : Re(0);
|
|
989
989
|
return {
|
|
@@ -997,10 +997,10 @@ function Ul(e) {
|
|
|
997
997
|
return Array.from(e.getClientRects());
|
|
998
998
|
}
|
|
999
999
|
function Kl(e) {
|
|
1000
|
-
const t = Me(e), o = ft(e), s = e.ownerDocument.body, n =
|
|
1000
|
+
const t = Me(e), o = ft(e), s = e.ownerDocument.body, n = Ye(t.scrollWidth, t.clientWidth, s.scrollWidth, s.clientWidth), r = Ye(t.scrollHeight, t.clientHeight, s.scrollHeight, s.clientHeight);
|
|
1001
1001
|
let l = -o.scrollLeft + vt(e);
|
|
1002
1002
|
const a = -o.scrollTop;
|
|
1003
|
-
return Pe(s).direction === "rtl" && (l +=
|
|
1003
|
+
return Pe(s).direction === "rtl" && (l += Ye(t.clientWidth, s.clientWidth) - n), {
|
|
1004
1004
|
width: n,
|
|
1005
1005
|
height: r,
|
|
1006
1006
|
x: l,
|
|
@@ -1030,7 +1030,7 @@ function Xl(e, t) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
const Zl = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1032
1032
|
function Ql(e, t) {
|
|
1033
|
-
const o = Qe(e, !0, t === "fixed"), s = o.top + e.clientTop, n = o.left + e.clientLeft, r = Ve(e) ?
|
|
1033
|
+
const o = Qe(e, !0, t === "fixed"), s = o.top + e.clientTop, n = o.left + e.clientLeft, r = Ve(e) ? je(e) : Re(1), l = e.clientWidth * r.x, a = e.clientHeight * r.y, i = n * r.x, u = s * r.y;
|
|
1034
1034
|
return {
|
|
1035
1035
|
width: l,
|
|
1036
1036
|
height: a,
|
|
@@ -1059,16 +1059,16 @@ function qt(e, t, o) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
function ho(e, t) {
|
|
1061
1061
|
const o = Be(e);
|
|
1062
|
-
return o === t || !Ce(o) ||
|
|
1062
|
+
return o === t || !Ce(o) || Ue(o) ? !1 : Pe(o).position === "fixed" || ho(o, t);
|
|
1063
1063
|
}
|
|
1064
1064
|
function Jl(e, t) {
|
|
1065
1065
|
const o = t.get(e);
|
|
1066
1066
|
if (o)
|
|
1067
1067
|
return o;
|
|
1068
|
-
let s = fo(e, []).filter((a) => Ce(a) &&
|
|
1068
|
+
let s = fo(e, []).filter((a) => Ce(a) && Ee(a) !== "body"), n = null;
|
|
1069
1069
|
const r = Pe(e).position === "fixed";
|
|
1070
1070
|
let l = r ? Be(e) : e;
|
|
1071
|
-
for (; Ce(l) && !
|
|
1071
|
+
for (; Ce(l) && !Ue(l); ) {
|
|
1072
1072
|
const a = Pe(l), i = _t(l);
|
|
1073
1073
|
!i && a.position === "fixed" && (n = null), (r ? !i && !n : !i && a.position === "static" && !!n && Zl.has(n.position) || tt(l) && !i && ho(e, l)) ? s = s.filter((c) => c !== l) : n = a, l = Be(l);
|
|
1074
1074
|
}
|
|
@@ -1083,7 +1083,7 @@ function en(e) {
|
|
|
1083
1083
|
} = e;
|
|
1084
1084
|
const l = [...o === "clippingAncestors" ? dt(t) ? [] : Jl(t, this._c) : [].concat(o), s], a = l[0], i = l.reduce((u, c) => {
|
|
1085
1085
|
const p = qt(t, c, n);
|
|
1086
|
-
return u.top =
|
|
1086
|
+
return u.top = Ye(p.top, u.top), u.right = Ze(p.right, u.right), u.bottom = Ze(p.bottom, u.bottom), u.left = Ye(p.left, u.left), u;
|
|
1087
1087
|
}, qt(t, a, n));
|
|
1088
1088
|
return {
|
|
1089
1089
|
width: i.right - i.left,
|
|
@@ -1113,7 +1113,7 @@ function on(e, t, o) {
|
|
|
1113
1113
|
i.x = vt(n);
|
|
1114
1114
|
}
|
|
1115
1115
|
if (s || !s && !r)
|
|
1116
|
-
if ((
|
|
1116
|
+
if ((Ee(t) !== "body" || tt(n)) && (a = ft(t)), s) {
|
|
1117
1117
|
const y = Qe(t, !0, r, t);
|
|
1118
1118
|
i.x = y.x + t.clientLeft, i.y = y.y + t.clientTop;
|
|
1119
1119
|
} else n && u();
|
|
@@ -1143,7 +1143,7 @@ function yo(e, t) {
|
|
|
1143
1143
|
return o;
|
|
1144
1144
|
if (!Ve(e)) {
|
|
1145
1145
|
let n = Be(e);
|
|
1146
|
-
for (; n && !
|
|
1146
|
+
for (; n && !Ue(n); ) {
|
|
1147
1147
|
if (Ce(n) && !gt(n))
|
|
1148
1148
|
return n;
|
|
1149
1149
|
n = Be(n);
|
|
@@ -1153,7 +1153,7 @@ function yo(e, t) {
|
|
|
1153
1153
|
let s = Yt(e, t);
|
|
1154
1154
|
for (; s && El(s) && gt(s); )
|
|
1155
1155
|
s = Yt(s, t);
|
|
1156
|
-
return s &&
|
|
1156
|
+
return s && Ue(s) && gt(s) && !_t(s) ? o : s || Nl(e) || o;
|
|
1157
1157
|
}
|
|
1158
1158
|
const ln = async function(e) {
|
|
1159
1159
|
const t = this.getOffsetParent || yo, o = this.getDimensions, s = await o(e.floating);
|
|
@@ -1178,7 +1178,7 @@ const an = {
|
|
|
1178
1178
|
getElementRects: ln,
|
|
1179
1179
|
getClientRects: Ul,
|
|
1180
1180
|
getDimensions: tn,
|
|
1181
|
-
getScale:
|
|
1181
|
+
getScale: je,
|
|
1182
1182
|
isElement: Ce,
|
|
1183
1183
|
isRTL: nn
|
|
1184
1184
|
}, kt = Bl, $t = Dl, sn = Ml, jt = Tl, bo = Vl, wo = (e, t, o) => {
|
|
@@ -1200,11 +1200,11 @@ function rn(e) {
|
|
|
1200
1200
|
function St(e) {
|
|
1201
1201
|
if (rn(e)) {
|
|
1202
1202
|
const t = e.$el;
|
|
1203
|
-
return Tt(t) &&
|
|
1203
|
+
return Tt(t) && Ee(t) === "#comment" ? null : t;
|
|
1204
1204
|
}
|
|
1205
1205
|
return e;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function Ne(e) {
|
|
1208
1208
|
return typeof e == "function" ? e() : g(e);
|
|
1209
1209
|
}
|
|
1210
1210
|
function un(e) {
|
|
@@ -1212,7 +1212,7 @@ function un(e) {
|
|
|
1212
1212
|
name: "arrow",
|
|
1213
1213
|
options: e,
|
|
1214
1214
|
fn(t) {
|
|
1215
|
-
const o = St(
|
|
1215
|
+
const o = St(Ne(e.element));
|
|
1216
1216
|
return o == null ? {} : bo({
|
|
1217
1217
|
element: o,
|
|
1218
1218
|
padding: e.padding
|
|
@@ -1231,16 +1231,16 @@ function Ut(e, t, o) {
|
|
|
1231
1231
|
o === void 0 && (o = {});
|
|
1232
1232
|
const s = o.whileElementsMounted, n = M(() => {
|
|
1233
1233
|
var $;
|
|
1234
|
-
return ($ =
|
|
1235
|
-
}), r = M(() =>
|
|
1234
|
+
return ($ = Ne(o.open)) != null ? $ : !0;
|
|
1235
|
+
}), r = M(() => Ne(o.middleware)), l = M(() => {
|
|
1236
1236
|
var $;
|
|
1237
|
-
return ($ =
|
|
1237
|
+
return ($ = Ne(o.placement)) != null ? $ : "bottom";
|
|
1238
1238
|
}), a = M(() => {
|
|
1239
1239
|
var $;
|
|
1240
|
-
return ($ =
|
|
1240
|
+
return ($ = Ne(o.strategy)) != null ? $ : "absolute";
|
|
1241
1241
|
}), i = M(() => {
|
|
1242
1242
|
var $;
|
|
1243
|
-
return ($ =
|
|
1243
|
+
return ($ = Ne(o.transform)) != null ? $ : !0;
|
|
1244
1244
|
}), u = M(() => St(e.value)), c = M(() => St(t.value)), p = _(0), f = _(0), y = _(a.value), v = _(l.value), h = Te({}), C = _(!1), T = M(() => {
|
|
1245
1245
|
const $ = {
|
|
1246
1246
|
position: y.value,
|
|
@@ -1298,12 +1298,12 @@ function Ut(e, t, o) {
|
|
|
1298
1298
|
}), oe(n, S, {
|
|
1299
1299
|
flush: "sync"
|
|
1300
1300
|
}), Vo() && Mo(B), {
|
|
1301
|
-
x:
|
|
1302
|
-
y:
|
|
1303
|
-
strategy:
|
|
1304
|
-
placement:
|
|
1305
|
-
middlewareData:
|
|
1306
|
-
isPositioned:
|
|
1301
|
+
x: He(p),
|
|
1302
|
+
y: He(f),
|
|
1303
|
+
strategy: He(y),
|
|
1304
|
+
placement: He(v),
|
|
1305
|
+
middlewareData: He(h),
|
|
1306
|
+
isPositioned: He(C),
|
|
1307
1307
|
floatingStyles: T,
|
|
1308
1308
|
update: D
|
|
1309
1309
|
};
|
|
@@ -1350,7 +1350,7 @@ const cn = {
|
|
|
1350
1350
|
},
|
|
1351
1351
|
emits: ["update:modelValue"],
|
|
1352
1352
|
setup(e, { expose: t, emit: o }) {
|
|
1353
|
-
const s = e, { placement: n, offset: r, arrowVisible: l, closeMode: a, modelValue: i, zIndex: u, zIndexLayer: c } = To(s), p = o, f =
|
|
1353
|
+
const s = e, { placement: n, offset: r, arrowVisible: l, closeMode: a, modelValue: i, zIndex: u, zIndexLayer: c } = To(s), p = o, f = qe("reference"), y = qe("floating"), v = qe("arrow-block"), h = qe("second-screen"), C = M(() => "23px"), T = M(() => r ? typeof r.value == "number" ? r.value + Number(C.value.split("px")[0]) : {
|
|
1354
1354
|
mainAxis: r.value?.mainAxis ? r.value?.mainAxis + Number(C.value.split("px")[0]) / 2 : Number(C.value.split("px")[0]) / 2,
|
|
1355
1355
|
crossAxis: r.value?.crossAxis ? n.value?.includes("start") ? r.value?.crossAxis - Number(C.value.split("px")[0]) : n.value?.includes("end") ? r.value?.crossAxis + Number(C.value.split("px")[0]) : r.value?.crossAxis : n.value?.includes("start") ? -Number(C.value.split("px")[0]) : n.value?.includes("end") ? Number(C.value.split("px")[0]) : void 0,
|
|
1356
1356
|
alignmentAxis: r.value?.alignmentAxis
|
|
@@ -1375,7 +1375,7 @@ const cn = {
|
|
|
1375
1375
|
$t({ padding: 8 }),
|
|
1376
1376
|
kt(8)
|
|
1377
1377
|
]
|
|
1378
|
-
}), R =
|
|
1378
|
+
}), R = Ke(), I = _(!1), F = _(!1), E = _(!1), { lockScroll: G, unlockScroll: V } = ut(), P = _(null), L = _(null), j = () => {
|
|
1379
1379
|
k(), F.value && b();
|
|
1380
1380
|
}, Y = M(() => i && i.value !== void 0), U = M({
|
|
1381
1381
|
get: () => Y.value ? i?.value : I.value,
|
|
@@ -1444,16 +1444,16 @@ const cn = {
|
|
|
1444
1444
|
ye && clearTimeout(ye), ye = setTimeout(j, 100);
|
|
1445
1445
|
};
|
|
1446
1446
|
if (window.addEventListener("scroll", Ro, { passive: !0 }), window.addEventListener("resize", Io), window.addEventListener("orientationchange", j), f.value) {
|
|
1447
|
-
let
|
|
1447
|
+
let ze = null;
|
|
1448
1448
|
P.value = new ResizeObserver(() => {
|
|
1449
|
-
U.value && (
|
|
1450
|
-
j(),
|
|
1449
|
+
U.value && (ze && clearTimeout(ze), ze = setTimeout(() => {
|
|
1450
|
+
j(), ze = null;
|
|
1451
1451
|
}, 100));
|
|
1452
1452
|
}), P.value.observe(f.value);
|
|
1453
1453
|
}
|
|
1454
|
-
L.value = new MutationObserver((
|
|
1454
|
+
L.value = new MutationObserver((ze) => {
|
|
1455
1455
|
let Ot = !1;
|
|
1456
|
-
|
|
1456
|
+
ze.forEach((mt) => {
|
|
1457
1457
|
(mt.type === "childList" || mt.type === "attributes" && ["style", "class"].includes(mt.attributeName || "")) && (Ot = !0);
|
|
1458
1458
|
}), Ot && setTimeout(j, 10);
|
|
1459
1459
|
}), L.value.observe(document.body, {
|
|
@@ -1462,7 +1462,7 @@ const cn = {
|
|
|
1462
1462
|
attributes: !0,
|
|
1463
1463
|
attributeFilter: ["style", "class"]
|
|
1464
1464
|
});
|
|
1465
|
-
}),
|
|
1465
|
+
}), Le(() => {
|
|
1466
1466
|
document.removeEventListener("click", $e), window.removeEventListener("resize", j), window.removeEventListener("scroll", j), window.removeEventListener("orientationchange", j), P.value && P.value.disconnect(), L.value && L.value.disconnect(), a.value === "button-only" && U.value && V();
|
|
1467
1467
|
}), t({
|
|
1468
1468
|
open: X,
|
|
@@ -1881,7 +1881,7 @@ const cn = {
|
|
|
1881
1881
|
}),
|
|
1882
1882
|
emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
|
|
1883
1883
|
setup(e, { emit: t }) {
|
|
1884
|
-
const o = re(e, "modelValue"), s =
|
|
1884
|
+
const o = re(e, "modelValue"), s = Ke(), n = t, r = M(() => ["radio", `radio--${e.size}`]);
|
|
1885
1885
|
return (l, a) => (d(), m("div", {
|
|
1886
1886
|
class: O(r.value)
|
|
1887
1887
|
}, [
|
|
@@ -2035,7 +2035,7 @@ const cn = {
|
|
|
2035
2035
|
n.value && E();
|
|
2036
2036
|
}), ge(() => {
|
|
2037
2037
|
document.addEventListener("click", G), window.addEventListener("resize", E), window.addEventListener("scroll", E);
|
|
2038
|
-
}),
|
|
2038
|
+
}), Le(() => {
|
|
2039
2039
|
document.removeEventListener("click", G), window.removeEventListener("resize", E), window.removeEventListener("scroll", E);
|
|
2040
2040
|
}), (V, P) => (d(), m("div", {
|
|
2041
2041
|
class: O(["dropdown", { "dropdown--disabled": V.disabled }])
|
|
@@ -2573,7 +2573,7 @@ const cn = {
|
|
|
2573
2573
|
visible: { type: Boolean, default: !0 }
|
|
2574
2574
|
},
|
|
2575
2575
|
setup(e) {
|
|
2576
|
-
const t = e, o =
|
|
2576
|
+
const t = e, o = Fe(t, "visible"), s = lo(), n = t.field || `column-${Math.random().toString(36).substring(2, 11)}`, r = ve("registerColumn"), l = M(() => ({
|
|
2577
2577
|
id: n,
|
|
2578
2578
|
header: t.header,
|
|
2579
2579
|
field: t.field,
|
|
@@ -2607,7 +2607,7 @@ const cn = {
|
|
|
2607
2607
|
}),
|
|
2608
2608
|
emits: ["update:modelValue"],
|
|
2609
2609
|
setup(e) {
|
|
2610
|
-
const t = re(e, "modelValue"), o =
|
|
2610
|
+
const t = re(e, "modelValue"), o = Ke();
|
|
2611
2611
|
return (s, n) => (d(), m("div", ya, [
|
|
2612
2612
|
xe(w("input", {
|
|
2613
2613
|
"onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r),
|
|
@@ -2661,7 +2661,7 @@ const cn = {
|
|
|
2661
2661
|
}),
|
|
2662
2662
|
emits: /* @__PURE__ */ ee(["blur", "input", "paste", "focus", "clear"], ["update:modelValue"]),
|
|
2663
2663
|
setup(e, { emit: t }) {
|
|
2664
|
-
const o = t, s = re(e, "modelValue"), n =
|
|
2664
|
+
const o = t, s = re(e, "modelValue"), n = Ke(), r = _(!1), l = M(() => [
|
|
2665
2665
|
"input",
|
|
2666
2666
|
`input--${e.size}`,
|
|
2667
2667
|
`input--${e.variant}`,
|
|
@@ -2811,7 +2811,7 @@ function Ra(e, t) {
|
|
|
2811
2811
|
return v(S).length >= H;
|
|
2812
2812
|
}
|
|
2813
2813
|
function C() {
|
|
2814
|
-
const S =
|
|
2814
|
+
const S = Ge(e) || "";
|
|
2815
2815
|
if (a.value || S)
|
|
2816
2816
|
l.value = f(S);
|
|
2817
2817
|
else {
|
|
@@ -2991,25 +2991,25 @@ function Ra(e, t) {
|
|
|
2991
2991
|
I = F;
|
|
2992
2992
|
break;
|
|
2993
2993
|
}
|
|
2994
|
-
if (
|
|
2994
|
+
if (Ge(e)) {
|
|
2995
2995
|
let F = 0;
|
|
2996
2996
|
for (let E = 0; E < R.length; E++)
|
|
2997
2997
|
if (c(R[E])) {
|
|
2998
|
-
if (F >=
|
|
2998
|
+
if (F >= Ge(e).length) {
|
|
2999
2999
|
I = E;
|
|
3000
3000
|
break;
|
|
3001
3001
|
}
|
|
3002
3002
|
F++;
|
|
3003
3003
|
}
|
|
3004
|
-
F ===
|
|
3004
|
+
F === Ge(e).length && (I = l.value.length);
|
|
3005
3005
|
}
|
|
3006
3006
|
$.setSelectionRange(I, I);
|
|
3007
3007
|
});
|
|
3008
3008
|
}
|
|
3009
3009
|
function k() {
|
|
3010
|
-
a.value = !1, n && !h(l.value) ? (l.value = "", e.value = "") :
|
|
3010
|
+
a.value = !1, n && !h(l.value) ? (l.value = "", e.value = "") : Ge(e) || C();
|
|
3011
3011
|
}
|
|
3012
|
-
return C(), oe(() =>
|
|
3012
|
+
return C(), oe(() => Ge(e), (S, $) => {
|
|
3013
3013
|
S !== $ && C();
|
|
3014
3014
|
}, { immediate: !0 }), oe(a, (S, $) => {
|
|
3015
3015
|
S !== $ && C();
|
|
@@ -3251,7 +3251,7 @@ const mr = /* @__PURE__ */ z({
|
|
|
3251
3251
|
}),
|
|
3252
3252
|
emits: ["update:modelValue"],
|
|
3253
3253
|
setup(e) {
|
|
3254
|
-
const t = re(e, "modelValue"), o =
|
|
3254
|
+
const t = re(e, "modelValue"), o = Ke();
|
|
3255
3255
|
return (s, n) => (d(), m("div", {
|
|
3256
3256
|
class: O(["switch", {
|
|
3257
3257
|
"switch--disabled": s.disabled
|
|
@@ -3367,7 +3367,7 @@ const mr = /* @__PURE__ */ z({
|
|
|
3367
3367
|
}),
|
|
3368
3368
|
emits: /* @__PURE__ */ ee(["focusIn", "focusOut", "blur"], ["update:modelValue"]),
|
|
3369
3369
|
setup(e, { emit: t }) {
|
|
3370
|
-
const o = t, s = re(e, "modelValue"), n = _(null), r =
|
|
3370
|
+
const o = t, s = re(e, "modelValue"), n = _(null), r = Ke(), l = () => {
|
|
3371
3371
|
const i = n.value;
|
|
3372
3372
|
if (!i) return;
|
|
3373
3373
|
const u = {
|
|
@@ -3429,7 +3429,7 @@ const mr = /* @__PURE__ */ z({
|
|
|
3429
3429
|
], 2));
|
|
3430
3430
|
}
|
|
3431
3431
|
});
|
|
3432
|
-
function
|
|
3432
|
+
function We(e, t) {
|
|
3433
3433
|
let o = t;
|
|
3434
3434
|
const s = e.dayOfYear(), n = [
|
|
3435
3435
|
// День месяца
|
|
@@ -3502,7 +3502,7 @@ function ht(e, t, o, s) {
|
|
|
3502
3502
|
inRange: !1
|
|
3503
3503
|
};
|
|
3504
3504
|
if (!t) return n;
|
|
3505
|
-
const r =
|
|
3505
|
+
const r = We(e, o);
|
|
3506
3506
|
if (typeof t == "string")
|
|
3507
3507
|
return n.selected = r === t, n;
|
|
3508
3508
|
if (!s && typeof t == "object") {
|
|
@@ -3532,7 +3532,7 @@ function qa(e, t, o, s = null, n = "dd/mm/yy", r = null, l = null, a = !1) {
|
|
|
3532
3532
|
for (let y = p - 1; y >= 0; y--) {
|
|
3533
3533
|
const v = u.subtract(y + 1, "day"), h = ht(v, s, n, a);
|
|
3534
3534
|
i.push({
|
|
3535
|
-
value:
|
|
3535
|
+
value: We(v, n),
|
|
3536
3536
|
label: v.format("D"),
|
|
3537
3537
|
disabled: !0,
|
|
3538
3538
|
// Дни из другого месяца всегда disabled
|
|
@@ -3546,7 +3546,7 @@ function qa(e, t, o, s = null, n = "dd/mm/yy", r = null, l = null, a = !1) {
|
|
|
3546
3546
|
for (let y = 1; y <= c.date(); y++) {
|
|
3547
3547
|
const v = Q().year(e).month(t).date(y), h = v.isSame(o, "day"), C = ht(v, s, n, a), T = Fa(v, r, l);
|
|
3548
3548
|
i.push({
|
|
3549
|
-
value:
|
|
3549
|
+
value: We(v, n),
|
|
3550
3550
|
label: String(y),
|
|
3551
3551
|
disabled: !T,
|
|
3552
3552
|
// Отключаем даты вне разрешенного диапазона
|
|
@@ -3563,7 +3563,7 @@ function qa(e, t, o, s = null, n = "dd/mm/yy", r = null, l = null, a = !1) {
|
|
|
3563
3563
|
for (let v = 1; v <= y; v++) {
|
|
3564
3564
|
const h = c.add(v, "day"), C = ht(h, s, n, a);
|
|
3565
3565
|
i.push({
|
|
3566
|
-
value:
|
|
3566
|
+
value: We(h, n),
|
|
3567
3567
|
label: h.format("D"),
|
|
3568
3568
|
disabled: !0,
|
|
3569
3569
|
// Дни из другого месяца всегда disabled
|
|
@@ -3594,7 +3594,7 @@ function Ya(e, t, o = "dd/mm/yyyy", s = null, n = null) {
|
|
|
3594
3594
|
].map((l, a) => {
|
|
3595
3595
|
const i = Q().year(e).month(a).date(1), u = i.endOf("month"), c = (!s || u.isAfter(Q(s).subtract(1, "day"))) && (!n || i.isBefore(Q(n).add(1, "day")));
|
|
3596
3596
|
return {
|
|
3597
|
-
value:
|
|
3597
|
+
value: We(i, o),
|
|
3598
3598
|
label: l,
|
|
3599
3599
|
current: t.year() === e && t.month() === a,
|
|
3600
3600
|
disabled: !c
|
|
@@ -3606,7 +3606,7 @@ function ja(e, t = "dd.mm.yyyy", o = null, s = null) {
|
|
|
3606
3606
|
for (let a = l; a < l + 20; a++) {
|
|
3607
3607
|
const i = Q().year(a).month(0).date(1), u = i.endOf("year"), c = (!o || u.isAfter(Q(o).subtract(1, "day"))) && (!s || i.isBefore(Q(s).add(1, "day")));
|
|
3608
3608
|
r.push({
|
|
3609
|
-
value:
|
|
3609
|
+
value: We(i, t),
|
|
3610
3610
|
label: String(a),
|
|
3611
3611
|
current: a === Q().year(),
|
|
3612
3612
|
// Сравниваем с реальной текущей датой
|
|
@@ -3703,7 +3703,7 @@ const Ua = { class: "calendar__header" }, Ka = { class: "calendar__header-title"
|
|
|
3703
3703
|
}),
|
|
3704
3704
|
emits: ["update:modelValue"],
|
|
3705
3705
|
setup(e) {
|
|
3706
|
-
const t = e, o =
|
|
3706
|
+
const t = e, o = Fe(t, "type"), s = Fe(t, "format"), n = Fe(t, "range"), r = Fe(t, "minDate"), l = Fe(t, "maxDate"), a = re(e, "modelValue"), i = _(!1), u = _(o.value || "day"), { calendarCells: c, activeDateInfo: p, goToPreviousPage: f, goToNextPage: y } = Wa(u, s, a, r, l, n), v = M({
|
|
3707
3707
|
get() {
|
|
3708
3708
|
return u.value;
|
|
3709
3709
|
},
|
|
@@ -4044,7 +4044,7 @@ const ns = /* @__PURE__ */ z({
|
|
|
4044
4044
|
f.value = k;
|
|
4045
4045
|
}, { immediate: !0 }), ge(() => {
|
|
4046
4046
|
document.addEventListener("mousedown", B), window.addEventListener("resize", D), window.addEventListener("scroll", D);
|
|
4047
|
-
}),
|
|
4047
|
+
}), Le(() => {
|
|
4048
4048
|
document.removeEventListener("mousedown", B), window.removeEventListener("resize", D), window.removeEventListener("scroll", D);
|
|
4049
4049
|
}), (k, S) => (d(), m("div", {
|
|
4050
4050
|
class: "date-picker",
|
|
@@ -4304,7 +4304,7 @@ const ns = /* @__PURE__ */ z({
|
|
|
4304
4304
|
};
|
|
4305
4305
|
return ge(() => {
|
|
4306
4306
|
we.on("add", r), we.on("remove", l), we.on("remove-group", a), we.on("remove-all-groups", i);
|
|
4307
|
-
}),
|
|
4307
|
+
}), Le(() => {
|
|
4308
4308
|
we.off("add", r), we.off("remove", l), we.off("remove-group", a), we.off("remove-all-groups", i);
|
|
4309
4309
|
}), (u, c) => (d(), N(Je, {
|
|
4310
4310
|
layer: u.zIndexLayer,
|
|
@@ -4533,7 +4533,7 @@ const Ir = {
|
|
|
4533
4533
|
a?.blockScroll ? t() : o();
|
|
4534
4534
|
}, { immediate: !0, deep: !0 }), ge(() => {
|
|
4535
4535
|
document.addEventListener("keydown", l);
|
|
4536
|
-
}),
|
|
4536
|
+
}), Le(() => {
|
|
4537
4537
|
document.removeEventListener("keydown", l), o();
|
|
4538
4538
|
}), (a, i) => (d(), N(it, { to: "body" }, [
|
|
4539
4539
|
W(Ae, { name: "confirm-dialog" }, {
|
|
@@ -4683,7 +4683,7 @@ const Ir = {
|
|
|
4683
4683
|
f?.target && (await ce(), l());
|
|
4684
4684
|
}, { immediate: !0 }), ge(() => {
|
|
4685
4685
|
document.addEventListener("keydown", u), window.addEventListener("scroll", c, !0), window.addEventListener("resize", p);
|
|
4686
|
-
}),
|
|
4686
|
+
}), Le(() => {
|
|
4687
4687
|
document.removeEventListener("keydown", u), window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", p);
|
|
4688
4688
|
}), (f, y) => (d(), N(it, { to: "body" }, [
|
|
4689
4689
|
W(Ae, { name: "confirm" }, {
|
|
@@ -4761,6 +4761,8 @@ const Ir = {
|
|
|
4761
4761
|
};
|
|
4762
4762
|
return oe(r, () => {
|
|
4763
4763
|
r.value ? s() : n();
|
|
4764
|
+
}), Le(() => {
|
|
4765
|
+
n();
|
|
4764
4766
|
}), t({
|
|
4765
4767
|
isOpen: r,
|
|
4766
4768
|
open: i,
|