@anzusystems/common-admin 1.47.0-beta.dev-1788764220 → 1.47.0-beta.dev-1788935853
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/{AFormRemoteAutocomplete-nhJg86M2.mjs → AFormRemoteAutocomplete-CHvecQMq.mjs} +1056 -1006
- package/dist/AFormRemoteAutocomplete-CHvecQMq.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.css.d.ts +6 -0
- package/dist/common-admin.d.ts +763 -17
- package/dist/common-admin.js +5691 -5220
- package/dist/common-admin.js.map +1 -1
- package/dist/{esm-CUYEQ0A0.mjs → esm-BP456dlq.mjs} +2 -2
- package/dist/{esm-CUYEQ0A0.mjs.map → esm-BP456dlq.mjs.map} +1 -1
- package/dist/labs.d.ts +18 -2
- package/dist/labs.js +989 -979
- package/dist/labs.js.map +1 -1
- package/dist/{webfontloader-CwEmCwuM.mjs → webfontloader-ClDWjC2G.mjs} +2 -2
- package/dist/{webfontloader-CwEmCwuM.mjs.map → webfontloader-ClDWjC2G.mjs.map} +1 -1
- package/package.json +11 -8
- package/dist/AFormRemoteAutocomplete-nhJg86M2.mjs.map +0 -1
|
@@ -563,6 +563,7 @@ var or = {
|
|
|
563
563
|
}
|
|
564
564
|
}), cr = ["en", "sk"], lr = (e, t) => t === 4 ? e === 0 ? 0 : e === 1 ? 1 : e >= 2 && e <= 4 ? 2 : 3 : t === 3 ? e === 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2 : e === 1 ? 0 : 1, ur = me({
|
|
565
565
|
globalInjection: !1,
|
|
566
|
+
legacy: !1,
|
|
566
567
|
locale: cr[0],
|
|
567
568
|
fallbackLocale: !1,
|
|
568
569
|
pluralRules: { sk: lr },
|
|
@@ -1726,27 +1727,30 @@ var Oi = /* @__PURE__ */ wt(((e, t) => {
|
|
|
1726
1727
|
}));
|
|
1727
1728
|
})), q = /* @__PURE__ */ Dt(Oi()), ji = /* @__PURE__ */ Dt(ki()), Mi = /* @__PURE__ */ Dt(Ai());
|
|
1728
1729
|
q.default.extend(ji.default), q.default.extend(Mi.default);
|
|
1729
|
-
var Ni = ".000000Z", Pi = "YYYY-MM-DDTHH:mm:ss", Fi = "1970-01-01T00:00:00.000000Z", Ii = "2100-01-01T00:00:00.000000Z", Li = () => (0, q.default)().utc().toDate(), Ri = (e) => (0, q.default)(e).toDate(), zi = () => Vt((0, q.default)().utc().unix()), Bi = (e = !0, t = !1) => e && !t ? (0, q.default)().utc().format("YYYY-MM-DDTHH:mm:ss") + Ni : e && t ? (0, q.default)().utc().format("YYYY-MM-DDTHH:mm:00") + Ni : !e && t ? (0, q.default)().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : (0, q.default)().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", Vi = (e = 0) => e === 0 ? (0, q.default)().startOf("day").utc().format(Pi) + Ni : (0, q.default)().add(e, "days").startOf("day").utc().format(Pi) + Ni, Hi = (e = 0) => e === 0 ? (0, q.default)().endOf("day").utc().format(Pi) + Ni : (0, q.default)().add(e, "days").endOf("day").utc().format(Pi) + Ni, Ui = (e = 0, t = null) => (t === null && (t = /* @__PURE__ */ new Date()), e === 0 ? t : e > 0 ? (0, q.default)(t).add(e, "minutes").toDate() : e < 0 ? (0, q.default)(t).subtract(Math.abs(e), "minutes").toDate() : t), Wi = (
|
|
1730
|
+
var Ni = ".000000Z", Pi = "YYYY-MM-DDTHH:mm:ss", Fi = "1970-01-01T00:00:00.000000Z", Ii = "2100-01-01T00:00:00.000000Z", Li = () => (0, q.default)().utc().toDate(), Ri = (e) => (0, q.default)(e).toDate(), zi = () => Vt((0, q.default)().utc().unix()), Bi = (e = !0, t = !1) => e && !t ? (0, q.default)().utc().format("YYYY-MM-DDTHH:mm:ss") + Ni : e && t ? (0, q.default)().utc().format("YYYY-MM-DDTHH:mm:00") + Ni : !e && t ? (0, q.default)().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : (0, q.default)().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", Vi = (e = 0) => e === 0 ? (0, q.default)().startOf("day").utc().format(Pi) + Ni : (0, q.default)().add(e, "days").startOf("day").utc().format(Pi) + Ni, Hi = (e = 0) => e === 0 ? (0, q.default)().endOf("day").utc().format(Pi) + Ni : (0, q.default)().add(e, "days").endOf("day").utc().format(Pi) + Ni, Ui = (e = 0, t = null) => (t === null && (t = /* @__PURE__ */ new Date()), e === 0 ? t : e > 0 ? (0, q.default)(t).add(e, "minutes").toDate() : e < 0 ? (0, q.default)(t).subtract(Math.abs(e), "minutes").toDate() : t), Wi = () => {
|
|
1731
|
+
let e = /* @__PURE__ */ new Date();
|
|
1732
|
+
return q.default.utc(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate())).format(Pi) + Ni;
|
|
1733
|
+
}, Gi = (e, t = Ni) => (0, q.default)(e).utc().format("YYYY-MM-DDTHH:mm:ss") + t, Ki = () => (0, q.default)().utc().format("YYYY"), qi = (e, t = "", n = !1) => e === "2100-01-01T00:00:00.000000Z" || e === "1970-01-01T00:00:00.000000Z" || e === "" || W(e) || H(e) ? t : (0, q.default)(e).format(n ? "DD.MM.YYYY HH:mm:ss" : "DD.MM.YYYY HH:mm"), Ji = (e, t = "", n = !1) => {
|
|
1730
1734
|
if (e === "2100-01-01T00:00:00.000000Z" || e === "1970-01-01T00:00:00.000000Z" || e === "" || W(e) || H(e)) return t;
|
|
1731
1735
|
let r = !0, i = !0, a = (0, q.default)(e), o = (0, q.default)();
|
|
1732
1736
|
return o.format("YYYY") === a.format("YYYY") && (r = !1), o.format("YYYY-MM-DD") === a.format("YYYY-MM-DD") && (i = !1), !r && !i ? (0, q.default)(a).format(n ? "H:mm:ss" : "H:mm") : r ? (0, q.default)(a).format(n ? "D.M.YYYY H:mm:ss" : "D.M.YYYY H:mm") : (0, q.default)(a).format(n ? "D.M. H:mm:ss" : "D.M. H:mm");
|
|
1733
|
-
},
|
|
1737
|
+
}, Yi = (e, t = "") => e === "2100-01-01T00:00:00.000000Z" || e === "1970-01-01T00:00:00.000000Z" || e === "" || W(e) || H(e) ? t : (0, q.default)(e).format("DD.MM.YYYY"), Xi = (e, t = "") => e === "2100-01-01T00:00:00.000000Z" || e === "1970-01-01T00:00:00.000000Z" || e === "" || W(e) || H(e) ? t : q.default.utc(e).format("DD.MM.YYYY"), Zi = (e, t = "") => e === "2100-01-01T00:00:00.000000Z" || e === "1970-01-01T00:00:00.000000Z" || e === "" || W(e) || H(e) ? t : (0, q.default)(e).format("HH:mm"), Qi = (e, t, n = "ms") => {
|
|
1734
1738
|
let r = (0, q.default)(e), i = (0, q.default)(t);
|
|
1735
1739
|
return r.diff(i, n);
|
|
1736
|
-
},
|
|
1740
|
+
}, $i = (e) => typeof e == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{3,6})?Z$/.test(e), ea = (e, t, n = 0, r = !1) => {
|
|
1737
1741
|
let i = new Date(e);
|
|
1738
1742
|
i.setMonth(i.getMonth() + n), i.setDate(1), i.setHours(0, 0, 0, 0);
|
|
1739
1743
|
let a = new Date(e);
|
|
1740
1744
|
return r ? a.setMonth(a.getMonth() + 1, 0) : a.setMonth(a.getMonth() + n + 1, 0), a.setHours(23, 59, 59, 999), t === "utc" ? {
|
|
1741
|
-
from:
|
|
1742
|
-
until:
|
|
1745
|
+
from: Gi(i),
|
|
1746
|
+
until: Gi(a)
|
|
1743
1747
|
} : {
|
|
1744
1748
|
from: i,
|
|
1745
1749
|
until: a
|
|
1746
1750
|
};
|
|
1747
|
-
},
|
|
1751
|
+
}, ta = (e) => {
|
|
1748
1752
|
e?.currentTarget instanceof HTMLElement && e.currentTarget.blur();
|
|
1749
|
-
},
|
|
1753
|
+
}, na = /* @__PURE__ */ u({
|
|
1750
1754
|
__name: "AFilterSubmitButton",
|
|
1751
1755
|
props: {
|
|
1752
1756
|
buttonT: { default: "common.button.submitFilter" },
|
|
@@ -1760,7 +1764,7 @@ var Ni = ".000000Z", Pi = "YYYY-MM-DDTHH:mm:ss", Fi = "1970-01-01T00:00:00.00000
|
|
|
1760
1764
|
emits: ["submit"],
|
|
1761
1765
|
setup(e, { emit: t }) {
|
|
1762
1766
|
let n = t, { t: i } = he(), a = (e) => {
|
|
1763
|
-
|
|
1767
|
+
ta(e), n("submit");
|
|
1764
1768
|
};
|
|
1765
1769
|
return (t, n) => (k(), r(V, {
|
|
1766
1770
|
class: S(e.buttonClass),
|
|
@@ -1778,7 +1782,7 @@ var Ni = ".000000Z", Pi = "YYYY-MM-DDTHH:mm:ss", Fi = "1970-01-01T00:00:00.00000
|
|
|
1778
1782
|
"variant"
|
|
1779
1783
|
]));
|
|
1780
1784
|
}
|
|
1781
|
-
}),
|
|
1785
|
+
}), ra = /* @__PURE__ */ u({
|
|
1782
1786
|
__name: "AFilterResetButton",
|
|
1783
1787
|
props: {
|
|
1784
1788
|
tooltipT: { default: "common.button.resetFilter" },
|
|
@@ -1788,7 +1792,7 @@ var Ni = ".000000Z", Pi = "YYYY-MM-DDTHH:mm:ss", Fi = "1970-01-01T00:00:00.00000
|
|
|
1788
1792
|
emits: ["reset"],
|
|
1789
1793
|
setup(e, { emit: t }) {
|
|
1790
1794
|
let n = t, i = (e) => {
|
|
1791
|
-
|
|
1795
|
+
ta(e), n("reset");
|
|
1792
1796
|
}, { t: a } = he();
|
|
1793
1797
|
return (t, n) => (k(), r(V, {
|
|
1794
1798
|
class: S([e.buttonClass, "text-medium-emphasis px-2"]),
|
|
@@ -1810,14 +1814,14 @@ var Ni = ".000000Z", Pi = "YYYY-MM-DDTHH:mm:ss", Fi = "1970-01-01T00:00:00.00000
|
|
|
1810
1814
|
_: 1
|
|
1811
1815
|
}, 8, ["class", "data-cy"]));
|
|
1812
1816
|
}
|
|
1813
|
-
}),
|
|
1817
|
+
}), ia = (e) => {
|
|
1814
1818
|
let t = Object.getOwnPropertyNames(e);
|
|
1815
1819
|
for (let n of t) {
|
|
1816
1820
|
let t = e[n];
|
|
1817
|
-
t && typeof t == "object" &&
|
|
1821
|
+
t && typeof t == "object" && ia(t);
|
|
1818
1822
|
}
|
|
1819
1823
|
return Object.freeze(e);
|
|
1820
|
-
},
|
|
1824
|
+
}, aa = (e) => Object.keys(e).map((t) => e[t]), oa = (e, t, n = ".") => {
|
|
1821
1825
|
let r = t.split(n), i = e;
|
|
1822
1826
|
for (; r.length;) {
|
|
1823
1827
|
let e = r.shift();
|
|
@@ -1825,7 +1829,7 @@ var Ni = ".000000Z", Pi = "YYYY-MM-DDTHH:mm:ss", Fi = "1970-01-01T00:00:00.00000
|
|
|
1825
1829
|
i = i[e];
|
|
1826
1830
|
}
|
|
1827
1831
|
return i;
|
|
1828
|
-
},
|
|
1832
|
+
}, sa = (e, t, n, r = ".") => {
|
|
1829
1833
|
let i = t.split(r), a = e;
|
|
1830
1834
|
for (; i.length - 1;) {
|
|
1831
1835
|
let e = i.shift();
|
|
@@ -1834,7 +1838,7 @@ var Ni = ".000000Z", Pi = "YYYY-MM-DDTHH:mm:ss", Fi = "1970-01-01T00:00:00.00000
|
|
|
1834
1838
|
}
|
|
1835
1839
|
a[i[0]] = n;
|
|
1836
1840
|
};
|
|
1837
|
-
function
|
|
1841
|
+
function ca(e, t, n = ".") {
|
|
1838
1842
|
let r = t.split(n), i = r.length - 1;
|
|
1839
1843
|
function a(e, t = 0) {
|
|
1840
1844
|
let n = r[t];
|
|
@@ -1848,89 +1852,89 @@ function oa(e, t, n = ".") {
|
|
|
1848
1852
|
}
|
|
1849
1853
|
//#endregion
|
|
1850
1854
|
//#region src/services/api/apiHelper.ts
|
|
1851
|
-
var
|
|
1852
|
-
e().get(
|
|
1853
|
-
}), { t:
|
|
1854
|
-
function
|
|
1855
|
-
return $e({ t:
|
|
1855
|
+
var la = (e, t, n = "") => Rt(t) ? e : Yt(n === "" ? e : n, t), ua = (e) => Qr.includes(e), da = (e, t, n = {}, r, i, a = {}) => new Promise((o, s) => {
|
|
1856
|
+
e().get(la(t, n), a).then((e) => ua(e.status) ? e.data ? o(e.data) : e.status === 204 ? o(null) : s(new Ur()) : s(new li(e.status))).catch((e) => $r(e) ? s(new ti(e, e.config?.url)) : ri(e) ? s(new si(e, r, i, e)) : gi(e) ? s(new yi(e, r, i, e)) : di(e) ? s(new mi(e, e)) : s(new Ur(e)));
|
|
1857
|
+
}), { t: fa } = ur.global;
|
|
1858
|
+
function pa() {
|
|
1859
|
+
return $e({ t: fa })(Qe, {
|
|
1856
1860
|
withArguments: !0,
|
|
1857
1861
|
messagePath: () => "error.jsValidation.between"
|
|
1858
1862
|
});
|
|
1859
1863
|
}
|
|
1860
1864
|
//#endregion
|
|
1861
1865
|
//#region src/validators/vuelidate/common/useValidateEmail.ts
|
|
1862
|
-
var { t:
|
|
1863
|
-
function
|
|
1864
|
-
return $e({ t:
|
|
1866
|
+
var { t: ma } = ur.global;
|
|
1867
|
+
function ha() {
|
|
1868
|
+
return $e({ t: ma })(et, { messagePath: () => "error.jsValidation.email" });
|
|
1865
1869
|
}
|
|
1866
1870
|
//#endregion
|
|
1867
1871
|
//#region src/validators/vuelidate/common/useValidateMaxLength.ts
|
|
1868
|
-
var { t:
|
|
1869
|
-
function
|
|
1870
|
-
return $e({ t:
|
|
1872
|
+
var { t: ga } = ur.global;
|
|
1873
|
+
function _a() {
|
|
1874
|
+
return $e({ t: ga })(nt, {
|
|
1871
1875
|
withArguments: !0,
|
|
1872
1876
|
messagePath: () => "error.jsValidation.maxLength"
|
|
1873
1877
|
});
|
|
1874
1878
|
}
|
|
1875
1879
|
//#endregion
|
|
1876
1880
|
//#region src/validators/vuelidate/common/useValidateMaxValue.ts
|
|
1877
|
-
var { t:
|
|
1878
|
-
function
|
|
1879
|
-
return $e({ t:
|
|
1881
|
+
var { t: va } = ur.global;
|
|
1882
|
+
function ya() {
|
|
1883
|
+
return $e({ t: va })(rt, {
|
|
1880
1884
|
withArguments: !0,
|
|
1881
1885
|
messagePath: () => "error.jsValidation.maxValue"
|
|
1882
1886
|
});
|
|
1883
1887
|
}
|
|
1884
1888
|
//#endregion
|
|
1885
1889
|
//#region src/validators/vuelidate/common/useValidateMinLength.ts
|
|
1886
|
-
var { t:
|
|
1887
|
-
function
|
|
1888
|
-
return $e({ t:
|
|
1890
|
+
var { t: ba } = ur.global;
|
|
1891
|
+
function xa() {
|
|
1892
|
+
return $e({ t: ba })(it, {
|
|
1889
1893
|
withArguments: !0,
|
|
1890
1894
|
messagePath: () => "error.jsValidation.minLength"
|
|
1891
1895
|
});
|
|
1892
1896
|
}
|
|
1893
1897
|
//#endregion
|
|
1894
1898
|
//#region src/validators/vuelidate/common/useValidateMinValue.ts
|
|
1895
|
-
var { t:
|
|
1896
|
-
function
|
|
1897
|
-
return $e({ t:
|
|
1899
|
+
var { t: Sa } = ur.global;
|
|
1900
|
+
function Ca() {
|
|
1901
|
+
return $e({ t: Sa })(at, {
|
|
1898
1902
|
withArguments: !0,
|
|
1899
1903
|
messagePath: () => "error.jsValidation.minValue"
|
|
1900
1904
|
});
|
|
1901
1905
|
}
|
|
1902
1906
|
//#endregion
|
|
1903
1907
|
//#region src/validators/vuelidate/common/useValidateNumeric.ts
|
|
1904
|
-
var { t: Sa } = ur.global;
|
|
1905
|
-
function Ca() {
|
|
1906
|
-
return $e({ t: Sa })(ot, { messagePath: () => "error.jsValidation.numeric" });
|
|
1907
|
-
}
|
|
1908
|
-
//#endregion
|
|
1909
|
-
//#region src/validators/vuelidate/common/useValidateRequired.ts
|
|
1910
1908
|
var { t: wa } = ur.global;
|
|
1911
1909
|
function Ta() {
|
|
1912
|
-
return $e({ t: wa })(
|
|
1910
|
+
return $e({ t: wa })(ot, { messagePath: () => "error.jsValidation.numeric" });
|
|
1913
1911
|
}
|
|
1914
1912
|
//#endregion
|
|
1915
|
-
//#region src/validators/vuelidate/common/
|
|
1913
|
+
//#region src/validators/vuelidate/common/useValidateRequired.ts
|
|
1916
1914
|
var { t: Ea } = ur.global;
|
|
1917
1915
|
function Da() {
|
|
1918
|
-
return $e({ t: Ea })(
|
|
1916
|
+
return $e({ t: Ea })(st, { messagePath: () => "error.jsValidation.required" });
|
|
1917
|
+
}
|
|
1918
|
+
//#endregion
|
|
1919
|
+
//#region src/validators/vuelidate/common/useValidateRequiredIf.ts
|
|
1920
|
+
var { t: Oa } = ur.global;
|
|
1921
|
+
function ka() {
|
|
1922
|
+
return $e({ t: Oa })(ct, {
|
|
1919
1923
|
withArguments: !0,
|
|
1920
1924
|
messagePath: () => "error.jsValidation.required"
|
|
1921
1925
|
});
|
|
1922
1926
|
}
|
|
1923
1927
|
//#endregion
|
|
1924
1928
|
//#region src/validators/vuelidate/common/useValidateSlug.ts
|
|
1925
|
-
var { t:
|
|
1926
|
-
function
|
|
1927
|
-
return $e({ t:
|
|
1929
|
+
var { t: Aa } = ur.global;
|
|
1930
|
+
function ja() {
|
|
1931
|
+
return $e({ t: Aa })(tt.regex(/^[a-z\-0-9]+$/), { messagePath: () => "error.jsValidation.slug" });
|
|
1928
1932
|
}
|
|
1929
1933
|
//#endregion
|
|
1930
1934
|
//#region src/validators/vuelidate/common/useValidateStringArrayItemLength.ts
|
|
1931
|
-
var { t:
|
|
1932
|
-
function
|
|
1933
|
-
let e = $e({ t:
|
|
1935
|
+
var { t: Ma } = ur.global;
|
|
1936
|
+
function Na() {
|
|
1937
|
+
let e = $e({ t: Ma }), t = (e, t) => (n) => !tt.req(n) || n.every((n) => n.length >= I(e) && n.length <= I(t));
|
|
1934
1938
|
return e((e, n) => ({
|
|
1935
1939
|
$validator: t(e, n),
|
|
1936
1940
|
$params: {
|
|
@@ -1945,15 +1949,15 @@ function ja() {
|
|
|
1945
1949
|
}
|
|
1946
1950
|
//#endregion
|
|
1947
1951
|
//#region src/validators/vuelidate/common/useValidateUrl.ts
|
|
1948
|
-
var { t:
|
|
1949
|
-
function
|
|
1950
|
-
return $e({ t:
|
|
1952
|
+
var { t: Pa } = ur.global;
|
|
1953
|
+
function Fa() {
|
|
1954
|
+
return $e({ t: Pa })(lt, { messagePath: () => "error.jsValidation.url" });
|
|
1951
1955
|
}
|
|
1952
1956
|
//#endregion
|
|
1953
1957
|
//#region src/validators/vuelidate/common/useValidateCompareDates.ts
|
|
1954
|
-
var { t:
|
|
1955
|
-
function
|
|
1956
|
-
let e = $e({ t:
|
|
1958
|
+
var { t: Ia } = ur.global;
|
|
1959
|
+
function La() {
|
|
1960
|
+
let e = $e({ t: Ia }), t = (e, t, n) => (t) => {
|
|
1957
1961
|
let r = I(e);
|
|
1958
1962
|
if (t === null && r === null || t === null || r === null) return !0;
|
|
1959
1963
|
let i = new Date(t), a = new Date(r);
|
|
@@ -1979,26 +1983,26 @@ function Fa() {
|
|
|
1979
1983
|
}
|
|
1980
1984
|
//#endregion
|
|
1981
1985
|
//#region src/validators/vuelidate/useValidate.ts
|
|
1982
|
-
function
|
|
1986
|
+
function Ra() {
|
|
1983
1987
|
return {
|
|
1984
|
-
required:
|
|
1985
|
-
requiredIf:
|
|
1986
|
-
minLength:
|
|
1987
|
-
maxLength:
|
|
1988
|
-
minValue:
|
|
1989
|
-
maxValue:
|
|
1990
|
-
between:
|
|
1991
|
-
email:
|
|
1992
|
-
numeric:
|
|
1993
|
-
slug:
|
|
1994
|
-
url:
|
|
1995
|
-
stringArrayItemLength:
|
|
1996
|
-
datesCompare:
|
|
1988
|
+
required: Da(),
|
|
1989
|
+
requiredIf: ka(),
|
|
1990
|
+
minLength: xa(),
|
|
1991
|
+
maxLength: _a(),
|
|
1992
|
+
minValue: Ca(),
|
|
1993
|
+
maxValue: ya(),
|
|
1994
|
+
between: pa(),
|
|
1995
|
+
email: ha(),
|
|
1996
|
+
numeric: Ta(),
|
|
1997
|
+
slug: ja(),
|
|
1998
|
+
url: Fa(),
|
|
1999
|
+
stringArrayItemLength: Na(),
|
|
2000
|
+
datesCompare: La()
|
|
1997
2001
|
};
|
|
1998
2002
|
}
|
|
1999
2003
|
//#endregion
|
|
2000
2004
|
//#region src/components/datetime/TimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
2001
|
-
var
|
|
2005
|
+
var za = { class: "a-datetime-picker-time" }, Ba = { class: "a-datetime-picker-time__item a-datetime-picker-time__item" }, Va = { class: "a-datetime-picker-time__arrows" }, Ha = { class: "a-datetime-picker-time__item" }, Ua = { class: "a-datetime-picker-time__arrows" }, Wa = /*#__PURE__*/ At(/* @__PURE__ */ u({
|
|
2002
2006
|
__name: "TimePicker",
|
|
2003
2007
|
props: {
|
|
2004
2008
|
modelValue: { required: !0 },
|
|
@@ -2083,8 +2087,8 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2083
2087
|
});
|
|
2084
2088
|
}), t({ focusHour: () => {
|
|
2085
2089
|
d.value?.focus();
|
|
2086
|
-
} }), (e, t) => (k(), a("div",
|
|
2087
|
-
o("div",
|
|
2090
|
+
} }), (e, t) => (k(), a("div", za, [
|
|
2091
|
+
o("div", Ba, [fe(o("input", {
|
|
2088
2092
|
ref_key: "hoursRefInput",
|
|
2089
2093
|
ref: d,
|
|
2090
2094
|
"onUpdate:modelValue": t[0] ||= (e) => p.value = e,
|
|
@@ -2097,7 +2101,7 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2097
2101
|
onFocus: h,
|
|
2098
2102
|
onBlur: g,
|
|
2099
2103
|
onKeyup: pe(v, ["enter"])
|
|
2100
|
-
}, null, 544), [[ue, p.value]]), o("div",
|
|
2104
|
+
}, null, 544), [[ue, p.value]]), o("div", Va, [l(V, {
|
|
2101
2105
|
tabindex: "-1",
|
|
2102
2106
|
variant: "text",
|
|
2103
2107
|
class: "a-datetime-picker-time__arrow-up",
|
|
@@ -2115,7 +2119,7 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2115
2119
|
_: 1
|
|
2116
2120
|
})])]),
|
|
2117
2121
|
t[2] ||= o("span", { class: "a-datetime-picker-time__separator" }, ":", -1),
|
|
2118
|
-
o("div",
|
|
2122
|
+
o("div", Ha, [fe(o("input", {
|
|
2119
2123
|
ref_key: "minutesRefInput",
|
|
2120
2124
|
ref: f,
|
|
2121
2125
|
"onUpdate:modelValue": t[1] ||= (e) => m.value = e,
|
|
@@ -2128,7 +2132,7 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2128
2132
|
onFocus: h,
|
|
2129
2133
|
onBlur: _,
|
|
2130
2134
|
onKeyup: pe(y, ["enter"])
|
|
2131
|
-
}, null, 544), [[ue, m.value]]), o("div",
|
|
2135
|
+
}, null, 544), [[ue, m.value]]), o("div", Ua, [l(V, {
|
|
2132
2136
|
tabindex: "-1",
|
|
2133
2137
|
variant: "text",
|
|
2134
2138
|
class: "a-datetime-picker-time__arrow-up",
|
|
@@ -2147,10 +2151,33 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2147
2151
|
})])])
|
|
2148
2152
|
]));
|
|
2149
2153
|
}
|
|
2150
|
-
}), [["__scopeId", "data-v-9d8f4fb3"]])
|
|
2154
|
+
}), [["__scopeId", "data-v-9d8f4fb3"]]);
|
|
2155
|
+
q.default.extend(ji.default), q.default.extend(Mi.default);
|
|
2156
|
+
var Ga = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ka = "YYYY-MM-DDTHH:mm:ss", qa = "DD.MM.YYYY", Ja = ["DD.MM.YYYY HH:mm", qa], Ya = (e) => e === "date" ? "dd.mm.yyyy" : "dd.mm.yyyy hh:mm", Xa = (e) => e === "date" ? qa : "DD.MM.YYYY HH:mm", Za = (e, t, n = !1) => {
|
|
2157
|
+
if (W(e) || H(e) || e.length === 0) return null;
|
|
2158
|
+
if (t === "date") {
|
|
2159
|
+
let t = q.default.utc(e);
|
|
2160
|
+
return t.isValid() ? t : null;
|
|
2161
|
+
}
|
|
2162
|
+
let r = (0, q.default)(e, Ga), i = r.isValid() ? r : (0, q.default)(e);
|
|
2163
|
+
return i.isValid() ? n ? i.millisecond(999) : i.millisecond(0) : null;
|
|
2164
|
+
}, Qa = (e, t, n = 0) => {
|
|
2165
|
+
if (t === "date") {
|
|
2166
|
+
let t = q.default.utc(e, qa);
|
|
2167
|
+
return t.isValid() ? t : null;
|
|
2168
|
+
}
|
|
2169
|
+
let r = (0, q.default)(e, Ja);
|
|
2170
|
+
return r.isValid() ? r.second(n) : null;
|
|
2171
|
+
}, $a = (e, t) => t === "date" ? e.format("YYYY-MM-DD") + "T00:00:00" + Ni : e.utc().format(Ka) + Ni, eo = (e, t) => e.format(Xa(t)), to = (e, t) => t === "date" ? new Date(e.year(), e.month(), e.date()) : e.toDate(), no = (e, t, n) => n === "date" ? q.default.utc(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate())) : e.set("year", t.getFullYear()).set("month", t.getMonth()).set("date", t.getDate()), ro = (e, t = !1) => {
|
|
2172
|
+
if (e === "date") {
|
|
2173
|
+
let e = /* @__PURE__ */ new Date();
|
|
2174
|
+
return q.default.utc(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate()));
|
|
2175
|
+
}
|
|
2176
|
+
return t ? (0, q.default)().second(59).millisecond(999) : (0, q.default)().second(0).millisecond(0);
|
|
2177
|
+
}, io = (e, t = !1) => e === "date" ? ro(e) : t ? (0, q.default)().hour(0).minute(0).second(59).millisecond(999) : (0, q.default)().hour(0).minute(0).second(0).millisecond(0), ao = (e, t, n) => !W(t) && e.isSame(t, n === "date" ? "day" : "second"), oo = { class: "d-flex" }, so = { class: "ml-1" }, co = {
|
|
2151
2178
|
key: 0,
|
|
2152
2179
|
class: "required"
|
|
2153
|
-
},
|
|
2180
|
+
}, lo = /*#__PURE__*/ At(/* @__PURE__ */ u({
|
|
2154
2181
|
__name: "ADatetimePicker",
|
|
2155
2182
|
props: {
|
|
2156
2183
|
modelValue: {},
|
|
@@ -2198,81 +2225,69 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2198
2225
|
"afterClear"
|
|
2199
2226
|
],
|
|
2200
2227
|
setup(e, { emit: t }) {
|
|
2201
|
-
let u = e, d = t
|
|
2202
|
-
q.default.extend(ji.default), q.default.extend(Mi.default);
|
|
2203
|
-
let f = M(!1), p = M(0), m = M(0), h = le("timePickerInstance"), g = le("inputInstance"), _ = le("confirmRefButton"), v = M(""), y = M(null), S = M(null), C = M(null), { t: w } = he(), T = n(() => u.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: E } = Ia(), D = n(() => ({ textFieldValue: { required: E(u.required) } })), O = Ze(D, { textFieldValue: v }), A = n(() => u.type === "datetime" ? "DD.MM.YYYY HH:mm" : "DD.MM.YYYY"), j = (e) => {
|
|
2228
|
+
let u = e, d = t, f = M(!1), p = M(0), m = M(0), h = le("timePickerInstance"), g = le("inputInstance"), _ = le("confirmRefButton"), v = M(""), y = M(null), S = M(null), C = M(null), { t: w } = he(), T = n(() => u.placeholder.length ? u.placeholder : Ya(u.type)), { requiredIf: E } = Ra(), D = n(() => ({ textFieldValue: { required: E(u.required) } })), O = Ze(D, { textFieldValue: v }), A = (e) => {
|
|
2204
2229
|
e !== u.modelValue && d("update:modelValue", e);
|
|
2205
|
-
},
|
|
2206
|
-
W(e) || ((W(S.value) || e.hour() !== S.value.hours || e.minute() !== S.value.minutes) && (S.value = {
|
|
2230
|
+
}, j = (e) => {
|
|
2231
|
+
W(e) || (u.type !== "date" && (W(S.value) || e.hour() !== S.value.hours || e.minute() !== S.value.minutes) && (S.value = {
|
|
2207
2232
|
hours: e.hour(),
|
|
2208
2233
|
minutes: e.minute()
|
|
2209
|
-
}), (W(y.value) || e.year() !== y.value.getFullYear() || e.month() !== y.value.getMonth() || e.date() !== y.value.getDate()) && (y.value = e.
|
|
2234
|
+
}), (W(y.value) || e.year() !== y.value.getFullYear() || e.month() !== y.value.getMonth() || e.date() !== y.value.getDate()) && (y.value = to(e, u.type)));
|
|
2210
2235
|
};
|
|
2211
2236
|
L(() => u.modelValue, (e, t) => {
|
|
2212
|
-
|
|
2213
|
-
if (W(e) || H(e)) {
|
|
2214
|
-
C.value = null;
|
|
2215
|
-
return;
|
|
2216
|
-
}
|
|
2217
|
-
u.lastMinuteMoment ? C.value = (0, q.default)(e, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ").millisecond(999) : C.value = (0, q.default)(e, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ").millisecond(0);
|
|
2218
|
-
}
|
|
2237
|
+
e !== t && (C.value = Za(e, u.type, u.lastMinuteMoment));
|
|
2219
2238
|
}, { immediate: !0 });
|
|
2220
|
-
let
|
|
2239
|
+
let ee = (e, t) => W(e) ? t : no(t, e, u.type), te = (e, t) => W(e) || u.type === "date" ? t : t.set("hour", e.hours).set("minute", e.minutes);
|
|
2221
2240
|
L([S, y], ([e, t]) => {
|
|
2222
2241
|
let n = null;
|
|
2223
|
-
n = W(C.value) ?
|
|
2242
|
+
n = W(C.value) ? Za(u.modelValue, u.type, u.lastMinuteMoment) ?? io(u.type, u.lastMinuteMoment) : C.value, n = te(e, n), n = ee(t, n), !n.isSame(ie(C.value)) && (C.value = n);
|
|
2224
2243
|
}), L(C, (e) => {
|
|
2225
2244
|
if (W(e)) {
|
|
2226
|
-
v.value = "",
|
|
2245
|
+
v.value = "", A(null);
|
|
2227
2246
|
return;
|
|
2228
2247
|
}
|
|
2229
|
-
let t = e.
|
|
2230
|
-
v.value = e.
|
|
2248
|
+
let t = $a(e, u.type);
|
|
2249
|
+
v.value = eo(e, u.type), j(e), A(t);
|
|
2231
2250
|
}, { immediate: !0 }), L(f, (e) => {
|
|
2232
2251
|
if (e) {
|
|
2233
|
-
|
|
2234
|
-
p.value++;
|
|
2235
|
-
}), d("onOpen");
|
|
2252
|
+
ne(), W(C.value) && (W(u.defaultValue) || H(u.defaultValue)) && (C.value = ro(u.type, u.lastMinuteMoment)), d("onOpen");
|
|
2236
2253
|
return;
|
|
2237
2254
|
}
|
|
2238
2255
|
d("onClose");
|
|
2239
2256
|
});
|
|
2240
|
-
let
|
|
2257
|
+
let P = n(() => U(u.errorMessages) ? u.errorMessages : O.value.textFieldValue.$errors.length ? [O.value.textFieldValue.$errors.map((e) => e.$message).join(" ")] : []), ne = () => {
|
|
2241
2258
|
let e = v.value.replace(/[^\s\d.:]/g, "").trim();
|
|
2242
2259
|
if (e.length === 0 && !u.required) {
|
|
2243
|
-
|
|
2260
|
+
C.value = Za(u.defaultValue, u.type, u.lastMinuteMoment), d("blur");
|
|
2244
2261
|
return;
|
|
2245
2262
|
}
|
|
2246
|
-
let t = (
|
|
2247
|
-
if (
|
|
2248
|
-
|
|
2249
|
-
if (!W(u.modelValue)) {
|
|
2250
|
-
let t = (0, q.default)(u.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ");
|
|
2251
|
-
t.isValid() && (e = t.second());
|
|
2252
|
-
}
|
|
2253
|
-
let n = t.second(e);
|
|
2254
|
-
n.isSame(ie(C.value), "second") ? v.value = n.format(A.value) : C.value = n, O.value.textFieldValue.$touch(), d("blur");
|
|
2263
|
+
let t = Za(u.modelValue, u.type, u.lastMinuteMoment)?.second() ?? 0, n = Qa(e, u.type, t);
|
|
2264
|
+
if (!W(n)) {
|
|
2265
|
+
ao(n, ie(C.value), u.type) ? v.value = eo(n, u.type) : C.value = n, O.value.textFieldValue.$touch(), d("blur");
|
|
2255
2266
|
return;
|
|
2256
2267
|
}
|
|
2257
|
-
W(C.value) || (v.value = C.value.
|
|
2258
|
-
},
|
|
2268
|
+
W(C.value) || (v.value = eo(C.value, u.type)), O.value.textFieldValue.$touch(), d("blur");
|
|
2269
|
+
}, re = () => {
|
|
2259
2270
|
if (W(u.defaultValue) || H(u.defaultValue)) {
|
|
2260
2271
|
C.value = null, y.value = null, S.value = null, d("afterClear");
|
|
2261
2272
|
return;
|
|
2262
2273
|
}
|
|
2263
|
-
C.value = (
|
|
2264
|
-
},
|
|
2274
|
+
C.value = Za(u.defaultValue, u.type, u.lastMinuteMoment), d("afterClear");
|
|
2275
|
+
}, ae = () => {
|
|
2265
2276
|
f.value = !1, g.value?.focus(), g.value?.blur(), d("onClose"), d("blur");
|
|
2266
|
-
},
|
|
2277
|
+
}, oe = () => {
|
|
2267
2278
|
d("focus");
|
|
2268
|
-
},
|
|
2279
|
+
}, se = () => {
|
|
2269
2280
|
f.value = !1;
|
|
2270
|
-
},
|
|
2281
|
+
}, ce = () => {
|
|
2271
2282
|
_.value?.focus();
|
|
2272
|
-
},
|
|
2283
|
+
}, ue = () => {
|
|
2284
|
+
if (u.type === "date") {
|
|
2285
|
+
x(ae);
|
|
2286
|
+
return;
|
|
2287
|
+
}
|
|
2273
2288
|
h.value?.focusHour();
|
|
2274
|
-
},
|
|
2275
|
-
|
|
2289
|
+
}, de = () => {
|
|
2290
|
+
C.value = ro(u.type, u.lastMinuteMoment), x(() => {
|
|
2276
2291
|
p.value++, m.value++;
|
|
2277
2292
|
});
|
|
2278
2293
|
};
|
|
@@ -2281,23 +2296,24 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2281
2296
|
ref: g,
|
|
2282
2297
|
modelValue: v.value,
|
|
2283
2298
|
"onUpdate:modelValue": n[3] ||= (e) => v.value = e,
|
|
2284
|
-
"error-messages":
|
|
2299
|
+
"error-messages": P.value,
|
|
2285
2300
|
"persistent-placeholder": !0,
|
|
2286
2301
|
placeholder: T.value,
|
|
2287
2302
|
class: "a-datetime-picker",
|
|
2288
|
-
"hide-details": "auto",
|
|
2303
|
+
"hide-details": e.hideDetails ? !0 : "auto",
|
|
2304
|
+
"data-cy": e.dataCy.length ? e.dataCy : void 0,
|
|
2289
2305
|
disabled: e.disabled,
|
|
2290
2306
|
autocomplete: "off",
|
|
2291
|
-
onBlur:
|
|
2292
|
-
onFocus:
|
|
2293
|
-
onKeyup: pe(
|
|
2307
|
+
onBlur: ne,
|
|
2308
|
+
onFocus: oe,
|
|
2309
|
+
onKeyup: pe(ne, ["enter"])
|
|
2294
2310
|
}, s({
|
|
2295
2311
|
"append-inner": R(() => [
|
|
2296
2312
|
e.clearable && e.defaultValue !== e.modelValue ? (k(), r(B, {
|
|
2297
2313
|
key: 0,
|
|
2298
2314
|
class: "a-datetime-picker__clearable-icon",
|
|
2299
2315
|
icon: "mdi-close-circle",
|
|
2300
|
-
onClick: z(
|
|
2316
|
+
onClick: z(re, ["stop"])
|
|
2301
2317
|
})) : i("", !0),
|
|
2302
2318
|
e.disabled ? i("", !0) : (k(), r(Ke, {
|
|
2303
2319
|
key: 1,
|
|
@@ -2320,7 +2336,7 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2320
2336
|
width: 36,
|
|
2321
2337
|
height: 36,
|
|
2322
2338
|
class: "position-absolute top-0 right-0",
|
|
2323
|
-
onClick: z(
|
|
2339
|
+
onClick: z(ae, ["stop"])
|
|
2324
2340
|
}, {
|
|
2325
2341
|
default: R(() => [l(B, {
|
|
2326
2342
|
icon: "mdi-close",
|
|
@@ -2335,52 +2351,56 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2335
2351
|
class: "a-datetime-picker-calendar",
|
|
2336
2352
|
color: "primary",
|
|
2337
2353
|
"show-adjacent-months": ""
|
|
2338
|
-
}, t.$attrs, { "onUpdate:modelValue":
|
|
2339
|
-
(k(), r(
|
|
2354
|
+
}, t.$attrs, { "onUpdate:modelValue": ue }), null, 16, ["modelValue"])),
|
|
2355
|
+
e.type === "date" ? i("", !0) : (k(), r(Wa, {
|
|
2340
2356
|
ref_key: "timePickerInstance",
|
|
2341
2357
|
ref: h,
|
|
2342
2358
|
key: m.value,
|
|
2343
2359
|
modelValue: S.value,
|
|
2344
2360
|
"onUpdate:modelValue": n[1] ||= (e) => S.value = e,
|
|
2345
|
-
onOnEnterKeyup:
|
|
2346
|
-
onFocusConfirm:
|
|
2361
|
+
onOnEnterKeyup: se,
|
|
2362
|
+
onFocusConfirm: ce
|
|
2347
2363
|
}, null, 8, ["modelValue"])),
|
|
2348
|
-
o("div",
|
|
2364
|
+
o("div", oo, [e.hideSetToNow ? i("", !0) : (k(), a("button", {
|
|
2365
|
+
key: 0,
|
|
2349
2366
|
type: "button",
|
|
2350
2367
|
class: "a-datetime-picker__bottom-button",
|
|
2351
2368
|
tabindex: "8",
|
|
2352
|
-
onClick:
|
|
2353
|
-
}, F(I(w)("common.time.now")), 1), o("button", {
|
|
2369
|
+
onClick: de
|
|
2370
|
+
}, F(e.type === "date" ? I(w)("common.time.today") : I(w)("common.time.now")), 1)), o("button", {
|
|
2354
2371
|
ref_key: "confirmRefButton",
|
|
2355
2372
|
ref: _,
|
|
2356
2373
|
type: "button",
|
|
2357
2374
|
class: "a-datetime-picker__bottom-button",
|
|
2358
2375
|
tabindex: "7",
|
|
2359
|
-
onClick: z(
|
|
2376
|
+
onClick: z(ae, ["stop"])
|
|
2360
2377
|
}, F(I(w)("common.button.confirm")), 513)])
|
|
2361
2378
|
]),
|
|
2362
2379
|
_: 1
|
|
2363
2380
|
})) : i("", !0)]),
|
|
2364
2381
|
_: 1
|
|
2365
2382
|
}, 8, ["model-value"])),
|
|
2366
|
-
o("div",
|
|
2383
|
+
o("div", so, [N(t.$slots, "append-inner", {}, void 0, !0)])
|
|
2367
2384
|
]),
|
|
2368
2385
|
_: 2
|
|
2369
2386
|
}, [e.hideLabel ? void 0 : {
|
|
2370
2387
|
name: "label",
|
|
2371
|
-
fn: R(() => [c(F(e.label), 1), e.required ? (k(), a("span",
|
|
2388
|
+
fn: R(() => [c(F(e.label), 1), e.required ? (k(), a("span", co)) : i("", !0)]),
|
|
2372
2389
|
key: "0"
|
|
2373
2390
|
}]), 1032, [
|
|
2374
2391
|
"modelValue",
|
|
2375
2392
|
"error-messages",
|
|
2376
2393
|
"placeholder",
|
|
2394
|
+
"hide-details",
|
|
2395
|
+
"data-cy",
|
|
2377
2396
|
"disabled"
|
|
2378
2397
|
]));
|
|
2379
2398
|
}
|
|
2380
|
-
}), [["__scopeId", "data-v-
|
|
2399
|
+
}), [["__scopeId", "data-v-4255e476"]]), uo = /* @__PURE__ */ u({
|
|
2381
2400
|
__name: "AFormDatetimePicker",
|
|
2382
2401
|
props: {
|
|
2383
2402
|
modelValue: {},
|
|
2403
|
+
type: { default: "datetime" },
|
|
2384
2404
|
label: { default: void 0 },
|
|
2385
2405
|
errorMessage: { default: void 0 },
|
|
2386
2406
|
required: {
|
|
@@ -2423,31 +2443,36 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2423
2443
|
let p = M(!1), m = M(!1), g = () => {
|
|
2424
2444
|
p.value = !0, d.value();
|
|
2425
2445
|
}, _ = () => {
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
}, C = () => {
|
|
2446
|
+
p.value = !1, x(() => {
|
|
2447
|
+
l.value(a.modelValue);
|
|
2448
|
+
});
|
|
2449
|
+
}, { t: v } = he(), y = h($t, void 0), S = h(en, void 0), C = () => {
|
|
2450
|
+
a.v?.$touch(), x(() => {
|
|
2451
|
+
m.value = !1, o("blur", H(a.modelValue) ? null : a.modelValue), p.value === !1 && l.value(a.modelValue);
|
|
2452
|
+
});
|
|
2453
|
+
}, w = () => {
|
|
2430
2454
|
m.value = !0, o("focus", a.modelValue), d.value();
|
|
2431
|
-
},
|
|
2455
|
+
}, T = n(() => U(a.errorMessage) ? [a.errorMessage] : a.v?.$errors?.length ? [a.v.$errors.map((e) => e.$message).join(" ")] : []), E = n(() => {
|
|
2432
2456
|
if (U(a.label)) return a.label;
|
|
2433
|
-
if (H(y) || H(
|
|
2457
|
+
if (H(y) || H(S) || H(a.v?.$path)) return "";
|
|
2434
2458
|
let { end: e } = Gt(a.v?.$path, ".");
|
|
2435
|
-
return v(y + "." +
|
|
2436
|
-
}),
|
|
2459
|
+
return v(y + "." + S + ".model." + e);
|
|
2460
|
+
}), D = n(() => U(a.required) ? a.required : !!(a.v?.required && a.v?.required.$params.type === "required")), O = n(() => U(a.disabled) ? a.disabled : !!f.value);
|
|
2437
2461
|
return L(s, (e, t) => {
|
|
2438
2462
|
e !== t && c.value.enabled && (m.value || p.value) && u.value(e);
|
|
2439
|
-
}), (t, n) => (k(), r(
|
|
2463
|
+
}), (t, n) => (k(), r(lo, b({
|
|
2440
2464
|
modelValue: s.value,
|
|
2441
2465
|
"onUpdate:modelValue": n[0] ||= (e) => s.value = e,
|
|
2466
|
+
type: e.type,
|
|
2442
2467
|
"data-cy": e.dataCy,
|
|
2443
|
-
"error-messages":
|
|
2444
|
-
required:
|
|
2445
|
-
disabled:
|
|
2446
|
-
label:
|
|
2468
|
+
"error-messages": T.value,
|
|
2469
|
+
required: D.value,
|
|
2470
|
+
disabled: O.value,
|
|
2471
|
+
label: E.value,
|
|
2447
2472
|
clearable: e.clearable
|
|
2448
2473
|
}, t.$attrs, {
|
|
2449
|
-
onBlur:
|
|
2450
|
-
onFocus:
|
|
2474
|
+
onBlur: C,
|
|
2475
|
+
onFocus: w,
|
|
2451
2476
|
onOnOpen: g,
|
|
2452
2477
|
onOnClose: _
|
|
2453
2478
|
}), {
|
|
@@ -2459,6 +2484,7 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2459
2484
|
_: 3
|
|
2460
2485
|
}, 16, [
|
|
2461
2486
|
"modelValue",
|
|
2487
|
+
"type",
|
|
2462
2488
|
"data-cy",
|
|
2463
2489
|
"error-messages",
|
|
2464
2490
|
"required",
|
|
@@ -2467,7 +2493,7 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2467
2493
|
"clearable"
|
|
2468
2494
|
]));
|
|
2469
2495
|
}
|
|
2470
|
-
}),
|
|
2496
|
+
}), fo = /* @__PURE__ */ u({
|
|
2471
2497
|
__name: "AFormSwitch",
|
|
2472
2498
|
props: {
|
|
2473
2499
|
modelValue: { type: Boolean },
|
|
@@ -2533,21 +2559,50 @@ var La = { class: "a-datetime-picker-time" }, Ra = { class: "a-datetime-picker-t
|
|
|
2533
2559
|
"disabled"
|
|
2534
2560
|
]));
|
|
2535
2561
|
}
|
|
2536
|
-
}),
|
|
2537
|
-
function
|
|
2562
|
+
}), po = M({}), mo = M(!1), ho = "__unscoped", go = (e, t) => typeof e == "string" && typeof t == "string" ? `${e}_${t}` : ho;
|
|
2563
|
+
function _o() {
|
|
2538
2564
|
return {
|
|
2539
|
-
setStoredPage: (e) => {
|
|
2540
|
-
|
|
2565
|
+
setStoredPage: (e, t) => {
|
|
2566
|
+
po.value[e] = t;
|
|
2541
2567
|
},
|
|
2542
2568
|
setPreservePage: () => {
|
|
2543
|
-
|
|
2569
|
+
mo.value = !0;
|
|
2544
2570
|
},
|
|
2545
|
-
consumeStoredPage: () =>
|
|
2571
|
+
consumeStoredPage: (e) => mo.value ? (mo.value = !1, po.value[e] ?? null) : null
|
|
2546
2572
|
};
|
|
2547
2573
|
}
|
|
2548
2574
|
//#endregion
|
|
2549
|
-
//#region src/labs/filters/
|
|
2550
|
-
var
|
|
2575
|
+
//#region src/labs/filters/filterInjectionKeys.ts
|
|
2576
|
+
var vo = Symbol.for("anzu:FilterDataKey"), yo = Symbol.for("anzu:FilterConfigKey"), bo = Symbol.for("anzu:FilterInnerDataKey"), xo = Symbol.for("anzu:FilterInnerConfigKey"), So = Symbol.for("anzu:FilterSubmitResetCounterKey"), Co = Symbol.for("anzu:FilterSelectedKey"), wo = Symbol.for("anzu:DatatablePaginationKey"), To = Symbol.for("anzu:SubjectSelectCloseSidebarKey"), Eo = Symbol.for("anzu:DatatablePageStoreKey"), Do = "_sort", Oo = "~", ko = {
|
|
2577
|
+
"%2C": ",",
|
|
2578
|
+
"%3A": ":",
|
|
2579
|
+
"%2F": "/",
|
|
2580
|
+
"%40": "@",
|
|
2581
|
+
"%24": "$",
|
|
2582
|
+
"%21": "!",
|
|
2583
|
+
"%27": "'",
|
|
2584
|
+
"%28": "(",
|
|
2585
|
+
"%29": ")",
|
|
2586
|
+
"%3B": ";",
|
|
2587
|
+
"%3F": "?"
|
|
2588
|
+
}, Ao = (e) => e.replace(/%(2C|3A|2F|40|24|21|27|28|29|3B|3F)/g, (e) => ko[e]), jo = (e, t) => G(e) && G(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e === t, Mo = (e, t) => {
|
|
2589
|
+
let n = new URLSearchParams();
|
|
2590
|
+
for (let t in e) {
|
|
2591
|
+
let r = e[t];
|
|
2592
|
+
H(r) || W(r) || G(r) && zt(r) || Lt(r) && Rt(r) || Mt(r) && r.length === 0 || n.set(t, G(r) ? r.join(",") : String(r));
|
|
2593
|
+
}
|
|
2594
|
+
return t && n.set(Do, `${t.key},${t.order}`), n.size === 0 ? "" : Ao(n.toString()) + Oo;
|
|
2595
|
+
};
|
|
2596
|
+
function No(e, t, n) {
|
|
2597
|
+
let r = {};
|
|
2598
|
+
for (let [n, i] of Object.entries(t)) {
|
|
2599
|
+
let t = e.fields[n];
|
|
2600
|
+
H(t) || jo(i, t.default) || (r[n] = i);
|
|
2601
|
+
}
|
|
2602
|
+
let i = Mo(r, n);
|
|
2603
|
+
return i.length === 0 ? i : "#" + i;
|
|
2604
|
+
}
|
|
2605
|
+
var Po = (e) => !e.includes("%"), Fo = {
|
|
2551
2606
|
skip: !1,
|
|
2552
2607
|
selected: !0,
|
|
2553
2608
|
xs: void 0,
|
|
@@ -2556,33 +2611,33 @@ var Qa = "_sort", $a = {
|
|
|
2556
2611
|
lg: void 0,
|
|
2557
2612
|
xl: void 0
|
|
2558
2613
|
};
|
|
2559
|
-
function
|
|
2614
|
+
function Io(e) {
|
|
2560
2615
|
return j(e.reduce((e, t) => ({
|
|
2561
2616
|
...e,
|
|
2562
2617
|
[t.name]: K(t.default)
|
|
2563
2618
|
}), {}));
|
|
2564
2619
|
}
|
|
2565
|
-
function
|
|
2620
|
+
function Lo(e, t, n) {
|
|
2566
2621
|
let r = e.reduce((e, t) => {
|
|
2567
2622
|
let r = t.name, i = K(t.default);
|
|
2568
2623
|
return {
|
|
2569
2624
|
...e,
|
|
2570
2625
|
[r]: {
|
|
2571
2626
|
name: r,
|
|
2572
|
-
variant:
|
|
2573
|
-
type:
|
|
2627
|
+
variant: Ro(t.variant, "eq"),
|
|
2628
|
+
type: Ro(t.type, "custom"),
|
|
2574
2629
|
titleT: t.titleT ?? (n?.system && n?.subject && t.name ? `${n.system}.${n.subject}.filter.${t.name}` : void 0),
|
|
2575
|
-
apiName:
|
|
2576
|
-
clearable:
|
|
2577
|
-
mandatory:
|
|
2630
|
+
apiName: Ro(t.apiName, t.name),
|
|
2631
|
+
clearable: Ro(t.clearable, !0),
|
|
2632
|
+
mandatory: Ro(t.mandatory, !1),
|
|
2578
2633
|
multiple: G(i),
|
|
2579
|
-
advanced:
|
|
2580
|
-
related:
|
|
2581
|
-
exclude:
|
|
2634
|
+
advanced: Ro(t.advanced, !1),
|
|
2635
|
+
related: Ro(t.related, void 0),
|
|
2636
|
+
exclude: Ro(t.exclude, !1),
|
|
2582
2637
|
default: i,
|
|
2583
2638
|
render: {
|
|
2584
|
-
|
|
2585
|
-
...
|
|
2639
|
+
...Fo,
|
|
2640
|
+
...Ro(t.render, {})
|
|
2586
2641
|
}
|
|
2587
2642
|
}
|
|
2588
2643
|
};
|
|
@@ -2602,10 +2657,10 @@ function to(e, t, n) {
|
|
|
2602
2657
|
filterData: t
|
|
2603
2658
|
};
|
|
2604
2659
|
}
|
|
2605
|
-
function
|
|
2660
|
+
function Ro(e, t) {
|
|
2606
2661
|
return H(e) ? t : e;
|
|
2607
2662
|
}
|
|
2608
|
-
function
|
|
2663
|
+
function zo() {
|
|
2609
2664
|
let e = (e, t, n) => {
|
|
2610
2665
|
n.fields[e]?.clearable && (t[e] = K(n.fields[e].default));
|
|
2611
2666
|
}, t = (t, n) => {
|
|
@@ -2637,84 +2692,79 @@ function ro() {
|
|
|
2637
2692
|
isClearable: i
|
|
2638
2693
|
};
|
|
2639
2694
|
}
|
|
2640
|
-
var
|
|
2695
|
+
var Bo = {
|
|
2641
2696
|
storeFiltersLocalStorage: !0,
|
|
2642
2697
|
populateUrlParams: !0
|
|
2643
2698
|
};
|
|
2644
|
-
function
|
|
2699
|
+
function Vo(e, t, n = {}) {
|
|
2645
2700
|
let r = {
|
|
2646
|
-
...
|
|
2701
|
+
...Bo,
|
|
2647
2702
|
...n
|
|
2648
2703
|
}, i;
|
|
2649
2704
|
Mt(r.storeFiltersLocalStorage) ? i = r.storeFiltersLocalStorage : Pt(r.storeFiltersLocalStorage) && !0 === r.storeFiltersLocalStorage && Mt(t.general.system) && Mt(t.general.subject) && (i = "tableFilter_" + t.general.system + "_" + t.general.subject);
|
|
2650
|
-
let a = ()
|
|
2705
|
+
let a = Mt(r.storeFiltersLocalStorage) ? r.storeFiltersLocalStorage : go(t.general.system, t.general.subject);
|
|
2706
|
+
f() && A(Eo, a);
|
|
2707
|
+
let { clearAll: o } = zo(), s = () => {
|
|
2651
2708
|
let n = {};
|
|
2652
2709
|
for (let r in e) try {
|
|
2653
2710
|
let i = r, a = e[i];
|
|
2654
|
-
!H(a) && !W(a) && !zt(a) && a
|
|
2711
|
+
!H(a) && !W(a) && !zt(a) && !jo(a, t.fields[i].default) && (n[r] = a);
|
|
2655
2712
|
} catch {}
|
|
2656
2713
|
return n;
|
|
2657
|
-
},
|
|
2658
|
-
let r = new URLSearchParams();
|
|
2659
|
-
for (let t in e) {
|
|
2660
|
-
let n = e[t];
|
|
2661
|
-
H(n) || W(n) || G(n) && zt(n) || Lt(n) && Rt(n) || Mt(n) && n.length === 0 || (G(n) ? r.set(t, n.join(",")) : r.set(t, String(n)));
|
|
2662
|
-
}
|
|
2663
|
-
return n && t.value.sortBy && r.set(Qa, `${t.value.sortBy.key},${t.value.sortBy.order}`), r.size === 0 ? "" : r.toString() + "~";
|
|
2664
|
-
}, s = (e) => {
|
|
2714
|
+
}, c = (e, t, n) => Mo(e, n ? t.value.sortBy : void 0), l = (e) => {
|
|
2665
2715
|
if (!e) return null;
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
let [e, t] = a.split(",");
|
|
2675
|
-
e && (t === vr.Asc || t === vr.Desc) && (i = {
|
|
2716
|
+
e.startsWith("#") && (e = e.substring(1));
|
|
2717
|
+
let n = e.indexOf(Oo);
|
|
2718
|
+
if (n === -1) return null;
|
|
2719
|
+
e = e.slice(0, n);
|
|
2720
|
+
let r = new URLSearchParams(e), i = {}, a = null, o = r.get(Do);
|
|
2721
|
+
if (o) {
|
|
2722
|
+
let [e, t] = o.split(",");
|
|
2723
|
+
e && (t === vr.Asc || t === vr.Desc) && (a = {
|
|
2676
2724
|
key: e,
|
|
2677
2725
|
order: t
|
|
2678
|
-
}),
|
|
2726
|
+
}), r.delete(Do);
|
|
2679
2727
|
}
|
|
2680
|
-
for (let [e,
|
|
2681
|
-
let
|
|
2682
|
-
if (H(
|
|
2728
|
+
for (let [e, n] of r.entries()) {
|
|
2729
|
+
let r = t.fields[e];
|
|
2730
|
+
if (H(r)) {
|
|
2683
2731
|
console.error(`Filter config not found for ${e}`);
|
|
2684
2732
|
continue;
|
|
2685
2733
|
}
|
|
2686
|
-
if (
|
|
2687
|
-
let t =
|
|
2688
|
-
|
|
2689
|
-
} else
|
|
2734
|
+
if (r.multiple ?? !1) {
|
|
2735
|
+
let t = n.split(",");
|
|
2736
|
+
i[e] = t.every((e) => !isNaN(Number(e))) ? t.map(Number) : t;
|
|
2737
|
+
} else i[e] = n;
|
|
2690
2738
|
}
|
|
2691
|
-
return {
|
|
2692
|
-
filters:
|
|
2693
|
-
sortBy:
|
|
2739
|
+
return Rt(i) && W(a) ? null : {
|
|
2740
|
+
filters: i,
|
|
2741
|
+
sortBy: a
|
|
2694
2742
|
};
|
|
2695
|
-
},
|
|
2743
|
+
}, u = (e) => {
|
|
2696
2744
|
r.populateUrlParams !== !1 && (window.location.hash = e);
|
|
2697
|
-
},
|
|
2745
|
+
}, d = () => {
|
|
2698
2746
|
r.populateUrlParams !== !1 && (window.location.hash = "");
|
|
2699
|
-
},
|
|
2747
|
+
}, p = () => r.populateUrlParams === !1 ? null : l(window.location.hash), m = (e) => {
|
|
2700
2748
|
i && localStorage && localStorage.setItem(i, e);
|
|
2701
|
-
},
|
|
2749
|
+
}, h = () => {
|
|
2702
2750
|
if (!i || !localStorage) return null;
|
|
2703
2751
|
let e = localStorage.getItem(i);
|
|
2704
|
-
return !e || !Mt(e) ? null :
|
|
2752
|
+
return !e || !Mt(e) ? null : l(e);
|
|
2705
2753
|
};
|
|
2706
2754
|
return {
|
|
2707
|
-
loadStoredFilters: (
|
|
2708
|
-
let { consumeStoredPage:
|
|
2709
|
-
if (W(
|
|
2710
|
-
let e =
|
|
2711
|
-
return e !== null && (
|
|
2712
|
-
...
|
|
2755
|
+
loadStoredFilters: (n, r) => {
|
|
2756
|
+
let { consumeStoredPage: l } = _o(), d = "hash", f = p();
|
|
2757
|
+
if (W(f) && (d = "localStorage", f = h()), W(f) || Rt(f.filters) && W(f.sortBy)) {
|
|
2758
|
+
let e = l(a);
|
|
2759
|
+
return e !== null && (n.value = {
|
|
2760
|
+
...n.value,
|
|
2713
2761
|
page: e
|
|
2714
|
-
}),
|
|
2762
|
+
}), r && r(), !1;
|
|
2715
2763
|
}
|
|
2764
|
+
let g = d === "hash" && !Rt(f.filters);
|
|
2765
|
+
g && o(e, t);
|
|
2716
2766
|
for (let t in e) {
|
|
2717
|
-
let n = t, r =
|
|
2767
|
+
let n = t, r = f.filters[n];
|
|
2718
2768
|
if (!H(r)) {
|
|
2719
2769
|
if (Mt(r)) {
|
|
2720
2770
|
let e = Ut(r);
|
|
@@ -2727,43 +2777,43 @@ function ao(e, t, n = {}) {
|
|
|
2727
2777
|
e[n] = r;
|
|
2728
2778
|
}
|
|
2729
2779
|
}
|
|
2730
|
-
if (
|
|
2780
|
+
if (d === "localStorage" && i && localStorage) {
|
|
2731
2781
|
let e = localStorage.getItem(i);
|
|
2732
|
-
e &&
|
|
2782
|
+
e && u(e);
|
|
2733
2783
|
}
|
|
2734
|
-
let
|
|
2735
|
-
return
|
|
2736
|
-
...
|
|
2737
|
-
sortBy:
|
|
2738
|
-
|
|
2739
|
-
}, n &&
|
|
2784
|
+
let _ = l(a);
|
|
2785
|
+
return n.value = {
|
|
2786
|
+
...n.value,
|
|
2787
|
+
sortBy: f.sortBy ?? n.value.sortBy,
|
|
2788
|
+
page: _ ?? (d === "hash" ? 1 : n.value.page)
|
|
2789
|
+
}, g && m(c(s(), n, !0)), r && r(), !0;
|
|
2740
2790
|
},
|
|
2741
2791
|
resetFilter: (e, n) => {
|
|
2742
2792
|
e.value = {
|
|
2743
2793
|
...e.value,
|
|
2744
2794
|
page: 1
|
|
2745
|
-
}, i && localStorage && localStorage.removeItem(i),
|
|
2795
|
+
}, i && localStorage && localStorage.removeItem(i), d(), t.touched = !1, n && n();
|
|
2746
2796
|
},
|
|
2747
2797
|
submitFilter: (e, n) => {
|
|
2748
|
-
let r =
|
|
2749
|
-
|
|
2798
|
+
let r = s(), i = c(r, e, !0);
|
|
2799
|
+
u(i), m(i), e.value = {
|
|
2750
2800
|
...e.value,
|
|
2751
2801
|
page: 1
|
|
2752
2802
|
}, t.touched = !1, n && n();
|
|
2753
2803
|
},
|
|
2754
|
-
serializeFilters:
|
|
2755
|
-
deserializeFilters:
|
|
2804
|
+
serializeFilters: c,
|
|
2805
|
+
deserializeFilters: l
|
|
2756
2806
|
};
|
|
2757
2807
|
}
|
|
2758
2808
|
//#endregion
|
|
2759
2809
|
//#region src/labs/filters/filterTimeIntervalTools.ts
|
|
2760
|
-
var
|
|
2810
|
+
var Ho = {
|
|
2761
2811
|
CurrentMonth: "cm",
|
|
2762
2812
|
LastMonth: "lm",
|
|
2763
2813
|
Last3Months: "l3m",
|
|
2764
2814
|
Custom: "custom"
|
|
2765
2815
|
};
|
|
2766
|
-
function
|
|
2816
|
+
function Uo(e = void 0) {
|
|
2767
2817
|
let { t } = he(), r = n(() => {
|
|
2768
2818
|
let n = [
|
|
2769
2819
|
{
|
|
@@ -2787,19 +2837,19 @@ function so(e = void 0) {
|
|
|
2787
2837
|
title: "28 dní"
|
|
2788
2838
|
},
|
|
2789
2839
|
{
|
|
2790
|
-
value:
|
|
2840
|
+
value: Ho.CurrentMonth,
|
|
2791
2841
|
title: "Prebiehajúci mesiac"
|
|
2792
2842
|
},
|
|
2793
2843
|
{
|
|
2794
|
-
value:
|
|
2844
|
+
value: Ho.LastMonth,
|
|
2795
2845
|
title: "Minulý mesiac"
|
|
2796
2846
|
},
|
|
2797
2847
|
{
|
|
2798
|
-
value:
|
|
2848
|
+
value: Ho.Last3Months,
|
|
2799
2849
|
title: "Posledné 3 mesiace"
|
|
2800
2850
|
},
|
|
2801
2851
|
{
|
|
2802
|
-
value:
|
|
2852
|
+
value: Ho.Custom,
|
|
2803
2853
|
title: "Vlastné"
|
|
2804
2854
|
}
|
|
2805
2855
|
];
|
|
@@ -2810,8 +2860,8 @@ function so(e = void 0) {
|
|
|
2810
2860
|
getTimeIntervalOption: (e) => r.value.find((t) => t.value === e)
|
|
2811
2861
|
};
|
|
2812
2862
|
}
|
|
2813
|
-
function
|
|
2814
|
-
let { datesCompare: t, required: r } =
|
|
2863
|
+
function Wo(e) {
|
|
2864
|
+
let { datesCompare: t, required: r } = Ra(), i = n(() => e.value.from), a = { dialogData: {
|
|
2815
2865
|
from: {
|
|
2816
2866
|
required: r,
|
|
2817
2867
|
datesCompare: t(n(() => e.value.until), "Until", "onOrBefore")
|
|
@@ -2825,7 +2875,7 @@ function co(e) {
|
|
|
2825
2875
|
}
|
|
2826
2876
|
//#endregion
|
|
2827
2877
|
//#region src/labs/api/useApiQueryBuilder.ts
|
|
2828
|
-
function
|
|
2878
|
+
function Go() {
|
|
2829
2879
|
let e = M([]), t = (e) => {
|
|
2830
2880
|
c("limit", e);
|
|
2831
2881
|
}, n = (e, t) => {
|
|
@@ -2842,11 +2892,11 @@ function lo() {
|
|
|
2842
2892
|
};
|
|
2843
2893
|
let c = Bi(), l = Ri(c);
|
|
2844
2894
|
switch (o) {
|
|
2845
|
-
case
|
|
2846
|
-
case
|
|
2847
|
-
case
|
|
2895
|
+
case Ho.CurrentMonth: return ea(l, "utc", 0, !1);
|
|
2896
|
+
case Ho.LastMonth: return ea(l, "utc", -1, !1);
|
|
2897
|
+
case Ho.Last3Months: return ea(l, "utc", -2, !0);
|
|
2848
2898
|
default: if (jt(o)) return {
|
|
2849
|
-
from:
|
|
2899
|
+
from: Gi(Ui(o * -1, l)),
|
|
2850
2900
|
until: c
|
|
2851
2901
|
};
|
|
2852
2902
|
}
|
|
@@ -2894,10 +2944,10 @@ function lo() {
|
|
|
2894
2944
|
}
|
|
2895
2945
|
//#endregion
|
|
2896
2946
|
//#region src/types/ApiResponse.ts
|
|
2897
|
-
var
|
|
2898
|
-
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, querySetFilters: s } =
|
|
2947
|
+
var Ko = (e) => Lt(e) && Object.hasOwn(e, "totalCount"), qo = (e) => Lt(e) && Object.hasOwn(e, "hasNextPage"), Jo = (e, t, n) => {
|
|
2948
|
+
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, querySetFilters: s } = Go();
|
|
2899
2949
|
return r(e.value.rowsPerPage), i(e.value.page, e.value.rowsPerPage), e.value.sortBy && a(e.value.sortBy.key, e.value.sortBy.order === vr.Desc), s(t, n), o();
|
|
2900
|
-
},
|
|
2950
|
+
}, Yo = (e) => {
|
|
2901
2951
|
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: a, options: o = {}, silentConsoleError: s = !1 } = e, c = /* @__PURE__ */ new Set();
|
|
2902
2952
|
return {
|
|
2903
2953
|
executeFetch: async (e, l, u, d = {}) => {
|
|
@@ -2907,18 +2957,18 @@ var uo = (e) => Lt(e) && Object.hasOwn(e, "totalCount"), fo = (e) => Lt(e) && Ob
|
|
|
2907
2957
|
try {
|
|
2908
2958
|
let n = u.general.elastic || h ? "/search" : "", r = U(m) ? m : a, s = U(p) ? p : i;
|
|
2909
2959
|
if (H(s)) throw Error("Url template is undefined");
|
|
2910
|
-
let c = (H(r) ? s :
|
|
2960
|
+
let c = (H(r) ? s : la(s, r)) + n + Jo(e, l, u), d = await t().get(c, {
|
|
2911
2961
|
...o,
|
|
2912
2962
|
signal: f.signal
|
|
2913
2963
|
});
|
|
2914
|
-
if (!
|
|
2964
|
+
if (!ua(d.status)) throw new li(d.status);
|
|
2915
2965
|
if (d.data) {
|
|
2916
2966
|
let t = d.data;
|
|
2917
|
-
return
|
|
2967
|
+
return qo(t) ? e.value = {
|
|
2918
2968
|
...e.value,
|
|
2919
2969
|
hasNextPage: t.hasNextPage,
|
|
2920
2970
|
currentViewCount: d.data.data.length
|
|
2921
|
-
} :
|
|
2971
|
+
} : Ko(t) && (e.value = {
|
|
2922
2972
|
...e.value,
|
|
2923
2973
|
totalCount: t.totalCount,
|
|
2924
2974
|
currentViewCount: d.data.data.length
|
|
@@ -2937,10 +2987,10 @@ var uo = (e) => Lt(e) && Object.hasOwn(e, "totalCount"), fo = (e) => Lt(e) && Ob
|
|
|
2937
2987
|
c.forEach((e) => e.abort()), c.clear();
|
|
2938
2988
|
}
|
|
2939
2989
|
};
|
|
2940
|
-
},
|
|
2941
|
-
function
|
|
2990
|
+
}, Xo = () => ({ rowsPerPage: 25 });
|
|
2991
|
+
function Zo(e, t = vr.Desc, n = {}, r) {
|
|
2942
2992
|
let i = {
|
|
2943
|
-
...
|
|
2993
|
+
...Xo(),
|
|
2944
2994
|
...n
|
|
2945
2995
|
}, a = r ?? M({
|
|
2946
2996
|
sortBy: W(e) ? null : {
|
|
@@ -2998,9 +3048,9 @@ function go(e, t = vr.Desc, n = {}, r) {
|
|
|
2998
3048
|
}
|
|
2999
3049
|
//#endregion
|
|
3000
3050
|
//#region src/services/api/apiCreateOne.ts
|
|
3001
|
-
var
|
|
3002
|
-
e().post(
|
|
3003
|
-
}),
|
|
3051
|
+
var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
3052
|
+
e().post(la(n, r), JSON.stringify(t), o).then((e) => ua(e.status) ? e.data ? s(e.data) : e.status === 204 ? s(null) : c(new Ur()) : c(new li(e.status))).catch((e) => $r(e) ? c(new ti(e, e.config?.url)) : ri(e) ? c(new si(e, i, a, e)) : gi(e) ? c(new yi(e, i, a, e)) : di(e) ? c(new mi(e, e)) : c(new Ur(e)));
|
|
3053
|
+
}), $o = /* @__PURE__ */ u({
|
|
3004
3054
|
__name: "AFilterBooleanSelect",
|
|
3005
3055
|
props: {
|
|
3006
3056
|
name: {},
|
|
@@ -3043,7 +3093,7 @@ var _o = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3043
3093
|
value: 0,
|
|
3044
3094
|
title: f(i.falseT)
|
|
3045
3095
|
}
|
|
3046
|
-
]), { clearOne: g } =
|
|
3096
|
+
]), { clearOne: g } = zo(), _ = () => {
|
|
3047
3097
|
g(i.name, l, c), s.value.delete(i.name);
|
|
3048
3098
|
}, v = () => {
|
|
3049
3099
|
if (u.value.value === -1) {
|
|
@@ -3074,7 +3124,7 @@ var _o = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3074
3124
|
"clearable"
|
|
3075
3125
|
]));
|
|
3076
3126
|
}
|
|
3077
|
-
}),
|
|
3127
|
+
}), es = /* @__PURE__ */ u({
|
|
3078
3128
|
__name: "AFilterString",
|
|
3079
3129
|
props: {
|
|
3080
3130
|
name: {},
|
|
@@ -3092,7 +3142,7 @@ var _o = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3092
3142
|
set(e) {
|
|
3093
3143
|
l[i.name] = e, c.touched = !0, a("change");
|
|
3094
3144
|
}
|
|
3095
|
-
}), d = n(() => c.fields[i.name]), { t: f } = he(), p = n(() => d.value.titleT ? f(d.value.titleT) : void 0), m = n(() => H(i.placeholder) ? d.value.variant === "startsWith" ? f("common.model.filterPlaceholder.startsWith") : d.value.variant === "eq" ? f("common.model.filterPlaceholder.eq") : d.value.variant === "search" ? f("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: g } =
|
|
3145
|
+
}), d = n(() => c.fields[i.name]), { t: f } = he(), p = n(() => d.value.titleT ? f(d.value.titleT) : void 0), m = n(() => H(i.placeholder) ? d.value.variant === "startsWith" ? f("common.model.filterPlaceholder.startsWith") : d.value.variant === "eq" ? f("common.model.filterPlaceholder.eq") : d.value.variant === "search" ? f("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: g } = zo(), _ = () => {
|
|
3096
3146
|
g(i.name, l, c), s.value.delete(i.name);
|
|
3097
3147
|
}, v = () => {
|
|
3098
3148
|
if (jt(u.value)) {
|
|
@@ -3102,16 +3152,14 @@ var _o = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3102
3152
|
}]);
|
|
3103
3153
|
return;
|
|
3104
3154
|
}
|
|
3105
|
-
if (Mt(u.value)) {
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
return;
|
|
3109
|
-
}
|
|
3110
|
-
s.value.set(i.name, [{
|
|
3111
|
-
title: u.value,
|
|
3112
|
-
value: u.value
|
|
3113
|
-
}]);
|
|
3155
|
+
if (!Mt(u.value) || u.value.length === 0) {
|
|
3156
|
+
s.value.delete(i.name);
|
|
3157
|
+
return;
|
|
3114
3158
|
}
|
|
3159
|
+
s.value.set(i.name, [{
|
|
3160
|
+
title: u.value,
|
|
3161
|
+
value: u.value
|
|
3162
|
+
}]);
|
|
3115
3163
|
};
|
|
3116
3164
|
return L(() => l[i.name], (e, t) => {
|
|
3117
3165
|
e === t || Pt(e) || v();
|
|
@@ -3134,10 +3182,10 @@ var _o = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3134
3182
|
"data-cy"
|
|
3135
3183
|
]));
|
|
3136
3184
|
}
|
|
3137
|
-
}),
|
|
3185
|
+
}), ts = {
|
|
3138
3186
|
key: 0,
|
|
3139
3187
|
class: "font-italic pl-1"
|
|
3140
|
-
},
|
|
3188
|
+
}, ns = 300, rs = /* @__PURE__ */ u({
|
|
3141
3189
|
__name: "AFilterRemoteAutocomplete",
|
|
3142
3190
|
props: {
|
|
3143
3191
|
name: {},
|
|
@@ -3161,7 +3209,7 @@ var _o = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3161
3209
|
if (H(_.fields[x]) || H(v[x])) throw Error(`[${y}] Incorrect filter inner config. FilterByField is '${x}' and available options are ${Object.keys(v).join(", ")}.`);
|
|
3162
3210
|
let C = n(() => m.fields[o.name]), w = M([]), T = M(""), E = M(!1), D = M(null), O = M(0), { t: A } = he(), j = () => {
|
|
3163
3211
|
E.value = !1;
|
|
3164
|
-
}, ee = n(() => C.value.titleT ? A(C.value.titleT) : void 0), { pagination: N } =
|
|
3212
|
+
}, ee = n(() => C.value.titleT ? A(C.value.titleT) : void 0), { pagination: N } = Zo(W(S) ? null : S.key, S?.order), te = M([]), P = M([]), ne = M(!0), re = M(!1), ie = n(() => {
|
|
3165
3213
|
let e = /* @__PURE__ */ new Map(), t = (t) => {
|
|
3166
3214
|
t.forEach((t) => {
|
|
3167
3215
|
e.set(t.value, {
|
|
@@ -3225,7 +3273,7 @@ var _o = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3225
3273
|
if (!C.value.multiple && P.value[0]) return P.value[0].title;
|
|
3226
3274
|
}), me = (e) => {
|
|
3227
3275
|
(C.value.multiple || E.value || e.length !== 0) && z.value !== e && (T.value = e);
|
|
3228
|
-
}, { clearOne: _e } =
|
|
3276
|
+
}, { clearOne: _e } = zo(), ve = () => {
|
|
3229
3277
|
_e(o.name, g, m), p.value.delete(o.name);
|
|
3230
3278
|
}, ye = async () => {
|
|
3231
3279
|
try {
|
|
@@ -3243,7 +3291,7 @@ var _o = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3243
3291
|
}
|
|
3244
3292
|
O.value++, ue(e, O.value);
|
|
3245
3293
|
}
|
|
3246
|
-
}, { debounce:
|
|
3294
|
+
}, { debounce: ns });
|
|
3247
3295
|
let be = async () => {
|
|
3248
3296
|
await de("mounted");
|
|
3249
3297
|
}, B = n(() => H(o.placeholder) ? C.value.variant === "startsWith" ? A("common.model.filterPlaceholder.startsWith") : C.value.variant === "eq" ? A("common.model.filterPlaceholder.eq") : C.value.variant === "search" ? A("common.model.filterPlaceholder.contains") : "" : o.placeholder), xe = n(() => {
|
|
@@ -3309,7 +3357,7 @@ var _o = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3309
3357
|
text: `${t.title} (${t.raw.subtitle})`,
|
|
3310
3358
|
disabled: t.props.disabled
|
|
3311
3359
|
}, {
|
|
3312
|
-
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span",
|
|
3360
|
+
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span", ts, " (" + F(t.raw.subtitle) + ") ", 1)) : i("", !0)]),
|
|
3313
3361
|
_: 2
|
|
3314
3362
|
}, 1032, [
|
|
3315
3363
|
"closable",
|
|
@@ -3336,12 +3384,12 @@ var _o = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3336
3384
|
});
|
|
3337
3385
|
//#endregion
|
|
3338
3386
|
//#region src/utils/enum.ts
|
|
3339
|
-
function
|
|
3387
|
+
function is(e, t) {
|
|
3340
3388
|
return t.includes(e);
|
|
3341
3389
|
}
|
|
3342
3390
|
//#endregion
|
|
3343
3391
|
//#region src/labs/filters/AFilterRemoteAutocompleteWithMinimal.vue
|
|
3344
|
-
var
|
|
3392
|
+
var as = /* @__PURE__ */ u({
|
|
3345
3393
|
__name: "AFilterRemoteAutocompleteWithMinimal",
|
|
3346
3394
|
props: {
|
|
3347
3395
|
name: {},
|
|
@@ -3366,7 +3414,7 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3366
3414
|
if (H(d.fields[i.filterByField]) || H(p[i.filterByField])) throw Error(`[${m}] Incorrect filter inner config. FilterByField is '${i.filterByField}' and available options are ${Object.keys(p).join(", ")}.`);
|
|
3367
3415
|
let g = M([]), _ = M(""), v = M(!1), y = M(void 0), x = M(0), { t: S } = he(), C = n(() => c.fields[i.name]), w = () => {
|
|
3368
3416
|
v.value = !1;
|
|
3369
|
-
}, T = n(() => C.value.titleT ? S(C.value.titleT) : void 0), { pagination: E } =
|
|
3417
|
+
}, T = n(() => C.value.titleT ? S(C.value.titleT) : void 0), { pagination: E } = Zo(W(i.filterSortBy) ? null : i.filterSortBy.key, i.filterSortBy?.order), D = M([]), O = M([]), A = n(() => {
|
|
3370
3418
|
let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
3371
3419
|
return O.value.forEach((n) => {
|
|
3372
3420
|
n.raw ? (e.set(n.raw[i.itemValue], n.raw[i.itemTitle]), t.set(n.raw[i.itemValue], K(n.raw))) : (e.set(n[i.itemValue], n[i.itemTitle]), t.set(n[i.itemValue], K(n)));
|
|
@@ -3426,7 +3474,7 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3426
3474
|
ee(e);
|
|
3427
3475
|
}
|
|
3428
3476
|
fe();
|
|
3429
|
-
}, ue = n(() => H(i.placeholder) ? C.value.variant === "startsWith" ? S("common.model.filterPlaceholder.startsWith") : C.value.variant === "eq" ? S("common.model.filterPlaceholder.eq") : C.value.variant === "search" ? S("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: de } =
|
|
3477
|
+
}, ue = n(() => H(i.placeholder) ? C.value.variant === "startsWith" ? S("common.model.filterPlaceholder.startsWith") : C.value.variant === "eq" ? S("common.model.filterPlaceholder.eq") : C.value.variant === "search" ? S("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: de } = zo(), fe = () => {
|
|
3430
3478
|
de(i.name, u, c), s.value.delete(i.name);
|
|
3431
3479
|
}, pe = (e) => {
|
|
3432
3480
|
if (s.value.delete(i.name), G(e) && e.length === 0 || W(e)) {
|
|
@@ -3448,7 +3496,7 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3448
3496
|
return L(() => u[i.name], async (e, t) => {
|
|
3449
3497
|
if (!(e === t || Pt(e))) {
|
|
3450
3498
|
if (W(e) || H(e) || G(e) && e.length === 0) {
|
|
3451
|
-
if (O.value = [], C.value.multiple ? g.value = [] : g.value = null, pe(g.value), re.value === !0 ||
|
|
3499
|
+
if (O.value = [], C.value.multiple ? g.value = [] : g.value = null, pe(g.value), re.value === !0 || is(i.prefetch, [
|
|
3452
3500
|
"hover",
|
|
3453
3501
|
"focus",
|
|
3454
3502
|
!1
|
|
@@ -3536,7 +3584,7 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3536
3584
|
"loading"
|
|
3537
3585
|
]));
|
|
3538
3586
|
}
|
|
3539
|
-
}),
|
|
3587
|
+
}), os = /* @__PURE__ */ u({
|
|
3540
3588
|
__name: "AFilterValueObjectOptionsSelect",
|
|
3541
3589
|
props: {
|
|
3542
3590
|
name: {},
|
|
@@ -3554,10 +3602,10 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3554
3602
|
set(e) {
|
|
3555
3603
|
l[i.name] = e, y(e), c.touched = !0, a("change");
|
|
3556
3604
|
}
|
|
3557
|
-
}), p = n(() => c.fields[i.name]), { t: m } = he(), g = n(() => p.value.titleT ? m(p.value.titleT) : void 0), { clearOne: _ } =
|
|
3605
|
+
}), p = n(() => c.fields[i.name]), { t: m } = he(), g = n(() => p.value.titleT ? m(p.value.titleT) : void 0), { clearOne: _ } = zo(), v = () => {
|
|
3558
3606
|
_(i.name, l, c), s.value.delete(i.name);
|
|
3559
3607
|
}, y = (e) => {
|
|
3560
|
-
if (G(e) && e.length === 0) {
|
|
3608
|
+
if (W(e) || H(e) || G(e) && e.length === 0) {
|
|
3561
3609
|
s.value.delete(i.name);
|
|
3562
3610
|
return;
|
|
3563
3611
|
}
|
|
@@ -3603,7 +3651,7 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3603
3651
|
"clearable"
|
|
3604
3652
|
]));
|
|
3605
3653
|
}
|
|
3606
|
-
}),
|
|
3654
|
+
}), ss = /*#__PURE__*/ At(/* @__PURE__ */ u({
|
|
3607
3655
|
__name: "AFilterTimeInterval",
|
|
3608
3656
|
props: {
|
|
3609
3657
|
nameFrom: {},
|
|
@@ -3613,79 +3661,83 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3613
3661
|
dataCy: { default: "filter-time-interval" }
|
|
3614
3662
|
},
|
|
3615
3663
|
emits: ["change"],
|
|
3616
|
-
setup(t, {
|
|
3617
|
-
let
|
|
3618
|
-
if (H(
|
|
3619
|
-
let
|
|
3664
|
+
setup(t, { expose: o, emit: s }) {
|
|
3665
|
+
let u = t, d = s, f = h(So), p = h(Co), m = h(yo), g = h(vo);
|
|
3666
|
+
if (H(f) || H(p) || H(m) || H(m.fields[u.nameFrom]) || H(m.fields[u.nameUntil]) || H(g) || H(g[u.nameFrom]) || H(g[u.nameUntil])) throw Error("Incorrect provide/inject config.");
|
|
3667
|
+
let _ = n({
|
|
3620
3668
|
get() {
|
|
3621
|
-
return
|
|
3669
|
+
return g[u.nameFrom];
|
|
3622
3670
|
},
|
|
3623
3671
|
set(e) {
|
|
3624
|
-
|
|
3625
|
-
|
|
3672
|
+
g[u.nameFrom] = e, ae(e), m.touched = !0, x(() => {
|
|
3673
|
+
d("change");
|
|
3626
3674
|
});
|
|
3627
3675
|
}
|
|
3628
|
-
}), { timeIntervalOptions:
|
|
3676
|
+
}), { timeIntervalOptions: v, getTimeIntervalOption: y } = Uo(u.allowed), S = M(null), C = M(!1), w = M({
|
|
3629
3677
|
from: null,
|
|
3630
3678
|
until: Bi()
|
|
3631
|
-
}),
|
|
3632
|
-
|
|
3633
|
-
},
|
|
3634
|
-
if (
|
|
3635
|
-
|
|
3679
|
+
}), T = M(!1), { v$: E } = Wo(w), D = n(() => m.fields[u.nameFrom]), { t: O } = he(), A = n(() => D.value.titleT ? O(D.value.titleT) : void 0), { clearOne: j } = zo(), { showValidationError: ee } = Di(), P = () => {
|
|
3680
|
+
ie(), se(g[u.nameFrom]), ae(g[u.nameFrom]);
|
|
3681
|
+
}, ne = () => {
|
|
3682
|
+
if (E.value.$touch(), E.value.$invalid) {
|
|
3683
|
+
ee();
|
|
3636
3684
|
return;
|
|
3637
3685
|
}
|
|
3638
|
-
|
|
3639
|
-
}
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
}, ie = (
|
|
3686
|
+
T.value = !0, C.value = !1, g[u.nameUntil] = w.value.until, _.value = w.value.from;
|
|
3687
|
+
};
|
|
3688
|
+
o({ onClear: P });
|
|
3689
|
+
let re = () => {
|
|
3690
|
+
C.value = !1, S.value = null;
|
|
3691
|
+
}, ie = () => {
|
|
3692
|
+
j(u.nameFrom, g, m), j(u.nameUntil, g, m), p.value.delete(u.nameFrom);
|
|
3693
|
+
}, ae = (e) => {
|
|
3644
3694
|
if (G(e) || Pt(e)) return;
|
|
3645
3695
|
if (W(e) || H(e)) {
|
|
3646
|
-
|
|
3696
|
+
p.value.delete(u.nameFrom);
|
|
3647
3697
|
return;
|
|
3648
3698
|
}
|
|
3649
|
-
let t =
|
|
3650
|
-
if (!t &&
|
|
3651
|
-
let t =
|
|
3652
|
-
|
|
3653
|
-
title: t.title + ": " +
|
|
3699
|
+
let t = y(e);
|
|
3700
|
+
if (!t && $i(e)) {
|
|
3701
|
+
let t = y(Ho.Custom);
|
|
3702
|
+
p.value.set(u.nameFrom, [{
|
|
3703
|
+
title: t.title + ": " + qi(w.value.from) + " - " + qi(w.value.until),
|
|
3654
3704
|
value: e
|
|
3655
3705
|
}]);
|
|
3656
3706
|
return;
|
|
3657
3707
|
}
|
|
3658
|
-
t &&
|
|
3708
|
+
t && p.value.set(u.nameFrom, [{
|
|
3659
3709
|
title: t.title,
|
|
3660
3710
|
value: e
|
|
3661
3711
|
}]);
|
|
3662
|
-
},
|
|
3663
|
-
|
|
3664
|
-
}
|
|
3665
|
-
L(g, (e) => {
|
|
3712
|
+
}, oe = (e = !1) => {
|
|
3713
|
+
E.value.$reset(), e && (w.value.from = null, w.value.until = Bi()), C.value = !0;
|
|
3714
|
+
}, se = (e) => {
|
|
3666
3715
|
if (G(e) || Pt(e)) return;
|
|
3667
|
-
if (
|
|
3668
|
-
|
|
3716
|
+
if (T.value = !1, H(e) || W(e)) {
|
|
3717
|
+
S.value = null;
|
|
3669
3718
|
return;
|
|
3670
3719
|
}
|
|
3671
|
-
let t =
|
|
3672
|
-
!t &&
|
|
3673
|
-
}
|
|
3674
|
-
|
|
3720
|
+
let t = y(e), n = g[u.nameUntil];
|
|
3721
|
+
!t && $i(e) && $i(n) && (S.value = Ho.Custom, w.value.from = e, w.value.until = n, T.value = !0), t && (S.value = t.value);
|
|
3722
|
+
};
|
|
3723
|
+
L(_, se, { immediate: !0 }), L(f, () => {
|
|
3724
|
+
se(g[u.nameFrom]), ae(g[u.nameFrom]);
|
|
3725
|
+
}), L([() => g[u.nameFrom], () => g[u.nameUntil]], ([e, t], [n, r]) => {
|
|
3726
|
+
(e !== n || t !== r) && ae(e);
|
|
3675
3727
|
}, { immediate: !0 });
|
|
3676
|
-
let
|
|
3677
|
-
if (e.value ===
|
|
3678
|
-
|
|
3728
|
+
let ce = (e) => {
|
|
3729
|
+
if (e.value === Ho.Custom) {
|
|
3730
|
+
oe(!0);
|
|
3679
3731
|
return;
|
|
3680
3732
|
}
|
|
3681
|
-
|
|
3733
|
+
g[u.nameUntil] = null, _.value = e.value;
|
|
3682
3734
|
};
|
|
3683
3735
|
return (n, o) => {
|
|
3684
3736
|
let s = te("ABtnTertiary"), u = te("ABtnPrimary");
|
|
3685
|
-
return k(), a(e, null, [
|
|
3737
|
+
return k(), a(e, null, [T.value ? (k(), r(He, {
|
|
3686
3738
|
key: 0,
|
|
3687
|
-
label:
|
|
3688
|
-
"model-value": I(
|
|
3739
|
+
label: A.value,
|
|
3740
|
+
"model-value": I(qi)(w.value.from) + " - " + I(qi)(w.value.until),
|
|
3689
3741
|
readonly: "",
|
|
3690
3742
|
rows: "1",
|
|
3691
3743
|
"auto-grow": "",
|
|
@@ -3693,24 +3745,24 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3693
3745
|
"append-inner-icon": "mdi-menu-down",
|
|
3694
3746
|
clearable: "",
|
|
3695
3747
|
class: "cursor-pointer",
|
|
3696
|
-
"onClick:clear": z(
|
|
3697
|
-
onClick: o[0] ||= z((e) =>
|
|
3748
|
+
"onClick:clear": z(P, ["stop"]),
|
|
3749
|
+
onClick: o[0] ||= z((e) => oe(), ["stop"])
|
|
3698
3750
|
}, null, 8, ["label", "model-value"])) : (k(), r(pt, {
|
|
3699
3751
|
key: 1,
|
|
3700
|
-
modelValue:
|
|
3701
|
-
"onUpdate:modelValue": o[1] ||= (e) =>
|
|
3752
|
+
modelValue: S.value,
|
|
3753
|
+
"onUpdate:modelValue": o[1] ||= (e) => S.value = e,
|
|
3702
3754
|
"item-title": "title",
|
|
3703
3755
|
"item-value": "value",
|
|
3704
|
-
label:
|
|
3705
|
-
clearable: !I(W)(
|
|
3756
|
+
label: A.value,
|
|
3757
|
+
clearable: !I(W)(S.value),
|
|
3706
3758
|
"no-filter": "",
|
|
3707
3759
|
"data-cy": t.dataCy,
|
|
3708
|
-
items: I(
|
|
3760
|
+
items: I(v),
|
|
3709
3761
|
"hide-details": "",
|
|
3710
3762
|
autocomplete: "off",
|
|
3711
|
-
"onClick:clear": z(
|
|
3763
|
+
"onClick:clear": z(P, ["stop"])
|
|
3712
3764
|
}, {
|
|
3713
|
-
item: R(({ props: e, internalItem: t }) => [l(We, b(e, { onClick: (e) =>
|
|
3765
|
+
item: R(({ props: e, internalItem: t }) => [l(We, b(e, { onClick: (e) => ce(t) }), null, 16, ["onClick"])]),
|
|
3714
3766
|
_: 1
|
|
3715
3767
|
}, 8, [
|
|
3716
3768
|
"modelValue",
|
|
@@ -3718,7 +3770,7 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3718
3770
|
"clearable",
|
|
3719
3771
|
"data-cy",
|
|
3720
3772
|
"items"
|
|
3721
|
-
])),
|
|
3773
|
+
])), C.value ? (k(), r(Xe, {
|
|
3722
3774
|
key: 2,
|
|
3723
3775
|
"model-value": !0,
|
|
3724
3776
|
width: "auto",
|
|
@@ -3726,17 +3778,17 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3726
3778
|
}, {
|
|
3727
3779
|
default: R(() => [l(Se, null, {
|
|
3728
3780
|
default: R(() => [
|
|
3729
|
-
l(xr, { onOnCancel:
|
|
3730
|
-
default: R(() => [N(n.$slots, "title", {}, () => [c(F(
|
|
3781
|
+
l(xr, { onOnCancel: re }, {
|
|
3782
|
+
default: R(() => [N(n.$slots, "title", {}, () => [c(F(A.value), 1)], !0)]),
|
|
3731
3783
|
_: 3
|
|
3732
3784
|
}),
|
|
3733
3785
|
l(we, null, {
|
|
3734
3786
|
default: R(() => [l(kt, null, {
|
|
3735
|
-
default: R(() => [l(
|
|
3736
|
-
modelValue:
|
|
3737
|
-
"onUpdate:modelValue": o[2] ||= (e) =>
|
|
3738
|
-
v: I(
|
|
3739
|
-
label: I(
|
|
3787
|
+
default: R(() => [l(uo, {
|
|
3788
|
+
modelValue: w.value.from,
|
|
3789
|
+
"onUpdate:modelValue": o[2] ||= (e) => w.value.from = e,
|
|
3790
|
+
v: I(E).dialogData.from,
|
|
3791
|
+
label: I(O)("common.filter.timeInterval.from"),
|
|
3740
3792
|
required: ""
|
|
3741
3793
|
}, null, 8, [
|
|
3742
3794
|
"modelValue",
|
|
@@ -3745,11 +3797,11 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3745
3797
|
])]),
|
|
3746
3798
|
_: 1
|
|
3747
3799
|
}), l(kt, null, {
|
|
3748
|
-
default: R(() => [l(
|
|
3749
|
-
modelValue:
|
|
3750
|
-
"onUpdate:modelValue": o[3] ||= (e) =>
|
|
3751
|
-
v: I(
|
|
3752
|
-
label: I(
|
|
3800
|
+
default: R(() => [l(uo, {
|
|
3801
|
+
modelValue: w.value.until,
|
|
3802
|
+
"onUpdate:modelValue": o[3] ||= (e) => w.value.until = e,
|
|
3803
|
+
v: I(E).dialogData.until,
|
|
3804
|
+
label: I(O)("common.filter.timeInterval.until"),
|
|
3753
3805
|
required: ""
|
|
3754
3806
|
}, null, 8, [
|
|
3755
3807
|
"modelValue",
|
|
@@ -3765,16 +3817,16 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3765
3817
|
l(ye),
|
|
3766
3818
|
l(s, {
|
|
3767
3819
|
"data-cy": "button-cancel",
|
|
3768
|
-
onClick: z(
|
|
3820
|
+
onClick: z(re, ["stop"])
|
|
3769
3821
|
}, {
|
|
3770
|
-
default: R(() => [c(F(I(
|
|
3822
|
+
default: R(() => [c(F(I(O)("common.button.cancel")), 1)]),
|
|
3771
3823
|
_: 1
|
|
3772
3824
|
}),
|
|
3773
3825
|
l(u, {
|
|
3774
3826
|
"data-cy": "button-confirm",
|
|
3775
|
-
onClick: z(
|
|
3827
|
+
onClick: z(ne, ["stop"])
|
|
3776
3828
|
}, {
|
|
3777
|
-
default: R(() => [c(F(I(
|
|
3829
|
+
default: R(() => [c(F(I(O)("common.button.confirm")), 1)]),
|
|
3778
3830
|
_: 1
|
|
3779
3831
|
})
|
|
3780
3832
|
]),
|
|
@@ -3787,14 +3839,14 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3787
3839
|
})) : i("", !0)], 64);
|
|
3788
3840
|
};
|
|
3789
3841
|
}
|
|
3790
|
-
}), [["__scopeId", "data-v-
|
|
3842
|
+
}), [["__scopeId", "data-v-036a9f8f"]]), cs = (e, t = "item") => t + "." + e, ls = /* @__PURE__ */ u({
|
|
3791
3843
|
__name: "AFilterEmpty",
|
|
3792
3844
|
props: { name: {} },
|
|
3793
3845
|
setup(e) {
|
|
3794
3846
|
let t = e;
|
|
3795
3847
|
return (e, n) => (k(), a("div", null, F(t.name), 1));
|
|
3796
3848
|
}
|
|
3797
|
-
}),
|
|
3849
|
+
}), us = /* @__PURE__ */ u({
|
|
3798
3850
|
__name: "AFilterDatetimePicker",
|
|
3799
3851
|
props: {
|
|
3800
3852
|
name: {},
|
|
@@ -3811,15 +3863,15 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3811
3863
|
set(e) {
|
|
3812
3864
|
l[i.name] = e, _(), c.touched = !0, a("change");
|
|
3813
3865
|
}
|
|
3814
|
-
}), { t: d } = he(), f = n(() => c.fields[i.name]), p = n(() => f.value.titleT ? d(f.value.titleT) : void 0), { clearOne: m } =
|
|
3815
|
-
m(i.name, l, c), s.value.delete(i.name);
|
|
3866
|
+
}), { t: d } = he(), f = n(() => c.fields[i.name]), p = n(() => f.value.titleT ? d(f.value.titleT) : void 0), { clearOne: m } = zo(), g = () => {
|
|
3867
|
+
m(i.name, l, c), s.value.delete(i.name), c.touched = !0, a("change");
|
|
3816
3868
|
}, _ = () => {
|
|
3817
|
-
|
|
3818
|
-
title:
|
|
3869
|
+
Mt(u.value) && u.value.length !== 0 && s.value.set(i.name, [{
|
|
3870
|
+
title: qi(u.value),
|
|
3819
3871
|
value: u.value
|
|
3820
3872
|
}]);
|
|
3821
3873
|
};
|
|
3822
|
-
return (t, n) => (k(), r(
|
|
3874
|
+
return (t, n) => (k(), r(lo, b({
|
|
3823
3875
|
modelValue: u.value,
|
|
3824
3876
|
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
3825
3877
|
"data-cy": e.dataCy,
|
|
@@ -3834,7 +3886,7 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3834
3886
|
"label"
|
|
3835
3887
|
]));
|
|
3836
3888
|
}
|
|
3837
|
-
}),
|
|
3889
|
+
}), ds = /* @__PURE__ */ u({
|
|
3838
3890
|
__name: "AFilterInteger",
|
|
3839
3891
|
props: {
|
|
3840
3892
|
name: {},
|
|
@@ -3852,7 +3904,7 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3852
3904
|
set(e) {
|
|
3853
3905
|
l[i.name] = e, c.touched = !0, a("change");
|
|
3854
3906
|
}
|
|
3855
|
-
}), d = n(() => c.fields[i.name]), { t: f } = he(), p = n(() => d.value.titleT ? f(d.value.titleT) : void 0), m = n(() => H(i.placeholder) ? d.value.variant === "startsWith" ? f("common.model.filterPlaceholder.startsWith") : d.value.variant === "eq" ? f("common.model.filterPlaceholder.eq") : d.value.variant === "search" ? f("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: g } =
|
|
3907
|
+
}), d = n(() => c.fields[i.name]), { t: f } = he(), p = n(() => d.value.titleT ? f(d.value.titleT) : void 0), m = n(() => H(i.placeholder) ? d.value.variant === "startsWith" ? f("common.model.filterPlaceholder.startsWith") : d.value.variant === "eq" ? f("common.model.filterPlaceholder.eq") : d.value.variant === "search" ? f("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: g } = zo(), _ = () => {
|
|
3856
3908
|
g(i.name, l, c), s.value.delete(i.name);
|
|
3857
3909
|
}, v = () => {
|
|
3858
3910
|
if (jt(u.value)) {
|
|
@@ -3862,16 +3914,14 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3862
3914
|
}]);
|
|
3863
3915
|
return;
|
|
3864
3916
|
}
|
|
3865
|
-
if (Mt(u.value)) {
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
return;
|
|
3869
|
-
}
|
|
3870
|
-
s.value.set(i.name, [{
|
|
3871
|
-
title: u.value,
|
|
3872
|
-
value: u.value
|
|
3873
|
-
}]);
|
|
3917
|
+
if (!Mt(u.value) || u.value.length === 0) {
|
|
3918
|
+
s.value.delete(i.name);
|
|
3919
|
+
return;
|
|
3874
3920
|
}
|
|
3921
|
+
s.value.set(i.name, [{
|
|
3922
|
+
title: u.value,
|
|
3923
|
+
value: u.value
|
|
3924
|
+
}]);
|
|
3875
3925
|
};
|
|
3876
3926
|
return L(() => l[i.name], (e, t) => {
|
|
3877
3927
|
e === t || Pt(e) || v();
|
|
@@ -3894,20 +3944,20 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3894
3944
|
"data-cy"
|
|
3895
3945
|
]));
|
|
3896
3946
|
}
|
|
3897
|
-
}),
|
|
3947
|
+
}), fs = /* @__PURE__ */ u({
|
|
3898
3948
|
__name: "FilterDetailItem",
|
|
3899
3949
|
props: { name: {} },
|
|
3900
3950
|
setup(e) {
|
|
3901
3951
|
let t = e, i = h(yo);
|
|
3902
3952
|
if (H(i) || H(i.fields[t.name])) throw Error("Incorrect provide/inject config.");
|
|
3903
3953
|
let a = n(() => i.fields[t.name]), o = n(() => {
|
|
3904
|
-
if (a.value.render.skip) return
|
|
3954
|
+
if (a.value.render.skip) return ls;
|
|
3905
3955
|
switch (a.value.type) {
|
|
3906
|
-
case "string": return
|
|
3907
|
-
case "datetime": return
|
|
3908
|
-
case "boolean": return
|
|
3909
|
-
case "integer": return
|
|
3910
|
-
default: return
|
|
3956
|
+
case "string": return es;
|
|
3957
|
+
case "datetime": return us;
|
|
3958
|
+
case "boolean": return $o;
|
|
3959
|
+
case "integer": return ds;
|
|
3960
|
+
default: return ls;
|
|
3911
3961
|
}
|
|
3912
3962
|
});
|
|
3913
3963
|
return (t, n) => (k(), r(P(o.value), { name: e.name }, null, 8, ["name"]));
|
|
@@ -3915,7 +3965,7 @@ var Mo = /* @__PURE__ */ u({
|
|
|
3915
3965
|
});
|
|
3916
3966
|
//#endregion
|
|
3917
3967
|
//#region src/labs/filters/UserAdminConfigFilter.ts
|
|
3918
|
-
function
|
|
3968
|
+
function ps(e, t = "userAdminConfig") {
|
|
3919
3969
|
let n = [
|
|
3920
3970
|
{
|
|
3921
3971
|
name: "user",
|
|
@@ -3941,7 +3991,7 @@ function Bo(e, t = "userAdminConfig") {
|
|
|
3941
3991
|
name: "defaultConfig",
|
|
3942
3992
|
default: null
|
|
3943
3993
|
}
|
|
3944
|
-
], { filterConfig: r, filterData: i } =
|
|
3994
|
+
], { filterConfig: r, filterData: i } = Lo(n, Io(n), {
|
|
3945
3995
|
system: e,
|
|
3946
3996
|
subject: t
|
|
3947
3997
|
});
|
|
@@ -3952,13 +4002,13 @@ function Bo(e, t = "userAdminConfig") {
|
|
|
3952
4002
|
}
|
|
3953
4003
|
//#endregion
|
|
3954
4004
|
//#region src/types/UserAdminConfig.ts
|
|
3955
|
-
var
|
|
4005
|
+
var ms = {
|
|
3956
4006
|
PinnedWidgets: "pinnedWidgets",
|
|
3957
4007
|
FilterBookmark: "filterBookmark"
|
|
3958
|
-
},
|
|
4008
|
+
}, hs = ms.PinnedWidgets, gs = {
|
|
3959
4009
|
Desktop: "desktop",
|
|
3960
4010
|
Mobile: "mobile"
|
|
3961
|
-
},
|
|
4011
|
+
}, _s = gs.Desktop, vs = 3, ys = mt("filterBookmarkStore", () => {
|
|
3962
4012
|
let e = M(/* @__PURE__ */ new Map()), t = M(!1);
|
|
3963
4013
|
function n(e, t) {
|
|
3964
4014
|
return `userAdminConfig/${t}/${e}/`;
|
|
@@ -3976,8 +4026,8 @@ var Vo = {
|
|
|
3976
4026
|
let t = e.value.get(s);
|
|
3977
4027
|
if (t) return t.lastUsed = c, t.items;
|
|
3978
4028
|
}
|
|
3979
|
-
let { pagination: l } =
|
|
3980
|
-
p.configType =
|
|
4029
|
+
let { pagination: l } = Zo("position", vr.Asc, { rowsPerPage: 8 }), { start: u, end: d } = Gt(i.systemResource, "_"), { filterConfig: f, filterData: p } = ps(u, d);
|
|
4030
|
+
p.configType = ms.FilterBookmark, p.layoutType = i.layoutType, p.systemResource = i.systemResource, p.user = i.user;
|
|
3981
4031
|
let m = [];
|
|
3982
4032
|
try {
|
|
3983
4033
|
let { executeFetch: t } = a();
|
|
@@ -3988,12 +4038,12 @@ var Vo = {
|
|
|
3988
4038
|
} catch {
|
|
3989
4039
|
t.value = !0;
|
|
3990
4040
|
}
|
|
3991
|
-
return e.value.size >
|
|
4041
|
+
return e.value.size > vs && r(), m;
|
|
3992
4042
|
}
|
|
3993
4043
|
async function a(e, n) {
|
|
3994
4044
|
t.value = !1;
|
|
3995
|
-
let { pagination: r } =
|
|
3996
|
-
s.configType =
|
|
4045
|
+
let { pagination: r } = Zo("position", vr.Asc, { rowsPerPage: 9 }), { start: i, end: a } = Gt(e.systemResource, "_"), { filterConfig: o, filterData: s } = ps(i, a);
|
|
4046
|
+
s.configType = ms.FilterBookmark, s.layoutType = e.layoutType, s.systemResource = e.systemResource, s.user = e.user;
|
|
3997
4047
|
let c = Infinity;
|
|
3998
4048
|
try {
|
|
3999
4049
|
let { executeFetch: e } = n();
|
|
@@ -4014,7 +4064,7 @@ var Vo = {
|
|
|
4014
4064
|
addOne: o,
|
|
4015
4065
|
fetchBookmarksCount: a
|
|
4016
4066
|
};
|
|
4017
|
-
}),
|
|
4067
|
+
}), bs = (e) => {
|
|
4018
4068
|
let { client: t, method: n, system: r, entity: i, urlTemplate: a, urlParams: o, options: s = {}, silentConsoleError: c = !1 } = e, l = /* @__PURE__ */ new Set();
|
|
4019
4069
|
return {
|
|
4020
4070
|
executeRequest: async (e = {}) => {
|
|
@@ -4024,13 +4074,13 @@ var Vo = {
|
|
|
4024
4074
|
try {
|
|
4025
4075
|
let e = { method: n }, r = U(f) ? f : o, i = U(d) ? d : a;
|
|
4026
4076
|
if (H(i)) throw Error("Url template is undefined");
|
|
4027
|
-
e.url = i, i !== "" && !H(r) && (e.url =
|
|
4077
|
+
e.url = i, i !== "" && !H(r) && (e.url = la(i, r)), W(p) || (e.data = JSON.stringify(p));
|
|
4028
4078
|
let c = await t().request({
|
|
4029
4079
|
...s,
|
|
4030
4080
|
...e,
|
|
4031
4081
|
signal: u.signal
|
|
4032
4082
|
});
|
|
4033
|
-
if (!
|
|
4083
|
+
if (!ua(c.status)) throw new li(c.status);
|
|
4034
4084
|
if (c.data) return c.data;
|
|
4035
4085
|
if (c.status === 204 || c.status === 202) return;
|
|
4036
4086
|
throw new Ur();
|
|
@@ -4045,17 +4095,17 @@ var Vo = {
|
|
|
4045
4095
|
l.forEach((e) => e.abort()), l.clear();
|
|
4046
4096
|
}
|
|
4047
4097
|
};
|
|
4048
|
-
},
|
|
4049
|
-
function
|
|
4098
|
+
}, xs = "/adm/v1/user-admin-config", Ss = "userAdminConfig";
|
|
4099
|
+
function Cs(e, t, n = Ss, r = xs) {
|
|
4050
4100
|
return {
|
|
4051
|
-
useFetchUserAdminConfigList: () =>
|
|
4101
|
+
useFetchUserAdminConfigList: () => Yo({
|
|
4052
4102
|
client: e,
|
|
4053
4103
|
system: t,
|
|
4054
4104
|
entity: n,
|
|
4055
|
-
urlTemplate:
|
|
4105
|
+
urlTemplate: xs
|
|
4056
4106
|
}),
|
|
4057
4107
|
fetchUserAdminConfig: (i) => {
|
|
4058
|
-
let { executeRequest: a } =
|
|
4108
|
+
let { executeRequest: a } = bs({
|
|
4059
4109
|
client: e,
|
|
4060
4110
|
method: "GET",
|
|
4061
4111
|
system: t,
|
|
@@ -4067,7 +4117,7 @@ function Xo(e, t, n = Yo, r = Jo) {
|
|
|
4067
4117
|
});
|
|
4068
4118
|
},
|
|
4069
4119
|
createUserAdminConfig: (i) => {
|
|
4070
|
-
let { executeRequest: a } =
|
|
4120
|
+
let { executeRequest: a } = bs({
|
|
4071
4121
|
client: e,
|
|
4072
4122
|
method: "POST",
|
|
4073
4123
|
system: t,
|
|
@@ -4079,7 +4129,7 @@ function Xo(e, t, n = Yo, r = Jo) {
|
|
|
4079
4129
|
});
|
|
4080
4130
|
},
|
|
4081
4131
|
updateUserAdminConfig: (i, a) => {
|
|
4082
|
-
let { executeRequest: o } =
|
|
4132
|
+
let { executeRequest: o } = bs({
|
|
4083
4133
|
client: e,
|
|
4084
4134
|
method: "PUT",
|
|
4085
4135
|
system: t,
|
|
@@ -4092,7 +4142,7 @@ function Xo(e, t, n = Yo, r = Jo) {
|
|
|
4092
4142
|
});
|
|
4093
4143
|
},
|
|
4094
4144
|
deleteUserAdminConfig: (i) => {
|
|
4095
|
-
let { executeRequest: a } =
|
|
4145
|
+
let { executeRequest: a } = bs({
|
|
4096
4146
|
client: e,
|
|
4097
4147
|
method: "DELETE",
|
|
4098
4148
|
system: t,
|
|
@@ -4104,7 +4154,7 @@ function Xo(e, t, n = Yo, r = Jo) {
|
|
|
4104
4154
|
});
|
|
4105
4155
|
},
|
|
4106
4156
|
updateUserAdminConfigPositions: (i) => {
|
|
4107
|
-
let { executeRequest: a } =
|
|
4157
|
+
let { executeRequest: a } = bs({
|
|
4108
4158
|
client: e,
|
|
4109
4159
|
method: "PATCH",
|
|
4110
4160
|
system: t,
|
|
@@ -4119,7 +4169,7 @@ function Xo(e, t, n = Yo, r = Jo) {
|
|
|
4119
4169
|
}
|
|
4120
4170
|
//#endregion
|
|
4121
4171
|
//#region src/labs/filters/FilterBookmarks.vue?vue&type=script&setup=true&lang.ts
|
|
4122
|
-
var
|
|
4172
|
+
var ws = { key: 0 }, Ts = 32, Es = /* @__PURE__ */ u({
|
|
4123
4173
|
__name: "FilterBookmarks",
|
|
4124
4174
|
props: /*@__PURE__*/ y({
|
|
4125
4175
|
client: {},
|
|
@@ -4137,13 +4187,13 @@ var Zo = { key: 0 }, Qo = 32, $o = /* @__PURE__ */ u({
|
|
|
4137
4187
|
setup(t, { emit: o }) {
|
|
4138
4188
|
let s = t, u = o, d = se(t, "datatableHiddenColumns"), f = h(yo), p = h(vo), m = h(wo), g = h(Co);
|
|
4139
4189
|
if (H(m) || H(f) || H(p) || H(g)) throw Error("Incorrect provide/inject config.");
|
|
4140
|
-
let _ = M(!1), v = le("toolbar"), y = M(300), S = M(1e3), C =
|
|
4190
|
+
let _ = M(!1), v = le("toolbar"), y = M(300), S = M(1e3), C = ys(), { useFetchUserAdminConfigList: w } = Cs(s.client, s.system), T = s.system + "_" + s.subject, D = async (e = !1) => {
|
|
4141
4191
|
_.value = !0, await C.getBookmarks({
|
|
4142
4192
|
user: s.userId,
|
|
4143
|
-
layoutType:
|
|
4193
|
+
layoutType: gs.Desktop,
|
|
4144
4194
|
systemResource: T
|
|
4145
4195
|
}, w, e), _.value = !1;
|
|
4146
|
-
}, { deserializeFilters: O } =
|
|
4196
|
+
}, { deserializeFilters: O } = Vo(p, f), A = (e) => {
|
|
4147
4197
|
let t = e.data;
|
|
4148
4198
|
U(t.datatableHiddenColumns) && U(d.value) && (d.value = t.datatableHiddenColumns), U(t.sortBy) && (m.value = {
|
|
4149
4199
|
...m.value,
|
|
@@ -4179,7 +4229,7 @@ var Zo = { key: 0 }, Qo = 32, $o = /* @__PURE__ */ u({
|
|
|
4179
4229
|
let n = 0, r = 0;
|
|
4180
4230
|
for (let i = 0; i < t.children.length; i++) {
|
|
4181
4231
|
let a = t.children[i].offsetWidth;
|
|
4182
|
-
if (n += a, n >= e -
|
|
4232
|
+
if (n += a, n >= e - Ts) break;
|
|
4183
4233
|
r++;
|
|
4184
4234
|
}
|
|
4185
4235
|
S.value = r;
|
|
@@ -4190,7 +4240,7 @@ var Zo = { key: 0 }, Qo = 32, $o = /* @__PURE__ */ u({
|
|
|
4190
4240
|
e !== t && j(e);
|
|
4191
4241
|
}, { throttle: 1e3 });
|
|
4192
4242
|
let N = n(() => {
|
|
4193
|
-
let e = C.generateKey(
|
|
4243
|
+
let e = C.generateKey(gs.Desktop, T);
|
|
4194
4244
|
return C.bookmarks.get(e)?.items ?? [];
|
|
4195
4245
|
}), te = n(() => {
|
|
4196
4246
|
let e = S.value;
|
|
@@ -4209,7 +4259,7 @@ var Zo = { key: 0 }, Qo = 32, $o = /* @__PURE__ */ u({
|
|
|
4209
4259
|
ref: "toolbar",
|
|
4210
4260
|
key: N.value.length,
|
|
4211
4261
|
class: "w-100 d-flex overflow-hidden align-center mb-1"
|
|
4212
|
-
}, [_.value ? (k(), a("div",
|
|
4262
|
+
}, [_.value ? (k(), a("div", ws)) : (k(), a(e, { key: 1 }, [(k(!0), a(e, null, ee(te.value.visible, (e) => (k(), a("div", {
|
|
4213
4263
|
key: e.id,
|
|
4214
4264
|
class: "white-space-nowrap"
|
|
4215
4265
|
}, [l(V, {
|
|
@@ -4250,24 +4300,24 @@ var Zo = { key: 0 }, Qo = 32, $o = /* @__PURE__ */ u({
|
|
|
4250
4300
|
});
|
|
4251
4301
|
//#endregion
|
|
4252
4302
|
//#region node_modules/sortablejs/modular/sortable.esm.js
|
|
4253
|
-
function
|
|
4254
|
-
return (t =
|
|
4303
|
+
function Ds(e, t, n) {
|
|
4304
|
+
return (t = Ps(t)) in e ? Object.defineProperty(e, t, {
|
|
4255
4305
|
value: n,
|
|
4256
4306
|
enumerable: !0,
|
|
4257
4307
|
configurable: !0,
|
|
4258
4308
|
writable: !0
|
|
4259
4309
|
}) : e[t] = n, e;
|
|
4260
4310
|
}
|
|
4261
|
-
function
|
|
4262
|
-
return
|
|
4311
|
+
function Os() {
|
|
4312
|
+
return Os = Object.assign ? Object.assign.bind() : function(e) {
|
|
4263
4313
|
for (var t = 1; t < arguments.length; t++) {
|
|
4264
4314
|
var n = arguments[t];
|
|
4265
4315
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4266
4316
|
}
|
|
4267
4317
|
return e;
|
|
4268
|
-
},
|
|
4318
|
+
}, Os.apply(null, arguments);
|
|
4269
4319
|
}
|
|
4270
|
-
function
|
|
4320
|
+
function ks(e, t) {
|
|
4271
4321
|
var n = Object.keys(e);
|
|
4272
4322
|
if (Object.getOwnPropertySymbols) {
|
|
4273
4323
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -4277,27 +4327,27 @@ function ns(e, t) {
|
|
|
4277
4327
|
}
|
|
4278
4328
|
return n;
|
|
4279
4329
|
}
|
|
4280
|
-
function
|
|
4330
|
+
function As(e) {
|
|
4281
4331
|
for (var t = 1; t < arguments.length; t++) {
|
|
4282
4332
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
4283
|
-
t % 2 ?
|
|
4284
|
-
|
|
4285
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
4333
|
+
t % 2 ? ks(Object(n), !0).forEach(function(t) {
|
|
4334
|
+
Ds(e, t, n[t]);
|
|
4335
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ks(Object(n)).forEach(function(t) {
|
|
4286
4336
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
4287
4337
|
});
|
|
4288
4338
|
}
|
|
4289
4339
|
return e;
|
|
4290
4340
|
}
|
|
4291
|
-
function
|
|
4341
|
+
function js(e, t) {
|
|
4292
4342
|
if (e == null) return {};
|
|
4293
|
-
var n, r, i =
|
|
4343
|
+
var n, r, i = Ms(e, t);
|
|
4294
4344
|
if (Object.getOwnPropertySymbols) {
|
|
4295
4345
|
var a = Object.getOwnPropertySymbols(e);
|
|
4296
4346
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
4297
4347
|
}
|
|
4298
4348
|
return i;
|
|
4299
4349
|
}
|
|
4300
|
-
function
|
|
4350
|
+
function Ms(e, t) {
|
|
4301
4351
|
if (e == null) return {};
|
|
4302
4352
|
var n = {};
|
|
4303
4353
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -4306,7 +4356,7 @@ function as(e, t) {
|
|
|
4306
4356
|
}
|
|
4307
4357
|
return n;
|
|
4308
4358
|
}
|
|
4309
|
-
function
|
|
4359
|
+
function Ns(e, t) {
|
|
4310
4360
|
if (typeof e != "object" || !e) return e;
|
|
4311
4361
|
var n = e[Symbol.toPrimitive];
|
|
4312
4362
|
if (n !== void 0) {
|
|
@@ -4316,33 +4366,33 @@ function os(e, t) {
|
|
|
4316
4366
|
}
|
|
4317
4367
|
return (t === "string" ? String : Number)(e);
|
|
4318
4368
|
}
|
|
4319
|
-
function
|
|
4320
|
-
var t =
|
|
4369
|
+
function Ps(e) {
|
|
4370
|
+
var t = Ns(e, "string");
|
|
4321
4371
|
return typeof t == "symbol" ? t : t + "";
|
|
4322
4372
|
}
|
|
4323
|
-
function
|
|
4373
|
+
function Fs(e) {
|
|
4324
4374
|
"@babel/helpers - typeof";
|
|
4325
|
-
return
|
|
4375
|
+
return Fs = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4326
4376
|
return typeof e;
|
|
4327
4377
|
} : function(e) {
|
|
4328
4378
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4329
|
-
},
|
|
4379
|
+
}, Fs(e);
|
|
4330
4380
|
}
|
|
4331
|
-
var
|
|
4332
|
-
function
|
|
4381
|
+
var Is = "1.15.7";
|
|
4382
|
+
function Ls(e) {
|
|
4333
4383
|
if (typeof window < "u" && window.navigator) return !!/*@__PURE__*/ navigator.userAgent.match(e);
|
|
4334
4384
|
}
|
|
4335
|
-
var
|
|
4385
|
+
var Rs = Ls(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), zs = Ls(/Edge/i), Bs = Ls(/firefox/i), Vs = Ls(/safari/i) && !Ls(/chrome/i) && !Ls(/android/i), Hs = Ls(/iP(ad|od|hone)/i), Us = Ls(/chrome/i) && Ls(/android/i), Ws = {
|
|
4336
4386
|
capture: !1,
|
|
4337
4387
|
passive: !1
|
|
4338
4388
|
};
|
|
4339
4389
|
function J(e, t, n) {
|
|
4340
|
-
e.addEventListener(t, n, !
|
|
4390
|
+
e.addEventListener(t, n, !Rs && Ws);
|
|
4341
4391
|
}
|
|
4342
4392
|
function Y(e, t, n) {
|
|
4343
|
-
e.removeEventListener(t, n, !
|
|
4393
|
+
e.removeEventListener(t, n, !Rs && Ws);
|
|
4344
4394
|
}
|
|
4345
|
-
function
|
|
4395
|
+
function Gs(e, t) {
|
|
4346
4396
|
if (t) {
|
|
4347
4397
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
4348
4398
|
if (e.matches) return e.matches(t);
|
|
@@ -4354,22 +4404,22 @@ function vs(e, t) {
|
|
|
4354
4404
|
return !1;
|
|
4355
4405
|
}
|
|
4356
4406
|
}
|
|
4357
|
-
function
|
|
4407
|
+
function Ks(e) {
|
|
4358
4408
|
return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
|
|
4359
4409
|
}
|
|
4360
|
-
function
|
|
4410
|
+
function qs(e, t, n, r) {
|
|
4361
4411
|
if (e) {
|
|
4362
4412
|
n ||= document;
|
|
4363
4413
|
do {
|
|
4364
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
4414
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Gs(e, t) : Gs(e, t)) || r && e === n) return e;
|
|
4365
4415
|
if (e === n) break;
|
|
4366
|
-
} while (e =
|
|
4416
|
+
} while (e = Ks(e));
|
|
4367
4417
|
}
|
|
4368
4418
|
return null;
|
|
4369
4419
|
}
|
|
4370
|
-
var
|
|
4371
|
-
function
|
|
4372
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
4420
|
+
var Js = /\s+/g;
|
|
4421
|
+
function Ys(e, t, n) {
|
|
4422
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Js, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Js, " "));
|
|
4373
4423
|
}
|
|
4374
4424
|
function X(e, t, n) {
|
|
4375
4425
|
var r = e && e.style;
|
|
@@ -4378,7 +4428,7 @@ function X(e, t, n) {
|
|
|
4378
4428
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
4379
4429
|
}
|
|
4380
4430
|
}
|
|
4381
|
-
function
|
|
4431
|
+
function Xs(e, t) {
|
|
4382
4432
|
var n = "";
|
|
4383
4433
|
if (typeof e == "string") n = e;
|
|
4384
4434
|
else do {
|
|
@@ -4388,7 +4438,7 @@ function Cs(e, t) {
|
|
|
4388
4438
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
4389
4439
|
return i && new i(n);
|
|
4390
4440
|
}
|
|
4391
|
-
function
|
|
4441
|
+
function Zs(e, t, n) {
|
|
4392
4442
|
if (e) {
|
|
4393
4443
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
4394
4444
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -4396,13 +4446,13 @@ function ws(e, t, n) {
|
|
|
4396
4446
|
}
|
|
4397
4447
|
return [];
|
|
4398
4448
|
}
|
|
4399
|
-
function
|
|
4449
|
+
function Qs() {
|
|
4400
4450
|
return document.scrollingElement || document.documentElement;
|
|
4401
4451
|
}
|
|
4402
|
-
function
|
|
4452
|
+
function $s(e, t, n, r, i) {
|
|
4403
4453
|
if (e.getBoundingClientRect || e === window) {
|
|
4404
4454
|
var a, o, s, c, l, u, d;
|
|
4405
|
-
if (e !== window && e.parentNode && e !==
|
|
4455
|
+
if (e !== window && e.parentNode && e !== Qs() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !Rs)) do
|
|
4406
4456
|
if (i && i.getBoundingClientRect && (X(i, "transform") !== "none" || n && X(i, "position") !== "static")) {
|
|
4407
4457
|
var f = i.getBoundingClientRect();
|
|
4408
4458
|
o -= f.top + parseInt(X(i, "border-top-width")), s -= f.left + parseInt(X(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
@@ -4410,7 +4460,7 @@ function Es(e, t, n, r, i) {
|
|
|
4410
4460
|
}
|
|
4411
4461
|
while (i = i.parentNode);
|
|
4412
4462
|
if (r && e !== window) {
|
|
4413
|
-
var p =
|
|
4463
|
+
var p = Xs(i || e), m = p && p.a, h = p && p.d;
|
|
4414
4464
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
4415
4465
|
}
|
|
4416
4466
|
return {
|
|
@@ -4423,18 +4473,18 @@ function Es(e, t, n, r, i) {
|
|
|
4423
4473
|
};
|
|
4424
4474
|
}
|
|
4425
4475
|
}
|
|
4426
|
-
function
|
|
4427
|
-
for (var r =
|
|
4428
|
-
var a =
|
|
4476
|
+
function ec(e, t, n) {
|
|
4477
|
+
for (var r = oc(e, !0), i = $s(e)[t]; r;) {
|
|
4478
|
+
var a = $s(r)[n], o = void 0;
|
|
4429
4479
|
if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
|
|
4430
|
-
if (r ===
|
|
4431
|
-
r =
|
|
4480
|
+
if (r === Qs()) break;
|
|
4481
|
+
r = oc(r, !1);
|
|
4432
4482
|
}
|
|
4433
4483
|
return !1;
|
|
4434
4484
|
}
|
|
4435
|
-
function
|
|
4485
|
+
function tc(e, t, n, r) {
|
|
4436
4486
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
4437
|
-
if (o[a].style.display !== "none" && o[a] !== $.ghost && (r || o[a] !== $.dragged) &&
|
|
4487
|
+
if (o[a].style.display !== "none" && o[a] !== $.ghost && (r || o[a] !== $.dragged) && qs(o[a], n.draggable, e, !1)) {
|
|
4438
4488
|
if (i === t) return o[a];
|
|
4439
4489
|
i++;
|
|
4440
4490
|
}
|
|
@@ -4442,84 +4492,84 @@ function Os(e, t, n, r) {
|
|
|
4442
4492
|
}
|
|
4443
4493
|
return null;
|
|
4444
4494
|
}
|
|
4445
|
-
function
|
|
4446
|
-
for (var n = e.lastElementChild; n && (n === $.ghost || X(n, "display") === "none" || t && !
|
|
4495
|
+
function nc(e, t) {
|
|
4496
|
+
for (var n = e.lastElementChild; n && (n === $.ghost || X(n, "display") === "none" || t && !Gs(n, t));) n = n.previousElementSibling;
|
|
4447
4497
|
return n || null;
|
|
4448
4498
|
}
|
|
4449
|
-
function
|
|
4499
|
+
function rc(e, t) {
|
|
4450
4500
|
var n = 0;
|
|
4451
4501
|
if (!e || !e.parentNode) return -1;
|
|
4452
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== $.clone && (!t ||
|
|
4502
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== $.clone && (!t || Gs(e, t)) && n++;
|
|
4453
4503
|
return n;
|
|
4454
4504
|
}
|
|
4455
|
-
function
|
|
4456
|
-
var t = 0, n = 0, r =
|
|
4505
|
+
function ic(e) {
|
|
4506
|
+
var t = 0, n = 0, r = Qs();
|
|
4457
4507
|
if (e) do {
|
|
4458
|
-
var i =
|
|
4508
|
+
var i = Xs(e), a = i.a, o = i.d;
|
|
4459
4509
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
4460
4510
|
} while (e !== r && (e = e.parentNode));
|
|
4461
4511
|
return [t, n];
|
|
4462
4512
|
}
|
|
4463
|
-
function
|
|
4513
|
+
function ac(e, t) {
|
|
4464
4514
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
4465
4515
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
4466
4516
|
}
|
|
4467
4517
|
return -1;
|
|
4468
4518
|
}
|
|
4469
|
-
function
|
|
4470
|
-
if (!e || !e.getBoundingClientRect) return
|
|
4519
|
+
function oc(e, t) {
|
|
4520
|
+
if (!e || !e.getBoundingClientRect) return Qs();
|
|
4471
4521
|
var n = e, r = !1;
|
|
4472
4522
|
do
|
|
4473
4523
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
4474
4524
|
var i = X(n);
|
|
4475
4525
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
4476
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
4526
|
+
if (!n.getBoundingClientRect || n === document.body) return Qs();
|
|
4477
4527
|
if (r || t) return n;
|
|
4478
4528
|
r = !0;
|
|
4479
4529
|
}
|
|
4480
4530
|
}
|
|
4481
4531
|
while (n = n.parentNode);
|
|
4482
|
-
return
|
|
4532
|
+
return Qs();
|
|
4483
4533
|
}
|
|
4484
|
-
function
|
|
4534
|
+
function sc(e, t) {
|
|
4485
4535
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
4486
4536
|
return e;
|
|
4487
4537
|
}
|
|
4488
|
-
function
|
|
4538
|
+
function cc(e, t) {
|
|
4489
4539
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
4490
4540
|
}
|
|
4491
|
-
var
|
|
4492
|
-
function
|
|
4541
|
+
var lc;
|
|
4542
|
+
function uc(e, t) {
|
|
4493
4543
|
return function() {
|
|
4494
|
-
if (!
|
|
4544
|
+
if (!lc) {
|
|
4495
4545
|
var n = arguments, r = this;
|
|
4496
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
4497
|
-
|
|
4546
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), lc = setTimeout(function() {
|
|
4547
|
+
lc = void 0;
|
|
4498
4548
|
}, t);
|
|
4499
4549
|
}
|
|
4500
4550
|
};
|
|
4501
4551
|
}
|
|
4502
|
-
function
|
|
4503
|
-
clearTimeout(
|
|
4552
|
+
function dc() {
|
|
4553
|
+
clearTimeout(lc), lc = void 0;
|
|
4504
4554
|
}
|
|
4505
|
-
function
|
|
4555
|
+
function fc(e, t, n) {
|
|
4506
4556
|
e.scrollLeft += t, e.scrollTop += n;
|
|
4507
4557
|
}
|
|
4508
|
-
function
|
|
4558
|
+
function pc(e) {
|
|
4509
4559
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
4510
4560
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
4511
4561
|
}
|
|
4512
|
-
function
|
|
4562
|
+
function mc(e, t, n) {
|
|
4513
4563
|
var r = {};
|
|
4514
4564
|
return Array.from(e.children).forEach(function(i) {
|
|
4515
|
-
if (
|
|
4516
|
-
var a =
|
|
4565
|
+
if (qs(i, t.draggable, e, !1) && !i.animated && i !== n) {
|
|
4566
|
+
var a = $s(i);
|
|
4517
4567
|
r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
|
|
4518
4568
|
}
|
|
4519
4569
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
4520
4570
|
}
|
|
4521
|
-
var
|
|
4522
|
-
function
|
|
4571
|
+
var hc = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
4572
|
+
function gc() {
|
|
4523
4573
|
var e = [], t;
|
|
4524
4574
|
return {
|
|
4525
4575
|
captureAnimationState: function() {
|
|
@@ -4527,11 +4577,11 @@ function Us() {
|
|
|
4527
4577
|
if (X(t, "display") !== "none" && t !== $.ghost) {
|
|
4528
4578
|
e.push({
|
|
4529
4579
|
target: t,
|
|
4530
|
-
rect:
|
|
4580
|
+
rect: $s(t)
|
|
4531
4581
|
});
|
|
4532
|
-
var n =
|
|
4582
|
+
var n = As({}, e[e.length - 1].rect);
|
|
4533
4583
|
if (t.thisAnimationDuration) {
|
|
4534
|
-
var r =
|
|
4584
|
+
var r = Xs(t, !0);
|
|
4535
4585
|
r && (n.top -= r.f, n.left -= r.e);
|
|
4536
4586
|
}
|
|
4537
4587
|
t.fromRect = n;
|
|
@@ -4542,7 +4592,7 @@ function Us() {
|
|
|
4542
4592
|
e.push(t);
|
|
4543
4593
|
},
|
|
4544
4594
|
removeAnimationState: function(t) {
|
|
4545
|
-
e.splice(
|
|
4595
|
+
e.splice(ac(e, { target: t }), 1);
|
|
4546
4596
|
},
|
|
4547
4597
|
animateAll: function(n) {
|
|
4548
4598
|
var r = this;
|
|
@@ -4552,8 +4602,8 @@ function Us() {
|
|
|
4552
4602
|
}
|
|
4553
4603
|
var i = !1, a = 0;
|
|
4554
4604
|
e.forEach(function(e) {
|
|
4555
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
4556
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
4605
|
+
var t = 0, n = e.target, o = n.fromRect, s = $s(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Xs(n, !0);
|
|
4606
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && cc(c, s) && !cc(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = vc(u, c, l, r.options)), cc(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
|
|
4557
4607
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
4558
4608
|
}, t), n.thisAnimationDuration = t);
|
|
4559
4609
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -4563,26 +4613,26 @@ function Us() {
|
|
|
4563
4613
|
animate: function(e, t, n, r) {
|
|
4564
4614
|
if (r) {
|
|
4565
4615
|
X(e, "transition", ""), X(e, "transform", "");
|
|
4566
|
-
var i =
|
|
4567
|
-
e.animatingX = !!s, e.animatingY = !!c, X(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
4616
|
+
var i = Xs(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
4617
|
+
e.animatingX = !!s, e.animatingY = !!c, X(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = _c(e), X(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), X(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
4568
4618
|
X(e, "transition", ""), X(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
4569
4619
|
}, r);
|
|
4570
4620
|
}
|
|
4571
4621
|
}
|
|
4572
4622
|
};
|
|
4573
4623
|
}
|
|
4574
|
-
function
|
|
4624
|
+
function _c(e) {
|
|
4575
4625
|
return e.offsetWidth;
|
|
4576
4626
|
}
|
|
4577
|
-
function
|
|
4627
|
+
function vc(e, t, n, r) {
|
|
4578
4628
|
return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
|
|
4579
4629
|
}
|
|
4580
|
-
var
|
|
4630
|
+
var yc = [], bc = { initializeByDefault: !0 }, xc = {
|
|
4581
4631
|
mount: function(e) {
|
|
4582
|
-
for (var t in
|
|
4583
|
-
|
|
4632
|
+
for (var t in bc) bc.hasOwnProperty(t) && !(t in e) && (e[t] = bc[t]);
|
|
4633
|
+
yc.forEach(function(t) {
|
|
4584
4634
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
4585
|
-
}),
|
|
4635
|
+
}), yc.push(e);
|
|
4586
4636
|
},
|
|
4587
4637
|
pluginEvent: function(e, t, n) {
|
|
4588
4638
|
var r = this;
|
|
@@ -4590,16 +4640,16 @@ var Ks = [], qs = { initializeByDefault: !0 }, Js = {
|
|
|
4590
4640
|
r.eventCanceled = !0;
|
|
4591
4641
|
};
|
|
4592
4642
|
var i = e + "Global";
|
|
4593
|
-
|
|
4594
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
4643
|
+
yc.forEach(function(r) {
|
|
4644
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](As({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](As({ sortable: t }, n)));
|
|
4595
4645
|
});
|
|
4596
4646
|
},
|
|
4597
4647
|
initializePlugins: function(e, t, n, r) {
|
|
4598
|
-
for (var i in
|
|
4648
|
+
for (var i in yc.forEach(function(r) {
|
|
4599
4649
|
var i = r.pluginName;
|
|
4600
4650
|
if (e.options[i] || r.initializeByDefault) {
|
|
4601
4651
|
var a = new r(e, t, e.options);
|
|
4602
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
4652
|
+
a.sortable = e, a.options = e.options, e[i] = a, Os(n, a.defaults);
|
|
4603
4653
|
}
|
|
4604
4654
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
4605
4655
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -4608,59 +4658,59 @@ var Ks = [], qs = { initializeByDefault: !0 }, Js = {
|
|
|
4608
4658
|
},
|
|
4609
4659
|
getEventProperties: function(e, t) {
|
|
4610
4660
|
var n = {};
|
|
4611
|
-
return
|
|
4612
|
-
typeof r.eventProperties == "function" &&
|
|
4661
|
+
return yc.forEach(function(r) {
|
|
4662
|
+
typeof r.eventProperties == "function" && Os(n, r.eventProperties.call(t[r.pluginName], e));
|
|
4613
4663
|
}), n;
|
|
4614
4664
|
},
|
|
4615
4665
|
modifyOption: function(e, t, n) {
|
|
4616
4666
|
var r;
|
|
4617
|
-
return
|
|
4667
|
+
return yc.forEach(function(i) {
|
|
4618
4668
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
4619
4669
|
}), r;
|
|
4620
4670
|
}
|
|
4621
4671
|
};
|
|
4622
|
-
function
|
|
4672
|
+
function Sc(e) {
|
|
4623
4673
|
var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
|
|
4624
|
-
if (t ||= n && n[
|
|
4674
|
+
if (t ||= n && n[hc], t) {
|
|
4625
4675
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
4626
|
-
window.CustomEvent && !
|
|
4676
|
+
window.CustomEvent && !Rs && !zs ? h = new CustomEvent(r, {
|
|
4627
4677
|
bubbles: !0,
|
|
4628
4678
|
cancelable: !0
|
|
4629
4679
|
}) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
|
|
4630
|
-
var v =
|
|
4680
|
+
var v = As(As({}, m), xc.getEventProperties(r, t));
|
|
4631
4681
|
for (var y in v) h[y] = v[y];
|
|
4632
4682
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
4633
4683
|
}
|
|
4634
4684
|
}
|
|
4635
|
-
var
|
|
4636
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
4637
|
-
|
|
4685
|
+
var Cc = ["evt"], wc = function(e, t) {
|
|
4686
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = js(n, Cc);
|
|
4687
|
+
xc.pluginEvent.bind($)(e, t, As({
|
|
4638
4688
|
dragEl: Z,
|
|
4639
|
-
parentEl:
|
|
4689
|
+
parentEl: Ec,
|
|
4640
4690
|
ghostEl: Q,
|
|
4641
|
-
rootEl:
|
|
4642
|
-
nextEl:
|
|
4643
|
-
lastDownEl:
|
|
4644
|
-
cloneEl:
|
|
4645
|
-
cloneHidden:
|
|
4646
|
-
dragStarted:
|
|
4647
|
-
putSortable:
|
|
4691
|
+
rootEl: Dc,
|
|
4692
|
+
nextEl: Oc,
|
|
4693
|
+
lastDownEl: kc,
|
|
4694
|
+
cloneEl: Ac,
|
|
4695
|
+
cloneHidden: jc,
|
|
4696
|
+
dragStarted: qc,
|
|
4697
|
+
putSortable: Lc,
|
|
4648
4698
|
activeSortable: $.active,
|
|
4649
4699
|
originalEvent: r,
|
|
4650
|
-
oldIndex:
|
|
4651
|
-
oldDraggableIndex:
|
|
4652
|
-
newIndex:
|
|
4653
|
-
newDraggableIndex:
|
|
4654
|
-
hideGhostForTarget:
|
|
4655
|
-
unhideGhostForTarget:
|
|
4700
|
+
oldIndex: Mc,
|
|
4701
|
+
oldDraggableIndex: Pc,
|
|
4702
|
+
newIndex: Nc,
|
|
4703
|
+
newDraggableIndex: Fc,
|
|
4704
|
+
hideGhostForTarget: fl,
|
|
4705
|
+
unhideGhostForTarget: pl,
|
|
4656
4706
|
cloneNowHidden: function() {
|
|
4657
|
-
|
|
4707
|
+
jc = !0;
|
|
4658
4708
|
},
|
|
4659
4709
|
cloneNowShown: function() {
|
|
4660
|
-
|
|
4710
|
+
jc = !1;
|
|
4661
4711
|
},
|
|
4662
4712
|
dispatchSortableEvent: function(e) {
|
|
4663
|
-
|
|
4713
|
+
Tc({
|
|
4664
4714
|
sortable: t,
|
|
4665
4715
|
name: e,
|
|
4666
4716
|
originalEvent: r
|
|
@@ -4668,46 +4718,46 @@ var Xs = ["evt"], Zs = function(e, t) {
|
|
|
4668
4718
|
}
|
|
4669
4719
|
}, i));
|
|
4670
4720
|
};
|
|
4671
|
-
function
|
|
4672
|
-
|
|
4673
|
-
putSortable:
|
|
4674
|
-
cloneEl:
|
|
4721
|
+
function Tc(e) {
|
|
4722
|
+
Sc(As({
|
|
4723
|
+
putSortable: Lc,
|
|
4724
|
+
cloneEl: Ac,
|
|
4675
4725
|
targetEl: Z,
|
|
4676
|
-
rootEl:
|
|
4677
|
-
oldIndex:
|
|
4678
|
-
oldDraggableIndex:
|
|
4679
|
-
newIndex:
|
|
4680
|
-
newDraggableIndex:
|
|
4726
|
+
rootEl: Dc,
|
|
4727
|
+
oldIndex: Mc,
|
|
4728
|
+
oldDraggableIndex: Pc,
|
|
4729
|
+
newIndex: Nc,
|
|
4730
|
+
newDraggableIndex: Fc
|
|
4681
4731
|
}, e));
|
|
4682
4732
|
}
|
|
4683
|
-
var Z,
|
|
4684
|
-
if (
|
|
4685
|
-
if (
|
|
4733
|
+
var Z, Ec, Q, Dc, Oc, kc, Ac, jc, Mc, Nc, Pc, Fc, Ic, Lc, Rc = !1, zc = !1, Bc = [], Vc, Hc, Uc, Wc, Gc, Kc, qc, Jc, Yc, Xc = !1, Zc = !1, Qc, $c, el = [], tl = !1, nl = [], rl = typeof document < "u", il = Hs, al = zs || Rs ? "cssFloat" : "float", ol = rl && !Us && !Hs && "draggable" in document.createElement("div"), sl = function() {
|
|
4734
|
+
if (rl) {
|
|
4735
|
+
if (Rs) return !1;
|
|
4686
4736
|
var e = document.createElement("x");
|
|
4687
4737
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
4688
4738
|
}
|
|
4689
|
-
}(),
|
|
4690
|
-
var n = X(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i =
|
|
4739
|
+
}(), cl = function(e, t) {
|
|
4740
|
+
var n = X(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = tc(e, 0, t), a = tc(e, 1, t), o = i && X(i), s = a && X(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + $s(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + $s(a).width;
|
|
4691
4741
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
4692
4742
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
4693
4743
|
if (i && o.float && o.float !== "none") {
|
|
4694
4744
|
var u = o.float === "left" ? "left" : "right";
|
|
4695
4745
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
4696
4746
|
}
|
|
4697
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
4698
|
-
},
|
|
4747
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[al] === "none" || a && n[al] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
4748
|
+
}, ll = function(e, t, n) {
|
|
4699
4749
|
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
|
|
4700
4750
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
4701
|
-
},
|
|
4751
|
+
}, ul = function(e, t) {
|
|
4702
4752
|
var n;
|
|
4703
|
-
return
|
|
4704
|
-
var i = r[
|
|
4705
|
-
if (i && !
|
|
4706
|
-
var a =
|
|
4753
|
+
return Bc.some(function(r) {
|
|
4754
|
+
var i = r[hc].options.emptyInsertThreshold;
|
|
4755
|
+
if (i && !nc(r)) {
|
|
4756
|
+
var a = $s(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
4707
4757
|
if (o && s) return n = r;
|
|
4708
4758
|
}
|
|
4709
4759
|
}), n;
|
|
4710
|
-
},
|
|
4760
|
+
}, dl = function(e) {
|
|
4711
4761
|
function t(e, n) {
|
|
4712
4762
|
return function(r, i, a, o) {
|
|
4713
4763
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -4720,31 +4770,31 @@ var Z, $s, Q, ec, tc, nc, rc, ic, ac, oc, sc, cc, lc, uc, dc = !1, fc = !1, pc =
|
|
|
4720
4770
|
};
|
|
4721
4771
|
}
|
|
4722
4772
|
var n = {}, r = e.group;
|
|
4723
|
-
(!r ||
|
|
4724
|
-
},
|
|
4725
|
-
!
|
|
4726
|
-
},
|
|
4727
|
-
!
|
|
4773
|
+
(!r || Fs(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
4774
|
+
}, fl = function() {
|
|
4775
|
+
!sl && Q && X(Q, "display", "none");
|
|
4776
|
+
}, pl = function() {
|
|
4777
|
+
!sl && Q && X(Q, "display", "");
|
|
4728
4778
|
};
|
|
4729
|
-
|
|
4730
|
-
if (
|
|
4779
|
+
rl && !Us && document.addEventListener("click", function(e) {
|
|
4780
|
+
if (zc) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), zc = !1, !1;
|
|
4731
4781
|
}, !0);
|
|
4732
|
-
var
|
|
4782
|
+
var ml = function(e) {
|
|
4733
4783
|
if (Z) {
|
|
4734
4784
|
e = e.touches ? e.touches[0] : e;
|
|
4735
|
-
var t =
|
|
4785
|
+
var t = ul(e.clientX, e.clientY);
|
|
4736
4786
|
if (t) {
|
|
4737
4787
|
var n = {};
|
|
4738
4788
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
4739
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
4789
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[hc]._onDragOver(n);
|
|
4740
4790
|
}
|
|
4741
4791
|
}
|
|
4742
|
-
},
|
|
4743
|
-
Z && Z.parentNode[
|
|
4792
|
+
}, hl = function(e) {
|
|
4793
|
+
Z && Z.parentNode[hc]._isOutsideThisEl(e.target);
|
|
4744
4794
|
};
|
|
4745
4795
|
function $(e, t) {
|
|
4746
4796
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
4747
|
-
this.el = e, this.options = t =
|
|
4797
|
+
this.el = e, this.options = t = Os({}, t), e[hc] = this;
|
|
4748
4798
|
var n = {
|
|
4749
4799
|
group: null,
|
|
4750
4800
|
sort: !0,
|
|
@@ -4757,7 +4807,7 @@ function $(e, t) {
|
|
|
4757
4807
|
invertedSwapThreshold: null,
|
|
4758
4808
|
removeCloneOnHide: !0,
|
|
4759
4809
|
direction: function() {
|
|
4760
|
-
return
|
|
4810
|
+
return cl(e, this.options);
|
|
4761
4811
|
},
|
|
4762
4812
|
ghostClass: "sortable-ghost",
|
|
4763
4813
|
chosenClass: "sortable-chosen",
|
|
@@ -4784,17 +4834,17 @@ function $(e, t) {
|
|
|
4784
4834
|
x: 0,
|
|
4785
4835
|
y: 0
|
|
4786
4836
|
},
|
|
4787
|
-
supportPointer: $.supportPointer !== !1 && "PointerEvent" in window && (!
|
|
4837
|
+
supportPointer: $.supportPointer !== !1 && "PointerEvent" in window && (!Vs || Hs),
|
|
4788
4838
|
emptyInsertThreshold: 5
|
|
4789
4839
|
};
|
|
4790
|
-
for (var r in
|
|
4791
|
-
for (var i in
|
|
4792
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
4840
|
+
for (var r in xc.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
4841
|
+
for (var i in dl(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
4842
|
+
this.nativeDraggable = !t.forceFallback && ol, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? J(e, "pointerdown", this._onTapStart) : (J(e, "mousedown", this._onTapStart), J(e, "touchstart", this._onTapStart)), this.nativeDraggable && (J(e, "dragover", this), J(e, "dragenter", this)), Bc.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Os(this, gc());
|
|
4793
4843
|
}
|
|
4794
4844
|
$.prototype = {
|
|
4795
4845
|
constructor: $,
|
|
4796
4846
|
_isOutsideThisEl: function(e) {
|
|
4797
|
-
!this.el.contains(e) && e !== this.el && (
|
|
4847
|
+
!this.el.contains(e) && e !== this.el && (Jc = null);
|
|
4798
4848
|
},
|
|
4799
4849
|
_getDirection: function(e, t) {
|
|
4800
4850
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, Z) : this.options.direction;
|
|
@@ -4802,57 +4852,57 @@ $.prototype = {
|
|
|
4802
4852
|
_onTapStart: function(e) {
|
|
4803
4853
|
if (e.cancelable) {
|
|
4804
4854
|
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
|
|
4805
|
-
if (
|
|
4806
|
-
if (
|
|
4855
|
+
if (Tl(n), !Z && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Vs && s && s.tagName.toUpperCase() === "SELECT") && (s = qs(s, r.draggable, n, !1), !(s && s.animated) && kc !== s)) {
|
|
4856
|
+
if (Mc = rc(s), Pc = rc(s, r.draggable), typeof l == "function") {
|
|
4807
4857
|
if (l.call(this, e, s, this)) {
|
|
4808
|
-
|
|
4858
|
+
Tc({
|
|
4809
4859
|
sortable: t,
|
|
4810
4860
|
rootEl: c,
|
|
4811
4861
|
name: "filter",
|
|
4812
4862
|
targetEl: s,
|
|
4813
4863
|
toEl: n,
|
|
4814
4864
|
fromEl: n
|
|
4815
|
-
}),
|
|
4865
|
+
}), wc("filter", t, { evt: e }), i && e.preventDefault();
|
|
4816
4866
|
return;
|
|
4817
4867
|
}
|
|
4818
4868
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
4819
|
-
if (r =
|
|
4869
|
+
if (r = qs(c, r.trim(), n, !1), r) return Tc({
|
|
4820
4870
|
sortable: t,
|
|
4821
4871
|
rootEl: r,
|
|
4822
4872
|
name: "filter",
|
|
4823
4873
|
targetEl: s,
|
|
4824
4874
|
fromEl: n,
|
|
4825
4875
|
toEl: n
|
|
4826
|
-
}),
|
|
4876
|
+
}), wc("filter", t, { evt: e }), !0;
|
|
4827
4877
|
}), l)) {
|
|
4828
4878
|
i && e.preventDefault();
|
|
4829
4879
|
return;
|
|
4830
4880
|
}
|
|
4831
|
-
(!r.handle ||
|
|
4881
|
+
(!r.handle || qs(c, r.handle, n, !1)) && this._prepareDragStart(e, o, s);
|
|
4832
4882
|
}
|
|
4833
4883
|
}
|
|
4834
4884
|
},
|
|
4835
4885
|
_prepareDragStart: function(e, t, n) {
|
|
4836
4886
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
4837
4887
|
if (n && !Z && n.parentNode === i) {
|
|
4838
|
-
var c =
|
|
4839
|
-
if (
|
|
4888
|
+
var c = $s(n);
|
|
4889
|
+
if (Dc = i, Z = n, Ec = Z.parentNode, Oc = Z.nextSibling, kc = n, Ic = a.group, $.dragged = Z, Vc = {
|
|
4840
4890
|
target: Z,
|
|
4841
4891
|
clientX: (t || e).clientX,
|
|
4842
4892
|
clientY: (t || e).clientY
|
|
4843
|
-
},
|
|
4844
|
-
if (
|
|
4893
|
+
}, Gc = Vc.clientX - c.left, Kc = Vc.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, Z.style["will-change"] = "all", s = function() {
|
|
4894
|
+
if (wc("delayEnded", r, { evt: e }), $.eventCanceled) {
|
|
4845
4895
|
r._onDrop();
|
|
4846
4896
|
return;
|
|
4847
4897
|
}
|
|
4848
|
-
r._disableDelayedDragEvents(), !
|
|
4898
|
+
r._disableDelayedDragEvents(), !Bs && r.nativeDraggable && (Z.draggable = !0), r._triggerDragStart(e, t), Tc({
|
|
4849
4899
|
sortable: r,
|
|
4850
4900
|
name: "choose",
|
|
4851
4901
|
originalEvent: e
|
|
4852
|
-
}),
|
|
4902
|
+
}), Ys(Z, a.chosenClass, !0);
|
|
4853
4903
|
}, a.ignore.split(",").forEach(function(e) {
|
|
4854
|
-
|
|
4855
|
-
}), J(o, "dragover",
|
|
4904
|
+
Zs(Z, e.trim(), vl);
|
|
4905
|
+
}), J(o, "dragover", ml), J(o, "mousemove", ml), J(o, "touchmove", ml), a.supportPointer ? (J(o, "pointerup", r._onDrop), !this.nativeDraggable && J(o, "pointercancel", r._onDrop)) : (J(o, "mouseup", r._onDrop), J(o, "touchend", r._onDrop), J(o, "touchcancel", r._onDrop)), Bs && this.nativeDraggable && (this.options.touchStartThreshold = 4, Z.draggable = !0), wc("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(zs || Rs))) {
|
|
4856
4906
|
if ($.eventCanceled) {
|
|
4857
4907
|
this._onDrop();
|
|
4858
4908
|
return;
|
|
@@ -4866,25 +4916,25 @@ $.prototype = {
|
|
|
4866
4916
|
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
4867
4917
|
},
|
|
4868
4918
|
_disableDelayedDrag: function() {
|
|
4869
|
-
Z &&
|
|
4919
|
+
Z && vl(Z), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
4870
4920
|
},
|
|
4871
4921
|
_disableDelayedDragEvents: function() {
|
|
4872
4922
|
var e = this.el.ownerDocument;
|
|
4873
4923
|
Y(e, "mouseup", this._disableDelayedDrag), Y(e, "touchend", this._disableDelayedDrag), Y(e, "touchcancel", this._disableDelayedDrag), Y(e, "pointerup", this._disableDelayedDrag), Y(e, "pointercancel", this._disableDelayedDrag), Y(e, "mousemove", this._delayedDragTouchMoveHandler), Y(e, "touchmove", this._delayedDragTouchMoveHandler), Y(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
4874
4924
|
},
|
|
4875
4925
|
_triggerDragStart: function(e, t) {
|
|
4876
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? J(document, "pointermove", this._onTouchMove) : t ? J(document, "touchmove", this._onTouchMove) : J(document, "mousemove", this._onTouchMove) : (J(Z, "dragend", this), J(
|
|
4926
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? J(document, "pointermove", this._onTouchMove) : t ? J(document, "touchmove", this._onTouchMove) : J(document, "mousemove", this._onTouchMove) : (J(Z, "dragend", this), J(Dc, "dragstart", this._onDragStart));
|
|
4877
4927
|
try {
|
|
4878
|
-
document.selection ?
|
|
4928
|
+
document.selection ? El(function() {
|
|
4879
4929
|
document.selection.empty();
|
|
4880
4930
|
}) : window.getSelection().removeAllRanges();
|
|
4881
4931
|
} catch {}
|
|
4882
4932
|
},
|
|
4883
4933
|
_dragStarted: function(e, t) {
|
|
4884
|
-
if (
|
|
4885
|
-
|
|
4934
|
+
if (Rc = !1, Dc && Z) {
|
|
4935
|
+
wc("dragStarted", this, { evt: t }), this.nativeDraggable && J(document, "dragover", hl);
|
|
4886
4936
|
var n = this.options;
|
|
4887
|
-
!e &&
|
|
4937
|
+
!e && Ys(Z, n.dragClass, !1), Ys(Z, n.ghostClass, !0), $.active = this, e && this._appendGhost(), Tc({
|
|
4888
4938
|
sortable: this,
|
|
4889
4939
|
name: "start",
|
|
4890
4940
|
originalEvent: t
|
|
@@ -4892,33 +4942,33 @@ $.prototype = {
|
|
|
4892
4942
|
} else this._nulling();
|
|
4893
4943
|
},
|
|
4894
4944
|
_emulateDragOver: function() {
|
|
4895
|
-
if (
|
|
4896
|
-
this._lastX =
|
|
4897
|
-
for (var e = document.elementFromPoint(
|
|
4898
|
-
if (Z.parentNode[
|
|
4899
|
-
if (t[
|
|
4945
|
+
if (Hc) {
|
|
4946
|
+
this._lastX = Hc.clientX, this._lastY = Hc.clientY, fl();
|
|
4947
|
+
for (var e = document.elementFromPoint(Hc.clientX, Hc.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Hc.clientX, Hc.clientY), e !== t);) t = e;
|
|
4948
|
+
if (Z.parentNode[hc]._isOutsideThisEl(e), t) do {
|
|
4949
|
+
if (t[hc]) {
|
|
4900
4950
|
var n = void 0;
|
|
4901
|
-
if (n = t[
|
|
4902
|
-
clientX:
|
|
4903
|
-
clientY:
|
|
4951
|
+
if (n = t[hc]._onDragOver({
|
|
4952
|
+
clientX: Hc.clientX,
|
|
4953
|
+
clientY: Hc.clientY,
|
|
4904
4954
|
target: e,
|
|
4905
4955
|
rootEl: t
|
|
4906
4956
|
}), n && !this.options.dragoverBubble) break;
|
|
4907
4957
|
}
|
|
4908
4958
|
e = t;
|
|
4909
|
-
} while (t =
|
|
4910
|
-
|
|
4959
|
+
} while (t = Ks(t));
|
|
4960
|
+
pl();
|
|
4911
4961
|
}
|
|
4912
4962
|
},
|
|
4913
4963
|
_onTouchMove: function(e) {
|
|
4914
|
-
if (
|
|
4915
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = Q &&
|
|
4916
|
-
if (!$.active && !
|
|
4964
|
+
if (Vc) {
|
|
4965
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = Q && Xs(Q, !0), o = Q && a && a.a, s = Q && a && a.d, c = il && $c && ic($c), l = (i.clientX - Vc.clientX + r.x) / (o || 1) + (c ? c[0] - el[0] : 0) / (o || 1), u = (i.clientY - Vc.clientY + r.y) / (s || 1) + (c ? c[1] - el[1] : 0) / (s || 1);
|
|
4966
|
+
if (!$.active && !Rc) {
|
|
4917
4967
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
4918
4968
|
this._onDragStart(e, !0);
|
|
4919
4969
|
}
|
|
4920
4970
|
if (Q) {
|
|
4921
|
-
a ? (a.e += l - (
|
|
4971
|
+
a ? (a.e += l - (Uc || 0), a.f += u - (Wc || 0)) : a = {
|
|
4922
4972
|
a: 1,
|
|
4923
4973
|
b: 0,
|
|
4924
4974
|
c: 0,
|
|
@@ -4927,39 +4977,39 @@ $.prototype = {
|
|
|
4927
4977
|
f: u
|
|
4928
4978
|
};
|
|
4929
4979
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
4930
|
-
X(Q, "webkitTransform", d), X(Q, "mozTransform", d), X(Q, "msTransform", d), X(Q, "transform", d),
|
|
4980
|
+
X(Q, "webkitTransform", d), X(Q, "mozTransform", d), X(Q, "msTransform", d), X(Q, "transform", d), Uc = l, Wc = u, Hc = i;
|
|
4931
4981
|
}
|
|
4932
4982
|
e.cancelable && e.preventDefault();
|
|
4933
4983
|
}
|
|
4934
4984
|
},
|
|
4935
4985
|
_appendGhost: function() {
|
|
4936
4986
|
if (!Q) {
|
|
4937
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
4938
|
-
if (
|
|
4939
|
-
for (
|
|
4940
|
-
|
|
4987
|
+
var e = this.options.fallbackOnBody ? document.body : Dc, t = $s(Z, !0, il, !0, e), n = this.options;
|
|
4988
|
+
if (il) {
|
|
4989
|
+
for ($c = e; X($c, "position") === "static" && X($c, "transform") === "none" && $c !== document;) $c = $c.parentNode;
|
|
4990
|
+
$c !== document.body && $c !== document.documentElement ? ($c === document && ($c = Qs()), t.top += $c.scrollTop, t.left += $c.scrollLeft) : $c = Qs(), el = ic($c);
|
|
4941
4991
|
}
|
|
4942
|
-
Q = Z.cloneNode(!0),
|
|
4992
|
+
Q = Z.cloneNode(!0), Ys(Q, n.ghostClass, !1), Ys(Q, n.fallbackClass, !0), Ys(Q, n.dragClass, !0), X(Q, "transition", ""), X(Q, "transform", ""), X(Q, "box-sizing", "border-box"), X(Q, "margin", 0), X(Q, "top", t.top), X(Q, "left", t.left), X(Q, "width", t.width), X(Q, "height", t.height), X(Q, "opacity", "0.8"), X(Q, "position", il ? "absolute" : "fixed"), X(Q, "zIndex", "100000"), X(Q, "pointerEvents", "none"), $.ghost = Q, e.appendChild(Q), X(Q, "transform-origin", Gc / parseInt(Q.style.width) * 100 + "% " + Kc / parseInt(Q.style.height) * 100 + "%");
|
|
4943
4993
|
}
|
|
4944
4994
|
},
|
|
4945
4995
|
_onDragStart: function(e, t) {
|
|
4946
4996
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
4947
|
-
if (
|
|
4997
|
+
if (wc("dragStart", this, { evt: e }), $.eventCanceled) {
|
|
4948
4998
|
this._onDrop();
|
|
4949
4999
|
return;
|
|
4950
5000
|
}
|
|
4951
|
-
|
|
4952
|
-
|
|
5001
|
+
wc("setupClone", this), $.eventCanceled || (Ac = pc(Z), Ac.removeAttribute("id"), Ac.draggable = !1, Ac.style["will-change"] = "", this._hideClone(), Ys(Ac, this.options.chosenClass, !1), $.clone = Ac), n.cloneId = El(function() {
|
|
5002
|
+
wc("clone", n), !$.eventCanceled && (n.options.removeCloneOnHide || Dc.insertBefore(Ac, Z), n._hideClone(), Tc({
|
|
4953
5003
|
sortable: n,
|
|
4954
5004
|
name: "clone"
|
|
4955
5005
|
}));
|
|
4956
|
-
}), !t &&
|
|
5006
|
+
}), !t && Ys(Z, i.dragClass, !0), t ? (zc = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (Y(document, "mouseup", n._onDrop), Y(document, "touchend", n._onDrop), Y(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, Z)), J(document, "drop", n), X(Z, "transform", "translateZ(0)")), Rc = !0, n._dragStartId = El(n._dragStarted.bind(n, t, e)), J(document, "selectstart", n), qc = !0, window.getSelection().removeAllRanges(), Vs && X(document.body, "user-select", "none");
|
|
4957
5007
|
},
|
|
4958
5008
|
_onDragOver: function(e) {
|
|
4959
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = $.active, l =
|
|
4960
|
-
if (
|
|
5009
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = $.active, l = Ic === s, u = o.sort, d = Lc || c, f, p = this, m = !1;
|
|
5010
|
+
if (tl) return;
|
|
4961
5011
|
function h(o, s) {
|
|
4962
|
-
|
|
5012
|
+
wc(o, p, As({
|
|
4963
5013
|
evt: e,
|
|
4964
5014
|
isOwner: l,
|
|
4965
5015
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -4971,7 +5021,7 @@ $.prototype = {
|
|
|
4971
5021
|
target: n,
|
|
4972
5022
|
completed: _,
|
|
4973
5023
|
onMove: function(n, i) {
|
|
4974
|
-
return
|
|
5024
|
+
return _l(Dc, t, Z, r, n, $s(n), e, i);
|
|
4975
5025
|
},
|
|
4976
5026
|
changed: v
|
|
4977
5027
|
}, s));
|
|
@@ -4980,50 +5030,50 @@ $.prototype = {
|
|
|
4980
5030
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
4981
5031
|
}
|
|
4982
5032
|
function _(r) {
|
|
4983
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
5033
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Ys(Z, Lc ? Lc.options.ghostClass : c.options.ghostClass, !1), Ys(Z, o.ghostClass, !0)), Lc !== p && p !== $.active ? Lc = p : p === $.active && Lc && (Lc = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
4984
5034
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
4985
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === Z && !Z.animated || n === t && !n.animated) && (
|
|
5035
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === Z && !Z.animated || n === t && !n.animated) && (Jc = null), !o.dragoverBubble && !e.rootEl && n !== document && (Z.parentNode[hc]._isOutsideThisEl(e.target), !r && ml(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
4986
5036
|
}
|
|
4987
5037
|
function v() {
|
|
4988
|
-
|
|
5038
|
+
Nc = rc(Z), Fc = rc(Z, o.draggable), Tc({
|
|
4989
5039
|
sortable: p,
|
|
4990
5040
|
name: "change",
|
|
4991
5041
|
toEl: t,
|
|
4992
|
-
newIndex:
|
|
4993
|
-
newDraggableIndex:
|
|
5042
|
+
newIndex: Nc,
|
|
5043
|
+
newDraggableIndex: Fc,
|
|
4994
5044
|
originalEvent: e
|
|
4995
5045
|
});
|
|
4996
5046
|
}
|
|
4997
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
5047
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = qs(n, o.draggable, t, !0), h("dragOver"), $.eventCanceled) return m;
|
|
4998
5048
|
if (Z.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
4999
|
-
if (
|
|
5000
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
5001
|
-
if (a) return
|
|
5002
|
-
var y =
|
|
5003
|
-
if (!y ||
|
|
5049
|
+
if (zc = !1, c && !o.disabled && (l ? u || (a = Ec !== Dc) : Lc === this || (this.lastPutMode = Ic.checkPull(this, c, Z, e)) && s.checkPut(this, c, Z, e))) {
|
|
5050
|
+
if (f = this._getDirection(e, n) === "vertical", r = $s(Z), h("dragOverValid"), $.eventCanceled) return m;
|
|
5051
|
+
if (a) return Ec = Dc, g(), this._hideClone(), h("revert"), $.eventCanceled || (Oc ? Dc.insertBefore(Z, Oc) : Dc.appendChild(Z)), _(!0);
|
|
5052
|
+
var y = nc(t, o.draggable);
|
|
5053
|
+
if (!y || xl(e, f, this) && !y.animated) {
|
|
5004
5054
|
if (y === Z) return _(!1);
|
|
5005
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
5006
|
-
} else if (y &&
|
|
5007
|
-
var b =
|
|
5055
|
+
if (y && t === e.target && (n = y), n && (i = $s(n)), _l(Dc, t, Z, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(Z, y.nextSibling) : t.appendChild(Z), Ec = t, v(), _(!0);
|
|
5056
|
+
} else if (y && bl(e, f, this)) {
|
|
5057
|
+
var b = tc(t, 0, o, !0);
|
|
5008
5058
|
if (b === Z) return _(!1);
|
|
5009
|
-
if (n = b, i =
|
|
5059
|
+
if (n = b, i = $s(n), _l(Dc, t, Z, r, n, i, e, !1) !== !1) return g(), t.insertBefore(Z, b), Ec = t, v(), _(!0);
|
|
5010
5060
|
} else if (n.parentNode === t) {
|
|
5011
|
-
i =
|
|
5012
|
-
var x = 0, S, C = Z.parentNode !== t, w = !
|
|
5013
|
-
|
|
5061
|
+
i = $s(n);
|
|
5062
|
+
var x = 0, S, C = Z.parentNode !== t, w = !ll(Z.animated && Z.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = ec(n, "top", "top") || ec(Z, "top", "top"), D = E ? E.scrollTop : void 0;
|
|
5063
|
+
Jc !== n && (S = i[T], Xc = !1, Zc = !w && o.invertSwap || C), x = Sl(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Zc, Jc === n);
|
|
5014
5064
|
var O;
|
|
5015
5065
|
if (x !== 0) {
|
|
5016
|
-
var k =
|
|
5066
|
+
var k = rc(Z);
|
|
5017
5067
|
do
|
|
5018
|
-
k -= x, O =
|
|
5068
|
+
k -= x, O = Ec.children[k];
|
|
5019
5069
|
while (O && (X(O, "display") === "none" || O === Q));
|
|
5020
5070
|
}
|
|
5021
5071
|
if (x === 0 || O === n) return _(!1);
|
|
5022
|
-
|
|
5072
|
+
Jc = n, Yc = x;
|
|
5023
5073
|
var A = n.nextElementSibling, j = !1;
|
|
5024
5074
|
j = x === 1;
|
|
5025
|
-
var M =
|
|
5026
|
-
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1),
|
|
5075
|
+
var M = _l(Dc, t, Z, r, n, i, e, j);
|
|
5076
|
+
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), tl = !0, setTimeout(yl, 30), g(), j && !A ? t.appendChild(Z) : n.parentNode.insertBefore(Z, j ? A : n), E && fc(E, 0, D - E.scrollTop), Ec = Z.parentNode, S !== void 0 && !Zc && (Qc = Math.abs(S - $s(n)[T])), v(), _(!0);
|
|
5027
5077
|
}
|
|
5028
5078
|
if (t.contains(Z)) return _(!1);
|
|
5029
5079
|
}
|
|
@@ -5031,7 +5081,7 @@ $.prototype = {
|
|
|
5031
5081
|
},
|
|
5032
5082
|
_ignoreWhileAnimating: null,
|
|
5033
5083
|
_offMoveEvents: function() {
|
|
5034
|
-
Y(document, "mousemove", this._onTouchMove), Y(document, "touchmove", this._onTouchMove), Y(document, "pointermove", this._onTouchMove), Y(document, "dragover",
|
|
5084
|
+
Y(document, "mousemove", this._onTouchMove), Y(document, "touchmove", this._onTouchMove), Y(document, "pointermove", this._onTouchMove), Y(document, "dragover", ml), Y(document, "mousemove", ml), Y(document, "touchmove", ml);
|
|
5035
5085
|
},
|
|
5036
5086
|
_offUpEvents: function() {
|
|
5037
5087
|
var e = this.el.ownerDocument;
|
|
@@ -5039,62 +5089,62 @@ $.prototype = {
|
|
|
5039
5089
|
},
|
|
5040
5090
|
_onDrop: function(e) {
|
|
5041
5091
|
var t = this.el, n = this.options;
|
|
5042
|
-
if (
|
|
5092
|
+
if (Nc = rc(Z), Fc = rc(Z, n.draggable), wc("drop", this, { evt: e }), Ec = Z && Z.parentNode, Nc = rc(Z), Fc = rc(Z, n.draggable), $.eventCanceled) {
|
|
5043
5093
|
this._nulling();
|
|
5044
5094
|
return;
|
|
5045
5095
|
}
|
|
5046
|
-
|
|
5096
|
+
Rc = !1, Zc = !1, Xc = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Dl(this.cloneId), Dl(this._dragStartId), this.nativeDraggable && (Y(document, "drop", this), Y(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Vs && X(document.body, "user-select", ""), X(Z, "transform", ""), e && (qc && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), Q && Q.parentNode && Q.parentNode.removeChild(Q), (Dc === Ec || Lc && Lc.lastPutMode !== "clone") && Ac && Ac.parentNode && Ac.parentNode.removeChild(Ac), Z && (this.nativeDraggable && Y(Z, "dragend", this), vl(Z), Z.style["will-change"] = "", qc && !Rc && Ys(Z, Lc ? Lc.options.ghostClass : this.options.ghostClass, !1), Ys(Z, this.options.chosenClass, !1), Tc({
|
|
5047
5097
|
sortable: this,
|
|
5048
5098
|
name: "unchoose",
|
|
5049
|
-
toEl:
|
|
5099
|
+
toEl: Ec,
|
|
5050
5100
|
newIndex: null,
|
|
5051
5101
|
newDraggableIndex: null,
|
|
5052
5102
|
originalEvent: e
|
|
5053
|
-
}),
|
|
5103
|
+
}), Dc === Ec ? Nc !== Mc && Nc >= 0 && (Tc({
|
|
5054
5104
|
sortable: this,
|
|
5055
5105
|
name: "update",
|
|
5056
|
-
toEl:
|
|
5106
|
+
toEl: Ec,
|
|
5057
5107
|
originalEvent: e
|
|
5058
|
-
}),
|
|
5108
|
+
}), Tc({
|
|
5059
5109
|
sortable: this,
|
|
5060
5110
|
name: "sort",
|
|
5061
|
-
toEl:
|
|
5111
|
+
toEl: Ec,
|
|
5062
5112
|
originalEvent: e
|
|
5063
|
-
})) : (
|
|
5064
|
-
rootEl:
|
|
5113
|
+
})) : (Nc >= 0 && (Tc({
|
|
5114
|
+
rootEl: Ec,
|
|
5065
5115
|
name: "add",
|
|
5066
|
-
toEl:
|
|
5067
|
-
fromEl:
|
|
5116
|
+
toEl: Ec,
|
|
5117
|
+
fromEl: Dc,
|
|
5068
5118
|
originalEvent: e
|
|
5069
|
-
}),
|
|
5119
|
+
}), Tc({
|
|
5070
5120
|
sortable: this,
|
|
5071
5121
|
name: "remove",
|
|
5072
|
-
toEl:
|
|
5122
|
+
toEl: Ec,
|
|
5073
5123
|
originalEvent: e
|
|
5074
|
-
}),
|
|
5075
|
-
rootEl:
|
|
5124
|
+
}), Tc({
|
|
5125
|
+
rootEl: Ec,
|
|
5076
5126
|
name: "sort",
|
|
5077
|
-
toEl:
|
|
5078
|
-
fromEl:
|
|
5127
|
+
toEl: Ec,
|
|
5128
|
+
fromEl: Dc,
|
|
5079
5129
|
originalEvent: e
|
|
5080
|
-
}),
|
|
5130
|
+
}), Tc({
|
|
5081
5131
|
sortable: this,
|
|
5082
5132
|
name: "sort",
|
|
5083
|
-
toEl:
|
|
5133
|
+
toEl: Ec,
|
|
5084
5134
|
originalEvent: e
|
|
5085
|
-
})),
|
|
5135
|
+
})), Lc && Lc.save()), $.active && ((Nc == null || Nc === -1) && (Nc = Mc, Fc = Pc), Tc({
|
|
5086
5136
|
sortable: this,
|
|
5087
5137
|
name: "end",
|
|
5088
|
-
toEl:
|
|
5138
|
+
toEl: Ec,
|
|
5089
5139
|
originalEvent: e
|
|
5090
5140
|
}), this.save()))), this._nulling();
|
|
5091
5141
|
},
|
|
5092
5142
|
_nulling: function() {
|
|
5093
|
-
|
|
5143
|
+
wc("nulling", this), Dc = Z = Ec = Q = Oc = Ac = kc = jc = Vc = Hc = qc = Nc = Fc = Mc = Pc = Jc = Yc = Lc = Ic = $.dragged = $.ghost = $.clone = $.active = null;
|
|
5094
5144
|
var e = this.el;
|
|
5095
|
-
|
|
5145
|
+
nl.forEach(function(t) {
|
|
5096
5146
|
e.contains(t) && (t.checked = !0);
|
|
5097
|
-
}),
|
|
5147
|
+
}), nl.length = Uc = Wc = 0;
|
|
5098
5148
|
},
|
|
5099
5149
|
handleEvent: function(e) {
|
|
5100
5150
|
switch (e.type) {
|
|
@@ -5104,20 +5154,20 @@ $.prototype = {
|
|
|
5104
5154
|
break;
|
|
5105
5155
|
case "dragenter":
|
|
5106
5156
|
case "dragover":
|
|
5107
|
-
Z && (this._onDragOver(e),
|
|
5157
|
+
Z && (this._onDragOver(e), gl(e));
|
|
5108
5158
|
break;
|
|
5109
5159
|
case "selectstart": e.preventDefault();
|
|
5110
5160
|
}
|
|
5111
5161
|
},
|
|
5112
5162
|
toArray: function() {
|
|
5113
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
5163
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], qs(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || wl(t));
|
|
5114
5164
|
return e;
|
|
5115
5165
|
},
|
|
5116
5166
|
sort: function(e, t) {
|
|
5117
5167
|
var n = {}, r = this.el;
|
|
5118
5168
|
this.toArray().forEach(function(e, t) {
|
|
5119
5169
|
var i = r.children[t];
|
|
5120
|
-
|
|
5170
|
+
qs(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
5121
5171
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
5122
5172
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
5123
5173
|
}), t && this.animateAll();
|
|
@@ -5127,25 +5177,25 @@ $.prototype = {
|
|
|
5127
5177
|
e && e.set && e.set(this);
|
|
5128
5178
|
},
|
|
5129
5179
|
closest: function(e, t) {
|
|
5130
|
-
return
|
|
5180
|
+
return qs(e, t || this.options.draggable, this.el, !1);
|
|
5131
5181
|
},
|
|
5132
5182
|
option: function(e, t) {
|
|
5133
5183
|
var n = this.options;
|
|
5134
5184
|
if (t === void 0) return n[e];
|
|
5135
|
-
var r =
|
|
5136
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
5185
|
+
var r = xc.modifyOption(this, e, t);
|
|
5186
|
+
n[e] = r === void 0 ? t : r, e === "group" && dl(n);
|
|
5137
5187
|
},
|
|
5138
5188
|
destroy: function() {
|
|
5139
|
-
|
|
5189
|
+
wc("destroy", this);
|
|
5140
5190
|
var e = this.el;
|
|
5141
|
-
e[
|
|
5191
|
+
e[hc] = null, Y(e, "mousedown", this._onTapStart), Y(e, "touchstart", this._onTapStart), Y(e, "pointerdown", this._onTapStart), this.nativeDraggable && (Y(e, "dragover", this), Y(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
5142
5192
|
e.removeAttribute("draggable");
|
|
5143
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
5193
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Bc.splice(Bc.indexOf(this.el), 1), this.el = e = null;
|
|
5144
5194
|
},
|
|
5145
5195
|
_hideClone: function() {
|
|
5146
|
-
if (!
|
|
5147
|
-
if (
|
|
5148
|
-
X(
|
|
5196
|
+
if (!jc) {
|
|
5197
|
+
if (wc("hideClone", this), $.eventCanceled) return;
|
|
5198
|
+
X(Ac, "display", "none"), this.options.removeCloneOnHide && Ac.parentNode && Ac.parentNode.removeChild(Ac), jc = !0;
|
|
5149
5199
|
}
|
|
5150
5200
|
},
|
|
5151
5201
|
_showClone: function(e) {
|
|
@@ -5153,100 +5203,100 @@ $.prototype = {
|
|
|
5153
5203
|
this._hideClone();
|
|
5154
5204
|
return;
|
|
5155
5205
|
}
|
|
5156
|
-
if (
|
|
5157
|
-
if (
|
|
5158
|
-
Z.parentNode ==
|
|
5206
|
+
if (jc) {
|
|
5207
|
+
if (wc("showClone", this), $.eventCanceled) return;
|
|
5208
|
+
Z.parentNode == Dc && !this.options.group.revertClone ? Dc.insertBefore(Ac, Z) : Oc ? Dc.insertBefore(Ac, Oc) : Dc.appendChild(Ac), this.options.group.revertClone && this.animate(Z, Ac), X(Ac, "display", ""), jc = !1;
|
|
5159
5209
|
}
|
|
5160
5210
|
}
|
|
5161
5211
|
};
|
|
5162
|
-
function
|
|
5212
|
+
function gl(e) {
|
|
5163
5213
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
5164
5214
|
}
|
|
5165
|
-
function
|
|
5166
|
-
var c, l = e[
|
|
5167
|
-
return window.CustomEvent && !
|
|
5215
|
+
function _l(e, t, n, r, i, a, o, s) {
|
|
5216
|
+
var c, l = e[hc], u = l.options.onMove, d;
|
|
5217
|
+
return window.CustomEvent && !Rs && !zs ? c = new CustomEvent("move", {
|
|
5168
5218
|
bubbles: !0,
|
|
5169
5219
|
cancelable: !0
|
|
5170
|
-
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a ||
|
|
5220
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || $s(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
5171
5221
|
}
|
|
5172
|
-
function
|
|
5222
|
+
function vl(e) {
|
|
5173
5223
|
e.draggable = !1;
|
|
5174
5224
|
}
|
|
5175
|
-
function
|
|
5176
|
-
|
|
5225
|
+
function yl() {
|
|
5226
|
+
tl = !1;
|
|
5177
5227
|
}
|
|
5178
|
-
function
|
|
5179
|
-
var r =
|
|
5228
|
+
function bl(e, t, n) {
|
|
5229
|
+
var r = $s(tc(n.el, 0, n.options, !0)), i = mc(n.el, n.options, Q), a = 10;
|
|
5180
5230
|
return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
|
|
5181
5231
|
}
|
|
5182
|
-
function
|
|
5183
|
-
var r =
|
|
5232
|
+
function xl(e, t, n) {
|
|
5233
|
+
var r = $s(nc(n.el, n.options.draggable)), i = mc(n.el, n.options, Q), a = 10;
|
|
5184
5234
|
return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
|
|
5185
5235
|
}
|
|
5186
|
-
function
|
|
5236
|
+
function Sl(e, t, n, r, i, a, o, s) {
|
|
5187
5237
|
var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
|
|
5188
5238
|
if (!o) {
|
|
5189
|
-
if (s &&
|
|
5190
|
-
if (!
|
|
5191
|
-
else if (
|
|
5192
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
5239
|
+
if (s && Qc < l * i) {
|
|
5240
|
+
if (!Xc && (Yc === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Xc = !0), Xc) f = !0;
|
|
5241
|
+
else if (Yc === 1 ? c < u + Qc : c > d - Qc) return -Yc;
|
|
5242
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Cl(t);
|
|
5193
5243
|
}
|
|
5194
5244
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
5195
5245
|
}
|
|
5196
|
-
function
|
|
5197
|
-
return
|
|
5246
|
+
function Cl(e) {
|
|
5247
|
+
return rc(Z) < rc(e) ? 1 : -1;
|
|
5198
5248
|
}
|
|
5199
|
-
function
|
|
5249
|
+
function wl(e) {
|
|
5200
5250
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
5201
5251
|
return r.toString(36);
|
|
5202
5252
|
}
|
|
5203
|
-
function
|
|
5204
|
-
|
|
5253
|
+
function Tl(e) {
|
|
5254
|
+
nl.length = 0;
|
|
5205
5255
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
5206
5256
|
var r = t[n];
|
|
5207
|
-
r.checked &&
|
|
5257
|
+
r.checked && nl.push(r);
|
|
5208
5258
|
}
|
|
5209
5259
|
}
|
|
5210
|
-
function
|
|
5260
|
+
function El(e) {
|
|
5211
5261
|
return setTimeout(e, 0);
|
|
5212
5262
|
}
|
|
5213
|
-
function
|
|
5263
|
+
function Dl(e) {
|
|
5214
5264
|
return clearTimeout(e);
|
|
5215
5265
|
}
|
|
5216
|
-
|
|
5217
|
-
($.active ||
|
|
5266
|
+
rl && J(document, "touchmove", function(e) {
|
|
5267
|
+
($.active || Rc) && e.cancelable && e.preventDefault();
|
|
5218
5268
|
}), $.utils = {
|
|
5219
5269
|
on: J,
|
|
5220
5270
|
off: Y,
|
|
5221
5271
|
css: X,
|
|
5222
|
-
find:
|
|
5272
|
+
find: Zs,
|
|
5223
5273
|
is: function(e, t) {
|
|
5224
|
-
return !!
|
|
5274
|
+
return !!qs(e, t, e, !1);
|
|
5225
5275
|
},
|
|
5226
|
-
extend:
|
|
5227
|
-
throttle:
|
|
5228
|
-
closest:
|
|
5229
|
-
toggleClass:
|
|
5230
|
-
clone:
|
|
5231
|
-
index:
|
|
5232
|
-
nextTick:
|
|
5233
|
-
cancelNextTick:
|
|
5234
|
-
detectDirection:
|
|
5235
|
-
getChild:
|
|
5236
|
-
expando:
|
|
5276
|
+
extend: sc,
|
|
5277
|
+
throttle: uc,
|
|
5278
|
+
closest: qs,
|
|
5279
|
+
toggleClass: Ys,
|
|
5280
|
+
clone: pc,
|
|
5281
|
+
index: rc,
|
|
5282
|
+
nextTick: El,
|
|
5283
|
+
cancelNextTick: Dl,
|
|
5284
|
+
detectDirection: cl,
|
|
5285
|
+
getChild: tc,
|
|
5286
|
+
expando: hc
|
|
5237
5287
|
}, $.get = function(e) {
|
|
5238
|
-
return e[
|
|
5288
|
+
return e[hc];
|
|
5239
5289
|
}, $.mount = function() {
|
|
5240
5290
|
var e = [...arguments];
|
|
5241
5291
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
5242
5292
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
5243
|
-
e.utils && ($.utils =
|
|
5293
|
+
e.utils && ($.utils = As(As({}, $.utils), e.utils)), xc.mount(e);
|
|
5244
5294
|
});
|
|
5245
5295
|
}, $.create = function(e, t) {
|
|
5246
5296
|
return new $(e, t);
|
|
5247
|
-
}, $.version =
|
|
5248
|
-
var
|
|
5249
|
-
function
|
|
5297
|
+
}, $.version = Is;
|
|
5298
|
+
var Ol = [], kl, Al, jl = !1, Ml, Nl, Pl, Fl;
|
|
5299
|
+
function Il() {
|
|
5250
5300
|
function e() {
|
|
5251
5301
|
for (var e in this.defaults = {
|
|
5252
5302
|
scroll: !0,
|
|
@@ -5266,63 +5316,63 @@ function ll() {
|
|
|
5266
5316
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
5267
5317
|
},
|
|
5268
5318
|
drop: function() {
|
|
5269
|
-
this.sortable.nativeDraggable ? Y(document, "dragover", this._handleAutoScroll) : (Y(document, "pointermove", this._handleFallbackAutoScroll), Y(document, "touchmove", this._handleFallbackAutoScroll), Y(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
5319
|
+
this.sortable.nativeDraggable ? Y(document, "dragover", this._handleAutoScroll) : (Y(document, "pointermove", this._handleFallbackAutoScroll), Y(document, "touchmove", this._handleFallbackAutoScroll), Y(document, "mousemove", this._handleFallbackAutoScroll)), Rl(), Ll(), dc();
|
|
5270
5320
|
},
|
|
5271
5321
|
nulling: function() {
|
|
5272
|
-
|
|
5322
|
+
Pl = Al = kl = jl = Fl = Ml = Nl = null, Ol.length = 0;
|
|
5273
5323
|
},
|
|
5274
5324
|
_handleFallbackAutoScroll: function(e) {
|
|
5275
5325
|
this._handleAutoScroll(e, !0);
|
|
5276
5326
|
},
|
|
5277
5327
|
_handleAutoScroll: function(e, t) {
|
|
5278
5328
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
5279
|
-
if (
|
|
5280
|
-
|
|
5281
|
-
var o =
|
|
5282
|
-
|
|
5283
|
-
var a =
|
|
5284
|
-
a !== o && (o = a,
|
|
5285
|
-
}, 10),
|
|
5329
|
+
if (Pl = e, t || this.options.forceAutoScrollFallback || zs || Rs || Vs) {
|
|
5330
|
+
zl(e, this.options, a, t);
|
|
5331
|
+
var o = oc(a, !0);
|
|
5332
|
+
jl && (!Fl || r !== Ml || i !== Nl) && (Fl && Rl(), Fl = setInterval(function() {
|
|
5333
|
+
var a = oc(document.elementFromPoint(r, i), !0);
|
|
5334
|
+
a !== o && (o = a, Ll()), zl(e, n.options, a, t);
|
|
5335
|
+
}, 10), Ml = r, Nl = i);
|
|
5286
5336
|
} else {
|
|
5287
|
-
if (!this.options.bubbleScroll ||
|
|
5288
|
-
|
|
5337
|
+
if (!this.options.bubbleScroll || oc(a, !0) === Qs()) {
|
|
5338
|
+
Ll();
|
|
5289
5339
|
return;
|
|
5290
5340
|
}
|
|
5291
|
-
|
|
5341
|
+
zl(e, this.options, oc(a, !1), !1);
|
|
5292
5342
|
}
|
|
5293
5343
|
}
|
|
5294
|
-
},
|
|
5344
|
+
}, Os(e, {
|
|
5295
5345
|
pluginName: "scroll",
|
|
5296
5346
|
initializeByDefault: !0
|
|
5297
5347
|
});
|
|
5298
5348
|
}
|
|
5299
|
-
function
|
|
5300
|
-
|
|
5349
|
+
function Ll() {
|
|
5350
|
+
Ol.forEach(function(e) {
|
|
5301
5351
|
clearInterval(e.pid);
|
|
5302
|
-
}),
|
|
5352
|
+
}), Ol = [];
|
|
5303
5353
|
}
|
|
5304
|
-
function
|
|
5305
|
-
clearInterval(
|
|
5354
|
+
function Rl() {
|
|
5355
|
+
clearInterval(Fl);
|
|
5306
5356
|
}
|
|
5307
|
-
var
|
|
5357
|
+
var zl = uc(function(e, t, n, r) {
|
|
5308
5358
|
if (t.scroll) {
|
|
5309
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
5310
|
-
|
|
5311
|
-
var d = 0, f =
|
|
5359
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Qs(), l = !1, u;
|
|
5360
|
+
Al !== n && (Al = n, Ll(), kl = t.scroll, u = t.scrollFn, kl === !0 && (kl = oc(n, !0)));
|
|
5361
|
+
var d = 0, f = kl;
|
|
5312
5362
|
do {
|
|
5313
|
-
var p = f, m =
|
|
5363
|
+
var p = f, m = $s(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = X(p), E = p.scrollLeft, D = p.scrollTop;
|
|
5314
5364
|
p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
|
|
5315
5365
|
var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
|
|
5316
|
-
if (!
|
|
5317
|
-
(
|
|
5318
|
-
r && this.layer === 0 && $.active._onTouchMove(
|
|
5319
|
-
var t =
|
|
5320
|
-
(typeof u != "function" || u.call($.dragged.parentNode[
|
|
5366
|
+
if (!Ol[d]) for (var A = 0; A <= d; A++) Ol[A] || (Ol[A] = {});
|
|
5367
|
+
(Ol[d].vx != O || Ol[d].vy != k || Ol[d].el !== p) && (Ol[d].el = p, Ol[d].vx = O, Ol[d].vy = k, clearInterval(Ol[d].pid), (O != 0 || k != 0) && (l = !0, Ol[d].pid = setInterval(function() {
|
|
5368
|
+
r && this.layer === 0 && $.active._onTouchMove(Pl);
|
|
5369
|
+
var t = Ol[this.layer].vy ? Ol[this.layer].vy * s : 0, n = Ol[this.layer].vx ? Ol[this.layer].vx * s : 0;
|
|
5370
|
+
(typeof u != "function" || u.call($.dragged.parentNode[hc], n, t, e, Pl, Ol[this.layer].el) === "continue") && fc(Ol[this.layer].el, n, t);
|
|
5321
5371
|
}.bind({ layer: d }), 24))), d++;
|
|
5322
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
5323
|
-
|
|
5372
|
+
} while (t.bubbleScroll && f !== c && (f = oc(f, !1)));
|
|
5373
|
+
jl = l;
|
|
5324
5374
|
}
|
|
5325
|
-
}, 30),
|
|
5375
|
+
}, 30), Bl = function(e) {
|
|
5326
5376
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
5327
5377
|
if (t) {
|
|
5328
5378
|
var c = n || i;
|
|
@@ -5334,8 +5384,8 @@ var fl = Ls(function(e, t, n, r) {
|
|
|
5334
5384
|
}));
|
|
5335
5385
|
}
|
|
5336
5386
|
};
|
|
5337
|
-
function
|
|
5338
|
-
|
|
5387
|
+
function Vl() {}
|
|
5388
|
+
Vl.prototype = {
|
|
5339
5389
|
startIndex: null,
|
|
5340
5390
|
dragStart: function(e) {
|
|
5341
5391
|
var t = e.oldDraggableIndex;
|
|
@@ -5344,24 +5394,24 @@ ml.prototype = {
|
|
|
5344
5394
|
onSpill: function(e) {
|
|
5345
5395
|
var t = e.dragEl, n = e.putSortable;
|
|
5346
5396
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
5347
|
-
var r =
|
|
5397
|
+
var r = tc(this.sortable.el, this.startIndex, this.options);
|
|
5348
5398
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
5349
5399
|
},
|
|
5350
|
-
drop:
|
|
5351
|
-
},
|
|
5352
|
-
function
|
|
5353
|
-
|
|
5400
|
+
drop: Bl
|
|
5401
|
+
}, Os(Vl, { pluginName: "revertOnSpill" });
|
|
5402
|
+
function Hl() {}
|
|
5403
|
+
Hl.prototype = {
|
|
5354
5404
|
onSpill: function(e) {
|
|
5355
5405
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
5356
5406
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
5357
5407
|
},
|
|
5358
|
-
drop:
|
|
5359
|
-
},
|
|
5408
|
+
drop: Bl
|
|
5409
|
+
}, Os(Hl, { pluginName: "removeOnSpill" }), $.mount(new Il()), $.mount(Hl, Vl);
|
|
5360
5410
|
//#endregion
|
|
5361
5411
|
//#region node_modules/@vueuse/integrations/dist/useSortable.js
|
|
5362
|
-
function
|
|
5412
|
+
function Ul(e, t, n = {}) {
|
|
5363
5413
|
let r, { document: i = ke, watchElement: a = !1, ...o } = n, s = { onUpdate: (e) => {
|
|
5364
|
-
|
|
5414
|
+
Kl(t, e.oldIndex, e.newIndex, e);
|
|
5365
5415
|
} }, c = () => {
|
|
5366
5416
|
r?.destroy(), r = void 0;
|
|
5367
5417
|
}, l = (e) => {
|
|
@@ -5391,15 +5441,15 @@ function gl(e, t, n = {}) {
|
|
|
5391
5441
|
option: d
|
|
5392
5442
|
};
|
|
5393
5443
|
}
|
|
5394
|
-
function
|
|
5444
|
+
function Wl(e, t, n) {
|
|
5395
5445
|
let r = e.children[n];
|
|
5396
5446
|
e.insertBefore(t, r);
|
|
5397
5447
|
}
|
|
5398
|
-
function
|
|
5448
|
+
function Gl(e) {
|
|
5399
5449
|
e.parentNode && e.parentNode.removeChild(e);
|
|
5400
5450
|
}
|
|
5401
|
-
function
|
|
5402
|
-
r != null && (
|
|
5451
|
+
function Kl(e, t, n, r = null) {
|
|
5452
|
+
r != null && (Gl(r.item), Wl(r.from, r.item, t));
|
|
5403
5453
|
let i = _(e), a = i ? [...oe(e)] : oe(e);
|
|
5404
5454
|
if (n >= 0 && n < a.length) {
|
|
5405
5455
|
let r = a.splice(t, 1)[0];
|
|
@@ -5410,37 +5460,37 @@ function yl(e, t, n, r = null) {
|
|
|
5410
5460
|
}
|
|
5411
5461
|
//#endregion
|
|
5412
5462
|
//#region node_modules/uuid/dist/stringify.js
|
|
5413
|
-
var
|
|
5414
|
-
for (let e = 0; e < 256; ++e)
|
|
5415
|
-
function
|
|
5416
|
-
return (
|
|
5463
|
+
var ql = [];
|
|
5464
|
+
for (let e = 0; e < 256; ++e) ql.push((e + 256).toString(16).slice(1));
|
|
5465
|
+
function Jl(e, t = 0) {
|
|
5466
|
+
return (ql[e[t + 0]] + ql[e[t + 1]] + ql[e[t + 2]] + ql[e[t + 3]] + "-" + ql[e[t + 4]] + ql[e[t + 5]] + "-" + ql[e[t + 6]] + ql[e[t + 7]] + "-" + ql[e[t + 8]] + ql[e[t + 9]] + "-" + ql[e[t + 10]] + ql[e[t + 11]] + ql[e[t + 12]] + ql[e[t + 13]] + ql[e[t + 14]] + ql[e[t + 15]]).toLowerCase();
|
|
5417
5467
|
}
|
|
5418
5468
|
//#endregion
|
|
5419
5469
|
//#region node_modules/uuid/dist/rng.js
|
|
5420
|
-
var
|
|
5421
|
-
function
|
|
5422
|
-
return crypto.getRandomValues(
|
|
5470
|
+
var Yl = /* @__PURE__ */ new Uint8Array(16);
|
|
5471
|
+
function Xl() {
|
|
5472
|
+
return crypto.getRandomValues(Yl);
|
|
5423
5473
|
}
|
|
5424
5474
|
//#endregion
|
|
5425
5475
|
//#region node_modules/uuid/dist/v1.js
|
|
5426
|
-
var
|
|
5427
|
-
function
|
|
5476
|
+
var Zl = {};
|
|
5477
|
+
function Ql(e, t, n) {
|
|
5428
5478
|
let r, i = e?._v6 ?? !1;
|
|
5429
5479
|
if (e) {
|
|
5430
5480
|
let t = Object.keys(e);
|
|
5431
5481
|
t.length === 1 && t[0] === "_v6" && (e = void 0);
|
|
5432
5482
|
}
|
|
5433
|
-
if (e) r =
|
|
5483
|
+
if (e) r = eu(e.random ?? e.rng?.() ?? Xl(), e.msecs, e.nsecs, e.clockseq, e.node, t, n);
|
|
5434
5484
|
else {
|
|
5435
|
-
let e = Date.now(), a =
|
|
5436
|
-
|
|
5485
|
+
let e = Date.now(), a = Xl();
|
|
5486
|
+
$l(Zl, e, a), r = eu(a, Zl.msecs, Zl.nsecs, i ? void 0 : Zl.clockseq, i ? void 0 : Zl.node, t, n);
|
|
5437
5487
|
}
|
|
5438
|
-
return t ??
|
|
5488
|
+
return t ?? Jl(r);
|
|
5439
5489
|
}
|
|
5440
|
-
function
|
|
5490
|
+
function $l(e, t, n) {
|
|
5441
5491
|
return e.msecs ??= -Infinity, e.nsecs ??= 0, t === e.msecs ? (e.nsecs++, e.nsecs >= 1e4 && (e.node = void 0, e.nsecs = 0)) : t > e.msecs ? e.nsecs = 0 : t < e.msecs && (e.node = void 0), e.node || (e.node = n.slice(10, 16), e.node[0] |= 1, e.clockseq = (n[8] << 8 | n[9]) & 16383), e.msecs = t, e;
|
|
5442
5492
|
}
|
|
5443
|
-
function
|
|
5493
|
+
function eu(e, t, n, r, i, a, o = 0) {
|
|
5444
5494
|
if (e.length < 16) throw Error("Random bytes length must be >= 16");
|
|
5445
5495
|
if (!a) a = /* @__PURE__ */ new Uint8Array(16), o = 0;
|
|
5446
5496
|
else if (o < 0 || o + 16 > a.length) throw RangeError(`UUID byte range ${o}:${o + 15} is out of buffer bounds`);
|
|
@@ -5454,25 +5504,25 @@ function Dl(e, t, n, r, i, a, o = 0) {
|
|
|
5454
5504
|
}
|
|
5455
5505
|
//#endregion
|
|
5456
5506
|
//#region node_modules/uuid/dist/v4.js
|
|
5457
|
-
function
|
|
5458
|
-
return !t && !e && crypto.randomUUID ? crypto.randomUUID() :
|
|
5507
|
+
function tu(e, t, n) {
|
|
5508
|
+
return !t && !e && crypto.randomUUID ? crypto.randomUUID() : nu(e, t, n);
|
|
5459
5509
|
}
|
|
5460
|
-
function
|
|
5510
|
+
function nu(e, t, n) {
|
|
5461
5511
|
e ||= {};
|
|
5462
|
-
let r = e.random ?? e.rng?.() ??
|
|
5512
|
+
let r = e.random ?? e.rng?.() ?? Xl();
|
|
5463
5513
|
if (r.length < 16) throw Error("Random bytes length must be >= 16");
|
|
5464
5514
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
5465
5515
|
if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
|
|
5466
5516
|
for (let e = 0; e < 16; ++e) t[n + e] = r[e];
|
|
5467
5517
|
return t;
|
|
5468
5518
|
}
|
|
5469
|
-
return
|
|
5519
|
+
return Jl(r);
|
|
5470
5520
|
}
|
|
5471
5521
|
//#endregion
|
|
5472
5522
|
//#region src/utils/generator.ts
|
|
5473
|
-
var
|
|
5474
|
-
function
|
|
5475
|
-
let a = M(!1), o = M(null), s = M(null), c = M(
|
|
5523
|
+
var ru = () => Ql(), iu = () => tu(), au = "a-sortable-widget__handle", ou = "a-sortable-widget__ghost", su = "a-sortable-widget__drag", cu = "a-sortable-widget__chosen", lu = "a-sortable-widget__group";
|
|
5524
|
+
function uu(e, t, r, i) {
|
|
5525
|
+
let a = M(!1), o = M(null), s = M(null), c = M(ru()), l = M(null), u = M(0), d = M(r.dirty);
|
|
5476
5526
|
function f(e, t) {
|
|
5477
5527
|
return {
|
|
5478
5528
|
key: e[r.keyField],
|
|
@@ -5490,7 +5540,7 @@ function Ll(e, t, r, i) {
|
|
|
5490
5540
|
d.value.delete(e);
|
|
5491
5541
|
}, _ = (e, t, n, i = []) => {
|
|
5492
5542
|
let a = t > n ? n : t, o = r.positionMultiplier * a + r.positionMultiplier * 1;
|
|
5493
|
-
for (let t = a; t < e.length; t++)
|
|
5543
|
+
for (let t = a; t < e.length; t++) sa(e[t], r.positionField, o), h(e[t][r.keyField]), o += r.positionMultiplier * 1, i.push({
|
|
5494
5544
|
id: e[t].id,
|
|
5495
5545
|
position: e[t].position
|
|
5496
5546
|
});
|
|
@@ -5563,7 +5613,7 @@ function Ll(e, t, r, i) {
|
|
|
5563
5613
|
}
|
|
5564
5614
|
//#endregion
|
|
5565
5615
|
//#region src/components/sortable/sortableUtils.ts
|
|
5566
|
-
var
|
|
5616
|
+
var du = "a-sortable-", fu = ["id"], pu = { key: 1 }, mu = { class: "a-sortable-widget__before" }, hu = { class: "a-sortable-widget__content" }, gu = { class: "a-sortable-widget__after" }, _u = /* @__PURE__ */ u({
|
|
5567
5617
|
__name: "ASortable",
|
|
5568
5618
|
props: {
|
|
5569
5619
|
modelValue: {},
|
|
@@ -5643,14 +5693,14 @@ var Rl = "a-sortable-", zl = ["id"], Bl = { key: 1 }, Vl = { class: "a-sortable-
|
|
|
5643
5693
|
return;
|
|
5644
5694
|
}
|
|
5645
5695
|
p("onAddLast", null);
|
|
5646
|
-
}, C = n(() => H(f.widgetIdentifierId) ?
|
|
5696
|
+
}, C = n(() => H(f.widgetIdentifierId) ? du + ce.value : f.widgetIdentifierId), w = n(() => f.rootClassName + " " + (f.chips ? f.rootClassName + "--chips" : "")), E = () => {
|
|
5647
5697
|
if (f.disableDraggable || !se.value) return;
|
|
5648
|
-
let e = se.value.querySelector("." +
|
|
5649
|
-
e && (oe.value =
|
|
5650
|
-
handle: "." +
|
|
5651
|
-
ghostClass:
|
|
5652
|
-
dragClass:
|
|
5653
|
-
chosenClass:
|
|
5698
|
+
let e = se.value.querySelector("." + lu);
|
|
5699
|
+
e && (oe.value = Ul(e, [], {
|
|
5700
|
+
handle: "." + au,
|
|
5701
|
+
ghostClass: ou,
|
|
5702
|
+
dragClass: su,
|
|
5703
|
+
chosenClass: cu,
|
|
5654
5704
|
onEnd: async (e) => {
|
|
5655
5705
|
if (f.disableDefaultSort || H(e.oldIndex) || H(e.newIndex)) return;
|
|
5656
5706
|
let t = j(e.oldIndex, e.newIndex);
|
|
@@ -5660,7 +5710,7 @@ var Rl = "a-sortable-", zl = ["id"], Bl = { key: 1 }, Vl = { class: "a-sortable-
|
|
|
5660
5710
|
p("onStart");
|
|
5661
5711
|
}
|
|
5662
5712
|
}));
|
|
5663
|
-
}, { items: D, forceRerender: O, dirtyLocal: A, moveArrayElement: j, itemToRemove: M, removeDialog: P, destroy: ne, refresh: re, onRemoveDialogConfirm: ie, sortableInstance: oe, widgetEl: se, randomUuid: ce, addAfterId: le, removeById: ue, updateData: de, addAfterIndex: fe, removeByIndex: pe, updateDataAtIndex: me } =
|
|
5713
|
+
}, { items: D, forceRerender: O, dirtyLocal: A, moveArrayElement: j, itemToRemove: M, removeDialog: P, destroy: ne, refresh: re, onRemoveDialogConfirm: ie, sortableInstance: oe, widgetEl: se, randomUuid: ce, addAfterId: le, removeById: ue, updateData: de, addAfterIndex: fe, removeByIndex: pe, updateDataAtIndex: me } = uu(m, E, f, p);
|
|
5664
5714
|
return T(() => {
|
|
5665
5715
|
ne();
|
|
5666
5716
|
}), x(() => {
|
|
@@ -5685,7 +5735,7 @@ var Rl = "a-sortable-", zl = ["id"], Bl = { key: 1 }, Vl = { class: "a-sortable-
|
|
|
5685
5735
|
class: S(w.value)
|
|
5686
5736
|
}, [(k(), a("div", {
|
|
5687
5737
|
key: I(O),
|
|
5688
|
-
class: S(I(
|
|
5738
|
+
class: S(I(lu))
|
|
5689
5739
|
}, [(k(!0), a(e, null, ee(I(D), (d, f) => (k(), a(e, { key: d.key }, [t.chips ? (k(), r(ge, {
|
|
5690
5740
|
key: 0,
|
|
5691
5741
|
size: t.chipSize,
|
|
@@ -5700,8 +5750,8 @@ var Rl = "a-sortable-", zl = ["id"], Bl = { key: 1 }, Vl = { class: "a-sortable-
|
|
|
5700
5750
|
name: "prepend",
|
|
5701
5751
|
fn: R(() => [l(B, {
|
|
5702
5752
|
class: S({
|
|
5703
|
-
[I(
|
|
5704
|
-
[I(
|
|
5753
|
+
[I(au)]: !0,
|
|
5754
|
+
[I(au) + "--disabled"]: t.disableDraggable
|
|
5705
5755
|
}),
|
|
5706
5756
|
icon: "mdi-drag"
|
|
5707
5757
|
}, null, 8, ["class"])]),
|
|
@@ -5720,20 +5770,20 @@ var Rl = "a-sortable-", zl = ["id"], Bl = { key: 1 }, Vl = { class: "a-sortable-
|
|
|
5720
5770
|
"prepend-icon",
|
|
5721
5771
|
"append-icon",
|
|
5722
5772
|
"onClick:close"
|
|
5723
|
-
])) : (k(), a("div",
|
|
5724
|
-
o("div",
|
|
5773
|
+
])) : (k(), a("div", pu, [
|
|
5774
|
+
o("div", mu, [N(n.$slots, "itemBefore", { item: d })]),
|
|
5725
5775
|
o("div", { class: S(["a-sortable-widget__item", {
|
|
5726
5776
|
"a-sortable-widget__item--last": f + 1 === I(D).length,
|
|
5727
5777
|
"a-sortable-widget__item--first": f === 0
|
|
5728
5778
|
}]) }, [
|
|
5729
5779
|
l(B, {
|
|
5730
5780
|
class: S({
|
|
5731
|
-
[I(
|
|
5732
|
-
[I(
|
|
5781
|
+
[I(au)]: !0,
|
|
5782
|
+
[I(au) + "--disabled"]: t.disableDraggable
|
|
5733
5783
|
}),
|
|
5734
5784
|
icon: "mdi-drag"
|
|
5735
5785
|
}, null, 8, ["class"]),
|
|
5736
|
-
o("div",
|
|
5786
|
+
o("div", hu, [N(n.$slots, "item", { item: d })]),
|
|
5737
5787
|
o("div", { class: S(["a-sortable-widget__buttons", { "a-sortable-widget__buttons--permanent": t.permanentButtons }]) }, [N(n.$slots, "item-buttons", { item: d }, () => [
|
|
5738
5788
|
t.showEditButton ? (k(), r(V, {
|
|
5739
5789
|
key: 0,
|
|
@@ -5798,8 +5848,8 @@ var Rl = "a-sortable-", zl = ["id"], Bl = { key: 1 }, Vl = { class: "a-sortable-
|
|
|
5798
5848
|
}, 1024)) : i("", !0)
|
|
5799
5849
|
])], 2)
|
|
5800
5850
|
], 2),
|
|
5801
|
-
o("div",
|
|
5802
|
-
]))], 64))), 128))], 2))], 10,
|
|
5851
|
+
o("div", gu, [N(n.$slots, "itemAfter", { item: d })])
|
|
5852
|
+
]))], 64))), 128))], 2))], 10, fu),
|
|
5803
5853
|
N(n.$slots, "add-last-activator", { props: { onClick: z(() => b(), ["stop"]) } }, () => [t.showAddLastButton ? (k(), r(V, {
|
|
5804
5854
|
key: 0,
|
|
5805
5855
|
size: "small",
|
|
@@ -5843,12 +5893,12 @@ var Rl = "a-sortable-", zl = ["id"], Bl = { key: 1 }, Vl = { class: "a-sortable-
|
|
|
5843
5893
|
});
|
|
5844
5894
|
//#endregion
|
|
5845
5895
|
//#region src/model/factory/UserAdminConfigFactory.ts
|
|
5846
|
-
function
|
|
5896
|
+
function vu() {
|
|
5847
5897
|
return { createDefaultUserAdminConfig: (e) => ({
|
|
5848
5898
|
id: 0,
|
|
5849
5899
|
user: 0,
|
|
5850
|
-
configType:
|
|
5851
|
-
layoutType:
|
|
5900
|
+
configType: hs,
|
|
5901
|
+
layoutType: _s,
|
|
5852
5902
|
systemResource: "",
|
|
5853
5903
|
customName: "",
|
|
5854
5904
|
defaultConfig: !1,
|
|
@@ -5864,19 +5914,19 @@ function Gl() {
|
|
|
5864
5914
|
}
|
|
5865
5915
|
//#endregion
|
|
5866
5916
|
//#region src/labs/filters/FilterBookmarkDialog.vue?vue&type=script&setup=true&lang.ts
|
|
5867
|
-
var
|
|
5917
|
+
var yu = {
|
|
5868
5918
|
key: 0,
|
|
5869
5919
|
class: "w-100 pt-4"
|
|
5870
|
-
},
|
|
5920
|
+
}, bu = {
|
|
5871
5921
|
key: 1,
|
|
5872
5922
|
class: "w-100 pt-4"
|
|
5873
|
-
},
|
|
5923
|
+
}, xu = {
|
|
5874
5924
|
key: 0,
|
|
5875
5925
|
class: "d-flex w-100 align-center justify-center"
|
|
5876
|
-
},
|
|
5926
|
+
}, Su = { key: 1 }, Cu = {
|
|
5877
5927
|
key: 0,
|
|
5878
5928
|
class: "d-flex align-center justify-end"
|
|
5879
|
-
},
|
|
5929
|
+
}, wu = /* @__PURE__ */ u({
|
|
5880
5930
|
__name: "FilterBookmarkDialog",
|
|
5881
5931
|
props: {
|
|
5882
5932
|
client: {},
|
|
@@ -5889,13 +5939,13 @@ var Kl = {
|
|
|
5889
5939
|
setup(e, { emit: t }) {
|
|
5890
5940
|
let n = e, o = t, u = h(yo), d = h(vo), f = h(wo);
|
|
5891
5941
|
if (H(f) || H(u) || H(d)) throw Error("Incorrect provide/inject config.");
|
|
5892
|
-
let p = M("add"), m = M(""), g = M(!1), _ = M(!1), v = M(!1), y = M(!1), b = M(!1), S = M([]), C = M(null), { required: w, maxLength: T } =
|
|
5942
|
+
let p = M("add"), m = M(""), g = M(!1), _ = M(!1), v = M(!1), y = M(!1), b = M(!1), S = M([]), C = M(null), { required: w, maxLength: T } = Ra(), E = { customName: {
|
|
5893
5943
|
required: w,
|
|
5894
5944
|
maxLength: T(100)
|
|
5895
5945
|
} }, D = Ze(E, { customName: m }, { $stopPropagation: !0 }), O = { itemEdit: {
|
|
5896
5946
|
required: w,
|
|
5897
5947
|
maxLength: T(100)
|
|
5898
|
-
} }, A = Ze(O, { itemEdit: C }, { $stopPropagation: !0 }), j =
|
|
5948
|
+
} }, A = Ze(O, { itemEdit: C }, { $stopPropagation: !0 }), j = ys(), { createUserAdminConfig: ee, useFetchUserAdminConfigList: N, updateUserAdminConfigPositions: P, deleteUserAdminConfig: ne, updateUserAdminConfig: re } = Cs(n.client, n.system), { t: ie } = he(), { showErrorsDefault: ae, showValidationError: oe, showWarningT: se } = Di(), { createDefaultUserAdminConfig: ce } = vu(), ue = async () => {
|
|
5899
5949
|
v.value = !0;
|
|
5900
5950
|
let e = S.value.map((e) => e.id);
|
|
5901
5951
|
try {
|
|
@@ -5903,10 +5953,10 @@ var Kl = {
|
|
|
5903
5953
|
} catch (e) {
|
|
5904
5954
|
ae(e), v.value = !1;
|
|
5905
5955
|
}
|
|
5906
|
-
}, { serializeFilters: de } =
|
|
5956
|
+
}, { serializeFilters: de } = Vo(d, u), fe = n.system + "_" + n.subject, pe = async () => {
|
|
5907
5957
|
v.value = !0, b.value = !1;
|
|
5908
5958
|
let e = ce(n.system);
|
|
5909
|
-
e.user = n.user, e.configType =
|
|
5959
|
+
e.user = n.user, e.configType = ms.FilterBookmark, e.layoutType = gs.Desktop, e.systemResource = fe, e.customName = m.value, e.data = {
|
|
5910
5960
|
filter: de(d, f, !1),
|
|
5911
5961
|
datatableHiddenColumns: g.value && n.datatableHiddenColumns ? n.datatableHiddenColumns : void 0,
|
|
5912
5962
|
sortBy: _.value && f.value.sortBy ? f.value.sortBy : void 0
|
|
@@ -5914,7 +5964,7 @@ var Kl = {
|
|
|
5914
5964
|
try {
|
|
5915
5965
|
let t = await j.fetchBookmarksCount({
|
|
5916
5966
|
user: n.user,
|
|
5917
|
-
layoutType:
|
|
5967
|
+
layoutType: gs.Desktop,
|
|
5918
5968
|
systemResource: fe
|
|
5919
5969
|
}, N);
|
|
5920
5970
|
if (t >= 8) {
|
|
@@ -5923,7 +5973,7 @@ var Kl = {
|
|
|
5923
5973
|
}
|
|
5924
5974
|
e.position = t + 1;
|
|
5925
5975
|
let r = await ee(e);
|
|
5926
|
-
j.addOne(j.generateKey(
|
|
5976
|
+
j.addOne(j.generateKey(gs.Desktop, fe), r), o("onClose");
|
|
5927
5977
|
} catch (e) {
|
|
5928
5978
|
if (ii(e) && ai(e, "error_field_not_unique", "cms.userAdminConfig.model.systemResource")) {
|
|
5929
5979
|
se("common.filter.bookmark.nameUniqueError");
|
|
@@ -5974,7 +6024,7 @@ var Kl = {
|
|
|
5974
6024
|
try {
|
|
5975
6025
|
S.value = await j.getBookmarks({
|
|
5976
6026
|
user: n.user,
|
|
5977
|
-
layoutType:
|
|
6027
|
+
layoutType: gs.Desktop,
|
|
5978
6028
|
systemResource: fe
|
|
5979
6029
|
}, N, !0);
|
|
5980
6030
|
} catch (e) {
|
|
@@ -6011,7 +6061,7 @@ var Kl = {
|
|
|
6011
6061
|
_: 1
|
|
6012
6062
|
})]),
|
|
6013
6063
|
_: 1
|
|
6014
|
-
}, 8, ["modelValue"]), p.value === "add" ? (k(), a("div",
|
|
6064
|
+
}, 8, ["modelValue"]), p.value === "add" ? (k(), a("div", yu, [
|
|
6015
6065
|
l(kt, { title: I(ie)("common.filter.bookmark.infoSave") }, null, 8, ["title"]),
|
|
6016
6066
|
b.value ? (k(), r(kt, {
|
|
6017
6067
|
key: 0,
|
|
@@ -6033,7 +6083,7 @@ var Kl = {
|
|
|
6033
6083
|
_: 1
|
|
6034
6084
|
}),
|
|
6035
6085
|
l(kt, null, {
|
|
6036
|
-
default: R(() => [l(
|
|
6086
|
+
default: R(() => [l(fo, {
|
|
6037
6087
|
modelValue: g.value,
|
|
6038
6088
|
"onUpdate:modelValue": t[3] ||= (e) => g.value = e,
|
|
6039
6089
|
label: I(ie)("common.filter.bookmark.storeTableColumns")
|
|
@@ -6041,14 +6091,14 @@ var Kl = {
|
|
|
6041
6091
|
_: 1
|
|
6042
6092
|
}),
|
|
6043
6093
|
l(kt, null, {
|
|
6044
|
-
default: R(() => [l(
|
|
6094
|
+
default: R(() => [l(fo, {
|
|
6045
6095
|
modelValue: _.value,
|
|
6046
6096
|
"onUpdate:modelValue": t[4] ||= (e) => _.value = e,
|
|
6047
6097
|
label: I(ie)("common.filter.bookmark.storeTableOrder")
|
|
6048
6098
|
}, null, 8, ["modelValue", "label"])]),
|
|
6049
6099
|
_: 1
|
|
6050
6100
|
})
|
|
6051
|
-
])) : p.value === "manage" ? (k(), a("div",
|
|
6101
|
+
])) : p.value === "manage" ? (k(), a("div", bu, [y.value ? (k(), a("div", xu, [l(xe, { indeterminate: "" })])) : (k(), r(_u, {
|
|
6052
6102
|
key: 1,
|
|
6053
6103
|
modelValue: S.value,
|
|
6054
6104
|
"onUpdate:modelValue": t[7] ||= (e) => S.value = e,
|
|
@@ -6066,11 +6116,11 @@ var Kl = {
|
|
|
6066
6116
|
"onUpdate:modelValue": t[5] ||= (e) => C.value.customName = e,
|
|
6067
6117
|
"hide-details": "auto",
|
|
6068
6118
|
v: I(A)
|
|
6069
|
-
}, null, 8, ["modelValue", "v"])) : (k(), a("div",
|
|
6119
|
+
}, null, 8, ["modelValue", "v"])) : (k(), a("div", Su, F(e.raw.customName), 1))]),
|
|
6070
6120
|
_: 2
|
|
6071
6121
|
}, [I(W)(C.value) ? void 0 : {
|
|
6072
6122
|
name: "item-buttons",
|
|
6073
|
-
fn: R(({ item: e }) => [C.value && C.value.id === e.raw.id ? (k(), a("div",
|
|
6123
|
+
fn: R(({ item: e }) => [C.value && C.value.id === e.raw.id ? (k(), a("div", Cu, [l(V, {
|
|
6074
6124
|
icon: "",
|
|
6075
6125
|
size: "x-small",
|
|
6076
6126
|
variant: "text",
|
|
@@ -6129,7 +6179,7 @@ var Kl = {
|
|
|
6129
6179
|
});
|
|
6130
6180
|
};
|
|
6131
6181
|
}
|
|
6132
|
-
}),
|
|
6182
|
+
}), Tu = /* @__PURE__ */ u({
|
|
6133
6183
|
__name: "AFilterBookmarkButton",
|
|
6134
6184
|
props: /*@__PURE__*/ y({
|
|
6135
6185
|
client: {},
|
|
@@ -6152,7 +6202,7 @@ var Kl = {
|
|
|
6152
6202
|
emits: ["update:dialog"],
|
|
6153
6203
|
setup(t) {
|
|
6154
6204
|
let n = se(t, "dialog"), o = (e) => {
|
|
6155
|
-
|
|
6205
|
+
ta(e), n.value = !0;
|
|
6156
6206
|
}, { t: s } = he();
|
|
6157
6207
|
return (u, d) => (k(), a(e, null, [l(V, {
|
|
6158
6208
|
class: S([t.buttonClass, "text-medium-emphasis px-2"]),
|
|
@@ -6172,7 +6222,7 @@ var Kl = {
|
|
|
6172
6222
|
_: 1
|
|
6173
6223
|
})]),
|
|
6174
6224
|
_: 1
|
|
6175
|
-
}, 8, ["class", "data-cy"]), n.value ? (k(), r(
|
|
6225
|
+
}, 8, ["class", "data-cy"]), n.value ? (k(), r(wu, {
|
|
6176
6226
|
key: 0,
|
|
6177
6227
|
client: t.client,
|
|
6178
6228
|
system: t.system,
|
|
@@ -6188,10 +6238,10 @@ var Kl = {
|
|
|
6188
6238
|
"datatable-hidden-columns"
|
|
6189
6239
|
])) : i("", !0)], 64));
|
|
6190
6240
|
}
|
|
6191
|
-
}),
|
|
6241
|
+
}), Eu = { class: "subject-select-filter__content px-2 py-4" }, Du = { class: "d-flex flex-wrap align-center" }, Ou = {
|
|
6192
6242
|
key: 0,
|
|
6193
6243
|
class: "subject-select-filter__actions"
|
|
6194
|
-
},
|
|
6244
|
+
}, ku = /* @__PURE__ */ u({
|
|
6195
6245
|
__name: "AFilterWrapperSubjectSelect",
|
|
6196
6246
|
props: /*@__PURE__*/ y({
|
|
6197
6247
|
hideButtons: {
|
|
@@ -6240,7 +6290,7 @@ var Kl = {
|
|
|
6240
6290
|
v.value++, x(() => {
|
|
6241
6291
|
d("submit"), p();
|
|
6242
6292
|
});
|
|
6243
|
-
}, { clearAll: S, clearAllFilterSelected: C } =
|
|
6293
|
+
}, { clearAll: S, clearAllFilterSelected: C } = zo(), w = () => {
|
|
6244
6294
|
x(() => {
|
|
6245
6295
|
v.value++, d("bookmarkLoadAfter"), p();
|
|
6246
6296
|
});
|
|
@@ -6256,9 +6306,9 @@ var Kl = {
|
|
|
6256
6306
|
name: t.formName,
|
|
6257
6307
|
onSubmit: z(b, ["prevent"])
|
|
6258
6308
|
}, {
|
|
6259
|
-
default: R(() => [o("div",
|
|
6309
|
+
default: R(() => [o("div", Eu, [N(n.$slots, "bookmarks", {}, () => [l(ve, { density: "compact" }, {
|
|
6260
6310
|
default: R(() => [t.store && t.userId && I(U)(t.client) ? (k(), r(_e, { key: 0 }, {
|
|
6261
|
-
default: R(() => [o("div",
|
|
6311
|
+
default: R(() => [o("div", Du, [_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(Es, {
|
|
6262
6312
|
key: 0,
|
|
6263
6313
|
"datatable-hidden-columns": f.value,
|
|
6264
6314
|
"onUpdate:datatableHiddenColumns": s[0] ||= (e) => f.value = e,
|
|
@@ -6286,7 +6336,7 @@ var Kl = {
|
|
|
6286
6336
|
lg: I(m).fields[e].render.lg || 12,
|
|
6287
6337
|
xl: I(m).fields[e].render.xl || 12
|
|
6288
6338
|
}, {
|
|
6289
|
-
default: R(() => [N(n.$slots, I(
|
|
6339
|
+
default: R(() => [N(n.$slots, I(cs)(e), { itemConfig: I(m).fields[e] }, () => [l(fs, { name: e }, null, 8, ["name"])])]),
|
|
6290
6340
|
_: 2
|
|
6291
6341
|
}, 1032, [
|
|
6292
6342
|
"cols",
|
|
@@ -6296,10 +6346,10 @@ var Kl = {
|
|
|
6296
6346
|
"xl"
|
|
6297
6347
|
]))), 128))]),
|
|
6298
6348
|
_: 3
|
|
6299
|
-
})])]), t.hideButtons ? i("", !0) : (k(), a("div",
|
|
6300
|
-
l(
|
|
6301
|
-
l(
|
|
6302
|
-
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(
|
|
6349
|
+
})])]), t.hideButtons ? i("", !0) : (k(), a("div", Ou, [N(n.$slots, "buttons", {}, () => [
|
|
6350
|
+
l(na, { touched: E.value }, null, 8, ["touched"]),
|
|
6351
|
+
l(ra, { onReset: T }),
|
|
6352
|
+
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(Tu, {
|
|
6303
6353
|
key: 0,
|
|
6304
6354
|
client: t.client,
|
|
6305
6355
|
user: t.userId,
|
|
@@ -6317,10 +6367,10 @@ var Kl = {
|
|
|
6317
6367
|
_: 3
|
|
6318
6368
|
}, 8, ["name"]));
|
|
6319
6369
|
}
|
|
6320
|
-
}),
|
|
6370
|
+
}), Au = {
|
|
6321
6371
|
key: 0,
|
|
6322
6372
|
class: "required"
|
|
6323
|
-
},
|
|
6373
|
+
}, ju = /* @__PURE__ */ u({
|
|
6324
6374
|
__name: "AFormRemoteAutocompleteWithCached",
|
|
6325
6375
|
props: /*@__PURE__*/ y({
|
|
6326
6376
|
modelValue: {},
|
|
@@ -6395,7 +6445,7 @@ var Kl = {
|
|
|
6395
6445
|
set(e) {
|
|
6396
6446
|
u("update:modelValue", K(e));
|
|
6397
6447
|
}
|
|
6398
|
-
}), { t: T } = he(), E = h($t, void 0), D = h(en, void 0), O = M(!1), { pagination: A } =
|
|
6448
|
+
}), { t: T } = he(), E = h($t, void 0), D = h(en, void 0), O = M(!1), { pagination: A } = Zo(W(o.filterSortBy) ? null : o.filterSortBy.key, o.filterSortBy?.order), j = () => {
|
|
6399
6449
|
O.value = !0, u("focus", w.value);
|
|
6400
6450
|
}, ee = () => {
|
|
6401
6451
|
O.value = !1, o.v?.$touch(), u("blur", w.value);
|
|
@@ -6466,7 +6516,7 @@ var Kl = {
|
|
|
6466
6516
|
onFocus: j,
|
|
6467
6517
|
"onClick:clear": I
|
|
6468
6518
|
}, s({
|
|
6469
|
-
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ne.value + "" }, [c(F(P.value) + " ", 1), ne.value ? (k(), a("span",
|
|
6519
|
+
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ne.value + "" }, [c(F(P.value) + " ", 1), ne.value ? (k(), a("span", Au)) : i("", !0)]))]),
|
|
6470
6520
|
"append-item": R(() => [N(t.$slots, "append-item")]),
|
|
6471
6521
|
chip: R(({ props: e, internalItem: n }) => [N(t.$slots, "chip", {
|
|
6472
6522
|
props: e,
|
|
@@ -6492,7 +6542,7 @@ var Kl = {
|
|
|
6492
6542
|
"no-data-text"
|
|
6493
6543
|
]));
|
|
6494
6544
|
}
|
|
6495
|
-
}),
|
|
6545
|
+
}), Mu = /* @__PURE__ */ u({
|
|
6496
6546
|
__name: "AFilterAdvancedButton",
|
|
6497
6547
|
props: {
|
|
6498
6548
|
tooltipT: { default: "common.button.advancedFilters" },
|
|
@@ -6502,7 +6552,7 @@ var Kl = {
|
|
|
6502
6552
|
emits: ["advancedFilter"],
|
|
6503
6553
|
setup(e, { emit: t }) {
|
|
6504
6554
|
let n = t, i = M(!1), a = (e) => {
|
|
6505
|
-
|
|
6555
|
+
ta(e), i.value = !i.value, n("advancedFilter");
|
|
6506
6556
|
}, { t: o } = he();
|
|
6507
6557
|
return (t, n) => (k(), r(V, {
|
|
6508
6558
|
class: S(e.buttonClass),
|
|
@@ -6522,7 +6572,7 @@ var Kl = {
|
|
|
6522
6572
|
_: 1
|
|
6523
6573
|
}, 8, ["class", "data-cy"]));
|
|
6524
6574
|
}
|
|
6525
|
-
}),
|
|
6575
|
+
}), Nu = { class: "a-selected-filters__label text-body-small" }, Pu = /* @__PURE__ */ u({
|
|
6526
6576
|
__name: "FiltersSelected",
|
|
6527
6577
|
setup(t) {
|
|
6528
6578
|
let i = h(yo), s = h(vo), u = h(Co);
|
|
@@ -6537,13 +6587,13 @@ var Kl = {
|
|
|
6537
6587
|
title: f(e),
|
|
6538
6588
|
options: t
|
|
6539
6589
|
})).sort((t, n) => e.indexOf(t.name) - e.indexOf(n.name));
|
|
6540
|
-
}), { clearOneFilterSelected: m, isClearable: g } =
|
|
6590
|
+
}), { clearOneFilterSelected: m, isClearable: g } = zo(), _ = (e, t) => {
|
|
6541
6591
|
m(e, t, s, i, u), i.touched = !0;
|
|
6542
6592
|
};
|
|
6543
6593
|
return (t, n) => (k(!0), a(e, null, ee(p.value, (t) => (k(), a("div", {
|
|
6544
6594
|
key: t.name,
|
|
6545
6595
|
class: "a-selected-filters"
|
|
6546
|
-
}, [o("div",
|
|
6596
|
+
}, [o("div", Nu, F(t.title) + ":", 1), (k(!0), a(e, null, ee(t.options, (e) => (k(), a("div", {
|
|
6547
6597
|
key: e.value,
|
|
6548
6598
|
class: "a-selected-filters__chips"
|
|
6549
6599
|
}, [I(g)(t.name, I(i)) ? (k(), r(ge, {
|
|
@@ -6568,7 +6618,7 @@ var Kl = {
|
|
|
6568
6618
|
_: 2
|
|
6569
6619
|
}, 1024))]))), 128))]))), 128));
|
|
6570
6620
|
}
|
|
6571
|
-
}),
|
|
6621
|
+
}), Fu = { class: "d-flex flex-wrap align-center" }, Iu = { class: "a-filter__container" }, Lu = { class: "a-filter__search" }, Ru = { key: 2 }, zu = /* @__PURE__ */ u({
|
|
6572
6622
|
__name: "AFilterWrapper",
|
|
6573
6623
|
props: /*@__PURE__*/ y({
|
|
6574
6624
|
enableTop: {
|
|
@@ -6631,7 +6681,7 @@ var Kl = {
|
|
|
6631
6681
|
v.value++, x(() => {
|
|
6632
6682
|
d("submit");
|
|
6633
6683
|
});
|
|
6634
|
-
}, { clearAll: C, clearAllFilterSelected: w } =
|
|
6684
|
+
}, { clearAll: C, clearAllFilterSelected: w } = zo(), T = () => {
|
|
6635
6685
|
x(() => {
|
|
6636
6686
|
v.value++, d("bookmarkLoadAfter");
|
|
6637
6687
|
});
|
|
@@ -6652,7 +6702,7 @@ var Kl = {
|
|
|
6652
6702
|
default: R(() => [
|
|
6653
6703
|
t.enableTop ? (k(), r(ve, {
|
|
6654
6704
|
key: 0,
|
|
6655
|
-
density: "
|
|
6705
|
+
density: "compact"
|
|
6656
6706
|
}, {
|
|
6657
6707
|
default: R(() => [l(_e, null, {
|
|
6658
6708
|
default: R(() => [N(n.$slots, "top")]),
|
|
@@ -6662,7 +6712,7 @@ var Kl = {
|
|
|
6662
6712
|
})) : i("", !0),
|
|
6663
6713
|
l(ve, { density: "compact" }, {
|
|
6664
6714
|
default: R(() => [t.store && t.userId && I(U)(t.client) ? (k(), r(_e, { key: 0 }, {
|
|
6665
|
-
default: R(() => [N(n.$slots, "bookmarks", {}, () => [o("div",
|
|
6715
|
+
default: R(() => [N(n.$slots, "bookmarks", {}, () => [o("div", Fu, [_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(Es, {
|
|
6666
6716
|
key: 0,
|
|
6667
6717
|
"datatable-hidden-columns": f.value,
|
|
6668
6718
|
"onUpdate:datatableHiddenColumns": s[0] ||= (e) => f.value = e,
|
|
@@ -6684,21 +6734,21 @@ var Kl = {
|
|
|
6684
6734
|
}),
|
|
6685
6735
|
t.alwaysVisible ? i("", !0) : (k(), r(ve, {
|
|
6686
6736
|
key: 1,
|
|
6687
|
-
density: "
|
|
6737
|
+
density: "compact"
|
|
6688
6738
|
}, {
|
|
6689
6739
|
default: R(() => [
|
|
6690
6740
|
t.hideMore ? i("", !0) : (k(), r(_e, {
|
|
6691
6741
|
key: 0,
|
|
6692
6742
|
cols: "auto"
|
|
6693
6743
|
}, {
|
|
6694
|
-
default: R(() => [l(
|
|
6744
|
+
default: R(() => [l(Mu, {
|
|
6695
6745
|
"button-active": p.value,
|
|
6696
6746
|
onAdvancedFilter: D
|
|
6697
6747
|
}, null, 8, ["button-active"])]),
|
|
6698
6748
|
_: 1
|
|
6699
6749
|
})),
|
|
6700
6750
|
l(_e, null, {
|
|
6701
|
-
default: R(() => [o("div",
|
|
6751
|
+
default: R(() => [o("div", Iu, [o("div", Lu, [N(n.$slots, "search")]), l(Pu)])]),
|
|
6702
6752
|
_: 3
|
|
6703
6753
|
}),
|
|
6704
6754
|
t.hideButtons ? i("", !0) : (k(), r(_e, {
|
|
@@ -6707,9 +6757,9 @@ var Kl = {
|
|
|
6707
6757
|
cols: "auto"
|
|
6708
6758
|
}, {
|
|
6709
6759
|
default: R(() => [N(n.$slots, "buttons", {}, () => [
|
|
6710
|
-
l(
|
|
6711
|
-
l(
|
|
6712
|
-
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(
|
|
6760
|
+
l(na, { touched: O.value }, null, 8, ["touched"]),
|
|
6761
|
+
l(ra, { onReset: E }),
|
|
6762
|
+
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(Tu, {
|
|
6713
6763
|
key: 0,
|
|
6714
6764
|
client: t.client,
|
|
6715
6765
|
user: t.userId,
|
|
@@ -6729,7 +6779,7 @@ var Kl = {
|
|
|
6729
6779
|
]),
|
|
6730
6780
|
_: 3
|
|
6731
6781
|
})),
|
|
6732
|
-
t.hideMore ? i("", !0) : (k(), a("div",
|
|
6782
|
+
t.hideMore ? i("", !0) : (k(), a("div", Ru, [(k(), r(P(t.alwaysVisible ? "div" : "VSlideYTransition"), null, {
|
|
6733
6783
|
default: R(() => [fe(o("div", { class: S({ "mt-6 pa-4 system-border-a": !t.alwaysVisible }) }, [N(n.$slots, "detail", {}, () => [l(ve, null, {
|
|
6734
6784
|
default: R(() => [(k(!0), a(e, null, ee(j.value, (e) => (k(), r(_e, {
|
|
6735
6785
|
key: e,
|
|
@@ -6739,7 +6789,7 @@ var Kl = {
|
|
|
6739
6789
|
lg: I(m).fields[e].render.lg || 3,
|
|
6740
6790
|
xl: I(m).fields[e].render.xl || 2
|
|
6741
6791
|
}, {
|
|
6742
|
-
default: R(() => [N(n.$slots, I(
|
|
6792
|
+
default: R(() => [N(n.$slots, I(cs)(e), { itemConfig: I(m).fields[e] }, () => [l(fs, { name: e }, null, 8, ["name"])])]),
|
|
6743
6793
|
_: 2
|
|
6744
6794
|
}, 1032, [
|
|
6745
6795
|
"cols",
|
|
@@ -6756,12 +6806,12 @@ var Kl = {
|
|
|
6756
6806
|
_: 3
|
|
6757
6807
|
}, 8, ["name"]));
|
|
6758
6808
|
}
|
|
6759
|
-
}),
|
|
6760
|
-
e().delete(
|
|
6809
|
+
}), Bu = (e, t, n = {}, r, i, a = {}) => new Promise((o, s) => {
|
|
6810
|
+
e().delete(la(t, n), a).then((e) => ua(e.status) ? e.data ? o(e.data) : e.status === 204 ? o(null) : s(new Ur()) : s(new li(e.status))).catch((e) => $r(e) ? s(new ti(e, e.config?.url)) : ri(e) ? s(new si(e, r, i, e)) : gi(e) ? s(new yi(e, r, i, e)) : di(e) ? s(new mi(e, e)) : s(new Ur(e)));
|
|
6761
6811
|
});
|
|
6762
6812
|
//#endregion
|
|
6763
6813
|
//#region src/labs/listEditor/composables/useContainerWidth.ts
|
|
6764
|
-
function
|
|
6814
|
+
function Vu(e, t = 769) {
|
|
6765
6815
|
let { width: r } = Pe(e);
|
|
6766
6816
|
return {
|
|
6767
6817
|
width: r,
|
|
@@ -6770,17 +6820,17 @@ function mu(e, t = 769) {
|
|
|
6770
6820
|
}
|
|
6771
6821
|
//#endregion
|
|
6772
6822
|
//#region src/labs/listEditor/composables/useIsTouchDevice.ts
|
|
6773
|
-
function
|
|
6823
|
+
function Hu() {
|
|
6774
6824
|
let e = Ie("(any-pointer: fine)");
|
|
6775
6825
|
return n(() => !e.value);
|
|
6776
6826
|
}
|
|
6777
|
-
function
|
|
6827
|
+
function Uu() {
|
|
6778
6828
|
let e = Ie("(any-pointer: coarse)");
|
|
6779
6829
|
return n(() => e.value);
|
|
6780
6830
|
}
|
|
6781
6831
|
//#endregion
|
|
6782
6832
|
//#region src/labs/listEditor/composables/useKeyboardNav.ts
|
|
6783
|
-
function
|
|
6833
|
+
function Wu(e) {
|
|
6784
6834
|
let t = M(null), r = M(null), i = n(() => e.viewItems.value.map((e) => e.key)), a = (e) => t.value === e, o = (e) => r.value === e, s = n(() => r.value === null ? -1 : i.value.indexOf(r.value)), c = n(() => i.value.length);
|
|
6785
6835
|
function l(e) {
|
|
6786
6836
|
let n = i.value;
|
|
@@ -6886,14 +6936,14 @@ function _u(e) {
|
|
|
6886
6936
|
}
|
|
6887
6937
|
//#endregion
|
|
6888
6938
|
//#region src/labs/listEditor/utils/positions.ts
|
|
6889
|
-
var
|
|
6939
|
+
var Gu = (e) => [...e].sort((e, t) => e.position - t.position), Ku = (e, t = []) => Gu(e).map((e) => {
|
|
6890
6940
|
let n = e;
|
|
6891
6941
|
for (let r of t) {
|
|
6892
6942
|
let i = e[r];
|
|
6893
|
-
Array.isArray(i) && (n === e && (n = { ...e }), n[r] =
|
|
6943
|
+
Array.isArray(i) && (n === e && (n = { ...e }), n[r] = Ku(i, t));
|
|
6894
6944
|
}
|
|
6895
6945
|
return n;
|
|
6896
|
-
}),
|
|
6946
|
+
}), qu = (e, t = {}) => {
|
|
6897
6947
|
let n = t.positionField ?? "position", r = t.positionMultiplier ?? 1;
|
|
6898
6948
|
return e.map((e, t) => {
|
|
6899
6949
|
let i = (t + 1) * r;
|
|
@@ -6902,7 +6952,7 @@ var vu = (e) => [...e].sort((e, t) => e.position - t.position), yu = (e, t = [])
|
|
|
6902
6952
|
[n]: i
|
|
6903
6953
|
};
|
|
6904
6954
|
});
|
|
6905
|
-
},
|
|
6955
|
+
}, Ju = (e, t = {}) => {
|
|
6906
6956
|
let n = t.positionField ?? "position", r = e.map((e) => e[n]);
|
|
6907
6957
|
if (!r.every((e) => typeof e == "number" && Number.isFinite(e))) return console.warn(`[listEditor] position strategy "preserve-values" needs a finite numeric \`${n}\` on every row; found ` + JSON.stringify(r) + " — leaving positions untouched."), e;
|
|
6908
6958
|
new Set(r).size !== r.length && console.warn(`[listEditor] position strategy "preserve-values" found DUPLICATE \`${n}\` values ` + JSON.stringify(r) + " — the resulting order is not well defined relative to any interleaved collection.");
|
|
@@ -6911,10 +6961,10 @@ var vu = (e) => [...e].sort((e, t) => e.position - t.position), yu = (e, t = [])
|
|
|
6911
6961
|
...e,
|
|
6912
6962
|
[n]: i[t]
|
|
6913
6963
|
});
|
|
6914
|
-
},
|
|
6964
|
+
}, Yu = 0, Xu = () => --Yu;
|
|
6915
6965
|
//#endregion
|
|
6916
6966
|
//#region src/labs/listEditor/composables/useListEditorController.ts
|
|
6917
|
-
function
|
|
6967
|
+
function Zu(e) {
|
|
6918
6968
|
let t = typeof e.getKey == "function" ? null : e.getKey ?? "id", r = (n) => typeof e.getKey == "function" ? e.getKey(n) : n[t], i = e.position ?? "position", a = i !== !1, o = typeof i == "object" ? i.field : i === !1 ? "position" : i, s = typeof i == "object" && i.multiplier ? i.multiplier : 1, c = typeof i == "object" && i.strategy || "renumber", l = typeof i == "object" && i.strategyOverrides || {}, u = n(() => e.get()), d = n(() => oe(e.dirtyExclude) ?? []), f = (e, t) => e === "id" && typeof t == "number" && t < 0 ? void 0 : t, p = (e) => {
|
|
6919
6969
|
let t = { ...e };
|
|
6920
6970
|
a && delete t[o];
|
|
@@ -6939,7 +6989,7 @@ function wu(e) {
|
|
|
6939
6989
|
return {
|
|
6940
6990
|
rows: e.map((e) => r(e) == null ? (n = !0, {
|
|
6941
6991
|
...e,
|
|
6942
|
-
[t]:
|
|
6992
|
+
[t]: Xu()
|
|
6943
6993
|
}) : e),
|
|
6944
6994
|
changed: n
|
|
6945
6995
|
};
|
|
@@ -7009,7 +7059,7 @@ function wu(e) {
|
|
|
7009
7059
|
}), N = n(() => ee.value.size > 0), te = (e, t, n = !1) => {
|
|
7010
7060
|
let { invalid: r, warning: i } = A(e, t);
|
|
7011
7061
|
return r ? b.value ? "invalid" : n ? null : T(t) || D(t) ? "invalid" : null : i ? "warning" : null;
|
|
7012
|
-
}, P = () => (b.value = !0, ee.value.size === 0), ne = (e, t) => a ? (l[t] ?? c) === "preserve-values" ? t === "move" ?
|
|
7062
|
+
}, P = () => (b.value = !0, ee.value.size === 0), ne = (e, t) => a ? (l[t] ?? c) === "preserve-values" ? t === "move" ? Ju(e, { positionField: o }) : e : qu(e, {
|
|
7013
7063
|
positionField: o,
|
|
7014
7064
|
positionMultiplier: s
|
|
7015
7065
|
}) : e, re = (t, n) => e.set(ne(t, n)), F = () => e.payload ? e.payload(e.get()) : ne(e.get(), "payload"), ie = () => {
|
|
@@ -7028,7 +7078,7 @@ function wu(e) {
|
|
|
7028
7078
|
}, ae = (n) => {
|
|
7029
7079
|
let i = n ?? e.get(), a = (e.normalizeSaved ? e.normalizeSaved(i) : i).map((n) => (e.commitKey ? e.commitKey(n, h.value.find((e) => r(e) === r(n))) : r(n)) == null && t ? {
|
|
7030
7080
|
...n,
|
|
7031
|
-
[t]:
|
|
7081
|
+
[t]: Xu()
|
|
7032
7082
|
} : n);
|
|
7033
7083
|
e.set(a), g(a), v.value = /* @__PURE__ */ new Set(), y.value = [], C.value = /* @__PURE__ */ new Map(), w.value = /* @__PURE__ */ new Set(), b.value = !1;
|
|
7034
7084
|
}, I = (t) => {
|
|
@@ -7095,9 +7145,9 @@ function wu(e) {
|
|
|
7095
7145
|
}
|
|
7096
7146
|
//#endregion
|
|
7097
7147
|
//#region src/labs/listEditor/composables/useNestedListEditor.ts
|
|
7098
|
-
var
|
|
7099
|
-
function
|
|
7100
|
-
let r = t.keyField ??
|
|
7148
|
+
var Qu = "id", $u = "position", ed = "parent";
|
|
7149
|
+
function td(e, t) {
|
|
7150
|
+
let r = t.keyField ?? Qu, i = t.getKey, a = t.positionField ?? $u, o = t.parentField ?? ed, s = t.positionMultiplier ?? 1, c = t.maxDepth, l = (e) => i ? i(e) : e[r], u = (e) => {
|
|
7101
7151
|
if (!e.children || e.children.length === 0) return 1;
|
|
7102
7152
|
let t = 0;
|
|
7103
7153
|
for (let n of e.children) {
|
|
@@ -7288,19 +7338,19 @@ function Ou(e, t) {
|
|
|
7288
7338
|
}
|
|
7289
7339
|
//#endregion
|
|
7290
7340
|
//#region src/labs/listEditor/composables/useNestedListEditorController.ts
|
|
7291
|
-
var
|
|
7341
|
+
var nd = (e) => {
|
|
7292
7342
|
let t = [], n = (e) => {
|
|
7293
7343
|
for (let r of e) t.push(r.data), r.children && r.children.length && n(r.children);
|
|
7294
7344
|
};
|
|
7295
7345
|
return n(e.children), t;
|
|
7296
|
-
},
|
|
7346
|
+
}, rd = (e, t) => {
|
|
7297
7347
|
let n = (e) => {
|
|
7298
7348
|
for (let r of e) t(r), r.children && r.children.length && n(r.children);
|
|
7299
7349
|
};
|
|
7300
7350
|
n(e.children);
|
|
7301
7351
|
};
|
|
7302
|
-
function
|
|
7303
|
-
let t = typeof e.getKey == "function" ? null : e.getKey ?? "id", r = (n) => typeof e.getKey == "function" ? e.getKey(n) : n[t], i = t ?? "id", a = e.position ?? "position", o = a !== !1, s = typeof a == "object" ? a.field : a === !1 ? "position" : a, c = typeof a == "object" && a.multiplier ? a.multiplier : 1, l = e.parentField ?? "parent", u =
|
|
7352
|
+
function id(e) {
|
|
7353
|
+
let t = typeof e.getKey == "function" ? null : e.getKey ?? "id", r = (n) => typeof e.getKey == "function" ? e.getKey(n) : n[t], i = t ?? "id", a = e.position ?? "position", o = a !== !1, s = typeof a == "object" ? a.field : a === !1 ? "position" : a, c = typeof a == "object" && a.multiplier ? a.multiplier : 1, l = e.parentField ?? "parent", u = td(n({
|
|
7304
7354
|
get: () => e.get(),
|
|
7305
7355
|
set: (t) => e.set(t)
|
|
7306
7356
|
}), {
|
|
@@ -7310,7 +7360,7 @@ function ju(e) {
|
|
|
7310
7360
|
parentField: l,
|
|
7311
7361
|
positionMultiplier: c,
|
|
7312
7362
|
maxDepth: e.maxDepth
|
|
7313
|
-
}), d = n(() =>
|
|
7363
|
+
}), d = n(() => nd(e.get())), f = u.viewItems, p = n(() => oe(e.dirtyExclude) ?? []), m = (e) => {
|
|
7314
7364
|
let t = { ...e };
|
|
7315
7365
|
o && delete t[s], delete t[l];
|
|
7316
7366
|
for (let e of p.value) delete t[e];
|
|
@@ -7327,7 +7377,7 @@ function ju(e) {
|
|
|
7327
7377
|
y(e.get()), L(p, () => {
|
|
7328
7378
|
if (!_.value) return;
|
|
7329
7379
|
let e = /* @__PURE__ */ new Map();
|
|
7330
|
-
|
|
7380
|
+
rd(_.value, (t) => e.set(r(t.data), m(t.data))), h.value = e;
|
|
7331
7381
|
}, { flush: "sync" });
|
|
7332
7382
|
let b = M(!1), x = j(/* @__PURE__ */ new Map()), S = (t, n, r) => {
|
|
7333
7383
|
if (e.isDirty) {
|
|
@@ -7339,7 +7389,7 @@ function ju(e) {
|
|
|
7339
7389
|
}, C = M(/* @__PURE__ */ new Map()), w = M(/* @__PURE__ */ new Set()), T = M(/* @__PURE__ */ new Set());
|
|
7340
7390
|
L(() => e.get(), (e) => {
|
|
7341
7391
|
let t = /* @__PURE__ */ new Set();
|
|
7342
|
-
|
|
7392
|
+
rd(e, (e) => {
|
|
7343
7393
|
let n = r(e.data);
|
|
7344
7394
|
if (t.add(n), !h.value.has(n) && !C.value.has(n) && C.value.set(n, m(e.data)), !w.value.has(n)) {
|
|
7345
7395
|
let t = h.value.get(n) ?? C.value.get(n);
|
|
@@ -7359,12 +7409,12 @@ function ju(e) {
|
|
|
7359
7409
|
let E = (e) => w.value.has(e), D = (e) => {
|
|
7360
7410
|
if (!_.value) return;
|
|
7361
7411
|
let t;
|
|
7362
|
-
return
|
|
7412
|
+
return rd(_.value, (n) => {
|
|
7363
7413
|
t === void 0 && r(n.data) === e && (t = n.data);
|
|
7364
7414
|
}), t;
|
|
7365
7415
|
}, O = (t) => {
|
|
7366
7416
|
let n = !1;
|
|
7367
|
-
return
|
|
7417
|
+
return rd(e.get(), (e) => {
|
|
7368
7418
|
!n && r(e.data) === t && (n = !0);
|
|
7369
7419
|
}), n;
|
|
7370
7420
|
}, k = n(() => {
|
|
@@ -7377,7 +7427,7 @@ function ju(e) {
|
|
|
7377
7427
|
return n(e.get().children, null), t;
|
|
7378
7428
|
}), A = (e) => k.value.has(e), ee = n(() => {
|
|
7379
7429
|
let t = !1;
|
|
7380
|
-
return
|
|
7430
|
+
return rd(e.get(), (e) => {
|
|
7381
7431
|
e.meta.dirty && (t = !0);
|
|
7382
7432
|
}), t;
|
|
7383
7433
|
}), N = n(() => k.value.size > 0 || T.value.size > 0 || ee.value), te = n(() => {
|
|
@@ -7404,7 +7454,7 @@ function ju(e) {
|
|
|
7404
7454
|
};
|
|
7405
7455
|
}, ne = n(() => {
|
|
7406
7456
|
let t = /* @__PURE__ */ new Set();
|
|
7407
|
-
return
|
|
7457
|
+
return rd(e.get(), (e) => {
|
|
7408
7458
|
let n = r(e.data);
|
|
7409
7459
|
P(e.data, n).invalid && t.add(n);
|
|
7410
7460
|
}), t;
|
|
@@ -7434,7 +7484,7 @@ function ju(e) {
|
|
|
7434
7484
|
getChanges: () => {
|
|
7435
7485
|
let t = [], n = [], i = [], a = [], o = ae(), s = /* @__PURE__ */ new Map();
|
|
7436
7486
|
for (let e of o) s.set(r(e), e);
|
|
7437
|
-
|
|
7487
|
+
rd(e.get(), (e) => {
|
|
7438
7488
|
let o = r(e.data), c = s.get(o) ?? e.data, u = h.value.get(o);
|
|
7439
7489
|
if (u === void 0 ? t.push(c) : u !== m(e.data) && n.push(c), u !== void 0 && e.meta.dirty && u === m(e.data) && i.push(c), g.value.has(o)) {
|
|
7440
7490
|
let e = g.value.get(o) ?? null, t = c[l];
|
|
@@ -7456,9 +7506,9 @@ function ju(e) {
|
|
|
7456
7506
|
},
|
|
7457
7507
|
commit: (n) => {
|
|
7458
7508
|
let a = n ?? e.get(), o = e.normalizeSaved ? e.normalizeSaved(a) : a, s = v(o);
|
|
7459
|
-
|
|
7509
|
+
rd(s, (n) => {
|
|
7460
7510
|
let a = D(r(n.data));
|
|
7461
|
-
(e.commitKey ? e.commitKey(n.data, a) : r(n.data)) == null && t && (n.data[i] =
|
|
7511
|
+
(e.commitKey ? e.commitKey(n.data, a) : r(n.data)) == null && t && (n.data[i] = Xu()), n.meta.dirty = !1;
|
|
7462
7512
|
}), e.set(s), y(s), C.value = /* @__PURE__ */ new Map(), w.value = /* @__PURE__ */ new Set(), T.value = /* @__PURE__ */ new Set(), b.value = !1;
|
|
7463
7513
|
},
|
|
7464
7514
|
reset: (t) => {
|
|
@@ -7509,9 +7559,9 @@ function ju(e) {
|
|
|
7509
7559
|
}
|
|
7510
7560
|
//#endregion
|
|
7511
7561
|
//#region src/labs/listEditor/composables/useListEditorStateScope.ts
|
|
7512
|
-
var
|
|
7513
|
-
function
|
|
7514
|
-
let e = `les${++
|
|
7562
|
+
var ad = Symbol("le.stateScope"), od = 0;
|
|
7563
|
+
function sd() {
|
|
7564
|
+
let e = `les${++od}`, t = /* @__PURE__ */ new Map(), n = d(), r = (e, n) => {
|
|
7515
7565
|
n.children?.dispose(), n.scope.stop(), t.delete(e);
|
|
7516
7566
|
}, i = {
|
|
7517
7567
|
id: e,
|
|
@@ -7533,7 +7583,7 @@ function Pu() {
|
|
|
7533
7583
|
},
|
|
7534
7584
|
childScope(e) {
|
|
7535
7585
|
let n = t.get(e);
|
|
7536
|
-
return n ? (n.children ||= n.scope.run(() =>
|
|
7586
|
+
return n ? (n.children ||= n.scope.run(() => sd()) ?? null, n.children) : null;
|
|
7537
7587
|
},
|
|
7538
7588
|
prefixFor(t) {
|
|
7539
7589
|
return `${e}:${String(t)}`;
|
|
@@ -7558,11 +7608,11 @@ function Pu() {
|
|
|
7558
7608
|
};
|
|
7559
7609
|
return p() && D(() => i.dispose()), i;
|
|
7560
7610
|
}
|
|
7561
|
-
function
|
|
7562
|
-
let t = e ??
|
|
7563
|
-
return A(
|
|
7611
|
+
function cd(e) {
|
|
7612
|
+
let t = e ?? sd();
|
|
7613
|
+
return A(ad, t), t;
|
|
7564
7614
|
}
|
|
7565
|
-
var
|
|
7615
|
+
var ld = (e) => {
|
|
7566
7616
|
let t = e.get();
|
|
7567
7617
|
return {
|
|
7568
7618
|
...e,
|
|
@@ -7570,10 +7620,10 @@ var Iu = (e) => {
|
|
|
7570
7620
|
set: () => void 0
|
|
7571
7621
|
};
|
|
7572
7622
|
};
|
|
7573
|
-
function
|
|
7574
|
-
let n = h(
|
|
7623
|
+
function ud(e, t) {
|
|
7624
|
+
let n = h(ad, null);
|
|
7575
7625
|
if (!e || !n) return null;
|
|
7576
|
-
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) =>
|
|
7626
|
+
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) => Zu({
|
|
7577
7627
|
get: () => e.value.get(),
|
|
7578
7628
|
set: (t) => e.value.set(t),
|
|
7579
7629
|
factory: (() => e.value.factory?.()),
|
|
@@ -7582,15 +7632,15 @@ function Lu(e, t) {
|
|
|
7582
7632
|
dirtyExclude: () => oe(e.value.dirtyExclude) ?? [],
|
|
7583
7633
|
validate: (t) => e.value.validate?.(t) ?? !0
|
|
7584
7634
|
}), r);
|
|
7585
|
-
return f() && T(() => n.release(e, r,
|
|
7635
|
+
return f() && T(() => n.release(e, r, ld)), {
|
|
7586
7636
|
handle: i,
|
|
7587
7637
|
childScope: n.childScope(e)
|
|
7588
7638
|
};
|
|
7589
7639
|
}
|
|
7590
|
-
function
|
|
7591
|
-
let n = h(
|
|
7640
|
+
function dd(e, t) {
|
|
7641
|
+
let n = h(ad, null);
|
|
7592
7642
|
if (!e || !n) return null;
|
|
7593
|
-
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) =>
|
|
7643
|
+
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) => id({
|
|
7594
7644
|
get: () => e.value.get(),
|
|
7595
7645
|
set: (t) => e.value.set(t),
|
|
7596
7646
|
factory: (() => e.value.factory?.()),
|
|
@@ -7601,22 +7651,22 @@ function Ru(e, t) {
|
|
|
7601
7651
|
dirtyExclude: () => oe(e.value.dirtyExclude) ?? [],
|
|
7602
7652
|
validate: (t) => e.value.validate?.(t) ?? !0
|
|
7603
7653
|
}), r);
|
|
7604
|
-
return f() && T(() => n.release(e, r,
|
|
7654
|
+
return f() && T(() => n.release(e, r, ld)), {
|
|
7605
7655
|
handle: i,
|
|
7606
7656
|
childScope: n.childScope(e)
|
|
7607
7657
|
};
|
|
7608
7658
|
}
|
|
7609
7659
|
//#endregion
|
|
7610
7660
|
//#region src/labs/listEditor/composables/resolveCompactText.ts
|
|
7611
|
-
function
|
|
7661
|
+
function fd(e, t) {
|
|
7612
7662
|
if (!t.compactField) return "";
|
|
7613
7663
|
let n = e[t.compactField];
|
|
7614
7664
|
return n == null || n === "" ? "" : String(n);
|
|
7615
7665
|
}
|
|
7616
7666
|
//#endregion
|
|
7617
7667
|
//#region src/labs/unsavedGuard/useUnsavedSection.ts
|
|
7618
|
-
var
|
|
7619
|
-
function
|
|
7668
|
+
var pd = Symbol("unsaved.sections");
|
|
7669
|
+
function md() {
|
|
7620
7670
|
let e = j(/* @__PURE__ */ new Map());
|
|
7621
7671
|
return {
|
|
7622
7672
|
register(t, n) {
|
|
@@ -7632,12 +7682,12 @@ function Vu() {
|
|
|
7632
7682
|
})
|
|
7633
7683
|
};
|
|
7634
7684
|
}
|
|
7635
|
-
function
|
|
7636
|
-
let e =
|
|
7637
|
-
return f() && A(
|
|
7685
|
+
function hd() {
|
|
7686
|
+
let e = md();
|
|
7687
|
+
return f() && A(pd, e), e;
|
|
7638
7688
|
}
|
|
7639
|
-
function
|
|
7640
|
-
let t = h(
|
|
7689
|
+
function gd(e) {
|
|
7690
|
+
let t = h(pd, null);
|
|
7641
7691
|
if (!t || !f()) return;
|
|
7642
7692
|
let r = Symbol("unsaved.section"), i = n(() => {
|
|
7643
7693
|
let t = e();
|
|
@@ -7647,7 +7697,7 @@ function Uu(e) {
|
|
|
7647
7697
|
}
|
|
7648
7698
|
//#endregion
|
|
7649
7699
|
//#region src/labs/listEditor/composables/useDeleteDialog.ts
|
|
7650
|
-
function
|
|
7700
|
+
function _d(e) {
|
|
7651
7701
|
let t = M(!1), n = M(null), r = M(!1), i = M(null), a = async (t) => {
|
|
7652
7702
|
if (i.value = null, e.onDeleteConfirm && !await e.onDeleteConfirm(t.raw)) return !1;
|
|
7653
7703
|
if (e.onDelete) {
|
|
@@ -7684,7 +7734,7 @@ function Wu(e) {
|
|
|
7684
7734
|
}
|
|
7685
7735
|
//#endregion
|
|
7686
7736
|
//#region src/labs/listEditor/composables/useInlineEditing.ts
|
|
7687
|
-
function
|
|
7737
|
+
function vd(e) {
|
|
7688
7738
|
let t = M(/* @__PURE__ */ new Set()), n = M(/* @__PURE__ */ new Map()), r = M(!1);
|
|
7689
7739
|
return L(e.watchKeys, (i, a) => {
|
|
7690
7740
|
if (!r.value) return;
|
|
@@ -7727,14 +7777,14 @@ function Gu(e) {
|
|
|
7727
7777
|
}
|
|
7728
7778
|
//#endregion
|
|
7729
7779
|
//#region src/labs/listEditor/utils/revealInvalidRows.ts
|
|
7730
|
-
function
|
|
7780
|
+
function yd(e, t) {
|
|
7731
7781
|
let n = e.validateAll();
|
|
7732
7782
|
if (!n) for (let n of e.invalidKeys.value) t(n);
|
|
7733
7783
|
return n;
|
|
7734
7784
|
}
|
|
7735
7785
|
//#endregion
|
|
7736
7786
|
//#region src/labs/listEditor/composables/useListEditorScopeValidity.ts
|
|
7737
|
-
function
|
|
7787
|
+
function bd(e) {
|
|
7738
7788
|
let { hasErrors: t, validationScope: n, reveal: r, validateProvided: i } = e;
|
|
7739
7789
|
if (n === void 0 || n === !1) return;
|
|
7740
7790
|
n === !0 && console.warn("[list-editor] `:validation-scope=\"true\"` uses vuelidate’s GLOBAL scope. If your save gate collects a NAMED scope (useVuelidate({ $scope: someSymbol })), this editor’s validity is NOT collected by it and the gate won’t block. Pass the SAME scope value your collector uses."), i || console.warn("[list-editor] `:validation-scope` is set but `:validate` is missing. The scope save-gate bridges the editor’s aggregate `hasErrors`, which is driven only by `:validate`; without it the gate never blocks (hasErrors stays false). Pass `:validate` so collapsed/invalid rows block the consumer save, or drop `:validation-scope` if you gate validity yourself.");
|
|
@@ -7745,8 +7795,8 @@ function qu(e) {
|
|
|
7745
7795
|
}
|
|
7746
7796
|
//#endregion
|
|
7747
7797
|
//#region src/labs/listEditor/composables/useReorderMode.ts
|
|
7748
|
-
var
|
|
7749
|
-
function
|
|
7798
|
+
var xd = Symbol("le.sharedReorderRegistry");
|
|
7799
|
+
function Sd(e) {
|
|
7750
7800
|
let t = M(!1), r = M(null), i = n(() => e.mode.value === "reorder"), a = n(() => e.movedKeys.value.size), o = n(() => a.value > 0), s = () => e.clonePayload ? e.clonePayload(e.modelValue.value) : e.cloneModel(e.modelValue.value), c = () => e.embedded?.value === !0;
|
|
7751
7801
|
return L(e.mode, (n, i) => {
|
|
7752
7802
|
n === "reorder" && i !== "reorder" && (!c() && !e.snapshot.value && (e.snapshot.value = e.cloneModel(e.modelValue.value)), e.movedKeys.value = /* @__PURE__ */ new Set(), e.onExternalEnter?.()), n === "view" && i === "reorder" && (e.snapshot.value ? (e.snapshot.value = null, e.movedKeys.value = /* @__PURE__ */ new Set(), r.value = null, t.value = !1) : c() && (e.movedKeys.value = /* @__PURE__ */ new Set(), r.value = null, t.value = !1, e.onEmbeddedExit?.()));
|
|
@@ -7781,7 +7831,7 @@ function Yu(e) {
|
|
|
7781
7831
|
}
|
|
7782
7832
|
//#endregion
|
|
7783
7833
|
//#region src/labs/listEditor/internal/LeDeleteDialog.vue
|
|
7784
|
-
var
|
|
7834
|
+
var Cd = /* @__PURE__ */ u({
|
|
7785
7835
|
__name: "LeDeleteDialog",
|
|
7786
7836
|
props: /*@__PURE__*/ y({
|
|
7787
7837
|
title: {},
|
|
@@ -7858,10 +7908,10 @@ var Xu = /* @__PURE__ */ u({
|
|
|
7858
7908
|
_: 1
|
|
7859
7909
|
}, 8, ["modelValue", "persistent"]));
|
|
7860
7910
|
}
|
|
7861
|
-
}),
|
|
7911
|
+
}), wd = {
|
|
7862
7912
|
key: 0,
|
|
7863
7913
|
class: "text-body-medium mb-3"
|
|
7864
|
-
},
|
|
7914
|
+
}, Td = /* @__PURE__ */ u({
|
|
7865
7915
|
__name: "LeMoveToPositionDialog",
|
|
7866
7916
|
props: /*@__PURE__*/ y({
|
|
7867
7917
|
total: {},
|
|
@@ -7900,7 +7950,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
7900
7950
|
_: 1
|
|
7901
7951
|
}),
|
|
7902
7952
|
l(we, null, {
|
|
7903
|
-
default: R(() => [e.itemLabel ? (k(), a("p",
|
|
7953
|
+
default: R(() => [e.itemLabel ? (k(), a("p", wd, F(I(d)("common.sortable.moveToPosition.itemDescription", { label: e.itemLabel })), 1)) : i("", !0), l(Be, {
|
|
7904
7954
|
modelValue: f.value,
|
|
7905
7955
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e,
|
|
7906
7956
|
modelModifiers: { number: !0 },
|
|
@@ -7955,7 +8005,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
7955
8005
|
_: 1
|
|
7956
8006
|
}, 8, ["modelValue"]));
|
|
7957
8007
|
}
|
|
7958
|
-
}),
|
|
8008
|
+
}), Ed = { class: "a-le-empty" }, Dd = { class: "a-le-empty-title" }, Od = /* @__PURE__ */ u({
|
|
7959
8009
|
__name: "LeEmptyState",
|
|
7960
8010
|
props: {
|
|
7961
8011
|
title: {},
|
|
@@ -7968,7 +8018,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
7968
8018
|
emits: ["add"],
|
|
7969
8019
|
setup(e) {
|
|
7970
8020
|
let { t } = he();
|
|
7971
|
-
return (n, s) => (k(), a("div",
|
|
8021
|
+
return (n, s) => (k(), a("div", Ed, [o("h3", Dd, F(e.title), 1), e.addLabel && e.canAdd ? (k(), r(V, {
|
|
7972
8022
|
key: 0,
|
|
7973
8023
|
color: "primary",
|
|
7974
8024
|
variant: "flat",
|
|
@@ -7979,16 +8029,16 @@ var Xu = /* @__PURE__ */ u({
|
|
|
7979
8029
|
_: 1
|
|
7980
8030
|
})) : i("", !0)]));
|
|
7981
8031
|
}
|
|
7982
|
-
}),
|
|
8032
|
+
}), kd = { class: "a-le-toolbar-status" }, Ad = {
|
|
7983
8033
|
key: 1,
|
|
7984
8034
|
class: "text-body-small"
|
|
7985
|
-
},
|
|
8035
|
+
}, jd = {
|
|
7986
8036
|
key: 2,
|
|
7987
8037
|
class: "text-body-small"
|
|
7988
|
-
},
|
|
8038
|
+
}, Md = {
|
|
7989
8039
|
key: 3,
|
|
7990
8040
|
class: "text-body-small text-medium-emphasis"
|
|
7991
|
-
},
|
|
8041
|
+
}, Nd = /* @__PURE__ */ u({
|
|
7992
8042
|
__name: "LeStatus",
|
|
7993
8043
|
props: {
|
|
7994
8044
|
hasPendingChanges: { type: Boolean },
|
|
@@ -7997,14 +8047,14 @@ var Xu = /* @__PURE__ */ u({
|
|
|
7997
8047
|
},
|
|
7998
8048
|
setup(e) {
|
|
7999
8049
|
let { t } = he();
|
|
8000
|
-
return (n, o) => (k(), a("div",
|
|
8050
|
+
return (n, o) => (k(), a("div", kd, [e.hasPendingChanges ? (k(), r(B, {
|
|
8001
8051
|
key: 0,
|
|
8002
8052
|
icon: "mdi-circle-medium",
|
|
8003
8053
|
color: "warning",
|
|
8004
8054
|
size: "18"
|
|
8005
|
-
})) : i("", !0), e.error ? (k(), a("span",
|
|
8055
|
+
})) : i("", !0), e.error ? (k(), a("span", Ad, F(e.error), 1)) : e.hasPendingChanges ? (k(), a("span", jd, F(I(t)("common.sortable.pendingChanges", { count: e.pendingCount })), 1)) : (k(), a("span", Md, F(I(t)("common.sortable.noPendingChanges")), 1))]));
|
|
8006
8056
|
}
|
|
8007
|
-
}),
|
|
8057
|
+
}), Pd = ["title"], Fd = /* @__PURE__ */ u({
|
|
8008
8058
|
__name: "LeUnsavedLabel",
|
|
8009
8059
|
props: {
|
|
8010
8060
|
label: { default: null },
|
|
@@ -8021,9 +8071,9 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8021
8071
|
}, [l(B, {
|
|
8022
8072
|
icon: "mdi-circle-medium",
|
|
8023
8073
|
size: "12"
|
|
8024
|
-
}), t.dotOnly ? i("", !0) : (k(), a(e, { key: 0 }, [c(F(t.label ?? I(n)("common.sortable.unsaved")), 1)], 64))], 10,
|
|
8074
|
+
}), t.dotOnly ? i("", !0) : (k(), a(e, { key: 0 }, [c(F(t.label ?? I(n)("common.sortable.unsaved")), 1)], 64))], 10, Pd));
|
|
8025
8075
|
}
|
|
8026
|
-
}),
|
|
8076
|
+
}), Id = /* @__PURE__ */ u({
|
|
8027
8077
|
__name: "LeDragHandle",
|
|
8028
8078
|
setup(e) {
|
|
8029
8079
|
return (e, t) => (k(), r(B, {
|
|
@@ -8032,45 +8082,45 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8032
8082
|
size: "20"
|
|
8033
8083
|
}));
|
|
8034
8084
|
}
|
|
8035
|
-
}),
|
|
8085
|
+
}), Ld = "a-le-row--ghost", Rd = "a-le-row--chosen", zd = "a-le-row--drag", Bd = { class: "a-le-card" }, Vd = {
|
|
8036
8086
|
key: 0,
|
|
8037
8087
|
class: "a-le-header"
|
|
8038
|
-
},
|
|
8088
|
+
}, Hd = {
|
|
8039
8089
|
key: 0,
|
|
8040
8090
|
class: "a-le-title-heading"
|
|
8041
|
-
},
|
|
8091
|
+
}, Ud = ["data-unsaved-count"], Wd = { class: "a-le-header-actions" }, Gd = {
|
|
8042
8092
|
key: 1,
|
|
8043
8093
|
class: "a-le-state a-le-state--loading"
|
|
8044
|
-
},
|
|
8094
|
+
}, Kd = {
|
|
8045
8095
|
key: 2,
|
|
8046
8096
|
class: "a-le-state a-le-state--error"
|
|
8047
|
-
},
|
|
8097
|
+
}, qd = {
|
|
8048
8098
|
key: 3,
|
|
8049
8099
|
class: "a-le-view-body"
|
|
8050
|
-
},
|
|
8100
|
+
}, Jd = {
|
|
8051
8101
|
key: 4,
|
|
8052
8102
|
class: "a-le-state a-le-state--empty"
|
|
8053
|
-
},
|
|
8103
|
+
}, Yd = [
|
|
8054
8104
|
"data-id",
|
|
8055
8105
|
"tabindex",
|
|
8056
8106
|
"onKeydown"
|
|
8057
|
-
],
|
|
8107
|
+
], Xd = ["onClick"], Zd = { class: "a-le-row-main" }, Qd = { class: "a-le-title" }, $d = {
|
|
8058
8108
|
key: 1,
|
|
8059
8109
|
class: "a-le-status"
|
|
8060
|
-
},
|
|
8110
|
+
}, ef = {
|
|
8061
8111
|
key: 0,
|
|
8062
8112
|
class: "a-le-status-badge"
|
|
8063
|
-
},
|
|
8113
|
+
}, tf = { class: "a-le-actions" }, nf = { class: "a-le-row-body" }, rf = { class: "a-le-form" }, af = {
|
|
8064
8114
|
key: 0,
|
|
8065
8115
|
class: "a-le-row-footer"
|
|
8066
|
-
},
|
|
8116
|
+
}, of = {
|
|
8067
8117
|
key: 1,
|
|
8068
8118
|
class: "a-le-row-body"
|
|
8069
|
-
},
|
|
8119
|
+
}, sf = { class: "a-le-form" }, cf = {
|
|
8070
8120
|
class: "a-le-sr-only",
|
|
8071
8121
|
"aria-live": "polite",
|
|
8072
8122
|
role: "status"
|
|
8073
|
-
},
|
|
8123
|
+
}, lf = /* @__PURE__ */ u({
|
|
8074
8124
|
__name: "ASortableListEditor",
|
|
8075
8125
|
props: /*@__PURE__*/ y({
|
|
8076
8126
|
factory: {
|
|
@@ -8217,7 +8267,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8217
8267
|
"reorder-end"
|
|
8218
8268
|
], ["update:modelValue", "update:mode"]),
|
|
8219
8269
|
setup(t, { expose: s, emit: u }) {
|
|
8220
|
-
let d = t, f = u, p = se(t, "modelValue"), g = se(t, "mode"), { t: v } = he(), y = ce(), w = le("rootEl"), { isNarrow: E } =
|
|
8270
|
+
let d = t, f = u, p = se(t, "modelValue"), g = se(t, "mode"), { t: v } = he(), y = ce(), w = le("rootEl"), { isNarrow: E } = Vu(w), D = Hu(), O = Uu(), j = {
|
|
8221
8271
|
get: () => p.value,
|
|
8222
8272
|
set: (e) => p.value = e,
|
|
8223
8273
|
factory: d.factory,
|
|
@@ -8225,7 +8275,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8225
8275
|
position: d.position,
|
|
8226
8276
|
dirtyExclude: () => d.dirtyExclude ?? [],
|
|
8227
8277
|
validate: d.validate
|
|
8228
|
-
}, te = d.editor ? null :
|
|
8278
|
+
}, te = d.editor ? null : ud(d.stateKey, j), P = d.editor ?? te?.handle ?? Zu(j), ie = d.getKey ?? "id", ae = cd(te?.childScope ?? null), oe = (e) => typeof ie == "function" ? ie(e) : e[ie], ue = n(() => {
|
|
8229
8279
|
let e = d.position;
|
|
8230
8280
|
return e === void 0 || e === !1 ? "position" : typeof e == "object" ? e.field : e;
|
|
8231
8281
|
}), de = n(() => p.value.map((e, t) => ({
|
|
@@ -8235,7 +8285,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8235
8285
|
position: e[ue.value]
|
|
8236
8286
|
})));
|
|
8237
8287
|
L(() => de.value.map((e) => String(e.key)).join("|"), () => ae.retainOwners(de.value.map((e) => e.key)), { flush: "post" });
|
|
8238
|
-
let fe = M(/* @__PURE__ */ new Set()), pe = M(/* @__PURE__ */ new Set()), me = M(/* @__PURE__ */ new Set()), ge = M(/* @__PURE__ */ new Set()), _e = M(/* @__PURE__ */ new Set()), ve = M(/* @__PURE__ */ new Set()), ye = re(null), Se = le("rowsContainer"), Ce = n(() => !d.chips && !!y.item), we = n(() => !d.chips && !!y["item-readonly"]), { editingKeys: Te, editingSnapshots: Ee, clearEditing: Oe, beginEdit: ke, cancelEdit: Ae, commitEdit: je, closeEdit: Me, requestAutoOpen: Ne } =
|
|
8288
|
+
let fe = M(/* @__PURE__ */ new Set()), pe = M(/* @__PURE__ */ new Set()), me = M(/* @__PURE__ */ new Set()), ge = M(/* @__PURE__ */ new Set()), _e = M(/* @__PURE__ */ new Set()), ve = M(/* @__PURE__ */ new Set()), ye = re(null), Se = le("rowsContainer"), Ce = n(() => !d.chips && !!y.item), we = n(() => !d.chips && !!y["item-readonly"]), { editingKeys: Te, editingSnapshots: Ee, clearEditing: Oe, beginEdit: ke, cancelEdit: Ae, commitEdit: je, closeEdit: Me, requestAutoOpen: Ne } = vd({
|
|
8239
8289
|
rowsContainer: Se,
|
|
8240
8290
|
rowSelector: ".a-le-row",
|
|
8241
8291
|
isInlineEdit: Ce,
|
|
@@ -8248,7 +8298,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8248
8298
|
afterAutoOpen: (e) => {
|
|
8249
8299
|
fe.value.delete(e);
|
|
8250
8300
|
}
|
|
8251
|
-
}), Pe = n(() => !d.readonly && !d.disabled && !d.loading), Fe = n(() => Pe.value && !d.disableReorder && p.value.length > 1), Ie = n(() => d.embedded), Le = n(() => d.allowEditInReorder), { applying: Re, applyError: ze, hasPendingChanges: Be, movedCount: Ve, reorderMode: He, enterReorderMode: qe, cancelReorderMode: Je, applyReorder: Ye } =
|
|
8301
|
+
}), Pe = n(() => !d.readonly && !d.disabled && !d.loading), Fe = n(() => Pe.value && !d.disableReorder && p.value.length > 1), Ie = n(() => d.embedded), Le = n(() => d.allowEditInReorder), { applying: Re, applyError: ze, hasPendingChanges: Be, movedCount: Ve, reorderMode: He, enterReorderMode: qe, cancelReorderMode: Je, applyReorder: Ye } = Sd({
|
|
8252
8302
|
mode: g,
|
|
8253
8303
|
snapshot: ye,
|
|
8254
8304
|
movedKeys: pe,
|
|
@@ -8286,7 +8336,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8286
8336
|
reorderEnd: () => f("reorder-end")
|
|
8287
8337
|
}
|
|
8288
8338
|
}), Xe = d.embedded ? null : ne(/* @__PURE__ */ new Map());
|
|
8289
|
-
Xe && A(
|
|
8339
|
+
Xe && A(xd, {
|
|
8290
8340
|
register: (e, t, n, r) => {
|
|
8291
8341
|
Xe.set(e, {
|
|
8292
8342
|
count: t,
|
|
@@ -8310,7 +8360,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8310
8360
|
return !1;
|
|
8311
8361
|
}), $e = n(() => Ze.value + me.value.size + _e.value.size), et = n(() => Qe.value || me.value.size > 0 || _e.value.size > 0);
|
|
8312
8362
|
if (d.embedded) {
|
|
8313
|
-
let e = h(
|
|
8363
|
+
let e = h(xd, null);
|
|
8314
8364
|
if (e) {
|
|
8315
8365
|
let t = Symbol("le.embedded");
|
|
8316
8366
|
e.register(t, $e, et, () => xt()), T(() => e.unregister(t));
|
|
@@ -8349,17 +8399,17 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8349
8399
|
t && ke(t);
|
|
8350
8400
|
}, bt = () => {
|
|
8351
8401
|
if (Ce.value) for (let e of gt.value) ke(e);
|
|
8352
|
-
}, xt = () =>
|
|
8402
|
+
}, xt = () => yd(P, (e) => {
|
|
8353
8403
|
let t = de.value.find((t) => t.key === e);
|
|
8354
8404
|
t && ke(t);
|
|
8355
8405
|
});
|
|
8356
|
-
|
|
8406
|
+
bd({
|
|
8357
8407
|
hasErrors: P.hasErrors,
|
|
8358
8408
|
validationScope: d.validationScope,
|
|
8359
8409
|
validateProvided: d.validate !== void 0,
|
|
8360
8410
|
reveal: xt
|
|
8361
8411
|
});
|
|
8362
|
-
let St =
|
|
8412
|
+
let St = Wu({
|
|
8363
8413
|
viewItems: n(() => gt.value.map((e) => ({ key: e.key }))),
|
|
8364
8414
|
variant: "sortable",
|
|
8365
8415
|
isReorderMode: He,
|
|
@@ -8395,16 +8445,16 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8395
8445
|
}, Dt = (e) => {
|
|
8396
8446
|
let t = wt.value;
|
|
8397
8447
|
wt.value = null, t && e !== t.index && (P.moveItem(t.index, e), mt(t.key));
|
|
8398
|
-
}, Ot = (e) =>
|
|
8448
|
+
}, Ot = (e) => fd(e, { compactField: d.compactField }), kt = Ul(Se, p, {
|
|
8399
8449
|
watchElement: !0,
|
|
8400
8450
|
handle: ".a-le-drag-handle",
|
|
8401
8451
|
animation: 150,
|
|
8402
8452
|
forceFallback: !0,
|
|
8403
8453
|
fallbackTolerance: 3,
|
|
8404
8454
|
fallbackOnBody: !0,
|
|
8405
|
-
ghostClass:
|
|
8406
|
-
chosenClass:
|
|
8407
|
-
dragClass:
|
|
8455
|
+
ghostClass: Ld,
|
|
8456
|
+
chosenClass: Rd,
|
|
8457
|
+
dragClass: zd,
|
|
8408
8458
|
disabled: !nt.value,
|
|
8409
8459
|
onUpdate: (e) => {
|
|
8410
8460
|
let { oldIndex: t, newIndex: n, item: r, from: i } = e;
|
|
@@ -8453,7 +8503,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8453
8503
|
}
|
|
8454
8504
|
d.readonly && we.value ? W(e) : U(e);
|
|
8455
8505
|
}
|
|
8456
|
-
}, { deleteDialog: G, deleteInFlight: Nt, deleteError: Pt, onDeleteClick: Ft, onDeleteDialogConfirm: It, onDeleteDialogCancel: Lt } =
|
|
8506
|
+
}, { deleteDialog: G, deleteInFlight: Nt, deleteError: Pt, onDeleteClick: Ft, onDeleteDialogConfirm: It, onDeleteDialogCancel: Lt } = _d({
|
|
8457
8507
|
onDeleteConfirm: (e) => !d.onDeleteConfirm || d.onDeleteConfirm(e),
|
|
8458
8508
|
onDelete: (e) => d.onDelete?.(e),
|
|
8459
8509
|
onDeleted: (e) => {
|
|
@@ -8580,7 +8630,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8580
8630
|
exitReorderMode: Je
|
|
8581
8631
|
}
|
|
8582
8632
|
}));
|
|
8583
|
-
return
|
|
8633
|
+
return gd(() => d.unsavedSectionLabel ? {
|
|
8584
8634
|
label: d.unsavedSectionLabel,
|
|
8585
8635
|
dirty: P.hasUnsaved.value
|
|
8586
8636
|
} : []), s({
|
|
@@ -8617,16 +8667,16 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8617
8667
|
}
|
|
8618
8668
|
]])
|
|
8619
8669
|
}, [
|
|
8620
|
-
o("div",
|
|
8621
|
-
dt.value ? (k(), a("div",
|
|
8622
|
-
t.title ? (k(), a("h3",
|
|
8670
|
+
o("div", Bd, [
|
|
8671
|
+
dt.value ? (k(), a("div", Vd, [N(n.$slots, "header", b({ title: t.title }, Qt.value), () => [
|
|
8672
|
+
t.title ? (k(), a("h3", Hd, F(t.title), 1)) : i("", !0),
|
|
8623
8673
|
!I(He) && ut.value ? (k(), a("span", {
|
|
8624
8674
|
key: 1,
|
|
8625
8675
|
class: "a-le-unsaved-count",
|
|
8626
8676
|
"data-unsaved-count": I(lt)
|
|
8627
|
-
}, F(I(v)("common.sortable.pendingChanges", { count: I(lt) })), 9,
|
|
8628
|
-
o("div",
|
|
8629
|
-
l(
|
|
8677
|
+
}, F(I(v)("common.sortable.pendingChanges", { count: I(lt) })), 9, Ud)) : i("", !0),
|
|
8678
|
+
o("div", Wd, [I(He) && !t.embedded ? N(n.$slots, "reorder-toolbar", C(m(Zt.value)), () => [
|
|
8679
|
+
l(Nd, {
|
|
8630
8680
|
class: S({ "a-le-toolbar-status--pending": et.value }),
|
|
8631
8681
|
"has-pending-changes": et.value,
|
|
8632
8682
|
"pending-count": $e.value,
|
|
@@ -8693,11 +8743,11 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8693
8743
|
_: 1
|
|
8694
8744
|
}, 8, ["disabled", "onClick"]))], void 0, 1) : i("", !0)])
|
|
8695
8745
|
])])) : i("", !0),
|
|
8696
|
-
t.loading ? (k(), a("div",
|
|
8746
|
+
t.loading ? (k(), a("div", Gd, [l(xe, {
|
|
8697
8747
|
indeterminate: "",
|
|
8698
8748
|
color: "primary",
|
|
8699
8749
|
size: "32"
|
|
8700
|
-
})])) : t.error ? (k(), a("div",
|
|
8750
|
+
})])) : t.error ? (k(), a("div", Kd, [l(be, {
|
|
8701
8751
|
type: "error",
|
|
8702
8752
|
variant: "tonal",
|
|
8703
8753
|
density: "compact",
|
|
@@ -8705,15 +8755,15 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8705
8755
|
}, {
|
|
8706
8756
|
default: R(() => [c(F(t.error), 1)]),
|
|
8707
8757
|
_: 1
|
|
8708
|
-
})])) : !I(He) && n.$slots["view-body"] ? (k(), a("div",
|
|
8758
|
+
})])) : !I(He) && n.$slots["view-body"] ? (k(), a("div", qd, [N(n.$slots, "view-body", {
|
|
8709
8759
|
items: p.value,
|
|
8710
8760
|
mode: g.value,
|
|
8711
8761
|
actions: { enterReorderMode: I(qe) }
|
|
8712
|
-
})])) : _t.value ? (k(), a("div",
|
|
8762
|
+
})])) : _t.value ? (k(), a("div", Jd, [N(n.$slots, "empty", {
|
|
8713
8763
|
readonly: t.readonly,
|
|
8714
8764
|
disabled: t.disabled,
|
|
8715
8765
|
actions: { add: At }
|
|
8716
|
-
}, () => [l(
|
|
8766
|
+
}, () => [l(Od, {
|
|
8717
8767
|
title: it.value,
|
|
8718
8768
|
"add-label": rt.value,
|
|
8719
8769
|
"can-add": tt.value,
|
|
@@ -8751,13 +8801,13 @@ var Xu = /* @__PURE__ */ u({
|
|
|
8751
8801
|
class: "a-le-row-header",
|
|
8752
8802
|
onClick: (e) => Mt(u)
|
|
8753
8803
|
}, [
|
|
8754
|
-
nt.value ? (k(), r(
|
|
8755
|
-
o("div",
|
|
8804
|
+
nt.value ? (k(), r(Id, { key: 0 })) : i("", !0),
|
|
8805
|
+
o("div", Zd, [N(n.$slots, "item-compact", b({ ref_for: !0 }, Xt(u)), () => [o("span", Qd, F(Ot(u.raw)), 1)]), u.unsaved ? (k(), r(Fd, {
|
|
8756
8806
|
key: 0,
|
|
8757
8807
|
"dot-only": t.chips
|
|
8758
8808
|
}, null, 8, ["dot-only"])) : i("", !0)]),
|
|
8759
|
-
!t.chips && !I(He) ? (k(), a("div",
|
|
8760
|
-
o("div",
|
|
8809
|
+
!t.chips && !I(He) ? (k(), a("div", $d, [N(n.$slots, "item-status", b({ ref_for: !0 }, Xt(u)), () => [t.statusField && u.raw[t.statusField] != null && u.raw[t.statusField] !== "" ? (k(), a("span", ef, F(u.raw[t.statusField]), 1)) : i("", !0)])])) : i("", !0),
|
|
8810
|
+
o("div", tf, [N(n.$slots, "item-actions", b({ ref_for: !0 }, Xt(u)), () => [t.chips && Pe.value ? (k(), a(e, { key: 0 }, [(!nt.value || I(O)) && !t.disableReorder ? (k(), a(e, { key: 0 }, [l(V, {
|
|
8761
8811
|
icon: "",
|
|
8762
8812
|
size: "x-small",
|
|
8763
8813
|
variant: "text",
|
|
@@ -9002,7 +9052,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
9002
9052
|
_: 2
|
|
9003
9053
|
}, 1024)) : i("", !0)
|
|
9004
9054
|
], 64))])])
|
|
9005
|
-
], 8,
|
|
9055
|
+
], 8, Xd), u.editing && (t.allowEditInReorder || !I(He)) && n.$slots.item ? (k(), a(e, { key: 0 }, [o("div", nf, [o("div", rf, [N(n.$slots, "item", b({ ref_for: !0 }, Xt(u)))])]), N(n.$slots, "item-footer", b({ ref_for: !0 }, Xt(u)), () => [pt.value && !I(He) ? (k(), a("div", af, [
|
|
9006
9056
|
s[2] ||= o("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
9007
9057
|
l(V, {
|
|
9008
9058
|
variant: "text",
|
|
@@ -9022,7 +9072,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
9022
9072
|
default: R(() => [c(F(I(v)("common.button.save")), 1)]),
|
|
9023
9073
|
_: 1
|
|
9024
9074
|
}, 8, ["disabled", "onClick"])
|
|
9025
|
-
])) : i("", !0)])], 64)) : n.$slots["item-readonly"] && (t.readonly || u.expanded) && (t.allowEditInReorder || !I(He)) ? (k(), a("div",
|
|
9075
|
+
])) : i("", !0)])], 64)) : n.$slots["item-readonly"] && (t.readonly || u.expanded) && (t.allowEditInReorder || !I(He)) ? (k(), a("div", of, [o("div", sf, [N(n.$slots, "item-readonly", b({ ref_for: !0 }, Xt(u)))])])) : i("", !0)], 42, Yd),
|
|
9026
9076
|
N(n.$slots, "after-item", b({ ref_for: !0 }, Xt(u)))
|
|
9027
9077
|
]))), 128))], 512)),
|
|
9028
9078
|
tt.value && !t.loading && !t.error && !_t.value ? N(n.$slots, "add-button", {
|
|
@@ -9039,7 +9089,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
9039
9089
|
size: "18"
|
|
9040
9090
|
}), o("span", null, F(rt.value), 1)])], void 0, 6) : i("", !0)
|
|
9041
9091
|
]),
|
|
9042
|
-
l(
|
|
9092
|
+
l(Td, {
|
|
9043
9093
|
modelValue: Ct.value,
|
|
9044
9094
|
"onUpdate:modelValue": s[0] ||= (e) => Ct.value = e,
|
|
9045
9095
|
total: gt.value.length,
|
|
@@ -9052,7 +9102,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
9052
9102
|
"current-index",
|
|
9053
9103
|
"item-label"
|
|
9054
9104
|
]),
|
|
9055
|
-
l(
|
|
9105
|
+
l(Cd, {
|
|
9056
9106
|
modelValue: I(G),
|
|
9057
9107
|
"onUpdate:modelValue": s[1] ||= (e) => _(G) ? G.value = e : null,
|
|
9058
9108
|
title: at.value,
|
|
@@ -9074,19 +9124,19 @@ var Xu = /* @__PURE__ */ u({
|
|
|
9074
9124
|
"onConfirm",
|
|
9075
9125
|
"onCancel"
|
|
9076
9126
|
]),
|
|
9077
|
-
o("div",
|
|
9127
|
+
o("div", cf, F(I(St).grabbedKey.value === null ? "" : I(v)("common.sortable.keyboardGrab.status", {
|
|
9078
9128
|
n: I(St).grabbedIndex.value + 1,
|
|
9079
9129
|
total: I(St).totalCount.value
|
|
9080
9130
|
})), 1)
|
|
9081
9131
|
], 2));
|
|
9082
9132
|
}
|
|
9083
|
-
}),
|
|
9133
|
+
}), uf = {
|
|
9084
9134
|
key: 0,
|
|
9085
9135
|
class: "font-italic pl-1"
|
|
9086
|
-
},
|
|
9136
|
+
}, df = {
|
|
9087
9137
|
key: 0,
|
|
9088
9138
|
class: "required"
|
|
9089
|
-
},
|
|
9139
|
+
}, ff = 300, pf = /* @__PURE__ */ u({
|
|
9090
9140
|
__name: "AFormRemoteAutocomplete",
|
|
9091
9141
|
props: /*@__PURE__*/ y({
|
|
9092
9142
|
label: { default: void 0 },
|
|
@@ -9183,7 +9233,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
9183
9233
|
if (H(te) || H(P) || H(u.v?.$path)) return "";
|
|
9184
9234
|
let { end: e } = Gt(u.v?.$path, ".");
|
|
9185
9235
|
return ee(te + "." + P + ".model." + e);
|
|
9186
|
-
}), ae = n(() => U(u.required) ? u.required : u.v?.required && u.v?.required.$params.type === "required"), oe = n(() => U(u.disabled) ? u.disabled : !!E.value), { pagination: I } =
|
|
9236
|
+
}), ae = n(() => U(u.required) ? u.required : u.v?.required && u.v?.required.$params.type === "required"), oe = n(() => U(u.disabled) ? u.disabled : !!E.value), { pagination: I } = Zo(W(v) ? null : v.key, v?.order), ce = M([]), le = M([]), ue = M(!0), de = M(!1), fe = n(() => {
|
|
9187
9237
|
let e = /* @__PURE__ */ new Map(), t = (t) => {
|
|
9188
9238
|
t.forEach((t) => {
|
|
9189
9239
|
e.set(t.value, {
|
|
@@ -9286,7 +9336,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
9286
9336
|
}
|
|
9287
9337
|
j.value++, B(e, j.value), d("searchChangeDebounced", e);
|
|
9288
9338
|
}
|
|
9289
|
-
}, { debounce:
|
|
9339
|
+
}, { debounce: ff }), L(D, (e, t) => {
|
|
9290
9340
|
e !== t && d("searchChange", e);
|
|
9291
9341
|
});
|
|
9292
9342
|
let Oe = (e) => {
|
|
@@ -9347,7 +9397,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
9347
9397
|
disabled: t.props.disabled,
|
|
9348
9398
|
"onClick:close": (e) => De(t.raw)
|
|
9349
9399
|
}, {
|
|
9350
|
-
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span",
|
|
9400
|
+
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span", uf, " (" + F(t.raw.subtitle) + ") ", 1)) : i("", !0)]),
|
|
9351
9401
|
_: 2
|
|
9352
9402
|
}, 1032, [
|
|
9353
9403
|
"closable",
|
|
@@ -9355,7 +9405,7 @@ var Xu = /* @__PURE__ */ u({
|
|
|
9355
9405
|
"disabled",
|
|
9356
9406
|
"onClick:close"
|
|
9357
9407
|
])]),
|
|
9358
|
-
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ae.value + "" }, [c(F(ie.value) + " ", 1), ae.value ? (k(), a("span",
|
|
9408
|
+
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ae.value + "" }, [c(F(ie.value) + " ", 1), ae.value ? (k(), a("span", df)) : i("", !0)]))]),
|
|
9359
9409
|
_: 2
|
|
9360
9410
|
}, [E.value ? {
|
|
9361
9411
|
name: "append-inner",
|
|
@@ -9387,6 +9437,6 @@ var Xu = /* @__PURE__ */ u({
|
|
|
9387
9437
|
}
|
|
9388
9438
|
});
|
|
9389
9439
|
//#endregion
|
|
9390
|
-
export {
|
|
9440
|
+
export { ds as $, br as $n, G as $r, Li as $t, qu as A, ai as An, Tn as Ar, So as At, ku as B, Wr as Bn, $t as Br, la as Bt, cd as C, mi as Cn, Dn as Cr, Eo as Ct, td as D, ci as Dn, An as Dr, xo as Dt, id as E, li as En, En as Er, vo as Et, Vu as F, qr as Fn, sn as Fr, uo as Ft, iu as G, Vr as Gn, Ht as Gr, sa as Gt, _u as H, Zr as Hn, Zt as Hr, ca as Ht, Bu as I, Gr as In, rn as Ir, lo as It, bs as J, hr as Jn, Kt as Jr, ta as Jt, Ul as K, xr as Kn, Vt as Kr, ra as Kt, zu as L, Yr as Ln, tn as Lr, Ra as Lt, Ku as M, ti as Mn, kn as Mr, go as Mt, Wu as N, $r as Nn, bn as Nr, _o as Nt, Zu as O, si as On, jn as Or, bo as Ot, Hu as P, ei as Pn, Sn as Pr, fo as Pt, hs as Q, vr as Qn, K as Qr, Ui as Qt, Pu as R, Xr as Rn, nn as Rr, da as Rt, sd as S, _i as Sn, wn as Sr, Vo as St, dd as T, fi as Tn, Cn as Tr, yo as Tt, du as U, Ur as Un, Gt as Ur, oa as Ut, vu as V, Jr as Vn, Qt as Vr, ia as Vt, ru as W, Hr as Wn, Wt as Wr, aa as Wt, _s as X, _r as Xn, Yt as Xr, Fi as Xt, gs as Y, mr as Yn, Jt as Yr, Ii as Yt, ms as Z, gr as Zn, Xt as Zr, Qi as Zt, _d as _, Dt as _i, Ci as _n, zn as _r, No as _t, Ld as a, Rt as ai, Vi as an, ar, is as at, fd as b, yi as bn, Mn as br, Po as bt, Nd as c, W as ci, Xi as cn, qn as cr, $o as ct, Cd as d, Mt as di, zi as dn, Bn as dr, Jo as dt, Pt as ei, Yi as en, dr as er, us as et, xd as f, H as fi, Ki as fn, Gn as fr, Yo as ft, vd as g, Tt as gi, wi as gn, Hn as gr, Ho as gt, yd as h, wt as hi, Di as hn, Ln as hr, Go as ht, zd as i, zt as ii, qi as in, sr as ir, as as it, Gu as j, ii as jn, On as jr, To as jt, Xu as k, ri as kn, xn as kr, Co as kt, Od as l, jt as li, Wi as ln, Jn as lr, Qo as lt, bd as m, kt as mi, Ei as mn, Un as mr, Ko as mt, lf as n, Ft as ni, Ji as nn, ur as nr, ss as nt, Id as o, Nt as oi, Ri as on, ir as or, rs as ot, Sd as p, At as pi, Oi as pn, Wn as pr, qo as pt, Cs as q, pr as qn, qt as qr, na as qt, Rd as r, Bt as ri, Bi as rn, lr as rr, os as rt, Fd as s, It as si, Gi as sn, nr as sr, es as st, pf as t, U as ti, Hi as tn, fr as tr, cs as tt, Td as u, Lt as ui, Zi as un, Rn as ur, Zo as ut, hd as v, Si as vn, Vn as vr, Lo as vt, ud as w, di as wn, In as wr, wo as wt, ad as x, gi as xn, Pn as xr, zo as xt, gd as y, xi as yn, Nn as yr, Io as yt, ju as z, Kr as zn, en as zr, ua as zt };
|
|
9391
9441
|
|
|
9392
|
-
//# sourceMappingURL=AFormRemoteAutocomplete-
|
|
9442
|
+
//# sourceMappingURL=AFormRemoteAutocomplete-CHvecQMq.mjs.map
|