@3squared/forge-ui-3 2.21.5 → 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 +234 -228
- package/package.json +1 -1
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 }) => ({
|
|
@@ -1184,7 +1184,7 @@ const Qe = {
|
|
|
1184
1184
|
]
|
|
1185
1185
|
})
|
|
1186
1186
|
}
|
|
1187
|
-
},
|
|
1187
|
+
}, It = {
|
|
1188
1188
|
accordionPanel: {
|
|
1189
1189
|
root: "card my-2"
|
|
1190
1190
|
},
|
|
@@ -1202,7 +1202,7 @@ const Qe = {
|
|
|
1202
1202
|
accordionContent: {
|
|
1203
1203
|
root: "mt-2 mx-4 mb-4"
|
|
1204
1204
|
}
|
|
1205
|
-
},
|
|
1205
|
+
}, Mt = {
|
|
1206
1206
|
// More PT options can be found in the ForgeTable file.
|
|
1207
1207
|
treetable: {
|
|
1208
1208
|
root: "position-relative",
|
|
@@ -1313,8 +1313,8 @@ const Qe = {
|
|
|
1313
1313
|
..._t,
|
|
1314
1314
|
...jt,
|
|
1315
1315
|
...Pt,
|
|
1316
|
-
...Mt,
|
|
1317
1316
|
...It,
|
|
1317
|
+
...Mt,
|
|
1318
1318
|
...Vt,
|
|
1319
1319
|
...Dt,
|
|
1320
1320
|
directives: {
|
|
@@ -1342,11 +1342,11 @@ const Qe = {
|
|
|
1342
1342
|
return (a, i) => {
|
|
1343
1343
|
const o = $e;
|
|
1344
1344
|
return d(), x(o, G(Y({ ...a.$attrs, ...t })), {
|
|
1345
|
-
icon:
|
|
1345
|
+
icon: g(() => [
|
|
1346
1346
|
m("div", {
|
|
1347
1347
|
class: P(t.icon ? "me-2 pe-1" : "")
|
|
1348
1348
|
}, [
|
|
1349
|
-
t.icon ? (d(), x(c(
|
|
1349
|
+
t.icon ? (d(), x(c(M), {
|
|
1350
1350
|
key: 0,
|
|
1351
1351
|
"data-cy": "message-icon",
|
|
1352
1352
|
icon: t.icon,
|
|
@@ -1355,10 +1355,10 @@ const Qe = {
|
|
|
1355
1355
|
}, null, 8, ["icon", "class"])) : T("", !0)
|
|
1356
1356
|
], 2)
|
|
1357
1357
|
]),
|
|
1358
|
-
closeicon:
|
|
1359
|
-
k(c(
|
|
1358
|
+
closeicon: g(() => [
|
|
1359
|
+
k(c(M), { icon: "bi:x" })
|
|
1360
1360
|
]),
|
|
1361
|
-
default:
|
|
1361
|
+
default: g(() => [
|
|
1362
1362
|
F(a.$slots, "default")
|
|
1363
1363
|
]),
|
|
1364
1364
|
_: 3
|
|
@@ -1374,7 +1374,7 @@ const Qe = {
|
|
|
1374
1374
|
params: { default: Array }
|
|
1375
1375
|
},
|
|
1376
1376
|
setup(e) {
|
|
1377
|
-
const t =
|
|
1377
|
+
const t = I(!1), a = e, i = async () => {
|
|
1378
1378
|
t.value = !0;
|
|
1379
1379
|
try {
|
|
1380
1380
|
await a.action.apply(this, a.params);
|
|
@@ -1399,7 +1399,7 @@ const Qe = {
|
|
|
1399
1399
|
__name: "ForgeAutoComplete",
|
|
1400
1400
|
setup(e) {
|
|
1401
1401
|
return (t, a) => (d(), x(c(Pe), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1402
|
-
default:
|
|
1402
|
+
default: g(() => [
|
|
1403
1403
|
(d(!0), b(U, null, L(t.$slots, (i, o) => F(t.$slots, o, { slot: o })), 256))
|
|
1404
1404
|
]),
|
|
1405
1405
|
_: 3
|
|
@@ -1556,7 +1556,7 @@ const Qe = {
|
|
|
1556
1556
|
target: i.target
|
|
1557
1557
|
}, [
|
|
1558
1558
|
F(i.$slots, "default", {}, () => [
|
|
1559
|
-
i.iconName ? (d(), x(c(
|
|
1559
|
+
i.iconName ? (d(), x(c(M), {
|
|
1560
1560
|
key: 0,
|
|
1561
1561
|
id: "link-icon",
|
|
1562
1562
|
icon: i.iconName,
|
|
@@ -1653,7 +1653,7 @@ const Lt = {
|
|
|
1653
1653
|
}),
|
|
1654
1654
|
emits: ["update:visible", "update:error"],
|
|
1655
1655
|
setup(e, { expose: t }) {
|
|
1656
|
-
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 = () => {
|
|
1657
1657
|
n.value = {
|
|
1658
1658
|
hasError: !1,
|
|
1659
1659
|
header: "",
|
|
@@ -1673,11 +1673,11 @@ const Lt = {
|
|
|
1673
1673
|
if (o.onConfirm) {
|
|
1674
1674
|
l.value = !0, n.value.hasError = !1;
|
|
1675
1675
|
try {
|
|
1676
|
-
const
|
|
1677
|
-
(
|
|
1678
|
-
} catch (
|
|
1676
|
+
const v = await o.onConfirm();
|
|
1677
|
+
(v || v == null) && h();
|
|
1678
|
+
} catch (v) {
|
|
1679
1679
|
n.value.hasError = !0;
|
|
1680
|
-
const C = Ut(
|
|
1680
|
+
const C = Ut(v);
|
|
1681
1681
|
n.value.header = C.errorMessage, n.value.message = C.errorDetails;
|
|
1682
1682
|
}
|
|
1683
1683
|
l.value = !1;
|
|
@@ -1701,15 +1701,15 @@ const Lt = {
|
|
|
1701
1701
|
}
|
|
1702
1702
|
]
|
|
1703
1703
|
}));
|
|
1704
|
-
return (
|
|
1705
|
-
const S = q, A =
|
|
1704
|
+
return (v, C) => {
|
|
1705
|
+
const S = q, A = Ie;
|
|
1706
1706
|
return d(), x(A, j(o, {
|
|
1707
1707
|
onMaximize: u,
|
|
1708
1708
|
onUnmaximize: p,
|
|
1709
1709
|
pt: w.value
|
|
1710
1710
|
}), ie({
|
|
1711
|
-
closeicon:
|
|
1712
|
-
k(c(
|
|
1711
|
+
closeicon: g(() => [
|
|
1712
|
+
k(c(M), {
|
|
1713
1713
|
"data-cy": "close-icon",
|
|
1714
1714
|
icon: "bi:x-lg",
|
|
1715
1715
|
width: "18",
|
|
@@ -1717,8 +1717,8 @@ const Lt = {
|
|
|
1717
1717
|
onClick: h
|
|
1718
1718
|
})
|
|
1719
1719
|
]),
|
|
1720
|
-
maximizeicon:
|
|
1721
|
-
k(c(
|
|
1720
|
+
maximizeicon: g(() => [
|
|
1721
|
+
k(c(M), {
|
|
1722
1722
|
"data-cy": "maximisable-icon",
|
|
1723
1723
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1724
1724
|
width: "16",
|
|
@@ -1727,9 +1727,9 @@ const Lt = {
|
|
|
1727
1727
|
]),
|
|
1728
1728
|
_: 2
|
|
1729
1729
|
}, [
|
|
1730
|
-
L(
|
|
1730
|
+
L(v.$slots, (f, B) => ({
|
|
1731
1731
|
name: B,
|
|
1732
|
-
fn:
|
|
1732
|
+
fn: g((D) => [
|
|
1733
1733
|
B == "default" ? (d(), b(U, { key: 0 }, [
|
|
1734
1734
|
n.value.hasError ? (d(), b("div", Lt, [
|
|
1735
1735
|
k(re, {
|
|
@@ -1737,7 +1737,7 @@ const Lt = {
|
|
|
1737
1737
|
"data-cy": "error",
|
|
1738
1738
|
class: "mb-0"
|
|
1739
1739
|
}, {
|
|
1740
|
-
default:
|
|
1740
|
+
default: g(() => [
|
|
1741
1741
|
m("p", {
|
|
1742
1742
|
class: P(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1743
1743
|
}, $(n.value.header), 3),
|
|
@@ -1749,18 +1749,18 @@ const Lt = {
|
|
|
1749
1749
|
})
|
|
1750
1750
|
])) : T("", !0)
|
|
1751
1751
|
], 64)) : T("", !0),
|
|
1752
|
-
F(
|
|
1753
|
-
l.value ? F(
|
|
1752
|
+
F(v.$slots, B, G(Y(D || {}))),
|
|
1753
|
+
l.value ? F(v.$slots, "loader", { key: 1 }, () => [
|
|
1754
1754
|
k(pe, { "data-cy": "loader" })
|
|
1755
1755
|
]) : T("", !0)
|
|
1756
1756
|
])
|
|
1757
1757
|
})),
|
|
1758
|
-
|
|
1758
|
+
v.showFooter ? {
|
|
1759
1759
|
name: "footer",
|
|
1760
|
-
fn:
|
|
1760
|
+
fn: g(() => [
|
|
1761
1761
|
m("div", qt, [
|
|
1762
1762
|
k(S, {
|
|
1763
|
-
label:
|
|
1763
|
+
label: v.cancelText,
|
|
1764
1764
|
class: P(o.cancelClass),
|
|
1765
1765
|
outlined: "",
|
|
1766
1766
|
onClick: h,
|
|
@@ -1768,7 +1768,7 @@ const Lt = {
|
|
|
1768
1768
|
type: o.cancelButtonType
|
|
1769
1769
|
}, null, 8, ["label", "class", "type"]),
|
|
1770
1770
|
k(S, {
|
|
1771
|
-
label:
|
|
1771
|
+
label: v.submitText,
|
|
1772
1772
|
class: P([o.submitClass, "ms-auto"]),
|
|
1773
1773
|
onClick: r,
|
|
1774
1774
|
id: "submit-button",
|
|
@@ -1796,9 +1796,9 @@ const Lt = {
|
|
|
1796
1796
|
}),
|
|
1797
1797
|
emits: ["update:modelValue"],
|
|
1798
1798
|
setup(e) {
|
|
1799
|
-
const t = e, a = N(e, "modelValue"), i =
|
|
1800
|
-
var
|
|
1801
|
-
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();
|
|
1802
1802
|
}, n = async () => {
|
|
1803
1803
|
if (w.value)
|
|
1804
1804
|
return !1;
|
|
@@ -1821,19 +1821,19 @@ const Lt = {
|
|
|
1821
1821
|
r.value = a.value;
|
|
1822
1822
|
});
|
|
1823
1823
|
const w = _(() => h.value.length > 0);
|
|
1824
|
-
return (
|
|
1824
|
+
return (v, C) => {
|
|
1825
1825
|
const S = ae, A = q;
|
|
1826
1826
|
return d(), b("div", {
|
|
1827
1827
|
id: t.name
|
|
1828
1828
|
}, [
|
|
1829
|
-
|
|
1830
|
-
F(
|
|
1829
|
+
v.readonly ? (d(), b("div", Yt, [
|
|
1830
|
+
F(v.$slots, "default", {}, () => [
|
|
1831
1831
|
m("span", Jt, $(c(r)), 1)
|
|
1832
1832
|
])
|
|
1833
1833
|
])) : (d(), b("div", Ht, [
|
|
1834
1834
|
i.value ? (d(), b("div", Wt, [
|
|
1835
1835
|
K((d(), b("div", Gt, [
|
|
1836
|
-
F(
|
|
1836
|
+
F(v.$slots, "editor", {
|
|
1837
1837
|
class: P({ "is-invalid": w.value }),
|
|
1838
1838
|
editFinished: n,
|
|
1839
1839
|
cancel: s,
|
|
@@ -1841,7 +1841,7 @@ const Lt = {
|
|
|
1841
1841
|
}, () => [
|
|
1842
1842
|
k(S, {
|
|
1843
1843
|
modelValue: c(r),
|
|
1844
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
1844
|
+
"onUpdate:modelValue": C[0] || (C[0] = (f) => Fe(r) ? r.value = f : null),
|
|
1845
1845
|
modelModifiers: { trim: !0 },
|
|
1846
1846
|
"data-cy": "input",
|
|
1847
1847
|
ref_key: "input",
|
|
@@ -1853,7 +1853,7 @@ const Lt = {
|
|
|
1853
1853
|
]
|
|
1854
1854
|
}, null, 8, ["modelValue", "class"])
|
|
1855
1855
|
]),
|
|
1856
|
-
k(c(
|
|
1856
|
+
k(c(M), {
|
|
1857
1857
|
icon: "bi:x-circle",
|
|
1858
1858
|
class: "mx-2 cursor-pointer",
|
|
1859
1859
|
onClick: p,
|
|
@@ -1861,7 +1861,7 @@ const Lt = {
|
|
|
1861
1861
|
"data-cy": "clear-icon"
|
|
1862
1862
|
})
|
|
1863
1863
|
])), [
|
|
1864
|
-
[c(
|
|
1864
|
+
[c(Me), n]
|
|
1865
1865
|
])
|
|
1866
1866
|
])) : (d(), b("div", {
|
|
1867
1867
|
key: 1,
|
|
@@ -1869,7 +1869,7 @@ const Lt = {
|
|
|
1869
1869
|
onClick: l,
|
|
1870
1870
|
onFocus: l
|
|
1871
1871
|
}, [
|
|
1872
|
-
F(
|
|
1872
|
+
F(v.$slots, "default", {}, () => [
|
|
1873
1873
|
m("div", {
|
|
1874
1874
|
class: P(["pe-2 cursor-pointer", { "text-invalid": w.value }]),
|
|
1875
1875
|
"data-cy": "value"
|
|
@@ -1879,8 +1879,8 @@ const Lt = {
|
|
|
1879
1879
|
link: "",
|
|
1880
1880
|
class: "p-0 m-0"
|
|
1881
1881
|
}, {
|
|
1882
|
-
default:
|
|
1883
|
-
k(c(
|
|
1882
|
+
default: g(() => [
|
|
1883
|
+
k(c(M), {
|
|
1884
1884
|
icon: "bi:pencil",
|
|
1885
1885
|
class: P(w.value ? "text-invalid" : "text-muted"),
|
|
1886
1886
|
"data-cy": "edit-icon",
|
|
@@ -1949,7 +1949,7 @@ const Lt = {
|
|
|
1949
1949
|
pt: a.value,
|
|
1950
1950
|
"data-cy": "navbar"
|
|
1951
1951
|
}), ie({
|
|
1952
|
-
start:
|
|
1952
|
+
start: g(() => [
|
|
1953
1953
|
m("a", {
|
|
1954
1954
|
href: i.logoUrl,
|
|
1955
1955
|
class: "navbar-brand ms-3",
|
|
@@ -1960,9 +1960,9 @@ const Lt = {
|
|
|
1960
1960
|
])
|
|
1961
1961
|
], 8, Zt)
|
|
1962
1962
|
]),
|
|
1963
|
-
buttonicon:
|
|
1963
|
+
buttonicon: g(() => [
|
|
1964
1964
|
F(i.$slots, "buttonIcon", {}, () => [
|
|
1965
|
-
k(c(
|
|
1965
|
+
k(c(M), {
|
|
1966
1966
|
icon: "bi:list",
|
|
1967
1967
|
class: P(t.severity === "light" ? "text-black" : "text-white"),
|
|
1968
1968
|
height: "24",
|
|
@@ -1974,7 +1974,7 @@ const Lt = {
|
|
|
1974
1974
|
}, [
|
|
1975
1975
|
L(i.$slots, (l, n) => ({
|
|
1976
1976
|
name: n,
|
|
1977
|
-
fn:
|
|
1977
|
+
fn: g((s) => [
|
|
1978
1978
|
F(i.$slots, n, G(Y(s)))
|
|
1979
1979
|
])
|
|
1980
1980
|
}))
|
|
@@ -2009,7 +2009,7 @@ const Lt = {
|
|
|
2009
2009
|
return (o, l) => {
|
|
2010
2010
|
const n = de, s = q;
|
|
2011
2011
|
return d(), b("div", {
|
|
2012
|
-
class: P(o.orientation === "column" ? "row" : ""),
|
|
2012
|
+
class: P(o.orientation === "column" ? "row" : "flex-1"),
|
|
2013
2013
|
"data-cy": "multiselect-preview"
|
|
2014
2014
|
}, [
|
|
2015
2015
|
m("div", {
|
|
@@ -2025,7 +2025,7 @@ const Lt = {
|
|
|
2025
2025
|
placeholder: o.multiselectPlaceholder,
|
|
2026
2026
|
"data-cy": "multiselect"
|
|
2027
2027
|
}), {
|
|
2028
|
-
default:
|
|
2028
|
+
default: g(() => [
|
|
2029
2029
|
(d(!0), b(U, null, L(o.$slots, (p, u) => F(o.$slots, u, { slot: u })), 256))
|
|
2030
2030
|
]),
|
|
2031
2031
|
_: 3
|
|
@@ -2055,8 +2055,8 @@ const Lt = {
|
|
|
2055
2055
|
class: "m-0 p-0 d-flex align-items-center",
|
|
2056
2056
|
onClick: (u) => i(p.id)
|
|
2057
2057
|
}, {
|
|
2058
|
-
default:
|
|
2059
|
-
k(c(
|
|
2058
|
+
default: g(() => [
|
|
2059
|
+
k(c(M), {
|
|
2060
2060
|
icon: "bi:x",
|
|
2061
2061
|
class: "close-icon",
|
|
2062
2062
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -2092,7 +2092,7 @@ const Lt = {
|
|
|
2092
2092
|
])
|
|
2093
2093
|
]));
|
|
2094
2094
|
}
|
|
2095
|
-
}), 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({
|
|
2096
2096
|
__name: "ForgeDatepicker",
|
|
2097
2097
|
props: /* @__PURE__ */ E({
|
|
2098
2098
|
severity: { default: "primary" },
|
|
@@ -2172,7 +2172,7 @@ const Lt = {
|
|
|
2172
2172
|
}), p = () => {
|
|
2173
2173
|
s(null), a.value = null;
|
|
2174
2174
|
}, u = _(() => i.value.length > 0), h = _(() => ({
|
|
2175
|
-
day: ({ context: r, props: w, attrs:
|
|
2175
|
+
day: ({ context: r, props: w, attrs: v }) => ({
|
|
2176
2176
|
class: [
|
|
2177
2177
|
"d-flex justify-content-center align-items-center",
|
|
2178
2178
|
{
|
|
@@ -2192,14 +2192,14 @@ const Lt = {
|
|
|
2192
2192
|
},
|
|
2193
2193
|
// Severities
|
|
2194
2194
|
{
|
|
2195
|
-
"date-primary":
|
|
2196
|
-
"date-brand":
|
|
2197
|
-
"date-secondary":
|
|
2198
|
-
"date-success":
|
|
2199
|
-
"date-success-alternate":
|
|
2200
|
-
"date-warning":
|
|
2201
|
-
"date-danger":
|
|
2202
|
-
"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"
|
|
2203
2203
|
}
|
|
2204
2204
|
]
|
|
2205
2205
|
}),
|
|
@@ -2277,14 +2277,14 @@ const Lt = {
|
|
|
2277
2277
|
})
|
|
2278
2278
|
}));
|
|
2279
2279
|
return (r, w) => {
|
|
2280
|
-
const
|
|
2280
|
+
const v = De;
|
|
2281
2281
|
return d(), b(U, null, [
|
|
2282
2282
|
m("div", na, [
|
|
2283
2283
|
m("span", sa, [
|
|
2284
2284
|
F(r.$slots, "before")
|
|
2285
2285
|
]),
|
|
2286
2286
|
m("div", ra, [
|
|
2287
|
-
k(
|
|
2287
|
+
k(v, j({ ...t, ...r.$attrs }, {
|
|
2288
2288
|
pt: h.value,
|
|
2289
2289
|
modelValue: a.value,
|
|
2290
2290
|
"onUpdate:modelValue": [
|
|
@@ -2294,20 +2294,20 @@ const Lt = {
|
|
|
2294
2294
|
onBlur: w[1] || (w[1] = () => c(n)),
|
|
2295
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) }
|
|
2296
2296
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2297
|
-
K(k(c(
|
|
2297
|
+
K(k(c(M), {
|
|
2298
2298
|
"data-cy": "icon",
|
|
2299
2299
|
icon: "bi:calendar4",
|
|
2300
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"}`])
|
|
2301
2301
|
}, null, 8, ["class"]), [
|
|
2302
2302
|
[X, t.showIcon && !t.inline]
|
|
2303
2303
|
]),
|
|
2304
|
-
K(k(c(
|
|
2304
|
+
K(k(c(M), {
|
|
2305
2305
|
"data-cy": "icon",
|
|
2306
2306
|
icon: "bi:x",
|
|
2307
2307
|
onClick: p,
|
|
2308
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"])
|
|
2309
2309
|
}, null, 8, ["class"]), [
|
|
2310
|
-
[X, t.modelValue && !t.inline]
|
|
2310
|
+
[X, t.modelValue && !t.inline && !r.readonly]
|
|
2311
2311
|
])
|
|
2312
2312
|
]),
|
|
2313
2313
|
m("span", da, [
|
|
@@ -2347,7 +2347,7 @@ const Lt = {
|
|
|
2347
2347
|
hideCancel: { type: Boolean, default: !1 }
|
|
2348
2348
|
},
|
|
2349
2349
|
setup(e) {
|
|
2350
|
-
const t = e, a =
|
|
2350
|
+
const t = e, a = I(!1), i = I({
|
|
2351
2351
|
hasError: !1,
|
|
2352
2352
|
message: ""
|
|
2353
2353
|
});
|
|
@@ -2381,7 +2381,7 @@ const Lt = {
|
|
|
2381
2381
|
severity: "danger",
|
|
2382
2382
|
"data-cy": "error"
|
|
2383
2383
|
}, {
|
|
2384
|
-
default:
|
|
2384
|
+
default: g(() => [
|
|
2385
2385
|
F(l.$slots, "error", {
|
|
2386
2386
|
error: i.value.message
|
|
2387
2387
|
}, () => [
|
|
@@ -2401,7 +2401,7 @@ const Lt = {
|
|
|
2401
2401
|
outlined: "",
|
|
2402
2402
|
onClick: n[0] || (n[0] = (p) => l.$emit("cancel"))
|
|
2403
2403
|
}, {
|
|
2404
|
-
default:
|
|
2404
|
+
default: g(() => [
|
|
2405
2405
|
V($(l.cancelText), 1)
|
|
2406
2406
|
]),
|
|
2407
2407
|
_: 1
|
|
@@ -2414,7 +2414,7 @@ const Lt = {
|
|
|
2414
2414
|
severity: "primary",
|
|
2415
2415
|
class: "ms-auto"
|
|
2416
2416
|
}, {
|
|
2417
|
-
default:
|
|
2417
|
+
default: g(() => [
|
|
2418
2418
|
V($(l.submitText), 1)
|
|
2419
2419
|
]),
|
|
2420
2420
|
_: 1
|
|
@@ -2459,7 +2459,7 @@ const Lt = {
|
|
|
2459
2459
|
return W(() => l.value, (h) => {
|
|
2460
2460
|
t.value = h;
|
|
2461
2461
|
}, { immediate: !0 }), (h, r) => {
|
|
2462
|
-
const w = Ae,
|
|
2462
|
+
const w = Ae, v = Oe, C = ae, S = oe, A = de, f = xe;
|
|
2463
2463
|
return a.type === "checkbox" ? (d(), x(ye, j({
|
|
2464
2464
|
key: 0,
|
|
2465
2465
|
id: a.name,
|
|
@@ -2485,9 +2485,9 @@ const Lt = {
|
|
|
2485
2485
|
key: 0,
|
|
2486
2486
|
id: a.name
|
|
2487
2487
|
}, h.$attrs, {
|
|
2488
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2488
2489
|
placeholder: a.placeholder,
|
|
2489
2490
|
"input-class": { "is-invalid": u.value },
|
|
2490
|
-
class: { "is-invalid": u.value },
|
|
2491
2491
|
onInput: i,
|
|
2492
2492
|
modelValue: t.value,
|
|
2493
2493
|
"onUpdate:modelValue": r[1] || (r[1] = (B) => t.value = B)
|
|
@@ -2495,19 +2495,19 @@ const Lt = {
|
|
|
2495
2495
|
key: 1,
|
|
2496
2496
|
id: a.name
|
|
2497
2497
|
}, h.$attrs, {
|
|
2498
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2498
2499
|
placeholder: a.placeholder,
|
|
2499
|
-
class: { "is-invalid": u.value },
|
|
2500
2500
|
modelValue: t.value,
|
|
2501
2501
|
"onUpdate:modelValue": r[2] || (r[2] = (B) => t.value = B),
|
|
2502
2502
|
onInput: i,
|
|
2503
2503
|
onBlur: c(p)
|
|
2504
|
-
}), 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({
|
|
2505
2505
|
key: 2,
|
|
2506
2506
|
id: a.name
|
|
2507
2507
|
}, h.$attrs, {
|
|
2508
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2508
2509
|
placeholder: a.placeholder,
|
|
2509
2510
|
mask: a.mask,
|
|
2510
|
-
class: { "is-invalid": u.value },
|
|
2511
2511
|
modelValue: t.value,
|
|
2512
2512
|
"onUpdate:modelValue": r[3] || (r[3] = (B) => t.value = B),
|
|
2513
2513
|
onComplete: i,
|
|
@@ -2516,8 +2516,8 @@ const Lt = {
|
|
|
2516
2516
|
key: 3,
|
|
2517
2517
|
id: a.name
|
|
2518
2518
|
}, h.$attrs, {
|
|
2519
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2519
2520
|
placeholder: a.placeholder,
|
|
2520
|
-
class: { "is-invalid": u.value },
|
|
2521
2521
|
modelValue: t.value,
|
|
2522
2522
|
"onUpdate:modelValue": r[4] || (r[4] = (B) => t.value = B),
|
|
2523
2523
|
onInput: i,
|
|
@@ -2534,7 +2534,7 @@ const Lt = {
|
|
|
2534
2534
|
modelValue: t.value,
|
|
2535
2535
|
"onUpdate:modelValue": r[7] || (r[7] = (B) => t.value = B),
|
|
2536
2536
|
class: { "is-invalid": u.value }
|
|
2537
|
-
}), 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 }, {
|
|
2538
2538
|
modelValue: t.value,
|
|
2539
2539
|
"onUpdate:modelValue": r[8] || (r[8] = (B) => t.value = B),
|
|
2540
2540
|
class: { "is-invalid": u.value }
|
|
@@ -2587,7 +2587,7 @@ const Lt = {
|
|
|
2587
2587
|
return (i, o) => {
|
|
2588
2588
|
const l = Ne;
|
|
2589
2589
|
return d(), x(l, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2590
|
-
default:
|
|
2590
|
+
default: g(() => [
|
|
2591
2591
|
(d(!0), b(U, null, L(i.$slots, (n, s) => F(i.$slots, s, { slot: s })), 256))
|
|
2592
2592
|
]),
|
|
2593
2593
|
_: 3
|
|
@@ -2642,7 +2642,7 @@ const Lt = {
|
|
|
2642
2642
|
return (n, s) => {
|
|
2643
2643
|
const p = Ue;
|
|
2644
2644
|
return d(), x(p, j({ ...n.$attrs, ...t }, { pt: l.value }), {
|
|
2645
|
-
default:
|
|
2645
|
+
default: g(() => [
|
|
2646
2646
|
F(n.$slots, "default")
|
|
2647
2647
|
]),
|
|
2648
2648
|
_: 3
|
|
@@ -2966,7 +2966,7 @@ var va = /* @__PURE__ */ z({
|
|
|
2966
2966
|
var p = t.split(n).filter((S) => S.length > 0);
|
|
2967
2967
|
for (let S = 0; S < p.length; S++) {
|
|
2968
2968
|
for (var u = p[S].split(s).filter((A) => A.length > 0), h = "", r = 0; r < u.length; r++) {
|
|
2969
|
-
var w = h + u[r] + " ",
|
|
2969
|
+
var w = h + u[r] + " ", v = e.measureText(w), C = v.width;
|
|
2970
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;
|
|
2971
2971
|
}
|
|
2972
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;
|
|
@@ -3053,7 +3053,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3053
3053
|
},
|
|
3054
3054
|
emits: ["save"],
|
|
3055
3055
|
setup(e, { emit: t }) {
|
|
3056
|
-
const a = e, i = t, o = Te("drawingCanvas"), l =
|
|
3056
|
+
const a = e, i = t, o = Te("drawingCanvas"), l = I(), n = () => {
|
|
3057
3057
|
o == null || o.value.reset();
|
|
3058
3058
|
}, s = () => {
|
|
3059
3059
|
o == null || o.value.redo();
|
|
@@ -3069,7 +3069,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3069
3069
|
ref_key: "drawingCanvas",
|
|
3070
3070
|
ref: o,
|
|
3071
3071
|
image: l.value,
|
|
3072
|
-
"onUpdate:image": r[0] || (r[0] = (
|
|
3072
|
+
"onUpdate:image": r[0] || (r[0] = (v) => l.value = v),
|
|
3073
3073
|
"data-cy": "drawing-canvas",
|
|
3074
3074
|
class: "border canvas"
|
|
3075
3075
|
}, { ...h.$attrs }, {
|
|
@@ -3085,7 +3085,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3085
3085
|
outlined: "",
|
|
3086
3086
|
"data-cy": "undo-button"
|
|
3087
3087
|
}, {
|
|
3088
|
-
default:
|
|
3088
|
+
default: g(() => r[1] || (r[1] = [
|
|
3089
3089
|
V("Undo")
|
|
3090
3090
|
])),
|
|
3091
3091
|
_: 1,
|
|
@@ -3097,7 +3097,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3097
3097
|
outlined: "",
|
|
3098
3098
|
"data-cy": "redo-button"
|
|
3099
3099
|
}, {
|
|
3100
|
-
default:
|
|
3100
|
+
default: g(() => r[2] || (r[2] = [
|
|
3101
3101
|
V("Redo")
|
|
3102
3102
|
])),
|
|
3103
3103
|
_: 1,
|
|
@@ -3109,7 +3109,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3109
3109
|
outlined: "",
|
|
3110
3110
|
"data-cy": "clear-button"
|
|
3111
3111
|
}, {
|
|
3112
|
-
default:
|
|
3112
|
+
default: g(() => r[3] || (r[3] = [
|
|
3113
3113
|
V("Clear")
|
|
3114
3114
|
])),
|
|
3115
3115
|
_: 1,
|
|
@@ -3121,7 +3121,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3121
3121
|
class: "ms-auto",
|
|
3122
3122
|
"data-cy": "save-button"
|
|
3123
3123
|
}, {
|
|
3124
|
-
default:
|
|
3124
|
+
default: g(() => r[4] || (r[4] = [
|
|
3125
3125
|
V("Save")
|
|
3126
3126
|
])),
|
|
3127
3127
|
_: 1,
|
|
@@ -3195,15 +3195,15 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3195
3195
|
})
|
|
3196
3196
|
}));
|
|
3197
3197
|
return (i, o) => (d(), x(c(Ee), { value: i.currentStep }, {
|
|
3198
|
-
default:
|
|
3198
|
+
default: g(() => [
|
|
3199
3199
|
k(c(qe), null, {
|
|
3200
|
-
default:
|
|
3200
|
+
default: g(() => [
|
|
3201
3201
|
(d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Le), j({
|
|
3202
3202
|
key: l.value,
|
|
3203
3203
|
value: l.value,
|
|
3204
3204
|
disabled: l.disabled
|
|
3205
3205
|
}, { ref_for: !0 }, { ...i.$attrs }, { pt: a.value }), {
|
|
3206
|
-
default:
|
|
3206
|
+
default: g(() => [
|
|
3207
3207
|
i.showStepLabel ? (d(), b("div", ya, $(l.label), 1)) : T("", !0)
|
|
3208
3208
|
]),
|
|
3209
3209
|
_: 2
|
|
@@ -3212,12 +3212,12 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3212
3212
|
_: 1
|
|
3213
3213
|
}),
|
|
3214
3214
|
k(c(He), null, {
|
|
3215
|
-
default:
|
|
3215
|
+
default: g(() => [
|
|
3216
3216
|
(d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Re), {
|
|
3217
3217
|
key: l.value,
|
|
3218
3218
|
value: l.value
|
|
3219
3219
|
}, {
|
|
3220
|
-
default:
|
|
3220
|
+
default: g(() => [
|
|
3221
3221
|
F(i.$slots, "step" + l.value)
|
|
3222
3222
|
]),
|
|
3223
3223
|
_: 2
|
|
@@ -3248,7 +3248,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3248
3248
|
unstyled: "",
|
|
3249
3249
|
"data-cy": "button-tile"
|
|
3250
3250
|
}, {
|
|
3251
|
-
default:
|
|
3251
|
+
default: g(() => [
|
|
3252
3252
|
m("div", xa, [
|
|
3253
3253
|
F(o.$slots, "default", {}, () => [
|
|
3254
3254
|
l[0] || (l[0] = V("Tile Content"))
|
|
@@ -3401,7 +3401,7 @@ const wa = {
|
|
|
3401
3401
|
},
|
|
3402
3402
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3403
3403
|
setup(e, { emit: t }) {
|
|
3404
|
-
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({
|
|
3405
3405
|
filters: i.filters,
|
|
3406
3406
|
perPage: n.value,
|
|
3407
3407
|
page: 0,
|
|
@@ -3409,12 +3409,12 @@ const wa = {
|
|
|
3409
3409
|
sortField: "",
|
|
3410
3410
|
total: i.totalRecords ?? i.value.length
|
|
3411
3411
|
});
|
|
3412
|
-
W(() => i.perPage, (
|
|
3413
|
-
|
|
3412
|
+
W(() => i.perPage, (f) => {
|
|
3413
|
+
f && (n.value = f, s.value.perPage = f);
|
|
3414
3414
|
});
|
|
3415
3415
|
const p = _(() => i.totalRecords ?? i.value.length), u = _(() => {
|
|
3416
|
-
const
|
|
3417
|
-
return `${
|
|
3416
|
+
const f = Math.ceil(p.value / n.value);
|
|
3417
|
+
return `${f} ${ee(f, "page")}`;
|
|
3418
3418
|
}), h = _(() => ({
|
|
3419
3419
|
thead: () => ({
|
|
3420
3420
|
class: [
|
|
@@ -3442,30 +3442,30 @@ const wa = {
|
|
|
3442
3442
|
if (i.clearAll)
|
|
3443
3443
|
i.clearAll();
|
|
3444
3444
|
else
|
|
3445
|
-
for (const
|
|
3446
|
-
typeof i.filters[
|
|
3445
|
+
for (const f in i.filters)
|
|
3446
|
+
typeof i.filters[f] == "string" ? i.filters[f] = "" : i.filters[f].value = null;
|
|
3447
3447
|
C(i.filters);
|
|
3448
3448
|
}, w = () => {
|
|
3449
3449
|
o.value.exportCSV();
|
|
3450
|
-
},
|
|
3450
|
+
}, v = (f) => {
|
|
3451
3451
|
var B;
|
|
3452
|
-
s.value.sortDirection =
|
|
3453
|
-
}, C = (
|
|
3454
|
-
s.value.filters =
|
|
3455
|
-
}, S = (
|
|
3456
|
-
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);
|
|
3457
3457
|
}, A = () => {
|
|
3458
3458
|
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3459
3459
|
};
|
|
3460
|
-
return W(() => i.filters, (
|
|
3461
|
-
s.value.filters =
|
|
3462
|
-
}, { 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, [
|
|
3463
3463
|
m("span", Sa, [
|
|
3464
|
-
F(
|
|
3464
|
+
F(f.$slots, "above-table")
|
|
3465
3465
|
]),
|
|
3466
3466
|
k(c(We), j({
|
|
3467
3467
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3468
|
-
}, { ...i, ...
|
|
3468
|
+
}, { ...i, ...f.$attrs }, {
|
|
3469
3469
|
pt: h.value,
|
|
3470
3470
|
rows: n.value,
|
|
3471
3471
|
"total-records": p.value,
|
|
@@ -3474,22 +3474,22 @@ const wa = {
|
|
|
3474
3474
|
ref: o,
|
|
3475
3475
|
"data-cy": "table",
|
|
3476
3476
|
"onUpdate:filters": C,
|
|
3477
|
-
onSort:
|
|
3477
|
+
onSort: v,
|
|
3478
3478
|
onPage: S,
|
|
3479
3479
|
showHeaders: ""
|
|
3480
3480
|
}), ie({
|
|
3481
|
-
empty:
|
|
3481
|
+
empty: g(() => [
|
|
3482
3482
|
m("div", Ca, [
|
|
3483
|
-
m("h5", Ta, $(
|
|
3483
|
+
m("h5", Ta, $(f.emptyMessage ?? "No items Found."), 1)
|
|
3484
3484
|
])
|
|
3485
3485
|
]),
|
|
3486
|
-
header:
|
|
3486
|
+
header: g(() => [
|
|
3487
3487
|
m("div", {
|
|
3488
3488
|
class: P(i.loading ? "opacity-50" : "")
|
|
3489
3489
|
}, [
|
|
3490
3490
|
m("div", za, [
|
|
3491
3491
|
m("div", Pa, [
|
|
3492
|
-
|
|
3492
|
+
f.paginator && !f.legacyPaginationFooter ? (d(), b("span", ja, [
|
|
3493
3493
|
k(he, {
|
|
3494
3494
|
total: p.value,
|
|
3495
3495
|
"page-sizes": l.value,
|
|
@@ -3502,15 +3502,15 @@ const wa = {
|
|
|
3502
3502
|
])) : T("", !0)
|
|
3503
3503
|
]),
|
|
3504
3504
|
m("div", _a, [
|
|
3505
|
-
|
|
3505
|
+
f.showClearButton ? (d(), x(c(q), {
|
|
3506
3506
|
key: 0,
|
|
3507
3507
|
outlined: "",
|
|
3508
|
-
class: P(
|
|
3508
|
+
class: P(f.showExporterButton ? "me-2" : ""),
|
|
3509
3509
|
onClick: r,
|
|
3510
3510
|
"data-cy": "clear-all"
|
|
3511
3511
|
}, {
|
|
3512
|
-
default:
|
|
3513
|
-
k(c(
|
|
3512
|
+
default: g(() => [
|
|
3513
|
+
k(c(M), {
|
|
3514
3514
|
icon: "bi:funnel-fill",
|
|
3515
3515
|
width: "24",
|
|
3516
3516
|
height: "24"
|
|
@@ -3520,14 +3520,14 @@ const wa = {
|
|
|
3520
3520
|
_: 1,
|
|
3521
3521
|
__: [2]
|
|
3522
3522
|
}, 8, ["class"])) : T("", !0),
|
|
3523
|
-
|
|
3523
|
+
f.showExporterButton ? (d(), x(c(q), {
|
|
3524
3524
|
key: 1,
|
|
3525
3525
|
outlined: "",
|
|
3526
3526
|
onClick: w,
|
|
3527
3527
|
"data-cy": "exporter"
|
|
3528
3528
|
}, {
|
|
3529
|
-
default:
|
|
3530
|
-
k(c(
|
|
3529
|
+
default: g(() => [
|
|
3530
|
+
k(c(M), {
|
|
3531
3531
|
icon: "typcn:export",
|
|
3532
3532
|
width: "24",
|
|
3533
3533
|
height: "24"
|
|
@@ -3537,25 +3537,25 @@ const wa = {
|
|
|
3537
3537
|
_: 1,
|
|
3538
3538
|
__: [3]
|
|
3539
3539
|
})) : T("", !0),
|
|
3540
|
-
F(
|
|
3540
|
+
F(f.$slots, "column-customiser")
|
|
3541
3541
|
])
|
|
3542
3542
|
])
|
|
3543
3543
|
], 2)
|
|
3544
3544
|
]),
|
|
3545
|
-
default:
|
|
3546
|
-
F(
|
|
3545
|
+
default: g(() => [
|
|
3546
|
+
F(f.$slots, "default")
|
|
3547
3547
|
]),
|
|
3548
3548
|
_: 2
|
|
3549
3549
|
}, [
|
|
3550
|
-
L(
|
|
3550
|
+
L(f.$slots, (D, y) => ({
|
|
3551
3551
|
name: y,
|
|
3552
|
-
fn:
|
|
3553
|
-
F(
|
|
3552
|
+
fn: g((O) => [
|
|
3553
|
+
F(f.$slots, y, G(Y(O || {})))
|
|
3554
3554
|
])
|
|
3555
3555
|
})),
|
|
3556
|
-
|
|
3556
|
+
f.legacyPaginationFooter ? {
|
|
3557
3557
|
name: "paginatorstart",
|
|
3558
|
-
fn:
|
|
3558
|
+
fn: g(() => [
|
|
3559
3559
|
m("span", {
|
|
3560
3560
|
class: P(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3561
3561
|
"data-cy": "legacy-page-size"
|
|
@@ -3572,9 +3572,9 @@ const wa = {
|
|
|
3572
3572
|
]),
|
|
3573
3573
|
key: "0"
|
|
3574
3574
|
} : void 0,
|
|
3575
|
-
|
|
3575
|
+
f.legacyPaginationFooter ? {
|
|
3576
3576
|
name: "paginatorend",
|
|
3577
|
-
fn:
|
|
3577
|
+
fn: g(() => [
|
|
3578
3578
|
m("span", {
|
|
3579
3579
|
"data-cy": "legacy-total",
|
|
3580
3580
|
class: P(i.loading ? "opacity-50" : "")
|
|
@@ -3585,7 +3585,7 @@ const wa = {
|
|
|
3585
3585
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3586
3586
|
]));
|
|
3587
3587
|
}
|
|
3588
|
-
}),
|
|
3588
|
+
}), Ia = { class: "position-relative" }, Ma = { "data-cy": "above-table-slot" }, Va = { class: "d-flex w-100" }, Da = {
|
|
3589
3589
|
class: "mx-auto",
|
|
3590
3590
|
"data-cy": "empty-message"
|
|
3591
3591
|
}, Oa = { class: "d-flex" }, Aa = { class: "d-flex align-items-end mb-2" }, Na = { key: 0 }, Ua = { class: "ms-auto" }, Fo = /* @__PURE__ */ z({
|
|
@@ -3649,7 +3649,7 @@ const wa = {
|
|
|
3649
3649
|
},
|
|
3650
3650
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3651
3651
|
setup(e, { emit: t }) {
|
|
3652
|
-
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({
|
|
3653
3653
|
filters: a.filters,
|
|
3654
3654
|
perPage: l.value,
|
|
3655
3655
|
page: 0,
|
|
@@ -3695,7 +3695,7 @@ const wa = {
|
|
|
3695
3695
|
]
|
|
3696
3696
|
}));
|
|
3697
3697
|
W(() => a.parentExpanderFullRow, (y) => {
|
|
3698
|
-
y ? w() :
|
|
3698
|
+
y ? w() : v();
|
|
3699
3699
|
});
|
|
3700
3700
|
const w = () => {
|
|
3701
3701
|
a.parentExpanderFullRow && setTimeout(
|
|
@@ -3713,7 +3713,7 @@ const wa = {
|
|
|
3713
3713
|
},
|
|
3714
3714
|
0
|
|
3715
3715
|
);
|
|
3716
|
-
},
|
|
3716
|
+
}, v = () => {
|
|
3717
3717
|
setTimeout(
|
|
3718
3718
|
() => {
|
|
3719
3719
|
const y = Array.from(
|
|
@@ -3741,7 +3741,7 @@ const wa = {
|
|
|
3741
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();
|
|
3742
3742
|
}, A = (y) => {
|
|
3743
3743
|
p.value.filters = y, i("update:tableContext", p.value), i("update:filters", y), w();
|
|
3744
|
-
},
|
|
3744
|
+
}, f = (y) => {
|
|
3745
3745
|
p.value.page = s.value = y.page, D(), i("update:tableContext", p.value), i("page", y), w();
|
|
3746
3746
|
}, B = () => {
|
|
3747
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();
|
|
@@ -3756,8 +3756,8 @@ const wa = {
|
|
|
3756
3756
|
const D = () => {
|
|
3757
3757
|
n.value = s.value * l.value;
|
|
3758
3758
|
};
|
|
3759
|
-
return (y, O) => (d(), b("div",
|
|
3760
|
-
m("span",
|
|
3759
|
+
return (y, O) => (d(), b("div", Ia, [
|
|
3760
|
+
m("span", Ma, [
|
|
3761
3761
|
F(y.$slots, "above-table")
|
|
3762
3762
|
]),
|
|
3763
3763
|
k(c(Ge), j({
|
|
@@ -3769,17 +3769,17 @@ const wa = {
|
|
|
3769
3769
|
"data-cy": "tree-table",
|
|
3770
3770
|
"onUpdate:filters": A,
|
|
3771
3771
|
onSort: S,
|
|
3772
|
-
onPage:
|
|
3772
|
+
onPage: f,
|
|
3773
3773
|
onNodeExpand: O[2] || (O[2] = () => w()),
|
|
3774
3774
|
showHeaders: "",
|
|
3775
3775
|
first: n.value
|
|
3776
3776
|
}), ie({
|
|
3777
|
-
empty:
|
|
3777
|
+
empty: g(() => [
|
|
3778
3778
|
m("div", Va, [
|
|
3779
3779
|
m("h5", Da, $(y.emptyMessage ?? "No items Found."), 1)
|
|
3780
3780
|
])
|
|
3781
3781
|
]),
|
|
3782
|
-
header:
|
|
3782
|
+
header: g(() => [
|
|
3783
3783
|
m("div", {
|
|
3784
3784
|
class: P(a.loading ? "opacity-50" : "")
|
|
3785
3785
|
}, [
|
|
@@ -3804,8 +3804,8 @@ const wa = {
|
|
|
3804
3804
|
onClick: C,
|
|
3805
3805
|
"data-cy": "clear-all"
|
|
3806
3806
|
}, {
|
|
3807
|
-
default:
|
|
3808
|
-
k(c(
|
|
3807
|
+
default: g(() => [
|
|
3808
|
+
k(c(M), {
|
|
3809
3809
|
icon: "bi:funnel-fill",
|
|
3810
3810
|
width: "24",
|
|
3811
3811
|
height: "24"
|
|
@@ -3820,20 +3820,20 @@ const wa = {
|
|
|
3820
3820
|
])
|
|
3821
3821
|
], 2)
|
|
3822
3822
|
]),
|
|
3823
|
-
default:
|
|
3823
|
+
default: g(() => [
|
|
3824
3824
|
F(y.$slots, "default")
|
|
3825
3825
|
]),
|
|
3826
3826
|
_: 2
|
|
3827
3827
|
}, [
|
|
3828
3828
|
L(y.$slots, (R, ve) => ({
|
|
3829
3829
|
name: ve,
|
|
3830
|
-
fn:
|
|
3830
|
+
fn: g((Be) => [
|
|
3831
3831
|
F(y.$slots, ve, G(Y(Be || {})))
|
|
3832
3832
|
])
|
|
3833
3833
|
})),
|
|
3834
3834
|
y.legacyPaginationFooter ? {
|
|
3835
3835
|
name: "paginatorstart",
|
|
3836
|
-
fn:
|
|
3836
|
+
fn: g(() => [
|
|
3837
3837
|
m("span", {
|
|
3838
3838
|
class: P(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
3839
3839
|
"data-cy": "legacy-page-size"
|
|
@@ -3852,7 +3852,7 @@ const wa = {
|
|
|
3852
3852
|
} : void 0,
|
|
3853
3853
|
y.legacyPaginationFooter ? {
|
|
3854
3854
|
name: "paginatorend",
|
|
3855
|
-
fn:
|
|
3855
|
+
fn: g(() => [
|
|
3856
3856
|
m("span", {
|
|
3857
3857
|
"data-cy": "legacy-total",
|
|
3858
3858
|
class: P(a.loading ? "opacity-50" : "")
|
|
@@ -3916,7 +3916,7 @@ const wa = {
|
|
|
3916
3916
|
"option-value": o.optionValue,
|
|
3917
3917
|
"option-label": o.optionLabel
|
|
3918
3918
|
}), {
|
|
3919
|
-
value:
|
|
3919
|
+
value: g(({ value: p, placeholder: u }) => [
|
|
3920
3920
|
m("div", Ea, [
|
|
3921
3921
|
m("span", {
|
|
3922
3922
|
class: P({ "filter-placeholder": p === null })
|
|
@@ -3927,8 +3927,8 @@ const wa = {
|
|
|
3927
3927
|
size: "small",
|
|
3928
3928
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3929
3929
|
}, {
|
|
3930
|
-
default:
|
|
3931
|
-
k(c(
|
|
3930
|
+
default: g(() => [
|
|
3931
|
+
k(c(M), {
|
|
3932
3932
|
icon: "bi:x",
|
|
3933
3933
|
width: "1rem",
|
|
3934
3934
|
height: "1rem",
|
|
@@ -3962,8 +3962,8 @@ const wa = {
|
|
|
3962
3962
|
size: "small",
|
|
3963
3963
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3964
3964
|
}, {
|
|
3965
|
-
default:
|
|
3966
|
-
k(c(
|
|
3965
|
+
default: g(() => [
|
|
3966
|
+
k(c(M), {
|
|
3967
3967
|
icon: "bi:x",
|
|
3968
3968
|
width: "1rem",
|
|
3969
3969
|
height: "1rem",
|
|
@@ -5176,7 +5176,7 @@ 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 =
|
|
5179
|
+
const t = N(e, "modelValue"), a = I(), i = (n) => a.value.toggle(n), o = _(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5180
5180
|
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
5181
5181
|
};
|
|
5182
5182
|
return (n, s) => {
|
|
@@ -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,
|