@3squared/forge-ui-3 0.13.1 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import be from "primevue/message";
|
|
2
|
-
import { defineComponent as F, openBlock as i, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as g, createElementVNode as c, normalizeClass as B, unref as m, createCommentVNode as S, createVNode as
|
|
2
|
+
import { defineComponent as F, openBlock as i, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as g, createElementVNode as c, normalizeClass as B, unref as m, createCommentVNode as S, createVNode as f, renderSlot as $, ref as I, createElementBlock as v, Fragment as L, mergeProps as _, mergeModels as E, useModel as A, computed as x, createTextVNode as O, toDisplayString as h, withDirectives as j, vShow as H, createSlots as te, renderList as Y, onMounted as ne, isRef as se, withKeys as J, useAttrs as fe, withModifiers as q, normalizeStyle as ge, watch as de } from "vue";
|
|
3
3
|
import { Icon as V } from "@iconify/vue";
|
|
4
4
|
import R from "primevue/button";
|
|
5
5
|
import he from "primevue/toast";
|
|
@@ -185,7 +185,14 @@ const De = {
|
|
|
185
185
|
clearicon: "ms-auto my-auto",
|
|
186
186
|
loadingIcon: "spinner-border spinner-border-sm border-0",
|
|
187
187
|
itemGroupLabel: "ps-2 fw-bold",
|
|
188
|
-
input:
|
|
188
|
+
input: ({ instance: e }) => ({
|
|
189
|
+
class: [
|
|
190
|
+
"w-100",
|
|
191
|
+
{
|
|
192
|
+
"filter-placeholder": e.modelValue === void 0
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
})
|
|
189
196
|
}
|
|
190
197
|
}, Ne = {
|
|
191
198
|
column: {
|
|
@@ -850,7 +857,7 @@ const De = {
|
|
|
850
857
|
};
|
|
851
858
|
}
|
|
852
859
|
}
|
|
853
|
-
},
|
|
860
|
+
}, vl = {
|
|
854
861
|
...et,
|
|
855
862
|
...De,
|
|
856
863
|
...nt,
|
|
@@ -913,7 +920,7 @@ const De = {
|
|
|
913
920
|
], 2)
|
|
914
921
|
]),
|
|
915
922
|
closeicon: g(() => [
|
|
916
|
-
|
|
923
|
+
f(m(V), { icon: "bi:x" })
|
|
917
924
|
]),
|
|
918
925
|
default: g(() => [
|
|
919
926
|
$(a.$slots, "default")
|
|
@@ -922,7 +929,7 @@ const De = {
|
|
|
922
929
|
}, 16);
|
|
923
930
|
};
|
|
924
931
|
}
|
|
925
|
-
}),
|
|
932
|
+
}), bl = /* @__PURE__ */ F({
|
|
926
933
|
__name: "ForgeActionButton",
|
|
927
934
|
props: {
|
|
928
935
|
action: {},
|
|
@@ -942,13 +949,13 @@ const De = {
|
|
|
942
949
|
};
|
|
943
950
|
return (l, n) => {
|
|
944
951
|
const u = R;
|
|
945
|
-
return i(),
|
|
946
|
-
|
|
952
|
+
return i(), v(L, null, [
|
|
953
|
+
f(u, _({ ...a, ...l.$attrs }, {
|
|
947
954
|
loading: t.value,
|
|
948
955
|
disabled: t.value || a.disabled,
|
|
949
956
|
onClick: o
|
|
950
957
|
}), null, 16, ["loading", "disabled"]),
|
|
951
|
-
|
|
958
|
+
f(m(he))
|
|
952
959
|
], 64);
|
|
953
960
|
};
|
|
954
961
|
}
|
|
@@ -992,22 +999,22 @@ const De = {
|
|
|
992
999
|
}), u = x(() => l.value.length > 0);
|
|
993
1000
|
return (r, d) => {
|
|
994
1001
|
const p = we;
|
|
995
|
-
return i(),
|
|
1002
|
+
return i(), v("div", dt, [
|
|
996
1003
|
c("div", _({
|
|
997
1004
|
class: "d-flex cursor-pointer",
|
|
998
1005
|
"data-cy": "checkbox-container",
|
|
999
|
-
onClick: d[2] || (d[2] = (
|
|
1006
|
+
onClick: d[2] || (d[2] = (y) => m(o)(a.value))
|
|
1000
1007
|
}, { ...r.$attrs }), [
|
|
1001
|
-
|
|
1008
|
+
f(p, _({ ...t }, {
|
|
1002
1009
|
binary: "",
|
|
1003
1010
|
modelValue: a.value,
|
|
1004
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1011
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => a.value = y),
|
|
1005
1012
|
"input-id": t.name,
|
|
1006
1013
|
"input-class": { "is-invalid": u.value }
|
|
1007
1014
|
}), null, 16, ["modelValue", "input-id", "input-class"]),
|
|
1008
1015
|
c("label", {
|
|
1009
1016
|
for: t.name,
|
|
1010
|
-
onClick: d[1] || (d[1] = (
|
|
1017
|
+
onClick: d[1] || (d[1] = (y) => m(o)(a.value)),
|
|
1011
1018
|
class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${u.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1012
1019
|
}, [
|
|
1013
1020
|
$(r.$slots, "default", {}, () => [
|
|
@@ -1033,15 +1040,15 @@ const De = {
|
|
|
1033
1040
|
const t = e;
|
|
1034
1041
|
return (a, o) => {
|
|
1035
1042
|
const l = xe;
|
|
1036
|
-
return i(),
|
|
1037
|
-
|
|
1043
|
+
return i(), v("div", mt, [
|
|
1044
|
+
f(l, {
|
|
1038
1045
|
"animation-duration": ".75",
|
|
1039
1046
|
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1040
1047
|
}, null, 8, ["class"])
|
|
1041
1048
|
]);
|
|
1042
1049
|
};
|
|
1043
1050
|
}
|
|
1044
|
-
}), pt = ["href", "target"],
|
|
1051
|
+
}), pt = ["href", "target"], fl = /* @__PURE__ */ F({
|
|
1045
1052
|
__name: "ForgeLink",
|
|
1046
1053
|
props: {
|
|
1047
1054
|
url: {},
|
|
@@ -1075,7 +1082,7 @@ const De = {
|
|
|
1075
1082
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1076
1083
|
"me-0": e.animateIconOnHover
|
|
1077
1084
|
}));
|
|
1078
|
-
return (o, l) => (i(),
|
|
1085
|
+
return (o, l) => (i(), v("a", {
|
|
1079
1086
|
id: "link",
|
|
1080
1087
|
class: B(["cursor-pointer d-flex", t.value]),
|
|
1081
1088
|
href: o.url,
|
|
@@ -1093,7 +1100,7 @@ const De = {
|
|
|
1093
1100
|
], 10, pt));
|
|
1094
1101
|
}
|
|
1095
1102
|
});
|
|
1096
|
-
function
|
|
1103
|
+
function yt(e) {
|
|
1097
1104
|
const t = {
|
|
1098
1105
|
errorMessage: "",
|
|
1099
1106
|
errorDetails: []
|
|
@@ -1104,16 +1111,16 @@ function vt(e) {
|
|
|
1104
1111
|
}
|
|
1105
1112
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1106
1113
|
}
|
|
1107
|
-
function
|
|
1114
|
+
function gl(e, t) {
|
|
1108
1115
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1109
1116
|
}
|
|
1110
|
-
function
|
|
1117
|
+
function hl(e, t, a) {
|
|
1111
1118
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1112
1119
|
}
|
|
1113
|
-
const
|
|
1120
|
+
const vt = { key: 0 }, bt = {
|
|
1114
1121
|
class: "d-flex w-100",
|
|
1115
1122
|
"data-cy": "footer"
|
|
1116
|
-
},
|
|
1123
|
+
}, wl = /* @__PURE__ */ F({
|
|
1117
1124
|
__name: "ForgeModal",
|
|
1118
1125
|
props: /* @__PURE__ */ E({
|
|
1119
1126
|
cancelText: { default: "Cancel" },
|
|
@@ -1177,12 +1184,12 @@ const yt = { key: 0 }, bt = {
|
|
|
1177
1184
|
(s || s == null) && d();
|
|
1178
1185
|
} catch (s) {
|
|
1179
1186
|
n.value.hasError = !0;
|
|
1180
|
-
const T =
|
|
1187
|
+
const T = yt(s);
|
|
1181
1188
|
n.value.header = T.errorMessage, n.value.message = T.errorDetails;
|
|
1182
1189
|
}
|
|
1183
1190
|
l.value = !1;
|
|
1184
1191
|
}
|
|
1185
|
-
},
|
|
1192
|
+
}, y = x(() => ({
|
|
1186
1193
|
root: [
|
|
1187
1194
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1188
1195
|
{
|
|
@@ -1198,10 +1205,10 @@ const yt = { key: 0 }, bt = {
|
|
|
1198
1205
|
return i(), w(M, _(o, {
|
|
1199
1206
|
onMaximize: r,
|
|
1200
1207
|
onUnmaximize: u,
|
|
1201
|
-
pt:
|
|
1208
|
+
pt: y.value
|
|
1202
1209
|
}), te({
|
|
1203
1210
|
closeicon: g(() => [
|
|
1204
|
-
|
|
1211
|
+
f(m(V), {
|
|
1205
1212
|
"data-cy": "close-icon",
|
|
1206
1213
|
icon: "bi:x-lg",
|
|
1207
1214
|
width: "18",
|
|
@@ -1210,7 +1217,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1210
1217
|
})
|
|
1211
1218
|
]),
|
|
1212
1219
|
maximizeicon: g(() => [
|
|
1213
|
-
|
|
1220
|
+
f(m(V), {
|
|
1214
1221
|
"data-cy": "maximisable-icon",
|
|
1215
1222
|
icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1216
1223
|
width: "16",
|
|
@@ -1221,7 +1228,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1221
1228
|
}, [
|
|
1222
1229
|
Y(s.$slots, (P, z) => ({
|
|
1223
1230
|
name: z,
|
|
1224
|
-
fn: g((
|
|
1231
|
+
fn: g((b) => [
|
|
1225
1232
|
n.value.hasError ? (i(), w(le, {
|
|
1226
1233
|
key: 0,
|
|
1227
1234
|
severity: "danger",
|
|
@@ -1231,15 +1238,15 @@ const yt = { key: 0 }, bt = {
|
|
|
1231
1238
|
c("p", {
|
|
1232
1239
|
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1233
1240
|
}, h(n.value.header), 3),
|
|
1234
|
-
n.value.message.length > 0 ? (i(),
|
|
1235
|
-
(i(!0),
|
|
1241
|
+
n.value.message.length > 0 ? (i(), v("ul", vt, [
|
|
1242
|
+
(i(!0), v(L, null, Y(n.value.message, (k) => (i(), v("li", { key: k }, h(k), 1))), 128))
|
|
1236
1243
|
])) : S("", !0)
|
|
1237
1244
|
]),
|
|
1238
1245
|
_: 1
|
|
1239
1246
|
})) : S("", !0),
|
|
1240
|
-
$(s.$slots, z, Q(ee(
|
|
1247
|
+
$(s.$slots, z, Q(ee(b || {}))),
|
|
1241
1248
|
l.value ? $(s.$slots, "loader", { key: 1 }, () => [
|
|
1242
|
-
|
|
1249
|
+
f(me, { "data-cy": "loader" })
|
|
1243
1250
|
]) : S("", !0)
|
|
1244
1251
|
])
|
|
1245
1252
|
})),
|
|
@@ -1247,7 +1254,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1247
1254
|
name: "footer",
|
|
1248
1255
|
fn: g(() => [
|
|
1249
1256
|
c("div", bt, [
|
|
1250
|
-
|
|
1257
|
+
f(C, {
|
|
1251
1258
|
label: s.cancelText,
|
|
1252
1259
|
class: B(o.cancelClass),
|
|
1253
1260
|
outlined: "",
|
|
@@ -1255,7 +1262,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1255
1262
|
id: "cancel-button",
|
|
1256
1263
|
type: o.cancelButtonType
|
|
1257
1264
|
}, null, 8, ["label", "class", "type"]),
|
|
1258
|
-
|
|
1265
|
+
f(C, {
|
|
1259
1266
|
label: s.submitText,
|
|
1260
1267
|
class: B([o.submitClass, "ms-auto"]),
|
|
1261
1268
|
onClick: p,
|
|
@@ -1302,37 +1309,37 @@ const yt = { key: 0 }, bt = {
|
|
|
1302
1309
|
o.value = !o.value;
|
|
1303
1310
|
}, d = () => {
|
|
1304
1311
|
s.value = null;
|
|
1305
|
-
}, { errorMessage: p, errors:
|
|
1312
|
+
}, { errorMessage: p, errors: y, value: s } = K(() => t.name, void 0, {
|
|
1306
1313
|
initialValue: a.value
|
|
1307
1314
|
});
|
|
1308
1315
|
ne(() => {
|
|
1309
1316
|
s.value = a.value;
|
|
1310
1317
|
});
|
|
1311
|
-
const T = x(() =>
|
|
1318
|
+
const T = x(() => y.value.length > 0);
|
|
1312
1319
|
return (C, M) => {
|
|
1313
1320
|
const P = ie, z = R;
|
|
1314
|
-
return i(),
|
|
1321
|
+
return i(), v("div", {
|
|
1315
1322
|
id: t.name
|
|
1316
1323
|
}, [
|
|
1317
|
-
C.readonly ? (i(),
|
|
1324
|
+
C.readonly ? (i(), v("div", xt, [
|
|
1318
1325
|
$(C.$slots, "default", {}, () => [
|
|
1319
1326
|
c("span", kt, h(m(s)), 1)
|
|
1320
1327
|
])
|
|
1321
|
-
])) : (i(),
|
|
1322
|
-
o.value ? (i(),
|
|
1323
|
-
j((i(),
|
|
1328
|
+
])) : (i(), v("div", gt, [
|
|
1329
|
+
o.value ? (i(), v("div", ht, [
|
|
1330
|
+
j((i(), v("div", wt, [
|
|
1324
1331
|
$(C.$slots, "editor", {
|
|
1325
1332
|
class: B({ "is-invalid": T.value }),
|
|
1326
1333
|
editFinished: u,
|
|
1327
1334
|
cancel: r,
|
|
1328
1335
|
val: m(s)
|
|
1329
1336
|
}, () => [
|
|
1330
|
-
|
|
1337
|
+
f(P, {
|
|
1331
1338
|
"data-cy": "input",
|
|
1332
1339
|
ref_key: "input",
|
|
1333
1340
|
ref: l,
|
|
1334
1341
|
modelValue: m(s),
|
|
1335
|
-
"onUpdate:modelValue": M[0] || (M[0] = (
|
|
1342
|
+
"onUpdate:modelValue": M[0] || (M[0] = (b) => se(s) ? s.value = b : null),
|
|
1336
1343
|
modelModifiers: { trim: !0 },
|
|
1337
1344
|
class: B({ "is-invalid": T.value }),
|
|
1338
1345
|
onKeydown: [
|
|
@@ -1341,7 +1348,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1341
1348
|
]
|
|
1342
1349
|
}, null, 8, ["modelValue", "class"])
|
|
1343
1350
|
]),
|
|
1344
|
-
|
|
1351
|
+
f(m(V), {
|
|
1345
1352
|
icon: "bi:x-circle",
|
|
1346
1353
|
class: "mx-2 cursor-pointer",
|
|
1347
1354
|
onClick: d,
|
|
@@ -1351,7 +1358,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1351
1358
|
])), [
|
|
1352
1359
|
[m($e), u]
|
|
1353
1360
|
])
|
|
1354
|
-
])) : (i(),
|
|
1361
|
+
])) : (i(), v("div", {
|
|
1355
1362
|
key: 1,
|
|
1356
1363
|
class: "d-flex text-muted",
|
|
1357
1364
|
onClick: n,
|
|
@@ -1363,12 +1370,12 @@ const yt = { key: 0 }, bt = {
|
|
|
1363
1370
|
"data-cy": "value"
|
|
1364
1371
|
}, h(m(s) ? m(s) : "Click to edit"), 3)
|
|
1365
1372
|
]),
|
|
1366
|
-
|
|
1373
|
+
f(z, {
|
|
1367
1374
|
link: "",
|
|
1368
1375
|
class: "p-0 m-0"
|
|
1369
1376
|
}, {
|
|
1370
1377
|
default: g(() => [
|
|
1371
|
-
|
|
1378
|
+
f(m(V), {
|
|
1372
1379
|
icon: "bi:pencil",
|
|
1373
1380
|
class: B(T.value ? "text-invalid" : "text-muted"),
|
|
1374
1381
|
"data-cy": "edit-icon",
|
|
@@ -1388,7 +1395,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1388
1395
|
], 8, ft);
|
|
1389
1396
|
};
|
|
1390
1397
|
}
|
|
1391
|
-
}), Bt = ["href"],
|
|
1398
|
+
}), Bt = ["href"], xl = /* @__PURE__ */ F({
|
|
1392
1399
|
__name: "ForgeNavbar",
|
|
1393
1400
|
props: {
|
|
1394
1401
|
severity: { default: "light" },
|
|
@@ -1451,7 +1458,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1451
1458
|
]),
|
|
1452
1459
|
menubuttonicon: g(() => [
|
|
1453
1460
|
$(o.$slots, "menubuttonicon", {}, () => [
|
|
1454
|
-
|
|
1461
|
+
f(m(V), {
|
|
1455
1462
|
icon: "bi:list",
|
|
1456
1463
|
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1457
1464
|
height: "24",
|
|
@@ -1470,7 +1477,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1470
1477
|
]), 1040, ["pt"]);
|
|
1471
1478
|
};
|
|
1472
1479
|
}
|
|
1473
|
-
}), Ft = ["checked"],
|
|
1480
|
+
}), Ft = { class: "multiselect__caret" }, _t = ["checked"], St = /* @__PURE__ */ c("div", { class: "my-auto ms-1" }, "Toggle all", -1), Vt = ["data-cy"], Ct = ["checked"], Tt = { class: "my-auto ms-1" }, Mt = { class: "multiselect__tag d-inline-flex" }, Pt = { class: "my-auto" }, pe = /* @__PURE__ */ F({
|
|
1474
1481
|
__name: "ForgeMultiSelect",
|
|
1475
1482
|
props: {
|
|
1476
1483
|
severity: { default: "primary" },
|
|
@@ -1490,7 +1497,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1490
1497
|
N(U);
|
|
1491
1498
|
}, l = fe(), n = t, { errors: u, value: r, errorMessage: d } = K(() => a.name, void 0, {
|
|
1492
1499
|
initialValue: l.modelValue
|
|
1493
|
-
}), p = I(!1),
|
|
1500
|
+
}), p = I(!1), y = x(() => ({
|
|
1494
1501
|
multiple: !0,
|
|
1495
1502
|
label: "label",
|
|
1496
1503
|
trackBy: "id",
|
|
@@ -1503,15 +1510,15 @@ const yt = { key: 0 }, bt = {
|
|
|
1503
1510
|
searchable: !!(l.searchable === null || l.searchable) && l.modelValue.length === l.options.length,
|
|
1504
1511
|
async: !1,
|
|
1505
1512
|
...l
|
|
1506
|
-
})), s = x(() => `forge-multiselect-${a.severity}`), T = x(() => `multiselect__option ${p.value ? " multiselect__option--highlight" : ""} ${C.value ? " multiselect__option--selected" : ""}`), C = x(() =>
|
|
1507
|
-
r.value =
|
|
1513
|
+
})), s = x(() => `forge-multiselect-${a.severity}`), T = x(() => `multiselect__option ${p.value ? " multiselect__option--highlight" : ""} ${C.value ? " multiselect__option--selected" : ""}`), C = x(() => y.value && !(y.value.multiple || !a.showSelectAll || y.value.async) ? !1 : l.modelValue.length === l.options.length), M = x(() => u.value.length > 0), P = x(() => !!((l.allowEmpty == null || l.allowEmpty) && a.showClearSelection && (y.value.multiple ? l.modelValue.length > 0 : l.modelValue))), z = () => p.value = !0, b = () => p.value = !1, k = () => {
|
|
1514
|
+
r.value = y.value.multiple ? [] : null, n("update:modelValue", r.value);
|
|
1508
1515
|
}, G = (N) => {
|
|
1509
1516
|
n("update:modelValue", a.selectValue ? N.map((D) => D[a.selectValue]) : N);
|
|
1510
|
-
}, Z = (N) => l.modelValue !== null ? l.modelValue.some((D) =>
|
|
1517
|
+
}, Z = (N) => l.modelValue !== null ? l.modelValue.some((D) => y.value.selectValue ? N[a.selectValue] === D : N.id === D.id && N.label === D.label) : !1, oe = () => {
|
|
1511
1518
|
C.value ? k() : (r.value = [...l.options], n("update:modelValue", [...l.options]));
|
|
1512
1519
|
};
|
|
1513
|
-
return (N, D) => (i(),
|
|
1514
|
-
|
|
1520
|
+
return (N, D) => (i(), v(L, null, [
|
|
1521
|
+
f(m(Fe), _(y.value, {
|
|
1515
1522
|
class: [s.value, M.value ? "is-invalid" : ""],
|
|
1516
1523
|
"data-cy": "multiselect",
|
|
1517
1524
|
"onUpdate:modelValue": [
|
|
@@ -1521,46 +1528,48 @@ const yt = { key: 0 }, bt = {
|
|
|
1521
1528
|
modelValue: m(r)
|
|
1522
1529
|
}), te({
|
|
1523
1530
|
caret: g(({ toggle: U }) => [
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1531
|
+
c("div", Ft, [
|
|
1532
|
+
P.value ? (i(), w(m(V), {
|
|
1533
|
+
key: 0,
|
|
1534
|
+
icon: "bi:x",
|
|
1535
|
+
class: "my-auto text-black multiselect__clear",
|
|
1536
|
+
onMousedown: D[0] || (D[0] = q((W) => k(), ["prevent", "stop"])),
|
|
1537
|
+
"data-cy": "clear",
|
|
1538
|
+
height: "18px",
|
|
1539
|
+
width: "18px"
|
|
1540
|
+
})) : S("", !0),
|
|
1541
|
+
f(m(V), {
|
|
1542
|
+
icon: "bi:chevron-down",
|
|
1543
|
+
onClick: U,
|
|
1544
|
+
class: "multiselect__arrow"
|
|
1545
|
+
}, null, 8, ["onClick"])
|
|
1546
|
+
])
|
|
1538
1547
|
]),
|
|
1539
1548
|
tag: g(({ option: U, remove: W }) => [
|
|
1540
|
-
c("div",
|
|
1541
|
-
c("div",
|
|
1542
|
-
|
|
1549
|
+
c("div", Mt, [
|
|
1550
|
+
c("div", Pt, h(U.label), 1),
|
|
1551
|
+
f(m(V), {
|
|
1543
1552
|
icon: "bi:x",
|
|
1544
1553
|
class: "my-auto multiselect__tag-icon",
|
|
1545
|
-
onMousedown: q((
|
|
1554
|
+
onMousedown: q((Ra) => o(W, U), ["prevent", "stop"]),
|
|
1546
1555
|
height: "18px",
|
|
1547
1556
|
width: "18px"
|
|
1548
1557
|
}, null, 8, ["onMousedown"])
|
|
1549
1558
|
])
|
|
1550
1559
|
]),
|
|
1551
1560
|
default: g(() => [
|
|
1552
|
-
(i(!0),
|
|
1561
|
+
(i(!0), v(L, null, Y(N.$slots, (U, W) => $(N.$slots, W, { slot: W })), 256))
|
|
1553
1562
|
]),
|
|
1554
1563
|
_: 2
|
|
1555
1564
|
}, [
|
|
1556
|
-
|
|
1565
|
+
y.value.multiple && N.showSelectAll && !y.value.async ? {
|
|
1557
1566
|
name: "beforeList",
|
|
1558
1567
|
fn: g(() => [
|
|
1559
1568
|
c("li", {
|
|
1560
1569
|
class: "multiselect__element",
|
|
1561
1570
|
onClick: oe,
|
|
1562
1571
|
onMouseover: z,
|
|
1563
|
-
onMouseleave:
|
|
1572
|
+
onMouseleave: b,
|
|
1564
1573
|
"data-cy": "toggle-all"
|
|
1565
1574
|
}, [
|
|
1566
1575
|
c("div", {
|
|
@@ -1571,14 +1580,14 @@ const yt = { key: 0 }, bt = {
|
|
|
1571
1580
|
name: "selected",
|
|
1572
1581
|
type: "checkbox",
|
|
1573
1582
|
class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
|
|
1574
|
-
}, null, 8,
|
|
1575
|
-
|
|
1583
|
+
}, null, 8, _t),
|
|
1584
|
+
St
|
|
1576
1585
|
], 2)
|
|
1577
1586
|
], 32)
|
|
1578
1587
|
]),
|
|
1579
1588
|
key: "0"
|
|
1580
1589
|
} : void 0,
|
|
1581
|
-
|
|
1590
|
+
y.value.multiple ? {
|
|
1582
1591
|
name: "option",
|
|
1583
1592
|
fn: g(({ option: U }) => [
|
|
1584
1593
|
c("div", {
|
|
@@ -1590,9 +1599,9 @@ const yt = { key: 0 }, bt = {
|
|
|
1590
1599
|
name: "selected",
|
|
1591
1600
|
type: "checkbox",
|
|
1592
1601
|
class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
|
|
1593
|
-
}, null, 8,
|
|
1594
|
-
c("div",
|
|
1595
|
-
], 8,
|
|
1602
|
+
}, null, 8, Ct),
|
|
1603
|
+
c("div", Tt, h(U[y.value.label]), 1)
|
|
1604
|
+
], 8, Vt)
|
|
1596
1605
|
]),
|
|
1597
1606
|
key: "1"
|
|
1598
1607
|
} : void 0
|
|
@@ -1605,17 +1614,17 @@ const yt = { key: 0 }, bt = {
|
|
|
1605
1614
|
])
|
|
1606
1615
|
], 64));
|
|
1607
1616
|
}
|
|
1608
|
-
}),
|
|
1617
|
+
}), It = {
|
|
1609
1618
|
key: 0,
|
|
1610
1619
|
class: "pl-1"
|
|
1611
|
-
},
|
|
1620
|
+
}, zt = { class: "border alternating-item-list" }, Ot = {
|
|
1612
1621
|
key: 0,
|
|
1613
1622
|
class: "p-2 border-top border-bottom",
|
|
1614
1623
|
"data-cy": "title"
|
|
1615
|
-
},
|
|
1624
|
+
}, Dt = { class: "d-inline-block" }, Ut = {
|
|
1616
1625
|
key: 1,
|
|
1617
1626
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1618
|
-
},
|
|
1627
|
+
}, kl = /* @__PURE__ */ F({
|
|
1619
1628
|
__name: "ForgeMultiSelectPreview",
|
|
1620
1629
|
props: /* @__PURE__ */ E({
|
|
1621
1630
|
title: { default: "Selected Items" },
|
|
@@ -1635,7 +1644,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1635
1644
|
};
|
|
1636
1645
|
return (l, n) => {
|
|
1637
1646
|
const u = R;
|
|
1638
|
-
return i(),
|
|
1647
|
+
return i(), v("div", {
|
|
1639
1648
|
class: B(l.orientation === "column" ? "row" : ""),
|
|
1640
1649
|
"data-cy": "multiselect-preview"
|
|
1641
1650
|
}, [
|
|
@@ -1643,7 +1652,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1643
1652
|
class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1644
1653
|
"data-cy": "multiselect-container"
|
|
1645
1654
|
}, [
|
|
1646
|
-
|
|
1655
|
+
f(pe, _({
|
|
1647
1656
|
modelValue: a.value,
|
|
1648
1657
|
"onUpdate:modelValue": n[0] || (n[0] = (r) => a.value = r),
|
|
1649
1658
|
"limit-text": () => `${a.value.length} selected`,
|
|
@@ -1653,10 +1662,10 @@ const yt = { key: 0 }, bt = {
|
|
|
1653
1662
|
O(h(""))
|
|
1654
1663
|
]),
|
|
1655
1664
|
selection: g(() => [
|
|
1656
|
-
a.value.length > 0 ? (i(),
|
|
1665
|
+
a.value.length > 0 ? (i(), v("span", It, h(a.value.length) + " items selected", 1)) : S("", !0)
|
|
1657
1666
|
]),
|
|
1658
1667
|
default: g(() => [
|
|
1659
|
-
(i(!0),
|
|
1668
|
+
(i(!0), v(L, null, Y(l.$slots, (r, d) => $(l.$slots, d, { slot: d })), 256))
|
|
1660
1669
|
]),
|
|
1661
1670
|
_: 3
|
|
1662
1671
|
}, 16, ["modelValue", "limit-text", "options"]),
|
|
@@ -1670,14 +1679,14 @@ const yt = { key: 0 }, bt = {
|
|
|
1670
1679
|
style: ge({ height: l.height }),
|
|
1671
1680
|
class: "overflow-auto"
|
|
1672
1681
|
}, [
|
|
1673
|
-
c("div",
|
|
1674
|
-
l.title ? (i(),
|
|
1675
|
-
(i(!0),
|
|
1682
|
+
c("div", zt, [
|
|
1683
|
+
l.title ? (i(), v("div", Ot, h(l.title), 1)) : S("", !0),
|
|
1684
|
+
(i(!0), v(L, null, Y(a.value, (r) => (i(), v("div", {
|
|
1676
1685
|
key: r.id,
|
|
1677
1686
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1678
1687
|
}, [
|
|
1679
1688
|
$(l.$slots, "list-item", { item: r }, () => [
|
|
1680
|
-
c("span",
|
|
1689
|
+
c("span", Dt, h(r.shortLabel ? r.shortLabel : r.label), 1)
|
|
1681
1690
|
]),
|
|
1682
1691
|
l.canRemoveItemFromPreview ? (i(), w(u, {
|
|
1683
1692
|
key: 0,
|
|
@@ -1686,7 +1695,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1686
1695
|
onClick: (d) => o(r.id)
|
|
1687
1696
|
}, {
|
|
1688
1697
|
default: g(() => [
|
|
1689
|
-
|
|
1698
|
+
f(m(V), {
|
|
1690
1699
|
icon: "bi:x",
|
|
1691
1700
|
class: "close-icon",
|
|
1692
1701
|
"data-cy": `close-icon-${r.id}`
|
|
@@ -1695,34 +1704,34 @@ const yt = { key: 0 }, bt = {
|
|
|
1695
1704
|
_: 2
|
|
1696
1705
|
}, 1032, ["onClick"])) : S("", !0)
|
|
1697
1706
|
]))), 128)),
|
|
1698
|
-
a.value.length === 0 ? (i(),
|
|
1707
|
+
a.value.length === 0 ? (i(), v("div", Ut, h(t.optionsPreviewEmptyText), 1)) : S("", !0)
|
|
1699
1708
|
])
|
|
1700
1709
|
], 4)
|
|
1701
1710
|
], 2)
|
|
1702
1711
|
], 2);
|
|
1703
1712
|
};
|
|
1704
1713
|
}
|
|
1705
|
-
}),
|
|
1714
|
+
}), At = { class: "d-flex justify-content-between pb-2" }, Nt = {
|
|
1706
1715
|
"data-cy": "title",
|
|
1707
1716
|
class: "my-auto"
|
|
1708
|
-
},
|
|
1717
|
+
}, Et = {
|
|
1709
1718
|
"data-cy": "slot",
|
|
1710
1719
|
class: "d-flex align-items-center"
|
|
1711
|
-
},
|
|
1720
|
+
}, $l = /* @__PURE__ */ F({
|
|
1712
1721
|
__name: "ForgePageHeader",
|
|
1713
1722
|
props: {
|
|
1714
1723
|
title: {}
|
|
1715
1724
|
},
|
|
1716
1725
|
setup(e) {
|
|
1717
1726
|
const t = e;
|
|
1718
|
-
return (a, o) => (i(),
|
|
1719
|
-
c("h3",
|
|
1720
|
-
c("div",
|
|
1727
|
+
return (a, o) => (i(), v("div", At, [
|
|
1728
|
+
c("h3", Nt, h(t.title), 1),
|
|
1729
|
+
c("div", Et, [
|
|
1721
1730
|
$(a.$slots, "default")
|
|
1722
1731
|
])
|
|
1723
1732
|
]));
|
|
1724
1733
|
}
|
|
1725
|
-
}),
|
|
1734
|
+
}), Lt = { class: "d-flex" }, Rt = { "data-cy": "before-slot" }, jt = { class: "position-relative w-100" }, Ht = { "data-cy": "after-slot" }, ye = /* @__PURE__ */ F({
|
|
1726
1735
|
__name: "ForgeDatepicker",
|
|
1727
1736
|
props: /* @__PURE__ */ E({
|
|
1728
1737
|
severity: { default: "primary" },
|
|
@@ -1799,7 +1808,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1799
1808
|
initialValue: a.value
|
|
1800
1809
|
}), d = () => {
|
|
1801
1810
|
r(null), a.value = null;
|
|
1802
|
-
}, p = x(() => o.value.length > 0),
|
|
1811
|
+
}, p = x(() => o.value.length > 0), y = x(() => ({
|
|
1803
1812
|
day: ({ context: s }) => ({
|
|
1804
1813
|
class: [
|
|
1805
1814
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
@@ -1892,14 +1901,14 @@ const yt = { key: 0 }, bt = {
|
|
|
1892
1901
|
}));
|
|
1893
1902
|
return (s, T) => {
|
|
1894
1903
|
const C = _e;
|
|
1895
|
-
return i(),
|
|
1896
|
-
c("div",
|
|
1897
|
-
c("span",
|
|
1904
|
+
return i(), v(L, null, [
|
|
1905
|
+
c("div", Lt, [
|
|
1906
|
+
c("span", Rt, [
|
|
1898
1907
|
$(s.$slots, "before")
|
|
1899
1908
|
]),
|
|
1900
|
-
c("div",
|
|
1901
|
-
|
|
1902
|
-
pt:
|
|
1909
|
+
c("div", jt, [
|
|
1910
|
+
f(C, _({ ...t, ...s.$attrs }, {
|
|
1911
|
+
pt: y.value,
|
|
1903
1912
|
modelValue: a.value,
|
|
1904
1913
|
"onUpdate:modelValue": [
|
|
1905
1914
|
T[0] || (T[0] = (M) => a.value = M),
|
|
@@ -1908,14 +1917,14 @@ const yt = { key: 0 }, bt = {
|
|
|
1908
1917
|
onBlur: m(u),
|
|
1909
1918
|
"input-class": { "is-invalid": p.value }
|
|
1910
1919
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
|
|
1911
|
-
j(
|
|
1920
|
+
j(f(m(V), {
|
|
1912
1921
|
"data-cy": "icon",
|
|
1913
1922
|
icon: "bi:calendar4",
|
|
1914
1923
|
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${p.value ? "text-danger-dark" : "text-muted"}`])
|
|
1915
1924
|
}, null, 8, ["class"]), [
|
|
1916
1925
|
[H, t.showIcon]
|
|
1917
1926
|
]),
|
|
1918
|
-
j(
|
|
1927
|
+
j(f(m(V), {
|
|
1919
1928
|
"data-cy": "icon",
|
|
1920
1929
|
icon: "bi:x",
|
|
1921
1930
|
onClick: d,
|
|
@@ -1924,7 +1933,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1924
1933
|
[H, t.modelValue]
|
|
1925
1934
|
])
|
|
1926
1935
|
]),
|
|
1927
|
-
c("span",
|
|
1936
|
+
c("span", Ht, [
|
|
1928
1937
|
$(s.$slots, "after")
|
|
1929
1938
|
])
|
|
1930
1939
|
]),
|
|
@@ -1937,7 +1946,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1937
1946
|
], 64);
|
|
1938
1947
|
};
|
|
1939
1948
|
}
|
|
1940
|
-
}),
|
|
1949
|
+
}), Bl = /* @__PURE__ */ F({
|
|
1941
1950
|
__name: "ForgeRemainingCharacters",
|
|
1942
1951
|
props: {
|
|
1943
1952
|
maxCount: { default: 300 },
|
|
@@ -1945,11 +1954,11 @@ const yt = { key: 0 }, bt = {
|
|
|
1945
1954
|
},
|
|
1946
1955
|
setup(e) {
|
|
1947
1956
|
const t = e, a = x(() => t.maxCount - t.currentCount);
|
|
1948
|
-
return (o, l) => (i(),
|
|
1957
|
+
return (o, l) => (i(), v("div", {
|
|
1949
1958
|
class: B(a.value < 0 ? "text-danger" : "")
|
|
1950
1959
|
}, "Remaining characters: " + h(a.value), 3));
|
|
1951
1960
|
}
|
|
1952
|
-
}),
|
|
1961
|
+
}), qt = /* @__PURE__ */ c("hr", null, null, -1), Yt = { class: "d-flex justify-content-between" }, Fl = /* @__PURE__ */ F({
|
|
1953
1962
|
__name: "ForgeForm",
|
|
1954
1963
|
props: {
|
|
1955
1964
|
onSubmit: {},
|
|
@@ -1976,19 +1985,19 @@ const yt = { key: 0 }, bt = {
|
|
|
1976
1985
|
}
|
|
1977
1986
|
return (n, u) => {
|
|
1978
1987
|
const r = R;
|
|
1979
|
-
return i(),
|
|
1988
|
+
return i(), v("form", _(n.$attrs, {
|
|
1980
1989
|
novalidate: "",
|
|
1981
1990
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
1982
1991
|
onSubmit: q(l, ["prevent"])
|
|
1983
1992
|
}), [
|
|
1984
|
-
n.hideTitle ? S("", !0) : (i(),
|
|
1993
|
+
n.hideTitle ? S("", !0) : (i(), v(L, { key: 0 }, [
|
|
1985
1994
|
$(n.$slots, "title", {}, () => [
|
|
1986
1995
|
c("h3", {
|
|
1987
1996
|
class: B(n.titleClass),
|
|
1988
1997
|
"data-cy": "form-title"
|
|
1989
1998
|
}, h(n.title), 3)
|
|
1990
1999
|
]),
|
|
1991
|
-
|
|
2000
|
+
qt
|
|
1992
2001
|
], 64)),
|
|
1993
2002
|
o.value.hasError ? (i(), w(le, {
|
|
1994
2003
|
key: 1,
|
|
@@ -2005,7 +2014,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2005
2014
|
_: 3
|
|
2006
2015
|
})) : S("", !0),
|
|
2007
2016
|
$(n.$slots, "default"),
|
|
2008
|
-
c("div",
|
|
2017
|
+
c("div", Yt, [
|
|
2009
2018
|
$(n.$slots, "cancel", {}, () => [
|
|
2010
2019
|
n.hideCancel ? S("", !0) : (i(), w(r, {
|
|
2011
2020
|
key: 0,
|
|
@@ -2022,7 +2031,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2022
2031
|
}))
|
|
2023
2032
|
]),
|
|
2024
2033
|
$(n.$slots, "submit", { submit: l }, () => [
|
|
2025
|
-
|
|
2034
|
+
f(r, {
|
|
2026
2035
|
"data-cy": "submit-btn",
|
|
2027
2036
|
type: "submit",
|
|
2028
2037
|
severity: "primary",
|
|
@@ -2042,10 +2051,10 @@ const yt = { key: 0 }, bt = {
|
|
|
2042
2051
|
], 16);
|
|
2043
2052
|
};
|
|
2044
2053
|
}
|
|
2045
|
-
}),
|
|
2054
|
+
}), Gt = {
|
|
2046
2055
|
key: 1,
|
|
2047
2056
|
class: "d-flex flex-column w-100"
|
|
2048
|
-
},
|
|
2057
|
+
}, Kt = ["for"], _l = /* @__PURE__ */ F({
|
|
2049
2058
|
__name: "ForgeFormField",
|
|
2050
2059
|
props: /* @__PURE__ */ E({
|
|
2051
2060
|
name: {},
|
|
@@ -2059,32 +2068,32 @@ const yt = { key: 0 }, bt = {
|
|
|
2059
2068
|
}),
|
|
2060
2069
|
emits: ["update:modelValue"],
|
|
2061
2070
|
setup(e) {
|
|
2062
|
-
const t = A(e, "modelValue"), a = e, o = (
|
|
2063
|
-
a.type == "number" ? r(
|
|
2071
|
+
const t = A(e, "modelValue"), a = e, o = (y) => {
|
|
2072
|
+
a.type == "number" ? r(y.value) : r(y);
|
|
2064
2073
|
}, { errors: l, value: n, errorMessage: u, handleChange: r, handleBlur: d } = K(() => a.name, void 0, {
|
|
2065
2074
|
initialValue: t.value
|
|
2066
2075
|
}), p = x(() => l.value.length > 0);
|
|
2067
|
-
return de(() => n.value, (
|
|
2068
|
-
t.value =
|
|
2069
|
-
}, { immediate: !0 }), (
|
|
2070
|
-
const T = Ve, C = Se, M = ie, P = ae, z = pe,
|
|
2076
|
+
return de(() => n.value, (y) => {
|
|
2077
|
+
t.value = y;
|
|
2078
|
+
}, { immediate: !0 }), (y, s) => {
|
|
2079
|
+
const T = Ve, C = Se, M = ie, P = ae, z = pe, b = ye;
|
|
2071
2080
|
return a.type === "checkbox" ? (i(), w(ct, _({
|
|
2072
2081
|
key: 0,
|
|
2073
2082
|
id: a.name,
|
|
2074
2083
|
label: a.fieldLabel
|
|
2075
|
-
},
|
|
2084
|
+
}, y.$attrs, {
|
|
2076
2085
|
name: a.name,
|
|
2077
2086
|
modelValue: t.value,
|
|
2078
2087
|
"onUpdate:modelValue": s[0] || (s[0] = (k) => t.value = k)
|
|
2079
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (i(),
|
|
2088
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (i(), v("div", Gt, [
|
|
2080
2089
|
c("label", {
|
|
2081
2090
|
for: a.name,
|
|
2082
2091
|
class: "mb-1"
|
|
2083
|
-
}, h(a.fieldLabel), 9,
|
|
2092
|
+
}, h(a.fieldLabel), 9, Kt),
|
|
2084
2093
|
a.type === "number" ? (i(), w(m(ue), _({
|
|
2085
2094
|
key: 0,
|
|
2086
2095
|
id: a.name
|
|
2087
|
-
},
|
|
2096
|
+
}, y.$attrs, {
|
|
2088
2097
|
placeholder: a.placeholder,
|
|
2089
2098
|
"input-class": { "is-invalid": p.value },
|
|
2090
2099
|
class: { "is-invalid": p.value },
|
|
@@ -2094,7 +2103,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2094
2103
|
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (i(), w(T, _({
|
|
2095
2104
|
key: 1,
|
|
2096
2105
|
id: a.name
|
|
2097
|
-
},
|
|
2106
|
+
}, y.$attrs, {
|
|
2098
2107
|
placeholder: a.placeholder,
|
|
2099
2108
|
class: { "is-invalid": p.value },
|
|
2100
2109
|
modelValue: t.value,
|
|
@@ -2104,7 +2113,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2104
2113
|
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (i(), w(C, _({
|
|
2105
2114
|
key: 2,
|
|
2106
2115
|
id: a.name
|
|
2107
|
-
},
|
|
2116
|
+
}, y.$attrs, {
|
|
2108
2117
|
placeholder: a.placeholder,
|
|
2109
2118
|
mask: a.mask,
|
|
2110
2119
|
class: { "is-invalid": p.value },
|
|
@@ -2115,22 +2124,22 @@ const yt = { key: 0 }, bt = {
|
|
|
2115
2124
|
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (i(), w(M, _({
|
|
2116
2125
|
key: 3,
|
|
2117
2126
|
id: a.name
|
|
2118
|
-
},
|
|
2127
|
+
}, y.$attrs, {
|
|
2119
2128
|
placeholder: a.placeholder,
|
|
2120
2129
|
class: { "is-invalid": p.value },
|
|
2121
2130
|
modelValue: t.value,
|
|
2122
2131
|
"onUpdate:modelValue": s[4] || (s[4] = (k) => t.value = k),
|
|
2123
2132
|
onInput: o,
|
|
2124
2133
|
onBlur: m(d)
|
|
2125
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (i(), w(P, _({ key: 4 }, { ...a, ...
|
|
2134
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (i(), w(P, _({ key: 4 }, { ...a, ...y.$attrs }, {
|
|
2126
2135
|
modelValue: t.value,
|
|
2127
2136
|
"onUpdate:modelValue": s[5] || (s[5] = (k) => t.value = k),
|
|
2128
2137
|
class: { "is-invalid": p.value }
|
|
2129
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (i(), w(z, _({ key: 5 }, { ...a, ...
|
|
2138
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (i(), w(z, _({ key: 5 }, { ...a, ...y.$attrs }, {
|
|
2130
2139
|
modelValue: t.value,
|
|
2131
2140
|
"onUpdate:modelValue": s[6] || (s[6] = (k) => t.value = k),
|
|
2132
2141
|
class: { "is-invalid": p.value }
|
|
2133
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (i(), w(
|
|
2142
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (i(), w(b, _({ key: 6 }, { ...a, ...y.$attrs }, {
|
|
2134
2143
|
modelValue: t.value,
|
|
2135
2144
|
"onUpdate:modelValue": s[7] || (s[7] = (k) => t.value = k),
|
|
2136
2145
|
class: { "is-invalid": p.value }
|
|
@@ -2144,7 +2153,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2144
2153
|
]));
|
|
2145
2154
|
};
|
|
2146
2155
|
}
|
|
2147
|
-
}),
|
|
2156
|
+
}), Sl = /* @__PURE__ */ F({
|
|
2148
2157
|
__name: "ForgeChips",
|
|
2149
2158
|
props: {
|
|
2150
2159
|
chipSeverity: { default: "primary" },
|
|
@@ -2206,17 +2215,17 @@ const yt = { key: 0 }, bt = {
|
|
|
2206
2215
|
}));
|
|
2207
2216
|
return (r, d) => {
|
|
2208
2217
|
const p = Ce;
|
|
2209
|
-
return i(),
|
|
2210
|
-
|
|
2218
|
+
return i(), v(L, null, [
|
|
2219
|
+
f(p, _({ ...t, ...r.$attrs }, {
|
|
2211
2220
|
pt: u.value,
|
|
2212
2221
|
"model-value": m(o),
|
|
2213
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2222
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => se(o) ? o.value = y : null)
|
|
2214
2223
|
}), {
|
|
2215
|
-
removetokenicon: g(({ removeCallback:
|
|
2216
|
-
j(
|
|
2224
|
+
removetokenicon: g(({ removeCallback: y }) => [
|
|
2225
|
+
j(f(m(V), {
|
|
2217
2226
|
icon: "bi:x",
|
|
2218
2227
|
class: "cursor-pointer",
|
|
2219
|
-
onClick:
|
|
2228
|
+
onClick: y
|
|
2220
2229
|
}, null, 8, ["onClick"]), [
|
|
2221
2230
|
[H, !t.disabled]
|
|
2222
2231
|
])
|
|
@@ -2232,7 +2241,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2232
2241
|
], 64);
|
|
2233
2242
|
};
|
|
2234
2243
|
}
|
|
2235
|
-
}),
|
|
2244
|
+
}), Wt = /* @__PURE__ */ F({
|
|
2236
2245
|
__name: "ForgeProgressBar",
|
|
2237
2246
|
props: {
|
|
2238
2247
|
severity: { default: "primary" },
|
|
@@ -2284,7 +2293,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2284
2293
|
}, 16, ["pt"]);
|
|
2285
2294
|
};
|
|
2286
2295
|
}
|
|
2287
|
-
}),
|
|
2296
|
+
}), Zt = { class: "value text-white w-100 text-center" }, Vl = /* @__PURE__ */ F({
|
|
2288
2297
|
__name: "ForgeStatWidget",
|
|
2289
2298
|
props: {
|
|
2290
2299
|
size: { default: "md" },
|
|
@@ -2292,18 +2301,18 @@ const yt = { key: 0 }, bt = {
|
|
|
2292
2301
|
},
|
|
2293
2302
|
setup(e) {
|
|
2294
2303
|
const t = e;
|
|
2295
|
-
return (a, o) => (i(),
|
|
2304
|
+
return (a, o) => (i(), v("div", _(a.$attrs, {
|
|
2296
2305
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2297
2306
|
}), [
|
|
2298
|
-
c("span",
|
|
2307
|
+
c("span", Zt, [
|
|
2299
2308
|
$(a.$slots, "default")
|
|
2300
2309
|
])
|
|
2301
2310
|
], 16));
|
|
2302
2311
|
}
|
|
2303
|
-
}),
|
|
2312
|
+
}), Jt = {
|
|
2304
2313
|
class: "d-flex flex-column align-items-center",
|
|
2305
2314
|
"data-cy": "stepper"
|
|
2306
|
-
},
|
|
2315
|
+
}, Xt = { class: "d-flex align-items-center justify-content-center w-100" }, Cl = /* @__PURE__ */ F({
|
|
2307
2316
|
__name: "ForgeStepper",
|
|
2308
2317
|
props: {
|
|
2309
2318
|
currentStep: { default: 0 },
|
|
@@ -2331,7 +2340,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2331
2340
|
while (o.model[l.value].disabled);
|
|
2332
2341
|
a("update:currentStep", l.value);
|
|
2333
2342
|
}, r = x(() => {
|
|
2334
|
-
const p = o.model.findIndex((
|
|
2343
|
+
const p = o.model.findIndex((y) => !y.disabled);
|
|
2335
2344
|
return !(p < l.value && p > -1);
|
|
2336
2345
|
}), d = x(() => ({
|
|
2337
2346
|
menuitem: (p) => ({
|
|
@@ -2369,11 +2378,11 @@ const yt = { key: 0 }, bt = {
|
|
|
2369
2378
|
]
|
|
2370
2379
|
})
|
|
2371
2380
|
}));
|
|
2372
|
-
return (p,
|
|
2381
|
+
return (p, y) => {
|
|
2373
2382
|
const s = R, T = Pe, C = Me;
|
|
2374
|
-
return i(),
|
|
2375
|
-
c("div",
|
|
2376
|
-
|
|
2383
|
+
return i(), v("div", Jt, [
|
|
2384
|
+
c("div", Xt, [
|
|
2385
|
+
f(s, {
|
|
2377
2386
|
severity: o.severity,
|
|
2378
2387
|
disabled: r.value,
|
|
2379
2388
|
onClick: n,
|
|
@@ -2381,23 +2390,23 @@ const yt = { key: 0 }, bt = {
|
|
|
2381
2390
|
"data-cy": "back-button"
|
|
2382
2391
|
}, {
|
|
2383
2392
|
default: g(() => [
|
|
2384
|
-
|
|
2393
|
+
f(m(V), {
|
|
2385
2394
|
icon: "bi:chevron-left",
|
|
2386
2395
|
class: "mb-1"
|
|
2387
2396
|
})
|
|
2388
2397
|
]),
|
|
2389
2398
|
_: 1
|
|
2390
2399
|
}, 8, ["severity", "disabled"]),
|
|
2391
|
-
|
|
2400
|
+
f(T, {
|
|
2392
2401
|
"active-step": l.value,
|
|
2393
|
-
"onUpdate:activeStep":
|
|
2402
|
+
"onUpdate:activeStep": y[0] || (y[0] = (M) => l.value = M),
|
|
2394
2403
|
model: o.model,
|
|
2395
2404
|
pt: d.value,
|
|
2396
2405
|
readonly: !1
|
|
2397
2406
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2398
2407
|
]),
|
|
2399
|
-
|
|
2400
|
-
(i(!0),
|
|
2408
|
+
f(C, { class: "m-4" }),
|
|
2409
|
+
(i(!0), v(L, null, Y(o.model, (M, P) => (i(), v("div", {
|
|
2401
2410
|
key: P,
|
|
2402
2411
|
class: "w-100"
|
|
2403
2412
|
}, [
|
|
@@ -2406,13 +2415,13 @@ const yt = { key: 0 }, bt = {
|
|
|
2406
2415
|
nextStep: u,
|
|
2407
2416
|
previousStep: n
|
|
2408
2417
|
}, () => [
|
|
2409
|
-
|
|
2418
|
+
f(le, {
|
|
2410
2419
|
severity: "info",
|
|
2411
2420
|
"data-cy": "alert"
|
|
2412
2421
|
}, {
|
|
2413
2422
|
default: g(() => [
|
|
2414
2423
|
O(" Please add Slot Content for the key " + h(M.key ?? M.label) + " ", 1),
|
|
2415
|
-
|
|
2424
|
+
f(s, {
|
|
2416
2425
|
severity: "primary",
|
|
2417
2426
|
label: "Next",
|
|
2418
2427
|
onClick: u,
|
|
@@ -2426,7 +2435,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2426
2435
|
]);
|
|
2427
2436
|
};
|
|
2428
2437
|
}
|
|
2429
|
-
}),
|
|
2438
|
+
}), Qt = { class: "p-4 text-wrap w-100" }, ea = { class: "p-4 text-wrap w-100" }, Tl = /* @__PURE__ */ F({
|
|
2430
2439
|
__name: "ForgeTile",
|
|
2431
2440
|
props: {
|
|
2432
2441
|
severity: { default: "primary" },
|
|
@@ -2446,19 +2455,19 @@ const yt = { key: 0 }, bt = {
|
|
|
2446
2455
|
"data-cy": "button-tile"
|
|
2447
2456
|
}, {
|
|
2448
2457
|
default: g(() => [
|
|
2449
|
-
c("div",
|
|
2458
|
+
c("div", Qt, [
|
|
2450
2459
|
$(l.$slots, "default", {}, () => [
|
|
2451
2460
|
O("Tile Content")
|
|
2452
2461
|
])
|
|
2453
2462
|
])
|
|
2454
2463
|
]),
|
|
2455
2464
|
_: 3
|
|
2456
|
-
}, 8, ["severity", "class"])) : (i(),
|
|
2465
|
+
}, 8, ["severity", "class"])) : (i(), v("div", {
|
|
2457
2466
|
key: 1,
|
|
2458
2467
|
class: B(["d-flex w-100", o.value]),
|
|
2459
2468
|
"data-cy": "tile"
|
|
2460
2469
|
}, [
|
|
2461
|
-
c("div",
|
|
2470
|
+
c("div", ea, [
|
|
2462
2471
|
$(l.$slots, "default", {}, () => [
|
|
2463
2472
|
O("Tile Content")
|
|
2464
2473
|
])
|
|
@@ -2470,13 +2479,13 @@ const yt = { key: 0 }, bt = {
|
|
|
2470
2479
|
function X(e, t) {
|
|
2471
2480
|
return e > 1 ? `${t}s` : t;
|
|
2472
2481
|
}
|
|
2473
|
-
const
|
|
2482
|
+
const ta = {
|
|
2474
2483
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2475
2484
|
"data-cy": "pagination-header"
|
|
2476
|
-
},
|
|
2485
|
+
}, aa = { class: "ms-2" }, la = { key: 0 }, oa = /* @__PURE__ */ c("span", { class: "mx-2" }, "|", -1), na = {
|
|
2477
2486
|
class: "w-auto",
|
|
2478
2487
|
"data-cy": "total"
|
|
2479
|
-
},
|
|
2488
|
+
}, sa = /* @__PURE__ */ F({
|
|
2480
2489
|
__name: "ForgePaginationHeader",
|
|
2481
2490
|
props: {
|
|
2482
2491
|
total: {},
|
|
@@ -2491,22 +2500,25 @@ const ea = {
|
|
|
2491
2500
|
const u = Math.ceil(o.total / o.perPage);
|
|
2492
2501
|
return `${u} ${X(u, "page")}`;
|
|
2493
2502
|
});
|
|
2494
|
-
return (u, r) => (i(),
|
|
2503
|
+
return (u, r) => (i(), v("div", ta, [
|
|
2495
2504
|
O(" Number of results per page "),
|
|
2496
|
-
c("div",
|
|
2497
|
-
|
|
2505
|
+
c("div", aa, [
|
|
2506
|
+
f(m(ae), {
|
|
2498
2507
|
options: o.pageSizes,
|
|
2499
2508
|
"model-value": o.perPage,
|
|
2500
2509
|
onChange: r[0] || (r[0] = (d) => l(d))
|
|
2501
2510
|
}, null, 8, ["options", "model-value"])
|
|
2502
2511
|
]),
|
|
2503
|
-
o.total ? (i(),
|
|
2504
|
-
|
|
2505
|
-
c("span",
|
|
2512
|
+
o.total ? (i(), v("div", la, [
|
|
2513
|
+
oa,
|
|
2514
|
+
c("span", na, h(o.total) + " " + h(m(X)(o.total, "result")) + " across " + h(n.value), 1)
|
|
2506
2515
|
])) : S("", !0)
|
|
2507
2516
|
]));
|
|
2508
2517
|
}
|
|
2509
|
-
}),
|
|
2518
|
+
}), ia = { class: "position-relative" }, ra = { "data-cy": "above-table-slot" }, da = { class: "d-flex w-100" }, ua = {
|
|
2519
|
+
class: "mx-auto",
|
|
2520
|
+
"data-cy": "empty-message"
|
|
2521
|
+
}, ca = { class: "d-flex" }, ma = { class: "d-flex align-items-end mb-2" }, pa = { key: 0 }, ya = { class: "ms-auto" }, va = /* @__PURE__ */ c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), Ml = /* @__PURE__ */ F({
|
|
2510
2522
|
__name: "ForgeTable",
|
|
2511
2523
|
props: {
|
|
2512
2524
|
value: {},
|
|
@@ -2516,6 +2528,7 @@ const ea = {
|
|
|
2516
2528
|
stickyHeader: { type: Boolean, default: !0 },
|
|
2517
2529
|
severity: {},
|
|
2518
2530
|
clearAll: {},
|
|
2531
|
+
emptyMessage: {},
|
|
2519
2532
|
dataKey: {},
|
|
2520
2533
|
rows: {},
|
|
2521
2534
|
first: {},
|
|
@@ -2595,9 +2608,9 @@ const ea = {
|
|
|
2595
2608
|
sortField: "",
|
|
2596
2609
|
total: o.totalRecords ?? o.value.length
|
|
2597
2610
|
}), d = x(() => o.totalRecords ?? o.value.length), p = x(() => {
|
|
2598
|
-
const
|
|
2599
|
-
return `${
|
|
2600
|
-
}),
|
|
2611
|
+
const b = Math.ceil(d.value / u.value);
|
|
2612
|
+
return `${b} ${X(b, "page")}`;
|
|
2613
|
+
}), y = x(() => ({
|
|
2601
2614
|
thead: () => ({
|
|
2602
2615
|
class: [
|
|
2603
2616
|
{
|
|
@@ -2623,31 +2636,31 @@ const ea = {
|
|
|
2623
2636
|
if (o.clearAll)
|
|
2624
2637
|
o.clearAll();
|
|
2625
2638
|
else
|
|
2626
|
-
for (const
|
|
2627
|
-
typeof o.filters[
|
|
2639
|
+
for (const b in o.filters)
|
|
2640
|
+
typeof o.filters[b] == "string" ? o.filters[b] = "" : o.filters[b].value = null;
|
|
2628
2641
|
M(o.filters);
|
|
2629
2642
|
}, T = () => {
|
|
2630
2643
|
l.value.exportCSV();
|
|
2631
|
-
}, C = (
|
|
2644
|
+
}, C = (b) => {
|
|
2632
2645
|
var k;
|
|
2633
|
-
r.value.sortDirection =
|
|
2634
|
-
}, M = (
|
|
2635
|
-
r.value.filters =
|
|
2636
|
-
}, P = (
|
|
2637
|
-
r.value.page =
|
|
2646
|
+
r.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((k = b.sortField) == null ? void 0 : k.toString()) ?? "", a("update:tableContext", r.value), a("sort", b);
|
|
2647
|
+
}, M = (b) => {
|
|
2648
|
+
r.value.filters = b, a("update:tableContext", r.value), a("update:filters", b);
|
|
2649
|
+
}, P = (b) => {
|
|
2650
|
+
r.value.page = b.page, a("update:tableContext", r.value), a("page", b);
|
|
2638
2651
|
}, z = () => {
|
|
2639
2652
|
r.value.perPage = u.value, a("update:tableContext", r.value);
|
|
2640
2653
|
};
|
|
2641
|
-
return de(() => o.filters, (
|
|
2642
|
-
r.value.filters =
|
|
2643
|
-
}, { deep: !0 }), ne(() => a("update:tableContext", r.value)), (
|
|
2644
|
-
c("span",
|
|
2645
|
-
$(
|
|
2654
|
+
return de(() => o.filters, (b) => {
|
|
2655
|
+
r.value.filters = b, a("update:tableContext", r.value);
|
|
2656
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", r.value)), (b, k) => (i(), v("div", ia, [
|
|
2657
|
+
c("span", ra, [
|
|
2658
|
+
$(b.$slots, "above-table")
|
|
2646
2659
|
]),
|
|
2647
|
-
|
|
2660
|
+
f(m(Ie), _({
|
|
2648
2661
|
class: ["w-100", `${o.severity ? `forge-table-${o.severity}` : ""}`]
|
|
2649
|
-
}, { ...o, ...
|
|
2650
|
-
pt:
|
|
2662
|
+
}, { ...o, ...b.$attrs }, {
|
|
2663
|
+
pt: y.value,
|
|
2651
2664
|
rows: u.value,
|
|
2652
2665
|
"total-records": d.value,
|
|
2653
2666
|
"filter-display": o.filters ? "row" : void 0,
|
|
@@ -2658,14 +2671,19 @@ const ea = {
|
|
|
2658
2671
|
onSort: C,
|
|
2659
2672
|
onPage: P
|
|
2660
2673
|
}), te({
|
|
2674
|
+
empty: g(() => [
|
|
2675
|
+
c("div", da, [
|
|
2676
|
+
c("h5", ua, h(b.emptyMessage ?? "No items Found."), 1)
|
|
2677
|
+
])
|
|
2678
|
+
]),
|
|
2661
2679
|
header: g(() => [
|
|
2662
2680
|
c("div", {
|
|
2663
2681
|
class: B(o.loading ? "opacity-50" : "")
|
|
2664
2682
|
}, [
|
|
2665
|
-
c("div",
|
|
2666
|
-
c("div",
|
|
2667
|
-
|
|
2668
|
-
|
|
2683
|
+
c("div", ca, [
|
|
2684
|
+
c("div", ma, [
|
|
2685
|
+
b.paginator && !b.legacyPaginationFooter ? (i(), v("span", pa, [
|
|
2686
|
+
f(sa, {
|
|
2669
2687
|
total: d.value,
|
|
2670
2688
|
"page-sizes": n.value,
|
|
2671
2689
|
"per-page": u.value,
|
|
@@ -2676,16 +2694,16 @@ const ea = {
|
|
|
2676
2694
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2677
2695
|
])) : S("", !0)
|
|
2678
2696
|
]),
|
|
2679
|
-
c("div",
|
|
2680
|
-
|
|
2697
|
+
c("div", ya, [
|
|
2698
|
+
b.showClearButton ? (i(), w(m(R), {
|
|
2681
2699
|
key: 0,
|
|
2682
2700
|
outlined: "",
|
|
2683
|
-
class: B(
|
|
2701
|
+
class: B(b.showExporterButton ? "me-2" : ""),
|
|
2684
2702
|
onClick: s,
|
|
2685
2703
|
"data-cy": "clear-all"
|
|
2686
2704
|
}, {
|
|
2687
2705
|
default: g(() => [
|
|
2688
|
-
|
|
2706
|
+
f(m(V), {
|
|
2689
2707
|
icon: "bi:funnel-fill",
|
|
2690
2708
|
width: "24",
|
|
2691
2709
|
height: "24"
|
|
@@ -2694,14 +2712,14 @@ const ea = {
|
|
|
2694
2712
|
]),
|
|
2695
2713
|
_: 1
|
|
2696
2714
|
}, 8, ["class"])) : S("", !0),
|
|
2697
|
-
|
|
2715
|
+
b.showExporterButton ? (i(), w(m(R), {
|
|
2698
2716
|
key: 1,
|
|
2699
2717
|
outlined: "",
|
|
2700
2718
|
onClick: T,
|
|
2701
2719
|
"data-cy": "exporter"
|
|
2702
2720
|
}, {
|
|
2703
2721
|
default: g(() => [
|
|
2704
|
-
|
|
2722
|
+
f(m(V), {
|
|
2705
2723
|
icon: "typcn:export",
|
|
2706
2724
|
width: "24",
|
|
2707
2725
|
height: "24"
|
|
@@ -2715,25 +2733,25 @@ const ea = {
|
|
|
2715
2733
|
], 2)
|
|
2716
2734
|
]),
|
|
2717
2735
|
default: g(() => [
|
|
2718
|
-
$(
|
|
2736
|
+
$(b.$slots, "default")
|
|
2719
2737
|
]),
|
|
2720
2738
|
_: 2
|
|
2721
2739
|
}, [
|
|
2722
|
-
Y(
|
|
2740
|
+
Y(b.$slots, (G, Z) => ({
|
|
2723
2741
|
name: Z,
|
|
2724
2742
|
fn: g((oe) => [
|
|
2725
|
-
$(
|
|
2743
|
+
$(b.$slots, Z, Q(ee(oe || {})))
|
|
2726
2744
|
])
|
|
2727
2745
|
})),
|
|
2728
|
-
|
|
2746
|
+
b.legacyPaginationFooter ? {
|
|
2729
2747
|
name: "paginatorstart",
|
|
2730
2748
|
fn: g(() => [
|
|
2731
2749
|
c("span", {
|
|
2732
2750
|
class: B(["d-flex", o.loading ? "opacity-50" : ""]),
|
|
2733
2751
|
"data-cy": "legacy-page-size"
|
|
2734
2752
|
}, [
|
|
2735
|
-
|
|
2736
|
-
|
|
2753
|
+
va,
|
|
2754
|
+
f(m(ae), {
|
|
2737
2755
|
options: n.value,
|
|
2738
2756
|
modelValue: u.value,
|
|
2739
2757
|
"onUpdate:modelValue": k[1] || (k[1] = (G) => u.value = G),
|
|
@@ -2744,7 +2762,7 @@ const ea = {
|
|
|
2744
2762
|
]),
|
|
2745
2763
|
key: "0"
|
|
2746
2764
|
} : void 0,
|
|
2747
|
-
|
|
2765
|
+
b.legacyPaginationFooter ? {
|
|
2748
2766
|
name: "paginatorend",
|
|
2749
2767
|
fn: g(() => [
|
|
2750
2768
|
c("span", {
|
|
@@ -2757,7 +2775,7 @@ const ea = {
|
|
|
2757
2775
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
2758
2776
|
]));
|
|
2759
2777
|
}
|
|
2760
|
-
}),
|
|
2778
|
+
}), ba = { class: "d-flex position-relative" }, fa = { class: "d-flex w-100" }, ga = { class: "d-flex w-100" }, Pl = /* @__PURE__ */ F({
|
|
2761
2779
|
__name: "ForgeFilterHeader",
|
|
2762
2780
|
props: /* @__PURE__ */ E({
|
|
2763
2781
|
dataType: {},
|
|
@@ -2778,7 +2796,7 @@ const ea = {
|
|
|
2778
2796
|
const u = (r) => {
|
|
2779
2797
|
var p;
|
|
2780
2798
|
const d = (p = e.dropdownOptions) == null ? void 0 : p.find(
|
|
2781
|
-
(
|
|
2799
|
+
(y) => e.optionValue ? y[e.optionValue] === r : Object.keys(y).every((s) => r.hasOwnProperty(s) && y[s] === r[s])
|
|
2782
2800
|
);
|
|
2783
2801
|
return e.optionLabel ? d[e.optionLabel] : d;
|
|
2784
2802
|
};
|
|
@@ -2788,12 +2806,12 @@ const ea = {
|
|
|
2788
2806
|
};
|
|
2789
2807
|
return (l, n) => {
|
|
2790
2808
|
const u = ue, r = R;
|
|
2791
|
-
return i(),
|
|
2809
|
+
return i(), v("div", ba, [
|
|
2792
2810
|
l.dataType === "numeric" ? (i(), w(u, _({
|
|
2793
2811
|
key: 0,
|
|
2794
2812
|
modelValue: t.value,
|
|
2795
2813
|
"onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
|
|
2796
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (i(), w(
|
|
2814
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (i(), w(ye, _({
|
|
2797
2815
|
key: 1,
|
|
2798
2816
|
modelValue: t.value,
|
|
2799
2817
|
"onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
|
|
@@ -2810,7 +2828,7 @@ const ea = {
|
|
|
2810
2828
|
"option-label": l.optionLabel
|
|
2811
2829
|
}), {
|
|
2812
2830
|
value: g(({ value: d, placeholder: p }) => [
|
|
2813
|
-
c("div",
|
|
2831
|
+
c("div", fa, [
|
|
2814
2832
|
c("span", {
|
|
2815
2833
|
class: B({ "filter-placeholder": d === null })
|
|
2816
2834
|
}, h(a(d, p)), 3),
|
|
@@ -2821,7 +2839,7 @@ const ea = {
|
|
|
2821
2839
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2822
2840
|
}, {
|
|
2823
2841
|
default: g(() => [
|
|
2824
|
-
|
|
2842
|
+
f(m(V), {
|
|
2825
2843
|
icon: "bi:x",
|
|
2826
2844
|
width: "1rem",
|
|
2827
2845
|
height: "1rem",
|
|
@@ -2845,7 +2863,7 @@ const ea = {
|
|
|
2845
2863
|
filter: ""
|
|
2846
2864
|
}), {
|
|
2847
2865
|
value: g(({ value: d, placeholder: p }) => [
|
|
2848
|
-
c("div",
|
|
2866
|
+
c("div", ga, [
|
|
2849
2867
|
c("span", {
|
|
2850
2868
|
class: B({ "filter-placeholder": (d == null ? void 0 : d.length) === 0 || d === null })
|
|
2851
2869
|
}, h(a(d, p)), 3),
|
|
@@ -2856,7 +2874,7 @@ const ea = {
|
|
|
2856
2874
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2857
2875
|
}, {
|
|
2858
2876
|
default: g(() => [
|
|
2859
|
-
|
|
2877
|
+
f(m(V), {
|
|
2860
2878
|
icon: "bi:x",
|
|
2861
2879
|
width: "1rem",
|
|
2862
2880
|
height: "1rem",
|
|
@@ -2880,7 +2898,7 @@ const ea = {
|
|
|
2880
2898
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
2881
2899
|
}, {
|
|
2882
2900
|
default: g(() => [
|
|
2883
|
-
|
|
2901
|
+
f(m(V), {
|
|
2884
2902
|
icon: "bi:x",
|
|
2885
2903
|
width: "1rem",
|
|
2886
2904
|
height: "1rem",
|
|
@@ -2893,7 +2911,7 @@ const ea = {
|
|
|
2893
2911
|
};
|
|
2894
2912
|
}
|
|
2895
2913
|
});
|
|
2896
|
-
function
|
|
2914
|
+
function ve(e, t, a, o) {
|
|
2897
2915
|
const l = t.flatMap((n) => n.file);
|
|
2898
2916
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2899
2917
|
const u = l.findIndex((d) => d.name === n.name);
|
|
@@ -2905,7 +2923,7 @@ function ye(e, t, a, o) {
|
|
|
2905
2923
|
})) : t[u].status = "Duplicate";
|
|
2906
2924
|
}), t;
|
|
2907
2925
|
}
|
|
2908
|
-
async function
|
|
2926
|
+
async function ha(e, t) {
|
|
2909
2927
|
if (e === "Uploaded" && t !== null)
|
|
2910
2928
|
try {
|
|
2911
2929
|
await new ce(t).delete();
|
|
@@ -2928,13 +2946,13 @@ function re(e, t = !0, a = 1) {
|
|
|
2928
2946
|
while (Math.round(Math.abs(e) * u) / u >= o && n < l.length - 1);
|
|
2929
2947
|
return e.toFixed(a) + " " + l[n];
|
|
2930
2948
|
}
|
|
2931
|
-
function
|
|
2949
|
+
function wa(e) {
|
|
2932
2950
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
2933
2951
|
}
|
|
2934
|
-
function
|
|
2952
|
+
function xa(e) {
|
|
2935
2953
|
return URL.createObjectURL(e);
|
|
2936
2954
|
}
|
|
2937
|
-
const
|
|
2955
|
+
const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disabled", "multiple"], Ba = /* @__PURE__ */ F({
|
|
2938
2956
|
__name: "UploadButton",
|
|
2939
2957
|
props: /* @__PURE__ */ E({
|
|
2940
2958
|
acceptedFileTypes: {},
|
|
@@ -2947,9 +2965,9 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
2947
2965
|
emits: ["update:modelValue"],
|
|
2948
2966
|
setup(e) {
|
|
2949
2967
|
const t = A(e, "modelValue"), a = x(() => e.maxFileInput <= t.value.length), o = (l) => {
|
|
2950
|
-
t.value =
|
|
2968
|
+
t.value = ve(l, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2951
2969
|
};
|
|
2952
|
-
return (l, n) => (i(),
|
|
2970
|
+
return (l, n) => (i(), v("div", ka, [
|
|
2953
2971
|
$(l.$slots, "message"),
|
|
2954
2972
|
c("div", null, [
|
|
2955
2973
|
c("input", {
|
|
@@ -2960,14 +2978,14 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
2960
2978
|
disabled: a.value,
|
|
2961
2979
|
multiple: l.maxFileInput > 1,
|
|
2962
2980
|
onInput: n[0] || (n[0] = (u) => o([...u.target.files]))
|
|
2963
|
-
}, null, 40,
|
|
2981
|
+
}, null, 40, $a),
|
|
2964
2982
|
c("label", {
|
|
2965
2983
|
class: B([{ disabled: a.value }, "btn btn-primary"]),
|
|
2966
2984
|
id: "file-input-button",
|
|
2967
2985
|
for: "file-input"
|
|
2968
2986
|
}, [
|
|
2969
2987
|
$(l.$slots, "button-content", {}, () => [
|
|
2970
|
-
|
|
2988
|
+
f(m(V), {
|
|
2971
2989
|
icon: "bi:upload",
|
|
2972
2990
|
class: "me-2",
|
|
2973
2991
|
height: "20px",
|
|
@@ -2977,21 +2995,21 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
2977
2995
|
])
|
|
2978
2996
|
], 2)
|
|
2979
2997
|
]),
|
|
2980
|
-
l.showDragDropArea ? (i(),
|
|
2998
|
+
l.showDragDropArea ? (i(), v("div", {
|
|
2981
2999
|
class: "ms-auto",
|
|
2982
3000
|
key: l.acceptedFileTypes.length,
|
|
2983
3001
|
id: "accepted-file-types"
|
|
2984
3002
|
}, "Accepted File Types: " + h(l.acceptedFileTypes.map((u) => u.split("/").pop()).join(", ")), 1)) : S("", !0)
|
|
2985
3003
|
]));
|
|
2986
3004
|
}
|
|
2987
|
-
}),
|
|
3005
|
+
}), Fa = {
|
|
2988
3006
|
key: 0,
|
|
2989
3007
|
class: "py-4 px-3",
|
|
2990
3008
|
id: "placeholder-message"
|
|
2991
|
-
},
|
|
3009
|
+
}, _a = {
|
|
2992
3010
|
key: 1,
|
|
2993
3011
|
class: "d-flex flex-column"
|
|
2994
|
-
},
|
|
3012
|
+
}, Sa = /* @__PURE__ */ F({
|
|
2995
3013
|
__name: "DragDropArea",
|
|
2996
3014
|
props: /* @__PURE__ */ E({
|
|
2997
3015
|
maxFileInput: {},
|
|
@@ -3004,29 +3022,29 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3004
3022
|
emits: ["update:modelValue"],
|
|
3005
3023
|
setup(e) {
|
|
3006
3024
|
const t = A(e, "modelValue"), a = I(!1), o = x(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
3007
|
-
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value =
|
|
3025
|
+
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = ve([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
|
|
3008
3026
|
};
|
|
3009
|
-
return (n, u) => (i(),
|
|
3027
|
+
return (n, u) => (i(), v("div", {
|
|
3010
3028
|
id: "drag-drop-area",
|
|
3011
3029
|
class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
3012
3030
|
onDragleave: u[0] || (u[0] = q((r) => a.value = !1, ["prevent"])),
|
|
3013
3031
|
onDragover: u[1] || (u[1] = q((r) => a.value = !0, ["prevent"])),
|
|
3014
3032
|
onDrop: q(l, ["prevent"])
|
|
3015
3033
|
}, [
|
|
3016
|
-
t.value.length === 0 ? (i(),
|
|
3017
|
-
|
|
3034
|
+
t.value.length === 0 ? (i(), v("div", Fa, [
|
|
3035
|
+
f(m(V), {
|
|
3018
3036
|
icon: "bi:upload",
|
|
3019
3037
|
class: "me-2",
|
|
3020
3038
|
height: "20px",
|
|
3021
3039
|
width: "20px"
|
|
3022
3040
|
}),
|
|
3023
3041
|
O(" Drag and drop files here ")
|
|
3024
|
-
])) : (i(),
|
|
3042
|
+
])) : (i(), v("div", _a, [
|
|
3025
3043
|
$(n.$slots, "default")
|
|
3026
3044
|
]))
|
|
3027
3045
|
], 34));
|
|
3028
3046
|
}
|
|
3029
|
-
}),
|
|
3047
|
+
}), Va = { class: "d-flex align-items-center me-2" }, Ca = /* @__PURE__ */ F({
|
|
3030
3048
|
__name: "UploadStatus",
|
|
3031
3049
|
props: {
|
|
3032
3050
|
fileSize: {},
|
|
@@ -3051,8 +3069,8 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3051
3069
|
return "Upload Failed: Connection error, please try again.";
|
|
3052
3070
|
}
|
|
3053
3071
|
});
|
|
3054
|
-
return (o, l) => (i(),
|
|
3055
|
-
o.uploadStatus === "Uploading" ? (i(), w(
|
|
3072
|
+
return (o, l) => (i(), v("div", Va, [
|
|
3073
|
+
o.uploadStatus === "Uploading" ? (i(), w(Wt, {
|
|
3056
3074
|
key: 0,
|
|
3057
3075
|
pixelWidth: 200,
|
|
3058
3076
|
animate: "",
|
|
@@ -3076,16 +3094,16 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3076
3094
|
}, 8, ["severity"])) : S("", !0)
|
|
3077
3095
|
]));
|
|
3078
3096
|
}
|
|
3079
|
-
}),
|
|
3097
|
+
}), Ta = ["data-cy"], Ma = { class: "ms-3 d-flex flex-column" }, Pa = {
|
|
3080
3098
|
key: 1,
|
|
3081
3099
|
id: "file-name"
|
|
3082
|
-
},
|
|
3100
|
+
}, Ia = {
|
|
3083
3101
|
class: "text-black-50",
|
|
3084
3102
|
id: "file-type"
|
|
3085
|
-
},
|
|
3103
|
+
}, za = {
|
|
3086
3104
|
class: "text-black-50",
|
|
3087
3105
|
id: "file-size"
|
|
3088
|
-
},
|
|
3106
|
+
}, Oa = { class: "ms-auto my-auto d-flex" }, Da = /* @__PURE__ */ F({
|
|
3089
3107
|
__name: "FileInfo",
|
|
3090
3108
|
props: /* @__PURE__ */ E({
|
|
3091
3109
|
editableFileName: { type: Boolean },
|
|
@@ -3104,11 +3122,11 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3104
3122
|
}),
|
|
3105
3123
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
3106
3124
|
setup(e, { emit: t }) {
|
|
3107
|
-
const a = A(e, "file"), o = A(e, "blobFileName"), l = A(e, "uploadStatus"), n = t, u = I(a.value.name), r = I(""), d = I(0), p = I(),
|
|
3125
|
+
const a = A(e, "file"), o = A(e, "blobFileName"), l = A(e, "uploadStatus"), n = t, u = I(a.value.name), r = I(""), d = I(0), p = I(), y = x(() => e.acceptedFileTypes.includes(a.value.type)), s = x(() => a.value.size <= e.maxFileSize), T = () => {
|
|
3108
3126
|
a.value = new File([a.value], u.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
3109
3127
|
}, C = async () => {
|
|
3110
|
-
if (!
|
|
3111
|
-
l.value =
|
|
3128
|
+
if (!y.value || !s.value) {
|
|
3129
|
+
l.value = y.value ? "InvalidFileSize" : "InvalidFileType";
|
|
3112
3130
|
return;
|
|
3113
3131
|
}
|
|
3114
3132
|
l.value = "Preparing", p.value = new AbortController();
|
|
@@ -3119,36 +3137,36 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3119
3137
|
}
|
|
3120
3138
|
try {
|
|
3121
3139
|
l.value = "Uploading";
|
|
3122
|
-
const
|
|
3140
|
+
const b = new ce(P), k = {
|
|
3123
3141
|
abortSignal: p.value.signal,
|
|
3124
3142
|
onProgress: (G) => d.value = G.loadedBytes,
|
|
3125
3143
|
tags: { temp: "true" }
|
|
3126
3144
|
};
|
|
3127
|
-
await
|
|
3128
|
-
} catch (
|
|
3129
|
-
if (
|
|
3145
|
+
await b.uploadData(a.value, k), r.value = P, l.value = "Uploaded", o.value = z;
|
|
3146
|
+
} catch (b) {
|
|
3147
|
+
if (b.name === "AbortError") {
|
|
3130
3148
|
l.value = "Aborted";
|
|
3131
3149
|
return;
|
|
3132
3150
|
}
|
|
3133
3151
|
l.value = "Failed";
|
|
3134
3152
|
}
|
|
3135
3153
|
}, M = async () => {
|
|
3136
|
-
await
|
|
3154
|
+
await ha(l.value, r.value), n("deleted", a.value);
|
|
3137
3155
|
};
|
|
3138
3156
|
return ne(() => {
|
|
3139
3157
|
e.autoUploadToBlob && C();
|
|
3140
3158
|
}), (P, z) => {
|
|
3141
|
-
const
|
|
3142
|
-
return i(),
|
|
3159
|
+
const b = R;
|
|
3160
|
+
return i(), v("div", {
|
|
3143
3161
|
class: "py-4 px-3 d-flex",
|
|
3144
3162
|
"data-cy": `file-info-${a.value.name}`
|
|
3145
3163
|
}, [
|
|
3146
3164
|
c("div", null, [
|
|
3147
|
-
m(
|
|
3165
|
+
m(wa)(a.value.type) ? (i(), w(m(Oe), {
|
|
3148
3166
|
key: 0,
|
|
3149
3167
|
id: "thumbnail-image",
|
|
3150
3168
|
"image-class": "image-file-thumbnail border",
|
|
3151
|
-
src: m(
|
|
3169
|
+
src: m(xa)(a.value),
|
|
3152
3170
|
alt: a.value.name,
|
|
3153
3171
|
width: "75px",
|
|
3154
3172
|
preview: ""
|
|
@@ -3160,7 +3178,7 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3160
3178
|
width: "75px"
|
|
3161
3179
|
}))
|
|
3162
3180
|
]),
|
|
3163
|
-
c("div",
|
|
3181
|
+
c("div", Ma, [
|
|
3164
3182
|
c("div", null, [
|
|
3165
3183
|
P.editableFileName ? (i(), w($t, {
|
|
3166
3184
|
key: 0,
|
|
@@ -3170,66 +3188,66 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3170
3188
|
rules: P.customFileNameRules,
|
|
3171
3189
|
name: a.value.name,
|
|
3172
3190
|
"complete-action": T
|
|
3173
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (i(),
|
|
3191
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (i(), v("span", Pa, h(a.value.name), 1))
|
|
3174
3192
|
]),
|
|
3175
|
-
c("span",
|
|
3176
|
-
c("span",
|
|
3193
|
+
c("span", Ia, "File type: " + h(a.value.type.split("/").pop()), 1),
|
|
3194
|
+
c("span", za, "File size: " + h(m(re)(a.value.size)), 1)
|
|
3177
3195
|
]),
|
|
3178
|
-
c("div",
|
|
3179
|
-
(i(), w(
|
|
3196
|
+
c("div", Oa, [
|
|
3197
|
+
(i(), w(Ca, {
|
|
3180
3198
|
key: l.value,
|
|
3181
3199
|
"file-size": a.value.size,
|
|
3182
3200
|
"upload-status": l.value,
|
|
3183
3201
|
"bytes-uploaded": d.value,
|
|
3184
3202
|
"max-file-size": P.maxFileSize
|
|
3185
3203
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
3186
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (i(), w(
|
|
3204
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (i(), w(b, {
|
|
3187
3205
|
key: 0,
|
|
3188
3206
|
link: "",
|
|
3189
3207
|
onClick: C
|
|
3190
3208
|
}, {
|
|
3191
3209
|
default: g(() => [
|
|
3192
|
-
|
|
3210
|
+
f(m(V), {
|
|
3193
3211
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
3194
3212
|
}, null, 8, ["icon"])
|
|
3195
3213
|
]),
|
|
3196
3214
|
_: 1
|
|
3197
3215
|
})) : S("", !0),
|
|
3198
|
-
l.value === "Uploading" ? (i(), w(
|
|
3216
|
+
l.value === "Uploading" ? (i(), w(b, {
|
|
3199
3217
|
key: 1,
|
|
3200
3218
|
link: "",
|
|
3201
3219
|
onClick: z[1] || (z[1] = (k) => p.value.value.abort())
|
|
3202
3220
|
}, {
|
|
3203
3221
|
default: g(() => [
|
|
3204
|
-
|
|
3222
|
+
f(m(V), { icon: "bi:x-circle-fill" })
|
|
3205
3223
|
]),
|
|
3206
3224
|
_: 1
|
|
3207
|
-
})) : (i(), w(
|
|
3225
|
+
})) : (i(), w(b, {
|
|
3208
3226
|
key: 2,
|
|
3209
3227
|
link: "",
|
|
3210
3228
|
onClick: M,
|
|
3211
3229
|
id: "delete-button"
|
|
3212
3230
|
}, {
|
|
3213
3231
|
default: g(() => [
|
|
3214
|
-
|
|
3232
|
+
f(m(V), { icon: "bi:trash" })
|
|
3215
3233
|
]),
|
|
3216
3234
|
_: 1
|
|
3217
3235
|
}))
|
|
3218
3236
|
])
|
|
3219
|
-
], 8,
|
|
3237
|
+
], 8, Ta);
|
|
3220
3238
|
};
|
|
3221
3239
|
}
|
|
3222
|
-
}),
|
|
3240
|
+
}), Ua = { class: "d-flex justify-content-end mt-1" }, Aa = { id: "max-file-size" }, Na = /* @__PURE__ */ F({
|
|
3223
3241
|
__name: "MaxFileSize",
|
|
3224
3242
|
props: {
|
|
3225
3243
|
maxFileSize: {}
|
|
3226
3244
|
},
|
|
3227
3245
|
setup(e) {
|
|
3228
|
-
return (t, a) => (i(),
|
|
3229
|
-
c("div",
|
|
3246
|
+
return (t, a) => (i(), v("div", Ua, [
|
|
3247
|
+
c("div", Aa, "Max file size: " + h(m(re)(t.maxFileSize)), 1)
|
|
3230
3248
|
]));
|
|
3231
3249
|
}
|
|
3232
|
-
}),
|
|
3250
|
+
}), Ea = { "data-cy": "file-uploader" }, La = { key: 0 }, Il = /* @__PURE__ */ F({
|
|
3233
3251
|
__name: "ForgeFileUploader",
|
|
3234
3252
|
props: /* @__PURE__ */ E({
|
|
3235
3253
|
acceptedFileTypes: {},
|
|
@@ -3249,13 +3267,13 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3249
3267
|
const t = A(e, "modelValue"), a = e, o = (l) => {
|
|
3250
3268
|
t.value = t.value.filter((n) => n.file != l);
|
|
3251
3269
|
};
|
|
3252
|
-
return (l, n) => (i(),
|
|
3253
|
-
|
|
3270
|
+
return (l, n) => (i(), v("div", Ea, [
|
|
3271
|
+
f(Ba, _(a, {
|
|
3254
3272
|
modelValue: t.value,
|
|
3255
3273
|
"onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
|
|
3256
3274
|
}), null, 16, ["modelValue"]),
|
|
3257
|
-
l.showDragDropArea ? (i(),
|
|
3258
|
-
|
|
3275
|
+
l.showDragDropArea ? (i(), v("div", La, [
|
|
3276
|
+
f(Sa, {
|
|
3259
3277
|
"max-file-input": a.maxFileInput,
|
|
3260
3278
|
"max-file-size": a.maxFileSize,
|
|
3261
3279
|
"accepted-file-types": a.acceptedFileTypes,
|
|
@@ -3263,8 +3281,8 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3263
3281
|
"onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
|
|
3264
3282
|
}, {
|
|
3265
3283
|
default: g(() => [
|
|
3266
|
-
(i(!0),
|
|
3267
|
-
(i(), w(
|
|
3284
|
+
(i(!0), v(L, null, Y(t.value, ({ file: u }, r) => (i(), v("span", null, [
|
|
3285
|
+
(i(), w(Da, _({
|
|
3268
3286
|
key: u.name,
|
|
3269
3287
|
class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
3270
3288
|
file: t.value[r].file,
|
|
@@ -3279,7 +3297,7 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3279
3297
|
]),
|
|
3280
3298
|
_: 1
|
|
3281
3299
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
3282
|
-
|
|
3300
|
+
f(Na, {
|
|
3283
3301
|
"max-file-size": a.maxFileSize
|
|
3284
3302
|
}, null, 8, ["max-file-size"])
|
|
3285
3303
|
])) : S("", !0)
|
|
@@ -3287,31 +3305,31 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3287
3305
|
}
|
|
3288
3306
|
});
|
|
3289
3307
|
export {
|
|
3290
|
-
|
|
3291
|
-
|
|
3308
|
+
vl as Bootstrap_PT,
|
|
3309
|
+
bl as ForgeActionButton,
|
|
3292
3310
|
le as ForgeAlert,
|
|
3293
3311
|
ct as ForgeCheckbox,
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3312
|
+
Sl as ForgeChips,
|
|
3313
|
+
ye as ForgeDatepicker,
|
|
3314
|
+
Il as ForgeFileUploader,
|
|
3315
|
+
Pl as ForgeFilterHeader,
|
|
3316
|
+
Fl as ForgeForm,
|
|
3317
|
+
_l as ForgeFormField,
|
|
3300
3318
|
$t as ForgeInlineEditor,
|
|
3301
|
-
|
|
3319
|
+
fl as ForgeLink,
|
|
3302
3320
|
me as ForgeLoader,
|
|
3303
|
-
|
|
3321
|
+
wl as ForgeModal,
|
|
3304
3322
|
pe as ForgeMultiSelect,
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3323
|
+
kl as ForgeMultiSelectPreview,
|
|
3324
|
+
xl as ForgeNavbar,
|
|
3325
|
+
$l as ForgePageHeader,
|
|
3326
|
+
Wt as ForgeProgressBar,
|
|
3327
|
+
Bl as ForgeRemainingCharacters,
|
|
3328
|
+
Vl as ForgeStatWidget,
|
|
3329
|
+
Cl as ForgeStepper,
|
|
3330
|
+
Ml as ForgeTable,
|
|
3331
|
+
Tl as ForgeTile,
|
|
3332
|
+
hl as convertToMultiSelectOption,
|
|
3333
|
+
gl as enumToMultiSelectList,
|
|
3334
|
+
yt as parseError
|
|
3317
3335
|
};
|