prlg-ui 1.8.31 → 1.8.32
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/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +79 -79
- package/package.json +1 -1
package/dist/prlg-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, computed as I, resolveComponent as to, createBlock as _, openBlock as d, resolveDynamicComponent as xe, normalizeClass as L, withCtx as j, createCommentVNode as A, createElementBlock as m, renderSlot as W, Fragment as
|
|
1
|
+
import { defineComponent as D, computed as I, resolveComponent as to, createBlock as _, openBlock as d, resolveDynamicComponent as xe, normalizeClass as L, withCtx as j, createCommentVNode as A, createElementBlock as m, renderSlot as W, Fragment as te, createTextVNode as de, toDisplayString as F, ref as T, useTemplateRef as Fe, onMounted as pe, createElementVNode as $, createVNode as N, renderList as fe, unref as p, mergeModels as U, useModel as oe, withDirectives as Ve, vModelCheckbox as Rt, shallowRef as Te, watch as ae, getCurrentScope as To, onScopeDispose as Ao, shallowReadonly as ze, toRefs as Bo, useId as je, onUnmounted as Ze, Transition as Be, normalizeStyle as le, nextTick as me, withModifiers as Je, vModelDynamic as Lo, vModelRadio as Do, provide as ke, toRef as He, useSlots as oo, inject as ve, toValue as _e, isRef as Oo, vModelText as no, createStaticVNode as Eo, Teleport as st, reactive as lo, TransitionGroup as zo, vShow as ao, createApp as _o } from "vue";
|
|
2
2
|
import { P as so, j as Ho, k as Go, I as Pt, A as Fo, e as xt, g as No, S as qo, a as Wo, b as ro, M as Yo, h as jo, i as Uo, C as Ko, c as Xo, E as Zo, B as Jo, d as Qo, W as en, f as tn } from "./WarningFillIcon-cJBG6d6O.js";
|
|
3
3
|
import { o as on, d as X } from "./parseFileSize.util-CxVk4CvB.js";
|
|
4
4
|
import { _ as se, a as nn, C as io } from "./FileIcon-maHE2Nhr.js";
|
|
@@ -47,7 +47,7 @@ const an = {
|
|
|
47
47
|
})) : A("", !0),
|
|
48
48
|
a.iconOnly ? A("", !0) : (d(), m("div", an, [
|
|
49
49
|
W(a.$slots, "default"),
|
|
50
|
-
a.label && !a.$slots.default ? (d(), m(
|
|
50
|
+
a.label && !a.$slots.default ? (d(), m(te, { key: 0 }, [
|
|
51
51
|
de(F(a.label), 1)
|
|
52
52
|
], 64)) : A("", !0)
|
|
53
53
|
]))
|
|
@@ -79,7 +79,7 @@ const an = {
|
|
|
79
79
|
ref: o,
|
|
80
80
|
class: L(["sleed-deal-menu sleed-deal__items", { "sleed-deal-menu--open": t.value }])
|
|
81
81
|
}, [
|
|
82
|
-
(d(!0), m(
|
|
82
|
+
(d(!0), m(te, null, fe(n.items, (i) => (d(), m("div", {
|
|
83
83
|
class: "sleed-deal-menu__item",
|
|
84
84
|
key: i.label,
|
|
85
85
|
onClick: (u) => r(i)
|
|
@@ -172,7 +172,7 @@ const an = {
|
|
|
172
172
|
else
|
|
173
173
|
l.value = s;
|
|
174
174
|
}
|
|
175
|
-
}), l =
|
|
175
|
+
}), l = oe(e, "modelValue"), r = I(() => Math.random().toString(36).substr(2, 9)), n = I(() => [
|
|
176
176
|
"checkbox",
|
|
177
177
|
`checkbox--${e.size}`,
|
|
178
178
|
{
|
|
@@ -600,13 +600,13 @@ const An = (e) => ({
|
|
|
600
600
|
var H;
|
|
601
601
|
const re = (H = M.filter((Z) => {
|
|
602
602
|
if (R) {
|
|
603
|
-
const
|
|
604
|
-
return
|
|
603
|
+
const ne = Ae(Z.placement);
|
|
604
|
+
return ne === b || // Create a bias to the `y` side axis due to horizontal
|
|
605
605
|
// reading directions favoring greater width.
|
|
606
|
-
|
|
606
|
+
ne === "y";
|
|
607
607
|
}
|
|
608
608
|
return !0;
|
|
609
|
-
}).map((Z) => [Z.placement, Z.overflows.filter((
|
|
609
|
+
}).map((Z) => [Z.placement, Z.overflows.filter((ne) => ne > 0).reduce((ne, J) => ne + J, 0)]).sort((Z, ne) => Z[1] - ne[1])[0]) == null ? void 0 : H[0];
|
|
610
610
|
re && (O = re);
|
|
611
611
|
break;
|
|
612
612
|
}
|
|
@@ -1377,10 +1377,10 @@ const fl = {
|
|
|
1377
1377
|
]
|
|
1378
1378
|
}), M = je(), V = T(!1), G = T(!1), H = T(!1), { lockScroll: z, unlockScroll: q } = rt(), O = T(null), re = T(null), Z = () => {
|
|
1379
1379
|
w(), G.value && h();
|
|
1380
|
-
},
|
|
1381
|
-
get: () =>
|
|
1380
|
+
}, ne = I(() => i && i.value !== void 0), J = I({
|
|
1381
|
+
get: () => ne.value ? i?.value : V.value,
|
|
1382
1382
|
set: (Y) => {
|
|
1383
|
-
|
|
1383
|
+
ne.value ? v("update:modelValue", Y) : V.value = Y;
|
|
1384
1384
|
}
|
|
1385
1385
|
}), K = () => {
|
|
1386
1386
|
J.value = !0;
|
|
@@ -1389,13 +1389,13 @@ const fl = {
|
|
|
1389
1389
|
}, ue = () => {
|
|
1390
1390
|
J.value = !J.value;
|
|
1391
1391
|
}, ge = () => {
|
|
1392
|
-
|
|
1392
|
+
ne.value ? K() : ue();
|
|
1393
1393
|
}, ce = async (Y) => {
|
|
1394
1394
|
Y && Y.stopPropagation(), g.value && (G.value = !0);
|
|
1395
1395
|
}, he = () => {
|
|
1396
1396
|
G.value = !1;
|
|
1397
1397
|
}, $e = (Y) => {
|
|
1398
|
-
if (s.value === "button-only"
|
|
1398
|
+
if (s.value === "button-only") return;
|
|
1399
1399
|
const ye = Y.composedPath();
|
|
1400
1400
|
if (!(S.value && ye.includes(S.value))) {
|
|
1401
1401
|
if (g.value && ye.includes(g.value) || f.value && ye.includes(f.value)) {
|
|
@@ -1424,7 +1424,7 @@ const fl = {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
});
|
|
1426
1426
|
return ae(B, (Y) => {
|
|
1427
|
-
|
|
1427
|
+
ne.value || (J.value = Y.hide?.referenceHidden === !1);
|
|
1428
1428
|
}), ae(J, async (Y) => {
|
|
1429
1429
|
Y || (he(), H.value = !1), Y && s.value === "button-only" ? (z(), setTimeout(() => {
|
|
1430
1430
|
Z(), H.value = !0;
|
|
@@ -1546,7 +1546,7 @@ const fl = {
|
|
|
1546
1546
|
}, 8, ["layer", "z-index", "show"])
|
|
1547
1547
|
], 2));
|
|
1548
1548
|
}
|
|
1549
|
-
}), So = /* @__PURE__ */ se(pl, [["__scopeId", "data-v-
|
|
1549
|
+
}), So = /* @__PURE__ */ se(pl, [["__scopeId", "data-v-f9073a32"]]), gl = { class: "trigger" }, hl = { class: "description-column" }, yl = /* @__PURE__ */ D({
|
|
1550
1550
|
__name: "DescriptionColumn",
|
|
1551
1551
|
props: {
|
|
1552
1552
|
description: {}
|
|
@@ -1600,7 +1600,7 @@ const fl = {
|
|
|
1600
1600
|
class: L(a.value)
|
|
1601
1601
|
}, [
|
|
1602
1602
|
$("tr", wl, [
|
|
1603
|
-
(d(!0), m(
|
|
1603
|
+
(d(!0), m(te, null, fe(n.columns, (i, u) => (d(), m("th", {
|
|
1604
1604
|
class: L(l(i)),
|
|
1605
1605
|
key: u,
|
|
1606
1606
|
style: le(r(i))
|
|
@@ -1678,7 +1678,7 @@ const fl = {
|
|
|
1678
1678
|
key: 2,
|
|
1679
1679
|
size: "small",
|
|
1680
1680
|
onChange: i[2] || (i[2] = (u) => o("toggleRow"))
|
|
1681
|
-
})) : (d(), m(
|
|
1681
|
+
})) : (d(), m(te, { key: 3 }, [
|
|
1682
1682
|
s.column.bodySlot ? (d(), _(xe(s.column.bodySlot), {
|
|
1683
1683
|
key: 0,
|
|
1684
1684
|
data: s.item,
|
|
@@ -1711,7 +1711,7 @@ const fl = {
|
|
|
1711
1711
|
style: le(a.value),
|
|
1712
1712
|
onClick: n[2] || (n[2] = (s) => o("rowClickHandler", { data: r.item, index: r.rowIndex }))
|
|
1713
1713
|
}, [
|
|
1714
|
-
(d(!0), m(
|
|
1714
|
+
(d(!0), m(te, null, fe(r.columns, (s) => (d(), _(Ml, {
|
|
1715
1715
|
key: s.field || s.header,
|
|
1716
1716
|
column: s,
|
|
1717
1717
|
item: r.item,
|
|
@@ -1774,7 +1774,7 @@ const fl = {
|
|
|
1774
1774
|
colspan: f.columns.length
|
|
1775
1775
|
}, null, 8, Il)
|
|
1776
1776
|
], 4)) : A("", !0),
|
|
1777
|
-
(d(!0), m(
|
|
1777
|
+
(d(!0), m(te, null, fe(u.value, (y, S) => (d(), _(Kt, {
|
|
1778
1778
|
key: v(y, s.value + S),
|
|
1779
1779
|
rowIndex: s.value + S,
|
|
1780
1780
|
item: y,
|
|
@@ -1803,7 +1803,7 @@ const fl = {
|
|
|
1803
1803
|
class: L(["table-body", { "table-body--scroller": f.scroller && f.scroller.enable }]),
|
|
1804
1804
|
style: le({ maxHeight: `${f.scroller && f.scroller.height}px` })
|
|
1805
1805
|
}, [
|
|
1806
|
-
(d(!0), m(
|
|
1806
|
+
(d(!0), m(te, null, fe(f.data, (y, S) => (d(), _(Kt, {
|
|
1807
1807
|
key: v(y, S),
|
|
1808
1808
|
rowIndex: S,
|
|
1809
1809
|
item: y,
|
|
@@ -1894,7 +1894,7 @@ const fl = {
|
|
|
1894
1894
|
}),
|
|
1895
1895
|
emits: /* @__PURE__ */ U(["blur", "input", "paste", "focus", "clear"], ["update:modelValue"]),
|
|
1896
1896
|
setup(e, { emit: t }) {
|
|
1897
|
-
const o = t, a =
|
|
1897
|
+
const o = t, a = oe(e, "modelValue"), l = je(), r = T(!1), n = I(() => [
|
|
1898
1898
|
"input",
|
|
1899
1899
|
`input--${e.size}`,
|
|
1900
1900
|
`input--${e.variant}`,
|
|
@@ -2018,7 +2018,7 @@ const fl = {
|
|
|
2018
2018
|
}),
|
|
2019
2019
|
emits: /* @__PURE__ */ U(["change"], ["update:modelValue"]),
|
|
2020
2020
|
setup(e, { emit: t }) {
|
|
2021
|
-
const o =
|
|
2021
|
+
const o = oe(e, "modelValue"), a = je(), l = t, r = I(() => ["radio", `radio--${e.size}`]);
|
|
2022
2022
|
return (n, s) => (d(), m("div", {
|
|
2023
2023
|
class: L(r.value)
|
|
2024
2024
|
}, [
|
|
@@ -2041,7 +2041,7 @@ const fl = {
|
|
|
2041
2041
|
for: p(a),
|
|
2042
2042
|
class: "radio__label"
|
|
2043
2043
|
}, [
|
|
2044
|
-
n.label ? (d(), m(
|
|
2044
|
+
n.label ? (d(), m(te, { key: 0 }, [
|
|
2045
2045
|
de(F(n.label), 1)
|
|
2046
2046
|
], 64)) : W(n.$slots, "default", { key: 1 })
|
|
2047
2047
|
], 8, Wl)
|
|
@@ -2062,7 +2062,7 @@ const fl = {
|
|
|
2062
2062
|
}),
|
|
2063
2063
|
emits: /* @__PURE__ */ U(["close"], ["update:modelValue"]),
|
|
2064
2064
|
setup(e, { emit: t }) {
|
|
2065
|
-
const o =
|
|
2065
|
+
const o = oe(e, "modelValue"), a = t, l = () => {
|
|
2066
2066
|
e.multiple || a("close");
|
|
2067
2067
|
};
|
|
2068
2068
|
return (r, n) => (d(), m("div", Yl, [
|
|
@@ -2077,7 +2077,7 @@ const fl = {
|
|
|
2077
2077
|
r.$slots.option ? W(r.$slots, "option", {
|
|
2078
2078
|
key: 0,
|
|
2079
2079
|
option: r.item
|
|
2080
|
-
}) : (d(), m(
|
|
2080
|
+
}) : (d(), m(te, { key: 1 }, [
|
|
2081
2081
|
de(F(r.item[r.optionLabel]), 1)
|
|
2082
2082
|
], 64))
|
|
2083
2083
|
]),
|
|
@@ -2093,7 +2093,7 @@ const fl = {
|
|
|
2093
2093
|
r.$slots.option ? W(r.$slots, "option", {
|
|
2094
2094
|
key: 0,
|
|
2095
2095
|
option: r.item
|
|
2096
|
-
}) : (d(), m(
|
|
2096
|
+
}) : (d(), m(te, { key: 1 }, [
|
|
2097
2097
|
de(F(r.item[r.optionLabel]), 1)
|
|
2098
2098
|
], 64))
|
|
2099
2099
|
]),
|
|
@@ -2137,7 +2137,7 @@ const fl = {
|
|
|
2137
2137
|
}),
|
|
2138
2138
|
emits: /* @__PURE__ */ U(["search", "select"], ["update:modelValue"]),
|
|
2139
2139
|
setup(e, { emit: t }) {
|
|
2140
|
-
const o = t, a = I(() => e.optionValue ? e.optionValue : "value"), l = I(() => e.optionLabel ? e.optionLabel : "label"), r =
|
|
2140
|
+
const o = t, a = I(() => e.optionValue ? e.optionValue : "value"), l = I(() => e.optionLabel ? e.optionLabel : "label"), r = oe(e, "modelValue"), n = I({
|
|
2141
2141
|
get() {
|
|
2142
2142
|
if (e.multiple) {
|
|
2143
2143
|
const k = Array.isArray(r.value) ? r.value : [];
|
|
@@ -2218,9 +2218,9 @@ const fl = {
|
|
|
2218
2218
|
$("div", {
|
|
2219
2219
|
class: L(["dropdown__field-inner", [{ "dropdown__field-inner--multiple": k.multiple }, { "dropdown__field-inner--placeholder": !r.value }, { "dropdown__field-inner--open": v.value }]])
|
|
2220
2220
|
}, [
|
|
2221
|
-
k.multiple ? (d(), m(
|
|
2221
|
+
k.multiple ? (d(), m(te, { key: 0 }, [
|
|
2222
2222
|
s.value ? (d(), m("span", Ul, F(s.value ? k.placeholder : g.value), 1)) : (d(), m("div", jl, [
|
|
2223
|
-
(d(!0), m(
|
|
2223
|
+
(d(!0), m(te, null, fe(P.value.visible, (x) => (d(), _(p(Zt), {
|
|
2224
2224
|
variant: "secondary",
|
|
2225
2225
|
key: x,
|
|
2226
2226
|
removable: "",
|
|
@@ -2282,7 +2282,7 @@ const fl = {
|
|
|
2282
2282
|
k.loading ? (d(), m("div", Ql, [
|
|
2283
2283
|
N(p(Ct))
|
|
2284
2284
|
])) : (d(), m("div", ea, [
|
|
2285
|
-
k.$slots.option ? (d(!0), m(
|
|
2285
|
+
k.$slots.option ? (d(!0), m(te, { key: 0 }, fe(k.options, (x, B) => (d(), _(Jt, {
|
|
2286
2286
|
key: B,
|
|
2287
2287
|
modelValue: n.value,
|
|
2288
2288
|
"onUpdate:modelValue": b[2] || (b[2] = (w) => n.value = w),
|
|
@@ -2296,7 +2296,7 @@ const fl = {
|
|
|
2296
2296
|
W(k.$slots, "option", { option: w }, void 0, !0)
|
|
2297
2297
|
]),
|
|
2298
2298
|
_: 2
|
|
2299
|
-
}, 1032, ["modelValue", "item", "multiple", "optionLabel", "optionValue"]))), 128)) : (d(!0), m(
|
|
2299
|
+
}, 1032, ["modelValue", "item", "multiple", "optionLabel", "optionValue"]))), 128)) : (d(!0), m(te, { key: 1 }, fe(k.options, (x, B) => (d(), _(Jt, {
|
|
2300
2300
|
key: B,
|
|
2301
2301
|
modelValue: n.value,
|
|
2302
2302
|
"onUpdate:modelValue": b[4] || (b[4] = (w) => n.value = w),
|
|
@@ -2333,7 +2333,7 @@ const fl = {
|
|
|
2333
2333
|
}),
|
|
2334
2334
|
emits: ["update:currentPage", "update:perPage"],
|
|
2335
2335
|
setup(e) {
|
|
2336
|
-
const t =
|
|
2336
|
+
const t = oe(e, "currentPage"), o = oe(e, "perPage"), a = I(() => Math.ceil(e.totals / (o.value ?? 25))), l = I(() => e.perPageOptions.map((n) => ({
|
|
2337
2337
|
label: n,
|
|
2338
2338
|
value: n
|
|
2339
2339
|
}))), r = I(() => {
|
|
@@ -2352,7 +2352,7 @@ const fl = {
|
|
|
2352
2352
|
N(p(Wo))
|
|
2353
2353
|
], 8, la),
|
|
2354
2354
|
$("div", aa, [
|
|
2355
|
-
(d(!0), m(
|
|
2355
|
+
(d(!0), m(te, null, fe(r.value, (i) => (d(), m("button", {
|
|
2356
2356
|
class: L(["paginator-button paginator__page", { "paginator-button--active": t.value === i }]),
|
|
2357
2357
|
key: i,
|
|
2358
2358
|
onClick: (u) => t.value = Number(i)
|
|
@@ -2398,7 +2398,7 @@ const fl = {
|
|
|
2398
2398
|
}),
|
|
2399
2399
|
emits: ["update:currentPage", "update:perPage"],
|
|
2400
2400
|
setup(e) {
|
|
2401
|
-
const t =
|
|
2401
|
+
const t = oe(e, "currentPage"), o = oe(e, "perPage"), a = I(() => e.paginator && t.value);
|
|
2402
2402
|
return (l, r) => a.value ? (d(), m("tfoot", da, [
|
|
2403
2403
|
$("tr", null, [
|
|
2404
2404
|
$("td", fa, [
|
|
@@ -2522,7 +2522,7 @@ const fl = {
|
|
|
2522
2522
|
}),
|
|
2523
2523
|
emits: /* @__PURE__ */ U(["update:selectedRows", "rowClickHandler"], ["update:currentPage", "update:perPage"]),
|
|
2524
2524
|
setup(e, { emit: t }) {
|
|
2525
|
-
const o = t, a = I(() => e.rowGroupMode), l = I(() => e.groupRowsBy), { dataWithGroup: r } = ga(a, l), { columns: n, options: s } = ma(a), i = I(() => s.value.selectedMode), { selectedRows: u, isSelectedAll: c, toggleSelectRow: v, toggleSelectedAll: f } = pa(i, e.data), g = T(null), y = T(), S =
|
|
2525
|
+
const o = t, a = I(() => e.rowGroupMode), l = I(() => e.groupRowsBy), { dataWithGroup: r } = ga(a, l), { columns: n, options: s } = ma(a), i = I(() => s.value.selectedMode), { selectedRows: u, isSelectedAll: c, toggleSelectRow: v, toggleSelectedAll: f } = pa(i, e.data), g = T(null), y = T(), S = oe(e, "currentPage"), P = oe(e, "perPage"), k = (h) => {
|
|
2526
2526
|
if (e.virtualScroll && e.virtualScroll.enable && y.value) {
|
|
2527
2527
|
const M = h.target;
|
|
2528
2528
|
y.value.handleScroll(M);
|
|
@@ -2754,7 +2754,7 @@ const fl = {
|
|
|
2754
2754
|
}),
|
|
2755
2755
|
emits: ["update:modelValue"],
|
|
2756
2756
|
setup(e) {
|
|
2757
|
-
const t =
|
|
2757
|
+
const t = oe(e, "modelValue"), o = je();
|
|
2758
2758
|
return (a, l) => (d(), m("div", Ma, [
|
|
2759
2759
|
Ve($("input", {
|
|
2760
2760
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
|
|
@@ -2939,7 +2939,7 @@ function Ta(e, t) {
|
|
|
2939
2939
|
const O = C.selectionStart || 0, re = C.selectionEnd || 0;
|
|
2940
2940
|
if (O !== re) {
|
|
2941
2941
|
n.value = f(""), e.value = "", me(() => {
|
|
2942
|
-
const { required:
|
|
2942
|
+
const { required: ne, optional: J } = u(o), K = ne + J;
|
|
2943
2943
|
let ie = 0;
|
|
2944
2944
|
for (let ue = 0; ue < K.length; ue++)
|
|
2945
2945
|
if (c(K[ue])) {
|
|
@@ -2951,7 +2951,7 @@ function Ta(e, t) {
|
|
|
2951
2951
|
return;
|
|
2952
2952
|
}
|
|
2953
2953
|
if (E > 0 && n.value.length > 0) {
|
|
2954
|
-
const
|
|
2954
|
+
const ne = n.value;
|
|
2955
2955
|
let J = "", K = -1;
|
|
2956
2956
|
const { required: ie, optional: ue } = u(o), ge = ie + ue;
|
|
2957
2957
|
for (let ce = E - 1; ce >= 0; ce--)
|
|
@@ -2960,7 +2960,7 @@ function Ta(e, t) {
|
|
|
2960
2960
|
break;
|
|
2961
2961
|
}
|
|
2962
2962
|
if (K >= 0) {
|
|
2963
|
-
let ce = y(
|
|
2963
|
+
let ce = y(ne), he = 0;
|
|
2964
2964
|
for (let $e = 0; $e <= K; $e++) {
|
|
2965
2965
|
const { required: mt, optional: Lt } = u(o), Y = mt + Lt;
|
|
2966
2966
|
if ($e < Y.length && c(Y[$e])) {
|
|
@@ -2982,7 +2982,7 @@ function Ta(e, t) {
|
|
|
2982
2982
|
const O = C.selectionStart || 0, re = C.selectionEnd || 0;
|
|
2983
2983
|
if (O !== re) {
|
|
2984
2984
|
n.value = f(""), e.value = "", me(() => {
|
|
2985
|
-
const { required:
|
|
2985
|
+
const { required: ne, optional: J } = u(o), K = ne + J;
|
|
2986
2986
|
let ie = 0;
|
|
2987
2987
|
for (let ue = 0; ue < K.length; ue++)
|
|
2988
2988
|
if (c(K[ue])) {
|
|
@@ -2994,9 +2994,9 @@ function Ta(e, t) {
|
|
|
2994
2994
|
return;
|
|
2995
2995
|
}
|
|
2996
2996
|
if (E < n.value.length) {
|
|
2997
|
-
const
|
|
2997
|
+
const ne = n.value;
|
|
2998
2998
|
let J = -1;
|
|
2999
|
-
for (let K = E; K <
|
|
2999
|
+
for (let K = E; K < ne.length; K++) {
|
|
3000
3000
|
const { required: ie, optional: ue } = u(o), ge = ie + ue;
|
|
3001
3001
|
if (K < ge.length && c(ge[K])) {
|
|
3002
3002
|
J = K;
|
|
@@ -3004,7 +3004,7 @@ function Ta(e, t) {
|
|
|
3004
3004
|
}
|
|
3005
3005
|
}
|
|
3006
3006
|
if (J >= 0) {
|
|
3007
|
-
let K = y(
|
|
3007
|
+
let K = y(ne), ie = 0;
|
|
3008
3008
|
for (let ge = 0; ge <= J; ge++) {
|
|
3009
3009
|
const { required: ce, optional: he } = u(o), $e = ce + he;
|
|
3010
3010
|
if (ge < $e.length && c($e[ge])) {
|
|
@@ -3096,7 +3096,7 @@ const vr = /* @__PURE__ */ D({
|
|
|
3096
3096
|
}),
|
|
3097
3097
|
emits: ["update:modelValue"],
|
|
3098
3098
|
setup(e) {
|
|
3099
|
-
const t = e, o =
|
|
3099
|
+
const t = e, o = oe(e, "modelValue"), {
|
|
3100
3100
|
displayValue: a,
|
|
3101
3101
|
handleInput: l,
|
|
3102
3102
|
handlePaste: r,
|
|
@@ -3140,7 +3140,7 @@ const vr = /* @__PURE__ */ D({
|
|
|
3140
3140
|
}),
|
|
3141
3141
|
emits: ["update:modelValue"],
|
|
3142
3142
|
setup(e) {
|
|
3143
|
-
const t =
|
|
3143
|
+
const t = oe(e, "modelValue"), o = T(e.formatter ? e.formatter(t.value) : t.value);
|
|
3144
3144
|
ae(t, (s) => {
|
|
3145
3145
|
o.value = e.formatter ? e.formatter(s) : s;
|
|
3146
3146
|
});
|
|
@@ -3217,7 +3217,7 @@ const vr = /* @__PURE__ */ D({
|
|
|
3217
3217
|
},
|
|
3218
3218
|
emits: ["update:modelValue"],
|
|
3219
3219
|
setup(e) {
|
|
3220
|
-
const t =
|
|
3220
|
+
const t = oe(e, "modelValue"), o = I({
|
|
3221
3221
|
get() {
|
|
3222
3222
|
return a(t.value);
|
|
3223
3223
|
},
|
|
@@ -3263,11 +3263,11 @@ const vr = /* @__PURE__ */ D({
|
|
|
3263
3263
|
}),
|
|
3264
3264
|
emits: ["update:modelValue"],
|
|
3265
3265
|
setup(e) {
|
|
3266
|
-
const t =
|
|
3266
|
+
const t = oe(e, "modelValue"), o = (l) => typeof l == "object" ? t.value === l[e.optionValue] : t.value === l, a = (l) => {
|
|
3267
3267
|
typeof l == "object" ? t.value = t.value === l[e.optionValue] ? null : l[e.optionValue] : t.value = t.value === l ? null : l;
|
|
3268
3268
|
};
|
|
3269
3269
|
return (l, r) => (d(), m("div", La, [
|
|
3270
|
-
(d(!0), m(
|
|
3270
|
+
(d(!0), m(te, null, fe(l.options, (n) => (d(), m("button", {
|
|
3271
3271
|
class: L(["select-buttons__item", { "select-buttons__item--selected": o(n) }]),
|
|
3272
3272
|
key: typeof n == "object" ? n[l.optionValue] : n,
|
|
3273
3273
|
onClick: (s) => a(n)
|
|
@@ -3284,7 +3284,7 @@ const vr = /* @__PURE__ */ D({
|
|
|
3284
3284
|
}),
|
|
3285
3285
|
emits: ["update:modelValue"],
|
|
3286
3286
|
setup(e) {
|
|
3287
|
-
const t =
|
|
3287
|
+
const t = oe(e, "modelValue"), o = je();
|
|
3288
3288
|
return (a, l) => (d(), m("div", {
|
|
3289
3289
|
class: L(["switch", {
|
|
3290
3290
|
"switch--disabled": a.disabled
|
|
@@ -3317,7 +3317,7 @@ const vr = /* @__PURE__ */ D({
|
|
|
3317
3317
|
}),
|
|
3318
3318
|
emits: ["update:modelValue"],
|
|
3319
3319
|
setup(e) {
|
|
3320
|
-
const t =
|
|
3320
|
+
const t = oe(e, "modelValue"), o = I({
|
|
3321
3321
|
get() {
|
|
3322
3322
|
return t.value ?? 0;
|
|
3323
3323
|
},
|
|
@@ -3353,7 +3353,7 @@ const vr = /* @__PURE__ */ D({
|
|
|
3353
3353
|
l.value = null;
|
|
3354
3354
|
};
|
|
3355
3355
|
return (u, c) => (d(), m("div", za, [
|
|
3356
|
-
(d(!0), m(
|
|
3356
|
+
(d(!0), m(te, null, fe(u.maxStars, (v) => (d(), m("button", {
|
|
3357
3357
|
key: v,
|
|
3358
3358
|
type: "button",
|
|
3359
3359
|
class: L(["star-button", { "star-button--active": v <= o.value }]),
|
|
@@ -3400,7 +3400,7 @@ const vr = /* @__PURE__ */ D({
|
|
|
3400
3400
|
}),
|
|
3401
3401
|
emits: /* @__PURE__ */ U(["focusIn", "focusOut", "blur"], ["update:modelValue"]),
|
|
3402
3402
|
setup(e, { emit: t }) {
|
|
3403
|
-
const o = t, a =
|
|
3403
|
+
const o = t, a = oe(e, "modelValue"), l = T(null), r = je(), n = () => {
|
|
3404
3404
|
const i = l.value;
|
|
3405
3405
|
if (!i) return;
|
|
3406
3406
|
const u = {
|
|
@@ -3736,7 +3736,7 @@ const Za = { class: "calendar__header" }, Ja = { class: "calendar__header-title"
|
|
|
3736
3736
|
}),
|
|
3737
3737
|
emits: ["update:modelValue"],
|
|
3738
3738
|
setup(e) {
|
|
3739
|
-
const t = e, o = He(t, "type"), a = He(t, "format"), l = He(t, "range"), r = He(t, "minDate"), n = He(t, "maxDate"), s =
|
|
3739
|
+
const t = e, o = He(t, "type"), a = He(t, "format"), l = He(t, "range"), r = He(t, "minDate"), n = He(t, "maxDate"), s = oe(e, "modelValue"), i = T(!1), u = T(o.value || "day"), { calendarCells: c, activeDateInfo: v, goToPreviousPage: f, goToNextPage: g } = Xa(u, a, s, r, n, l), y = I({
|
|
3740
3740
|
get() {
|
|
3741
3741
|
return u.value;
|
|
3742
3742
|
},
|
|
@@ -3827,7 +3827,7 @@ const Za = { class: "calendar__header" }, Ja = { class: "calendar__header-title"
|
|
|
3827
3827
|
Eo('<div class="calendar__body-header__item" data-v-e2037ecf><span data-v-e2037ecf>Пн</span></div><div class="calendar__body-header__item" data-v-e2037ecf><span data-v-e2037ecf>Вт</span></div><div class="calendar__body-header__item" data-v-e2037ecf><span data-v-e2037ecf>Ср</span></div><div class="calendar__body-header__item" data-v-e2037ecf><span data-v-e2037ecf>Чт</span></div><div class="calendar__body-header__item" data-v-e2037ecf><span data-v-e2037ecf>Пт</span></div><div class="calendar__body-header__item" data-v-e2037ecf><span data-v-e2037ecf>Сб</span></div><div class="calendar__body-header__item" data-v-e2037ecf><span data-v-e2037ecf>Вс</span></div>', 7)
|
|
3828
3828
|
])])) : A("", !0),
|
|
3829
3829
|
$("div", os, [
|
|
3830
|
-
(d(!0), m(
|
|
3830
|
+
(d(!0), m(te, null, fe(p(c), (B) => (d(), m("button", {
|
|
3831
3831
|
key: B.value,
|
|
3832
3832
|
class: L(P(B)),
|
|
3833
3833
|
disabled: B.disabled,
|
|
@@ -4021,7 +4021,7 @@ const rs = /* @__PURE__ */ D({
|
|
|
4021
4021
|
return null;
|
|
4022
4022
|
}
|
|
4023
4023
|
}
|
|
4024
|
-
const l = new ss(), r = e, n = t, s =
|
|
4024
|
+
const l = new ss(), r = e, n = t, s = oe(e, "modelValue"), i = T(), u = T(), c = T(), v = T(!1), f = T(s.value), g = T({}), y = I(() => {
|
|
4025
4025
|
if (!s.value) return "";
|
|
4026
4026
|
if (typeof s.value == "string")
|
|
4027
4027
|
return s.value;
|
|
@@ -4146,7 +4146,7 @@ const rs = /* @__PURE__ */ D({
|
|
|
4146
4146
|
setup(e) {
|
|
4147
4147
|
const t = (o) => o.url ? to("RouterLink") : "div";
|
|
4148
4148
|
return (o, a) => (d(), m("div", is, [
|
|
4149
|
-
(d(!0), m(
|
|
4149
|
+
(d(!0), m(te, null, fe(o.items, (l, r) => (d(), m(te, null, [
|
|
4150
4150
|
l.command ? (d(), m("button", {
|
|
4151
4151
|
key: 0,
|
|
4152
4152
|
class: L(["breadcrumb__item", { "breadcrumb__item--disabled": !l.command || l.disabled }]),
|
|
@@ -4256,7 +4256,7 @@ const rs = /* @__PURE__ */ D({
|
|
|
4256
4256
|
class: "toast-messages"
|
|
4257
4257
|
}, {
|
|
4258
4258
|
default: j(() => [
|
|
4259
|
-
(d(!0), m(
|
|
4259
|
+
(d(!0), m(te, null, fe(o.value, (v) => (d(), _(ps, {
|
|
4260
4260
|
key: v.id,
|
|
4261
4261
|
msg: v,
|
|
4262
4262
|
onClose: c[0] || (c[0] = (f) => l(f))
|
|
@@ -4319,7 +4319,7 @@ const Cr = {
|
|
|
4319
4319
|
}, [
|
|
4320
4320
|
(d(), _(xe(a[t.type]), { class: "message__icon" })),
|
|
4321
4321
|
$("div", hs, [
|
|
4322
|
-
l.$slots.default ? W(l.$slots, "default", { key: 0 }, void 0, !0) : (d(), m(
|
|
4322
|
+
l.$slots.default ? W(l.$slots, "default", { key: 0 }, void 0, !0) : (d(), m(te, { key: 1 }, [
|
|
4323
4323
|
de(F(t.message), 1)
|
|
4324
4324
|
], 64))
|
|
4325
4325
|
])
|
|
@@ -4417,7 +4417,7 @@ const Cr = {
|
|
|
4417
4417
|
if (!e)
|
|
4418
4418
|
throw new Error("useConfirmDialog() должен использоваться внутри приложения с DialogService");
|
|
4419
4419
|
return e;
|
|
4420
|
-
}, Q = T(null),
|
|
4420
|
+
}, Q = T(null), ee = T(null), ks = {
|
|
4421
4421
|
require: (e) => {
|
|
4422
4422
|
Q.value = {
|
|
4423
4423
|
modal: !0,
|
|
@@ -4433,7 +4433,7 @@ const Cr = {
|
|
|
4433
4433
|
}
|
|
4434
4434
|
}, $s = {
|
|
4435
4435
|
require: (e) => {
|
|
4436
|
-
|
|
4436
|
+
ee.value = {
|
|
4437
4437
|
modal: !0,
|
|
4438
4438
|
closable: !0,
|
|
4439
4439
|
dismissableMask: !0,
|
|
@@ -4443,11 +4443,11 @@ const Cr = {
|
|
|
4443
4443
|
};
|
|
4444
4444
|
},
|
|
4445
4445
|
close: () => {
|
|
4446
|
-
|
|
4446
|
+
ee.value = null;
|
|
4447
4447
|
}
|
|
4448
4448
|
}, Ir = {
|
|
4449
4449
|
install(e) {
|
|
4450
|
-
e.provide(Po, ks), e.provide(xo, $s), e.config.globalProperties.$dialogStates = Q, e.config.globalProperties.$popupStates =
|
|
4450
|
+
e.provide(Po, ks), e.provide(xo, $s), e.config.globalProperties.$dialogStates = Q, e.config.globalProperties.$popupStates = ee;
|
|
4451
4451
|
}
|
|
4452
4452
|
}, Ss = {
|
|
4453
4453
|
key: 0,
|
|
@@ -4531,8 +4531,8 @@ const Cr = {
|
|
|
4531
4531
|
__name: "ConfirmPopup",
|
|
4532
4532
|
setup(e) {
|
|
4533
4533
|
const t = T(), o = T({}), a = T("bottom"), l = I(() => `confirm-popup--${a.value}`), r = I(() => `confirm-popup__arrow--${a.value}`), n = () => {
|
|
4534
|
-
if (!
|
|
4535
|
-
const f =
|
|
4534
|
+
if (!ee.value?.target || !t.value) return;
|
|
4535
|
+
const f = ee.value.target, g = t.value, y = ee.value.position || "bottom";
|
|
4536
4536
|
if (!document.contains(f)) {
|
|
4537
4537
|
i();
|
|
4538
4538
|
return;
|
|
@@ -4607,17 +4607,17 @@ const Cr = {
|
|
|
4607
4607
|
zIndex: 1e3
|
|
4608
4608
|
};
|
|
4609
4609
|
}, s = () => {
|
|
4610
|
-
|
|
4610
|
+
ee.value?.accept?.(), ee.value = null;
|
|
4611
4611
|
}, i = () => {
|
|
4612
|
-
|
|
4612
|
+
ee.value?.reject?.(), ee.value = null;
|
|
4613
4613
|
}, u = (f) => {
|
|
4614
|
-
f.key === "Escape" &&
|
|
4614
|
+
f.key === "Escape" && ee.value && i();
|
|
4615
4615
|
}, c = () => {
|
|
4616
|
-
|
|
4616
|
+
ee.value?.target && n();
|
|
4617
4617
|
}, v = () => {
|
|
4618
|
-
|
|
4618
|
+
ee.value?.target && n();
|
|
4619
4619
|
};
|
|
4620
|
-
return ae(
|
|
4620
|
+
return ae(ee, async (f) => {
|
|
4621
4621
|
f?.target && (await me(), n());
|
|
4622
4622
|
}, { immediate: !0 }), pe(() => {
|
|
4623
4623
|
document.addEventListener("keydown", u), window.addEventListener("scroll", c, !0), window.addEventListener("resize", v);
|
|
@@ -4626,7 +4626,7 @@ const Cr = {
|
|
|
4626
4626
|
}), (f, g) => (d(), _(st, { to: "body" }, [
|
|
4627
4627
|
N(Be, { name: "confirm" }, {
|
|
4628
4628
|
default: j(() => [
|
|
4629
|
-
p(
|
|
4629
|
+
p(ee) ? (d(), m("div", {
|
|
4630
4630
|
key: 0,
|
|
4631
4631
|
class: "confirm-overlay",
|
|
4632
4632
|
onClick: i
|
|
@@ -4642,10 +4642,10 @@ const Cr = {
|
|
|
4642
4642
|
$("div", {
|
|
4643
4643
|
class: L(["confirm-popup__arrow", r.value])
|
|
4644
4644
|
}, null, 2),
|
|
4645
|
-
p(
|
|
4646
|
-
$("h4", Vs, F(p(
|
|
4645
|
+
p(ee).header ? (d(), m("div", Ms, [
|
|
4646
|
+
$("h4", Vs, F(p(ee).header), 1)
|
|
4647
4647
|
])) : A("", !0),
|
|
4648
|
-
p(
|
|
4648
|
+
p(ee).message ? (d(), m("p", Is, F(p(ee).message), 1)) : A("", !0),
|
|
4649
4649
|
$("div", Ts, [
|
|
4650
4650
|
N(p(Se), {
|
|
4651
4651
|
size: "small",
|
|
@@ -4654,7 +4654,7 @@ const Cr = {
|
|
|
4654
4654
|
onClick: i
|
|
4655
4655
|
}, {
|
|
4656
4656
|
default: j(() => [
|
|
4657
|
-
de(F(p(
|
|
4657
|
+
de(F(p(ee).rejectProps ? p(ee).rejectProps.label : "Нет"), 1)
|
|
4658
4658
|
]),
|
|
4659
4659
|
_: 1
|
|
4660
4660
|
}),
|
|
@@ -4663,7 +4663,7 @@ const Cr = {
|
|
|
4663
4663
|
onClick: s
|
|
4664
4664
|
}, {
|
|
4665
4665
|
default: j(() => [
|
|
4666
|
-
de(F(p(
|
|
4666
|
+
de(F(p(ee).acceptProps ? p(ee).acceptProps.label : "Да"), 1)
|
|
4667
4667
|
]),
|
|
4668
4668
|
_: 1
|
|
4669
4669
|
})
|
|
@@ -4690,7 +4690,7 @@ const Cr = {
|
|
|
4690
4690
|
}),
|
|
4691
4691
|
emits: /* @__PURE__ */ U(["close"], ["update:open"]),
|
|
4692
4692
|
setup(e, { expose: t, emit: o }) {
|
|
4693
|
-
const { lockScroll: a, unlockScroll: l } = rt(), r =
|
|
4693
|
+
const { lockScroll: a, unlockScroll: l } = rt(), r = oe(e, "open"), n = I(() => typeof e.width == "number" ? `${e.width}px` : e.width), s = o, i = () => {
|
|
4694
4694
|
r.value = !0;
|
|
4695
4695
|
}, u = () => {
|
|
4696
4696
|
e.beforeClose ? e.beforeClose(c) : c();
|
|
@@ -4756,7 +4756,7 @@ const Cr = {
|
|
|
4756
4756
|
}),
|
|
4757
4757
|
emits: ["update:open"],
|
|
4758
4758
|
setup(e) {
|
|
4759
|
-
const t = T(e.title), o =
|
|
4759
|
+
const t = T(e.title), o = oe(e, "open"), a = oo(), { unlockScroll: l, lockScroll: r } = rt(), n = I(() => ["modal", `modal--${e.position}`]), s = (i) => {
|
|
4760
4760
|
t.value = i;
|
|
4761
4761
|
};
|
|
4762
4762
|
return ae(o, () => {
|
|
@@ -4952,7 +4952,7 @@ const Cr = {
|
|
|
4952
4952
|
}
|
|
4953
4953
|
}), (u, c) => (d(), m("div", Ys, [
|
|
4954
4954
|
$("div", js, [
|
|
4955
|
-
(d(!0), m(
|
|
4955
|
+
(d(!0), m(te, null, fe(u.steps, (v, f) => (d(), _(Ws, {
|
|
4956
4956
|
key: v.value,
|
|
4957
4957
|
index: f,
|
|
4958
4958
|
value: v.value,
|