@3squared/forge-ui-3 2.19.1 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/forge-ui-3.css +3 -3
- package/dist/esm/forge-ui-3.js +655 -598
- package/dist/src/components/ForgeDatepicker.vue.d.ts +2 -2
- package/dist/src/components/ForgeFormField.vue.d.ts +2 -2
- package/dist/src/components/ForgeInlineEditor.vue.d.ts +1 -1
- package/dist/src/components/ForgeModal.vue.d.ts +1 -1
- package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +1 -1
- package/dist/src/components/ForgeSelectButton.vue.d.ts +1 -1
- package/dist/src/components/ForgeStatWidget.vue.d.ts +1 -1
- package/dist/src/components/file-uploader/ForgeFileUploader.vue.d.ts +2 -0
- package/dist/src/components/table/ForgeTable.vue.d.ts +2 -2
- package/dist/src/passthroughs/SplitButton.pt.d.ts +10 -6
- package/package.json +17 -17
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as C,
|
|
3
|
-
import { Icon as
|
|
1
|
+
import Fe from "primevue/message";
|
|
2
|
+
import { defineComponent as C, createBlock as y, openBlock as d, normalizeProps as W, guardReactiveProps as G, withCtx as v, renderSlot as F, createVNode as w, unref as u, createElementVNode as m, normalizeClass as S, createCommentVNode as z, ref as I, createElementBlock as f, Fragment as A, mergeProps as _, renderList as E, mergeModels as R, useModel as N, computed as T, withDirectives as J, createTextVNode as P, toDisplayString as B, vShow as X, createSlots as ae, onMounted as oe, withKeys as le, isRef as Be, normalizeStyle as Se, withModifiers as Q, watch as K, h as Ce, useTemplateRef as ze } from "vue";
|
|
3
|
+
import { Icon as j } from "@iconify/vue";
|
|
4
4
|
import q from "primevue/button";
|
|
5
5
|
import Te from "primevue/toast";
|
|
6
6
|
import _e from "primevue/autocomplete";
|
|
7
|
-
import
|
|
8
|
-
import { useField as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
7
|
+
import je from "primevue/checkbox";
|
|
8
|
+
import { useField as ne } from "vee-validate";
|
|
9
|
+
import Ie from "primevue/progressspinner";
|
|
10
|
+
import Pe from "primevue/dialog";
|
|
11
|
+
import re from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as Me } from "@vueuse/components";
|
|
13
13
|
import Ve from "primevue/menubar";
|
|
14
|
-
import
|
|
14
|
+
import de from "primevue/multiselect";
|
|
15
15
|
import De from "primevue/datepicker";
|
|
16
16
|
import ie from "primevue/select";
|
|
17
17
|
import Oe from "primevue/inputmask";
|
|
@@ -240,15 +240,15 @@ const Xe = {
|
|
|
240
240
|
column: {
|
|
241
241
|
pcSortBadge: "ms-2 my-auto cursor-pointer",
|
|
242
242
|
headerCell: (e) => {
|
|
243
|
-
var t, a, i, l,
|
|
243
|
+
var t, a, i, l, o, n;
|
|
244
244
|
return {
|
|
245
245
|
class: [
|
|
246
246
|
"align-top",
|
|
247
247
|
{
|
|
248
248
|
"cursor-move": (t = e.props) == null ? void 0 : t.reorderableColumns,
|
|
249
249
|
"position-sticky": ((a = e.column) == null ? void 0 : a.context.frozen) !== void 0 || ((i = e.column) == null ? void 0 : i.context.frozen) || ((l = e.column) == null ? void 0 : l.context.frozen) === "",
|
|
250
|
-
"overflow-hidden position-relative bg-clip-padding": (
|
|
251
|
-
"align-bottom": ((
|
|
250
|
+
"overflow-hidden position-relative bg-clip-padding": (o = e.column) == null ? void 0 : o.context.resizable,
|
|
251
|
+
"align-bottom": ((n = e.column.props) == null ? void 0 : n.rowspan) > 1
|
|
252
252
|
}
|
|
253
253
|
]
|
|
254
254
|
};
|
|
@@ -375,12 +375,12 @@ const Xe = {
|
|
|
375
375
|
]
|
|
376
376
|
})
|
|
377
377
|
}
|
|
378
|
-
},
|
|
378
|
+
}, ot = {
|
|
379
379
|
toggleSwitch: {
|
|
380
380
|
root: "form-check form-switch",
|
|
381
381
|
input: "form-check-input"
|
|
382
382
|
}
|
|
383
|
-
},
|
|
383
|
+
}, nt = {
|
|
384
384
|
tag: {
|
|
385
385
|
root: ({ props: e }) => ({
|
|
386
386
|
class: [
|
|
@@ -797,7 +797,7 @@ const Xe = {
|
|
|
797
797
|
]
|
|
798
798
|
})
|
|
799
799
|
}
|
|
800
|
-
},
|
|
800
|
+
}, xt = {
|
|
801
801
|
badge: {
|
|
802
802
|
root: ({ props: e }) => ({
|
|
803
803
|
class: [
|
|
@@ -819,7 +819,7 @@ const Xe = {
|
|
|
819
819
|
]
|
|
820
820
|
})
|
|
821
821
|
}
|
|
822
|
-
},
|
|
822
|
+
}, ht = {
|
|
823
823
|
// More PassThrough options in component file.
|
|
824
824
|
menubar: {
|
|
825
825
|
rootList: ({ instance: e }) => ({
|
|
@@ -982,11 +982,16 @@ const Xe = {
|
|
|
982
982
|
class: t
|
|
983
983
|
};
|
|
984
984
|
},
|
|
985
|
-
itemLink:
|
|
985
|
+
itemLink: ({ props: e }) => ({
|
|
986
|
+
class: [
|
|
987
|
+
"dropdown-item",
|
|
988
|
+
{ "cursor-pointer": !e.disabled }
|
|
989
|
+
]
|
|
990
|
+
}),
|
|
986
991
|
separator: "border-bottom"
|
|
987
992
|
}
|
|
988
993
|
}
|
|
989
|
-
},
|
|
994
|
+
}, Ft = {
|
|
990
995
|
progressspinner: {
|
|
991
996
|
spin: () => ({
|
|
992
997
|
class: [
|
|
@@ -994,7 +999,7 @@ const Xe = {
|
|
|
994
999
|
]
|
|
995
1000
|
})
|
|
996
1001
|
}
|
|
997
|
-
},
|
|
1002
|
+
}, Bt = {
|
|
998
1003
|
card: {
|
|
999
1004
|
root: () => ({
|
|
1000
1005
|
class: ["card"]
|
|
@@ -1056,7 +1061,7 @@ const Xe = {
|
|
|
1056
1061
|
class: ["ps-1"]
|
|
1057
1062
|
}),
|
|
1058
1063
|
messageIcon: ({ props: e }) => {
|
|
1059
|
-
var t, a, i, l,
|
|
1064
|
+
var t, a, i, l, o;
|
|
1060
1065
|
return {
|
|
1061
1066
|
class: [
|
|
1062
1067
|
"toast-icon",
|
|
@@ -1065,7 +1070,7 @@ const Xe = {
|
|
|
1065
1070
|
"text-success": ((a = e.message) == null ? void 0 : a.severity) === "success",
|
|
1066
1071
|
"text-success-alternate": ((i = e.message) == null ? void 0 : i.severity) === "success-alternate",
|
|
1067
1072
|
"text-danger": ((l = e.message) == null ? void 0 : l.severity) === "error",
|
|
1068
|
-
"text-warning": ((
|
|
1073
|
+
"text-warning": ((o = e.message) == null ? void 0 : o.severity) === "warn"
|
|
1069
1074
|
}
|
|
1070
1075
|
]
|
|
1071
1076
|
};
|
|
@@ -1151,7 +1156,7 @@ const Xe = {
|
|
|
1151
1156
|
filterIcon: "d-none"
|
|
1152
1157
|
}
|
|
1153
1158
|
}
|
|
1154
|
-
},
|
|
1159
|
+
}, jt = {
|
|
1155
1160
|
fieldset: {
|
|
1156
1161
|
root: () => ({
|
|
1157
1162
|
class: [
|
|
@@ -1177,7 +1182,7 @@ const Xe = {
|
|
|
1177
1182
|
]
|
|
1178
1183
|
})
|
|
1179
1184
|
}
|
|
1180
|
-
},
|
|
1185
|
+
}, It = {
|
|
1181
1186
|
accordionPanel: {
|
|
1182
1187
|
root: "card my-2"
|
|
1183
1188
|
},
|
|
@@ -1195,7 +1200,7 @@ const Xe = {
|
|
|
1195
1200
|
accordionContent: {
|
|
1196
1201
|
root: "mt-2 mx-4 mb-4"
|
|
1197
1202
|
}
|
|
1198
|
-
},
|
|
1203
|
+
}, Pt = {
|
|
1199
1204
|
// More PT options can be found in the ForgeTable file.
|
|
1200
1205
|
treetable: {
|
|
1201
1206
|
root: "position-relative",
|
|
@@ -1218,9 +1223,9 @@ const Xe = {
|
|
|
1218
1223
|
}
|
|
1219
1224
|
}, Qi = {
|
|
1220
1225
|
...Xe,
|
|
1221
|
-
...
|
|
1226
|
+
...xt,
|
|
1222
1227
|
...Qe,
|
|
1223
|
-
...
|
|
1228
|
+
...Bt,
|
|
1224
1229
|
...et,
|
|
1225
1230
|
...rt,
|
|
1226
1231
|
...at,
|
|
@@ -1231,31 +1236,31 @@ const Xe = {
|
|
|
1231
1236
|
...Ct,
|
|
1232
1237
|
...it,
|
|
1233
1238
|
...lt,
|
|
1234
|
-
...
|
|
1239
|
+
...ot,
|
|
1235
1240
|
...ct,
|
|
1236
1241
|
...ft,
|
|
1237
|
-
...
|
|
1242
|
+
...ht,
|
|
1238
1243
|
...pt,
|
|
1239
1244
|
...gt,
|
|
1240
|
-
...
|
|
1245
|
+
...Ft,
|
|
1241
1246
|
...bt,
|
|
1242
1247
|
...kt,
|
|
1243
1248
|
...$t,
|
|
1244
1249
|
...ut,
|
|
1245
1250
|
...yt,
|
|
1246
|
-
...
|
|
1251
|
+
...nt,
|
|
1247
1252
|
...mt,
|
|
1248
1253
|
...zt,
|
|
1249
1254
|
...st,
|
|
1250
|
-
...
|
|
1255
|
+
...jt,
|
|
1251
1256
|
..._t,
|
|
1252
1257
|
...Tt,
|
|
1253
|
-
...jt,
|
|
1254
1258
|
...It,
|
|
1259
|
+
...Pt,
|
|
1255
1260
|
directives: {
|
|
1256
1261
|
...wt
|
|
1257
1262
|
}
|
|
1258
|
-
},
|
|
1263
|
+
}, se = /* @__PURE__ */ C({
|
|
1259
1264
|
__name: "ForgeAlert",
|
|
1260
1265
|
props: {
|
|
1261
1266
|
severity: { default: "primary" },
|
|
@@ -1275,13 +1280,13 @@ const Xe = {
|
|
|
1275
1280
|
setup(e) {
|
|
1276
1281
|
const t = e;
|
|
1277
1282
|
return (a, i) => {
|
|
1278
|
-
const l =
|
|
1283
|
+
const l = Fe;
|
|
1279
1284
|
return d(), y(l, W(G({ ...a.$attrs, ...t })), {
|
|
1280
|
-
icon:
|
|
1285
|
+
icon: v(() => [
|
|
1281
1286
|
m("div", {
|
|
1282
1287
|
class: S(t.icon ? "me-2 pe-1" : "")
|
|
1283
1288
|
}, [
|
|
1284
|
-
t.icon ? (d(), y(u(
|
|
1289
|
+
t.icon ? (d(), y(u(j), {
|
|
1285
1290
|
key: 0,
|
|
1286
1291
|
"data-cy": "message-icon",
|
|
1287
1292
|
icon: t.icon,
|
|
@@ -1290,11 +1295,11 @@ const Xe = {
|
|
|
1290
1295
|
}, null, 8, ["icon", "class"])) : z("", !0)
|
|
1291
1296
|
], 2)
|
|
1292
1297
|
]),
|
|
1293
|
-
closeicon:
|
|
1294
|
-
w(u(
|
|
1298
|
+
closeicon: v(() => [
|
|
1299
|
+
w(u(j), { icon: "bi:x" })
|
|
1295
1300
|
]),
|
|
1296
|
-
default:
|
|
1297
|
-
|
|
1301
|
+
default: v(() => [
|
|
1302
|
+
F(a.$slots, "default")
|
|
1298
1303
|
]),
|
|
1299
1304
|
_: 3
|
|
1300
1305
|
}, 16);
|
|
@@ -1309,7 +1314,7 @@ const Xe = {
|
|
|
1309
1314
|
params: { default: Array }
|
|
1310
1315
|
},
|
|
1311
1316
|
setup(e) {
|
|
1312
|
-
const t =
|
|
1317
|
+
const t = I(!1), a = e, i = async () => {
|
|
1313
1318
|
t.value = !0;
|
|
1314
1319
|
try {
|
|
1315
1320
|
await a.action.apply(this, a.params);
|
|
@@ -1318,10 +1323,10 @@ const Xe = {
|
|
|
1318
1323
|
}
|
|
1319
1324
|
t.value = !1;
|
|
1320
1325
|
};
|
|
1321
|
-
return (l,
|
|
1322
|
-
const
|
|
1323
|
-
return d(),
|
|
1324
|
-
w(
|
|
1326
|
+
return (l, o) => {
|
|
1327
|
+
const n = q;
|
|
1328
|
+
return d(), f(A, null, [
|
|
1329
|
+
w(n, _({ ...a, ...l.$attrs }, {
|
|
1325
1330
|
loading: t.value,
|
|
1326
1331
|
disabled: t.value || a.disabled,
|
|
1327
1332
|
onClick: i
|
|
@@ -1334,8 +1339,8 @@ const Xe = {
|
|
|
1334
1339
|
__name: "ForgeAutoComplete",
|
|
1335
1340
|
setup(e) {
|
|
1336
1341
|
return (t, a) => (d(), y(u(_e), _({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1337
|
-
default:
|
|
1338
|
-
(d(!0),
|
|
1342
|
+
default: v(() => [
|
|
1343
|
+
(d(!0), f(A, null, E(t.$slots, (i, l) => F(t.$slots, l, { slot: l })), 256))
|
|
1339
1344
|
]),
|
|
1340
1345
|
_: 3
|
|
1341
1346
|
}, 16));
|
|
@@ -1375,25 +1380,25 @@ const Xe = {
|
|
|
1375
1380
|
}),
|
|
1376
1381
|
emits: ["update:modelValue"],
|
|
1377
1382
|
setup(e) {
|
|
1378
|
-
const t = e, a = N(e, "modelValue"), { handleChange: i, errors: l, errorMessage:
|
|
1383
|
+
const t = e, a = N(e, "modelValue"), { handleChange: i, errors: l, errorMessage: o } = ne(
|
|
1379
1384
|
() => t.name ?? "",
|
|
1380
1385
|
void 0,
|
|
1381
1386
|
{
|
|
1382
1387
|
type: "checkbox",
|
|
1383
1388
|
checkedValue: a.value
|
|
1384
1389
|
}
|
|
1385
|
-
),
|
|
1390
|
+
), n = (p, c) => {
|
|
1386
1391
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
|
|
1387
1392
|
}, s = T(() => l.value.length > 0);
|
|
1388
1393
|
return (p, c) => {
|
|
1389
|
-
const
|
|
1390
|
-
return d(),
|
|
1394
|
+
const x = je;
|
|
1395
|
+
return d(), f("div", Mt, [
|
|
1391
1396
|
m("div", _({
|
|
1392
1397
|
class: "d-flex",
|
|
1393
1398
|
"data-cy": "checkbox-container",
|
|
1394
|
-
onClick: c[2] || (c[2] = (r) =>
|
|
1399
|
+
onClick: c[2] || (c[2] = (r) => n(r, a.value))
|
|
1395
1400
|
}, { ...p.$attrs }), [
|
|
1396
|
-
w(
|
|
1401
|
+
w(x, _({ ...t }, {
|
|
1397
1402
|
binary: "",
|
|
1398
1403
|
modelValue: a.value,
|
|
1399
1404
|
"onUpdate:modelValue": c[0] || (c[0] = (r) => a.value = r),
|
|
@@ -1403,19 +1408,19 @@ const Xe = {
|
|
|
1403
1408
|
}), null, 16, ["modelValue", "input-id", "input-class", "class"]),
|
|
1404
1409
|
m("label", {
|
|
1405
1410
|
for: t.name,
|
|
1406
|
-
onClick: c[1] || (c[1] = (r) =>
|
|
1411
|
+
onClick: c[1] || (c[1] = (r) => n(r, !a.value)),
|
|
1407
1412
|
class: S([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1408
1413
|
}, [
|
|
1409
|
-
|
|
1410
|
-
|
|
1414
|
+
F(p.$slots, "default", {}, () => [
|
|
1415
|
+
P(B(t.label), 1)
|
|
1411
1416
|
])
|
|
1412
1417
|
], 10, Vt)
|
|
1413
1418
|
], 16),
|
|
1414
1419
|
J(m("small", {
|
|
1415
1420
|
"data-cy": "error",
|
|
1416
1421
|
class: "text-invalid"
|
|
1417
|
-
},
|
|
1418
|
-
[
|
|
1422
|
+
}, B(u(o)), 513), [
|
|
1423
|
+
[X, s.value]
|
|
1419
1424
|
])
|
|
1420
1425
|
]);
|
|
1421
1426
|
};
|
|
@@ -1438,11 +1443,11 @@ const Xe = {
|
|
|
1438
1443
|
})
|
|
1439
1444
|
}));
|
|
1440
1445
|
return (i, l) => {
|
|
1441
|
-
const
|
|
1442
|
-
return d(),
|
|
1446
|
+
const o = Ie;
|
|
1447
|
+
return d(), f("div", {
|
|
1443
1448
|
class: S(i.inLine ? "" : "forge-loader")
|
|
1444
1449
|
}, [
|
|
1445
|
-
w(
|
|
1450
|
+
w(o, {
|
|
1446
1451
|
"animation-duration": ".75",
|
|
1447
1452
|
class: S(`text-${t.severity === void 0 ? "primary" : t.severity}`),
|
|
1448
1453
|
pt: a.value
|
|
@@ -1484,20 +1489,20 @@ const Xe = {
|
|
|
1484
1489
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1485
1490
|
"me-0": e.animateIconOnHover
|
|
1486
1491
|
}));
|
|
1487
|
-
return (i, l) => (d(),
|
|
1492
|
+
return (i, l) => (d(), f("a", {
|
|
1488
1493
|
id: "link",
|
|
1489
1494
|
class: S(["cursor-pointer d-flex text-break", t.value]),
|
|
1490
1495
|
href: i.url,
|
|
1491
1496
|
target: i.target
|
|
1492
1497
|
}, [
|
|
1493
|
-
|
|
1494
|
-
i.iconName ? (d(), y(u(
|
|
1498
|
+
F(i.$slots, "default", {}, () => [
|
|
1499
|
+
i.iconName ? (d(), y(u(j), {
|
|
1495
1500
|
key: 0,
|
|
1496
1501
|
id: "link-icon",
|
|
1497
1502
|
icon: i.iconName,
|
|
1498
1503
|
class: S(["bi my-auto", a.value])
|
|
1499
1504
|
}, null, 8, ["icon", "class"])) : z("", !0),
|
|
1500
|
-
|
|
1505
|
+
P(" " + B(i.label), 1)
|
|
1501
1506
|
])
|
|
1502
1507
|
], 10, Dt));
|
|
1503
1508
|
}
|
|
@@ -1526,7 +1531,7 @@ const Nt = {
|
|
|
1526
1531
|
}, At = { key: 0 }, Et = {
|
|
1527
1532
|
class: "d-flex w-100",
|
|
1528
1533
|
"data-cy": "footer"
|
|
1529
|
-
},
|
|
1534
|
+
}, ol = /* @__PURE__ */ C({
|
|
1530
1535
|
__name: "ForgeModal",
|
|
1531
1536
|
props: /* @__PURE__ */ R({
|
|
1532
1537
|
cancelText: { default: "Cancel" },
|
|
@@ -1588,8 +1593,8 @@ const Nt = {
|
|
|
1588
1593
|
}),
|
|
1589
1594
|
emits: ["update:visible", "update:error"],
|
|
1590
1595
|
setup(e, { expose: t }) {
|
|
1591
|
-
const a = N(e, "visible"), i =
|
|
1592
|
-
|
|
1596
|
+
const a = N(e, "visible"), i = I(!1), l = e, o = I(!1), n = N(e, "error"), s = () => {
|
|
1597
|
+
n.value = {
|
|
1593
1598
|
hasError: !1,
|
|
1594
1599
|
header: "",
|
|
1595
1600
|
message: []
|
|
@@ -1602,22 +1607,22 @@ const Nt = {
|
|
|
1602
1607
|
i.value = !1;
|
|
1603
1608
|
}, c = () => {
|
|
1604
1609
|
i.value = !0;
|
|
1605
|
-
},
|
|
1610
|
+
}, x = () => {
|
|
1606
1611
|
l.resetErrorOnClose && s(), a.value = !1;
|
|
1607
1612
|
}, r = async () => {
|
|
1608
1613
|
if (l.onConfirm) {
|
|
1609
|
-
|
|
1614
|
+
o.value = !0, n.value.hasError = !1;
|
|
1610
1615
|
try {
|
|
1611
1616
|
const $ = await l.onConfirm();
|
|
1612
|
-
($ || $ == null) &&
|
|
1617
|
+
($ || $ == null) && x();
|
|
1613
1618
|
} catch ($) {
|
|
1614
|
-
|
|
1619
|
+
n.value.hasError = !0;
|
|
1615
1620
|
const D = Ot($);
|
|
1616
|
-
|
|
1621
|
+
n.value.header = D.errorMessage, n.value.message = D.errorDetails;
|
|
1617
1622
|
}
|
|
1618
|
-
|
|
1623
|
+
o.value = !1;
|
|
1619
1624
|
}
|
|
1620
|
-
},
|
|
1625
|
+
}, h = T(() => ({
|
|
1621
1626
|
root: [
|
|
1622
1627
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1623
1628
|
{
|
|
@@ -1632,28 +1637,28 @@ const Nt = {
|
|
|
1632
1637
|
{
|
|
1633
1638
|
[`${l.maxHeight}`]: l.maxHeight && !i.value,
|
|
1634
1639
|
[`${l.minHeight}`]: l.minHeight && !i.value,
|
|
1635
|
-
"pt-0":
|
|
1640
|
+
"pt-0": n.value.hasError
|
|
1636
1641
|
}
|
|
1637
1642
|
]
|
|
1638
1643
|
}));
|
|
1639
1644
|
return ($, D) => {
|
|
1640
|
-
const O = q, U =
|
|
1645
|
+
const O = q, U = Pe;
|
|
1641
1646
|
return d(), y(U, _(l, {
|
|
1642
1647
|
onMaximize: c,
|
|
1643
1648
|
onUnmaximize: p,
|
|
1644
|
-
pt:
|
|
1649
|
+
pt: h.value
|
|
1645
1650
|
}), ae({
|
|
1646
|
-
closeicon:
|
|
1647
|
-
w(u(
|
|
1651
|
+
closeicon: v(() => [
|
|
1652
|
+
w(u(j), {
|
|
1648
1653
|
"data-cy": "close-icon",
|
|
1649
1654
|
icon: "bi:x-lg",
|
|
1650
1655
|
width: "18",
|
|
1651
1656
|
height: "18",
|
|
1652
|
-
onClick:
|
|
1657
|
+
onClick: x
|
|
1653
1658
|
})
|
|
1654
1659
|
]),
|
|
1655
|
-
maximizeicon:
|
|
1656
|
-
w(u(
|
|
1660
|
+
maximizeicon: v(() => [
|
|
1661
|
+
w(u(j), {
|
|
1657
1662
|
"data-cy": "maximisable-icon",
|
|
1658
1663
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1659
1664
|
width: "16",
|
|
@@ -1664,41 +1669,41 @@ const Nt = {
|
|
|
1664
1669
|
}, [
|
|
1665
1670
|
E($.$slots, (b, k) => ({
|
|
1666
1671
|
name: k,
|
|
1667
|
-
fn:
|
|
1668
|
-
k == "default" ? (d(),
|
|
1669
|
-
|
|
1670
|
-
w(
|
|
1672
|
+
fn: v((M) => [
|
|
1673
|
+
k == "default" ? (d(), f(A, { key: 0 }, [
|
|
1674
|
+
n.value.hasError ? (d(), f("div", Nt, [
|
|
1675
|
+
w(se, {
|
|
1671
1676
|
severity: "danger",
|
|
1672
1677
|
"data-cy": "error",
|
|
1673
1678
|
class: "mb-0"
|
|
1674
1679
|
}, {
|
|
1675
|
-
default:
|
|
1680
|
+
default: v(() => [
|
|
1676
1681
|
m("p", {
|
|
1677
|
-
class: S(
|
|
1678
|
-
},
|
|
1679
|
-
|
|
1680
|
-
(d(!0),
|
|
1682
|
+
class: S(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1683
|
+
}, B(n.value.header), 3),
|
|
1684
|
+
n.value.message.length > 0 ? (d(), f("ul", At, [
|
|
1685
|
+
(d(!0), f(A, null, E(n.value.message, (g) => (d(), f("li", { key: g }, B(g), 1))), 128))
|
|
1681
1686
|
])) : z("", !0)
|
|
1682
1687
|
]),
|
|
1683
1688
|
_: 1
|
|
1684
1689
|
})
|
|
1685
1690
|
])) : z("", !0)
|
|
1686
1691
|
], 64)) : z("", !0),
|
|
1687
|
-
|
|
1688
|
-
|
|
1692
|
+
F($.$slots, k, W(G(M || {}))),
|
|
1693
|
+
o.value ? F($.$slots, "loader", { key: 1 }, () => [
|
|
1689
1694
|
w(pe, { "data-cy": "loader" })
|
|
1690
1695
|
]) : z("", !0)
|
|
1691
1696
|
])
|
|
1692
1697
|
})),
|
|
1693
1698
|
$.showFooter ? {
|
|
1694
1699
|
name: "footer",
|
|
1695
|
-
fn:
|
|
1700
|
+
fn: v(() => [
|
|
1696
1701
|
m("div", Et, [
|
|
1697
1702
|
w(O, {
|
|
1698
1703
|
label: $.cancelText,
|
|
1699
1704
|
class: S(l.cancelClass),
|
|
1700
1705
|
outlined: "",
|
|
1701
|
-
onClick:
|
|
1706
|
+
onClick: x,
|
|
1702
1707
|
id: "cancel-button",
|
|
1703
1708
|
type: l.cancelButtonType
|
|
1704
1709
|
}, null, 8, ["label", "class", "type"]),
|
|
@@ -1731,11 +1736,11 @@ const Nt = {
|
|
|
1731
1736
|
}),
|
|
1732
1737
|
emits: ["update:modelValue"],
|
|
1733
1738
|
setup(e) {
|
|
1734
|
-
const t = e, a = N(e, "modelValue"), i =
|
|
1739
|
+
const t = e, a = N(e, "modelValue"), i = I(!1), l = I(), o = () => {
|
|
1735
1740
|
var $;
|
|
1736
1741
|
i.value = !i.value, ($ = l.value) == null || $.focus();
|
|
1737
|
-
},
|
|
1738
|
-
if (
|
|
1742
|
+
}, n = async () => {
|
|
1743
|
+
if (h.value)
|
|
1739
1744
|
return !1;
|
|
1740
1745
|
if (a.value = r.value, t.completeAction)
|
|
1741
1746
|
try {
|
|
@@ -1749,46 +1754,46 @@ const Nt = {
|
|
|
1749
1754
|
i.value = !i.value;
|
|
1750
1755
|
}, p = () => {
|
|
1751
1756
|
r.value = null;
|
|
1752
|
-
}, { errorMessage: c, errors:
|
|
1757
|
+
}, { errorMessage: c, errors: x, value: r } = ne(() => t.name, void 0, {
|
|
1753
1758
|
initialValue: a.value
|
|
1754
1759
|
});
|
|
1755
|
-
|
|
1760
|
+
oe(() => {
|
|
1756
1761
|
r.value = a.value;
|
|
1757
1762
|
});
|
|
1758
|
-
const
|
|
1763
|
+
const h = T(() => x.value.length > 0);
|
|
1759
1764
|
return ($, D) => {
|
|
1760
|
-
const O =
|
|
1761
|
-
return d(),
|
|
1765
|
+
const O = re, U = q;
|
|
1766
|
+
return d(), f("div", {
|
|
1762
1767
|
id: t.name
|
|
1763
1768
|
}, [
|
|
1764
|
-
$.readonly ? (d(),
|
|
1765
|
-
|
|
1766
|
-
m("span", Wt,
|
|
1769
|
+
$.readonly ? (d(), f("div", Ht, [
|
|
1770
|
+
F($.$slots, "default", {}, () => [
|
|
1771
|
+
m("span", Wt, B(u(r)), 1)
|
|
1767
1772
|
])
|
|
1768
|
-
])) : (d(),
|
|
1769
|
-
i.value ? (d(),
|
|
1770
|
-
J((d(),
|
|
1771
|
-
|
|
1772
|
-
class: S({ "is-invalid":
|
|
1773
|
-
editFinished:
|
|
1773
|
+
])) : (d(), f("div", qt, [
|
|
1774
|
+
i.value ? (d(), f("div", Lt, [
|
|
1775
|
+
J((d(), f("div", Rt, [
|
|
1776
|
+
F($.$slots, "editor", {
|
|
1777
|
+
class: S({ "is-invalid": h.value }),
|
|
1778
|
+
editFinished: n,
|
|
1774
1779
|
cancel: s,
|
|
1775
1780
|
val: u(r)
|
|
1776
1781
|
}, () => [
|
|
1777
1782
|
w(O, {
|
|
1778
1783
|
modelValue: u(r),
|
|
1779
|
-
"onUpdate:modelValue": D[0] || (D[0] = (b) =>
|
|
1784
|
+
"onUpdate:modelValue": D[0] || (D[0] = (b) => Be(r) ? r.value = b : null),
|
|
1780
1785
|
modelModifiers: { trim: !0 },
|
|
1781
1786
|
"data-cy": "input",
|
|
1782
1787
|
ref_key: "input",
|
|
1783
1788
|
ref: l,
|
|
1784
|
-
class: S({ "is-invalid":
|
|
1789
|
+
class: S({ "is-invalid": h.value }),
|
|
1785
1790
|
onKeydown: [
|
|
1786
|
-
le(
|
|
1791
|
+
le(n, ["enter"]),
|
|
1787
1792
|
le(s, ["esc"])
|
|
1788
1793
|
]
|
|
1789
1794
|
}, null, 8, ["modelValue", "class"])
|
|
1790
1795
|
]),
|
|
1791
|
-
w(u(
|
|
1796
|
+
w(u(j), {
|
|
1792
1797
|
icon: "bi:x-circle",
|
|
1793
1798
|
class: "mx-2 cursor-pointer",
|
|
1794
1799
|
onClick: p,
|
|
@@ -1796,30 +1801,30 @@ const Nt = {
|
|
|
1796
1801
|
"data-cy": "clear-icon"
|
|
1797
1802
|
})
|
|
1798
1803
|
])), [
|
|
1799
|
-
[u(Me),
|
|
1804
|
+
[u(Me), n]
|
|
1800
1805
|
])
|
|
1801
|
-
])) : (d(),
|
|
1806
|
+
])) : (d(), f("div", {
|
|
1802
1807
|
key: 1,
|
|
1803
1808
|
class: "d-flex text-muted",
|
|
1804
|
-
onClick:
|
|
1805
|
-
onFocus:
|
|
1809
|
+
onClick: o,
|
|
1810
|
+
onFocus: o
|
|
1806
1811
|
}, [
|
|
1807
|
-
|
|
1812
|
+
F($.$slots, "default", {}, () => [
|
|
1808
1813
|
m("div", {
|
|
1809
|
-
class: S(["pe-2 cursor-pointer", { "text-invalid":
|
|
1814
|
+
class: S(["pe-2 cursor-pointer", { "text-invalid": h.value }]),
|
|
1810
1815
|
"data-cy": "value"
|
|
1811
|
-
},
|
|
1816
|
+
}, B(u(r) ? u(r) : "Click to edit"), 3)
|
|
1812
1817
|
]),
|
|
1813
1818
|
w(U, {
|
|
1814
1819
|
link: "",
|
|
1815
1820
|
class: "p-0 m-0"
|
|
1816
1821
|
}, {
|
|
1817
|
-
default:
|
|
1818
|
-
w(u(
|
|
1822
|
+
default: v(() => [
|
|
1823
|
+
w(u(j), {
|
|
1819
1824
|
icon: "bi:pencil",
|
|
1820
|
-
class: S(
|
|
1825
|
+
class: S(h.value ? "text-invalid" : "text-muted"),
|
|
1821
1826
|
"data-cy": "edit-icon",
|
|
1822
|
-
onKeydown: le(
|
|
1827
|
+
onKeydown: le(o, ["enter"])
|
|
1823
1828
|
}, null, 8, ["class"])
|
|
1824
1829
|
]),
|
|
1825
1830
|
_: 1
|
|
@@ -1829,13 +1834,13 @@ const Nt = {
|
|
|
1829
1834
|
J(m("small", {
|
|
1830
1835
|
"data-cy": "error",
|
|
1831
1836
|
class: "text-invalid"
|
|
1832
|
-
},
|
|
1833
|
-
[
|
|
1837
|
+
}, B(u(c)), 513), [
|
|
1838
|
+
[X, h.value]
|
|
1834
1839
|
])
|
|
1835
1840
|
], 8, Ut);
|
|
1836
1841
|
};
|
|
1837
1842
|
}
|
|
1838
|
-
}), Yt = ["href"],
|
|
1843
|
+
}), Yt = ["href"], nl = /* @__PURE__ */ C({
|
|
1839
1844
|
__name: "ForgeNavbar",
|
|
1840
1845
|
props: {
|
|
1841
1846
|
severity: { default: "light" },
|
|
@@ -1884,20 +1889,20 @@ const Nt = {
|
|
|
1884
1889
|
pt: a.value,
|
|
1885
1890
|
"data-cy": "navbar"
|
|
1886
1891
|
}), ae({
|
|
1887
|
-
start:
|
|
1892
|
+
start: v(() => [
|
|
1888
1893
|
m("a", {
|
|
1889
1894
|
href: i.logoUrl,
|
|
1890
1895
|
class: "navbar-brand ms-3",
|
|
1891
1896
|
"data-cy": "logo"
|
|
1892
1897
|
}, [
|
|
1893
|
-
|
|
1894
|
-
l[0] || (l[0] =
|
|
1898
|
+
F(i.$slots, "logo", {}, () => [
|
|
1899
|
+
l[0] || (l[0] = P(" Logo "))
|
|
1895
1900
|
])
|
|
1896
1901
|
], 8, Yt)
|
|
1897
1902
|
]),
|
|
1898
|
-
buttonicon:
|
|
1899
|
-
|
|
1900
|
-
w(u(
|
|
1903
|
+
buttonicon: v(() => [
|
|
1904
|
+
F(i.$slots, "buttonIcon", {}, () => [
|
|
1905
|
+
w(u(j), {
|
|
1901
1906
|
icon: "bi:list",
|
|
1902
1907
|
class: S(t.severity === "light" ? "text-black" : "text-white"),
|
|
1903
1908
|
height: "24",
|
|
@@ -1907,10 +1912,10 @@ const Nt = {
|
|
|
1907
1912
|
]),
|
|
1908
1913
|
_: 2
|
|
1909
1914
|
}, [
|
|
1910
|
-
E(i.$slots, (
|
|
1911
|
-
name:
|
|
1912
|
-
fn:
|
|
1913
|
-
|
|
1915
|
+
E(i.$slots, (o, n) => ({
|
|
1916
|
+
name: n,
|
|
1917
|
+
fn: v((s) => [
|
|
1918
|
+
F(i.$slots, n, W(G(s)))
|
|
1914
1919
|
])
|
|
1915
1920
|
}))
|
|
1916
1921
|
]), 1040, ["pt"]));
|
|
@@ -1939,11 +1944,11 @@ const Nt = {
|
|
|
1939
1944
|
emits: ["update:modelValue"],
|
|
1940
1945
|
setup(e) {
|
|
1941
1946
|
const t = e, a = N(e, "modelValue"), i = (l) => {
|
|
1942
|
-
a.value = a.value.filter((
|
|
1947
|
+
a.value = a.value.filter((o) => o.id !== l);
|
|
1943
1948
|
};
|
|
1944
|
-
return (l,
|
|
1945
|
-
const
|
|
1946
|
-
return d(),
|
|
1949
|
+
return (l, o) => {
|
|
1950
|
+
const n = de, s = q;
|
|
1951
|
+
return d(), f("div", {
|
|
1947
1952
|
class: S(l.orientation === "column" ? "row" : ""),
|
|
1948
1953
|
"data-cy": "multiselect-preview"
|
|
1949
1954
|
}, [
|
|
@@ -1951,21 +1956,21 @@ const Nt = {
|
|
|
1951
1956
|
class: S(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1952
1957
|
"data-cy": "multiselect-container"
|
|
1953
1958
|
}, [
|
|
1954
|
-
w(
|
|
1959
|
+
w(n, _({
|
|
1955
1960
|
modelValue: a.value,
|
|
1956
|
-
"onUpdate:modelValue":
|
|
1961
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => a.value = p)
|
|
1957
1962
|
}, { ...l.$attrs }, {
|
|
1958
1963
|
options: t.options ?? [],
|
|
1959
1964
|
optionLabel: "label",
|
|
1960
1965
|
placeholder: l.multiselectPlaceholder,
|
|
1961
1966
|
"data-cy": "multiselect"
|
|
1962
1967
|
}), {
|
|
1963
|
-
default:
|
|
1964
|
-
(d(!0),
|
|
1968
|
+
default: v(() => [
|
|
1969
|
+
(d(!0), f(A, null, E(l.$slots, (p, c) => F(l.$slots, c, { slot: c })), 256))
|
|
1965
1970
|
]),
|
|
1966
1971
|
_: 3
|
|
1967
1972
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1968
|
-
|
|
1973
|
+
F(l.$slots, "after-multi-select")
|
|
1969
1974
|
], 2),
|
|
1970
1975
|
m("div", {
|
|
1971
1976
|
class: S(l.orientation === "row" ? "col-12" : "col"),
|
|
@@ -1976,13 +1981,13 @@ const Nt = {
|
|
|
1976
1981
|
class: "overflow-auto"
|
|
1977
1982
|
}, [
|
|
1978
1983
|
m("div", Jt, [
|
|
1979
|
-
l.title ? (d(),
|
|
1980
|
-
(d(!0),
|
|
1984
|
+
l.title ? (d(), f("div", Kt, B(l.title), 1)) : z("", !0),
|
|
1985
|
+
(d(!0), f(A, null, E(a.value, (p) => (d(), f("div", {
|
|
1981
1986
|
key: p.id,
|
|
1982
1987
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1983
1988
|
}, [
|
|
1984
|
-
|
|
1985
|
-
m("span", Zt,
|
|
1989
|
+
F(l.$slots, "list-item", { item: p }, () => [
|
|
1990
|
+
m("span", Zt, B(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1986
1991
|
]),
|
|
1987
1992
|
l.canRemoveItemFromPreview ? (d(), y(s, {
|
|
1988
1993
|
key: 0,
|
|
@@ -1990,8 +1995,8 @@ const Nt = {
|
|
|
1990
1995
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1991
1996
|
onClick: (c) => i(p.id)
|
|
1992
1997
|
}, {
|
|
1993
|
-
default:
|
|
1994
|
-
w(u(
|
|
1998
|
+
default: v(() => [
|
|
1999
|
+
w(u(j), {
|
|
1995
2000
|
icon: "bi:x",
|
|
1996
2001
|
class: "close-icon",
|
|
1997
2002
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -2000,7 +2005,7 @@ const Nt = {
|
|
|
2000
2005
|
_: 2
|
|
2001
2006
|
}, 1032, ["onClick"])) : z("", !0)
|
|
2002
2007
|
]))), 128)),
|
|
2003
|
-
a.value == null || a.value.length == 0 ? (d(),
|
|
2008
|
+
a.value == null || a.value.length == 0 ? (d(), f("div", Xt, B(t.optionsPreviewEmptyText), 1)) : z("", !0)
|
|
2004
2009
|
])
|
|
2005
2010
|
], 4)
|
|
2006
2011
|
], 2)
|
|
@@ -2020,14 +2025,14 @@ const Nt = {
|
|
|
2020
2025
|
},
|
|
2021
2026
|
setup(e) {
|
|
2022
2027
|
const t = e;
|
|
2023
|
-
return (a, i) => (d(),
|
|
2024
|
-
m("h3", ta,
|
|
2028
|
+
return (a, i) => (d(), f("div", ea, [
|
|
2029
|
+
m("h3", ta, B(t.title), 1),
|
|
2025
2030
|
m("div", aa, [
|
|
2026
|
-
|
|
2031
|
+
F(a.$slots, "default")
|
|
2027
2032
|
])
|
|
2028
2033
|
]));
|
|
2029
2034
|
}
|
|
2030
|
-
}), ia = { class: "d-flex" }, la = { "data-cy": "before-slot" },
|
|
2035
|
+
}), ia = { class: "d-flex" }, la = { "data-cy": "before-slot" }, oa = { class: "position-relative w-100" }, na = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ C({
|
|
2031
2036
|
__name: "ForgeDatepicker",
|
|
2032
2037
|
props: /* @__PURE__ */ R({
|
|
2033
2038
|
severity: { default: "primary" },
|
|
@@ -2102,12 +2107,12 @@ const Nt = {
|
|
|
2102
2107
|
}),
|
|
2103
2108
|
emits: ["update:modelValue"],
|
|
2104
2109
|
setup(e) {
|
|
2105
|
-
const t = e, a = N(e, "modelValue"), { errors: i, errorMessage: l, handleChange:
|
|
2110
|
+
const t = e, a = N(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: n, setValue: s } = ne(() => t.name, void 0, {
|
|
2106
2111
|
initialValue: a.value
|
|
2107
2112
|
}), p = () => {
|
|
2108
2113
|
s(null), a.value = null;
|
|
2109
|
-
}, c = T(() => i.value.length > 0),
|
|
2110
|
-
day: ({ context: r, props:
|
|
2114
|
+
}, c = T(() => i.value.length > 0), x = T(() => ({
|
|
2115
|
+
day: ({ context: r, props: h, attrs: $ }) => ({
|
|
2111
2116
|
class: [
|
|
2112
2117
|
"d-flex justify-content-center align-items-center",
|
|
2113
2118
|
{
|
|
@@ -2122,8 +2127,8 @@ const Nt = {
|
|
|
2122
2127
|
//This is used to show which dates should be shows as 'disabled'. The first part of logic is used to only (due to prime vue passing
|
|
2123
2128
|
//disabled for otherMonth dates) show the disabled styling for current calendar dates. The second part of logic is used to set the
|
|
2124
2129
|
//disabled state for dates out of the min/max date range, as they would also come through the context as disabled dates without knowing why
|
|
2125
|
-
"text-grey-300": r.disabled && !r.otherMonth ||
|
|
2126
|
-
"fw-500": r.disabled && !r.otherMonth ||
|
|
2130
|
+
"text-grey-300": r.disabled && !r.otherMonth || h.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < h.minDate || h.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > h.maxDate,
|
|
2131
|
+
"fw-500": r.disabled && !r.otherMonth || h.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < h.minDate || h.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > h.maxDate
|
|
2127
2132
|
},
|
|
2128
2133
|
// Severities
|
|
2129
2134
|
{
|
|
@@ -2211,49 +2216,49 @@ const Nt = {
|
|
|
2211
2216
|
]
|
|
2212
2217
|
})
|
|
2213
2218
|
}));
|
|
2214
|
-
return (r,
|
|
2219
|
+
return (r, h) => {
|
|
2215
2220
|
const $ = De;
|
|
2216
|
-
return d(),
|
|
2221
|
+
return d(), f(A, null, [
|
|
2217
2222
|
m("div", ia, [
|
|
2218
2223
|
m("span", la, [
|
|
2219
|
-
|
|
2224
|
+
F(r.$slots, "before")
|
|
2220
2225
|
]),
|
|
2221
|
-
m("div",
|
|
2226
|
+
m("div", oa, [
|
|
2222
2227
|
w($, _({ ...t, ...r.$attrs }, {
|
|
2223
|
-
pt:
|
|
2228
|
+
pt: x.value,
|
|
2224
2229
|
modelValue: a.value,
|
|
2225
2230
|
"onUpdate:modelValue": [
|
|
2226
|
-
|
|
2227
|
-
u(
|
|
2231
|
+
h[0] || (h[0] = (D) => a.value = D),
|
|
2232
|
+
u(o)
|
|
2228
2233
|
],
|
|
2229
|
-
onBlur:
|
|
2234
|
+
onBlur: h[1] || (h[1] = () => u(n)),
|
|
2230
2235
|
"input-class": { "text-truncate": !0, "datepicker-invalid": c.value, "pe-5": t.showIcon && t.modelValue, "pe-4": (t.showIcon || t.modelValue) && !(t.showIcon && t.modelValue) }
|
|
2231
2236
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2232
|
-
J(w(u(
|
|
2237
|
+
J(w(u(j), {
|
|
2233
2238
|
"data-cy": "icon",
|
|
2234
2239
|
icon: "bi:calendar4",
|
|
2235
2240
|
class: S(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white pe-none", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2236
2241
|
}, null, 8, ["class"]), [
|
|
2237
|
-
[
|
|
2242
|
+
[X, t.showIcon && !t.inline]
|
|
2238
2243
|
]),
|
|
2239
|
-
J(w(u(
|
|
2244
|
+
J(w(u(j), {
|
|
2240
2245
|
"data-cy": "icon",
|
|
2241
2246
|
icon: "bi:x",
|
|
2242
2247
|
onClick: p,
|
|
2243
2248
|
class: S(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2244
2249
|
}, null, 8, ["class"]), [
|
|
2245
|
-
[
|
|
2250
|
+
[X, t.modelValue && !t.inline]
|
|
2246
2251
|
])
|
|
2247
2252
|
]),
|
|
2248
|
-
m("span",
|
|
2249
|
-
|
|
2253
|
+
m("span", na, [
|
|
2254
|
+
F(r.$slots, "after")
|
|
2250
2255
|
])
|
|
2251
2256
|
]),
|
|
2252
2257
|
J(m("small", {
|
|
2253
2258
|
"data-cy": "error",
|
|
2254
2259
|
class: "text-invalid"
|
|
2255
|
-
},
|
|
2256
|
-
[
|
|
2260
|
+
}, B(u(l)), 513), [
|
|
2261
|
+
[X, c.value]
|
|
2257
2262
|
])
|
|
2258
2263
|
], 64);
|
|
2259
2264
|
};
|
|
@@ -2266,9 +2271,9 @@ const Nt = {
|
|
|
2266
2271
|
},
|
|
2267
2272
|
setup(e) {
|
|
2268
2273
|
const t = e, a = T(() => t.maxCount - t.currentCount);
|
|
2269
|
-
return (i, l) => (d(),
|
|
2274
|
+
return (i, l) => (d(), f("div", {
|
|
2270
2275
|
class: S(a.value < 0 ? "text-danger" : "")
|
|
2271
|
-
}, "Remaining characters: " +
|
|
2276
|
+
}, "Remaining characters: " + B(a.value), 3));
|
|
2272
2277
|
}
|
|
2273
2278
|
}), sa = { class: "d-flex justify-content-between" }, dl = /* @__PURE__ */ C({
|
|
2274
2279
|
__name: "ForgeForm",
|
|
@@ -2282,7 +2287,7 @@ const Nt = {
|
|
|
2282
2287
|
hideCancel: { type: Boolean, default: !1 }
|
|
2283
2288
|
},
|
|
2284
2289
|
setup(e) {
|
|
2285
|
-
const t = e, a =
|
|
2290
|
+
const t = e, a = I(!1), i = I({
|
|
2286
2291
|
hasError: !1,
|
|
2287
2292
|
message: ""
|
|
2288
2293
|
});
|
|
@@ -2290,67 +2295,67 @@ const Nt = {
|
|
|
2290
2295
|
a.value = !0, i.value.hasError = !1;
|
|
2291
2296
|
try {
|
|
2292
2297
|
await t.onSubmit();
|
|
2293
|
-
} catch (
|
|
2294
|
-
i.value.hasError = !0,
|
|
2298
|
+
} catch (o) {
|
|
2299
|
+
i.value.hasError = !0, o.message && (i.value.message = o.message);
|
|
2295
2300
|
}
|
|
2296
2301
|
a.value = !1;
|
|
2297
2302
|
}
|
|
2298
|
-
return (
|
|
2303
|
+
return (o, n) => {
|
|
2299
2304
|
const s = q;
|
|
2300
|
-
return d(),
|
|
2305
|
+
return d(), f("form", _(o.$attrs, {
|
|
2301
2306
|
novalidate: "",
|
|
2302
2307
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2303
|
-
onSubmit:
|
|
2308
|
+
onSubmit: Q(l, ["prevent"])
|
|
2304
2309
|
}), [
|
|
2305
|
-
|
|
2306
|
-
|
|
2310
|
+
o.hideTitle ? z("", !0) : (d(), f(A, { key: 0 }, [
|
|
2311
|
+
F(o.$slots, "title", {}, () => [
|
|
2307
2312
|
m("h3", {
|
|
2308
|
-
class: S(
|
|
2313
|
+
class: S(o.titleClass),
|
|
2309
2314
|
"data-cy": "form-title"
|
|
2310
|
-
},
|
|
2315
|
+
}, B(o.title), 3)
|
|
2311
2316
|
]),
|
|
2312
|
-
|
|
2317
|
+
n[1] || (n[1] = m("hr", null, null, -1))
|
|
2313
2318
|
], 64)),
|
|
2314
|
-
i.value.hasError ? (d(), y(
|
|
2319
|
+
i.value.hasError ? (d(), y(se, {
|
|
2315
2320
|
key: 1,
|
|
2316
2321
|
severity: "danger",
|
|
2317
2322
|
"data-cy": "error"
|
|
2318
2323
|
}, {
|
|
2319
|
-
default:
|
|
2320
|
-
|
|
2324
|
+
default: v(() => [
|
|
2325
|
+
F(o.$slots, "error", {
|
|
2321
2326
|
error: i.value.message
|
|
2322
2327
|
}, () => [
|
|
2323
|
-
|
|
2328
|
+
P(B(i.value.message), 1)
|
|
2324
2329
|
])
|
|
2325
2330
|
]),
|
|
2326
2331
|
_: 3
|
|
2327
2332
|
})) : z("", !0),
|
|
2328
|
-
|
|
2333
|
+
F(o.$slots, "default"),
|
|
2329
2334
|
m("div", sa, [
|
|
2330
|
-
|
|
2331
|
-
|
|
2335
|
+
F(o.$slots, "cancel", {}, () => [
|
|
2336
|
+
o.hideCancel ? z("", !0) : (d(), y(s, {
|
|
2332
2337
|
key: 0,
|
|
2333
2338
|
"data-cy": "cancel-btn",
|
|
2334
2339
|
type: "reset",
|
|
2335
2340
|
severity: "secondary",
|
|
2336
2341
|
outlined: "",
|
|
2337
|
-
onClick:
|
|
2342
|
+
onClick: n[0] || (n[0] = (p) => o.$emit("cancel"))
|
|
2338
2343
|
}, {
|
|
2339
|
-
default:
|
|
2340
|
-
|
|
2344
|
+
default: v(() => [
|
|
2345
|
+
P(B(o.cancelText), 1)
|
|
2341
2346
|
]),
|
|
2342
2347
|
_: 1
|
|
2343
2348
|
}))
|
|
2344
2349
|
]),
|
|
2345
|
-
|
|
2350
|
+
F(o.$slots, "submit", { submit: l }, () => [
|
|
2346
2351
|
w(s, {
|
|
2347
2352
|
"data-cy": "submit-btn",
|
|
2348
2353
|
type: "submit",
|
|
2349
2354
|
severity: "primary",
|
|
2350
2355
|
class: "ms-auto"
|
|
2351
2356
|
}, {
|
|
2352
|
-
default:
|
|
2353
|
-
|
|
2357
|
+
default: v(() => [
|
|
2358
|
+
P(B(o.submitText), 1)
|
|
2354
2359
|
]),
|
|
2355
2360
|
_: 1
|
|
2356
2361
|
})
|
|
@@ -2386,24 +2391,24 @@ const Nt = {
|
|
|
2386
2391
|
}),
|
|
2387
2392
|
emits: ["update:modelValue"],
|
|
2388
2393
|
setup(e) {
|
|
2389
|
-
const t = N(e, "modelValue"), a = e, i = (
|
|
2390
|
-
a.type == "number" ? s(
|
|
2391
|
-
}, { errors: l, value:
|
|
2394
|
+
const t = N(e, "modelValue"), a = e, i = (x) => {
|
|
2395
|
+
a.type == "number" ? s(x.value) : s(x);
|
|
2396
|
+
}, { errors: l, value: o, errorMessage: n, handleChange: s, handleBlur: p } = ne(() => a.name, void 0, {
|
|
2392
2397
|
initialValue: t.value
|
|
2393
2398
|
}), c = T(() => l.value.length > 0);
|
|
2394
|
-
return
|
|
2395
|
-
t.value =
|
|
2396
|
-
}, { immediate: !0 }), (
|
|
2397
|
-
const
|
|
2399
|
+
return K(() => o.value, (x) => {
|
|
2400
|
+
t.value = x;
|
|
2401
|
+
}, { immediate: !0 }), (x, r) => {
|
|
2402
|
+
const h = Ne, $ = Oe, D = re, O = ie, U = de, b = xe;
|
|
2398
2403
|
return a.type === "checkbox" ? (d(), y(ye, _({
|
|
2399
2404
|
key: 0,
|
|
2400
2405
|
id: a.name,
|
|
2401
2406
|
label: a.fieldLabel
|
|
2402
|
-
},
|
|
2407
|
+
}, x.$attrs, {
|
|
2403
2408
|
name: a.name,
|
|
2404
2409
|
modelValue: t.value,
|
|
2405
2410
|
"onUpdate:modelValue": r[0] || (r[0] = (k) => t.value = k)
|
|
2406
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(),
|
|
2411
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), f("div", ra, [
|
|
2407
2412
|
m("div", {
|
|
2408
2413
|
"data-cy": "input-wrapper",
|
|
2409
2414
|
class: S(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2412,24 +2417,24 @@ const Nt = {
|
|
|
2412
2417
|
for: a.name,
|
|
2413
2418
|
class: S(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2414
2419
|
}, [
|
|
2415
|
-
|
|
2416
|
-
|
|
2420
|
+
P(B(a.fieldLabel) + " ", 1),
|
|
2421
|
+
x.required ? (d(), f("span", pa, "*")) : z("", !0)
|
|
2417
2422
|
], 10, da),
|
|
2418
|
-
|
|
2423
|
+
F(x.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2419
2424
|
a.type === "number" ? (d(), y(u(fe), _({
|
|
2420
2425
|
key: 0,
|
|
2421
2426
|
id: a.name
|
|
2422
|
-
},
|
|
2427
|
+
}, x.$attrs, {
|
|
2423
2428
|
placeholder: a.placeholder,
|
|
2424
2429
|
"input-class": { "is-invalid": c.value },
|
|
2425
2430
|
class: { "is-invalid": c.value },
|
|
2426
2431
|
onInput: i,
|
|
2427
2432
|
modelValue: t.value,
|
|
2428
2433
|
"onUpdate:modelValue": r[1] || (r[1] = (k) => t.value = k)
|
|
2429
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), y(
|
|
2434
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), y(h, _({
|
|
2430
2435
|
key: 1,
|
|
2431
2436
|
id: a.name
|
|
2432
|
-
},
|
|
2437
|
+
}, x.$attrs, {
|
|
2433
2438
|
placeholder: a.placeholder,
|
|
2434
2439
|
class: { "is-invalid": c.value },
|
|
2435
2440
|
modelValue: t.value,
|
|
@@ -2439,7 +2444,7 @@ const Nt = {
|
|
|
2439
2444
|
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), y($, _({
|
|
2440
2445
|
key: 2,
|
|
2441
2446
|
id: a.name
|
|
2442
|
-
},
|
|
2447
|
+
}, x.$attrs, {
|
|
2443
2448
|
placeholder: a.placeholder,
|
|
2444
2449
|
mask: a.mask,
|
|
2445
2450
|
class: { "is-invalid": c.value },
|
|
@@ -2450,26 +2455,26 @@ const Nt = {
|
|
|
2450
2455
|
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), y(D, _({
|
|
2451
2456
|
key: 3,
|
|
2452
2457
|
id: a.name
|
|
2453
|
-
},
|
|
2458
|
+
}, x.$attrs, {
|
|
2454
2459
|
placeholder: a.placeholder,
|
|
2455
2460
|
class: { "is-invalid": c.value },
|
|
2456
2461
|
modelValue: t.value,
|
|
2457
2462
|
"onUpdate:modelValue": r[4] || (r[4] = (k) => t.value = k),
|
|
2458
2463
|
onInput: i,
|
|
2459
2464
|
onBlur: u(p)
|
|
2460
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), y(O, _({ key: 4 }, { ...a, ...
|
|
2465
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), y(O, _({ key: 4 }, { ...a, ...x.$attrs }, {
|
|
2461
2466
|
modelValue: t.value,
|
|
2462
2467
|
"onUpdate:modelValue": r[5] || (r[5] = (k) => t.value = k),
|
|
2463
2468
|
class: { "is-invalid": c.value }
|
|
2464
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), y(U, _({ key: 5 }, { ...a, ...
|
|
2469
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), y(U, _({ key: 5 }, { ...a, ...x.$attrs }, {
|
|
2465
2470
|
modelValue: t.value,
|
|
2466
2471
|
"onUpdate:modelValue": r[6] || (r[6] = (k) => t.value = k),
|
|
2467
2472
|
class: { "is-invalid": c.value }
|
|
2468
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), y(Qt, _({ key: 6 }, { ...a, ...
|
|
2473
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), y(Qt, _({ key: 6 }, { ...a, ...x.$attrs }, {
|
|
2469
2474
|
modelValue: t.value,
|
|
2470
2475
|
"onUpdate:modelValue": r[7] || (r[7] = (k) => t.value = k),
|
|
2471
2476
|
class: { "is-invalid": c.value }
|
|
2472
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), y(b, _({ key: 7 }, { ...a, ...
|
|
2477
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), y(b, _({ key: 7 }, { ...a, ...x.$attrs }, {
|
|
2473
2478
|
modelValue: t.value,
|
|
2474
2479
|
"onUpdate:modelValue": r[8] || (r[8] = (k) => t.value = k),
|
|
2475
2480
|
class: { "is-invalid": c.value }
|
|
@@ -2479,8 +2484,8 @@ const Nt = {
|
|
|
2479
2484
|
J(m("small", {
|
|
2480
2485
|
"data-cy": "error",
|
|
2481
2486
|
class: "invalid-feedback"
|
|
2482
|
-
},
|
|
2483
|
-
[
|
|
2487
|
+
}, B(u(n)), 513), [
|
|
2488
|
+
[X, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2484
2489
|
])
|
|
2485
2490
|
]));
|
|
2486
2491
|
};
|
|
@@ -2520,10 +2525,10 @@ const Nt = {
|
|
|
2520
2525
|
]
|
|
2521
2526
|
}));
|
|
2522
2527
|
return (i, l) => {
|
|
2523
|
-
const
|
|
2524
|
-
return d(), y(
|
|
2525
|
-
default:
|
|
2526
|
-
(d(!0),
|
|
2528
|
+
const o = Ae;
|
|
2529
|
+
return d(), y(o, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2530
|
+
default: v(() => [
|
|
2531
|
+
(d(!0), f(A, null, E(i.$slots, (n, s) => F(i.$slots, s, { slot: s })), 256))
|
|
2527
2532
|
]),
|
|
2528
2533
|
_: 3
|
|
2529
2534
|
}, 16, ["pt"]);
|
|
@@ -2566,7 +2571,7 @@ const Nt = {
|
|
|
2566
2571
|
default:
|
|
2567
2572
|
return "bg-primary";
|
|
2568
2573
|
}
|
|
2569
|
-
}),
|
|
2574
|
+
}), o = T(() => ({
|
|
2570
2575
|
root: {
|
|
2571
2576
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2572
2577
|
},
|
|
@@ -2574,11 +2579,11 @@ const Nt = {
|
|
|
2574
2579
|
class: [l.value, a.value, i.value, "progress-bar"]
|
|
2575
2580
|
}
|
|
2576
2581
|
}));
|
|
2577
|
-
return (
|
|
2582
|
+
return (n, s) => {
|
|
2578
2583
|
const p = Ee;
|
|
2579
|
-
return d(), y(p, _({ ...
|
|
2580
|
-
default:
|
|
2581
|
-
|
|
2584
|
+
return d(), y(p, _({ ...n.$attrs, ...t }, { pt: o.value }), {
|
|
2585
|
+
default: v(() => [
|
|
2586
|
+
F(n.$slots, "default")
|
|
2582
2587
|
]),
|
|
2583
2588
|
_: 3
|
|
2584
2589
|
}, 16, ["pt"]);
|
|
@@ -2896,15 +2901,15 @@ var ca = /* @__PURE__ */ C({
|
|
|
2896
2901
|
e && this.save();
|
|
2897
2902
|
});
|
|
2898
2903
|
},
|
|
2899
|
-
wrapText(e, t, a, i, l,
|
|
2900
|
-
const
|
|
2901
|
-
var p = t.split(
|
|
2904
|
+
wrapText(e, t, a, i, l, o) {
|
|
2905
|
+
const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2906
|
+
var p = t.split(n).filter((O) => O.length > 0);
|
|
2902
2907
|
for (let O = 0; O < p.length; O++) {
|
|
2903
|
-
for (var c = p[O].split(s).filter((U) => U.length > 0),
|
|
2904
|
-
var
|
|
2905
|
-
D > l && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2908
|
+
for (var c = p[O].split(s).filter((U) => U.length > 0), x = "", r = 0; r < c.length; r++) {
|
|
2909
|
+
var h = x + c[r] + " ", $ = e.measureText(h), D = $.width;
|
|
2910
|
+
D > l && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), x = c[r] + " ", i += o) : x = h;
|
|
2906
2911
|
}
|
|
2907
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2912
|
+
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), i += c.length > 0 ? o : 0;
|
|
2908
2913
|
}
|
|
2909
2914
|
},
|
|
2910
2915
|
save() {
|
|
@@ -2921,23 +2926,23 @@ var ca = /* @__PURE__ */ C({
|
|
|
2921
2926
|
drawWatermark(e, t, a) {
|
|
2922
2927
|
if (a.type === "Image") {
|
|
2923
2928
|
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);
|
|
2924
|
-
const
|
|
2925
|
-
|
|
2926
|
-
a && t && t.drawImage(
|
|
2927
|
-
let
|
|
2928
|
-
if (
|
|
2929
|
-
return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image",
|
|
2929
|
+
const o = new Image();
|
|
2930
|
+
o.src = a.source, o.onload = () => {
|
|
2931
|
+
a && t && t.drawImage(o, a.x, a.y, Number(i), Number(l));
|
|
2932
|
+
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;
|
|
2933
|
+
if (n.width = Number(p), n.height = Number(c), s)
|
|
2934
|
+
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);
|
|
2930
2935
|
};
|
|
2931
2936
|
} else if (a.type === "Text") {
|
|
2932
|
-
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start",
|
|
2933
|
-
if (t.font = i, t.textAlign = l, t.textBaseline =
|
|
2934
|
-
let r,
|
|
2935
|
-
a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ?
|
|
2937
|
+
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";
|
|
2938
|
+
if (t.font = i, t.textAlign = l, t.textBaseline = o, a.fontStyle && a.fontStyle.rotate) {
|
|
2939
|
+
let r, h;
|
|
2940
|
+
a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ? h = a.y + Math.floor(a.fontStyle.lineHeight / 2) : h = a.y, t.translate(r, h), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(r * -1, h * -1);
|
|
2936
2941
|
}
|
|
2937
|
-
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 =
|
|
2938
|
-
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
2939
|
-
if (s.width = Number(c), s.height = Number(
|
|
2940
|
-
return p.drawImage(e, 0, 0, Number(c), Number(
|
|
2942
|
+
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));
|
|
2943
|
+
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, x = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2944
|
+
if (s.width = Number(c), s.height = Number(x), p)
|
|
2945
|
+
return p.drawImage(e, 0, 0, Number(c), Number(x)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
|
|
2941
2946
|
}
|
|
2942
2947
|
},
|
|
2943
2948
|
isEmpty() {
|
|
@@ -2988,7 +2993,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
2988
2993
|
},
|
|
2989
2994
|
emits: ["save"],
|
|
2990
2995
|
setup(e, { emit: t }) {
|
|
2991
|
-
const a = e, i = t, l = ze("drawingCanvas"),
|
|
2996
|
+
const a = e, i = t, l = ze("drawingCanvas"), o = I(), n = () => {
|
|
2992
2997
|
l == null || l.value.reset();
|
|
2993
2998
|
}, s = () => {
|
|
2994
2999
|
l == null || l.value.redo();
|
|
@@ -2997,66 +3002,70 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
2997
3002
|
}, c = () => {
|
|
2998
3003
|
i("save", l.value.isEmpty());
|
|
2999
3004
|
};
|
|
3000
|
-
return (
|
|
3001
|
-
const
|
|
3002
|
-
return d(),
|
|
3005
|
+
return (x, r) => {
|
|
3006
|
+
const h = q;
|
|
3007
|
+
return d(), f("div", ua, [
|
|
3003
3008
|
w(u(ca), _({
|
|
3004
3009
|
ref_key: "drawingCanvas",
|
|
3005
3010
|
ref: l,
|
|
3006
|
-
image:
|
|
3007
|
-
"onUpdate:image": r[0] || (r[0] = ($) =>
|
|
3011
|
+
image: o.value,
|
|
3012
|
+
"onUpdate:image": r[0] || (r[0] = ($) => o.value = $),
|
|
3008
3013
|
"data-cy": "drawing-canvas",
|
|
3009
3014
|
class: "border canvas"
|
|
3010
|
-
}, { ...
|
|
3011
|
-
height:
|
|
3012
|
-
width:
|
|
3013
|
-
style: `height: ${
|
|
3014
|
-
"line-join":
|
|
3015
|
+
}, { ...x.$attrs }, {
|
|
3016
|
+
height: x.height,
|
|
3017
|
+
width: x.width,
|
|
3018
|
+
style: `height: ${x.height}px; width: ${x.width}px`,
|
|
3019
|
+
"line-join": x.lineJoin
|
|
3015
3020
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
3016
3021
|
m("div", ma, [
|
|
3017
|
-
a.showUndo ? (d(), y(
|
|
3022
|
+
a.showUndo ? (d(), y(h, {
|
|
3018
3023
|
key: 0,
|
|
3019
3024
|
onClick: p,
|
|
3020
3025
|
outlined: "",
|
|
3021
3026
|
"data-cy": "undo-button"
|
|
3022
3027
|
}, {
|
|
3023
|
-
default:
|
|
3024
|
-
|
|
3028
|
+
default: v(() => r[1] || (r[1] = [
|
|
3029
|
+
P("Undo")
|
|
3025
3030
|
])),
|
|
3026
|
-
_: 1
|
|
3031
|
+
_: 1,
|
|
3032
|
+
__: [1]
|
|
3027
3033
|
})) : z("", !0),
|
|
3028
|
-
a.showRedo ? (d(), y(
|
|
3034
|
+
a.showRedo ? (d(), y(h, {
|
|
3029
3035
|
key: 1,
|
|
3030
3036
|
onClick: s,
|
|
3031
3037
|
outlined: "",
|
|
3032
3038
|
"data-cy": "redo-button"
|
|
3033
3039
|
}, {
|
|
3034
|
-
default:
|
|
3035
|
-
|
|
3040
|
+
default: v(() => r[2] || (r[2] = [
|
|
3041
|
+
P("Redo")
|
|
3036
3042
|
])),
|
|
3037
|
-
_: 1
|
|
3043
|
+
_: 1,
|
|
3044
|
+
__: [2]
|
|
3038
3045
|
})) : z("", !0),
|
|
3039
|
-
a.showClear ? (d(), y(
|
|
3046
|
+
a.showClear ? (d(), y(h, {
|
|
3040
3047
|
key: 2,
|
|
3041
|
-
onClick:
|
|
3048
|
+
onClick: n,
|
|
3042
3049
|
outlined: "",
|
|
3043
3050
|
"data-cy": "clear-button"
|
|
3044
3051
|
}, {
|
|
3045
|
-
default:
|
|
3046
|
-
|
|
3052
|
+
default: v(() => r[3] || (r[3] = [
|
|
3053
|
+
P("Clear")
|
|
3047
3054
|
])),
|
|
3048
|
-
_: 1
|
|
3055
|
+
_: 1,
|
|
3056
|
+
__: [3]
|
|
3049
3057
|
})) : z("", !0),
|
|
3050
|
-
a.showSave ? (d(), y(
|
|
3058
|
+
a.showSave ? (d(), y(h, {
|
|
3051
3059
|
key: 3,
|
|
3052
3060
|
onClick: c,
|
|
3053
3061
|
class: "ms-auto",
|
|
3054
3062
|
"data-cy": "save-button"
|
|
3055
3063
|
}, {
|
|
3056
|
-
default:
|
|
3057
|
-
|
|
3064
|
+
default: v(() => r[4] || (r[4] = [
|
|
3065
|
+
P("Save")
|
|
3058
3066
|
])),
|
|
3059
|
-
_: 1
|
|
3067
|
+
_: 1,
|
|
3068
|
+
__: [4]
|
|
3060
3069
|
})) : z("", !0)
|
|
3061
3070
|
])
|
|
3062
3071
|
]);
|
|
@@ -3070,11 +3079,11 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3070
3079
|
},
|
|
3071
3080
|
setup(e) {
|
|
3072
3081
|
const t = e;
|
|
3073
|
-
return (a, i) => (d(),
|
|
3082
|
+
return (a, i) => (d(), f("div", _(a.$attrs, {
|
|
3074
3083
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3075
3084
|
}), [
|
|
3076
3085
|
m("span", va, [
|
|
3077
|
-
|
|
3086
|
+
F(a.$slots, "default")
|
|
3078
3087
|
])
|
|
3079
3088
|
], 16));
|
|
3080
3089
|
}
|
|
@@ -3126,17 +3135,17 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3126
3135
|
})
|
|
3127
3136
|
}));
|
|
3128
3137
|
return (i, l) => (d(), y(u(qe), { value: i.currentStep }, {
|
|
3129
|
-
default:
|
|
3138
|
+
default: v(() => [
|
|
3130
3139
|
w(u(Le), null, {
|
|
3131
|
-
default:
|
|
3132
|
-
(d(!0),
|
|
3133
|
-
key:
|
|
3134
|
-
value:
|
|
3135
|
-
disabled:
|
|
3140
|
+
default: v(() => [
|
|
3141
|
+
(d(!0), f(A, null, E(i.steps, (o) => (d(), y(u(Ue), _({
|
|
3142
|
+
key: o.value,
|
|
3143
|
+
value: o.value,
|
|
3144
|
+
disabled: o.disabled,
|
|
3136
3145
|
ref_for: !0
|
|
3137
3146
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
3138
|
-
default:
|
|
3139
|
-
i.showStepLabel ? (d(),
|
|
3147
|
+
default: v(() => [
|
|
3148
|
+
i.showStepLabel ? (d(), f("div", fa, B(o.label), 1)) : z("", !0)
|
|
3140
3149
|
]),
|
|
3141
3150
|
_: 2
|
|
3142
3151
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -3144,13 +3153,13 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3144
3153
|
_: 1
|
|
3145
3154
|
}),
|
|
3146
3155
|
w(u(He), null, {
|
|
3147
|
-
default:
|
|
3148
|
-
(d(!0),
|
|
3149
|
-
key:
|
|
3150
|
-
value:
|
|
3156
|
+
default: v(() => [
|
|
3157
|
+
(d(!0), f(A, null, E(i.steps, (o) => (d(), y(u(Re), {
|
|
3158
|
+
key: o.value,
|
|
3159
|
+
value: o.value
|
|
3151
3160
|
}, {
|
|
3152
|
-
default:
|
|
3153
|
-
|
|
3161
|
+
default: v(() => [
|
|
3162
|
+
F(i.$slots, "step" + o.value)
|
|
3154
3163
|
]),
|
|
3155
3164
|
_: 2
|
|
3156
3165
|
}, 1032, ["value"]))), 128))
|
|
@@ -3171,31 +3180,31 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3171
3180
|
},
|
|
3172
3181
|
setup(e) {
|
|
3173
3182
|
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" : ""}`);
|
|
3174
|
-
return (l,
|
|
3175
|
-
const
|
|
3176
|
-
return t.clickable ? (d(), y(
|
|
3183
|
+
return (l, o) => {
|
|
3184
|
+
const n = q;
|
|
3185
|
+
return t.clickable ? (d(), y(n, {
|
|
3177
3186
|
key: 0,
|
|
3178
3187
|
class: S(["d-flex w-100 p-0 text-body", a.value]),
|
|
3179
3188
|
severity: t.severity,
|
|
3180
3189
|
unstyled: "",
|
|
3181
3190
|
"data-cy": "button-tile"
|
|
3182
3191
|
}, {
|
|
3183
|
-
default:
|
|
3192
|
+
default: v(() => [
|
|
3184
3193
|
m("div", ga, [
|
|
3185
|
-
|
|
3186
|
-
|
|
3194
|
+
F(l.$slots, "default", {}, () => [
|
|
3195
|
+
o[0] || (o[0] = P("Tile Content"))
|
|
3187
3196
|
])
|
|
3188
3197
|
])
|
|
3189
3198
|
]),
|
|
3190
3199
|
_: 3
|
|
3191
|
-
}, 8, ["severity", "class"])) : (d(),
|
|
3200
|
+
}, 8, ["severity", "class"])) : (d(), f("div", {
|
|
3192
3201
|
key: 1,
|
|
3193
3202
|
class: S(["d-flex w-100", i.value]),
|
|
3194
3203
|
"data-cy": "tile"
|
|
3195
3204
|
}, [
|
|
3196
3205
|
m("div", ba, [
|
|
3197
|
-
|
|
3198
|
-
|
|
3206
|
+
F(l.$slots, "default", {}, () => [
|
|
3207
|
+
o[1] || (o[1] = P("Tile Content"))
|
|
3199
3208
|
])
|
|
3200
3209
|
])
|
|
3201
3210
|
], 2));
|
|
@@ -3208,10 +3217,10 @@ function ee(e, t) {
|
|
|
3208
3217
|
const ya = {
|
|
3209
3218
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3210
3219
|
"data-cy": "pagination-header"
|
|
3211
|
-
},
|
|
3220
|
+
}, xa = { class: "ms-2" }, ha = { key: 0 }, wa = {
|
|
3212
3221
|
class: "w-auto",
|
|
3213
3222
|
"data-cy": "total"
|
|
3214
|
-
},
|
|
3223
|
+
}, he = /* @__PURE__ */ C({
|
|
3215
3224
|
__name: "ForgePaginationHeader",
|
|
3216
3225
|
props: {
|
|
3217
3226
|
total: {},
|
|
@@ -3220,15 +3229,15 @@ const ya = {
|
|
|
3220
3229
|
},
|
|
3221
3230
|
emits: ["update:perPage"],
|
|
3222
3231
|
setup(e, { emit: t }) {
|
|
3223
|
-
const a = t, i = e, l = (
|
|
3224
|
-
a("update:perPage",
|
|
3225
|
-
},
|
|
3226
|
-
const
|
|
3227
|
-
return `${
|
|
3232
|
+
const a = t, i = e, l = (n) => {
|
|
3233
|
+
a("update:perPage", n.value);
|
|
3234
|
+
}, o = T(() => {
|
|
3235
|
+
const n = Math.ceil(i.total / i.perPage);
|
|
3236
|
+
return `${n} ${ee(n, "page")}`;
|
|
3228
3237
|
});
|
|
3229
|
-
return (
|
|
3230
|
-
s[2] || (s[2] =
|
|
3231
|
-
m("div",
|
|
3238
|
+
return (n, s) => (d(), f("div", ya, [
|
|
3239
|
+
s[2] || (s[2] = P(" Number of results per page ")),
|
|
3240
|
+
m("div", xa, [
|
|
3232
3241
|
w(u(ie), {
|
|
3233
3242
|
options: i.pageSizes,
|
|
3234
3243
|
"model-value": i.perPage,
|
|
@@ -3237,13 +3246,13 @@ const ya = {
|
|
|
3237
3246
|
"data-cy": "pagination-page-size-select"
|
|
3238
3247
|
}, null, 8, ["options", "model-value"])
|
|
3239
3248
|
]),
|
|
3240
|
-
i.total ? (d(),
|
|
3249
|
+
i.total ? (d(), f("div", ha, [
|
|
3241
3250
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3242
|
-
m("span", wa,
|
|
3251
|
+
m("span", wa, B(i.total) + " " + B(u(ee)(i.total, "result")) + " across " + B(o.value), 1)
|
|
3243
3252
|
])) : z("", !0)
|
|
3244
3253
|
]));
|
|
3245
3254
|
}
|
|
3246
|
-
}), ka = { class: "position-relative" }, $a = { "data-cy": "above-table-slot" },
|
|
3255
|
+
}), ka = { class: "position-relative" }, $a = { "data-cy": "above-table-slot" }, Fa = { class: "d-flex w-100" }, Ba = {
|
|
3247
3256
|
class: "mx-auto",
|
|
3248
3257
|
"data-cy": "empty-message"
|
|
3249
3258
|
}, Sa = { class: "d-flex" }, Ca = { class: "d-flex align-items-end mb-2" }, za = { key: 0 }, Ta = { class: "ms-auto" }, bl = /* @__PURE__ */ C({
|
|
@@ -3333,21 +3342,21 @@ const ya = {
|
|
|
3333
3342
|
},
|
|
3334
3343
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3335
3344
|
setup(e, { emit: t }) {
|
|
3336
|
-
const a = t, i = e, l =
|
|
3345
|
+
const a = t, i = e, l = I(), o = I([5, 10, 20, 50, 100]), n = I(i.perPage ?? 10), s = I({
|
|
3337
3346
|
filters: i.filters,
|
|
3338
|
-
perPage:
|
|
3347
|
+
perPage: n.value,
|
|
3339
3348
|
page: 0,
|
|
3340
3349
|
sortDirection: "None",
|
|
3341
3350
|
sortField: "",
|
|
3342
3351
|
total: i.totalRecords ?? i.value.length
|
|
3343
3352
|
});
|
|
3344
|
-
|
|
3345
|
-
b && (
|
|
3353
|
+
K(() => i.perPage, (b) => {
|
|
3354
|
+
b && (n.value = b, s.value.perPage = b);
|
|
3346
3355
|
});
|
|
3347
3356
|
const p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
|
|
3348
|
-
const b = Math.ceil(p.value /
|
|
3357
|
+
const b = Math.ceil(p.value / n.value);
|
|
3349
3358
|
return `${b} ${ee(b, "page")}`;
|
|
3350
|
-
}),
|
|
3359
|
+
}), x = T(() => ({
|
|
3351
3360
|
thead: () => ({
|
|
3352
3361
|
class: [
|
|
3353
3362
|
{
|
|
@@ -3377,7 +3386,7 @@ const ya = {
|
|
|
3377
3386
|
for (const b in i.filters)
|
|
3378
3387
|
typeof i.filters[b] == "string" ? i.filters[b] = "" : i.filters[b].value = null;
|
|
3379
3388
|
D(i.filters);
|
|
3380
|
-
},
|
|
3389
|
+
}, h = () => {
|
|
3381
3390
|
l.value.exportCSV();
|
|
3382
3391
|
}, $ = (b) => {
|
|
3383
3392
|
var k;
|
|
@@ -3387,19 +3396,19 @@ const ya = {
|
|
|
3387
3396
|
}, O = (b) => {
|
|
3388
3397
|
s.value.page = b.page, a("update:tableContext", s.value), a("page", b);
|
|
3389
3398
|
}, U = () => {
|
|
3390
|
-
s.value.perPage =
|
|
3399
|
+
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3391
3400
|
};
|
|
3392
|
-
return
|
|
3401
|
+
return K(() => i.filters, (b) => {
|
|
3393
3402
|
s.value.filters = b, a("update:tableContext", s.value);
|
|
3394
|
-
}, { deep: !0 }),
|
|
3403
|
+
}, { deep: !0 }), oe(() => a("update:tableContext", s.value)), (b, k) => (d(), f("div", ka, [
|
|
3395
3404
|
m("span", $a, [
|
|
3396
|
-
|
|
3405
|
+
F(b.$slots, "above-table")
|
|
3397
3406
|
]),
|
|
3398
3407
|
w(u(We), _({
|
|
3399
3408
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3400
3409
|
}, { ...i, ...b.$attrs }, {
|
|
3401
|
-
pt:
|
|
3402
|
-
rows:
|
|
3410
|
+
pt: x.value,
|
|
3411
|
+
rows: n.value,
|
|
3403
3412
|
"total-records": p.value,
|
|
3404
3413
|
"filter-display": i.filters ? "row" : void 0,
|
|
3405
3414
|
ref_key: "forgeTable",
|
|
@@ -3410,24 +3419,24 @@ const ya = {
|
|
|
3410
3419
|
onPage: O,
|
|
3411
3420
|
showHeaders: ""
|
|
3412
3421
|
}), ae({
|
|
3413
|
-
empty:
|
|
3414
|
-
m("div",
|
|
3415
|
-
m("h5",
|
|
3422
|
+
empty: v(() => [
|
|
3423
|
+
m("div", Fa, [
|
|
3424
|
+
m("h5", Ba, B(b.emptyMessage ?? "No items Found."), 1)
|
|
3416
3425
|
])
|
|
3417
3426
|
]),
|
|
3418
|
-
header:
|
|
3427
|
+
header: v(() => [
|
|
3419
3428
|
m("div", {
|
|
3420
3429
|
class: S(i.loading ? "opacity-50" : "")
|
|
3421
3430
|
}, [
|
|
3422
3431
|
m("div", Sa, [
|
|
3423
3432
|
m("div", Ca, [
|
|
3424
|
-
b.paginator && !b.legacyPaginationFooter ? (d(),
|
|
3425
|
-
w(
|
|
3433
|
+
b.paginator && !b.legacyPaginationFooter ? (d(), f("span", za, [
|
|
3434
|
+
w(he, {
|
|
3426
3435
|
total: p.value,
|
|
3427
|
-
"page-sizes":
|
|
3428
|
-
"per-page":
|
|
3436
|
+
"page-sizes": o.value,
|
|
3437
|
+
"per-page": n.value,
|
|
3429
3438
|
"onUpdate:perPage": [
|
|
3430
|
-
k[0] || (k[0] = (
|
|
3439
|
+
k[0] || (k[0] = (M) => n.value = M),
|
|
3431
3440
|
U
|
|
3432
3441
|
]
|
|
3433
3442
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
@@ -3441,60 +3450,62 @@ const ya = {
|
|
|
3441
3450
|
onClick: r,
|
|
3442
3451
|
"data-cy": "clear-all"
|
|
3443
3452
|
}, {
|
|
3444
|
-
default:
|
|
3445
|
-
w(u(
|
|
3453
|
+
default: v(() => [
|
|
3454
|
+
w(u(j), {
|
|
3446
3455
|
icon: "bi:funnel-fill",
|
|
3447
3456
|
width: "24",
|
|
3448
3457
|
height: "24"
|
|
3449
3458
|
}),
|
|
3450
|
-
k[2] || (k[2] =
|
|
3459
|
+
k[2] || (k[2] = P(" Clear "))
|
|
3451
3460
|
]),
|
|
3452
|
-
_: 1
|
|
3461
|
+
_: 1,
|
|
3462
|
+
__: [2]
|
|
3453
3463
|
}, 8, ["class"])) : z("", !0),
|
|
3454
3464
|
b.showExporterButton ? (d(), y(u(q), {
|
|
3455
3465
|
key: 1,
|
|
3456
3466
|
outlined: "",
|
|
3457
|
-
onClick:
|
|
3467
|
+
onClick: h,
|
|
3458
3468
|
"data-cy": "exporter"
|
|
3459
3469
|
}, {
|
|
3460
|
-
default:
|
|
3461
|
-
w(u(
|
|
3470
|
+
default: v(() => [
|
|
3471
|
+
w(u(j), {
|
|
3462
3472
|
icon: "typcn:export",
|
|
3463
3473
|
width: "24",
|
|
3464
3474
|
height: "24"
|
|
3465
3475
|
}),
|
|
3466
|
-
k[3] || (k[3] =
|
|
3476
|
+
k[3] || (k[3] = P(" Export "))
|
|
3467
3477
|
]),
|
|
3468
|
-
_: 1
|
|
3478
|
+
_: 1,
|
|
3479
|
+
__: [3]
|
|
3469
3480
|
})) : z("", !0),
|
|
3470
|
-
|
|
3481
|
+
F(b.$slots, "column-customiser")
|
|
3471
3482
|
])
|
|
3472
3483
|
])
|
|
3473
3484
|
], 2)
|
|
3474
3485
|
]),
|
|
3475
|
-
default:
|
|
3476
|
-
|
|
3486
|
+
default: v(() => [
|
|
3487
|
+
F(b.$slots, "default")
|
|
3477
3488
|
]),
|
|
3478
3489
|
_: 2
|
|
3479
3490
|
}, [
|
|
3480
|
-
E(b.$slots, (
|
|
3491
|
+
E(b.$slots, (M, g) => ({
|
|
3481
3492
|
name: g,
|
|
3482
|
-
fn:
|
|
3483
|
-
|
|
3493
|
+
fn: v((V) => [
|
|
3494
|
+
F(b.$slots, g, W(G(V || {})))
|
|
3484
3495
|
])
|
|
3485
3496
|
})),
|
|
3486
3497
|
b.legacyPaginationFooter ? {
|
|
3487
3498
|
name: "paginatorstart",
|
|
3488
|
-
fn:
|
|
3499
|
+
fn: v(() => [
|
|
3489
3500
|
m("span", {
|
|
3490
3501
|
class: S(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3491
3502
|
"data-cy": "legacy-page-size"
|
|
3492
3503
|
}, [
|
|
3493
3504
|
k[4] || (k[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3494
3505
|
w(u(ie), {
|
|
3495
|
-
options:
|
|
3496
|
-
modelValue:
|
|
3497
|
-
"onUpdate:modelValue": k[1] || (k[1] = (
|
|
3506
|
+
options: o.value,
|
|
3507
|
+
modelValue: n.value,
|
|
3508
|
+
"onUpdate:modelValue": k[1] || (k[1] = (M) => n.value = M),
|
|
3498
3509
|
class: "ms-2",
|
|
3499
3510
|
onClick: U
|
|
3500
3511
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -3504,18 +3515,18 @@ const ya = {
|
|
|
3504
3515
|
} : void 0,
|
|
3505
3516
|
b.legacyPaginationFooter ? {
|
|
3506
3517
|
name: "paginatorend",
|
|
3507
|
-
fn:
|
|
3518
|
+
fn: v(() => [
|
|
3508
3519
|
m("span", {
|
|
3509
3520
|
"data-cy": "legacy-total",
|
|
3510
3521
|
class: S(i.loading ? "opacity-50" : "")
|
|
3511
|
-
},
|
|
3522
|
+
}, B(p.value) + " " + B(u(ee)(p.value, "result")) + " across " + B(c.value), 3)
|
|
3512
3523
|
]),
|
|
3513
3524
|
key: "1"
|
|
3514
3525
|
} : void 0
|
|
3515
3526
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3516
3527
|
]));
|
|
3517
3528
|
}
|
|
3518
|
-
}), _a = { class: "position-relative" },
|
|
3529
|
+
}), _a = { class: "position-relative" }, ja = { "data-cy": "above-table-slot" }, Ia = { class: "d-flex w-100" }, Pa = {
|
|
3519
3530
|
class: "mx-auto",
|
|
3520
3531
|
"data-cy": "empty-message"
|
|
3521
3532
|
}, Ma = { class: "d-flex" }, Va = { class: "d-flex align-items-end mb-2" }, Da = { key: 0 }, Oa = { class: "ms-auto" }, yl = /* @__PURE__ */ C({
|
|
@@ -3579,15 +3590,15 @@ const ya = {
|
|
|
3579
3590
|
},
|
|
3580
3591
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3581
3592
|
setup(e, { emit: t }) {
|
|
3582
|
-
const a = e, i = t, l =
|
|
3593
|
+
const a = e, i = t, l = I([5, 10, 20, 50, 100]), o = I(10), n = I(0), s = I(0), p = I({
|
|
3583
3594
|
filters: a.filters,
|
|
3584
|
-
perPage:
|
|
3595
|
+
perPage: o.value,
|
|
3585
3596
|
page: 0,
|
|
3586
3597
|
sortDirection: "None",
|
|
3587
3598
|
sortField: "",
|
|
3588
3599
|
total: a.totalRecords ?? a.value.length
|
|
3589
|
-
}), c = T(() => a.totalRecords ?? a.value.length),
|
|
3590
|
-
const g = Math.ceil(c.value /
|
|
3600
|
+
}), c = T(() => a.totalRecords ?? a.value.length), x = T(() => {
|
|
3601
|
+
const g = Math.ceil(c.value / o.value);
|
|
3591
3602
|
return `${g} ${ee(g, "page")}`;
|
|
3592
3603
|
}), r = T(() => ({
|
|
3593
3604
|
root: "position-relative",
|
|
@@ -3624,10 +3635,10 @@ const ya = {
|
|
|
3624
3635
|
}
|
|
3625
3636
|
]
|
|
3626
3637
|
}));
|
|
3627
|
-
|
|
3628
|
-
g ?
|
|
3638
|
+
K(() => a.parentExpanderFullRow, (g) => {
|
|
3639
|
+
g ? h() : $();
|
|
3629
3640
|
});
|
|
3630
|
-
const
|
|
3641
|
+
const h = () => {
|
|
3631
3642
|
a.parentExpanderFullRow && setTimeout(
|
|
3632
3643
|
() => {
|
|
3633
3644
|
const g = Array.from(
|
|
@@ -3668,60 +3679,60 @@ const ya = {
|
|
|
3668
3679
|
U(a.filters);
|
|
3669
3680
|
}, O = (g) => {
|
|
3670
3681
|
var V;
|
|
3671
|
-
p.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = g.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", g),
|
|
3682
|
+
p.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = g.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", g), h();
|
|
3672
3683
|
}, U = (g) => {
|
|
3673
|
-
p.value.filters = g, i("update:tableContext", p.value), i("update:filters", g),
|
|
3684
|
+
p.value.filters = g, i("update:tableContext", p.value), i("update:filters", g), h();
|
|
3674
3685
|
}, b = (g) => {
|
|
3675
|
-
p.value.page = s.value = g.page,
|
|
3686
|
+
p.value.page = s.value = g.page, M(), i("update:tableContext", p.value), i("page", g), h();
|
|
3676
3687
|
}, k = () => {
|
|
3677
|
-
p.value.perPage =
|
|
3688
|
+
p.value.perPage = o.value, s.value = 0, p.value.page = s.value = Math.floor(n.value / o.value), M(), i("update:tableContext", p.value), h();
|
|
3678
3689
|
};
|
|
3679
|
-
|
|
3690
|
+
K(() => a.filters, (g) => {
|
|
3680
3691
|
p.value.filters = g, i("update:tableContext", p.value);
|
|
3681
|
-
}, { deep: !0 }),
|
|
3682
|
-
|
|
3683
|
-
}),
|
|
3684
|
-
|
|
3692
|
+
}, { deep: !0 }), K(() => a.value, () => {
|
|
3693
|
+
h();
|
|
3694
|
+
}), oe(() => {
|
|
3695
|
+
h(), i("update:tableContext", p.value);
|
|
3685
3696
|
});
|
|
3686
|
-
const
|
|
3687
|
-
|
|
3697
|
+
const M = () => {
|
|
3698
|
+
n.value = s.value * o.value;
|
|
3688
3699
|
};
|
|
3689
|
-
return (g, V) => (d(),
|
|
3690
|
-
m("span",
|
|
3691
|
-
|
|
3700
|
+
return (g, V) => (d(), f("div", _a, [
|
|
3701
|
+
m("span", ja, [
|
|
3702
|
+
F(g.$slots, "above-table")
|
|
3692
3703
|
]),
|
|
3693
3704
|
w(u(Ge), _({
|
|
3694
3705
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3695
3706
|
}, { ...a, ...g.$attrs }, {
|
|
3696
3707
|
pt: r.value,
|
|
3697
3708
|
"filter-display": a.filters ? "row" : void 0,
|
|
3698
|
-
rows: g.paginator ?
|
|
3709
|
+
rows: g.paginator ? o.value : void 0,
|
|
3699
3710
|
"data-cy": "tree-table",
|
|
3700
3711
|
"onUpdate:filters": U,
|
|
3701
3712
|
onSort: O,
|
|
3702
3713
|
onPage: b,
|
|
3703
|
-
onNodeExpand: V[2] || (V[2] = () =>
|
|
3714
|
+
onNodeExpand: V[2] || (V[2] = () => h()),
|
|
3704
3715
|
showHeaders: "",
|
|
3705
|
-
first:
|
|
3716
|
+
first: n.value
|
|
3706
3717
|
}), ae({
|
|
3707
|
-
empty:
|
|
3708
|
-
m("div",
|
|
3709
|
-
m("h5",
|
|
3718
|
+
empty: v(() => [
|
|
3719
|
+
m("div", Ia, [
|
|
3720
|
+
m("h5", Pa, B(g.emptyMessage ?? "No items Found."), 1)
|
|
3710
3721
|
])
|
|
3711
3722
|
]),
|
|
3712
|
-
header:
|
|
3723
|
+
header: v(() => [
|
|
3713
3724
|
m("div", {
|
|
3714
3725
|
class: S(a.loading ? "opacity-50" : "")
|
|
3715
3726
|
}, [
|
|
3716
3727
|
m("div", Ma, [
|
|
3717
3728
|
m("div", Va, [
|
|
3718
|
-
g.paginator && !g.legacyPaginationFooter ? (d(),
|
|
3719
|
-
w(
|
|
3729
|
+
g.paginator && !g.legacyPaginationFooter ? (d(), f("span", Da, [
|
|
3730
|
+
w(he, {
|
|
3720
3731
|
total: c.value,
|
|
3721
3732
|
"page-sizes": l.value,
|
|
3722
|
-
"per-page":
|
|
3733
|
+
"per-page": o.value,
|
|
3723
3734
|
"onUpdate:perPage": [
|
|
3724
|
-
V[0] || (V[0] = (L) =>
|
|
3735
|
+
V[0] || (V[0] = (L) => o.value = L),
|
|
3725
3736
|
k
|
|
3726
3737
|
]
|
|
3727
3738
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
@@ -3734,35 +3745,36 @@ const ya = {
|
|
|
3734
3745
|
onClick: D,
|
|
3735
3746
|
"data-cy": "clear-all"
|
|
3736
3747
|
}, {
|
|
3737
|
-
default:
|
|
3738
|
-
w(u(
|
|
3748
|
+
default: v(() => [
|
|
3749
|
+
w(u(j), {
|
|
3739
3750
|
icon: "bi:funnel-fill",
|
|
3740
3751
|
width: "24",
|
|
3741
3752
|
height: "24"
|
|
3742
3753
|
}),
|
|
3743
|
-
V[3] || (V[3] =
|
|
3754
|
+
V[3] || (V[3] = P(" Clear "))
|
|
3744
3755
|
]),
|
|
3745
|
-
_: 1
|
|
3756
|
+
_: 1,
|
|
3757
|
+
__: [3]
|
|
3746
3758
|
})) : z("", !0),
|
|
3747
|
-
|
|
3759
|
+
F(g.$slots, "column-customiser")
|
|
3748
3760
|
])
|
|
3749
3761
|
])
|
|
3750
3762
|
], 2)
|
|
3751
3763
|
]),
|
|
3752
|
-
default:
|
|
3753
|
-
|
|
3764
|
+
default: v(() => [
|
|
3765
|
+
F(g.$slots, "default")
|
|
3754
3766
|
]),
|
|
3755
3767
|
_: 2
|
|
3756
3768
|
}, [
|
|
3757
3769
|
E(g.$slots, (L, ve) => ({
|
|
3758
3770
|
name: ve,
|
|
3759
|
-
fn:
|
|
3760
|
-
|
|
3771
|
+
fn: v(($e) => [
|
|
3772
|
+
F(g.$slots, ve, W(G($e || {})))
|
|
3761
3773
|
])
|
|
3762
3774
|
})),
|
|
3763
3775
|
g.legacyPaginationFooter ? {
|
|
3764
3776
|
name: "paginatorstart",
|
|
3765
|
-
fn:
|
|
3777
|
+
fn: v(() => [
|
|
3766
3778
|
m("span", {
|
|
3767
3779
|
class: S(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
3768
3780
|
"data-cy": "legacy-page-size"
|
|
@@ -3770,8 +3782,8 @@ const ya = {
|
|
|
3770
3782
|
V[4] || (V[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3771
3783
|
w(u(ie), {
|
|
3772
3784
|
options: l.value,
|
|
3773
|
-
modelValue:
|
|
3774
|
-
"onUpdate:modelValue": V[1] || (V[1] = (L) =>
|
|
3785
|
+
modelValue: o.value,
|
|
3786
|
+
"onUpdate:modelValue": V[1] || (V[1] = (L) => o.value = L),
|
|
3775
3787
|
class: "ms-2",
|
|
3776
3788
|
onClick: k
|
|
3777
3789
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -3781,18 +3793,18 @@ const ya = {
|
|
|
3781
3793
|
} : void 0,
|
|
3782
3794
|
g.legacyPaginationFooter ? {
|
|
3783
3795
|
name: "paginatorend",
|
|
3784
|
-
fn:
|
|
3796
|
+
fn: v(() => [
|
|
3785
3797
|
m("span", {
|
|
3786
3798
|
"data-cy": "legacy-total",
|
|
3787
3799
|
class: S(a.loading ? "opacity-50" : "")
|
|
3788
|
-
},
|
|
3800
|
+
}, B(c.value) + " " + B(u(ee)(c.value, "result")) + " across " + B(x.value), 3)
|
|
3789
3801
|
]),
|
|
3790
3802
|
key: "1"
|
|
3791
3803
|
} : void 0
|
|
3792
3804
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3793
3805
|
]));
|
|
3794
3806
|
}
|
|
3795
|
-
}), Na = { class: "d-flex position-relative" }, Aa = { class: "d-flex w-100" },
|
|
3807
|
+
}), Na = { class: "d-flex position-relative" }, Aa = { class: "d-flex w-100" }, xl = /* @__PURE__ */ C({
|
|
3796
3808
|
__name: "ForgeFilterHeader",
|
|
3797
3809
|
props: /* @__PURE__ */ R({
|
|
3798
3810
|
dataType: {},
|
|
@@ -3807,57 +3819,57 @@ const ya = {
|
|
|
3807
3819
|
}),
|
|
3808
3820
|
emits: ["update:modelValue"],
|
|
3809
3821
|
setup(e) {
|
|
3810
|
-
const t = N(e, "modelValue"), a = (l,
|
|
3822
|
+
const t = N(e, "modelValue"), a = (l, o) => {
|
|
3811
3823
|
if (!l || Array.isArray(l) && l.length === 0)
|
|
3812
|
-
return
|
|
3813
|
-
const
|
|
3824
|
+
return o;
|
|
3825
|
+
const n = (s) => {
|
|
3814
3826
|
var c;
|
|
3815
3827
|
const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
|
|
3816
|
-
(
|
|
3828
|
+
(x) => e.optionValue ? x[e.optionValue] === s : Object.keys(x).every((r) => s.hasOwnProperty(r) && x[r] === s[r])
|
|
3817
3829
|
);
|
|
3818
3830
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3819
3831
|
};
|
|
3820
|
-
return Array.isArray(l) ? l.map(
|
|
3832
|
+
return Array.isArray(l) ? l.map(n).join(", ") : n(l);
|
|
3821
3833
|
}, i = () => {
|
|
3822
3834
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3823
3835
|
};
|
|
3824
|
-
return (l,
|
|
3825
|
-
const
|
|
3826
|
-
return d(),
|
|
3827
|
-
l.dataType === "numeric" ? (d(), y(
|
|
3836
|
+
return (l, o) => {
|
|
3837
|
+
const n = fe, s = q;
|
|
3838
|
+
return d(), f("div", Na, [
|
|
3839
|
+
l.dataType === "numeric" ? (d(), y(n, _({
|
|
3828
3840
|
key: 0,
|
|
3829
3841
|
modelValue: t.value,
|
|
3830
|
-
"onUpdate:modelValue":
|
|
3842
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => t.value = p),
|
|
3831
3843
|
modelModifiers: { trim: !0 }
|
|
3832
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), y(
|
|
3844
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), y(xe, _({
|
|
3833
3845
|
key: 1,
|
|
3834
3846
|
modelValue: t.value,
|
|
3835
|
-
"onUpdate:modelValue":
|
|
3847
|
+
"onUpdate:modelValue": o[1] || (o[1] = (p) => t.value = p)
|
|
3836
3848
|
}, l.$attrs, {
|
|
3837
3849
|
"show-icon": !1,
|
|
3838
3850
|
"show-on-focus": !0
|
|
3839
3851
|
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), y(u(ie), _({
|
|
3840
3852
|
key: 2,
|
|
3841
3853
|
modelValue: t.value,
|
|
3842
|
-
"onUpdate:modelValue":
|
|
3854
|
+
"onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p)
|
|
3843
3855
|
}, l.$attrs, {
|
|
3844
3856
|
options: l.dropdownOptions,
|
|
3845
3857
|
"option-value": l.optionValue,
|
|
3846
3858
|
"option-label": l.optionLabel
|
|
3847
3859
|
}), {
|
|
3848
|
-
value:
|
|
3860
|
+
value: v(({ value: p, placeholder: c }) => [
|
|
3849
3861
|
m("div", Aa, [
|
|
3850
3862
|
m("span", {
|
|
3851
3863
|
class: S({ "filter-placeholder": p === null })
|
|
3852
|
-
},
|
|
3864
|
+
}, B(a(p, c)), 3),
|
|
3853
3865
|
l.showClearButton && t.value !== null ? (d(), y(s, {
|
|
3854
3866
|
key: 0,
|
|
3855
|
-
onClick:
|
|
3867
|
+
onClick: Q(i, ["prevent"]),
|
|
3856
3868
|
size: "small",
|
|
3857
3869
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3858
3870
|
}, {
|
|
3859
|
-
default:
|
|
3860
|
-
w(u(
|
|
3871
|
+
default: v(() => [
|
|
3872
|
+
w(u(j), {
|
|
3861
3873
|
icon: "bi:x",
|
|
3862
3874
|
width: "1rem",
|
|
3863
3875
|
height: "1rem",
|
|
@@ -3869,30 +3881,30 @@ const ya = {
|
|
|
3869
3881
|
])
|
|
3870
3882
|
]),
|
|
3871
3883
|
_: 1
|
|
3872
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), y(u(
|
|
3884
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), y(u(de), _({
|
|
3873
3885
|
key: 3,
|
|
3874
3886
|
modelValue: t.value,
|
|
3875
|
-
"onUpdate:modelValue":
|
|
3887
|
+
"onUpdate:modelValue": o[3] || (o[3] = (p) => t.value = p)
|
|
3876
3888
|
}, l.$attrs, {
|
|
3877
3889
|
options: l.dropdownOptions,
|
|
3878
3890
|
showToggleAll: !1,
|
|
3879
3891
|
"option-label": l.optionLabel,
|
|
3880
3892
|
"option-value": l.optionValue,
|
|
3881
3893
|
filter: ""
|
|
3882
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), y(u(
|
|
3894
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), y(u(re), _({
|
|
3883
3895
|
key: 4,
|
|
3884
3896
|
modelValue: t.value,
|
|
3885
|
-
"onUpdate:modelValue":
|
|
3897
|
+
"onUpdate:modelValue": o[4] || (o[4] = (p) => t.value = p),
|
|
3886
3898
|
modelModifiers: { trim: !0 }
|
|
3887
3899
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3888
3900
|
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), y(s, {
|
|
3889
3901
|
key: 5,
|
|
3890
|
-
onClick:
|
|
3902
|
+
onClick: Q(i, ["prevent"]),
|
|
3891
3903
|
size: "small",
|
|
3892
3904
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3893
3905
|
}, {
|
|
3894
|
-
default:
|
|
3895
|
-
w(u(
|
|
3906
|
+
default: v(() => [
|
|
3907
|
+
w(u(j), {
|
|
3896
3908
|
icon: "bi:x",
|
|
3897
3909
|
width: "1rem",
|
|
3898
3910
|
height: "1rem",
|
|
@@ -3942,6 +3954,7 @@ const ya = {
|
|
|
3942
3954
|
"application/vnd.aristanetworks.swi": ["swi"],
|
|
3943
3955
|
"application/vnd.astraea-software.iota": ["iota"],
|
|
3944
3956
|
"application/vnd.audiograph": ["aep"],
|
|
3957
|
+
"application/vnd.autodesk.fbx": ["fbx"],
|
|
3945
3958
|
"application/vnd.balsamiq.bmml+xml": ["bmml"],
|
|
3946
3959
|
"application/vnd.blueice.multipass": ["mpm"],
|
|
3947
3960
|
"application/vnd.bmi": ["bmi"],
|
|
@@ -3971,6 +3984,7 @@ const ya = {
|
|
|
3971
3984
|
"application/vnd.dart": ["dart"],
|
|
3972
3985
|
"application/vnd.data-vision.rdz": ["rdz"],
|
|
3973
3986
|
"application/vnd.dbf": ["dbf"],
|
|
3987
|
+
"application/vnd.dcmp+xml": ["dcmp"],
|
|
3974
3988
|
"application/vnd.dece.data": ["uvf", "uvvf", "uvd", "uvvd"],
|
|
3975
3989
|
"application/vnd.dece.ttml+xml": ["uvt", "uvvt"],
|
|
3976
3990
|
"application/vnd.dece.unspecified": ["uvx", "uvvx"],
|
|
@@ -4022,7 +4036,13 @@ const ya = {
|
|
|
4022
4036
|
"application/vnd.geospace": ["g3w"],
|
|
4023
4037
|
"application/vnd.gmx": ["gmx"],
|
|
4024
4038
|
"application/vnd.google-apps.document": ["gdoc"],
|
|
4039
|
+
"application/vnd.google-apps.drawing": ["gdraw"],
|
|
4040
|
+
"application/vnd.google-apps.form": ["gform"],
|
|
4041
|
+
"application/vnd.google-apps.jam": ["gjam"],
|
|
4042
|
+
"application/vnd.google-apps.map": ["gmap"],
|
|
4025
4043
|
"application/vnd.google-apps.presentation": ["gslides"],
|
|
4044
|
+
"application/vnd.google-apps.script": ["gscript"],
|
|
4045
|
+
"application/vnd.google-apps.site": ["gsite"],
|
|
4026
4046
|
"application/vnd.google-apps.spreadsheet": ["gsheet"],
|
|
4027
4047
|
"application/vnd.google-earth.kml+xml": ["kml"],
|
|
4028
4048
|
"application/vnd.google-earth.kmz": ["kmz"],
|
|
@@ -4133,6 +4153,7 @@ const ya = {
|
|
|
4133
4153
|
"application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"],
|
|
4134
4154
|
"application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"],
|
|
4135
4155
|
"application/vnd.ms-project": ["*mpp", "mpt"],
|
|
4156
|
+
"application/vnd.ms-visio.viewer": ["vdx"],
|
|
4136
4157
|
"application/vnd.ms-word.document.macroenabled.12": ["docm"],
|
|
4137
4158
|
"application/vnd.ms-word.template.macroenabled.12": ["dotm"],
|
|
4138
4159
|
"application/vnd.ms-works": ["wps", "wks", "wcm", "wdb"],
|
|
@@ -4212,6 +4233,9 @@ const ya = {
|
|
|
4212
4233
|
"application/vnd.pocketlearn": ["plf"],
|
|
4213
4234
|
"application/vnd.powerbuilder6": ["pbd"],
|
|
4214
4235
|
"application/vnd.previewsystems.box": ["box"],
|
|
4236
|
+
"application/vnd.procrate.brushset": ["brushset"],
|
|
4237
|
+
"application/vnd.procreate.brush": ["brush"],
|
|
4238
|
+
"application/vnd.procreate.dream": ["drm"],
|
|
4215
4239
|
"application/vnd.proteus.magazine": ["mgz"],
|
|
4216
4240
|
"application/vnd.publishare-delta-tree": ["qps"],
|
|
4217
4241
|
"application/vnd.pvi.ptid1": ["ptid"],
|
|
@@ -4287,7 +4311,7 @@ const ya = {
|
|
|
4287
4311
|
"application/vnd.unity": ["unityweb"],
|
|
4288
4312
|
"application/vnd.uoml+xml": ["uoml", "uo"],
|
|
4289
4313
|
"application/vnd.vcx": ["vcx"],
|
|
4290
|
-
"application/vnd.visio": ["vsd", "vst", "vss", "vsw"],
|
|
4314
|
+
"application/vnd.visio": ["vsd", "vst", "vss", "vsw", "vsdx", "vtx"],
|
|
4291
4315
|
"application/vnd.visionary": ["vis"],
|
|
4292
4316
|
"application/vnd.vsf": ["vsf"],
|
|
4293
4317
|
"application/vnd.wap.wbxml": ["wbxml"],
|
|
@@ -4321,6 +4345,7 @@ const ya = {
|
|
|
4321
4345
|
"application/x-bcpio": ["bcpio"],
|
|
4322
4346
|
"application/x-bdoc": ["*bdoc"],
|
|
4323
4347
|
"application/x-bittorrent": ["torrent"],
|
|
4348
|
+
"application/x-blender": ["blend"],
|
|
4324
4349
|
"application/x-blorb": ["blb", "blorb"],
|
|
4325
4350
|
"application/x-bzip": ["bz"],
|
|
4326
4351
|
"application/x-bzip2": ["bz2", "boz"],
|
|
@@ -4331,6 +4356,7 @@ const ya = {
|
|
|
4331
4356
|
"application/x-chess-pgn": ["pgn"],
|
|
4332
4357
|
"application/x-chrome-extension": ["crx"],
|
|
4333
4358
|
"application/x-cocoa": ["cco"],
|
|
4359
|
+
"application/x-compressed": ["*rar"],
|
|
4334
4360
|
"application/x-conference": ["nsc"],
|
|
4335
4361
|
"application/x-cpio": ["cpio"],
|
|
4336
4362
|
"application/x-csh": ["csh"],
|
|
@@ -4370,6 +4396,7 @@ const ya = {
|
|
|
4370
4396
|
"application/x-hdf": ["hdf"],
|
|
4371
4397
|
"application/x-httpd-php": ["php"],
|
|
4372
4398
|
"application/x-install-instructions": ["install"],
|
|
4399
|
+
"application/x-ipynb+json": ["ipynb"],
|
|
4373
4400
|
"application/x-iso9660-image": ["*iso"],
|
|
4374
4401
|
"application/x-iwork-keynote-sffkey": ["*key"],
|
|
4375
4402
|
"application/x-iwork-numbers-sffnumbers": ["*numbers"],
|
|
@@ -4447,6 +4474,7 @@ const ya = {
|
|
|
4447
4474
|
"application/x-xliff+xml": ["*xlf"],
|
|
4448
4475
|
"application/x-xpinstall": ["xpi"],
|
|
4449
4476
|
"application/x-xz": ["xz"],
|
|
4477
|
+
"application/x-zip-compressed": ["*zip"],
|
|
4450
4478
|
"application/x-zmachine": ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"],
|
|
4451
4479
|
"audio/vnd.dece.audio": ["uva", "uvva"],
|
|
4452
4480
|
"audio/vnd.digital-winds": ["eol"],
|
|
@@ -4504,6 +4532,7 @@ const ya = {
|
|
|
4504
4532
|
"image/vnd.xiff": ["xif"],
|
|
4505
4533
|
"image/vnd.zbrush.pcx": ["pcx"],
|
|
4506
4534
|
"image/x-3ds": ["3ds"],
|
|
4535
|
+
"image/x-adobe-dng": ["dng"],
|
|
4507
4536
|
"image/x-cmu-raster": ["ras"],
|
|
4508
4537
|
"image/x-cmx": ["cmx"],
|
|
4509
4538
|
"image/x-freehand": ["fh", "fhc", "fh4", "fh5", "fh7"],
|
|
@@ -4634,6 +4663,7 @@ const ue = {
|
|
|
4634
4663
|
"application/dash+xml": ["mpd"],
|
|
4635
4664
|
"application/dash-patch+xml": ["mpp"],
|
|
4636
4665
|
"application/davmount+xml": ["davmount"],
|
|
4666
|
+
"application/dicom": ["dcm"],
|
|
4637
4667
|
"application/docbook+xml": ["dbk"],
|
|
4638
4668
|
"application/dssc+der": ["dssc"],
|
|
4639
4669
|
"application/dssc+xml": ["xdssc"],
|
|
@@ -4720,7 +4750,14 @@ const ue = {
|
|
|
4720
4750
|
"application/oebps-package+xml": ["opf"],
|
|
4721
4751
|
"application/ogg": ["ogx"],
|
|
4722
4752
|
"application/omdoc+xml": ["omdoc"],
|
|
4723
|
-
"application/onenote": [
|
|
4753
|
+
"application/onenote": [
|
|
4754
|
+
"onetoc",
|
|
4755
|
+
"onetoc2",
|
|
4756
|
+
"onetmp",
|
|
4757
|
+
"onepkg",
|
|
4758
|
+
"one",
|
|
4759
|
+
"onea"
|
|
4760
|
+
],
|
|
4724
4761
|
"application/oxps": ["oxps"],
|
|
4725
4762
|
"application/p2p-overlay+xml": ["relo"],
|
|
4726
4763
|
"application/patch-ops-error+xml": ["xer"],
|
|
@@ -4816,6 +4853,7 @@ const ue = {
|
|
|
4816
4853
|
"application/yang": ["yang"],
|
|
4817
4854
|
"application/yin+xml": ["yin"],
|
|
4818
4855
|
"application/zip": ["zip"],
|
|
4856
|
+
"application/zip+dotlottie": ["lottie"],
|
|
4819
4857
|
"audio/3gpp": ["*3gpp"],
|
|
4820
4858
|
"audio/aac": ["adts", "aac"],
|
|
4821
4859
|
"audio/adpcm": ["adp"],
|
|
@@ -4824,7 +4862,7 @@ const ue = {
|
|
|
4824
4862
|
"audio/midi": ["mid", "midi", "kar", "rmi"],
|
|
4825
4863
|
"audio/mobile-xmf": ["mxmf"],
|
|
4826
4864
|
"audio/mp3": ["*mp3"],
|
|
4827
|
-
"audio/mp4": ["m4a", "mp4a"],
|
|
4865
|
+
"audio/mp4": ["m4a", "mp4a", "m4b"],
|
|
4828
4866
|
"audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"],
|
|
4829
4867
|
"audio/ogg": ["oga", "ogg", "spx", "opus"],
|
|
4830
4868
|
"audio/s3m": ["s3m"],
|
|
@@ -4856,11 +4894,12 @@ const ue = {
|
|
|
4856
4894
|
"image/heif": ["heif"],
|
|
4857
4895
|
"image/heif-sequence": ["heifs"],
|
|
4858
4896
|
"image/hej2k": ["hej2"],
|
|
4859
|
-
"image/hsj2": ["hsj2"],
|
|
4860
4897
|
"image/ief": ["ief"],
|
|
4898
|
+
"image/jaii": ["jaii"],
|
|
4899
|
+
"image/jais": ["jais"],
|
|
4861
4900
|
"image/jls": ["jls"],
|
|
4862
4901
|
"image/jp2": ["jp2", "jpg2"],
|
|
4863
|
-
"image/jpeg": ["
|
|
4902
|
+
"image/jpeg": ["jpg", "jpeg", "jpe"],
|
|
4864
4903
|
"image/jph": ["jph"],
|
|
4865
4904
|
"image/jphc": ["jhc"],
|
|
4866
4905
|
"image/jpm": ["jpm", "jpgm"],
|
|
@@ -4875,6 +4914,7 @@ const ue = {
|
|
|
4875
4914
|
"image/jxss": ["jxss"],
|
|
4876
4915
|
"image/ktx": ["ktx"],
|
|
4877
4916
|
"image/ktx2": ["ktx2"],
|
|
4917
|
+
"image/pjpeg": ["jfif"],
|
|
4878
4918
|
"image/png": ["png"],
|
|
4879
4919
|
"image/sgi": ["sgi"],
|
|
4880
4920
|
"image/svg+xml": ["svg", "svgz"],
|
|
@@ -4888,7 +4928,7 @@ const ue = {
|
|
|
4888
4928
|
"message/global-delivery-status": ["u8dsn"],
|
|
4889
4929
|
"message/global-disposition-notification": ["u8mdn"],
|
|
4890
4930
|
"message/global-headers": ["u8hdr"],
|
|
4891
|
-
"message/rfc822": ["eml", "mime"],
|
|
4931
|
+
"message/rfc822": ["eml", "mime", "mht", "mhtml"],
|
|
4892
4932
|
"model/3mf": ["3mf"],
|
|
4893
4933
|
"model/gltf+json": ["gltf"],
|
|
4894
4934
|
"model/gltf-binary": ["glb"],
|
|
@@ -4898,6 +4938,7 @@ const ue = {
|
|
|
4898
4938
|
"model/mtl": ["mtl"],
|
|
4899
4939
|
"model/obj": ["obj"],
|
|
4900
4940
|
"model/prc": ["prc"],
|
|
4941
|
+
"model/step": ["step", "stp", "stpnc", "p21", "210"],
|
|
4901
4942
|
"model/step+xml": ["stpx"],
|
|
4902
4943
|
"model/step+zip": ["stpz"],
|
|
4903
4944
|
"model/step-xml+zip": ["stpxz"],
|
|
@@ -4961,26 +5002,26 @@ var H = function(e, t, a, i) {
|
|
|
4961
5002
|
if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
4962
5003
|
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4963
5004
|
return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
|
|
4964
|
-
},
|
|
5005
|
+
}, Z, te, Y;
|
|
4965
5006
|
class we {
|
|
4966
5007
|
constructor(...t) {
|
|
4967
|
-
|
|
5008
|
+
Z.set(this, /* @__PURE__ */ new Map()), te.set(this, /* @__PURE__ */ new Map()), Y.set(this, /* @__PURE__ */ new Map());
|
|
4968
5009
|
for (const a of t)
|
|
4969
5010
|
this.define(a);
|
|
4970
5011
|
}
|
|
4971
5012
|
define(t, a = !1) {
|
|
4972
5013
|
for (let [i, l] of Object.entries(t)) {
|
|
4973
5014
|
i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), H(this, Y, "f").has(i) || H(this, Y, "f").set(i, /* @__PURE__ */ new Set());
|
|
4974
|
-
const
|
|
4975
|
-
let
|
|
5015
|
+
const o = H(this, Y, "f").get(i);
|
|
5016
|
+
let n = !0;
|
|
4976
5017
|
for (let s of l) {
|
|
4977
5018
|
const p = s.startsWith("*");
|
|
4978
|
-
if (s = p ? s.slice(1) : s,
|
|
5019
|
+
if (s = p ? s.slice(1) : s, o == null || o.add(s), n && H(this, te, "f").set(i, s), n = !1, p)
|
|
4979
5020
|
continue;
|
|
4980
|
-
const c = H(this,
|
|
5021
|
+
const c = H(this, Z, "f").get(s);
|
|
4981
5022
|
if (c && c != i && !a)
|
|
4982
5023
|
throw new Error(`"${i} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);
|
|
4983
|
-
H(this,
|
|
5024
|
+
H(this, Z, "f").set(s, i);
|
|
4984
5025
|
}
|
|
4985
5026
|
}
|
|
4986
5027
|
return this;
|
|
@@ -4988,8 +5029,8 @@ class we {
|
|
|
4988
5029
|
getType(t) {
|
|
4989
5030
|
if (typeof t != "string")
|
|
4990
5031
|
return null;
|
|
4991
|
-
const a = t.replace(/^.*[/\\]
|
|
4992
|
-
return !(i.length < a.length - 1) && l ? null : H(this,
|
|
5032
|
+
const a = t.replace(/^.*[/\\]/s, "").toLowerCase(), i = a.replace(/^.*\./s, "").toLowerCase(), l = a.length < t.length;
|
|
5033
|
+
return !(i.length < a.length - 1) && l ? null : H(this, Z, "f").get(i) ?? null;
|
|
4993
5034
|
}
|
|
4994
5035
|
getExtension(t) {
|
|
4995
5036
|
var a;
|
|
@@ -5008,23 +5049,23 @@ class we {
|
|
|
5008
5049
|
}
|
|
5009
5050
|
_getTestState() {
|
|
5010
5051
|
return {
|
|
5011
|
-
types: H(this,
|
|
5052
|
+
types: H(this, Z, "f"),
|
|
5012
5053
|
extensions: H(this, te, "f")
|
|
5013
5054
|
};
|
|
5014
5055
|
}
|
|
5015
5056
|
}
|
|
5016
|
-
|
|
5057
|
+
Z = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
|
|
5017
5058
|
const Ea = new we(ue, ce)._freeze();
|
|
5018
5059
|
function ke(e, t, a, i) {
|
|
5019
|
-
const l = t.flatMap((
|
|
5020
|
-
return t = t.map((
|
|
5021
|
-
const
|
|
5060
|
+
const l = t.flatMap((o) => o.file);
|
|
5061
|
+
return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
|
|
5062
|
+
const n = l.findIndex((p) => p.name === o.name);
|
|
5022
5063
|
let s = "Not Uploaded";
|
|
5023
|
-
|
|
5024
|
-
file:
|
|
5064
|
+
n === -1 ? ((!a.includes(o.type) || !(o.size <= i)) && (s = a.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
5065
|
+
file: o,
|
|
5025
5066
|
status: s,
|
|
5026
5067
|
blobFileName: null
|
|
5027
|
-
})) : t[
|
|
5068
|
+
})) : t[n].status = "Duplicate";
|
|
5028
5069
|
}), t;
|
|
5029
5070
|
}
|
|
5030
5071
|
async function Ua(e, t) {
|
|
@@ -5043,12 +5084,12 @@ function me(e, t = !0, a = 1) {
|
|
|
5043
5084
|
if (Math.abs(e) < i)
|
|
5044
5085
|
return e + " B";
|
|
5045
5086
|
const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
5046
|
-
let
|
|
5047
|
-
const
|
|
5087
|
+
let o = -1;
|
|
5088
|
+
const n = 10 ** a;
|
|
5048
5089
|
do
|
|
5049
|
-
e /= i, ++
|
|
5050
|
-
while (Math.round(Math.abs(e) *
|
|
5051
|
-
return e.toFixed(a) + " " + l[
|
|
5090
|
+
e /= i, ++o;
|
|
5091
|
+
while (Math.round(Math.abs(e) * n) / n >= i && o < l.length - 1);
|
|
5092
|
+
return e.toFixed(a) + " " + l[o];
|
|
5052
5093
|
}
|
|
5053
5094
|
function qa(e) {
|
|
5054
5095
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
@@ -5075,57 +5116,58 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5075
5116
|
}),
|
|
5076
5117
|
emits: ["update:modelValue"],
|
|
5077
5118
|
setup(e) {
|
|
5078
|
-
const t = N(e, "modelValue"), a =
|
|
5079
|
-
t.value = ke(
|
|
5119
|
+
const t = N(e, "modelValue"), a = I(), i = (n) => a.value.toggle(n), l = T(() => e.maxFileInput <= t.value.length), o = (n) => {
|
|
5120
|
+
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
5080
5121
|
};
|
|
5081
|
-
return (
|
|
5122
|
+
return (n, s) => {
|
|
5082
5123
|
const p = q;
|
|
5083
|
-
return d(),
|
|
5084
|
-
|
|
5124
|
+
return d(), f("div", Ha, [
|
|
5125
|
+
F(n.$slots, "message"),
|
|
5085
5126
|
m("div", null, [
|
|
5086
5127
|
m("input", {
|
|
5087
5128
|
id: "file-input",
|
|
5088
5129
|
type: "file",
|
|
5089
5130
|
class: "d-none",
|
|
5090
|
-
accept:
|
|
5131
|
+
accept: n.acceptedFileTypes.join(", "),
|
|
5091
5132
|
disabled: l.value,
|
|
5092
|
-
multiple:
|
|
5093
|
-
onInput: s[0] || (s[0] = (c) =>
|
|
5133
|
+
multiple: n.maxFileInput > 1,
|
|
5134
|
+
onInput: s[0] || (s[0] = (c) => o([...c.target.files]))
|
|
5094
5135
|
}, null, 40, Wa),
|
|
5095
5136
|
m("label", {
|
|
5096
5137
|
class: S([{ disabled: l.value }, "btn btn-primary"]),
|
|
5097
5138
|
id: "file-input-button",
|
|
5098
5139
|
for: "file-input"
|
|
5099
5140
|
}, [
|
|
5100
|
-
|
|
5101
|
-
w(u(
|
|
5141
|
+
F(n.$slots, "button-content", {}, () => [
|
|
5142
|
+
w(u(j), {
|
|
5102
5143
|
icon: "bi:upload",
|
|
5103
5144
|
class: "me-2",
|
|
5104
5145
|
height: "20px",
|
|
5105
5146
|
width: "20px"
|
|
5106
5147
|
}),
|
|
5107
|
-
s[1] || (s[1] =
|
|
5148
|
+
s[1] || (s[1] = P(" Browse your computer "))
|
|
5108
5149
|
])
|
|
5109
5150
|
], 2)
|
|
5110
5151
|
]),
|
|
5111
|
-
|
|
5152
|
+
n.showDragDropArea ? (d(), y(p, {
|
|
5112
5153
|
link: "",
|
|
5113
5154
|
class: "ms-auto",
|
|
5114
|
-
key:
|
|
5155
|
+
key: n.acceptedFileTypes.length,
|
|
5115
5156
|
id: "accepted-file-types",
|
|
5116
5157
|
onClick: i
|
|
5117
5158
|
}, {
|
|
5118
|
-
default:
|
|
5119
|
-
|
|
5159
|
+
default: v(() => s[2] || (s[2] = [
|
|
5160
|
+
P("Accepted File Types")
|
|
5120
5161
|
])),
|
|
5121
|
-
_: 1
|
|
5162
|
+
_: 1,
|
|
5163
|
+
__: [2]
|
|
5122
5164
|
})) : z("", !0),
|
|
5123
5165
|
w(u(be), {
|
|
5124
5166
|
ref_key: "acceptedFilesOverlay",
|
|
5125
5167
|
ref: a
|
|
5126
5168
|
}, {
|
|
5127
|
-
default:
|
|
5128
|
-
m("div", Ga,
|
|
5169
|
+
default: v(() => [
|
|
5170
|
+
m("div", Ga, B(n.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
5129
5171
|
]),
|
|
5130
5172
|
_: 1
|
|
5131
5173
|
}, 512)
|
|
@@ -5151,26 +5193,26 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5151
5193
|
}),
|
|
5152
5194
|
emits: ["update:modelValue"],
|
|
5153
5195
|
setup(e) {
|
|
5154
|
-
const t = N(e, "modelValue"), a =
|
|
5155
|
-
a.value = !1,
|
|
5196
|
+
const t = N(e, "modelValue"), a = I(!1), i = T(() => e.maxFileInput <= t.value.length), l = (o) => {
|
|
5197
|
+
a.value = !1, o.dataTransfer.files.length > e.maxFileInput || i.value ? o.preventDefault() : t.value = ke([...o.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
|
|
5156
5198
|
};
|
|
5157
|
-
return (
|
|
5199
|
+
return (o, n) => (d(), f("div", {
|
|
5158
5200
|
id: "drag-drop-area",
|
|
5159
5201
|
class: S(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
5160
|
-
onDragleave:
|
|
5161
|
-
onDragover:
|
|
5162
|
-
onDrop:
|
|
5202
|
+
onDragleave: n[0] || (n[0] = Q((s) => a.value = !1, ["prevent"])),
|
|
5203
|
+
onDragover: n[1] || (n[1] = Q((s) => a.value = !0, ["prevent"])),
|
|
5204
|
+
onDrop: Q(l, ["prevent"])
|
|
5163
5205
|
}, [
|
|
5164
|
-
t.value.length === 0 ? (d(),
|
|
5165
|
-
w(u(
|
|
5206
|
+
t.value.length === 0 ? (d(), f("div", Ja, [
|
|
5207
|
+
w(u(j), {
|
|
5166
5208
|
icon: "bi:upload",
|
|
5167
5209
|
class: "me-2",
|
|
5168
5210
|
height: "20px",
|
|
5169
5211
|
width: "20px"
|
|
5170
5212
|
}),
|
|
5171
|
-
|
|
5172
|
-
])) : (d(),
|
|
5173
|
-
|
|
5213
|
+
n[2] || (n[2] = P(" Drag and drop files here "))
|
|
5214
|
+
])) : (d(), f("div", Ka, [
|
|
5215
|
+
F(o.$slots, "default")
|
|
5174
5216
|
]))
|
|
5175
5217
|
], 34));
|
|
5176
5218
|
}
|
|
@@ -5199,21 +5241,21 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5199
5241
|
return "Upload Failed: Connection error, please try again.";
|
|
5200
5242
|
}
|
|
5201
5243
|
});
|
|
5202
|
-
return (l,
|
|
5203
|
-
const
|
|
5204
|
-
return d(),
|
|
5205
|
-
t.uploadStatus === "Uploading" ? (d(), y(
|
|
5244
|
+
return (l, o) => {
|
|
5245
|
+
const n = pe;
|
|
5246
|
+
return d(), f("div", Xa, [
|
|
5247
|
+
t.uploadStatus === "Uploading" ? (d(), y(n, {
|
|
5206
5248
|
key: 0,
|
|
5207
5249
|
"in-line": ""
|
|
5208
5250
|
})) : z("", !0),
|
|
5209
|
-
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), y(
|
|
5251
|
+
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), y(se, {
|
|
5210
5252
|
key: 1,
|
|
5211
5253
|
id: "upload-status-alert",
|
|
5212
5254
|
severity: a.value,
|
|
5213
5255
|
class: "mb-0 w-75 ms-auto"
|
|
5214
5256
|
}, {
|
|
5215
|
-
default:
|
|
5216
|
-
|
|
5257
|
+
default: v(() => [
|
|
5258
|
+
P(B(i.value), 1)
|
|
5217
5259
|
]),
|
|
5218
5260
|
_: 1
|
|
5219
5261
|
}, 8, ["severity"])) : z("", !0)
|
|
@@ -5229,7 +5271,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5229
5271
|
}, li = {
|
|
5230
5272
|
class: "text-black-50",
|
|
5231
5273
|
id: "file-size"
|
|
5232
|
-
},
|
|
5274
|
+
}, oi = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, ni = /* @__PURE__ */ C({
|
|
5233
5275
|
__name: "FileInfo",
|
|
5234
5276
|
props: /* @__PURE__ */ R({
|
|
5235
5277
|
editableFileName: { type: Boolean },
|
|
@@ -5248,14 +5290,14 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5248
5290
|
}),
|
|
5249
5291
|
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5250
5292
|
setup(e, { emit: t }) {
|
|
5251
|
-
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"),
|
|
5252
|
-
|
|
5293
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), o = t, n = I(a.value.name), s = I(""), p = I(0), c = I(), x = T(() => e.acceptedFileTypes.some(({ fileType: b }) => b === a.value.type)), r = T(() => a.value.size <= e.maxFileSize), h = T(() => a.value.type ? a.value.type : Ra().getType(a.value.name)), $ = () => {
|
|
5294
|
+
n.value != null && (D(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5253
5295
|
}, D = () => {
|
|
5254
|
-
let b =
|
|
5255
|
-
b.length === 1 ?
|
|
5296
|
+
let b = n.value.split("."), k = Ea.getExtension(h.value), M = n.value.split(".").pop();
|
|
5297
|
+
b.length === 1 ? M && M.length > 0 && (n.value = [n.value, k].join(".")) : b.length > 1 && M !== k && (n.value = n.value.replace(M, k));
|
|
5256
5298
|
}, O = async () => {
|
|
5257
|
-
if (!
|
|
5258
|
-
l.value =
|
|
5299
|
+
if (!x.value || !r.value) {
|
|
5300
|
+
l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5259
5301
|
return;
|
|
5260
5302
|
}
|
|
5261
5303
|
l.value = "Preparing", c.value = new AbortController();
|
|
@@ -5266,31 +5308,31 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5266
5308
|
}
|
|
5267
5309
|
try {
|
|
5268
5310
|
l.value = "Uploading";
|
|
5269
|
-
const
|
|
5311
|
+
const M = new ge(b), g = {
|
|
5270
5312
|
abortSignal: c.value.signal,
|
|
5271
5313
|
onProgress: (V) => p.value = V.loadedBytes,
|
|
5272
5314
|
blobHTTPHeaders: {
|
|
5273
|
-
blobContentType:
|
|
5315
|
+
blobContentType: h.value,
|
|
5274
5316
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
5275
5317
|
},
|
|
5276
5318
|
tags: { temp: "true" }
|
|
5277
5319
|
};
|
|
5278
|
-
await
|
|
5279
|
-
} catch (
|
|
5280
|
-
if (
|
|
5320
|
+
await M.uploadData(a.value, g), s.value = b, l.value = "Uploaded", i.value = k;
|
|
5321
|
+
} catch (M) {
|
|
5322
|
+
if (M.name === "AbortError") {
|
|
5281
5323
|
l.value = "Aborted";
|
|
5282
5324
|
return;
|
|
5283
5325
|
}
|
|
5284
5326
|
l.value = "Failed";
|
|
5285
5327
|
}
|
|
5286
5328
|
}, U = async () => {
|
|
5287
|
-
await Ua(l.value, s.value),
|
|
5329
|
+
await Ua(l.value, s.value), o("deleted", a.value);
|
|
5288
5330
|
};
|
|
5289
|
-
return
|
|
5331
|
+
return oe(() => {
|
|
5290
5332
|
e.autoUploadToBlob && l.value != "Uploaded" && O();
|
|
5291
5333
|
}), (b, k) => {
|
|
5292
|
-
const
|
|
5293
|
-
return d(),
|
|
5334
|
+
const M = q;
|
|
5335
|
+
return d(), f("div", {
|
|
5294
5336
|
class: "py-4 px-3 d-flex",
|
|
5295
5337
|
"data-cy": `file-info-${a.value.name}`
|
|
5296
5338
|
}, [
|
|
@@ -5303,7 +5345,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5303
5345
|
alt: a.value.name,
|
|
5304
5346
|
width: "75px",
|
|
5305
5347
|
preview: ""
|
|
5306
|
-
}, null, 8, ["src", "alt"])) : (d(), y(u(
|
|
5348
|
+
}, null, 8, ["src", "alt"])) : (d(), y(u(j), {
|
|
5307
5349
|
key: 1,
|
|
5308
5350
|
id: "file-earmark",
|
|
5309
5351
|
icon: "bi:file-earmark",
|
|
@@ -5316,17 +5358,17 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5316
5358
|
b.editableFileName ? (d(), y(Gt, {
|
|
5317
5359
|
key: 0,
|
|
5318
5360
|
id: "edit-file-name",
|
|
5319
|
-
modelValue:
|
|
5320
|
-
"onUpdate:modelValue": k[0] || (k[0] = (g) =>
|
|
5361
|
+
modelValue: n.value,
|
|
5362
|
+
"onUpdate:modelValue": k[0] || (k[0] = (g) => n.value = g),
|
|
5321
5363
|
rules: b.customFileNameRules,
|
|
5322
5364
|
name: a.value.name,
|
|
5323
5365
|
"complete-action": $
|
|
5324
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(),
|
|
5366
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), f("span", ai, B(n.value), 1))
|
|
5325
5367
|
]),
|
|
5326
|
-
m("span", ii, "File type: " +
|
|
5327
|
-
m("span", li, "File size: " +
|
|
5368
|
+
m("span", ii, "File type: " + B(a.value.type.split("/").pop()), 1),
|
|
5369
|
+
m("span", li, "File size: " + B(u(me)(a.value.size)), 1)
|
|
5328
5370
|
]),
|
|
5329
|
-
m("div",
|
|
5371
|
+
m("div", oi, [
|
|
5330
5372
|
(d(), y(Qa, {
|
|
5331
5373
|
key: l.value,
|
|
5332
5374
|
"file-size": a.value.size,
|
|
@@ -5334,35 +5376,35 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5334
5376
|
"bytes-uploaded": p.value,
|
|
5335
5377
|
"max-file-size": b.maxFileSize
|
|
5336
5378
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
5337
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), y(
|
|
5379
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), y(M, {
|
|
5338
5380
|
key: 0,
|
|
5339
5381
|
link: "",
|
|
5340
5382
|
onClick: O
|
|
5341
5383
|
}, {
|
|
5342
|
-
default:
|
|
5343
|
-
w(u(
|
|
5384
|
+
default: v(() => [
|
|
5385
|
+
w(u(j), {
|
|
5344
5386
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5345
5387
|
}, null, 8, ["icon"])
|
|
5346
5388
|
]),
|
|
5347
5389
|
_: 1
|
|
5348
5390
|
})) : z("", !0),
|
|
5349
|
-
l.value === "Uploading" ? (d(), y(
|
|
5391
|
+
l.value === "Uploading" ? (d(), y(M, {
|
|
5350
5392
|
key: 1,
|
|
5351
5393
|
link: "",
|
|
5352
5394
|
onClick: k[1] || (k[1] = (g) => c.value.abort())
|
|
5353
5395
|
}, {
|
|
5354
|
-
default:
|
|
5355
|
-
w(u(
|
|
5396
|
+
default: v(() => [
|
|
5397
|
+
w(u(j), { icon: "bi:x-circle-fill" })
|
|
5356
5398
|
]),
|
|
5357
5399
|
_: 1
|
|
5358
|
-
})) : (d(), y(
|
|
5400
|
+
})) : (d(), y(M, {
|
|
5359
5401
|
key: 2,
|
|
5360
5402
|
link: "",
|
|
5361
5403
|
onClick: U,
|
|
5362
5404
|
id: "delete-button"
|
|
5363
5405
|
}, {
|
|
5364
|
-
default:
|
|
5365
|
-
w(u(
|
|
5406
|
+
default: v(() => [
|
|
5407
|
+
w(u(j), { icon: "bi:trash" })
|
|
5366
5408
|
]),
|
|
5367
5409
|
_: 1
|
|
5368
5410
|
}))
|
|
@@ -5377,12 +5419,12 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5377
5419
|
maxFileInput: {}
|
|
5378
5420
|
},
|
|
5379
5421
|
setup(e) {
|
|
5380
|
-
return (t, a) => (d(),
|
|
5381
|
-
m("div", ri, "Max file size: " +
|
|
5382
|
-
m("div", di, "| Max file count: " +
|
|
5422
|
+
return (t, a) => (d(), f("div", si, [
|
|
5423
|
+
m("div", ri, "Max file size: " + B(u(me)(t.maxFileSize)), 1),
|
|
5424
|
+
m("div", di, "| Max file count: " + B(t.maxFileInput), 1)
|
|
5383
5425
|
]));
|
|
5384
5426
|
}
|
|
5385
|
-
}), ci = { "data-cy": "file-uploader" }, ui = { key:
|
|
5427
|
+
}), ci = { "data-cy": "file-uploader" }, ui = { key: 1 }, hl = /* @__PURE__ */ C({
|
|
5386
5428
|
__name: "ForgeFileUploader",
|
|
5387
5429
|
props: /* @__PURE__ */ R({
|
|
5388
5430
|
acceptedFileTypes: {},
|
|
@@ -5392,33 +5434,48 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5392
5434
|
customFileNameRules: {},
|
|
5393
5435
|
maxFileInput: { default: 3 },
|
|
5394
5436
|
editableFileName: { type: Boolean, default: !1 },
|
|
5395
|
-
autoUploadToBlob: { type: Boolean, default: !0 }
|
|
5437
|
+
autoUploadToBlob: { type: Boolean, default: !0 },
|
|
5438
|
+
maxFileWarning: { default: "Maximum number of files reached." }
|
|
5396
5439
|
}, {
|
|
5397
5440
|
modelValue: { default: [] },
|
|
5398
5441
|
modelModifiers: {}
|
|
5399
5442
|
}),
|
|
5400
5443
|
emits: ["update:modelValue"],
|
|
5401
5444
|
setup(e) {
|
|
5402
|
-
const t = N(e, "modelValue")
|
|
5403
|
-
|
|
5445
|
+
const t = N(e, "modelValue");
|
|
5446
|
+
K(t, (l, o) => {
|
|
5447
|
+
l.length > a.maxFileInput && (l.length = a.maxFileInput);
|
|
5448
|
+
}, { deep: 2 });
|
|
5449
|
+
const a = e, i = (l) => {
|
|
5450
|
+
t.value = t.value.filter((o) => o.file != l);
|
|
5404
5451
|
};
|
|
5405
|
-
return (l,
|
|
5452
|
+
return (l, o) => (d(), f("div", ci, [
|
|
5453
|
+
t.value.length == l.maxFileInput && a.maxFileWarning != null ? (d(), y(se, {
|
|
5454
|
+
key: 0,
|
|
5455
|
+
id: "max-files-alert",
|
|
5456
|
+
severity: "danger"
|
|
5457
|
+
}, {
|
|
5458
|
+
default: v(() => [
|
|
5459
|
+
P(B(l.maxFileWarning), 1)
|
|
5460
|
+
]),
|
|
5461
|
+
_: 1
|
|
5462
|
+
})) : z("", !0),
|
|
5406
5463
|
w(Ya, _(a, {
|
|
5407
5464
|
modelValue: t.value,
|
|
5408
|
-
"onUpdate:modelValue":
|
|
5465
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => t.value = n)
|
|
5409
5466
|
}), null, 16, ["modelValue"]),
|
|
5410
|
-
l.showDragDropArea ? (d(),
|
|
5467
|
+
l.showDragDropArea ? (d(), f("div", ui, [
|
|
5411
5468
|
w(Za, {
|
|
5412
5469
|
"max-file-input": a.maxFileInput,
|
|
5413
5470
|
"max-file-size": a.maxFileSize,
|
|
5414
5471
|
"accepted-file-types": a.acceptedFileTypes,
|
|
5415
5472
|
modelValue: t.value,
|
|
5416
|
-
"onUpdate:modelValue":
|
|
5473
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => t.value = n)
|
|
5417
5474
|
}, {
|
|
5418
|
-
default:
|
|
5419
|
-
(d(!0),
|
|
5420
|
-
(d(), y(
|
|
5421
|
-
key:
|
|
5475
|
+
default: v(() => [
|
|
5476
|
+
(d(!0), f(A, null, E(t.value, ({ file: n }, s) => (d(), f("div", null, [
|
|
5477
|
+
(d(), y(ni, _({
|
|
5478
|
+
key: n.name,
|
|
5422
5479
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5423
5480
|
file: t.value[s].file,
|
|
5424
5481
|
"onUpdate:file": (p) => t.value[s].file = p,
|
|
@@ -5447,22 +5504,22 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5447
5504
|
},
|
|
5448
5505
|
emits: ["update:modelValue"],
|
|
5449
5506
|
setup(e) {
|
|
5450
|
-
const t = N(e, "modelValue"), a =
|
|
5451
|
-
a.value.toggle(
|
|
5507
|
+
const t = N(e, "modelValue"), a = I(), i = I(!1), l = (o) => {
|
|
5508
|
+
a.value.toggle(o);
|
|
5452
5509
|
};
|
|
5453
|
-
return (
|
|
5510
|
+
return (o, n) => (d(), f(A, null, [
|
|
5454
5511
|
w(u(q), {
|
|
5455
5512
|
onClick: l,
|
|
5456
5513
|
class: "ms-2"
|
|
5457
5514
|
}, {
|
|
5458
|
-
default:
|
|
5515
|
+
default: v(() => [
|
|
5459
5516
|
m("div", mi, [
|
|
5460
5517
|
m("div", vi, [
|
|
5461
|
-
w(u(
|
|
5518
|
+
w(u(j), { icon: "bi:layout-three-columns" })
|
|
5462
5519
|
]),
|
|
5463
|
-
|
|
5520
|
+
P(" Columns (" + B(t.value.filter((s) => s.selected).length ?? 0) + "/" + B(t.value.length ?? 0) + ") ", 1),
|
|
5464
5521
|
m("div", fi, [
|
|
5465
|
-
w(u(
|
|
5522
|
+
w(u(j), {
|
|
5466
5523
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5467
5524
|
}, null, 8, ["icon"])
|
|
5468
5525
|
])
|
|
@@ -5474,12 +5531,12 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5474
5531
|
ref_key: "columnCustomiserPanel",
|
|
5475
5532
|
ref: a,
|
|
5476
5533
|
class: "column-customiser",
|
|
5477
|
-
onHide:
|
|
5478
|
-
onShow:
|
|
5534
|
+
onHide: n[0] || (n[0] = () => i.value = !1),
|
|
5535
|
+
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5479
5536
|
}, {
|
|
5480
|
-
default:
|
|
5537
|
+
default: v(() => [
|
|
5481
5538
|
m("div", gi, [
|
|
5482
|
-
(d(!0),
|
|
5539
|
+
(d(!0), f(A, null, E(t.value, (s, p) => (d(), f("div", {
|
|
5483
5540
|
class: S(["d-flex cursor-pointer", {
|
|
5484
5541
|
"border-top": p !== 0,
|
|
5485
5542
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
@@ -5508,13 +5565,13 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5508
5565
|
return (t, a) => {
|
|
5509
5566
|
const i = Je;
|
|
5510
5567
|
return d(), y(i, W(G({ ...t.$attrs })), ae({
|
|
5511
|
-
toggleicon:
|
|
5512
|
-
l ? (d(), y(u(
|
|
5568
|
+
toggleicon: v(({ collapsed: l }) => [
|
|
5569
|
+
l ? (d(), y(u(j), {
|
|
5513
5570
|
key: 0,
|
|
5514
5571
|
"data-cy": "message-icon",
|
|
5515
5572
|
icon: "bi:chevron-down"
|
|
5516
5573
|
})) : z("", !0),
|
|
5517
|
-
l ? z("", !0) : (d(), y(u(
|
|
5574
|
+
l ? z("", !0) : (d(), y(u(j), {
|
|
5518
5575
|
key: 1,
|
|
5519
5576
|
"data-cy": "message-icon",
|
|
5520
5577
|
icon: "bi:chevron-up"
|
|
@@ -5522,10 +5579,10 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5522
5579
|
]),
|
|
5523
5580
|
_: 2
|
|
5524
5581
|
}, [
|
|
5525
|
-
E(t.$slots, (l,
|
|
5526
|
-
name:
|
|
5527
|
-
fn:
|
|
5528
|
-
|
|
5582
|
+
E(t.$slots, (l, o) => ({
|
|
5583
|
+
name: o,
|
|
5584
|
+
fn: v((n) => [
|
|
5585
|
+
F(t.$slots, o, W(G(n)))
|
|
5529
5586
|
])
|
|
5530
5587
|
}))
|
|
5531
5588
|
]), 1040);
|
|
@@ -5579,25 +5636,25 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5579
5636
|
}),
|
|
5580
5637
|
emits: ["update:modelValue"],
|
|
5581
5638
|
setup(e) {
|
|
5582
|
-
const t = e, a = N(e, "modelValue"), i = (
|
|
5583
|
-
var
|
|
5584
|
-
return t.multiple ? (
|
|
5585
|
-
}, l = (
|
|
5586
|
-
var
|
|
5587
|
-
if (!
|
|
5639
|
+
const t = e, a = N(e, "modelValue"), i = (o) => {
|
|
5640
|
+
var n;
|
|
5641
|
+
return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(o.value) : a.value === o.value;
|
|
5642
|
+
}, l = (o) => {
|
|
5643
|
+
var n;
|
|
5644
|
+
if (!o.disabled)
|
|
5588
5645
|
if (t.multiple) {
|
|
5589
|
-
let s = (
|
|
5590
|
-
if (s.length >= 1 && s.includes(
|
|
5646
|
+
let s = (n = a.value) != null && n.length ? [...a.value] : [];
|
|
5647
|
+
if (s.length >= 1 && s.includes(o.value)) {
|
|
5591
5648
|
if (!t.allowEmpty && s.length === 1) return;
|
|
5592
|
-
s = s.length > 1 ? s.filter((c) => c !==
|
|
5649
|
+
s = s.length > 1 ? s.filter((c) => c !== o.value) : [];
|
|
5593
5650
|
} else
|
|
5594
|
-
s.push(
|
|
5651
|
+
s.push(o.value);
|
|
5595
5652
|
a.value = s;
|
|
5596
5653
|
} else
|
|
5597
|
-
a.value = a.value ===
|
|
5654
|
+
a.value = a.value === o.value && t.allowEmpty ? null : o.value;
|
|
5598
5655
|
};
|
|
5599
|
-
return (
|
|
5600
|
-
(d(!0),
|
|
5656
|
+
return (o, n) => (d(), f("div", yi, [
|
|
5657
|
+
(d(!0), f(A, null, E(o.options, (s, p) => (d(), y(bi, {
|
|
5601
5658
|
key: p,
|
|
5602
5659
|
onLabel: s.label,
|
|
5603
5660
|
offLabel: s.label,
|
|
@@ -5606,11 +5663,11 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5606
5663
|
defaultValue: i(s),
|
|
5607
5664
|
disabled: s.disabled,
|
|
5608
5665
|
"data-cy": `toggle-button-${s.value}`,
|
|
5609
|
-
invalid:
|
|
5666
|
+
invalid: o.invalid
|
|
5610
5667
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5611
5668
|
]));
|
|
5612
5669
|
}
|
|
5613
|
-
}),
|
|
5670
|
+
}), Fl = /* @__PURE__ */ C({
|
|
5614
5671
|
__name: "ForgeConfirmPopup",
|
|
5615
5672
|
setup(e) {
|
|
5616
5673
|
const t = T(() => ({
|
|
@@ -5625,13 +5682,13 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5625
5682
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5626
5683
|
}));
|
|
5627
5684
|
return (a, i) => (d(), y(u(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5628
|
-
default:
|
|
5629
|
-
(d(!0),
|
|
5685
|
+
default: v(() => [
|
|
5686
|
+
(d(!0), f(A, null, E(a.$slots, (l, o) => F(a.$slots, o, { slot: o })), 256))
|
|
5630
5687
|
]),
|
|
5631
5688
|
_: 3
|
|
5632
5689
|
}, 16, ["pt"]));
|
|
5633
5690
|
}
|
|
5634
|
-
}),
|
|
5691
|
+
}), Bl = () => ({
|
|
5635
5692
|
type: "component",
|
|
5636
5693
|
resolve: (e) => {
|
|
5637
5694
|
if (e.startsWith("Forge"))
|
|
@@ -5644,28 +5701,28 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5644
5701
|
export {
|
|
5645
5702
|
Qi as Bootstrap_PT,
|
|
5646
5703
|
el as ForgeActionButton,
|
|
5647
|
-
|
|
5704
|
+
se as ForgeAlert,
|
|
5648
5705
|
tl as ForgeAutoComplete,
|
|
5649
5706
|
ye as ForgeCheckbox,
|
|
5650
5707
|
cl as ForgeChip,
|
|
5651
5708
|
wl as ForgeColumnCustomiser,
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5709
|
+
Fl as ForgeConfirmPopup,
|
|
5710
|
+
xe as ForgeDatepicker,
|
|
5711
|
+
hl as ForgeFileUploader,
|
|
5712
|
+
xl as ForgeFilterHeader,
|
|
5656
5713
|
dl as ForgeForm,
|
|
5657
5714
|
pl as ForgeFormField,
|
|
5658
5715
|
Gt as ForgeInlineEditor,
|
|
5659
5716
|
al as ForgeLink,
|
|
5660
5717
|
pe as ForgeLoader,
|
|
5661
|
-
|
|
5718
|
+
ol as ForgeModal,
|
|
5662
5719
|
Qt as ForgeMultiSelectPreview,
|
|
5663
|
-
|
|
5720
|
+
nl as ForgeNavbar,
|
|
5664
5721
|
sl as ForgePageHeader,
|
|
5665
5722
|
kl as ForgePanel,
|
|
5666
5723
|
ul as ForgeProgressBar,
|
|
5667
5724
|
rl as ForgeRemainingCharacters,
|
|
5668
|
-
|
|
5725
|
+
Bl as ForgeResolver,
|
|
5669
5726
|
ml as ForgeScratchpad,
|
|
5670
5727
|
$l as ForgeSelectButton,
|
|
5671
5728
|
vl as ForgeStatWidget,
|