@citruslime/ui 2.6.27 → 2.6.28-beta.0
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.
|
@@ -1011,7 +1011,7 @@ const ll = /* @__PURE__ */ $e(Ut, [["__scopeId", "data-v-14711049"]]), Bt = { cl
|
|
|
1011
1011
|
d = `${T} - ${L}`;
|
|
1012
1012
|
}
|
|
1013
1013
|
return d;
|
|
1014
|
-
}), oe = tt("(min-width: 768px)"),
|
|
1014
|
+
}), oe = tt("(min-width: 768px)"), y = N(() => oe.value ? 2 : 1);
|
|
1015
1015
|
return (d, v) => d.type === "time" ? (m(), K(h(el), {
|
|
1016
1016
|
key: 0,
|
|
1017
1017
|
modelValue: c.value,
|
|
@@ -1055,7 +1055,7 @@ const ll = /* @__PURE__ */ $e(Ut, [["__scopeId", "data-v-14711049"]]), Bt = { cl
|
|
|
1055
1055
|
locale: h(o),
|
|
1056
1056
|
is24hr: h(o) !== "en-US",
|
|
1057
1057
|
timezone: n.value,
|
|
1058
|
-
columns:
|
|
1058
|
+
columns: y.value,
|
|
1059
1059
|
popover: s.value,
|
|
1060
1060
|
"min-date": d.min,
|
|
1061
1061
|
"max-date": d.max,
|
|
@@ -1417,11 +1417,11 @@ function aa(a, e) {
|
|
|
1417
1417
|
oe ? (i = new la({
|
|
1418
1418
|
el: oe,
|
|
1419
1419
|
options: a,
|
|
1420
|
-
onInput: (
|
|
1421
|
-
!S && e !== !1 && D.value !==
|
|
1420
|
+
onInput: (y) => {
|
|
1421
|
+
!S && e !== !1 && D.value !== y.number && (p == null || p(F, y.number)), s.value = y.number, r.value = y.formatted;
|
|
1422
1422
|
},
|
|
1423
|
-
onChange: (
|
|
1424
|
-
e !== !1 && (p == null || p(_,
|
|
1423
|
+
onChange: (y) => {
|
|
1424
|
+
e !== !1 && (p == null || p(_, y.number));
|
|
1425
1425
|
}
|
|
1426
1426
|
}), i.setValue(D.value)) : console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.');
|
|
1427
1427
|
} else
|
|
@@ -1762,14 +1762,14 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1762
1762
|
setup(a, { expose: e, emit: l }) {
|
|
1763
1763
|
const t = a, n = A(null), c = A(null), i = A(!1), o = A(!1), r = N(W), s = N(() => t.placeholderText.trim() !== "" ? t.placeholderText : t.label), f = A(0), p = N({
|
|
1764
1764
|
get: () => t.modelValue,
|
|
1765
|
-
set: (
|
|
1765
|
+
set: (w) => T(w, !1)
|
|
1766
1766
|
}), u = N({
|
|
1767
1767
|
get: () => t.modelValue,
|
|
1768
|
-
set: (
|
|
1769
|
-
}), b = N(() => typeof t.min == "number" ? t.min.toString() : t.min), S = N(() => typeof t.max == "number" ? t.max.toString() : t.max), D = N(() => typeof t.min == "number" || t.min === null ? t.min : parseFloat(t.min)), F = N(() => typeof t.max == "number" || t.max === null ? t.max : parseFloat(t.max)), _ = N(() => t.messageWhenValid.trim() !== "" ? t.messageWhenValid : ""), V = A(!0), ee = A(!0), oe = A([]),
|
|
1770
|
-
var
|
|
1768
|
+
set: (w) => v(w)
|
|
1769
|
+
}), b = N(() => typeof t.min == "number" ? t.min.toString() : t.min), S = N(() => typeof t.max == "number" ? t.max.toString() : t.max), D = N(() => typeof t.min == "number" || t.min === null ? t.min : parseFloat(t.min)), F = N(() => typeof t.max == "number" || t.max === null ? t.max : parseFloat(t.max)), _ = N(() => t.messageWhenValid.trim() !== "" ? t.messageWhenValid : ""), V = A(!0), ee = A(!0), oe = A([]), y = N(() => {
|
|
1770
|
+
var w, M;
|
|
1771
1771
|
return [
|
|
1772
|
-
...((
|
|
1772
|
+
...((w = oe.value) == null ? void 0 : w.filter((x) => ((x == null ? void 0 : x.length) ?? 0) > 0)) ?? [],
|
|
1773
1773
|
...((M = t.externalErrors) == null ? void 0 : M.filter((x) => ((x == null ? void 0 : x.length) ?? 0) > 0)) ?? []
|
|
1774
1774
|
].join(`
|
|
1775
1775
|
`);
|
|
@@ -1782,13 +1782,13 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1782
1782
|
},
|
|
1783
1783
|
...t.currencyOptions
|
|
1784
1784
|
}));
|
|
1785
|
-
async function v(
|
|
1786
|
-
t.validateOn === "input" && await L(
|
|
1785
|
+
async function v(w) {
|
|
1786
|
+
t.validateOn === "input" && await L(w), l("update:model-value", w);
|
|
1787
1787
|
}
|
|
1788
|
-
async function T(
|
|
1789
|
-
t.onInputFunction !== void 0 && (
|
|
1788
|
+
async function T(w, M) {
|
|
1789
|
+
t.onInputFunction !== void 0 && (w = t.onInputFunction(w)), t.validateOn === "change" && (ee.value = !1), (M || t.validateOn === "input") && await L(w), l("update:model-value", w);
|
|
1790
1790
|
}
|
|
1791
|
-
function L(
|
|
1791
|
+
function L(w) {
|
|
1792
1792
|
const M = {
|
|
1793
1793
|
message: "",
|
|
1794
1794
|
valid: !0
|
|
@@ -1796,41 +1796,41 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1796
1796
|
t.customValidationFunction === null || t.customValidationFunction === void 0 ? new Promise((be) => {
|
|
1797
1797
|
be(M);
|
|
1798
1798
|
}) : new Promise((be) => {
|
|
1799
|
-
be(t.customValidationFunction(t.label,
|
|
1799
|
+
be(t.customValidationFunction(t.label, w));
|
|
1800
1800
|
})
|
|
1801
1801
|
];
|
|
1802
|
-
return (typeof
|
|
1802
|
+
return (typeof w == "string" || typeof w == "number") && (x.push(Rt(t.min, t.inputType, t.label, w, t.timeZone)), x.push(Vt(t.max, t.inputType, t.label, w, t.timeZone))), t.isRequired && x.push(qt(t.label, w)), t.inputType === "email" && typeof w == "string" && x.push(Mt(t.label, w)), Promise.all(x).then((be) => {
|
|
1803
1803
|
const Re = [...be.map((ze) => ze.message)], Ne = be.some((ze) => ze.message.length > 0 && ze.valid === !1) || t.externalErrors.length > 0;
|
|
1804
|
-
ee.value = !0, Ne ? (oe.value = Re, l("validated", !1,
|
|
1804
|
+
ee.value = !0, Ne ? (oe.value = Re, l("validated", !1, w)) : (oe.value = [], l("validated", !0, w)), V.value = !Ne;
|
|
1805
1805
|
});
|
|
1806
1806
|
}
|
|
1807
1807
|
function j() {
|
|
1808
|
-
let
|
|
1809
|
-
return t.inputType === "color" && p.value && (t.disabled ?
|
|
1808
|
+
let w = "";
|
|
1809
|
+
return t.inputType === "color" && p.value && (t.disabled ? w = "background: #999999" : w = `background: ${p.value};`), w;
|
|
1810
1810
|
}
|
|
1811
|
-
function O(
|
|
1812
|
-
Me(t.inputType) ? (
|
|
1811
|
+
function O(w) {
|
|
1812
|
+
Me(t.inputType) ? (w.preventDefault(), l("click", w)) : t.inputType === "checkbox" && l("click", w);
|
|
1813
1813
|
}
|
|
1814
|
-
function $(
|
|
1814
|
+
function $(w) {
|
|
1815
1815
|
if (n.value) {
|
|
1816
1816
|
n.value.stepUp(), n.value.focus(), T(n.value.valueAsNumber, !1);
|
|
1817
1817
|
const M = {
|
|
1818
1818
|
target: n.value
|
|
1819
1819
|
};
|
|
1820
|
-
l("input", M, n.value.valueAsNumber), l("change",
|
|
1820
|
+
l("input", M, n.value.valueAsNumber), l("change", w, n.value.valueAsNumber);
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
|
-
function R(
|
|
1823
|
+
function R(w) {
|
|
1824
1824
|
if (n.value) {
|
|
1825
1825
|
n.value.stepDown(), n.value.focus(), T(n.value.valueAsNumber, !1);
|
|
1826
1826
|
const M = {
|
|
1827
1827
|
target: n.value
|
|
1828
1828
|
};
|
|
1829
|
-
l("input", M, n.value.valueAsNumber), l("change",
|
|
1829
|
+
l("input", M, n.value.valueAsNumber), l("change", w, n.value.valueAsNumber);
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
|
-
function B(
|
|
1833
|
-
i.value =
|
|
1832
|
+
function B(w) {
|
|
1833
|
+
i.value = w;
|
|
1834
1834
|
}
|
|
1835
1835
|
async function C() {
|
|
1836
1836
|
o.value = !0, B(!1), t.validateOn === "change" && await L(p.value);
|
|
@@ -1838,19 +1838,19 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1838
1838
|
function q() {
|
|
1839
1839
|
document.querySelectorAll(":-webkit-autofill").length < 1 && f.value++;
|
|
1840
1840
|
}
|
|
1841
|
-
function Y(
|
|
1842
|
-
|
|
1841
|
+
function Y(w) {
|
|
1842
|
+
w.target.blur();
|
|
1843
1843
|
}
|
|
1844
1844
|
function W() {
|
|
1845
1845
|
var x;
|
|
1846
|
-
let
|
|
1846
|
+
let w = !0;
|
|
1847
1847
|
const M = r.value;
|
|
1848
|
-
return i.value ?
|
|
1848
|
+
return i.value ? w = M : o.value && ((x = p.value) == null ? void 0 : x.toString().trim()) === "" && t.requiredText.trim() !== "" && (w = !1), !t.hideRequiredAsterisk && w;
|
|
1849
1849
|
}
|
|
1850
|
-
async function ae(
|
|
1851
|
-
if (
|
|
1852
|
-
const x = t.inputType === "currency" ? M ?? 0 : vl(
|
|
1853
|
-
t.validateOn === "change" && await L(x), l("change",
|
|
1850
|
+
async function ae(w, M) {
|
|
1851
|
+
if (w) {
|
|
1852
|
+
const x = t.inputType === "currency" ? M ?? 0 : vl(w, t.inputType);
|
|
1853
|
+
t.validateOn === "change" && await L(x), l("change", w, x);
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
1856
|
async function ge() {
|
|
@@ -1867,14 +1867,14 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1867
1867
|
}
|
|
1868
1868
|
), e({
|
|
1869
1869
|
focus() {
|
|
1870
|
-
var
|
|
1871
|
-
t.inputType === "currency" ? (
|
|
1870
|
+
var w, M;
|
|
1871
|
+
t.inputType === "currency" ? (w = c == null ? void 0 : c.value) == null || w.focus() : (M = n.value) == null || M.focus();
|
|
1872
1872
|
},
|
|
1873
1873
|
blur() {
|
|
1874
|
-
var
|
|
1875
|
-
t.inputType === "currency" ? (
|
|
1874
|
+
var w, M;
|
|
1875
|
+
t.inputType === "currency" ? (w = c == null ? void 0 : c.value) == null || w.blur() : (M = n.value) == null || M.blur();
|
|
1876
1876
|
}
|
|
1877
|
-
}), (
|
|
1877
|
+
}), (w, M) => (m(), k("div", ue({ ...w.$attrs, id: void 0 }, {
|
|
1878
1878
|
key: f.value,
|
|
1879
1879
|
class: "cl-align-top cl-border-none cl-inline-block cl-text-left"
|
|
1880
1880
|
}), [
|
|
@@ -1884,46 +1884,46 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1884
1884
|
}, [
|
|
1885
1885
|
g("div", ba, [
|
|
1886
1886
|
g("div", ya, [
|
|
1887
|
-
le(g("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, I(
|
|
1888
|
-
[te,
|
|
1887
|
+
le(g("label", { class: "cl-block cl-mb-1 cl-text-grey-4 cl-text-xs cl-tracking-widest" }, I(w.label), 513), [
|
|
1888
|
+
[te, w.showLabel && w.label !== ""]
|
|
1889
1889
|
])
|
|
1890
1890
|
]),
|
|
1891
|
-
|
|
1892
|
-
|
|
1891
|
+
w.isRequired && r.value ? (m(), k("label", wa, " * ")) : P("", !0),
|
|
1892
|
+
w.isRequired && !r.value && w.requiredText.length ? (m(), k("label", ka, I(w.requiredText), 1)) : P("", !0)
|
|
1893
1893
|
]),
|
|
1894
|
-
|
|
1894
|
+
w.inputType !== "range" && w.inputType !== "currency" && !h(ml)(w.inputType) ? (m(), k("div", Ta, [
|
|
1895
1895
|
le(g("input", ue({
|
|
1896
1896
|
ref_key: "inputElement",
|
|
1897
1897
|
ref: n,
|
|
1898
1898
|
"onUpdate:modelValue": M[0] || (M[0] = (x) => p.value = x)
|
|
1899
|
-
},
|
|
1899
|
+
}, w.$attrs, {
|
|
1900
1900
|
class: ["!cl-mb-1 cl-block cl-border cl-duration-300 cl-h-full cl-transition cl-w-full focus:cl-outline-none", {
|
|
1901
|
-
"hover:!cl-border-grey-3":
|
|
1902
|
-
"!cl-cursor-default":
|
|
1901
|
+
"hover:!cl-border-grey-3": w.disabled === !1 && !h(Me)(w.inputType),
|
|
1902
|
+
"!cl-cursor-default": w.disabled,
|
|
1903
1903
|
"!cl-border-danger-default": !V.value,
|
|
1904
|
-
"!cl-border-primary-default": V.value &&
|
|
1905
|
-
"cl-border-grey-0 focus:cl-border-blue-light": V.value && !h(Me)(
|
|
1906
|
-
"!cl-p-2":
|
|
1907
|
-
"cl-p-3 cl-rounded-lg": !h(Me)(
|
|
1908
|
-
[`${
|
|
1904
|
+
"!cl-border-primary-default": V.value && w.highlightWhenValid,
|
|
1905
|
+
"cl-border-grey-0 focus:cl-border-blue-light": V.value && !h(Me)(w.inputType),
|
|
1906
|
+
"!cl-p-2": w.inputType === "checkbox" || w.inputType === "radio",
|
|
1907
|
+
"cl-p-3 cl-rounded-lg": !h(Me)(w.inputType),
|
|
1908
|
+
[`${w.inputSpecificClasses}`]: w.inputSpecificClasses !== ""
|
|
1909
1909
|
}],
|
|
1910
1910
|
style: j(),
|
|
1911
|
-
type:
|
|
1912
|
-
disabled:
|
|
1913
|
-
min:
|
|
1914
|
-
max:
|
|
1915
|
-
minlength:
|
|
1916
|
-
maxlength:
|
|
1917
|
-
step:
|
|
1911
|
+
type: w.inputType,
|
|
1912
|
+
disabled: w.disabled,
|
|
1913
|
+
min: w.min ?? void 0,
|
|
1914
|
+
max: w.max ?? void 0,
|
|
1915
|
+
minlength: w.min !== null && h(pl)(w.inputType) ? w.min : void 0,
|
|
1916
|
+
maxlength: w.max !== null && h(pl)(w.inputType) ? w.max : void 0,
|
|
1917
|
+
step: w.step,
|
|
1918
1918
|
placeholder: s.value,
|
|
1919
|
-
name:
|
|
1920
|
-
autocomplete:
|
|
1919
|
+
name: w.group,
|
|
1920
|
+
autocomplete: w.autocomplete,
|
|
1921
1921
|
onClick: M[1] || (M[1] = (x) => O(x)),
|
|
1922
1922
|
onFocus: M[2] || (M[2] = (x) => l("focus")),
|
|
1923
1923
|
onBlur: re(ge, ["self"]),
|
|
1924
1924
|
onMousewheelPassive: Y,
|
|
1925
1925
|
onInput: M[3] || (M[3] = (x) => {
|
|
1926
|
-
l("input", x, h(vl)(x,
|
|
1926
|
+
l("input", x, h(vl)(x, w.inputType));
|
|
1927
1927
|
}),
|
|
1928
1928
|
onChange: ae
|
|
1929
1929
|
}), null, 16, $a), [
|
|
@@ -1934,7 +1934,7 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1934
1934
|
duration: 300
|
|
1935
1935
|
}, {
|
|
1936
1936
|
default: Q(() => [
|
|
1937
|
-
|
|
1937
|
+
w.inputType === "number" && !w.disabled && w.showArrows ? le((m(), k("div", Sa, [
|
|
1938
1938
|
E(h(H), {
|
|
1939
1939
|
icon: "ph:caret-up-bold",
|
|
1940
1940
|
class: "cl-absolute cl-bg-link-default cl-right-1 cl-rounded-full cl-text-sm cl-text-white cl-top-1 hover:cl-bg-link-light hover:cl-cursor-pointer",
|
|
@@ -1955,49 +1955,49 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
1955
1955
|
]),
|
|
1956
1956
|
_: 1
|
|
1957
1957
|
})
|
|
1958
|
-
])) :
|
|
1958
|
+
])) : w.inputType === "currency" ? (m(), k("div", Ca, [
|
|
1959
1959
|
E(oa, ue({
|
|
1960
1960
|
ref_key: "currencyInputRef",
|
|
1961
1961
|
ref: c,
|
|
1962
1962
|
modelValue: p.value,
|
|
1963
1963
|
"onUpdate:modelValue": M[6] || (M[6] = (x) => p.value = x),
|
|
1964
1964
|
modelModifiers: { lazy: !0 }
|
|
1965
|
-
},
|
|
1966
|
-
disabled:
|
|
1965
|
+
}, w.$attrs, {
|
|
1966
|
+
disabled: w.disabled,
|
|
1967
1967
|
placeholder: s.value,
|
|
1968
1968
|
"is-valid": V.value,
|
|
1969
|
-
"highlight-when-valid":
|
|
1970
|
-
"input-specific-classes":
|
|
1971
|
-
group:
|
|
1972
|
-
step:
|
|
1969
|
+
"highlight-when-valid": w.highlightWhenValid,
|
|
1970
|
+
"input-specific-classes": w.inputSpecificClasses,
|
|
1971
|
+
group: w.group,
|
|
1972
|
+
step: w.step,
|
|
1973
1973
|
"currency-options": d.value,
|
|
1974
1974
|
onChange: M[7] || (M[7] = (x, be) => ae(x, be)),
|
|
1975
1975
|
onFocus: M[8] || (M[8] = (x) => l("focus")),
|
|
1976
1976
|
onBlur: C
|
|
1977
1977
|
}), null, 16, ["modelValue", "disabled", "placeholder", "is-valid", "highlight-when-valid", "input-specific-classes", "group", "step", "currency-options"])
|
|
1978
|
-
])) : h(ml)(
|
|
1978
|
+
])) : h(ml)(w.inputType) ? (m(), K(h(Wt), ue({ key: 2 }, w.$attrs, {
|
|
1979
1979
|
ref_key: "inputElement",
|
|
1980
1980
|
ref: n,
|
|
1981
1981
|
date: u.value,
|
|
1982
1982
|
"onUpdate:date": M[9] || (M[9] = (x) => u.value = x),
|
|
1983
1983
|
class: ["cl-block cl-duration-300 cl-h-fit cl-mb-1 cl-rounded-lg cl-text-sm cl-transition cl-w-full focus:cl-outline-none", {
|
|
1984
|
-
"hover:cl-border-grey-3": !
|
|
1984
|
+
"hover:cl-border-grey-3": !w.disabled && w.inputType !== "dateRange",
|
|
1985
1985
|
"!cl-border-danger-default": !V.value,
|
|
1986
|
-
"!cl-border-primary-default": V.value &&
|
|
1986
|
+
"!cl-border-primary-default": V.value && w.highlightWhenValid
|
|
1987
1987
|
}],
|
|
1988
|
-
disabled:
|
|
1989
|
-
required:
|
|
1990
|
-
type: h(ga)(
|
|
1991
|
-
"time-zone":
|
|
1988
|
+
disabled: w.disabled,
|
|
1989
|
+
required: w.isRequired,
|
|
1990
|
+
type: h(ga)(w.inputType),
|
|
1991
|
+
"time-zone": w.timeZone,
|
|
1992
1992
|
min: b.value,
|
|
1993
1993
|
max: S.value,
|
|
1994
1994
|
placeholder: s.value,
|
|
1995
|
-
"initial-date":
|
|
1996
|
-
"quick-date-scope":
|
|
1997
|
-
"date-format-locale":
|
|
1995
|
+
"initial-date": w.initialDate,
|
|
1996
|
+
"quick-date-scope": w.quickDateScope,
|
|
1997
|
+
"date-format-locale": w.dateFormatLocale,
|
|
1998
1998
|
onBlur: re(C, ["self"]),
|
|
1999
1999
|
onFocus: M[10] || (M[10] = (x) => l("focus"))
|
|
2000
|
-
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale", "onBlur"])) :
|
|
2000
|
+
}), null, 16, ["date", "class", "disabled", "required", "type", "time-zone", "min", "max", "placeholder", "initial-date", "quick-date-scope", "date-format-locale", "onBlur"])) : w.inputType === "range" && (typeof p.value == "number" || typeof p.value == "string") ? (m(), k("div", Oa, [
|
|
2001
2001
|
E(h(va), {
|
|
2002
2002
|
ref_key: "inputElement",
|
|
2003
2003
|
ref: n,
|
|
@@ -2005,17 +2005,17 @@ const ba = { class: "cl-flex cl-justify-between" }, ya = { class: "cl-w-full" },
|
|
|
2005
2005
|
"onUpdate:value": M[11] || (M[11] = (x) => p.value = x),
|
|
2006
2006
|
min: D.value ?? 0,
|
|
2007
2007
|
max: F.value ?? 1e3,
|
|
2008
|
-
step:
|
|
2008
|
+
step: w.step,
|
|
2009
2009
|
placeholder: s.value,
|
|
2010
2010
|
"enforce-step": !0,
|
|
2011
|
-
disabled:
|
|
2011
|
+
disabled: w.disabled,
|
|
2012
2012
|
onBlur: re(C, ["self"]),
|
|
2013
2013
|
onFocus: M[12] || (M[12] = (x) => l("focus"))
|
|
2014
2014
|
}, null, 8, ["value", "min", "max", "step", "placeholder", "disabled", "onBlur"])
|
|
2015
2015
|
])) : P("", !0)
|
|
2016
2016
|
], 32),
|
|
2017
2017
|
V.value && _.value && ee.value ? (m(), k("div", Ea, I(_.value), 1)) : P("", !0),
|
|
2018
|
-
!V.value &&
|
|
2018
|
+
!V.value && y.value.length > 0 && w.showValidationMessages && ee.value ? (m(), k("div", Da, I(y.value), 1)) : P("", !0)
|
|
2019
2019
|
], 16));
|
|
2020
2020
|
}
|
|
2021
2021
|
});
|
|
@@ -2426,12 +2426,12 @@ var yl = {
|
|
|
2426
2426
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
2427
2427
|
*/
|
|
2428
2428
|
nextTabbableNode: function(ge) {
|
|
2429
|
-
var
|
|
2430
|
-
return M < 0 ?
|
|
2429
|
+
var w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, M = $.indexOf(ge);
|
|
2430
|
+
return M < 0 ? w ? R.slice(R.indexOf(ge) + 1).find(function(x) {
|
|
2431
2431
|
return Ae(x);
|
|
2432
2432
|
}) : R.slice(0, R.indexOf(ge)).reverse().find(function(x) {
|
|
2433
2433
|
return Ae(x);
|
|
2434
|
-
}) : $[M + (
|
|
2434
|
+
}) : $[M + (w ? 1 : -1)];
|
|
2435
2435
|
}
|
|
2436
2436
|
};
|
|
2437
2437
|
}), i.tabbableGroups = i.containerGroups.filter(function(O) {
|
|
@@ -2469,8 +2469,8 @@ var yl = {
|
|
|
2469
2469
|
return $ === Ne;
|
|
2470
2470
|
});
|
|
2471
2471
|
if (ae < 0 && (W.container === $ || al($, c.tabbableOptions) && !Ae($, c.tabbableOptions) && !W.nextTabbableNode($, !1)) && (ae = Y), ae >= 0) {
|
|
2472
|
-
var ge = ae === 0 ? i.tabbableGroups.length - 1 : ae - 1,
|
|
2473
|
-
q = Oe($) >= 0 ?
|
|
2472
|
+
var ge = ae === 0 ? i.tabbableGroups.length - 1 : ae - 1, w = i.tabbableGroups[ge];
|
|
2473
|
+
q = Oe($) >= 0 ? w.lastTabbableNode : w.lastDomTabbableNode;
|
|
2474
2474
|
} else
|
|
2475
2475
|
je(R) || (q = W.nextTabbableNode($, !1));
|
|
2476
2476
|
} else {
|
|
@@ -2553,7 +2553,7 @@ var yl = {
|
|
|
2553
2553
|
}, oe = function(O) {
|
|
2554
2554
|
var $ = Ue(O);
|
|
2555
2555
|
s($, O) >= 0 || Ve(c.clickOutsideDeactivates, O) || Ve(c.allowOutsideClick, O) || (O.preventDefault(), O.stopImmediatePropagation());
|
|
2556
|
-
},
|
|
2556
|
+
}, y = function() {
|
|
2557
2557
|
if (i.active)
|
|
2558
2558
|
return yl.activateTrap(n, o), i.delayInitialFocusTimer = c.delayInitialFocus ? wl(function() {
|
|
2559
2559
|
b(p());
|
|
@@ -2602,7 +2602,7 @@ var yl = {
|
|
|
2602
2602
|
var $ = r(O, "onActivate"), R = r(O, "onPostActivate"), B = r(O, "checkCanFocusTrap");
|
|
2603
2603
|
B || u(), i.active = !0, i.paused = !1, i.nodeFocusedBeforeActivation = t.activeElement, $ == null || $();
|
|
2604
2604
|
var C = function() {
|
|
2605
|
-
B && u(),
|
|
2605
|
+
B && u(), y(), L(), R == null || R();
|
|
2606
2606
|
};
|
|
2607
2607
|
return B ? (B(i.containers.concat()).then(C, C), this) : (C(), this);
|
|
2608
2608
|
},
|
|
@@ -2634,7 +2634,7 @@ var yl = {
|
|
|
2634
2634
|
if (!i.paused || !i.active)
|
|
2635
2635
|
return this;
|
|
2636
2636
|
var $ = r(O, "onUnpause"), R = r(O, "onPostUnpause");
|
|
2637
|
-
return i.paused = !1, $ == null || $(), u(),
|
|
2637
|
+
return i.paused = !1, $ == null || $(), u(), y(), L(), R == null || R(), this;
|
|
2638
2638
|
},
|
|
2639
2639
|
updateContainerElements: function(O) {
|
|
2640
2640
|
var $ = [].concat(O).filter(Boolean);
|
|
@@ -2887,11 +2887,11 @@ const an = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
2887
2887
|
},
|
|
2888
2888
|
setup(a, { emit: e }) {
|
|
2889
2889
|
const l = a, { t } = ce(), n = A(""), c = A(!1), i = A(-1), o = N(() => c.value ? -1 : 0), r = A();
|
|
2890
|
-
function s(
|
|
2891
|
-
(
|
|
2890
|
+
function s(y) {
|
|
2891
|
+
(y === void 0 || y.code && y.code.startsWith("Arrow") === !1 && y.code.startsWith("Control") === !1 && y.code.startsWith("Shift") === !1 && y.code.startsWith("Tab") === !1 && y.code !== "Enter") && (e("search", n.value), i.value = -2);
|
|
2892
2892
|
}
|
|
2893
|
-
function f(
|
|
2894
|
-
e("select-object",
|
|
2893
|
+
function f(y) {
|
|
2894
|
+
e("select-object", y);
|
|
2895
2895
|
}
|
|
2896
2896
|
function p() {
|
|
2897
2897
|
e("create-object", n.value), u();
|
|
@@ -2899,48 +2899,48 @@ const an = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
2899
2899
|
function u() {
|
|
2900
2900
|
e("hide-dropdown");
|
|
2901
2901
|
}
|
|
2902
|
-
function b(
|
|
2903
|
-
i.value < l.results.length - 1 ? (i.value === -2 && n.value === "" && i.value++, i.value++) : i.value =
|
|
2902
|
+
function b(y) {
|
|
2903
|
+
i.value < l.results.length - 1 ? (i.value === -2 && n.value === "" && i.value++, i.value++) : i.value = y, _();
|
|
2904
2904
|
}
|
|
2905
|
-
function S(
|
|
2906
|
-
i.value >
|
|
2905
|
+
function S(y) {
|
|
2906
|
+
i.value > y ? i.value-- : i.value = l.results.length - 1, _();
|
|
2907
2907
|
}
|
|
2908
2908
|
function D() {
|
|
2909
2909
|
i.value >= 0 && l.results !== void 0 ? f(l.results[i.value].id) : i.value === -1 && p();
|
|
2910
2910
|
}
|
|
2911
|
-
function F(
|
|
2912
|
-
if (
|
|
2911
|
+
function F(y) {
|
|
2912
|
+
if (y.key === "Tab" && y.shiftKey === !0) {
|
|
2913
2913
|
const d = document.getElementsByTagName("input");
|
|
2914
2914
|
let v = -1;
|
|
2915
2915
|
for (let T = 0; T < d.length; T++)
|
|
2916
|
-
d[T] ===
|
|
2916
|
+
d[T] === y.target && (v = T - 1);
|
|
2917
2917
|
v >= 0 && (d[v].focus(), u());
|
|
2918
2918
|
}
|
|
2919
2919
|
}
|
|
2920
2920
|
function _() {
|
|
2921
|
-
var
|
|
2922
|
-
l.results && l.results.length > 1 && ((
|
|
2921
|
+
var y;
|
|
2922
|
+
l.results && l.results.length > 1 && ((y = r.value) == null || y.scrollTo(0, (i.value + 1) * 34 - 34 * 2));
|
|
2923
2923
|
}
|
|
2924
2924
|
function V() {
|
|
2925
|
-
let
|
|
2926
|
-
l.results !== null && l.results.length === 1 && (
|
|
2925
|
+
let y = !1;
|
|
2926
|
+
l.results !== null && l.results.length === 1 && (y = n.value.toUpperCase().trim() === l.results[0].name.toUpperCase().trim()), c.value = l.canCreateNewObject === !0 && l.errorMessage === "" && n.value.trim() !== "" && y === !1;
|
|
2927
2927
|
}
|
|
2928
|
-
function ee(
|
|
2929
|
-
i.value =
|
|
2928
|
+
function ee(y) {
|
|
2929
|
+
i.value = y;
|
|
2930
2930
|
}
|
|
2931
2931
|
function oe() {
|
|
2932
2932
|
l.isVisible === !0 && (n.value = "", s(), Ie(() => {
|
|
2933
|
-
var
|
|
2934
|
-
return (d = (
|
|
2933
|
+
var y, d;
|
|
2934
|
+
return (d = (y = r.value) == null ? void 0 : y.querySelector("input")) == null ? void 0 : d.focus();
|
|
2935
2935
|
}));
|
|
2936
2936
|
}
|
|
2937
2937
|
return ne(() => l.results, () => V()), ne(() => l.errorMessage, () => V()), ne(() => l.isVisible, () => oe()), Pe(() => {
|
|
2938
|
-
var
|
|
2939
|
-
return (
|
|
2938
|
+
var y;
|
|
2939
|
+
return (y = r.value) == null ? void 0 : y.addEventListener("keydown", F);
|
|
2940
2940
|
}), Je(() => {
|
|
2941
|
-
var
|
|
2942
|
-
return (
|
|
2943
|
-
}), (
|
|
2941
|
+
var y;
|
|
2942
|
+
return (y = r.value) == null ? void 0 : y.removeEventListener("keydown", F);
|
|
2943
|
+
}), (y, d) => {
|
|
2944
2944
|
var v;
|
|
2945
2945
|
return m(), k("div", {
|
|
2946
2946
|
ref_key: "container",
|
|
@@ -2958,47 +2958,47 @@ const an = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
2958
2958
|
"onUpdate:modelValue": d[0] || (d[0] = (T) => n.value = T),
|
|
2959
2959
|
class: "!cl-mr-0 cl-w-full",
|
|
2960
2960
|
"input-type": "text",
|
|
2961
|
-
"placeholder-text":
|
|
2961
|
+
"placeholder-text": y.searchHint,
|
|
2962
2962
|
onKeyup: s,
|
|
2963
2963
|
onBlur: u
|
|
2964
2964
|
}, null, 8, ["modelValue", "placeholder-text"]),
|
|
2965
2965
|
le(E(Xe, { class: "cl-absolute cl-ml-2 cl-mt-11" }, null, 512), [
|
|
2966
|
-
[te,
|
|
2966
|
+
[te, y.loading]
|
|
2967
2967
|
])
|
|
2968
2968
|
]),
|
|
2969
|
-
|
|
2969
|
+
y.currentObjectName !== "" ? (m(), K(Be, {
|
|
2970
2970
|
key: 0,
|
|
2971
|
-
"show-clear-button":
|
|
2972
|
-
text:
|
|
2973
|
-
onClearObject: d[1] || (d[1] = (T) =>
|
|
2971
|
+
"show-clear-button": y.canClearSelectedObject,
|
|
2972
|
+
text: y.currentObjectName,
|
|
2973
|
+
onClearObject: d[1] || (d[1] = (T) => y.$emit("clear-object"))
|
|
2974
2974
|
}, null, 8, ["show-clear-button", "text"])) : P("", !0),
|
|
2975
|
-
|
|
2975
|
+
y.objectParentType !== "" && y.results !== void 0 && y.results.length > 0 && y.errorMessage === "" ? (m(), K(Be, {
|
|
2976
2976
|
key: 1,
|
|
2977
|
-
text:
|
|
2978
|
-
"additional-text":
|
|
2977
|
+
text: y.objectType,
|
|
2978
|
+
"additional-text": y.objectParentType,
|
|
2979
2979
|
class: "cl-bg-grey-2 cl-mt-1"
|
|
2980
2980
|
}, null, 8, ["text", "additional-text"])) : P("", !0),
|
|
2981
|
-
|
|
2981
|
+
y.results !== null && ((v = y.results) == null ? void 0 : v.length) === 0 && n.value.trim() !== "" && y.canCreateNewObject === !1 && y.errorMessage === "" ? (m(), K(Be, {
|
|
2982
2982
|
key: 2,
|
|
2983
2983
|
text: h(t)("comboBox.noResults", { value: n.value })
|
|
2984
2984
|
}, null, 8, ["text"])) : P("", !0),
|
|
2985
|
-
|
|
2985
|
+
y.errorMessage !== "" ? (m(), K(Be, {
|
|
2986
2986
|
key: 3,
|
|
2987
2987
|
class: "!cl-bg-danger-light cl-border-danger-light cl-rounded cl-text-danger-dark",
|
|
2988
|
-
text: h(t)("comboBox.errorMessage", { error:
|
|
2988
|
+
text: h(t)("comboBox.errorMessage", { error: y.errorMessage })
|
|
2989
2989
|
}, null, 8, ["text"])) : P("", !0),
|
|
2990
2990
|
c.value ? (m(), K(Tl, {
|
|
2991
2991
|
key: 4,
|
|
2992
2992
|
"is-create-new-option": !0,
|
|
2993
|
-
text: h(t)("comboBox.addPrompt", { value: n.value, object:
|
|
2993
|
+
text: h(t)("comboBox.addPrompt", { value: n.value, object: y.objectType }),
|
|
2994
2994
|
index: -1,
|
|
2995
2995
|
"selected-index": i.value,
|
|
2996
2996
|
class: "cl-px-2",
|
|
2997
2997
|
onCreateObject: p,
|
|
2998
2998
|
onOptionHighlighted: ee
|
|
2999
2999
|
}, null, 8, ["text", "selected-index"])) : P("", !0),
|
|
3000
|
-
|
|
3001
|
-
(m(!0), k(J, null, se(
|
|
3000
|
+
y.errorMessage === "" && y.results !== null ? (m(), k("div", mn, [
|
|
3001
|
+
(m(!0), k(J, null, se(y.results, (T, L) => (m(), K(Tl, {
|
|
3002
3002
|
key: L,
|
|
3003
3003
|
option: T,
|
|
3004
3004
|
index: L,
|
|
@@ -3058,7 +3058,7 @@ const an = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3058
3058
|
function oe() {
|
|
3059
3059
|
r.value = null, _(!1);
|
|
3060
3060
|
}
|
|
3061
|
-
function
|
|
3061
|
+
function y(C) {
|
|
3062
3062
|
const q = d(C);
|
|
3063
3063
|
r.value = q, _(!1);
|
|
3064
3064
|
}
|
|
@@ -3210,7 +3210,7 @@ const an = /* @__PURE__ */ g("div", { tabindex: "0" }, null, -1), nn = ["onKeypr
|
|
|
3210
3210
|
}),
|
|
3211
3211
|
"search-hint": c.value,
|
|
3212
3212
|
onCreateObject: () => C.objectParentType === "" && C.skipObjectCreationModal === !0 ? v() : W(),
|
|
3213
|
-
onSelectObject:
|
|
3213
|
+
onSelectObject: y,
|
|
3214
3214
|
onClearObject: oe,
|
|
3215
3215
|
onSearch: V,
|
|
3216
3216
|
onHideDropdown: q[4] || (q[4] = (ae) => _(!1))
|
|
@@ -3591,7 +3591,7 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3591
3591
|
searchValue: {},
|
|
3592
3592
|
editMode: { type: Boolean, default: !1 }
|
|
3593
3593
|
},
|
|
3594
|
-
emits: ["row-select", "row-edit", "clear-filters"],
|
|
3594
|
+
emits: ["row-select", "row-edit", "row-edit-cancelled", "clear-filters"],
|
|
3595
3595
|
setup(a, { emit: e }) {
|
|
3596
3596
|
const l = a, { t } = ce(), n = A({
|
|
3597
3597
|
index: -1,
|
|
@@ -3611,7 +3611,7 @@ const Rn = { class: "cl-mb-2 cl-text-sm lg:cl-hidden" }, Vn = { class: "cl-gap-1
|
|
|
3611
3611
|
const { [u]: b, ...S } = n.value.record;
|
|
3612
3612
|
n.value.record = {
|
|
3613
3613
|
...S
|
|
3614
|
-
};
|
|
3614
|
+
}, e("row-edit-cancelled", he(n.value));
|
|
3615
3615
|
}
|
|
3616
3616
|
}
|
|
3617
3617
|
const s = A({});
|
|
@@ -4271,7 +4271,7 @@ const Oo = {
|
|
|
4271
4271
|
let T, L = (d == null ? void 0 : d.value) ?? v ?? 0;
|
|
4272
4272
|
l.column.format === fe.INTEGER ? (typeof L == "string" && (L = parseInt(L)), T = Math.round(L)) : (typeof L == "string" && (L = parseFloat(L.replace(_.value, "."))), T = L), ee(null, isNaN(T) ? "" : T.toString());
|
|
4273
4273
|
}
|
|
4274
|
-
function
|
|
4274
|
+
function y(d) {
|
|
4275
4275
|
var L;
|
|
4276
4276
|
let v, T = !1;
|
|
4277
4277
|
if (p.value)
|
|
@@ -4322,7 +4322,7 @@ const Oo = {
|
|
|
4322
4322
|
"input-type": "dateRange",
|
|
4323
4323
|
"time-zone": d.headerDisplayTimezone,
|
|
4324
4324
|
"quick-date-scope": d.quickDateScope,
|
|
4325
|
-
"onUpdate:modelValue": v[2] || (v[2] = (T) =>
|
|
4325
|
+
"onUpdate:modelValue": v[2] || (v[2] = (T) => y(T))
|
|
4326
4326
|
}, null, 8, ["model-value", "disabled", "time-zone", "quick-date-scope"])) : d.column.type === "number" || d.column.type === "slot" && d.column.slotType === "number" ? (m(), K(me, {
|
|
4327
4327
|
key: 3,
|
|
4328
4328
|
"model-value": S.value,
|
|
@@ -4637,35 +4637,35 @@ const Oo = {
|
|
|
4637
4637
|
headerDisplayTimezone: { default: null },
|
|
4638
4638
|
dateFormatLocale: { default: null }
|
|
4639
4639
|
},
|
|
4640
|
-
emits: ["update:columns", "update:request", "data-request", "row-edit", "edit-start", "edit-end", "row-select"],
|
|
4640
|
+
emits: ["update:columns", "update:request", "data-request", "row-edit", "row-edit-cancelled", "edit-start", "edit-end", "row-select"],
|
|
4641
4641
|
setup(a, { emit: e }) {
|
|
4642
4642
|
var oe;
|
|
4643
4643
|
const l = a, t = N(() => l.headerDisplayTimezone ?? l.timeZone), n = N(() => l.dateFormatLocale);
|
|
4644
4644
|
Jl(Ul, n);
|
|
4645
4645
|
const c = N({
|
|
4646
4646
|
get: () => l.columns,
|
|
4647
|
-
set: (
|
|
4648
|
-
}), i = N(() => c.value.filter((
|
|
4647
|
+
set: (y) => e("update:columns", y)
|
|
4648
|
+
}), i = N(() => c.value.filter((y) => y.visible ?? !0)), o = A({});
|
|
4649
4649
|
function r() {
|
|
4650
|
-
const
|
|
4650
|
+
const y = {};
|
|
4651
4651
|
window.innerWidth >= 1024 && c.value.forEach((d) => {
|
|
4652
4652
|
const v = d.width ? `${d.width}px` : "";
|
|
4653
|
-
|
|
4654
|
-
}), o.value =
|
|
4653
|
+
y[`${d.name}`] = `width: ${v}; min-width: ${v};`;
|
|
4654
|
+
}), o.value = y;
|
|
4655
4655
|
}
|
|
4656
|
-
function s(
|
|
4657
|
-
return o.value[
|
|
4656
|
+
function s(y) {
|
|
4657
|
+
return o.value[y] ?? "";
|
|
4658
4658
|
}
|
|
4659
4659
|
Pe(() => {
|
|
4660
4660
|
window.addEventListener("resize", r), r();
|
|
4661
4661
|
}), Je(() => window.removeEventListener("resize", r));
|
|
4662
4662
|
const f = N({
|
|
4663
4663
|
get: () => l.request,
|
|
4664
|
-
set: (
|
|
4664
|
+
set: (y) => e("update:request", y)
|
|
4665
4665
|
});
|
|
4666
4666
|
function p() {
|
|
4667
|
-
const
|
|
4668
|
-
|
|
4667
|
+
const y = he(f.value);
|
|
4668
|
+
y.pageNumber = 1, y.filters = [], V.value = "", f.value = y;
|
|
4669
4669
|
}
|
|
4670
4670
|
const u = sl(() => e("data-request"), 750);
|
|
4671
4671
|
ne(f, u, {
|
|
@@ -4681,21 +4681,21 @@ const Oo = {
|
|
|
4681
4681
|
...l.options
|
|
4682
4682
|
})), _ = N({
|
|
4683
4683
|
get() {
|
|
4684
|
-
const
|
|
4685
|
-
return
|
|
4684
|
+
const y = he(f.value);
|
|
4685
|
+
return y.filters = y.filters.filter((d) => d.filterMethod !== "andcontains" && d.filterOperation !== X.AND_CONTAINS), y;
|
|
4686
4686
|
},
|
|
4687
|
-
set(
|
|
4687
|
+
set(y) {
|
|
4688
4688
|
const d = [
|
|
4689
|
-
...
|
|
4689
|
+
...y.filters,
|
|
4690
4690
|
...f.value.filters.filter((v) => v.filterMethod === "andcontains" || v.filterOperation === X.AND_CONTAINS)
|
|
4691
4691
|
];
|
|
4692
4692
|
f.value = {
|
|
4693
|
-
...
|
|
4693
|
+
...y,
|
|
4694
4694
|
filters: d
|
|
4695
4695
|
};
|
|
4696
4696
|
}
|
|
4697
|
-
}), V = A(((oe = l.request.filters.find((
|
|
4698
|
-
return (
|
|
4697
|
+
}), V = A(((oe = l.request.filters.find((y) => y.filterMethod === "andcontains" || y.filterOperation === X.AND_CONTAINS)) == null ? void 0 : oe.filterValue) ?? ""), ee = N(() => l.columns.filter((y) => (y.type === "string" || y.type === "slot" && y.slotType === "string") && y.searchable));
|
|
4698
|
+
return (y, d) => (m(), k("div", fr, [
|
|
4699
4699
|
ee.value.length > 0 ? (m(), K(Jo, {
|
|
4700
4700
|
key: 0,
|
|
4701
4701
|
"search-value": V.value,
|
|
@@ -4705,7 +4705,7 @@ const Oo = {
|
|
|
4705
4705
|
columns: ee.value
|
|
4706
4706
|
}, {
|
|
4707
4707
|
search: Q((v) => [
|
|
4708
|
-
U(
|
|
4708
|
+
U(y.$slots, "search", de(ve(v)))
|
|
4709
4709
|
]),
|
|
4710
4710
|
_: 3
|
|
4711
4711
|
}, 8, ["search-value", "request", "columns"])) : P("", !0),
|
|
@@ -4714,7 +4714,7 @@ const Oo = {
|
|
|
4714
4714
|
le(g("div", pr, [
|
|
4715
4715
|
E(Xe, { class: "after:!cl-h-20 after:!cl-w-20 cl-h-20 cl-w-20" })
|
|
4716
4716
|
], 512), [
|
|
4717
|
-
[te,
|
|
4717
|
+
[te, y.loading]
|
|
4718
4718
|
])
|
|
4719
4719
|
]),
|
|
4720
4720
|
_: 1
|
|
@@ -4724,20 +4724,20 @@ const Oo = {
|
|
|
4724
4724
|
"onUpdate:editMode": d[3] || (d[3] = (v) => S.value = v),
|
|
4725
4725
|
"filter-panel-open": D.value,
|
|
4726
4726
|
"onUpdate:filterPanelOpen": d[4] || (d[4] = (v) => D.value = v),
|
|
4727
|
-
columns:
|
|
4727
|
+
columns: y.columns,
|
|
4728
4728
|
options: F.value,
|
|
4729
4729
|
request: f.value,
|
|
4730
|
-
loading:
|
|
4730
|
+
loading: y.loading,
|
|
4731
4731
|
onClearFilters: p
|
|
4732
4732
|
}, {
|
|
4733
4733
|
"additional-grid-actions": Q((v) => [
|
|
4734
|
-
U(
|
|
4734
|
+
U(y.$slots, "additional-grid-actions", de(ve(v)))
|
|
4735
4735
|
]),
|
|
4736
4736
|
"view-manager": Q(() => [
|
|
4737
4737
|
E(dr, {
|
|
4738
4738
|
columns: c.value,
|
|
4739
4739
|
"onUpdate:columns": d[2] || (d[2] = (v) => c.value = v),
|
|
4740
|
-
loading:
|
|
4740
|
+
loading: y.loading
|
|
4741
4741
|
}, null, 8, ["columns", "loading"])
|
|
4742
4742
|
]),
|
|
4743
4743
|
_: 3
|
|
@@ -4745,7 +4745,7 @@ const Oo = {
|
|
|
4745
4745
|
g("div", mr, [
|
|
4746
4746
|
g("table", {
|
|
4747
4747
|
class: z(["cl-delay-75 cl-min-h-[276px] cl-overflow-x-auto cl-overscroll-x-none cl-text-left cl-transition-opacity cl-w-full", {
|
|
4748
|
-
"cl-opacity-40 cl-pointer-events-none":
|
|
4748
|
+
"cl-opacity-40 cl-pointer-events-none": y.loading
|
|
4749
4749
|
}])
|
|
4750
4750
|
}, [
|
|
4751
4751
|
g("colgroup", vr, [
|
|
@@ -4762,27 +4762,28 @@ const Oo = {
|
|
|
4762
4762
|
"onUpdate:filterPanelOpen": d[6] || (d[6] = (v) => D.value = v),
|
|
4763
4763
|
columns: i.value,
|
|
4764
4764
|
options: F.value,
|
|
4765
|
-
loading:
|
|
4766
|
-
"time-zone":
|
|
4765
|
+
loading: y.loading,
|
|
4766
|
+
"time-zone": y.timeZone,
|
|
4767
4767
|
"header-display-timezone": t.value
|
|
4768
4768
|
}, null, 8, ["request", "filter-panel-open", "columns", "options", "loading", "time-zone", "header-display-timezone"]),
|
|
4769
4769
|
E(Xn, {
|
|
4770
4770
|
columns: i.value,
|
|
4771
4771
|
request: f.value,
|
|
4772
4772
|
data: b.value,
|
|
4773
|
-
"time-zone":
|
|
4774
|
-
loading:
|
|
4773
|
+
"time-zone": y.timeZone,
|
|
4774
|
+
loading: y.loading,
|
|
4775
4775
|
"search-value": V.value,
|
|
4776
4776
|
options: F.value,
|
|
4777
4777
|
"edit-mode": S.value,
|
|
4778
4778
|
onClearFilters: p,
|
|
4779
|
-
onRowEdit: d[7] || (d[7] = (v) =>
|
|
4780
|
-
|
|
4779
|
+
onRowEdit: d[7] || (d[7] = (v) => y.$emit("row-edit", v)),
|
|
4780
|
+
onRowEditCancelled: d[8] || (d[8] = (v) => y.$emit("row-edit-cancelled", v)),
|
|
4781
|
+
onRowSelect: d[9] || (d[9] = (v) => y.$emit("row-select", v))
|
|
4781
4782
|
}, il({ _: 2 }, [
|
|
4782
|
-
se(
|
|
4783
|
+
se(y.$slots, (v, T) => ({
|
|
4783
4784
|
name: T,
|
|
4784
4785
|
fn: Q((L) => [
|
|
4785
|
-
U(
|
|
4786
|
+
U(y.$slots, T, de(ve(L)))
|
|
4786
4787
|
])
|
|
4787
4788
|
}))
|
|
4788
4789
|
]), 1032, ["columns", "request", "data", "time-zone", "loading", "search-value", "options", "edit-mode"])
|
|
@@ -4790,9 +4791,9 @@ const Oo = {
|
|
|
4790
4791
|
]),
|
|
4791
4792
|
E(go, {
|
|
4792
4793
|
request: f.value,
|
|
4793
|
-
"onUpdate:request": d[
|
|
4794
|
-
loading:
|
|
4795
|
-
data:
|
|
4794
|
+
"onUpdate:request": d[10] || (d[10] = (v) => f.value = v),
|
|
4795
|
+
loading: y.loading,
|
|
4796
|
+
data: y.data
|
|
4796
4797
|
}, null, 8, ["request", "loading", "data"])
|
|
4797
4798
|
]));
|
|
4798
4799
|
}
|