@3squared/forge-ui-3 2.21.4 → 2.21.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import $e from "primevue/message";
|
|
2
|
-
import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as
|
|
3
|
-
import { Icon as
|
|
2
|
+
import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as g, renderSlot as F, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as I, createElementBlock as b, Fragment as U, mergeProps as j, renderList as L, mergeModels as E, useModel as N, computed as _, withDirectives as K, createTextVNode as V, toDisplayString as $, vShow as X, createSlots as ie, onMounted as ne, withKeys as le, isRef as Fe, normalizeStyle as Se, withModifiers as Q, watch as W, h as Ce, useTemplateRef as Te } from "vue";
|
|
3
|
+
import { Icon as M } from "@iconify/vue";
|
|
4
4
|
import q from "primevue/button";
|
|
5
5
|
import ze from "primevue/toast";
|
|
6
6
|
import Pe from "primevue/autocomplete";
|
|
7
7
|
import je from "primevue/checkbox";
|
|
8
8
|
import { useField as se } from "vee-validate";
|
|
9
9
|
import _e from "primevue/progressspinner";
|
|
10
|
-
import
|
|
10
|
+
import Ie from "primevue/dialog";
|
|
11
11
|
import ae from "primevue/inputtext";
|
|
12
|
-
import { vOnClickOutside as
|
|
12
|
+
import { vOnClickOutside as Me } from "@vueuse/components";
|
|
13
13
|
import Ve from "primevue/menubar";
|
|
14
14
|
import de from "primevue/multiselect";
|
|
15
15
|
import De from "primevue/datepicker";
|
|
@@ -191,7 +191,7 @@ const Qe = {
|
|
|
191
191
|
select: {
|
|
192
192
|
root: ({ props: e }) => ({
|
|
193
193
|
class: [
|
|
194
|
-
"form-select d-flex cursor-pointer position-relative",
|
|
194
|
+
"form-select flex-1 d-flex cursor-pointer position-relative",
|
|
195
195
|
{
|
|
196
196
|
disabled: e.disabled
|
|
197
197
|
}
|
|
@@ -577,7 +577,7 @@ const Qe = {
|
|
|
577
577
|
}, ft = {
|
|
578
578
|
// More PassThrough options defined in ForgeDatepicker.
|
|
579
579
|
datepicker: {
|
|
580
|
-
root: "d-
|
|
580
|
+
root: "d-flex flex-1 relative",
|
|
581
581
|
pcInputText: "form-control",
|
|
582
582
|
dropdown: "d-none",
|
|
583
583
|
panel: ({ props: e }) => ({
|
|
@@ -757,8 +757,7 @@ const Qe = {
|
|
|
757
757
|
mask: () => ({
|
|
758
758
|
class: "table-overlay table-spinner"
|
|
759
759
|
}),
|
|
760
|
-
rowGroupHeaderCell: "
|
|
761
|
-
rowGroupHeader: "border-top border-bottom",
|
|
760
|
+
rowGroupHeaderCell: "fw-600 bg-grey-300",
|
|
762
761
|
rowToggleButton: "btn",
|
|
763
762
|
pcPaginator: {
|
|
764
763
|
//remove paginator if there are initially no values
|
|
@@ -1185,7 +1184,7 @@ const Qe = {
|
|
|
1185
1184
|
]
|
|
1186
1185
|
})
|
|
1187
1186
|
}
|
|
1188
|
-
},
|
|
1187
|
+
}, It = {
|
|
1189
1188
|
accordionPanel: {
|
|
1190
1189
|
root: "card my-2"
|
|
1191
1190
|
},
|
|
@@ -1203,7 +1202,7 @@ const Qe = {
|
|
|
1203
1202
|
accordionContent: {
|
|
1204
1203
|
root: "mt-2 mx-4 mb-4"
|
|
1205
1204
|
}
|
|
1206
|
-
},
|
|
1205
|
+
}, Mt = {
|
|
1207
1206
|
// More PT options can be found in the ForgeTable file.
|
|
1208
1207
|
treetable: {
|
|
1209
1208
|
root: "position-relative",
|
|
@@ -1314,8 +1313,8 @@ const Qe = {
|
|
|
1314
1313
|
..._t,
|
|
1315
1314
|
...jt,
|
|
1316
1315
|
...Pt,
|
|
1317
|
-
...Mt,
|
|
1318
1316
|
...It,
|
|
1317
|
+
...Mt,
|
|
1319
1318
|
...Vt,
|
|
1320
1319
|
...Dt,
|
|
1321
1320
|
directives: {
|
|
@@ -1343,11 +1342,11 @@ const Qe = {
|
|
|
1343
1342
|
return (a, i) => {
|
|
1344
1343
|
const o = $e;
|
|
1345
1344
|
return d(), x(o, G(Y({ ...a.$attrs, ...t })), {
|
|
1346
|
-
icon:
|
|
1345
|
+
icon: g(() => [
|
|
1347
1346
|
m("div", {
|
|
1348
1347
|
class: P(t.icon ? "me-2 pe-1" : "")
|
|
1349
1348
|
}, [
|
|
1350
|
-
t.icon ? (d(), x(c(
|
|
1349
|
+
t.icon ? (d(), x(c(M), {
|
|
1351
1350
|
key: 0,
|
|
1352
1351
|
"data-cy": "message-icon",
|
|
1353
1352
|
icon: t.icon,
|
|
@@ -1356,10 +1355,10 @@ const Qe = {
|
|
|
1356
1355
|
}, null, 8, ["icon", "class"])) : T("", !0)
|
|
1357
1356
|
], 2)
|
|
1358
1357
|
]),
|
|
1359
|
-
closeicon:
|
|
1360
|
-
k(c(
|
|
1358
|
+
closeicon: g(() => [
|
|
1359
|
+
k(c(M), { icon: "bi:x" })
|
|
1361
1360
|
]),
|
|
1362
|
-
default:
|
|
1361
|
+
default: g(() => [
|
|
1363
1362
|
F(a.$slots, "default")
|
|
1364
1363
|
]),
|
|
1365
1364
|
_: 3
|
|
@@ -1375,7 +1374,7 @@ const Qe = {
|
|
|
1375
1374
|
params: { default: Array }
|
|
1376
1375
|
},
|
|
1377
1376
|
setup(e) {
|
|
1378
|
-
const t =
|
|
1377
|
+
const t = I(!1), a = e, i = async () => {
|
|
1379
1378
|
t.value = !0;
|
|
1380
1379
|
try {
|
|
1381
1380
|
await a.action.apply(this, a.params);
|
|
@@ -1400,7 +1399,7 @@ const Qe = {
|
|
|
1400
1399
|
__name: "ForgeAutoComplete",
|
|
1401
1400
|
setup(e) {
|
|
1402
1401
|
return (t, a) => (d(), x(c(Pe), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1403
|
-
default:
|
|
1402
|
+
default: g(() => [
|
|
1404
1403
|
(d(!0), b(U, null, L(t.$slots, (i, o) => F(t.$slots, o, { slot: o })), 256))
|
|
1405
1404
|
]),
|
|
1406
1405
|
_: 3
|
|
@@ -1557,7 +1556,7 @@ const Qe = {
|
|
|
1557
1556
|
target: i.target
|
|
1558
1557
|
}, [
|
|
1559
1558
|
F(i.$slots, "default", {}, () => [
|
|
1560
|
-
i.iconName ? (d(), x(c(
|
|
1559
|
+
i.iconName ? (d(), x(c(M), {
|
|
1561
1560
|
key: 0,
|
|
1562
1561
|
id: "link-icon",
|
|
1563
1562
|
icon: i.iconName,
|
|
@@ -1654,7 +1653,7 @@ const Lt = {
|
|
|
1654
1653
|
}),
|
|
1655
1654
|
emits: ["update:visible", "update:error"],
|
|
1656
1655
|
setup(e, { expose: t }) {
|
|
1657
|
-
const a = N(e, "visible"), i =
|
|
1656
|
+
const a = N(e, "visible"), i = I(!1), o = e, l = I(!1), n = N(e, "error"), s = () => {
|
|
1658
1657
|
n.value = {
|
|
1659
1658
|
hasError: !1,
|
|
1660
1659
|
header: "",
|
|
@@ -1674,11 +1673,11 @@ const Lt = {
|
|
|
1674
1673
|
if (o.onConfirm) {
|
|
1675
1674
|
l.value = !0, n.value.hasError = !1;
|
|
1676
1675
|
try {
|
|
1677
|
-
const
|
|
1678
|
-
(
|
|
1679
|
-
} catch (
|
|
1676
|
+
const v = await o.onConfirm();
|
|
1677
|
+
(v || v == null) && h();
|
|
1678
|
+
} catch (v) {
|
|
1680
1679
|
n.value.hasError = !0;
|
|
1681
|
-
const C = Ut(
|
|
1680
|
+
const C = Ut(v);
|
|
1682
1681
|
n.value.header = C.errorMessage, n.value.message = C.errorDetails;
|
|
1683
1682
|
}
|
|
1684
1683
|
l.value = !1;
|
|
@@ -1702,15 +1701,15 @@ const Lt = {
|
|
|
1702
1701
|
}
|
|
1703
1702
|
]
|
|
1704
1703
|
}));
|
|
1705
|
-
return (
|
|
1706
|
-
const S = q, A =
|
|
1704
|
+
return (v, C) => {
|
|
1705
|
+
const S = q, A = Ie;
|
|
1707
1706
|
return d(), x(A, j(o, {
|
|
1708
1707
|
onMaximize: u,
|
|
1709
1708
|
onUnmaximize: p,
|
|
1710
1709
|
pt: w.value
|
|
1711
1710
|
}), ie({
|
|
1712
|
-
closeicon:
|
|
1713
|
-
k(c(
|
|
1711
|
+
closeicon: g(() => [
|
|
1712
|
+
k(c(M), {
|
|
1714
1713
|
"data-cy": "close-icon",
|
|
1715
1714
|
icon: "bi:x-lg",
|
|
1716
1715
|
width: "18",
|
|
@@ -1718,8 +1717,8 @@ const Lt = {
|
|
|
1718
1717
|
onClick: h
|
|
1719
1718
|
})
|
|
1720
1719
|
]),
|
|
1721
|
-
maximizeicon:
|
|
1722
|
-
k(c(
|
|
1720
|
+
maximizeicon: g(() => [
|
|
1721
|
+
k(c(M), {
|
|
1723
1722
|
"data-cy": "maximisable-icon",
|
|
1724
1723
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1725
1724
|
width: "16",
|
|
@@ -1728,9 +1727,9 @@ const Lt = {
|
|
|
1728
1727
|
]),
|
|
1729
1728
|
_: 2
|
|
1730
1729
|
}, [
|
|
1731
|
-
L(
|
|
1730
|
+
L(v.$slots, (f, B) => ({
|
|
1732
1731
|
name: B,
|
|
1733
|
-
fn:
|
|
1732
|
+
fn: g((D) => [
|
|
1734
1733
|
B == "default" ? (d(), b(U, { key: 0 }, [
|
|
1735
1734
|
n.value.hasError ? (d(), b("div", Lt, [
|
|
1736
1735
|
k(re, {
|
|
@@ -1738,7 +1737,7 @@ const Lt = {
|
|
|
1738
1737
|
"data-cy": "error",
|
|
1739
1738
|
class: "mb-0"
|
|
1740
1739
|
}, {
|
|
1741
|
-
default:
|
|
1740
|
+
default: g(() => [
|
|
1742
1741
|
m("p", {
|
|
1743
1742
|
class: P(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1744
1743
|
}, $(n.value.header), 3),
|
|
@@ -1750,18 +1749,18 @@ const Lt = {
|
|
|
1750
1749
|
})
|
|
1751
1750
|
])) : T("", !0)
|
|
1752
1751
|
], 64)) : T("", !0),
|
|
1753
|
-
F(
|
|
1754
|
-
l.value ? F(
|
|
1752
|
+
F(v.$slots, B, G(Y(D || {}))),
|
|
1753
|
+
l.value ? F(v.$slots, "loader", { key: 1 }, () => [
|
|
1755
1754
|
k(pe, { "data-cy": "loader" })
|
|
1756
1755
|
]) : T("", !0)
|
|
1757
1756
|
])
|
|
1758
1757
|
})),
|
|
1759
|
-
|
|
1758
|
+
v.showFooter ? {
|
|
1760
1759
|
name: "footer",
|
|
1761
|
-
fn:
|
|
1760
|
+
fn: g(() => [
|
|
1762
1761
|
m("div", qt, [
|
|
1763
1762
|
k(S, {
|
|
1764
|
-
label:
|
|
1763
|
+
label: v.cancelText,
|
|
1765
1764
|
class: P(o.cancelClass),
|
|
1766
1765
|
outlined: "",
|
|
1767
1766
|
onClick: h,
|
|
@@ -1769,7 +1768,7 @@ const Lt = {
|
|
|
1769
1768
|
type: o.cancelButtonType
|
|
1770
1769
|
}, null, 8, ["label", "class", "type"]),
|
|
1771
1770
|
k(S, {
|
|
1772
|
-
label:
|
|
1771
|
+
label: v.submitText,
|
|
1773
1772
|
class: P([o.submitClass, "ms-auto"]),
|
|
1774
1773
|
onClick: r,
|
|
1775
1774
|
id: "submit-button",
|
|
@@ -1797,9 +1796,9 @@ const Lt = {
|
|
|
1797
1796
|
}),
|
|
1798
1797
|
emits: ["update:modelValue"],
|
|
1799
1798
|
setup(e) {
|
|
1800
|
-
const t = e, a = N(e, "modelValue"), i =
|
|
1801
|
-
var
|
|
1802
|
-
i.value = !i.value, (
|
|
1799
|
+
const t = e, a = N(e, "modelValue"), i = I(!1), o = I(), l = () => {
|
|
1800
|
+
var v;
|
|
1801
|
+
i.value = !i.value, (v = o.value) == null || v.focus();
|
|
1803
1802
|
}, n = async () => {
|
|
1804
1803
|
if (w.value)
|
|
1805
1804
|
return !1;
|
|
@@ -1822,19 +1821,19 @@ const Lt = {
|
|
|
1822
1821
|
r.value = a.value;
|
|
1823
1822
|
});
|
|
1824
1823
|
const w = _(() => h.value.length > 0);
|
|
1825
|
-
return (
|
|
1824
|
+
return (v, C) => {
|
|
1826
1825
|
const S = ae, A = q;
|
|
1827
1826
|
return d(), b("div", {
|
|
1828
1827
|
id: t.name
|
|
1829
1828
|
}, [
|
|
1830
|
-
|
|
1831
|
-
F(
|
|
1829
|
+
v.readonly ? (d(), b("div", Yt, [
|
|
1830
|
+
F(v.$slots, "default", {}, () => [
|
|
1832
1831
|
m("span", Jt, $(c(r)), 1)
|
|
1833
1832
|
])
|
|
1834
1833
|
])) : (d(), b("div", Ht, [
|
|
1835
1834
|
i.value ? (d(), b("div", Wt, [
|
|
1836
1835
|
K((d(), b("div", Gt, [
|
|
1837
|
-
F(
|
|
1836
|
+
F(v.$slots, "editor", {
|
|
1838
1837
|
class: P({ "is-invalid": w.value }),
|
|
1839
1838
|
editFinished: n,
|
|
1840
1839
|
cancel: s,
|
|
@@ -1842,7 +1841,7 @@ const Lt = {
|
|
|
1842
1841
|
}, () => [
|
|
1843
1842
|
k(S, {
|
|
1844
1843
|
modelValue: c(r),
|
|
1845
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
1844
|
+
"onUpdate:modelValue": C[0] || (C[0] = (f) => Fe(r) ? r.value = f : null),
|
|
1846
1845
|
modelModifiers: { trim: !0 },
|
|
1847
1846
|
"data-cy": "input",
|
|
1848
1847
|
ref_key: "input",
|
|
@@ -1854,7 +1853,7 @@ const Lt = {
|
|
|
1854
1853
|
]
|
|
1855
1854
|
}, null, 8, ["modelValue", "class"])
|
|
1856
1855
|
]),
|
|
1857
|
-
k(c(
|
|
1856
|
+
k(c(M), {
|
|
1858
1857
|
icon: "bi:x-circle",
|
|
1859
1858
|
class: "mx-2 cursor-pointer",
|
|
1860
1859
|
onClick: p,
|
|
@@ -1862,7 +1861,7 @@ const Lt = {
|
|
|
1862
1861
|
"data-cy": "clear-icon"
|
|
1863
1862
|
})
|
|
1864
1863
|
])), [
|
|
1865
|
-
[c(
|
|
1864
|
+
[c(Me), n]
|
|
1866
1865
|
])
|
|
1867
1866
|
])) : (d(), b("div", {
|
|
1868
1867
|
key: 1,
|
|
@@ -1870,7 +1869,7 @@ const Lt = {
|
|
|
1870
1869
|
onClick: l,
|
|
1871
1870
|
onFocus: l
|
|
1872
1871
|
}, [
|
|
1873
|
-
F(
|
|
1872
|
+
F(v.$slots, "default", {}, () => [
|
|
1874
1873
|
m("div", {
|
|
1875
1874
|
class: P(["pe-2 cursor-pointer", { "text-invalid": w.value }]),
|
|
1876
1875
|
"data-cy": "value"
|
|
@@ -1880,8 +1879,8 @@ const Lt = {
|
|
|
1880
1879
|
link: "",
|
|
1881
1880
|
class: "p-0 m-0"
|
|
1882
1881
|
}, {
|
|
1883
|
-
default:
|
|
1884
|
-
k(c(
|
|
1882
|
+
default: g(() => [
|
|
1883
|
+
k(c(M), {
|
|
1885
1884
|
icon: "bi:pencil",
|
|
1886
1885
|
class: P(w.value ? "text-invalid" : "text-muted"),
|
|
1887
1886
|
"data-cy": "edit-icon",
|
|
@@ -1950,7 +1949,7 @@ const Lt = {
|
|
|
1950
1949
|
pt: a.value,
|
|
1951
1950
|
"data-cy": "navbar"
|
|
1952
1951
|
}), ie({
|
|
1953
|
-
start:
|
|
1952
|
+
start: g(() => [
|
|
1954
1953
|
m("a", {
|
|
1955
1954
|
href: i.logoUrl,
|
|
1956
1955
|
class: "navbar-brand ms-3",
|
|
@@ -1961,9 +1960,9 @@ const Lt = {
|
|
|
1961
1960
|
])
|
|
1962
1961
|
], 8, Zt)
|
|
1963
1962
|
]),
|
|
1964
|
-
buttonicon:
|
|
1963
|
+
buttonicon: g(() => [
|
|
1965
1964
|
F(i.$slots, "buttonIcon", {}, () => [
|
|
1966
|
-
k(c(
|
|
1965
|
+
k(c(M), {
|
|
1967
1966
|
icon: "bi:list",
|
|
1968
1967
|
class: P(t.severity === "light" ? "text-black" : "text-white"),
|
|
1969
1968
|
height: "24",
|
|
@@ -1975,7 +1974,7 @@ const Lt = {
|
|
|
1975
1974
|
}, [
|
|
1976
1975
|
L(i.$slots, (l, n) => ({
|
|
1977
1976
|
name: n,
|
|
1978
|
-
fn:
|
|
1977
|
+
fn: g((s) => [
|
|
1979
1978
|
F(i.$slots, n, G(Y(s)))
|
|
1980
1979
|
])
|
|
1981
1980
|
}))
|
|
@@ -2010,7 +2009,7 @@ const Lt = {
|
|
|
2010
2009
|
return (o, l) => {
|
|
2011
2010
|
const n = de, s = q;
|
|
2012
2011
|
return d(), b("div", {
|
|
2013
|
-
class: P(o.orientation === "column" ? "row" : ""),
|
|
2012
|
+
class: P(o.orientation === "column" ? "row" : "flex-1"),
|
|
2014
2013
|
"data-cy": "multiselect-preview"
|
|
2015
2014
|
}, [
|
|
2016
2015
|
m("div", {
|
|
@@ -2026,7 +2025,7 @@ const Lt = {
|
|
|
2026
2025
|
placeholder: o.multiselectPlaceholder,
|
|
2027
2026
|
"data-cy": "multiselect"
|
|
2028
2027
|
}), {
|
|
2029
|
-
default:
|
|
2028
|
+
default: g(() => [
|
|
2030
2029
|
(d(!0), b(U, null, L(o.$slots, (p, u) => F(o.$slots, u, { slot: u })), 256))
|
|
2031
2030
|
]),
|
|
2032
2031
|
_: 3
|
|
@@ -2056,8 +2055,8 @@ const Lt = {
|
|
|
2056
2055
|
class: "m-0 p-0 d-flex align-items-center",
|
|
2057
2056
|
onClick: (u) => i(p.id)
|
|
2058
2057
|
}, {
|
|
2059
|
-
default:
|
|
2060
|
-
k(c(
|
|
2058
|
+
default: g(() => [
|
|
2059
|
+
k(c(M), {
|
|
2061
2060
|
icon: "bi:x",
|
|
2062
2061
|
class: "close-icon",
|
|
2063
2062
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -2093,7 +2092,7 @@ const Lt = {
|
|
|
2093
2092
|
])
|
|
2094
2093
|
]));
|
|
2095
2094
|
}
|
|
2096
|
-
}), na = { class: "d-flex" }, sa = { "data-cy": "before-slot" }, ra = { class: "position-relative
|
|
2095
|
+
}), na = { class: "d-flex flex-1" }, sa = { "data-cy": "before-slot" }, ra = { class: "position-relative d-flex flex-1" }, da = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ z({
|
|
2097
2096
|
__name: "ForgeDatepicker",
|
|
2098
2097
|
props: /* @__PURE__ */ E({
|
|
2099
2098
|
severity: { default: "primary" },
|
|
@@ -2173,7 +2172,7 @@ const Lt = {
|
|
|
2173
2172
|
}), p = () => {
|
|
2174
2173
|
s(null), a.value = null;
|
|
2175
2174
|
}, u = _(() => i.value.length > 0), h = _(() => ({
|
|
2176
|
-
day: ({ context: r, props: w, attrs:
|
|
2175
|
+
day: ({ context: r, props: w, attrs: v }) => ({
|
|
2177
2176
|
class: [
|
|
2178
2177
|
"d-flex justify-content-center align-items-center",
|
|
2179
2178
|
{
|
|
@@ -2193,14 +2192,14 @@ const Lt = {
|
|
|
2193
2192
|
},
|
|
2194
2193
|
// Severities
|
|
2195
2194
|
{
|
|
2196
|
-
"date-primary":
|
|
2197
|
-
"date-brand":
|
|
2198
|
-
"date-secondary":
|
|
2199
|
-
"date-success":
|
|
2200
|
-
"date-success-alternate":
|
|
2201
|
-
"date-warning":
|
|
2202
|
-
"date-danger":
|
|
2203
|
-
"date-info":
|
|
2195
|
+
"date-primary": v.severity === void 0 || v.severity === "primary",
|
|
2196
|
+
"date-brand": v.severity === "brand",
|
|
2197
|
+
"date-secondary": v.severity === "secondary",
|
|
2198
|
+
"date-success": v.severity === "success",
|
|
2199
|
+
"date-success-alternate": v.severity === "success-alternate",
|
|
2200
|
+
"date-warning": v.severity === "warning",
|
|
2201
|
+
"date-danger": v.severity === "danger",
|
|
2202
|
+
"date-info": v.severity === "info"
|
|
2204
2203
|
}
|
|
2205
2204
|
]
|
|
2206
2205
|
}),
|
|
@@ -2278,14 +2277,14 @@ const Lt = {
|
|
|
2278
2277
|
})
|
|
2279
2278
|
}));
|
|
2280
2279
|
return (r, w) => {
|
|
2281
|
-
const
|
|
2280
|
+
const v = De;
|
|
2282
2281
|
return d(), b(U, null, [
|
|
2283
2282
|
m("div", na, [
|
|
2284
2283
|
m("span", sa, [
|
|
2285
2284
|
F(r.$slots, "before")
|
|
2286
2285
|
]),
|
|
2287
2286
|
m("div", ra, [
|
|
2288
|
-
k(
|
|
2287
|
+
k(v, j({ ...t, ...r.$attrs }, {
|
|
2289
2288
|
pt: h.value,
|
|
2290
2289
|
modelValue: a.value,
|
|
2291
2290
|
"onUpdate:modelValue": [
|
|
@@ -2295,20 +2294,20 @@ const Lt = {
|
|
|
2295
2294
|
onBlur: w[1] || (w[1] = () => c(n)),
|
|
2296
2295
|
"input-class": { "text-truncate": !0, "datepicker-invalid": u.value, "pe-5": t.showIcon && t.modelValue, "pe-4": (t.showIcon || t.modelValue) && !(t.showIcon && t.modelValue) }
|
|
2297
2296
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2298
|
-
K(k(c(
|
|
2297
|
+
K(k(c(M), {
|
|
2299
2298
|
"data-cy": "icon",
|
|
2300
2299
|
icon: "bi:calendar4",
|
|
2301
2300
|
class: P(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white pe-none", `${u.value ? "text-danger-dark" : "text-muted"}`])
|
|
2302
2301
|
}, null, 8, ["class"]), [
|
|
2303
2302
|
[X, t.showIcon && !t.inline]
|
|
2304
2303
|
]),
|
|
2305
|
-
K(k(c(
|
|
2304
|
+
K(k(c(M), {
|
|
2306
2305
|
"data-cy": "icon",
|
|
2307
2306
|
icon: "bi:x",
|
|
2308
2307
|
onClick: p,
|
|
2309
2308
|
class: P(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2310
2309
|
}, null, 8, ["class"]), [
|
|
2311
|
-
[X, t.modelValue && !t.inline]
|
|
2310
|
+
[X, t.modelValue && !t.inline && !r.readonly]
|
|
2312
2311
|
])
|
|
2313
2312
|
]),
|
|
2314
2313
|
m("span", da, [
|
|
@@ -2348,7 +2347,7 @@ const Lt = {
|
|
|
2348
2347
|
hideCancel: { type: Boolean, default: !1 }
|
|
2349
2348
|
},
|
|
2350
2349
|
setup(e) {
|
|
2351
|
-
const t = e, a =
|
|
2350
|
+
const t = e, a = I(!1), i = I({
|
|
2352
2351
|
hasError: !1,
|
|
2353
2352
|
message: ""
|
|
2354
2353
|
});
|
|
@@ -2382,7 +2381,7 @@ const Lt = {
|
|
|
2382
2381
|
severity: "danger",
|
|
2383
2382
|
"data-cy": "error"
|
|
2384
2383
|
}, {
|
|
2385
|
-
default:
|
|
2384
|
+
default: g(() => [
|
|
2386
2385
|
F(l.$slots, "error", {
|
|
2387
2386
|
error: i.value.message
|
|
2388
2387
|
}, () => [
|
|
@@ -2402,7 +2401,7 @@ const Lt = {
|
|
|
2402
2401
|
outlined: "",
|
|
2403
2402
|
onClick: n[0] || (n[0] = (p) => l.$emit("cancel"))
|
|
2404
2403
|
}, {
|
|
2405
|
-
default:
|
|
2404
|
+
default: g(() => [
|
|
2406
2405
|
V($(l.cancelText), 1)
|
|
2407
2406
|
]),
|
|
2408
2407
|
_: 1
|
|
@@ -2415,7 +2414,7 @@ const Lt = {
|
|
|
2415
2414
|
severity: "primary",
|
|
2416
2415
|
class: "ms-auto"
|
|
2417
2416
|
}, {
|
|
2418
|
-
default:
|
|
2417
|
+
default: g(() => [
|
|
2419
2418
|
V($(l.submitText), 1)
|
|
2420
2419
|
]),
|
|
2421
2420
|
_: 1
|
|
@@ -2460,7 +2459,7 @@ const Lt = {
|
|
|
2460
2459
|
return W(() => l.value, (h) => {
|
|
2461
2460
|
t.value = h;
|
|
2462
2461
|
}, { immediate: !0 }), (h, r) => {
|
|
2463
|
-
const w = Ae,
|
|
2462
|
+
const w = Ae, v = Oe, C = ae, S = oe, A = de, f = xe;
|
|
2464
2463
|
return a.type === "checkbox" ? (d(), x(ye, j({
|
|
2465
2464
|
key: 0,
|
|
2466
2465
|
id: a.name,
|
|
@@ -2486,9 +2485,9 @@ const Lt = {
|
|
|
2486
2485
|
key: 0,
|
|
2487
2486
|
id: a.name
|
|
2488
2487
|
}, h.$attrs, {
|
|
2488
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2489
2489
|
placeholder: a.placeholder,
|
|
2490
2490
|
"input-class": { "is-invalid": u.value },
|
|
2491
|
-
class: { "is-invalid": u.value },
|
|
2492
2491
|
onInput: i,
|
|
2493
2492
|
modelValue: t.value,
|
|
2494
2493
|
"onUpdate:modelValue": r[1] || (r[1] = (B) => t.value = B)
|
|
@@ -2496,19 +2495,19 @@ const Lt = {
|
|
|
2496
2495
|
key: 1,
|
|
2497
2496
|
id: a.name
|
|
2498
2497
|
}, h.$attrs, {
|
|
2498
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2499
2499
|
placeholder: a.placeholder,
|
|
2500
|
-
class: { "is-invalid": u.value },
|
|
2501
2500
|
modelValue: t.value,
|
|
2502
2501
|
"onUpdate:modelValue": r[2] || (r[2] = (B) => t.value = B),
|
|
2503
2502
|
onInput: i,
|
|
2504
2503
|
onBlur: c(p)
|
|
2505
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), x(
|
|
2504
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), x(v, j({
|
|
2506
2505
|
key: 2,
|
|
2507
2506
|
id: a.name
|
|
2508
2507
|
}, h.$attrs, {
|
|
2508
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2509
2509
|
placeholder: a.placeholder,
|
|
2510
2510
|
mask: a.mask,
|
|
2511
|
-
class: { "is-invalid": u.value },
|
|
2512
2511
|
modelValue: t.value,
|
|
2513
2512
|
"onUpdate:modelValue": r[3] || (r[3] = (B) => t.value = B),
|
|
2514
2513
|
onComplete: i,
|
|
@@ -2517,8 +2516,8 @@ const Lt = {
|
|
|
2517
2516
|
key: 3,
|
|
2518
2517
|
id: a.name
|
|
2519
2518
|
}, h.$attrs, {
|
|
2519
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2520
2520
|
placeholder: a.placeholder,
|
|
2521
|
-
class: { "is-invalid": u.value },
|
|
2522
2521
|
modelValue: t.value,
|
|
2523
2522
|
"onUpdate:modelValue": r[4] || (r[4] = (B) => t.value = B),
|
|
2524
2523
|
onInput: i,
|
|
@@ -2535,7 +2534,7 @@ const Lt = {
|
|
|
2535
2534
|
modelValue: t.value,
|
|
2536
2535
|
"onUpdate:modelValue": r[7] || (r[7] = (B) => t.value = B),
|
|
2537
2536
|
class: { "is-invalid": u.value }
|
|
2538
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), x(
|
|
2537
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), x(f, j({ key: 7 }, { ...a, ...h.$attrs }, {
|
|
2539
2538
|
modelValue: t.value,
|
|
2540
2539
|
"onUpdate:modelValue": r[8] || (r[8] = (B) => t.value = B),
|
|
2541
2540
|
class: { "is-invalid": u.value }
|
|
@@ -2588,7 +2587,7 @@ const Lt = {
|
|
|
2588
2587
|
return (i, o) => {
|
|
2589
2588
|
const l = Ne;
|
|
2590
2589
|
return d(), x(l, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2591
|
-
default:
|
|
2590
|
+
default: g(() => [
|
|
2592
2591
|
(d(!0), b(U, null, L(i.$slots, (n, s) => F(i.$slots, s, { slot: s })), 256))
|
|
2593
2592
|
]),
|
|
2594
2593
|
_: 3
|
|
@@ -2643,7 +2642,7 @@ const Lt = {
|
|
|
2643
2642
|
return (n, s) => {
|
|
2644
2643
|
const p = Ue;
|
|
2645
2644
|
return d(), x(p, j({ ...n.$attrs, ...t }, { pt: l.value }), {
|
|
2646
|
-
default:
|
|
2645
|
+
default: g(() => [
|
|
2647
2646
|
F(n.$slots, "default")
|
|
2648
2647
|
]),
|
|
2649
2648
|
_: 3
|
|
@@ -2967,7 +2966,7 @@ var va = /* @__PURE__ */ z({
|
|
|
2967
2966
|
var p = t.split(n).filter((S) => S.length > 0);
|
|
2968
2967
|
for (let S = 0; S < p.length; S++) {
|
|
2969
2968
|
for (var u = p[S].split(s).filter((A) => A.length > 0), h = "", r = 0; r < u.length; r++) {
|
|
2970
|
-
var w = h + u[r] + " ",
|
|
2969
|
+
var w = h + u[r] + " ", v = e.measureText(w), C = v.width;
|
|
2971
2970
|
C > o && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(h, a, i) : e.fillText(h, a, i), h = u[r] + " ", i += l) : h = w;
|
|
2972
2971
|
}
|
|
2973
2972
|
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(h, a, i) : e.fillText(h, a, i), i += u.length > 0 ? l : 0;
|
|
@@ -3054,7 +3053,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3054
3053
|
},
|
|
3055
3054
|
emits: ["save"],
|
|
3056
3055
|
setup(e, { emit: t }) {
|
|
3057
|
-
const a = e, i = t, o = Te("drawingCanvas"), l =
|
|
3056
|
+
const a = e, i = t, o = Te("drawingCanvas"), l = I(), n = () => {
|
|
3058
3057
|
o == null || o.value.reset();
|
|
3059
3058
|
}, s = () => {
|
|
3060
3059
|
o == null || o.value.redo();
|
|
@@ -3070,7 +3069,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3070
3069
|
ref_key: "drawingCanvas",
|
|
3071
3070
|
ref: o,
|
|
3072
3071
|
image: l.value,
|
|
3073
|
-
"onUpdate:image": r[0] || (r[0] = (
|
|
3072
|
+
"onUpdate:image": r[0] || (r[0] = (v) => l.value = v),
|
|
3074
3073
|
"data-cy": "drawing-canvas",
|
|
3075
3074
|
class: "border canvas"
|
|
3076
3075
|
}, { ...h.$attrs }, {
|
|
@@ -3086,7 +3085,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3086
3085
|
outlined: "",
|
|
3087
3086
|
"data-cy": "undo-button"
|
|
3088
3087
|
}, {
|
|
3089
|
-
default:
|
|
3088
|
+
default: g(() => r[1] || (r[1] = [
|
|
3090
3089
|
V("Undo")
|
|
3091
3090
|
])),
|
|
3092
3091
|
_: 1,
|
|
@@ -3098,7 +3097,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3098
3097
|
outlined: "",
|
|
3099
3098
|
"data-cy": "redo-button"
|
|
3100
3099
|
}, {
|
|
3101
|
-
default:
|
|
3100
|
+
default: g(() => r[2] || (r[2] = [
|
|
3102
3101
|
V("Redo")
|
|
3103
3102
|
])),
|
|
3104
3103
|
_: 1,
|
|
@@ -3110,7 +3109,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3110
3109
|
outlined: "",
|
|
3111
3110
|
"data-cy": "clear-button"
|
|
3112
3111
|
}, {
|
|
3113
|
-
default:
|
|
3112
|
+
default: g(() => r[3] || (r[3] = [
|
|
3114
3113
|
V("Clear")
|
|
3115
3114
|
])),
|
|
3116
3115
|
_: 1,
|
|
@@ -3122,7 +3121,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3122
3121
|
class: "ms-auto",
|
|
3123
3122
|
"data-cy": "save-button"
|
|
3124
3123
|
}, {
|
|
3125
|
-
default:
|
|
3124
|
+
default: g(() => r[4] || (r[4] = [
|
|
3126
3125
|
V("Save")
|
|
3127
3126
|
])),
|
|
3128
3127
|
_: 1,
|
|
@@ -3196,15 +3195,15 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3196
3195
|
})
|
|
3197
3196
|
}));
|
|
3198
3197
|
return (i, o) => (d(), x(c(Ee), { value: i.currentStep }, {
|
|
3199
|
-
default:
|
|
3198
|
+
default: g(() => [
|
|
3200
3199
|
k(c(qe), null, {
|
|
3201
|
-
default:
|
|
3200
|
+
default: g(() => [
|
|
3202
3201
|
(d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Le), j({
|
|
3203
3202
|
key: l.value,
|
|
3204
3203
|
value: l.value,
|
|
3205
3204
|
disabled: l.disabled
|
|
3206
3205
|
}, { ref_for: !0 }, { ...i.$attrs }, { pt: a.value }), {
|
|
3207
|
-
default:
|
|
3206
|
+
default: g(() => [
|
|
3208
3207
|
i.showStepLabel ? (d(), b("div", ya, $(l.label), 1)) : T("", !0)
|
|
3209
3208
|
]),
|
|
3210
3209
|
_: 2
|
|
@@ -3213,12 +3212,12 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3213
3212
|
_: 1
|
|
3214
3213
|
}),
|
|
3215
3214
|
k(c(He), null, {
|
|
3216
|
-
default:
|
|
3215
|
+
default: g(() => [
|
|
3217
3216
|
(d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Re), {
|
|
3218
3217
|
key: l.value,
|
|
3219
3218
|
value: l.value
|
|
3220
3219
|
}, {
|
|
3221
|
-
default:
|
|
3220
|
+
default: g(() => [
|
|
3222
3221
|
F(i.$slots, "step" + l.value)
|
|
3223
3222
|
]),
|
|
3224
3223
|
_: 2
|
|
@@ -3249,7 +3248,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3249
3248
|
unstyled: "",
|
|
3250
3249
|
"data-cy": "button-tile"
|
|
3251
3250
|
}, {
|
|
3252
|
-
default:
|
|
3251
|
+
default: g(() => [
|
|
3253
3252
|
m("div", xa, [
|
|
3254
3253
|
F(o.$slots, "default", {}, () => [
|
|
3255
3254
|
l[0] || (l[0] = V("Tile Content"))
|
|
@@ -3402,7 +3401,7 @@ const wa = {
|
|
|
3402
3401
|
},
|
|
3403
3402
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3404
3403
|
setup(e, { emit: t }) {
|
|
3405
|
-
const a = t, i = e, o =
|
|
3404
|
+
const a = t, i = e, o = I(), l = I([5, 10, 20, 50, 100]), n = I(i.perPage ?? 10), s = I({
|
|
3406
3405
|
filters: i.filters,
|
|
3407
3406
|
perPage: n.value,
|
|
3408
3407
|
page: 0,
|
|
@@ -3410,12 +3409,12 @@ const wa = {
|
|
|
3410
3409
|
sortField: "",
|
|
3411
3410
|
total: i.totalRecords ?? i.value.length
|
|
3412
3411
|
});
|
|
3413
|
-
W(() => i.perPage, (
|
|
3414
|
-
|
|
3412
|
+
W(() => i.perPage, (f) => {
|
|
3413
|
+
f && (n.value = f, s.value.perPage = f);
|
|
3415
3414
|
});
|
|
3416
3415
|
const p = _(() => i.totalRecords ?? i.value.length), u = _(() => {
|
|
3417
|
-
const
|
|
3418
|
-
return `${
|
|
3416
|
+
const f = Math.ceil(p.value / n.value);
|
|
3417
|
+
return `${f} ${ee(f, "page")}`;
|
|
3419
3418
|
}), h = _(() => ({
|
|
3420
3419
|
thead: () => ({
|
|
3421
3420
|
class: [
|
|
@@ -3443,30 +3442,30 @@ const wa = {
|
|
|
3443
3442
|
if (i.clearAll)
|
|
3444
3443
|
i.clearAll();
|
|
3445
3444
|
else
|
|
3446
|
-
for (const
|
|
3447
|
-
typeof i.filters[
|
|
3445
|
+
for (const f in i.filters)
|
|
3446
|
+
typeof i.filters[f] == "string" ? i.filters[f] = "" : i.filters[f].value = null;
|
|
3448
3447
|
C(i.filters);
|
|
3449
3448
|
}, w = () => {
|
|
3450
3449
|
o.value.exportCSV();
|
|
3451
|
-
},
|
|
3450
|
+
}, v = (f) => {
|
|
3452
3451
|
var B;
|
|
3453
|
-
s.value.sortDirection =
|
|
3454
|
-
}, C = (
|
|
3455
|
-
s.value.filters =
|
|
3456
|
-
}, S = (
|
|
3457
|
-
s.value.page =
|
|
3452
|
+
s.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((B = f.sortField) == null ? void 0 : B.toString()) ?? "", a("update:tableContext", s.value), a("sort", f);
|
|
3453
|
+
}, C = (f) => {
|
|
3454
|
+
s.value.filters = f, a("update:tableContext", s.value), a("update:filters", f);
|
|
3455
|
+
}, S = (f) => {
|
|
3456
|
+
s.value.page = f.page, a("update:tableContext", s.value), a("page", f);
|
|
3458
3457
|
}, A = () => {
|
|
3459
3458
|
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3460
3459
|
};
|
|
3461
|
-
return W(() => i.filters, (
|
|
3462
|
-
s.value.filters =
|
|
3463
|
-
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (
|
|
3460
|
+
return W(() => i.filters, (f) => {
|
|
3461
|
+
s.value.filters = f, a("update:tableContext", s.value);
|
|
3462
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (f, B) => (d(), b("div", Fa, [
|
|
3464
3463
|
m("span", Sa, [
|
|
3465
|
-
F(
|
|
3464
|
+
F(f.$slots, "above-table")
|
|
3466
3465
|
]),
|
|
3467
3466
|
k(c(We), j({
|
|
3468
3467
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3469
|
-
}, { ...i, ...
|
|
3468
|
+
}, { ...i, ...f.$attrs }, {
|
|
3470
3469
|
pt: h.value,
|
|
3471
3470
|
rows: n.value,
|
|
3472
3471
|
"total-records": p.value,
|
|
@@ -3475,22 +3474,22 @@ const wa = {
|
|
|
3475
3474
|
ref: o,
|
|
3476
3475
|
"data-cy": "table",
|
|
3477
3476
|
"onUpdate:filters": C,
|
|
3478
|
-
onSort:
|
|
3477
|
+
onSort: v,
|
|
3479
3478
|
onPage: S,
|
|
3480
3479
|
showHeaders: ""
|
|
3481
3480
|
}), ie({
|
|
3482
|
-
empty:
|
|
3481
|
+
empty: g(() => [
|
|
3483
3482
|
m("div", Ca, [
|
|
3484
|
-
m("h5", Ta, $(
|
|
3483
|
+
m("h5", Ta, $(f.emptyMessage ?? "No items Found."), 1)
|
|
3485
3484
|
])
|
|
3486
3485
|
]),
|
|
3487
|
-
header:
|
|
3486
|
+
header: g(() => [
|
|
3488
3487
|
m("div", {
|
|
3489
3488
|
class: P(i.loading ? "opacity-50" : "")
|
|
3490
3489
|
}, [
|
|
3491
3490
|
m("div", za, [
|
|
3492
3491
|
m("div", Pa, [
|
|
3493
|
-
|
|
3492
|
+
f.paginator && !f.legacyPaginationFooter ? (d(), b("span", ja, [
|
|
3494
3493
|
k(he, {
|
|
3495
3494
|
total: p.value,
|
|
3496
3495
|
"page-sizes": l.value,
|
|
@@ -3503,15 +3502,15 @@ const wa = {
|
|
|
3503
3502
|
])) : T("", !0)
|
|
3504
3503
|
]),
|
|
3505
3504
|
m("div", _a, [
|
|
3506
|
-
|
|
3505
|
+
f.showClearButton ? (d(), x(c(q), {
|
|
3507
3506
|
key: 0,
|
|
3508
3507
|
outlined: "",
|
|
3509
|
-
class: P(
|
|
3508
|
+
class: P(f.showExporterButton ? "me-2" : ""),
|
|
3510
3509
|
onClick: r,
|
|
3511
3510
|
"data-cy": "clear-all"
|
|
3512
3511
|
}, {
|
|
3513
|
-
default:
|
|
3514
|
-
k(c(
|
|
3512
|
+
default: g(() => [
|
|
3513
|
+
k(c(M), {
|
|
3515
3514
|
icon: "bi:funnel-fill",
|
|
3516
3515
|
width: "24",
|
|
3517
3516
|
height: "24"
|
|
@@ -3521,14 +3520,14 @@ const wa = {
|
|
|
3521
3520
|
_: 1,
|
|
3522
3521
|
__: [2]
|
|
3523
3522
|
}, 8, ["class"])) : T("", !0),
|
|
3524
|
-
|
|
3523
|
+
f.showExporterButton ? (d(), x(c(q), {
|
|
3525
3524
|
key: 1,
|
|
3526
3525
|
outlined: "",
|
|
3527
3526
|
onClick: w,
|
|
3528
3527
|
"data-cy": "exporter"
|
|
3529
3528
|
}, {
|
|
3530
|
-
default:
|
|
3531
|
-
k(c(
|
|
3529
|
+
default: g(() => [
|
|
3530
|
+
k(c(M), {
|
|
3532
3531
|
icon: "typcn:export",
|
|
3533
3532
|
width: "24",
|
|
3534
3533
|
height: "24"
|
|
@@ -3538,25 +3537,25 @@ const wa = {
|
|
|
3538
3537
|
_: 1,
|
|
3539
3538
|
__: [3]
|
|
3540
3539
|
})) : T("", !0),
|
|
3541
|
-
F(
|
|
3540
|
+
F(f.$slots, "column-customiser")
|
|
3542
3541
|
])
|
|
3543
3542
|
])
|
|
3544
3543
|
], 2)
|
|
3545
3544
|
]),
|
|
3546
|
-
default:
|
|
3547
|
-
F(
|
|
3545
|
+
default: g(() => [
|
|
3546
|
+
F(f.$slots, "default")
|
|
3548
3547
|
]),
|
|
3549
3548
|
_: 2
|
|
3550
3549
|
}, [
|
|
3551
|
-
L(
|
|
3550
|
+
L(f.$slots, (D, y) => ({
|
|
3552
3551
|
name: y,
|
|
3553
|
-
fn:
|
|
3554
|
-
F(
|
|
3552
|
+
fn: g((O) => [
|
|
3553
|
+
F(f.$slots, y, G(Y(O || {})))
|
|
3555
3554
|
])
|
|
3556
3555
|
})),
|
|
3557
|
-
|
|
3556
|
+
f.legacyPaginationFooter ? {
|
|
3558
3557
|
name: "paginatorstart",
|
|
3559
|
-
fn:
|
|
3558
|
+
fn: g(() => [
|
|
3560
3559
|
m("span", {
|
|
3561
3560
|
class: P(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3562
3561
|
"data-cy": "legacy-page-size"
|
|
@@ -3573,9 +3572,9 @@ const wa = {
|
|
|
3573
3572
|
]),
|
|
3574
3573
|
key: "0"
|
|
3575
3574
|
} : void 0,
|
|
3576
|
-
|
|
3575
|
+
f.legacyPaginationFooter ? {
|
|
3577
3576
|
name: "paginatorend",
|
|
3578
|
-
fn:
|
|
3577
|
+
fn: g(() => [
|
|
3579
3578
|
m("span", {
|
|
3580
3579
|
"data-cy": "legacy-total",
|
|
3581
3580
|
class: P(i.loading ? "opacity-50" : "")
|
|
@@ -3586,7 +3585,7 @@ const wa = {
|
|
|
3586
3585
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3587
3586
|
]));
|
|
3588
3587
|
}
|
|
3589
|
-
}),
|
|
3588
|
+
}), Ia = { class: "position-relative" }, Ma = { "data-cy": "above-table-slot" }, Va = { class: "d-flex w-100" }, Da = {
|
|
3590
3589
|
class: "mx-auto",
|
|
3591
3590
|
"data-cy": "empty-message"
|
|
3592
3591
|
}, Oa = { class: "d-flex" }, Aa = { class: "d-flex align-items-end mb-2" }, Na = { key: 0 }, Ua = { class: "ms-auto" }, Fo = /* @__PURE__ */ z({
|
|
@@ -3650,7 +3649,7 @@ const wa = {
|
|
|
3650
3649
|
},
|
|
3651
3650
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3652
3651
|
setup(e, { emit: t }) {
|
|
3653
|
-
const a = e, i = t, o =
|
|
3652
|
+
const a = e, i = t, o = I([5, 10, 20, 50, 100]), l = I(10), n = I(0), s = I(0), p = I({
|
|
3654
3653
|
filters: a.filters,
|
|
3655
3654
|
perPage: l.value,
|
|
3656
3655
|
page: 0,
|
|
@@ -3696,7 +3695,7 @@ const wa = {
|
|
|
3696
3695
|
]
|
|
3697
3696
|
}));
|
|
3698
3697
|
W(() => a.parentExpanderFullRow, (y) => {
|
|
3699
|
-
y ? w() :
|
|
3698
|
+
y ? w() : v();
|
|
3700
3699
|
});
|
|
3701
3700
|
const w = () => {
|
|
3702
3701
|
a.parentExpanderFullRow && setTimeout(
|
|
@@ -3714,7 +3713,7 @@ const wa = {
|
|
|
3714
3713
|
},
|
|
3715
3714
|
0
|
|
3716
3715
|
);
|
|
3717
|
-
},
|
|
3716
|
+
}, v = () => {
|
|
3718
3717
|
setTimeout(
|
|
3719
3718
|
() => {
|
|
3720
3719
|
const y = Array.from(
|
|
@@ -3742,7 +3741,7 @@ const wa = {
|
|
|
3742
3741
|
p.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((O = y.sortField) == null ? void 0 : O.toString()) ?? "", i("update:tableContext", p.value), i("sort", y), w();
|
|
3743
3742
|
}, A = (y) => {
|
|
3744
3743
|
p.value.filters = y, i("update:tableContext", p.value), i("update:filters", y), w();
|
|
3745
|
-
},
|
|
3744
|
+
}, f = (y) => {
|
|
3746
3745
|
p.value.page = s.value = y.page, D(), i("update:tableContext", p.value), i("page", y), w();
|
|
3747
3746
|
}, B = () => {
|
|
3748
3747
|
p.value.perPage = l.value, s.value = 0, p.value.page = s.value = Math.floor(n.value / l.value), D(), i("update:tableContext", p.value), w();
|
|
@@ -3757,8 +3756,8 @@ const wa = {
|
|
|
3757
3756
|
const D = () => {
|
|
3758
3757
|
n.value = s.value * l.value;
|
|
3759
3758
|
};
|
|
3760
|
-
return (y, O) => (d(), b("div",
|
|
3761
|
-
m("span",
|
|
3759
|
+
return (y, O) => (d(), b("div", Ia, [
|
|
3760
|
+
m("span", Ma, [
|
|
3762
3761
|
F(y.$slots, "above-table")
|
|
3763
3762
|
]),
|
|
3764
3763
|
k(c(Ge), j({
|
|
@@ -3770,17 +3769,17 @@ const wa = {
|
|
|
3770
3769
|
"data-cy": "tree-table",
|
|
3771
3770
|
"onUpdate:filters": A,
|
|
3772
3771
|
onSort: S,
|
|
3773
|
-
onPage:
|
|
3772
|
+
onPage: f,
|
|
3774
3773
|
onNodeExpand: O[2] || (O[2] = () => w()),
|
|
3775
3774
|
showHeaders: "",
|
|
3776
3775
|
first: n.value
|
|
3777
3776
|
}), ie({
|
|
3778
|
-
empty:
|
|
3777
|
+
empty: g(() => [
|
|
3779
3778
|
m("div", Va, [
|
|
3780
3779
|
m("h5", Da, $(y.emptyMessage ?? "No items Found."), 1)
|
|
3781
3780
|
])
|
|
3782
3781
|
]),
|
|
3783
|
-
header:
|
|
3782
|
+
header: g(() => [
|
|
3784
3783
|
m("div", {
|
|
3785
3784
|
class: P(a.loading ? "opacity-50" : "")
|
|
3786
3785
|
}, [
|
|
@@ -3805,8 +3804,8 @@ const wa = {
|
|
|
3805
3804
|
onClick: C,
|
|
3806
3805
|
"data-cy": "clear-all"
|
|
3807
3806
|
}, {
|
|
3808
|
-
default:
|
|
3809
|
-
k(c(
|
|
3807
|
+
default: g(() => [
|
|
3808
|
+
k(c(M), {
|
|
3810
3809
|
icon: "bi:funnel-fill",
|
|
3811
3810
|
width: "24",
|
|
3812
3811
|
height: "24"
|
|
@@ -3821,20 +3820,20 @@ const wa = {
|
|
|
3821
3820
|
])
|
|
3822
3821
|
], 2)
|
|
3823
3822
|
]),
|
|
3824
|
-
default:
|
|
3823
|
+
default: g(() => [
|
|
3825
3824
|
F(y.$slots, "default")
|
|
3826
3825
|
]),
|
|
3827
3826
|
_: 2
|
|
3828
3827
|
}, [
|
|
3829
3828
|
L(y.$slots, (R, ve) => ({
|
|
3830
3829
|
name: ve,
|
|
3831
|
-
fn:
|
|
3830
|
+
fn: g((Be) => [
|
|
3832
3831
|
F(y.$slots, ve, G(Y(Be || {})))
|
|
3833
3832
|
])
|
|
3834
3833
|
})),
|
|
3835
3834
|
y.legacyPaginationFooter ? {
|
|
3836
3835
|
name: "paginatorstart",
|
|
3837
|
-
fn:
|
|
3836
|
+
fn: g(() => [
|
|
3838
3837
|
m("span", {
|
|
3839
3838
|
class: P(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
3840
3839
|
"data-cy": "legacy-page-size"
|
|
@@ -3853,7 +3852,7 @@ const wa = {
|
|
|
3853
3852
|
} : void 0,
|
|
3854
3853
|
y.legacyPaginationFooter ? {
|
|
3855
3854
|
name: "paginatorend",
|
|
3856
|
-
fn:
|
|
3855
|
+
fn: g(() => [
|
|
3857
3856
|
m("span", {
|
|
3858
3857
|
"data-cy": "legacy-total",
|
|
3859
3858
|
class: P(a.loading ? "opacity-50" : "")
|
|
@@ -3917,7 +3916,7 @@ const wa = {
|
|
|
3917
3916
|
"option-value": o.optionValue,
|
|
3918
3917
|
"option-label": o.optionLabel
|
|
3919
3918
|
}), {
|
|
3920
|
-
value:
|
|
3919
|
+
value: g(({ value: p, placeholder: u }) => [
|
|
3921
3920
|
m("div", Ea, [
|
|
3922
3921
|
m("span", {
|
|
3923
3922
|
class: P({ "filter-placeholder": p === null })
|
|
@@ -3928,8 +3927,8 @@ const wa = {
|
|
|
3928
3927
|
size: "small",
|
|
3929
3928
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3930
3929
|
}, {
|
|
3931
|
-
default:
|
|
3932
|
-
k(c(
|
|
3930
|
+
default: g(() => [
|
|
3931
|
+
k(c(M), {
|
|
3933
3932
|
icon: "bi:x",
|
|
3934
3933
|
width: "1rem",
|
|
3935
3934
|
height: "1rem",
|
|
@@ -3957,14 +3956,14 @@ const wa = {
|
|
|
3957
3956
|
"onUpdate:modelValue": l[4] || (l[4] = (p) => t.value = p),
|
|
3958
3957
|
modelModifiers: { trim: !0 }
|
|
3959
3958
|
}, o.$attrs), null, 16, ["modelValue"])),
|
|
3960
|
-
o.showClearButton && t.value !== null && o.dataType !== "select" && o.dataType !== "multiselect" && o.dataType !== "date" ? (d(), x(s, {
|
|
3959
|
+
o.showClearButton && t.value !== null && o.dataType !== "select" && o.dataType !== "multiselect" && o.dataType !== "date" && t.value != "" ? (d(), x(s, {
|
|
3961
3960
|
key: 5,
|
|
3962
3961
|
onClick: Q(i, ["prevent"]),
|
|
3963
3962
|
size: "small",
|
|
3964
3963
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3965
3964
|
}, {
|
|
3966
|
-
default:
|
|
3967
|
-
k(c(
|
|
3965
|
+
default: g(() => [
|
|
3966
|
+
k(c(M), {
|
|
3968
3967
|
icon: "bi:x",
|
|
3969
3968
|
width: "1rem",
|
|
3970
3969
|
height: "1rem",
|
|
@@ -5169,6 +5168,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5169
5168
|
props: /* @__PURE__ */ E({
|
|
5170
5169
|
acceptedFileTypes: {},
|
|
5171
5170
|
maxFileInput: {},
|
|
5171
|
+
maxFileSize: {},
|
|
5172
5172
|
showDragDropArea: { type: Boolean }
|
|
5173
5173
|
}, {
|
|
5174
5174
|
modelValue: { required: !0 },
|
|
@@ -5176,8 +5176,8 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5176
5176
|
}),
|
|
5177
5177
|
emits: ["update:modelValue"],
|
|
5178
5178
|
setup(e) {
|
|
5179
|
-
const t = N(e, "modelValue"), a =
|
|
5180
|
-
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.
|
|
5179
|
+
const t = N(e, "modelValue"), a = I(), i = (n) => a.value.toggle(n), o = _(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5180
|
+
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
5181
5181
|
};
|
|
5182
5182
|
return (n, s) => {
|
|
5183
5183
|
const p = q;
|
|
@@ -5199,7 +5199,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5199
5199
|
for: "file-input"
|
|
5200
5200
|
}, [
|
|
5201
5201
|
F(n.$slots, "button-content", {}, () => [
|
|
5202
|
-
k(c(
|
|
5202
|
+
k(c(M), {
|
|
5203
5203
|
icon: "bi:upload",
|
|
5204
5204
|
class: "me-2",
|
|
5205
5205
|
height: "20px",
|
|
@@ -5216,7 +5216,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5216
5216
|
id: "accepted-file-types",
|
|
5217
5217
|
onClick: i
|
|
5218
5218
|
}, {
|
|
5219
|
-
default:
|
|
5219
|
+
default: g(() => s[2] || (s[2] = [
|
|
5220
5220
|
V("Accepted File Types")
|
|
5221
5221
|
])),
|
|
5222
5222
|
_: 1,
|
|
@@ -5226,7 +5226,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5226
5226
|
ref_key: "acceptedFilesOverlay",
|
|
5227
5227
|
ref: a
|
|
5228
5228
|
}, {
|
|
5229
|
-
default:
|
|
5229
|
+
default: g(() => [
|
|
5230
5230
|
m("div", Ka, $(n.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
5231
5231
|
]),
|
|
5232
5232
|
_: 1
|
|
@@ -5253,7 +5253,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5253
5253
|
}),
|
|
5254
5254
|
emits: ["update:modelValue"],
|
|
5255
5255
|
setup(e) {
|
|
5256
|
-
const t = N(e, "modelValue"), a =
|
|
5256
|
+
const t = N(e, "modelValue"), a = I(!1), i = _(() => e.maxFileInput <= t.value.length), o = (l) => {
|
|
5257
5257
|
a.value = !1, l.dataTransfer.files.length > e.maxFileInput || i.value ? l.preventDefault() : t.value = ke([...l.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
|
|
5258
5258
|
};
|
|
5259
5259
|
return (l, n) => (d(), b("div", {
|
|
@@ -5264,7 +5264,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5264
5264
|
onDrop: Q(o, ["prevent"])
|
|
5265
5265
|
}, [
|
|
5266
5266
|
t.value.length === 0 ? (d(), b("div", Xa, [
|
|
5267
|
-
k(c(
|
|
5267
|
+
k(c(M), {
|
|
5268
5268
|
icon: "bi:upload",
|
|
5269
5269
|
class: "me-2",
|
|
5270
5270
|
height: "20px",
|
|
@@ -5314,7 +5314,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5314
5314
|
severity: a.value,
|
|
5315
5315
|
class: "mb-0 w-75 ms-auto"
|
|
5316
5316
|
}, {
|
|
5317
|
-
default:
|
|
5317
|
+
default: g(() => [
|
|
5318
5318
|
V($(i.value), 1)
|
|
5319
5319
|
]),
|
|
5320
5320
|
_: 1
|
|
@@ -5350,25 +5350,25 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5350
5350
|
}),
|
|
5351
5351
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5352
5352
|
setup(e, { emit: t }) {
|
|
5353
|
-
const a = N(e, "file"), i = N(e, "blobFileName"), o = N(e, "uploadStatus"), l = t, n =
|
|
5353
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), o = N(e, "uploadStatus"), l = t, n = I(a.value.name), s = I(""), p = I(0), u = I(), h = _(() => e.acceptedFileTypes.some(({ fileType: f }) => f === a.value.type)), r = _(() => a.value.size <= e.maxFileSize), w = _(() => a.value.type ? a.value.type : Ga().getType(a.value.name)), v = () => {
|
|
5354
5354
|
n.value != null && (C(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5355
5355
|
}, C = () => {
|
|
5356
|
-
let
|
|
5357
|
-
|
|
5356
|
+
let f = n.value.split("."), B = qa.getExtension(w.value), D = n.value.split(".").pop();
|
|
5357
|
+
f.length === 1 ? D && D.length > 0 && (n.value = [n.value, B].join(".")) : f.length > 1 && D !== B && (n.value = n.value.replace(D, B));
|
|
5358
5358
|
}, S = async () => {
|
|
5359
5359
|
if (!h.value || !r.value) {
|
|
5360
5360
|
o.value = h.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5361
5361
|
return;
|
|
5362
5362
|
}
|
|
5363
5363
|
o.value = "Preparing", u.value = new AbortController();
|
|
5364
|
-
const [
|
|
5365
|
-
if (!
|
|
5364
|
+
const [f, B] = await e.getFileUrlAction(a.value.name);
|
|
5365
|
+
if (!f) {
|
|
5366
5366
|
o.value = "Failed";
|
|
5367
5367
|
return;
|
|
5368
5368
|
}
|
|
5369
5369
|
try {
|
|
5370
5370
|
o.value = "Uploading";
|
|
5371
|
-
const D = new ge(
|
|
5371
|
+
const D = new ge(f), y = {
|
|
5372
5372
|
abortSignal: u.value.signal,
|
|
5373
5373
|
onProgress: (O) => p.value = O.loadedBytes,
|
|
5374
5374
|
blobHTTPHeaders: {
|
|
@@ -5377,7 +5377,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5377
5377
|
},
|
|
5378
5378
|
tags: { temp: "true" }
|
|
5379
5379
|
};
|
|
5380
|
-
await D.uploadData(a.value, y), s.value =
|
|
5380
|
+
await D.uploadData(a.value, y), s.value = f, o.value = "Uploaded", i.value = B;
|
|
5381
5381
|
} catch (D) {
|
|
5382
5382
|
if (D.name === "AbortError") {
|
|
5383
5383
|
o.value = "Aborted";
|
|
@@ -5390,7 +5390,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5390
5390
|
};
|
|
5391
5391
|
return ne(() => {
|
|
5392
5392
|
e.autoUploadToBlob && o.value != "Uploaded" && S();
|
|
5393
|
-
}), (
|
|
5393
|
+
}), (f, B) => {
|
|
5394
5394
|
const D = q;
|
|
5395
5395
|
return d(), b("div", {
|
|
5396
5396
|
class: "py-4 px-3 d-flex",
|
|
@@ -5405,7 +5405,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5405
5405
|
alt: a.value.name,
|
|
5406
5406
|
width: "75px",
|
|
5407
5407
|
preview: ""
|
|
5408
|
-
}, null, 8, ["src", "alt"])) : (d(), x(c(
|
|
5408
|
+
}, null, 8, ["src", "alt"])) : (d(), x(c(M), {
|
|
5409
5409
|
key: 1,
|
|
5410
5410
|
id: "file-earmark",
|
|
5411
5411
|
icon: "bi:file-earmark",
|
|
@@ -5415,14 +5415,14 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5415
5415
|
]),
|
|
5416
5416
|
m("div", oi, [
|
|
5417
5417
|
m("div", null, [
|
|
5418
|
-
|
|
5418
|
+
f.editableFileName ? (d(), x(Kt, {
|
|
5419
5419
|
key: 0,
|
|
5420
5420
|
id: "edit-file-name",
|
|
5421
5421
|
modelValue: n.value,
|
|
5422
5422
|
"onUpdate:modelValue": B[0] || (B[0] = (y) => n.value = y),
|
|
5423
|
-
rules:
|
|
5423
|
+
rules: f.customFileNameRules,
|
|
5424
5424
|
name: a.value.name,
|
|
5425
|
-
"complete-action":
|
|
5425
|
+
"complete-action": v
|
|
5426
5426
|
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", li, $(n.value), 1))
|
|
5427
5427
|
]),
|
|
5428
5428
|
m("span", ni, "File type: " + $(a.value.type.split("/").pop()), 1),
|
|
@@ -5434,15 +5434,15 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5434
5434
|
"file-size": a.value.size,
|
|
5435
5435
|
"upload-status": o.value,
|
|
5436
5436
|
"bytes-uploaded": p.value,
|
|
5437
|
-
"max-file-size":
|
|
5437
|
+
"max-file-size": f.maxFileSize
|
|
5438
5438
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
5439
5439
|
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (d(), x(D, {
|
|
5440
5440
|
key: 0,
|
|
5441
5441
|
link: "",
|
|
5442
5442
|
onClick: S
|
|
5443
5443
|
}, {
|
|
5444
|
-
default:
|
|
5445
|
-
k(c(
|
|
5444
|
+
default: g(() => [
|
|
5445
|
+
k(c(M), {
|
|
5446
5446
|
icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5447
5447
|
}, null, 8, ["icon"])
|
|
5448
5448
|
]),
|
|
@@ -5453,8 +5453,8 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5453
5453
|
link: "",
|
|
5454
5454
|
onClick: B[1] || (B[1] = (y) => u.value.abort())
|
|
5455
5455
|
}, {
|
|
5456
|
-
default:
|
|
5457
|
-
k(c(
|
|
5456
|
+
default: g(() => [
|
|
5457
|
+
k(c(M), { icon: "bi:x-circle-fill" })
|
|
5458
5458
|
]),
|
|
5459
5459
|
_: 1
|
|
5460
5460
|
})) : (d(), x(D, {
|
|
@@ -5463,8 +5463,8 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5463
5463
|
onClick: A,
|
|
5464
5464
|
id: "delete-button"
|
|
5465
5465
|
}, {
|
|
5466
|
-
default:
|
|
5467
|
-
k(c(
|
|
5466
|
+
default: g(() => [
|
|
5467
|
+
k(c(M), { icon: "bi:trash" })
|
|
5468
5468
|
]),
|
|
5469
5469
|
_: 1
|
|
5470
5470
|
}))
|
|
@@ -5515,7 +5515,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5515
5515
|
id: "max-files-alert",
|
|
5516
5516
|
severity: "danger"
|
|
5517
5517
|
}, {
|
|
5518
|
-
default:
|
|
5518
|
+
default: g(() => [
|
|
5519
5519
|
V($(o.maxFileWarning), 1)
|
|
5520
5520
|
]),
|
|
5521
5521
|
_: 1
|
|
@@ -5532,7 +5532,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5532
5532
|
modelValue: t.value,
|
|
5533
5533
|
"onUpdate:modelValue": l[1] || (l[1] = (n) => t.value = n)
|
|
5534
5534
|
}, {
|
|
5535
|
-
default:
|
|
5535
|
+
default: g(() => [
|
|
5536
5536
|
(d(!0), b(U, null, L(t.value, ({ file: n }, s) => (d(), b("div", null, [
|
|
5537
5537
|
(d(), x(di, j({
|
|
5538
5538
|
key: n.name,
|
|
@@ -5563,7 +5563,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5563
5563
|
},
|
|
5564
5564
|
emits: ["update:modelValue"],
|
|
5565
5565
|
setup(e) {
|
|
5566
|
-
const t = N(e, "modelValue"), a =
|
|
5566
|
+
const t = N(e, "modelValue"), a = I(), i = I(!1), o = (l) => {
|
|
5567
5567
|
a.value.toggle(l);
|
|
5568
5568
|
};
|
|
5569
5569
|
return (l, n) => (d(), b(U, null, [
|
|
@@ -5571,14 +5571,14 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5571
5571
|
onClick: o,
|
|
5572
5572
|
class: "ms-2"
|
|
5573
5573
|
}, {
|
|
5574
|
-
default:
|
|
5574
|
+
default: g(() => [
|
|
5575
5575
|
m("div", gi, [
|
|
5576
5576
|
m("div", bi, [
|
|
5577
|
-
k(c(
|
|
5577
|
+
k(c(M), { icon: "bi:layout-three-columns" })
|
|
5578
5578
|
]),
|
|
5579
5579
|
V(" Columns (" + $(t.value.filter((s) => s.selected).length ?? 0) + "/" + $(t.value.length ?? 0) + ") ", 1),
|
|
5580
5580
|
m("div", yi, [
|
|
5581
|
-
k(c(
|
|
5581
|
+
k(c(M), {
|
|
5582
5582
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5583
5583
|
}, null, 8, ["icon"])
|
|
5584
5584
|
])
|
|
@@ -5593,7 +5593,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5593
5593
|
onHide: n[0] || (n[0] = () => i.value = !1),
|
|
5594
5594
|
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5595
5595
|
}, {
|
|
5596
|
-
default:
|
|
5596
|
+
default: g(() => [
|
|
5597
5597
|
m("div", xi, [
|
|
5598
5598
|
(d(!0), b(U, null, L(t.value, (s, p) => (d(), b("div", {
|
|
5599
5599
|
class: P(["d-flex cursor-pointer", {
|
|
@@ -5624,13 +5624,13 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5624
5624
|
return (t, a) => {
|
|
5625
5625
|
const i = Je;
|
|
5626
5626
|
return d(), x(i, G(Y({ ...t.$attrs })), ie({
|
|
5627
|
-
toggleicon:
|
|
5628
|
-
o ? (d(), x(c(
|
|
5627
|
+
toggleicon: g(({ collapsed: o }) => [
|
|
5628
|
+
o ? (d(), x(c(M), {
|
|
5629
5629
|
key: 0,
|
|
5630
5630
|
"data-cy": "message-icon",
|
|
5631
5631
|
icon: "bi:chevron-down"
|
|
5632
5632
|
})) : T("", !0),
|
|
5633
|
-
o ? T("", !0) : (d(), x(c(
|
|
5633
|
+
o ? T("", !0) : (d(), x(c(M), {
|
|
5634
5634
|
key: 1,
|
|
5635
5635
|
"data-cy": "message-icon",
|
|
5636
5636
|
icon: "bi:chevron-up"
|
|
@@ -5640,7 +5640,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5640
5640
|
}, [
|
|
5641
5641
|
L(t.$slots, (o, l) => ({
|
|
5642
5642
|
name: l,
|
|
5643
|
-
fn:
|
|
5643
|
+
fn: g((n) => [
|
|
5644
5644
|
F(t.$slots, l, G(Y(n)))
|
|
5645
5645
|
])
|
|
5646
5646
|
}))
|
|
@@ -5741,7 +5741,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5741
5741
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5742
5742
|
}));
|
|
5743
5743
|
return (a, i) => (d(), x(c(Ze), j({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5744
|
-
default:
|
|
5744
|
+
default: g(() => [
|
|
5745
5745
|
(d(!0), b(U, null, L(a.$slots, (o, l) => F(a.$slots, l, { slot: l })), 256))
|
|
5746
5746
|
]),
|
|
5747
5747
|
_: 3
|
|
@@ -5792,49 +5792,55 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5792
5792
|
}),
|
|
5793
5793
|
emits: ["update:modelValue"],
|
|
5794
5794
|
setup(e) {
|
|
5795
|
-
const t = e, a = N(e, "modelValue"), i =
|
|
5796
|
-
const { items: C } =
|
|
5795
|
+
const t = e, a = N(e, "modelValue"), i = I([]), o = I([]), l = I(null), n = I(null), s = (v) => {
|
|
5796
|
+
const { items: C } = v;
|
|
5797
5797
|
i.value = [...i.value, ...C], o.value = o.value.filter((S) => !C.includes(S));
|
|
5798
|
-
}, p = (
|
|
5799
|
-
const { items: C } =
|
|
5800
|
-
o.value =
|
|
5798
|
+
}, p = (v) => {
|
|
5799
|
+
const { items: C } = v;
|
|
5800
|
+
o.value = o.value.push(...C), i.value = i.value.filter((S) => !C.includes(S));
|
|
5801
5801
|
}, u = () => {
|
|
5802
|
-
o.value =
|
|
5802
|
+
o.value = [.../* @__PURE__ */ new Set([...o.value, ...a.value[1]])], i.value = i.value.filter((v) => !a.value[1].includes(v));
|
|
5803
5803
|
}, h = () => {
|
|
5804
|
-
i.value =
|
|
5805
|
-
}
|
|
5804
|
+
i.value = [.../* @__PURE__ */ new Set([...i.value, ...a.value[0]])], o.value = o.value.filter((v) => !a.value[0].includes(v));
|
|
5805
|
+
};
|
|
5806
|
+
W(o, async () => {
|
|
5807
|
+
r();
|
|
5808
|
+
}), W(i, async () => {
|
|
5809
|
+
w();
|
|
5810
|
+
});
|
|
5811
|
+
const r = () => {
|
|
5806
5812
|
var S;
|
|
5807
|
-
const
|
|
5808
|
-
var
|
|
5809
|
-
return A[
|
|
5810
|
-
}) : o.value;
|
|
5811
|
-
a.value
|
|
5813
|
+
const v = t.filterBy, C = l.value ? o.value.filter((A) => {
|
|
5814
|
+
var f;
|
|
5815
|
+
return A[v].toLowerCase().includes((f = l.value) == null ? void 0 : f.toLowerCase());
|
|
5816
|
+
}) : [...o.value];
|
|
5817
|
+
(S = a.value) == null || S.splice(0, 1, C);
|
|
5812
5818
|
}, w = () => {
|
|
5813
5819
|
var S;
|
|
5814
|
-
const
|
|
5815
|
-
var
|
|
5816
|
-
return A[
|
|
5817
|
-
}) : i.value;
|
|
5818
|
-
|
|
5820
|
+
const v = t.filterBy, C = n.value ? i.value.filter((A) => {
|
|
5821
|
+
var f;
|
|
5822
|
+
return A[v].toLowerCase().includes((f = n.value) == null ? void 0 : f.toLowerCase());
|
|
5823
|
+
}) : [...i.value];
|
|
5824
|
+
(S = a.value) == null || S.splice(1, 1, C);
|
|
5819
5825
|
};
|
|
5820
5826
|
return W(
|
|
5821
5827
|
() => a.value,
|
|
5822
|
-
(
|
|
5823
|
-
|
|
5828
|
+
(v) => {
|
|
5829
|
+
v && (i.value = v[1].length > 0 ? [...v[1]] : [], o.value = v[0].length > 0 ? [...v[0]] : [], a.value.splice(0, 1, o.value), a.value.splice(1, 1, i.value));
|
|
5824
5830
|
},
|
|
5825
5831
|
{ once: !0 }
|
|
5826
|
-
), (
|
|
5832
|
+
), (v, C) => (d(), x(c(Xe), j({
|
|
5827
5833
|
modelValue: a.value,
|
|
5828
5834
|
"onUpdate:modelValue": C[2] || (C[2] = (S) => a.value = S)
|
|
5829
|
-
}, { ...
|
|
5835
|
+
}, { ...v.$attrs, ...t }, {
|
|
5830
5836
|
onMoveAllToSource: u,
|
|
5831
5837
|
onMoveAllToTarget: h,
|
|
5832
5838
|
onMoveToTarget: C[3] || (C[3] = (S) => s(S)),
|
|
5833
5839
|
onMoveToSource: C[4] || (C[4] = (S) => p(S)),
|
|
5834
5840
|
style: { height: "14rem" }
|
|
5835
5841
|
}), {
|
|
5836
|
-
sourceheader:
|
|
5837
|
-
|
|
5842
|
+
sourceheader: g(() => [
|
|
5843
|
+
v.sourceTitle ? (d(), b("div", ki, $(v.sourceTitle), 1)) : T("", !0),
|
|
5838
5844
|
k(c(ae), {
|
|
5839
5845
|
modelValue: l.value,
|
|
5840
5846
|
"onUpdate:modelValue": [
|
|
@@ -5846,8 +5852,8 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5846
5852
|
"data-cy": "source-search"
|
|
5847
5853
|
}, null, 8, ["modelValue"])
|
|
5848
5854
|
]),
|
|
5849
|
-
targetheader:
|
|
5850
|
-
|
|
5855
|
+
targetheader: g(() => [
|
|
5856
|
+
v.targetTitle ? (d(), b("div", Bi, $(v.targetTitle), 1)) : T("", !0),
|
|
5851
5857
|
k(c(ae), {
|
|
5852
5858
|
modelValue: n.value,
|
|
5853
5859
|
"onUpdate:modelValue": [
|
|
@@ -5859,13 +5865,13 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5859
5865
|
"data-cy": "target-search"
|
|
5860
5866
|
}, null, 8, ["modelValue"])
|
|
5861
5867
|
]),
|
|
5862
|
-
option:
|
|
5863
|
-
V($(S[
|
|
5868
|
+
option: g(({ option: S }) => [
|
|
5869
|
+
V($(S[v.filterBy]), 1)
|
|
5864
5870
|
]),
|
|
5865
5871
|
_: 1
|
|
5866
5872
|
}, 16, ["modelValue"]));
|
|
5867
5873
|
}
|
|
5868
|
-
}),
|
|
5874
|
+
}), Io = () => ({
|
|
5869
5875
|
type: "component",
|
|
5870
5876
|
resolve: (e) => {
|
|
5871
5877
|
if (e.startsWith("Forge"))
|
|
@@ -5900,7 +5906,7 @@ export {
|
|
|
5900
5906
|
_o as ForgePickList,
|
|
5901
5907
|
xo as ForgeProgressBar,
|
|
5902
5908
|
fo as ForgeRemainingCharacters,
|
|
5903
|
-
|
|
5909
|
+
Io as ForgeResolver,
|
|
5904
5910
|
ho as ForgeScratchpad,
|
|
5905
5911
|
Po as ForgeSelectButton,
|
|
5906
5912
|
wo as ForgeStatWidget,
|