prlg-ui 1.4.4 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +74 -72
- package/dist/utils/dayjs.util.ts +2 -0
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +910 -784
- package/package.json +1 -1
package/dist/prlg-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, computed as R, resolveComponent as ut, createBlock as T, openBlock as c, resolveDynamicComponent as ee, normalizeClass as S, withCtx as H, createCommentVNode as V, createElementBlock as f, renderSlot as I, Fragment as
|
|
1
|
+
import { defineComponent as C, computed as R, resolveComponent as ut, createBlock as T, openBlock as c, resolveDynamicComponent as ee, normalizeClass as S, withCtx as H, createCommentVNode as V, createElementBlock as f, renderSlot as I, Fragment as E, createTextVNode as se, toDisplayString as L, ref as M, useTemplateRef as Ie, onMounted as oe, createElementVNode as h, createVNode as O, renderList as ce, unref as b, mergeModels as _, useModel as J, useId as xe, withDirectives as ae, vModelCheckbox as qe, onUnmounted as ct, watch as fe, nextTick as Oe, Teleport as Ue, Transition as je, normalizeStyle as ie, provide as X, useSlots as Ot, inject as q, vModelRadio as Lt, withModifiers as Pt, vModelDynamic as zt, vModelText as dt, mergeProps as Et, reactive as ft, shallowRef as Be, TransitionGroup as _t, vShow as mt } from "vue";
|
|
2
2
|
import { P as vt, g as Dt, h as Gt, _ as me, I as Ye, A as Ft, c as Xe, e as Ht, f as Nt, S as Wt, M as qt, E as Ut, B as jt, C as Yt, b as pt, W as Xt, d as Zt, a as Kt } from "./WarningFillIcon-Drb2OS3I.js";
|
|
3
3
|
import { o as gt, E as Jt, _ as Qt, u as ht } from "./useBodyScroll.util-BgQeA8Dg.js";
|
|
4
4
|
const eo = {
|
|
@@ -44,7 +44,7 @@ const eo = {
|
|
|
44
44
|
})) : V("", !0),
|
|
45
45
|
n.iconOnly ? V("", !0) : (c(), f("div", eo, [
|
|
46
46
|
I(n.$slots, "default"),
|
|
47
|
-
n.label && !n.$slots.default ? (c(), f(
|
|
47
|
+
n.label && !n.$slots.default ? (c(), f(E, { key: 0 }, [
|
|
48
48
|
se(L(n.label), 1)
|
|
49
49
|
], 64)) : V("", !0)
|
|
50
50
|
]))
|
|
@@ -76,7 +76,7 @@ const eo = {
|
|
|
76
76
|
ref: o,
|
|
77
77
|
class: S(["sleed-deal-menu sleed-deal__items", { "sleed-deal-menu--open": t.value }])
|
|
78
78
|
}, [
|
|
79
|
-
(c(!0), f(
|
|
79
|
+
(c(!0), f(E, null, ce(s.items, (r) => (c(), f("div", {
|
|
80
80
|
class: "sleed-deal-menu__item",
|
|
81
81
|
key: r.label,
|
|
82
82
|
onClick: (u) => i(r)
|
|
@@ -118,7 +118,7 @@ const eo = {
|
|
|
118
118
|
class: "checkbox__label"
|
|
119
119
|
}, Ze = /* @__PURE__ */ C({
|
|
120
120
|
__name: "Checkbox",
|
|
121
|
-
props: /* @__PURE__ */
|
|
121
|
+
props: /* @__PURE__ */ _({
|
|
122
122
|
label: {},
|
|
123
123
|
value: {},
|
|
124
124
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -128,7 +128,7 @@ const eo = {
|
|
|
128
128
|
modelValue: { type: [Array, String, Boolean, null] },
|
|
129
129
|
modelModifiers: {}
|
|
130
130
|
}),
|
|
131
|
-
emits: /* @__PURE__ */
|
|
131
|
+
emits: /* @__PURE__ */ _(["change"], ["update:modelValue"]),
|
|
132
132
|
setup(e, { emit: t }) {
|
|
133
133
|
const o = t, n = J(e, "modelValue"), l = xe(), i = R(() => [
|
|
134
134
|
"checkbox",
|
|
@@ -289,7 +289,7 @@ function yt(e) {
|
|
|
289
289
|
left: e
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function ze(e) {
|
|
293
293
|
const {
|
|
294
294
|
x: t,
|
|
295
295
|
y: o,
|
|
@@ -432,7 +432,7 @@ async function bt(e, t) {
|
|
|
432
432
|
elementContext: m = "floating",
|
|
433
433
|
altBoundary: $ = !1,
|
|
434
434
|
padding: v = 0
|
|
435
|
-
} = Ve(t, e), k = yt(v), p = a[$ ? m === "floating" ? "reference" : "floating" : m], y =
|
|
435
|
+
} = Ve(t, e), k = yt(v), p = a[$ ? m === "floating" ? "reference" : "floating" : m], y = ze(await i.getClippingRect({
|
|
436
436
|
element: (o = await (i.isElement == null ? void 0 : i.isElement(p))) == null || o ? p : p.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
437
437
|
boundary: u,
|
|
438
438
|
rootBoundary: d,
|
|
@@ -448,7 +448,7 @@ async function bt(e, t) {
|
|
|
448
448
|
} : {
|
|
449
449
|
x: 1,
|
|
450
450
|
y: 1
|
|
451
|
-
}, B =
|
|
451
|
+
}, B = ze(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
452
452
|
elements: a,
|
|
453
453
|
rect: g,
|
|
454
454
|
offsetParent: w,
|
|
@@ -485,12 +485,12 @@ const Co = (e) => ({
|
|
|
485
485
|
}, v = Je(l), k = Ke(v), A = await s.getDimensions(u), p = v === "y", y = p ? "top" : "left", g = p ? "bottom" : "right", w = p ? "clientHeight" : "clientWidth", x = i.reference[k] + i.reference[v] - $[v] - i.floating[k], B = $[v] - i.reference[v], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
486
486
|
let P = D ? D[w] : 0;
|
|
487
487
|
(!P || !await (s.isElement == null ? void 0 : s.isElement(D))) && (P = a.floating[w] || i.floating[k]);
|
|
488
|
-
const N = x / 2 - B / 2, G = P / 2 - A[k] / 2 - 1, U = $e(m[y], G), ve = $e(m[g], G), pe = U, Ce = P - A[k] - ve,
|
|
488
|
+
const N = x / 2 - B / 2, G = P / 2 - A[k] / 2 - 1, U = $e(m[y], G), ve = $e(m[g], G), pe = U, Ce = P - A[k] - ve, z = P / 2 - A[k] / 2 + N, ge = He(pe, z, Ce), le = !r.arrow && Se(l) != null && z !== ge && i.reference[k] / 2 - (z < pe ? U : ve) - A[k] / 2 < 0, j = le ? z < pe ? z - pe : z - Ce : 0;
|
|
489
489
|
return {
|
|
490
490
|
[v]: $[v] + j,
|
|
491
491
|
data: {
|
|
492
492
|
[v]: ge,
|
|
493
|
-
centerOffset:
|
|
493
|
+
centerOffset: z - ge - j,
|
|
494
494
|
...le && {
|
|
495
495
|
alignmentOffset: j
|
|
496
496
|
}
|
|
@@ -527,21 +527,21 @@ const Co = (e) => ({
|
|
|
527
527
|
const P = [a, ...B], N = await bt(t, p), G = [];
|
|
528
528
|
let U = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
529
529
|
if (d && G.push(N[y]), m) {
|
|
530
|
-
const
|
|
531
|
-
G.push(N[
|
|
530
|
+
const z = ho(l, s, x);
|
|
531
|
+
G.push(N[z[0]], N[z[1]]);
|
|
532
532
|
}
|
|
533
533
|
if (U = [...U, {
|
|
534
534
|
placement: l,
|
|
535
535
|
overflows: G
|
|
536
|
-
}], !G.every((
|
|
536
|
+
}], !G.every((z) => z <= 0)) {
|
|
537
537
|
var ve, pe;
|
|
538
|
-
const
|
|
538
|
+
const z = (((ve = i.flip) == null ? void 0 : ve.index) || 0) + 1, ge = P[z];
|
|
539
539
|
if (ge && (!(m === "alignment" ? g !== ue(ge) : !1) || // We leave the current main axis only if every placement on that axis
|
|
540
540
|
// overflows the main axis.
|
|
541
541
|
U.every((Y) => Y.overflows[0] > 0 && ue(Y.placement) === g)))
|
|
542
542
|
return {
|
|
543
543
|
data: {
|
|
544
|
-
index:
|
|
544
|
+
index: z,
|
|
545
545
|
overflows: U
|
|
546
546
|
},
|
|
547
547
|
reset: {
|
|
@@ -686,7 +686,7 @@ const To = function(e) {
|
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
688
|
};
|
|
689
|
-
function
|
|
689
|
+
function Ee() {
|
|
690
690
|
return typeof window < "u";
|
|
691
691
|
}
|
|
692
692
|
function Re(e) {
|
|
@@ -701,16 +701,16 @@ function ne(e) {
|
|
|
701
701
|
return (t = ($t(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
702
702
|
}
|
|
703
703
|
function $t(e) {
|
|
704
|
-
return
|
|
704
|
+
return Ee() ? e instanceof Node || e instanceof F(e).Node : !1;
|
|
705
705
|
}
|
|
706
706
|
function Z(e) {
|
|
707
|
-
return
|
|
707
|
+
return Ee() ? e instanceof Element || e instanceof F(e).Element : !1;
|
|
708
708
|
}
|
|
709
709
|
function te(e) {
|
|
710
|
-
return
|
|
710
|
+
return Ee() ? e instanceof HTMLElement || e instanceof F(e).HTMLElement : !1;
|
|
711
711
|
}
|
|
712
712
|
function it(e) {
|
|
713
|
-
return !
|
|
713
|
+
return !Ee() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof F(e).ShadowRoot;
|
|
714
714
|
}
|
|
715
715
|
const Mo = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
716
716
|
function Te(e) {
|
|
@@ -727,7 +727,7 @@ function Oo(e) {
|
|
|
727
727
|
return Io.has(Re(e));
|
|
728
728
|
}
|
|
729
729
|
const Lo = [":popover-open", ":modal"];
|
|
730
|
-
function
|
|
730
|
+
function _e(e) {
|
|
731
731
|
return Lo.some((t) => {
|
|
732
732
|
try {
|
|
733
733
|
return e.matches(t);
|
|
@@ -736,17 +736,17 @@ function Ee(e) {
|
|
|
736
736
|
}
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
|
-
const Po = ["transform", "translate", "scale", "rotate", "perspective"],
|
|
739
|
+
const Po = ["transform", "translate", "scale", "rotate", "perspective"], zo = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Eo = ["paint", "layout", "strict", "content"];
|
|
740
740
|
function Qe(e) {
|
|
741
741
|
const t = et(), o = Z(e) ? K(e) : e;
|
|
742
|
-
return Po.some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) ||
|
|
742
|
+
return Po.some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || zo.some((n) => (o.willChange || "").includes(n)) || Eo.some((n) => (o.contain || "").includes(n));
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function _o(e) {
|
|
745
745
|
let t = de(e);
|
|
746
746
|
for (; te(t) && !ke(t); ) {
|
|
747
747
|
if (Qe(t))
|
|
748
748
|
return t;
|
|
749
|
-
if (
|
|
749
|
+
if (_e(t))
|
|
750
750
|
return null;
|
|
751
751
|
t = de(t);
|
|
752
752
|
}
|
|
@@ -854,7 +854,7 @@ function ye(e, t, o, n) {
|
|
|
854
854
|
r *= p.x, u *= p.y, d *= p.x, m *= p.y, r += w, u += x, k = F(A), A = We(k);
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
return
|
|
857
|
+
return ze({
|
|
858
858
|
width: d,
|
|
859
859
|
height: m,
|
|
860
860
|
x: r,
|
|
@@ -883,7 +883,7 @@ function Ho(e) {
|
|
|
883
883
|
offsetParent: n,
|
|
884
884
|
strategy: l
|
|
885
885
|
} = e;
|
|
886
|
-
const i = l === "fixed", s = ne(n), a = t ?
|
|
886
|
+
const i = l === "fixed", s = ne(n), a = t ? _e(t.floating) : !1;
|
|
887
887
|
if (n === s || a && i)
|
|
888
888
|
return o;
|
|
889
889
|
let r = {
|
|
@@ -959,7 +959,7 @@ function at(e, t, o) {
|
|
|
959
959
|
height: t.height
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
|
-
return
|
|
962
|
+
return ze(n);
|
|
963
963
|
}
|
|
964
964
|
function At(e, t) {
|
|
965
965
|
const o = de(e);
|
|
@@ -985,7 +985,7 @@ function Xo(e) {
|
|
|
985
985
|
rootBoundary: n,
|
|
986
986
|
strategy: l
|
|
987
987
|
} = e;
|
|
988
|
-
const s = [...o === "clippingAncestors" ?
|
|
988
|
+
const s = [...o === "clippingAncestors" ? _e(t) ? [] : Yo(t, this._c) : [].concat(o), n], a = s[0], r = s.reduce((u, d) => {
|
|
989
989
|
const m = at(t, d, l);
|
|
990
990
|
return u.top = he(m.top, u.top), u.right = $e(m.right, u.right), u.bottom = $e(m.bottom, u.bottom), u.left = he(m.left, u.left), u;
|
|
991
991
|
}, at(t, a, l));
|
|
@@ -1043,7 +1043,7 @@ function rt(e, t) {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
function Vt(e, t) {
|
|
1045
1045
|
const o = F(e);
|
|
1046
|
-
if (
|
|
1046
|
+
if (_e(e))
|
|
1047
1047
|
return o;
|
|
1048
1048
|
if (!te(e)) {
|
|
1049
1049
|
let l = de(e);
|
|
@@ -1057,7 +1057,7 @@ function Vt(e, t) {
|
|
|
1057
1057
|
let n = rt(e, t);
|
|
1058
1058
|
for (; n && Oo(n) && Ge(n); )
|
|
1059
1059
|
n = rt(n, t);
|
|
1060
|
-
return n && ke(n) && Ge(n) && !Qe(n) ? o : n ||
|
|
1060
|
+
return n && ke(n) && Ge(n) && !Qe(n) ? o : n || _o(e) || o;
|
|
1061
1061
|
}
|
|
1062
1062
|
const Jo = async function(e) {
|
|
1063
1063
|
const t = this.getOffsetParent || Vt, o = this.getDimensions, n = await o(e.floating);
|
|
@@ -1349,7 +1349,7 @@ const nn = To, ln = Bo, sn = Ao, an = Co, rn = (e, t, o) => {
|
|
|
1349
1349
|
class: S(n.value)
|
|
1350
1350
|
}, [
|
|
1351
1351
|
h("tr", gn, [
|
|
1352
|
-
(c(!0), f(
|
|
1352
|
+
(c(!0), f(E, null, ce(s.columns, (r, u) => (c(), f("th", {
|
|
1353
1353
|
class: S(l(r)),
|
|
1354
1354
|
key: u,
|
|
1355
1355
|
style: ie(i(r))
|
|
@@ -1427,7 +1427,7 @@ const nn = To, ln = Bo, sn = Ao, an = Co, rn = (e, t, o) => {
|
|
|
1427
1427
|
key: 2,
|
|
1428
1428
|
size: "small",
|
|
1429
1429
|
onChange: r[2] || (r[2] = (u) => o("toggleRow"))
|
|
1430
|
-
})) : (c(), f(
|
|
1430
|
+
})) : (c(), f(E, { key: 3 }, [
|
|
1431
1431
|
a.column.bodySlot ? (c(), T(ee(a.column.bodySlot), {
|
|
1432
1432
|
key: 0,
|
|
1433
1433
|
data: a.item,
|
|
@@ -1457,7 +1457,7 @@ const nn = To, ln = Bo, sn = Ao, an = Co, rn = (e, t, o) => {
|
|
|
1457
1457
|
class: "table-row",
|
|
1458
1458
|
onClick: i[2] || (i[2] = (s) => o("rowClickHandler", { data: l.item, index: l.rowIndex }))
|
|
1459
1459
|
}, [
|
|
1460
|
-
(c(!0), f(
|
|
1460
|
+
(c(!0), f(E, null, ce(l.columns, (s) => (c(), T(Cn, {
|
|
1461
1461
|
key: s.field || s.header,
|
|
1462
1462
|
column: s,
|
|
1463
1463
|
item: l.item,
|
|
@@ -1488,7 +1488,7 @@ const nn = To, ln = Bo, sn = Ao, an = Co, rn = (e, t, o) => {
|
|
|
1488
1488
|
setup(e, { emit: t }) {
|
|
1489
1489
|
const o = t, n = (l, i) => l.id ? `row-${l.id}` : `row-${i}`;
|
|
1490
1490
|
return (l, i) => (c(), f("tbody", Sn, [
|
|
1491
|
-
(c(!0), f(
|
|
1491
|
+
(c(!0), f(E, null, ce(l.data, (s, a) => (c(), T(Vn, {
|
|
1492
1492
|
key: n(s, a),
|
|
1493
1493
|
rowIndex: a,
|
|
1494
1494
|
item: s,
|
|
@@ -1545,7 +1545,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1545
1545
|
e.value === "multiple" && Array.isArray(o.value) && (o.value.length === t.length ? o.value = [] : o.value = [...t]);
|
|
1546
1546
|
}
|
|
1547
1547
|
};
|
|
1548
|
-
},
|
|
1548
|
+
}, zn = (e, t) => ({
|
|
1549
1549
|
dataWithGroup: (n) => {
|
|
1550
1550
|
if (!e.value || !t.value) return n;
|
|
1551
1551
|
const l = /* @__PURE__ */ new Map();
|
|
@@ -1566,7 +1566,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1566
1566
|
});
|
|
1567
1567
|
}), i;
|
|
1568
1568
|
}
|
|
1569
|
-
}),
|
|
1569
|
+
}), En = /* @__PURE__ */ C({
|
|
1570
1570
|
__name: "DataTable",
|
|
1571
1571
|
props: {
|
|
1572
1572
|
theme: { default: "default" },
|
|
@@ -1580,7 +1580,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1580
1580
|
},
|
|
1581
1581
|
emits: ["update:selectedRows", "rowClickHandler"],
|
|
1582
1582
|
setup(e, { emit: t }) {
|
|
1583
|
-
const o = t, n = R(() => e.rowGroupMode), l = R(() => e.groupRowsBy), { dataWithGroup: i } =
|
|
1583
|
+
const o = t, n = R(() => e.rowGroupMode), l = R(() => e.groupRowsBy), { dataWithGroup: i } = zn(n, l), { columns: s, options: a } = Ln(n), r = R(() => a.value.selectedMode), { selectedRows: u, isSelectedAll: d, toggleSelectRow: m, toggleSelectedAll: $ } = Pn(r, e.data), v = M(null), k = R(() => {
|
|
1584
1584
|
let g = [...e.data];
|
|
1585
1585
|
if (v.value) {
|
|
1586
1586
|
const { field: x, order: B } = v.value;
|
|
@@ -1629,7 +1629,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1629
1629
|
O(On)
|
|
1630
1630
|
], 2));
|
|
1631
1631
|
}
|
|
1632
|
-
}), Yl = /* @__PURE__ */ me(
|
|
1632
|
+
}), Yl = /* @__PURE__ */ me(En, [["__scopeId", "data-v-e89998ae"]]), Xl = /* @__PURE__ */ C({
|
|
1633
1633
|
__name: "Column",
|
|
1634
1634
|
props: {
|
|
1635
1635
|
field: {},
|
|
@@ -1658,9 +1658,9 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1658
1658
|
n && n(l);
|
|
1659
1659
|
}), (i, s) => V("", !0);
|
|
1660
1660
|
}
|
|
1661
|
-
}),
|
|
1661
|
+
}), _n = { class: "chip-checkbox" }, Dn = ["name", "id", "value"], Gn = { class: "chip-checkbox__text" }, Zl = /* @__PURE__ */ C({
|
|
1662
1662
|
__name: "ChipCheckbox",
|
|
1663
|
-
props: /* @__PURE__ */
|
|
1663
|
+
props: /* @__PURE__ */ _({
|
|
1664
1664
|
value: {},
|
|
1665
1665
|
label: {},
|
|
1666
1666
|
id: {}
|
|
@@ -1671,7 +1671,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1671
1671
|
emits: ["update:modelValue"],
|
|
1672
1672
|
setup(e) {
|
|
1673
1673
|
const t = J(e, "modelValue"), o = xe();
|
|
1674
|
-
return (n, l) => (c(), f("div",
|
|
1674
|
+
return (n, l) => (c(), f("div", _n, [
|
|
1675
1675
|
ae(h("input", {
|
|
1676
1676
|
"onUpdate:modelValue": l[0] || (l[0] = (i) => t.value = i),
|
|
1677
1677
|
type: "checkbox",
|
|
@@ -1699,7 +1699,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
}), Fn = ["id", "value", "disabled"], Hn = ["for"], Tt = /* @__PURE__ */ C({
|
|
1701
1701
|
__name: "Radio",
|
|
1702
|
-
props: /* @__PURE__ */
|
|
1702
|
+
props: /* @__PURE__ */ _({
|
|
1703
1703
|
label: {},
|
|
1704
1704
|
disabled: { type: Boolean, default: !1 },
|
|
1705
1705
|
value: {},
|
|
@@ -1708,7 +1708,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1708
1708
|
modelValue: {},
|
|
1709
1709
|
modelModifiers: {}
|
|
1710
1710
|
}),
|
|
1711
|
-
emits: /* @__PURE__ */
|
|
1711
|
+
emits: /* @__PURE__ */ _(["change"], ["update:modelValue"]),
|
|
1712
1712
|
setup(e, { emit: t }) {
|
|
1713
1713
|
const o = J(e, "modelValue"), n = xe(), l = t, i = R(() => ["radio", `radio--${e.size}`]);
|
|
1714
1714
|
return (s, a) => (c(), f("div", {
|
|
@@ -1733,7 +1733,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1733
1733
|
for: b(n),
|
|
1734
1734
|
class: "radio__label"
|
|
1735
1735
|
}, [
|
|
1736
|
-
s.label ? (c(), f(
|
|
1736
|
+
s.label ? (c(), f(E, { key: 0 }, [
|
|
1737
1737
|
se(L(s.label), 1)
|
|
1738
1738
|
], 64)) : I(s.$slots, "default", { key: 1 })
|
|
1739
1739
|
], 8, Hn)
|
|
@@ -1790,7 +1790,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1790
1790
|
class: "input__error"
|
|
1791
1791
|
}, Bt = /* @__PURE__ */ C({
|
|
1792
1792
|
__name: "InputText",
|
|
1793
|
-
props: /* @__PURE__ */
|
|
1793
|
+
props: /* @__PURE__ */ _({
|
|
1794
1794
|
label: {},
|
|
1795
1795
|
placeholder: {},
|
|
1796
1796
|
allowClear: { type: Boolean },
|
|
@@ -1808,7 +1808,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1808
1808
|
modelValue: { required: !0 },
|
|
1809
1809
|
modelModifiers: {}
|
|
1810
1810
|
}),
|
|
1811
|
-
emits: /* @__PURE__ */
|
|
1811
|
+
emits: /* @__PURE__ */ _(["blur", "input"], ["update:modelValue"]),
|
|
1812
1812
|
setup(e, { emit: t }) {
|
|
1813
1813
|
const o = t, n = J(e, "modelValue"), l = xe(), i = M(!1), s = R(() => [
|
|
1814
1814
|
"input",
|
|
@@ -1844,7 +1844,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1844
1844
|
onBlur: u[2] || (u[2] = (d) => o("blur")),
|
|
1845
1845
|
onInput: u[3] || (u[3] = (d) => o("input", d))
|
|
1846
1846
|
}, null, 40, Zn), [
|
|
1847
|
-
[
|
|
1847
|
+
[zt, n.value]
|
|
1848
1848
|
]),
|
|
1849
1849
|
h("div", Kn, [
|
|
1850
1850
|
r.type === "text" && r.allowClear && n.value && n.value.length > 0 ? (c(), f("button", {
|
|
@@ -1894,11 +1894,13 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1894
1894
|
__name: "Spinner",
|
|
1895
1895
|
props: {
|
|
1896
1896
|
strokeWidth: { default: 3 },
|
|
1897
|
+
style: {},
|
|
1897
1898
|
size: { default: "default" }
|
|
1898
1899
|
},
|
|
1899
1900
|
setup(e) {
|
|
1900
1901
|
const t = R(() => typeof e.strokeWidth == "string" ? `${e.strokeWidth.split("px")[0]}px` : `${e.strokeWidth}px`), o = R(() => ({
|
|
1901
|
-
"--spinner-stroke-width": t.value
|
|
1902
|
+
"--spinner-stroke-width": t.value,
|
|
1903
|
+
...e.style
|
|
1902
1904
|
})), n = R(() => [
|
|
1903
1905
|
"spinner",
|
|
1904
1906
|
`spinner--${e.size}`
|
|
@@ -1915,7 +1917,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1915
1917
|
class: /* @__PURE__ */ S(["dropdown-option"])
|
|
1916
1918
|
}, nl = /* @__PURE__ */ C({
|
|
1917
1919
|
__name: "DropdownOption",
|
|
1918
|
-
props: /* @__PURE__ */
|
|
1920
|
+
props: /* @__PURE__ */ _({
|
|
1919
1921
|
item: {},
|
|
1920
1922
|
multiple: { type: Boolean, default: !1 }
|
|
1921
1923
|
}, {
|
|
@@ -1936,7 +1938,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1936
1938
|
o.$slots.option ? I(o.$slots, "option", {
|
|
1937
1939
|
key: 0,
|
|
1938
1940
|
option: o.item
|
|
1939
|
-
}) : (c(), f(
|
|
1941
|
+
}) : (c(), f(E, { key: 1 }, [
|
|
1940
1942
|
se(L(o.item.label), 1)
|
|
1941
1943
|
], 64))
|
|
1942
1944
|
]),
|
|
@@ -1951,7 +1953,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1951
1953
|
o.$slots.option ? I(o.$slots, "option", {
|
|
1952
1954
|
key: 0,
|
|
1953
1955
|
option: o.item
|
|
1954
|
-
}) : (c(), f(
|
|
1956
|
+
}) : (c(), f(E, { key: 1 }, [
|
|
1955
1957
|
se(L(o.item.label), 1)
|
|
1956
1958
|
], 64))
|
|
1957
1959
|
]),
|
|
@@ -1979,7 +1981,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1979
1981
|
class: "dropdown__popover-list"
|
|
1980
1982
|
}, Kl = /* @__PURE__ */ C({
|
|
1981
1983
|
__name: "Dropdown",
|
|
1982
|
-
props: /* @__PURE__ */
|
|
1984
|
+
props: /* @__PURE__ */ _({
|
|
1983
1985
|
options: {},
|
|
1984
1986
|
optionLabel: {},
|
|
1985
1987
|
optionValue: {},
|
|
@@ -1992,7 +1994,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
1992
1994
|
modelValue: { required: !0 },
|
|
1993
1995
|
modelModifiers: {}
|
|
1994
1996
|
}),
|
|
1995
|
-
emits: /* @__PURE__ */
|
|
1997
|
+
emits: /* @__PURE__ */ _(["search"], ["update:modelValue"]),
|
|
1996
1998
|
setup(e, { emit: t }) {
|
|
1997
1999
|
const o = t, n = R(() => e.optionValue ? e.optionValue : "value"), l = R(() => e.optionLabel ? e.optionLabel : "label"), i = J(e, "modelValue"), s = R({
|
|
1998
2000
|
get() {
|
|
@@ -2049,7 +2051,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
2049
2051
|
class: S(["dropdown__field-inner", [{ "dropdown__field-inner--multiple": p.multiple }, { "dropdown__field-inner--placeholder": !i.value }]])
|
|
2050
2052
|
}, [
|
|
2051
2053
|
p.multiple ? (c(), f("div", ll, [
|
|
2052
|
-
(c(!0), f(
|
|
2054
|
+
(c(!0), f(E, null, ce(s.value, (g) => (c(), T(b(Un), {
|
|
2053
2055
|
variant: "secondary",
|
|
2054
2056
|
key: g,
|
|
2055
2057
|
removable: "",
|
|
@@ -2097,7 +2099,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
2097
2099
|
p.loading ? (c(), f("div", ul, [
|
|
2098
2100
|
O(b(tl))
|
|
2099
2101
|
])) : (c(), f("div", cl, [
|
|
2100
|
-
(c(!0), f(
|
|
2102
|
+
(c(!0), f(E, null, ce(p.options, (g, w) => (c(), T(nl, {
|
|
2101
2103
|
key: w,
|
|
2102
2104
|
modelValue: s.value,
|
|
2103
2105
|
"onUpdate:modelValue": y[3] || (y[3] = (x) => s.value = x),
|
|
@@ -2111,7 +2113,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
2111
2113
|
}
|
|
2112
2114
|
}), dl = { class: "input-number__wrapper" }, fl = ["max"], Jl = /* @__PURE__ */ C({
|
|
2113
2115
|
__name: "InputNumber",
|
|
2114
|
-
props: /* @__PURE__ */
|
|
2116
|
+
props: /* @__PURE__ */ _({
|
|
2115
2117
|
viewButtons: { type: Boolean, default: !1 },
|
|
2116
2118
|
max: {},
|
|
2117
2119
|
countInPackage: { default: 1 },
|
|
@@ -2196,7 +2198,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
2196
2198
|
}
|
|
2197
2199
|
}), ml = { class: "input-phone" }, Ql = /* @__PURE__ */ C({
|
|
2198
2200
|
__name: "InputPhone",
|
|
2199
|
-
props: /* @__PURE__ */
|
|
2201
|
+
props: /* @__PURE__ */ _({
|
|
2200
2202
|
label: {},
|
|
2201
2203
|
placeholder: {},
|
|
2202
2204
|
allowClear: { type: Boolean },
|
|
@@ -2223,7 +2225,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
2223
2225
|
!s[2] && s[1] !== "" ? n.value = s[1] === "7" ? `${s[1]}` : "7" + s[1] : n.value = s[3] ? s[1] + " (" + s[2] + ") " + s[3] + (s[4] ? "-" + s[4] : "") + (s[5] ? "-" + s[5] : "") : `${s[1]} ` + s[2], o.value = n.value.replace(/\D/g, "");
|
|
2224
2226
|
};
|
|
2225
2227
|
return (i, s) => (c(), f("div", ml, [
|
|
2226
|
-
O(b(Bt),
|
|
2228
|
+
O(b(Bt), Et({
|
|
2227
2229
|
modelValue: n.value,
|
|
2228
2230
|
"onUpdate:modelValue": s[0] || (s[0] = (a) => n.value = a),
|
|
2229
2231
|
onInput: s[1] || (s[1] = (a) => l(a))
|
|
@@ -2232,7 +2234,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
2232
2234
|
}
|
|
2233
2235
|
}), vl = ["id", "disabled"], es = /* @__PURE__ */ C({
|
|
2234
2236
|
__name: "Switch",
|
|
2235
|
-
props: /* @__PURE__ */
|
|
2237
|
+
props: /* @__PURE__ */ _({
|
|
2236
2238
|
disabled: { type: Boolean }
|
|
2237
2239
|
}, {
|
|
2238
2240
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -2263,7 +2265,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
2263
2265
|
}
|
|
2264
2266
|
}), pl = ["for"], gl = ["id", "placeholder", "name", "disabled", "rows", "cols"], ts = /* @__PURE__ */ C({
|
|
2265
2267
|
__name: "Textarea",
|
|
2266
|
-
props: /* @__PURE__ */
|
|
2268
|
+
props: /* @__PURE__ */ _({
|
|
2267
2269
|
label: {},
|
|
2268
2270
|
placeholder: {},
|
|
2269
2271
|
name: {},
|
|
@@ -2338,7 +2340,7 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
2338
2340
|
setup(e) {
|
|
2339
2341
|
const t = (o) => o.url ? ut("RouterLink") : "div";
|
|
2340
2342
|
return (o, n) => (c(), f("div", hl, [
|
|
2341
|
-
(c(!0), f(
|
|
2343
|
+
(c(!0), f(E, null, ce(o.items, (l, i) => (c(), f(E, null, [
|
|
2342
2344
|
(c(), T(ee(t(l)), {
|
|
2343
2345
|
to: l.url,
|
|
2344
2346
|
class: S(["breadcrumb__item", { "breadcrumb__item--disabled": !l.url }])
|
|
@@ -2431,12 +2433,12 @@ const On = /* @__PURE__ */ me(Bn, [["render", In]]), Ln = (e) => {
|
|
|
2431
2433
|
}), (u, d) => (c(), T(b(Qt), null, {
|
|
2432
2434
|
default: H(() => [
|
|
2433
2435
|
h("div", Rl, [
|
|
2434
|
-
O(
|
|
2436
|
+
O(_t, {
|
|
2435
2437
|
name: "toast-fade",
|
|
2436
2438
|
tag: "div"
|
|
2437
2439
|
}, {
|
|
2438
2440
|
default: H(() => [
|
|
2439
|
-
(c(!0), f(
|
|
2441
|
+
(c(!0), f(E, null, ce(o.value, (m) => (c(), T(xl, {
|
|
2440
2442
|
key: m.id,
|
|
2441
2443
|
msg: m,
|
|
2442
2444
|
onClose: d[0] || (d[0] = ($) => l($))
|
|
@@ -2499,7 +2501,7 @@ const ss = {
|
|
|
2499
2501
|
}, [
|
|
2500
2502
|
(c(), T(ee(n[t.type]), { class: "message__icon" })),
|
|
2501
2503
|
h("div", Cl, [
|
|
2502
|
-
l.$slots.default ? I(l.$slots, "default", { key: 0 }, void 0, !0) : (c(), f(
|
|
2504
|
+
l.$slots.default ? I(l.$slots, "default", { key: 0 }, void 0, !0) : (c(), f(E, { key: 1 }, [
|
|
2503
2505
|
se(L(t.message), 1)
|
|
2504
2506
|
], 64))
|
|
2505
2507
|
])
|
|
@@ -2636,7 +2638,7 @@ const ss = {
|
|
|
2636
2638
|
class: "modal__header-title"
|
|
2637
2639
|
}, Ol = { class: "modal__body" }, cs = /* @__PURE__ */ C({
|
|
2638
2640
|
__name: "Modal",
|
|
2639
|
-
props: /* @__PURE__ */
|
|
2641
|
+
props: /* @__PURE__ */ _({
|
|
2640
2642
|
title: {},
|
|
2641
2643
|
style: {},
|
|
2642
2644
|
position: { default: "center" }
|
|
@@ -2728,7 +2730,7 @@ const ss = {
|
|
|
2728
2730
|
])
|
|
2729
2731
|
], 4));
|
|
2730
2732
|
}
|
|
2731
|
-
}), Pl = { class: "accordion-header__content" },
|
|
2733
|
+
}), Pl = { class: "accordion-header__content" }, zl = { class: "accordion-header__arrow" }, ms = /* @__PURE__ */ C({
|
|
2732
2734
|
__name: "AccordionHeader",
|
|
2733
2735
|
setup(e) {
|
|
2734
2736
|
const t = q("panelIsOpen"), o = q("panelToggle"), n = q("accordionStyle");
|
|
@@ -2740,7 +2742,7 @@ const ss = {
|
|
|
2740
2742
|
h("span", Pl, [
|
|
2741
2743
|
I(l.$slots, "default")
|
|
2742
2744
|
]),
|
|
2743
|
-
h("span",
|
|
2745
|
+
h("span", zl, [
|
|
2744
2746
|
O(b(Kt))
|
|
2745
2747
|
])
|
|
2746
2748
|
], 2));
|
|
@@ -2758,7 +2760,7 @@ const ss = {
|
|
|
2758
2760
|
I(s.$slots, "default")
|
|
2759
2761
|
], 2));
|
|
2760
2762
|
}
|
|
2761
|
-
}),
|
|
2763
|
+
}), El = {
|
|
2762
2764
|
key: 0,
|
|
2763
2765
|
class: "divider__content"
|
|
2764
2766
|
}, ps = /* @__PURE__ */ C({
|
|
@@ -2773,12 +2775,12 @@ const ss = {
|
|
|
2773
2775
|
return (o, n) => (c(), f("div", {
|
|
2774
2776
|
class: S(t.value)
|
|
2775
2777
|
}, [
|
|
2776
|
-
o.$slots.default ? (c(), f("div",
|
|
2778
|
+
o.$slots.default ? (c(), f("div", El, [
|
|
2777
2779
|
I(o.$slots, "default")
|
|
2778
2780
|
])) : V("", !0)
|
|
2779
2781
|
], 2));
|
|
2780
2782
|
}
|
|
2781
|
-
}),
|
|
2783
|
+
}), _l = ["aria-selected"], gs = /* @__PURE__ */ C({
|
|
2782
2784
|
__name: "Tab",
|
|
2783
2785
|
props: {
|
|
2784
2786
|
value: {}
|
|
@@ -2792,7 +2794,7 @@ const ss = {
|
|
|
2792
2794
|
"aria-selected": l.value
|
|
2793
2795
|
}, [
|
|
2794
2796
|
I(i.$slots, "default")
|
|
2795
|
-
], 10,
|
|
2797
|
+
], 10, _l));
|
|
2796
2798
|
}
|
|
2797
2799
|
}), Dl = { class: "tabs" }, hs = /* @__PURE__ */ C({
|
|
2798
2800
|
__name: "Tabs",
|
package/dist/utils/dayjs.util.ts
CHANGED
|
@@ -8,6 +8,7 @@ import isBetween from 'dayjs/plugin/isBetween'
|
|
|
8
8
|
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'
|
|
9
9
|
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'
|
|
10
10
|
import duration from 'dayjs/plugin/duration'
|
|
11
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat'
|
|
11
12
|
|
|
12
13
|
// 🌍 Локаль
|
|
13
14
|
import 'dayjs/locale/ru'
|
|
@@ -20,6 +21,7 @@ dayjs.extend(isBetween)
|
|
|
20
21
|
dayjs.extend(isSameOrBefore)
|
|
21
22
|
dayjs.extend(isSameOrAfter)
|
|
22
23
|
dayjs.extend(duration)
|
|
24
|
+
dayjs.extend(customParseFormat)
|
|
23
25
|
|
|
24
26
|
// 🗣️ Установка локали
|
|
25
27
|
dayjs.locale('ru')
|