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