@3squared/forge-ui-3 2.9.0 → 2.10.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 +552 -528
- package/dist/src/components/ForgeFormField.vue.d.ts +22 -1
- package/dist/src/components/ForgeSelectButton.vue.d.ts +6 -5
- package/dist/src/passthroughs/SelectButton.pt.d.ts +4 -2
- package/dist/src/types/forge-types.d.ts +0 -1
- package/package.json +1 -1
- package/src/types/forge-types.ts +0 -1
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import he from "primevue/message";
|
|
2
|
-
import { defineComponent as $, openBlock as r, createBlock as
|
|
2
|
+
import { defineComponent as $, openBlock as r, createBlock as f, normalizeProps as J, guardReactiveProps as K, withCtx as b, createElementVNode as m, normalizeClass as F, unref as u, createCommentVNode as z, createVNode as x, renderSlot as w, ref as _, createElementBlock as v, Fragment as O, mergeProps as C, renderList as N, mergeModels as U, useModel as D, computed as T, createTextVNode as I, toDisplayString as k, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Be } from "vue";
|
|
3
3
|
import { Icon as j } from "@iconify/vue";
|
|
4
4
|
import A from "primevue/button";
|
|
5
|
-
import
|
|
5
|
+
import Fe from "primevue/toast";
|
|
6
6
|
import Se from "primevue/autocomplete";
|
|
7
7
|
import Ce from "primevue/checkbox";
|
|
8
8
|
import { useField as ee } from "vee-validate";
|
|
9
9
|
import ze from "primevue/progressspinner";
|
|
10
10
|
import Te from "primevue/dialog";
|
|
11
|
-
import
|
|
11
|
+
import ne from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as je } from "@vueuse/components";
|
|
13
13
|
import Ie from "primevue/menubar";
|
|
14
|
-
import
|
|
14
|
+
import oe from "primevue/multiselect";
|
|
15
15
|
import _e from "primevue/datepicker";
|
|
16
16
|
import te from "primevue/select";
|
|
17
17
|
import Pe from "primevue/inputmask";
|
|
@@ -463,7 +463,7 @@ const We = {
|
|
|
463
463
|
content: "d-flex position-relative",
|
|
464
464
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
465
465
|
}
|
|
466
|
-
},
|
|
466
|
+
}, nt = {
|
|
467
467
|
message: {
|
|
468
468
|
root: ({ props: e }) => ({
|
|
469
469
|
class: [
|
|
@@ -492,7 +492,7 @@ const We = {
|
|
|
492
492
|
class: ["px-0 ms-2 btn d-flex"]
|
|
493
493
|
})
|
|
494
494
|
}
|
|
495
|
-
},
|
|
495
|
+
}, ot = {
|
|
496
496
|
// More PT options defined in ForgeStepper.
|
|
497
497
|
stepList: {
|
|
498
498
|
root: "d-flex mb-2 w-100"
|
|
@@ -881,6 +881,7 @@ const We = {
|
|
|
881
881
|
"btn",
|
|
882
882
|
{
|
|
883
883
|
"btn-primary": e.context.active,
|
|
884
|
+
"border-danger": e.parent.props.invalid,
|
|
884
885
|
"btn-outline-primary": !e.context.active
|
|
885
886
|
}
|
|
886
887
|
]
|
|
@@ -1038,7 +1039,7 @@ const We = {
|
|
|
1038
1039
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1039
1040
|
filterIcon: "d-none"
|
|
1040
1041
|
}
|
|
1041
|
-
},
|
|
1042
|
+
}, Bt = {
|
|
1042
1043
|
treeSelect: {
|
|
1043
1044
|
root: ({ props: e }) => ({
|
|
1044
1045
|
class: [
|
|
@@ -1086,7 +1087,7 @@ const We = {
|
|
|
1086
1087
|
filterIcon: "d-none"
|
|
1087
1088
|
}
|
|
1088
1089
|
}
|
|
1089
|
-
},
|
|
1090
|
+
}, Ft = {
|
|
1090
1091
|
fieldset: {
|
|
1091
1092
|
root: () => ({
|
|
1092
1093
|
class: [
|
|
@@ -1130,7 +1131,7 @@ const We = {
|
|
|
1130
1131
|
accordionContent: {
|
|
1131
1132
|
root: "mt-2 mx-4 mb-4"
|
|
1132
1133
|
}
|
|
1133
|
-
},
|
|
1134
|
+
}, Oi = {
|
|
1134
1135
|
...We,
|
|
1135
1136
|
...mt,
|
|
1136
1137
|
...Ye,
|
|
@@ -1146,7 +1147,7 @@ const We = {
|
|
|
1146
1147
|
...Ze,
|
|
1147
1148
|
...Xe,
|
|
1148
1149
|
...Qe,
|
|
1149
|
-
...
|
|
1150
|
+
...nt,
|
|
1150
1151
|
...dt,
|
|
1151
1152
|
...vt,
|
|
1152
1153
|
...lt,
|
|
@@ -1155,14 +1156,14 @@ const We = {
|
|
|
1155
1156
|
...ct,
|
|
1156
1157
|
...gt,
|
|
1157
1158
|
...bt,
|
|
1158
|
-
...
|
|
1159
|
+
...ot,
|
|
1159
1160
|
...ut,
|
|
1160
1161
|
...et,
|
|
1161
1162
|
...st,
|
|
1162
1163
|
...kt,
|
|
1163
1164
|
...tt,
|
|
1164
|
-
...Bt,
|
|
1165
1165
|
...Ft,
|
|
1166
|
+
...Bt,
|
|
1166
1167
|
...$t,
|
|
1167
1168
|
...St,
|
|
1168
1169
|
directives: {
|
|
@@ -1189,31 +1190,31 @@ const We = {
|
|
|
1189
1190
|
const t = e;
|
|
1190
1191
|
return (a, i) => {
|
|
1191
1192
|
const l = he;
|
|
1192
|
-
return r(),
|
|
1193
|
-
icon:
|
|
1193
|
+
return r(), f(l, J(K({ ...a.$attrs, ...t })), {
|
|
1194
|
+
icon: b(() => [
|
|
1194
1195
|
m("div", {
|
|
1195
|
-
class:
|
|
1196
|
+
class: F(t.icon ? "me-2 pe-1" : "")
|
|
1196
1197
|
}, [
|
|
1197
|
-
t.icon ? (r(),
|
|
1198
|
+
t.icon ? (r(), f(u(j), {
|
|
1198
1199
|
key: 0,
|
|
1199
1200
|
"data-cy": "message-icon",
|
|
1200
1201
|
icon: t.icon,
|
|
1201
|
-
class:
|
|
1202
|
+
class: F(`text-${t.severity}`),
|
|
1202
1203
|
height: 35
|
|
1203
1204
|
}, null, 8, ["icon", "class"])) : z("", !0)
|
|
1204
1205
|
], 2)
|
|
1205
1206
|
]),
|
|
1206
|
-
closeicon:
|
|
1207
|
+
closeicon: b(() => [
|
|
1207
1208
|
x(u(j), { icon: "bi:x" })
|
|
1208
1209
|
]),
|
|
1209
|
-
default:
|
|
1210
|
-
|
|
1210
|
+
default: b(() => [
|
|
1211
|
+
w(a.$slots, "default")
|
|
1211
1212
|
]),
|
|
1212
1213
|
_: 3
|
|
1213
1214
|
}, 16);
|
|
1214
1215
|
};
|
|
1215
1216
|
}
|
|
1216
|
-
}),
|
|
1217
|
+
}), Ni = /* @__PURE__ */ $({
|
|
1217
1218
|
__name: "ForgeActionButton",
|
|
1218
1219
|
props: {
|
|
1219
1220
|
action: {},
|
|
@@ -1222,7 +1223,7 @@ const We = {
|
|
|
1222
1223
|
params: { default: Array }
|
|
1223
1224
|
},
|
|
1224
1225
|
setup(e) {
|
|
1225
|
-
const t =
|
|
1226
|
+
const t = _(!1), a = e, i = async () => {
|
|
1226
1227
|
t.value = !0;
|
|
1227
1228
|
try {
|
|
1228
1229
|
await a.action.apply(this, a.params);
|
|
@@ -1233,29 +1234,29 @@ const We = {
|
|
|
1233
1234
|
};
|
|
1234
1235
|
return (l, n) => {
|
|
1235
1236
|
const o = A;
|
|
1236
|
-
return r(),
|
|
1237
|
+
return r(), v(O, null, [
|
|
1237
1238
|
x(o, C({ ...a, ...l.$attrs }, {
|
|
1238
1239
|
loading: t.value,
|
|
1239
1240
|
disabled: t.value || a.disabled,
|
|
1240
1241
|
onClick: i
|
|
1241
1242
|
}), null, 16, ["loading", "disabled"]),
|
|
1242
|
-
x(u(
|
|
1243
|
+
x(u(Fe))
|
|
1243
1244
|
], 64);
|
|
1244
1245
|
};
|
|
1245
1246
|
}
|
|
1246
|
-
}),
|
|
1247
|
+
}), Ui = /* @__PURE__ */ $({
|
|
1247
1248
|
__name: "ForgeAutoComplete",
|
|
1248
1249
|
setup(e) {
|
|
1249
|
-
return (t, a) => (r(),
|
|
1250
|
-
default:
|
|
1251
|
-
(r(!0),
|
|
1250
|
+
return (t, a) => (r(), f(u(Se), C({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1251
|
+
default: b(() => [
|
|
1252
|
+
(r(!0), v(O, null, N(t.$slots, (i, l) => w(t.$slots, l, { slot: l })), 256))
|
|
1252
1253
|
]),
|
|
1253
1254
|
_: 3
|
|
1254
1255
|
}, 16));
|
|
1255
1256
|
}
|
|
1256
1257
|
}), Ct = { class: "d-flex flex-column" }, zt = ["for"], fe = /* @__PURE__ */ $({
|
|
1257
1258
|
__name: "ForgeCheckbox",
|
|
1258
|
-
props: /* @__PURE__ */
|
|
1259
|
+
props: /* @__PURE__ */ U({
|
|
1259
1260
|
label: { default: "" },
|
|
1260
1261
|
value: {},
|
|
1261
1262
|
modelValue: {},
|
|
@@ -1299,14 +1300,14 @@ const We = {
|
|
|
1299
1300
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
|
|
1300
1301
|
}, s = T(() => l.value.length > 0);
|
|
1301
1302
|
return (p, c) => {
|
|
1302
|
-
const
|
|
1303
|
-
return r(),
|
|
1303
|
+
const g = Ce;
|
|
1304
|
+
return r(), v("div", Ct, [
|
|
1304
1305
|
m("div", C({
|
|
1305
1306
|
class: "d-flex",
|
|
1306
1307
|
"data-cy": "checkbox-container",
|
|
1307
1308
|
onClick: c[2] || (c[2] = (d) => o(d, a.value))
|
|
1308
1309
|
}, { ...p.$attrs }), [
|
|
1309
|
-
x(
|
|
1310
|
+
x(g, C({ ...t }, {
|
|
1310
1311
|
binary: "",
|
|
1311
1312
|
modelValue: a.value,
|
|
1312
1313
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d),
|
|
@@ -1317,17 +1318,17 @@ const We = {
|
|
|
1317
1318
|
m("label", {
|
|
1318
1319
|
for: t.name,
|
|
1319
1320
|
onClick: c[1] || (c[1] = (d) => o(d, !a.value)),
|
|
1320
|
-
class:
|
|
1321
|
+
class: F([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1321
1322
|
}, [
|
|
1322
|
-
|
|
1323
|
-
|
|
1323
|
+
w(p.$slots, "default", {}, () => [
|
|
1324
|
+
I(k(t.label), 1)
|
|
1324
1325
|
])
|
|
1325
1326
|
], 10, zt)
|
|
1326
1327
|
], 16),
|
|
1327
1328
|
H(m("small", {
|
|
1328
1329
|
"data-cy": "error",
|
|
1329
1330
|
class: "text-invalid"
|
|
1330
|
-
},
|
|
1331
|
+
}, k(u(n)), 513), [
|
|
1331
1332
|
[Y, s.value]
|
|
1332
1333
|
])
|
|
1333
1334
|
]);
|
|
@@ -1342,15 +1343,15 @@ const We = {
|
|
|
1342
1343
|
const t = e;
|
|
1343
1344
|
return (a, i) => {
|
|
1344
1345
|
const l = ze;
|
|
1345
|
-
return r(),
|
|
1346
|
+
return r(), v("div", Tt, [
|
|
1346
1347
|
x(l, {
|
|
1347
1348
|
"animation-duration": ".75",
|
|
1348
|
-
class:
|
|
1349
|
+
class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1349
1350
|
}, null, 8, ["class"])
|
|
1350
1351
|
]);
|
|
1351
1352
|
};
|
|
1352
1353
|
}
|
|
1353
|
-
}), jt = ["href", "target"],
|
|
1354
|
+
}), jt = ["href", "target"], Ai = /* @__PURE__ */ $({
|
|
1354
1355
|
__name: "ForgeLink",
|
|
1355
1356
|
props: {
|
|
1356
1357
|
url: {},
|
|
@@ -1384,20 +1385,20 @@ const We = {
|
|
|
1384
1385
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1385
1386
|
"me-0": e.animateIconOnHover
|
|
1386
1387
|
}));
|
|
1387
|
-
return (i, l) => (r(),
|
|
1388
|
+
return (i, l) => (r(), v("a", {
|
|
1388
1389
|
id: "link",
|
|
1389
|
-
class:
|
|
1390
|
+
class: F(["cursor-pointer d-flex text-break", t.value]),
|
|
1390
1391
|
href: i.url,
|
|
1391
1392
|
target: i.target
|
|
1392
1393
|
}, [
|
|
1393
|
-
|
|
1394
|
-
i.iconName ? (r(),
|
|
1394
|
+
w(i.$slots, "default", {}, () => [
|
|
1395
|
+
i.iconName ? (r(), f(u(j), {
|
|
1395
1396
|
key: 0,
|
|
1396
1397
|
id: "link-icon",
|
|
1397
1398
|
icon: i.iconName,
|
|
1398
|
-
class:
|
|
1399
|
+
class: F(["bi my-auto", a.value])
|
|
1399
1400
|
}, null, 8, ["icon", "class"])) : z("", !0),
|
|
1400
|
-
|
|
1401
|
+
I(" " + k(i.label), 1)
|
|
1401
1402
|
])
|
|
1402
1403
|
], 10, jt));
|
|
1403
1404
|
}
|
|
@@ -1413,18 +1414,18 @@ function It(e) {
|
|
|
1413
1414
|
}
|
|
1414
1415
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1415
1416
|
}
|
|
1416
|
-
function
|
|
1417
|
+
function qi(e, t) {
|
|
1417
1418
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1418
1419
|
}
|
|
1419
|
-
function
|
|
1420
|
+
function Ei(e, t, a) {
|
|
1420
1421
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1421
1422
|
}
|
|
1422
1423
|
const _t = { key: 0 }, Pt = {
|
|
1423
1424
|
class: "d-flex w-100",
|
|
1424
1425
|
"data-cy": "footer"
|
|
1425
|
-
},
|
|
1426
|
+
}, Li = /* @__PURE__ */ $({
|
|
1426
1427
|
__name: "ForgeModal",
|
|
1427
|
-
props: /* @__PURE__ */
|
|
1428
|
+
props: /* @__PURE__ */ U({
|
|
1428
1429
|
cancelText: { default: "Cancel" },
|
|
1429
1430
|
submitText: { default: "Submit" },
|
|
1430
1431
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1473,7 +1474,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1473
1474
|
}),
|
|
1474
1475
|
emits: ["update:visible"],
|
|
1475
1476
|
setup(e, { expose: t }) {
|
|
1476
|
-
const a = D(e, "visible"), i =
|
|
1477
|
+
const a = D(e, "visible"), i = _(!1), l = e, n = _(!1), o = _({
|
|
1477
1478
|
hasError: !1,
|
|
1478
1479
|
header: "",
|
|
1479
1480
|
message: []
|
|
@@ -1491,14 +1492,14 @@ const _t = { key: 0 }, Pt = {
|
|
|
1491
1492
|
i.value = !1;
|
|
1492
1493
|
}, c = () => {
|
|
1493
1494
|
i.value = !0;
|
|
1494
|
-
},
|
|
1495
|
+
}, g = () => {
|
|
1495
1496
|
l.resetErrorOnClose && s(), a.value = !1;
|
|
1496
1497
|
}, d = async () => {
|
|
1497
1498
|
if (l.onConfirm) {
|
|
1498
1499
|
n.value = !0, o.value.hasError = !1;
|
|
1499
1500
|
try {
|
|
1500
1501
|
const S = await l.onConfirm();
|
|
1501
|
-
(S || S == null) &&
|
|
1502
|
+
(S || S == null) && g();
|
|
1502
1503
|
} catch (S) {
|
|
1503
1504
|
o.value.hasError = !0;
|
|
1504
1505
|
const V = It(S);
|
|
@@ -1506,7 +1507,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1506
1507
|
}
|
|
1507
1508
|
n.value = !1;
|
|
1508
1509
|
}
|
|
1509
|
-
},
|
|
1510
|
+
}, B = T(() => ({
|
|
1510
1511
|
root: [
|
|
1511
1512
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1512
1513
|
{
|
|
@@ -1519,21 +1520,21 @@ const _t = { key: 0 }, Pt = {
|
|
|
1519
1520
|
}));
|
|
1520
1521
|
return (S, V) => {
|
|
1521
1522
|
const M = A, q = Te;
|
|
1522
|
-
return r(),
|
|
1523
|
+
return r(), f(q, C(l, {
|
|
1523
1524
|
onMaximize: c,
|
|
1524
1525
|
onUnmaximize: p,
|
|
1525
|
-
pt:
|
|
1526
|
+
pt: B.value
|
|
1526
1527
|
}), ie({
|
|
1527
|
-
closeicon:
|
|
1528
|
+
closeicon: b(() => [
|
|
1528
1529
|
x(u(j), {
|
|
1529
1530
|
"data-cy": "close-icon",
|
|
1530
1531
|
icon: "bi:x-lg",
|
|
1531
1532
|
width: "18",
|
|
1532
1533
|
height: "18",
|
|
1533
|
-
onClick:
|
|
1534
|
+
onClick: g
|
|
1534
1535
|
})
|
|
1535
1536
|
]),
|
|
1536
|
-
maximizeicon:
|
|
1537
|
+
maximizeicon: b(() => [
|
|
1537
1538
|
x(u(j), {
|
|
1538
1539
|
"data-cy": "maximisable-icon",
|
|
1539
1540
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
@@ -1543,45 +1544,45 @@ const _t = { key: 0 }, Pt = {
|
|
|
1543
1544
|
]),
|
|
1544
1545
|
_: 2
|
|
1545
1546
|
}, [
|
|
1546
|
-
|
|
1547
|
+
N(S.$slots, (y, h) => ({
|
|
1547
1548
|
name: h,
|
|
1548
|
-
fn:
|
|
1549
|
-
o.value.hasError ? (r(),
|
|
1549
|
+
fn: b((P) => [
|
|
1550
|
+
o.value.hasError ? (r(), f(se, {
|
|
1550
1551
|
key: 0,
|
|
1551
1552
|
severity: "danger",
|
|
1552
1553
|
"data-cy": "error"
|
|
1553
1554
|
}, {
|
|
1554
|
-
default:
|
|
1555
|
+
default: b(() => [
|
|
1555
1556
|
m("p", {
|
|
1556
|
-
class:
|
|
1557
|
-
},
|
|
1558
|
-
o.value.message.length > 0 ? (r(),
|
|
1559
|
-
(r(!0),
|
|
1557
|
+
class: F(o.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1558
|
+
}, k(o.value.header), 3),
|
|
1559
|
+
o.value.message.length > 0 ? (r(), v("ul", _t, [
|
|
1560
|
+
(r(!0), v(O, null, N(o.value.message, (L) => (r(), v("li", { key: L }, k(L), 1))), 128))
|
|
1560
1561
|
])) : z("", !0)
|
|
1561
1562
|
]),
|
|
1562
1563
|
_: 1
|
|
1563
1564
|
})) : z("", !0),
|
|
1564
|
-
|
|
1565
|
-
n.value ?
|
|
1565
|
+
w(S.$slots, h, J(K(P || {}))),
|
|
1566
|
+
n.value ? w(S.$slots, "loader", { key: 1 }, () => [
|
|
1566
1567
|
x(ge, { "data-cy": "loader" })
|
|
1567
1568
|
]) : z("", !0)
|
|
1568
1569
|
])
|
|
1569
1570
|
})),
|
|
1570
1571
|
S.showFooter ? {
|
|
1571
1572
|
name: "footer",
|
|
1572
|
-
fn:
|
|
1573
|
+
fn: b(() => [
|
|
1573
1574
|
m("div", Pt, [
|
|
1574
1575
|
x(M, {
|
|
1575
1576
|
label: S.cancelText,
|
|
1576
|
-
class:
|
|
1577
|
+
class: F(l.cancelClass),
|
|
1577
1578
|
outlined: "",
|
|
1578
|
-
onClick:
|
|
1579
|
+
onClick: g,
|
|
1579
1580
|
id: "cancel-button",
|
|
1580
1581
|
type: l.cancelButtonType
|
|
1581
1582
|
}, null, 8, ["label", "class", "type"]),
|
|
1582
1583
|
x(M, {
|
|
1583
1584
|
label: S.submitText,
|
|
1584
|
-
class:
|
|
1585
|
+
class: F([l.submitClass, "ms-auto"]),
|
|
1585
1586
|
onClick: d,
|
|
1586
1587
|
id: "submit-button",
|
|
1587
1588
|
type: l.submitButtonType
|
|
@@ -1595,7 +1596,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1595
1596
|
}
|
|
1596
1597
|
}), Vt = ["id"], Mt = { key: 0 }, Dt = { key: 0 }, Ot = { class: "d-flex justify-content-between align-items-center position-relative" }, Nt = { key: 1 }, Ut = { "data-cy": "readonly-value" }, At = /* @__PURE__ */ $({
|
|
1597
1598
|
__name: "ForgeInlineEditor",
|
|
1598
|
-
props: /* @__PURE__ */
|
|
1599
|
+
props: /* @__PURE__ */ U({
|
|
1599
1600
|
name: { default: "" },
|
|
1600
1601
|
completeAction: {},
|
|
1601
1602
|
errorAction: {},
|
|
@@ -1608,11 +1609,11 @@ const _t = { key: 0 }, Pt = {
|
|
|
1608
1609
|
}),
|
|
1609
1610
|
emits: ["update:modelValue"],
|
|
1610
1611
|
setup(e) {
|
|
1611
|
-
const t = e, a = D(e, "modelValue"), i =
|
|
1612
|
+
const t = e, a = D(e, "modelValue"), i = _(!1), l = _(), n = () => {
|
|
1612
1613
|
var S;
|
|
1613
1614
|
i.value = !i.value, (S = l.value) == null || S.focus();
|
|
1614
1615
|
}, o = async () => {
|
|
1615
|
-
if (
|
|
1616
|
+
if (B.value)
|
|
1616
1617
|
return !1;
|
|
1617
1618
|
if (a.value = d.value, t.completeAction)
|
|
1618
1619
|
try {
|
|
@@ -1626,27 +1627,27 @@ const _t = { key: 0 }, Pt = {
|
|
|
1626
1627
|
i.value = !i.value;
|
|
1627
1628
|
}, p = () => {
|
|
1628
1629
|
d.value = null;
|
|
1629
|
-
}, { errorMessage: c, errors:
|
|
1630
|
+
}, { errorMessage: c, errors: g, value: d } = ee(() => t.name, void 0, {
|
|
1630
1631
|
initialValue: a.value
|
|
1631
1632
|
});
|
|
1632
1633
|
le(() => {
|
|
1633
1634
|
d.value = a.value;
|
|
1634
1635
|
});
|
|
1635
|
-
const
|
|
1636
|
+
const B = T(() => g.value.length > 0);
|
|
1636
1637
|
return (S, V) => {
|
|
1637
|
-
const M =
|
|
1638
|
-
return r(),
|
|
1638
|
+
const M = ne, q = A;
|
|
1639
|
+
return r(), v("div", {
|
|
1639
1640
|
id: t.name
|
|
1640
1641
|
}, [
|
|
1641
|
-
S.readonly ? (r(),
|
|
1642
|
-
|
|
1643
|
-
m("span", Ut,
|
|
1642
|
+
S.readonly ? (r(), v("div", Nt, [
|
|
1643
|
+
w(S.$slots, "default", {}, () => [
|
|
1644
|
+
m("span", Ut, k(u(d)), 1)
|
|
1644
1645
|
])
|
|
1645
|
-
])) : (r(),
|
|
1646
|
-
i.value ? (r(),
|
|
1647
|
-
H((r(),
|
|
1648
|
-
|
|
1649
|
-
class:
|
|
1646
|
+
])) : (r(), v("div", Mt, [
|
|
1647
|
+
i.value ? (r(), v("div", Dt, [
|
|
1648
|
+
H((r(), v("div", Ot, [
|
|
1649
|
+
w(S.$slots, "editor", {
|
|
1650
|
+
class: F({ "is-invalid": B.value }),
|
|
1650
1651
|
editFinished: o,
|
|
1651
1652
|
cancel: s,
|
|
1652
1653
|
val: u(d)
|
|
@@ -1658,7 +1659,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1658
1659
|
"data-cy": "input",
|
|
1659
1660
|
ref_key: "input",
|
|
1660
1661
|
ref: l,
|
|
1661
|
-
class:
|
|
1662
|
+
class: F({ "is-invalid": B.value }),
|
|
1662
1663
|
onKeydown: [
|
|
1663
1664
|
X(o, ["enter"]),
|
|
1664
1665
|
X(s, ["esc"])
|
|
@@ -1675,26 +1676,26 @@ const _t = { key: 0 }, Pt = {
|
|
|
1675
1676
|
])), [
|
|
1676
1677
|
[u(je), o]
|
|
1677
1678
|
])
|
|
1678
|
-
])) : (r(),
|
|
1679
|
+
])) : (r(), v("div", {
|
|
1679
1680
|
key: 1,
|
|
1680
1681
|
class: "d-flex text-muted",
|
|
1681
1682
|
onClick: n,
|
|
1682
1683
|
onFocus: n
|
|
1683
1684
|
}, [
|
|
1684
|
-
|
|
1685
|
+
w(S.$slots, "default", {}, () => [
|
|
1685
1686
|
m("div", {
|
|
1686
|
-
class:
|
|
1687
|
+
class: F(["pe-2 cursor-pointer", { "text-invalid": B.value }]),
|
|
1687
1688
|
"data-cy": "value"
|
|
1688
|
-
},
|
|
1689
|
+
}, k(u(d) ? u(d) : "Click to edit"), 3)
|
|
1689
1690
|
]),
|
|
1690
1691
|
x(q, {
|
|
1691
1692
|
link: "",
|
|
1692
1693
|
class: "p-0 m-0"
|
|
1693
1694
|
}, {
|
|
1694
|
-
default:
|
|
1695
|
+
default: b(() => [
|
|
1695
1696
|
x(u(j), {
|
|
1696
1697
|
icon: "bi:pencil",
|
|
1697
|
-
class: B
|
|
1698
|
+
class: F(B.value ? "text-invalid" : "text-muted"),
|
|
1698
1699
|
"data-cy": "edit-icon",
|
|
1699
1700
|
onKeydown: X(n, ["enter"])
|
|
1700
1701
|
}, null, 8, ["class"])
|
|
@@ -1706,13 +1707,13 @@ const _t = { key: 0 }, Pt = {
|
|
|
1706
1707
|
H(m("small", {
|
|
1707
1708
|
"data-cy": "error",
|
|
1708
1709
|
class: "text-invalid"
|
|
1709
|
-
},
|
|
1710
|
-
[Y,
|
|
1710
|
+
}, k(u(c)), 513), [
|
|
1711
|
+
[Y, B.value]
|
|
1711
1712
|
])
|
|
1712
1713
|
], 8, Vt);
|
|
1713
1714
|
};
|
|
1714
1715
|
}
|
|
1715
|
-
}), qt = ["href"],
|
|
1716
|
+
}), qt = ["href"], Ri = /* @__PURE__ */ $({
|
|
1716
1717
|
__name: "ForgeNavbar",
|
|
1717
1718
|
props: {
|
|
1718
1719
|
severity: { default: "light" },
|
|
@@ -1756,26 +1757,26 @@ const _t = { key: 0 }, Pt = {
|
|
|
1756
1757
|
]
|
|
1757
1758
|
})
|
|
1758
1759
|
}));
|
|
1759
|
-
return (i, l) => (r(),
|
|
1760
|
+
return (i, l) => (r(), f(u(Ie), C({ ...t, ...i.$attrs }, {
|
|
1760
1761
|
pt: a.value,
|
|
1761
1762
|
"data-cy": "navbar"
|
|
1762
1763
|
}), ie({
|
|
1763
|
-
start:
|
|
1764
|
+
start: b(() => [
|
|
1764
1765
|
m("a", {
|
|
1765
1766
|
href: i.logoUrl,
|
|
1766
1767
|
class: "navbar-brand ms-3",
|
|
1767
1768
|
"data-cy": "logo"
|
|
1768
1769
|
}, [
|
|
1769
|
-
|
|
1770
|
-
l[0] || (l[0] =
|
|
1770
|
+
w(i.$slots, "logo", {}, () => [
|
|
1771
|
+
l[0] || (l[0] = I(" Logo "))
|
|
1771
1772
|
])
|
|
1772
1773
|
], 8, qt)
|
|
1773
1774
|
]),
|
|
1774
|
-
buttonicon:
|
|
1775
|
-
|
|
1775
|
+
buttonicon: b(() => [
|
|
1776
|
+
w(i.$slots, "buttonIcon", {}, () => [
|
|
1776
1777
|
x(u(j), {
|
|
1777
1778
|
icon: "bi:list",
|
|
1778
|
-
class:
|
|
1779
|
+
class: F(t.severity === "light" ? "text-black" : "text-white"),
|
|
1779
1780
|
height: "24",
|
|
1780
1781
|
"data-cy": "burger-icon"
|
|
1781
1782
|
}, null, 8, ["class"])
|
|
@@ -1783,10 +1784,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
1783
1784
|
]),
|
|
1784
1785
|
_: 2
|
|
1785
1786
|
}, [
|
|
1786
|
-
|
|
1787
|
+
N(i.$slots, (n, o) => ({
|
|
1787
1788
|
name: o,
|
|
1788
|
-
fn:
|
|
1789
|
-
|
|
1789
|
+
fn: b((s) => [
|
|
1790
|
+
w(i.$slots, o, J(K(s)))
|
|
1790
1791
|
])
|
|
1791
1792
|
}))
|
|
1792
1793
|
]), 1040, ["pt"]));
|
|
@@ -1800,7 +1801,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1800
1801
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1801
1802
|
}, Wt = /* @__PURE__ */ $({
|
|
1802
1803
|
__name: "ForgeMultiSelectPreview",
|
|
1803
|
-
props: /* @__PURE__ */
|
|
1804
|
+
props: /* @__PURE__ */ U({
|
|
1804
1805
|
title: { default: "Selected Items" },
|
|
1805
1806
|
orientation: { default: "row" },
|
|
1806
1807
|
height: { default: "200px" },
|
|
@@ -1818,13 +1819,13 @@ const _t = { key: 0 }, Pt = {
|
|
|
1818
1819
|
a.value = a.value.filter((n) => n.id !== l);
|
|
1819
1820
|
};
|
|
1820
1821
|
return (l, n) => {
|
|
1821
|
-
const o =
|
|
1822
|
-
return r(),
|
|
1823
|
-
class:
|
|
1822
|
+
const o = oe, s = A;
|
|
1823
|
+
return r(), v("div", {
|
|
1824
|
+
class: F(l.orientation === "column" ? "row" : ""),
|
|
1824
1825
|
"data-cy": "multiselect-preview"
|
|
1825
1826
|
}, [
|
|
1826
1827
|
m("div", {
|
|
1827
|
-
class:
|
|
1828
|
+
class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1828
1829
|
"data-cy": "multiselect-container"
|
|
1829
1830
|
}, [
|
|
1830
1831
|
x(o, C({
|
|
@@ -1836,15 +1837,15 @@ const _t = { key: 0 }, Pt = {
|
|
|
1836
1837
|
placeholder: l.multiselectPlaceholder,
|
|
1837
1838
|
"data-cy": "multiselect"
|
|
1838
1839
|
}), {
|
|
1839
|
-
default:
|
|
1840
|
-
(r(!0),
|
|
1840
|
+
default: b(() => [
|
|
1841
|
+
(r(!0), v(O, null, N(l.$slots, (p, c) => w(l.$slots, c, { slot: c })), 256))
|
|
1841
1842
|
]),
|
|
1842
1843
|
_: 3
|
|
1843
1844
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1844
|
-
|
|
1845
|
+
w(l.$slots, "after-multi-select")
|
|
1845
1846
|
], 2),
|
|
1846
1847
|
m("div", {
|
|
1847
|
-
class:
|
|
1848
|
+
class: F(l.orientation === "row" ? "col-12" : "col"),
|
|
1848
1849
|
"data-cy": "options-preview"
|
|
1849
1850
|
}, [
|
|
1850
1851
|
m("div", {
|
|
@@ -1852,21 +1853,21 @@ const _t = { key: 0 }, Pt = {
|
|
|
1852
1853
|
class: "overflow-auto"
|
|
1853
1854
|
}, [
|
|
1854
1855
|
m("div", Et, [
|
|
1855
|
-
l.title ? (r(),
|
|
1856
|
-
(r(!0),
|
|
1856
|
+
l.title ? (r(), v("div", Lt, k(l.title), 1)) : z("", !0),
|
|
1857
|
+
(r(!0), v(O, null, N(a.value, (p) => (r(), v("div", {
|
|
1857
1858
|
key: p.id,
|
|
1858
1859
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1859
1860
|
}, [
|
|
1860
|
-
|
|
1861
|
-
m("span", Rt,
|
|
1861
|
+
w(l.$slots, "list-item", { item: p }, () => [
|
|
1862
|
+
m("span", Rt, k(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1862
1863
|
]),
|
|
1863
|
-
l.canRemoveItemFromPreview ? (r(),
|
|
1864
|
+
l.canRemoveItemFromPreview ? (r(), f(s, {
|
|
1864
1865
|
key: 0,
|
|
1865
1866
|
link: "",
|
|
1866
1867
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1867
1868
|
onClick: (c) => i(p.id)
|
|
1868
1869
|
}, {
|
|
1869
|
-
default:
|
|
1870
|
+
default: b(() => [
|
|
1870
1871
|
x(u(j), {
|
|
1871
1872
|
icon: "bi:x",
|
|
1872
1873
|
class: "close-icon",
|
|
@@ -1876,7 +1877,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1876
1877
|
_: 2
|
|
1877
1878
|
}, 1032, ["onClick"])) : z("", !0)
|
|
1878
1879
|
]))), 128)),
|
|
1879
|
-
a.value == null || a.value.length == 0 ? (r(),
|
|
1880
|
+
a.value == null || a.value.length == 0 ? (r(), v("div", Ht, k(t.optionsPreviewEmptyText), 1)) : z("", !0)
|
|
1880
1881
|
])
|
|
1881
1882
|
], 4)
|
|
1882
1883
|
], 2)
|
|
@@ -1889,23 +1890,23 @@ const _t = { key: 0 }, Pt = {
|
|
|
1889
1890
|
}, Jt = {
|
|
1890
1891
|
"data-cy": "slot",
|
|
1891
1892
|
class: "d-flex align-items-center"
|
|
1892
|
-
},
|
|
1893
|
+
}, Hi = /* @__PURE__ */ $({
|
|
1893
1894
|
__name: "ForgePageHeader",
|
|
1894
1895
|
props: {
|
|
1895
1896
|
title: {}
|
|
1896
1897
|
},
|
|
1897
1898
|
setup(e) {
|
|
1898
1899
|
const t = e;
|
|
1899
|
-
return (a, i) => (r(),
|
|
1900
|
-
m("h3", Gt,
|
|
1900
|
+
return (a, i) => (r(), v("div", Yt, [
|
|
1901
|
+
m("h3", Gt, k(t.title), 1),
|
|
1901
1902
|
m("div", Jt, [
|
|
1902
|
-
|
|
1903
|
+
w(a.$slots, "default")
|
|
1903
1904
|
])
|
|
1904
1905
|
]));
|
|
1905
1906
|
}
|
|
1906
1907
|
}), Kt = { class: "d-flex" }, Zt = { "data-cy": "before-slot" }, Xt = { class: "position-relative w-100" }, Qt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ $({
|
|
1907
1908
|
__name: "ForgeDatepicker",
|
|
1908
|
-
props: /* @__PURE__ */
|
|
1909
|
+
props: /* @__PURE__ */ U({
|
|
1909
1910
|
severity: { default: "primary" },
|
|
1910
1911
|
modelValue: {},
|
|
1911
1912
|
defaultValue: {},
|
|
@@ -1983,7 +1984,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1983
1984
|
initialValue: a.value
|
|
1984
1985
|
}), p = () => {
|
|
1985
1986
|
s(null), a.value = null;
|
|
1986
|
-
}, c = T(() => i.value.length > 0),
|
|
1987
|
+
}, c = T(() => i.value.length > 0), g = T(() => ({
|
|
1987
1988
|
dayCell: ({ context: d }) => ({
|
|
1988
1989
|
class: [
|
|
1989
1990
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
@@ -2074,28 +2075,28 @@ const _t = { key: 0 }, Pt = {
|
|
|
2074
2075
|
]
|
|
2075
2076
|
})
|
|
2076
2077
|
}));
|
|
2077
|
-
return (d,
|
|
2078
|
+
return (d, B) => {
|
|
2078
2079
|
const S = _e;
|
|
2079
|
-
return r(),
|
|
2080
|
+
return r(), v(O, null, [
|
|
2080
2081
|
m("div", Kt, [
|
|
2081
2082
|
m("span", Zt, [
|
|
2082
|
-
|
|
2083
|
+
w(d.$slots, "before")
|
|
2083
2084
|
]),
|
|
2084
2085
|
m("div", Xt, [
|
|
2085
2086
|
x(S, C({ ...t, ...d.$attrs }, {
|
|
2086
|
-
pt:
|
|
2087
|
+
pt: g.value,
|
|
2087
2088
|
modelValue: a.value,
|
|
2088
2089
|
"onUpdate:modelValue": [
|
|
2089
|
-
|
|
2090
|
+
B[0] || (B[0] = (V) => a.value = V),
|
|
2090
2091
|
u(n)
|
|
2091
2092
|
],
|
|
2092
|
-
onBlur:
|
|
2093
|
+
onBlur: B[1] || (B[1] = () => u(o)),
|
|
2093
2094
|
"input-class": { "datepicker-invalid": c.value }
|
|
2094
2095
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2095
2096
|
H(x(u(j), {
|
|
2096
2097
|
"data-cy": "icon",
|
|
2097
2098
|
icon: "bi:calendar4",
|
|
2098
|
-
class:
|
|
2099
|
+
class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2099
2100
|
}, null, 8, ["class"]), [
|
|
2100
2101
|
[Y, t.showIcon]
|
|
2101
2102
|
]),
|
|
@@ -2103,25 +2104,25 @@ const _t = { key: 0 }, Pt = {
|
|
|
2103
2104
|
"data-cy": "icon",
|
|
2104
2105
|
icon: "bi:x",
|
|
2105
2106
|
onClick: p,
|
|
2106
|
-
class:
|
|
2107
|
+
class: F(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2107
2108
|
}, null, 8, ["class"]), [
|
|
2108
2109
|
[Y, t.modelValue]
|
|
2109
2110
|
])
|
|
2110
2111
|
]),
|
|
2111
2112
|
m("span", Qt, [
|
|
2112
|
-
|
|
2113
|
+
w(d.$slots, "after")
|
|
2113
2114
|
])
|
|
2114
2115
|
]),
|
|
2115
2116
|
H(m("small", {
|
|
2116
2117
|
"data-cy": "error",
|
|
2117
2118
|
class: "text-invalid"
|
|
2118
|
-
},
|
|
2119
|
+
}, k(u(l)), 513), [
|
|
2119
2120
|
[Y, c.value]
|
|
2120
2121
|
])
|
|
2121
2122
|
], 64);
|
|
2122
2123
|
};
|
|
2123
2124
|
}
|
|
2124
|
-
}),
|
|
2125
|
+
}), Wi = /* @__PURE__ */ $({
|
|
2125
2126
|
__name: "ForgeRemainingCharacters",
|
|
2126
2127
|
props: {
|
|
2127
2128
|
maxCount: { default: 300 },
|
|
@@ -2129,11 +2130,11 @@ const _t = { key: 0 }, Pt = {
|
|
|
2129
2130
|
},
|
|
2130
2131
|
setup(e) {
|
|
2131
2132
|
const t = e, a = T(() => t.maxCount - t.currentCount);
|
|
2132
|
-
return (i, l) => (r(),
|
|
2133
|
-
class:
|
|
2134
|
-
}, "Remaining characters: " +
|
|
2133
|
+
return (i, l) => (r(), v("div", {
|
|
2134
|
+
class: F(a.value < 0 ? "text-danger" : "")
|
|
2135
|
+
}, "Remaining characters: " + k(a.value), 3));
|
|
2135
2136
|
}
|
|
2136
|
-
}), ea = { class: "d-flex justify-content-between" },
|
|
2137
|
+
}), ea = { class: "d-flex justify-content-between" }, Yi = /* @__PURE__ */ $({
|
|
2137
2138
|
__name: "ForgeForm",
|
|
2138
2139
|
props: {
|
|
2139
2140
|
onSubmit: {},
|
|
@@ -2145,7 +2146,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2145
2146
|
hideCancel: { type: Boolean, default: !1 }
|
|
2146
2147
|
},
|
|
2147
2148
|
setup(e) {
|
|
2148
|
-
const t = e, a =
|
|
2149
|
+
const t = e, a = _(!1), i = _({
|
|
2149
2150
|
hasError: !1,
|
|
2150
2151
|
message: ""
|
|
2151
2152
|
});
|
|
@@ -2160,38 +2161,38 @@ const _t = { key: 0 }, Pt = {
|
|
|
2160
2161
|
}
|
|
2161
2162
|
return (n, o) => {
|
|
2162
2163
|
const s = A;
|
|
2163
|
-
return r(),
|
|
2164
|
+
return r(), v("form", C(n.$attrs, {
|
|
2164
2165
|
novalidate: "",
|
|
2165
2166
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2166
2167
|
onSubmit: G(l, ["prevent"])
|
|
2167
2168
|
}), [
|
|
2168
|
-
n.hideTitle ? z("", !0) : (r(),
|
|
2169
|
-
|
|
2169
|
+
n.hideTitle ? z("", !0) : (r(), v(O, { key: 0 }, [
|
|
2170
|
+
w(n.$slots, "title", {}, () => [
|
|
2170
2171
|
m("h3", {
|
|
2171
|
-
class:
|
|
2172
|
+
class: F(n.titleClass),
|
|
2172
2173
|
"data-cy": "form-title"
|
|
2173
|
-
},
|
|
2174
|
+
}, k(n.title), 3)
|
|
2174
2175
|
]),
|
|
2175
2176
|
o[1] || (o[1] = m("hr", null, null, -1))
|
|
2176
2177
|
], 64)),
|
|
2177
|
-
i.value.hasError ? (r(),
|
|
2178
|
+
i.value.hasError ? (r(), f(se, {
|
|
2178
2179
|
key: 1,
|
|
2179
2180
|
severity: "danger",
|
|
2180
2181
|
"data-cy": "error"
|
|
2181
2182
|
}, {
|
|
2182
|
-
default:
|
|
2183
|
-
|
|
2183
|
+
default: b(() => [
|
|
2184
|
+
w(n.$slots, "error", {
|
|
2184
2185
|
error: i.value.message
|
|
2185
2186
|
}, () => [
|
|
2186
|
-
|
|
2187
|
+
I(k(i.value.message), 1)
|
|
2187
2188
|
])
|
|
2188
2189
|
]),
|
|
2189
2190
|
_: 3
|
|
2190
2191
|
})) : z("", !0),
|
|
2191
|
-
|
|
2192
|
+
w(n.$slots, "default"),
|
|
2192
2193
|
m("div", ea, [
|
|
2193
|
-
|
|
2194
|
-
n.hideCancel ? z("", !0) : (r(),
|
|
2194
|
+
w(n.$slots, "cancel", {}, () => [
|
|
2195
|
+
n.hideCancel ? z("", !0) : (r(), f(s, {
|
|
2195
2196
|
key: 0,
|
|
2196
2197
|
"data-cy": "cancel-btn",
|
|
2197
2198
|
type: "reset",
|
|
@@ -2199,27 +2200,27 @@ const _t = { key: 0 }, Pt = {
|
|
|
2199
2200
|
outlined: "",
|
|
2200
2201
|
onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
|
|
2201
2202
|
}, {
|
|
2202
|
-
default:
|
|
2203
|
-
|
|
2203
|
+
default: b(() => [
|
|
2204
|
+
I(k(n.cancelText), 1)
|
|
2204
2205
|
]),
|
|
2205
2206
|
_: 1
|
|
2206
2207
|
}))
|
|
2207
2208
|
]),
|
|
2208
|
-
|
|
2209
|
+
w(n.$slots, "submit", { submit: l }, () => [
|
|
2209
2210
|
x(s, {
|
|
2210
2211
|
"data-cy": "submit-btn",
|
|
2211
2212
|
type: "submit",
|
|
2212
2213
|
severity: "primary",
|
|
2213
2214
|
class: "ms-auto"
|
|
2214
2215
|
}, {
|
|
2215
|
-
default:
|
|
2216
|
-
|
|
2216
|
+
default: b(() => [
|
|
2217
|
+
I(k(n.submitText), 1)
|
|
2217
2218
|
]),
|
|
2218
2219
|
_: 1
|
|
2219
2220
|
})
|
|
2220
2221
|
])
|
|
2221
2222
|
]),
|
|
2222
|
-
a.value ? (r(),
|
|
2223
|
+
a.value ? (r(), f(ge, {
|
|
2223
2224
|
key: 2,
|
|
2224
2225
|
"data-cy": "loading-spinner"
|
|
2225
2226
|
})) : z("", !0)
|
|
@@ -2229,117 +2230,126 @@ const _t = { key: 0 }, Pt = {
|
|
|
2229
2230
|
}), ta = {
|
|
2230
2231
|
key: 1,
|
|
2231
2232
|
class: "d-flex flex-column w-100"
|
|
2232
|
-
}, aa = ["for"],
|
|
2233
|
+
}, aa = ["for"], ia = {
|
|
2234
|
+
key: 0,
|
|
2235
|
+
class: "text-danger fw-600"
|
|
2236
|
+
}, Gi = /* @__PURE__ */ $({
|
|
2233
2237
|
__name: "ForgeFormField",
|
|
2234
|
-
props: /* @__PURE__ */
|
|
2238
|
+
props: /* @__PURE__ */ U({
|
|
2235
2239
|
name: {},
|
|
2236
2240
|
fieldLabelPosition: { default: "top" },
|
|
2237
2241
|
fieldLabel: {},
|
|
2238
2242
|
type: { default: "text" },
|
|
2239
2243
|
mask: { default: "" },
|
|
2240
2244
|
placeholder: { default: "" },
|
|
2241
|
-
labelWidthClass: { default: "w-25" }
|
|
2245
|
+
labelWidthClass: { default: "w-25" },
|
|
2246
|
+
required: { type: Boolean, default: !1 }
|
|
2242
2247
|
}, {
|
|
2243
2248
|
modelValue: {},
|
|
2244
2249
|
modelModifiers: {}
|
|
2245
2250
|
}),
|
|
2246
2251
|
emits: ["update:modelValue"],
|
|
2247
2252
|
setup(e) {
|
|
2248
|
-
const t = D(e, "modelValue"), a = e, i = (
|
|
2249
|
-
a.type == "number" ? s(
|
|
2253
|
+
const t = D(e, "modelValue"), a = e, i = (g) => {
|
|
2254
|
+
a.type == "number" ? s(g.value) : s(g);
|
|
2250
2255
|
}, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } = ee(() => a.name, void 0, {
|
|
2251
2256
|
initialValue: t.value
|
|
2252
2257
|
}), c = T(() => l.value.length > 0);
|
|
2253
|
-
return ce(() => n.value, (
|
|
2254
|
-
t.value =
|
|
2255
|
-
}, { immediate: !0 }), (
|
|
2256
|
-
const
|
|
2257
|
-
return a.type === "checkbox" ? (r(),
|
|
2258
|
+
return ce(() => n.value, (g) => {
|
|
2259
|
+
t.value = g;
|
|
2260
|
+
}, { immediate: !0 }), (g, d) => {
|
|
2261
|
+
const B = Ve, S = Pe, V = ne, M = te, q = oe, y = be;
|
|
2262
|
+
return a.type === "checkbox" ? (r(), f(fe, C({
|
|
2258
2263
|
key: 0,
|
|
2259
2264
|
id: a.name,
|
|
2260
2265
|
label: a.fieldLabel
|
|
2261
|
-
},
|
|
2266
|
+
}, g.$attrs, {
|
|
2262
2267
|
name: a.name,
|
|
2263
2268
|
modelValue: t.value,
|
|
2264
2269
|
"onUpdate:modelValue": d[0] || (d[0] = (h) => t.value = h)
|
|
2265
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(),
|
|
2270
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(), v("div", ta, [
|
|
2266
2271
|
m("div", {
|
|
2267
2272
|
"data-cy": "input-wrapper",
|
|
2268
|
-
class:
|
|
2273
|
+
class: F(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2269
2274
|
}, [
|
|
2270
2275
|
m("label", {
|
|
2271
2276
|
for: a.name,
|
|
2272
|
-
class:
|
|
2273
|
-
},
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
placeholder: a.
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
placeholder: a.
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
placeholder: a.
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2277
|
+
class: F(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2278
|
+
}, [
|
|
2279
|
+
I(k(a.fieldLabel) + " ", 1),
|
|
2280
|
+
g.required ? (r(), v("span", ia, "*")) : z("", !0)
|
|
2281
|
+
], 10, aa),
|
|
2282
|
+
w(g.$slots, "default", J(K({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2283
|
+
a.type === "number" ? (r(), f(u(ue), C({
|
|
2284
|
+
key: 0,
|
|
2285
|
+
id: a.name
|
|
2286
|
+
}, g.$attrs, {
|
|
2287
|
+
placeholder: a.placeholder,
|
|
2288
|
+
"input-class": { "is-invalid": c.value },
|
|
2289
|
+
class: { "is-invalid": c.value },
|
|
2290
|
+
onInput: i,
|
|
2291
|
+
modelValue: t.value,
|
|
2292
|
+
"onUpdate:modelValue": d[1] || (d[1] = (h) => t.value = h)
|
|
2293
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), f(B, C({
|
|
2294
|
+
key: 1,
|
|
2295
|
+
id: a.name
|
|
2296
|
+
}, g.$attrs, {
|
|
2297
|
+
placeholder: a.placeholder,
|
|
2298
|
+
class: { "is-invalid": c.value },
|
|
2299
|
+
modelValue: t.value,
|
|
2300
|
+
"onUpdate:modelValue": d[2] || (d[2] = (h) => t.value = h),
|
|
2301
|
+
onInput: i,
|
|
2302
|
+
onBlur: u(p)
|
|
2303
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), f(S, C({
|
|
2304
|
+
key: 2,
|
|
2305
|
+
id: a.name
|
|
2306
|
+
}, g.$attrs, {
|
|
2307
|
+
placeholder: a.placeholder,
|
|
2308
|
+
mask: a.mask,
|
|
2309
|
+
class: { "is-invalid": c.value },
|
|
2310
|
+
modelValue: t.value,
|
|
2311
|
+
"onUpdate:modelValue": d[3] || (d[3] = (h) => t.value = h),
|
|
2312
|
+
onComplete: i,
|
|
2313
|
+
onBlur: u(p)
|
|
2314
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), f(V, C({
|
|
2315
|
+
key: 3,
|
|
2316
|
+
id: a.name
|
|
2317
|
+
}, g.$attrs, {
|
|
2318
|
+
placeholder: a.placeholder,
|
|
2319
|
+
class: { "is-invalid": c.value },
|
|
2320
|
+
modelValue: t.value,
|
|
2321
|
+
"onUpdate:modelValue": d[4] || (d[4] = (h) => t.value = h),
|
|
2322
|
+
onInput: i,
|
|
2323
|
+
onBlur: u(p)
|
|
2324
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), f(M, C({ key: 4 }, { ...a, ...g.$attrs }, {
|
|
2325
|
+
modelValue: t.value,
|
|
2326
|
+
"onUpdate:modelValue": d[5] || (d[5] = (h) => t.value = h),
|
|
2327
|
+
class: { "is-invalid": c.value }
|
|
2328
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), f(q, C({ key: 5 }, { ...a, ...g.$attrs }, {
|
|
2329
|
+
modelValue: t.value,
|
|
2330
|
+
"onUpdate:modelValue": d[6] || (d[6] = (h) => t.value = h),
|
|
2331
|
+
class: { "is-invalid": c.value }
|
|
2332
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), f(Wt, C({ key: 6 }, { ...a, ...g.$attrs }, {
|
|
2333
|
+
modelValue: t.value,
|
|
2334
|
+
"onUpdate:modelValue": d[7] || (d[7] = (h) => t.value = h),
|
|
2335
|
+
class: { "is-invalid": c.value }
|
|
2336
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), f(y, C({ key: 7 }, { ...a, ...g.$attrs }, {
|
|
2337
|
+
modelValue: t.value,
|
|
2338
|
+
"onUpdate:modelValue": d[8] || (d[8] = (h) => t.value = h),
|
|
2339
|
+
class: { "is-invalid": c.value }
|
|
2340
|
+
}), null, 16, ["modelValue", "class"])) : z("", !0)
|
|
2341
|
+
])
|
|
2332
2342
|
], 2),
|
|
2333
2343
|
H(m("small", {
|
|
2334
2344
|
"data-cy": "error",
|
|
2335
2345
|
class: "invalid-feedback"
|
|
2336
|
-
},
|
|
2346
|
+
}, k(u(o)), 513), [
|
|
2337
2347
|
[Y, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2338
2348
|
])
|
|
2339
2349
|
]));
|
|
2340
2350
|
};
|
|
2341
2351
|
}
|
|
2342
|
-
}),
|
|
2352
|
+
}), Ji = /* @__PURE__ */ $({
|
|
2343
2353
|
__name: "ForgeChip",
|
|
2344
2354
|
props: {
|
|
2345
2355
|
chipSeverity: { default: "primary" },
|
|
@@ -2374,15 +2384,15 @@ const _t = { key: 0 }, Pt = {
|
|
|
2374
2384
|
}));
|
|
2375
2385
|
return (i, l) => {
|
|
2376
2386
|
const n = Me;
|
|
2377
|
-
return r(),
|
|
2378
|
-
default:
|
|
2379
|
-
(r(!0),
|
|
2387
|
+
return r(), f(n, C({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2388
|
+
default: b(() => [
|
|
2389
|
+
(r(!0), v(O, null, N(i.$slots, (o, s) => w(i.$slots, s, { slot: s })), 256))
|
|
2380
2390
|
]),
|
|
2381
2391
|
_: 3
|
|
2382
2392
|
}, 16, ["pt"]);
|
|
2383
2393
|
};
|
|
2384
2394
|
}
|
|
2385
|
-
}),
|
|
2395
|
+
}), la = /* @__PURE__ */ $({
|
|
2386
2396
|
__name: "ForgeProgressBar",
|
|
2387
2397
|
props: {
|
|
2388
2398
|
severity: { default: "primary" },
|
|
@@ -2427,16 +2437,16 @@ const _t = { key: 0 }, Pt = {
|
|
|
2427
2437
|
}));
|
|
2428
2438
|
return (o, s) => {
|
|
2429
2439
|
const p = De;
|
|
2430
|
-
return r(),
|
|
2431
|
-
default:
|
|
2432
|
-
|
|
2440
|
+
return r(), f(p, C({ ...o.$attrs, ...t }, { pt: n.value }), {
|
|
2441
|
+
default: b(() => [
|
|
2442
|
+
w(o.$slots, "default")
|
|
2433
2443
|
]),
|
|
2434
2444
|
_: 3
|
|
2435
2445
|
}, 16, ["pt"]);
|
|
2436
2446
|
};
|
|
2437
2447
|
}
|
|
2438
2448
|
});
|
|
2439
|
-
var
|
|
2449
|
+
var na = /* @__PURE__ */ $({
|
|
2440
2450
|
name: "VueDrawingCanvas",
|
|
2441
2451
|
props: {
|
|
2442
2452
|
strokeType: {
|
|
@@ -2751,11 +2761,11 @@ var la = /* @__PURE__ */ $({
|
|
|
2751
2761
|
const o = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2752
2762
|
var p = t.split(o).filter((M) => M.length > 0);
|
|
2753
2763
|
for (let M = 0; M < p.length; M++) {
|
|
2754
|
-
for (var c = p[M].split(s).filter((q) => q.length > 0),
|
|
2755
|
-
var
|
|
2756
|
-
V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2764
|
+
for (var c = p[M].split(s).filter((q) => q.length > 0), g = "", d = 0; d < c.length; d++) {
|
|
2765
|
+
var B = g + c[d] + " ", S = e.measureText(B), V = S.width;
|
|
2766
|
+
V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), g = c[d] + " ", i += n) : g = B;
|
|
2757
2767
|
}
|
|
2758
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2768
|
+
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), i += c.length > 0 ? n : 0;
|
|
2759
2769
|
}
|
|
2760
2770
|
},
|
|
2761
2771
|
save() {
|
|
@@ -2782,13 +2792,13 @@ var la = /* @__PURE__ */ $({
|
|
|
2782
2792
|
} else if (a.type === "Text") {
|
|
2783
2793
|
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", o = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
|
|
2784
2794
|
if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
|
|
2785
|
-
let d,
|
|
2786
|
-
a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ?
|
|
2795
|
+
let d, B;
|
|
2796
|
+
a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ? B = a.y + Math.floor(a.fontStyle.lineHeight / 2) : B = a.y, t.translate(d, B), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(d * -1, B * -1);
|
|
2787
2797
|
}
|
|
2788
2798
|
a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = o, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
|
|
2789
|
-
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
2790
|
-
if (s.width = Number(c), s.height = Number(
|
|
2791
|
-
return p.drawImage(e, 0, 0, Number(c), Number(
|
|
2799
|
+
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, g = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2800
|
+
if (s.width = Number(c), s.height = Number(g), p)
|
|
2801
|
+
return p.drawImage(e, 0, 0, Number(c), Number(g)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
|
|
2792
2802
|
}
|
|
2793
2803
|
},
|
|
2794
2804
|
isEmpty() {
|
|
@@ -2826,7 +2836,7 @@ var la = /* @__PURE__ */ $({
|
|
|
2826
2836
|
});
|
|
2827
2837
|
}
|
|
2828
2838
|
});
|
|
2829
|
-
const oa = { class: "d-flex flex-column" },
|
|
2839
|
+
const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1 gap-1" }, Ki = /* @__PURE__ */ $({
|
|
2830
2840
|
__name: "ForgeScratchpad",
|
|
2831
2841
|
props: {
|
|
2832
2842
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2839,7 +2849,7 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
2839
2849
|
},
|
|
2840
2850
|
emits: ["save"],
|
|
2841
2851
|
setup(e, { emit: t }) {
|
|
2842
|
-
const a = e, i = t, l =
|
|
2852
|
+
const a = e, i = t, l = Be("drawingCanvas"), n = _(), o = () => {
|
|
2843
2853
|
l == null || l.value.reset();
|
|
2844
2854
|
}, s = () => {
|
|
2845
2855
|
l == null || l.value.redo();
|
|
@@ -2848,64 +2858,64 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
2848
2858
|
}, c = () => {
|
|
2849
2859
|
i("save", l.value.isEmpty());
|
|
2850
2860
|
};
|
|
2851
|
-
return (
|
|
2852
|
-
const
|
|
2853
|
-
return r(),
|
|
2854
|
-
x(u(
|
|
2861
|
+
return (g, d) => {
|
|
2862
|
+
const B = A;
|
|
2863
|
+
return r(), v("div", oa, [
|
|
2864
|
+
x(u(na), C({
|
|
2855
2865
|
ref_key: "drawingCanvas",
|
|
2856
2866
|
ref: l,
|
|
2857
2867
|
image: n.value,
|
|
2858
2868
|
"onUpdate:image": d[0] || (d[0] = (S) => n.value = S),
|
|
2859
2869
|
"data-cy": "drawing-canvas",
|
|
2860
2870
|
class: "border canvas"
|
|
2861
|
-
}, { ...
|
|
2862
|
-
height:
|
|
2863
|
-
width:
|
|
2864
|
-
style: `height: ${
|
|
2865
|
-
"line-join":
|
|
2871
|
+
}, { ...g.$attrs }, {
|
|
2872
|
+
height: g.height,
|
|
2873
|
+
width: g.width,
|
|
2874
|
+
style: `height: ${g.height}px; width: ${g.width}px`,
|
|
2875
|
+
"line-join": g.lineJoin
|
|
2866
2876
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2867
|
-
m("div",
|
|
2868
|
-
a.showUndo ? (r(),
|
|
2877
|
+
m("div", sa, [
|
|
2878
|
+
a.showUndo ? (r(), f(B, {
|
|
2869
2879
|
key: 0,
|
|
2870
2880
|
onClick: p,
|
|
2871
2881
|
outlined: "",
|
|
2872
2882
|
"data-cy": "undo-button"
|
|
2873
2883
|
}, {
|
|
2874
|
-
default:
|
|
2875
|
-
|
|
2884
|
+
default: b(() => d[1] || (d[1] = [
|
|
2885
|
+
I("Undo")
|
|
2876
2886
|
])),
|
|
2877
2887
|
_: 1
|
|
2878
2888
|
})) : z("", !0),
|
|
2879
|
-
a.showRedo ? (r(),
|
|
2889
|
+
a.showRedo ? (r(), f(B, {
|
|
2880
2890
|
key: 1,
|
|
2881
2891
|
onClick: s,
|
|
2882
2892
|
outlined: "",
|
|
2883
2893
|
"data-cy": "redo-button"
|
|
2884
2894
|
}, {
|
|
2885
|
-
default:
|
|
2886
|
-
|
|
2895
|
+
default: b(() => d[2] || (d[2] = [
|
|
2896
|
+
I("Redo")
|
|
2887
2897
|
])),
|
|
2888
2898
|
_: 1
|
|
2889
2899
|
})) : z("", !0),
|
|
2890
|
-
a.showClear ? (r(),
|
|
2900
|
+
a.showClear ? (r(), f(B, {
|
|
2891
2901
|
key: 2,
|
|
2892
2902
|
onClick: o,
|
|
2893
2903
|
outlined: "",
|
|
2894
2904
|
"data-cy": "clear-button"
|
|
2895
2905
|
}, {
|
|
2896
|
-
default:
|
|
2897
|
-
|
|
2906
|
+
default: b(() => d[3] || (d[3] = [
|
|
2907
|
+
I("Clear")
|
|
2898
2908
|
])),
|
|
2899
2909
|
_: 1
|
|
2900
2910
|
})) : z("", !0),
|
|
2901
|
-
a.showSave ? (r(),
|
|
2911
|
+
a.showSave ? (r(), f(B, {
|
|
2902
2912
|
key: 3,
|
|
2903
2913
|
onClick: c,
|
|
2904
2914
|
class: "ms-auto",
|
|
2905
2915
|
"data-cy": "save-button"
|
|
2906
2916
|
}, {
|
|
2907
|
-
default:
|
|
2908
|
-
|
|
2917
|
+
default: b(() => d[4] || (d[4] = [
|
|
2918
|
+
I("Save")
|
|
2909
2919
|
])),
|
|
2910
2920
|
_: 1
|
|
2911
2921
|
})) : z("", !0)
|
|
@@ -2913,7 +2923,7 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
2913
2923
|
]);
|
|
2914
2924
|
};
|
|
2915
2925
|
}
|
|
2916
|
-
}),
|
|
2926
|
+
}), ra = { class: "value text-white w-100 text-center" }, Zi = /* @__PURE__ */ $({
|
|
2917
2927
|
__name: "ForgeStatWidget",
|
|
2918
2928
|
props: {
|
|
2919
2929
|
size: { default: "md" },
|
|
@@ -2921,15 +2931,15 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
2921
2931
|
},
|
|
2922
2932
|
setup(e) {
|
|
2923
2933
|
const t = e;
|
|
2924
|
-
return (a, i) => (r(),
|
|
2934
|
+
return (a, i) => (r(), v("div", C(a.$attrs, {
|
|
2925
2935
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2926
2936
|
}), [
|
|
2927
|
-
m("span",
|
|
2928
|
-
|
|
2937
|
+
m("span", ra, [
|
|
2938
|
+
w(a.$slots, "default")
|
|
2929
2939
|
])
|
|
2930
2940
|
], 16));
|
|
2931
2941
|
}
|
|
2932
|
-
}),
|
|
2942
|
+
}), da = { key: 0 }, Xi = /* @__PURE__ */ $({
|
|
2933
2943
|
__name: "ForgeStepper",
|
|
2934
2944
|
props: {
|
|
2935
2945
|
currentStep: { default: 1 },
|
|
@@ -2976,18 +2986,18 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
2976
2986
|
]
|
|
2977
2987
|
})
|
|
2978
2988
|
}));
|
|
2979
|
-
return (i, l) => (r(),
|
|
2980
|
-
default:
|
|
2989
|
+
return (i, l) => (r(), f(u(Ne), { value: i.currentStep }, {
|
|
2990
|
+
default: b(() => [
|
|
2981
2991
|
x(u(Ue), null, {
|
|
2982
|
-
default:
|
|
2983
|
-
(r(!0),
|
|
2992
|
+
default: b(() => [
|
|
2993
|
+
(r(!0), v(O, null, N(i.steps, (n) => (r(), f(u(Oe), C({
|
|
2984
2994
|
key: n.value,
|
|
2985
2995
|
value: n.value,
|
|
2986
2996
|
disabled: n.disabled,
|
|
2987
2997
|
ref_for: !0
|
|
2988
2998
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
2989
|
-
default:
|
|
2990
|
-
i.showStepLabel ? (r(),
|
|
2999
|
+
default: b(() => [
|
|
3000
|
+
i.showStepLabel ? (r(), v("div", da, k(n.label), 1)) : z("", !0)
|
|
2991
3001
|
]),
|
|
2992
3002
|
_: 2
|
|
2993
3003
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -2995,13 +3005,13 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
2995
3005
|
_: 1
|
|
2996
3006
|
}),
|
|
2997
3007
|
x(u(qe), null, {
|
|
2998
|
-
default:
|
|
2999
|
-
(r(!0),
|
|
3008
|
+
default: b(() => [
|
|
3009
|
+
(r(!0), v(O, null, N(i.steps, (n) => (r(), f(u(Ae), {
|
|
3000
3010
|
key: n.value,
|
|
3001
3011
|
value: n.value
|
|
3002
3012
|
}, {
|
|
3003
|
-
default:
|
|
3004
|
-
|
|
3013
|
+
default: b(() => [
|
|
3014
|
+
w(i.$slots, "step" + n.value)
|
|
3005
3015
|
]),
|
|
3006
3016
|
_: 2
|
|
3007
3017
|
}, 1032, ["value"]))), 128))
|
|
@@ -3012,7 +3022,7 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
3012
3022
|
_: 3
|
|
3013
3023
|
}, 8, ["value"]));
|
|
3014
3024
|
}
|
|
3015
|
-
}),
|
|
3025
|
+
}), pa = { class: "p-4 text-wrap w-100" }, ca = { class: "p-4 text-wrap w-100" }, Qi = /* @__PURE__ */ $({
|
|
3016
3026
|
__name: "ForgeTile",
|
|
3017
3027
|
props: {
|
|
3018
3028
|
severity: { default: "primary" },
|
|
@@ -3024,29 +3034,29 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
3024
3034
|
const t = e, a = T(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = T(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
3025
3035
|
return (l, n) => {
|
|
3026
3036
|
const o = A;
|
|
3027
|
-
return t.clickable ? (r(),
|
|
3037
|
+
return t.clickable ? (r(), f(o, {
|
|
3028
3038
|
key: 0,
|
|
3029
|
-
class:
|
|
3039
|
+
class: F(["d-flex w-100 p-0 text-body", a.value]),
|
|
3030
3040
|
severity: t.severity,
|
|
3031
3041
|
unstyled: "",
|
|
3032
3042
|
"data-cy": "button-tile"
|
|
3033
3043
|
}, {
|
|
3034
|
-
default:
|
|
3035
|
-
m("div",
|
|
3036
|
-
|
|
3037
|
-
n[0] || (n[0] =
|
|
3044
|
+
default: b(() => [
|
|
3045
|
+
m("div", pa, [
|
|
3046
|
+
w(l.$slots, "default", {}, () => [
|
|
3047
|
+
n[0] || (n[0] = I("Tile Content"))
|
|
3038
3048
|
])
|
|
3039
3049
|
])
|
|
3040
3050
|
]),
|
|
3041
3051
|
_: 3
|
|
3042
|
-
}, 8, ["severity", "class"])) : (r(),
|
|
3052
|
+
}, 8, ["severity", "class"])) : (r(), v("div", {
|
|
3043
3053
|
key: 1,
|
|
3044
|
-
class:
|
|
3054
|
+
class: F(["d-flex w-100", i.value]),
|
|
3045
3055
|
"data-cy": "tile"
|
|
3046
3056
|
}, [
|
|
3047
|
-
m("div",
|
|
3048
|
-
|
|
3049
|
-
n[1] || (n[1] =
|
|
3057
|
+
m("div", ca, [
|
|
3058
|
+
w(l.$slots, "default", {}, () => [
|
|
3059
|
+
n[1] || (n[1] = I("Tile Content"))
|
|
3050
3060
|
])
|
|
3051
3061
|
])
|
|
3052
3062
|
], 2));
|
|
@@ -3056,13 +3066,13 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
|
|
|
3056
3066
|
function Q(e, t) {
|
|
3057
3067
|
return e > 1 ? `${t}s` : t;
|
|
3058
3068
|
}
|
|
3059
|
-
const
|
|
3069
|
+
const ua = {
|
|
3060
3070
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3061
3071
|
"data-cy": "pagination-header"
|
|
3062
|
-
},
|
|
3072
|
+
}, ma = { class: "ms-2" }, va = { key: 0 }, fa = {
|
|
3063
3073
|
class: "w-auto",
|
|
3064
3074
|
"data-cy": "total"
|
|
3065
|
-
},
|
|
3075
|
+
}, ga = /* @__PURE__ */ $({
|
|
3066
3076
|
__name: "ForgePaginationHeader",
|
|
3067
3077
|
props: {
|
|
3068
3078
|
total: {},
|
|
@@ -3077,9 +3087,9 @@ const ca = {
|
|
|
3077
3087
|
const o = Math.ceil(i.total / i.perPage);
|
|
3078
3088
|
return `${o} ${Q(o, "page")}`;
|
|
3079
3089
|
});
|
|
3080
|
-
return (o, s) => (r(),
|
|
3081
|
-
s[2] || (s[2] =
|
|
3082
|
-
m("div",
|
|
3090
|
+
return (o, s) => (r(), v("div", ua, [
|
|
3091
|
+
s[2] || (s[2] = I(" Number of results per page ")),
|
|
3092
|
+
m("div", ma, [
|
|
3083
3093
|
x(u(te), {
|
|
3084
3094
|
options: i.pageSizes,
|
|
3085
3095
|
"model-value": i.perPage,
|
|
@@ -3087,16 +3097,16 @@ const ca = {
|
|
|
3087
3097
|
onChange: s[0] || (s[0] = (p) => l(p))
|
|
3088
3098
|
}, null, 8, ["options", "model-value"])
|
|
3089
3099
|
]),
|
|
3090
|
-
i.total ? (r(),
|
|
3100
|
+
i.total ? (r(), v("div", va, [
|
|
3091
3101
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3092
|
-
m("span",
|
|
3102
|
+
m("span", fa, k(i.total) + " " + k(u(Q)(i.total, "result")) + " across " + k(n.value), 1)
|
|
3093
3103
|
])) : z("", !0)
|
|
3094
3104
|
]));
|
|
3095
3105
|
}
|
|
3096
|
-
}),
|
|
3106
|
+
}), ba = { class: "position-relative" }, ya = { "data-cy": "above-table-slot" }, xa = { class: "d-flex w-100" }, ha = {
|
|
3097
3107
|
class: "mx-auto",
|
|
3098
3108
|
"data-cy": "empty-message"
|
|
3099
|
-
},
|
|
3109
|
+
}, wa = { class: "d-flex" }, ka = { class: "d-flex align-items-end mb-2" }, $a = { key: 0 }, Ba = { class: "ms-auto" }, el = /* @__PURE__ */ $({
|
|
3100
3110
|
__name: "ForgeTable",
|
|
3101
3111
|
props: {
|
|
3102
3112
|
value: {},
|
|
@@ -3182,7 +3192,7 @@ const ca = {
|
|
|
3182
3192
|
},
|
|
3183
3193
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3184
3194
|
setup(e, { emit: t }) {
|
|
3185
|
-
const a = t, i = e, l =
|
|
3195
|
+
const a = t, i = e, l = _(), n = _([5, 10, 20, 50, 100]), o = _(10), s = _({
|
|
3186
3196
|
filters: i.filters,
|
|
3187
3197
|
perPage: o.value,
|
|
3188
3198
|
page: 0,
|
|
@@ -3192,7 +3202,7 @@ const ca = {
|
|
|
3192
3202
|
}), p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
|
|
3193
3203
|
const y = Math.ceil(p.value / o.value);
|
|
3194
3204
|
return `${y} ${Q(y, "page")}`;
|
|
3195
|
-
}),
|
|
3205
|
+
}), g = T(() => ({
|
|
3196
3206
|
thead: () => ({
|
|
3197
3207
|
class: [
|
|
3198
3208
|
{
|
|
@@ -3221,7 +3231,7 @@ const ca = {
|
|
|
3221
3231
|
for (const y in i.filters)
|
|
3222
3232
|
typeof i.filters[y] == "string" ? i.filters[y] = "" : i.filters[y].value = null;
|
|
3223
3233
|
V(i.filters);
|
|
3224
|
-
},
|
|
3234
|
+
}, B = () => {
|
|
3225
3235
|
l.value.exportCSV();
|
|
3226
3236
|
}, S = (y) => {
|
|
3227
3237
|
var h;
|
|
@@ -3235,14 +3245,14 @@ const ca = {
|
|
|
3235
3245
|
};
|
|
3236
3246
|
return ce(() => i.filters, (y) => {
|
|
3237
3247
|
s.value.filters = y, a("update:tableContext", s.value);
|
|
3238
|
-
}, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y, h) => (r(),
|
|
3239
|
-
m("span",
|
|
3240
|
-
|
|
3248
|
+
}, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y, h) => (r(), v("div", ba, [
|
|
3249
|
+
m("span", ya, [
|
|
3250
|
+
w(y.$slots, "above-table")
|
|
3241
3251
|
]),
|
|
3242
3252
|
x(u(Ee), C({
|
|
3243
3253
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3244
3254
|
}, { ...i, ...y.$attrs }, {
|
|
3245
|
-
pt:
|
|
3255
|
+
pt: g.value,
|
|
3246
3256
|
rows: o.value,
|
|
3247
3257
|
"total-records": p.value,
|
|
3248
3258
|
"filter-display": i.filters ? "row" : void 0,
|
|
@@ -3254,19 +3264,19 @@ const ca = {
|
|
|
3254
3264
|
onPage: M,
|
|
3255
3265
|
showHeaders: ""
|
|
3256
3266
|
}), ie({
|
|
3257
|
-
empty:
|
|
3258
|
-
m("div",
|
|
3259
|
-
m("h5",
|
|
3267
|
+
empty: b(() => [
|
|
3268
|
+
m("div", xa, [
|
|
3269
|
+
m("h5", ha, k(y.emptyMessage ?? "No items Found."), 1)
|
|
3260
3270
|
])
|
|
3261
3271
|
]),
|
|
3262
|
-
header:
|
|
3272
|
+
header: b(() => [
|
|
3263
3273
|
m("div", {
|
|
3264
|
-
class:
|
|
3274
|
+
class: F(i.loading ? "opacity-50" : "")
|
|
3265
3275
|
}, [
|
|
3266
|
-
m("div",
|
|
3267
|
-
m("div",
|
|
3268
|
-
y.paginator && !y.legacyPaginationFooter ? (r(),
|
|
3269
|
-
x(
|
|
3276
|
+
m("div", wa, [
|
|
3277
|
+
m("div", ka, [
|
|
3278
|
+
y.paginator && !y.legacyPaginationFooter ? (r(), v("span", $a, [
|
|
3279
|
+
x(ga, {
|
|
3270
3280
|
total: p.value,
|
|
3271
3281
|
"page-sizes": n.value,
|
|
3272
3282
|
"per-page": o.value,
|
|
@@ -3277,61 +3287,61 @@ const ca = {
|
|
|
3277
3287
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3278
3288
|
])) : z("", !0)
|
|
3279
3289
|
]),
|
|
3280
|
-
m("div",
|
|
3281
|
-
y.showClearButton ? (r(),
|
|
3290
|
+
m("div", Ba, [
|
|
3291
|
+
y.showClearButton ? (r(), f(u(A), {
|
|
3282
3292
|
key: 0,
|
|
3283
3293
|
outlined: "",
|
|
3284
|
-
class:
|
|
3294
|
+
class: F(y.showExporterButton ? "me-2" : ""),
|
|
3285
3295
|
onClick: d,
|
|
3286
3296
|
"data-cy": "clear-all"
|
|
3287
3297
|
}, {
|
|
3288
|
-
default:
|
|
3298
|
+
default: b(() => [
|
|
3289
3299
|
x(u(j), {
|
|
3290
3300
|
icon: "bi:funnel-fill",
|
|
3291
3301
|
width: "24",
|
|
3292
3302
|
height: "24"
|
|
3293
3303
|
}),
|
|
3294
|
-
h[2] || (h[2] =
|
|
3304
|
+
h[2] || (h[2] = I(" Clear "))
|
|
3295
3305
|
]),
|
|
3296
3306
|
_: 1
|
|
3297
3307
|
}, 8, ["class"])) : z("", !0),
|
|
3298
|
-
y.showExporterButton ? (r(),
|
|
3308
|
+
y.showExporterButton ? (r(), f(u(A), {
|
|
3299
3309
|
key: 1,
|
|
3300
3310
|
outlined: "",
|
|
3301
|
-
onClick:
|
|
3311
|
+
onClick: B,
|
|
3302
3312
|
"data-cy": "exporter"
|
|
3303
3313
|
}, {
|
|
3304
|
-
default:
|
|
3314
|
+
default: b(() => [
|
|
3305
3315
|
x(u(j), {
|
|
3306
3316
|
icon: "typcn:export",
|
|
3307
3317
|
width: "24",
|
|
3308
3318
|
height: "24"
|
|
3309
3319
|
}),
|
|
3310
|
-
h[3] || (h[3] =
|
|
3320
|
+
h[3] || (h[3] = I(" Export "))
|
|
3311
3321
|
]),
|
|
3312
3322
|
_: 1
|
|
3313
3323
|
})) : z("", !0),
|
|
3314
|
-
|
|
3324
|
+
w(y.$slots, "column-customiser")
|
|
3315
3325
|
])
|
|
3316
3326
|
])
|
|
3317
3327
|
], 2)
|
|
3318
3328
|
]),
|
|
3319
|
-
default:
|
|
3320
|
-
|
|
3329
|
+
default: b(() => [
|
|
3330
|
+
w(y.$slots, "default")
|
|
3321
3331
|
]),
|
|
3322
3332
|
_: 2
|
|
3323
3333
|
}, [
|
|
3324
|
-
|
|
3334
|
+
N(y.$slots, (P, L) => ({
|
|
3325
3335
|
name: L,
|
|
3326
|
-
fn:
|
|
3327
|
-
|
|
3336
|
+
fn: b((ae) => [
|
|
3337
|
+
w(y.$slots, L, J(K(ae || {})))
|
|
3328
3338
|
])
|
|
3329
3339
|
})),
|
|
3330
3340
|
y.legacyPaginationFooter ? {
|
|
3331
3341
|
name: "paginatorstart",
|
|
3332
|
-
fn:
|
|
3342
|
+
fn: b(() => [
|
|
3333
3343
|
m("span", {
|
|
3334
|
-
class:
|
|
3344
|
+
class: F(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3335
3345
|
"data-cy": "legacy-page-size"
|
|
3336
3346
|
}, [
|
|
3337
3347
|
h[4] || (h[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
@@ -3348,20 +3358,20 @@ const ca = {
|
|
|
3348
3358
|
} : void 0,
|
|
3349
3359
|
y.legacyPaginationFooter ? {
|
|
3350
3360
|
name: "paginatorend",
|
|
3351
|
-
fn:
|
|
3361
|
+
fn: b(() => [
|
|
3352
3362
|
m("span", {
|
|
3353
3363
|
"data-cy": "legacy-total",
|
|
3354
|
-
class:
|
|
3355
|
-
},
|
|
3364
|
+
class: F(i.loading ? "opacity-50" : "")
|
|
3365
|
+
}, k(p.value) + " " + k(u(Q)(p.value, "result")) + " across " + k(c.value), 3)
|
|
3356
3366
|
]),
|
|
3357
3367
|
key: "1"
|
|
3358
3368
|
} : void 0
|
|
3359
3369
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3360
3370
|
]));
|
|
3361
3371
|
}
|
|
3362
|
-
}), Fa = { class: "d-flex position-relative" },
|
|
3372
|
+
}), Fa = { class: "d-flex position-relative" }, Sa = { class: "d-flex w-100" }, tl = /* @__PURE__ */ $({
|
|
3363
3373
|
__name: "ForgeFilterHeader",
|
|
3364
|
-
props: /* @__PURE__ */
|
|
3374
|
+
props: /* @__PURE__ */ U({
|
|
3365
3375
|
dataType: {},
|
|
3366
3376
|
dropdownOptions: {},
|
|
3367
3377
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -3380,7 +3390,7 @@ const ca = {
|
|
|
3380
3390
|
const o = (s) => {
|
|
3381
3391
|
var c;
|
|
3382
3392
|
const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
|
|
3383
|
-
(
|
|
3393
|
+
(g) => e.optionValue ? g[e.optionValue] === s : Object.keys(g).every((d) => s.hasOwnProperty(d) && g[d] === s[d])
|
|
3384
3394
|
);
|
|
3385
3395
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3386
3396
|
};
|
|
@@ -3390,20 +3400,20 @@ const ca = {
|
|
|
3390
3400
|
};
|
|
3391
3401
|
return (l, n) => {
|
|
3392
3402
|
const o = ue, s = A;
|
|
3393
|
-
return r(),
|
|
3394
|
-
l.dataType === "numeric" ? (r(),
|
|
3403
|
+
return r(), v("div", Fa, [
|
|
3404
|
+
l.dataType === "numeric" ? (r(), f(o, C({
|
|
3395
3405
|
key: 0,
|
|
3396
3406
|
modelValue: t.value,
|
|
3397
3407
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
|
|
3398
3408
|
modelModifiers: { trim: !0 }
|
|
3399
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(),
|
|
3409
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), f(be, C({
|
|
3400
3410
|
key: 1,
|
|
3401
3411
|
modelValue: t.value,
|
|
3402
3412
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3403
3413
|
}, l.$attrs, {
|
|
3404
3414
|
"show-icon": !1,
|
|
3405
3415
|
"show-on-focus": !0
|
|
3406
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(),
|
|
3416
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), f(u(te), C({
|
|
3407
3417
|
key: 2,
|
|
3408
3418
|
modelValue: t.value,
|
|
3409
3419
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
@@ -3412,18 +3422,18 @@ const ca = {
|
|
|
3412
3422
|
"option-value": l.optionValue,
|
|
3413
3423
|
"option-label": l.optionLabel
|
|
3414
3424
|
}), {
|
|
3415
|
-
value:
|
|
3416
|
-
m("div",
|
|
3425
|
+
value: b(({ value: p, placeholder: c }) => [
|
|
3426
|
+
m("div", Sa, [
|
|
3417
3427
|
m("span", {
|
|
3418
|
-
class:
|
|
3419
|
-
},
|
|
3420
|
-
l.showClearButton && t.value !== null ? (r(),
|
|
3428
|
+
class: F({ "filter-placeholder": p === null })
|
|
3429
|
+
}, k(a(p, c)), 3),
|
|
3430
|
+
l.showClearButton && t.value !== null ? (r(), f(s, {
|
|
3421
3431
|
key: 0,
|
|
3422
3432
|
onClick: G(i, ["prevent"]),
|
|
3423
3433
|
size: "small",
|
|
3424
3434
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3425
3435
|
}, {
|
|
3426
|
-
default:
|
|
3436
|
+
default: b(() => [
|
|
3427
3437
|
x(u(j), {
|
|
3428
3438
|
icon: "bi:x",
|
|
3429
3439
|
width: "1rem",
|
|
@@ -3436,7 +3446,7 @@ const ca = {
|
|
|
3436
3446
|
])
|
|
3437
3447
|
]),
|
|
3438
3448
|
_: 1
|
|
3439
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(),
|
|
3449
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), f(u(oe), C({
|
|
3440
3450
|
key: 3,
|
|
3441
3451
|
modelValue: t.value,
|
|
3442
3452
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
@@ -3446,19 +3456,19 @@ const ca = {
|
|
|
3446
3456
|
"option-label": l.optionLabel,
|
|
3447
3457
|
"option-value": l.optionValue,
|
|
3448
3458
|
filter: ""
|
|
3449
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(),
|
|
3459
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), f(u(ne), C({
|
|
3450
3460
|
key: 4,
|
|
3451
3461
|
modelValue: t.value,
|
|
3452
3462
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
|
|
3453
3463
|
modelModifiers: { trim: !0 }
|
|
3454
3464
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3455
|
-
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(),
|
|
3465
|
+
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(), f(s, {
|
|
3456
3466
|
key: 5,
|
|
3457
3467
|
onClick: G(i, ["prevent"]),
|
|
3458
3468
|
size: "small",
|
|
3459
3469
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3460
3470
|
}, {
|
|
3461
|
-
default:
|
|
3471
|
+
default: b(() => [
|
|
3462
3472
|
x(u(j), {
|
|
3463
3473
|
icon: "bi:x",
|
|
3464
3474
|
width: "1rem",
|
|
@@ -4528,10 +4538,10 @@ var E = function(e, t, a, i) {
|
|
|
4528
4538
|
if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
4529
4539
|
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4530
4540
|
return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
|
|
4531
|
-
}, W,
|
|
4541
|
+
}, W, Z, R;
|
|
4532
4542
|
class ye {
|
|
4533
4543
|
constructor(...t) {
|
|
4534
|
-
W.set(this, /* @__PURE__ */ new Map()),
|
|
4544
|
+
W.set(this, /* @__PURE__ */ new Map()), Z.set(this, /* @__PURE__ */ new Map()), R.set(this, /* @__PURE__ */ new Map());
|
|
4535
4545
|
for (const a of t)
|
|
4536
4546
|
this.define(a);
|
|
4537
4547
|
}
|
|
@@ -4542,7 +4552,7 @@ class ye {
|
|
|
4542
4552
|
let o = !0;
|
|
4543
4553
|
for (let s of l) {
|
|
4544
4554
|
const p = s.startsWith("*");
|
|
4545
|
-
if (s = p ? s.slice(1) : s, n == null || n.add(s), o && E(this,
|
|
4555
|
+
if (s = p ? s.slice(1) : s, n == null || n.add(s), o && E(this, Z, "f").set(i, s), o = !1, p)
|
|
4546
4556
|
continue;
|
|
4547
4557
|
const c = E(this, W, "f").get(s);
|
|
4548
4558
|
if (c && c != i && !a)
|
|
@@ -4560,7 +4570,7 @@ class ye {
|
|
|
4560
4570
|
}
|
|
4561
4571
|
getExtension(t) {
|
|
4562
4572
|
var a;
|
|
4563
|
-
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && E(this,
|
|
4573
|
+
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && E(this, Z, "f").get(t.trim().toLowerCase())) ?? null);
|
|
4564
4574
|
}
|
|
4565
4575
|
getAllExtensions(t) {
|
|
4566
4576
|
return typeof t != "string" ? null : E(this, R, "f").get(t.toLowerCase()) ?? null;
|
|
@@ -4576,12 +4586,12 @@ class ye {
|
|
|
4576
4586
|
_getTestState() {
|
|
4577
4587
|
return {
|
|
4578
4588
|
types: E(this, W, "f"),
|
|
4579
|
-
extensions: E(this,
|
|
4589
|
+
extensions: E(this, Z, "f")
|
|
4580
4590
|
};
|
|
4581
4591
|
}
|
|
4582
4592
|
}
|
|
4583
|
-
W = /* @__PURE__ */ new WeakMap(),
|
|
4584
|
-
const
|
|
4593
|
+
W = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
|
|
4594
|
+
const Ca = new ye(de, re)._freeze();
|
|
4585
4595
|
function xe(e, t, a, i) {
|
|
4586
4596
|
const l = t.flatMap((n) => n.file);
|
|
4587
4597
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
@@ -4594,7 +4604,7 @@ function xe(e, t, a, i) {
|
|
|
4594
4604
|
})) : t[o].status = "Duplicate";
|
|
4595
4605
|
}), t;
|
|
4596
4606
|
}
|
|
4597
|
-
async function
|
|
4607
|
+
async function za(e, t) {
|
|
4598
4608
|
if (e === "Uploaded" && t !== null)
|
|
4599
4609
|
try {
|
|
4600
4610
|
await new me(t).delete();
|
|
@@ -4617,22 +4627,22 @@ function pe(e, t = !0, a = 1) {
|
|
|
4617
4627
|
while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
|
|
4618
4628
|
return e.toFixed(a) + " " + l[n];
|
|
4619
4629
|
}
|
|
4620
|
-
function
|
|
4630
|
+
function Ta(e) {
|
|
4621
4631
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
4622
4632
|
}
|
|
4623
|
-
function
|
|
4633
|
+
function ja(e) {
|
|
4624
4634
|
return URL.createObjectURL(e);
|
|
4625
4635
|
}
|
|
4626
|
-
function
|
|
4636
|
+
function Ia() {
|
|
4627
4637
|
const e = new ye(de, re);
|
|
4628
4638
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
4629
4639
|
}
|
|
4630
|
-
const
|
|
4640
|
+
const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disabled", "multiple"], Va = {
|
|
4631
4641
|
class: "text-break accepted-file-types-container",
|
|
4632
4642
|
id: "accepted-file-types-overlay"
|
|
4633
|
-
},
|
|
4643
|
+
}, Ma = /* @__PURE__ */ $({
|
|
4634
4644
|
__name: "UploadButton",
|
|
4635
|
-
props: /* @__PURE__ */
|
|
4645
|
+
props: /* @__PURE__ */ U({
|
|
4636
4646
|
acceptedFileTypes: {},
|
|
4637
4647
|
maxFileInput: {},
|
|
4638
4648
|
showDragDropArea: { type: Boolean }
|
|
@@ -4642,13 +4652,13 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4642
4652
|
}),
|
|
4643
4653
|
emits: ["update:modelValue"],
|
|
4644
4654
|
setup(e) {
|
|
4645
|
-
const t = D(e, "modelValue"), a =
|
|
4655
|
+
const t = D(e, "modelValue"), a = _(), i = (o) => a.value.toggle(o), l = T(() => e.maxFileInput <= t.value.length), n = (o) => {
|
|
4646
4656
|
t.value = xe(o, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
4647
4657
|
};
|
|
4648
4658
|
return (o, s) => {
|
|
4649
4659
|
const p = A;
|
|
4650
|
-
return r(),
|
|
4651
|
-
|
|
4660
|
+
return r(), v("div", _a, [
|
|
4661
|
+
w(o.$slots, "message"),
|
|
4652
4662
|
m("div", null, [
|
|
4653
4663
|
m("input", {
|
|
4654
4664
|
id: "file-input",
|
|
@@ -4658,32 +4668,32 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4658
4668
|
disabled: l.value,
|
|
4659
4669
|
multiple: o.maxFileInput > 1,
|
|
4660
4670
|
onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
|
|
4661
|
-
}, null, 40,
|
|
4671
|
+
}, null, 40, Pa),
|
|
4662
4672
|
m("label", {
|
|
4663
|
-
class:
|
|
4673
|
+
class: F([{ disabled: l.value }, "btn btn-primary"]),
|
|
4664
4674
|
id: "file-input-button",
|
|
4665
4675
|
for: "file-input"
|
|
4666
4676
|
}, [
|
|
4667
|
-
|
|
4677
|
+
w(o.$slots, "button-content", {}, () => [
|
|
4668
4678
|
x(u(j), {
|
|
4669
4679
|
icon: "bi:upload",
|
|
4670
4680
|
class: "me-2",
|
|
4671
4681
|
height: "20px",
|
|
4672
4682
|
width: "20px"
|
|
4673
4683
|
}),
|
|
4674
|
-
s[1] || (s[1] =
|
|
4684
|
+
s[1] || (s[1] = I(" Browse your computer "))
|
|
4675
4685
|
])
|
|
4676
4686
|
], 2)
|
|
4677
4687
|
]),
|
|
4678
|
-
o.showDragDropArea ? (r(),
|
|
4688
|
+
o.showDragDropArea ? (r(), f(p, {
|
|
4679
4689
|
link: "",
|
|
4680
4690
|
class: "ms-auto",
|
|
4681
4691
|
key: o.acceptedFileTypes.length,
|
|
4682
4692
|
id: "accepted-file-types",
|
|
4683
4693
|
onClick: i
|
|
4684
4694
|
}, {
|
|
4685
|
-
default:
|
|
4686
|
-
|
|
4695
|
+
default: b(() => s[2] || (s[2] = [
|
|
4696
|
+
I("Accepted File Types")
|
|
4687
4697
|
])),
|
|
4688
4698
|
_: 1
|
|
4689
4699
|
})) : z("", !0),
|
|
@@ -4691,24 +4701,24 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4691
4701
|
ref_key: "acceptedFilesOverlay",
|
|
4692
4702
|
ref: a
|
|
4693
4703
|
}, {
|
|
4694
|
-
default:
|
|
4695
|
-
m("div",
|
|
4704
|
+
default: b(() => [
|
|
4705
|
+
m("div", Va, k(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
4696
4706
|
]),
|
|
4697
4707
|
_: 1
|
|
4698
4708
|
}, 512)
|
|
4699
4709
|
]);
|
|
4700
4710
|
};
|
|
4701
4711
|
}
|
|
4702
|
-
}),
|
|
4712
|
+
}), Da = {
|
|
4703
4713
|
key: 0,
|
|
4704
4714
|
class: "py-4 px-3",
|
|
4705
4715
|
id: "placeholder-message"
|
|
4706
|
-
},
|
|
4716
|
+
}, Oa = {
|
|
4707
4717
|
key: 1,
|
|
4708
4718
|
class: "d-flex flex-column"
|
|
4709
|
-
},
|
|
4719
|
+
}, Na = /* @__PURE__ */ $({
|
|
4710
4720
|
__name: "DragDropArea",
|
|
4711
|
-
props: /* @__PURE__ */
|
|
4721
|
+
props: /* @__PURE__ */ U({
|
|
4712
4722
|
maxFileInput: {},
|
|
4713
4723
|
maxFileSize: {},
|
|
4714
4724
|
acceptedFileTypes: {}
|
|
@@ -4718,30 +4728,30 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4718
4728
|
}),
|
|
4719
4729
|
emits: ["update:modelValue"],
|
|
4720
4730
|
setup(e) {
|
|
4721
|
-
const t = D(e, "modelValue"), a =
|
|
4731
|
+
const t = D(e, "modelValue"), a = _(!1), i = T(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
4722
4732
|
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = xe([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((o) => o.fileType), e.maxFileSize);
|
|
4723
4733
|
};
|
|
4724
|
-
return (n, o) => (r(),
|
|
4734
|
+
return (n, o) => (r(), v("div", {
|
|
4725
4735
|
id: "drag-drop-area",
|
|
4726
|
-
class:
|
|
4736
|
+
class: F(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
4727
4737
|
onDragleave: o[0] || (o[0] = G((s) => a.value = !1, ["prevent"])),
|
|
4728
4738
|
onDragover: o[1] || (o[1] = G((s) => a.value = !0, ["prevent"])),
|
|
4729
4739
|
onDrop: G(l, ["prevent"])
|
|
4730
4740
|
}, [
|
|
4731
|
-
t.value.length === 0 ? (r(),
|
|
4741
|
+
t.value.length === 0 ? (r(), v("div", Da, [
|
|
4732
4742
|
x(u(j), {
|
|
4733
4743
|
icon: "bi:upload",
|
|
4734
4744
|
class: "me-2",
|
|
4735
4745
|
height: "20px",
|
|
4736
4746
|
width: "20px"
|
|
4737
4747
|
}),
|
|
4738
|
-
o[2] || (o[2] =
|
|
4739
|
-
])) : (r(),
|
|
4740
|
-
|
|
4748
|
+
o[2] || (o[2] = I(" Drag and drop files here "))
|
|
4749
|
+
])) : (r(), v("div", Oa, [
|
|
4750
|
+
w(n.$slots, "default")
|
|
4741
4751
|
]))
|
|
4742
4752
|
], 34));
|
|
4743
4753
|
}
|
|
4744
|
-
}),
|
|
4754
|
+
}), Ua = { class: "d-flex align-items-center me-2" }, Aa = /* @__PURE__ */ $({
|
|
4745
4755
|
__name: "UploadStatus",
|
|
4746
4756
|
props: {
|
|
4747
4757
|
fileSize: {},
|
|
@@ -4766,43 +4776,43 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4766
4776
|
return "Upload Failed: Connection error, please try again.";
|
|
4767
4777
|
}
|
|
4768
4778
|
});
|
|
4769
|
-
return (i, l) => (r(),
|
|
4770
|
-
i.uploadStatus === "Uploading" ? (r(),
|
|
4779
|
+
return (i, l) => (r(), v("div", Ua, [
|
|
4780
|
+
i.uploadStatus === "Uploading" ? (r(), f(la, {
|
|
4771
4781
|
key: 0,
|
|
4772
4782
|
pixelWidth: 200,
|
|
4773
4783
|
animate: "",
|
|
4774
4784
|
striped: ""
|
|
4775
4785
|
}, {
|
|
4776
|
-
default:
|
|
4777
|
-
|
|
4786
|
+
default: b(() => [
|
|
4787
|
+
I(k((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
|
|
4778
4788
|
]),
|
|
4779
4789
|
_: 1
|
|
4780
4790
|
})) : z("", !0),
|
|
4781
|
-
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (r(),
|
|
4791
|
+
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (r(), f(se, {
|
|
4782
4792
|
key: 1,
|
|
4783
4793
|
id: "upload-status-alert",
|
|
4784
4794
|
severity: t.value,
|
|
4785
4795
|
class: "mb-0 w-75 ms-auto"
|
|
4786
4796
|
}, {
|
|
4787
|
-
default:
|
|
4788
|
-
|
|
4797
|
+
default: b(() => [
|
|
4798
|
+
I(k(a.value), 1)
|
|
4789
4799
|
]),
|
|
4790
4800
|
_: 1
|
|
4791
4801
|
}, 8, ["severity"])) : z("", !0)
|
|
4792
4802
|
]));
|
|
4793
4803
|
}
|
|
4794
|
-
}),
|
|
4804
|
+
}), qa = ["data-cy"], Ea = { class: "ms-3 d-flex flex-column" }, La = {
|
|
4795
4805
|
key: 1,
|
|
4796
4806
|
id: "file-name"
|
|
4797
|
-
},
|
|
4807
|
+
}, Ra = {
|
|
4798
4808
|
class: "text-black-50",
|
|
4799
4809
|
id: "file-type"
|
|
4800
|
-
},
|
|
4810
|
+
}, Ha = {
|
|
4801
4811
|
class: "text-black-50",
|
|
4802
4812
|
id: "file-size"
|
|
4803
|
-
},
|
|
4813
|
+
}, Wa = { class: "ms-auto my-auto d-flex" }, Ya = /* @__PURE__ */ $({
|
|
4804
4814
|
__name: "FileInfo",
|
|
4805
|
-
props: /* @__PURE__ */
|
|
4815
|
+
props: /* @__PURE__ */ U({
|
|
4806
4816
|
editableFileName: { type: Boolean },
|
|
4807
4817
|
acceptedFileTypes: {},
|
|
4808
4818
|
maxFileSize: {},
|
|
@@ -4817,16 +4827,16 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4817
4827
|
uploadStatus: { required: !0 },
|
|
4818
4828
|
uploadStatusModifiers: {}
|
|
4819
4829
|
}),
|
|
4820
|
-
emits: /* @__PURE__ */
|
|
4830
|
+
emits: /* @__PURE__ */ U(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
4821
4831
|
setup(e, { emit: t }) {
|
|
4822
|
-
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o =
|
|
4832
|
+
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = _(a.value.name), s = _(""), p = _(0), c = _(), g = T(() => e.acceptedFileTypes.some(({ fileType: y }) => y === a.value.type)), d = T(() => a.value.size <= e.maxFileSize), B = T(() => a.value.type ? a.value.type : Ia().getType(a.value.name)), S = () => {
|
|
4823
4833
|
o.value != null && (V(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
4824
4834
|
}, V = () => {
|
|
4825
|
-
let y = o.value.split("."), h =
|
|
4835
|
+
let y = o.value.split("."), h = Ca.getExtension(B.value), P = o.value.split(".").pop();
|
|
4826
4836
|
y.length === 1 ? P && P.length > 0 && (o.value = [o.value, h].join(".")) : y.length > 1 && P !== h && (o.value = o.value.replace(P, h));
|
|
4827
4837
|
}, M = async () => {
|
|
4828
|
-
if (!
|
|
4829
|
-
l.value =
|
|
4838
|
+
if (!g.value || !d.value) {
|
|
4839
|
+
l.value = g.value ? "InvalidFileSize" : "InvalidFileType";
|
|
4830
4840
|
return;
|
|
4831
4841
|
}
|
|
4832
4842
|
l.value = "Preparing", c.value = new AbortController();
|
|
@@ -4841,7 +4851,7 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4841
4851
|
abortSignal: c.value.signal,
|
|
4842
4852
|
onProgress: (ae) => p.value = ae.loadedBytes,
|
|
4843
4853
|
blobHTTPHeaders: {
|
|
4844
|
-
blobContentType:
|
|
4854
|
+
blobContentType: B.value,
|
|
4845
4855
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
4846
4856
|
},
|
|
4847
4857
|
tags: { temp: "true" }
|
|
@@ -4855,26 +4865,26 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4855
4865
|
l.value = "Failed";
|
|
4856
4866
|
}
|
|
4857
4867
|
}, q = async () => {
|
|
4858
|
-
await
|
|
4868
|
+
await za(l.value, s.value), n("deleted", a.value);
|
|
4859
4869
|
};
|
|
4860
4870
|
return le(() => {
|
|
4861
4871
|
e.autoUploadToBlob && M();
|
|
4862
4872
|
}), (y, h) => {
|
|
4863
4873
|
const P = A;
|
|
4864
|
-
return r(),
|
|
4874
|
+
return r(), v("div", {
|
|
4865
4875
|
class: "py-4 px-3 d-flex",
|
|
4866
4876
|
"data-cy": `file-info-${a.value.name}`
|
|
4867
4877
|
}, [
|
|
4868
4878
|
m("div", null, [
|
|
4869
|
-
u(
|
|
4879
|
+
u(Ta)(a.value.type) ? (r(), f(u(Le), {
|
|
4870
4880
|
key: 0,
|
|
4871
4881
|
id: "thumbnail-image",
|
|
4872
4882
|
"image-class": "image-file-thumbnail border",
|
|
4873
|
-
src: u(
|
|
4883
|
+
src: u(ja)(a.value),
|
|
4874
4884
|
alt: a.value.name,
|
|
4875
4885
|
width: "75px",
|
|
4876
4886
|
preview: ""
|
|
4877
|
-
}, null, 8, ["src", "alt"])) : (r(),
|
|
4887
|
+
}, null, 8, ["src", "alt"])) : (r(), f(u(j), {
|
|
4878
4888
|
key: 1,
|
|
4879
4889
|
id: "file-earmark",
|
|
4880
4890
|
icon: "bi:file-earmark",
|
|
@@ -4882,9 +4892,9 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4882
4892
|
width: "75px"
|
|
4883
4893
|
}))
|
|
4884
4894
|
]),
|
|
4885
|
-
m("div",
|
|
4895
|
+
m("div", Ea, [
|
|
4886
4896
|
m("div", null, [
|
|
4887
|
-
y.editableFileName ? (r(),
|
|
4897
|
+
y.editableFileName ? (r(), f(At, {
|
|
4888
4898
|
key: 0,
|
|
4889
4899
|
id: "edit-file-name",
|
|
4890
4900
|
modelValue: o.value,
|
|
@@ -4892,68 +4902,68 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4892
4902
|
rules: y.customFileNameRules,
|
|
4893
4903
|
name: a.value.name,
|
|
4894
4904
|
"complete-action": S
|
|
4895
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (r(),
|
|
4905
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La, k(o.value), 1))
|
|
4896
4906
|
]),
|
|
4897
|
-
m("span",
|
|
4898
|
-
m("span",
|
|
4907
|
+
m("span", Ra, "File type: " + k(a.value.type.split("/").pop()), 1),
|
|
4908
|
+
m("span", Ha, "File size: " + k(u(pe)(a.value.size)), 1)
|
|
4899
4909
|
]),
|
|
4900
|
-
m("div",
|
|
4901
|
-
(r(),
|
|
4910
|
+
m("div", Wa, [
|
|
4911
|
+
(r(), f(Aa, {
|
|
4902
4912
|
key: l.value,
|
|
4903
4913
|
"file-size": a.value.size,
|
|
4904
4914
|
"upload-status": l.value,
|
|
4905
4915
|
"bytes-uploaded": p.value,
|
|
4906
4916
|
"max-file-size": y.maxFileSize
|
|
4907
4917
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
4908
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (r(),
|
|
4918
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (r(), f(P, {
|
|
4909
4919
|
key: 0,
|
|
4910
4920
|
link: "",
|
|
4911
4921
|
onClick: M
|
|
4912
4922
|
}, {
|
|
4913
|
-
default:
|
|
4923
|
+
default: b(() => [
|
|
4914
4924
|
x(u(j), {
|
|
4915
4925
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
4916
4926
|
}, null, 8, ["icon"])
|
|
4917
4927
|
]),
|
|
4918
4928
|
_: 1
|
|
4919
4929
|
})) : z("", !0),
|
|
4920
|
-
l.value === "Uploading" ? (r(),
|
|
4930
|
+
l.value === "Uploading" ? (r(), f(P, {
|
|
4921
4931
|
key: 1,
|
|
4922
4932
|
link: "",
|
|
4923
4933
|
onClick: h[1] || (h[1] = (L) => c.value.value.abort())
|
|
4924
4934
|
}, {
|
|
4925
|
-
default:
|
|
4935
|
+
default: b(() => [
|
|
4926
4936
|
x(u(j), { icon: "bi:x-circle-fill" })
|
|
4927
4937
|
]),
|
|
4928
4938
|
_: 1
|
|
4929
|
-
})) : (r(),
|
|
4939
|
+
})) : (r(), f(P, {
|
|
4930
4940
|
key: 2,
|
|
4931
4941
|
link: "",
|
|
4932
4942
|
onClick: q,
|
|
4933
4943
|
id: "delete-button"
|
|
4934
4944
|
}, {
|
|
4935
|
-
default:
|
|
4945
|
+
default: b(() => [
|
|
4936
4946
|
x(u(j), { icon: "bi:trash" })
|
|
4937
4947
|
]),
|
|
4938
4948
|
_: 1
|
|
4939
4949
|
}))
|
|
4940
4950
|
])
|
|
4941
|
-
], 8,
|
|
4951
|
+
], 8, qa);
|
|
4942
4952
|
};
|
|
4943
4953
|
}
|
|
4944
|
-
}),
|
|
4954
|
+
}), Ga = { class: "d-flex justify-content-end mt-1" }, Ja = { id: "max-file-size" }, Ka = /* @__PURE__ */ $({
|
|
4945
4955
|
__name: "MaxFileSize",
|
|
4946
4956
|
props: {
|
|
4947
4957
|
maxFileSize: {}
|
|
4948
4958
|
},
|
|
4949
4959
|
setup(e) {
|
|
4950
|
-
return (t, a) => (r(),
|
|
4951
|
-
m("div",
|
|
4960
|
+
return (t, a) => (r(), v("div", Ga, [
|
|
4961
|
+
m("div", Ja, "Max file size: " + k(u(pe)(t.maxFileSize)), 1)
|
|
4952
4962
|
]));
|
|
4953
4963
|
}
|
|
4954
|
-
}),
|
|
4964
|
+
}), Za = { "data-cy": "file-uploader" }, Xa = { key: 0 }, al = /* @__PURE__ */ $({
|
|
4955
4965
|
__name: "ForgeFileUploader",
|
|
4956
|
-
props: /* @__PURE__ */
|
|
4966
|
+
props: /* @__PURE__ */ U({
|
|
4957
4967
|
acceptedFileTypes: {},
|
|
4958
4968
|
maxFileSize: {},
|
|
4959
4969
|
getFileUrlAction: {},
|
|
@@ -4971,22 +4981,22 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4971
4981
|
const t = D(e, "modelValue"), a = e, i = (l) => {
|
|
4972
4982
|
t.value = t.value.filter((n) => n.file != l);
|
|
4973
4983
|
};
|
|
4974
|
-
return (l, n) => (r(),
|
|
4975
|
-
x(
|
|
4984
|
+
return (l, n) => (r(), v("div", Za, [
|
|
4985
|
+
x(Ma, C(a, {
|
|
4976
4986
|
modelValue: t.value,
|
|
4977
4987
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
|
|
4978
4988
|
}), null, 16, ["modelValue"]),
|
|
4979
|
-
l.showDragDropArea ? (r(),
|
|
4980
|
-
x(
|
|
4989
|
+
l.showDragDropArea ? (r(), v("div", Xa, [
|
|
4990
|
+
x(Na, {
|
|
4981
4991
|
"max-file-input": a.maxFileInput,
|
|
4982
4992
|
"max-file-size": a.maxFileSize,
|
|
4983
4993
|
"accepted-file-types": a.acceptedFileTypes,
|
|
4984
4994
|
modelValue: t.value,
|
|
4985
4995
|
"onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
|
|
4986
4996
|
}, {
|
|
4987
|
-
default:
|
|
4988
|
-
(r(!0),
|
|
4989
|
-
(r(),
|
|
4997
|
+
default: b(() => [
|
|
4998
|
+
(r(!0), v(O, null, N(t.value, ({ file: o }, s) => (r(), v("span", null, [
|
|
4999
|
+
(r(), f(Ya, C({
|
|
4990
5000
|
key: o.name,
|
|
4991
5001
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
4992
5002
|
file: t.value[s].file,
|
|
@@ -5001,13 +5011,13 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5001
5011
|
]),
|
|
5002
5012
|
_: 1
|
|
5003
5013
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5004
|
-
x(
|
|
5014
|
+
x(Ka, {
|
|
5005
5015
|
"max-file-size": a.maxFileSize
|
|
5006
5016
|
}, null, 8, ["max-file-size"])
|
|
5007
5017
|
])) : z("", !0)
|
|
5008
5018
|
]));
|
|
5009
5019
|
}
|
|
5010
|
-
}),
|
|
5020
|
+
}), Qa = { class: "d-flex" }, ei = { class: "me-3" }, ti = { class: "ms-2" }, ai = { class: "d-flex flex-column w-100" }, il = /* @__PURE__ */ $({
|
|
5011
5021
|
__name: "ForgeColumnCustomiser",
|
|
5012
5022
|
props: {
|
|
5013
5023
|
modelValue: { required: !0 },
|
|
@@ -5015,21 +5025,21 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5015
5025
|
},
|
|
5016
5026
|
emits: ["update:modelValue"],
|
|
5017
5027
|
setup(e) {
|
|
5018
|
-
const t = D(e, "modelValue"), a =
|
|
5028
|
+
const t = D(e, "modelValue"), a = _(), i = _(!1), l = (n) => {
|
|
5019
5029
|
a.value.toggle(n);
|
|
5020
5030
|
};
|
|
5021
|
-
return (n, o) => (r(),
|
|
5031
|
+
return (n, o) => (r(), v(O, null, [
|
|
5022
5032
|
x(u(A), {
|
|
5023
5033
|
onClick: l,
|
|
5024
5034
|
class: "ms-2"
|
|
5025
5035
|
}, {
|
|
5026
|
-
default:
|
|
5027
|
-
m("div",
|
|
5028
|
-
m("div",
|
|
5036
|
+
default: b(() => [
|
|
5037
|
+
m("div", Qa, [
|
|
5038
|
+
m("div", ei, [
|
|
5029
5039
|
x(u(j), { icon: "bi:layout-three-columns" })
|
|
5030
5040
|
]),
|
|
5031
|
-
|
|
5032
|
-
m("div",
|
|
5041
|
+
I(" Columns (" + k(t.value.filter((s) => s.selected).length ?? 0) + "/" + k(t.value.length ?? 0) + ") ", 1),
|
|
5042
|
+
m("div", ti, [
|
|
5033
5043
|
x(u(j), {
|
|
5034
5044
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5035
5045
|
}, null, 8, ["icon"])
|
|
@@ -5045,10 +5055,10 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5045
5055
|
onHide: o[0] || (o[0] = () => i.value = !1),
|
|
5046
5056
|
onShow: o[1] || (o[1] = () => i.value = !0)
|
|
5047
5057
|
}, {
|
|
5048
|
-
default:
|
|
5049
|
-
m("div",
|
|
5050
|
-
(r(!0),
|
|
5051
|
-
class:
|
|
5058
|
+
default: b(() => [
|
|
5059
|
+
m("div", ai, [
|
|
5060
|
+
(r(!0), v(O, null, N(t.value, (s, p) => (r(), v("div", {
|
|
5061
|
+
class: F(["d-flex cursor-pointer", {
|
|
5052
5062
|
"border-top": p !== 0,
|
|
5053
5063
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
5054
5064
|
"pt-1": t.value.length - 1 === p,
|
|
@@ -5070,32 +5080,32 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5070
5080
|
}, 512)
|
|
5071
5081
|
], 64));
|
|
5072
5082
|
}
|
|
5073
|
-
}),
|
|
5083
|
+
}), ll = /* @__PURE__ */ $({
|
|
5074
5084
|
__name: "ForgePanel",
|
|
5075
5085
|
setup(e) {
|
|
5076
5086
|
return (t, a) => {
|
|
5077
5087
|
const i = Re;
|
|
5078
|
-
return r(),
|
|
5079
|
-
toggleicon:
|
|
5080
|
-
l ? (r(),
|
|
5088
|
+
return r(), f(i, J(K({ ...t.$attrs })), {
|
|
5089
|
+
toggleicon: b(({ collapsed: l }) => [
|
|
5090
|
+
l ? (r(), f(u(j), {
|
|
5081
5091
|
key: 0,
|
|
5082
5092
|
"data-cy": "message-icon",
|
|
5083
5093
|
icon: "bi:chevron-down"
|
|
5084
5094
|
})) : z("", !0),
|
|
5085
|
-
l ? z("", !0) : (r(),
|
|
5095
|
+
l ? z("", !0) : (r(), f(u(j), {
|
|
5086
5096
|
key: 1,
|
|
5087
5097
|
"data-cy": "message-icon",
|
|
5088
5098
|
icon: "bi:chevron-up"
|
|
5089
5099
|
}))
|
|
5090
5100
|
]),
|
|
5091
|
-
default:
|
|
5092
|
-
|
|
5101
|
+
default: b(() => [
|
|
5102
|
+
w(t.$slots, "default")
|
|
5093
5103
|
]),
|
|
5094
5104
|
_: 3
|
|
5095
5105
|
}, 16);
|
|
5096
5106
|
};
|
|
5097
5107
|
}
|
|
5098
|
-
}),
|
|
5108
|
+
}), ii = /* @__PURE__ */ $({
|
|
5099
5109
|
__name: "ForgeToggleButton",
|
|
5100
5110
|
props: {
|
|
5101
5111
|
severity: { default: "primary" }
|
|
@@ -5108,7 +5118,8 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5108
5118
|
{
|
|
5109
5119
|
[`focus-ring focus-ring-${t.severity} btn-${t.severity}-subtle border border-2 border-${t.severity} fw-500 text-${t.severity}`]: i.context.active,
|
|
5110
5120
|
[`border text-${t.severity} select-btn-${t.severity}`]: !i.context.active,
|
|
5111
|
-
"btn-secondary-subtle": i.context.disabled
|
|
5121
|
+
"btn-secondary-subtle": i.context.disabled,
|
|
5122
|
+
"border-danger": i.props.invalid
|
|
5112
5123
|
}
|
|
5113
5124
|
]
|
|
5114
5125
|
}),
|
|
@@ -5121,43 +5132,56 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5121
5132
|
]
|
|
5122
5133
|
})
|
|
5123
5134
|
}));
|
|
5124
|
-
return (i, l) => (r(),
|
|
5135
|
+
return (i, l) => (r(), f(u(He), C({ ...i.$attrs, ...t }, {
|
|
5125
5136
|
severity: t.severity,
|
|
5126
5137
|
pt: a.value
|
|
5127
5138
|
}), null, 16, ["severity", "pt"]));
|
|
5128
5139
|
}
|
|
5129
|
-
}),
|
|
5140
|
+
}), li = {
|
|
5130
5141
|
class: "btn-group",
|
|
5131
5142
|
"data-cy": "forge-select-button"
|
|
5132
|
-
},
|
|
5143
|
+
}, nl = /* @__PURE__ */ $({
|
|
5133
5144
|
__name: "ForgeSelectButton",
|
|
5134
|
-
props: /* @__PURE__ */
|
|
5135
|
-
|
|
5136
|
-
|
|
5145
|
+
props: /* @__PURE__ */ U({
|
|
5146
|
+
options: {},
|
|
5147
|
+
multiple: { type: Boolean, default: !0 },
|
|
5148
|
+
allowEmpty: { type: Boolean, default: !1 },
|
|
5149
|
+
invalid: { type: Boolean, default: !1 }
|
|
5137
5150
|
}, {
|
|
5138
5151
|
modelValue: { required: !0 },
|
|
5139
5152
|
modelModifiers: {}
|
|
5140
5153
|
}),
|
|
5141
|
-
emits:
|
|
5142
|
-
setup(e
|
|
5143
|
-
const
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5154
|
+
emits: ["update:modelValue"],
|
|
5155
|
+
setup(e) {
|
|
5156
|
+
const t = e, a = D(e, "modelValue"), i = (n) => {
|
|
5157
|
+
var o;
|
|
5158
|
+
return t.multiple ? (o = a == null ? void 0 : a.value) == null ? void 0 : o.includes(n.value) : a.value === n.value;
|
|
5159
|
+
}, l = (n) => {
|
|
5160
|
+
var o;
|
|
5161
|
+
if (!n.disabled)
|
|
5162
|
+
if (t.multiple) {
|
|
5163
|
+
let s = (o = a.value) != null && o.length ? [...a.value] : [];
|
|
5164
|
+
if (s.length >= 1 && s.includes(n.value)) {
|
|
5165
|
+
if (!t.allowEmpty && s.length === 1) return;
|
|
5166
|
+
s = s.length > 1 ? s.filter((c) => c !== n.value) : [];
|
|
5167
|
+
} else
|
|
5168
|
+
s.push(n.value);
|
|
5169
|
+
a.value = s;
|
|
5170
|
+
} else
|
|
5171
|
+
a.value = a.value === n.value && t.allowEmpty ? null : n.value;
|
|
5149
5172
|
};
|
|
5150
|
-
return (
|
|
5151
|
-
(r(!0),
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
onChange: (
|
|
5157
|
-
defaultValue:
|
|
5158
|
-
disabled:
|
|
5159
|
-
"data-cy": `toggle-button-${
|
|
5160
|
-
|
|
5173
|
+
return (n, o) => (r(), v("div", li, [
|
|
5174
|
+
(r(!0), v(O, null, N(n.options, (s, p) => (r(), f(ii, {
|
|
5175
|
+
key: p,
|
|
5176
|
+
onLabel: s.label,
|
|
5177
|
+
offLabel: s.label,
|
|
5178
|
+
severity: s.severity,
|
|
5179
|
+
onChange: (c) => l(s),
|
|
5180
|
+
defaultValue: i(s),
|
|
5181
|
+
disabled: s.disabled,
|
|
5182
|
+
"data-cy": `toggle-button-${s.value}`,
|
|
5183
|
+
invalid: n.invalid
|
|
5184
|
+
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5161
5185
|
]));
|
|
5162
5186
|
}
|
|
5163
5187
|
}), ol = () => ({
|
|
@@ -5171,37 +5195,37 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5171
5195
|
}
|
|
5172
5196
|
});
|
|
5173
5197
|
export {
|
|
5174
|
-
|
|
5175
|
-
|
|
5198
|
+
Oi as Bootstrap_PT,
|
|
5199
|
+
Ni as ForgeActionButton,
|
|
5176
5200
|
se as ForgeAlert,
|
|
5177
|
-
|
|
5201
|
+
Ui as ForgeAutoComplete,
|
|
5178
5202
|
fe as ForgeCheckbox,
|
|
5179
|
-
|
|
5180
|
-
|
|
5203
|
+
Ji as ForgeChip,
|
|
5204
|
+
il as ForgeColumnCustomiser,
|
|
5181
5205
|
be as ForgeDatepicker,
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5206
|
+
al as ForgeFileUploader,
|
|
5207
|
+
tl as ForgeFilterHeader,
|
|
5208
|
+
Yi as ForgeForm,
|
|
5209
|
+
Gi as ForgeFormField,
|
|
5186
5210
|
At as ForgeInlineEditor,
|
|
5187
|
-
|
|
5211
|
+
Ai as ForgeLink,
|
|
5188
5212
|
ge as ForgeLoader,
|
|
5189
|
-
|
|
5213
|
+
Li as ForgeModal,
|
|
5190
5214
|
Wt as ForgeMultiSelectPreview,
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5215
|
+
Ri as ForgeNavbar,
|
|
5216
|
+
Hi as ForgePageHeader,
|
|
5217
|
+
ll as ForgePanel,
|
|
5218
|
+
la as ForgeProgressBar,
|
|
5219
|
+
Wi as ForgeRemainingCharacters,
|
|
5196
5220
|
ol as ForgeResolver,
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5221
|
+
Ki as ForgeScratchpad,
|
|
5222
|
+
nl as ForgeSelectButton,
|
|
5223
|
+
Zi as ForgeStatWidget,
|
|
5224
|
+
Xi as ForgeStepper,
|
|
5225
|
+
el as ForgeTable,
|
|
5226
|
+
Qi as ForgeTile,
|
|
5227
|
+
ii as ForgeToggleButton,
|
|
5228
|
+
Ei as convertToMultiSelectOption,
|
|
5229
|
+
qi as enumToMultiSelectList,
|
|
5206
5230
|
It as parseError
|
|
5207
5231
|
};
|