@3squared/forge-ui-3 2.22.0 → 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.css +1 -1
- package/dist/esm/forge-ui-3.js +274 -270
- package/package.json +9 -9
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import $e from "primevue/message";
|
|
2
|
-
import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as g, renderSlot as C, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref 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
7
|
import je from "primevue/checkbox";
|
|
8
8
|
import { useField as se } from "vee-validate";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import _e from "primevue/progressspinner";
|
|
10
|
+
import Me from "primevue/dialog";
|
|
11
11
|
import ae from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as Ie } from "@vueuse/components";
|
|
13
13
|
import Ve from "primevue/menubar";
|
|
@@ -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"]
|
|
@@ -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: [
|
|
@@ -1193,13 +1193,12 @@ const Qe = {
|
|
|
1193
1193
|
]
|
|
1194
1194
|
})
|
|
1195
1195
|
}
|
|
1196
|
-
},
|
|
1196
|
+
}, Mt = {
|
|
1197
1197
|
accordionPanel: {
|
|
1198
1198
|
root: "card my-2"
|
|
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: [
|
|
@@ -1313,7 +1312,7 @@ const Qe = {
|
|
|
1313
1312
|
]
|
|
1314
1313
|
})
|
|
1315
1314
|
}
|
|
1316
|
-
},
|
|
1315
|
+
}, so = {
|
|
1317
1316
|
...Qe,
|
|
1318
1317
|
...ht,
|
|
1319
1318
|
...et,
|
|
@@ -1344,10 +1343,10 @@ const Qe = {
|
|
|
1344
1343
|
...vt,
|
|
1345
1344
|
...zt,
|
|
1346
1345
|
...rt,
|
|
1347
|
-
...
|
|
1346
|
+
..._t,
|
|
1348
1347
|
...jt,
|
|
1349
1348
|
...Pt,
|
|
1350
|
-
...
|
|
1349
|
+
...Mt,
|
|
1351
1350
|
...It,
|
|
1352
1351
|
...Vt,
|
|
1353
1352
|
...Dt,
|
|
@@ -1400,7 +1399,7 @@ const Qe = {
|
|
|
1400
1399
|
}, 16);
|
|
1401
1400
|
};
|
|
1402
1401
|
}
|
|
1403
|
-
}),
|
|
1402
|
+
}), ro = /* @__PURE__ */ z({
|
|
1404
1403
|
__name: "ForgeActionButton",
|
|
1405
1404
|
props: {
|
|
1406
1405
|
action: {},
|
|
@@ -1409,7 +1408,7 @@ const Qe = {
|
|
|
1409
1408
|
params: { default: Array }
|
|
1410
1409
|
},
|
|
1411
1410
|
setup(e) {
|
|
1412
|
-
const t =
|
|
1411
|
+
const t = M(!1), a = e, i = async () => {
|
|
1413
1412
|
t.value = !0;
|
|
1414
1413
|
try {
|
|
1415
1414
|
await a.action.apply(this, a.params);
|
|
@@ -1430,7 +1429,7 @@ const Qe = {
|
|
|
1430
1429
|
], 64);
|
|
1431
1430
|
};
|
|
1432
1431
|
}
|
|
1433
|
-
}),
|
|
1432
|
+
}), po = /* @__PURE__ */ z({
|
|
1434
1433
|
__name: "ForgeAutoComplete",
|
|
1435
1434
|
setup(e) {
|
|
1436
1435
|
return (t, a) => (d(), x(c(Pe), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
@@ -1484,7 +1483,7 @@ const Qe = {
|
|
|
1484
1483
|
}
|
|
1485
1484
|
), n = (p, u) => {
|
|
1486
1485
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(u) : a.value = u;
|
|
1487
|
-
}, s =
|
|
1486
|
+
}, s = _(() => o.value.length > 0);
|
|
1488
1487
|
return (p, u) => {
|
|
1489
1488
|
const h = je;
|
|
1490
1489
|
return d(), b("div", At, [
|
|
@@ -1527,7 +1526,7 @@ const Qe = {
|
|
|
1527
1526
|
inLine: { type: Boolean, default: !1 }
|
|
1528
1527
|
},
|
|
1529
1528
|
setup(e) {
|
|
1530
|
-
const t = e, a =
|
|
1529
|
+
const t = e, a = _(() => ({
|
|
1531
1530
|
spin: () => ({
|
|
1532
1531
|
class: [
|
|
1533
1532
|
"spinner-border",
|
|
@@ -1538,7 +1537,7 @@ const Qe = {
|
|
|
1538
1537
|
})
|
|
1539
1538
|
}));
|
|
1540
1539
|
return (i, o) => {
|
|
1541
|
-
const l =
|
|
1540
|
+
const l = _e;
|
|
1542
1541
|
return d(), b("div", {
|
|
1543
1542
|
class: P(i.inLine ? "" : "forge-loader")
|
|
1544
1543
|
}, [
|
|
@@ -1550,7 +1549,7 @@ const Qe = {
|
|
|
1550
1549
|
], 2);
|
|
1551
1550
|
};
|
|
1552
1551
|
}
|
|
1553
|
-
}), Nt = ["href", "target"],
|
|
1552
|
+
}), Nt = ["href", "target"], co = /* @__PURE__ */ z({
|
|
1554
1553
|
__name: "ForgeLink",
|
|
1555
1554
|
props: {
|
|
1556
1555
|
url: {},
|
|
@@ -1568,7 +1567,7 @@ const Qe = {
|
|
|
1568
1567
|
iconName: {}
|
|
1569
1568
|
},
|
|
1570
1569
|
setup(e) {
|
|
1571
|
-
const t =
|
|
1570
|
+
const t = _(() => ({
|
|
1572
1571
|
[`link-${e.severity}`]: e.severity,
|
|
1573
1572
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1574
1573
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1577,7 +1576,7 @@ const Qe = {
|
|
|
1577
1576
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1578
1577
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1579
1578
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1580
|
-
})), a =
|
|
1579
|
+
})), a = _(() => ({
|
|
1581
1580
|
"order-2": e.positionIconEnd,
|
|
1582
1581
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1583
1582
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
@@ -1613,10 +1612,10 @@ function Ut(e) {
|
|
|
1613
1612
|
}
|
|
1614
1613
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1615
1614
|
}
|
|
1616
|
-
function
|
|
1615
|
+
function uo(e, t) {
|
|
1617
1616
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1618
1617
|
}
|
|
1619
|
-
function
|
|
1618
|
+
function mo(e, t, a) {
|
|
1620
1619
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1621
1620
|
}
|
|
1622
1621
|
const Et = {
|
|
@@ -1626,7 +1625,7 @@ const Et = {
|
|
|
1626
1625
|
}, qt = { key: 0 }, Rt = {
|
|
1627
1626
|
class: "d-flex w-100",
|
|
1628
1627
|
"data-cy": "footer"
|
|
1629
|
-
},
|
|
1628
|
+
}, vo = /* @__PURE__ */ z({
|
|
1630
1629
|
__name: "ForgeModal",
|
|
1631
1630
|
props: /* @__PURE__ */ E({
|
|
1632
1631
|
cancelText: { default: "Cancel" },
|
|
@@ -1688,7 +1687,7 @@ const Et = {
|
|
|
1688
1687
|
}),
|
|
1689
1688
|
emits: ["update:visible", "update:error"],
|
|
1690
1689
|
setup(e, { expose: t }) {
|
|
1691
|
-
const a = L(e, "visible"), i =
|
|
1690
|
+
const a = L(e, "visible"), i = M(!1), o = e, l = M(!1), n = L(e, "error"), s = () => {
|
|
1692
1691
|
n.value = {
|
|
1693
1692
|
hasError: !1,
|
|
1694
1693
|
header: "",
|
|
@@ -1717,7 +1716,7 @@ const Et = {
|
|
|
1717
1716
|
}
|
|
1718
1717
|
l.value = !1;
|
|
1719
1718
|
}
|
|
1720
|
-
}, w =
|
|
1719
|
+
}, w = _(() => ({
|
|
1721
1720
|
root: [
|
|
1722
1721
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1723
1722
|
{
|
|
@@ -1737,7 +1736,7 @@ const Et = {
|
|
|
1737
1736
|
]
|
|
1738
1737
|
}));
|
|
1739
1738
|
return (v, F) => {
|
|
1740
|
-
const S = q, A =
|
|
1739
|
+
const S = q, A = Me;
|
|
1741
1740
|
return d(), x(A, j(o, {
|
|
1742
1741
|
onMaximize: u,
|
|
1743
1742
|
onUnmaximize: p,
|
|
@@ -1831,7 +1830,7 @@ const Et = {
|
|
|
1831
1830
|
}),
|
|
1832
1831
|
emits: ["update:modelValue"],
|
|
1833
1832
|
setup(e) {
|
|
1834
|
-
const t = e, a = L(e, "modelValue"), i =
|
|
1833
|
+
const t = e, a = L(e, "modelValue"), i = M(!1), o = M(), l = () => {
|
|
1835
1834
|
var v;
|
|
1836
1835
|
i.value = !i.value, (v = o.value) == null || v.focus();
|
|
1837
1836
|
}, n = async () => {
|
|
@@ -1855,7 +1854,7 @@ const Et = {
|
|
|
1855
1854
|
ne(() => {
|
|
1856
1855
|
r.value = a.value;
|
|
1857
1856
|
});
|
|
1858
|
-
const w =
|
|
1857
|
+
const w = _(() => h.value.length > 0);
|
|
1859
1858
|
return (v, F) => {
|
|
1860
1859
|
const S = ae, A = q;
|
|
1861
1860
|
return d(), b("div", {
|
|
@@ -1935,7 +1934,7 @@ const Et = {
|
|
|
1935
1934
|
], 8, Ht);
|
|
1936
1935
|
};
|
|
1937
1936
|
}
|
|
1938
|
-
}), Xt = ["href"],
|
|
1937
|
+
}), Xt = ["href"], fo = /* @__PURE__ */ z({
|
|
1939
1938
|
__name: "ForgeNavbar",
|
|
1940
1939
|
props: {
|
|
1941
1940
|
severity: { default: "light" },
|
|
@@ -1952,7 +1951,7 @@ const Et = {
|
|
|
1952
1951
|
unstyled: { type: Boolean }
|
|
1953
1952
|
},
|
|
1954
1953
|
setup(e) {
|
|
1955
|
-
const t = e, a =
|
|
1954
|
+
const t = e, a = _(() => ({
|
|
1956
1955
|
root: () => ({
|
|
1957
1956
|
class: [
|
|
1958
1957
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1991,7 +1990,7 @@ const Et = {
|
|
|
1991
1990
|
"data-cy": "logo"
|
|
1992
1991
|
}, [
|
|
1993
1992
|
C(i.$slots, "logo", {}, () => [
|
|
1994
|
-
o[0] || (o[0] = V(" Logo "))
|
|
1993
|
+
o[0] || (o[0] = V(" Logo ", -1))
|
|
1995
1994
|
])
|
|
1996
1995
|
], 8, Xt)
|
|
1997
1996
|
]),
|
|
@@ -2113,7 +2112,7 @@ const Et = {
|
|
|
2113
2112
|
}, na = {
|
|
2114
2113
|
"data-cy": "slot",
|
|
2115
2114
|
class: "d-flex align-items-center"
|
|
2116
|
-
},
|
|
2115
|
+
}, go = /* @__PURE__ */ z({
|
|
2117
2116
|
__name: "ForgePageHeader",
|
|
2118
2117
|
props: {
|
|
2119
2118
|
title: {}
|
|
@@ -2206,7 +2205,7 @@ const Et = {
|
|
|
2206
2205
|
initialValue: a.value
|
|
2207
2206
|
}), p = () => {
|
|
2208
2207
|
s(null), a.value = null;
|
|
2209
|
-
}, u =
|
|
2208
|
+
}, u = _(() => i.value.length > 0), h = _(() => ({
|
|
2210
2209
|
day: ({ context: r, props: w, attrs: v }) => ({
|
|
2211
2210
|
class: [
|
|
2212
2211
|
"d-flex justify-content-center align-items-center",
|
|
@@ -2358,19 +2357,19 @@ const Et = {
|
|
|
2358
2357
|
], 64);
|
|
2359
2358
|
};
|
|
2360
2359
|
}
|
|
2361
|
-
}),
|
|
2360
|
+
}), bo = /* @__PURE__ */ z({
|
|
2362
2361
|
__name: "ForgeRemainingCharacters",
|
|
2363
2362
|
props: {
|
|
2364
2363
|
maxCount: { default: 300 },
|
|
2365
2364
|
currentCount: {}
|
|
2366
2365
|
},
|
|
2367
2366
|
setup(e) {
|
|
2368
|
-
const t = e, a =
|
|
2367
|
+
const t = e, a = _(() => t.maxCount - t.currentCount);
|
|
2369
2368
|
return (i, o) => (d(), b("div", {
|
|
2370
2369
|
class: P(a.value < 0 ? "text-danger" : "")
|
|
2371
2370
|
}, "Remaining characters: " + $(a.value), 3));
|
|
2372
2371
|
}
|
|
2373
|
-
}), ca = { class: "d-flex justify-content-between" },
|
|
2372
|
+
}), ca = { class: "d-flex justify-content-between" }, yo = /* @__PURE__ */ z({
|
|
2374
2373
|
__name: "ForgeForm",
|
|
2375
2374
|
props: {
|
|
2376
2375
|
onSubmit: {},
|
|
@@ -2382,7 +2381,7 @@ const Et = {
|
|
|
2382
2381
|
hideCancel: { type: Boolean, default: !1 }
|
|
2383
2382
|
},
|
|
2384
2383
|
setup(e) {
|
|
2385
|
-
const t = e, a =
|
|
2384
|
+
const t = e, a = M(!1), i = M({
|
|
2386
2385
|
hasError: !1,
|
|
2387
2386
|
message: ""
|
|
2388
2387
|
});
|
|
@@ -2469,7 +2468,10 @@ const Et = {
|
|
|
2469
2468
|
}, ma = ["for"], va = {
|
|
2470
2469
|
key: 0,
|
|
2471
2470
|
class: "text-danger fw-600"
|
|
2472
|
-
},
|
|
2471
|
+
}, fa = {
|
|
2472
|
+
class: "flex--1",
|
|
2473
|
+
style: { flex: "1 0 auto" }
|
|
2474
|
+
}, xo = /* @__PURE__ */ z({
|
|
2473
2475
|
__name: "ForgeFormField",
|
|
2474
2476
|
props: /* @__PURE__ */ E({
|
|
2475
2477
|
name: {},
|
|
@@ -2490,7 +2492,7 @@ const Et = {
|
|
|
2490
2492
|
a.type == "number" ? s(h.value) : s(h);
|
|
2491
2493
|
}, { errors: o, value: l, errorMessage: n, handleChange: s, handleBlur: p } = se(() => a.name, void 0, {
|
|
2492
2494
|
initialValue: t.value
|
|
2493
|
-
}), u =
|
|
2495
|
+
}), u = _(() => o.value.length > 0);
|
|
2494
2496
|
return W(() => l.value, (h) => {
|
|
2495
2497
|
t.value = h;
|
|
2496
2498
|
}, { immediate: !0 }), (h, r) => {
|
|
@@ -2506,7 +2508,7 @@ const Et = {
|
|
|
2506
2508
|
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div", ua, [
|
|
2507
2509
|
m("div", {
|
|
2508
2510
|
"data-cy": "input-wrapper",
|
|
2509
|
-
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"])
|
|
2510
2512
|
}, [
|
|
2511
2513
|
m("label", {
|
|
2512
2514
|
for: a.name,
|
|
@@ -2515,77 +2517,79 @@ const Et = {
|
|
|
2515
2517
|
V($(a.fieldLabel) + " ", 1),
|
|
2516
2518
|
h.required ? (d(), b("span", va, "*")) : T("", !0)
|
|
2517
2519
|
], 10, ma),
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
modelValue:
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
modelValue:
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
modelValue:
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
modelValue:
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
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
|
+
])
|
|
2577
2587
|
])
|
|
2578
|
-
], 2)
|
|
2579
|
-
K(m("small", {
|
|
2580
|
-
"data-cy": "error",
|
|
2581
|
-
class: "invalid-feedback"
|
|
2582
|
-
}, $(c(n)), 513), [
|
|
2583
|
-
[X, u.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2584
|
-
])
|
|
2588
|
+
], 2)
|
|
2585
2589
|
]));
|
|
2586
2590
|
};
|
|
2587
2591
|
}
|
|
2588
|
-
}),
|
|
2592
|
+
}), ho = /* @__PURE__ */ z({
|
|
2589
2593
|
__name: "ForgeChip",
|
|
2590
2594
|
props: {
|
|
2591
2595
|
chipSeverity: { default: "primary" },
|
|
@@ -2601,7 +2605,7 @@ const Et = {
|
|
|
2601
2605
|
unstyled: { type: Boolean }
|
|
2602
2606
|
},
|
|
2603
2607
|
setup(e) {
|
|
2604
|
-
const t = e, a =
|
|
2608
|
+
const t = e, a = _(() => ({
|
|
2605
2609
|
root: [
|
|
2606
2610
|
"badge d-inline-flex align-items-center border me-1 p-1",
|
|
2607
2611
|
{
|
|
@@ -2629,7 +2633,7 @@ const Et = {
|
|
|
2629
2633
|
}, 16, ["pt"]);
|
|
2630
2634
|
};
|
|
2631
2635
|
}
|
|
2632
|
-
}),
|
|
2636
|
+
}), wo = /* @__PURE__ */ z({
|
|
2633
2637
|
__name: "ForgeProgressBar",
|
|
2634
2638
|
props: {
|
|
2635
2639
|
severity: { default: "primary" },
|
|
@@ -2645,7 +2649,7 @@ const Et = {
|
|
|
2645
2649
|
unstyled: { type: Boolean }
|
|
2646
2650
|
},
|
|
2647
2651
|
setup(e) {
|
|
2648
|
-
const t = e, a =
|
|
2652
|
+
const t = e, a = _(() => t.striped ? "progress-bar-striped" : null), i = _(() => t.animate ? "progress-bar-animated" : null), o = _(() => {
|
|
2649
2653
|
switch (t.severity) {
|
|
2650
2654
|
case "brand":
|
|
2651
2655
|
return "bg-brand";
|
|
@@ -2666,7 +2670,7 @@ const Et = {
|
|
|
2666
2670
|
default:
|
|
2667
2671
|
return "bg-primary";
|
|
2668
2672
|
}
|
|
2669
|
-
}), l =
|
|
2673
|
+
}), l = _(() => ({
|
|
2670
2674
|
root: {
|
|
2671
2675
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2672
2676
|
},
|
|
@@ -2685,7 +2689,7 @@ const Et = {
|
|
|
2685
2689
|
};
|
|
2686
2690
|
}
|
|
2687
2691
|
});
|
|
2688
|
-
var
|
|
2692
|
+
var ga = /* @__PURE__ */ z({
|
|
2689
2693
|
name: "VueDrawingCanvas",
|
|
2690
2694
|
props: {
|
|
2691
2695
|
strokeType: {
|
|
@@ -3075,7 +3079,7 @@ var fa = /* @__PURE__ */ z({
|
|
|
3075
3079
|
});
|
|
3076
3080
|
}
|
|
3077
3081
|
});
|
|
3078
|
-
const
|
|
3082
|
+
const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1 gap-1" }, ko = /* @__PURE__ */ z({
|
|
3079
3083
|
__name: "ForgeScratchpad",
|
|
3080
3084
|
props: {
|
|
3081
3085
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -3088,7 +3092,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3088
3092
|
},
|
|
3089
3093
|
emits: ["save"],
|
|
3090
3094
|
setup(e, { emit: t }) {
|
|
3091
|
-
const a = e, i = t, o = Te("drawingCanvas"), l =
|
|
3095
|
+
const a = e, i = t, o = Te("drawingCanvas"), l = M(), n = () => {
|
|
3092
3096
|
o == null || o.value.reset();
|
|
3093
3097
|
}, s = () => {
|
|
3094
3098
|
o == null || o.value.redo();
|
|
@@ -3099,8 +3103,8 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3099
3103
|
};
|
|
3100
3104
|
return (h, r) => {
|
|
3101
3105
|
const w = q;
|
|
3102
|
-
return d(), b("div",
|
|
3103
|
-
k(c(
|
|
3106
|
+
return d(), b("div", ba, [
|
|
3107
|
+
k(c(ga), j({
|
|
3104
3108
|
ref_key: "drawingCanvas",
|
|
3105
3109
|
ref: o,
|
|
3106
3110
|
image: l.value,
|
|
@@ -3113,7 +3117,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3113
3117
|
style: `height: ${h.height}px; width: ${h.width}px`,
|
|
3114
3118
|
"line-join": h.lineJoin
|
|
3115
3119
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
3116
|
-
m("div",
|
|
3120
|
+
m("div", ya, [
|
|
3117
3121
|
a.showUndo ? (d(), x(w, {
|
|
3118
3122
|
key: 0,
|
|
3119
3123
|
onClick: p,
|
|
@@ -3121,7 +3125,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3121
3125
|
"data-cy": "undo-button"
|
|
3122
3126
|
}, {
|
|
3123
3127
|
default: g(() => r[1] || (r[1] = [
|
|
3124
|
-
V("Undo")
|
|
3128
|
+
V("Undo", -1)
|
|
3125
3129
|
])),
|
|
3126
3130
|
_: 1,
|
|
3127
3131
|
__: [1]
|
|
@@ -3133,7 +3137,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3133
3137
|
"data-cy": "redo-button"
|
|
3134
3138
|
}, {
|
|
3135
3139
|
default: g(() => r[2] || (r[2] = [
|
|
3136
|
-
V("Redo")
|
|
3140
|
+
V("Redo", -1)
|
|
3137
3141
|
])),
|
|
3138
3142
|
_: 1,
|
|
3139
3143
|
__: [2]
|
|
@@ -3145,7 +3149,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3145
3149
|
"data-cy": "clear-button"
|
|
3146
3150
|
}, {
|
|
3147
3151
|
default: g(() => r[3] || (r[3] = [
|
|
3148
|
-
V("Clear")
|
|
3152
|
+
V("Clear", -1)
|
|
3149
3153
|
])),
|
|
3150
3154
|
_: 1,
|
|
3151
3155
|
__: [3]
|
|
@@ -3157,7 +3161,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3157
3161
|
"data-cy": "save-button"
|
|
3158
3162
|
}, {
|
|
3159
3163
|
default: g(() => r[4] || (r[4] = [
|
|
3160
|
-
V("Save")
|
|
3164
|
+
V("Save", -1)
|
|
3161
3165
|
])),
|
|
3162
3166
|
_: 1,
|
|
3163
3167
|
__: [4]
|
|
@@ -3166,7 +3170,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3166
3170
|
]);
|
|
3167
3171
|
};
|
|
3168
3172
|
}
|
|
3169
|
-
}),
|
|
3173
|
+
}), xa = { class: "value text-white w-100 text-center" }, Bo = /* @__PURE__ */ z({
|
|
3170
3174
|
__name: "ForgeStatWidget",
|
|
3171
3175
|
props: {
|
|
3172
3176
|
size: { default: "md" },
|
|
@@ -3177,12 +3181,12 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3177
3181
|
return (a, i) => (d(), b("div", j(a.$attrs, {
|
|
3178
3182
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3179
3183
|
}), [
|
|
3180
|
-
m("span",
|
|
3184
|
+
m("span", xa, [
|
|
3181
3185
|
C(a.$slots, "default")
|
|
3182
3186
|
])
|
|
3183
3187
|
], 16));
|
|
3184
3188
|
}
|
|
3185
|
-
}),
|
|
3189
|
+
}), ha = { key: 0 }, $o = /* @__PURE__ */ z({
|
|
3186
3190
|
__name: "ForgeStepper",
|
|
3187
3191
|
props: {
|
|
3188
3192
|
currentStep: { default: 1 },
|
|
@@ -3200,7 +3204,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3200
3204
|
unstyled: { type: Boolean }
|
|
3201
3205
|
},
|
|
3202
3206
|
setup(e) {
|
|
3203
|
-
const t = e, a =
|
|
3207
|
+
const t = e, a = _(() => ({
|
|
3204
3208
|
header: {
|
|
3205
3209
|
class: [
|
|
3206
3210
|
"p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
|
|
@@ -3239,7 +3243,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3239
3243
|
disabled: l.disabled
|
|
3240
3244
|
}, { ref_for: !0 }, { ...i.$attrs }, { pt: a.value }), {
|
|
3241
3245
|
default: g(() => [
|
|
3242
|
-
i.showStepLabel ? (d(), b("div",
|
|
3246
|
+
i.showStepLabel ? (d(), b("div", ha, $(l.label), 1)) : T("", !0)
|
|
3243
3247
|
]),
|
|
3244
3248
|
_: 2
|
|
3245
3249
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -3264,7 +3268,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3264
3268
|
_: 3
|
|
3265
3269
|
}, 8, ["value"]));
|
|
3266
3270
|
}
|
|
3267
|
-
}),
|
|
3271
|
+
}), wa = { class: "p-4 text-wrap w-100" }, ka = { class: "p-4 text-wrap w-100" }, So = /* @__PURE__ */ z({
|
|
3268
3272
|
__name: "ForgeTile",
|
|
3269
3273
|
props: {
|
|
3270
3274
|
severity: { default: "primary" },
|
|
@@ -3273,7 +3277,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3273
3277
|
selected: { type: Boolean, default: !1 }
|
|
3274
3278
|
},
|
|
3275
3279
|
setup(e) {
|
|
3276
|
-
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" : ""}`);
|
|
3277
3281
|
return (o, l) => {
|
|
3278
3282
|
const n = q;
|
|
3279
3283
|
return t.clickable ? (d(), x(n, {
|
|
@@ -3284,9 +3288,9 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3284
3288
|
"data-cy": "button-tile"
|
|
3285
3289
|
}, {
|
|
3286
3290
|
default: g(() => [
|
|
3287
|
-
m("div",
|
|
3291
|
+
m("div", wa, [
|
|
3288
3292
|
C(o.$slots, "default", {}, () => [
|
|
3289
|
-
l[0] || (l[0] = V("Tile Content"))
|
|
3293
|
+
l[0] || (l[0] = V("Tile Content", -1))
|
|
3290
3294
|
])
|
|
3291
3295
|
])
|
|
3292
3296
|
]),
|
|
@@ -3296,9 +3300,9 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3296
3300
|
class: P(["d-flex w-100", i.value]),
|
|
3297
3301
|
"data-cy": "tile"
|
|
3298
3302
|
}, [
|
|
3299
|
-
m("div",
|
|
3303
|
+
m("div", ka, [
|
|
3300
3304
|
C(o.$slots, "default", {}, () => [
|
|
3301
|
-
l[1] || (l[1] = V("Tile Content"))
|
|
3305
|
+
l[1] || (l[1] = V("Tile Content", -1))
|
|
3302
3306
|
])
|
|
3303
3307
|
])
|
|
3304
3308
|
], 2));
|
|
@@ -3308,10 +3312,10 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3308
3312
|
function ee(e, t) {
|
|
3309
3313
|
return e > 1 ? `${t}s` : t;
|
|
3310
3314
|
}
|
|
3311
|
-
const
|
|
3315
|
+
const Ba = {
|
|
3312
3316
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3313
3317
|
"data-cy": "pagination-header"
|
|
3314
|
-
},
|
|
3318
|
+
}, $a = { class: "ms-2" }, Sa = { key: 0 }, Fa = {
|
|
3315
3319
|
class: "w-auto",
|
|
3316
3320
|
"data-cy": "total"
|
|
3317
3321
|
}, he = /* @__PURE__ */ z({
|
|
@@ -3325,13 +3329,13 @@ const ka = {
|
|
|
3325
3329
|
setup(e, { emit: t }) {
|
|
3326
3330
|
const a = t, i = e, o = (n) => {
|
|
3327
3331
|
a("update:perPage", n.value);
|
|
3328
|
-
}, l =
|
|
3332
|
+
}, l = _(() => {
|
|
3329
3333
|
const n = Math.ceil(i.total / i.perPage);
|
|
3330
3334
|
return `${n} ${ee(n, "page")}`;
|
|
3331
3335
|
});
|
|
3332
|
-
return (n, s) => (d(), b("div",
|
|
3333
|
-
s[2] || (s[2] = V(" Number of results per page ")),
|
|
3334
|
-
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, [
|
|
3335
3339
|
k(c(oe), {
|
|
3336
3340
|
options: i.pageSizes,
|
|
3337
3341
|
"model-value": i.perPage,
|
|
@@ -3340,16 +3344,16 @@ const ka = {
|
|
|
3340
3344
|
"data-cy": "pagination-page-size-select"
|
|
3341
3345
|
}, null, 8, ["options", "model-value"])
|
|
3342
3346
|
]),
|
|
3343
|
-
i.total ? (d(), b("div",
|
|
3347
|
+
i.total ? (d(), b("div", Sa, [
|
|
3344
3348
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3345
|
-
m("span",
|
|
3349
|
+
m("span", Fa, $(i.total) + " " + $(c(ee)(i.total, "result")) + " across " + $(l.value), 1)
|
|
3346
3350
|
])) : T("", !0)
|
|
3347
3351
|
]));
|
|
3348
3352
|
}
|
|
3349
|
-
}),
|
|
3353
|
+
}), Ca = { class: "position-relative" }, Ta = { "data-cy": "above-table-slot" }, za = { class: "d-flex w-100" }, Pa = {
|
|
3350
3354
|
class: "mx-auto",
|
|
3351
3355
|
"data-cy": "empty-message"
|
|
3352
|
-
},
|
|
3356
|
+
}, ja = { class: "d-flex" }, _a = { class: "d-flex align-items-end mb-2" }, Ma = { key: 0 }, Ia = { class: "ms-auto" }, Fo = /* @__PURE__ */ z({
|
|
3353
3357
|
__name: "ForgeTable",
|
|
3354
3358
|
props: {
|
|
3355
3359
|
value: {},
|
|
@@ -3436,7 +3440,7 @@ const ka = {
|
|
|
3436
3440
|
},
|
|
3437
3441
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3438
3442
|
setup(e, { emit: t }) {
|
|
3439
|
-
const a = t, i = e, o =
|
|
3443
|
+
const a = t, i = e, o = M(), l = M([5, 10, 20, 50, 100]), n = M(i.perPage ?? 10), s = M({
|
|
3440
3444
|
filters: i.filters,
|
|
3441
3445
|
perPage: n.value,
|
|
3442
3446
|
page: 0,
|
|
@@ -3447,10 +3451,10 @@ const ka = {
|
|
|
3447
3451
|
W(() => i.perPage, (f) => {
|
|
3448
3452
|
f && (n.value = f, s.value.perPage = f);
|
|
3449
3453
|
});
|
|
3450
|
-
const p =
|
|
3454
|
+
const p = _(() => i.totalRecords ?? i.value.length), u = _(() => {
|
|
3451
3455
|
const f = Math.ceil(p.value / n.value);
|
|
3452
3456
|
return `${f} ${ee(f, "page")}`;
|
|
3453
|
-
}), h =
|
|
3457
|
+
}), h = _(() => ({
|
|
3454
3458
|
thead: () => ({
|
|
3455
3459
|
class: [
|
|
3456
3460
|
{
|
|
@@ -3494,8 +3498,8 @@ const ka = {
|
|
|
3494
3498
|
};
|
|
3495
3499
|
return W(() => i.filters, (f) => {
|
|
3496
3500
|
s.value.filters = f, a("update:tableContext", s.value);
|
|
3497
|
-
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (f, B) => (d(), b("div",
|
|
3498
|
-
m("span",
|
|
3501
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (f, B) => (d(), b("div", Ca, [
|
|
3502
|
+
m("span", Ta, [
|
|
3499
3503
|
C(f.$slots, "above-table")
|
|
3500
3504
|
]),
|
|
3501
3505
|
k(c(We), j({
|
|
@@ -3514,16 +3518,16 @@ const ka = {
|
|
|
3514
3518
|
showHeaders: ""
|
|
3515
3519
|
}), ie({
|
|
3516
3520
|
empty: g(() => [
|
|
3517
|
-
m("div",
|
|
3518
|
-
m("h5",
|
|
3521
|
+
m("div", za, [
|
|
3522
|
+
m("h5", Pa, $(f.emptyMessage ?? "No items Found."), 1)
|
|
3519
3523
|
])
|
|
3520
3524
|
]),
|
|
3521
3525
|
header: g(() => [
|
|
3522
3526
|
m("div", {
|
|
3523
3527
|
class: P(i.loading ? "opacity-50" : "")
|
|
3524
3528
|
}, [
|
|
3525
|
-
m("div",
|
|
3526
|
-
m("div",
|
|
3529
|
+
m("div", ja, [
|
|
3530
|
+
m("div", _a, [
|
|
3527
3531
|
f.paginator && !f.legacyPaginationFooter ? (d(), b("span", Ma, [
|
|
3528
3532
|
k(he, {
|
|
3529
3533
|
total: p.value,
|
|
@@ -3536,7 +3540,7 @@ const ka = {
|
|
|
3536
3540
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3537
3541
|
])) : T("", !0)
|
|
3538
3542
|
]),
|
|
3539
|
-
m("div",
|
|
3543
|
+
m("div", Ia, [
|
|
3540
3544
|
f.showClearButton ? (d(), x(c(q), {
|
|
3541
3545
|
key: 0,
|
|
3542
3546
|
outlined: "",
|
|
@@ -3550,7 +3554,7 @@ const ka = {
|
|
|
3550
3554
|
width: "24",
|
|
3551
3555
|
height: "24"
|
|
3552
3556
|
}),
|
|
3553
|
-
B[2] || (B[2] = V(" Clear "))
|
|
3557
|
+
B[2] || (B[2] = V(" Clear ", -1))
|
|
3554
3558
|
]),
|
|
3555
3559
|
_: 1,
|
|
3556
3560
|
__: [2]
|
|
@@ -3567,7 +3571,7 @@ const ka = {
|
|
|
3567
3571
|
width: "24",
|
|
3568
3572
|
height: "24"
|
|
3569
3573
|
}),
|
|
3570
|
-
B[3] || (B[3] = V(" Export "))
|
|
3574
|
+
B[3] || (B[3] = V(" Export ", -1))
|
|
3571
3575
|
]),
|
|
3572
3576
|
_: 1,
|
|
3573
3577
|
__: [3]
|
|
@@ -3620,10 +3624,10 @@ const ka = {
|
|
|
3620
3624
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3621
3625
|
]));
|
|
3622
3626
|
}
|
|
3623
|
-
}),
|
|
3627
|
+
}), Va = { class: "position-relative" }, Da = { "data-cy": "above-table-slot" }, Oa = { class: "d-flex w-100" }, Aa = {
|
|
3624
3628
|
class: "mx-auto",
|
|
3625
3629
|
"data-cy": "empty-message"
|
|
3626
|
-
},
|
|
3630
|
+
}, La = { class: "d-flex" }, Na = { class: "d-flex align-items-end mb-2" }, Ua = { key: 0 }, Ea = { class: "ms-auto" }, Co = /* @__PURE__ */ z({
|
|
3627
3631
|
__name: "ForgeTreeTable",
|
|
3628
3632
|
props: {
|
|
3629
3633
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3684,17 +3688,17 @@ const ka = {
|
|
|
3684
3688
|
},
|
|
3685
3689
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3686
3690
|
setup(e, { emit: t }) {
|
|
3687
|
-
const a = e, i = t, o =
|
|
3691
|
+
const a = e, i = t, o = M([5, 10, 20, 50, 100]), l = M(10), n = M(0), s = M(0), p = M({
|
|
3688
3692
|
filters: a.filters,
|
|
3689
3693
|
perPage: l.value,
|
|
3690
3694
|
page: 0,
|
|
3691
3695
|
sortDirection: "None",
|
|
3692
3696
|
sortField: "",
|
|
3693
3697
|
total: a.totalRecords ?? a.value.length
|
|
3694
|
-
}), u =
|
|
3698
|
+
}), u = _(() => a.totalRecords ?? a.value.length), h = _(() => {
|
|
3695
3699
|
const y = Math.ceil(u.value / l.value);
|
|
3696
3700
|
return `${y} ${ee(y, "page")}`;
|
|
3697
|
-
}), r =
|
|
3701
|
+
}), r = _(() => ({
|
|
3698
3702
|
root: "position-relative",
|
|
3699
3703
|
table: (y) => ({
|
|
3700
3704
|
class: [
|
|
@@ -3791,8 +3795,8 @@ const ka = {
|
|
|
3791
3795
|
const D = () => {
|
|
3792
3796
|
n.value = s.value * l.value;
|
|
3793
3797
|
};
|
|
3794
|
-
return (y, O) => (d(), b("div",
|
|
3795
|
-
m("span",
|
|
3798
|
+
return (y, O) => (d(), b("div", Va, [
|
|
3799
|
+
m("span", Da, [
|
|
3796
3800
|
C(y.$slots, "above-table")
|
|
3797
3801
|
]),
|
|
3798
3802
|
k(c(Ge), j({
|
|
@@ -3810,17 +3814,17 @@ const ka = {
|
|
|
3810
3814
|
first: n.value
|
|
3811
3815
|
}), ie({
|
|
3812
3816
|
empty: g(() => [
|
|
3813
|
-
m("div",
|
|
3814
|
-
m("h5",
|
|
3817
|
+
m("div", Oa, [
|
|
3818
|
+
m("h5", Aa, $(y.emptyMessage ?? "No items Found."), 1)
|
|
3815
3819
|
])
|
|
3816
3820
|
]),
|
|
3817
3821
|
header: g(() => [
|
|
3818
3822
|
m("div", {
|
|
3819
3823
|
class: P(a.loading ? "opacity-50" : "")
|
|
3820
3824
|
}, [
|
|
3821
|
-
m("div",
|
|
3822
|
-
m("div",
|
|
3823
|
-
y.paginator && !y.legacyPaginationFooter ? (d(), b("span",
|
|
3825
|
+
m("div", La, [
|
|
3826
|
+
m("div", Na, [
|
|
3827
|
+
y.paginator && !y.legacyPaginationFooter ? (d(), b("span", Ua, [
|
|
3824
3828
|
k(he, {
|
|
3825
3829
|
total: u.value,
|
|
3826
3830
|
"page-sizes": o.value,
|
|
@@ -3832,7 +3836,7 @@ const ka = {
|
|
|
3832
3836
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3833
3837
|
])) : T("", !0)
|
|
3834
3838
|
]),
|
|
3835
|
-
m("div",
|
|
3839
|
+
m("div", Ea, [
|
|
3836
3840
|
y.showClearButton ? (d(), x(c(q), {
|
|
3837
3841
|
key: 0,
|
|
3838
3842
|
outlined: "",
|
|
@@ -3845,7 +3849,7 @@ const ka = {
|
|
|
3845
3849
|
width: "24",
|
|
3846
3850
|
height: "24"
|
|
3847
3851
|
}),
|
|
3848
|
-
O[3] || (O[3] = V(" Clear "))
|
|
3852
|
+
O[3] || (O[3] = V(" Clear ", -1))
|
|
3849
3853
|
]),
|
|
3850
3854
|
_: 1,
|
|
3851
3855
|
__: [3]
|
|
@@ -3898,7 +3902,7 @@ const ka = {
|
|
|
3898
3902
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3899
3903
|
]));
|
|
3900
3904
|
}
|
|
3901
|
-
}),
|
|
3905
|
+
}), qa = { class: "d-flex position-relative" }, Ra = { class: "d-flex w-100" }, To = /* @__PURE__ */ z({
|
|
3902
3906
|
__name: "ForgeFilterHeader",
|
|
3903
3907
|
props: /* @__PURE__ */ E({
|
|
3904
3908
|
dataType: {},
|
|
@@ -3929,7 +3933,7 @@ const ka = {
|
|
|
3929
3933
|
};
|
|
3930
3934
|
return (o, l) => {
|
|
3931
3935
|
const n = fe, s = q;
|
|
3932
|
-
return d(), b("div",
|
|
3936
|
+
return d(), b("div", qa, [
|
|
3933
3937
|
o.dataType === "numeric" ? (d(), x(n, j({
|
|
3934
3938
|
key: 0,
|
|
3935
3939
|
modelValue: t.value,
|
|
@@ -3952,7 +3956,7 @@ const ka = {
|
|
|
3952
3956
|
"option-label": o.optionLabel
|
|
3953
3957
|
}), {
|
|
3954
3958
|
value: g(({ value: p, placeholder: u }) => [
|
|
3955
|
-
m("div",
|
|
3959
|
+
m("div", Ra, [
|
|
3956
3960
|
m("span", {
|
|
3957
3961
|
class: P({ "filter-placeholder": p === null })
|
|
3958
3962
|
}, $(a(p, u)), 3),
|
|
@@ -5149,7 +5153,7 @@ class we {
|
|
|
5149
5153
|
}
|
|
5150
5154
|
}
|
|
5151
5155
|
Z = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
|
|
5152
|
-
const
|
|
5156
|
+
const Ha = new we(ue, ce)._freeze();
|
|
5153
5157
|
function ke(e, t, a, i) {
|
|
5154
5158
|
const o = t.flatMap((l) => l.file);
|
|
5155
5159
|
return t = t.map((l) => ({ ...l, status: l.status == "Duplicate" ? "Not Uploaded" : l.status })), e.forEach((l) => {
|
|
@@ -5162,7 +5166,7 @@ function ke(e, t, a, i) {
|
|
|
5162
5166
|
})) : t[n].status = "Duplicate";
|
|
5163
5167
|
}), t;
|
|
5164
5168
|
}
|
|
5165
|
-
async function
|
|
5169
|
+
async function Wa(e, t) {
|
|
5166
5170
|
if (e === "Uploaded" && t !== null)
|
|
5167
5171
|
try {
|
|
5168
5172
|
await new ge(t).delete();
|
|
@@ -5185,20 +5189,20 @@ function me(e, t = !0, a = 1) {
|
|
|
5185
5189
|
while (Math.round(Math.abs(e) * n) / n >= i && l < o.length - 1);
|
|
5186
5190
|
return e.toFixed(a) + " " + o[l];
|
|
5187
5191
|
}
|
|
5188
|
-
function
|
|
5192
|
+
function Ga(e) {
|
|
5189
5193
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
5190
5194
|
}
|
|
5191
|
-
function
|
|
5195
|
+
function Ya(e) {
|
|
5192
5196
|
return URL.createObjectURL(e);
|
|
5193
5197
|
}
|
|
5194
|
-
function
|
|
5198
|
+
function Ja() {
|
|
5195
5199
|
const e = new we(ue, ce);
|
|
5196
5200
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
5197
5201
|
}
|
|
5198
|
-
const
|
|
5202
|
+
const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disabled", "multiple"], Xa = {
|
|
5199
5203
|
class: "text-break accepted-file-types-container",
|
|
5200
5204
|
id: "accepted-file-types-overlay"
|
|
5201
|
-
},
|
|
5205
|
+
}, Qa = /* @__PURE__ */ z({
|
|
5202
5206
|
__name: "UploadButton",
|
|
5203
5207
|
props: /* @__PURE__ */ E({
|
|
5204
5208
|
acceptedFileTypes: {},
|
|
@@ -5211,12 +5215,12 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5211
5215
|
}),
|
|
5212
5216
|
emits: ["update:modelValue"],
|
|
5213
5217
|
setup(e) {
|
|
5214
|
-
const t = L(e, "modelValue"), a =
|
|
5218
|
+
const t = L(e, "modelValue"), a = M(), i = (n) => a.value.toggle(n), o = _(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5215
5219
|
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
5216
5220
|
};
|
|
5217
5221
|
return (n, s) => {
|
|
5218
5222
|
const p = q;
|
|
5219
|
-
return d(), b("div",
|
|
5223
|
+
return d(), b("div", Ka, [
|
|
5220
5224
|
C(n.$slots, "message"),
|
|
5221
5225
|
m("div", null, [
|
|
5222
5226
|
m("input", {
|
|
@@ -5227,7 +5231,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5227
5231
|
disabled: o.value,
|
|
5228
5232
|
multiple: n.maxFileInput > 1,
|
|
5229
5233
|
onInput: s[0] || (s[0] = (u) => l([...u.target.files]))
|
|
5230
|
-
}, null, 40,
|
|
5234
|
+
}, null, 40, Za),
|
|
5231
5235
|
m("label", {
|
|
5232
5236
|
class: P([{ disabled: o.value }, "btn btn-primary"]),
|
|
5233
5237
|
id: "file-input-button",
|
|
@@ -5240,7 +5244,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5240
5244
|
height: "20px",
|
|
5241
5245
|
width: "20px"
|
|
5242
5246
|
}),
|
|
5243
|
-
s[1] || (s[1] = V(" Browse your computer "))
|
|
5247
|
+
s[1] || (s[1] = V(" Browse your computer ", -1))
|
|
5244
5248
|
])
|
|
5245
5249
|
], 2)
|
|
5246
5250
|
]),
|
|
@@ -5252,7 +5256,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5252
5256
|
onClick: i
|
|
5253
5257
|
}, {
|
|
5254
5258
|
default: g(() => s[2] || (s[2] = [
|
|
5255
|
-
V("Accepted File Types")
|
|
5259
|
+
V("Accepted File Types", -1)
|
|
5256
5260
|
])),
|
|
5257
5261
|
_: 1,
|
|
5258
5262
|
__: [2]
|
|
@@ -5262,21 +5266,21 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5262
5266
|
ref: a
|
|
5263
5267
|
}, {
|
|
5264
5268
|
default: g(() => [
|
|
5265
|
-
m("div",
|
|
5269
|
+
m("div", Xa, $(n.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
5266
5270
|
]),
|
|
5267
5271
|
_: 1
|
|
5268
5272
|
}, 512)
|
|
5269
5273
|
]);
|
|
5270
5274
|
};
|
|
5271
5275
|
}
|
|
5272
|
-
}),
|
|
5276
|
+
}), ei = {
|
|
5273
5277
|
key: 0,
|
|
5274
5278
|
class: "py-4 px-3",
|
|
5275
5279
|
id: "placeholder-message"
|
|
5276
|
-
},
|
|
5280
|
+
}, ti = {
|
|
5277
5281
|
key: 1,
|
|
5278
5282
|
class: "d-flex flex-column"
|
|
5279
|
-
},
|
|
5283
|
+
}, ai = /* @__PURE__ */ z({
|
|
5280
5284
|
__name: "DragDropArea",
|
|
5281
5285
|
props: /* @__PURE__ */ E({
|
|
5282
5286
|
maxFileInput: {},
|
|
@@ -5288,7 +5292,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5288
5292
|
}),
|
|
5289
5293
|
emits: ["update:modelValue"],
|
|
5290
5294
|
setup(e) {
|
|
5291
|
-
const t = L(e, "modelValue"), a =
|
|
5295
|
+
const t = L(e, "modelValue"), a = M(!1), i = _(() => e.maxFileInput <= t.value.length), o = (l) => {
|
|
5292
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);
|
|
5293
5297
|
};
|
|
5294
5298
|
return (l, n) => (d(), b("div", {
|
|
@@ -5298,20 +5302,20 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5298
5302
|
onDragover: n[1] || (n[1] = Q((s) => a.value = !0, ["prevent"])),
|
|
5299
5303
|
onDrop: Q(o, ["prevent"])
|
|
5300
5304
|
}, [
|
|
5301
|
-
t.value.length === 0 ? (d(), b("div",
|
|
5305
|
+
t.value.length === 0 ? (d(), b("div", ei, [
|
|
5302
5306
|
k(c(I), {
|
|
5303
5307
|
icon: "bi:upload",
|
|
5304
5308
|
class: "me-2",
|
|
5305
5309
|
height: "20px",
|
|
5306
5310
|
width: "20px"
|
|
5307
5311
|
}),
|
|
5308
|
-
n[2] || (n[2] = V(" Drag and drop files here "))
|
|
5309
|
-
])) : (d(), b("div",
|
|
5312
|
+
n[2] || (n[2] = V(" Drag and drop files here ", -1))
|
|
5313
|
+
])) : (d(), b("div", ti, [
|
|
5310
5314
|
C(l.$slots, "default")
|
|
5311
5315
|
]))
|
|
5312
5316
|
], 34));
|
|
5313
5317
|
}
|
|
5314
|
-
}),
|
|
5318
|
+
}), ii = { class: "d-flex align-items-center me-2" }, oi = /* @__PURE__ */ z({
|
|
5315
5319
|
__name: "UploadStatus",
|
|
5316
5320
|
props: {
|
|
5317
5321
|
fileSize: {},
|
|
@@ -5320,7 +5324,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5320
5324
|
uploadStatus: {}
|
|
5321
5325
|
},
|
|
5322
5326
|
setup(e) {
|
|
5323
|
-
const t = e, a =
|
|
5327
|
+
const t = e, a = _(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = _(() => {
|
|
5324
5328
|
switch (t.uploadStatus) {
|
|
5325
5329
|
case "InvalidFileType":
|
|
5326
5330
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -5338,7 +5342,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5338
5342
|
});
|
|
5339
5343
|
return (o, l) => {
|
|
5340
5344
|
const n = pe;
|
|
5341
|
-
return d(), b("div",
|
|
5345
|
+
return d(), b("div", ii, [
|
|
5342
5346
|
t.uploadStatus === "Uploading" ? (d(), x(n, {
|
|
5343
5347
|
key: 0,
|
|
5344
5348
|
"in-line": ""
|
|
@@ -5357,16 +5361,16 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5357
5361
|
]);
|
|
5358
5362
|
};
|
|
5359
5363
|
}
|
|
5360
|
-
}),
|
|
5364
|
+
}), li = ["data-cy"], ni = { class: "ms-3 d-flex flex-column" }, si = {
|
|
5361
5365
|
key: 1,
|
|
5362
5366
|
id: "file-name"
|
|
5363
|
-
},
|
|
5367
|
+
}, ri = {
|
|
5364
5368
|
class: "text-black-50",
|
|
5365
5369
|
id: "file-type"
|
|
5366
|
-
},
|
|
5370
|
+
}, di = {
|
|
5367
5371
|
class: "text-black-50",
|
|
5368
5372
|
id: "file-size"
|
|
5369
|
-
},
|
|
5373
|
+
}, pi = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, ci = /* @__PURE__ */ z({
|
|
5370
5374
|
__name: "FileInfo",
|
|
5371
5375
|
props: /* @__PURE__ */ E({
|
|
5372
5376
|
editableFileName: { type: Boolean },
|
|
@@ -5385,10 +5389,10 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5385
5389
|
}),
|
|
5386
5390
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5387
5391
|
setup(e, { emit: t }) {
|
|
5388
|
-
const a = L(e, "file"), i = L(e, "blobFileName"), o = L(e, "uploadStatus"), l = t, n =
|
|
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 = () => {
|
|
5389
5393
|
n.value != null && (F(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5390
5394
|
}, F = () => {
|
|
5391
|
-
let f = n.value.split("."), B =
|
|
5395
|
+
let f = n.value.split("."), B = Ha.getExtension(w.value), D = n.value.split(".").pop();
|
|
5392
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));
|
|
5393
5397
|
}, S = async () => {
|
|
5394
5398
|
if (!h.value || !r.value) {
|
|
@@ -5421,7 +5425,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5421
5425
|
o.value = "Failed";
|
|
5422
5426
|
}
|
|
5423
5427
|
}, A = async () => {
|
|
5424
|
-
await
|
|
5428
|
+
await Wa(o.value, s.value), l("deleted", a.value);
|
|
5425
5429
|
};
|
|
5426
5430
|
return ne(() => {
|
|
5427
5431
|
e.autoUploadToBlob && o.value != "Uploaded" && S();
|
|
@@ -5432,11 +5436,11 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5432
5436
|
"data-cy": `file-info-${a.value.name}`
|
|
5433
5437
|
}, [
|
|
5434
5438
|
m("div", null, [
|
|
5435
|
-
c(
|
|
5439
|
+
c(Ga)(a.value.type) ? (d(), x(c(Ye), {
|
|
5436
5440
|
key: 0,
|
|
5437
5441
|
id: "thumbnail-image",
|
|
5438
5442
|
"image-class": "image-file-thumbnail border",
|
|
5439
|
-
src: c(
|
|
5443
|
+
src: c(Ya)(a.value),
|
|
5440
5444
|
alt: a.value.name,
|
|
5441
5445
|
width: "75px",
|
|
5442
5446
|
preview: ""
|
|
@@ -5448,7 +5452,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5448
5452
|
width: "75px"
|
|
5449
5453
|
}))
|
|
5450
5454
|
]),
|
|
5451
|
-
m("div",
|
|
5455
|
+
m("div", ni, [
|
|
5452
5456
|
m("div", null, [
|
|
5453
5457
|
f.editableFileName ? (d(), x(Zt, {
|
|
5454
5458
|
key: 0,
|
|
@@ -5458,13 +5462,13 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5458
5462
|
rules: f.customFileNameRules,
|
|
5459
5463
|
name: a.value.name,
|
|
5460
5464
|
"complete-action": v
|
|
5461
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span",
|
|
5465
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", si, $(n.value), 1))
|
|
5462
5466
|
]),
|
|
5463
|
-
m("span",
|
|
5464
|
-
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)
|
|
5465
5469
|
]),
|
|
5466
|
-
m("div",
|
|
5467
|
-
(d(), x(
|
|
5470
|
+
m("div", pi, [
|
|
5471
|
+
(d(), x(oi, {
|
|
5468
5472
|
key: o.value,
|
|
5469
5473
|
"file-size": a.value.size,
|
|
5470
5474
|
"upload-status": o.value,
|
|
@@ -5504,22 +5508,22 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5504
5508
|
_: 1
|
|
5505
5509
|
}))
|
|
5506
5510
|
])
|
|
5507
|
-
], 8,
|
|
5511
|
+
], 8, li);
|
|
5508
5512
|
};
|
|
5509
5513
|
}
|
|
5510
|
-
}),
|
|
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({
|
|
5511
5515
|
__name: "FileInputInfo",
|
|
5512
5516
|
props: {
|
|
5513
5517
|
maxFileSize: {},
|
|
5514
5518
|
maxFileInput: {}
|
|
5515
5519
|
},
|
|
5516
5520
|
setup(e) {
|
|
5517
|
-
return (t, a) => (d(), b("div",
|
|
5518
|
-
m("div",
|
|
5519
|
-
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)
|
|
5520
5524
|
]));
|
|
5521
5525
|
}
|
|
5522
|
-
}),
|
|
5526
|
+
}), gi = { "data-cy": "file-uploader" }, bi = { key: 1 }, zo = /* @__PURE__ */ z({
|
|
5523
5527
|
__name: "ForgeFileUploader",
|
|
5524
5528
|
props: /* @__PURE__ */ E({
|
|
5525
5529
|
acceptedFileTypes: {},
|
|
@@ -5544,7 +5548,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5544
5548
|
const a = e, i = (o) => {
|
|
5545
5549
|
t.value = t.value.filter((l) => l.file != o);
|
|
5546
5550
|
};
|
|
5547
|
-
return (o, l) => (d(), b("div",
|
|
5551
|
+
return (o, l) => (d(), b("div", gi, [
|
|
5548
5552
|
t.value.length == o.maxFileInput && a.maxFileWarning != null ? (d(), x(re, {
|
|
5549
5553
|
key: 0,
|
|
5550
5554
|
id: "max-files-alert",
|
|
@@ -5555,12 +5559,12 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5555
5559
|
]),
|
|
5556
5560
|
_: 1
|
|
5557
5561
|
})) : T("", !0),
|
|
5558
|
-
k(
|
|
5562
|
+
k(Qa, j(a, {
|
|
5559
5563
|
modelValue: t.value,
|
|
5560
5564
|
"onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n)
|
|
5561
5565
|
}), null, 16, ["modelValue"]),
|
|
5562
|
-
o.showDragDropArea ? (d(), b("div",
|
|
5563
|
-
k(
|
|
5566
|
+
o.showDragDropArea ? (d(), b("div", bi, [
|
|
5567
|
+
k(ai, {
|
|
5564
5568
|
"max-file-input": a.maxFileInput,
|
|
5565
5569
|
"max-file-size": a.maxFileSize,
|
|
5566
5570
|
"accepted-file-types": a.acceptedFileTypes,
|
|
@@ -5569,7 +5573,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5569
5573
|
}, {
|
|
5570
5574
|
default: g(() => [
|
|
5571
5575
|
(d(!0), b(N, null, U(t.value, ({ file: n }, s) => (d(), b("div", null, [
|
|
5572
|
-
(d(), x(
|
|
5576
|
+
(d(), x(ci, j({
|
|
5573
5577
|
key: n.name,
|
|
5574
5578
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5575
5579
|
file: t.value[s].file,
|
|
@@ -5583,14 +5587,14 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5583
5587
|
]),
|
|
5584
5588
|
_: 1
|
|
5585
5589
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5586
|
-
k(
|
|
5590
|
+
k(fi, {
|
|
5587
5591
|
"max-file-size": a.maxFileSize,
|
|
5588
5592
|
"max-file-input": o.maxFileInput
|
|
5589
5593
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5590
5594
|
])) : T("", !0)
|
|
5591
5595
|
]));
|
|
5592
5596
|
}
|
|
5593
|
-
}),
|
|
5597
|
+
}), yi = { class: "d-flex" }, xi = { class: "me-3" }, hi = { class: "ms-2" }, wi = { class: "d-flex flex-column w-100" }, Po = /* @__PURE__ */ z({
|
|
5594
5598
|
__name: "ForgeColumnCustomiser",
|
|
5595
5599
|
props: {
|
|
5596
5600
|
modelValue: { required: !0 },
|
|
@@ -5598,7 +5602,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5598
5602
|
},
|
|
5599
5603
|
emits: ["update:modelValue"],
|
|
5600
5604
|
setup(e) {
|
|
5601
|
-
const t = L(e, "modelValue"), a =
|
|
5605
|
+
const t = L(e, "modelValue"), a = M(), i = M(!1), o = (l) => {
|
|
5602
5606
|
a.value.toggle(l);
|
|
5603
5607
|
};
|
|
5604
5608
|
return (l, n) => (d(), b(N, null, [
|
|
@@ -5607,12 +5611,12 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5607
5611
|
class: "ms-2"
|
|
5608
5612
|
}, {
|
|
5609
5613
|
default: g(() => [
|
|
5610
|
-
m("div",
|
|
5611
|
-
m("div",
|
|
5614
|
+
m("div", yi, [
|
|
5615
|
+
m("div", xi, [
|
|
5612
5616
|
k(c(I), { icon: "bi:layout-three-columns" })
|
|
5613
5617
|
]),
|
|
5614
5618
|
V(" Columns (" + $(t.value.filter((s) => s.selected).length ?? 0) + "/" + $(t.value.length ?? 0) + ") ", 1),
|
|
5615
|
-
m("div",
|
|
5619
|
+
m("div", hi, [
|
|
5616
5620
|
k(c(I), {
|
|
5617
5621
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5618
5622
|
}, null, 8, ["icon"])
|
|
@@ -5629,7 +5633,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5629
5633
|
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5630
5634
|
}, {
|
|
5631
5635
|
default: g(() => [
|
|
5632
|
-
m("div",
|
|
5636
|
+
m("div", wi, [
|
|
5633
5637
|
(d(!0), b(N, null, U(t.value, (s, p) => (d(), b("div", {
|
|
5634
5638
|
class: P(["d-flex cursor-pointer", {
|
|
5635
5639
|
"border-top": p !== 0,
|
|
@@ -5653,7 +5657,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5653
5657
|
}, 512)
|
|
5654
5658
|
], 64));
|
|
5655
5659
|
}
|
|
5656
|
-
}),
|
|
5660
|
+
}), jo = /* @__PURE__ */ z({
|
|
5657
5661
|
__name: "ForgePanel",
|
|
5658
5662
|
setup(e) {
|
|
5659
5663
|
return (t, a) => {
|
|
@@ -5682,13 +5686,13 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5682
5686
|
]), 1040);
|
|
5683
5687
|
};
|
|
5684
5688
|
}
|
|
5685
|
-
}),
|
|
5689
|
+
}), ki = /* @__PURE__ */ z({
|
|
5686
5690
|
__name: "ForgeToggleButton",
|
|
5687
5691
|
props: {
|
|
5688
5692
|
severity: { default: "primary" }
|
|
5689
5693
|
},
|
|
5690
5694
|
setup(e) {
|
|
5691
|
-
const t = e, a =
|
|
5695
|
+
const t = e, a = _(() => ({
|
|
5692
5696
|
root: (i) => ({
|
|
5693
5697
|
class: [
|
|
5694
5698
|
"btn",
|
|
@@ -5714,10 +5718,10 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5714
5718
|
pt: a.value
|
|
5715
5719
|
}), null, 16, ["severity", "pt"]));
|
|
5716
5720
|
}
|
|
5717
|
-
}),
|
|
5721
|
+
}), Bi = {
|
|
5718
5722
|
class: "btn-group",
|
|
5719
5723
|
"data-cy": "forge-select-button"
|
|
5720
|
-
},
|
|
5724
|
+
}, _o = /* @__PURE__ */ z({
|
|
5721
5725
|
__name: "ForgeSelectButton",
|
|
5722
5726
|
props: /* @__PURE__ */ E({
|
|
5723
5727
|
options: {},
|
|
@@ -5747,8 +5751,8 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5747
5751
|
} else
|
|
5748
5752
|
a.value = a.value === l.value && t.allowEmpty ? null : l.value;
|
|
5749
5753
|
};
|
|
5750
|
-
return (l, n) => (d(), b("div",
|
|
5751
|
-
(d(!0), b(N, null, U(l.options, (s, p) => (d(), x(
|
|
5754
|
+
return (l, n) => (d(), b("div", Bi, [
|
|
5755
|
+
(d(!0), b(N, null, U(l.options, (s, p) => (d(), x(ki, {
|
|
5752
5756
|
key: p,
|
|
5753
5757
|
onLabel: s.label,
|
|
5754
5758
|
offLabel: s.label,
|
|
@@ -5764,7 +5768,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5764
5768
|
}), Mo = /* @__PURE__ */ z({
|
|
5765
5769
|
__name: "ForgeConfirmPopup",
|
|
5766
5770
|
setup(e) {
|
|
5767
|
-
const t =
|
|
5771
|
+
const t = _(() => ({
|
|
5768
5772
|
root: [
|
|
5769
5773
|
"card w-fit-content position-absolute"
|
|
5770
5774
|
],
|
|
@@ -5782,13 +5786,13 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5782
5786
|
_: 3
|
|
5783
5787
|
}, 16, ["pt"]));
|
|
5784
5788
|
}
|
|
5785
|
-
}),
|
|
5789
|
+
}), $i = {
|
|
5786
5790
|
key: 0,
|
|
5787
5791
|
class: "mb-1"
|
|
5788
|
-
},
|
|
5792
|
+
}, Si = {
|
|
5789
5793
|
key: 0,
|
|
5790
5794
|
class: "mb-1"
|
|
5791
|
-
},
|
|
5795
|
+
}, Io = /* @__PURE__ */ z({
|
|
5792
5796
|
__name: "ForgePickList",
|
|
5793
5797
|
props: /* @__PURE__ */ E({
|
|
5794
5798
|
filterBy: {},
|
|
@@ -5831,7 +5835,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5831
5835
|
}),
|
|
5832
5836
|
emits: ["update:modelValue", "update:targetList", "update:sourceList"],
|
|
5833
5837
|
setup(e) {
|
|
5834
|
-
const t = e, a = L(e, "modelValue"), i = L(e, "targetList"), o = L(e, "sourceList"), l =
|
|
5838
|
+
const t = e, a = L(e, "modelValue"), i = L(e, "targetList"), o = L(e, "sourceList"), l = M(null), n = M(null), s = (v) => {
|
|
5835
5839
|
const { items: F } = v;
|
|
5836
5840
|
i.value.push(...F), o.value = o.value.filter((S) => !F.includes(S));
|
|
5837
5841
|
}, p = (v) => {
|
|
@@ -5879,7 +5883,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5879
5883
|
onMoveToSource: F[4] || (F[4] = (S) => p(S))
|
|
5880
5884
|
}), {
|
|
5881
5885
|
sourceheader: g(() => [
|
|
5882
|
-
v.sourceTitle ? (d(), b("div",
|
|
5886
|
+
v.sourceTitle ? (d(), b("div", $i, $(v.sourceTitle), 1)) : T("", !0),
|
|
5883
5887
|
k(c(ae), {
|
|
5884
5888
|
modelValue: l.value,
|
|
5885
5889
|
"onUpdate:modelValue": [
|
|
@@ -5892,7 +5896,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5892
5896
|
}, null, 8, ["modelValue"])
|
|
5893
5897
|
]),
|
|
5894
5898
|
targetheader: g(() => [
|
|
5895
|
-
v.targetTitle ? (d(), b("div",
|
|
5899
|
+
v.targetTitle ? (d(), b("div", Si, $(v.targetTitle), 1)) : T("", !0),
|
|
5896
5900
|
k(c(ae), {
|
|
5897
5901
|
modelValue: n.value,
|
|
5898
5902
|
"onUpdate:modelValue": [
|
|
@@ -5910,7 +5914,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5910
5914
|
_: 1
|
|
5911
5915
|
}, 16, ["modelValue"]));
|
|
5912
5916
|
}
|
|
5913
|
-
}),
|
|
5917
|
+
}), Vo = () => ({
|
|
5914
5918
|
type: "component",
|
|
5915
5919
|
resolve: (e) => {
|
|
5916
5920
|
if (e.startsWith("Forge"))
|
|
@@ -5921,40 +5925,40 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5921
5925
|
}
|
|
5922
5926
|
});
|
|
5923
5927
|
export {
|
|
5924
|
-
|
|
5925
|
-
|
|
5928
|
+
so as Bootstrap_PT,
|
|
5929
|
+
ro as ForgeActionButton,
|
|
5926
5930
|
re as ForgeAlert,
|
|
5927
|
-
|
|
5931
|
+
po as ForgeAutoComplete,
|
|
5928
5932
|
ye as ForgeCheckbox,
|
|
5929
|
-
|
|
5930
|
-
|
|
5933
|
+
ho as ForgeChip,
|
|
5934
|
+
Po as ForgeColumnCustomiser,
|
|
5931
5935
|
Mo as ForgeConfirmPopup,
|
|
5932
5936
|
xe as ForgeDatepicker,
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
+
zo as ForgeFileUploader,
|
|
5938
|
+
To as ForgeFilterHeader,
|
|
5939
|
+
yo as ForgeForm,
|
|
5940
|
+
xo as ForgeFormField,
|
|
5937
5941
|
Zt as ForgeInlineEditor,
|
|
5938
|
-
|
|
5942
|
+
co as ForgeLink,
|
|
5939
5943
|
pe as ForgeLoader,
|
|
5940
|
-
|
|
5944
|
+
vo as ForgeModal,
|
|
5941
5945
|
ia as ForgeMultiSelectPreview,
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
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,
|
|
5959
5963
|
Ut as parseError
|
|
5960
5964
|
};
|