@3squared/forge-ui-3 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import he from "primevue/message";
|
|
2
|
-
import { defineComponent as $, openBlock as r, createBlock as f, normalizeProps as J, guardReactiveProps as K, withCtx as b, createElementVNode as m, normalizeClass as
|
|
2
|
+
import { defineComponent as $, openBlock as r, createBlock as f, normalizeProps as J, guardReactiveProps as K, withCtx as b, createElementVNode as m, normalizeClass as B, unref as u, createCommentVNode as S, createVNode as h, renderSlot as k, ref as _, createElementBlock as v, Fragment as O, mergeProps as z, renderList as N, mergeModels as U, useModel as D, computed as T, createTextVNode as I, 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
3
|
import { Icon as j } from "@iconify/vue";
|
|
4
4
|
import A from "primevue/button";
|
|
5
|
-
import
|
|
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"
|
|
@@ -1039,7 +1039,7 @@ const We = {
|
|
|
1039
1039
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1040
1040
|
filterIcon: "d-none"
|
|
1041
1041
|
}
|
|
1042
|
-
},
|
|
1042
|
+
}, Ft = {
|
|
1043
1043
|
treeSelect: {
|
|
1044
1044
|
root: ({ props: e }) => ({
|
|
1045
1045
|
class: [
|
|
@@ -1087,7 +1087,7 @@ const We = {
|
|
|
1087
1087
|
filterIcon: "d-none"
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
},
|
|
1090
|
+
}, Bt = {
|
|
1091
1091
|
fieldset: {
|
|
1092
1092
|
root: () => ({
|
|
1093
1093
|
class: [
|
|
@@ -1131,7 +1131,7 @@ const We = {
|
|
|
1131
1131
|
accordionContent: {
|
|
1132
1132
|
root: "mt-2 mx-4 mb-4"
|
|
1133
1133
|
}
|
|
1134
|
-
},
|
|
1134
|
+
}, Ni = {
|
|
1135
1135
|
...We,
|
|
1136
1136
|
...mt,
|
|
1137
1137
|
...Ye,
|
|
@@ -1147,7 +1147,7 @@ const We = {
|
|
|
1147
1147
|
...Ze,
|
|
1148
1148
|
...Xe,
|
|
1149
1149
|
...Qe,
|
|
1150
|
-
...
|
|
1150
|
+
...ot,
|
|
1151
1151
|
...dt,
|
|
1152
1152
|
...vt,
|
|
1153
1153
|
...lt,
|
|
@@ -1156,14 +1156,14 @@ const We = {
|
|
|
1156
1156
|
...ct,
|
|
1157
1157
|
...gt,
|
|
1158
1158
|
...bt,
|
|
1159
|
-
...
|
|
1159
|
+
...nt,
|
|
1160
1160
|
...ut,
|
|
1161
1161
|
...et,
|
|
1162
1162
|
...st,
|
|
1163
1163
|
...kt,
|
|
1164
1164
|
...tt,
|
|
1165
|
-
...Ft,
|
|
1166
1165
|
...Bt,
|
|
1166
|
+
...Ft,
|
|
1167
1167
|
...$t,
|
|
1168
1168
|
...St,
|
|
1169
1169
|
directives: {
|
|
@@ -1193,28 +1193,28 @@ const We = {
|
|
|
1193
1193
|
return r(), f(l, J(K({ ...a.$attrs, ...t })), {
|
|
1194
1194
|
icon: b(() => [
|
|
1195
1195
|
m("div", {
|
|
1196
|
-
class:
|
|
1196
|
+
class: B(t.icon ? "me-2 pe-1" : "")
|
|
1197
1197
|
}, [
|
|
1198
1198
|
t.icon ? (r(), f(u(j), {
|
|
1199
1199
|
key: 0,
|
|
1200
1200
|
"data-cy": "message-icon",
|
|
1201
1201
|
icon: t.icon,
|
|
1202
|
-
class:
|
|
1202
|
+
class: B(`text-${t.severity}`),
|
|
1203
1203
|
height: 35
|
|
1204
|
-
}, null, 8, ["icon", "class"])) :
|
|
1204
|
+
}, null, 8, ["icon", "class"])) : S("", !0)
|
|
1205
1205
|
], 2)
|
|
1206
1206
|
]),
|
|
1207
1207
|
closeicon: b(() => [
|
|
1208
|
-
|
|
1208
|
+
h(u(j), { icon: "bi:x" })
|
|
1209
1209
|
]),
|
|
1210
1210
|
default: b(() => [
|
|
1211
|
-
|
|
1211
|
+
k(a.$slots, "default")
|
|
1212
1212
|
]),
|
|
1213
1213
|
_: 3
|
|
1214
1214
|
}, 16);
|
|
1215
1215
|
};
|
|
1216
1216
|
}
|
|
1217
|
-
}),
|
|
1217
|
+
}), Ui = /* @__PURE__ */ $({
|
|
1218
1218
|
__name: "ForgeActionButton",
|
|
1219
1219
|
props: {
|
|
1220
1220
|
action: {},
|
|
@@ -1232,24 +1232,24 @@ const We = {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
t.value = !1;
|
|
1234
1234
|
};
|
|
1235
|
-
return (l,
|
|
1236
|
-
const
|
|
1235
|
+
return (l, o) => {
|
|
1236
|
+
const n = A;
|
|
1237
1237
|
return r(), v(O, null, [
|
|
1238
|
-
|
|
1238
|
+
h(n, z({ ...a, ...l.$attrs }, {
|
|
1239
1239
|
loading: t.value,
|
|
1240
1240
|
disabled: t.value || a.disabled,
|
|
1241
1241
|
onClick: i
|
|
1242
1242
|
}), null, 16, ["loading", "disabled"]),
|
|
1243
|
-
|
|
1243
|
+
h(u(Be))
|
|
1244
1244
|
], 64);
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
|
-
}),
|
|
1247
|
+
}), Ai = /* @__PURE__ */ $({
|
|
1248
1248
|
__name: "ForgeAutoComplete",
|
|
1249
1249
|
setup(e) {
|
|
1250
|
-
return (t, a) => (r(), f(u(Se),
|
|
1250
|
+
return (t, a) => (r(), f(u(Se), z({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1251
1251
|
default: b(() => [
|
|
1252
|
-
(r(!0), v(O, null, N(t.$slots, (i, l) =>
|
|
1252
|
+
(r(!0), v(O, null, N(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
|
|
1253
1253
|
]),
|
|
1254
1254
|
_: 3
|
|
1255
1255
|
}, 16));
|
|
@@ -1289,25 +1289,25 @@ const We = {
|
|
|
1289
1289
|
}),
|
|
1290
1290
|
emits: ["update:modelValue"],
|
|
1291
1291
|
setup(e) {
|
|
1292
|
-
const t = e, a = D(e, "modelValue"), { handleChange: i, errors: l, errorMessage:
|
|
1292
|
+
const t = e, a = D(e, "modelValue"), { handleChange: i, errors: l, errorMessage: o } = ee(
|
|
1293
1293
|
() => t.name ?? "",
|
|
1294
1294
|
void 0,
|
|
1295
1295
|
{
|
|
1296
1296
|
type: "checkbox",
|
|
1297
1297
|
checkedValue: a.value
|
|
1298
1298
|
}
|
|
1299
|
-
),
|
|
1299
|
+
), n = (p, c) => {
|
|
1300
1300
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
|
|
1301
1301
|
}, s = T(() => l.value.length > 0);
|
|
1302
1302
|
return (p, c) => {
|
|
1303
1303
|
const g = Ce;
|
|
1304
1304
|
return r(), v("div", Ct, [
|
|
1305
|
-
m("div",
|
|
1305
|
+
m("div", z({
|
|
1306
1306
|
class: "d-flex",
|
|
1307
1307
|
"data-cy": "checkbox-container",
|
|
1308
|
-
onClick: c[2] || (c[2] = (d) =>
|
|
1308
|
+
onClick: c[2] || (c[2] = (d) => n(d, a.value))
|
|
1309
1309
|
}, { ...p.$attrs }), [
|
|
1310
|
-
|
|
1310
|
+
h(g, z({ ...t }, {
|
|
1311
1311
|
binary: "",
|
|
1312
1312
|
modelValue: a.value,
|
|
1313
1313
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d),
|
|
@@ -1317,18 +1317,18 @@ const We = {
|
|
|
1317
1317
|
}), null, 16, ["modelValue", "input-id", "input-class", "class"]),
|
|
1318
1318
|
m("label", {
|
|
1319
1319
|
for: t.name,
|
|
1320
|
-
onClick: c[1] || (c[1] = (d) =>
|
|
1321
|
-
class:
|
|
1320
|
+
onClick: c[1] || (c[1] = (d) => n(d, !a.value)),
|
|
1321
|
+
class: B([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1322
1322
|
}, [
|
|
1323
|
-
|
|
1324
|
-
I(
|
|
1323
|
+
k(p.$slots, "default", {}, () => [
|
|
1324
|
+
I(w(t.label), 1)
|
|
1325
1325
|
])
|
|
1326
1326
|
], 10, zt)
|
|
1327
1327
|
], 16),
|
|
1328
1328
|
H(m("small", {
|
|
1329
1329
|
"data-cy": "error",
|
|
1330
1330
|
class: "text-invalid"
|
|
1331
|
-
},
|
|
1331
|
+
}, w(u(o)), 513), [
|
|
1332
1332
|
[Y, s.value]
|
|
1333
1333
|
])
|
|
1334
1334
|
]);
|
|
@@ -1344,14 +1344,14 @@ const We = {
|
|
|
1344
1344
|
return (a, i) => {
|
|
1345
1345
|
const l = ze;
|
|
1346
1346
|
return r(), v("div", Tt, [
|
|
1347
|
-
|
|
1347
|
+
h(l, {
|
|
1348
1348
|
"animation-duration": ".75",
|
|
1349
|
-
class:
|
|
1349
|
+
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1350
1350
|
}, null, 8, ["class"])
|
|
1351
1351
|
]);
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
1354
|
-
}), jt = ["href", "target"],
|
|
1354
|
+
}), jt = ["href", "target"], qi = /* @__PURE__ */ $({
|
|
1355
1355
|
__name: "ForgeLink",
|
|
1356
1356
|
props: {
|
|
1357
1357
|
url: {},
|
|
@@ -1387,18 +1387,18 @@ const We = {
|
|
|
1387
1387
|
}));
|
|
1388
1388
|
return (i, l) => (r(), v("a", {
|
|
1389
1389
|
id: "link",
|
|
1390
|
-
class:
|
|
1390
|
+
class: B(["cursor-pointer d-flex text-break", t.value]),
|
|
1391
1391
|
href: i.url,
|
|
1392
1392
|
target: i.target
|
|
1393
1393
|
}, [
|
|
1394
|
-
|
|
1394
|
+
k(i.$slots, "default", {}, () => [
|
|
1395
1395
|
i.iconName ? (r(), f(u(j), {
|
|
1396
1396
|
key: 0,
|
|
1397
1397
|
id: "link-icon",
|
|
1398
1398
|
icon: i.iconName,
|
|
1399
|
-
class:
|
|
1400
|
-
}, null, 8, ["icon", "class"])) :
|
|
1401
|
-
I(" " +
|
|
1399
|
+
class: B(["bi my-auto", a.value])
|
|
1400
|
+
}, null, 8, ["icon", "class"])) : S("", !0),
|
|
1401
|
+
I(" " + w(i.label), 1)
|
|
1402
1402
|
])
|
|
1403
1403
|
], 10, jt));
|
|
1404
1404
|
}
|
|
@@ -1414,16 +1414,16 @@ function It(e) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function Ei(e, t) {
|
|
1418
1418
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function Li(e, t, a) {
|
|
1421
1421
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1422
1422
|
}
|
|
1423
1423
|
const _t = { key: 0 }, Pt = {
|
|
1424
1424
|
class: "d-flex w-100",
|
|
1425
1425
|
"data-cy": "footer"
|
|
1426
|
-
},
|
|
1426
|
+
}, Ri = /* @__PURE__ */ $({
|
|
1427
1427
|
__name: "ForgeModal",
|
|
1428
1428
|
props: /* @__PURE__ */ U({
|
|
1429
1429
|
cancelText: { default: "Cancel" },
|
|
@@ -1470,16 +1470,21 @@ const _t = { key: 0 }, Pt = {
|
|
|
1470
1470
|
unstyled: { type: Boolean }
|
|
1471
1471
|
}, {
|
|
1472
1472
|
visible: { type: Boolean, required: !0 },
|
|
1473
|
-
visibleModifiers: {}
|
|
1473
|
+
visibleModifiers: {},
|
|
1474
|
+
error: {
|
|
1475
|
+
required: !1,
|
|
1476
|
+
default: {
|
|
1477
|
+
hasError: !1,
|
|
1478
|
+
header: "",
|
|
1479
|
+
message: []
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
errorModifiers: {}
|
|
1474
1483
|
}),
|
|
1475
|
-
emits: ["update:visible"],
|
|
1484
|
+
emits: ["update:visible", "update:error"],
|
|
1476
1485
|
setup(e, { expose: t }) {
|
|
1477
|
-
const a = D(e, "visible"), i = _(!1), l = e,
|
|
1478
|
-
|
|
1479
|
-
header: "",
|
|
1480
|
-
message: []
|
|
1481
|
-
}), s = () => {
|
|
1482
|
-
o.value = {
|
|
1486
|
+
const a = D(e, "visible"), i = _(!1), l = e, o = _(!1), n = D(e, "error"), s = () => {
|
|
1487
|
+
n.value = {
|
|
1483
1488
|
hasError: !1,
|
|
1484
1489
|
header: "",
|
|
1485
1490
|
message: []
|
|
@@ -1496,18 +1501,18 @@ const _t = { key: 0 }, Pt = {
|
|
|
1496
1501
|
l.resetErrorOnClose && s(), a.value = !1;
|
|
1497
1502
|
}, d = async () => {
|
|
1498
1503
|
if (l.onConfirm) {
|
|
1499
|
-
|
|
1504
|
+
o.value = !0, n.value.hasError = !1;
|
|
1500
1505
|
try {
|
|
1501
|
-
const
|
|
1502
|
-
(
|
|
1503
|
-
} catch (
|
|
1504
|
-
|
|
1505
|
-
const V = It(
|
|
1506
|
-
|
|
1506
|
+
const C = await l.onConfirm();
|
|
1507
|
+
(C || C == null) && g();
|
|
1508
|
+
} catch (C) {
|
|
1509
|
+
n.value.hasError = !0;
|
|
1510
|
+
const V = It(C);
|
|
1511
|
+
n.value.header = V.errorMessage, n.value.message = V.errorDetails;
|
|
1507
1512
|
}
|
|
1508
|
-
|
|
1513
|
+
o.value = !1;
|
|
1509
1514
|
}
|
|
1510
|
-
},
|
|
1515
|
+
}, F = T(() => ({
|
|
1511
1516
|
root: [
|
|
1512
1517
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1513
1518
|
{
|
|
@@ -1518,15 +1523,15 @@ const _t = { key: 0 }, Pt = {
|
|
|
1518
1523
|
}
|
|
1519
1524
|
]
|
|
1520
1525
|
}));
|
|
1521
|
-
return (
|
|
1526
|
+
return (C, V) => {
|
|
1522
1527
|
const M = A, q = Te;
|
|
1523
|
-
return r(), f(q,
|
|
1528
|
+
return r(), f(q, z(l, {
|
|
1524
1529
|
onMaximize: c,
|
|
1525
1530
|
onUnmaximize: p,
|
|
1526
|
-
pt:
|
|
1531
|
+
pt: F.value
|
|
1527
1532
|
}), ie({
|
|
1528
1533
|
closeicon: b(() => [
|
|
1529
|
-
|
|
1534
|
+
h(u(j), {
|
|
1530
1535
|
"data-cy": "close-icon",
|
|
1531
1536
|
icon: "bi:x-lg",
|
|
1532
1537
|
width: "18",
|
|
@@ -1535,7 +1540,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1535
1540
|
})
|
|
1536
1541
|
]),
|
|
1537
1542
|
maximizeicon: b(() => [
|
|
1538
|
-
|
|
1543
|
+
h(u(j), {
|
|
1539
1544
|
"data-cy": "maximisable-icon",
|
|
1540
1545
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1541
1546
|
width: "16",
|
|
@@ -1544,45 +1549,47 @@ const _t = { key: 0 }, Pt = {
|
|
|
1544
1549
|
]),
|
|
1545
1550
|
_: 2
|
|
1546
1551
|
}, [
|
|
1547
|
-
N(
|
|
1548
|
-
name:
|
|
1552
|
+
N(C.$slots, (y, x) => ({
|
|
1553
|
+
name: x,
|
|
1549
1554
|
fn: b((P) => [
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1555
|
+
x !== "footer" ? (r(), v(O, { key: 0 }, [
|
|
1556
|
+
n.value.hasError ? (r(), f(se, {
|
|
1557
|
+
key: 0,
|
|
1558
|
+
severity: "danger",
|
|
1559
|
+
"data-cy": "error"
|
|
1560
|
+
}, {
|
|
1561
|
+
default: b(() => [
|
|
1562
|
+
m("p", {
|
|
1563
|
+
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1564
|
+
}, w(n.value.header), 3),
|
|
1565
|
+
n.value.message.length > 0 ? (r(), v("ul", _t, [
|
|
1566
|
+
(r(!0), v(O, null, N(n.value.message, (L) => (r(), v("li", { key: L }, w(L), 1))), 128))
|
|
1567
|
+
])) : S("", !0)
|
|
1568
|
+
]),
|
|
1569
|
+
_: 1
|
|
1570
|
+
})) : S("", !0)
|
|
1571
|
+
], 64)) : S("", !0),
|
|
1572
|
+
k(C.$slots, x, J(K(P || {}))),
|
|
1573
|
+
o.value ? k(C.$slots, "loader", { key: 1 }, () => [
|
|
1574
|
+
h(ge, { "data-cy": "loader" })
|
|
1575
|
+
]) : S("", !0)
|
|
1569
1576
|
])
|
|
1570
1577
|
})),
|
|
1571
|
-
|
|
1578
|
+
C.showFooter ? {
|
|
1572
1579
|
name: "footer",
|
|
1573
1580
|
fn: b(() => [
|
|
1574
1581
|
m("div", Pt, [
|
|
1575
|
-
|
|
1576
|
-
label:
|
|
1577
|
-
class:
|
|
1582
|
+
h(M, {
|
|
1583
|
+
label: C.cancelText,
|
|
1584
|
+
class: B(l.cancelClass),
|
|
1578
1585
|
outlined: "",
|
|
1579
1586
|
onClick: g,
|
|
1580
1587
|
id: "cancel-button",
|
|
1581
1588
|
type: l.cancelButtonType
|
|
1582
1589
|
}, null, 8, ["label", "class", "type"]),
|
|
1583
|
-
|
|
1584
|
-
label:
|
|
1585
|
-
class:
|
|
1590
|
+
h(M, {
|
|
1591
|
+
label: C.submitText,
|
|
1592
|
+
class: B([l.submitClass, "ms-auto"]),
|
|
1586
1593
|
onClick: d,
|
|
1587
1594
|
id: "submit-button",
|
|
1588
1595
|
type: l.submitButtonType
|
|
@@ -1609,11 +1616,11 @@ const _t = { key: 0 }, Pt = {
|
|
|
1609
1616
|
}),
|
|
1610
1617
|
emits: ["update:modelValue"],
|
|
1611
1618
|
setup(e) {
|
|
1612
|
-
const t = e, a = D(e, "modelValue"), i = _(!1), l = _(),
|
|
1613
|
-
var
|
|
1614
|
-
i.value = !i.value, (
|
|
1615
|
-
},
|
|
1616
|
-
if (
|
|
1619
|
+
const t = e, a = D(e, "modelValue"), i = _(!1), l = _(), o = () => {
|
|
1620
|
+
var C;
|
|
1621
|
+
i.value = !i.value, (C = l.value) == null || C.focus();
|
|
1622
|
+
}, n = async () => {
|
|
1623
|
+
if (F.value)
|
|
1617
1624
|
return !1;
|
|
1618
1625
|
if (a.value = d.value, t.completeAction)
|
|
1619
1626
|
try {
|
|
@@ -1633,40 +1640,40 @@ const _t = { key: 0 }, Pt = {
|
|
|
1633
1640
|
le(() => {
|
|
1634
1641
|
d.value = a.value;
|
|
1635
1642
|
});
|
|
1636
|
-
const
|
|
1637
|
-
return (
|
|
1638
|
-
const M =
|
|
1643
|
+
const F = T(() => g.value.length > 0);
|
|
1644
|
+
return (C, V) => {
|
|
1645
|
+
const M = oe, q = A;
|
|
1639
1646
|
return r(), v("div", {
|
|
1640
1647
|
id: t.name
|
|
1641
1648
|
}, [
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
m("span", Ut,
|
|
1649
|
+
C.readonly ? (r(), v("div", Nt, [
|
|
1650
|
+
k(C.$slots, "default", {}, () => [
|
|
1651
|
+
m("span", Ut, w(u(d)), 1)
|
|
1645
1652
|
])
|
|
1646
1653
|
])) : (r(), v("div", Mt, [
|
|
1647
1654
|
i.value ? (r(), v("div", Dt, [
|
|
1648
1655
|
H((r(), v("div", Ot, [
|
|
1649
|
-
|
|
1650
|
-
class:
|
|
1651
|
-
editFinished:
|
|
1656
|
+
k(C.$slots, "editor", {
|
|
1657
|
+
class: B({ "is-invalid": F.value }),
|
|
1658
|
+
editFinished: n,
|
|
1652
1659
|
cancel: s,
|
|
1653
1660
|
val: u(d)
|
|
1654
1661
|
}, () => [
|
|
1655
|
-
|
|
1662
|
+
h(M, {
|
|
1656
1663
|
modelValue: u(d),
|
|
1657
1664
|
"onUpdate:modelValue": V[0] || (V[0] = (y) => we(d) ? d.value = y : null),
|
|
1658
1665
|
modelModifiers: { trim: !0 },
|
|
1659
1666
|
"data-cy": "input",
|
|
1660
1667
|
ref_key: "input",
|
|
1661
1668
|
ref: l,
|
|
1662
|
-
class:
|
|
1669
|
+
class: B({ "is-invalid": F.value }),
|
|
1663
1670
|
onKeydown: [
|
|
1664
|
-
X(
|
|
1671
|
+
X(n, ["enter"]),
|
|
1665
1672
|
X(s, ["esc"])
|
|
1666
1673
|
]
|
|
1667
1674
|
}, null, 8, ["modelValue", "class"])
|
|
1668
1675
|
]),
|
|
1669
|
-
|
|
1676
|
+
h(u(j), {
|
|
1670
1677
|
icon: "bi:x-circle",
|
|
1671
1678
|
class: "mx-2 cursor-pointer",
|
|
1672
1679
|
onClick: p,
|
|
@@ -1674,30 +1681,30 @@ const _t = { key: 0 }, Pt = {
|
|
|
1674
1681
|
"data-cy": "clear-icon"
|
|
1675
1682
|
})
|
|
1676
1683
|
])), [
|
|
1677
|
-
[u(je),
|
|
1684
|
+
[u(je), n]
|
|
1678
1685
|
])
|
|
1679
1686
|
])) : (r(), v("div", {
|
|
1680
1687
|
key: 1,
|
|
1681
1688
|
class: "d-flex text-muted",
|
|
1682
|
-
onClick:
|
|
1683
|
-
onFocus:
|
|
1689
|
+
onClick: o,
|
|
1690
|
+
onFocus: o
|
|
1684
1691
|
}, [
|
|
1685
|
-
|
|
1692
|
+
k(C.$slots, "default", {}, () => [
|
|
1686
1693
|
m("div", {
|
|
1687
|
-
class:
|
|
1694
|
+
class: B(["pe-2 cursor-pointer", { "text-invalid": F.value }]),
|
|
1688
1695
|
"data-cy": "value"
|
|
1689
|
-
},
|
|
1696
|
+
}, w(u(d) ? u(d) : "Click to edit"), 3)
|
|
1690
1697
|
]),
|
|
1691
|
-
|
|
1698
|
+
h(q, {
|
|
1692
1699
|
link: "",
|
|
1693
1700
|
class: "p-0 m-0"
|
|
1694
1701
|
}, {
|
|
1695
1702
|
default: b(() => [
|
|
1696
|
-
|
|
1703
|
+
h(u(j), {
|
|
1697
1704
|
icon: "bi:pencil",
|
|
1698
|
-
class: F
|
|
1705
|
+
class: B(F.value ? "text-invalid" : "text-muted"),
|
|
1699
1706
|
"data-cy": "edit-icon",
|
|
1700
|
-
onKeydown: X(
|
|
1707
|
+
onKeydown: X(o, ["enter"])
|
|
1701
1708
|
}, null, 8, ["class"])
|
|
1702
1709
|
]),
|
|
1703
1710
|
_: 1
|
|
@@ -1707,13 +1714,13 @@ const _t = { key: 0 }, Pt = {
|
|
|
1707
1714
|
H(m("small", {
|
|
1708
1715
|
"data-cy": "error",
|
|
1709
1716
|
class: "text-invalid"
|
|
1710
|
-
},
|
|
1711
|
-
[Y,
|
|
1717
|
+
}, w(u(c)), 513), [
|
|
1718
|
+
[Y, F.value]
|
|
1712
1719
|
])
|
|
1713
1720
|
], 8, Vt);
|
|
1714
1721
|
};
|
|
1715
1722
|
}
|
|
1716
|
-
}), qt = ["href"],
|
|
1723
|
+
}), qt = ["href"], Hi = /* @__PURE__ */ $({
|
|
1717
1724
|
__name: "ForgeNavbar",
|
|
1718
1725
|
props: {
|
|
1719
1726
|
severity: { default: "light" },
|
|
@@ -1757,7 +1764,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1757
1764
|
]
|
|
1758
1765
|
})
|
|
1759
1766
|
}));
|
|
1760
|
-
return (i, l) => (r(), f(u(Ie),
|
|
1767
|
+
return (i, l) => (r(), f(u(Ie), z({ ...t, ...i.$attrs }, {
|
|
1761
1768
|
pt: a.value,
|
|
1762
1769
|
"data-cy": "navbar"
|
|
1763
1770
|
}), ie({
|
|
@@ -1767,16 +1774,16 @@ const _t = { key: 0 }, Pt = {
|
|
|
1767
1774
|
class: "navbar-brand ms-3",
|
|
1768
1775
|
"data-cy": "logo"
|
|
1769
1776
|
}, [
|
|
1770
|
-
|
|
1777
|
+
k(i.$slots, "logo", {}, () => [
|
|
1771
1778
|
l[0] || (l[0] = I(" Logo "))
|
|
1772
1779
|
])
|
|
1773
1780
|
], 8, qt)
|
|
1774
1781
|
]),
|
|
1775
1782
|
buttonicon: b(() => [
|
|
1776
|
-
|
|
1777
|
-
|
|
1783
|
+
k(i.$slots, "buttonIcon", {}, () => [
|
|
1784
|
+
h(u(j), {
|
|
1778
1785
|
icon: "bi:list",
|
|
1779
|
-
class:
|
|
1786
|
+
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1780
1787
|
height: "24",
|
|
1781
1788
|
"data-cy": "burger-icon"
|
|
1782
1789
|
}, null, 8, ["class"])
|
|
@@ -1784,10 +1791,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
1784
1791
|
]),
|
|
1785
1792
|
_: 2
|
|
1786
1793
|
}, [
|
|
1787
|
-
N(i.$slots, (
|
|
1788
|
-
name:
|
|
1794
|
+
N(i.$slots, (o, n) => ({
|
|
1795
|
+
name: n,
|
|
1789
1796
|
fn: b((s) => [
|
|
1790
|
-
|
|
1797
|
+
k(i.$slots, n, J(K(s)))
|
|
1791
1798
|
])
|
|
1792
1799
|
}))
|
|
1793
1800
|
]), 1040, ["pt"]));
|
|
@@ -1816,21 +1823,21 @@ const _t = { key: 0 }, Pt = {
|
|
|
1816
1823
|
emits: ["update:modelValue"],
|
|
1817
1824
|
setup(e) {
|
|
1818
1825
|
const t = e, a = D(e, "modelValue"), i = (l) => {
|
|
1819
|
-
a.value = a.value.filter((
|
|
1826
|
+
a.value = a.value.filter((o) => o.id !== l);
|
|
1820
1827
|
};
|
|
1821
|
-
return (l,
|
|
1822
|
-
const
|
|
1828
|
+
return (l, o) => {
|
|
1829
|
+
const n = ne, s = A;
|
|
1823
1830
|
return r(), v("div", {
|
|
1824
|
-
class:
|
|
1831
|
+
class: B(l.orientation === "column" ? "row" : ""),
|
|
1825
1832
|
"data-cy": "multiselect-preview"
|
|
1826
1833
|
}, [
|
|
1827
1834
|
m("div", {
|
|
1828
|
-
class:
|
|
1835
|
+
class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1829
1836
|
"data-cy": "multiselect-container"
|
|
1830
1837
|
}, [
|
|
1831
|
-
|
|
1838
|
+
h(n, z({
|
|
1832
1839
|
modelValue: a.value,
|
|
1833
|
-
"onUpdate:modelValue":
|
|
1840
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => a.value = p)
|
|
1834
1841
|
}, { ...l.$attrs }, {
|
|
1835
1842
|
options: t.options ?? [],
|
|
1836
1843
|
optionLabel: "label",
|
|
@@ -1838,14 +1845,14 @@ const _t = { key: 0 }, Pt = {
|
|
|
1838
1845
|
"data-cy": "multiselect"
|
|
1839
1846
|
}), {
|
|
1840
1847
|
default: b(() => [
|
|
1841
|
-
(r(!0), v(O, null, N(l.$slots, (p, c) =>
|
|
1848
|
+
(r(!0), v(O, null, N(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
|
|
1842
1849
|
]),
|
|
1843
1850
|
_: 3
|
|
1844
1851
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1845
|
-
|
|
1852
|
+
k(l.$slots, "after-multi-select")
|
|
1846
1853
|
], 2),
|
|
1847
1854
|
m("div", {
|
|
1848
|
-
class:
|
|
1855
|
+
class: B(l.orientation === "row" ? "col-12" : "col"),
|
|
1849
1856
|
"data-cy": "options-preview"
|
|
1850
1857
|
}, [
|
|
1851
1858
|
m("div", {
|
|
@@ -1853,13 +1860,13 @@ const _t = { key: 0 }, Pt = {
|
|
|
1853
1860
|
class: "overflow-auto"
|
|
1854
1861
|
}, [
|
|
1855
1862
|
m("div", Et, [
|
|
1856
|
-
l.title ? (r(), v("div", Lt,
|
|
1863
|
+
l.title ? (r(), v("div", Lt, w(l.title), 1)) : S("", !0),
|
|
1857
1864
|
(r(!0), v(O, null, N(a.value, (p) => (r(), v("div", {
|
|
1858
1865
|
key: p.id,
|
|
1859
1866
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1860
1867
|
}, [
|
|
1861
|
-
|
|
1862
|
-
m("span", Rt,
|
|
1868
|
+
k(l.$slots, "list-item", { item: p }, () => [
|
|
1869
|
+
m("span", Rt, w(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1863
1870
|
]),
|
|
1864
1871
|
l.canRemoveItemFromPreview ? (r(), f(s, {
|
|
1865
1872
|
key: 0,
|
|
@@ -1868,16 +1875,16 @@ const _t = { key: 0 }, Pt = {
|
|
|
1868
1875
|
onClick: (c) => i(p.id)
|
|
1869
1876
|
}, {
|
|
1870
1877
|
default: b(() => [
|
|
1871
|
-
|
|
1878
|
+
h(u(j), {
|
|
1872
1879
|
icon: "bi:x",
|
|
1873
1880
|
class: "close-icon",
|
|
1874
1881
|
"data-cy": `close-icon-${p.id}`
|
|
1875
1882
|
}, null, 8, ["data-cy"])
|
|
1876
1883
|
]),
|
|
1877
1884
|
_: 2
|
|
1878
|
-
}, 1032, ["onClick"])) :
|
|
1885
|
+
}, 1032, ["onClick"])) : S("", !0)
|
|
1879
1886
|
]))), 128)),
|
|
1880
|
-
a.value == null || a.value.length == 0 ? (r(), v("div", Ht,
|
|
1887
|
+
a.value == null || a.value.length == 0 ? (r(), v("div", Ht, w(t.optionsPreviewEmptyText), 1)) : S("", !0)
|
|
1881
1888
|
])
|
|
1882
1889
|
], 4)
|
|
1883
1890
|
], 2)
|
|
@@ -1890,7 +1897,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1890
1897
|
}, Jt = {
|
|
1891
1898
|
"data-cy": "slot",
|
|
1892
1899
|
class: "d-flex align-items-center"
|
|
1893
|
-
},
|
|
1900
|
+
}, Wi = /* @__PURE__ */ $({
|
|
1894
1901
|
__name: "ForgePageHeader",
|
|
1895
1902
|
props: {
|
|
1896
1903
|
title: {}
|
|
@@ -1898,9 +1905,9 @@ const _t = { key: 0 }, Pt = {
|
|
|
1898
1905
|
setup(e) {
|
|
1899
1906
|
const t = e;
|
|
1900
1907
|
return (a, i) => (r(), v("div", Yt, [
|
|
1901
|
-
m("h3", Gt,
|
|
1908
|
+
m("h3", Gt, w(t.title), 1),
|
|
1902
1909
|
m("div", Jt, [
|
|
1903
|
-
|
|
1910
|
+
k(a.$slots, "default")
|
|
1904
1911
|
])
|
|
1905
1912
|
]));
|
|
1906
1913
|
}
|
|
@@ -1980,7 +1987,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1980
1987
|
}),
|
|
1981
1988
|
emits: ["update:modelValue"],
|
|
1982
1989
|
setup(e) {
|
|
1983
|
-
const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange:
|
|
1990
|
+
const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: n, setValue: s } = ee(() => t.name, void 0, {
|
|
1984
1991
|
initialValue: a.value
|
|
1985
1992
|
}), p = () => {
|
|
1986
1993
|
s(null), a.value = null;
|
|
@@ -2075,54 +2082,54 @@ const _t = { key: 0 }, Pt = {
|
|
|
2075
2082
|
]
|
|
2076
2083
|
})
|
|
2077
2084
|
}));
|
|
2078
|
-
return (d,
|
|
2079
|
-
const
|
|
2085
|
+
return (d, F) => {
|
|
2086
|
+
const C = _e;
|
|
2080
2087
|
return r(), v(O, null, [
|
|
2081
2088
|
m("div", Kt, [
|
|
2082
2089
|
m("span", Zt, [
|
|
2083
|
-
|
|
2090
|
+
k(d.$slots, "before")
|
|
2084
2091
|
]),
|
|
2085
2092
|
m("div", Xt, [
|
|
2086
|
-
|
|
2093
|
+
h(C, z({ ...t, ...d.$attrs }, {
|
|
2087
2094
|
pt: g.value,
|
|
2088
2095
|
modelValue: a.value,
|
|
2089
2096
|
"onUpdate:modelValue": [
|
|
2090
|
-
|
|
2091
|
-
u(
|
|
2097
|
+
F[0] || (F[0] = (V) => a.value = V),
|
|
2098
|
+
u(o)
|
|
2092
2099
|
],
|
|
2093
|
-
onBlur:
|
|
2100
|
+
onBlur: F[1] || (F[1] = () => u(n)),
|
|
2094
2101
|
"input-class": { "datepicker-invalid": c.value }
|
|
2095
2102
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2096
|
-
H(
|
|
2103
|
+
H(h(u(j), {
|
|
2097
2104
|
"data-cy": "icon",
|
|
2098
2105
|
icon: "bi:calendar4",
|
|
2099
|
-
class:
|
|
2106
|
+
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2100
2107
|
}, null, 8, ["class"]), [
|
|
2101
2108
|
[Y, t.showIcon]
|
|
2102
2109
|
]),
|
|
2103
|
-
H(
|
|
2110
|
+
H(h(u(j), {
|
|
2104
2111
|
"data-cy": "icon",
|
|
2105
2112
|
icon: "bi:x",
|
|
2106
2113
|
onClick: p,
|
|
2107
|
-
class:
|
|
2114
|
+
class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2108
2115
|
}, null, 8, ["class"]), [
|
|
2109
2116
|
[Y, t.modelValue]
|
|
2110
2117
|
])
|
|
2111
2118
|
]),
|
|
2112
2119
|
m("span", Qt, [
|
|
2113
|
-
|
|
2120
|
+
k(d.$slots, "after")
|
|
2114
2121
|
])
|
|
2115
2122
|
]),
|
|
2116
2123
|
H(m("small", {
|
|
2117
2124
|
"data-cy": "error",
|
|
2118
2125
|
class: "text-invalid"
|
|
2119
|
-
},
|
|
2126
|
+
}, w(u(l)), 513), [
|
|
2120
2127
|
[Y, c.value]
|
|
2121
2128
|
])
|
|
2122
2129
|
], 64);
|
|
2123
2130
|
};
|
|
2124
2131
|
}
|
|
2125
|
-
}),
|
|
2132
|
+
}), Yi = /* @__PURE__ */ $({
|
|
2126
2133
|
__name: "ForgeRemainingCharacters",
|
|
2127
2134
|
props: {
|
|
2128
2135
|
maxCount: { default: 300 },
|
|
@@ -2131,10 +2138,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
2131
2138
|
setup(e) {
|
|
2132
2139
|
const t = e, a = T(() => t.maxCount - t.currentCount);
|
|
2133
2140
|
return (i, l) => (r(), v("div", {
|
|
2134
|
-
class:
|
|
2135
|
-
}, "Remaining characters: " +
|
|
2141
|
+
class: B(a.value < 0 ? "text-danger" : "")
|
|
2142
|
+
}, "Remaining characters: " + w(a.value), 3));
|
|
2136
2143
|
}
|
|
2137
|
-
}), ea = { class: "d-flex justify-content-between" },
|
|
2144
|
+
}), ea = { class: "d-flex justify-content-between" }, Gi = /* @__PURE__ */ $({
|
|
2138
2145
|
__name: "ForgeForm",
|
|
2139
2146
|
props: {
|
|
2140
2147
|
onSubmit: {},
|
|
@@ -2154,26 +2161,26 @@ const _t = { key: 0 }, Pt = {
|
|
|
2154
2161
|
a.value = !0, i.value.hasError = !1;
|
|
2155
2162
|
try {
|
|
2156
2163
|
await t.onSubmit();
|
|
2157
|
-
} catch (
|
|
2158
|
-
i.value.hasError = !0,
|
|
2164
|
+
} catch (o) {
|
|
2165
|
+
i.value.hasError = !0, o.message && (i.value.message = o.message);
|
|
2159
2166
|
}
|
|
2160
2167
|
a.value = !1;
|
|
2161
2168
|
}
|
|
2162
|
-
return (
|
|
2169
|
+
return (o, n) => {
|
|
2163
2170
|
const s = A;
|
|
2164
|
-
return r(), v("form",
|
|
2171
|
+
return r(), v("form", z(o.$attrs, {
|
|
2165
2172
|
novalidate: "",
|
|
2166
2173
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2167
2174
|
onSubmit: G(l, ["prevent"])
|
|
2168
2175
|
}), [
|
|
2169
|
-
|
|
2170
|
-
|
|
2176
|
+
o.hideTitle ? S("", !0) : (r(), v(O, { key: 0 }, [
|
|
2177
|
+
k(o.$slots, "title", {}, () => [
|
|
2171
2178
|
m("h3", {
|
|
2172
|
-
class:
|
|
2179
|
+
class: B(o.titleClass),
|
|
2173
2180
|
"data-cy": "form-title"
|
|
2174
|
-
},
|
|
2181
|
+
}, w(o.title), 3)
|
|
2175
2182
|
]),
|
|
2176
|
-
|
|
2183
|
+
n[1] || (n[1] = m("hr", null, null, -1))
|
|
2177
2184
|
], 64)),
|
|
2178
2185
|
i.value.hasError ? (r(), f(se, {
|
|
2179
2186
|
key: 1,
|
|
@@ -2181,40 +2188,40 @@ const _t = { key: 0 }, Pt = {
|
|
|
2181
2188
|
"data-cy": "error"
|
|
2182
2189
|
}, {
|
|
2183
2190
|
default: b(() => [
|
|
2184
|
-
|
|
2191
|
+
k(o.$slots, "error", {
|
|
2185
2192
|
error: i.value.message
|
|
2186
2193
|
}, () => [
|
|
2187
|
-
I(
|
|
2194
|
+
I(w(i.value.message), 1)
|
|
2188
2195
|
])
|
|
2189
2196
|
]),
|
|
2190
2197
|
_: 3
|
|
2191
|
-
})) :
|
|
2192
|
-
|
|
2198
|
+
})) : S("", !0),
|
|
2199
|
+
k(o.$slots, "default"),
|
|
2193
2200
|
m("div", ea, [
|
|
2194
|
-
|
|
2195
|
-
|
|
2201
|
+
k(o.$slots, "cancel", {}, () => [
|
|
2202
|
+
o.hideCancel ? S("", !0) : (r(), f(s, {
|
|
2196
2203
|
key: 0,
|
|
2197
2204
|
"data-cy": "cancel-btn",
|
|
2198
2205
|
type: "reset",
|
|
2199
2206
|
severity: "secondary",
|
|
2200
2207
|
outlined: "",
|
|
2201
|
-
onClick:
|
|
2208
|
+
onClick: n[0] || (n[0] = (p) => o.$emit("cancel"))
|
|
2202
2209
|
}, {
|
|
2203
2210
|
default: b(() => [
|
|
2204
|
-
I(
|
|
2211
|
+
I(w(o.cancelText), 1)
|
|
2205
2212
|
]),
|
|
2206
2213
|
_: 1
|
|
2207
2214
|
}))
|
|
2208
2215
|
]),
|
|
2209
|
-
|
|
2210
|
-
|
|
2216
|
+
k(o.$slots, "submit", { submit: l }, () => [
|
|
2217
|
+
h(s, {
|
|
2211
2218
|
"data-cy": "submit-btn",
|
|
2212
2219
|
type: "submit",
|
|
2213
2220
|
severity: "primary",
|
|
2214
2221
|
class: "ms-auto"
|
|
2215
2222
|
}, {
|
|
2216
2223
|
default: b(() => [
|
|
2217
|
-
I(
|
|
2224
|
+
I(w(o.submitText), 1)
|
|
2218
2225
|
]),
|
|
2219
2226
|
_: 1
|
|
2220
2227
|
})
|
|
@@ -2223,7 +2230,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2223
2230
|
a.value ? (r(), f(ge, {
|
|
2224
2231
|
key: 2,
|
|
2225
2232
|
"data-cy": "loading-spinner"
|
|
2226
|
-
})) :
|
|
2233
|
+
})) : S("", !0)
|
|
2227
2234
|
], 16);
|
|
2228
2235
|
};
|
|
2229
2236
|
}
|
|
@@ -2233,7 +2240,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2233
2240
|
}, aa = ["for"], ia = {
|
|
2234
2241
|
key: 0,
|
|
2235
2242
|
class: "text-danger fw-600"
|
|
2236
|
-
},
|
|
2243
|
+
}, Ji = /* @__PURE__ */ $({
|
|
2237
2244
|
__name: "ForgeFormField",
|
|
2238
2245
|
props: /* @__PURE__ */ U({
|
|
2239
2246
|
name: {},
|
|
@@ -2252,35 +2259,35 @@ const _t = { key: 0 }, Pt = {
|
|
|
2252
2259
|
setup(e) {
|
|
2253
2260
|
const t = D(e, "modelValue"), a = e, i = (g) => {
|
|
2254
2261
|
a.type == "number" ? s(g.value) : s(g);
|
|
2255
|
-
}, { errors: l, value:
|
|
2262
|
+
}, { errors: l, value: o, errorMessage: n, handleChange: s, handleBlur: p } = ee(() => a.name, void 0, {
|
|
2256
2263
|
initialValue: t.value
|
|
2257
2264
|
}), c = T(() => l.value.length > 0);
|
|
2258
|
-
return ce(() =>
|
|
2265
|
+
return ce(() => o.value, (g) => {
|
|
2259
2266
|
t.value = g;
|
|
2260
2267
|
}, { immediate: !0 }), (g, d) => {
|
|
2261
|
-
const
|
|
2262
|
-
return a.type === "checkbox" ? (r(), f(fe,
|
|
2268
|
+
const F = Ve, C = Pe, V = oe, M = te, q = ne, y = be;
|
|
2269
|
+
return a.type === "checkbox" ? (r(), f(fe, z({
|
|
2263
2270
|
key: 0,
|
|
2264
2271
|
id: a.name,
|
|
2265
2272
|
label: a.fieldLabel
|
|
2266
2273
|
}, g.$attrs, {
|
|
2267
2274
|
name: a.name,
|
|
2268
2275
|
modelValue: t.value,
|
|
2269
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2276
|
+
"onUpdate:modelValue": d[0] || (d[0] = (x) => t.value = x)
|
|
2270
2277
|
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(), v("div", ta, [
|
|
2271
2278
|
m("div", {
|
|
2272
2279
|
"data-cy": "input-wrapper",
|
|
2273
|
-
class:
|
|
2280
|
+
class: B(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2274
2281
|
}, [
|
|
2275
2282
|
m("label", {
|
|
2276
2283
|
for: a.name,
|
|
2277
|
-
class:
|
|
2284
|
+
class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2278
2285
|
}, [
|
|
2279
|
-
I(
|
|
2280
|
-
g.required ? (r(), v("span", ia, "*")) :
|
|
2286
|
+
I(w(a.fieldLabel) + " ", 1),
|
|
2287
|
+
g.required ? (r(), v("span", ia, "*")) : S("", !0)
|
|
2281
2288
|
], 10, aa),
|
|
2282
|
-
|
|
2283
|
-
a.type === "number" ? (r(), f(u(ue),
|
|
2289
|
+
k(g.$slots, "default", J(K({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2290
|
+
a.type === "number" ? (r(), f(u(ue), z({
|
|
2284
2291
|
key: 0,
|
|
2285
2292
|
id: a.name
|
|
2286
2293
|
}, g.$attrs, {
|
|
@@ -2289,18 +2296,18 @@ const _t = { key: 0 }, Pt = {
|
|
|
2289
2296
|
class: { "is-invalid": c.value },
|
|
2290
2297
|
onInput: i,
|
|
2291
2298
|
modelValue: t.value,
|
|
2292
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
2293
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), f(
|
|
2299
|
+
"onUpdate:modelValue": d[1] || (d[1] = (x) => t.value = x)
|
|
2300
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), f(F, z({
|
|
2294
2301
|
key: 1,
|
|
2295
2302
|
id: a.name
|
|
2296
2303
|
}, g.$attrs, {
|
|
2297
2304
|
placeholder: a.placeholder,
|
|
2298
2305
|
class: { "is-invalid": c.value },
|
|
2299
2306
|
modelValue: t.value,
|
|
2300
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
2307
|
+
"onUpdate:modelValue": d[2] || (d[2] = (x) => t.value = x),
|
|
2301
2308
|
onInput: i,
|
|
2302
2309
|
onBlur: u(p)
|
|
2303
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), f(
|
|
2310
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), f(C, z({
|
|
2304
2311
|
key: 2,
|
|
2305
2312
|
id: a.name
|
|
2306
2313
|
}, g.$attrs, {
|
|
@@ -2308,48 +2315,48 @@ const _t = { key: 0 }, Pt = {
|
|
|
2308
2315
|
mask: a.mask,
|
|
2309
2316
|
class: { "is-invalid": c.value },
|
|
2310
2317
|
modelValue: t.value,
|
|
2311
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
2318
|
+
"onUpdate:modelValue": d[3] || (d[3] = (x) => t.value = x),
|
|
2312
2319
|
onComplete: i,
|
|
2313
2320
|
onBlur: u(p)
|
|
2314
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), f(V,
|
|
2321
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), f(V, z({
|
|
2315
2322
|
key: 3,
|
|
2316
2323
|
id: a.name
|
|
2317
2324
|
}, g.$attrs, {
|
|
2318
2325
|
placeholder: a.placeholder,
|
|
2319
2326
|
class: { "is-invalid": c.value },
|
|
2320
2327
|
modelValue: t.value,
|
|
2321
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
2328
|
+
"onUpdate:modelValue": d[4] || (d[4] = (x) => t.value = x),
|
|
2322
2329
|
onInput: i,
|
|
2323
2330
|
onBlur: u(p)
|
|
2324
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), f(M,
|
|
2331
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), f(M, z({ key: 4 }, { ...a, ...g.$attrs }, {
|
|
2325
2332
|
modelValue: t.value,
|
|
2326
|
-
"onUpdate:modelValue": d[5] || (d[5] = (
|
|
2333
|
+
"onUpdate:modelValue": d[5] || (d[5] = (x) => t.value = x),
|
|
2327
2334
|
class: { "is-invalid": c.value }
|
|
2328
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), f(q,
|
|
2335
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), f(q, z({ key: 5 }, { ...a, ...g.$attrs }, {
|
|
2329
2336
|
modelValue: t.value,
|
|
2330
|
-
"onUpdate:modelValue": d[6] || (d[6] = (
|
|
2337
|
+
"onUpdate:modelValue": d[6] || (d[6] = (x) => t.value = x),
|
|
2331
2338
|
class: { "is-invalid": c.value }
|
|
2332
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), f(Wt,
|
|
2339
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), f(Wt, z({ key: 6 }, { ...a, ...g.$attrs }, {
|
|
2333
2340
|
modelValue: t.value,
|
|
2334
|
-
"onUpdate:modelValue": d[7] || (d[7] = (
|
|
2341
|
+
"onUpdate:modelValue": d[7] || (d[7] = (x) => t.value = x),
|
|
2335
2342
|
class: { "is-invalid": c.value }
|
|
2336
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), f(y,
|
|
2343
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), f(y, z({ key: 7 }, { ...a, ...g.$attrs }, {
|
|
2337
2344
|
modelValue: t.value,
|
|
2338
|
-
"onUpdate:modelValue": d[8] || (d[8] = (
|
|
2345
|
+
"onUpdate:modelValue": d[8] || (d[8] = (x) => t.value = x),
|
|
2339
2346
|
class: { "is-invalid": c.value }
|
|
2340
|
-
}), null, 16, ["modelValue", "class"])) :
|
|
2347
|
+
}), null, 16, ["modelValue", "class"])) : S("", !0)
|
|
2341
2348
|
])
|
|
2342
2349
|
], 2),
|
|
2343
2350
|
H(m("small", {
|
|
2344
2351
|
"data-cy": "error",
|
|
2345
2352
|
class: "invalid-feedback"
|
|
2346
|
-
},
|
|
2353
|
+
}, w(u(n)), 513), [
|
|
2347
2354
|
[Y, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2348
2355
|
])
|
|
2349
2356
|
]));
|
|
2350
2357
|
};
|
|
2351
2358
|
}
|
|
2352
|
-
}),
|
|
2359
|
+
}), Ki = /* @__PURE__ */ $({
|
|
2353
2360
|
__name: "ForgeChip",
|
|
2354
2361
|
props: {
|
|
2355
2362
|
chipSeverity: { default: "primary" },
|
|
@@ -2383,10 +2390,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
2383
2390
|
]
|
|
2384
2391
|
}));
|
|
2385
2392
|
return (i, l) => {
|
|
2386
|
-
const
|
|
2387
|
-
return r(), f(
|
|
2393
|
+
const o = Me;
|
|
2394
|
+
return r(), f(o, z({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2388
2395
|
default: b(() => [
|
|
2389
|
-
(r(!0), v(O, null, N(i.$slots, (
|
|
2396
|
+
(r(!0), v(O, null, N(i.$slots, (n, s) => k(i.$slots, s, { slot: s })), 256))
|
|
2390
2397
|
]),
|
|
2391
2398
|
_: 3
|
|
2392
2399
|
}, 16, ["pt"]);
|
|
@@ -2427,7 +2434,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2427
2434
|
default:
|
|
2428
2435
|
return "bg-primary";
|
|
2429
2436
|
}
|
|
2430
|
-
}),
|
|
2437
|
+
}), o = T(() => ({
|
|
2431
2438
|
root: {
|
|
2432
2439
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2433
2440
|
},
|
|
@@ -2435,18 +2442,18 @@ const _t = { key: 0 }, Pt = {
|
|
|
2435
2442
|
class: [l.value, a.value, i.value, "progress-bar"]
|
|
2436
2443
|
}
|
|
2437
2444
|
}));
|
|
2438
|
-
return (
|
|
2445
|
+
return (n, s) => {
|
|
2439
2446
|
const p = De;
|
|
2440
|
-
return r(), f(p,
|
|
2447
|
+
return r(), f(p, z({ ...n.$attrs, ...t }, { pt: o.value }), {
|
|
2441
2448
|
default: b(() => [
|
|
2442
|
-
|
|
2449
|
+
k(n.$slots, "default")
|
|
2443
2450
|
]),
|
|
2444
2451
|
_: 3
|
|
2445
2452
|
}, 16, ["pt"]);
|
|
2446
2453
|
};
|
|
2447
2454
|
}
|
|
2448
2455
|
});
|
|
2449
|
-
var
|
|
2456
|
+
var oa = /* @__PURE__ */ $({
|
|
2450
2457
|
name: "VueDrawingCanvas",
|
|
2451
2458
|
props: {
|
|
2452
2459
|
strokeType: {
|
|
@@ -2757,15 +2764,15 @@ var na = /* @__PURE__ */ $({
|
|
|
2757
2764
|
e && this.save();
|
|
2758
2765
|
});
|
|
2759
2766
|
},
|
|
2760
|
-
wrapText(e, t, a, i, l,
|
|
2761
|
-
const
|
|
2762
|
-
var p = t.split(
|
|
2767
|
+
wrapText(e, t, a, i, l, o) {
|
|
2768
|
+
const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2769
|
+
var p = t.split(n).filter((M) => M.length > 0);
|
|
2763
2770
|
for (let M = 0; M < p.length; M++) {
|
|
2764
2771
|
for (var c = p[M].split(s).filter((q) => q.length > 0), g = "", d = 0; d < c.length; d++) {
|
|
2765
|
-
var
|
|
2766
|
-
V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), g = c[d] + " ", i +=
|
|
2772
|
+
var F = g + c[d] + " ", C = e.measureText(F), V = C.width;
|
|
2773
|
+
V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), g = c[d] + " ", i += o) : g = F;
|
|
2767
2774
|
}
|
|
2768
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), i += c.length > 0 ?
|
|
2775
|
+
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), i += c.length > 0 ? o : 0;
|
|
2769
2776
|
}
|
|
2770
2777
|
},
|
|
2771
2778
|
save() {
|
|
@@ -2782,20 +2789,20 @@ var na = /* @__PURE__ */ $({
|
|
|
2782
2789
|
drawWatermark(e, t, a) {
|
|
2783
2790
|
if (a.type === "Image") {
|
|
2784
2791
|
let i = a.imageStyle ? a.imageStyle.width ? a.imageStyle.width : Number(this.width) : Number(this.width), l = a.imageStyle ? a.imageStyle.height ? a.imageStyle.height : Number(this.height) : Number(this.height);
|
|
2785
|
-
const
|
|
2786
|
-
|
|
2787
|
-
a && t && t.drawImage(
|
|
2788
|
-
let
|
|
2789
|
-
if (
|
|
2790
|
-
return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image",
|
|
2792
|
+
const o = new Image();
|
|
2793
|
+
o.src = a.source, o.onload = () => {
|
|
2794
|
+
a && t && t.drawImage(o, a.x, a.y, Number(i), Number(l));
|
|
2795
|
+
let n = document.createElement("canvas"), s = n.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, c = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2796
|
+
if (n.width = Number(p), n.height = Number(c), s)
|
|
2797
|
+
return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image", n.toDataURL("image/" + this.saveAs, 1)), n.toDataURL("image/" + this.saveAs, 1);
|
|
2791
2798
|
};
|
|
2792
2799
|
} else if (a.type === "Text") {
|
|
2793
|
-
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start",
|
|
2794
|
-
if (t.font = i, t.textAlign = l, t.textBaseline =
|
|
2795
|
-
let d,
|
|
2796
|
-
a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ?
|
|
2800
|
+
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", o = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", n = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
|
|
2801
|
+
if (t.font = i, t.textAlign = l, t.textBaseline = o, a.fontStyle && a.fontStyle.rotate) {
|
|
2802
|
+
let d, F;
|
|
2803
|
+
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);
|
|
2797
2804
|
}
|
|
2798
|
-
a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle =
|
|
2805
|
+
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 = n, 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));
|
|
2799
2806
|
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, g = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2800
2807
|
if (s.width = Number(c), s.height = Number(g), p)
|
|
2801
2808
|
return p.drawImage(e, 0, 0, Number(c), Number(g)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
|
|
@@ -2836,7 +2843,7 @@ var na = /* @__PURE__ */ $({
|
|
|
2836
2843
|
});
|
|
2837
2844
|
}
|
|
2838
2845
|
});
|
|
2839
|
-
const
|
|
2846
|
+
const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1 gap-1" }, Zi = /* @__PURE__ */ $({
|
|
2840
2847
|
__name: "ForgeScratchpad",
|
|
2841
2848
|
props: {
|
|
2842
2849
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2849,7 +2856,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2849
2856
|
},
|
|
2850
2857
|
emits: ["save"],
|
|
2851
2858
|
setup(e, { emit: t }) {
|
|
2852
|
-
const a = e, i = t, l =
|
|
2859
|
+
const a = e, i = t, l = Fe("drawingCanvas"), o = _(), n = () => {
|
|
2853
2860
|
l == null || l.value.reset();
|
|
2854
2861
|
}, s = () => {
|
|
2855
2862
|
l == null || l.value.redo();
|
|
@@ -2859,13 +2866,13 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2859
2866
|
i("save", l.value.isEmpty());
|
|
2860
2867
|
};
|
|
2861
2868
|
return (g, d) => {
|
|
2862
|
-
const
|
|
2863
|
-
return r(), v("div",
|
|
2864
|
-
|
|
2869
|
+
const F = A;
|
|
2870
|
+
return r(), v("div", na, [
|
|
2871
|
+
h(u(oa), z({
|
|
2865
2872
|
ref_key: "drawingCanvas",
|
|
2866
2873
|
ref: l,
|
|
2867
|
-
image:
|
|
2868
|
-
"onUpdate:image": d[0] || (d[0] = (
|
|
2874
|
+
image: o.value,
|
|
2875
|
+
"onUpdate:image": d[0] || (d[0] = (C) => o.value = C),
|
|
2869
2876
|
"data-cy": "drawing-canvas",
|
|
2870
2877
|
class: "border canvas"
|
|
2871
2878
|
}, { ...g.$attrs }, {
|
|
@@ -2875,7 +2882,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2875
2882
|
"line-join": g.lineJoin
|
|
2876
2883
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2877
2884
|
m("div", sa, [
|
|
2878
|
-
a.showUndo ? (r(), f(
|
|
2885
|
+
a.showUndo ? (r(), f(F, {
|
|
2879
2886
|
key: 0,
|
|
2880
2887
|
onClick: p,
|
|
2881
2888
|
outlined: "",
|
|
@@ -2885,8 +2892,8 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2885
2892
|
I("Undo")
|
|
2886
2893
|
])),
|
|
2887
2894
|
_: 1
|
|
2888
|
-
})) :
|
|
2889
|
-
a.showRedo ? (r(), f(
|
|
2895
|
+
})) : S("", !0),
|
|
2896
|
+
a.showRedo ? (r(), f(F, {
|
|
2890
2897
|
key: 1,
|
|
2891
2898
|
onClick: s,
|
|
2892
2899
|
outlined: "",
|
|
@@ -2896,10 +2903,10 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2896
2903
|
I("Redo")
|
|
2897
2904
|
])),
|
|
2898
2905
|
_: 1
|
|
2899
|
-
})) :
|
|
2900
|
-
a.showClear ? (r(), f(
|
|
2906
|
+
})) : S("", !0),
|
|
2907
|
+
a.showClear ? (r(), f(F, {
|
|
2901
2908
|
key: 2,
|
|
2902
|
-
onClick:
|
|
2909
|
+
onClick: n,
|
|
2903
2910
|
outlined: "",
|
|
2904
2911
|
"data-cy": "clear-button"
|
|
2905
2912
|
}, {
|
|
@@ -2907,8 +2914,8 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2907
2914
|
I("Clear")
|
|
2908
2915
|
])),
|
|
2909
2916
|
_: 1
|
|
2910
|
-
})) :
|
|
2911
|
-
a.showSave ? (r(), f(
|
|
2917
|
+
})) : S("", !0),
|
|
2918
|
+
a.showSave ? (r(), f(F, {
|
|
2912
2919
|
key: 3,
|
|
2913
2920
|
onClick: c,
|
|
2914
2921
|
class: "ms-auto",
|
|
@@ -2918,12 +2925,12 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2918
2925
|
I("Save")
|
|
2919
2926
|
])),
|
|
2920
2927
|
_: 1
|
|
2921
|
-
})) :
|
|
2928
|
+
})) : S("", !0)
|
|
2922
2929
|
])
|
|
2923
2930
|
]);
|
|
2924
2931
|
};
|
|
2925
2932
|
}
|
|
2926
|
-
}), ra = { class: "value text-white w-100 text-center" },
|
|
2933
|
+
}), ra = { class: "value text-white w-100 text-center" }, Xi = /* @__PURE__ */ $({
|
|
2927
2934
|
__name: "ForgeStatWidget",
|
|
2928
2935
|
props: {
|
|
2929
2936
|
size: { default: "md" },
|
|
@@ -2931,15 +2938,15 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2931
2938
|
},
|
|
2932
2939
|
setup(e) {
|
|
2933
2940
|
const t = e;
|
|
2934
|
-
return (a, i) => (r(), v("div",
|
|
2941
|
+
return (a, i) => (r(), v("div", z(a.$attrs, {
|
|
2935
2942
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2936
2943
|
}), [
|
|
2937
2944
|
m("span", ra, [
|
|
2938
|
-
|
|
2945
|
+
k(a.$slots, "default")
|
|
2939
2946
|
])
|
|
2940
2947
|
], 16));
|
|
2941
2948
|
}
|
|
2942
|
-
}), da = { key: 0 },
|
|
2949
|
+
}), da = { key: 0 }, Qi = /* @__PURE__ */ $({
|
|
2943
2950
|
__name: "ForgeStepper",
|
|
2944
2951
|
props: {
|
|
2945
2952
|
currentStep: { default: 1 },
|
|
@@ -2988,30 +2995,30 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2988
2995
|
}));
|
|
2989
2996
|
return (i, l) => (r(), f(u(Ne), { value: i.currentStep }, {
|
|
2990
2997
|
default: b(() => [
|
|
2991
|
-
|
|
2998
|
+
h(u(Ue), null, {
|
|
2992
2999
|
default: b(() => [
|
|
2993
|
-
(r(!0), v(O, null, N(i.steps, (
|
|
2994
|
-
key:
|
|
2995
|
-
value:
|
|
2996
|
-
disabled:
|
|
3000
|
+
(r(!0), v(O, null, N(i.steps, (o) => (r(), f(u(Oe), z({
|
|
3001
|
+
key: o.value,
|
|
3002
|
+
value: o.value,
|
|
3003
|
+
disabled: o.disabled,
|
|
2997
3004
|
ref_for: !0
|
|
2998
3005
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
2999
3006
|
default: b(() => [
|
|
3000
|
-
i.showStepLabel ? (r(), v("div", da,
|
|
3007
|
+
i.showStepLabel ? (r(), v("div", da, w(o.label), 1)) : S("", !0)
|
|
3001
3008
|
]),
|
|
3002
3009
|
_: 2
|
|
3003
3010
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
3004
3011
|
]),
|
|
3005
3012
|
_: 1
|
|
3006
3013
|
}),
|
|
3007
|
-
|
|
3014
|
+
h(u(qe), null, {
|
|
3008
3015
|
default: b(() => [
|
|
3009
|
-
(r(!0), v(O, null, N(i.steps, (
|
|
3010
|
-
key:
|
|
3011
|
-
value:
|
|
3016
|
+
(r(!0), v(O, null, N(i.steps, (o) => (r(), f(u(Ae), {
|
|
3017
|
+
key: o.value,
|
|
3018
|
+
value: o.value
|
|
3012
3019
|
}, {
|
|
3013
3020
|
default: b(() => [
|
|
3014
|
-
|
|
3021
|
+
k(i.$slots, "step" + o.value)
|
|
3015
3022
|
]),
|
|
3016
3023
|
_: 2
|
|
3017
3024
|
}, 1032, ["value"]))), 128))
|
|
@@ -3022,7 +3029,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3022
3029
|
_: 3
|
|
3023
3030
|
}, 8, ["value"]));
|
|
3024
3031
|
}
|
|
3025
|
-
}), pa = { class: "p-4 text-wrap w-100" }, ca = { class: "p-4 text-wrap w-100" },
|
|
3032
|
+
}), pa = { class: "p-4 text-wrap w-100" }, ca = { class: "p-4 text-wrap w-100" }, el = /* @__PURE__ */ $({
|
|
3026
3033
|
__name: "ForgeTile",
|
|
3027
3034
|
props: {
|
|
3028
3035
|
severity: { default: "primary" },
|
|
@@ -3032,31 +3039,31 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3032
3039
|
},
|
|
3033
3040
|
setup(e) {
|
|
3034
3041
|
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" : ""}`);
|
|
3035
|
-
return (l,
|
|
3036
|
-
const
|
|
3037
|
-
return t.clickable ? (r(), f(
|
|
3042
|
+
return (l, o) => {
|
|
3043
|
+
const n = A;
|
|
3044
|
+
return t.clickable ? (r(), f(n, {
|
|
3038
3045
|
key: 0,
|
|
3039
|
-
class:
|
|
3046
|
+
class: B(["d-flex w-100 p-0 text-body", a.value]),
|
|
3040
3047
|
severity: t.severity,
|
|
3041
3048
|
unstyled: "",
|
|
3042
3049
|
"data-cy": "button-tile"
|
|
3043
3050
|
}, {
|
|
3044
3051
|
default: b(() => [
|
|
3045
3052
|
m("div", pa, [
|
|
3046
|
-
|
|
3047
|
-
|
|
3053
|
+
k(l.$slots, "default", {}, () => [
|
|
3054
|
+
o[0] || (o[0] = I("Tile Content"))
|
|
3048
3055
|
])
|
|
3049
3056
|
])
|
|
3050
3057
|
]),
|
|
3051
3058
|
_: 3
|
|
3052
3059
|
}, 8, ["severity", "class"])) : (r(), v("div", {
|
|
3053
3060
|
key: 1,
|
|
3054
|
-
class:
|
|
3061
|
+
class: B(["d-flex w-100", i.value]),
|
|
3055
3062
|
"data-cy": "tile"
|
|
3056
3063
|
}, [
|
|
3057
3064
|
m("div", ca, [
|
|
3058
|
-
|
|
3059
|
-
|
|
3065
|
+
k(l.$slots, "default", {}, () => [
|
|
3066
|
+
o[1] || (o[1] = I("Tile Content"))
|
|
3060
3067
|
])
|
|
3061
3068
|
])
|
|
3062
3069
|
], 2));
|
|
@@ -3081,16 +3088,16 @@ const ua = {
|
|
|
3081
3088
|
},
|
|
3082
3089
|
emits: ["update:perPage"],
|
|
3083
3090
|
setup(e, { emit: t }) {
|
|
3084
|
-
const a = t, i = e, l = (
|
|
3085
|
-
a("update:perPage",
|
|
3086
|
-
},
|
|
3087
|
-
const
|
|
3088
|
-
return `${
|
|
3091
|
+
const a = t, i = e, l = (n) => {
|
|
3092
|
+
a("update:perPage", n.value);
|
|
3093
|
+
}, o = T(() => {
|
|
3094
|
+
const n = Math.ceil(i.total / i.perPage);
|
|
3095
|
+
return `${n} ${Q(n, "page")}`;
|
|
3089
3096
|
});
|
|
3090
|
-
return (
|
|
3097
|
+
return (n, s) => (r(), v("div", ua, [
|
|
3091
3098
|
s[2] || (s[2] = I(" Number of results per page ")),
|
|
3092
3099
|
m("div", ma, [
|
|
3093
|
-
|
|
3100
|
+
h(u(te), {
|
|
3094
3101
|
options: i.pageSizes,
|
|
3095
3102
|
"model-value": i.perPage,
|
|
3096
3103
|
class: "page-size",
|
|
@@ -3099,14 +3106,14 @@ const ua = {
|
|
|
3099
3106
|
]),
|
|
3100
3107
|
i.total ? (r(), v("div", va, [
|
|
3101
3108
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3102
|
-
m("span", fa,
|
|
3103
|
-
])) :
|
|
3109
|
+
m("span", fa, w(i.total) + " " + w(u(Q)(i.total, "result")) + " across " + w(o.value), 1)
|
|
3110
|
+
])) : S("", !0)
|
|
3104
3111
|
]));
|
|
3105
3112
|
}
|
|
3106
3113
|
}), ba = { class: "position-relative" }, ya = { "data-cy": "above-table-slot" }, xa = { class: "d-flex w-100" }, ha = {
|
|
3107
3114
|
class: "mx-auto",
|
|
3108
3115
|
"data-cy": "empty-message"
|
|
3109
|
-
}, wa = { class: "d-flex" }, ka = { class: "d-flex align-items-end mb-2" }, $a = { key: 0 },
|
|
3116
|
+
}, wa = { class: "d-flex" }, ka = { class: "d-flex align-items-end mb-2" }, $a = { key: 0 }, Fa = { class: "ms-auto" }, tl = /* @__PURE__ */ $({
|
|
3110
3117
|
__name: "ForgeTable",
|
|
3111
3118
|
props: {
|
|
3112
3119
|
value: {},
|
|
@@ -3192,15 +3199,15 @@ const ua = {
|
|
|
3192
3199
|
},
|
|
3193
3200
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3194
3201
|
setup(e, { emit: t }) {
|
|
3195
|
-
const a = t, i = e, l = _(),
|
|
3202
|
+
const a = t, i = e, l = _(), o = _([5, 10, 20, 50, 100]), n = _(10), s = _({
|
|
3196
3203
|
filters: i.filters,
|
|
3197
|
-
perPage:
|
|
3204
|
+
perPage: n.value,
|
|
3198
3205
|
page: 0,
|
|
3199
3206
|
sortDirection: "None",
|
|
3200
3207
|
sortField: "",
|
|
3201
3208
|
total: i.totalRecords ?? i.value.length
|
|
3202
3209
|
}), p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
|
|
3203
|
-
const y = Math.ceil(p.value /
|
|
3210
|
+
const y = Math.ceil(p.value / n.value);
|
|
3204
3211
|
return `${y} ${Q(y, "page")}`;
|
|
3205
3212
|
}), g = T(() => ({
|
|
3206
3213
|
thead: () => ({
|
|
@@ -3231,124 +3238,124 @@ const ua = {
|
|
|
3231
3238
|
for (const y in i.filters)
|
|
3232
3239
|
typeof i.filters[y] == "string" ? i.filters[y] = "" : i.filters[y].value = null;
|
|
3233
3240
|
V(i.filters);
|
|
3234
|
-
},
|
|
3241
|
+
}, F = () => {
|
|
3235
3242
|
l.value.exportCSV();
|
|
3236
|
-
},
|
|
3237
|
-
var
|
|
3238
|
-
s.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((
|
|
3243
|
+
}, C = (y) => {
|
|
3244
|
+
var x;
|
|
3245
|
+
s.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((x = y.sortField) == null ? void 0 : x.toString()) ?? "", a("update:tableContext", s.value), a("sort", y);
|
|
3239
3246
|
}, V = (y) => {
|
|
3240
3247
|
s.value.filters = y, a("update:tableContext", s.value), a("update:filters", y);
|
|
3241
3248
|
}, M = (y) => {
|
|
3242
3249
|
s.value.page = y.page, a("update:tableContext", s.value), a("page", y);
|
|
3243
3250
|
}, q = () => {
|
|
3244
|
-
s.value.perPage =
|
|
3251
|
+
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3245
3252
|
};
|
|
3246
3253
|
return ce(() => i.filters, (y) => {
|
|
3247
3254
|
s.value.filters = y, a("update:tableContext", s.value);
|
|
3248
|
-
}, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y,
|
|
3255
|
+
}, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y, x) => (r(), v("div", ba, [
|
|
3249
3256
|
m("span", ya, [
|
|
3250
|
-
|
|
3257
|
+
k(y.$slots, "above-table")
|
|
3251
3258
|
]),
|
|
3252
|
-
|
|
3259
|
+
h(u(Ee), z({
|
|
3253
3260
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3254
3261
|
}, { ...i, ...y.$attrs }, {
|
|
3255
3262
|
pt: g.value,
|
|
3256
|
-
rows:
|
|
3263
|
+
rows: n.value,
|
|
3257
3264
|
"total-records": p.value,
|
|
3258
3265
|
"filter-display": i.filters ? "row" : void 0,
|
|
3259
3266
|
ref_key: "forgeTable",
|
|
3260
3267
|
ref: l,
|
|
3261
3268
|
"data-cy": "table",
|
|
3262
3269
|
"onUpdate:filters": V,
|
|
3263
|
-
onSort:
|
|
3270
|
+
onSort: C,
|
|
3264
3271
|
onPage: M,
|
|
3265
3272
|
showHeaders: ""
|
|
3266
3273
|
}), ie({
|
|
3267
3274
|
empty: b(() => [
|
|
3268
3275
|
m("div", xa, [
|
|
3269
|
-
m("h5", ha,
|
|
3276
|
+
m("h5", ha, w(y.emptyMessage ?? "No items Found."), 1)
|
|
3270
3277
|
])
|
|
3271
3278
|
]),
|
|
3272
3279
|
header: b(() => [
|
|
3273
3280
|
m("div", {
|
|
3274
|
-
class:
|
|
3281
|
+
class: B(i.loading ? "opacity-50" : "")
|
|
3275
3282
|
}, [
|
|
3276
3283
|
m("div", wa, [
|
|
3277
3284
|
m("div", ka, [
|
|
3278
3285
|
y.paginator && !y.legacyPaginationFooter ? (r(), v("span", $a, [
|
|
3279
|
-
|
|
3286
|
+
h(ga, {
|
|
3280
3287
|
total: p.value,
|
|
3281
|
-
"page-sizes":
|
|
3282
|
-
"per-page":
|
|
3288
|
+
"page-sizes": o.value,
|
|
3289
|
+
"per-page": n.value,
|
|
3283
3290
|
"onUpdate:perPage": [
|
|
3284
|
-
|
|
3291
|
+
x[0] || (x[0] = (P) => n.value = P),
|
|
3285
3292
|
q
|
|
3286
3293
|
]
|
|
3287
3294
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3288
|
-
])) :
|
|
3295
|
+
])) : S("", !0)
|
|
3289
3296
|
]),
|
|
3290
|
-
m("div",
|
|
3297
|
+
m("div", Fa, [
|
|
3291
3298
|
y.showClearButton ? (r(), f(u(A), {
|
|
3292
3299
|
key: 0,
|
|
3293
3300
|
outlined: "",
|
|
3294
|
-
class:
|
|
3301
|
+
class: B(y.showExporterButton ? "me-2" : ""),
|
|
3295
3302
|
onClick: d,
|
|
3296
3303
|
"data-cy": "clear-all"
|
|
3297
3304
|
}, {
|
|
3298
3305
|
default: b(() => [
|
|
3299
|
-
|
|
3306
|
+
h(u(j), {
|
|
3300
3307
|
icon: "bi:funnel-fill",
|
|
3301
3308
|
width: "24",
|
|
3302
3309
|
height: "24"
|
|
3303
3310
|
}),
|
|
3304
|
-
|
|
3311
|
+
x[2] || (x[2] = I(" Clear "))
|
|
3305
3312
|
]),
|
|
3306
3313
|
_: 1
|
|
3307
|
-
}, 8, ["class"])) :
|
|
3314
|
+
}, 8, ["class"])) : S("", !0),
|
|
3308
3315
|
y.showExporterButton ? (r(), f(u(A), {
|
|
3309
3316
|
key: 1,
|
|
3310
3317
|
outlined: "",
|
|
3311
|
-
onClick:
|
|
3318
|
+
onClick: F,
|
|
3312
3319
|
"data-cy": "exporter"
|
|
3313
3320
|
}, {
|
|
3314
3321
|
default: b(() => [
|
|
3315
|
-
|
|
3322
|
+
h(u(j), {
|
|
3316
3323
|
icon: "typcn:export",
|
|
3317
3324
|
width: "24",
|
|
3318
3325
|
height: "24"
|
|
3319
3326
|
}),
|
|
3320
|
-
|
|
3327
|
+
x[3] || (x[3] = I(" Export "))
|
|
3321
3328
|
]),
|
|
3322
3329
|
_: 1
|
|
3323
|
-
})) :
|
|
3324
|
-
|
|
3330
|
+
})) : S("", !0),
|
|
3331
|
+
k(y.$slots, "column-customiser")
|
|
3325
3332
|
])
|
|
3326
3333
|
])
|
|
3327
3334
|
], 2)
|
|
3328
3335
|
]),
|
|
3329
3336
|
default: b(() => [
|
|
3330
|
-
|
|
3337
|
+
k(y.$slots, "default")
|
|
3331
3338
|
]),
|
|
3332
3339
|
_: 2
|
|
3333
3340
|
}, [
|
|
3334
3341
|
N(y.$slots, (P, L) => ({
|
|
3335
3342
|
name: L,
|
|
3336
3343
|
fn: b((ae) => [
|
|
3337
|
-
|
|
3344
|
+
k(y.$slots, L, J(K(ae || {})))
|
|
3338
3345
|
])
|
|
3339
3346
|
})),
|
|
3340
3347
|
y.legacyPaginationFooter ? {
|
|
3341
3348
|
name: "paginatorstart",
|
|
3342
3349
|
fn: b(() => [
|
|
3343
3350
|
m("span", {
|
|
3344
|
-
class:
|
|
3351
|
+
class: B(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3345
3352
|
"data-cy": "legacy-page-size"
|
|
3346
3353
|
}, [
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
options:
|
|
3350
|
-
modelValue:
|
|
3351
|
-
"onUpdate:modelValue":
|
|
3354
|
+
x[4] || (x[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3355
|
+
h(u(te), {
|
|
3356
|
+
options: o.value,
|
|
3357
|
+
modelValue: n.value,
|
|
3358
|
+
"onUpdate:modelValue": x[1] || (x[1] = (P) => n.value = P),
|
|
3352
3359
|
class: "ms-2",
|
|
3353
3360
|
onClick: q
|
|
3354
3361
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -3361,15 +3368,15 @@ const ua = {
|
|
|
3361
3368
|
fn: b(() => [
|
|
3362
3369
|
m("span", {
|
|
3363
3370
|
"data-cy": "legacy-total",
|
|
3364
|
-
class:
|
|
3365
|
-
},
|
|
3371
|
+
class: B(i.loading ? "opacity-50" : "")
|
|
3372
|
+
}, w(p.value) + " " + w(u(Q)(p.value, "result")) + " across " + w(c.value), 3)
|
|
3366
3373
|
]),
|
|
3367
3374
|
key: "1"
|
|
3368
3375
|
} : void 0
|
|
3369
3376
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3370
3377
|
]));
|
|
3371
3378
|
}
|
|
3372
|
-
}),
|
|
3379
|
+
}), Ba = { class: "d-flex position-relative" }, Sa = { class: "d-flex w-100" }, al = /* @__PURE__ */ $({
|
|
3373
3380
|
__name: "ForgeFilterHeader",
|
|
3374
3381
|
props: /* @__PURE__ */ U({
|
|
3375
3382
|
dataType: {},
|
|
@@ -3384,39 +3391,39 @@ const ua = {
|
|
|
3384
3391
|
}),
|
|
3385
3392
|
emits: ["update:modelValue"],
|
|
3386
3393
|
setup(e) {
|
|
3387
|
-
const t = D(e, "modelValue"), a = (l,
|
|
3394
|
+
const t = D(e, "modelValue"), a = (l, o) => {
|
|
3388
3395
|
if (!l || Array.isArray(l) && l.length === 0)
|
|
3389
|
-
return
|
|
3390
|
-
const
|
|
3396
|
+
return o;
|
|
3397
|
+
const n = (s) => {
|
|
3391
3398
|
var c;
|
|
3392
3399
|
const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
|
|
3393
3400
|
(g) => e.optionValue ? g[e.optionValue] === s : Object.keys(g).every((d) => s.hasOwnProperty(d) && g[d] === s[d])
|
|
3394
3401
|
);
|
|
3395
3402
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3396
3403
|
};
|
|
3397
|
-
return Array.isArray(l) ? l.map(
|
|
3404
|
+
return Array.isArray(l) ? l.map(n).join(", ") : n(l);
|
|
3398
3405
|
}, i = () => {
|
|
3399
3406
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3400
3407
|
};
|
|
3401
|
-
return (l,
|
|
3402
|
-
const
|
|
3403
|
-
return r(), v("div",
|
|
3404
|
-
l.dataType === "numeric" ? (r(), f(
|
|
3408
|
+
return (l, o) => {
|
|
3409
|
+
const n = ue, s = A;
|
|
3410
|
+
return r(), v("div", Ba, [
|
|
3411
|
+
l.dataType === "numeric" ? (r(), f(n, z({
|
|
3405
3412
|
key: 0,
|
|
3406
3413
|
modelValue: t.value,
|
|
3407
|
-
"onUpdate:modelValue":
|
|
3414
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => t.value = p),
|
|
3408
3415
|
modelModifiers: { trim: !0 }
|
|
3409
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), f(be,
|
|
3416
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), f(be, z({
|
|
3410
3417
|
key: 1,
|
|
3411
3418
|
modelValue: t.value,
|
|
3412
|
-
"onUpdate:modelValue":
|
|
3419
|
+
"onUpdate:modelValue": o[1] || (o[1] = (p) => t.value = p)
|
|
3413
3420
|
}, l.$attrs, {
|
|
3414
3421
|
"show-icon": !1,
|
|
3415
3422
|
"show-on-focus": !0
|
|
3416
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), f(u(te),
|
|
3423
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), f(u(te), z({
|
|
3417
3424
|
key: 2,
|
|
3418
3425
|
modelValue: t.value,
|
|
3419
|
-
"onUpdate:modelValue":
|
|
3426
|
+
"onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p)
|
|
3420
3427
|
}, l.$attrs, {
|
|
3421
3428
|
options: l.dropdownOptions,
|
|
3422
3429
|
"option-value": l.optionValue,
|
|
@@ -3425,8 +3432,8 @@ const ua = {
|
|
|
3425
3432
|
value: b(({ value: p, placeholder: c }) => [
|
|
3426
3433
|
m("div", Sa, [
|
|
3427
3434
|
m("span", {
|
|
3428
|
-
class:
|
|
3429
|
-
},
|
|
3435
|
+
class: B({ "filter-placeholder": p === null })
|
|
3436
|
+
}, w(a(p, c)), 3),
|
|
3430
3437
|
l.showClearButton && t.value !== null ? (r(), f(s, {
|
|
3431
3438
|
key: 0,
|
|
3432
3439
|
onClick: G(i, ["prevent"]),
|
|
@@ -3434,7 +3441,7 @@ const ua = {
|
|
|
3434
3441
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3435
3442
|
}, {
|
|
3436
3443
|
default: b(() => [
|
|
3437
|
-
|
|
3444
|
+
h(u(j), {
|
|
3438
3445
|
icon: "bi:x",
|
|
3439
3446
|
width: "1rem",
|
|
3440
3447
|
height: "1rem",
|
|
@@ -3442,24 +3449,24 @@ const ua = {
|
|
|
3442
3449
|
})
|
|
3443
3450
|
]),
|
|
3444
3451
|
_: 1
|
|
3445
|
-
})) :
|
|
3452
|
+
})) : S("", !0)
|
|
3446
3453
|
])
|
|
3447
3454
|
]),
|
|
3448
3455
|
_: 1
|
|
3449
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), f(u(
|
|
3456
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), f(u(ne), z({
|
|
3450
3457
|
key: 3,
|
|
3451
3458
|
modelValue: t.value,
|
|
3452
|
-
"onUpdate:modelValue":
|
|
3459
|
+
"onUpdate:modelValue": o[3] || (o[3] = (p) => t.value = p)
|
|
3453
3460
|
}, l.$attrs, {
|
|
3454
3461
|
options: l.dropdownOptions,
|
|
3455
3462
|
showToggleAll: !1,
|
|
3456
3463
|
"option-label": l.optionLabel,
|
|
3457
3464
|
"option-value": l.optionValue,
|
|
3458
3465
|
filter: ""
|
|
3459
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), f(u(
|
|
3466
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), f(u(oe), z({
|
|
3460
3467
|
key: 4,
|
|
3461
3468
|
modelValue: t.value,
|
|
3462
|
-
"onUpdate:modelValue":
|
|
3469
|
+
"onUpdate:modelValue": o[4] || (o[4] = (p) => t.value = p),
|
|
3463
3470
|
modelModifiers: { trim: !0 }
|
|
3464
3471
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3465
3472
|
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(), f(s, {
|
|
@@ -3469,7 +3476,7 @@ const ua = {
|
|
|
3469
3476
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3470
3477
|
}, {
|
|
3471
3478
|
default: b(() => [
|
|
3472
|
-
|
|
3479
|
+
h(u(j), {
|
|
3473
3480
|
icon: "bi:x",
|
|
3474
3481
|
width: "1rem",
|
|
3475
3482
|
height: "1rem",
|
|
@@ -3477,7 +3484,7 @@ const ua = {
|
|
|
3477
3484
|
})
|
|
3478
3485
|
]),
|
|
3479
3486
|
_: 1
|
|
3480
|
-
})) :
|
|
3487
|
+
})) : S("", !0)
|
|
3481
3488
|
]);
|
|
3482
3489
|
};
|
|
3483
3490
|
}
|
|
@@ -4548,11 +4555,11 @@ class ye {
|
|
|
4548
4555
|
define(t, a = !1) {
|
|
4549
4556
|
for (let [i, l] of Object.entries(t)) {
|
|
4550
4557
|
i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), E(this, R, "f").has(i) || E(this, R, "f").set(i, /* @__PURE__ */ new Set());
|
|
4551
|
-
const
|
|
4552
|
-
let
|
|
4558
|
+
const o = E(this, R, "f").get(i);
|
|
4559
|
+
let n = !0;
|
|
4553
4560
|
for (let s of l) {
|
|
4554
4561
|
const p = s.startsWith("*");
|
|
4555
|
-
if (s = p ? s.slice(1) : s,
|
|
4562
|
+
if (s = p ? s.slice(1) : s, o == null || o.add(s), n && E(this, Z, "f").set(i, s), n = !1, p)
|
|
4556
4563
|
continue;
|
|
4557
4564
|
const c = E(this, W, "f").get(s);
|
|
4558
4565
|
if (c && c != i && !a)
|
|
@@ -4593,15 +4600,15 @@ class ye {
|
|
|
4593
4600
|
W = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
|
|
4594
4601
|
const Ca = new ye(de, re)._freeze();
|
|
4595
4602
|
function xe(e, t, a, i) {
|
|
4596
|
-
const l = t.flatMap((
|
|
4597
|
-
return t = t.map((
|
|
4598
|
-
const
|
|
4603
|
+
const l = t.flatMap((o) => o.file);
|
|
4604
|
+
return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
|
|
4605
|
+
const n = l.findIndex((p) => p.name === o.name);
|
|
4599
4606
|
let s = "Not Uploaded";
|
|
4600
|
-
|
|
4601
|
-
file:
|
|
4607
|
+
n === -1 ? ((!a.includes(o.type) || !(o.size <= i)) && (s = a.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
4608
|
+
file: o,
|
|
4602
4609
|
status: s,
|
|
4603
4610
|
blobFileName: null
|
|
4604
|
-
})) : t[
|
|
4611
|
+
})) : t[n].status = "Duplicate";
|
|
4605
4612
|
}), t;
|
|
4606
4613
|
}
|
|
4607
4614
|
async function za(e, t) {
|
|
@@ -4620,12 +4627,12 @@ function pe(e, t = !0, a = 1) {
|
|
|
4620
4627
|
if (Math.abs(e) < i)
|
|
4621
4628
|
return e + " B";
|
|
4622
4629
|
const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
4623
|
-
let
|
|
4624
|
-
const
|
|
4630
|
+
let o = -1;
|
|
4631
|
+
const n = 10 ** a;
|
|
4625
4632
|
do
|
|
4626
|
-
e /= i, ++
|
|
4627
|
-
while (Math.round(Math.abs(e) *
|
|
4628
|
-
return e.toFixed(a) + " " + l[
|
|
4633
|
+
e /= i, ++o;
|
|
4634
|
+
while (Math.round(Math.abs(e) * n) / n >= i && o < l.length - 1);
|
|
4635
|
+
return e.toFixed(a) + " " + l[o];
|
|
4629
4636
|
}
|
|
4630
4637
|
function Ta(e) {
|
|
4631
4638
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
@@ -4652,30 +4659,30 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4652
4659
|
}),
|
|
4653
4660
|
emits: ["update:modelValue"],
|
|
4654
4661
|
setup(e) {
|
|
4655
|
-
const t = D(e, "modelValue"), a = _(), i = (
|
|
4656
|
-
t.value = xe(
|
|
4662
|
+
const t = D(e, "modelValue"), a = _(), i = (n) => a.value.toggle(n), l = T(() => e.maxFileInput <= t.value.length), o = (n) => {
|
|
4663
|
+
t.value = xe(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
4657
4664
|
};
|
|
4658
|
-
return (
|
|
4665
|
+
return (n, s) => {
|
|
4659
4666
|
const p = A;
|
|
4660
4667
|
return r(), v("div", _a, [
|
|
4661
|
-
|
|
4668
|
+
k(n.$slots, "message"),
|
|
4662
4669
|
m("div", null, [
|
|
4663
4670
|
m("input", {
|
|
4664
4671
|
id: "file-input",
|
|
4665
4672
|
type: "file",
|
|
4666
4673
|
class: "d-none",
|
|
4667
|
-
accept:
|
|
4674
|
+
accept: n.acceptedFileTypes.join(", "),
|
|
4668
4675
|
disabled: l.value,
|
|
4669
|
-
multiple:
|
|
4670
|
-
onInput: s[0] || (s[0] = (c) =>
|
|
4676
|
+
multiple: n.maxFileInput > 1,
|
|
4677
|
+
onInput: s[0] || (s[0] = (c) => o([...c.target.files]))
|
|
4671
4678
|
}, null, 40, Pa),
|
|
4672
4679
|
m("label", {
|
|
4673
|
-
class:
|
|
4680
|
+
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
4674
4681
|
id: "file-input-button",
|
|
4675
4682
|
for: "file-input"
|
|
4676
4683
|
}, [
|
|
4677
|
-
|
|
4678
|
-
|
|
4684
|
+
k(n.$slots, "button-content", {}, () => [
|
|
4685
|
+
h(u(j), {
|
|
4679
4686
|
icon: "bi:upload",
|
|
4680
4687
|
class: "me-2",
|
|
4681
4688
|
height: "20px",
|
|
@@ -4685,10 +4692,10 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4685
4692
|
])
|
|
4686
4693
|
], 2)
|
|
4687
4694
|
]),
|
|
4688
|
-
|
|
4695
|
+
n.showDragDropArea ? (r(), f(p, {
|
|
4689
4696
|
link: "",
|
|
4690
4697
|
class: "ms-auto",
|
|
4691
|
-
key:
|
|
4698
|
+
key: n.acceptedFileTypes.length,
|
|
4692
4699
|
id: "accepted-file-types",
|
|
4693
4700
|
onClick: i
|
|
4694
4701
|
}, {
|
|
@@ -4696,13 +4703,13 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4696
4703
|
I("Accepted File Types")
|
|
4697
4704
|
])),
|
|
4698
4705
|
_: 1
|
|
4699
|
-
})) :
|
|
4700
|
-
|
|
4706
|
+
})) : S("", !0),
|
|
4707
|
+
h(u(ve), {
|
|
4701
4708
|
ref_key: "acceptedFilesOverlay",
|
|
4702
4709
|
ref: a
|
|
4703
4710
|
}, {
|
|
4704
4711
|
default: b(() => [
|
|
4705
|
-
m("div", Va,
|
|
4712
|
+
m("div", Va, w(n.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
4706
4713
|
]),
|
|
4707
4714
|
_: 1
|
|
4708
4715
|
}, 512)
|
|
@@ -4728,26 +4735,26 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4728
4735
|
}),
|
|
4729
4736
|
emits: ["update:modelValue"],
|
|
4730
4737
|
setup(e) {
|
|
4731
|
-
const t = D(e, "modelValue"), a = _(!1), i = T(() => e.maxFileInput <= t.value.length), l = (
|
|
4732
|
-
a.value = !1,
|
|
4738
|
+
const t = D(e, "modelValue"), a = _(!1), i = T(() => e.maxFileInput <= t.value.length), l = (o) => {
|
|
4739
|
+
a.value = !1, o.dataTransfer.files.length > e.maxFileInput || i.value ? o.preventDefault() : t.value = xe([...o.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
|
|
4733
4740
|
};
|
|
4734
|
-
return (
|
|
4741
|
+
return (o, n) => (r(), v("div", {
|
|
4735
4742
|
id: "drag-drop-area",
|
|
4736
|
-
class:
|
|
4737
|
-
onDragleave:
|
|
4738
|
-
onDragover:
|
|
4743
|
+
class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
4744
|
+
onDragleave: n[0] || (n[0] = G((s) => a.value = !1, ["prevent"])),
|
|
4745
|
+
onDragover: n[1] || (n[1] = G((s) => a.value = !0, ["prevent"])),
|
|
4739
4746
|
onDrop: G(l, ["prevent"])
|
|
4740
4747
|
}, [
|
|
4741
4748
|
t.value.length === 0 ? (r(), v("div", Da, [
|
|
4742
|
-
|
|
4749
|
+
h(u(j), {
|
|
4743
4750
|
icon: "bi:upload",
|
|
4744
4751
|
class: "me-2",
|
|
4745
4752
|
height: "20px",
|
|
4746
4753
|
width: "20px"
|
|
4747
4754
|
}),
|
|
4748
|
-
|
|
4755
|
+
n[2] || (n[2] = I(" Drag and drop files here "))
|
|
4749
4756
|
])) : (r(), v("div", Oa, [
|
|
4750
|
-
|
|
4757
|
+
k(o.$slots, "default")
|
|
4751
4758
|
]))
|
|
4752
4759
|
], 34));
|
|
4753
4760
|
}
|
|
@@ -4784,10 +4791,10 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4784
4791
|
striped: ""
|
|
4785
4792
|
}, {
|
|
4786
4793
|
default: b(() => [
|
|
4787
|
-
I(
|
|
4794
|
+
I(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
|
|
4788
4795
|
]),
|
|
4789
4796
|
_: 1
|
|
4790
|
-
})) :
|
|
4797
|
+
})) : S("", !0),
|
|
4791
4798
|
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (r(), f(se, {
|
|
4792
4799
|
key: 1,
|
|
4793
4800
|
id: "upload-status-alert",
|
|
@@ -4795,10 +4802,10 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4795
4802
|
class: "mb-0 w-75 ms-auto"
|
|
4796
4803
|
}, {
|
|
4797
4804
|
default: b(() => [
|
|
4798
|
-
I(
|
|
4805
|
+
I(w(a.value), 1)
|
|
4799
4806
|
]),
|
|
4800
4807
|
_: 1
|
|
4801
|
-
}, 8, ["severity"])) :
|
|
4808
|
+
}, 8, ["severity"])) : S("", !0)
|
|
4802
4809
|
]));
|
|
4803
4810
|
}
|
|
4804
4811
|
}), qa = ["data-cy"], Ea = { class: "ms-3 d-flex flex-column" }, La = {
|
|
@@ -4829,18 +4836,18 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4829
4836
|
}),
|
|
4830
4837
|
emits: /* @__PURE__ */ U(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
4831
4838
|
setup(e, { emit: t }) {
|
|
4832
|
-
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"),
|
|
4833
|
-
|
|
4839
|
+
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), o = t, n = _(a.value.name), s = _(""), p = _(0), c = _(), g = T(() => e.acceptedFileTypes.some(({ fileType: y }) => y === a.value.type)), d = T(() => a.value.size <= e.maxFileSize), F = T(() => a.value.type ? a.value.type : Ia().getType(a.value.name)), C = () => {
|
|
4840
|
+
n.value != null && (V(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
4834
4841
|
}, V = () => {
|
|
4835
|
-
let y =
|
|
4836
|
-
y.length === 1 ? P && P.length > 0 && (
|
|
4842
|
+
let y = n.value.split("."), x = Ca.getExtension(F.value), P = n.value.split(".").pop();
|
|
4843
|
+
y.length === 1 ? P && P.length > 0 && (n.value = [n.value, x].join(".")) : y.length > 1 && P !== x && (n.value = n.value.replace(P, x));
|
|
4837
4844
|
}, M = async () => {
|
|
4838
4845
|
if (!g.value || !d.value) {
|
|
4839
4846
|
l.value = g.value ? "InvalidFileSize" : "InvalidFileType";
|
|
4840
4847
|
return;
|
|
4841
4848
|
}
|
|
4842
4849
|
l.value = "Preparing", c.value = new AbortController();
|
|
4843
|
-
const [y,
|
|
4850
|
+
const [y, x] = await e.getFileUrlAction(a.value.name);
|
|
4844
4851
|
if (!y) {
|
|
4845
4852
|
l.value = "Failed";
|
|
4846
4853
|
return;
|
|
@@ -4851,12 +4858,12 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4851
4858
|
abortSignal: c.value.signal,
|
|
4852
4859
|
onProgress: (ae) => p.value = ae.loadedBytes,
|
|
4853
4860
|
blobHTTPHeaders: {
|
|
4854
|
-
blobContentType:
|
|
4861
|
+
blobContentType: F.value,
|
|
4855
4862
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
4856
4863
|
},
|
|
4857
4864
|
tags: { temp: "true" }
|
|
4858
4865
|
};
|
|
4859
|
-
await P.uploadData(a.value, L), s.value = y, l.value = "Uploaded", i.value =
|
|
4866
|
+
await P.uploadData(a.value, L), s.value = y, l.value = "Uploaded", i.value = x;
|
|
4860
4867
|
} catch (P) {
|
|
4861
4868
|
if (P.name === "AbortError") {
|
|
4862
4869
|
l.value = "Aborted";
|
|
@@ -4865,11 +4872,11 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4865
4872
|
l.value = "Failed";
|
|
4866
4873
|
}
|
|
4867
4874
|
}, q = async () => {
|
|
4868
|
-
await za(l.value, s.value),
|
|
4875
|
+
await za(l.value, s.value), o("deleted", a.value);
|
|
4869
4876
|
};
|
|
4870
4877
|
return le(() => {
|
|
4871
4878
|
e.autoUploadToBlob && M();
|
|
4872
|
-
}), (y,
|
|
4879
|
+
}), (y, x) => {
|
|
4873
4880
|
const P = A;
|
|
4874
4881
|
return r(), v("div", {
|
|
4875
4882
|
class: "py-4 px-3 d-flex",
|
|
@@ -4897,15 +4904,15 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4897
4904
|
y.editableFileName ? (r(), f(At, {
|
|
4898
4905
|
key: 0,
|
|
4899
4906
|
id: "edit-file-name",
|
|
4900
|
-
modelValue:
|
|
4901
|
-
"onUpdate:modelValue":
|
|
4907
|
+
modelValue: n.value,
|
|
4908
|
+
"onUpdate:modelValue": x[0] || (x[0] = (L) => n.value = L),
|
|
4902
4909
|
rules: y.customFileNameRules,
|
|
4903
4910
|
name: a.value.name,
|
|
4904
|
-
"complete-action":
|
|
4905
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La,
|
|
4911
|
+
"complete-action": C
|
|
4912
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La, w(n.value), 1))
|
|
4906
4913
|
]),
|
|
4907
|
-
m("span", Ra, "File type: " +
|
|
4908
|
-
m("span", Ha, "File size: " +
|
|
4914
|
+
m("span", Ra, "File type: " + w(a.value.type.split("/").pop()), 1),
|
|
4915
|
+
m("span", Ha, "File size: " + w(u(pe)(a.value.size)), 1)
|
|
4909
4916
|
]),
|
|
4910
4917
|
m("div", Wa, [
|
|
4911
4918
|
(r(), f(Aa, {
|
|
@@ -4921,19 +4928,19 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4921
4928
|
onClick: M
|
|
4922
4929
|
}, {
|
|
4923
4930
|
default: b(() => [
|
|
4924
|
-
|
|
4931
|
+
h(u(j), {
|
|
4925
4932
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
4926
4933
|
}, null, 8, ["icon"])
|
|
4927
4934
|
]),
|
|
4928
4935
|
_: 1
|
|
4929
|
-
})) :
|
|
4936
|
+
})) : S("", !0),
|
|
4930
4937
|
l.value === "Uploading" ? (r(), f(P, {
|
|
4931
4938
|
key: 1,
|
|
4932
4939
|
link: "",
|
|
4933
|
-
onClick:
|
|
4940
|
+
onClick: x[1] || (x[1] = (L) => c.value.value.abort())
|
|
4934
4941
|
}, {
|
|
4935
4942
|
default: b(() => [
|
|
4936
|
-
|
|
4943
|
+
h(u(j), { icon: "bi:x-circle-fill" })
|
|
4937
4944
|
]),
|
|
4938
4945
|
_: 1
|
|
4939
4946
|
})) : (r(), f(P, {
|
|
@@ -4943,7 +4950,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4943
4950
|
id: "delete-button"
|
|
4944
4951
|
}, {
|
|
4945
4952
|
default: b(() => [
|
|
4946
|
-
|
|
4953
|
+
h(u(j), { icon: "bi:trash" })
|
|
4947
4954
|
]),
|
|
4948
4955
|
_: 1
|
|
4949
4956
|
}))
|
|
@@ -4951,17 +4958,19 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4951
4958
|
], 8, qa);
|
|
4952
4959
|
};
|
|
4953
4960
|
}
|
|
4954
|
-
}), Ga = { class: "d-flex justify-content-end mt-1" }, Ja = { id: "max-file-size" }, Ka = /* @__PURE__ */ $({
|
|
4955
|
-
__name: "
|
|
4961
|
+
}), Ga = { class: "d-flex justify-content-end mt-1 gap-1" }, Ja = { id: "max-file-size" }, Ka = { id: "max-file-input" }, Za = /* @__PURE__ */ $({
|
|
4962
|
+
__name: "FileInputInfo",
|
|
4956
4963
|
props: {
|
|
4957
|
-
maxFileSize: {}
|
|
4964
|
+
maxFileSize: {},
|
|
4965
|
+
maxFileInput: {}
|
|
4958
4966
|
},
|
|
4959
4967
|
setup(e) {
|
|
4960
4968
|
return (t, a) => (r(), v("div", Ga, [
|
|
4961
|
-
m("div", Ja, "Max file size: " +
|
|
4969
|
+
m("div", Ja, "Max file size: " + w(u(pe)(t.maxFileSize)), 1),
|
|
4970
|
+
m("div", Ka, "| Max file count: " + w(t.maxFileInput), 1)
|
|
4962
4971
|
]));
|
|
4963
4972
|
}
|
|
4964
|
-
}),
|
|
4973
|
+
}), Xa = { "data-cy": "file-uploader" }, Qa = { key: 0 }, il = /* @__PURE__ */ $({
|
|
4965
4974
|
__name: "ForgeFileUploader",
|
|
4966
4975
|
props: /* @__PURE__ */ U({
|
|
4967
4976
|
acceptedFileTypes: {},
|
|
@@ -4979,25 +4988,25 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4979
4988
|
emits: ["update:modelValue"],
|
|
4980
4989
|
setup(e) {
|
|
4981
4990
|
const t = D(e, "modelValue"), a = e, i = (l) => {
|
|
4982
|
-
t.value = t.value.filter((
|
|
4991
|
+
t.value = t.value.filter((o) => o.file != l);
|
|
4983
4992
|
};
|
|
4984
|
-
return (l,
|
|
4985
|
-
|
|
4993
|
+
return (l, o) => (r(), v("div", Xa, [
|
|
4994
|
+
h(Ma, z(a, {
|
|
4986
4995
|
modelValue: t.value,
|
|
4987
|
-
"onUpdate:modelValue":
|
|
4996
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => t.value = n)
|
|
4988
4997
|
}), null, 16, ["modelValue"]),
|
|
4989
|
-
l.showDragDropArea ? (r(), v("div",
|
|
4990
|
-
|
|
4998
|
+
l.showDragDropArea ? (r(), v("div", Qa, [
|
|
4999
|
+
h(Na, {
|
|
4991
5000
|
"max-file-input": a.maxFileInput,
|
|
4992
5001
|
"max-file-size": a.maxFileSize,
|
|
4993
5002
|
"accepted-file-types": a.acceptedFileTypes,
|
|
4994
5003
|
modelValue: t.value,
|
|
4995
|
-
"onUpdate:modelValue":
|
|
5004
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => t.value = n)
|
|
4996
5005
|
}, {
|
|
4997
5006
|
default: b(() => [
|
|
4998
|
-
(r(!0), v(O, null, N(t.value, ({ file:
|
|
4999
|
-
(r(), f(Ya,
|
|
5000
|
-
key:
|
|
5007
|
+
(r(!0), v(O, null, N(t.value, ({ file: n }, s) => (r(), v("span", null, [
|
|
5008
|
+
(r(), f(Ya, z({
|
|
5009
|
+
key: n.name,
|
|
5001
5010
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5002
5011
|
file: t.value[s].file,
|
|
5003
5012
|
"onUpdate:file": (p) => t.value[s].file = p,
|
|
@@ -5011,13 +5020,14 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5011
5020
|
]),
|
|
5012
5021
|
_: 1
|
|
5013
5022
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5014
|
-
|
|
5015
|
-
"max-file-size": a.maxFileSize
|
|
5016
|
-
|
|
5017
|
-
|
|
5023
|
+
h(Za, {
|
|
5024
|
+
"max-file-size": a.maxFileSize,
|
|
5025
|
+
"max-file-input": l.maxFileInput
|
|
5026
|
+
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5027
|
+
])) : S("", !0)
|
|
5018
5028
|
]));
|
|
5019
5029
|
}
|
|
5020
|
-
}),
|
|
5030
|
+
}), ei = { class: "d-flex" }, ti = { class: "me-3" }, ai = { class: "ms-2" }, ii = { class: "d-flex flex-column w-100" }, ll = /* @__PURE__ */ $({
|
|
5021
5031
|
__name: "ForgeColumnCustomiser",
|
|
5022
5032
|
props: {
|
|
5023
5033
|
modelValue: { required: !0 },
|
|
@@ -5025,22 +5035,22 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5025
5035
|
},
|
|
5026
5036
|
emits: ["update:modelValue"],
|
|
5027
5037
|
setup(e) {
|
|
5028
|
-
const t = D(e, "modelValue"), a = _(), i = _(!1), l = (
|
|
5029
|
-
a.value.toggle(
|
|
5038
|
+
const t = D(e, "modelValue"), a = _(), i = _(!1), l = (o) => {
|
|
5039
|
+
a.value.toggle(o);
|
|
5030
5040
|
};
|
|
5031
|
-
return (
|
|
5032
|
-
|
|
5041
|
+
return (o, n) => (r(), v(O, null, [
|
|
5042
|
+
h(u(A), {
|
|
5033
5043
|
onClick: l,
|
|
5034
5044
|
class: "ms-2"
|
|
5035
5045
|
}, {
|
|
5036
5046
|
default: b(() => [
|
|
5037
|
-
m("div",
|
|
5038
|
-
m("div", ei, [
|
|
5039
|
-
x(u(j), { icon: "bi:layout-three-columns" })
|
|
5040
|
-
]),
|
|
5041
|
-
I(" Columns (" + k(t.value.filter((s) => s.selected).length ?? 0) + "/" + k(t.value.length ?? 0) + ") ", 1),
|
|
5047
|
+
m("div", ei, [
|
|
5042
5048
|
m("div", ti, [
|
|
5043
|
-
|
|
5049
|
+
h(u(j), { icon: "bi:layout-three-columns" })
|
|
5050
|
+
]),
|
|
5051
|
+
I(" Columns (" + w(t.value.filter((s) => s.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
|
|
5052
|
+
m("div", ai, [
|
|
5053
|
+
h(u(j), {
|
|
5044
5054
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5045
5055
|
}, null, 8, ["icon"])
|
|
5046
5056
|
])
|
|
@@ -5048,24 +5058,24 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5048
5058
|
]),
|
|
5049
5059
|
_: 1
|
|
5050
5060
|
}),
|
|
5051
|
-
|
|
5061
|
+
h(u(ve), {
|
|
5052
5062
|
ref_key: "columnCustomiserPanel",
|
|
5053
5063
|
ref: a,
|
|
5054
5064
|
class: "column-customiser",
|
|
5055
|
-
onHide:
|
|
5056
|
-
onShow:
|
|
5065
|
+
onHide: n[0] || (n[0] = () => i.value = !1),
|
|
5066
|
+
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5057
5067
|
}, {
|
|
5058
5068
|
default: b(() => [
|
|
5059
|
-
m("div",
|
|
5069
|
+
m("div", ii, [
|
|
5060
5070
|
(r(!0), v(O, null, N(t.value, (s, p) => (r(), v("div", {
|
|
5061
|
-
class:
|
|
5071
|
+
class: B(["d-flex cursor-pointer", {
|
|
5062
5072
|
"border-top": p !== 0,
|
|
5063
5073
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
5064
5074
|
"pt-1": t.value.length - 1 === p,
|
|
5065
5075
|
"pb-1": p === 0
|
|
5066
5076
|
}])
|
|
5067
5077
|
}, [
|
|
5068
|
-
|
|
5078
|
+
h(fe, {
|
|
5069
5079
|
id: s.field,
|
|
5070
5080
|
modelValue: s.selected,
|
|
5071
5081
|
"onUpdate:modelValue": (c) => s.selected = c,
|
|
@@ -5080,7 +5090,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5080
5090
|
}, 512)
|
|
5081
5091
|
], 64));
|
|
5082
5092
|
}
|
|
5083
|
-
}),
|
|
5093
|
+
}), ol = /* @__PURE__ */ $({
|
|
5084
5094
|
__name: "ForgePanel",
|
|
5085
5095
|
setup(e) {
|
|
5086
5096
|
return (t, a) => {
|
|
@@ -5091,21 +5101,21 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5091
5101
|
key: 0,
|
|
5092
5102
|
"data-cy": "message-icon",
|
|
5093
5103
|
icon: "bi:chevron-down"
|
|
5094
|
-
})) :
|
|
5095
|
-
l ?
|
|
5104
|
+
})) : S("", !0),
|
|
5105
|
+
l ? S("", !0) : (r(), f(u(j), {
|
|
5096
5106
|
key: 1,
|
|
5097
5107
|
"data-cy": "message-icon",
|
|
5098
5108
|
icon: "bi:chevron-up"
|
|
5099
5109
|
}))
|
|
5100
5110
|
]),
|
|
5101
5111
|
default: b(() => [
|
|
5102
|
-
|
|
5112
|
+
k(t.$slots, "default")
|
|
5103
5113
|
]),
|
|
5104
5114
|
_: 3
|
|
5105
5115
|
}, 16);
|
|
5106
5116
|
};
|
|
5107
5117
|
}
|
|
5108
|
-
}),
|
|
5118
|
+
}), li = /* @__PURE__ */ $({
|
|
5109
5119
|
__name: "ForgeToggleButton",
|
|
5110
5120
|
props: {
|
|
5111
5121
|
severity: { default: "primary" }
|
|
@@ -5132,12 +5142,12 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5132
5142
|
]
|
|
5133
5143
|
})
|
|
5134
5144
|
}));
|
|
5135
|
-
return (i, l) => (r(), f(u(He),
|
|
5145
|
+
return (i, l) => (r(), f(u(He), z({ ...i.$attrs, ...t }, {
|
|
5136
5146
|
severity: t.severity,
|
|
5137
5147
|
pt: a.value
|
|
5138
5148
|
}), null, 16, ["severity", "pt"]));
|
|
5139
5149
|
}
|
|
5140
|
-
}),
|
|
5150
|
+
}), oi = {
|
|
5141
5151
|
class: "btn-group",
|
|
5142
5152
|
"data-cy": "forge-select-button"
|
|
5143
5153
|
}, nl = /* @__PURE__ */ $({
|
|
@@ -5153,25 +5163,25 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5153
5163
|
}),
|
|
5154
5164
|
emits: ["update:modelValue"],
|
|
5155
5165
|
setup(e) {
|
|
5156
|
-
const t = e, a = D(e, "modelValue"), i = (
|
|
5157
|
-
var
|
|
5158
|
-
return t.multiple ? (
|
|
5159
|
-
}, l = (
|
|
5160
|
-
var
|
|
5161
|
-
if (!
|
|
5166
|
+
const t = e, a = D(e, "modelValue"), i = (o) => {
|
|
5167
|
+
var n;
|
|
5168
|
+
return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(o.value) : a.value === o.value;
|
|
5169
|
+
}, l = (o) => {
|
|
5170
|
+
var n;
|
|
5171
|
+
if (!o.disabled)
|
|
5162
5172
|
if (t.multiple) {
|
|
5163
|
-
let s = (
|
|
5164
|
-
if (s.length >= 1 && s.includes(
|
|
5173
|
+
let s = (n = a.value) != null && n.length ? [...a.value] : [];
|
|
5174
|
+
if (s.length >= 1 && s.includes(o.value)) {
|
|
5165
5175
|
if (!t.allowEmpty && s.length === 1) return;
|
|
5166
|
-
s = s.length > 1 ? s.filter((c) => c !==
|
|
5176
|
+
s = s.length > 1 ? s.filter((c) => c !== o.value) : [];
|
|
5167
5177
|
} else
|
|
5168
|
-
s.push(
|
|
5178
|
+
s.push(o.value);
|
|
5169
5179
|
a.value = s;
|
|
5170
5180
|
} else
|
|
5171
|
-
a.value = a.value ===
|
|
5181
|
+
a.value = a.value === o.value && t.allowEmpty ? null : o.value;
|
|
5172
5182
|
};
|
|
5173
|
-
return (
|
|
5174
|
-
(r(!0), v(O, null, N(
|
|
5183
|
+
return (o, n) => (r(), v("div", oi, [
|
|
5184
|
+
(r(!0), v(O, null, N(o.options, (s, p) => (r(), f(li, {
|
|
5175
5185
|
key: p,
|
|
5176
5186
|
onLabel: s.label,
|
|
5177
5187
|
offLabel: s.label,
|
|
@@ -5180,11 +5190,11 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5180
5190
|
defaultValue: i(s),
|
|
5181
5191
|
disabled: s.disabled,
|
|
5182
5192
|
"data-cy": `toggle-button-${s.value}`,
|
|
5183
|
-
invalid:
|
|
5193
|
+
invalid: o.invalid
|
|
5184
5194
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5185
5195
|
]));
|
|
5186
5196
|
}
|
|
5187
|
-
}),
|
|
5197
|
+
}), sl = () => ({
|
|
5188
5198
|
type: "component",
|
|
5189
5199
|
resolve: (e) => {
|
|
5190
5200
|
if (e.startsWith("Forge"))
|
|
@@ -5195,37 +5205,37 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5195
5205
|
}
|
|
5196
5206
|
});
|
|
5197
5207
|
export {
|
|
5198
|
-
|
|
5199
|
-
|
|
5208
|
+
Ni as Bootstrap_PT,
|
|
5209
|
+
Ui as ForgeActionButton,
|
|
5200
5210
|
se as ForgeAlert,
|
|
5201
|
-
|
|
5211
|
+
Ai as ForgeAutoComplete,
|
|
5202
5212
|
fe as ForgeCheckbox,
|
|
5203
|
-
|
|
5204
|
-
|
|
5213
|
+
Ki as ForgeChip,
|
|
5214
|
+
ll as ForgeColumnCustomiser,
|
|
5205
5215
|
be as ForgeDatepicker,
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5216
|
+
il as ForgeFileUploader,
|
|
5217
|
+
al as ForgeFilterHeader,
|
|
5218
|
+
Gi as ForgeForm,
|
|
5219
|
+
Ji as ForgeFormField,
|
|
5210
5220
|
At as ForgeInlineEditor,
|
|
5211
|
-
|
|
5221
|
+
qi as ForgeLink,
|
|
5212
5222
|
ge as ForgeLoader,
|
|
5213
|
-
|
|
5223
|
+
Ri as ForgeModal,
|
|
5214
5224
|
Wt as ForgeMultiSelectPreview,
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5225
|
+
Hi as ForgeNavbar,
|
|
5226
|
+
Wi as ForgePageHeader,
|
|
5227
|
+
ol as ForgePanel,
|
|
5218
5228
|
la as ForgeProgressBar,
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5229
|
+
Yi as ForgeRemainingCharacters,
|
|
5230
|
+
sl as ForgeResolver,
|
|
5231
|
+
Zi as ForgeScratchpad,
|
|
5222
5232
|
nl as ForgeSelectButton,
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5233
|
+
Xi as ForgeStatWidget,
|
|
5234
|
+
Qi as ForgeStepper,
|
|
5235
|
+
tl as ForgeTable,
|
|
5236
|
+
el as ForgeTile,
|
|
5237
|
+
li as ForgeToggleButton,
|
|
5238
|
+
Li as convertToMultiSelectOption,
|
|
5239
|
+
Ei as enumToMultiSelectList,
|
|
5230
5240
|
It as parseError
|
|
5231
5241
|
};
|