@3squared/forge-ui-3 2.8.2 → 2.9.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 +548 -537
- package/dist/index.d.ts +1 -1
- package/dist/src/components/ForgeModal.vue.d.ts +5 -1
- package/package.json +3 -3
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import he from "primevue/message";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import
|
|
2
|
+
import { defineComponent as $, openBlock as r, createBlock as v, normalizeProps as K, guardReactiveProps as Z, withCtx as g, createElementVNode as m, normalizeClass as B, unref as u, createCommentVNode as z, createVNode as x, renderSlot as k, ref as I, createElementBlock as f, Fragment as O, mergeProps as C, renderList as U, mergeModels as N, useModel as D, computed as T, createTextVNode as _, toDisplayString as w, 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 Fe } from "vue";
|
|
3
|
+
import { Icon as j } from "@iconify/vue";
|
|
4
|
+
import A from "primevue/button";
|
|
5
5
|
import Be 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 oe from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as je } from "@vueuse/components";
|
|
13
13
|
import Ie from "primevue/menubar";
|
|
14
|
-
import
|
|
14
|
+
import ne 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
|
+
}, ot = {
|
|
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
|
+
}, nt = {
|
|
496
496
|
// More PT options defined in ForgeStepper.
|
|
497
497
|
stepList: {
|
|
498
498
|
root: "d-flex mb-2 w-100"
|
|
@@ -1146,7 +1146,7 @@ const We = {
|
|
|
1146
1146
|
...Ze,
|
|
1147
1147
|
...Xe,
|
|
1148
1148
|
...Qe,
|
|
1149
|
-
...
|
|
1149
|
+
...ot,
|
|
1150
1150
|
...dt,
|
|
1151
1151
|
...vt,
|
|
1152
1152
|
...lt,
|
|
@@ -1155,7 +1155,7 @@ const We = {
|
|
|
1155
1155
|
...ct,
|
|
1156
1156
|
...gt,
|
|
1157
1157
|
...bt,
|
|
1158
|
-
...
|
|
1158
|
+
...nt,
|
|
1159
1159
|
...ut,
|
|
1160
1160
|
...et,
|
|
1161
1161
|
...st,
|
|
@@ -1168,7 +1168,7 @@ const We = {
|
|
|
1168
1168
|
directives: {
|
|
1169
1169
|
...ft
|
|
1170
1170
|
}
|
|
1171
|
-
}, se = /* @__PURE__ */
|
|
1171
|
+
}, se = /* @__PURE__ */ $({
|
|
1172
1172
|
__name: "ForgeAlert",
|
|
1173
1173
|
props: {
|
|
1174
1174
|
severity: { default: "primary" },
|
|
@@ -1189,31 +1189,31 @@ const We = {
|
|
|
1189
1189
|
const t = e;
|
|
1190
1190
|
return (a, i) => {
|
|
1191
1191
|
const l = he;
|
|
1192
|
-
return
|
|
1193
|
-
icon:
|
|
1192
|
+
return r(), v(l, K(Z({ ...a.$attrs, ...t })), {
|
|
1193
|
+
icon: g(() => [
|
|
1194
1194
|
m("div", {
|
|
1195
1195
|
class: B(t.icon ? "me-2 pe-1" : "")
|
|
1196
1196
|
}, [
|
|
1197
|
-
t.icon ? (
|
|
1197
|
+
t.icon ? (r(), v(u(j), {
|
|
1198
1198
|
key: 0,
|
|
1199
1199
|
"data-cy": "message-icon",
|
|
1200
1200
|
icon: t.icon,
|
|
1201
1201
|
class: B(`text-${t.severity}`),
|
|
1202
1202
|
height: 35
|
|
1203
|
-
}, null, 8, ["icon", "class"])) :
|
|
1203
|
+
}, null, 8, ["icon", "class"])) : z("", !0)
|
|
1204
1204
|
], 2)
|
|
1205
1205
|
]),
|
|
1206
|
-
closeicon:
|
|
1207
|
-
x(u(
|
|
1206
|
+
closeicon: g(() => [
|
|
1207
|
+
x(u(j), { icon: "bi:x" })
|
|
1208
1208
|
]),
|
|
1209
|
-
default:
|
|
1209
|
+
default: g(() => [
|
|
1210
1210
|
k(a.$slots, "default")
|
|
1211
1211
|
]),
|
|
1212
1212
|
_: 3
|
|
1213
1213
|
}, 16);
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
1216
|
-
}), Oi = /* @__PURE__ */
|
|
1216
|
+
}), Oi = /* @__PURE__ */ $({
|
|
1217
1217
|
__name: "ForgeActionButton",
|
|
1218
1218
|
props: {
|
|
1219
1219
|
action: {},
|
|
@@ -1232,9 +1232,9 @@ const We = {
|
|
|
1232
1232
|
t.value = !1;
|
|
1233
1233
|
};
|
|
1234
1234
|
return (l, n) => {
|
|
1235
|
-
const o =
|
|
1236
|
-
return
|
|
1237
|
-
x(o,
|
|
1235
|
+
const o = A;
|
|
1236
|
+
return r(), f(O, null, [
|
|
1237
|
+
x(o, C({ ...a, ...l.$attrs }, {
|
|
1238
1238
|
loading: t.value,
|
|
1239
1239
|
disabled: t.value || a.disabled,
|
|
1240
1240
|
onClick: i
|
|
@@ -1243,17 +1243,17 @@ const We = {
|
|
|
1243
1243
|
], 64);
|
|
1244
1244
|
};
|
|
1245
1245
|
}
|
|
1246
|
-
}), Ni = /* @__PURE__ */
|
|
1246
|
+
}), Ni = /* @__PURE__ */ $({
|
|
1247
1247
|
__name: "ForgeAutoComplete",
|
|
1248
1248
|
setup(e) {
|
|
1249
|
-
return (t, a) => (
|
|
1250
|
-
default:
|
|
1251
|
-
(
|
|
1249
|
+
return (t, a) => (r(), v(u(Se), C({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1250
|
+
default: g(() => [
|
|
1251
|
+
(r(!0), f(O, null, U(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
|
|
1252
1252
|
]),
|
|
1253
1253
|
_: 3
|
|
1254
1254
|
}, 16));
|
|
1255
1255
|
}
|
|
1256
|
-
}), Ct = { class: "d-flex flex-column" }, zt = ["for"], fe = /* @__PURE__ */
|
|
1256
|
+
}), Ct = { class: "d-flex flex-column" }, zt = ["for"], fe = /* @__PURE__ */ $({
|
|
1257
1257
|
__name: "ForgeCheckbox",
|
|
1258
1258
|
props: /* @__PURE__ */ N({
|
|
1259
1259
|
label: { default: "" },
|
|
@@ -1297,27 +1297,27 @@ const We = {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
), o = (p, c) => {
|
|
1299
1299
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
|
|
1300
|
-
},
|
|
1300
|
+
}, s = T(() => l.value.length > 0);
|
|
1301
1301
|
return (p, c) => {
|
|
1302
|
-
const
|
|
1303
|
-
return
|
|
1304
|
-
m("div",
|
|
1302
|
+
const b = Ce;
|
|
1303
|
+
return r(), f("div", Ct, [
|
|
1304
|
+
m("div", C({
|
|
1305
1305
|
class: "d-flex",
|
|
1306
1306
|
"data-cy": "checkbox-container",
|
|
1307
|
-
onClick: c[2] || (c[2] = (
|
|
1307
|
+
onClick: c[2] || (c[2] = (d) => o(d, a.value))
|
|
1308
1308
|
}, { ...p.$attrs }), [
|
|
1309
|
-
x(
|
|
1309
|
+
x(b, C({ ...t }, {
|
|
1310
1310
|
binary: "",
|
|
1311
1311
|
modelValue: a.value,
|
|
1312
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1312
|
+
"onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d),
|
|
1313
1313
|
"input-id": t.name,
|
|
1314
|
-
"input-class": { "is-invalid":
|
|
1314
|
+
"input-class": { "is-invalid": s.value },
|
|
1315
1315
|
class: t.disabled || t.readonly ? "" : "cursor-pointer"
|
|
1316
1316
|
}), null, 16, ["modelValue", "input-id", "input-class", "class"]),
|
|
1317
1317
|
m("label", {
|
|
1318
1318
|
for: t.name,
|
|
1319
|
-
onClick: c[1] || (c[1] = (
|
|
1320
|
-
class: B([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${
|
|
1319
|
+
onClick: c[1] || (c[1] = (d) => o(d, !a.value)),
|
|
1320
|
+
class: B([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1321
1321
|
}, [
|
|
1322
1322
|
k(p.$slots, "default", {}, () => [
|
|
1323
1323
|
_(w(t.label), 1)
|
|
@@ -1328,12 +1328,12 @@ const We = {
|
|
|
1328
1328
|
"data-cy": "error",
|
|
1329
1329
|
class: "text-invalid"
|
|
1330
1330
|
}, w(u(n)), 513), [
|
|
1331
|
-
[Y,
|
|
1331
|
+
[Y, s.value]
|
|
1332
1332
|
])
|
|
1333
1333
|
]);
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
|
-
}), Tt = { class: "forge-loader" }, ge = /* @__PURE__ */
|
|
1336
|
+
}), Tt = { class: "forge-loader" }, ge = /* @__PURE__ */ $({
|
|
1337
1337
|
__name: "ForgeLoader",
|
|
1338
1338
|
props: {
|
|
1339
1339
|
severity: { default: "primary" }
|
|
@@ -1342,7 +1342,7 @@ const We = {
|
|
|
1342
1342
|
const t = e;
|
|
1343
1343
|
return (a, i) => {
|
|
1344
1344
|
const l = ze;
|
|
1345
|
-
return
|
|
1345
|
+
return r(), f("div", Tt, [
|
|
1346
1346
|
x(l, {
|
|
1347
1347
|
"animation-duration": ".75",
|
|
1348
1348
|
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
@@ -1350,7 +1350,7 @@ const We = {
|
|
|
1350
1350
|
]);
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
1353
|
-
}), jt = ["href", "target"], Ui = /* @__PURE__ */
|
|
1353
|
+
}), jt = ["href", "target"], Ui = /* @__PURE__ */ $({
|
|
1354
1354
|
__name: "ForgeLink",
|
|
1355
1355
|
props: {
|
|
1356
1356
|
url: {},
|
|
@@ -1368,7 +1368,7 @@ const We = {
|
|
|
1368
1368
|
iconName: {}
|
|
1369
1369
|
},
|
|
1370
1370
|
setup(e) {
|
|
1371
|
-
const t =
|
|
1371
|
+
const t = T(() => ({
|
|
1372
1372
|
[`link-${e.severity}`]: e.severity,
|
|
1373
1373
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1374
1374
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1377,26 +1377,26 @@ const We = {
|
|
|
1377
1377
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1378
1378
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1379
1379
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1380
|
-
})), a =
|
|
1380
|
+
})), a = T(() => ({
|
|
1381
1381
|
"order-2": e.positionIconEnd,
|
|
1382
1382
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1383
1383
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
1384
1384
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1385
1385
|
"me-0": e.animateIconOnHover
|
|
1386
1386
|
}));
|
|
1387
|
-
return (i, l) => (
|
|
1387
|
+
return (i, l) => (r(), f("a", {
|
|
1388
1388
|
id: "link",
|
|
1389
1389
|
class: B(["cursor-pointer d-flex text-break", t.value]),
|
|
1390
1390
|
href: i.url,
|
|
1391
1391
|
target: i.target
|
|
1392
1392
|
}, [
|
|
1393
1393
|
k(i.$slots, "default", {}, () => [
|
|
1394
|
-
i.iconName ? (
|
|
1394
|
+
i.iconName ? (r(), v(u(j), {
|
|
1395
1395
|
key: 0,
|
|
1396
1396
|
id: "link-icon",
|
|
1397
1397
|
icon: i.iconName,
|
|
1398
1398
|
class: B(["bi my-auto", a.value])
|
|
1399
|
-
}, null, 8, ["icon", "class"])) :
|
|
1399
|
+
}, null, 8, ["icon", "class"])) : z("", !0),
|
|
1400
1400
|
_(" " + w(i.label), 1)
|
|
1401
1401
|
])
|
|
1402
1402
|
], 10, jt));
|
|
@@ -1422,7 +1422,7 @@ function qi(e, t, a) {
|
|
|
1422
1422
|
const _t = { key: 0 }, Pt = {
|
|
1423
1423
|
class: "d-flex w-100",
|
|
1424
1424
|
"data-cy": "footer"
|
|
1425
|
-
}, Ei = /* @__PURE__ */
|
|
1425
|
+
}, Ei = /* @__PURE__ */ $({
|
|
1426
1426
|
__name: "ForgeModal",
|
|
1427
1427
|
props: /* @__PURE__ */ N({
|
|
1428
1428
|
cancelText: { default: "Cancel" },
|
|
@@ -1434,6 +1434,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1434
1434
|
size: { default: "md" },
|
|
1435
1435
|
cancelClass: { default: "" },
|
|
1436
1436
|
submitClass: { default: "" },
|
|
1437
|
+
resetErrorOnClose: { type: Boolean, default: !0 },
|
|
1437
1438
|
header: { default: "Header" },
|
|
1438
1439
|
footer: {},
|
|
1439
1440
|
visible: { type: Boolean },
|
|
@@ -1471,109 +1472,119 @@ const _t = { key: 0 }, Pt = {
|
|
|
1471
1472
|
visibleModifiers: {}
|
|
1472
1473
|
}),
|
|
1473
1474
|
emits: ["update:visible"],
|
|
1474
|
-
setup(e) {
|
|
1475
|
-
const
|
|
1475
|
+
setup(e, { expose: t }) {
|
|
1476
|
+
const a = D(e, "visible"), i = I(!1), l = e, n = I(!1), o = I({
|
|
1476
1477
|
hasError: !1,
|
|
1477
1478
|
header: "",
|
|
1478
1479
|
message: []
|
|
1479
|
-
}),
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
|
|
1480
|
+
}), s = () => {
|
|
1481
|
+
o.value = {
|
|
1482
|
+
hasError: !1,
|
|
1483
|
+
header: "",
|
|
1484
|
+
message: []
|
|
1485
|
+
};
|
|
1486
|
+
};
|
|
1487
|
+
t({
|
|
1488
|
+
resetError: s
|
|
1489
|
+
});
|
|
1490
|
+
const p = () => {
|
|
1491
|
+
i.value = !1;
|
|
1492
|
+
}, c = () => {
|
|
1493
|
+
i.value = !0;
|
|
1494
|
+
}, b = () => {
|
|
1495
|
+
l.resetErrorOnClose && s(), a.value = !1;
|
|
1496
|
+
}, d = async () => {
|
|
1497
|
+
if (l.onConfirm) {
|
|
1498
|
+
n.value = !0, o.value.hasError = !1;
|
|
1488
1499
|
try {
|
|
1489
|
-
const
|
|
1490
|
-
(
|
|
1491
|
-
} catch (
|
|
1492
|
-
|
|
1493
|
-
const
|
|
1494
|
-
|
|
1500
|
+
const S = await l.onConfirm();
|
|
1501
|
+
(S || S == null) && b();
|
|
1502
|
+
} catch (S) {
|
|
1503
|
+
o.value.hasError = !0;
|
|
1504
|
+
const V = It(S);
|
|
1505
|
+
o.value.header = V.errorMessage, o.value.message = V.errorDetails;
|
|
1495
1506
|
}
|
|
1496
|
-
|
|
1507
|
+
n.value = !1;
|
|
1497
1508
|
}
|
|
1498
|
-
},
|
|
1509
|
+
}, F = T(() => ({
|
|
1499
1510
|
root: [
|
|
1500
1511
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1501
1512
|
{
|
|
1502
|
-
"mw-100 vh-100 vw-100 top-0 start-0":
|
|
1503
|
-
"modal-sm":
|
|
1504
|
-
"modal-lg":
|
|
1505
|
-
"modal-xl":
|
|
1513
|
+
"mw-100 vh-100 vw-100 top-0 start-0": i.value,
|
|
1514
|
+
"modal-sm": l.size === "sm",
|
|
1515
|
+
"modal-lg": l.size === "lg",
|
|
1516
|
+
"modal-xl": l.size === "xl"
|
|
1506
1517
|
}
|
|
1507
1518
|
]
|
|
1508
1519
|
}));
|
|
1509
|
-
return (
|
|
1510
|
-
const
|
|
1511
|
-
return
|
|
1512
|
-
onMaximize:
|
|
1513
|
-
onUnmaximize:
|
|
1514
|
-
pt:
|
|
1520
|
+
return (S, V) => {
|
|
1521
|
+
const M = A, q = Te;
|
|
1522
|
+
return r(), v(q, C(l, {
|
|
1523
|
+
onMaximize: c,
|
|
1524
|
+
onUnmaximize: p,
|
|
1525
|
+
pt: F.value
|
|
1515
1526
|
}), ie({
|
|
1516
|
-
closeicon:
|
|
1517
|
-
x(u(
|
|
1527
|
+
closeicon: g(() => [
|
|
1528
|
+
x(u(j), {
|
|
1518
1529
|
"data-cy": "close-icon",
|
|
1519
1530
|
icon: "bi:x-lg",
|
|
1520
1531
|
width: "18",
|
|
1521
1532
|
height: "18",
|
|
1522
|
-
onClick:
|
|
1533
|
+
onClick: b
|
|
1523
1534
|
})
|
|
1524
1535
|
]),
|
|
1525
|
-
maximizeicon:
|
|
1526
|
-
x(u(
|
|
1536
|
+
maximizeicon: g(() => [
|
|
1537
|
+
x(u(j), {
|
|
1527
1538
|
"data-cy": "maximisable-icon",
|
|
1528
|
-
icon:
|
|
1539
|
+
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1529
1540
|
width: "16",
|
|
1530
1541
|
height: "16"
|
|
1531
1542
|
}, null, 8, ["icon"])
|
|
1532
1543
|
]),
|
|
1533
1544
|
_: 2
|
|
1534
1545
|
}, [
|
|
1535
|
-
|
|
1536
|
-
name:
|
|
1537
|
-
fn:
|
|
1538
|
-
|
|
1546
|
+
U(S.$slots, (y, h) => ({
|
|
1547
|
+
name: h,
|
|
1548
|
+
fn: g((P) => [
|
|
1549
|
+
o.value.hasError ? (r(), v(se, {
|
|
1539
1550
|
key: 0,
|
|
1540
1551
|
severity: "danger",
|
|
1541
1552
|
"data-cy": "error"
|
|
1542
1553
|
}, {
|
|
1543
|
-
default:
|
|
1554
|
+
default: g(() => [
|
|
1544
1555
|
m("p", {
|
|
1545
|
-
class: B(
|
|
1546
|
-
}, w(
|
|
1547
|
-
|
|
1548
|
-
(
|
|
1549
|
-
])) :
|
|
1556
|
+
class: B(o.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1557
|
+
}, w(o.value.header), 3),
|
|
1558
|
+
o.value.message.length > 0 ? (r(), f("ul", _t, [
|
|
1559
|
+
(r(!0), f(O, null, U(o.value.message, (L) => (r(), f("li", { key: L }, w(L), 1))), 128))
|
|
1560
|
+
])) : z("", !0)
|
|
1550
1561
|
]),
|
|
1551
1562
|
_: 1
|
|
1552
|
-
})) :
|
|
1553
|
-
k(
|
|
1554
|
-
|
|
1563
|
+
})) : z("", !0),
|
|
1564
|
+
k(S.$slots, h, K(Z(P || {}))),
|
|
1565
|
+
n.value ? k(S.$slots, "loader", { key: 1 }, () => [
|
|
1555
1566
|
x(ge, { "data-cy": "loader" })
|
|
1556
|
-
]) :
|
|
1567
|
+
]) : z("", !0)
|
|
1557
1568
|
])
|
|
1558
1569
|
})),
|
|
1559
|
-
|
|
1570
|
+
S.showFooter ? {
|
|
1560
1571
|
name: "footer",
|
|
1561
|
-
fn:
|
|
1572
|
+
fn: g(() => [
|
|
1562
1573
|
m("div", Pt, [
|
|
1563
|
-
x(
|
|
1564
|
-
label:
|
|
1565
|
-
class: B(
|
|
1574
|
+
x(M, {
|
|
1575
|
+
label: S.cancelText,
|
|
1576
|
+
class: B(l.cancelClass),
|
|
1566
1577
|
outlined: "",
|
|
1567
|
-
onClick:
|
|
1578
|
+
onClick: b,
|
|
1568
1579
|
id: "cancel-button",
|
|
1569
|
-
type:
|
|
1580
|
+
type: l.cancelButtonType
|
|
1570
1581
|
}, null, 8, ["label", "class", "type"]),
|
|
1571
|
-
x(
|
|
1572
|
-
label:
|
|
1573
|
-
class: B([
|
|
1574
|
-
onClick:
|
|
1582
|
+
x(M, {
|
|
1583
|
+
label: S.submitText,
|
|
1584
|
+
class: B([l.submitClass, "ms-auto"]),
|
|
1585
|
+
onClick: d,
|
|
1575
1586
|
id: "submit-button",
|
|
1576
|
-
type:
|
|
1587
|
+
type: l.submitButtonType
|
|
1577
1588
|
}, null, 8, ["label", "class", "type"])
|
|
1578
1589
|
])
|
|
1579
1590
|
]),
|
|
@@ -1582,7 +1593,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1582
1593
|
]), 1040, ["pt"]);
|
|
1583
1594
|
};
|
|
1584
1595
|
}
|
|
1585
|
-
}), 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__ */
|
|
1596
|
+
}), 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__ */ $({
|
|
1586
1597
|
__name: "ForgeInlineEditor",
|
|
1587
1598
|
props: /* @__PURE__ */ N({
|
|
1588
1599
|
name: { default: "" },
|
|
@@ -1598,12 +1609,12 @@ const _t = { key: 0 }, Pt = {
|
|
|
1598
1609
|
emits: ["update:modelValue"],
|
|
1599
1610
|
setup(e) {
|
|
1600
1611
|
const t = e, a = D(e, "modelValue"), i = I(!1), l = I(), n = () => {
|
|
1601
|
-
var
|
|
1602
|
-
i.value = !i.value, (
|
|
1612
|
+
var S;
|
|
1613
|
+
i.value = !i.value, (S = l.value) == null || S.focus();
|
|
1603
1614
|
}, o = async () => {
|
|
1604
|
-
if (
|
|
1615
|
+
if (F.value)
|
|
1605
1616
|
return !1;
|
|
1606
|
-
if (a.value =
|
|
1617
|
+
if (a.value = d.value, t.completeAction)
|
|
1607
1618
|
try {
|
|
1608
1619
|
await t.completeAction.apply(this, t.params), i.value = !i.value;
|
|
1609
1620
|
} catch {
|
|
@@ -1611,50 +1622,50 @@ const _t = { key: 0 }, Pt = {
|
|
|
1611
1622
|
}
|
|
1612
1623
|
else
|
|
1613
1624
|
i.value = !i.value;
|
|
1614
|
-
},
|
|
1625
|
+
}, s = () => {
|
|
1615
1626
|
i.value = !i.value;
|
|
1616
1627
|
}, p = () => {
|
|
1617
|
-
|
|
1618
|
-
}, { errorMessage: c, errors:
|
|
1628
|
+
d.value = null;
|
|
1629
|
+
}, { errorMessage: c, errors: b, value: d } = ee(() => t.name, void 0, {
|
|
1619
1630
|
initialValue: a.value
|
|
1620
1631
|
});
|
|
1621
1632
|
le(() => {
|
|
1622
|
-
|
|
1633
|
+
d.value = a.value;
|
|
1623
1634
|
});
|
|
1624
|
-
const
|
|
1625
|
-
return (
|
|
1626
|
-
const M =
|
|
1627
|
-
return
|
|
1635
|
+
const F = T(() => b.value.length > 0);
|
|
1636
|
+
return (S, V) => {
|
|
1637
|
+
const M = oe, q = A;
|
|
1638
|
+
return r(), f("div", {
|
|
1628
1639
|
id: t.name
|
|
1629
1640
|
}, [
|
|
1630
|
-
|
|
1631
|
-
k(
|
|
1632
|
-
m("span", Ut, w(u(
|
|
1641
|
+
S.readonly ? (r(), f("div", Nt, [
|
|
1642
|
+
k(S.$slots, "default", {}, () => [
|
|
1643
|
+
m("span", Ut, w(u(d)), 1)
|
|
1633
1644
|
])
|
|
1634
|
-
])) : (
|
|
1635
|
-
i.value ? (
|
|
1636
|
-
H((
|
|
1637
|
-
k(
|
|
1638
|
-
class: B({ "is-invalid":
|
|
1645
|
+
])) : (r(), f("div", Mt, [
|
|
1646
|
+
i.value ? (r(), f("div", Dt, [
|
|
1647
|
+
H((r(), f("div", Ot, [
|
|
1648
|
+
k(S.$slots, "editor", {
|
|
1649
|
+
class: B({ "is-invalid": F.value }),
|
|
1639
1650
|
editFinished: o,
|
|
1640
|
-
cancel:
|
|
1641
|
-
val: u(
|
|
1651
|
+
cancel: s,
|
|
1652
|
+
val: u(d)
|
|
1642
1653
|
}, () => [
|
|
1643
1654
|
x(M, {
|
|
1644
|
-
modelValue: u(
|
|
1645
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
1655
|
+
modelValue: u(d),
|
|
1656
|
+
"onUpdate:modelValue": V[0] || (V[0] = (y) => we(d) ? d.value = y : null),
|
|
1646
1657
|
modelModifiers: { trim: !0 },
|
|
1647
1658
|
"data-cy": "input",
|
|
1648
1659
|
ref_key: "input",
|
|
1649
1660
|
ref: l,
|
|
1650
|
-
class: B({ "is-invalid":
|
|
1661
|
+
class: B({ "is-invalid": F.value }),
|
|
1651
1662
|
onKeydown: [
|
|
1652
1663
|
X(o, ["enter"]),
|
|
1653
|
-
X(
|
|
1664
|
+
X(s, ["esc"])
|
|
1654
1665
|
]
|
|
1655
1666
|
}, null, 8, ["modelValue", "class"])
|
|
1656
1667
|
]),
|
|
1657
|
-
x(u(
|
|
1668
|
+
x(u(j), {
|
|
1658
1669
|
icon: "bi:x-circle",
|
|
1659
1670
|
class: "mx-2 cursor-pointer",
|
|
1660
1671
|
onClick: p,
|
|
@@ -1664,26 +1675,26 @@ const _t = { key: 0 }, Pt = {
|
|
|
1664
1675
|
])), [
|
|
1665
1676
|
[u(je), o]
|
|
1666
1677
|
])
|
|
1667
|
-
])) : (
|
|
1678
|
+
])) : (r(), f("div", {
|
|
1668
1679
|
key: 1,
|
|
1669
1680
|
class: "d-flex text-muted",
|
|
1670
1681
|
onClick: n,
|
|
1671
1682
|
onFocus: n
|
|
1672
1683
|
}, [
|
|
1673
|
-
k(
|
|
1684
|
+
k(S.$slots, "default", {}, () => [
|
|
1674
1685
|
m("div", {
|
|
1675
|
-
class: B(["pe-2 cursor-pointer", { "text-invalid":
|
|
1686
|
+
class: B(["pe-2 cursor-pointer", { "text-invalid": F.value }]),
|
|
1676
1687
|
"data-cy": "value"
|
|
1677
|
-
}, w(u(
|
|
1688
|
+
}, w(u(d) ? u(d) : "Click to edit"), 3)
|
|
1678
1689
|
]),
|
|
1679
|
-
x(
|
|
1690
|
+
x(q, {
|
|
1680
1691
|
link: "",
|
|
1681
1692
|
class: "p-0 m-0"
|
|
1682
1693
|
}, {
|
|
1683
|
-
default:
|
|
1684
|
-
x(u(
|
|
1694
|
+
default: g(() => [
|
|
1695
|
+
x(u(j), {
|
|
1685
1696
|
icon: "bi:pencil",
|
|
1686
|
-
class: B(
|
|
1697
|
+
class: B(F.value ? "text-invalid" : "text-muted"),
|
|
1687
1698
|
"data-cy": "edit-icon",
|
|
1688
1699
|
onKeydown: X(n, ["enter"])
|
|
1689
1700
|
}, null, 8, ["class"])
|
|
@@ -1696,12 +1707,12 @@ const _t = { key: 0 }, Pt = {
|
|
|
1696
1707
|
"data-cy": "error",
|
|
1697
1708
|
class: "text-invalid"
|
|
1698
1709
|
}, w(u(c)), 513), [
|
|
1699
|
-
[Y,
|
|
1710
|
+
[Y, F.value]
|
|
1700
1711
|
])
|
|
1701
1712
|
], 8, Vt);
|
|
1702
1713
|
};
|
|
1703
1714
|
}
|
|
1704
|
-
}), qt = ["href"], Li = /* @__PURE__ */
|
|
1715
|
+
}), qt = ["href"], Li = /* @__PURE__ */ $({
|
|
1705
1716
|
__name: "ForgeNavbar",
|
|
1706
1717
|
props: {
|
|
1707
1718
|
severity: { default: "light" },
|
|
@@ -1718,7 +1729,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1718
1729
|
unstyled: { type: Boolean }
|
|
1719
1730
|
},
|
|
1720
1731
|
setup(e) {
|
|
1721
|
-
const t = e, a =
|
|
1732
|
+
const t = e, a = T(() => ({
|
|
1722
1733
|
root: () => ({
|
|
1723
1734
|
class: [
|
|
1724
1735
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1745,11 +1756,11 @@ const _t = { key: 0 }, Pt = {
|
|
|
1745
1756
|
]
|
|
1746
1757
|
})
|
|
1747
1758
|
}));
|
|
1748
|
-
return (i, l) => (
|
|
1759
|
+
return (i, l) => (r(), v(u(Ie), C({ ...t, ...i.$attrs }, {
|
|
1749
1760
|
pt: a.value,
|
|
1750
1761
|
"data-cy": "navbar"
|
|
1751
1762
|
}), ie({
|
|
1752
|
-
start:
|
|
1763
|
+
start: g(() => [
|
|
1753
1764
|
m("a", {
|
|
1754
1765
|
href: i.logoUrl,
|
|
1755
1766
|
class: "navbar-brand ms-3",
|
|
@@ -1760,9 +1771,9 @@ const _t = { key: 0 }, Pt = {
|
|
|
1760
1771
|
])
|
|
1761
1772
|
], 8, qt)
|
|
1762
1773
|
]),
|
|
1763
|
-
buttonicon:
|
|
1774
|
+
buttonicon: g(() => [
|
|
1764
1775
|
k(i.$slots, "buttonIcon", {}, () => [
|
|
1765
|
-
x(u(
|
|
1776
|
+
x(u(j), {
|
|
1766
1777
|
icon: "bi:list",
|
|
1767
1778
|
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1768
1779
|
height: "24",
|
|
@@ -1772,10 +1783,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
1772
1783
|
]),
|
|
1773
1784
|
_: 2
|
|
1774
1785
|
}, [
|
|
1775
|
-
|
|
1786
|
+
U(i.$slots, (n, o) => ({
|
|
1776
1787
|
name: o,
|
|
1777
|
-
fn:
|
|
1778
|
-
k(i.$slots, o, K(Z(
|
|
1788
|
+
fn: g((s) => [
|
|
1789
|
+
k(i.$slots, o, K(Z(s)))
|
|
1779
1790
|
])
|
|
1780
1791
|
}))
|
|
1781
1792
|
]), 1040, ["pt"]));
|
|
@@ -1787,7 +1798,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1787
1798
|
}, Rt = { class: "d-inline-block" }, Ht = {
|
|
1788
1799
|
key: 1,
|
|
1789
1800
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1790
|
-
}, Wt = /* @__PURE__ */
|
|
1801
|
+
}, Wt = /* @__PURE__ */ $({
|
|
1791
1802
|
__name: "ForgeMultiSelectPreview",
|
|
1792
1803
|
props: /* @__PURE__ */ N({
|
|
1793
1804
|
title: { default: "Selected Items" },
|
|
@@ -1807,8 +1818,8 @@ const _t = { key: 0 }, Pt = {
|
|
|
1807
1818
|
a.value = a.value.filter((n) => n.id !== l);
|
|
1808
1819
|
};
|
|
1809
1820
|
return (l, n) => {
|
|
1810
|
-
const o =
|
|
1811
|
-
return
|
|
1821
|
+
const o = ne, s = A;
|
|
1822
|
+
return r(), f("div", {
|
|
1812
1823
|
class: B(l.orientation === "column" ? "row" : ""),
|
|
1813
1824
|
"data-cy": "multiselect-preview"
|
|
1814
1825
|
}, [
|
|
@@ -1816,7 +1827,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1816
1827
|
class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1817
1828
|
"data-cy": "multiselect-container"
|
|
1818
1829
|
}, [
|
|
1819
|
-
x(o,
|
|
1830
|
+
x(o, C({
|
|
1820
1831
|
modelValue: a.value,
|
|
1821
1832
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
|
|
1822
1833
|
}, { ...l.$attrs }, {
|
|
@@ -1825,8 +1836,8 @@ const _t = { key: 0 }, Pt = {
|
|
|
1825
1836
|
placeholder: l.multiselectPlaceholder,
|
|
1826
1837
|
"data-cy": "multiselect"
|
|
1827
1838
|
}), {
|
|
1828
|
-
default:
|
|
1829
|
-
(
|
|
1839
|
+
default: g(() => [
|
|
1840
|
+
(r(!0), f(O, null, U(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
|
|
1830
1841
|
]),
|
|
1831
1842
|
_: 3
|
|
1832
1843
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
@@ -1841,31 +1852,31 @@ const _t = { key: 0 }, Pt = {
|
|
|
1841
1852
|
class: "overflow-auto"
|
|
1842
1853
|
}, [
|
|
1843
1854
|
m("div", Et, [
|
|
1844
|
-
l.title ? (
|
|
1845
|
-
(
|
|
1855
|
+
l.title ? (r(), f("div", Lt, w(l.title), 1)) : z("", !0),
|
|
1856
|
+
(r(!0), f(O, null, U(a.value, (p) => (r(), f("div", {
|
|
1846
1857
|
key: p.id,
|
|
1847
1858
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1848
1859
|
}, [
|
|
1849
1860
|
k(l.$slots, "list-item", { item: p }, () => [
|
|
1850
1861
|
m("span", Rt, w(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1851
1862
|
]),
|
|
1852
|
-
l.canRemoveItemFromPreview ? (
|
|
1863
|
+
l.canRemoveItemFromPreview ? (r(), v(s, {
|
|
1853
1864
|
key: 0,
|
|
1854
1865
|
link: "",
|
|
1855
1866
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1856
1867
|
onClick: (c) => i(p.id)
|
|
1857
1868
|
}, {
|
|
1858
|
-
default:
|
|
1859
|
-
x(u(
|
|
1869
|
+
default: g(() => [
|
|
1870
|
+
x(u(j), {
|
|
1860
1871
|
icon: "bi:x",
|
|
1861
1872
|
class: "close-icon",
|
|
1862
1873
|
"data-cy": `close-icon-${p.id}`
|
|
1863
1874
|
}, null, 8, ["data-cy"])
|
|
1864
1875
|
]),
|
|
1865
1876
|
_: 2
|
|
1866
|
-
}, 1032, ["onClick"])) :
|
|
1877
|
+
}, 1032, ["onClick"])) : z("", !0)
|
|
1867
1878
|
]))), 128)),
|
|
1868
|
-
a.value == null || a.value.length == 0 ? (
|
|
1879
|
+
a.value == null || a.value.length == 0 ? (r(), f("div", Ht, w(t.optionsPreviewEmptyText), 1)) : z("", !0)
|
|
1869
1880
|
])
|
|
1870
1881
|
], 4)
|
|
1871
1882
|
], 2)
|
|
@@ -1878,21 +1889,21 @@ const _t = { key: 0 }, Pt = {
|
|
|
1878
1889
|
}, Jt = {
|
|
1879
1890
|
"data-cy": "slot",
|
|
1880
1891
|
class: "d-flex align-items-center"
|
|
1881
|
-
}, Ri = /* @__PURE__ */
|
|
1892
|
+
}, Ri = /* @__PURE__ */ $({
|
|
1882
1893
|
__name: "ForgePageHeader",
|
|
1883
1894
|
props: {
|
|
1884
1895
|
title: {}
|
|
1885
1896
|
},
|
|
1886
1897
|
setup(e) {
|
|
1887
1898
|
const t = e;
|
|
1888
|
-
return (a, i) => (
|
|
1899
|
+
return (a, i) => (r(), f("div", Yt, [
|
|
1889
1900
|
m("h3", Gt, w(t.title), 1),
|
|
1890
1901
|
m("div", Jt, [
|
|
1891
1902
|
k(a.$slots, "default")
|
|
1892
1903
|
])
|
|
1893
1904
|
]));
|
|
1894
1905
|
}
|
|
1895
|
-
}), Kt = { class: "d-flex" }, Zt = { "data-cy": "before-slot" }, Xt = { class: "position-relative w-100" }, Qt = { "data-cy": "after-slot" }, be = /* @__PURE__ */
|
|
1906
|
+
}), Kt = { class: "d-flex" }, Zt = { "data-cy": "before-slot" }, Xt = { class: "position-relative w-100" }, Qt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ $({
|
|
1896
1907
|
__name: "ForgeDatepicker",
|
|
1897
1908
|
props: /* @__PURE__ */ N({
|
|
1898
1909
|
severity: { default: "primary" },
|
|
@@ -1968,37 +1979,37 @@ const _t = { key: 0 }, Pt = {
|
|
|
1968
1979
|
}),
|
|
1969
1980
|
emits: ["update:modelValue"],
|
|
1970
1981
|
setup(e) {
|
|
1971
|
-
const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur: o, setValue:
|
|
1982
|
+
const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur: o, setValue: s } = ee(() => t.name, void 0, {
|
|
1972
1983
|
initialValue: a.value
|
|
1973
1984
|
}), p = () => {
|
|
1974
|
-
|
|
1975
|
-
}, c =
|
|
1976
|
-
dayCell: ({ context:
|
|
1985
|
+
s(null), a.value = null;
|
|
1986
|
+
}, c = T(() => i.value.length > 0), b = T(() => ({
|
|
1987
|
+
dayCell: ({ context: d }) => ({
|
|
1977
1988
|
class: [
|
|
1978
1989
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
1979
1990
|
{
|
|
1980
|
-
"cursor-pointer": !
|
|
1981
|
-
"pe-none":
|
|
1982
|
-
"text-white":
|
|
1991
|
+
"cursor-pointer": !d.disabled,
|
|
1992
|
+
"pe-none": d.disabled,
|
|
1993
|
+
"text-white": d.selected
|
|
1983
1994
|
},
|
|
1984
1995
|
// Severities
|
|
1985
1996
|
{
|
|
1986
|
-
selected:
|
|
1987
|
-
"text-primary": !
|
|
1988
|
-
"text-brand": !
|
|
1989
|
-
"text-secondary": !
|
|
1990
|
-
"text-success": !
|
|
1991
|
-
"text-warning": !
|
|
1992
|
-
"text-danger": !
|
|
1993
|
-
"text-info": !
|
|
1997
|
+
selected: d.selected && !d.disabled,
|
|
1998
|
+
"text-primary": !d.selected && d.today && (t.severity === void 0 || t.severity === "primary"),
|
|
1999
|
+
"text-brand": !d.selected && d.today && t.severity === "brand",
|
|
2000
|
+
"text-secondary": !d.selected && d.today && t.severity === "secondary",
|
|
2001
|
+
"text-success": !d.selected && d.today && t.severity === "success",
|
|
2002
|
+
"text-warning": !d.selected && d.today && t.severity === "warning",
|
|
2003
|
+
"text-danger": !d.selected && d.today && t.severity === "danger",
|
|
2004
|
+
"text-info": !d.selected && d.today && t.severity === "info"
|
|
1994
2005
|
}
|
|
1995
2006
|
]
|
|
1996
2007
|
}),
|
|
1997
|
-
dayLabel: ({ context:
|
|
2008
|
+
dayLabel: ({ context: d }) => ({
|
|
1998
2009
|
class: [
|
|
1999
2010
|
// Disabled States
|
|
2000
2011
|
{
|
|
2001
|
-
"text-muted":
|
|
2012
|
+
"text-muted": d.disabled
|
|
2002
2013
|
}
|
|
2003
2014
|
]
|
|
2004
2015
|
}),
|
|
@@ -2034,61 +2045,61 @@ const _t = { key: 0 }, Pt = {
|
|
|
2034
2045
|
]
|
|
2035
2046
|
})
|
|
2036
2047
|
},
|
|
2037
|
-
year: ({ context:
|
|
2048
|
+
year: ({ context: d }) => ({
|
|
2038
2049
|
class: [
|
|
2039
2050
|
"col-3 text-center cursor-pointer py-2",
|
|
2040
2051
|
{
|
|
2041
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2042
|
-
"text-brand": t.severity === "brand" &&
|
|
2043
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2044
|
-
"text-success": t.severity === "success" &&
|
|
2045
|
-
"text-warning": t.severity === "warning" &&
|
|
2046
|
-
"text-danger": t.severity === "danger" &&
|
|
2047
|
-
"text-info": t.severity === "info" &&
|
|
2052
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2053
|
+
"text-brand": t.severity === "brand" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2054
|
+
"text-secondary": t.severity === "secondary" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2055
|
+
"text-success": t.severity === "success" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2056
|
+
"text-warning": t.severity === "warning" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2057
|
+
"text-danger": t.severity === "danger" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2058
|
+
"text-info": t.severity === "info" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear()
|
|
2048
2059
|
}
|
|
2049
2060
|
]
|
|
2050
2061
|
}),
|
|
2051
|
-
month: ({ context:
|
|
2062
|
+
month: ({ context: d }) => ({
|
|
2052
2063
|
class: [
|
|
2053
2064
|
"col-3 text-center cursor-pointer py-2",
|
|
2054
2065
|
{
|
|
2055
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2056
|
-
"text-brand": t.severity === "brand" &&
|
|
2057
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2058
|
-
"text-success": t.severity === "success" &&
|
|
2059
|
-
"text-warning": t.severity === "warning" &&
|
|
2060
|
-
"text-danger": t.severity === "danger" &&
|
|
2061
|
-
"text-info": t.severity === "info" &&
|
|
2066
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2067
|
+
"text-brand": t.severity === "brand" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2068
|
+
"text-secondary": t.severity === "secondary" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2069
|
+
"text-success": t.severity === "success" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2070
|
+
"text-warning": t.severity === "warning" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2071
|
+
"text-danger": t.severity === "danger" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2072
|
+
"text-info": t.severity === "info" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
|
|
2062
2073
|
}
|
|
2063
2074
|
]
|
|
2064
2075
|
})
|
|
2065
2076
|
}));
|
|
2066
|
-
return (
|
|
2067
|
-
const
|
|
2068
|
-
return
|
|
2077
|
+
return (d, F) => {
|
|
2078
|
+
const S = _e;
|
|
2079
|
+
return r(), f(O, null, [
|
|
2069
2080
|
m("div", Kt, [
|
|
2070
2081
|
m("span", Zt, [
|
|
2071
|
-
k(
|
|
2082
|
+
k(d.$slots, "before")
|
|
2072
2083
|
]),
|
|
2073
2084
|
m("div", Xt, [
|
|
2074
|
-
x(
|
|
2075
|
-
pt:
|
|
2085
|
+
x(S, C({ ...t, ...d.$attrs }, {
|
|
2086
|
+
pt: b.value,
|
|
2076
2087
|
modelValue: a.value,
|
|
2077
2088
|
"onUpdate:modelValue": [
|
|
2078
|
-
|
|
2089
|
+
F[0] || (F[0] = (V) => a.value = V),
|
|
2079
2090
|
u(n)
|
|
2080
2091
|
],
|
|
2081
|
-
onBlur:
|
|
2092
|
+
onBlur: F[1] || (F[1] = () => u(o)),
|
|
2082
2093
|
"input-class": { "datepicker-invalid": c.value }
|
|
2083
2094
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2084
|
-
H(x(u(
|
|
2095
|
+
H(x(u(j), {
|
|
2085
2096
|
"data-cy": "icon",
|
|
2086
2097
|
icon: "bi:calendar4",
|
|
2087
2098
|
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2088
2099
|
}, null, 8, ["class"]), [
|
|
2089
2100
|
[Y, t.showIcon]
|
|
2090
2101
|
]),
|
|
2091
|
-
H(x(u(
|
|
2102
|
+
H(x(u(j), {
|
|
2092
2103
|
"data-cy": "icon",
|
|
2093
2104
|
icon: "bi:x",
|
|
2094
2105
|
onClick: p,
|
|
@@ -2098,7 +2109,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2098
2109
|
])
|
|
2099
2110
|
]),
|
|
2100
2111
|
m("span", Qt, [
|
|
2101
|
-
k(
|
|
2112
|
+
k(d.$slots, "after")
|
|
2102
2113
|
])
|
|
2103
2114
|
]),
|
|
2104
2115
|
H(m("small", {
|
|
@@ -2110,19 +2121,19 @@ const _t = { key: 0 }, Pt = {
|
|
|
2110
2121
|
], 64);
|
|
2111
2122
|
};
|
|
2112
2123
|
}
|
|
2113
|
-
}), Hi = /* @__PURE__ */
|
|
2124
|
+
}), Hi = /* @__PURE__ */ $({
|
|
2114
2125
|
__name: "ForgeRemainingCharacters",
|
|
2115
2126
|
props: {
|
|
2116
2127
|
maxCount: { default: 300 },
|
|
2117
2128
|
currentCount: {}
|
|
2118
2129
|
},
|
|
2119
2130
|
setup(e) {
|
|
2120
|
-
const t = e, a =
|
|
2121
|
-
return (i, l) => (
|
|
2131
|
+
const t = e, a = T(() => t.maxCount - t.currentCount);
|
|
2132
|
+
return (i, l) => (r(), f("div", {
|
|
2122
2133
|
class: B(a.value < 0 ? "text-danger" : "")
|
|
2123
2134
|
}, "Remaining characters: " + w(a.value), 3));
|
|
2124
2135
|
}
|
|
2125
|
-
}), ea = { class: "d-flex justify-content-between" }, Wi = /* @__PURE__ */
|
|
2136
|
+
}), ea = { class: "d-flex justify-content-between" }, Wi = /* @__PURE__ */ $({
|
|
2126
2137
|
__name: "ForgeForm",
|
|
2127
2138
|
props: {
|
|
2128
2139
|
onSubmit: {},
|
|
@@ -2148,13 +2159,13 @@ const _t = { key: 0 }, Pt = {
|
|
|
2148
2159
|
a.value = !1;
|
|
2149
2160
|
}
|
|
2150
2161
|
return (n, o) => {
|
|
2151
|
-
const
|
|
2152
|
-
return
|
|
2162
|
+
const s = A;
|
|
2163
|
+
return r(), f("form", C(n.$attrs, {
|
|
2153
2164
|
novalidate: "",
|
|
2154
2165
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2155
2166
|
onSubmit: G(l, ["prevent"])
|
|
2156
2167
|
}), [
|
|
2157
|
-
n.hideTitle ?
|
|
2168
|
+
n.hideTitle ? z("", !0) : (r(), f(O, { key: 0 }, [
|
|
2158
2169
|
k(n.$slots, "title", {}, () => [
|
|
2159
2170
|
m("h3", {
|
|
2160
2171
|
class: B(n.titleClass),
|
|
@@ -2163,12 +2174,12 @@ const _t = { key: 0 }, Pt = {
|
|
|
2163
2174
|
]),
|
|
2164
2175
|
o[1] || (o[1] = m("hr", null, null, -1))
|
|
2165
2176
|
], 64)),
|
|
2166
|
-
i.value.hasError ? (
|
|
2177
|
+
i.value.hasError ? (r(), v(se, {
|
|
2167
2178
|
key: 1,
|
|
2168
2179
|
severity: "danger",
|
|
2169
2180
|
"data-cy": "error"
|
|
2170
2181
|
}, {
|
|
2171
|
-
default:
|
|
2182
|
+
default: g(() => [
|
|
2172
2183
|
k(n.$slots, "error", {
|
|
2173
2184
|
error: i.value.message
|
|
2174
2185
|
}, () => [
|
|
@@ -2176,11 +2187,11 @@ const _t = { key: 0 }, Pt = {
|
|
|
2176
2187
|
])
|
|
2177
2188
|
]),
|
|
2178
2189
|
_: 3
|
|
2179
|
-
})) :
|
|
2190
|
+
})) : z("", !0),
|
|
2180
2191
|
k(n.$slots, "default"),
|
|
2181
2192
|
m("div", ea, [
|
|
2182
2193
|
k(n.$slots, "cancel", {}, () => [
|
|
2183
|
-
n.hideCancel ?
|
|
2194
|
+
n.hideCancel ? z("", !0) : (r(), v(s, {
|
|
2184
2195
|
key: 0,
|
|
2185
2196
|
"data-cy": "cancel-btn",
|
|
2186
2197
|
type: "reset",
|
|
@@ -2188,37 +2199,37 @@ const _t = { key: 0 }, Pt = {
|
|
|
2188
2199
|
outlined: "",
|
|
2189
2200
|
onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
|
|
2190
2201
|
}, {
|
|
2191
|
-
default:
|
|
2202
|
+
default: g(() => [
|
|
2192
2203
|
_(w(n.cancelText), 1)
|
|
2193
2204
|
]),
|
|
2194
2205
|
_: 1
|
|
2195
2206
|
}))
|
|
2196
2207
|
]),
|
|
2197
2208
|
k(n.$slots, "submit", { submit: l }, () => [
|
|
2198
|
-
x(
|
|
2209
|
+
x(s, {
|
|
2199
2210
|
"data-cy": "submit-btn",
|
|
2200
2211
|
type: "submit",
|
|
2201
2212
|
severity: "primary",
|
|
2202
2213
|
class: "ms-auto"
|
|
2203
2214
|
}, {
|
|
2204
|
-
default:
|
|
2215
|
+
default: g(() => [
|
|
2205
2216
|
_(w(n.submitText), 1)
|
|
2206
2217
|
]),
|
|
2207
2218
|
_: 1
|
|
2208
2219
|
})
|
|
2209
2220
|
])
|
|
2210
2221
|
]),
|
|
2211
|
-
a.value ? (
|
|
2222
|
+
a.value ? (r(), v(ge, {
|
|
2212
2223
|
key: 2,
|
|
2213
2224
|
"data-cy": "loading-spinner"
|
|
2214
|
-
})) :
|
|
2225
|
+
})) : z("", !0)
|
|
2215
2226
|
], 16);
|
|
2216
2227
|
};
|
|
2217
2228
|
}
|
|
2218
2229
|
}), ta = {
|
|
2219
2230
|
key: 1,
|
|
2220
2231
|
class: "d-flex flex-column w-100"
|
|
2221
|
-
}, aa = ["for"], Yi = /* @__PURE__ */
|
|
2232
|
+
}, aa = ["for"], Yi = /* @__PURE__ */ $({
|
|
2222
2233
|
__name: "ForgeFormField",
|
|
2223
2234
|
props: /* @__PURE__ */ N({
|
|
2224
2235
|
name: {},
|
|
@@ -2234,24 +2245,24 @@ const _t = { key: 0 }, Pt = {
|
|
|
2234
2245
|
}),
|
|
2235
2246
|
emits: ["update:modelValue"],
|
|
2236
2247
|
setup(e) {
|
|
2237
|
-
const t = D(e, "modelValue"), a = e, i = (
|
|
2238
|
-
a.type == "number" ?
|
|
2239
|
-
}, { errors: l, value: n, errorMessage: o, handleChange:
|
|
2248
|
+
const t = D(e, "modelValue"), a = e, i = (b) => {
|
|
2249
|
+
a.type == "number" ? s(b.value) : s(b);
|
|
2250
|
+
}, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } = ee(() => a.name, void 0, {
|
|
2240
2251
|
initialValue: t.value
|
|
2241
|
-
}), c =
|
|
2242
|
-
return ce(() => n.value, (
|
|
2243
|
-
t.value =
|
|
2244
|
-
}, { immediate: !0 }), (
|
|
2245
|
-
const
|
|
2246
|
-
return a.type === "checkbox" ? (
|
|
2252
|
+
}), c = T(() => l.value.length > 0);
|
|
2253
|
+
return ce(() => n.value, (b) => {
|
|
2254
|
+
t.value = b;
|
|
2255
|
+
}, { immediate: !0 }), (b, d) => {
|
|
2256
|
+
const F = Ve, S = Pe, V = oe, M = te, q = ne, y = be;
|
|
2257
|
+
return a.type === "checkbox" ? (r(), v(fe, C({
|
|
2247
2258
|
key: 0,
|
|
2248
2259
|
id: a.name,
|
|
2249
2260
|
label: a.fieldLabel
|
|
2250
|
-
},
|
|
2261
|
+
}, b.$attrs, {
|
|
2251
2262
|
name: a.name,
|
|
2252
2263
|
modelValue: t.value,
|
|
2253
|
-
"onUpdate:modelValue":
|
|
2254
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (
|
|
2264
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => t.value = h)
|
|
2265
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(), f("div", ta, [
|
|
2255
2266
|
m("div", {
|
|
2256
2267
|
"data-cy": "input-wrapper",
|
|
2257
2268
|
class: B(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2260,64 +2271,64 @@ const _t = { key: 0 }, Pt = {
|
|
|
2260
2271
|
for: a.name,
|
|
2261
2272
|
class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2262
2273
|
}, w(a.fieldLabel), 11, aa),
|
|
2263
|
-
a.type === "number" ? (
|
|
2274
|
+
a.type === "number" ? (r(), v(u(ue), C({
|
|
2264
2275
|
key: 0,
|
|
2265
2276
|
id: a.name
|
|
2266
|
-
},
|
|
2277
|
+
}, b.$attrs, {
|
|
2267
2278
|
placeholder: a.placeholder,
|
|
2268
2279
|
"input-class": { "is-invalid": c.value },
|
|
2269
2280
|
class: { "is-invalid": c.value },
|
|
2270
2281
|
modelValue: t.value,
|
|
2271
|
-
"onUpdate:modelValue":
|
|
2282
|
+
"onUpdate:modelValue": d[1] || (d[1] = (h) => t.value = h),
|
|
2272
2283
|
onInput: i
|
|
2273
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (
|
|
2284
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), v(F, C({
|
|
2274
2285
|
key: 1,
|
|
2275
2286
|
id: a.name
|
|
2276
|
-
},
|
|
2287
|
+
}, b.$attrs, {
|
|
2277
2288
|
placeholder: a.placeholder,
|
|
2278
2289
|
class: { "is-invalid": c.value },
|
|
2279
2290
|
modelValue: t.value,
|
|
2280
|
-
"onUpdate:modelValue":
|
|
2291
|
+
"onUpdate:modelValue": d[2] || (d[2] = (h) => t.value = h),
|
|
2281
2292
|
onInput: i,
|
|
2282
2293
|
onBlur: u(p)
|
|
2283
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (
|
|
2294
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), v(S, C({
|
|
2284
2295
|
key: 2,
|
|
2285
2296
|
id: a.name
|
|
2286
|
-
},
|
|
2297
|
+
}, b.$attrs, {
|
|
2287
2298
|
placeholder: a.placeholder,
|
|
2288
2299
|
mask: a.mask,
|
|
2289
2300
|
class: { "is-invalid": c.value },
|
|
2290
2301
|
modelValue: t.value,
|
|
2291
|
-
"onUpdate:modelValue":
|
|
2302
|
+
"onUpdate:modelValue": d[3] || (d[3] = (h) => t.value = h),
|
|
2292
2303
|
onComplete: i,
|
|
2293
2304
|
onBlur: u(p)
|
|
2294
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (
|
|
2305
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), v(V, C({
|
|
2295
2306
|
key: 3,
|
|
2296
2307
|
id: a.name
|
|
2297
|
-
},
|
|
2308
|
+
}, b.$attrs, {
|
|
2298
2309
|
placeholder: a.placeholder,
|
|
2299
2310
|
class: { "is-invalid": c.value },
|
|
2300
2311
|
modelValue: t.value,
|
|
2301
|
-
"onUpdate:modelValue":
|
|
2312
|
+
"onUpdate:modelValue": d[4] || (d[4] = (h) => t.value = h),
|
|
2302
2313
|
onInput: i,
|
|
2303
2314
|
onBlur: u(p)
|
|
2304
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (
|
|
2315
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), v(M, C({ key: 4 }, { ...a, ...b.$attrs }, {
|
|
2305
2316
|
modelValue: t.value,
|
|
2306
|
-
"onUpdate:modelValue":
|
|
2317
|
+
"onUpdate:modelValue": d[5] || (d[5] = (h) => t.value = h),
|
|
2307
2318
|
class: { "is-invalid": c.value }
|
|
2308
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (
|
|
2319
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), v(q, C({ key: 5 }, { ...a, ...b.$attrs }, {
|
|
2309
2320
|
modelValue: t.value,
|
|
2310
|
-
"onUpdate:modelValue":
|
|
2321
|
+
"onUpdate:modelValue": d[6] || (d[6] = (h) => t.value = h),
|
|
2311
2322
|
class: { "is-invalid": c.value }
|
|
2312
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (
|
|
2323
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), v(Wt, C({ key: 6 }, { ...a, ...b.$attrs }, {
|
|
2313
2324
|
modelValue: t.value,
|
|
2314
|
-
"onUpdate:modelValue":
|
|
2325
|
+
"onUpdate:modelValue": d[7] || (d[7] = (h) => t.value = h),
|
|
2315
2326
|
class: { "is-invalid": c.value }
|
|
2316
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (
|
|
2327
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), v(y, C({ key: 7 }, { ...a, ...b.$attrs }, {
|
|
2317
2328
|
modelValue: t.value,
|
|
2318
|
-
"onUpdate:modelValue":
|
|
2329
|
+
"onUpdate:modelValue": d[8] || (d[8] = (h) => t.value = h),
|
|
2319
2330
|
class: { "is-invalid": c.value }
|
|
2320
|
-
}), null, 16, ["modelValue", "class"])) :
|
|
2331
|
+
}), null, 16, ["modelValue", "class"])) : z("", !0)
|
|
2321
2332
|
], 2),
|
|
2322
2333
|
H(m("small", {
|
|
2323
2334
|
"data-cy": "error",
|
|
@@ -2328,7 +2339,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2328
2339
|
]));
|
|
2329
2340
|
};
|
|
2330
2341
|
}
|
|
2331
|
-
}), Gi = /* @__PURE__ */
|
|
2342
|
+
}), Gi = /* @__PURE__ */ $({
|
|
2332
2343
|
__name: "ForgeChip",
|
|
2333
2344
|
props: {
|
|
2334
2345
|
chipSeverity: { default: "primary" },
|
|
@@ -2344,7 +2355,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2344
2355
|
unstyled: { type: Boolean }
|
|
2345
2356
|
},
|
|
2346
2357
|
setup(e) {
|
|
2347
|
-
const t = e, a =
|
|
2358
|
+
const t = e, a = T(() => ({
|
|
2348
2359
|
root: [
|
|
2349
2360
|
"badge d-inline-flex align-items-center border me-1 p-1",
|
|
2350
2361
|
{
|
|
@@ -2363,15 +2374,15 @@ const _t = { key: 0 }, Pt = {
|
|
|
2363
2374
|
}));
|
|
2364
2375
|
return (i, l) => {
|
|
2365
2376
|
const n = Me;
|
|
2366
|
-
return
|
|
2367
|
-
default:
|
|
2368
|
-
(
|
|
2377
|
+
return r(), v(n, C({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2378
|
+
default: g(() => [
|
|
2379
|
+
(r(!0), f(O, null, U(i.$slots, (o, s) => k(i.$slots, s, { slot: s })), 256))
|
|
2369
2380
|
]),
|
|
2370
2381
|
_: 3
|
|
2371
2382
|
}, 16, ["pt"]);
|
|
2372
2383
|
};
|
|
2373
2384
|
}
|
|
2374
|
-
}), ia = /* @__PURE__ */
|
|
2385
|
+
}), ia = /* @__PURE__ */ $({
|
|
2375
2386
|
__name: "ForgeProgressBar",
|
|
2376
2387
|
props: {
|
|
2377
2388
|
severity: { default: "primary" },
|
|
@@ -2387,7 +2398,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2387
2398
|
unstyled: { type: Boolean }
|
|
2388
2399
|
},
|
|
2389
2400
|
setup(e) {
|
|
2390
|
-
const t = e, a =
|
|
2401
|
+
const t = e, a = T(() => t.striped ? "progress-bar-striped" : null), i = T(() => t.animate ? "progress-bar-animated" : null), l = T(() => {
|
|
2391
2402
|
switch (t.severity) {
|
|
2392
2403
|
case "brand":
|
|
2393
2404
|
return "bg-brand";
|
|
@@ -2406,7 +2417,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2406
2417
|
default:
|
|
2407
2418
|
return "bg-primary";
|
|
2408
2419
|
}
|
|
2409
|
-
}), n =
|
|
2420
|
+
}), n = T(() => ({
|
|
2410
2421
|
root: {
|
|
2411
2422
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2412
2423
|
},
|
|
@@ -2414,10 +2425,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
2414
2425
|
class: [l.value, a.value, i.value, "progress-bar"]
|
|
2415
2426
|
}
|
|
2416
2427
|
}));
|
|
2417
|
-
return (o,
|
|
2428
|
+
return (o, s) => {
|
|
2418
2429
|
const p = De;
|
|
2419
|
-
return
|
|
2420
|
-
default:
|
|
2430
|
+
return r(), v(p, C({ ...o.$attrs, ...t }, { pt: n.value }), {
|
|
2431
|
+
default: g(() => [
|
|
2421
2432
|
k(o.$slots, "default")
|
|
2422
2433
|
]),
|
|
2423
2434
|
_: 3
|
|
@@ -2425,7 +2436,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2425
2436
|
};
|
|
2426
2437
|
}
|
|
2427
2438
|
});
|
|
2428
|
-
var la = /* @__PURE__ */
|
|
2439
|
+
var la = /* @__PURE__ */ $({
|
|
2429
2440
|
name: "VueDrawingCanvas",
|
|
2430
2441
|
props: {
|
|
2431
2442
|
strokeType: {
|
|
@@ -2737,14 +2748,14 @@ var la = /* @__PURE__ */ F({
|
|
|
2737
2748
|
});
|
|
2738
2749
|
},
|
|
2739
2750
|
wrapText(e, t, a, i, l, n) {
|
|
2740
|
-
const o = /(\r\n|\n\r|\n|\r)+/g,
|
|
2751
|
+
const o = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2741
2752
|
var p = t.split(o).filter((M) => M.length > 0);
|
|
2742
2753
|
for (let M = 0; M < p.length; M++) {
|
|
2743
|
-
for (var c = p[M].split(
|
|
2744
|
-
var
|
|
2745
|
-
V > l &&
|
|
2754
|
+
for (var c = p[M].split(s).filter((q) => q.length > 0), b = "", d = 0; d < c.length; d++) {
|
|
2755
|
+
var F = b + c[d] + " ", S = e.measureText(F), V = S.width;
|
|
2756
|
+
V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(b, a, i) : e.fillText(b, a, i), b = c[d] + " ", i += n) : b = F;
|
|
2746
2757
|
}
|
|
2747
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2758
|
+
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(b, a, i) : e.fillText(b, a, i), i += c.length > 0 ? n : 0;
|
|
2748
2759
|
}
|
|
2749
2760
|
},
|
|
2750
2761
|
save() {
|
|
@@ -2764,20 +2775,20 @@ var la = /* @__PURE__ */ F({
|
|
|
2764
2775
|
const n = new Image();
|
|
2765
2776
|
n.src = a.source, n.onload = () => {
|
|
2766
2777
|
a && t && t.drawImage(n, a.x, a.y, Number(i), Number(l));
|
|
2767
|
-
let o = document.createElement("canvas"),
|
|
2768
|
-
if (o.width = Number(p), o.height = Number(c),
|
|
2769
|
-
return
|
|
2778
|
+
let o = document.createElement("canvas"), s = o.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, c = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2779
|
+
if (o.width = Number(p), o.height = Number(c), s)
|
|
2780
|
+
return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image", o.toDataURL("image/" + this.saveAs, 1)), o.toDataURL("image/" + this.saveAs, 1);
|
|
2770
2781
|
};
|
|
2771
2782
|
} else if (a.type === "Text") {
|
|
2772
2783
|
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";
|
|
2773
2784
|
if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
|
|
2774
|
-
let
|
|
2775
|
-
a.fontStyle && a.fontStyle.width ?
|
|
2785
|
+
let d, F;
|
|
2786
|
+
a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ? F = a.y + Math.floor(a.fontStyle.lineHeight / 2) : F = a.y, t.translate(d, F), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(d * -1, F * -1);
|
|
2776
2787
|
}
|
|
2777
2788
|
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));
|
|
2778
|
-
let
|
|
2779
|
-
if (
|
|
2780
|
-
return p.drawImage(e, 0, 0, Number(c), Number(
|
|
2789
|
+
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, b = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2790
|
+
if (s.width = Number(c), s.height = Number(b), p)
|
|
2791
|
+
return p.drawImage(e, 0, 0, Number(c), Number(b)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
|
|
2781
2792
|
}
|
|
2782
2793
|
},
|
|
2783
2794
|
isEmpty() {
|
|
@@ -2815,7 +2826,7 @@ var la = /* @__PURE__ */ F({
|
|
|
2815
2826
|
});
|
|
2816
2827
|
}
|
|
2817
2828
|
});
|
|
2818
|
-
const
|
|
2829
|
+
const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1 gap-1" }, Ji = /* @__PURE__ */ $({
|
|
2819
2830
|
__name: "ForgeScratchpad",
|
|
2820
2831
|
props: {
|
|
2821
2832
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2830,79 +2841,79 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
|
|
|
2830
2841
|
setup(e, { emit: t }) {
|
|
2831
2842
|
const a = e, i = t, l = Fe("drawingCanvas"), n = I(), o = () => {
|
|
2832
2843
|
l == null || l.value.reset();
|
|
2833
|
-
},
|
|
2844
|
+
}, s = () => {
|
|
2834
2845
|
l == null || l.value.redo();
|
|
2835
2846
|
}, p = () => {
|
|
2836
2847
|
l == null || l.value.undo();
|
|
2837
2848
|
}, c = () => {
|
|
2838
2849
|
i("save", l.value.isEmpty());
|
|
2839
2850
|
};
|
|
2840
|
-
return (
|
|
2841
|
-
const
|
|
2842
|
-
return
|
|
2843
|
-
x(u(la),
|
|
2851
|
+
return (b, d) => {
|
|
2852
|
+
const F = A;
|
|
2853
|
+
return r(), f("div", oa, [
|
|
2854
|
+
x(u(la), C({
|
|
2844
2855
|
ref_key: "drawingCanvas",
|
|
2845
2856
|
ref: l,
|
|
2846
2857
|
image: n.value,
|
|
2847
|
-
"onUpdate:image":
|
|
2858
|
+
"onUpdate:image": d[0] || (d[0] = (S) => n.value = S),
|
|
2848
2859
|
"data-cy": "drawing-canvas",
|
|
2849
2860
|
class: "border canvas"
|
|
2850
|
-
}, { ...
|
|
2851
|
-
height:
|
|
2852
|
-
width:
|
|
2853
|
-
style: `height: ${
|
|
2854
|
-
"line-join":
|
|
2861
|
+
}, { ...b.$attrs }, {
|
|
2862
|
+
height: b.height,
|
|
2863
|
+
width: b.width,
|
|
2864
|
+
style: `height: ${b.height}px; width: ${b.width}px`,
|
|
2865
|
+
"line-join": b.lineJoin
|
|
2855
2866
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2856
|
-
m("div",
|
|
2857
|
-
a.showUndo ? (
|
|
2867
|
+
m("div", na, [
|
|
2868
|
+
a.showUndo ? (r(), v(F, {
|
|
2858
2869
|
key: 0,
|
|
2859
2870
|
onClick: p,
|
|
2860
2871
|
outlined: "",
|
|
2861
2872
|
"data-cy": "undo-button"
|
|
2862
2873
|
}, {
|
|
2863
|
-
default:
|
|
2874
|
+
default: g(() => d[1] || (d[1] = [
|
|
2864
2875
|
_("Undo")
|
|
2865
2876
|
])),
|
|
2866
2877
|
_: 1
|
|
2867
|
-
})) :
|
|
2868
|
-
a.showRedo ? (
|
|
2878
|
+
})) : z("", !0),
|
|
2879
|
+
a.showRedo ? (r(), v(F, {
|
|
2869
2880
|
key: 1,
|
|
2870
|
-
onClick:
|
|
2881
|
+
onClick: s,
|
|
2871
2882
|
outlined: "",
|
|
2872
2883
|
"data-cy": "redo-button"
|
|
2873
2884
|
}, {
|
|
2874
|
-
default:
|
|
2885
|
+
default: g(() => d[2] || (d[2] = [
|
|
2875
2886
|
_("Redo")
|
|
2876
2887
|
])),
|
|
2877
2888
|
_: 1
|
|
2878
|
-
})) :
|
|
2879
|
-
a.showClear ? (
|
|
2889
|
+
})) : z("", !0),
|
|
2890
|
+
a.showClear ? (r(), v(F, {
|
|
2880
2891
|
key: 2,
|
|
2881
2892
|
onClick: o,
|
|
2882
2893
|
outlined: "",
|
|
2883
2894
|
"data-cy": "clear-button"
|
|
2884
2895
|
}, {
|
|
2885
|
-
default:
|
|
2896
|
+
default: g(() => d[3] || (d[3] = [
|
|
2886
2897
|
_("Clear")
|
|
2887
2898
|
])),
|
|
2888
2899
|
_: 1
|
|
2889
|
-
})) :
|
|
2890
|
-
a.showSave ? (
|
|
2900
|
+
})) : z("", !0),
|
|
2901
|
+
a.showSave ? (r(), v(F, {
|
|
2891
2902
|
key: 3,
|
|
2892
2903
|
onClick: c,
|
|
2893
2904
|
class: "ms-auto",
|
|
2894
2905
|
"data-cy": "save-button"
|
|
2895
2906
|
}, {
|
|
2896
|
-
default:
|
|
2907
|
+
default: g(() => d[4] || (d[4] = [
|
|
2897
2908
|
_("Save")
|
|
2898
2909
|
])),
|
|
2899
2910
|
_: 1
|
|
2900
|
-
})) :
|
|
2911
|
+
})) : z("", !0)
|
|
2901
2912
|
])
|
|
2902
2913
|
]);
|
|
2903
2914
|
};
|
|
2904
2915
|
}
|
|
2905
|
-
}), sa = { class: "value text-white w-100 text-center" }, Ki = /* @__PURE__ */
|
|
2916
|
+
}), sa = { class: "value text-white w-100 text-center" }, Ki = /* @__PURE__ */ $({
|
|
2906
2917
|
__name: "ForgeStatWidget",
|
|
2907
2918
|
props: {
|
|
2908
2919
|
size: { default: "md" },
|
|
@@ -2910,7 +2921,7 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
|
|
|
2910
2921
|
},
|
|
2911
2922
|
setup(e) {
|
|
2912
2923
|
const t = e;
|
|
2913
|
-
return (a, i) => (
|
|
2924
|
+
return (a, i) => (r(), f("div", C(a.$attrs, {
|
|
2914
2925
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2915
2926
|
}), [
|
|
2916
2927
|
m("span", sa, [
|
|
@@ -2918,7 +2929,7 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
|
|
|
2918
2929
|
])
|
|
2919
2930
|
], 16));
|
|
2920
2931
|
}
|
|
2921
|
-
}), ra = { key: 0 }, Zi = /* @__PURE__ */
|
|
2932
|
+
}), ra = { key: 0 }, Zi = /* @__PURE__ */ $({
|
|
2922
2933
|
__name: "ForgeStepper",
|
|
2923
2934
|
props: {
|
|
2924
2935
|
currentStep: { default: 1 },
|
|
@@ -2936,7 +2947,7 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
|
|
|
2936
2947
|
unstyled: { type: Boolean }
|
|
2937
2948
|
},
|
|
2938
2949
|
setup(e) {
|
|
2939
|
-
const t = e, a =
|
|
2950
|
+
const t = e, a = T(() => ({
|
|
2940
2951
|
header: {
|
|
2941
2952
|
class: [
|
|
2942
2953
|
"p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
|
|
@@ -2965,18 +2976,18 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
|
|
|
2965
2976
|
]
|
|
2966
2977
|
})
|
|
2967
2978
|
}));
|
|
2968
|
-
return (i, l) => (
|
|
2969
|
-
default:
|
|
2979
|
+
return (i, l) => (r(), v(u(Ne), { value: i.currentStep }, {
|
|
2980
|
+
default: g(() => [
|
|
2970
2981
|
x(u(Ue), null, {
|
|
2971
|
-
default:
|
|
2972
|
-
(
|
|
2982
|
+
default: g(() => [
|
|
2983
|
+
(r(!0), f(O, null, U(i.steps, (n) => (r(), v(u(Oe), C({
|
|
2973
2984
|
key: n.value,
|
|
2974
2985
|
value: n.value,
|
|
2975
2986
|
disabled: n.disabled,
|
|
2976
2987
|
ref_for: !0
|
|
2977
2988
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
2978
|
-
default:
|
|
2979
|
-
i.showStepLabel ? (
|
|
2989
|
+
default: g(() => [
|
|
2990
|
+
i.showStepLabel ? (r(), f("div", ra, w(n.label), 1)) : z("", !0)
|
|
2980
2991
|
]),
|
|
2981
2992
|
_: 2
|
|
2982
2993
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -2984,12 +2995,12 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
|
|
|
2984
2995
|
_: 1
|
|
2985
2996
|
}),
|
|
2986
2997
|
x(u(qe), null, {
|
|
2987
|
-
default:
|
|
2988
|
-
(
|
|
2998
|
+
default: g(() => [
|
|
2999
|
+
(r(!0), f(O, null, U(i.steps, (n) => (r(), v(u(Ae), {
|
|
2989
3000
|
key: n.value,
|
|
2990
3001
|
value: n.value
|
|
2991
3002
|
}, {
|
|
2992
|
-
default:
|
|
3003
|
+
default: g(() => [
|
|
2993
3004
|
k(i.$slots, "step" + n.value)
|
|
2994
3005
|
]),
|
|
2995
3006
|
_: 2
|
|
@@ -3001,7 +3012,7 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
|
|
|
3001
3012
|
_: 3
|
|
3002
3013
|
}, 8, ["value"]));
|
|
3003
3014
|
}
|
|
3004
|
-
}), da = { class: "p-4 text-wrap w-100" }, pa = { class: "p-4 text-wrap w-100" }, Xi = /* @__PURE__ */
|
|
3015
|
+
}), da = { class: "p-4 text-wrap w-100" }, pa = { class: "p-4 text-wrap w-100" }, Xi = /* @__PURE__ */ $({
|
|
3005
3016
|
__name: "ForgeTile",
|
|
3006
3017
|
props: {
|
|
3007
3018
|
severity: { default: "primary" },
|
|
@@ -3010,17 +3021,17 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
|
|
|
3010
3021
|
selected: { type: Boolean, default: !1 }
|
|
3011
3022
|
},
|
|
3012
3023
|
setup(e) {
|
|
3013
|
-
const t = e, a =
|
|
3024
|
+
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" : ""}`);
|
|
3014
3025
|
return (l, n) => {
|
|
3015
|
-
const o =
|
|
3016
|
-
return t.clickable ? (
|
|
3026
|
+
const o = A;
|
|
3027
|
+
return t.clickable ? (r(), v(o, {
|
|
3017
3028
|
key: 0,
|
|
3018
3029
|
class: B(["d-flex w-100 p-0 text-body", a.value]),
|
|
3019
3030
|
severity: t.severity,
|
|
3020
3031
|
unstyled: "",
|
|
3021
3032
|
"data-cy": "button-tile"
|
|
3022
3033
|
}, {
|
|
3023
|
-
default:
|
|
3034
|
+
default: g(() => [
|
|
3024
3035
|
m("div", da, [
|
|
3025
3036
|
k(l.$slots, "default", {}, () => [
|
|
3026
3037
|
n[0] || (n[0] = _("Tile Content"))
|
|
@@ -3028,7 +3039,7 @@ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1
|
|
|
3028
3039
|
])
|
|
3029
3040
|
]),
|
|
3030
3041
|
_: 3
|
|
3031
|
-
}, 8, ["severity", "class"])) : (
|
|
3042
|
+
}, 8, ["severity", "class"])) : (r(), f("div", {
|
|
3032
3043
|
key: 1,
|
|
3033
3044
|
class: B(["d-flex w-100", i.value]),
|
|
3034
3045
|
"data-cy": "tile"
|
|
@@ -3051,7 +3062,7 @@ const ca = {
|
|
|
3051
3062
|
}, ua = { class: "ms-2" }, ma = { key: 0 }, va = {
|
|
3052
3063
|
class: "w-auto",
|
|
3053
3064
|
"data-cy": "total"
|
|
3054
|
-
}, fa = /* @__PURE__ */
|
|
3065
|
+
}, fa = /* @__PURE__ */ $({
|
|
3055
3066
|
__name: "ForgePaginationHeader",
|
|
3056
3067
|
props: {
|
|
3057
3068
|
total: {},
|
|
@@ -3062,30 +3073,30 @@ const ca = {
|
|
|
3062
3073
|
setup(e, { emit: t }) {
|
|
3063
3074
|
const a = t, i = e, l = (o) => {
|
|
3064
3075
|
a("update:perPage", o.value);
|
|
3065
|
-
}, n =
|
|
3076
|
+
}, n = T(() => {
|
|
3066
3077
|
const o = Math.ceil(i.total / i.perPage);
|
|
3067
3078
|
return `${o} ${Q(o, "page")}`;
|
|
3068
3079
|
});
|
|
3069
|
-
return (o,
|
|
3070
|
-
|
|
3080
|
+
return (o, s) => (r(), f("div", ca, [
|
|
3081
|
+
s[2] || (s[2] = _(" Number of results per page ")),
|
|
3071
3082
|
m("div", ua, [
|
|
3072
3083
|
x(u(te), {
|
|
3073
3084
|
options: i.pageSizes,
|
|
3074
3085
|
"model-value": i.perPage,
|
|
3075
3086
|
class: "page-size",
|
|
3076
|
-
onChange:
|
|
3087
|
+
onChange: s[0] || (s[0] = (p) => l(p))
|
|
3077
3088
|
}, null, 8, ["options", "model-value"])
|
|
3078
3089
|
]),
|
|
3079
|
-
i.total ? (
|
|
3080
|
-
|
|
3090
|
+
i.total ? (r(), f("div", ma, [
|
|
3091
|
+
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3081
3092
|
m("span", va, w(i.total) + " " + w(u(Q)(i.total, "result")) + " across " + w(n.value), 1)
|
|
3082
|
-
])) :
|
|
3093
|
+
])) : z("", !0)
|
|
3083
3094
|
]));
|
|
3084
3095
|
}
|
|
3085
3096
|
}), ga = { class: "position-relative" }, ba = { "data-cy": "above-table-slot" }, ya = { class: "d-flex w-100" }, xa = {
|
|
3086
3097
|
class: "mx-auto",
|
|
3087
3098
|
"data-cy": "empty-message"
|
|
3088
|
-
}, ha = { class: "d-flex" }, wa = { class: "d-flex align-items-end mb-2" }, ka = { key: 0 }, $a = { class: "ms-auto" }, Qi = /* @__PURE__ */
|
|
3099
|
+
}, ha = { class: "d-flex" }, wa = { class: "d-flex align-items-end mb-2" }, ka = { key: 0 }, $a = { class: "ms-auto" }, Qi = /* @__PURE__ */ $({
|
|
3089
3100
|
__name: "ForgeTable",
|
|
3090
3101
|
props: {
|
|
3091
3102
|
value: {},
|
|
@@ -3171,17 +3182,17 @@ const ca = {
|
|
|
3171
3182
|
},
|
|
3172
3183
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3173
3184
|
setup(e, { emit: t }) {
|
|
3174
|
-
const a = t, i = e, l = I(), n = I([5, 10, 20, 50, 100]), o = I(10),
|
|
3185
|
+
const a = t, i = e, l = I(), n = I([5, 10, 20, 50, 100]), o = I(10), s = I({
|
|
3175
3186
|
filters: i.filters,
|
|
3176
3187
|
perPage: o.value,
|
|
3177
3188
|
page: 0,
|
|
3178
3189
|
sortDirection: "None",
|
|
3179
3190
|
sortField: "",
|
|
3180
3191
|
total: i.totalRecords ?? i.value.length
|
|
3181
|
-
}), p =
|
|
3182
|
-
const
|
|
3183
|
-
return `${
|
|
3184
|
-
}),
|
|
3192
|
+
}), p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
|
|
3193
|
+
const y = Math.ceil(p.value / o.value);
|
|
3194
|
+
return `${y} ${Q(y, "page")}`;
|
|
3195
|
+
}), b = T(() => ({
|
|
3185
3196
|
thead: () => ({
|
|
3186
3197
|
class: [
|
|
3187
3198
|
{
|
|
@@ -3203,35 +3214,35 @@ const ca = {
|
|
|
3203
3214
|
}
|
|
3204
3215
|
]
|
|
3205
3216
|
})
|
|
3206
|
-
})),
|
|
3217
|
+
})), d = () => {
|
|
3207
3218
|
if (i.clearAll)
|
|
3208
3219
|
i.clearAll();
|
|
3209
3220
|
else
|
|
3210
|
-
for (const
|
|
3211
|
-
typeof i.filters[
|
|
3221
|
+
for (const y in i.filters)
|
|
3222
|
+
typeof i.filters[y] == "string" ? i.filters[y] = "" : i.filters[y].value = null;
|
|
3212
3223
|
V(i.filters);
|
|
3213
|
-
},
|
|
3224
|
+
}, F = () => {
|
|
3214
3225
|
l.value.exportCSV();
|
|
3215
|
-
},
|
|
3226
|
+
}, S = (y) => {
|
|
3216
3227
|
var h;
|
|
3217
|
-
|
|
3218
|
-
}, V = (
|
|
3219
|
-
|
|
3220
|
-
}, M = (
|
|
3221
|
-
|
|
3222
|
-
},
|
|
3223
|
-
|
|
3228
|
+
s.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((h = y.sortField) == null ? void 0 : h.toString()) ?? "", a("update:tableContext", s.value), a("sort", y);
|
|
3229
|
+
}, V = (y) => {
|
|
3230
|
+
s.value.filters = y, a("update:tableContext", s.value), a("update:filters", y);
|
|
3231
|
+
}, M = (y) => {
|
|
3232
|
+
s.value.page = y.page, a("update:tableContext", s.value), a("page", y);
|
|
3233
|
+
}, q = () => {
|
|
3234
|
+
s.value.perPage = o.value, a("update:tableContext", s.value);
|
|
3224
3235
|
};
|
|
3225
|
-
return ce(() => i.filters, (
|
|
3226
|
-
|
|
3227
|
-
}, { deep: !0 }), le(() => a("update:tableContext",
|
|
3236
|
+
return ce(() => i.filters, (y) => {
|
|
3237
|
+
s.value.filters = y, a("update:tableContext", s.value);
|
|
3238
|
+
}, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y, h) => (r(), f("div", ga, [
|
|
3228
3239
|
m("span", ba, [
|
|
3229
|
-
k(
|
|
3240
|
+
k(y.$slots, "above-table")
|
|
3230
3241
|
]),
|
|
3231
|
-
x(u(Ee),
|
|
3242
|
+
x(u(Ee), C({
|
|
3232
3243
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3233
|
-
}, { ...i, ...
|
|
3234
|
-
pt:
|
|
3244
|
+
}, { ...i, ...y.$attrs }, {
|
|
3245
|
+
pt: b.value,
|
|
3235
3246
|
rows: o.value,
|
|
3236
3247
|
"total-records": p.value,
|
|
3237
3248
|
"filter-display": i.filters ? "row" : void 0,
|
|
@@ -3239,43 +3250,43 @@ const ca = {
|
|
|
3239
3250
|
ref: l,
|
|
3240
3251
|
"data-cy": "table",
|
|
3241
3252
|
"onUpdate:filters": V,
|
|
3242
|
-
onSort:
|
|
3253
|
+
onSort: S,
|
|
3243
3254
|
onPage: M,
|
|
3244
3255
|
showHeaders: ""
|
|
3245
3256
|
}), ie({
|
|
3246
|
-
empty:
|
|
3257
|
+
empty: g(() => [
|
|
3247
3258
|
m("div", ya, [
|
|
3248
|
-
m("h5", xa, w(
|
|
3259
|
+
m("h5", xa, w(y.emptyMessage ?? "No items Found."), 1)
|
|
3249
3260
|
])
|
|
3250
3261
|
]),
|
|
3251
|
-
header:
|
|
3262
|
+
header: g(() => [
|
|
3252
3263
|
m("div", {
|
|
3253
3264
|
class: B(i.loading ? "opacity-50" : "")
|
|
3254
3265
|
}, [
|
|
3255
3266
|
m("div", ha, [
|
|
3256
3267
|
m("div", wa, [
|
|
3257
|
-
|
|
3268
|
+
y.paginator && !y.legacyPaginationFooter ? (r(), f("span", ka, [
|
|
3258
3269
|
x(fa, {
|
|
3259
3270
|
total: p.value,
|
|
3260
3271
|
"page-sizes": n.value,
|
|
3261
3272
|
"per-page": o.value,
|
|
3262
3273
|
"onUpdate:perPage": [
|
|
3263
3274
|
h[0] || (h[0] = (P) => o.value = P),
|
|
3264
|
-
|
|
3275
|
+
q
|
|
3265
3276
|
]
|
|
3266
3277
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3267
|
-
])) :
|
|
3278
|
+
])) : z("", !0)
|
|
3268
3279
|
]),
|
|
3269
3280
|
m("div", $a, [
|
|
3270
|
-
|
|
3281
|
+
y.showClearButton ? (r(), v(u(A), {
|
|
3271
3282
|
key: 0,
|
|
3272
3283
|
outlined: "",
|
|
3273
|
-
class: B(
|
|
3274
|
-
onClick:
|
|
3284
|
+
class: B(y.showExporterButton ? "me-2" : ""),
|
|
3285
|
+
onClick: d,
|
|
3275
3286
|
"data-cy": "clear-all"
|
|
3276
3287
|
}, {
|
|
3277
|
-
default:
|
|
3278
|
-
x(u(
|
|
3288
|
+
default: g(() => [
|
|
3289
|
+
x(u(j), {
|
|
3279
3290
|
icon: "bi:funnel-fill",
|
|
3280
3291
|
width: "24",
|
|
3281
3292
|
height: "24"
|
|
@@ -3283,15 +3294,15 @@ const ca = {
|
|
|
3283
3294
|
h[2] || (h[2] = _(" Clear "))
|
|
3284
3295
|
]),
|
|
3285
3296
|
_: 1
|
|
3286
|
-
}, 8, ["class"])) :
|
|
3287
|
-
|
|
3297
|
+
}, 8, ["class"])) : z("", !0),
|
|
3298
|
+
y.showExporterButton ? (r(), v(u(A), {
|
|
3288
3299
|
key: 1,
|
|
3289
3300
|
outlined: "",
|
|
3290
|
-
onClick:
|
|
3301
|
+
onClick: F,
|
|
3291
3302
|
"data-cy": "exporter"
|
|
3292
3303
|
}, {
|
|
3293
|
-
default:
|
|
3294
|
-
x(u(
|
|
3304
|
+
default: g(() => [
|
|
3305
|
+
x(u(j), {
|
|
3295
3306
|
icon: "typcn:export",
|
|
3296
3307
|
width: "24",
|
|
3297
3308
|
height: "24"
|
|
@@ -3299,26 +3310,26 @@ const ca = {
|
|
|
3299
3310
|
h[3] || (h[3] = _(" Export "))
|
|
3300
3311
|
]),
|
|
3301
3312
|
_: 1
|
|
3302
|
-
})) :
|
|
3303
|
-
k(
|
|
3313
|
+
})) : z("", !0),
|
|
3314
|
+
k(y.$slots, "column-customiser")
|
|
3304
3315
|
])
|
|
3305
3316
|
])
|
|
3306
3317
|
], 2)
|
|
3307
3318
|
]),
|
|
3308
|
-
default:
|
|
3309
|
-
k(
|
|
3319
|
+
default: g(() => [
|
|
3320
|
+
k(y.$slots, "default")
|
|
3310
3321
|
]),
|
|
3311
3322
|
_: 2
|
|
3312
3323
|
}, [
|
|
3313
|
-
|
|
3324
|
+
U(y.$slots, (P, L) => ({
|
|
3314
3325
|
name: L,
|
|
3315
|
-
fn:
|
|
3316
|
-
k(
|
|
3326
|
+
fn: g((ae) => [
|
|
3327
|
+
k(y.$slots, L, K(Z(ae || {})))
|
|
3317
3328
|
])
|
|
3318
3329
|
})),
|
|
3319
|
-
|
|
3330
|
+
y.legacyPaginationFooter ? {
|
|
3320
3331
|
name: "paginatorstart",
|
|
3321
|
-
fn:
|
|
3332
|
+
fn: g(() => [
|
|
3322
3333
|
m("span", {
|
|
3323
3334
|
class: B(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3324
3335
|
"data-cy": "legacy-page-size"
|
|
@@ -3329,15 +3340,15 @@ const ca = {
|
|
|
3329
3340
|
modelValue: o.value,
|
|
3330
3341
|
"onUpdate:modelValue": h[1] || (h[1] = (P) => o.value = P),
|
|
3331
3342
|
class: "ms-2",
|
|
3332
|
-
onClick:
|
|
3343
|
+
onClick: q
|
|
3333
3344
|
}, null, 8, ["options", "modelValue"])
|
|
3334
3345
|
], 2)
|
|
3335
3346
|
]),
|
|
3336
3347
|
key: "0"
|
|
3337
3348
|
} : void 0,
|
|
3338
|
-
|
|
3349
|
+
y.legacyPaginationFooter ? {
|
|
3339
3350
|
name: "paginatorend",
|
|
3340
|
-
fn:
|
|
3351
|
+
fn: g(() => [
|
|
3341
3352
|
m("span", {
|
|
3342
3353
|
"data-cy": "legacy-total",
|
|
3343
3354
|
class: B(i.loading ? "opacity-50" : "")
|
|
@@ -3348,7 +3359,7 @@ const ca = {
|
|
|
3348
3359
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3349
3360
|
]));
|
|
3350
3361
|
}
|
|
3351
|
-
}), Fa = { class: "d-flex position-relative" }, Ba = { class: "d-flex w-100" }, el = /* @__PURE__ */
|
|
3362
|
+
}), Fa = { class: "d-flex position-relative" }, Ba = { class: "d-flex w-100" }, el = /* @__PURE__ */ $({
|
|
3352
3363
|
__name: "ForgeFilterHeader",
|
|
3353
3364
|
props: /* @__PURE__ */ N({
|
|
3354
3365
|
dataType: {},
|
|
@@ -3366,10 +3377,10 @@ const ca = {
|
|
|
3366
3377
|
const t = D(e, "modelValue"), a = (l, n) => {
|
|
3367
3378
|
if (!l || Array.isArray(l) && l.length === 0)
|
|
3368
3379
|
return n;
|
|
3369
|
-
const o = (
|
|
3380
|
+
const o = (s) => {
|
|
3370
3381
|
var c;
|
|
3371
3382
|
const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
|
|
3372
|
-
(
|
|
3383
|
+
(b) => e.optionValue ? b[e.optionValue] === s : Object.keys(b).every((d) => s.hasOwnProperty(d) && b[d] === s[d])
|
|
3373
3384
|
);
|
|
3374
3385
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3375
3386
|
};
|
|
@@ -3378,21 +3389,21 @@ const ca = {
|
|
|
3378
3389
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3379
3390
|
};
|
|
3380
3391
|
return (l, n) => {
|
|
3381
|
-
const o = ue,
|
|
3382
|
-
return
|
|
3383
|
-
l.dataType === "numeric" ? (
|
|
3392
|
+
const o = ue, s = A;
|
|
3393
|
+
return r(), f("div", Fa, [
|
|
3394
|
+
l.dataType === "numeric" ? (r(), v(o, C({
|
|
3384
3395
|
key: 0,
|
|
3385
3396
|
modelValue: t.value,
|
|
3386
3397
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
|
|
3387
3398
|
modelModifiers: { trim: !0 }
|
|
3388
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (
|
|
3399
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), v(be, C({
|
|
3389
3400
|
key: 1,
|
|
3390
3401
|
modelValue: t.value,
|
|
3391
3402
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3392
3403
|
}, l.$attrs, {
|
|
3393
3404
|
"show-icon": !1,
|
|
3394
3405
|
"show-on-focus": !0
|
|
3395
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (
|
|
3406
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), v(u(te), C({
|
|
3396
3407
|
key: 2,
|
|
3397
3408
|
modelValue: t.value,
|
|
3398
3409
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
@@ -3401,19 +3412,19 @@ const ca = {
|
|
|
3401
3412
|
"option-value": l.optionValue,
|
|
3402
3413
|
"option-label": l.optionLabel
|
|
3403
3414
|
}), {
|
|
3404
|
-
value:
|
|
3415
|
+
value: g(({ value: p, placeholder: c }) => [
|
|
3405
3416
|
m("div", Ba, [
|
|
3406
3417
|
m("span", {
|
|
3407
3418
|
class: B({ "filter-placeholder": p === null })
|
|
3408
3419
|
}, w(a(p, c)), 3),
|
|
3409
|
-
l.showClearButton && t.value !== null ? (
|
|
3420
|
+
l.showClearButton && t.value !== null ? (r(), v(s, {
|
|
3410
3421
|
key: 0,
|
|
3411
3422
|
onClick: G(i, ["prevent"]),
|
|
3412
3423
|
size: "small",
|
|
3413
3424
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3414
3425
|
}, {
|
|
3415
|
-
default:
|
|
3416
|
-
x(u(
|
|
3426
|
+
default: g(() => [
|
|
3427
|
+
x(u(j), {
|
|
3417
3428
|
icon: "bi:x",
|
|
3418
3429
|
width: "1rem",
|
|
3419
3430
|
height: "1rem",
|
|
@@ -3421,11 +3432,11 @@ const ca = {
|
|
|
3421
3432
|
})
|
|
3422
3433
|
]),
|
|
3423
3434
|
_: 1
|
|
3424
|
-
})) :
|
|
3435
|
+
})) : z("", !0)
|
|
3425
3436
|
])
|
|
3426
3437
|
]),
|
|
3427
3438
|
_: 1
|
|
3428
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (
|
|
3439
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), v(u(ne), C({
|
|
3429
3440
|
key: 3,
|
|
3430
3441
|
modelValue: t.value,
|
|
3431
3442
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
@@ -3435,20 +3446,20 @@ const ca = {
|
|
|
3435
3446
|
"option-label": l.optionLabel,
|
|
3436
3447
|
"option-value": l.optionValue,
|
|
3437
3448
|
filter: ""
|
|
3438
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (
|
|
3449
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), v(u(oe), C({
|
|
3439
3450
|
key: 4,
|
|
3440
3451
|
modelValue: t.value,
|
|
3441
3452
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
|
|
3442
3453
|
modelModifiers: { trim: !0 }
|
|
3443
3454
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3444
|
-
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (
|
|
3455
|
+
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(), v(s, {
|
|
3445
3456
|
key: 5,
|
|
3446
3457
|
onClick: G(i, ["prevent"]),
|
|
3447
3458
|
size: "small",
|
|
3448
3459
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3449
3460
|
}, {
|
|
3450
|
-
default:
|
|
3451
|
-
x(u(
|
|
3461
|
+
default: g(() => [
|
|
3462
|
+
x(u(j), {
|
|
3452
3463
|
icon: "bi:x",
|
|
3453
3464
|
width: "1rem",
|
|
3454
3465
|
height: "1rem",
|
|
@@ -3456,7 +3467,7 @@ const ca = {
|
|
|
3456
3467
|
})
|
|
3457
3468
|
]),
|
|
3458
3469
|
_: 1
|
|
3459
|
-
})) :
|
|
3470
|
+
})) : z("", !0)
|
|
3460
3471
|
]);
|
|
3461
3472
|
};
|
|
3462
3473
|
}
|
|
@@ -4526,17 +4537,17 @@ class ye {
|
|
|
4526
4537
|
}
|
|
4527
4538
|
define(t, a = !1) {
|
|
4528
4539
|
for (let [i, l] of Object.entries(t)) {
|
|
4529
|
-
i = i.toLowerCase(), l = l.map((
|
|
4540
|
+
i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), E(this, R, "f").has(i) || E(this, R, "f").set(i, /* @__PURE__ */ new Set());
|
|
4530
4541
|
const n = E(this, R, "f").get(i);
|
|
4531
4542
|
let o = !0;
|
|
4532
|
-
for (let
|
|
4533
|
-
const p =
|
|
4534
|
-
if (
|
|
4543
|
+
for (let s of l) {
|
|
4544
|
+
const p = s.startsWith("*");
|
|
4545
|
+
if (s = p ? s.slice(1) : s, n == null || n.add(s), o && E(this, J, "f").set(i, s), o = !1, p)
|
|
4535
4546
|
continue;
|
|
4536
|
-
const c = E(this, W, "f").get(
|
|
4547
|
+
const c = E(this, W, "f").get(s);
|
|
4537
4548
|
if (c && c != i && !a)
|
|
4538
|
-
throw new Error(`"${i} -> ${
|
|
4539
|
-
E(this, W, "f").set(
|
|
4549
|
+
throw new Error(`"${i} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);
|
|
4550
|
+
E(this, W, "f").set(s, i);
|
|
4540
4551
|
}
|
|
4541
4552
|
}
|
|
4542
4553
|
return this;
|
|
@@ -4575,10 +4586,10 @@ function xe(e, t, a, i) {
|
|
|
4575
4586
|
const l = t.flatMap((n) => n.file);
|
|
4576
4587
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
4577
4588
|
const o = l.findIndex((p) => p.name === n.name);
|
|
4578
|
-
let
|
|
4579
|
-
o === -1 ? ((!a.includes(n.type) || !(n.size <= i)) && (
|
|
4589
|
+
let s = "Not Uploaded";
|
|
4590
|
+
o === -1 ? ((!a.includes(n.type) || !(n.size <= i)) && (s = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
4580
4591
|
file: n,
|
|
4581
|
-
status:
|
|
4592
|
+
status: s,
|
|
4582
4593
|
blobFileName: null
|
|
4583
4594
|
})) : t[o].status = "Duplicate";
|
|
4584
4595
|
}), t;
|
|
@@ -4619,7 +4630,7 @@ function ja() {
|
|
|
4619
4630
|
const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disabled", "multiple"], Pa = {
|
|
4620
4631
|
class: "text-break accepted-file-types-container",
|
|
4621
4632
|
id: "accepted-file-types-overlay"
|
|
4622
|
-
}, Va = /* @__PURE__ */
|
|
4633
|
+
}, Va = /* @__PURE__ */ $({
|
|
4623
4634
|
__name: "UploadButton",
|
|
4624
4635
|
props: /* @__PURE__ */ N({
|
|
4625
4636
|
acceptedFileTypes: {},
|
|
@@ -4631,12 +4642,12 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4631
4642
|
}),
|
|
4632
4643
|
emits: ["update:modelValue"],
|
|
4633
4644
|
setup(e) {
|
|
4634
|
-
const t = D(e, "modelValue"), a = I(), i = (o) => a.value.toggle(o), l =
|
|
4635
|
-
t.value = xe(o, t.value, e.acceptedFileTypes.map((
|
|
4645
|
+
const t = D(e, "modelValue"), a = I(), i = (o) => a.value.toggle(o), l = T(() => e.maxFileInput <= t.value.length), n = (o) => {
|
|
4646
|
+
t.value = xe(o, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
4636
4647
|
};
|
|
4637
|
-
return (o,
|
|
4638
|
-
const p =
|
|
4639
|
-
return
|
|
4648
|
+
return (o, s) => {
|
|
4649
|
+
const p = A;
|
|
4650
|
+
return r(), f("div", Ia, [
|
|
4640
4651
|
k(o.$slots, "message"),
|
|
4641
4652
|
m("div", null, [
|
|
4642
4653
|
m("input", {
|
|
@@ -4646,7 +4657,7 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4646
4657
|
accept: o.acceptedFileTypes.join(", "),
|
|
4647
4658
|
disabled: l.value,
|
|
4648
4659
|
multiple: o.maxFileInput > 1,
|
|
4649
|
-
onInput:
|
|
4660
|
+
onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
|
|
4650
4661
|
}, null, 40, _a),
|
|
4651
4662
|
m("label", {
|
|
4652
4663
|
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
@@ -4654,33 +4665,33 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4654
4665
|
for: "file-input"
|
|
4655
4666
|
}, [
|
|
4656
4667
|
k(o.$slots, "button-content", {}, () => [
|
|
4657
|
-
x(u(
|
|
4668
|
+
x(u(j), {
|
|
4658
4669
|
icon: "bi:upload",
|
|
4659
4670
|
class: "me-2",
|
|
4660
4671
|
height: "20px",
|
|
4661
4672
|
width: "20px"
|
|
4662
4673
|
}),
|
|
4663
|
-
|
|
4674
|
+
s[1] || (s[1] = _(" Browse your computer "))
|
|
4664
4675
|
])
|
|
4665
4676
|
], 2)
|
|
4666
4677
|
]),
|
|
4667
|
-
o.showDragDropArea ? (
|
|
4678
|
+
o.showDragDropArea ? (r(), v(p, {
|
|
4668
4679
|
link: "",
|
|
4669
4680
|
class: "ms-auto",
|
|
4670
4681
|
key: o.acceptedFileTypes.length,
|
|
4671
4682
|
id: "accepted-file-types",
|
|
4672
4683
|
onClick: i
|
|
4673
4684
|
}, {
|
|
4674
|
-
default:
|
|
4685
|
+
default: g(() => s[2] || (s[2] = [
|
|
4675
4686
|
_("Accepted File Types")
|
|
4676
4687
|
])),
|
|
4677
4688
|
_: 1
|
|
4678
|
-
})) :
|
|
4689
|
+
})) : z("", !0),
|
|
4679
4690
|
x(u(ve), {
|
|
4680
4691
|
ref_key: "acceptedFilesOverlay",
|
|
4681
4692
|
ref: a
|
|
4682
4693
|
}, {
|
|
4683
|
-
default:
|
|
4694
|
+
default: g(() => [
|
|
4684
4695
|
m("div", Pa, w(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
4685
4696
|
]),
|
|
4686
4697
|
_: 1
|
|
@@ -4695,7 +4706,7 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4695
4706
|
}, Da = {
|
|
4696
4707
|
key: 1,
|
|
4697
4708
|
class: "d-flex flex-column"
|
|
4698
|
-
}, Oa = /* @__PURE__ */
|
|
4709
|
+
}, Oa = /* @__PURE__ */ $({
|
|
4699
4710
|
__name: "DragDropArea",
|
|
4700
4711
|
props: /* @__PURE__ */ N({
|
|
4701
4712
|
maxFileInput: {},
|
|
@@ -4707,30 +4718,30 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4707
4718
|
}),
|
|
4708
4719
|
emits: ["update:modelValue"],
|
|
4709
4720
|
setup(e) {
|
|
4710
|
-
const t = D(e, "modelValue"), a = I(!1), i =
|
|
4721
|
+
const t = D(e, "modelValue"), a = I(!1), i = T(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
4711
4722
|
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);
|
|
4712
4723
|
};
|
|
4713
|
-
return (n, o) => (
|
|
4724
|
+
return (n, o) => (r(), f("div", {
|
|
4714
4725
|
id: "drag-drop-area",
|
|
4715
4726
|
class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
4716
|
-
onDragleave: o[0] || (o[0] = G((
|
|
4717
|
-
onDragover: o[1] || (o[1] = G((
|
|
4727
|
+
onDragleave: o[0] || (o[0] = G((s) => a.value = !1, ["prevent"])),
|
|
4728
|
+
onDragover: o[1] || (o[1] = G((s) => a.value = !0, ["prevent"])),
|
|
4718
4729
|
onDrop: G(l, ["prevent"])
|
|
4719
4730
|
}, [
|
|
4720
|
-
t.value.length === 0 ? (
|
|
4721
|
-
x(u(
|
|
4731
|
+
t.value.length === 0 ? (r(), f("div", Ma, [
|
|
4732
|
+
x(u(j), {
|
|
4722
4733
|
icon: "bi:upload",
|
|
4723
4734
|
class: "me-2",
|
|
4724
4735
|
height: "20px",
|
|
4725
4736
|
width: "20px"
|
|
4726
4737
|
}),
|
|
4727
4738
|
o[2] || (o[2] = _(" Drag and drop files here "))
|
|
4728
|
-
])) : (
|
|
4739
|
+
])) : (r(), f("div", Da, [
|
|
4729
4740
|
k(n.$slots, "default")
|
|
4730
4741
|
]))
|
|
4731
4742
|
], 34));
|
|
4732
4743
|
}
|
|
4733
|
-
}), Na = { class: "d-flex align-items-center me-2" }, Ua = /* @__PURE__ */
|
|
4744
|
+
}), Na = { class: "d-flex align-items-center me-2" }, Ua = /* @__PURE__ */ $({
|
|
4734
4745
|
__name: "UploadStatus",
|
|
4735
4746
|
props: {
|
|
4736
4747
|
fileSize: {},
|
|
@@ -4739,7 +4750,7 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4739
4750
|
uploadStatus: {}
|
|
4740
4751
|
},
|
|
4741
4752
|
setup(e) {
|
|
4742
|
-
const t =
|
|
4753
|
+
const t = T(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), a = T(() => {
|
|
4743
4754
|
switch (e.uploadStatus) {
|
|
4744
4755
|
case "InvalidFileType":
|
|
4745
4756
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -4755,29 +4766,29 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4755
4766
|
return "Upload Failed: Connection error, please try again.";
|
|
4756
4767
|
}
|
|
4757
4768
|
});
|
|
4758
|
-
return (i, l) => (
|
|
4759
|
-
i.uploadStatus === "Uploading" ? (
|
|
4769
|
+
return (i, l) => (r(), f("div", Na, [
|
|
4770
|
+
i.uploadStatus === "Uploading" ? (r(), v(ia, {
|
|
4760
4771
|
key: 0,
|
|
4761
4772
|
pixelWidth: 200,
|
|
4762
4773
|
animate: "",
|
|
4763
4774
|
striped: ""
|
|
4764
4775
|
}, {
|
|
4765
|
-
default:
|
|
4776
|
+
default: g(() => [
|
|
4766
4777
|
_(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
|
|
4767
4778
|
]),
|
|
4768
4779
|
_: 1
|
|
4769
|
-
})) :
|
|
4770
|
-
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (
|
|
4780
|
+
})) : z("", !0),
|
|
4781
|
+
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (r(), v(se, {
|
|
4771
4782
|
key: 1,
|
|
4772
4783
|
id: "upload-status-alert",
|
|
4773
4784
|
severity: t.value,
|
|
4774
4785
|
class: "mb-0 w-75 ms-auto"
|
|
4775
4786
|
}, {
|
|
4776
|
-
default:
|
|
4787
|
+
default: g(() => [
|
|
4777
4788
|
_(w(a.value), 1)
|
|
4778
4789
|
]),
|
|
4779
4790
|
_: 1
|
|
4780
|
-
}, 8, ["severity"])) :
|
|
4791
|
+
}, 8, ["severity"])) : z("", !0)
|
|
4781
4792
|
]));
|
|
4782
4793
|
}
|
|
4783
4794
|
}), Aa = ["data-cy"], qa = { class: "ms-3 d-flex flex-column" }, Ea = {
|
|
@@ -4789,7 +4800,7 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4789
4800
|
}, Ra = {
|
|
4790
4801
|
class: "text-black-50",
|
|
4791
4802
|
id: "file-size"
|
|
4792
|
-
}, Ha = { class: "ms-auto my-auto d-flex" }, Wa = /* @__PURE__ */
|
|
4803
|
+
}, Ha = { class: "ms-auto my-auto d-flex" }, Wa = /* @__PURE__ */ $({
|
|
4793
4804
|
__name: "FileInfo",
|
|
4794
4805
|
props: /* @__PURE__ */ N({
|
|
4795
4806
|
editableFileName: { type: Boolean },
|
|
@@ -4808,34 +4819,34 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4808
4819
|
}),
|
|
4809
4820
|
emits: /* @__PURE__ */ N(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
4810
4821
|
setup(e, { emit: t }) {
|
|
4811
|
-
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = I(a.value.name),
|
|
4822
|
+
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = I(a.value.name), s = I(""), p = I(0), c = I(), b = T(() => e.acceptedFileTypes.some(({ fileType: y }) => y === a.value.type)), d = T(() => a.value.size <= e.maxFileSize), F = T(() => a.value.type ? a.value.type : ja().getType(a.value.name)), S = () => {
|
|
4812
4823
|
o.value != null && (V(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
4813
4824
|
}, V = () => {
|
|
4814
|
-
let
|
|
4815
|
-
|
|
4825
|
+
let y = o.value.split("."), h = Sa.getExtension(F.value), P = o.value.split(".").pop();
|
|
4826
|
+
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));
|
|
4816
4827
|
}, M = async () => {
|
|
4817
|
-
if (!
|
|
4818
|
-
l.value =
|
|
4828
|
+
if (!b.value || !d.value) {
|
|
4829
|
+
l.value = b.value ? "InvalidFileSize" : "InvalidFileType";
|
|
4819
4830
|
return;
|
|
4820
4831
|
}
|
|
4821
4832
|
l.value = "Preparing", c.value = new AbortController();
|
|
4822
|
-
const [
|
|
4823
|
-
if (!
|
|
4833
|
+
const [y, h] = await e.getFileUrlAction(a.value.name);
|
|
4834
|
+
if (!y) {
|
|
4824
4835
|
l.value = "Failed";
|
|
4825
4836
|
return;
|
|
4826
4837
|
}
|
|
4827
4838
|
try {
|
|
4828
4839
|
l.value = "Uploading";
|
|
4829
|
-
const P = new me(
|
|
4840
|
+
const P = new me(y), L = {
|
|
4830
4841
|
abortSignal: c.value.signal,
|
|
4831
4842
|
onProgress: (ae) => p.value = ae.loadedBytes,
|
|
4832
4843
|
blobHTTPHeaders: {
|
|
4833
|
-
blobContentType:
|
|
4844
|
+
blobContentType: F.value,
|
|
4834
4845
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
4835
4846
|
},
|
|
4836
4847
|
tags: { temp: "true" }
|
|
4837
4848
|
};
|
|
4838
|
-
await P.uploadData(a.value, L),
|
|
4849
|
+
await P.uploadData(a.value, L), s.value = y, l.value = "Uploaded", i.value = h;
|
|
4839
4850
|
} catch (P) {
|
|
4840
4851
|
if (P.name === "AbortError") {
|
|
4841
4852
|
l.value = "Aborted";
|
|
@@ -4843,19 +4854,19 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4843
4854
|
}
|
|
4844
4855
|
l.value = "Failed";
|
|
4845
4856
|
}
|
|
4846
|
-
},
|
|
4847
|
-
await Ca(l.value,
|
|
4857
|
+
}, q = async () => {
|
|
4858
|
+
await Ca(l.value, s.value), n("deleted", a.value);
|
|
4848
4859
|
};
|
|
4849
4860
|
return le(() => {
|
|
4850
4861
|
e.autoUploadToBlob && M();
|
|
4851
|
-
}), (
|
|
4852
|
-
const P =
|
|
4853
|
-
return
|
|
4862
|
+
}), (y, h) => {
|
|
4863
|
+
const P = A;
|
|
4864
|
+
return r(), f("div", {
|
|
4854
4865
|
class: "py-4 px-3 d-flex",
|
|
4855
4866
|
"data-cy": `file-info-${a.value.name}`
|
|
4856
4867
|
}, [
|
|
4857
4868
|
m("div", null, [
|
|
4858
|
-
u(za)(a.value.type) ? (
|
|
4869
|
+
u(za)(a.value.type) ? (r(), v(u(Le), {
|
|
4859
4870
|
key: 0,
|
|
4860
4871
|
id: "thumbnail-image",
|
|
4861
4872
|
"image-class": "image-file-thumbnail border",
|
|
@@ -4863,7 +4874,7 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4863
4874
|
alt: a.value.name,
|
|
4864
4875
|
width: "75px",
|
|
4865
4876
|
preview: ""
|
|
4866
|
-
}, null, 8, ["src", "alt"])) : (
|
|
4877
|
+
}, null, 8, ["src", "alt"])) : (r(), v(u(j), {
|
|
4867
4878
|
key: 1,
|
|
4868
4879
|
id: "file-earmark",
|
|
4869
4880
|
icon: "bi:file-earmark",
|
|
@@ -4873,56 +4884,56 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4873
4884
|
]),
|
|
4874
4885
|
m("div", qa, [
|
|
4875
4886
|
m("div", null, [
|
|
4876
|
-
|
|
4887
|
+
y.editableFileName ? (r(), v(At, {
|
|
4877
4888
|
key: 0,
|
|
4878
4889
|
id: "edit-file-name",
|
|
4879
4890
|
modelValue: o.value,
|
|
4880
4891
|
"onUpdate:modelValue": h[0] || (h[0] = (L) => o.value = L),
|
|
4881
|
-
rules:
|
|
4892
|
+
rules: y.customFileNameRules,
|
|
4882
4893
|
name: a.value.name,
|
|
4883
|
-
"complete-action":
|
|
4884
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (
|
|
4894
|
+
"complete-action": S
|
|
4895
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (r(), f("span", Ea, w(o.value), 1))
|
|
4885
4896
|
]),
|
|
4886
4897
|
m("span", La, "File type: " + w(a.value.type.split("/").pop()), 1),
|
|
4887
4898
|
m("span", Ra, "File size: " + w(u(pe)(a.value.size)), 1)
|
|
4888
4899
|
]),
|
|
4889
4900
|
m("div", Ha, [
|
|
4890
|
-
(
|
|
4901
|
+
(r(), v(Ua, {
|
|
4891
4902
|
key: l.value,
|
|
4892
4903
|
"file-size": a.value.size,
|
|
4893
4904
|
"upload-status": l.value,
|
|
4894
4905
|
"bytes-uploaded": p.value,
|
|
4895
|
-
"max-file-size":
|
|
4906
|
+
"max-file-size": y.maxFileSize
|
|
4896
4907
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
4897
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (
|
|
4908
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (r(), v(P, {
|
|
4898
4909
|
key: 0,
|
|
4899
4910
|
link: "",
|
|
4900
4911
|
onClick: M
|
|
4901
4912
|
}, {
|
|
4902
|
-
default:
|
|
4903
|
-
x(u(
|
|
4913
|
+
default: g(() => [
|
|
4914
|
+
x(u(j), {
|
|
4904
4915
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
4905
4916
|
}, null, 8, ["icon"])
|
|
4906
4917
|
]),
|
|
4907
4918
|
_: 1
|
|
4908
|
-
})) :
|
|
4909
|
-
l.value === "Uploading" ? (
|
|
4919
|
+
})) : z("", !0),
|
|
4920
|
+
l.value === "Uploading" ? (r(), v(P, {
|
|
4910
4921
|
key: 1,
|
|
4911
4922
|
link: "",
|
|
4912
4923
|
onClick: h[1] || (h[1] = (L) => c.value.value.abort())
|
|
4913
4924
|
}, {
|
|
4914
|
-
default:
|
|
4915
|
-
x(u(
|
|
4925
|
+
default: g(() => [
|
|
4926
|
+
x(u(j), { icon: "bi:x-circle-fill" })
|
|
4916
4927
|
]),
|
|
4917
4928
|
_: 1
|
|
4918
|
-
})) : (
|
|
4929
|
+
})) : (r(), v(P, {
|
|
4919
4930
|
key: 2,
|
|
4920
4931
|
link: "",
|
|
4921
|
-
onClick:
|
|
4932
|
+
onClick: q,
|
|
4922
4933
|
id: "delete-button"
|
|
4923
4934
|
}, {
|
|
4924
|
-
default:
|
|
4925
|
-
x(u(
|
|
4935
|
+
default: g(() => [
|
|
4936
|
+
x(u(j), { icon: "bi:trash" })
|
|
4926
4937
|
]),
|
|
4927
4938
|
_: 1
|
|
4928
4939
|
}))
|
|
@@ -4930,17 +4941,17 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4930
4941
|
], 8, Aa);
|
|
4931
4942
|
};
|
|
4932
4943
|
}
|
|
4933
|
-
}), Ya = { class: "d-flex justify-content-end mt-1" }, Ga = { id: "max-file-size" }, Ja = /* @__PURE__ */
|
|
4944
|
+
}), Ya = { class: "d-flex justify-content-end mt-1" }, Ga = { id: "max-file-size" }, Ja = /* @__PURE__ */ $({
|
|
4934
4945
|
__name: "MaxFileSize",
|
|
4935
4946
|
props: {
|
|
4936
4947
|
maxFileSize: {}
|
|
4937
4948
|
},
|
|
4938
4949
|
setup(e) {
|
|
4939
|
-
return (t, a) => (
|
|
4950
|
+
return (t, a) => (r(), f("div", Ya, [
|
|
4940
4951
|
m("div", Ga, "Max file size: " + w(u(pe)(t.maxFileSize)), 1)
|
|
4941
4952
|
]));
|
|
4942
4953
|
}
|
|
4943
|
-
}), Ka = { "data-cy": "file-uploader" }, Za = { key: 0 }, tl = /* @__PURE__ */
|
|
4954
|
+
}), Ka = { "data-cy": "file-uploader" }, Za = { key: 0 }, tl = /* @__PURE__ */ $({
|
|
4944
4955
|
__name: "ForgeFileUploader",
|
|
4945
4956
|
props: /* @__PURE__ */ N({
|
|
4946
4957
|
acceptedFileTypes: {},
|
|
@@ -4960,12 +4971,12 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4960
4971
|
const t = D(e, "modelValue"), a = e, i = (l) => {
|
|
4961
4972
|
t.value = t.value.filter((n) => n.file != l);
|
|
4962
4973
|
};
|
|
4963
|
-
return (l, n) => (
|
|
4964
|
-
x(Va,
|
|
4974
|
+
return (l, n) => (r(), f("div", Ka, [
|
|
4975
|
+
x(Va, C(a, {
|
|
4965
4976
|
modelValue: t.value,
|
|
4966
4977
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
|
|
4967
4978
|
}), null, 16, ["modelValue"]),
|
|
4968
|
-
l.showDragDropArea ? (
|
|
4979
|
+
l.showDragDropArea ? (r(), f("div", Za, [
|
|
4969
4980
|
x(Oa, {
|
|
4970
4981
|
"max-file-input": a.maxFileInput,
|
|
4971
4982
|
"max-file-size": a.maxFileSize,
|
|
@@ -4973,17 +4984,17 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4973
4984
|
modelValue: t.value,
|
|
4974
4985
|
"onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
|
|
4975
4986
|
}, {
|
|
4976
|
-
default:
|
|
4977
|
-
(
|
|
4978
|
-
(
|
|
4987
|
+
default: g(() => [
|
|
4988
|
+
(r(!0), f(O, null, U(t.value, ({ file: o }, s) => (r(), f("span", null, [
|
|
4989
|
+
(r(), v(Wa, C({
|
|
4979
4990
|
key: o.name,
|
|
4980
|
-
class:
|
|
4981
|
-
file: t.value[
|
|
4982
|
-
"onUpdate:file": (p) => t.value[
|
|
4983
|
-
"blob-file-name": t.value[
|
|
4984
|
-
"onUpdate:blobFileName": (p) => t.value[
|
|
4985
|
-
"upload-status": t.value[
|
|
4986
|
-
"onUpdate:uploadStatus": (p) => t.value[
|
|
4991
|
+
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
4992
|
+
file: t.value[s].file,
|
|
4993
|
+
"onUpdate:file": (p) => t.value[s].file = p,
|
|
4994
|
+
"blob-file-name": t.value[s].blobFileName,
|
|
4995
|
+
"onUpdate:blobFileName": (p) => t.value[s].blobFileName = p,
|
|
4996
|
+
"upload-status": t.value[s].status,
|
|
4997
|
+
"onUpdate:uploadStatus": (p) => t.value[s].status = p,
|
|
4987
4998
|
ref_for: !0
|
|
4988
4999
|
}, a, { onDeleted: i }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
4989
5000
|
]))), 256))
|
|
@@ -4993,10 +5004,10 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
4993
5004
|
x(Ja, {
|
|
4994
5005
|
"max-file-size": a.maxFileSize
|
|
4995
5006
|
}, null, 8, ["max-file-size"])
|
|
4996
|
-
])) :
|
|
5007
|
+
])) : z("", !0)
|
|
4997
5008
|
]));
|
|
4998
5009
|
}
|
|
4999
|
-
}), Xa = { class: "d-flex" }, Qa = { class: "me-3" }, ei = { class: "ms-2" }, ti = { class: "d-flex flex-column w-100" }, al = /* @__PURE__ */
|
|
5010
|
+
}), Xa = { class: "d-flex" }, Qa = { class: "me-3" }, ei = { class: "ms-2" }, ti = { class: "d-flex flex-column w-100" }, al = /* @__PURE__ */ $({
|
|
5000
5011
|
__name: "ForgeColumnCustomiser",
|
|
5001
5012
|
props: {
|
|
5002
5013
|
modelValue: { required: !0 },
|
|
@@ -5007,19 +5018,19 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5007
5018
|
const t = D(e, "modelValue"), a = I(), i = I(!1), l = (n) => {
|
|
5008
5019
|
a.value.toggle(n);
|
|
5009
5020
|
};
|
|
5010
|
-
return (n, o) => (
|
|
5011
|
-
x(u(
|
|
5021
|
+
return (n, o) => (r(), f(O, null, [
|
|
5022
|
+
x(u(A), {
|
|
5012
5023
|
onClick: l,
|
|
5013
5024
|
class: "ms-2"
|
|
5014
5025
|
}, {
|
|
5015
|
-
default:
|
|
5026
|
+
default: g(() => [
|
|
5016
5027
|
m("div", Xa, [
|
|
5017
5028
|
m("div", Qa, [
|
|
5018
|
-
x(u(
|
|
5029
|
+
x(u(j), { icon: "bi:layout-three-columns" })
|
|
5019
5030
|
]),
|
|
5020
|
-
_(" Columns (" + w(t.value.filter((
|
|
5031
|
+
_(" Columns (" + w(t.value.filter((s) => s.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
|
|
5021
5032
|
m("div", ei, [
|
|
5022
|
-
x(u(
|
|
5033
|
+
x(u(j), {
|
|
5023
5034
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5024
5035
|
}, null, 8, ["icon"])
|
|
5025
5036
|
])
|
|
@@ -5034,9 +5045,9 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5034
5045
|
onHide: o[0] || (o[0] = () => i.value = !1),
|
|
5035
5046
|
onShow: o[1] || (o[1] = () => i.value = !0)
|
|
5036
5047
|
}, {
|
|
5037
|
-
default:
|
|
5048
|
+
default: g(() => [
|
|
5038
5049
|
m("div", ti, [
|
|
5039
|
-
(
|
|
5050
|
+
(r(!0), f(O, null, U(t.value, (s, p) => (r(), f("div", {
|
|
5040
5051
|
class: B(["d-flex cursor-pointer", {
|
|
5041
5052
|
"border-top": p !== 0,
|
|
5042
5053
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
@@ -5045,12 +5056,12 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5045
5056
|
}])
|
|
5046
5057
|
}, [
|
|
5047
5058
|
x(fe, {
|
|
5048
|
-
id:
|
|
5049
|
-
modelValue:
|
|
5050
|
-
"onUpdate:modelValue": (c) =>
|
|
5059
|
+
id: s.field,
|
|
5060
|
+
modelValue: s.selected,
|
|
5061
|
+
"onUpdate:modelValue": (c) => s.selected = c,
|
|
5051
5062
|
binary: "",
|
|
5052
5063
|
class: "cursor-pointer",
|
|
5053
|
-
label:
|
|
5064
|
+
label: s.header
|
|
5054
5065
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "label"])
|
|
5055
5066
|
], 2))), 256))
|
|
5056
5067
|
])
|
|
@@ -5059,38 +5070,38 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5059
5070
|
}, 512)
|
|
5060
5071
|
], 64));
|
|
5061
5072
|
}
|
|
5062
|
-
}), il = /* @__PURE__ */
|
|
5073
|
+
}), il = /* @__PURE__ */ $({
|
|
5063
5074
|
__name: "ForgePanel",
|
|
5064
5075
|
setup(e) {
|
|
5065
5076
|
return (t, a) => {
|
|
5066
5077
|
const i = Re;
|
|
5067
|
-
return
|
|
5068
|
-
toggleicon:
|
|
5069
|
-
l ? (
|
|
5078
|
+
return r(), v(i, K(Z({ ...t.$attrs })), {
|
|
5079
|
+
toggleicon: g(({ collapsed: l }) => [
|
|
5080
|
+
l ? (r(), v(u(j), {
|
|
5070
5081
|
key: 0,
|
|
5071
5082
|
"data-cy": "message-icon",
|
|
5072
5083
|
icon: "bi:chevron-down"
|
|
5073
|
-
})) :
|
|
5074
|
-
l ?
|
|
5084
|
+
})) : z("", !0),
|
|
5085
|
+
l ? z("", !0) : (r(), v(u(j), {
|
|
5075
5086
|
key: 1,
|
|
5076
5087
|
"data-cy": "message-icon",
|
|
5077
5088
|
icon: "bi:chevron-up"
|
|
5078
5089
|
}))
|
|
5079
5090
|
]),
|
|
5080
|
-
default:
|
|
5091
|
+
default: g(() => [
|
|
5081
5092
|
k(t.$slots, "default")
|
|
5082
5093
|
]),
|
|
5083
5094
|
_: 3
|
|
5084
5095
|
}, 16);
|
|
5085
5096
|
};
|
|
5086
5097
|
}
|
|
5087
|
-
}), ai = /* @__PURE__ */
|
|
5098
|
+
}), ai = /* @__PURE__ */ $({
|
|
5088
5099
|
__name: "ForgeToggleButton",
|
|
5089
5100
|
props: {
|
|
5090
5101
|
severity: { default: "primary" }
|
|
5091
5102
|
},
|
|
5092
5103
|
setup(e) {
|
|
5093
|
-
const t = e, a =
|
|
5104
|
+
const t = e, a = T(() => ({
|
|
5094
5105
|
root: (i) => ({
|
|
5095
5106
|
class: [
|
|
5096
5107
|
"btn",
|
|
@@ -5110,7 +5121,7 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5110
5121
|
]
|
|
5111
5122
|
})
|
|
5112
5123
|
}));
|
|
5113
|
-
return (i, l) => (
|
|
5124
|
+
return (i, l) => (r(), v(u(He), C({ ...i.$attrs, ...t }, {
|
|
5114
5125
|
severity: t.severity,
|
|
5115
5126
|
pt: a.value
|
|
5116
5127
|
}), null, 16, ["severity", "pt"]));
|
|
@@ -5118,7 +5129,7 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5118
5129
|
}), ii = {
|
|
5119
5130
|
class: "btn-group",
|
|
5120
5131
|
"data-cy": "forge-select-button"
|
|
5121
|
-
}, ll = /* @__PURE__ */
|
|
5132
|
+
}, ll = /* @__PURE__ */ $({
|
|
5122
5133
|
__name: "ForgeSelectButton",
|
|
5123
5134
|
props: /* @__PURE__ */ N({
|
|
5124
5135
|
multiple: { type: Boolean, default: !1 },
|
|
@@ -5131,25 +5142,25 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
|
|
|
5131
5142
|
setup(e, { emit: t }) {
|
|
5132
5143
|
const a = e, i = t, l = D(e, "modelValue"), n = (o) => {
|
|
5133
5144
|
if (o.disabled) return;
|
|
5134
|
-
const
|
|
5135
|
-
!a.allowEmpty &&
|
|
5145
|
+
const s = o.selected && l.value.filter((p) => o.value != p.value && p.selected).length < 1;
|
|
5146
|
+
!a.allowEmpty && s || (a.multiple || l.value.forEach((p) => {
|
|
5136
5147
|
p.value != o.value && (p.selected = !1);
|
|
5137
5148
|
}), o.selected = !o.selected, i("change", o));
|
|
5138
5149
|
};
|
|
5139
|
-
return (o,
|
|
5140
|
-
(
|
|
5150
|
+
return (o, s) => (r(), f("div", ii, [
|
|
5151
|
+
(r(!0), f(O, null, U(l.value, (p, c) => (r(), v(ai, {
|
|
5141
5152
|
onLabel: p.label,
|
|
5142
5153
|
offLabel: p.label,
|
|
5143
5154
|
severity: p.severity,
|
|
5144
5155
|
key: c,
|
|
5145
|
-
onChange: (
|
|
5156
|
+
onChange: (b) => n(p),
|
|
5146
5157
|
defaultValue: p.selected,
|
|
5147
5158
|
disabled: p.disabled,
|
|
5148
5159
|
"data-cy": `toggle-button-${p.value}`
|
|
5149
5160
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy"]))), 128))
|
|
5150
5161
|
]));
|
|
5151
5162
|
}
|
|
5152
|
-
}),
|
|
5163
|
+
}), ol = () => ({
|
|
5153
5164
|
type: "component",
|
|
5154
5165
|
resolve: (e) => {
|
|
5155
5166
|
if (e.startsWith("Forge"))
|
|
@@ -5182,7 +5193,7 @@ export {
|
|
|
5182
5193
|
il as ForgePanel,
|
|
5183
5194
|
ia as ForgeProgressBar,
|
|
5184
5195
|
Hi as ForgeRemainingCharacters,
|
|
5185
|
-
|
|
5196
|
+
ol as ForgeResolver,
|
|
5186
5197
|
Ji as ForgeScratchpad,
|
|
5187
5198
|
ll as ForgeSelectButton,
|
|
5188
5199
|
Ki as ForgeStatWidget,
|