@3squared/forge-ui-3 2.19.2 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as C, createBlock as y, openBlock as d, normalizeProps as W, guardReactiveProps as G, withCtx as
|
|
3
|
-
import { Icon as
|
|
1
|
+
import Fe from "primevue/message";
|
|
2
|
+
import { defineComponent as C, createBlock as y, openBlock as d, normalizeProps as W, guardReactiveProps as G, withCtx as v, renderSlot as F, createVNode as w, unref as u, createElementVNode as m, normalizeClass as S, createCommentVNode as z, ref as I, createElementBlock as f, Fragment as A, mergeProps as _, renderList as E, mergeModels as R, useModel as N, computed as T, withDirectives as J, createTextVNode as P, toDisplayString as B, vShow as X, createSlots as ae, onMounted as oe, withKeys as le, isRef as Be, normalizeStyle as Se, withModifiers as Q, watch as K, h as Ce, useTemplateRef as ze } from "vue";
|
|
3
|
+
import { Icon as j } from "@iconify/vue";
|
|
4
4
|
import q from "primevue/button";
|
|
5
5
|
import Te from "primevue/toast";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import _e from "primevue/autocomplete";
|
|
7
|
+
import je from "primevue/checkbox";
|
|
8
8
|
import { useField as ne } from "vee-validate";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
9
|
+
import Ie from "primevue/progressspinner";
|
|
10
|
+
import Pe from "primevue/dialog";
|
|
11
|
+
import re from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as Me } from "@vueuse/components";
|
|
13
13
|
import Ve from "primevue/menubar";
|
|
14
|
-
import
|
|
14
|
+
import de from "primevue/multiselect";
|
|
15
15
|
import De from "primevue/datepicker";
|
|
16
16
|
import ie from "primevue/select";
|
|
17
17
|
import Oe from "primevue/inputmask";
|
|
@@ -991,7 +991,7 @@ const Xe = {
|
|
|
991
991
|
separator: "border-bottom"
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
|
-
},
|
|
994
|
+
}, Ft = {
|
|
995
995
|
progressspinner: {
|
|
996
996
|
spin: () => ({
|
|
997
997
|
class: [
|
|
@@ -999,7 +999,7 @@ const Xe = {
|
|
|
999
999
|
]
|
|
1000
1000
|
})
|
|
1001
1001
|
}
|
|
1002
|
-
},
|
|
1002
|
+
}, Bt = {
|
|
1003
1003
|
card: {
|
|
1004
1004
|
root: () => ({
|
|
1005
1005
|
class: ["card"]
|
|
@@ -1108,7 +1108,7 @@ const Xe = {
|
|
|
1108
1108
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1109
1109
|
filterIcon: "d-none"
|
|
1110
1110
|
}
|
|
1111
|
-
},
|
|
1111
|
+
}, _t = {
|
|
1112
1112
|
treeSelect: {
|
|
1113
1113
|
root: ({ props: e }) => ({
|
|
1114
1114
|
class: [
|
|
@@ -1156,7 +1156,7 @@ const Xe = {
|
|
|
1156
1156
|
filterIcon: "d-none"
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
|
-
},
|
|
1159
|
+
}, jt = {
|
|
1160
1160
|
fieldset: {
|
|
1161
1161
|
root: () => ({
|
|
1162
1162
|
class: [
|
|
@@ -1182,7 +1182,7 @@ const Xe = {
|
|
|
1182
1182
|
]
|
|
1183
1183
|
})
|
|
1184
1184
|
}
|
|
1185
|
-
},
|
|
1185
|
+
}, It = {
|
|
1186
1186
|
accordionPanel: {
|
|
1187
1187
|
root: "card my-2"
|
|
1188
1188
|
},
|
|
@@ -1200,7 +1200,7 @@ const Xe = {
|
|
|
1200
1200
|
accordionContent: {
|
|
1201
1201
|
root: "mt-2 mx-4 mb-4"
|
|
1202
1202
|
}
|
|
1203
|
-
},
|
|
1203
|
+
}, Pt = {
|
|
1204
1204
|
// More PT options can be found in the ForgeTable file.
|
|
1205
1205
|
treetable: {
|
|
1206
1206
|
root: "position-relative",
|
|
@@ -1225,7 +1225,7 @@ const Xe = {
|
|
|
1225
1225
|
...Xe,
|
|
1226
1226
|
...xt,
|
|
1227
1227
|
...Qe,
|
|
1228
|
-
...
|
|
1228
|
+
...Bt,
|
|
1229
1229
|
...et,
|
|
1230
1230
|
...rt,
|
|
1231
1231
|
...at,
|
|
@@ -1242,7 +1242,7 @@ const Xe = {
|
|
|
1242
1242
|
...ht,
|
|
1243
1243
|
...pt,
|
|
1244
1244
|
...gt,
|
|
1245
|
-
...
|
|
1245
|
+
...Ft,
|
|
1246
1246
|
...bt,
|
|
1247
1247
|
...kt,
|
|
1248
1248
|
...$t,
|
|
@@ -1252,15 +1252,15 @@ const Xe = {
|
|
|
1252
1252
|
...mt,
|
|
1253
1253
|
...zt,
|
|
1254
1254
|
...st,
|
|
1255
|
-
..._t,
|
|
1256
1255
|
...jt,
|
|
1256
|
+
..._t,
|
|
1257
1257
|
...Tt,
|
|
1258
|
-
...Pt,
|
|
1259
1258
|
...It,
|
|
1259
|
+
...Pt,
|
|
1260
1260
|
directives: {
|
|
1261
1261
|
...wt
|
|
1262
1262
|
}
|
|
1263
|
-
},
|
|
1263
|
+
}, se = /* @__PURE__ */ C({
|
|
1264
1264
|
__name: "ForgeAlert",
|
|
1265
1265
|
props: {
|
|
1266
1266
|
severity: { default: "primary" },
|
|
@@ -1280,13 +1280,13 @@ const Xe = {
|
|
|
1280
1280
|
setup(e) {
|
|
1281
1281
|
const t = e;
|
|
1282
1282
|
return (a, i) => {
|
|
1283
|
-
const l =
|
|
1283
|
+
const l = Fe;
|
|
1284
1284
|
return d(), y(l, W(G({ ...a.$attrs, ...t })), {
|
|
1285
|
-
icon:
|
|
1285
|
+
icon: v(() => [
|
|
1286
1286
|
m("div", {
|
|
1287
1287
|
class: S(t.icon ? "me-2 pe-1" : "")
|
|
1288
1288
|
}, [
|
|
1289
|
-
t.icon ? (d(), y(u(
|
|
1289
|
+
t.icon ? (d(), y(u(j), {
|
|
1290
1290
|
key: 0,
|
|
1291
1291
|
"data-cy": "message-icon",
|
|
1292
1292
|
icon: t.icon,
|
|
@@ -1295,11 +1295,11 @@ const Xe = {
|
|
|
1295
1295
|
}, null, 8, ["icon", "class"])) : z("", !0)
|
|
1296
1296
|
], 2)
|
|
1297
1297
|
]),
|
|
1298
|
-
closeicon:
|
|
1299
|
-
w(u(
|
|
1298
|
+
closeicon: v(() => [
|
|
1299
|
+
w(u(j), { icon: "bi:x" })
|
|
1300
1300
|
]),
|
|
1301
|
-
default:
|
|
1302
|
-
|
|
1301
|
+
default: v(() => [
|
|
1302
|
+
F(a.$slots, "default")
|
|
1303
1303
|
]),
|
|
1304
1304
|
_: 3
|
|
1305
1305
|
}, 16);
|
|
@@ -1314,7 +1314,7 @@ const Xe = {
|
|
|
1314
1314
|
params: { default: Array }
|
|
1315
1315
|
},
|
|
1316
1316
|
setup(e) {
|
|
1317
|
-
const t =
|
|
1317
|
+
const t = I(!1), a = e, i = async () => {
|
|
1318
1318
|
t.value = !0;
|
|
1319
1319
|
try {
|
|
1320
1320
|
await a.action.apply(this, a.params);
|
|
@@ -1325,8 +1325,8 @@ const Xe = {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
return (l, o) => {
|
|
1327
1327
|
const n = q;
|
|
1328
|
-
return d(),
|
|
1329
|
-
w(n,
|
|
1328
|
+
return d(), f(A, null, [
|
|
1329
|
+
w(n, _({ ...a, ...l.$attrs }, {
|
|
1330
1330
|
loading: t.value,
|
|
1331
1331
|
disabled: t.value || a.disabled,
|
|
1332
1332
|
onClick: i
|
|
@@ -1338,9 +1338,9 @@ const Xe = {
|
|
|
1338
1338
|
}), tl = /* @__PURE__ */ C({
|
|
1339
1339
|
__name: "ForgeAutoComplete",
|
|
1340
1340
|
setup(e) {
|
|
1341
|
-
return (t, a) => (d(), y(u(
|
|
1342
|
-
default:
|
|
1343
|
-
(d(!0),
|
|
1341
|
+
return (t, a) => (d(), y(u(_e), _({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1342
|
+
default: v(() => [
|
|
1343
|
+
(d(!0), f(A, null, E(t.$slots, (i, l) => F(t.$slots, l, { slot: l })), 256))
|
|
1344
1344
|
]),
|
|
1345
1345
|
_: 3
|
|
1346
1346
|
}, 16));
|
|
@@ -1391,14 +1391,14 @@ const Xe = {
|
|
|
1391
1391
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
|
|
1392
1392
|
}, s = T(() => l.value.length > 0);
|
|
1393
1393
|
return (p, c) => {
|
|
1394
|
-
const x =
|
|
1395
|
-
return d(),
|
|
1396
|
-
m("div",
|
|
1394
|
+
const x = je;
|
|
1395
|
+
return d(), f("div", Mt, [
|
|
1396
|
+
m("div", _({
|
|
1397
1397
|
class: "d-flex",
|
|
1398
1398
|
"data-cy": "checkbox-container",
|
|
1399
1399
|
onClick: c[2] || (c[2] = (r) => n(r, a.value))
|
|
1400
1400
|
}, { ...p.$attrs }), [
|
|
1401
|
-
w(x,
|
|
1401
|
+
w(x, _({ ...t }, {
|
|
1402
1402
|
binary: "",
|
|
1403
1403
|
modelValue: a.value,
|
|
1404
1404
|
"onUpdate:modelValue": c[0] || (c[0] = (r) => a.value = r),
|
|
@@ -1411,16 +1411,16 @@ const Xe = {
|
|
|
1411
1411
|
onClick: c[1] || (c[1] = (r) => n(r, !a.value)),
|
|
1412
1412
|
class: S([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1413
1413
|
}, [
|
|
1414
|
-
|
|
1415
|
-
|
|
1414
|
+
F(p.$slots, "default", {}, () => [
|
|
1415
|
+
P(B(t.label), 1)
|
|
1416
1416
|
])
|
|
1417
1417
|
], 10, Vt)
|
|
1418
1418
|
], 16),
|
|
1419
1419
|
J(m("small", {
|
|
1420
1420
|
"data-cy": "error",
|
|
1421
1421
|
class: "text-invalid"
|
|
1422
|
-
},
|
|
1423
|
-
[
|
|
1422
|
+
}, B(u(o)), 513), [
|
|
1423
|
+
[X, s.value]
|
|
1424
1424
|
])
|
|
1425
1425
|
]);
|
|
1426
1426
|
};
|
|
@@ -1443,8 +1443,8 @@ const Xe = {
|
|
|
1443
1443
|
})
|
|
1444
1444
|
}));
|
|
1445
1445
|
return (i, l) => {
|
|
1446
|
-
const o =
|
|
1447
|
-
return d(),
|
|
1446
|
+
const o = Ie;
|
|
1447
|
+
return d(), f("div", {
|
|
1448
1448
|
class: S(i.inLine ? "" : "forge-loader")
|
|
1449
1449
|
}, [
|
|
1450
1450
|
w(o, {
|
|
@@ -1489,20 +1489,20 @@ const Xe = {
|
|
|
1489
1489
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1490
1490
|
"me-0": e.animateIconOnHover
|
|
1491
1491
|
}));
|
|
1492
|
-
return (i, l) => (d(),
|
|
1492
|
+
return (i, l) => (d(), f("a", {
|
|
1493
1493
|
id: "link",
|
|
1494
1494
|
class: S(["cursor-pointer d-flex text-break", t.value]),
|
|
1495
1495
|
href: i.url,
|
|
1496
1496
|
target: i.target
|
|
1497
1497
|
}, [
|
|
1498
|
-
|
|
1499
|
-
i.iconName ? (d(), y(u(
|
|
1498
|
+
F(i.$slots, "default", {}, () => [
|
|
1499
|
+
i.iconName ? (d(), y(u(j), {
|
|
1500
1500
|
key: 0,
|
|
1501
1501
|
id: "link-icon",
|
|
1502
1502
|
icon: i.iconName,
|
|
1503
1503
|
class: S(["bi my-auto", a.value])
|
|
1504
1504
|
}, null, 8, ["icon", "class"])) : z("", !0),
|
|
1505
|
-
|
|
1505
|
+
P(" " + B(i.label), 1)
|
|
1506
1506
|
])
|
|
1507
1507
|
], 10, Dt));
|
|
1508
1508
|
}
|
|
@@ -1593,7 +1593,7 @@ const Nt = {
|
|
|
1593
1593
|
}),
|
|
1594
1594
|
emits: ["update:visible", "update:error"],
|
|
1595
1595
|
setup(e, { expose: t }) {
|
|
1596
|
-
const a = N(e, "visible"), i =
|
|
1596
|
+
const a = N(e, "visible"), i = I(!1), l = e, o = I(!1), n = N(e, "error"), s = () => {
|
|
1597
1597
|
n.value = {
|
|
1598
1598
|
hasError: !1,
|
|
1599
1599
|
header: "",
|
|
@@ -1642,14 +1642,14 @@ const Nt = {
|
|
|
1642
1642
|
]
|
|
1643
1643
|
}));
|
|
1644
1644
|
return ($, D) => {
|
|
1645
|
-
const O = q, U =
|
|
1646
|
-
return d(), y(U,
|
|
1645
|
+
const O = q, U = Pe;
|
|
1646
|
+
return d(), y(U, _(l, {
|
|
1647
1647
|
onMaximize: c,
|
|
1648
1648
|
onUnmaximize: p,
|
|
1649
1649
|
pt: h.value
|
|
1650
1650
|
}), ae({
|
|
1651
|
-
closeicon:
|
|
1652
|
-
w(u(
|
|
1651
|
+
closeicon: v(() => [
|
|
1652
|
+
w(u(j), {
|
|
1653
1653
|
"data-cy": "close-icon",
|
|
1654
1654
|
icon: "bi:x-lg",
|
|
1655
1655
|
width: "18",
|
|
@@ -1657,8 +1657,8 @@ const Nt = {
|
|
|
1657
1657
|
onClick: x
|
|
1658
1658
|
})
|
|
1659
1659
|
]),
|
|
1660
|
-
maximizeicon:
|
|
1661
|
-
w(u(
|
|
1660
|
+
maximizeicon: v(() => [
|
|
1661
|
+
w(u(j), {
|
|
1662
1662
|
"data-cy": "maximisable-icon",
|
|
1663
1663
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1664
1664
|
width: "16",
|
|
@@ -1669,35 +1669,35 @@ const Nt = {
|
|
|
1669
1669
|
}, [
|
|
1670
1670
|
E($.$slots, (b, k) => ({
|
|
1671
1671
|
name: k,
|
|
1672
|
-
fn:
|
|
1673
|
-
k == "default" ? (d(),
|
|
1674
|
-
n.value.hasError ? (d(),
|
|
1675
|
-
w(
|
|
1672
|
+
fn: v((M) => [
|
|
1673
|
+
k == "default" ? (d(), f(A, { key: 0 }, [
|
|
1674
|
+
n.value.hasError ? (d(), f("div", Nt, [
|
|
1675
|
+
w(se, {
|
|
1676
1676
|
severity: "danger",
|
|
1677
1677
|
"data-cy": "error",
|
|
1678
1678
|
class: "mb-0"
|
|
1679
1679
|
}, {
|
|
1680
|
-
default:
|
|
1680
|
+
default: v(() => [
|
|
1681
1681
|
m("p", {
|
|
1682
1682
|
class: S(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1683
|
-
},
|
|
1684
|
-
n.value.message.length > 0 ? (d(),
|
|
1685
|
-
(d(!0),
|
|
1683
|
+
}, B(n.value.header), 3),
|
|
1684
|
+
n.value.message.length > 0 ? (d(), f("ul", At, [
|
|
1685
|
+
(d(!0), f(A, null, E(n.value.message, (g) => (d(), f("li", { key: g }, B(g), 1))), 128))
|
|
1686
1686
|
])) : z("", !0)
|
|
1687
1687
|
]),
|
|
1688
1688
|
_: 1
|
|
1689
1689
|
})
|
|
1690
1690
|
])) : z("", !0)
|
|
1691
1691
|
], 64)) : z("", !0),
|
|
1692
|
-
|
|
1693
|
-
o.value ?
|
|
1692
|
+
F($.$slots, k, W(G(M || {}))),
|
|
1693
|
+
o.value ? F($.$slots, "loader", { key: 1 }, () => [
|
|
1694
1694
|
w(pe, { "data-cy": "loader" })
|
|
1695
1695
|
]) : z("", !0)
|
|
1696
1696
|
])
|
|
1697
1697
|
})),
|
|
1698
1698
|
$.showFooter ? {
|
|
1699
1699
|
name: "footer",
|
|
1700
|
-
fn:
|
|
1700
|
+
fn: v(() => [
|
|
1701
1701
|
m("div", Et, [
|
|
1702
1702
|
w(O, {
|
|
1703
1703
|
label: $.cancelText,
|
|
@@ -1736,7 +1736,7 @@ const Nt = {
|
|
|
1736
1736
|
}),
|
|
1737
1737
|
emits: ["update:modelValue"],
|
|
1738
1738
|
setup(e) {
|
|
1739
|
-
const t = e, a = N(e, "modelValue"), i =
|
|
1739
|
+
const t = e, a = N(e, "modelValue"), i = I(!1), l = I(), o = () => {
|
|
1740
1740
|
var $;
|
|
1741
1741
|
i.value = !i.value, ($ = l.value) == null || $.focus();
|
|
1742
1742
|
}, n = async () => {
|
|
@@ -1762,18 +1762,18 @@ const Nt = {
|
|
|
1762
1762
|
});
|
|
1763
1763
|
const h = T(() => x.value.length > 0);
|
|
1764
1764
|
return ($, D) => {
|
|
1765
|
-
const O =
|
|
1766
|
-
return d(),
|
|
1765
|
+
const O = re, U = q;
|
|
1766
|
+
return d(), f("div", {
|
|
1767
1767
|
id: t.name
|
|
1768
1768
|
}, [
|
|
1769
|
-
$.readonly ? (d(),
|
|
1770
|
-
|
|
1771
|
-
m("span", Wt,
|
|
1769
|
+
$.readonly ? (d(), f("div", Ht, [
|
|
1770
|
+
F($.$slots, "default", {}, () => [
|
|
1771
|
+
m("span", Wt, B(u(r)), 1)
|
|
1772
1772
|
])
|
|
1773
|
-
])) : (d(),
|
|
1774
|
-
i.value ? (d(),
|
|
1775
|
-
J((d(),
|
|
1776
|
-
|
|
1773
|
+
])) : (d(), f("div", qt, [
|
|
1774
|
+
i.value ? (d(), f("div", Lt, [
|
|
1775
|
+
J((d(), f("div", Rt, [
|
|
1776
|
+
F($.$slots, "editor", {
|
|
1777
1777
|
class: S({ "is-invalid": h.value }),
|
|
1778
1778
|
editFinished: n,
|
|
1779
1779
|
cancel: s,
|
|
@@ -1781,7 +1781,7 @@ const Nt = {
|
|
|
1781
1781
|
}, () => [
|
|
1782
1782
|
w(O, {
|
|
1783
1783
|
modelValue: u(r),
|
|
1784
|
-
"onUpdate:modelValue": D[0] || (D[0] = (b) =>
|
|
1784
|
+
"onUpdate:modelValue": D[0] || (D[0] = (b) => Be(r) ? r.value = b : null),
|
|
1785
1785
|
modelModifiers: { trim: !0 },
|
|
1786
1786
|
"data-cy": "input",
|
|
1787
1787
|
ref_key: "input",
|
|
@@ -1793,7 +1793,7 @@ const Nt = {
|
|
|
1793
1793
|
]
|
|
1794
1794
|
}, null, 8, ["modelValue", "class"])
|
|
1795
1795
|
]),
|
|
1796
|
-
w(u(
|
|
1796
|
+
w(u(j), {
|
|
1797
1797
|
icon: "bi:x-circle",
|
|
1798
1798
|
class: "mx-2 cursor-pointer",
|
|
1799
1799
|
onClick: p,
|
|
@@ -1803,24 +1803,24 @@ const Nt = {
|
|
|
1803
1803
|
])), [
|
|
1804
1804
|
[u(Me), n]
|
|
1805
1805
|
])
|
|
1806
|
-
])) : (d(),
|
|
1806
|
+
])) : (d(), f("div", {
|
|
1807
1807
|
key: 1,
|
|
1808
1808
|
class: "d-flex text-muted",
|
|
1809
1809
|
onClick: o,
|
|
1810
1810
|
onFocus: o
|
|
1811
1811
|
}, [
|
|
1812
|
-
|
|
1812
|
+
F($.$slots, "default", {}, () => [
|
|
1813
1813
|
m("div", {
|
|
1814
1814
|
class: S(["pe-2 cursor-pointer", { "text-invalid": h.value }]),
|
|
1815
1815
|
"data-cy": "value"
|
|
1816
|
-
},
|
|
1816
|
+
}, B(u(r) ? u(r) : "Click to edit"), 3)
|
|
1817
1817
|
]),
|
|
1818
1818
|
w(U, {
|
|
1819
1819
|
link: "",
|
|
1820
1820
|
class: "p-0 m-0"
|
|
1821
1821
|
}, {
|
|
1822
|
-
default:
|
|
1823
|
-
w(u(
|
|
1822
|
+
default: v(() => [
|
|
1823
|
+
w(u(j), {
|
|
1824
1824
|
icon: "bi:pencil",
|
|
1825
1825
|
class: S(h.value ? "text-invalid" : "text-muted"),
|
|
1826
1826
|
"data-cy": "edit-icon",
|
|
@@ -1834,8 +1834,8 @@ const Nt = {
|
|
|
1834
1834
|
J(m("small", {
|
|
1835
1835
|
"data-cy": "error",
|
|
1836
1836
|
class: "text-invalid"
|
|
1837
|
-
},
|
|
1838
|
-
[
|
|
1837
|
+
}, B(u(c)), 513), [
|
|
1838
|
+
[X, h.value]
|
|
1839
1839
|
])
|
|
1840
1840
|
], 8, Ut);
|
|
1841
1841
|
};
|
|
@@ -1885,24 +1885,24 @@ const Nt = {
|
|
|
1885
1885
|
]
|
|
1886
1886
|
})
|
|
1887
1887
|
}));
|
|
1888
|
-
return (i, l) => (d(), y(u(Ve),
|
|
1888
|
+
return (i, l) => (d(), y(u(Ve), _({ ...t, ...i.$attrs }, {
|
|
1889
1889
|
pt: a.value,
|
|
1890
1890
|
"data-cy": "navbar"
|
|
1891
1891
|
}), ae({
|
|
1892
|
-
start:
|
|
1892
|
+
start: v(() => [
|
|
1893
1893
|
m("a", {
|
|
1894
1894
|
href: i.logoUrl,
|
|
1895
1895
|
class: "navbar-brand ms-3",
|
|
1896
1896
|
"data-cy": "logo"
|
|
1897
1897
|
}, [
|
|
1898
|
-
|
|
1899
|
-
l[0] || (l[0] =
|
|
1898
|
+
F(i.$slots, "logo", {}, () => [
|
|
1899
|
+
l[0] || (l[0] = P(" Logo "))
|
|
1900
1900
|
])
|
|
1901
1901
|
], 8, Yt)
|
|
1902
1902
|
]),
|
|
1903
|
-
buttonicon:
|
|
1904
|
-
|
|
1905
|
-
w(u(
|
|
1903
|
+
buttonicon: v(() => [
|
|
1904
|
+
F(i.$slots, "buttonIcon", {}, () => [
|
|
1905
|
+
w(u(j), {
|
|
1906
1906
|
icon: "bi:list",
|
|
1907
1907
|
class: S(t.severity === "light" ? "text-black" : "text-white"),
|
|
1908
1908
|
height: "24",
|
|
@@ -1914,8 +1914,8 @@ const Nt = {
|
|
|
1914
1914
|
}, [
|
|
1915
1915
|
E(i.$slots, (o, n) => ({
|
|
1916
1916
|
name: n,
|
|
1917
|
-
fn:
|
|
1918
|
-
|
|
1917
|
+
fn: v((s) => [
|
|
1918
|
+
F(i.$slots, n, W(G(s)))
|
|
1919
1919
|
])
|
|
1920
1920
|
}))
|
|
1921
1921
|
]), 1040, ["pt"]));
|
|
@@ -1947,8 +1947,8 @@ const Nt = {
|
|
|
1947
1947
|
a.value = a.value.filter((o) => o.id !== l);
|
|
1948
1948
|
};
|
|
1949
1949
|
return (l, o) => {
|
|
1950
|
-
const n =
|
|
1951
|
-
return d(),
|
|
1950
|
+
const n = de, s = q;
|
|
1951
|
+
return d(), f("div", {
|
|
1952
1952
|
class: S(l.orientation === "column" ? "row" : ""),
|
|
1953
1953
|
"data-cy": "multiselect-preview"
|
|
1954
1954
|
}, [
|
|
@@ -1956,7 +1956,7 @@ const Nt = {
|
|
|
1956
1956
|
class: S(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1957
1957
|
"data-cy": "multiselect-container"
|
|
1958
1958
|
}, [
|
|
1959
|
-
w(n,
|
|
1959
|
+
w(n, _({
|
|
1960
1960
|
modelValue: a.value,
|
|
1961
1961
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => a.value = p)
|
|
1962
1962
|
}, { ...l.$attrs }, {
|
|
@@ -1965,12 +1965,12 @@ const Nt = {
|
|
|
1965
1965
|
placeholder: l.multiselectPlaceholder,
|
|
1966
1966
|
"data-cy": "multiselect"
|
|
1967
1967
|
}), {
|
|
1968
|
-
default:
|
|
1969
|
-
(d(!0),
|
|
1968
|
+
default: v(() => [
|
|
1969
|
+
(d(!0), f(A, null, E(l.$slots, (p, c) => F(l.$slots, c, { slot: c })), 256))
|
|
1970
1970
|
]),
|
|
1971
1971
|
_: 3
|
|
1972
1972
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1973
|
-
|
|
1973
|
+
F(l.$slots, "after-multi-select")
|
|
1974
1974
|
], 2),
|
|
1975
1975
|
m("div", {
|
|
1976
1976
|
class: S(l.orientation === "row" ? "col-12" : "col"),
|
|
@@ -1981,13 +1981,13 @@ const Nt = {
|
|
|
1981
1981
|
class: "overflow-auto"
|
|
1982
1982
|
}, [
|
|
1983
1983
|
m("div", Jt, [
|
|
1984
|
-
l.title ? (d(),
|
|
1985
|
-
(d(!0),
|
|
1984
|
+
l.title ? (d(), f("div", Kt, B(l.title), 1)) : z("", !0),
|
|
1985
|
+
(d(!0), f(A, null, E(a.value, (p) => (d(), f("div", {
|
|
1986
1986
|
key: p.id,
|
|
1987
1987
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1988
1988
|
}, [
|
|
1989
|
-
|
|
1990
|
-
m("span", Zt,
|
|
1989
|
+
F(l.$slots, "list-item", { item: p }, () => [
|
|
1990
|
+
m("span", Zt, B(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1991
1991
|
]),
|
|
1992
1992
|
l.canRemoveItemFromPreview ? (d(), y(s, {
|
|
1993
1993
|
key: 0,
|
|
@@ -1995,8 +1995,8 @@ const Nt = {
|
|
|
1995
1995
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1996
1996
|
onClick: (c) => i(p.id)
|
|
1997
1997
|
}, {
|
|
1998
|
-
default:
|
|
1999
|
-
w(u(
|
|
1998
|
+
default: v(() => [
|
|
1999
|
+
w(u(j), {
|
|
2000
2000
|
icon: "bi:x",
|
|
2001
2001
|
class: "close-icon",
|
|
2002
2002
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -2005,7 +2005,7 @@ const Nt = {
|
|
|
2005
2005
|
_: 2
|
|
2006
2006
|
}, 1032, ["onClick"])) : z("", !0)
|
|
2007
2007
|
]))), 128)),
|
|
2008
|
-
a.value == null || a.value.length == 0 ? (d(),
|
|
2008
|
+
a.value == null || a.value.length == 0 ? (d(), f("div", Xt, B(t.optionsPreviewEmptyText), 1)) : z("", !0)
|
|
2009
2009
|
])
|
|
2010
2010
|
], 4)
|
|
2011
2011
|
], 2)
|
|
@@ -2025,10 +2025,10 @@ const Nt = {
|
|
|
2025
2025
|
},
|
|
2026
2026
|
setup(e) {
|
|
2027
2027
|
const t = e;
|
|
2028
|
-
return (a, i) => (d(),
|
|
2029
|
-
m("h3", ta,
|
|
2028
|
+
return (a, i) => (d(), f("div", ea, [
|
|
2029
|
+
m("h3", ta, B(t.title), 1),
|
|
2030
2030
|
m("div", aa, [
|
|
2031
|
-
|
|
2031
|
+
F(a.$slots, "default")
|
|
2032
2032
|
])
|
|
2033
2033
|
]));
|
|
2034
2034
|
}
|
|
@@ -2218,13 +2218,13 @@ const Nt = {
|
|
|
2218
2218
|
}));
|
|
2219
2219
|
return (r, h) => {
|
|
2220
2220
|
const $ = De;
|
|
2221
|
-
return d(),
|
|
2221
|
+
return d(), f(A, null, [
|
|
2222
2222
|
m("div", ia, [
|
|
2223
2223
|
m("span", la, [
|
|
2224
|
-
|
|
2224
|
+
F(r.$slots, "before")
|
|
2225
2225
|
]),
|
|
2226
2226
|
m("div", oa, [
|
|
2227
|
-
w($,
|
|
2227
|
+
w($, _({ ...t, ...r.$attrs }, {
|
|
2228
2228
|
pt: x.value,
|
|
2229
2229
|
modelValue: a.value,
|
|
2230
2230
|
"onUpdate:modelValue": [
|
|
@@ -2234,31 +2234,31 @@ const Nt = {
|
|
|
2234
2234
|
onBlur: h[1] || (h[1] = () => u(n)),
|
|
2235
2235
|
"input-class": { "text-truncate": !0, "datepicker-invalid": c.value, "pe-5": t.showIcon && t.modelValue, "pe-4": (t.showIcon || t.modelValue) && !(t.showIcon && t.modelValue) }
|
|
2236
2236
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2237
|
-
J(w(u(
|
|
2237
|
+
J(w(u(j), {
|
|
2238
2238
|
"data-cy": "icon",
|
|
2239
2239
|
icon: "bi:calendar4",
|
|
2240
2240
|
class: S(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white pe-none", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2241
2241
|
}, null, 8, ["class"]), [
|
|
2242
|
-
[
|
|
2242
|
+
[X, t.showIcon && !t.inline]
|
|
2243
2243
|
]),
|
|
2244
|
-
J(w(u(
|
|
2244
|
+
J(w(u(j), {
|
|
2245
2245
|
"data-cy": "icon",
|
|
2246
2246
|
icon: "bi:x",
|
|
2247
2247
|
onClick: p,
|
|
2248
2248
|
class: S(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2249
2249
|
}, null, 8, ["class"]), [
|
|
2250
|
-
[
|
|
2250
|
+
[X, t.modelValue && !t.inline]
|
|
2251
2251
|
])
|
|
2252
2252
|
]),
|
|
2253
2253
|
m("span", na, [
|
|
2254
|
-
|
|
2254
|
+
F(r.$slots, "after")
|
|
2255
2255
|
])
|
|
2256
2256
|
]),
|
|
2257
2257
|
J(m("small", {
|
|
2258
2258
|
"data-cy": "error",
|
|
2259
2259
|
class: "text-invalid"
|
|
2260
|
-
},
|
|
2261
|
-
[
|
|
2260
|
+
}, B(u(l)), 513), [
|
|
2261
|
+
[X, c.value]
|
|
2262
2262
|
])
|
|
2263
2263
|
], 64);
|
|
2264
2264
|
};
|
|
@@ -2271,9 +2271,9 @@ const Nt = {
|
|
|
2271
2271
|
},
|
|
2272
2272
|
setup(e) {
|
|
2273
2273
|
const t = e, a = T(() => t.maxCount - t.currentCount);
|
|
2274
|
-
return (i, l) => (d(),
|
|
2274
|
+
return (i, l) => (d(), f("div", {
|
|
2275
2275
|
class: S(a.value < 0 ? "text-danger" : "")
|
|
2276
|
-
}, "Remaining characters: " +
|
|
2276
|
+
}, "Remaining characters: " + B(a.value), 3));
|
|
2277
2277
|
}
|
|
2278
2278
|
}), sa = { class: "d-flex justify-content-between" }, dl = /* @__PURE__ */ C({
|
|
2279
2279
|
__name: "ForgeForm",
|
|
@@ -2287,7 +2287,7 @@ const Nt = {
|
|
|
2287
2287
|
hideCancel: { type: Boolean, default: !1 }
|
|
2288
2288
|
},
|
|
2289
2289
|
setup(e) {
|
|
2290
|
-
const t = e, a =
|
|
2290
|
+
const t = e, a = I(!1), i = I({
|
|
2291
2291
|
hasError: !1,
|
|
2292
2292
|
message: ""
|
|
2293
2293
|
});
|
|
@@ -2302,37 +2302,37 @@ const Nt = {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
return (o, n) => {
|
|
2304
2304
|
const s = q;
|
|
2305
|
-
return d(),
|
|
2305
|
+
return d(), f("form", _(o.$attrs, {
|
|
2306
2306
|
novalidate: "",
|
|
2307
2307
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2308
|
-
onSubmit:
|
|
2308
|
+
onSubmit: Q(l, ["prevent"])
|
|
2309
2309
|
}), [
|
|
2310
|
-
o.hideTitle ? z("", !0) : (d(),
|
|
2311
|
-
|
|
2310
|
+
o.hideTitle ? z("", !0) : (d(), f(A, { key: 0 }, [
|
|
2311
|
+
F(o.$slots, "title", {}, () => [
|
|
2312
2312
|
m("h3", {
|
|
2313
2313
|
class: S(o.titleClass),
|
|
2314
2314
|
"data-cy": "form-title"
|
|
2315
|
-
},
|
|
2315
|
+
}, B(o.title), 3)
|
|
2316
2316
|
]),
|
|
2317
2317
|
n[1] || (n[1] = m("hr", null, null, -1))
|
|
2318
2318
|
], 64)),
|
|
2319
|
-
i.value.hasError ? (d(), y(
|
|
2319
|
+
i.value.hasError ? (d(), y(se, {
|
|
2320
2320
|
key: 1,
|
|
2321
2321
|
severity: "danger",
|
|
2322
2322
|
"data-cy": "error"
|
|
2323
2323
|
}, {
|
|
2324
|
-
default:
|
|
2325
|
-
|
|
2324
|
+
default: v(() => [
|
|
2325
|
+
F(o.$slots, "error", {
|
|
2326
2326
|
error: i.value.message
|
|
2327
2327
|
}, () => [
|
|
2328
|
-
|
|
2328
|
+
P(B(i.value.message), 1)
|
|
2329
2329
|
])
|
|
2330
2330
|
]),
|
|
2331
2331
|
_: 3
|
|
2332
2332
|
})) : z("", !0),
|
|
2333
|
-
|
|
2333
|
+
F(o.$slots, "default"),
|
|
2334
2334
|
m("div", sa, [
|
|
2335
|
-
|
|
2335
|
+
F(o.$slots, "cancel", {}, () => [
|
|
2336
2336
|
o.hideCancel ? z("", !0) : (d(), y(s, {
|
|
2337
2337
|
key: 0,
|
|
2338
2338
|
"data-cy": "cancel-btn",
|
|
@@ -2341,21 +2341,21 @@ const Nt = {
|
|
|
2341
2341
|
outlined: "",
|
|
2342
2342
|
onClick: n[0] || (n[0] = (p) => o.$emit("cancel"))
|
|
2343
2343
|
}, {
|
|
2344
|
-
default:
|
|
2345
|
-
|
|
2344
|
+
default: v(() => [
|
|
2345
|
+
P(B(o.cancelText), 1)
|
|
2346
2346
|
]),
|
|
2347
2347
|
_: 1
|
|
2348
2348
|
}))
|
|
2349
2349
|
]),
|
|
2350
|
-
|
|
2350
|
+
F(o.$slots, "submit", { submit: l }, () => [
|
|
2351
2351
|
w(s, {
|
|
2352
2352
|
"data-cy": "submit-btn",
|
|
2353
2353
|
type: "submit",
|
|
2354
2354
|
severity: "primary",
|
|
2355
2355
|
class: "ms-auto"
|
|
2356
2356
|
}, {
|
|
2357
|
-
default:
|
|
2358
|
-
|
|
2357
|
+
default: v(() => [
|
|
2358
|
+
P(B(o.submitText), 1)
|
|
2359
2359
|
]),
|
|
2360
2360
|
_: 1
|
|
2361
2361
|
})
|
|
@@ -2396,11 +2396,11 @@ const Nt = {
|
|
|
2396
2396
|
}, { errors: l, value: o, errorMessage: n, handleChange: s, handleBlur: p } = ne(() => a.name, void 0, {
|
|
2397
2397
|
initialValue: t.value
|
|
2398
2398
|
}), c = T(() => l.value.length > 0);
|
|
2399
|
-
return
|
|
2399
|
+
return K(() => o.value, (x) => {
|
|
2400
2400
|
t.value = x;
|
|
2401
2401
|
}, { immediate: !0 }), (x, r) => {
|
|
2402
|
-
const h = Ne, $ = Oe, D =
|
|
2403
|
-
return a.type === "checkbox" ? (d(), y(ye,
|
|
2402
|
+
const h = Ne, $ = Oe, D = re, O = ie, U = de, b = xe;
|
|
2403
|
+
return a.type === "checkbox" ? (d(), y(ye, _({
|
|
2404
2404
|
key: 0,
|
|
2405
2405
|
id: a.name,
|
|
2406
2406
|
label: a.fieldLabel
|
|
@@ -2408,7 +2408,7 @@ const Nt = {
|
|
|
2408
2408
|
name: a.name,
|
|
2409
2409
|
modelValue: t.value,
|
|
2410
2410
|
"onUpdate:modelValue": r[0] || (r[0] = (k) => t.value = k)
|
|
2411
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(),
|
|
2411
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), f("div", ra, [
|
|
2412
2412
|
m("div", {
|
|
2413
2413
|
"data-cy": "input-wrapper",
|
|
2414
2414
|
class: S(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2417,11 +2417,11 @@ const Nt = {
|
|
|
2417
2417
|
for: a.name,
|
|
2418
2418
|
class: S(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2419
2419
|
}, [
|
|
2420
|
-
|
|
2421
|
-
x.required ? (d(),
|
|
2420
|
+
P(B(a.fieldLabel) + " ", 1),
|
|
2421
|
+
x.required ? (d(), f("span", pa, "*")) : z("", !0)
|
|
2422
2422
|
], 10, da),
|
|
2423
|
-
|
|
2424
|
-
a.type === "number" ? (d(), y(u(fe),
|
|
2423
|
+
F(x.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2424
|
+
a.type === "number" ? (d(), y(u(fe), _({
|
|
2425
2425
|
key: 0,
|
|
2426
2426
|
id: a.name
|
|
2427
2427
|
}, x.$attrs, {
|
|
@@ -2431,7 +2431,7 @@ const Nt = {
|
|
|
2431
2431
|
onInput: i,
|
|
2432
2432
|
modelValue: t.value,
|
|
2433
2433
|
"onUpdate:modelValue": r[1] || (r[1] = (k) => t.value = k)
|
|
2434
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), y(h,
|
|
2434
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), y(h, _({
|
|
2435
2435
|
key: 1,
|
|
2436
2436
|
id: a.name
|
|
2437
2437
|
}, x.$attrs, {
|
|
@@ -2441,7 +2441,7 @@ const Nt = {
|
|
|
2441
2441
|
"onUpdate:modelValue": r[2] || (r[2] = (k) => t.value = k),
|
|
2442
2442
|
onInput: i,
|
|
2443
2443
|
onBlur: u(p)
|
|
2444
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), y($,
|
|
2444
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), y($, _({
|
|
2445
2445
|
key: 2,
|
|
2446
2446
|
id: a.name
|
|
2447
2447
|
}, x.$attrs, {
|
|
@@ -2452,7 +2452,7 @@ const Nt = {
|
|
|
2452
2452
|
"onUpdate:modelValue": r[3] || (r[3] = (k) => t.value = k),
|
|
2453
2453
|
onComplete: i,
|
|
2454
2454
|
onBlur: u(p)
|
|
2455
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), y(D,
|
|
2455
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), y(D, _({
|
|
2456
2456
|
key: 3,
|
|
2457
2457
|
id: a.name
|
|
2458
2458
|
}, x.$attrs, {
|
|
@@ -2462,19 +2462,19 @@ const Nt = {
|
|
|
2462
2462
|
"onUpdate:modelValue": r[4] || (r[4] = (k) => t.value = k),
|
|
2463
2463
|
onInput: i,
|
|
2464
2464
|
onBlur: u(p)
|
|
2465
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), y(O,
|
|
2465
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), y(O, _({ key: 4 }, { ...a, ...x.$attrs }, {
|
|
2466
2466
|
modelValue: t.value,
|
|
2467
2467
|
"onUpdate:modelValue": r[5] || (r[5] = (k) => t.value = k),
|
|
2468
2468
|
class: { "is-invalid": c.value }
|
|
2469
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), y(U,
|
|
2469
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), y(U, _({ key: 5 }, { ...a, ...x.$attrs }, {
|
|
2470
2470
|
modelValue: t.value,
|
|
2471
2471
|
"onUpdate:modelValue": r[6] || (r[6] = (k) => t.value = k),
|
|
2472
2472
|
class: { "is-invalid": c.value }
|
|
2473
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), y(Qt,
|
|
2473
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), y(Qt, _({ key: 6 }, { ...a, ...x.$attrs }, {
|
|
2474
2474
|
modelValue: t.value,
|
|
2475
2475
|
"onUpdate:modelValue": r[7] || (r[7] = (k) => t.value = k),
|
|
2476
2476
|
class: { "is-invalid": c.value }
|
|
2477
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), y(b,
|
|
2477
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), y(b, _({ key: 7 }, { ...a, ...x.$attrs }, {
|
|
2478
2478
|
modelValue: t.value,
|
|
2479
2479
|
"onUpdate:modelValue": r[8] || (r[8] = (k) => t.value = k),
|
|
2480
2480
|
class: { "is-invalid": c.value }
|
|
@@ -2484,8 +2484,8 @@ const Nt = {
|
|
|
2484
2484
|
J(m("small", {
|
|
2485
2485
|
"data-cy": "error",
|
|
2486
2486
|
class: "invalid-feedback"
|
|
2487
|
-
},
|
|
2488
|
-
[
|
|
2487
|
+
}, B(u(n)), 513), [
|
|
2488
|
+
[X, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2489
2489
|
])
|
|
2490
2490
|
]));
|
|
2491
2491
|
};
|
|
@@ -2526,9 +2526,9 @@ const Nt = {
|
|
|
2526
2526
|
}));
|
|
2527
2527
|
return (i, l) => {
|
|
2528
2528
|
const o = Ae;
|
|
2529
|
-
return d(), y(o,
|
|
2530
|
-
default:
|
|
2531
|
-
(d(!0),
|
|
2529
|
+
return d(), y(o, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2530
|
+
default: v(() => [
|
|
2531
|
+
(d(!0), f(A, null, E(i.$slots, (n, s) => F(i.$slots, s, { slot: s })), 256))
|
|
2532
2532
|
]),
|
|
2533
2533
|
_: 3
|
|
2534
2534
|
}, 16, ["pt"]);
|
|
@@ -2581,9 +2581,9 @@ const Nt = {
|
|
|
2581
2581
|
}));
|
|
2582
2582
|
return (n, s) => {
|
|
2583
2583
|
const p = Ee;
|
|
2584
|
-
return d(), y(p,
|
|
2585
|
-
default:
|
|
2586
|
-
|
|
2584
|
+
return d(), y(p, _({ ...n.$attrs, ...t }, { pt: o.value }), {
|
|
2585
|
+
default: v(() => [
|
|
2586
|
+
F(n.$slots, "default")
|
|
2587
2587
|
]),
|
|
2588
2588
|
_: 3
|
|
2589
2589
|
}, 16, ["pt"]);
|
|
@@ -2993,7 +2993,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
2993
2993
|
},
|
|
2994
2994
|
emits: ["save"],
|
|
2995
2995
|
setup(e, { emit: t }) {
|
|
2996
|
-
const a = e, i = t, l = ze("drawingCanvas"), o =
|
|
2996
|
+
const a = e, i = t, l = ze("drawingCanvas"), o = I(), n = () => {
|
|
2997
2997
|
l == null || l.value.reset();
|
|
2998
2998
|
}, s = () => {
|
|
2999
2999
|
l == null || l.value.redo();
|
|
@@ -3004,8 +3004,8 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3004
3004
|
};
|
|
3005
3005
|
return (x, r) => {
|
|
3006
3006
|
const h = q;
|
|
3007
|
-
return d(),
|
|
3008
|
-
w(u(ca),
|
|
3007
|
+
return d(), f("div", ua, [
|
|
3008
|
+
w(u(ca), _({
|
|
3009
3009
|
ref_key: "drawingCanvas",
|
|
3010
3010
|
ref: l,
|
|
3011
3011
|
image: o.value,
|
|
@@ -3025,10 +3025,11 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3025
3025
|
outlined: "",
|
|
3026
3026
|
"data-cy": "undo-button"
|
|
3027
3027
|
}, {
|
|
3028
|
-
default:
|
|
3029
|
-
|
|
3028
|
+
default: v(() => r[1] || (r[1] = [
|
|
3029
|
+
P("Undo")
|
|
3030
3030
|
])),
|
|
3031
|
-
_: 1
|
|
3031
|
+
_: 1,
|
|
3032
|
+
__: [1]
|
|
3032
3033
|
})) : z("", !0),
|
|
3033
3034
|
a.showRedo ? (d(), y(h, {
|
|
3034
3035
|
key: 1,
|
|
@@ -3036,10 +3037,11 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3036
3037
|
outlined: "",
|
|
3037
3038
|
"data-cy": "redo-button"
|
|
3038
3039
|
}, {
|
|
3039
|
-
default:
|
|
3040
|
-
|
|
3040
|
+
default: v(() => r[2] || (r[2] = [
|
|
3041
|
+
P("Redo")
|
|
3041
3042
|
])),
|
|
3042
|
-
_: 1
|
|
3043
|
+
_: 1,
|
|
3044
|
+
__: [2]
|
|
3043
3045
|
})) : z("", !0),
|
|
3044
3046
|
a.showClear ? (d(), y(h, {
|
|
3045
3047
|
key: 2,
|
|
@@ -3047,10 +3049,11 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3047
3049
|
outlined: "",
|
|
3048
3050
|
"data-cy": "clear-button"
|
|
3049
3051
|
}, {
|
|
3050
|
-
default:
|
|
3051
|
-
|
|
3052
|
+
default: v(() => r[3] || (r[3] = [
|
|
3053
|
+
P("Clear")
|
|
3052
3054
|
])),
|
|
3053
|
-
_: 1
|
|
3055
|
+
_: 1,
|
|
3056
|
+
__: [3]
|
|
3054
3057
|
})) : z("", !0),
|
|
3055
3058
|
a.showSave ? (d(), y(h, {
|
|
3056
3059
|
key: 3,
|
|
@@ -3058,10 +3061,11 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3058
3061
|
class: "ms-auto",
|
|
3059
3062
|
"data-cy": "save-button"
|
|
3060
3063
|
}, {
|
|
3061
|
-
default:
|
|
3062
|
-
|
|
3064
|
+
default: v(() => r[4] || (r[4] = [
|
|
3065
|
+
P("Save")
|
|
3063
3066
|
])),
|
|
3064
|
-
_: 1
|
|
3067
|
+
_: 1,
|
|
3068
|
+
__: [4]
|
|
3065
3069
|
})) : z("", !0)
|
|
3066
3070
|
])
|
|
3067
3071
|
]);
|
|
@@ -3075,11 +3079,11 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3075
3079
|
},
|
|
3076
3080
|
setup(e) {
|
|
3077
3081
|
const t = e;
|
|
3078
|
-
return (a, i) => (d(),
|
|
3082
|
+
return (a, i) => (d(), f("div", _(a.$attrs, {
|
|
3079
3083
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3080
3084
|
}), [
|
|
3081
3085
|
m("span", va, [
|
|
3082
|
-
|
|
3086
|
+
F(a.$slots, "default")
|
|
3083
3087
|
])
|
|
3084
3088
|
], 16));
|
|
3085
3089
|
}
|
|
@@ -3131,17 +3135,17 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3131
3135
|
})
|
|
3132
3136
|
}));
|
|
3133
3137
|
return (i, l) => (d(), y(u(qe), { value: i.currentStep }, {
|
|
3134
|
-
default:
|
|
3138
|
+
default: v(() => [
|
|
3135
3139
|
w(u(Le), null, {
|
|
3136
|
-
default:
|
|
3137
|
-
(d(!0),
|
|
3140
|
+
default: v(() => [
|
|
3141
|
+
(d(!0), f(A, null, E(i.steps, (o) => (d(), y(u(Ue), _({
|
|
3138
3142
|
key: o.value,
|
|
3139
3143
|
value: o.value,
|
|
3140
3144
|
disabled: o.disabled,
|
|
3141
3145
|
ref_for: !0
|
|
3142
3146
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
3143
|
-
default:
|
|
3144
|
-
i.showStepLabel ? (d(),
|
|
3147
|
+
default: v(() => [
|
|
3148
|
+
i.showStepLabel ? (d(), f("div", fa, B(o.label), 1)) : z("", !0)
|
|
3145
3149
|
]),
|
|
3146
3150
|
_: 2
|
|
3147
3151
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -3149,13 +3153,13 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3149
3153
|
_: 1
|
|
3150
3154
|
}),
|
|
3151
3155
|
w(u(He), null, {
|
|
3152
|
-
default:
|
|
3153
|
-
(d(!0),
|
|
3156
|
+
default: v(() => [
|
|
3157
|
+
(d(!0), f(A, null, E(i.steps, (o) => (d(), y(u(Re), {
|
|
3154
3158
|
key: o.value,
|
|
3155
3159
|
value: o.value
|
|
3156
3160
|
}, {
|
|
3157
|
-
default:
|
|
3158
|
-
|
|
3161
|
+
default: v(() => [
|
|
3162
|
+
F(i.$slots, "step" + o.value)
|
|
3159
3163
|
]),
|
|
3160
3164
|
_: 2
|
|
3161
3165
|
}, 1032, ["value"]))), 128))
|
|
@@ -3185,22 +3189,22 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3185
3189
|
unstyled: "",
|
|
3186
3190
|
"data-cy": "button-tile"
|
|
3187
3191
|
}, {
|
|
3188
|
-
default:
|
|
3192
|
+
default: v(() => [
|
|
3189
3193
|
m("div", ga, [
|
|
3190
|
-
|
|
3191
|
-
o[0] || (o[0] =
|
|
3194
|
+
F(l.$slots, "default", {}, () => [
|
|
3195
|
+
o[0] || (o[0] = P("Tile Content"))
|
|
3192
3196
|
])
|
|
3193
3197
|
])
|
|
3194
3198
|
]),
|
|
3195
3199
|
_: 3
|
|
3196
|
-
}, 8, ["severity", "class"])) : (d(),
|
|
3200
|
+
}, 8, ["severity", "class"])) : (d(), f("div", {
|
|
3197
3201
|
key: 1,
|
|
3198
3202
|
class: S(["d-flex w-100", i.value]),
|
|
3199
3203
|
"data-cy": "tile"
|
|
3200
3204
|
}, [
|
|
3201
3205
|
m("div", ba, [
|
|
3202
|
-
|
|
3203
|
-
o[1] || (o[1] =
|
|
3206
|
+
F(l.$slots, "default", {}, () => [
|
|
3207
|
+
o[1] || (o[1] = P("Tile Content"))
|
|
3204
3208
|
])
|
|
3205
3209
|
])
|
|
3206
3210
|
], 2));
|
|
@@ -3231,8 +3235,8 @@ const ya = {
|
|
|
3231
3235
|
const n = Math.ceil(i.total / i.perPage);
|
|
3232
3236
|
return `${n} ${ee(n, "page")}`;
|
|
3233
3237
|
});
|
|
3234
|
-
return (n, s) => (d(),
|
|
3235
|
-
s[2] || (s[2] =
|
|
3238
|
+
return (n, s) => (d(), f("div", ya, [
|
|
3239
|
+
s[2] || (s[2] = P(" Number of results per page ")),
|
|
3236
3240
|
m("div", xa, [
|
|
3237
3241
|
w(u(ie), {
|
|
3238
3242
|
options: i.pageSizes,
|
|
@@ -3242,13 +3246,13 @@ const ya = {
|
|
|
3242
3246
|
"data-cy": "pagination-page-size-select"
|
|
3243
3247
|
}, null, 8, ["options", "model-value"])
|
|
3244
3248
|
]),
|
|
3245
|
-
i.total ? (d(),
|
|
3249
|
+
i.total ? (d(), f("div", ha, [
|
|
3246
3250
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3247
|
-
m("span", wa,
|
|
3251
|
+
m("span", wa, B(i.total) + " " + B(u(ee)(i.total, "result")) + " across " + B(o.value), 1)
|
|
3248
3252
|
])) : z("", !0)
|
|
3249
3253
|
]));
|
|
3250
3254
|
}
|
|
3251
|
-
}), ka = { class: "position-relative" }, $a = { "data-cy": "above-table-slot" },
|
|
3255
|
+
}), ka = { class: "position-relative" }, $a = { "data-cy": "above-table-slot" }, Fa = { class: "d-flex w-100" }, Ba = {
|
|
3252
3256
|
class: "mx-auto",
|
|
3253
3257
|
"data-cy": "empty-message"
|
|
3254
3258
|
}, Sa = { class: "d-flex" }, Ca = { class: "d-flex align-items-end mb-2" }, za = { key: 0 }, Ta = { class: "ms-auto" }, bl = /* @__PURE__ */ C({
|
|
@@ -3338,7 +3342,7 @@ const ya = {
|
|
|
3338
3342
|
},
|
|
3339
3343
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3340
3344
|
setup(e, { emit: t }) {
|
|
3341
|
-
const a = t, i = e, l =
|
|
3345
|
+
const a = t, i = e, l = I(), o = I([5, 10, 20, 50, 100]), n = I(i.perPage ?? 10), s = I({
|
|
3342
3346
|
filters: i.filters,
|
|
3343
3347
|
perPage: n.value,
|
|
3344
3348
|
page: 0,
|
|
@@ -3346,7 +3350,7 @@ const ya = {
|
|
|
3346
3350
|
sortField: "",
|
|
3347
3351
|
total: i.totalRecords ?? i.value.length
|
|
3348
3352
|
});
|
|
3349
|
-
|
|
3353
|
+
K(() => i.perPage, (b) => {
|
|
3350
3354
|
b && (n.value = b, s.value.perPage = b);
|
|
3351
3355
|
});
|
|
3352
3356
|
const p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
|
|
@@ -3394,13 +3398,13 @@ const ya = {
|
|
|
3394
3398
|
}, U = () => {
|
|
3395
3399
|
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3396
3400
|
};
|
|
3397
|
-
return
|
|
3401
|
+
return K(() => i.filters, (b) => {
|
|
3398
3402
|
s.value.filters = b, a("update:tableContext", s.value);
|
|
3399
|
-
}, { deep: !0 }), oe(() => a("update:tableContext", s.value)), (b, k) => (d(),
|
|
3403
|
+
}, { deep: !0 }), oe(() => a("update:tableContext", s.value)), (b, k) => (d(), f("div", ka, [
|
|
3400
3404
|
m("span", $a, [
|
|
3401
|
-
|
|
3405
|
+
F(b.$slots, "above-table")
|
|
3402
3406
|
]),
|
|
3403
|
-
w(u(We),
|
|
3407
|
+
w(u(We), _({
|
|
3404
3408
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3405
3409
|
}, { ...i, ...b.$attrs }, {
|
|
3406
3410
|
pt: x.value,
|
|
@@ -3415,24 +3419,24 @@ const ya = {
|
|
|
3415
3419
|
onPage: O,
|
|
3416
3420
|
showHeaders: ""
|
|
3417
3421
|
}), ae({
|
|
3418
|
-
empty:
|
|
3419
|
-
m("div",
|
|
3420
|
-
m("h5",
|
|
3422
|
+
empty: v(() => [
|
|
3423
|
+
m("div", Fa, [
|
|
3424
|
+
m("h5", Ba, B(b.emptyMessage ?? "No items Found."), 1)
|
|
3421
3425
|
])
|
|
3422
3426
|
]),
|
|
3423
|
-
header:
|
|
3427
|
+
header: v(() => [
|
|
3424
3428
|
m("div", {
|
|
3425
3429
|
class: S(i.loading ? "opacity-50" : "")
|
|
3426
3430
|
}, [
|
|
3427
3431
|
m("div", Sa, [
|
|
3428
3432
|
m("div", Ca, [
|
|
3429
|
-
b.paginator && !b.legacyPaginationFooter ? (d(),
|
|
3433
|
+
b.paginator && !b.legacyPaginationFooter ? (d(), f("span", za, [
|
|
3430
3434
|
w(he, {
|
|
3431
3435
|
total: p.value,
|
|
3432
3436
|
"page-sizes": o.value,
|
|
3433
3437
|
"per-page": n.value,
|
|
3434
3438
|
"onUpdate:perPage": [
|
|
3435
|
-
k[0] || (k[0] = (
|
|
3439
|
+
k[0] || (k[0] = (M) => n.value = M),
|
|
3436
3440
|
U
|
|
3437
3441
|
]
|
|
3438
3442
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
@@ -3446,15 +3450,16 @@ const ya = {
|
|
|
3446
3450
|
onClick: r,
|
|
3447
3451
|
"data-cy": "clear-all"
|
|
3448
3452
|
}, {
|
|
3449
|
-
default:
|
|
3450
|
-
w(u(
|
|
3453
|
+
default: v(() => [
|
|
3454
|
+
w(u(j), {
|
|
3451
3455
|
icon: "bi:funnel-fill",
|
|
3452
3456
|
width: "24",
|
|
3453
3457
|
height: "24"
|
|
3454
3458
|
}),
|
|
3455
|
-
k[2] || (k[2] =
|
|
3459
|
+
k[2] || (k[2] = P(" Clear "))
|
|
3456
3460
|
]),
|
|
3457
|
-
_: 1
|
|
3461
|
+
_: 1,
|
|
3462
|
+
__: [2]
|
|
3458
3463
|
}, 8, ["class"])) : z("", !0),
|
|
3459
3464
|
b.showExporterButton ? (d(), y(u(q), {
|
|
3460
3465
|
key: 1,
|
|
@@ -3462,35 +3467,36 @@ const ya = {
|
|
|
3462
3467
|
onClick: h,
|
|
3463
3468
|
"data-cy": "exporter"
|
|
3464
3469
|
}, {
|
|
3465
|
-
default:
|
|
3466
|
-
w(u(
|
|
3470
|
+
default: v(() => [
|
|
3471
|
+
w(u(j), {
|
|
3467
3472
|
icon: "typcn:export",
|
|
3468
3473
|
width: "24",
|
|
3469
3474
|
height: "24"
|
|
3470
3475
|
}),
|
|
3471
|
-
k[3] || (k[3] =
|
|
3476
|
+
k[3] || (k[3] = P(" Export "))
|
|
3472
3477
|
]),
|
|
3473
|
-
_: 1
|
|
3478
|
+
_: 1,
|
|
3479
|
+
__: [3]
|
|
3474
3480
|
})) : z("", !0),
|
|
3475
|
-
|
|
3481
|
+
F(b.$slots, "column-customiser")
|
|
3476
3482
|
])
|
|
3477
3483
|
])
|
|
3478
3484
|
], 2)
|
|
3479
3485
|
]),
|
|
3480
|
-
default:
|
|
3481
|
-
|
|
3486
|
+
default: v(() => [
|
|
3487
|
+
F(b.$slots, "default")
|
|
3482
3488
|
]),
|
|
3483
3489
|
_: 2
|
|
3484
3490
|
}, [
|
|
3485
|
-
E(b.$slots, (
|
|
3491
|
+
E(b.$slots, (M, g) => ({
|
|
3486
3492
|
name: g,
|
|
3487
|
-
fn:
|
|
3488
|
-
|
|
3493
|
+
fn: v((V) => [
|
|
3494
|
+
F(b.$slots, g, W(G(V || {})))
|
|
3489
3495
|
])
|
|
3490
3496
|
})),
|
|
3491
3497
|
b.legacyPaginationFooter ? {
|
|
3492
3498
|
name: "paginatorstart",
|
|
3493
|
-
fn:
|
|
3499
|
+
fn: v(() => [
|
|
3494
3500
|
m("span", {
|
|
3495
3501
|
class: S(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3496
3502
|
"data-cy": "legacy-page-size"
|
|
@@ -3499,7 +3505,7 @@ const ya = {
|
|
|
3499
3505
|
w(u(ie), {
|
|
3500
3506
|
options: o.value,
|
|
3501
3507
|
modelValue: n.value,
|
|
3502
|
-
"onUpdate:modelValue": k[1] || (k[1] = (
|
|
3508
|
+
"onUpdate:modelValue": k[1] || (k[1] = (M) => n.value = M),
|
|
3503
3509
|
class: "ms-2",
|
|
3504
3510
|
onClick: U
|
|
3505
3511
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -3509,18 +3515,18 @@ const ya = {
|
|
|
3509
3515
|
} : void 0,
|
|
3510
3516
|
b.legacyPaginationFooter ? {
|
|
3511
3517
|
name: "paginatorend",
|
|
3512
|
-
fn:
|
|
3518
|
+
fn: v(() => [
|
|
3513
3519
|
m("span", {
|
|
3514
3520
|
"data-cy": "legacy-total",
|
|
3515
3521
|
class: S(i.loading ? "opacity-50" : "")
|
|
3516
|
-
},
|
|
3522
|
+
}, B(p.value) + " " + B(u(ee)(p.value, "result")) + " across " + B(c.value), 3)
|
|
3517
3523
|
]),
|
|
3518
3524
|
key: "1"
|
|
3519
3525
|
} : void 0
|
|
3520
3526
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3521
3527
|
]));
|
|
3522
3528
|
}
|
|
3523
|
-
}),
|
|
3529
|
+
}), _a = { class: "position-relative" }, ja = { "data-cy": "above-table-slot" }, Ia = { class: "d-flex w-100" }, Pa = {
|
|
3524
3530
|
class: "mx-auto",
|
|
3525
3531
|
"data-cy": "empty-message"
|
|
3526
3532
|
}, Ma = { class: "d-flex" }, Va = { class: "d-flex align-items-end mb-2" }, Da = { key: 0 }, Oa = { class: "ms-auto" }, yl = /* @__PURE__ */ C({
|
|
@@ -3584,7 +3590,7 @@ const ya = {
|
|
|
3584
3590
|
},
|
|
3585
3591
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3586
3592
|
setup(e, { emit: t }) {
|
|
3587
|
-
const a = e, i = t, l =
|
|
3593
|
+
const a = e, i = t, l = I([5, 10, 20, 50, 100]), o = I(10), n = I(0), s = I(0), p = I({
|
|
3588
3594
|
filters: a.filters,
|
|
3589
3595
|
perPage: o.value,
|
|
3590
3596
|
page: 0,
|
|
@@ -3629,7 +3635,7 @@ const ya = {
|
|
|
3629
3635
|
}
|
|
3630
3636
|
]
|
|
3631
3637
|
}));
|
|
3632
|
-
|
|
3638
|
+
K(() => a.parentExpanderFullRow, (g) => {
|
|
3633
3639
|
g ? h() : $();
|
|
3634
3640
|
});
|
|
3635
3641
|
const h = () => {
|
|
@@ -3677,25 +3683,25 @@ const ya = {
|
|
|
3677
3683
|
}, U = (g) => {
|
|
3678
3684
|
p.value.filters = g, i("update:tableContext", p.value), i("update:filters", g), h();
|
|
3679
3685
|
}, b = (g) => {
|
|
3680
|
-
p.value.page = s.value = g.page,
|
|
3686
|
+
p.value.page = s.value = g.page, M(), i("update:tableContext", p.value), i("page", g), h();
|
|
3681
3687
|
}, k = () => {
|
|
3682
|
-
p.value.perPage = o.value, s.value = 0, p.value.page = s.value = Math.floor(n.value / o.value),
|
|
3688
|
+
p.value.perPage = o.value, s.value = 0, p.value.page = s.value = Math.floor(n.value / o.value), M(), i("update:tableContext", p.value), h();
|
|
3683
3689
|
};
|
|
3684
|
-
|
|
3690
|
+
K(() => a.filters, (g) => {
|
|
3685
3691
|
p.value.filters = g, i("update:tableContext", p.value);
|
|
3686
|
-
}, { deep: !0 }),
|
|
3692
|
+
}, { deep: !0 }), K(() => a.value, () => {
|
|
3687
3693
|
h();
|
|
3688
3694
|
}), oe(() => {
|
|
3689
3695
|
h(), i("update:tableContext", p.value);
|
|
3690
3696
|
});
|
|
3691
|
-
const
|
|
3697
|
+
const M = () => {
|
|
3692
3698
|
n.value = s.value * o.value;
|
|
3693
3699
|
};
|
|
3694
|
-
return (g, V) => (d(),
|
|
3695
|
-
m("span",
|
|
3696
|
-
|
|
3700
|
+
return (g, V) => (d(), f("div", _a, [
|
|
3701
|
+
m("span", ja, [
|
|
3702
|
+
F(g.$slots, "above-table")
|
|
3697
3703
|
]),
|
|
3698
|
-
w(u(Ge),
|
|
3704
|
+
w(u(Ge), _({
|
|
3699
3705
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3700
3706
|
}, { ...a, ...g.$attrs }, {
|
|
3701
3707
|
pt: r.value,
|
|
@@ -3709,18 +3715,18 @@ const ya = {
|
|
|
3709
3715
|
showHeaders: "",
|
|
3710
3716
|
first: n.value
|
|
3711
3717
|
}), ae({
|
|
3712
|
-
empty:
|
|
3713
|
-
m("div",
|
|
3714
|
-
m("h5",
|
|
3718
|
+
empty: v(() => [
|
|
3719
|
+
m("div", Ia, [
|
|
3720
|
+
m("h5", Pa, B(g.emptyMessage ?? "No items Found."), 1)
|
|
3715
3721
|
])
|
|
3716
3722
|
]),
|
|
3717
|
-
header:
|
|
3723
|
+
header: v(() => [
|
|
3718
3724
|
m("div", {
|
|
3719
3725
|
class: S(a.loading ? "opacity-50" : "")
|
|
3720
3726
|
}, [
|
|
3721
3727
|
m("div", Ma, [
|
|
3722
3728
|
m("div", Va, [
|
|
3723
|
-
g.paginator && !g.legacyPaginationFooter ? (d(),
|
|
3729
|
+
g.paginator && !g.legacyPaginationFooter ? (d(), f("span", Da, [
|
|
3724
3730
|
w(he, {
|
|
3725
3731
|
total: c.value,
|
|
3726
3732
|
"page-sizes": l.value,
|
|
@@ -3739,35 +3745,36 @@ const ya = {
|
|
|
3739
3745
|
onClick: D,
|
|
3740
3746
|
"data-cy": "clear-all"
|
|
3741
3747
|
}, {
|
|
3742
|
-
default:
|
|
3743
|
-
w(u(
|
|
3748
|
+
default: v(() => [
|
|
3749
|
+
w(u(j), {
|
|
3744
3750
|
icon: "bi:funnel-fill",
|
|
3745
3751
|
width: "24",
|
|
3746
3752
|
height: "24"
|
|
3747
3753
|
}),
|
|
3748
|
-
V[3] || (V[3] =
|
|
3754
|
+
V[3] || (V[3] = P(" Clear "))
|
|
3749
3755
|
]),
|
|
3750
|
-
_: 1
|
|
3756
|
+
_: 1,
|
|
3757
|
+
__: [3]
|
|
3751
3758
|
})) : z("", !0),
|
|
3752
|
-
|
|
3759
|
+
F(g.$slots, "column-customiser")
|
|
3753
3760
|
])
|
|
3754
3761
|
])
|
|
3755
3762
|
], 2)
|
|
3756
3763
|
]),
|
|
3757
|
-
default:
|
|
3758
|
-
|
|
3764
|
+
default: v(() => [
|
|
3765
|
+
F(g.$slots, "default")
|
|
3759
3766
|
]),
|
|
3760
3767
|
_: 2
|
|
3761
3768
|
}, [
|
|
3762
3769
|
E(g.$slots, (L, ve) => ({
|
|
3763
3770
|
name: ve,
|
|
3764
|
-
fn:
|
|
3765
|
-
|
|
3771
|
+
fn: v(($e) => [
|
|
3772
|
+
F(g.$slots, ve, W(G($e || {})))
|
|
3766
3773
|
])
|
|
3767
3774
|
})),
|
|
3768
3775
|
g.legacyPaginationFooter ? {
|
|
3769
3776
|
name: "paginatorstart",
|
|
3770
|
-
fn:
|
|
3777
|
+
fn: v(() => [
|
|
3771
3778
|
m("span", {
|
|
3772
3779
|
class: S(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
3773
3780
|
"data-cy": "legacy-page-size"
|
|
@@ -3786,11 +3793,11 @@ const ya = {
|
|
|
3786
3793
|
} : void 0,
|
|
3787
3794
|
g.legacyPaginationFooter ? {
|
|
3788
3795
|
name: "paginatorend",
|
|
3789
|
-
fn:
|
|
3796
|
+
fn: v(() => [
|
|
3790
3797
|
m("span", {
|
|
3791
3798
|
"data-cy": "legacy-total",
|
|
3792
3799
|
class: S(a.loading ? "opacity-50" : "")
|
|
3793
|
-
},
|
|
3800
|
+
}, B(c.value) + " " + B(u(ee)(c.value, "result")) + " across " + B(x.value), 3)
|
|
3794
3801
|
]),
|
|
3795
3802
|
key: "1"
|
|
3796
3803
|
} : void 0
|
|
@@ -3828,20 +3835,20 @@ const ya = {
|
|
|
3828
3835
|
};
|
|
3829
3836
|
return (l, o) => {
|
|
3830
3837
|
const n = fe, s = q;
|
|
3831
|
-
return d(),
|
|
3832
|
-
l.dataType === "numeric" ? (d(), y(n,
|
|
3838
|
+
return d(), f("div", Na, [
|
|
3839
|
+
l.dataType === "numeric" ? (d(), y(n, _({
|
|
3833
3840
|
key: 0,
|
|
3834
3841
|
modelValue: t.value,
|
|
3835
3842
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => t.value = p),
|
|
3836
3843
|
modelModifiers: { trim: !0 }
|
|
3837
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), y(xe,
|
|
3844
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), y(xe, _({
|
|
3838
3845
|
key: 1,
|
|
3839
3846
|
modelValue: t.value,
|
|
3840
3847
|
"onUpdate:modelValue": o[1] || (o[1] = (p) => t.value = p)
|
|
3841
3848
|
}, l.$attrs, {
|
|
3842
3849
|
"show-icon": !1,
|
|
3843
3850
|
"show-on-focus": !0
|
|
3844
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), y(u(ie),
|
|
3851
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), y(u(ie), _({
|
|
3845
3852
|
key: 2,
|
|
3846
3853
|
modelValue: t.value,
|
|
3847
3854
|
"onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p)
|
|
@@ -3850,19 +3857,19 @@ const ya = {
|
|
|
3850
3857
|
"option-value": l.optionValue,
|
|
3851
3858
|
"option-label": l.optionLabel
|
|
3852
3859
|
}), {
|
|
3853
|
-
value:
|
|
3860
|
+
value: v(({ value: p, placeholder: c }) => [
|
|
3854
3861
|
m("div", Aa, [
|
|
3855
3862
|
m("span", {
|
|
3856
3863
|
class: S({ "filter-placeholder": p === null })
|
|
3857
|
-
},
|
|
3864
|
+
}, B(a(p, c)), 3),
|
|
3858
3865
|
l.showClearButton && t.value !== null ? (d(), y(s, {
|
|
3859
3866
|
key: 0,
|
|
3860
|
-
onClick:
|
|
3867
|
+
onClick: Q(i, ["prevent"]),
|
|
3861
3868
|
size: "small",
|
|
3862
3869
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3863
3870
|
}, {
|
|
3864
|
-
default:
|
|
3865
|
-
w(u(
|
|
3871
|
+
default: v(() => [
|
|
3872
|
+
w(u(j), {
|
|
3866
3873
|
icon: "bi:x",
|
|
3867
3874
|
width: "1rem",
|
|
3868
3875
|
height: "1rem",
|
|
@@ -3874,7 +3881,7 @@ const ya = {
|
|
|
3874
3881
|
])
|
|
3875
3882
|
]),
|
|
3876
3883
|
_: 1
|
|
3877
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), y(u(
|
|
3884
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), y(u(de), _({
|
|
3878
3885
|
key: 3,
|
|
3879
3886
|
modelValue: t.value,
|
|
3880
3887
|
"onUpdate:modelValue": o[3] || (o[3] = (p) => t.value = p)
|
|
@@ -3884,7 +3891,7 @@ const ya = {
|
|
|
3884
3891
|
"option-label": l.optionLabel,
|
|
3885
3892
|
"option-value": l.optionValue,
|
|
3886
3893
|
filter: ""
|
|
3887
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), y(u(
|
|
3894
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), y(u(re), _({
|
|
3888
3895
|
key: 4,
|
|
3889
3896
|
modelValue: t.value,
|
|
3890
3897
|
"onUpdate:modelValue": o[4] || (o[4] = (p) => t.value = p),
|
|
@@ -3892,12 +3899,12 @@ const ya = {
|
|
|
3892
3899
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3893
3900
|
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), y(s, {
|
|
3894
3901
|
key: 5,
|
|
3895
|
-
onClick:
|
|
3902
|
+
onClick: Q(i, ["prevent"]),
|
|
3896
3903
|
size: "small",
|
|
3897
3904
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3898
3905
|
}, {
|
|
3899
|
-
default:
|
|
3900
|
-
w(u(
|
|
3906
|
+
default: v(() => [
|
|
3907
|
+
w(u(j), {
|
|
3901
3908
|
icon: "bi:x",
|
|
3902
3909
|
width: "1rem",
|
|
3903
3910
|
height: "1rem",
|
|
@@ -4995,10 +5002,10 @@ var H = function(e, t, a, i) {
|
|
|
4995
5002
|
if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
4996
5003
|
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4997
5004
|
return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
|
|
4998
|
-
},
|
|
5005
|
+
}, Z, te, Y;
|
|
4999
5006
|
class we {
|
|
5000
5007
|
constructor(...t) {
|
|
5001
|
-
|
|
5008
|
+
Z.set(this, /* @__PURE__ */ new Map()), te.set(this, /* @__PURE__ */ new Map()), Y.set(this, /* @__PURE__ */ new Map());
|
|
5002
5009
|
for (const a of t)
|
|
5003
5010
|
this.define(a);
|
|
5004
5011
|
}
|
|
@@ -5011,10 +5018,10 @@ class we {
|
|
|
5011
5018
|
const p = s.startsWith("*");
|
|
5012
5019
|
if (s = p ? s.slice(1) : s, o == null || o.add(s), n && H(this, te, "f").set(i, s), n = !1, p)
|
|
5013
5020
|
continue;
|
|
5014
|
-
const c = H(this,
|
|
5021
|
+
const c = H(this, Z, "f").get(s);
|
|
5015
5022
|
if (c && c != i && !a)
|
|
5016
5023
|
throw new Error(`"${i} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);
|
|
5017
|
-
H(this,
|
|
5024
|
+
H(this, Z, "f").set(s, i);
|
|
5018
5025
|
}
|
|
5019
5026
|
}
|
|
5020
5027
|
return this;
|
|
@@ -5023,7 +5030,7 @@ class we {
|
|
|
5023
5030
|
if (typeof t != "string")
|
|
5024
5031
|
return null;
|
|
5025
5032
|
const a = t.replace(/^.*[/\\]/s, "").toLowerCase(), i = a.replace(/^.*\./s, "").toLowerCase(), l = a.length < t.length;
|
|
5026
|
-
return !(i.length < a.length - 1) && l ? null : H(this,
|
|
5033
|
+
return !(i.length < a.length - 1) && l ? null : H(this, Z, "f").get(i) ?? null;
|
|
5027
5034
|
}
|
|
5028
5035
|
getExtension(t) {
|
|
5029
5036
|
var a;
|
|
@@ -5042,12 +5049,12 @@ class we {
|
|
|
5042
5049
|
}
|
|
5043
5050
|
_getTestState() {
|
|
5044
5051
|
return {
|
|
5045
|
-
types: H(this,
|
|
5052
|
+
types: H(this, Z, "f"),
|
|
5046
5053
|
extensions: H(this, te, "f")
|
|
5047
5054
|
};
|
|
5048
5055
|
}
|
|
5049
5056
|
}
|
|
5050
|
-
|
|
5057
|
+
Z = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
|
|
5051
5058
|
const Ea = new we(ue, ce)._freeze();
|
|
5052
5059
|
function ke(e, t, a, i) {
|
|
5053
5060
|
const l = t.flatMap((o) => o.file);
|
|
@@ -5109,13 +5116,13 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5109
5116
|
}),
|
|
5110
5117
|
emits: ["update:modelValue"],
|
|
5111
5118
|
setup(e) {
|
|
5112
|
-
const t = N(e, "modelValue"), a =
|
|
5119
|
+
const t = N(e, "modelValue"), a = I(), i = (n) => a.value.toggle(n), l = T(() => e.maxFileInput <= t.value.length), o = (n) => {
|
|
5113
5120
|
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
5114
5121
|
};
|
|
5115
5122
|
return (n, s) => {
|
|
5116
5123
|
const p = q;
|
|
5117
|
-
return d(),
|
|
5118
|
-
|
|
5124
|
+
return d(), f("div", Ha, [
|
|
5125
|
+
F(n.$slots, "message"),
|
|
5119
5126
|
m("div", null, [
|
|
5120
5127
|
m("input", {
|
|
5121
5128
|
id: "file-input",
|
|
@@ -5131,14 +5138,14 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5131
5138
|
id: "file-input-button",
|
|
5132
5139
|
for: "file-input"
|
|
5133
5140
|
}, [
|
|
5134
|
-
|
|
5135
|
-
w(u(
|
|
5141
|
+
F(n.$slots, "button-content", {}, () => [
|
|
5142
|
+
w(u(j), {
|
|
5136
5143
|
icon: "bi:upload",
|
|
5137
5144
|
class: "me-2",
|
|
5138
5145
|
height: "20px",
|
|
5139
5146
|
width: "20px"
|
|
5140
5147
|
}),
|
|
5141
|
-
s[1] || (s[1] =
|
|
5148
|
+
s[1] || (s[1] = P(" Browse your computer "))
|
|
5142
5149
|
])
|
|
5143
5150
|
], 2)
|
|
5144
5151
|
]),
|
|
@@ -5149,17 +5156,18 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5149
5156
|
id: "accepted-file-types",
|
|
5150
5157
|
onClick: i
|
|
5151
5158
|
}, {
|
|
5152
|
-
default:
|
|
5153
|
-
|
|
5159
|
+
default: v(() => s[2] || (s[2] = [
|
|
5160
|
+
P("Accepted File Types")
|
|
5154
5161
|
])),
|
|
5155
|
-
_: 1
|
|
5162
|
+
_: 1,
|
|
5163
|
+
__: [2]
|
|
5156
5164
|
})) : z("", !0),
|
|
5157
5165
|
w(u(be), {
|
|
5158
5166
|
ref_key: "acceptedFilesOverlay",
|
|
5159
5167
|
ref: a
|
|
5160
5168
|
}, {
|
|
5161
|
-
default:
|
|
5162
|
-
m("div", Ga,
|
|
5169
|
+
default: v(() => [
|
|
5170
|
+
m("div", Ga, B(n.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
5163
5171
|
]),
|
|
5164
5172
|
_: 1
|
|
5165
5173
|
}, 512)
|
|
@@ -5185,26 +5193,26 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5185
5193
|
}),
|
|
5186
5194
|
emits: ["update:modelValue"],
|
|
5187
5195
|
setup(e) {
|
|
5188
|
-
const t = N(e, "modelValue"), a =
|
|
5196
|
+
const t = N(e, "modelValue"), a = I(!1), i = T(() => e.maxFileInput <= t.value.length), l = (o) => {
|
|
5189
5197
|
a.value = !1, o.dataTransfer.files.length > e.maxFileInput || i.value ? o.preventDefault() : t.value = ke([...o.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
|
|
5190
5198
|
};
|
|
5191
|
-
return (o, n) => (d(),
|
|
5199
|
+
return (o, n) => (d(), f("div", {
|
|
5192
5200
|
id: "drag-drop-area",
|
|
5193
5201
|
class: S(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
5194
|
-
onDragleave: n[0] || (n[0] =
|
|
5195
|
-
onDragover: n[1] || (n[1] =
|
|
5196
|
-
onDrop:
|
|
5202
|
+
onDragleave: n[0] || (n[0] = Q((s) => a.value = !1, ["prevent"])),
|
|
5203
|
+
onDragover: n[1] || (n[1] = Q((s) => a.value = !0, ["prevent"])),
|
|
5204
|
+
onDrop: Q(l, ["prevent"])
|
|
5197
5205
|
}, [
|
|
5198
|
-
t.value.length === 0 ? (d(),
|
|
5199
|
-
w(u(
|
|
5206
|
+
t.value.length === 0 ? (d(), f("div", Ja, [
|
|
5207
|
+
w(u(j), {
|
|
5200
5208
|
icon: "bi:upload",
|
|
5201
5209
|
class: "me-2",
|
|
5202
5210
|
height: "20px",
|
|
5203
5211
|
width: "20px"
|
|
5204
5212
|
}),
|
|
5205
|
-
n[2] || (n[2] =
|
|
5206
|
-
])) : (d(),
|
|
5207
|
-
|
|
5213
|
+
n[2] || (n[2] = P(" Drag and drop files here "))
|
|
5214
|
+
])) : (d(), f("div", Ka, [
|
|
5215
|
+
F(o.$slots, "default")
|
|
5208
5216
|
]))
|
|
5209
5217
|
], 34));
|
|
5210
5218
|
}
|
|
@@ -5235,19 +5243,19 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5235
5243
|
});
|
|
5236
5244
|
return (l, o) => {
|
|
5237
5245
|
const n = pe;
|
|
5238
|
-
return d(),
|
|
5246
|
+
return d(), f("div", Xa, [
|
|
5239
5247
|
t.uploadStatus === "Uploading" ? (d(), y(n, {
|
|
5240
5248
|
key: 0,
|
|
5241
5249
|
"in-line": ""
|
|
5242
5250
|
})) : z("", !0),
|
|
5243
|
-
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), y(
|
|
5251
|
+
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), y(se, {
|
|
5244
5252
|
key: 1,
|
|
5245
5253
|
id: "upload-status-alert",
|
|
5246
5254
|
severity: a.value,
|
|
5247
5255
|
class: "mb-0 w-75 ms-auto"
|
|
5248
5256
|
}, {
|
|
5249
|
-
default:
|
|
5250
|
-
|
|
5257
|
+
default: v(() => [
|
|
5258
|
+
P(B(i.value), 1)
|
|
5251
5259
|
]),
|
|
5252
5260
|
_: 1
|
|
5253
5261
|
}, 8, ["severity"])) : z("", !0)
|
|
@@ -5282,11 +5290,11 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5282
5290
|
}),
|
|
5283
5291
|
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5284
5292
|
setup(e, { emit: t }) {
|
|
5285
|
-
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), o = t, n =
|
|
5293
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), o = t, n = I(a.value.name), s = I(""), p = I(0), c = I(), x = T(() => e.acceptedFileTypes.some(({ fileType: b }) => b === a.value.type)), r = T(() => a.value.size <= e.maxFileSize), h = T(() => a.value.type ? a.value.type : Ra().getType(a.value.name)), $ = () => {
|
|
5286
5294
|
n.value != null && (D(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5287
5295
|
}, D = () => {
|
|
5288
|
-
let b = n.value.split("."), k = Ea.getExtension(h.value),
|
|
5289
|
-
b.length === 1 ?
|
|
5296
|
+
let b = n.value.split("."), k = Ea.getExtension(h.value), M = n.value.split(".").pop();
|
|
5297
|
+
b.length === 1 ? M && M.length > 0 && (n.value = [n.value, k].join(".")) : b.length > 1 && M !== k && (n.value = n.value.replace(M, k));
|
|
5290
5298
|
}, O = async () => {
|
|
5291
5299
|
if (!x.value || !r.value) {
|
|
5292
5300
|
l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
|
|
@@ -5300,7 +5308,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5300
5308
|
}
|
|
5301
5309
|
try {
|
|
5302
5310
|
l.value = "Uploading";
|
|
5303
|
-
const
|
|
5311
|
+
const M = new ge(b), g = {
|
|
5304
5312
|
abortSignal: c.value.signal,
|
|
5305
5313
|
onProgress: (V) => p.value = V.loadedBytes,
|
|
5306
5314
|
blobHTTPHeaders: {
|
|
@@ -5309,9 +5317,9 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5309
5317
|
},
|
|
5310
5318
|
tags: { temp: "true" }
|
|
5311
5319
|
};
|
|
5312
|
-
await
|
|
5313
|
-
} catch (
|
|
5314
|
-
if (
|
|
5320
|
+
await M.uploadData(a.value, g), s.value = b, l.value = "Uploaded", i.value = k;
|
|
5321
|
+
} catch (M) {
|
|
5322
|
+
if (M.name === "AbortError") {
|
|
5315
5323
|
l.value = "Aborted";
|
|
5316
5324
|
return;
|
|
5317
5325
|
}
|
|
@@ -5323,8 +5331,8 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5323
5331
|
return oe(() => {
|
|
5324
5332
|
e.autoUploadToBlob && l.value != "Uploaded" && O();
|
|
5325
5333
|
}), (b, k) => {
|
|
5326
|
-
const
|
|
5327
|
-
return d(),
|
|
5334
|
+
const M = q;
|
|
5335
|
+
return d(), f("div", {
|
|
5328
5336
|
class: "py-4 px-3 d-flex",
|
|
5329
5337
|
"data-cy": `file-info-${a.value.name}`
|
|
5330
5338
|
}, [
|
|
@@ -5337,7 +5345,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5337
5345
|
alt: a.value.name,
|
|
5338
5346
|
width: "75px",
|
|
5339
5347
|
preview: ""
|
|
5340
|
-
}, null, 8, ["src", "alt"])) : (d(), y(u(
|
|
5348
|
+
}, null, 8, ["src", "alt"])) : (d(), y(u(j), {
|
|
5341
5349
|
key: 1,
|
|
5342
5350
|
id: "file-earmark",
|
|
5343
5351
|
icon: "bi:file-earmark",
|
|
@@ -5355,10 +5363,10 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5355
5363
|
rules: b.customFileNameRules,
|
|
5356
5364
|
name: a.value.name,
|
|
5357
5365
|
"complete-action": $
|
|
5358
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(),
|
|
5366
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), f("span", ai, B(n.value), 1))
|
|
5359
5367
|
]),
|
|
5360
|
-
m("span", ii, "File type: " +
|
|
5361
|
-
m("span", li, "File size: " +
|
|
5368
|
+
m("span", ii, "File type: " + B(a.value.type.split("/").pop()), 1),
|
|
5369
|
+
m("span", li, "File size: " + B(u(me)(a.value.size)), 1)
|
|
5362
5370
|
]),
|
|
5363
5371
|
m("div", oi, [
|
|
5364
5372
|
(d(), y(Qa, {
|
|
@@ -5368,35 +5376,35 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5368
5376
|
"bytes-uploaded": p.value,
|
|
5369
5377
|
"max-file-size": b.maxFileSize
|
|
5370
5378
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
5371
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), y(
|
|
5379
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), y(M, {
|
|
5372
5380
|
key: 0,
|
|
5373
5381
|
link: "",
|
|
5374
5382
|
onClick: O
|
|
5375
5383
|
}, {
|
|
5376
|
-
default:
|
|
5377
|
-
w(u(
|
|
5384
|
+
default: v(() => [
|
|
5385
|
+
w(u(j), {
|
|
5378
5386
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5379
5387
|
}, null, 8, ["icon"])
|
|
5380
5388
|
]),
|
|
5381
5389
|
_: 1
|
|
5382
5390
|
})) : z("", !0),
|
|
5383
|
-
l.value === "Uploading" ? (d(), y(
|
|
5391
|
+
l.value === "Uploading" ? (d(), y(M, {
|
|
5384
5392
|
key: 1,
|
|
5385
5393
|
link: "",
|
|
5386
5394
|
onClick: k[1] || (k[1] = (g) => c.value.abort())
|
|
5387
5395
|
}, {
|
|
5388
|
-
default:
|
|
5389
|
-
w(u(
|
|
5396
|
+
default: v(() => [
|
|
5397
|
+
w(u(j), { icon: "bi:x-circle-fill" })
|
|
5390
5398
|
]),
|
|
5391
5399
|
_: 1
|
|
5392
|
-
})) : (d(), y(
|
|
5400
|
+
})) : (d(), y(M, {
|
|
5393
5401
|
key: 2,
|
|
5394
5402
|
link: "",
|
|
5395
5403
|
onClick: U,
|
|
5396
5404
|
id: "delete-button"
|
|
5397
5405
|
}, {
|
|
5398
|
-
default:
|
|
5399
|
-
w(u(
|
|
5406
|
+
default: v(() => [
|
|
5407
|
+
w(u(j), { icon: "bi:trash" })
|
|
5400
5408
|
]),
|
|
5401
5409
|
_: 1
|
|
5402
5410
|
}))
|
|
@@ -5411,12 +5419,12 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5411
5419
|
maxFileInput: {}
|
|
5412
5420
|
},
|
|
5413
5421
|
setup(e) {
|
|
5414
|
-
return (t, a) => (d(),
|
|
5415
|
-
m("div", ri, "Max file size: " +
|
|
5416
|
-
m("div", di, "| Max file count: " +
|
|
5422
|
+
return (t, a) => (d(), f("div", si, [
|
|
5423
|
+
m("div", ri, "Max file size: " + B(u(me)(t.maxFileSize)), 1),
|
|
5424
|
+
m("div", di, "| Max file count: " + B(t.maxFileInput), 1)
|
|
5417
5425
|
]));
|
|
5418
5426
|
}
|
|
5419
|
-
}), ci = { "data-cy": "file-uploader" }, ui = { key:
|
|
5427
|
+
}), ci = { "data-cy": "file-uploader" }, ui = { key: 1 }, hl = /* @__PURE__ */ C({
|
|
5420
5428
|
__name: "ForgeFileUploader",
|
|
5421
5429
|
props: /* @__PURE__ */ R({
|
|
5422
5430
|
acceptedFileTypes: {},
|
|
@@ -5426,22 +5434,37 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5426
5434
|
customFileNameRules: {},
|
|
5427
5435
|
maxFileInput: { default: 3 },
|
|
5428
5436
|
editableFileName: { type: Boolean, default: !1 },
|
|
5429
|
-
autoUploadToBlob: { type: Boolean, default: !0 }
|
|
5437
|
+
autoUploadToBlob: { type: Boolean, default: !0 },
|
|
5438
|
+
maxFileWarning: { default: "Maximum number of files reached." }
|
|
5430
5439
|
}, {
|
|
5431
5440
|
modelValue: { default: [] },
|
|
5432
5441
|
modelModifiers: {}
|
|
5433
5442
|
}),
|
|
5434
5443
|
emits: ["update:modelValue"],
|
|
5435
5444
|
setup(e) {
|
|
5436
|
-
const t = N(e, "modelValue")
|
|
5445
|
+
const t = N(e, "modelValue");
|
|
5446
|
+
K(t, (l, o) => {
|
|
5447
|
+
l.length > a.maxFileInput && (l.length = a.maxFileInput);
|
|
5448
|
+
}, { deep: 2 });
|
|
5449
|
+
const a = e, i = (l) => {
|
|
5437
5450
|
t.value = t.value.filter((o) => o.file != l);
|
|
5438
5451
|
};
|
|
5439
|
-
return (l, o) => (d(),
|
|
5440
|
-
|
|
5452
|
+
return (l, o) => (d(), f("div", ci, [
|
|
5453
|
+
t.value.length == l.maxFileInput && a.maxFileWarning != null ? (d(), y(se, {
|
|
5454
|
+
key: 0,
|
|
5455
|
+
id: "max-files-alert",
|
|
5456
|
+
severity: "danger"
|
|
5457
|
+
}, {
|
|
5458
|
+
default: v(() => [
|
|
5459
|
+
P(B(l.maxFileWarning), 1)
|
|
5460
|
+
]),
|
|
5461
|
+
_: 1
|
|
5462
|
+
})) : z("", !0),
|
|
5463
|
+
w(Ya, _(a, {
|
|
5441
5464
|
modelValue: t.value,
|
|
5442
5465
|
"onUpdate:modelValue": o[0] || (o[0] = (n) => t.value = n)
|
|
5443
5466
|
}), null, 16, ["modelValue"]),
|
|
5444
|
-
l.showDragDropArea ? (d(),
|
|
5467
|
+
l.showDragDropArea ? (d(), f("div", ui, [
|
|
5445
5468
|
w(Za, {
|
|
5446
5469
|
"max-file-input": a.maxFileInput,
|
|
5447
5470
|
"max-file-size": a.maxFileSize,
|
|
@@ -5449,9 +5472,9 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5449
5472
|
modelValue: t.value,
|
|
5450
5473
|
"onUpdate:modelValue": o[1] || (o[1] = (n) => t.value = n)
|
|
5451
5474
|
}, {
|
|
5452
|
-
default:
|
|
5453
|
-
(d(!0),
|
|
5454
|
-
(d(), y(ni,
|
|
5475
|
+
default: v(() => [
|
|
5476
|
+
(d(!0), f(A, null, E(t.value, ({ file: n }, s) => (d(), f("div", null, [
|
|
5477
|
+
(d(), y(ni, _({
|
|
5455
5478
|
key: n.name,
|
|
5456
5479
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5457
5480
|
file: t.value[s].file,
|
|
@@ -5481,22 +5504,22 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5481
5504
|
},
|
|
5482
5505
|
emits: ["update:modelValue"],
|
|
5483
5506
|
setup(e) {
|
|
5484
|
-
const t = N(e, "modelValue"), a =
|
|
5507
|
+
const t = N(e, "modelValue"), a = I(), i = I(!1), l = (o) => {
|
|
5485
5508
|
a.value.toggle(o);
|
|
5486
5509
|
};
|
|
5487
|
-
return (o, n) => (d(),
|
|
5510
|
+
return (o, n) => (d(), f(A, null, [
|
|
5488
5511
|
w(u(q), {
|
|
5489
5512
|
onClick: l,
|
|
5490
5513
|
class: "ms-2"
|
|
5491
5514
|
}, {
|
|
5492
|
-
default:
|
|
5515
|
+
default: v(() => [
|
|
5493
5516
|
m("div", mi, [
|
|
5494
5517
|
m("div", vi, [
|
|
5495
|
-
w(u(
|
|
5518
|
+
w(u(j), { icon: "bi:layout-three-columns" })
|
|
5496
5519
|
]),
|
|
5497
|
-
|
|
5520
|
+
P(" Columns (" + B(t.value.filter((s) => s.selected).length ?? 0) + "/" + B(t.value.length ?? 0) + ") ", 1),
|
|
5498
5521
|
m("div", fi, [
|
|
5499
|
-
w(u(
|
|
5522
|
+
w(u(j), {
|
|
5500
5523
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5501
5524
|
}, null, 8, ["icon"])
|
|
5502
5525
|
])
|
|
@@ -5511,9 +5534,9 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5511
5534
|
onHide: n[0] || (n[0] = () => i.value = !1),
|
|
5512
5535
|
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5513
5536
|
}, {
|
|
5514
|
-
default:
|
|
5537
|
+
default: v(() => [
|
|
5515
5538
|
m("div", gi, [
|
|
5516
|
-
(d(!0),
|
|
5539
|
+
(d(!0), f(A, null, E(t.value, (s, p) => (d(), f("div", {
|
|
5517
5540
|
class: S(["d-flex cursor-pointer", {
|
|
5518
5541
|
"border-top": p !== 0,
|
|
5519
5542
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
@@ -5542,13 +5565,13 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5542
5565
|
return (t, a) => {
|
|
5543
5566
|
const i = Je;
|
|
5544
5567
|
return d(), y(i, W(G({ ...t.$attrs })), ae({
|
|
5545
|
-
toggleicon:
|
|
5546
|
-
l ? (d(), y(u(
|
|
5568
|
+
toggleicon: v(({ collapsed: l }) => [
|
|
5569
|
+
l ? (d(), y(u(j), {
|
|
5547
5570
|
key: 0,
|
|
5548
5571
|
"data-cy": "message-icon",
|
|
5549
5572
|
icon: "bi:chevron-down"
|
|
5550
5573
|
})) : z("", !0),
|
|
5551
|
-
l ? z("", !0) : (d(), y(u(
|
|
5574
|
+
l ? z("", !0) : (d(), y(u(j), {
|
|
5552
5575
|
key: 1,
|
|
5553
5576
|
"data-cy": "message-icon",
|
|
5554
5577
|
icon: "bi:chevron-up"
|
|
@@ -5558,8 +5581,8 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5558
5581
|
}, [
|
|
5559
5582
|
E(t.$slots, (l, o) => ({
|
|
5560
5583
|
name: o,
|
|
5561
|
-
fn:
|
|
5562
|
-
|
|
5584
|
+
fn: v((n) => [
|
|
5585
|
+
F(t.$slots, o, W(G(n)))
|
|
5563
5586
|
])
|
|
5564
5587
|
}))
|
|
5565
5588
|
]), 1040);
|
|
@@ -5592,7 +5615,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5592
5615
|
]
|
|
5593
5616
|
})
|
|
5594
5617
|
}));
|
|
5595
|
-
return (i, l) => (d(), y(u(Ke),
|
|
5618
|
+
return (i, l) => (d(), y(u(Ke), _({ ...i.$attrs, ...t }, {
|
|
5596
5619
|
severity: t.severity,
|
|
5597
5620
|
pt: a.value
|
|
5598
5621
|
}), null, 16, ["severity", "pt"]));
|
|
@@ -5630,8 +5653,8 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5630
5653
|
} else
|
|
5631
5654
|
a.value = a.value === o.value && t.allowEmpty ? null : o.value;
|
|
5632
5655
|
};
|
|
5633
|
-
return (o, n) => (d(),
|
|
5634
|
-
(d(!0),
|
|
5656
|
+
return (o, n) => (d(), f("div", yi, [
|
|
5657
|
+
(d(!0), f(A, null, E(o.options, (s, p) => (d(), y(bi, {
|
|
5635
5658
|
key: p,
|
|
5636
5659
|
onLabel: s.label,
|
|
5637
5660
|
offLabel: s.label,
|
|
@@ -5644,7 +5667,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5644
5667
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5645
5668
|
]));
|
|
5646
5669
|
}
|
|
5647
|
-
}),
|
|
5670
|
+
}), Fl = /* @__PURE__ */ C({
|
|
5648
5671
|
__name: "ForgeConfirmPopup",
|
|
5649
5672
|
setup(e) {
|
|
5650
5673
|
const t = T(() => ({
|
|
@@ -5658,14 +5681,14 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5658
5681
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5659
5682
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5660
5683
|
}));
|
|
5661
|
-
return (a, i) => (d(), y(u(Ze),
|
|
5662
|
-
default:
|
|
5663
|
-
(d(!0),
|
|
5684
|
+
return (a, i) => (d(), y(u(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5685
|
+
default: v(() => [
|
|
5686
|
+
(d(!0), f(A, null, E(a.$slots, (l, o) => F(a.$slots, o, { slot: o })), 256))
|
|
5664
5687
|
]),
|
|
5665
5688
|
_: 3
|
|
5666
5689
|
}, 16, ["pt"]));
|
|
5667
5690
|
}
|
|
5668
|
-
}),
|
|
5691
|
+
}), Bl = () => ({
|
|
5669
5692
|
type: "component",
|
|
5670
5693
|
resolve: (e) => {
|
|
5671
5694
|
if (e.startsWith("Forge"))
|
|
@@ -5678,12 +5701,12 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5678
5701
|
export {
|
|
5679
5702
|
Qi as Bootstrap_PT,
|
|
5680
5703
|
el as ForgeActionButton,
|
|
5681
|
-
|
|
5704
|
+
se as ForgeAlert,
|
|
5682
5705
|
tl as ForgeAutoComplete,
|
|
5683
5706
|
ye as ForgeCheckbox,
|
|
5684
5707
|
cl as ForgeChip,
|
|
5685
5708
|
wl as ForgeColumnCustomiser,
|
|
5686
|
-
|
|
5709
|
+
Fl as ForgeConfirmPopup,
|
|
5687
5710
|
xe as ForgeDatepicker,
|
|
5688
5711
|
hl as ForgeFileUploader,
|
|
5689
5712
|
xl as ForgeFilterHeader,
|
|
@@ -5699,7 +5722,7 @@ export {
|
|
|
5699
5722
|
kl as ForgePanel,
|
|
5700
5723
|
ul as ForgeProgressBar,
|
|
5701
5724
|
rl as ForgeRemainingCharacters,
|
|
5702
|
-
|
|
5725
|
+
Bl as ForgeResolver,
|
|
5703
5726
|
ml as ForgeScratchpad,
|
|
5704
5727
|
$l as ForgeSelectButton,
|
|
5705
5728
|
vl as ForgeStatWidget,
|