@3squared/forge-ui-3 2.21.7 → 2.22.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,13 +1,13 @@
|
|
|
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 g, renderSlot as
|
|
2
|
+
import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as g, renderSlot as C, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as _, createElementBlock as b, Fragment as N, mergeProps as j, renderList as U, mergeModels as E, useModel as L, computed as M, withDirectives as K, createTextVNode as V, toDisplayString as $, vShow as X, createSlots as ie, onMounted as ne, withKeys as le, isRef as Se, normalizeStyle as Fe, withModifiers as Q, watch as W, h as Ce, useTemplateRef as Te } from "vue";
|
|
3
3
|
import { Icon as I } 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
|
-
import
|
|
7
|
+
import je from "primevue/checkbox";
|
|
8
8
|
import { useField as se } from "vee-validate";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import Me from "primevue/progressspinner";
|
|
10
|
+
import _e from "primevue/dialog";
|
|
11
11
|
import ae from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as Ie } from "@vueuse/components";
|
|
13
13
|
import Ve from "primevue/menubar";
|
|
@@ -17,9 +17,9 @@ import oe from "primevue/select";
|
|
|
17
17
|
import Oe from "primevue/inputmask";
|
|
18
18
|
import Ae from "primevue/textarea";
|
|
19
19
|
import fe from "primevue/inputnumber";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
20
|
+
import Le from "primevue/chip";
|
|
21
|
+
import Ne from "primevue/progressbar";
|
|
22
|
+
import Ue from "primevue/step";
|
|
23
23
|
import Ee from "primevue/stepper";
|
|
24
24
|
import qe from "primevue/steplist";
|
|
25
25
|
import Re from "primevue/steppanel";
|
|
@@ -1119,7 +1119,7 @@ const Qe = {
|
|
|
1119
1119
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1120
1120
|
filterIcon: "d-none"
|
|
1121
1121
|
}
|
|
1122
|
-
},
|
|
1122
|
+
}, jt = {
|
|
1123
1123
|
treeSelect: {
|
|
1124
1124
|
root: ({ props: e }) => ({
|
|
1125
1125
|
class: [
|
|
@@ -1167,7 +1167,7 @@ const Qe = {
|
|
|
1167
1167
|
filterIcon: "d-none"
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
|
-
},
|
|
1170
|
+
}, Mt = {
|
|
1171
1171
|
fieldset: {
|
|
1172
1172
|
root: () => ({
|
|
1173
1173
|
class: [
|
|
@@ -1193,7 +1193,7 @@ const Qe = {
|
|
|
1193
1193
|
]
|
|
1194
1194
|
})
|
|
1195
1195
|
}
|
|
1196
|
-
},
|
|
1196
|
+
}, _t = {
|
|
1197
1197
|
accordionPanel: {
|
|
1198
1198
|
root: "card my-2"
|
|
1199
1199
|
},
|
|
@@ -1251,7 +1251,7 @@ const Qe = {
|
|
|
1251
1251
|
transferControls: "d-flex flex-column justify-content-center gap-1",
|
|
1252
1252
|
targetControls: "d-flex flex-column justify-content-center gap-1",
|
|
1253
1253
|
pcListbox: {
|
|
1254
|
-
root: "",
|
|
1254
|
+
root: "border-0",
|
|
1255
1255
|
list: "list-unstyled list-group list-group-flush",
|
|
1256
1256
|
option: ({ context: e }) => ({
|
|
1257
1257
|
class: [
|
|
@@ -1267,8 +1267,7 @@ const Qe = {
|
|
|
1267
1267
|
},
|
|
1268
1268
|
sourceListContainer: " h-100 flex-1",
|
|
1269
1269
|
targetListContainer: "h-100 flex-1"
|
|
1270
|
-
}
|
|
1271
|
-
listbox: {}
|
|
1270
|
+
}
|
|
1272
1271
|
}, Dt = {
|
|
1273
1272
|
listbox: {
|
|
1274
1273
|
root: "border rounded",
|
|
@@ -1288,7 +1287,33 @@ const Qe = {
|
|
|
1288
1287
|
filterIcon: "d-none",
|
|
1289
1288
|
pcFilter: { root: "form-control form-control-sm mx-2 mt-2 mb-1" }
|
|
1290
1289
|
}
|
|
1291
|
-
},
|
|
1290
|
+
}, Ot = {
|
|
1291
|
+
drawer: {
|
|
1292
|
+
root: ({ props: e }) => ({
|
|
1293
|
+
class: [
|
|
1294
|
+
"d-flex flex-column position-relative border bg-white ",
|
|
1295
|
+
{
|
|
1296
|
+
"h-100": e.position == "left" || e.position == "right",
|
|
1297
|
+
"w-100": e.position == "top" || e.position == "bottom",
|
|
1298
|
+
"modal border rounded h-auto m-0 mw-100 vh-100 vw-100 ": e.position == "full"
|
|
1299
|
+
}
|
|
1300
|
+
]
|
|
1301
|
+
}),
|
|
1302
|
+
header: "d-flex align-items-center justify-content-between p-3 flex-shrink-0 border-bottom",
|
|
1303
|
+
content: "flex-grow-1 py-2 px-3 overflow-auto",
|
|
1304
|
+
pcCloseButton: {
|
|
1305
|
+
root: "btn"
|
|
1306
|
+
},
|
|
1307
|
+
mask: ({ props: e }) => ({
|
|
1308
|
+
class: [
|
|
1309
|
+
"z-3",
|
|
1310
|
+
{
|
|
1311
|
+
"modal-open": e.modal && e.visible
|
|
1312
|
+
}
|
|
1313
|
+
]
|
|
1314
|
+
})
|
|
1315
|
+
}
|
|
1316
|
+
}, no = {
|
|
1292
1317
|
...Qe,
|
|
1293
1318
|
...ht,
|
|
1294
1319
|
...et,
|
|
@@ -1319,13 +1344,14 @@ const Qe = {
|
|
|
1319
1344
|
...vt,
|
|
1320
1345
|
...zt,
|
|
1321
1346
|
...rt,
|
|
1347
|
+
...Mt,
|
|
1322
1348
|
...jt,
|
|
1323
|
-
..._t,
|
|
1324
1349
|
...Pt,
|
|
1325
|
-
...
|
|
1350
|
+
..._t,
|
|
1326
1351
|
...It,
|
|
1327
1352
|
...Vt,
|
|
1328
1353
|
...Dt,
|
|
1354
|
+
...Ot,
|
|
1329
1355
|
directives: {
|
|
1330
1356
|
...kt
|
|
1331
1357
|
}
|
|
@@ -1368,13 +1394,13 @@ const Qe = {
|
|
|
1368
1394
|
k(c(I), { icon: "bi:x" })
|
|
1369
1395
|
]),
|
|
1370
1396
|
default: g(() => [
|
|
1371
|
-
|
|
1397
|
+
C(a.$slots, "default")
|
|
1372
1398
|
]),
|
|
1373
1399
|
_: 3
|
|
1374
1400
|
}, 16);
|
|
1375
1401
|
};
|
|
1376
1402
|
}
|
|
1377
|
-
}),
|
|
1403
|
+
}), so = /* @__PURE__ */ z({
|
|
1378
1404
|
__name: "ForgeActionButton",
|
|
1379
1405
|
props: {
|
|
1380
1406
|
action: {},
|
|
@@ -1383,7 +1409,7 @@ const Qe = {
|
|
|
1383
1409
|
params: { default: Array }
|
|
1384
1410
|
},
|
|
1385
1411
|
setup(e) {
|
|
1386
|
-
const t =
|
|
1412
|
+
const t = _(!1), a = e, i = async () => {
|
|
1387
1413
|
t.value = !0;
|
|
1388
1414
|
try {
|
|
1389
1415
|
await a.action.apply(this, a.params);
|
|
@@ -1394,8 +1420,8 @@ const Qe = {
|
|
|
1394
1420
|
};
|
|
1395
1421
|
return (o, l) => {
|
|
1396
1422
|
const n = q;
|
|
1397
|
-
return d(), b(
|
|
1398
|
-
k(n,
|
|
1423
|
+
return d(), b(N, null, [
|
|
1424
|
+
k(n, j({ ...a, ...o.$attrs }, {
|
|
1399
1425
|
loading: t.value,
|
|
1400
1426
|
disabled: t.value || a.disabled,
|
|
1401
1427
|
onClick: i
|
|
@@ -1404,17 +1430,17 @@ const Qe = {
|
|
|
1404
1430
|
], 64);
|
|
1405
1431
|
};
|
|
1406
1432
|
}
|
|
1407
|
-
}),
|
|
1433
|
+
}), ro = /* @__PURE__ */ z({
|
|
1408
1434
|
__name: "ForgeAutoComplete",
|
|
1409
1435
|
setup(e) {
|
|
1410
|
-
return (t, a) => (d(), x(c(Pe),
|
|
1436
|
+
return (t, a) => (d(), x(c(Pe), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1411
1437
|
default: g(() => [
|
|
1412
|
-
(d(!0), b(
|
|
1438
|
+
(d(!0), b(N, null, U(t.$slots, (i, o) => C(t.$slots, o, { slot: o })), 256))
|
|
1413
1439
|
]),
|
|
1414
1440
|
_: 3
|
|
1415
1441
|
}, 16));
|
|
1416
1442
|
}
|
|
1417
|
-
}),
|
|
1443
|
+
}), At = { class: "d-flex flex-column" }, Lt = ["for"], ye = /* @__PURE__ */ z({
|
|
1418
1444
|
__name: "ForgeCheckbox",
|
|
1419
1445
|
props: /* @__PURE__ */ E({
|
|
1420
1446
|
label: { default: "" },
|
|
@@ -1449,7 +1475,7 @@ const Qe = {
|
|
|
1449
1475
|
}),
|
|
1450
1476
|
emits: ["update:modelValue"],
|
|
1451
1477
|
setup(e) {
|
|
1452
|
-
const t = e, a =
|
|
1478
|
+
const t = e, a = L(e, "modelValue"), { handleChange: i, errors: o, errorMessage: l } = se(
|
|
1453
1479
|
() => t.name ?? "",
|
|
1454
1480
|
void 0,
|
|
1455
1481
|
{
|
|
@@ -1458,16 +1484,16 @@ const Qe = {
|
|
|
1458
1484
|
}
|
|
1459
1485
|
), n = (p, u) => {
|
|
1460
1486
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(u) : a.value = u;
|
|
1461
|
-
}, s =
|
|
1487
|
+
}, s = M(() => o.value.length > 0);
|
|
1462
1488
|
return (p, u) => {
|
|
1463
|
-
const h =
|
|
1464
|
-
return d(), b("div",
|
|
1465
|
-
m("div",
|
|
1489
|
+
const h = je;
|
|
1490
|
+
return d(), b("div", At, [
|
|
1491
|
+
m("div", j({
|
|
1466
1492
|
class: "d-flex",
|
|
1467
1493
|
"data-cy": "checkbox-container",
|
|
1468
1494
|
onClick: u[2] || (u[2] = (r) => n(r, a.value))
|
|
1469
1495
|
}, { ...p.$attrs }), [
|
|
1470
|
-
k(h,
|
|
1496
|
+
k(h, j({ ...t }, {
|
|
1471
1497
|
binary: "",
|
|
1472
1498
|
modelValue: a.value,
|
|
1473
1499
|
"onUpdate:modelValue": u[0] || (u[0] = (r) => a.value = r),
|
|
@@ -1480,10 +1506,10 @@ const Qe = {
|
|
|
1480
1506
|
onClick: u[1] || (u[1] = (r) => n(r, !a.value)),
|
|
1481
1507
|
class: P([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1482
1508
|
}, [
|
|
1483
|
-
|
|
1509
|
+
C(p.$slots, "default", {}, () => [
|
|
1484
1510
|
V($(t.label), 1)
|
|
1485
1511
|
])
|
|
1486
|
-
], 10,
|
|
1512
|
+
], 10, Lt)
|
|
1487
1513
|
], 16),
|
|
1488
1514
|
K(m("small", {
|
|
1489
1515
|
"data-cy": "error",
|
|
@@ -1501,7 +1527,7 @@ const Qe = {
|
|
|
1501
1527
|
inLine: { type: Boolean, default: !1 }
|
|
1502
1528
|
},
|
|
1503
1529
|
setup(e) {
|
|
1504
|
-
const t = e, a =
|
|
1530
|
+
const t = e, a = M(() => ({
|
|
1505
1531
|
spin: () => ({
|
|
1506
1532
|
class: [
|
|
1507
1533
|
"spinner-border",
|
|
@@ -1512,7 +1538,7 @@ const Qe = {
|
|
|
1512
1538
|
})
|
|
1513
1539
|
}));
|
|
1514
1540
|
return (i, o) => {
|
|
1515
|
-
const l =
|
|
1541
|
+
const l = Me;
|
|
1516
1542
|
return d(), b("div", {
|
|
1517
1543
|
class: P(i.inLine ? "" : "forge-loader")
|
|
1518
1544
|
}, [
|
|
@@ -1524,7 +1550,7 @@ const Qe = {
|
|
|
1524
1550
|
], 2);
|
|
1525
1551
|
};
|
|
1526
1552
|
}
|
|
1527
|
-
}), Nt = ["href", "target"],
|
|
1553
|
+
}), Nt = ["href", "target"], po = /* @__PURE__ */ z({
|
|
1528
1554
|
__name: "ForgeLink",
|
|
1529
1555
|
props: {
|
|
1530
1556
|
url: {},
|
|
@@ -1542,7 +1568,7 @@ const Qe = {
|
|
|
1542
1568
|
iconName: {}
|
|
1543
1569
|
},
|
|
1544
1570
|
setup(e) {
|
|
1545
|
-
const t =
|
|
1571
|
+
const t = M(() => ({
|
|
1546
1572
|
[`link-${e.severity}`]: e.severity,
|
|
1547
1573
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1548
1574
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1551,7 +1577,7 @@ const Qe = {
|
|
|
1551
1577
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1552
1578
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1553
1579
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1554
|
-
})), a =
|
|
1580
|
+
})), a = M(() => ({
|
|
1555
1581
|
"order-2": e.positionIconEnd,
|
|
1556
1582
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1557
1583
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
@@ -1564,7 +1590,7 @@ const Qe = {
|
|
|
1564
1590
|
href: i.url,
|
|
1565
1591
|
target: i.target
|
|
1566
1592
|
}, [
|
|
1567
|
-
|
|
1593
|
+
C(i.$slots, "default", {}, () => [
|
|
1568
1594
|
i.iconName ? (d(), x(c(I), {
|
|
1569
1595
|
key: 0,
|
|
1570
1596
|
id: "link-icon",
|
|
@@ -1587,20 +1613,20 @@ function Ut(e) {
|
|
|
1587
1613
|
}
|
|
1588
1614
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1589
1615
|
}
|
|
1590
|
-
function
|
|
1616
|
+
function co(e, t) {
|
|
1591
1617
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1592
1618
|
}
|
|
1593
|
-
function
|
|
1619
|
+
function uo(e, t, a) {
|
|
1594
1620
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1595
1621
|
}
|
|
1596
|
-
const
|
|
1622
|
+
const Et = {
|
|
1597
1623
|
key: 0,
|
|
1598
1624
|
class: "sticky-top py-3 error-bg",
|
|
1599
1625
|
"data-cy": "error-wrapper"
|
|
1600
|
-
},
|
|
1626
|
+
}, qt = { key: 0 }, Rt = {
|
|
1601
1627
|
class: "d-flex w-100",
|
|
1602
1628
|
"data-cy": "footer"
|
|
1603
|
-
},
|
|
1629
|
+
}, mo = /* @__PURE__ */ z({
|
|
1604
1630
|
__name: "ForgeModal",
|
|
1605
1631
|
props: /* @__PURE__ */ E({
|
|
1606
1632
|
cancelText: { default: "Cancel" },
|
|
@@ -1662,7 +1688,7 @@ const Lt = {
|
|
|
1662
1688
|
}),
|
|
1663
1689
|
emits: ["update:visible", "update:error"],
|
|
1664
1690
|
setup(e, { expose: t }) {
|
|
1665
|
-
const a =
|
|
1691
|
+
const a = L(e, "visible"), i = _(!1), o = e, l = _(!1), n = L(e, "error"), s = () => {
|
|
1666
1692
|
n.value = {
|
|
1667
1693
|
hasError: !1,
|
|
1668
1694
|
header: "",
|
|
@@ -1686,12 +1712,12 @@ const Lt = {
|
|
|
1686
1712
|
(v || v == null) && h();
|
|
1687
1713
|
} catch (v) {
|
|
1688
1714
|
n.value.hasError = !0;
|
|
1689
|
-
const
|
|
1690
|
-
n.value.header =
|
|
1715
|
+
const F = Ut(v);
|
|
1716
|
+
n.value.header = F.errorMessage, n.value.message = F.errorDetails;
|
|
1691
1717
|
}
|
|
1692
1718
|
l.value = !1;
|
|
1693
1719
|
}
|
|
1694
|
-
}, w =
|
|
1720
|
+
}, w = M(() => ({
|
|
1695
1721
|
root: [
|
|
1696
1722
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1697
1723
|
{
|
|
@@ -1710,9 +1736,9 @@ const Lt = {
|
|
|
1710
1736
|
}
|
|
1711
1737
|
]
|
|
1712
1738
|
}));
|
|
1713
|
-
return (v,
|
|
1714
|
-
const
|
|
1715
|
-
return d(), x(A,
|
|
1739
|
+
return (v, F) => {
|
|
1740
|
+
const S = q, A = _e;
|
|
1741
|
+
return d(), x(A, j(o, {
|
|
1716
1742
|
onMaximize: u,
|
|
1717
1743
|
onUnmaximize: p,
|
|
1718
1744
|
pt: w.value
|
|
@@ -1736,11 +1762,11 @@ const Lt = {
|
|
|
1736
1762
|
]),
|
|
1737
1763
|
_: 2
|
|
1738
1764
|
}, [
|
|
1739
|
-
|
|
1765
|
+
U(v.$slots, (f, B) => ({
|
|
1740
1766
|
name: B,
|
|
1741
1767
|
fn: g((D) => [
|
|
1742
|
-
B == "default" ? (d(), b(
|
|
1743
|
-
n.value.hasError ? (d(), b("div",
|
|
1768
|
+
B == "default" ? (d(), b(N, { key: 0 }, [
|
|
1769
|
+
n.value.hasError ? (d(), b("div", Et, [
|
|
1744
1770
|
k(re, {
|
|
1745
1771
|
severity: "danger",
|
|
1746
1772
|
"data-cy": "error",
|
|
@@ -1750,16 +1776,16 @@ const Lt = {
|
|
|
1750
1776
|
m("p", {
|
|
1751
1777
|
class: P(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1752
1778
|
}, $(n.value.header), 3),
|
|
1753
|
-
n.value.message.length > 0 ? (d(), b("ul",
|
|
1754
|
-
(d(!0), b(
|
|
1779
|
+
n.value.message.length > 0 ? (d(), b("ul", qt, [
|
|
1780
|
+
(d(!0), b(N, null, U(n.value.message, (y) => (d(), b("li", { key: y }, $(y), 1))), 128))
|
|
1755
1781
|
])) : T("", !0)
|
|
1756
1782
|
]),
|
|
1757
1783
|
_: 1
|
|
1758
1784
|
})
|
|
1759
1785
|
])) : T("", !0)
|
|
1760
1786
|
], 64)) : T("", !0),
|
|
1761
|
-
|
|
1762
|
-
l.value ?
|
|
1787
|
+
C(v.$slots, B, G(Y(D || {}))),
|
|
1788
|
+
l.value ? C(v.$slots, "loader", { key: 1 }, () => [
|
|
1763
1789
|
k(pe, { "data-cy": "loader" })
|
|
1764
1790
|
]) : T("", !0)
|
|
1765
1791
|
])
|
|
@@ -1767,8 +1793,8 @@ const Lt = {
|
|
|
1767
1793
|
v.showFooter ? {
|
|
1768
1794
|
name: "footer",
|
|
1769
1795
|
fn: g(() => [
|
|
1770
|
-
m("div",
|
|
1771
|
-
k(
|
|
1796
|
+
m("div", Rt, [
|
|
1797
|
+
k(S, {
|
|
1772
1798
|
label: v.cancelText,
|
|
1773
1799
|
class: P(o.cancelClass),
|
|
1774
1800
|
outlined: "",
|
|
@@ -1776,7 +1802,7 @@ const Lt = {
|
|
|
1776
1802
|
id: "cancel-button",
|
|
1777
1803
|
type: o.cancelButtonType
|
|
1778
1804
|
}, null, 8, ["label", "class", "type"]),
|
|
1779
|
-
k(
|
|
1805
|
+
k(S, {
|
|
1780
1806
|
label: v.submitText,
|
|
1781
1807
|
class: P([o.submitClass, "ms-auto"]),
|
|
1782
1808
|
onClick: r,
|
|
@@ -1790,7 +1816,7 @@ const Lt = {
|
|
|
1790
1816
|
]), 1040, ["pt"]);
|
|
1791
1817
|
};
|
|
1792
1818
|
}
|
|
1793
|
-
}),
|
|
1819
|
+
}), Ht = ["id"], Wt = { key: 0 }, Gt = { key: 0 }, Yt = { class: "d-flex justify-content-between align-items-center position-relative" }, Jt = { key: 1 }, Kt = { "data-cy": "readonly-value" }, Zt = /* @__PURE__ */ z({
|
|
1794
1820
|
__name: "ForgeInlineEditor",
|
|
1795
1821
|
props: /* @__PURE__ */ E({
|
|
1796
1822
|
name: { default: "" },
|
|
@@ -1805,7 +1831,7 @@ const Lt = {
|
|
|
1805
1831
|
}),
|
|
1806
1832
|
emits: ["update:modelValue"],
|
|
1807
1833
|
setup(e) {
|
|
1808
|
-
const t = e, a =
|
|
1834
|
+
const t = e, a = L(e, "modelValue"), i = _(!1), o = _(), l = () => {
|
|
1809
1835
|
var v;
|
|
1810
1836
|
i.value = !i.value, (v = o.value) == null || v.focus();
|
|
1811
1837
|
}, n = async () => {
|
|
@@ -1829,28 +1855,28 @@ const Lt = {
|
|
|
1829
1855
|
ne(() => {
|
|
1830
1856
|
r.value = a.value;
|
|
1831
1857
|
});
|
|
1832
|
-
const w =
|
|
1833
|
-
return (v,
|
|
1834
|
-
const
|
|
1858
|
+
const w = M(() => h.value.length > 0);
|
|
1859
|
+
return (v, F) => {
|
|
1860
|
+
const S = ae, A = q;
|
|
1835
1861
|
return d(), b("div", {
|
|
1836
1862
|
id: t.name
|
|
1837
1863
|
}, [
|
|
1838
|
-
v.readonly ? (d(), b("div",
|
|
1839
|
-
|
|
1840
|
-
m("span",
|
|
1864
|
+
v.readonly ? (d(), b("div", Jt, [
|
|
1865
|
+
C(v.$slots, "default", {}, () => [
|
|
1866
|
+
m("span", Kt, $(c(r)), 1)
|
|
1841
1867
|
])
|
|
1842
|
-
])) : (d(), b("div",
|
|
1843
|
-
i.value ? (d(), b("div",
|
|
1844
|
-
K((d(), b("div",
|
|
1845
|
-
|
|
1868
|
+
])) : (d(), b("div", Wt, [
|
|
1869
|
+
i.value ? (d(), b("div", Gt, [
|
|
1870
|
+
K((d(), b("div", Yt, [
|
|
1871
|
+
C(v.$slots, "editor", {
|
|
1846
1872
|
class: P({ "is-invalid": w.value }),
|
|
1847
1873
|
editFinished: n,
|
|
1848
1874
|
cancel: s,
|
|
1849
1875
|
val: c(r)
|
|
1850
1876
|
}, () => [
|
|
1851
|
-
k(
|
|
1877
|
+
k(S, {
|
|
1852
1878
|
modelValue: c(r),
|
|
1853
|
-
"onUpdate:modelValue":
|
|
1879
|
+
"onUpdate:modelValue": F[0] || (F[0] = (f) => Se(r) ? r.value = f : null),
|
|
1854
1880
|
modelModifiers: { trim: !0 },
|
|
1855
1881
|
"data-cy": "input",
|
|
1856
1882
|
ref_key: "input",
|
|
@@ -1878,7 +1904,7 @@ const Lt = {
|
|
|
1878
1904
|
onClick: l,
|
|
1879
1905
|
onFocus: l
|
|
1880
1906
|
}, [
|
|
1881
|
-
|
|
1907
|
+
C(v.$slots, "default", {}, () => [
|
|
1882
1908
|
m("div", {
|
|
1883
1909
|
class: P(["pe-2 cursor-pointer", { "text-invalid": w.value }]),
|
|
1884
1910
|
"data-cy": "value"
|
|
@@ -1906,10 +1932,10 @@ const Lt = {
|
|
|
1906
1932
|
}, $(c(u)), 513), [
|
|
1907
1933
|
[X, w.value]
|
|
1908
1934
|
])
|
|
1909
|
-
], 8,
|
|
1935
|
+
], 8, Ht);
|
|
1910
1936
|
};
|
|
1911
1937
|
}
|
|
1912
|
-
}),
|
|
1938
|
+
}), Xt = ["href"], vo = /* @__PURE__ */ z({
|
|
1913
1939
|
__name: "ForgeNavbar",
|
|
1914
1940
|
props: {
|
|
1915
1941
|
severity: { default: "light" },
|
|
@@ -1926,7 +1952,7 @@ const Lt = {
|
|
|
1926
1952
|
unstyled: { type: Boolean }
|
|
1927
1953
|
},
|
|
1928
1954
|
setup(e) {
|
|
1929
|
-
const t = e, a =
|
|
1955
|
+
const t = e, a = M(() => ({
|
|
1930
1956
|
root: () => ({
|
|
1931
1957
|
class: [
|
|
1932
1958
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1954,7 +1980,7 @@ const Lt = {
|
|
|
1954
1980
|
]
|
|
1955
1981
|
})
|
|
1956
1982
|
}));
|
|
1957
|
-
return (i, o) => (d(), x(c(Ve),
|
|
1983
|
+
return (i, o) => (d(), x(c(Ve), j({ ...t, ...i.$attrs }, {
|
|
1958
1984
|
pt: a.value,
|
|
1959
1985
|
"data-cy": "navbar"
|
|
1960
1986
|
}), ie({
|
|
@@ -1964,13 +1990,13 @@ const Lt = {
|
|
|
1964
1990
|
class: "navbar-brand ms-3",
|
|
1965
1991
|
"data-cy": "logo"
|
|
1966
1992
|
}, [
|
|
1967
|
-
|
|
1993
|
+
C(i.$slots, "logo", {}, () => [
|
|
1968
1994
|
o[0] || (o[0] = V(" Logo "))
|
|
1969
1995
|
])
|
|
1970
|
-
], 8,
|
|
1996
|
+
], 8, Xt)
|
|
1971
1997
|
]),
|
|
1972
1998
|
buttonicon: g(() => [
|
|
1973
|
-
|
|
1999
|
+
C(i.$slots, "buttonIcon", {}, () => [
|
|
1974
2000
|
k(c(I), {
|
|
1975
2001
|
icon: "bi:list",
|
|
1976
2002
|
class: P(t.severity === "light" ? "text-black" : "text-white"),
|
|
@@ -1981,22 +2007,22 @@ const Lt = {
|
|
|
1981
2007
|
]),
|
|
1982
2008
|
_: 2
|
|
1983
2009
|
}, [
|
|
1984
|
-
|
|
2010
|
+
U(i.$slots, (l, n) => ({
|
|
1985
2011
|
name: n,
|
|
1986
2012
|
fn: g((s) => [
|
|
1987
|
-
|
|
2013
|
+
C(i.$slots, n, G(Y(s)))
|
|
1988
2014
|
])
|
|
1989
2015
|
}))
|
|
1990
2016
|
]), 1040, ["pt"]));
|
|
1991
2017
|
}
|
|
1992
|
-
}),
|
|
2018
|
+
}), Qt = { class: "border alternating-item-list" }, ea = {
|
|
1993
2019
|
key: 0,
|
|
1994
2020
|
class: "p-2 border-top border-bottom",
|
|
1995
2021
|
"data-cy": "title"
|
|
1996
|
-
},
|
|
2022
|
+
}, ta = { class: "d-inline-block" }, aa = {
|
|
1997
2023
|
key: 1,
|
|
1998
2024
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1999
|
-
},
|
|
2025
|
+
}, ia = /* @__PURE__ */ z({
|
|
2000
2026
|
__name: "ForgeMultiSelectPreview",
|
|
2001
2027
|
props: /* @__PURE__ */ E({
|
|
2002
2028
|
title: { default: "Selected Items" },
|
|
@@ -2012,7 +2038,7 @@ const Lt = {
|
|
|
2012
2038
|
}),
|
|
2013
2039
|
emits: ["update:modelValue"],
|
|
2014
2040
|
setup(e) {
|
|
2015
|
-
const t = e, a =
|
|
2041
|
+
const t = e, a = L(e, "modelValue"), i = (o) => {
|
|
2016
2042
|
a.value = a.value.filter((l) => l.id !== o);
|
|
2017
2043
|
};
|
|
2018
2044
|
return (o, l) => {
|
|
@@ -2025,7 +2051,7 @@ const Lt = {
|
|
|
2025
2051
|
class: P(o.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
2026
2052
|
"data-cy": "multiselect-container"
|
|
2027
2053
|
}, [
|
|
2028
|
-
k(n,
|
|
2054
|
+
k(n, j({
|
|
2029
2055
|
modelValue: a.value,
|
|
2030
2056
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => a.value = p)
|
|
2031
2057
|
}, { ...o.$attrs }, {
|
|
@@ -2035,11 +2061,11 @@ const Lt = {
|
|
|
2035
2061
|
"data-cy": "multiselect"
|
|
2036
2062
|
}), {
|
|
2037
2063
|
default: g(() => [
|
|
2038
|
-
(d(!0), b(
|
|
2064
|
+
(d(!0), b(N, null, U(o.$slots, (p, u) => C(o.$slots, u, { slot: u })), 256))
|
|
2039
2065
|
]),
|
|
2040
2066
|
_: 3
|
|
2041
2067
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
2042
|
-
|
|
2068
|
+
C(o.$slots, "after-multi-select")
|
|
2043
2069
|
], 2),
|
|
2044
2070
|
m("div", {
|
|
2045
2071
|
class: P(o.orientation === "row" ? "col-12" : "col"),
|
|
@@ -2049,14 +2075,14 @@ const Lt = {
|
|
|
2049
2075
|
style: Fe({ height: o.height }),
|
|
2050
2076
|
class: "overflow-auto"
|
|
2051
2077
|
}, [
|
|
2052
|
-
m("div",
|
|
2053
|
-
o.title ? (d(), b("div",
|
|
2054
|
-
(d(!0), b(
|
|
2078
|
+
m("div", Qt, [
|
|
2079
|
+
o.title ? (d(), b("div", ea, $(o.title), 1)) : T("", !0),
|
|
2080
|
+
(d(!0), b(N, null, U(a.value, (p) => (d(), b("div", {
|
|
2055
2081
|
key: p.id,
|
|
2056
2082
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
2057
2083
|
}, [
|
|
2058
|
-
|
|
2059
|
-
m("span",
|
|
2084
|
+
C(o.$slots, "list-item", { item: p }, () => [
|
|
2085
|
+
m("span", ta, $(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
2060
2086
|
]),
|
|
2061
2087
|
o.canRemoveItemFromPreview ? (d(), x(s, {
|
|
2062
2088
|
key: 0,
|
|
@@ -2074,34 +2100,34 @@ const Lt = {
|
|
|
2074
2100
|
_: 2
|
|
2075
2101
|
}, 1032, ["onClick"])) : T("", !0)
|
|
2076
2102
|
]))), 128)),
|
|
2077
|
-
a.value == null || a.value.length == 0 ? (d(), b("div",
|
|
2103
|
+
a.value == null || a.value.length == 0 ? (d(), b("div", aa, $(t.optionsPreviewEmptyText), 1)) : T("", !0)
|
|
2078
2104
|
])
|
|
2079
2105
|
], 4)
|
|
2080
2106
|
], 2)
|
|
2081
2107
|
], 2);
|
|
2082
2108
|
};
|
|
2083
2109
|
}
|
|
2084
|
-
}),
|
|
2110
|
+
}), oa = { class: "d-flex justify-content-between pb-2" }, la = {
|
|
2085
2111
|
"data-cy": "title",
|
|
2086
2112
|
class: "my-auto"
|
|
2087
|
-
},
|
|
2113
|
+
}, na = {
|
|
2088
2114
|
"data-cy": "slot",
|
|
2089
2115
|
class: "d-flex align-items-center"
|
|
2090
|
-
},
|
|
2116
|
+
}, fo = /* @__PURE__ */ z({
|
|
2091
2117
|
__name: "ForgePageHeader",
|
|
2092
2118
|
props: {
|
|
2093
2119
|
title: {}
|
|
2094
2120
|
},
|
|
2095
2121
|
setup(e) {
|
|
2096
2122
|
const t = e;
|
|
2097
|
-
return (a, i) => (d(), b("div",
|
|
2098
|
-
m("h3",
|
|
2099
|
-
m("div",
|
|
2100
|
-
|
|
2123
|
+
return (a, i) => (d(), b("div", oa, [
|
|
2124
|
+
m("h3", la, $(t.title), 1),
|
|
2125
|
+
m("div", na, [
|
|
2126
|
+
C(a.$slots, "default")
|
|
2101
2127
|
])
|
|
2102
2128
|
]));
|
|
2103
2129
|
}
|
|
2104
|
-
}),
|
|
2130
|
+
}), sa = { class: "d-flex flex-1" }, ra = { "data-cy": "before-slot" }, da = { class: "position-relative d-flex flex-1" }, pa = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ z({
|
|
2105
2131
|
__name: "ForgeDatepicker",
|
|
2106
2132
|
props: /* @__PURE__ */ E({
|
|
2107
2133
|
severity: { default: "primary" },
|
|
@@ -2176,11 +2202,11 @@ const Lt = {
|
|
|
2176
2202
|
}),
|
|
2177
2203
|
emits: ["update:modelValue"],
|
|
2178
2204
|
setup(e) {
|
|
2179
|
-
const t = e, a =
|
|
2205
|
+
const t = e, a = L(e, "modelValue"), { errors: i, errorMessage: o, handleChange: l, handleBlur: n, setValue: s } = se(() => t.name, void 0, {
|
|
2180
2206
|
initialValue: a.value
|
|
2181
2207
|
}), p = () => {
|
|
2182
2208
|
s(null), a.value = null;
|
|
2183
|
-
}, u =
|
|
2209
|
+
}, u = M(() => i.value.length > 0), h = M(() => ({
|
|
2184
2210
|
day: ({ context: r, props: w, attrs: v }) => ({
|
|
2185
2211
|
class: [
|
|
2186
2212
|
"d-flex justify-content-center align-items-center",
|
|
@@ -2287,17 +2313,17 @@ const Lt = {
|
|
|
2287
2313
|
}));
|
|
2288
2314
|
return (r, w) => {
|
|
2289
2315
|
const v = De;
|
|
2290
|
-
return d(), b(
|
|
2291
|
-
m("div",
|
|
2292
|
-
m("span",
|
|
2293
|
-
|
|
2316
|
+
return d(), b(N, null, [
|
|
2317
|
+
m("div", sa, [
|
|
2318
|
+
m("span", ra, [
|
|
2319
|
+
C(r.$slots, "before")
|
|
2294
2320
|
]),
|
|
2295
|
-
m("div",
|
|
2296
|
-
k(v,
|
|
2321
|
+
m("div", da, [
|
|
2322
|
+
k(v, j({ ...t, ...r.$attrs }, {
|
|
2297
2323
|
pt: h.value,
|
|
2298
2324
|
modelValue: a.value,
|
|
2299
2325
|
"onUpdate:modelValue": [
|
|
2300
|
-
w[0] || (w[0] = (
|
|
2326
|
+
w[0] || (w[0] = (F) => a.value = F),
|
|
2301
2327
|
c(l)
|
|
2302
2328
|
],
|
|
2303
2329
|
onBlur: w[1] || (w[1] = () => c(n)),
|
|
@@ -2319,8 +2345,8 @@ const Lt = {
|
|
|
2319
2345
|
[X, t.modelValue && !t.inline && !r.readonly]
|
|
2320
2346
|
])
|
|
2321
2347
|
]),
|
|
2322
|
-
m("span",
|
|
2323
|
-
|
|
2348
|
+
m("span", pa, [
|
|
2349
|
+
C(r.$slots, "after")
|
|
2324
2350
|
])
|
|
2325
2351
|
]),
|
|
2326
2352
|
K(m("small", {
|
|
@@ -2332,19 +2358,19 @@ const Lt = {
|
|
|
2332
2358
|
], 64);
|
|
2333
2359
|
};
|
|
2334
2360
|
}
|
|
2335
|
-
}),
|
|
2361
|
+
}), go = /* @__PURE__ */ z({
|
|
2336
2362
|
__name: "ForgeRemainingCharacters",
|
|
2337
2363
|
props: {
|
|
2338
2364
|
maxCount: { default: 300 },
|
|
2339
2365
|
currentCount: {}
|
|
2340
2366
|
},
|
|
2341
2367
|
setup(e) {
|
|
2342
|
-
const t = e, a =
|
|
2368
|
+
const t = e, a = M(() => t.maxCount - t.currentCount);
|
|
2343
2369
|
return (i, o) => (d(), b("div", {
|
|
2344
2370
|
class: P(a.value < 0 ? "text-danger" : "")
|
|
2345
2371
|
}, "Remaining characters: " + $(a.value), 3));
|
|
2346
2372
|
}
|
|
2347
|
-
}),
|
|
2373
|
+
}), ca = { class: "d-flex justify-content-between" }, bo = /* @__PURE__ */ z({
|
|
2348
2374
|
__name: "ForgeForm",
|
|
2349
2375
|
props: {
|
|
2350
2376
|
onSubmit: {},
|
|
@@ -2356,7 +2382,7 @@ const Lt = {
|
|
|
2356
2382
|
hideCancel: { type: Boolean, default: !1 }
|
|
2357
2383
|
},
|
|
2358
2384
|
setup(e) {
|
|
2359
|
-
const t = e, a =
|
|
2385
|
+
const t = e, a = _(!1), i = _({
|
|
2360
2386
|
hasError: !1,
|
|
2361
2387
|
message: ""
|
|
2362
2388
|
});
|
|
@@ -2371,13 +2397,13 @@ const Lt = {
|
|
|
2371
2397
|
}
|
|
2372
2398
|
return (l, n) => {
|
|
2373
2399
|
const s = q;
|
|
2374
|
-
return d(), b("form",
|
|
2400
|
+
return d(), b("form", j(l.$attrs, {
|
|
2375
2401
|
novalidate: "",
|
|
2376
2402
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2377
2403
|
onSubmit: Q(o, ["prevent"])
|
|
2378
2404
|
}), [
|
|
2379
|
-
l.hideTitle ? T("", !0) : (d(), b(
|
|
2380
|
-
|
|
2405
|
+
l.hideTitle ? T("", !0) : (d(), b(N, { key: 0 }, [
|
|
2406
|
+
C(l.$slots, "title", {}, () => [
|
|
2381
2407
|
m("h3", {
|
|
2382
2408
|
class: P(l.titleClass),
|
|
2383
2409
|
"data-cy": "form-title"
|
|
@@ -2391,7 +2417,7 @@ const Lt = {
|
|
|
2391
2417
|
"data-cy": "error"
|
|
2392
2418
|
}, {
|
|
2393
2419
|
default: g(() => [
|
|
2394
|
-
|
|
2420
|
+
C(l.$slots, "error", {
|
|
2395
2421
|
error: i.value.message
|
|
2396
2422
|
}, () => [
|
|
2397
2423
|
V($(i.value.message), 1)
|
|
@@ -2399,9 +2425,9 @@ const Lt = {
|
|
|
2399
2425
|
]),
|
|
2400
2426
|
_: 3
|
|
2401
2427
|
})) : T("", !0),
|
|
2402
|
-
|
|
2403
|
-
m("div",
|
|
2404
|
-
|
|
2428
|
+
C(l.$slots, "default"),
|
|
2429
|
+
m("div", ca, [
|
|
2430
|
+
C(l.$slots, "cancel", {}, () => [
|
|
2405
2431
|
l.hideCancel ? T("", !0) : (d(), x(s, {
|
|
2406
2432
|
key: 0,
|
|
2407
2433
|
"data-cy": "cancel-btn",
|
|
@@ -2416,7 +2442,7 @@ const Lt = {
|
|
|
2416
2442
|
_: 1
|
|
2417
2443
|
}))
|
|
2418
2444
|
]),
|
|
2419
|
-
|
|
2445
|
+
C(l.$slots, "submit", { submit: o }, () => [
|
|
2420
2446
|
k(s, {
|
|
2421
2447
|
"data-cy": "submit-btn",
|
|
2422
2448
|
type: "submit",
|
|
@@ -2437,13 +2463,13 @@ const Lt = {
|
|
|
2437
2463
|
], 16);
|
|
2438
2464
|
};
|
|
2439
2465
|
}
|
|
2440
|
-
}),
|
|
2466
|
+
}), ua = {
|
|
2441
2467
|
key: 1,
|
|
2442
2468
|
class: "d-flex flex-column w-100"
|
|
2443
|
-
},
|
|
2469
|
+
}, ma = ["for"], va = {
|
|
2444
2470
|
key: 0,
|
|
2445
2471
|
class: "text-danger fw-600"
|
|
2446
|
-
},
|
|
2472
|
+
}, yo = /* @__PURE__ */ z({
|
|
2447
2473
|
__name: "ForgeFormField",
|
|
2448
2474
|
props: /* @__PURE__ */ E({
|
|
2449
2475
|
name: {},
|
|
@@ -2460,16 +2486,16 @@ const Lt = {
|
|
|
2460
2486
|
}),
|
|
2461
2487
|
emits: ["update:modelValue"],
|
|
2462
2488
|
setup(e) {
|
|
2463
|
-
const t =
|
|
2489
|
+
const t = L(e, "modelValue"), a = e, i = (h) => {
|
|
2464
2490
|
a.type == "number" ? s(h.value) : s(h);
|
|
2465
2491
|
}, { errors: o, value: l, errorMessage: n, handleChange: s, handleBlur: p } = se(() => a.name, void 0, {
|
|
2466
2492
|
initialValue: t.value
|
|
2467
|
-
}), u =
|
|
2493
|
+
}), u = M(() => o.value.length > 0);
|
|
2468
2494
|
return W(() => l.value, (h) => {
|
|
2469
2495
|
t.value = h;
|
|
2470
2496
|
}, { immediate: !0 }), (h, r) => {
|
|
2471
|
-
const w = Ae, v = Oe,
|
|
2472
|
-
return a.type === "checkbox" ? (d(), x(ye,
|
|
2497
|
+
const w = Ae, v = Oe, F = ae, S = oe, A = de, f = xe;
|
|
2498
|
+
return a.type === "checkbox" ? (d(), x(ye, j({
|
|
2473
2499
|
key: 0,
|
|
2474
2500
|
id: a.name,
|
|
2475
2501
|
label: a.fieldLabel
|
|
@@ -2477,7 +2503,7 @@ const Lt = {
|
|
|
2477
2503
|
name: a.name,
|
|
2478
2504
|
modelValue: t.value,
|
|
2479
2505
|
"onUpdate:modelValue": r[0] || (r[0] = (B) => t.value = B)
|
|
2480
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div",
|
|
2506
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div", ua, [
|
|
2481
2507
|
m("div", {
|
|
2482
2508
|
"data-cy": "input-wrapper",
|
|
2483
2509
|
class: P(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2487,10 +2513,10 @@ const Lt = {
|
|
|
2487
2513
|
class: P(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2488
2514
|
}, [
|
|
2489
2515
|
V($(a.fieldLabel) + " ", 1),
|
|
2490
|
-
h.required ? (d(), b("span",
|
|
2491
|
-
], 10,
|
|
2492
|
-
|
|
2493
|
-
a.type === "number" ? (d(), x(c(fe),
|
|
2516
|
+
h.required ? (d(), b("span", va, "*")) : T("", !0)
|
|
2517
|
+
], 10, ma),
|
|
2518
|
+
C(h.$slots, "default", G(Y({ modelValue: t.value, updateModel: c(s), hasErrors: u.value })), () => [
|
|
2519
|
+
a.type === "number" ? (d(), x(c(fe), j({
|
|
2494
2520
|
key: 0,
|
|
2495
2521
|
id: a.name
|
|
2496
2522
|
}, h.$attrs, {
|
|
@@ -2500,7 +2526,7 @@ const Lt = {
|
|
|
2500
2526
|
onInput: i,
|
|
2501
2527
|
modelValue: t.value,
|
|
2502
2528
|
"onUpdate:modelValue": r[1] || (r[1] = (B) => t.value = B)
|
|
2503
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), x(w,
|
|
2529
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), x(w, j({
|
|
2504
2530
|
key: 1,
|
|
2505
2531
|
id: a.name
|
|
2506
2532
|
}, h.$attrs, {
|
|
@@ -2510,7 +2536,7 @@ const Lt = {
|
|
|
2510
2536
|
"onUpdate:modelValue": r[2] || (r[2] = (B) => t.value = B),
|
|
2511
2537
|
onInput: i,
|
|
2512
2538
|
onBlur: c(p)
|
|
2513
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), x(v,
|
|
2539
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), x(v, j({
|
|
2514
2540
|
key: 2,
|
|
2515
2541
|
id: a.name
|
|
2516
2542
|
}, h.$attrs, {
|
|
@@ -2521,7 +2547,7 @@ const Lt = {
|
|
|
2521
2547
|
"onUpdate:modelValue": r[3] || (r[3] = (B) => t.value = B),
|
|
2522
2548
|
onComplete: i,
|
|
2523
2549
|
onBlur: c(p)
|
|
2524
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(
|
|
2550
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(F, j({
|
|
2525
2551
|
key: 3,
|
|
2526
2552
|
id: a.name
|
|
2527
2553
|
}, h.$attrs, {
|
|
@@ -2531,19 +2557,19 @@ const Lt = {
|
|
|
2531
2557
|
"onUpdate:modelValue": r[4] || (r[4] = (B) => t.value = B),
|
|
2532
2558
|
onInput: i,
|
|
2533
2559
|
onBlur: c(p)
|
|
2534
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(
|
|
2560
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(S, j({ key: 4 }, { ...a, ...h.$attrs }, {
|
|
2535
2561
|
modelValue: t.value,
|
|
2536
2562
|
"onUpdate:modelValue": r[5] || (r[5] = (B) => t.value = B),
|
|
2537
2563
|
class: { "is-invalid": u.value }
|
|
2538
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), x(A,
|
|
2564
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), x(A, j({ key: 5 }, { ...a, ...h.$attrs }, {
|
|
2539
2565
|
modelValue: t.value,
|
|
2540
2566
|
"onUpdate:modelValue": r[6] || (r[6] = (B) => t.value = B),
|
|
2541
2567
|
class: { "is-invalid": u.value }
|
|
2542
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(
|
|
2568
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(ia, j({ key: 6 }, { ...a, ...h.$attrs }, {
|
|
2543
2569
|
modelValue: t.value,
|
|
2544
2570
|
"onUpdate:modelValue": r[7] || (r[7] = (B) => t.value = B),
|
|
2545
2571
|
class: { "is-invalid": u.value }
|
|
2546
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), x(f,
|
|
2572
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), x(f, j({ key: 7 }, { ...a, ...h.$attrs }, {
|
|
2547
2573
|
modelValue: t.value,
|
|
2548
2574
|
"onUpdate:modelValue": r[8] || (r[8] = (B) => t.value = B),
|
|
2549
2575
|
class: { "is-invalid": u.value }
|
|
@@ -2559,7 +2585,7 @@ const Lt = {
|
|
|
2559
2585
|
]));
|
|
2560
2586
|
};
|
|
2561
2587
|
}
|
|
2562
|
-
}),
|
|
2588
|
+
}), xo = /* @__PURE__ */ z({
|
|
2563
2589
|
__name: "ForgeChip",
|
|
2564
2590
|
props: {
|
|
2565
2591
|
chipSeverity: { default: "primary" },
|
|
@@ -2575,7 +2601,7 @@ const Lt = {
|
|
|
2575
2601
|
unstyled: { type: Boolean }
|
|
2576
2602
|
},
|
|
2577
2603
|
setup(e) {
|
|
2578
|
-
const t = e, a =
|
|
2604
|
+
const t = e, a = M(() => ({
|
|
2579
2605
|
root: [
|
|
2580
2606
|
"badge d-inline-flex align-items-center border me-1 p-1",
|
|
2581
2607
|
{
|
|
@@ -2594,16 +2620,16 @@ const Lt = {
|
|
|
2594
2620
|
]
|
|
2595
2621
|
}));
|
|
2596
2622
|
return (i, o) => {
|
|
2597
|
-
const l =
|
|
2598
|
-
return d(), x(l,
|
|
2623
|
+
const l = Le;
|
|
2624
|
+
return d(), x(l, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2599
2625
|
default: g(() => [
|
|
2600
|
-
(d(!0), b(
|
|
2626
|
+
(d(!0), b(N, null, U(i.$slots, (n, s) => C(i.$slots, s, { slot: s })), 256))
|
|
2601
2627
|
]),
|
|
2602
2628
|
_: 3
|
|
2603
2629
|
}, 16, ["pt"]);
|
|
2604
2630
|
};
|
|
2605
2631
|
}
|
|
2606
|
-
}),
|
|
2632
|
+
}), ho = /* @__PURE__ */ z({
|
|
2607
2633
|
__name: "ForgeProgressBar",
|
|
2608
2634
|
props: {
|
|
2609
2635
|
severity: { default: "primary" },
|
|
@@ -2619,7 +2645,7 @@ const Lt = {
|
|
|
2619
2645
|
unstyled: { type: Boolean }
|
|
2620
2646
|
},
|
|
2621
2647
|
setup(e) {
|
|
2622
|
-
const t = e, a =
|
|
2648
|
+
const t = e, a = M(() => t.striped ? "progress-bar-striped" : null), i = M(() => t.animate ? "progress-bar-animated" : null), o = M(() => {
|
|
2623
2649
|
switch (t.severity) {
|
|
2624
2650
|
case "brand":
|
|
2625
2651
|
return "bg-brand";
|
|
@@ -2640,7 +2666,7 @@ const Lt = {
|
|
|
2640
2666
|
default:
|
|
2641
2667
|
return "bg-primary";
|
|
2642
2668
|
}
|
|
2643
|
-
}), l =
|
|
2669
|
+
}), l = M(() => ({
|
|
2644
2670
|
root: {
|
|
2645
2671
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2646
2672
|
},
|
|
@@ -2649,17 +2675,17 @@ const Lt = {
|
|
|
2649
2675
|
}
|
|
2650
2676
|
}));
|
|
2651
2677
|
return (n, s) => {
|
|
2652
|
-
const p =
|
|
2653
|
-
return d(), x(p,
|
|
2678
|
+
const p = Ne;
|
|
2679
|
+
return d(), x(p, j({ ...n.$attrs, ...t }, { pt: l.value }), {
|
|
2654
2680
|
default: g(() => [
|
|
2655
|
-
|
|
2681
|
+
C(n.$slots, "default")
|
|
2656
2682
|
]),
|
|
2657
2683
|
_: 3
|
|
2658
2684
|
}, 16, ["pt"]);
|
|
2659
2685
|
};
|
|
2660
2686
|
}
|
|
2661
2687
|
});
|
|
2662
|
-
var
|
|
2688
|
+
var fa = /* @__PURE__ */ z({
|
|
2663
2689
|
name: "VueDrawingCanvas",
|
|
2664
2690
|
props: {
|
|
2665
2691
|
strokeType: {
|
|
@@ -2972,11 +2998,11 @@ var va = /* @__PURE__ */ z({
|
|
|
2972
2998
|
},
|
|
2973
2999
|
wrapText(e, t, a, i, o, l) {
|
|
2974
3000
|
const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2975
|
-
var p = t.split(n).filter((
|
|
2976
|
-
for (let
|
|
2977
|
-
for (var u = p[
|
|
2978
|
-
var w = h + u[r] + " ", v = e.measureText(w),
|
|
2979
|
-
|
|
3001
|
+
var p = t.split(n).filter((S) => S.length > 0);
|
|
3002
|
+
for (let S = 0; S < p.length; S++) {
|
|
3003
|
+
for (var u = p[S].split(s).filter((A) => A.length > 0), h = "", r = 0; r < u.length; r++) {
|
|
3004
|
+
var w = h + u[r] + " ", v = e.measureText(w), F = v.width;
|
|
3005
|
+
F > 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;
|
|
2980
3006
|
}
|
|
2981
3007
|
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;
|
|
2982
3008
|
}
|
|
@@ -3049,7 +3075,7 @@ var va = /* @__PURE__ */ z({
|
|
|
3049
3075
|
});
|
|
3050
3076
|
}
|
|
3051
3077
|
});
|
|
3052
|
-
const
|
|
3078
|
+
const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1 gap-1" }, wo = /* @__PURE__ */ z({
|
|
3053
3079
|
__name: "ForgeScratchpad",
|
|
3054
3080
|
props: {
|
|
3055
3081
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -3062,7 +3088,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3062
3088
|
},
|
|
3063
3089
|
emits: ["save"],
|
|
3064
3090
|
setup(e, { emit: t }) {
|
|
3065
|
-
const a = e, i = t, o = Te("drawingCanvas"), l =
|
|
3091
|
+
const a = e, i = t, o = Te("drawingCanvas"), l = _(), n = () => {
|
|
3066
3092
|
o == null || o.value.reset();
|
|
3067
3093
|
}, s = () => {
|
|
3068
3094
|
o == null || o.value.redo();
|
|
@@ -3073,8 +3099,8 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3073
3099
|
};
|
|
3074
3100
|
return (h, r) => {
|
|
3075
3101
|
const w = q;
|
|
3076
|
-
return d(), b("div",
|
|
3077
|
-
k(c(
|
|
3102
|
+
return d(), b("div", ga, [
|
|
3103
|
+
k(c(fa), j({
|
|
3078
3104
|
ref_key: "drawingCanvas",
|
|
3079
3105
|
ref: o,
|
|
3080
3106
|
image: l.value,
|
|
@@ -3087,7 +3113,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3087
3113
|
style: `height: ${h.height}px; width: ${h.width}px`,
|
|
3088
3114
|
"line-join": h.lineJoin
|
|
3089
3115
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
3090
|
-
m("div",
|
|
3116
|
+
m("div", ba, [
|
|
3091
3117
|
a.showUndo ? (d(), x(w, {
|
|
3092
3118
|
key: 0,
|
|
3093
3119
|
onClick: p,
|
|
@@ -3140,7 +3166,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3140
3166
|
]);
|
|
3141
3167
|
};
|
|
3142
3168
|
}
|
|
3143
|
-
}),
|
|
3169
|
+
}), ya = { class: "value text-white w-100 text-center" }, ko = /* @__PURE__ */ z({
|
|
3144
3170
|
__name: "ForgeStatWidget",
|
|
3145
3171
|
props: {
|
|
3146
3172
|
size: { default: "md" },
|
|
@@ -3148,15 +3174,15 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3148
3174
|
},
|
|
3149
3175
|
setup(e) {
|
|
3150
3176
|
const t = e;
|
|
3151
|
-
return (a, i) => (d(), b("div",
|
|
3177
|
+
return (a, i) => (d(), b("div", j(a.$attrs, {
|
|
3152
3178
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3153
3179
|
}), [
|
|
3154
|
-
m("span",
|
|
3155
|
-
|
|
3180
|
+
m("span", ya, [
|
|
3181
|
+
C(a.$slots, "default")
|
|
3156
3182
|
])
|
|
3157
3183
|
], 16));
|
|
3158
3184
|
}
|
|
3159
|
-
}),
|
|
3185
|
+
}), xa = { key: 0 }, Bo = /* @__PURE__ */ z({
|
|
3160
3186
|
__name: "ForgeStepper",
|
|
3161
3187
|
props: {
|
|
3162
3188
|
currentStep: { default: 1 },
|
|
@@ -3174,7 +3200,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3174
3200
|
unstyled: { type: Boolean }
|
|
3175
3201
|
},
|
|
3176
3202
|
setup(e) {
|
|
3177
|
-
const t = e, a =
|
|
3203
|
+
const t = e, a = M(() => ({
|
|
3178
3204
|
header: {
|
|
3179
3205
|
class: [
|
|
3180
3206
|
"p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
|
|
@@ -3207,13 +3233,13 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3207
3233
|
default: g(() => [
|
|
3208
3234
|
k(c(qe), null, {
|
|
3209
3235
|
default: g(() => [
|
|
3210
|
-
(d(!0), b(
|
|
3236
|
+
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(Ue), j({
|
|
3211
3237
|
key: l.value,
|
|
3212
3238
|
value: l.value,
|
|
3213
3239
|
disabled: l.disabled
|
|
3214
3240
|
}, { ref_for: !0 }, { ...i.$attrs }, { pt: a.value }), {
|
|
3215
3241
|
default: g(() => [
|
|
3216
|
-
i.showStepLabel ? (d(), b("div",
|
|
3242
|
+
i.showStepLabel ? (d(), b("div", xa, $(l.label), 1)) : T("", !0)
|
|
3217
3243
|
]),
|
|
3218
3244
|
_: 2
|
|
3219
3245
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -3222,12 +3248,12 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3222
3248
|
}),
|
|
3223
3249
|
k(c(He), null, {
|
|
3224
3250
|
default: g(() => [
|
|
3225
|
-
(d(!0), b(
|
|
3251
|
+
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(Re), {
|
|
3226
3252
|
key: l.value,
|
|
3227
3253
|
value: l.value
|
|
3228
3254
|
}, {
|
|
3229
3255
|
default: g(() => [
|
|
3230
|
-
|
|
3256
|
+
C(i.$slots, "step" + l.value)
|
|
3231
3257
|
]),
|
|
3232
3258
|
_: 2
|
|
3233
3259
|
}, 1032, ["value"]))), 128))
|
|
@@ -3238,7 +3264,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3238
3264
|
_: 3
|
|
3239
3265
|
}, 8, ["value"]));
|
|
3240
3266
|
}
|
|
3241
|
-
}),
|
|
3267
|
+
}), ha = { class: "p-4 text-wrap w-100" }, wa = { class: "p-4 text-wrap w-100" }, $o = /* @__PURE__ */ z({
|
|
3242
3268
|
__name: "ForgeTile",
|
|
3243
3269
|
props: {
|
|
3244
3270
|
severity: { default: "primary" },
|
|
@@ -3247,7 +3273,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3247
3273
|
selected: { type: Boolean, default: !1 }
|
|
3248
3274
|
},
|
|
3249
3275
|
setup(e) {
|
|
3250
|
-
const t = e, a =
|
|
3276
|
+
const t = e, a = M(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = M(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
3251
3277
|
return (o, l) => {
|
|
3252
3278
|
const n = q;
|
|
3253
3279
|
return t.clickable ? (d(), x(n, {
|
|
@@ -3258,8 +3284,8 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3258
3284
|
"data-cy": "button-tile"
|
|
3259
3285
|
}, {
|
|
3260
3286
|
default: g(() => [
|
|
3261
|
-
m("div",
|
|
3262
|
-
|
|
3287
|
+
m("div", ha, [
|
|
3288
|
+
C(o.$slots, "default", {}, () => [
|
|
3263
3289
|
l[0] || (l[0] = V("Tile Content"))
|
|
3264
3290
|
])
|
|
3265
3291
|
])
|
|
@@ -3270,8 +3296,8 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3270
3296
|
class: P(["d-flex w-100", i.value]),
|
|
3271
3297
|
"data-cy": "tile"
|
|
3272
3298
|
}, [
|
|
3273
|
-
m("div",
|
|
3274
|
-
|
|
3299
|
+
m("div", wa, [
|
|
3300
|
+
C(o.$slots, "default", {}, () => [
|
|
3275
3301
|
l[1] || (l[1] = V("Tile Content"))
|
|
3276
3302
|
])
|
|
3277
3303
|
])
|
|
@@ -3282,10 +3308,10 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3282
3308
|
function ee(e, t) {
|
|
3283
3309
|
return e > 1 ? `${t}s` : t;
|
|
3284
3310
|
}
|
|
3285
|
-
const
|
|
3311
|
+
const ka = {
|
|
3286
3312
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3287
3313
|
"data-cy": "pagination-header"
|
|
3288
|
-
},
|
|
3314
|
+
}, Ba = { class: "ms-2" }, $a = { key: 0 }, Sa = {
|
|
3289
3315
|
class: "w-auto",
|
|
3290
3316
|
"data-cy": "total"
|
|
3291
3317
|
}, he = /* @__PURE__ */ z({
|
|
@@ -3299,13 +3325,13 @@ const wa = {
|
|
|
3299
3325
|
setup(e, { emit: t }) {
|
|
3300
3326
|
const a = t, i = e, o = (n) => {
|
|
3301
3327
|
a("update:perPage", n.value);
|
|
3302
|
-
}, l =
|
|
3328
|
+
}, l = M(() => {
|
|
3303
3329
|
const n = Math.ceil(i.total / i.perPage);
|
|
3304
3330
|
return `${n} ${ee(n, "page")}`;
|
|
3305
3331
|
});
|
|
3306
|
-
return (n, s) => (d(), b("div",
|
|
3332
|
+
return (n, s) => (d(), b("div", ka, [
|
|
3307
3333
|
s[2] || (s[2] = V(" Number of results per page ")),
|
|
3308
|
-
m("div",
|
|
3334
|
+
m("div", Ba, [
|
|
3309
3335
|
k(c(oe), {
|
|
3310
3336
|
options: i.pageSizes,
|
|
3311
3337
|
"model-value": i.perPage,
|
|
@@ -3314,16 +3340,16 @@ const wa = {
|
|
|
3314
3340
|
"data-cy": "pagination-page-size-select"
|
|
3315
3341
|
}, null, 8, ["options", "model-value"])
|
|
3316
3342
|
]),
|
|
3317
|
-
i.total ? (d(), b("div",
|
|
3343
|
+
i.total ? (d(), b("div", $a, [
|
|
3318
3344
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3319
|
-
m("span",
|
|
3345
|
+
m("span", Sa, $(i.total) + " " + $(c(ee)(i.total, "result")) + " across " + $(l.value), 1)
|
|
3320
3346
|
])) : T("", !0)
|
|
3321
3347
|
]));
|
|
3322
3348
|
}
|
|
3323
|
-
}),
|
|
3349
|
+
}), Fa = { class: "position-relative" }, Ca = { "data-cy": "above-table-slot" }, Ta = { class: "d-flex w-100" }, za = {
|
|
3324
3350
|
class: "mx-auto",
|
|
3325
3351
|
"data-cy": "empty-message"
|
|
3326
|
-
},
|
|
3352
|
+
}, Pa = { class: "d-flex" }, ja = { class: "d-flex align-items-end mb-2" }, Ma = { key: 0 }, _a = { class: "ms-auto" }, So = /* @__PURE__ */ z({
|
|
3327
3353
|
__name: "ForgeTable",
|
|
3328
3354
|
props: {
|
|
3329
3355
|
value: {},
|
|
@@ -3410,7 +3436,7 @@ const wa = {
|
|
|
3410
3436
|
},
|
|
3411
3437
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3412
3438
|
setup(e, { emit: t }) {
|
|
3413
|
-
const a = t, i = e, o =
|
|
3439
|
+
const a = t, i = e, o = _(), l = _([5, 10, 20, 50, 100]), n = _(i.perPage ?? 10), s = _({
|
|
3414
3440
|
filters: i.filters,
|
|
3415
3441
|
perPage: n.value,
|
|
3416
3442
|
page: 0,
|
|
@@ -3421,10 +3447,10 @@ const wa = {
|
|
|
3421
3447
|
W(() => i.perPage, (f) => {
|
|
3422
3448
|
f && (n.value = f, s.value.perPage = f);
|
|
3423
3449
|
});
|
|
3424
|
-
const p =
|
|
3450
|
+
const p = M(() => i.totalRecords ?? i.value.length), u = M(() => {
|
|
3425
3451
|
const f = Math.ceil(p.value / n.value);
|
|
3426
3452
|
return `${f} ${ee(f, "page")}`;
|
|
3427
|
-
}), h =
|
|
3453
|
+
}), h = M(() => ({
|
|
3428
3454
|
thead: () => ({
|
|
3429
3455
|
class: [
|
|
3430
3456
|
{
|
|
@@ -3453,26 +3479,26 @@ const wa = {
|
|
|
3453
3479
|
else
|
|
3454
3480
|
for (const f in i.filters)
|
|
3455
3481
|
typeof i.filters[f] == "string" ? i.filters[f] = "" : i.filters[f].value = null;
|
|
3456
|
-
|
|
3482
|
+
F(i.filters);
|
|
3457
3483
|
}, w = () => {
|
|
3458
3484
|
o.value.exportCSV();
|
|
3459
3485
|
}, v = (f) => {
|
|
3460
3486
|
var B;
|
|
3461
3487
|
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);
|
|
3462
|
-
}, C = (f) => {
|
|
3463
|
-
s.value.filters = f, a("update:tableContext", s.value), a("update:filters", f);
|
|
3464
3488
|
}, F = (f) => {
|
|
3489
|
+
s.value.filters = f, a("update:tableContext", s.value), a("update:filters", f);
|
|
3490
|
+
}, S = (f) => {
|
|
3465
3491
|
s.value.page = f.page, a("update:tableContext", s.value), a("page", f);
|
|
3466
3492
|
}, A = () => {
|
|
3467
3493
|
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3468
3494
|
};
|
|
3469
3495
|
return W(() => i.filters, (f) => {
|
|
3470
3496
|
s.value.filters = f, a("update:tableContext", s.value);
|
|
3471
|
-
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (f, B) => (d(), b("div",
|
|
3472
|
-
m("span",
|
|
3473
|
-
|
|
3497
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (f, B) => (d(), b("div", Fa, [
|
|
3498
|
+
m("span", Ca, [
|
|
3499
|
+
C(f.$slots, "above-table")
|
|
3474
3500
|
]),
|
|
3475
|
-
k(c(We),
|
|
3501
|
+
k(c(We), j({
|
|
3476
3502
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3477
3503
|
}, { ...i, ...f.$attrs }, {
|
|
3478
3504
|
pt: h.value,
|
|
@@ -3482,23 +3508,23 @@ const wa = {
|
|
|
3482
3508
|
ref_key: "forgeTable",
|
|
3483
3509
|
ref: o,
|
|
3484
3510
|
"data-cy": "table",
|
|
3485
|
-
"onUpdate:filters":
|
|
3511
|
+
"onUpdate:filters": F,
|
|
3486
3512
|
onSort: v,
|
|
3487
|
-
onPage:
|
|
3513
|
+
onPage: S,
|
|
3488
3514
|
showHeaders: ""
|
|
3489
3515
|
}), ie({
|
|
3490
3516
|
empty: g(() => [
|
|
3491
|
-
m("div",
|
|
3492
|
-
m("h5",
|
|
3517
|
+
m("div", Ta, [
|
|
3518
|
+
m("h5", za, $(f.emptyMessage ?? "No items Found."), 1)
|
|
3493
3519
|
])
|
|
3494
3520
|
]),
|
|
3495
3521
|
header: g(() => [
|
|
3496
3522
|
m("div", {
|
|
3497
3523
|
class: P(i.loading ? "opacity-50" : "")
|
|
3498
3524
|
}, [
|
|
3499
|
-
m("div",
|
|
3500
|
-
m("div",
|
|
3501
|
-
f.paginator && !f.legacyPaginationFooter ? (d(), b("span",
|
|
3525
|
+
m("div", Pa, [
|
|
3526
|
+
m("div", ja, [
|
|
3527
|
+
f.paginator && !f.legacyPaginationFooter ? (d(), b("span", Ma, [
|
|
3502
3528
|
k(he, {
|
|
3503
3529
|
total: p.value,
|
|
3504
3530
|
"page-sizes": l.value,
|
|
@@ -3510,7 +3536,7 @@ const wa = {
|
|
|
3510
3536
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3511
3537
|
])) : T("", !0)
|
|
3512
3538
|
]),
|
|
3513
|
-
m("div",
|
|
3539
|
+
m("div", _a, [
|
|
3514
3540
|
f.showClearButton ? (d(), x(c(q), {
|
|
3515
3541
|
key: 0,
|
|
3516
3542
|
outlined: "",
|
|
@@ -3546,20 +3572,20 @@ const wa = {
|
|
|
3546
3572
|
_: 1,
|
|
3547
3573
|
__: [3]
|
|
3548
3574
|
})) : T("", !0),
|
|
3549
|
-
|
|
3575
|
+
C(f.$slots, "column-customiser")
|
|
3550
3576
|
])
|
|
3551
3577
|
])
|
|
3552
3578
|
], 2)
|
|
3553
3579
|
]),
|
|
3554
3580
|
default: g(() => [
|
|
3555
|
-
|
|
3581
|
+
C(f.$slots, "default")
|
|
3556
3582
|
]),
|
|
3557
3583
|
_: 2
|
|
3558
3584
|
}, [
|
|
3559
|
-
|
|
3585
|
+
U(f.$slots, (D, y) => ({
|
|
3560
3586
|
name: y,
|
|
3561
3587
|
fn: g((O) => [
|
|
3562
|
-
|
|
3588
|
+
C(f.$slots, y, G(Y(O || {})))
|
|
3563
3589
|
])
|
|
3564
3590
|
})),
|
|
3565
3591
|
f.legacyPaginationFooter ? {
|
|
@@ -3594,10 +3620,10 @@ const wa = {
|
|
|
3594
3620
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3595
3621
|
]));
|
|
3596
3622
|
}
|
|
3597
|
-
}),
|
|
3623
|
+
}), Ia = { class: "position-relative" }, Va = { "data-cy": "above-table-slot" }, Da = { class: "d-flex w-100" }, Oa = {
|
|
3598
3624
|
class: "mx-auto",
|
|
3599
3625
|
"data-cy": "empty-message"
|
|
3600
|
-
},
|
|
3626
|
+
}, Aa = { class: "d-flex" }, La = { class: "d-flex align-items-end mb-2" }, Na = { key: 0 }, Ua = { class: "ms-auto" }, Fo = /* @__PURE__ */ z({
|
|
3601
3627
|
__name: "ForgeTreeTable",
|
|
3602
3628
|
props: {
|
|
3603
3629
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3658,17 +3684,17 @@ const wa = {
|
|
|
3658
3684
|
},
|
|
3659
3685
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3660
3686
|
setup(e, { emit: t }) {
|
|
3661
|
-
const a = e, i = t, o =
|
|
3687
|
+
const a = e, i = t, o = _([5, 10, 20, 50, 100]), l = _(10), n = _(0), s = _(0), p = _({
|
|
3662
3688
|
filters: a.filters,
|
|
3663
3689
|
perPage: l.value,
|
|
3664
3690
|
page: 0,
|
|
3665
3691
|
sortDirection: "None",
|
|
3666
3692
|
sortField: "",
|
|
3667
3693
|
total: a.totalRecords ?? a.value.length
|
|
3668
|
-
}), u =
|
|
3694
|
+
}), u = M(() => a.totalRecords ?? a.value.length), h = M(() => {
|
|
3669
3695
|
const y = Math.ceil(u.value / l.value);
|
|
3670
3696
|
return `${y} ${ee(y, "page")}`;
|
|
3671
|
-
}), r =
|
|
3697
|
+
}), r = M(() => ({
|
|
3672
3698
|
root: "position-relative",
|
|
3673
3699
|
table: (y) => ({
|
|
3674
3700
|
class: [
|
|
@@ -3738,14 +3764,14 @@ const wa = {
|
|
|
3738
3764
|
},
|
|
3739
3765
|
0
|
|
3740
3766
|
);
|
|
3741
|
-
},
|
|
3767
|
+
}, F = () => {
|
|
3742
3768
|
if (a.clearAll)
|
|
3743
3769
|
a.clearAll();
|
|
3744
3770
|
else
|
|
3745
3771
|
for (const y in a.filters)
|
|
3746
3772
|
typeof a.filters[y] == "string" ? a.filters[y] = "" : a.filters[y].value = null;
|
|
3747
3773
|
A(a.filters);
|
|
3748
|
-
},
|
|
3774
|
+
}, S = (y) => {
|
|
3749
3775
|
var O;
|
|
3750
3776
|
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();
|
|
3751
3777
|
}, A = (y) => {
|
|
@@ -3765,11 +3791,11 @@ const wa = {
|
|
|
3765
3791
|
const D = () => {
|
|
3766
3792
|
n.value = s.value * l.value;
|
|
3767
3793
|
};
|
|
3768
|
-
return (y, O) => (d(), b("div",
|
|
3769
|
-
m("span",
|
|
3770
|
-
|
|
3794
|
+
return (y, O) => (d(), b("div", Ia, [
|
|
3795
|
+
m("span", Va, [
|
|
3796
|
+
C(y.$slots, "above-table")
|
|
3771
3797
|
]),
|
|
3772
|
-
k(c(Ge),
|
|
3798
|
+
k(c(Ge), j({
|
|
3773
3799
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3774
3800
|
}, { ...a, ...y.$attrs }, {
|
|
3775
3801
|
pt: r.value,
|
|
@@ -3777,23 +3803,23 @@ const wa = {
|
|
|
3777
3803
|
rows: y.paginator ? l.value : void 0,
|
|
3778
3804
|
"data-cy": "tree-table",
|
|
3779
3805
|
"onUpdate:filters": A,
|
|
3780
|
-
onSort:
|
|
3806
|
+
onSort: S,
|
|
3781
3807
|
onPage: f,
|
|
3782
3808
|
onNodeExpand: O[2] || (O[2] = () => w()),
|
|
3783
3809
|
showHeaders: "",
|
|
3784
3810
|
first: n.value
|
|
3785
3811
|
}), ie({
|
|
3786
3812
|
empty: g(() => [
|
|
3787
|
-
m("div",
|
|
3788
|
-
m("h5",
|
|
3813
|
+
m("div", Da, [
|
|
3814
|
+
m("h5", Oa, $(y.emptyMessage ?? "No items Found."), 1)
|
|
3789
3815
|
])
|
|
3790
3816
|
]),
|
|
3791
3817
|
header: g(() => [
|
|
3792
3818
|
m("div", {
|
|
3793
3819
|
class: P(a.loading ? "opacity-50" : "")
|
|
3794
3820
|
}, [
|
|
3795
|
-
m("div",
|
|
3796
|
-
m("div",
|
|
3821
|
+
m("div", Aa, [
|
|
3822
|
+
m("div", La, [
|
|
3797
3823
|
y.paginator && !y.legacyPaginationFooter ? (d(), b("span", Na, [
|
|
3798
3824
|
k(he, {
|
|
3799
3825
|
total: u.value,
|
|
@@ -3810,7 +3836,7 @@ const wa = {
|
|
|
3810
3836
|
y.showClearButton ? (d(), x(c(q), {
|
|
3811
3837
|
key: 0,
|
|
3812
3838
|
outlined: "",
|
|
3813
|
-
onClick:
|
|
3839
|
+
onClick: F,
|
|
3814
3840
|
"data-cy": "clear-all"
|
|
3815
3841
|
}, {
|
|
3816
3842
|
default: g(() => [
|
|
@@ -3824,20 +3850,20 @@ const wa = {
|
|
|
3824
3850
|
_: 1,
|
|
3825
3851
|
__: [3]
|
|
3826
3852
|
})) : T("", !0),
|
|
3827
|
-
|
|
3853
|
+
C(y.$slots, "column-customiser")
|
|
3828
3854
|
])
|
|
3829
3855
|
])
|
|
3830
3856
|
], 2)
|
|
3831
3857
|
]),
|
|
3832
3858
|
default: g(() => [
|
|
3833
|
-
|
|
3859
|
+
C(y.$slots, "default")
|
|
3834
3860
|
]),
|
|
3835
3861
|
_: 2
|
|
3836
3862
|
}, [
|
|
3837
|
-
|
|
3863
|
+
U(y.$slots, (R, ve) => ({
|
|
3838
3864
|
name: ve,
|
|
3839
3865
|
fn: g((Be) => [
|
|
3840
|
-
|
|
3866
|
+
C(y.$slots, ve, G(Y(Be || {})))
|
|
3841
3867
|
])
|
|
3842
3868
|
})),
|
|
3843
3869
|
y.legacyPaginationFooter ? {
|
|
@@ -3872,7 +3898,7 @@ const wa = {
|
|
|
3872
3898
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3873
3899
|
]));
|
|
3874
3900
|
}
|
|
3875
|
-
}),
|
|
3901
|
+
}), Ea = { class: "d-flex position-relative" }, qa = { class: "d-flex w-100" }, Co = /* @__PURE__ */ z({
|
|
3876
3902
|
__name: "ForgeFilterHeader",
|
|
3877
3903
|
props: /* @__PURE__ */ E({
|
|
3878
3904
|
dataType: {},
|
|
@@ -3887,7 +3913,7 @@ const wa = {
|
|
|
3887
3913
|
}),
|
|
3888
3914
|
emits: ["update:modelValue"],
|
|
3889
3915
|
setup(e) {
|
|
3890
|
-
const t =
|
|
3916
|
+
const t = L(e, "modelValue"), a = (o, l) => {
|
|
3891
3917
|
if (!o && typeof o != "boolean" || Array.isArray(o) && o.length === 0)
|
|
3892
3918
|
return l;
|
|
3893
3919
|
const n = (s) => {
|
|
@@ -3903,20 +3929,20 @@ const wa = {
|
|
|
3903
3929
|
};
|
|
3904
3930
|
return (o, l) => {
|
|
3905
3931
|
const n = fe, s = q;
|
|
3906
|
-
return d(), b("div",
|
|
3907
|
-
o.dataType === "numeric" ? (d(), x(n,
|
|
3932
|
+
return d(), b("div", Ea, [
|
|
3933
|
+
o.dataType === "numeric" ? (d(), x(n, j({
|
|
3908
3934
|
key: 0,
|
|
3909
3935
|
modelValue: t.value,
|
|
3910
3936
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => t.value = p),
|
|
3911
3937
|
modelModifiers: { trim: !0 }
|
|
3912
|
-
}, o.$attrs), null, 16, ["modelValue"])) : o.dataType === "date" ? (d(), x(xe,
|
|
3938
|
+
}, o.$attrs), null, 16, ["modelValue"])) : o.dataType === "date" ? (d(), x(xe, j({
|
|
3913
3939
|
key: 1,
|
|
3914
3940
|
modelValue: t.value,
|
|
3915
3941
|
"onUpdate:modelValue": l[1] || (l[1] = (p) => t.value = p)
|
|
3916
3942
|
}, o.$attrs, {
|
|
3917
3943
|
"show-icon": !1,
|
|
3918
3944
|
"show-on-focus": !0
|
|
3919
|
-
}), null, 16, ["modelValue"])) : o.dataType === "select" ? (d(), x(c(oe),
|
|
3945
|
+
}), null, 16, ["modelValue"])) : o.dataType === "select" ? (d(), x(c(oe), j({
|
|
3920
3946
|
key: 2,
|
|
3921
3947
|
modelValue: t.value,
|
|
3922
3948
|
"onUpdate:modelValue": l[2] || (l[2] = (p) => t.value = p)
|
|
@@ -3926,7 +3952,7 @@ const wa = {
|
|
|
3926
3952
|
"option-label": o.optionLabel
|
|
3927
3953
|
}), {
|
|
3928
3954
|
value: g(({ value: p, placeholder: u }) => [
|
|
3929
|
-
m("div",
|
|
3955
|
+
m("div", qa, [
|
|
3930
3956
|
m("span", {
|
|
3931
3957
|
class: P({ "filter-placeholder": p === null })
|
|
3932
3958
|
}, $(a(p, u)), 3),
|
|
@@ -3949,7 +3975,7 @@ const wa = {
|
|
|
3949
3975
|
])
|
|
3950
3976
|
]),
|
|
3951
3977
|
_: 1
|
|
3952
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : o.dataType === "multiselect" ? (d(), x(c(de),
|
|
3978
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : o.dataType === "multiselect" ? (d(), x(c(de), j({
|
|
3953
3979
|
key: 3,
|
|
3954
3980
|
modelValue: t.value,
|
|
3955
3981
|
"onUpdate:modelValue": l[3] || (l[3] = (p) => t.value = p)
|
|
@@ -3959,7 +3985,7 @@ const wa = {
|
|
|
3959
3985
|
"option-label": o.optionLabel,
|
|
3960
3986
|
"option-value": o.optionValue,
|
|
3961
3987
|
filter: ""
|
|
3962
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), x(c(ae),
|
|
3988
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), x(c(ae), j({
|
|
3963
3989
|
key: 4,
|
|
3964
3990
|
modelValue: t.value,
|
|
3965
3991
|
"onUpdate:modelValue": l[4] || (l[4] = (p) => t.value = p),
|
|
@@ -5123,7 +5149,7 @@ class we {
|
|
|
5123
5149
|
}
|
|
5124
5150
|
}
|
|
5125
5151
|
Z = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
|
|
5126
|
-
const
|
|
5152
|
+
const Ra = new we(ue, ce)._freeze();
|
|
5127
5153
|
function ke(e, t, a, i) {
|
|
5128
5154
|
const o = t.flatMap((l) => l.file);
|
|
5129
5155
|
return t = t.map((l) => ({ ...l, status: l.status == "Duplicate" ? "Not Uploaded" : l.status })), e.forEach((l) => {
|
|
@@ -5136,7 +5162,7 @@ function ke(e, t, a, i) {
|
|
|
5136
5162
|
})) : t[n].status = "Duplicate";
|
|
5137
5163
|
}), t;
|
|
5138
5164
|
}
|
|
5139
|
-
async function
|
|
5165
|
+
async function Ha(e, t) {
|
|
5140
5166
|
if (e === "Uploaded" && t !== null)
|
|
5141
5167
|
try {
|
|
5142
5168
|
await new ge(t).delete();
|
|
@@ -5159,20 +5185,20 @@ function me(e, t = !0, a = 1) {
|
|
|
5159
5185
|
while (Math.round(Math.abs(e) * n) / n >= i && l < o.length - 1);
|
|
5160
5186
|
return e.toFixed(a) + " " + o[l];
|
|
5161
5187
|
}
|
|
5162
|
-
function
|
|
5188
|
+
function Wa(e) {
|
|
5163
5189
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
5164
5190
|
}
|
|
5165
|
-
function
|
|
5191
|
+
function Ga(e) {
|
|
5166
5192
|
return URL.createObjectURL(e);
|
|
5167
5193
|
}
|
|
5168
|
-
function
|
|
5194
|
+
function Ya() {
|
|
5169
5195
|
const e = new we(ue, ce);
|
|
5170
5196
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
5171
5197
|
}
|
|
5172
|
-
const
|
|
5198
|
+
const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disabled", "multiple"], Za = {
|
|
5173
5199
|
class: "text-break accepted-file-types-container",
|
|
5174
5200
|
id: "accepted-file-types-overlay"
|
|
5175
|
-
},
|
|
5201
|
+
}, Xa = /* @__PURE__ */ z({
|
|
5176
5202
|
__name: "UploadButton",
|
|
5177
5203
|
props: /* @__PURE__ */ E({
|
|
5178
5204
|
acceptedFileTypes: {},
|
|
@@ -5185,13 +5211,13 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5185
5211
|
}),
|
|
5186
5212
|
emits: ["update:modelValue"],
|
|
5187
5213
|
setup(e) {
|
|
5188
|
-
const t =
|
|
5214
|
+
const t = L(e, "modelValue"), a = _(), i = (n) => a.value.toggle(n), o = M(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5189
5215
|
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
5190
5216
|
};
|
|
5191
5217
|
return (n, s) => {
|
|
5192
5218
|
const p = q;
|
|
5193
|
-
return d(), b("div",
|
|
5194
|
-
|
|
5219
|
+
return d(), b("div", Ja, [
|
|
5220
|
+
C(n.$slots, "message"),
|
|
5195
5221
|
m("div", null, [
|
|
5196
5222
|
m("input", {
|
|
5197
5223
|
id: "file-input",
|
|
@@ -5201,13 +5227,13 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5201
5227
|
disabled: o.value,
|
|
5202
5228
|
multiple: n.maxFileInput > 1,
|
|
5203
5229
|
onInput: s[0] || (s[0] = (u) => l([...u.target.files]))
|
|
5204
|
-
}, null, 40,
|
|
5230
|
+
}, null, 40, Ka),
|
|
5205
5231
|
m("label", {
|
|
5206
5232
|
class: P([{ disabled: o.value }, "btn btn-primary"]),
|
|
5207
5233
|
id: "file-input-button",
|
|
5208
5234
|
for: "file-input"
|
|
5209
5235
|
}, [
|
|
5210
|
-
|
|
5236
|
+
C(n.$slots, "button-content", {}, () => [
|
|
5211
5237
|
k(c(I), {
|
|
5212
5238
|
icon: "bi:upload",
|
|
5213
5239
|
class: "me-2",
|
|
@@ -5236,21 +5262,21 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5236
5262
|
ref: a
|
|
5237
5263
|
}, {
|
|
5238
5264
|
default: g(() => [
|
|
5239
|
-
m("div",
|
|
5265
|
+
m("div", Za, $(n.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
5240
5266
|
]),
|
|
5241
5267
|
_: 1
|
|
5242
5268
|
}, 512)
|
|
5243
5269
|
]);
|
|
5244
5270
|
};
|
|
5245
5271
|
}
|
|
5246
|
-
}),
|
|
5272
|
+
}), Qa = {
|
|
5247
5273
|
key: 0,
|
|
5248
5274
|
class: "py-4 px-3",
|
|
5249
5275
|
id: "placeholder-message"
|
|
5250
|
-
},
|
|
5276
|
+
}, ei = {
|
|
5251
5277
|
key: 1,
|
|
5252
5278
|
class: "d-flex flex-column"
|
|
5253
|
-
},
|
|
5279
|
+
}, ti = /* @__PURE__ */ z({
|
|
5254
5280
|
__name: "DragDropArea",
|
|
5255
5281
|
props: /* @__PURE__ */ E({
|
|
5256
5282
|
maxFileInput: {},
|
|
@@ -5262,7 +5288,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5262
5288
|
}),
|
|
5263
5289
|
emits: ["update:modelValue"],
|
|
5264
5290
|
setup(e) {
|
|
5265
|
-
const t =
|
|
5291
|
+
const t = L(e, "modelValue"), a = _(!1), i = M(() => e.maxFileInput <= t.value.length), o = (l) => {
|
|
5266
5292
|
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);
|
|
5267
5293
|
};
|
|
5268
5294
|
return (l, n) => (d(), b("div", {
|
|
@@ -5272,7 +5298,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5272
5298
|
onDragover: n[1] || (n[1] = Q((s) => a.value = !0, ["prevent"])),
|
|
5273
5299
|
onDrop: Q(o, ["prevent"])
|
|
5274
5300
|
}, [
|
|
5275
|
-
t.value.length === 0 ? (d(), b("div",
|
|
5301
|
+
t.value.length === 0 ? (d(), b("div", Qa, [
|
|
5276
5302
|
k(c(I), {
|
|
5277
5303
|
icon: "bi:upload",
|
|
5278
5304
|
class: "me-2",
|
|
@@ -5280,12 +5306,12 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5280
5306
|
width: "20px"
|
|
5281
5307
|
}),
|
|
5282
5308
|
n[2] || (n[2] = V(" Drag and drop files here "))
|
|
5283
|
-
])) : (d(), b("div",
|
|
5284
|
-
|
|
5309
|
+
])) : (d(), b("div", ei, [
|
|
5310
|
+
C(l.$slots, "default")
|
|
5285
5311
|
]))
|
|
5286
5312
|
], 34));
|
|
5287
5313
|
}
|
|
5288
|
-
}),
|
|
5314
|
+
}), ai = { class: "d-flex align-items-center me-2" }, ii = /* @__PURE__ */ z({
|
|
5289
5315
|
__name: "UploadStatus",
|
|
5290
5316
|
props: {
|
|
5291
5317
|
fileSize: {},
|
|
@@ -5294,7 +5320,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5294
5320
|
uploadStatus: {}
|
|
5295
5321
|
},
|
|
5296
5322
|
setup(e) {
|
|
5297
|
-
const t = e, a =
|
|
5323
|
+
const t = e, a = M(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = M(() => {
|
|
5298
5324
|
switch (t.uploadStatus) {
|
|
5299
5325
|
case "InvalidFileType":
|
|
5300
5326
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -5312,7 +5338,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5312
5338
|
});
|
|
5313
5339
|
return (o, l) => {
|
|
5314
5340
|
const n = pe;
|
|
5315
|
-
return d(), b("div",
|
|
5341
|
+
return d(), b("div", ai, [
|
|
5316
5342
|
t.uploadStatus === "Uploading" ? (d(), x(n, {
|
|
5317
5343
|
key: 0,
|
|
5318
5344
|
"in-line": ""
|
|
@@ -5331,16 +5357,16 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5331
5357
|
]);
|
|
5332
5358
|
};
|
|
5333
5359
|
}
|
|
5334
|
-
}),
|
|
5360
|
+
}), oi = ["data-cy"], li = { class: "ms-3 d-flex flex-column" }, ni = {
|
|
5335
5361
|
key: 1,
|
|
5336
5362
|
id: "file-name"
|
|
5337
|
-
},
|
|
5363
|
+
}, si = {
|
|
5338
5364
|
class: "text-black-50",
|
|
5339
5365
|
id: "file-type"
|
|
5340
|
-
},
|
|
5366
|
+
}, ri = {
|
|
5341
5367
|
class: "text-black-50",
|
|
5342
5368
|
id: "file-size"
|
|
5343
|
-
},
|
|
5369
|
+
}, di = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, pi = /* @__PURE__ */ z({
|
|
5344
5370
|
__name: "FileInfo",
|
|
5345
5371
|
props: /* @__PURE__ */ E({
|
|
5346
5372
|
editableFileName: { type: Boolean },
|
|
@@ -5359,12 +5385,12 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5359
5385
|
}),
|
|
5360
5386
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5361
5387
|
setup(e, { emit: t }) {
|
|
5362
|
-
const a =
|
|
5363
|
-
n.value != null && (
|
|
5364
|
-
},
|
|
5365
|
-
let f = n.value.split("."), B =
|
|
5388
|
+
const a = L(e, "file"), i = L(e, "blobFileName"), o = L(e, "uploadStatus"), l = t, n = _(a.value.name), s = _(""), p = _(0), u = _(), h = M(() => e.acceptedFileTypes.some(({ fileType: f }) => f === a.value.type)), r = M(() => a.value.size <= e.maxFileSize), w = M(() => a.value.type ? a.value.type : Ya().getType(a.value.name)), v = () => {
|
|
5389
|
+
n.value != null && (F(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5390
|
+
}, F = () => {
|
|
5391
|
+
let f = n.value.split("."), B = Ra.getExtension(w.value), D = n.value.split(".").pop();
|
|
5366
5392
|
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));
|
|
5367
|
-
},
|
|
5393
|
+
}, S = async () => {
|
|
5368
5394
|
if (!h.value || !r.value) {
|
|
5369
5395
|
o.value = h.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5370
5396
|
return;
|
|
@@ -5395,10 +5421,10 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5395
5421
|
o.value = "Failed";
|
|
5396
5422
|
}
|
|
5397
5423
|
}, A = async () => {
|
|
5398
|
-
await
|
|
5424
|
+
await Ha(o.value, s.value), l("deleted", a.value);
|
|
5399
5425
|
};
|
|
5400
5426
|
return ne(() => {
|
|
5401
|
-
e.autoUploadToBlob && o.value != "Uploaded" &&
|
|
5427
|
+
e.autoUploadToBlob && o.value != "Uploaded" && S();
|
|
5402
5428
|
}), (f, B) => {
|
|
5403
5429
|
const D = q;
|
|
5404
5430
|
return d(), b("div", {
|
|
@@ -5406,11 +5432,11 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5406
5432
|
"data-cy": `file-info-${a.value.name}`
|
|
5407
5433
|
}, [
|
|
5408
5434
|
m("div", null, [
|
|
5409
|
-
c(
|
|
5435
|
+
c(Wa)(a.value.type) ? (d(), x(c(Ye), {
|
|
5410
5436
|
key: 0,
|
|
5411
5437
|
id: "thumbnail-image",
|
|
5412
5438
|
"image-class": "image-file-thumbnail border",
|
|
5413
|
-
src: c(
|
|
5439
|
+
src: c(Ga)(a.value),
|
|
5414
5440
|
alt: a.value.name,
|
|
5415
5441
|
width: "75px",
|
|
5416
5442
|
preview: ""
|
|
@@ -5422,9 +5448,9 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5422
5448
|
width: "75px"
|
|
5423
5449
|
}))
|
|
5424
5450
|
]),
|
|
5425
|
-
m("div",
|
|
5451
|
+
m("div", li, [
|
|
5426
5452
|
m("div", null, [
|
|
5427
|
-
f.editableFileName ? (d(), x(
|
|
5453
|
+
f.editableFileName ? (d(), x(Zt, {
|
|
5428
5454
|
key: 0,
|
|
5429
5455
|
id: "edit-file-name",
|
|
5430
5456
|
modelValue: n.value,
|
|
@@ -5432,13 +5458,13 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5432
5458
|
rules: f.customFileNameRules,
|
|
5433
5459
|
name: a.value.name,
|
|
5434
5460
|
"complete-action": v
|
|
5435
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span",
|
|
5461
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", ni, $(n.value), 1))
|
|
5436
5462
|
]),
|
|
5437
|
-
m("span",
|
|
5438
|
-
m("span",
|
|
5463
|
+
m("span", si, "File type: " + $(a.value.type.split("/").pop()), 1),
|
|
5464
|
+
m("span", ri, "File size: " + $(c(me)(a.value.size)), 1)
|
|
5439
5465
|
]),
|
|
5440
|
-
m("div",
|
|
5441
|
-
(d(), x(
|
|
5466
|
+
m("div", di, [
|
|
5467
|
+
(d(), x(ii, {
|
|
5442
5468
|
key: o.value,
|
|
5443
5469
|
"file-size": a.value.size,
|
|
5444
5470
|
"upload-status": o.value,
|
|
@@ -5448,7 +5474,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5448
5474
|
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (d(), x(D, {
|
|
5449
5475
|
key: 0,
|
|
5450
5476
|
link: "",
|
|
5451
|
-
onClick:
|
|
5477
|
+
onClick: S
|
|
5452
5478
|
}, {
|
|
5453
5479
|
default: g(() => [
|
|
5454
5480
|
k(c(I), {
|
|
@@ -5478,22 +5504,22 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5478
5504
|
_: 1
|
|
5479
5505
|
}))
|
|
5480
5506
|
])
|
|
5481
|
-
], 8,
|
|
5507
|
+
], 8, oi);
|
|
5482
5508
|
};
|
|
5483
5509
|
}
|
|
5484
|
-
}),
|
|
5510
|
+
}), ci = { class: "d-flex justify-content-end mt-1 gap-1" }, ui = { id: "max-file-size" }, mi = { id: "max-file-input" }, vi = /* @__PURE__ */ z({
|
|
5485
5511
|
__name: "FileInputInfo",
|
|
5486
5512
|
props: {
|
|
5487
5513
|
maxFileSize: {},
|
|
5488
5514
|
maxFileInput: {}
|
|
5489
5515
|
},
|
|
5490
5516
|
setup(e) {
|
|
5491
|
-
return (t, a) => (d(), b("div",
|
|
5492
|
-
m("div",
|
|
5493
|
-
m("div",
|
|
5517
|
+
return (t, a) => (d(), b("div", ci, [
|
|
5518
|
+
m("div", ui, "Max file size: " + $(c(me)(t.maxFileSize)), 1),
|
|
5519
|
+
m("div", mi, "| Max file count: " + $(t.maxFileInput), 1)
|
|
5494
5520
|
]));
|
|
5495
5521
|
}
|
|
5496
|
-
}),
|
|
5522
|
+
}), fi = { "data-cy": "file-uploader" }, gi = { key: 1 }, To = /* @__PURE__ */ z({
|
|
5497
5523
|
__name: "ForgeFileUploader",
|
|
5498
5524
|
props: /* @__PURE__ */ E({
|
|
5499
5525
|
acceptedFileTypes: {},
|
|
@@ -5511,14 +5537,14 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5511
5537
|
}),
|
|
5512
5538
|
emits: ["update:modelValue"],
|
|
5513
5539
|
setup(e) {
|
|
5514
|
-
const t =
|
|
5540
|
+
const t = L(e, "modelValue");
|
|
5515
5541
|
W(t, (o, l) => {
|
|
5516
5542
|
o.length > a.maxFileInput && (o.length = a.maxFileInput);
|
|
5517
5543
|
}, { deep: 2 });
|
|
5518
5544
|
const a = e, i = (o) => {
|
|
5519
5545
|
t.value = t.value.filter((l) => l.file != o);
|
|
5520
5546
|
};
|
|
5521
|
-
return (o, l) => (d(), b("div",
|
|
5547
|
+
return (o, l) => (d(), b("div", fi, [
|
|
5522
5548
|
t.value.length == o.maxFileInput && a.maxFileWarning != null ? (d(), x(re, {
|
|
5523
5549
|
key: 0,
|
|
5524
5550
|
id: "max-files-alert",
|
|
@@ -5529,12 +5555,12 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5529
5555
|
]),
|
|
5530
5556
|
_: 1
|
|
5531
5557
|
})) : T("", !0),
|
|
5532
|
-
k(
|
|
5558
|
+
k(Xa, j(a, {
|
|
5533
5559
|
modelValue: t.value,
|
|
5534
5560
|
"onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n)
|
|
5535
5561
|
}), null, 16, ["modelValue"]),
|
|
5536
|
-
o.showDragDropArea ? (d(), b("div",
|
|
5537
|
-
k(
|
|
5562
|
+
o.showDragDropArea ? (d(), b("div", gi, [
|
|
5563
|
+
k(ti, {
|
|
5538
5564
|
"max-file-input": a.maxFileInput,
|
|
5539
5565
|
"max-file-size": a.maxFileSize,
|
|
5540
5566
|
"accepted-file-types": a.acceptedFileTypes,
|
|
@@ -5542,8 +5568,8 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5542
5568
|
"onUpdate:modelValue": l[1] || (l[1] = (n) => t.value = n)
|
|
5543
5569
|
}, {
|
|
5544
5570
|
default: g(() => [
|
|
5545
|
-
(d(!0), b(
|
|
5546
|
-
(d(), x(
|
|
5571
|
+
(d(!0), b(N, null, U(t.value, ({ file: n }, s) => (d(), b("div", null, [
|
|
5572
|
+
(d(), x(pi, j({
|
|
5547
5573
|
key: n.name,
|
|
5548
5574
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5549
5575
|
file: t.value[s].file,
|
|
@@ -5557,14 +5583,14 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5557
5583
|
]),
|
|
5558
5584
|
_: 1
|
|
5559
5585
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5560
|
-
k(
|
|
5586
|
+
k(vi, {
|
|
5561
5587
|
"max-file-size": a.maxFileSize,
|
|
5562
5588
|
"max-file-input": o.maxFileInput
|
|
5563
5589
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5564
5590
|
])) : T("", !0)
|
|
5565
5591
|
]));
|
|
5566
5592
|
}
|
|
5567
|
-
}),
|
|
5593
|
+
}), bi = { class: "d-flex" }, yi = { class: "me-3" }, xi = { class: "ms-2" }, hi = { class: "d-flex flex-column w-100" }, zo = /* @__PURE__ */ z({
|
|
5568
5594
|
__name: "ForgeColumnCustomiser",
|
|
5569
5595
|
props: {
|
|
5570
5596
|
modelValue: { required: !0 },
|
|
@@ -5572,21 +5598,21 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5572
5598
|
},
|
|
5573
5599
|
emits: ["update:modelValue"],
|
|
5574
5600
|
setup(e) {
|
|
5575
|
-
const t =
|
|
5601
|
+
const t = L(e, "modelValue"), a = _(), i = _(!1), o = (l) => {
|
|
5576
5602
|
a.value.toggle(l);
|
|
5577
5603
|
};
|
|
5578
|
-
return (l, n) => (d(), b(
|
|
5604
|
+
return (l, n) => (d(), b(N, null, [
|
|
5579
5605
|
k(c(q), {
|
|
5580
5606
|
onClick: o,
|
|
5581
5607
|
class: "ms-2"
|
|
5582
5608
|
}, {
|
|
5583
5609
|
default: g(() => [
|
|
5584
|
-
m("div",
|
|
5585
|
-
m("div",
|
|
5610
|
+
m("div", bi, [
|
|
5611
|
+
m("div", yi, [
|
|
5586
5612
|
k(c(I), { icon: "bi:layout-three-columns" })
|
|
5587
5613
|
]),
|
|
5588
5614
|
V(" Columns (" + $(t.value.filter((s) => s.selected).length ?? 0) + "/" + $(t.value.length ?? 0) + ") ", 1),
|
|
5589
|
-
m("div",
|
|
5615
|
+
m("div", xi, [
|
|
5590
5616
|
k(c(I), {
|
|
5591
5617
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5592
5618
|
}, null, 8, ["icon"])
|
|
@@ -5603,8 +5629,8 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5603
5629
|
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5604
5630
|
}, {
|
|
5605
5631
|
default: g(() => [
|
|
5606
|
-
m("div",
|
|
5607
|
-
(d(!0), b(
|
|
5632
|
+
m("div", hi, [
|
|
5633
|
+
(d(!0), b(N, null, U(t.value, (s, p) => (d(), b("div", {
|
|
5608
5634
|
class: P(["d-flex cursor-pointer", {
|
|
5609
5635
|
"border-top": p !== 0,
|
|
5610
5636
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
@@ -5627,7 +5653,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5627
5653
|
}, 512)
|
|
5628
5654
|
], 64));
|
|
5629
5655
|
}
|
|
5630
|
-
}),
|
|
5656
|
+
}), Po = /* @__PURE__ */ z({
|
|
5631
5657
|
__name: "ForgePanel",
|
|
5632
5658
|
setup(e) {
|
|
5633
5659
|
return (t, a) => {
|
|
@@ -5647,22 +5673,22 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5647
5673
|
]),
|
|
5648
5674
|
_: 2
|
|
5649
5675
|
}, [
|
|
5650
|
-
|
|
5676
|
+
U(t.$slots, (o, l) => ({
|
|
5651
5677
|
name: l,
|
|
5652
5678
|
fn: g((n) => [
|
|
5653
|
-
|
|
5679
|
+
C(t.$slots, l, G(Y(n)))
|
|
5654
5680
|
])
|
|
5655
5681
|
}))
|
|
5656
5682
|
]), 1040);
|
|
5657
5683
|
};
|
|
5658
5684
|
}
|
|
5659
|
-
}),
|
|
5685
|
+
}), wi = /* @__PURE__ */ z({
|
|
5660
5686
|
__name: "ForgeToggleButton",
|
|
5661
5687
|
props: {
|
|
5662
5688
|
severity: { default: "primary" }
|
|
5663
5689
|
},
|
|
5664
5690
|
setup(e) {
|
|
5665
|
-
const t = e, a =
|
|
5691
|
+
const t = e, a = M(() => ({
|
|
5666
5692
|
root: (i) => ({
|
|
5667
5693
|
class: [
|
|
5668
5694
|
"btn",
|
|
@@ -5683,15 +5709,15 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5683
5709
|
]
|
|
5684
5710
|
})
|
|
5685
5711
|
}));
|
|
5686
|
-
return (i, o) => (d(), x(c(Ke),
|
|
5712
|
+
return (i, o) => (d(), x(c(Ke), j({ ...i.$attrs, ...t }, {
|
|
5687
5713
|
severity: t.severity,
|
|
5688
5714
|
pt: a.value
|
|
5689
5715
|
}), null, 16, ["severity", "pt"]));
|
|
5690
5716
|
}
|
|
5691
|
-
}),
|
|
5717
|
+
}), ki = {
|
|
5692
5718
|
class: "btn-group",
|
|
5693
5719
|
"data-cy": "forge-select-button"
|
|
5694
|
-
},
|
|
5720
|
+
}, jo = /* @__PURE__ */ z({
|
|
5695
5721
|
__name: "ForgeSelectButton",
|
|
5696
5722
|
props: /* @__PURE__ */ E({
|
|
5697
5723
|
options: {},
|
|
@@ -5704,7 +5730,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5704
5730
|
}),
|
|
5705
5731
|
emits: ["update:modelValue"],
|
|
5706
5732
|
setup(e) {
|
|
5707
|
-
const t = e, a =
|
|
5733
|
+
const t = e, a = L(e, "modelValue"), i = (l) => {
|
|
5708
5734
|
var n;
|
|
5709
5735
|
return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(l.value) : a.value === l.value;
|
|
5710
5736
|
}, o = (l) => {
|
|
@@ -5721,8 +5747,8 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5721
5747
|
} else
|
|
5722
5748
|
a.value = a.value === l.value && t.allowEmpty ? null : l.value;
|
|
5723
5749
|
};
|
|
5724
|
-
return (l, n) => (d(), b("div",
|
|
5725
|
-
(d(!0), b(
|
|
5750
|
+
return (l, n) => (d(), b("div", ki, [
|
|
5751
|
+
(d(!0), b(N, null, U(l.options, (s, p) => (d(), x(wi, {
|
|
5726
5752
|
key: p,
|
|
5727
5753
|
onLabel: s.label,
|
|
5728
5754
|
offLabel: s.label,
|
|
@@ -5735,10 +5761,10 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5735
5761
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5736
5762
|
]));
|
|
5737
5763
|
}
|
|
5738
|
-
}),
|
|
5764
|
+
}), Mo = /* @__PURE__ */ z({
|
|
5739
5765
|
__name: "ForgeConfirmPopup",
|
|
5740
5766
|
setup(e) {
|
|
5741
|
-
const t =
|
|
5767
|
+
const t = M(() => ({
|
|
5742
5768
|
root: [
|
|
5743
5769
|
"card w-fit-content position-absolute"
|
|
5744
5770
|
],
|
|
@@ -5749,20 +5775,20 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5749
5775
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5750
5776
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5751
5777
|
}));
|
|
5752
|
-
return (a, i) => (d(), x(c(Ze),
|
|
5778
|
+
return (a, i) => (d(), x(c(Ze), j({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5753
5779
|
default: g(() => [
|
|
5754
|
-
(d(!0), b(
|
|
5780
|
+
(d(!0), b(N, null, U(a.$slots, (o, l) => C(a.$slots, l, { slot: l })), 256))
|
|
5755
5781
|
]),
|
|
5756
5782
|
_: 3
|
|
5757
5783
|
}, 16, ["pt"]));
|
|
5758
5784
|
}
|
|
5759
|
-
}),
|
|
5785
|
+
}), Bi = {
|
|
5760
5786
|
key: 0,
|
|
5761
5787
|
class: "mb-1"
|
|
5762
|
-
},
|
|
5788
|
+
}, $i = {
|
|
5763
5789
|
key: 0,
|
|
5764
5790
|
class: "mb-1"
|
|
5765
|
-
},
|
|
5791
|
+
}, _o = /* @__PURE__ */ z({
|
|
5766
5792
|
__name: "ForgePickList",
|
|
5767
5793
|
props: /* @__PURE__ */ E({
|
|
5768
5794
|
filterBy: {},
|
|
@@ -5797,16 +5823,20 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5797
5823
|
unstyled: { type: Boolean }
|
|
5798
5824
|
}, {
|
|
5799
5825
|
modelValue: {},
|
|
5800
|
-
modelModifiers: {}
|
|
5826
|
+
modelModifiers: {},
|
|
5827
|
+
targetList: { default: [] },
|
|
5828
|
+
targetListModifiers: {},
|
|
5829
|
+
sourceList: { default: [] },
|
|
5830
|
+
sourceListModifiers: {}
|
|
5801
5831
|
}),
|
|
5802
|
-
emits: ["update:modelValue"],
|
|
5832
|
+
emits: ["update:modelValue", "update:targetList", "update:sourceList"],
|
|
5803
5833
|
setup(e) {
|
|
5804
|
-
const t = e, a =
|
|
5805
|
-
const { items:
|
|
5806
|
-
i.value
|
|
5834
|
+
const t = e, a = L(e, "modelValue"), i = L(e, "targetList"), o = L(e, "sourceList"), l = _(null), n = _(null), s = (v) => {
|
|
5835
|
+
const { items: F } = v;
|
|
5836
|
+
i.value.push(...F), o.value = o.value.filter((S) => !F.includes(S));
|
|
5807
5837
|
}, p = (v) => {
|
|
5808
|
-
const { items:
|
|
5809
|
-
o.value
|
|
5838
|
+
const { items: F } = v;
|
|
5839
|
+
o.value.push(...F), i.value = i.value.filter((S) => !F.includes(S));
|
|
5810
5840
|
}, u = () => {
|
|
5811
5841
|
o.value = [.../* @__PURE__ */ new Set([...o.value, ...a.value[1]])], i.value = i.value.filter((v) => !a.value[1].includes(v));
|
|
5812
5842
|
}, h = () => {
|
|
@@ -5818,42 +5848,42 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5818
5848
|
w();
|
|
5819
5849
|
});
|
|
5820
5850
|
const r = () => {
|
|
5821
|
-
var
|
|
5822
|
-
const v = t.filterBy,
|
|
5851
|
+
var S;
|
|
5852
|
+
const v = t.filterBy, F = l.value ? o.value.filter((A) => {
|
|
5823
5853
|
var f;
|
|
5824
5854
|
return A[v].toLowerCase().includes((f = l.value) == null ? void 0 : f.toLowerCase());
|
|
5825
5855
|
}) : [...o.value];
|
|
5826
|
-
(
|
|
5856
|
+
(S = a.value) == null || S.splice(0, 1, F);
|
|
5827
5857
|
}, w = () => {
|
|
5828
|
-
var
|
|
5829
|
-
const v = t.filterBy,
|
|
5858
|
+
var S;
|
|
5859
|
+
const v = t.filterBy, F = n.value ? i.value.filter((A) => {
|
|
5830
5860
|
var f;
|
|
5831
5861
|
return A[v].toLowerCase().includes((f = n.value) == null ? void 0 : f.toLowerCase());
|
|
5832
5862
|
}) : [...i.value];
|
|
5833
|
-
(
|
|
5863
|
+
(S = a.value) == null || S.splice(1, 1, F);
|
|
5834
5864
|
};
|
|
5835
5865
|
return W(
|
|
5836
5866
|
() => a.value,
|
|
5837
5867
|
(v) => {
|
|
5838
|
-
|
|
5868
|
+
var F, S;
|
|
5869
|
+
v && (i.value = v[1].length > 0 ? [...v[1]] : [], o.value = v[0].length > 0 ? [...v[0]] : [], (F = a.value) == null || F.splice(0, 1, o.value), (S = a.value) == null || S.splice(1, 1, i.value));
|
|
5839
5870
|
},
|
|
5840
5871
|
{ once: !0 }
|
|
5841
|
-
), (v,
|
|
5872
|
+
), (v, F) => (d(), x(c(Xe), j({
|
|
5842
5873
|
modelValue: a.value,
|
|
5843
|
-
"onUpdate:modelValue":
|
|
5874
|
+
"onUpdate:modelValue": F[2] || (F[2] = (S) => a.value = S)
|
|
5844
5875
|
}, { ...v.$attrs, ...t }, {
|
|
5845
5876
|
onMoveAllToSource: u,
|
|
5846
5877
|
onMoveAllToTarget: h,
|
|
5847
|
-
onMoveToTarget:
|
|
5848
|
-
onMoveToSource:
|
|
5849
|
-
style: { height: "14rem" }
|
|
5878
|
+
onMoveToTarget: F[3] || (F[3] = (S) => s(S)),
|
|
5879
|
+
onMoveToSource: F[4] || (F[4] = (S) => p(S))
|
|
5850
5880
|
}), {
|
|
5851
5881
|
sourceheader: g(() => [
|
|
5852
|
-
v.sourceTitle ? (d(), b("div",
|
|
5882
|
+
v.sourceTitle ? (d(), b("div", Bi, $(v.sourceTitle), 1)) : T("", !0),
|
|
5853
5883
|
k(c(ae), {
|
|
5854
5884
|
modelValue: l.value,
|
|
5855
5885
|
"onUpdate:modelValue": [
|
|
5856
|
-
|
|
5886
|
+
F[0] || (F[0] = (S) => l.value = S),
|
|
5857
5887
|
r
|
|
5858
5888
|
],
|
|
5859
5889
|
class: "mb-2",
|
|
@@ -5862,11 +5892,11 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5862
5892
|
}, null, 8, ["modelValue"])
|
|
5863
5893
|
]),
|
|
5864
5894
|
targetheader: g(() => [
|
|
5865
|
-
v.targetTitle ? (d(), b("div",
|
|
5895
|
+
v.targetTitle ? (d(), b("div", $i, $(v.targetTitle), 1)) : T("", !0),
|
|
5866
5896
|
k(c(ae), {
|
|
5867
5897
|
modelValue: n.value,
|
|
5868
5898
|
"onUpdate:modelValue": [
|
|
5869
|
-
|
|
5899
|
+
F[1] || (F[1] = (S) => n.value = S),
|
|
5870
5900
|
w
|
|
5871
5901
|
],
|
|
5872
5902
|
class: "mb-2",
|
|
@@ -5874,13 +5904,13 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5874
5904
|
"data-cy": "target-search"
|
|
5875
5905
|
}, null, 8, ["modelValue"])
|
|
5876
5906
|
]),
|
|
5877
|
-
option: g(({ option:
|
|
5878
|
-
V($(
|
|
5907
|
+
option: g(({ option: S }) => [
|
|
5908
|
+
V($(S[v.filterBy]), 1)
|
|
5879
5909
|
]),
|
|
5880
5910
|
_: 1
|
|
5881
5911
|
}, 16, ["modelValue"]));
|
|
5882
5912
|
}
|
|
5883
|
-
}),
|
|
5913
|
+
}), Io = () => ({
|
|
5884
5914
|
type: "component",
|
|
5885
5915
|
resolve: (e) => {
|
|
5886
5916
|
if (e.startsWith("Forge"))
|
|
@@ -5891,40 +5921,40 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5891
5921
|
}
|
|
5892
5922
|
});
|
|
5893
5923
|
export {
|
|
5894
|
-
|
|
5895
|
-
|
|
5924
|
+
no as Bootstrap_PT,
|
|
5925
|
+
so as ForgeActionButton,
|
|
5896
5926
|
re as ForgeAlert,
|
|
5897
|
-
|
|
5927
|
+
ro as ForgeAutoComplete,
|
|
5898
5928
|
ye as ForgeCheckbox,
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5929
|
+
xo as ForgeChip,
|
|
5930
|
+
zo as ForgeColumnCustomiser,
|
|
5931
|
+
Mo as ForgeConfirmPopup,
|
|
5902
5932
|
xe as ForgeDatepicker,
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5933
|
+
To as ForgeFileUploader,
|
|
5934
|
+
Co as ForgeFilterHeader,
|
|
5935
|
+
bo as ForgeForm,
|
|
5936
|
+
yo as ForgeFormField,
|
|
5937
|
+
Zt as ForgeInlineEditor,
|
|
5938
|
+
po as ForgeLink,
|
|
5909
5939
|
pe as ForgeLoader,
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5940
|
+
mo as ForgeModal,
|
|
5941
|
+
ia as ForgeMultiSelectPreview,
|
|
5942
|
+
vo as ForgeNavbar,
|
|
5943
|
+
fo as ForgePageHeader,
|
|
5944
|
+
Po as ForgePanel,
|
|
5945
|
+
_o as ForgePickList,
|
|
5946
|
+
ho as ForgeProgressBar,
|
|
5947
|
+
go as ForgeRemainingCharacters,
|
|
5948
|
+
Io as ForgeResolver,
|
|
5949
|
+
wo as ForgeScratchpad,
|
|
5950
|
+
jo as ForgeSelectButton,
|
|
5951
|
+
ko as ForgeStatWidget,
|
|
5952
|
+
Bo as ForgeStepper,
|
|
5953
|
+
So as ForgeTable,
|
|
5954
|
+
$o as ForgeTile,
|
|
5955
|
+
wi as ForgeToggleButton,
|
|
5956
|
+
Fo as ForgeTreeTable,
|
|
5957
|
+
uo as convertToMultiSelectOption,
|
|
5958
|
+
co as enumToMultiSelectList,
|
|
5929
5959
|
Ut as parseError
|
|
5930
5960
|
};
|