@3squared/forge-ui-3 0.10.1 → 0.10.2
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 +241 -241
- package/package.json +1 -1
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -191,13 +191,13 @@ const Ae = {
|
|
|
191
191
|
column: {
|
|
192
192
|
sortBadge: "ms-2 my-auto cursor-pointer",
|
|
193
193
|
headerCell: (e) => {
|
|
194
|
-
var t, o,
|
|
194
|
+
var t, o, a, l;
|
|
195
195
|
return {
|
|
196
196
|
class: [
|
|
197
197
|
{
|
|
198
198
|
"cursor-move": e.props.reorderableColumns,
|
|
199
|
-
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((o = e.column) == null ? void 0 : o.context.frozen) || ((
|
|
200
|
-
"overflow-hidden position-relative bg-clip-padding": (
|
|
199
|
+
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((o = e.column) == null ? void 0 : o.context.frozen) || ((a = e.column) == null ? void 0 : a.context.frozen) === "",
|
|
200
|
+
"overflow-hidden position-relative bg-clip-padding": (l = e.column) == null ? void 0 : l.context.resizable
|
|
201
201
|
}
|
|
202
202
|
]
|
|
203
203
|
};
|
|
@@ -836,15 +836,15 @@ const Ae = {
|
|
|
836
836
|
class: ["ps-1"]
|
|
837
837
|
}),
|
|
838
838
|
icon: ({ props: e }) => {
|
|
839
|
-
var t, o,
|
|
839
|
+
var t, o, a, l;
|
|
840
840
|
return {
|
|
841
841
|
class: [
|
|
842
842
|
"toast-icon",
|
|
843
843
|
{
|
|
844
844
|
"text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
|
|
845
845
|
"text-success": ((o = e.message) == null ? void 0 : o.severity) === "success",
|
|
846
|
-
"text-danger": ((
|
|
847
|
-
"text-warning": ((
|
|
846
|
+
"text-danger": ((a = e.message) == null ? void 0 : a.severity) === "error",
|
|
847
|
+
"text-warning": ((l = e.message) == null ? void 0 : l.severity) === "warn"
|
|
848
848
|
}
|
|
849
849
|
]
|
|
850
850
|
};
|
|
@@ -896,9 +896,9 @@ const Ae = {
|
|
|
896
896
|
},
|
|
897
897
|
setup(e) {
|
|
898
898
|
const t = e;
|
|
899
|
-
return (o,
|
|
900
|
-
const
|
|
901
|
-
return i(), h(
|
|
899
|
+
return (o, a) => {
|
|
900
|
+
const l = he;
|
|
901
|
+
return i(), h(l, ee(te({ ...o.$attrs, ...t })), {
|
|
902
902
|
messageicon: b(() => [
|
|
903
903
|
m("div", {
|
|
904
904
|
class: _(t.icon ? "me-2 pe-1" : "")
|
|
@@ -931,22 +931,22 @@ const Ae = {
|
|
|
931
931
|
params: { default: Array }
|
|
932
932
|
},
|
|
933
933
|
setup(e) {
|
|
934
|
-
const t = I(!1), o = e,
|
|
934
|
+
const t = I(!1), o = e, a = async () => {
|
|
935
935
|
t.value = !0;
|
|
936
936
|
try {
|
|
937
937
|
await o.action.apply(this, o.params);
|
|
938
|
-
} catch (
|
|
939
|
-
await o.errorAction.apply(this, o.errorParams ? [...o.errorParams,
|
|
938
|
+
} catch (l) {
|
|
939
|
+
await o.errorAction.apply(this, o.errorParams ? [...o.errorParams, l] : [l]);
|
|
940
940
|
}
|
|
941
941
|
t.value = !1;
|
|
942
942
|
};
|
|
943
|
-
return (
|
|
943
|
+
return (l, n) => {
|
|
944
944
|
const d = L;
|
|
945
945
|
return i(), y(N, null, [
|
|
946
|
-
f(d, C({ ...o, ...
|
|
946
|
+
f(d, C({ ...o, ...l.$attrs }, {
|
|
947
947
|
loading: t.value,
|
|
948
948
|
disabled: t.value || o.disabled,
|
|
949
|
-
onClick:
|
|
949
|
+
onClick: a
|
|
950
950
|
}), null, 16, ["loading", "disabled"]),
|
|
951
951
|
f(p(xe))
|
|
952
952
|
], 64);
|
|
@@ -979,15 +979,15 @@ const Ae = {
|
|
|
979
979
|
},
|
|
980
980
|
emits: ["update:modelValue"],
|
|
981
981
|
setup(e, { emit: t }) {
|
|
982
|
-
const o = t,
|
|
982
|
+
const o = t, a = e, { checked: l, handleChange: n, setValue: d, errors: u, errorMessage: c } = K(() => a.name ?? a.label, void 0, {
|
|
983
983
|
type: "checkbox",
|
|
984
984
|
checkedValue: !0
|
|
985
985
|
}), r = (v) => {
|
|
986
|
-
|
|
986
|
+
a.disabled || (n(v), o("update:modelValue", !a.modelValue));
|
|
987
987
|
};
|
|
988
988
|
ae(() => {
|
|
989
|
-
|
|
990
|
-
}), re(() =>
|
|
989
|
+
a.value !== void 0 && a.value !== (l == null ? void 0 : l.value) ? d(a.value) : a.modelValue !== void 0 && a.modelValue !== (l == null ? void 0 : l.value) && d(a.modelValue);
|
|
990
|
+
}), re(() => a.value, (v) => {
|
|
991
991
|
d(v);
|
|
992
992
|
});
|
|
993
993
|
const s = k(() => u.value.length > 0);
|
|
@@ -999,10 +999,10 @@ const Ae = {
|
|
|
999
999
|
"data-cy": "checkbox-container"
|
|
1000
1000
|
}, { ...v.$attrs }), [
|
|
1001
1001
|
f(F, C({
|
|
1002
|
-
id:
|
|
1003
|
-
}, { ...
|
|
1004
|
-
modelValue: p(
|
|
1005
|
-
"onUpdate:modelValue": x[0] || (x[0] = (P) => le(
|
|
1002
|
+
id: a.name
|
|
1003
|
+
}, { ...a }, {
|
|
1004
|
+
modelValue: p(l),
|
|
1005
|
+
"onUpdate:modelValue": x[0] || (x[0] = (P) => le(l) ? l.value = P : null),
|
|
1006
1006
|
"input-class": { "is-invalid": s.value },
|
|
1007
1007
|
onChange: r
|
|
1008
1008
|
}), {
|
|
@@ -1012,12 +1012,12 @@ const Ae = {
|
|
|
1012
1012
|
_: 1
|
|
1013
1013
|
}, 16, ["id", "modelValue", "input-class"]),
|
|
1014
1014
|
m("label", {
|
|
1015
|
-
for:
|
|
1016
|
-
class: _(`${
|
|
1015
|
+
for: a.name,
|
|
1016
|
+
class: _(`${a.disabled ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`),
|
|
1017
1017
|
onClick: r
|
|
1018
1018
|
}, [
|
|
1019
1019
|
B(v.$slots, "default", {}, () => [
|
|
1020
|
-
O(w(
|
|
1020
|
+
O(w(a.label), 1)
|
|
1021
1021
|
])
|
|
1022
1022
|
], 10, mt)
|
|
1023
1023
|
], 16),
|
|
@@ -1037,10 +1037,10 @@ const Ae = {
|
|
|
1037
1037
|
},
|
|
1038
1038
|
setup(e) {
|
|
1039
1039
|
const t = e;
|
|
1040
|
-
return (o,
|
|
1041
|
-
const
|
|
1040
|
+
return (o, a) => {
|
|
1041
|
+
const l = $e;
|
|
1042
1042
|
return i(), y("div", pt, [
|
|
1043
|
-
f(
|
|
1043
|
+
f(l, {
|
|
1044
1044
|
"animation-duration": ".75",
|
|
1045
1045
|
class: _(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1046
1046
|
}, null, 8, ["class"])
|
|
@@ -1081,20 +1081,20 @@ const Ae = {
|
|
|
1081
1081
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1082
1082
|
"me-0": e.animateIconOnHover
|
|
1083
1083
|
}));
|
|
1084
|
-
return (
|
|
1084
|
+
return (a, l) => (i(), y("a", {
|
|
1085
1085
|
id: "link",
|
|
1086
1086
|
class: _(["cursor-pointer d-flex", t.value]),
|
|
1087
|
-
href:
|
|
1088
|
-
target:
|
|
1087
|
+
href: a.url,
|
|
1088
|
+
target: a.target
|
|
1089
1089
|
}, [
|
|
1090
|
-
B(
|
|
1091
|
-
|
|
1090
|
+
B(a.$slots, "default", {}, () => [
|
|
1091
|
+
a.iconName ? (i(), h(p(T), {
|
|
1092
1092
|
key: 0,
|
|
1093
1093
|
id: "link-icon",
|
|
1094
|
-
icon:
|
|
1094
|
+
icon: a.iconName,
|
|
1095
1095
|
class: _(["bi my-auto", o.value])
|
|
1096
1096
|
}, null, 8, ["icon", "class"])) : S("", !0),
|
|
1097
|
-
O(" " + w(
|
|
1097
|
+
O(" " + w(a.label), 1)
|
|
1098
1098
|
])
|
|
1099
1099
|
], 10, vt));
|
|
1100
1100
|
}
|
|
@@ -1158,7 +1158,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1158
1158
|
}),
|
|
1159
1159
|
emits: ["update:visible"],
|
|
1160
1160
|
setup(e) {
|
|
1161
|
-
const t = E(e, "visible"), o = I(!1),
|
|
1161
|
+
const t = E(e, "visible"), o = I(!1), a = e, l = I(!1), n = I({
|
|
1162
1162
|
hasError: !1,
|
|
1163
1163
|
header: "",
|
|
1164
1164
|
message: []
|
|
@@ -1169,17 +1169,17 @@ const bt = { key: 0 }, ft = {
|
|
|
1169
1169
|
}, c = () => {
|
|
1170
1170
|
t.value = !1;
|
|
1171
1171
|
}, r = async () => {
|
|
1172
|
-
if (
|
|
1173
|
-
|
|
1172
|
+
if (a.onConfirm) {
|
|
1173
|
+
l.value = !0, n.value.hasError = !1;
|
|
1174
1174
|
try {
|
|
1175
|
-
const v = await
|
|
1175
|
+
const v = await a.onConfirm();
|
|
1176
1176
|
(v || v == null) && c();
|
|
1177
1177
|
} catch (v) {
|
|
1178
1178
|
n.value.hasError = !0;
|
|
1179
1179
|
const x = yt(v);
|
|
1180
1180
|
n.value.header = x.errorMessage, n.value.message = x.errorDetails;
|
|
1181
1181
|
}
|
|
1182
|
-
|
|
1182
|
+
l.value = !1;
|
|
1183
1183
|
}
|
|
1184
1184
|
}, s = k(() => ({
|
|
1185
1185
|
root: [
|
|
@@ -1191,7 +1191,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1191
1191
|
}));
|
|
1192
1192
|
return (v, x) => {
|
|
1193
1193
|
const F = L, P = Be;
|
|
1194
|
-
return i(), h(P, C(
|
|
1194
|
+
return i(), h(P, C(a, {
|
|
1195
1195
|
onMaximize: u,
|
|
1196
1196
|
onUnmaximize: d,
|
|
1197
1197
|
pt: s.value
|
|
@@ -1234,7 +1234,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1234
1234
|
_: 1
|
|
1235
1235
|
})) : S("", !0),
|
|
1236
1236
|
B(v.$slots, z, ee(te(g || {}))),
|
|
1237
|
-
|
|
1237
|
+
l.value ? B(v.$slots, "loader", { key: 1 }, () => [
|
|
1238
1238
|
f(ye, { "data-cy": "loader" })
|
|
1239
1239
|
]) : S("", !0)
|
|
1240
1240
|
])
|
|
@@ -1245,18 +1245,18 @@ const bt = { key: 0 }, ft = {
|
|
|
1245
1245
|
m("div", ft, [
|
|
1246
1246
|
f(F, {
|
|
1247
1247
|
label: v.cancelText,
|
|
1248
|
-
class: _(
|
|
1248
|
+
class: _(a.cancelClass),
|
|
1249
1249
|
outlined: "",
|
|
1250
1250
|
onClick: c,
|
|
1251
1251
|
id: "cancel-button",
|
|
1252
|
-
type:
|
|
1252
|
+
type: a.cancelButtonType
|
|
1253
1253
|
}, null, 8, ["label", "class", "type"]),
|
|
1254
1254
|
f(F, {
|
|
1255
1255
|
label: v.submitText,
|
|
1256
|
-
class: _([
|
|
1256
|
+
class: _([a.submitClass, "ms-auto"]),
|
|
1257
1257
|
onClick: r,
|
|
1258
1258
|
id: "submit-button",
|
|
1259
|
-
type:
|
|
1259
|
+
type: a.submitButtonType
|
|
1260
1260
|
}, null, 8, ["label", "class", "type"])
|
|
1261
1261
|
])
|
|
1262
1262
|
]),
|
|
@@ -1280,22 +1280,22 @@ const bt = { key: 0 }, ft = {
|
|
|
1280
1280
|
}),
|
|
1281
1281
|
emits: ["update:modelValue"],
|
|
1282
1282
|
setup(e) {
|
|
1283
|
-
const t = e, o = E(e, "modelValue"),
|
|
1283
|
+
const t = e, o = E(e, "modelValue"), a = I(!1), l = I(), n = () => {
|
|
1284
1284
|
var F;
|
|
1285
|
-
|
|
1285
|
+
a.value = !a.value, (F = l.value) == null || F.focus();
|
|
1286
1286
|
}, d = async () => {
|
|
1287
1287
|
if (x.value)
|
|
1288
1288
|
return !1;
|
|
1289
1289
|
if (o.value = v.value, t.completeAction)
|
|
1290
1290
|
try {
|
|
1291
|
-
await t.completeAction.apply(this, t.params),
|
|
1291
|
+
await t.completeAction.apply(this, t.params), a.value = !a.value;
|
|
1292
1292
|
} catch {
|
|
1293
1293
|
t.errorAction && await t.errorAction.apply(this, t.errorParams);
|
|
1294
1294
|
}
|
|
1295
1295
|
else
|
|
1296
|
-
|
|
1296
|
+
a.value = !a.value;
|
|
1297
1297
|
}, u = () => {
|
|
1298
|
-
|
|
1298
|
+
a.value = !a.value;
|
|
1299
1299
|
}, c = () => {
|
|
1300
1300
|
v.value = null;
|
|
1301
1301
|
}, { errorMessage: r, errors: s, value: v } = K(() => t.name, void 0, {
|
|
@@ -1315,7 +1315,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1315
1315
|
m("span", $t, w(p(v)), 1)
|
|
1316
1316
|
])
|
|
1317
1317
|
])) : (i(), y("div", ht, [
|
|
1318
|
-
|
|
1318
|
+
a.value ? (i(), y("div", wt, [
|
|
1319
1319
|
R((i(), y("div", xt, [
|
|
1320
1320
|
B(F.$slots, "editor", {
|
|
1321
1321
|
class: _({ "is-invalid": x.value }),
|
|
@@ -1326,7 +1326,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1326
1326
|
f(M, {
|
|
1327
1327
|
"data-cy": "input",
|
|
1328
1328
|
ref_key: "input",
|
|
1329
|
-
ref:
|
|
1329
|
+
ref: l,
|
|
1330
1330
|
modelValue: p(v),
|
|
1331
1331
|
"onUpdate:modelValue": P[0] || (P[0] = (g) => le(v) ? v.value = g : null),
|
|
1332
1332
|
modelModifiers: { trim: !0 },
|
|
@@ -1428,25 +1428,25 @@ const bt = { key: 0 }, ft = {
|
|
|
1428
1428
|
]
|
|
1429
1429
|
})
|
|
1430
1430
|
}));
|
|
1431
|
-
return (
|
|
1431
|
+
return (a, l) => {
|
|
1432
1432
|
const n = _e;
|
|
1433
|
-
return i(), h(n, C({ ...t, ...
|
|
1433
|
+
return i(), h(n, C({ ...t, ...a.$attrs }, {
|
|
1434
1434
|
pt: o.value,
|
|
1435
1435
|
"data-cy": "navbar"
|
|
1436
1436
|
}), oe({
|
|
1437
1437
|
start: b(() => [
|
|
1438
1438
|
m("a", {
|
|
1439
|
-
href:
|
|
1439
|
+
href: a.logoUrl,
|
|
1440
1440
|
class: "navbar-brand ms-3",
|
|
1441
1441
|
"data-cy": "logo"
|
|
1442
1442
|
}, [
|
|
1443
|
-
B(
|
|
1443
|
+
B(a.$slots, "logo", {}, () => [
|
|
1444
1444
|
O(" Logo ")
|
|
1445
1445
|
])
|
|
1446
1446
|
], 8, Ft)
|
|
1447
1447
|
]),
|
|
1448
1448
|
menubuttonicon: b(() => [
|
|
1449
|
-
B(
|
|
1449
|
+
B(a.$slots, "menubuttonicon", {}, () => [
|
|
1450
1450
|
f(p(T), {
|
|
1451
1451
|
icon: "bi:list",
|
|
1452
1452
|
class: _(t.severity === "light" ? "text-black" : "text-white"),
|
|
@@ -1457,10 +1457,10 @@ const bt = { key: 0 }, ft = {
|
|
|
1457
1457
|
]),
|
|
1458
1458
|
_: 2
|
|
1459
1459
|
}, [
|
|
1460
|
-
q(
|
|
1460
|
+
q(a.$slots, (d, u) => ({
|
|
1461
1461
|
name: u,
|
|
1462
1462
|
fn: b((c) => [
|
|
1463
|
-
B(
|
|
1463
|
+
B(a.$slots, u, ee(te(c)))
|
|
1464
1464
|
])
|
|
1465
1465
|
}))
|
|
1466
1466
|
]), 1040, ["pt"]);
|
|
@@ -1478,33 +1478,33 @@ const bt = { key: 0 }, ft = {
|
|
|
1478
1478
|
},
|
|
1479
1479
|
emits: ["update:modelValue"],
|
|
1480
1480
|
setup(e, { emit: t }) {
|
|
1481
|
-
const o = e,
|
|
1481
|
+
const o = e, a = (U, D) => {
|
|
1482
1482
|
const J = {
|
|
1483
1483
|
...D,
|
|
1484
1484
|
$isDisabled: D.$isDisabled ?? !1
|
|
1485
1485
|
};
|
|
1486
1486
|
U(J);
|
|
1487
|
-
},
|
|
1488
|
-
initialValue:
|
|
1487
|
+
}, l = ce(), n = t, { errors: d, value: u, errorMessage: c } = K(() => o.name, void 0, {
|
|
1488
|
+
initialValue: l.modelValue
|
|
1489
1489
|
}), r = I(!1), s = k(() => ({
|
|
1490
1490
|
multiple: !0,
|
|
1491
1491
|
label: "label",
|
|
1492
1492
|
trackBy: "id",
|
|
1493
1493
|
showPointer: !r.value,
|
|
1494
|
-
placeholder:
|
|
1494
|
+
placeholder: l.searchable === null || l.searchable ? "Search" : "Select",
|
|
1495
1495
|
allowEmpty: !0,
|
|
1496
1496
|
selectValue: "",
|
|
1497
|
-
closeOnSelect: !!(
|
|
1498
|
-
clearOnSelect: !!(
|
|
1499
|
-
searchable: !!(
|
|
1497
|
+
closeOnSelect: !!(l.multiple === null || l.multiple),
|
|
1498
|
+
clearOnSelect: !!(l.multiple === null || l.multiple),
|
|
1499
|
+
searchable: !!(l.searchable === null || l.searchable) && l.modelValue.length === l.options.length,
|
|
1500
1500
|
async: !1,
|
|
1501
|
-
...
|
|
1502
|
-
})), v = k(() => `forge-multiselect-${o.severity}`), x = k(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${F.value ? " multiselect__option--selected" : ""}`), F = k(() => s.value && !(s.value.multiple || !o.showSelectAll || s.value.async) ? !1 :
|
|
1501
|
+
...l
|
|
1502
|
+
})), v = k(() => `forge-multiselect-${o.severity}`), x = k(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${F.value ? " multiselect__option--selected" : ""}`), F = k(() => s.value && !(s.value.multiple || !o.showSelectAll || s.value.async) ? !1 : l.modelValue.length === l.options.length), P = k(() => d.value.length > 0), M = k(() => !!((l.allowEmpty == null || l.allowEmpty) && o.showClearSelection && (s.value.multiple ? l.modelValue.length > 0 : l.modelValue))), z = () => r.value = !0, g = () => r.value = !1, $ = () => {
|
|
1503
1503
|
u.value = s.value.multiple ? [] : null, n("update:modelValue", u.value);
|
|
1504
1504
|
}, G = (U) => {
|
|
1505
1505
|
n("update:modelValue", o.selectValue ? U.map((D) => D[o.selectValue]) : U);
|
|
1506
|
-
}, Z = (U) =>
|
|
1507
|
-
F.value ? $() : (u.value = [...
|
|
1506
|
+
}, Z = (U) => l.modelValue !== null ? l.modelValue.some((D) => s.value.selectValue ? U[o.selectValue] === D : U.id === D.id && U.label === D.label) : !1, ie = () => {
|
|
1507
|
+
F.value ? $() : (u.value = [...l.options], n("update:modelValue", [...l.options]));
|
|
1508
1508
|
};
|
|
1509
1509
|
return (U, D) => {
|
|
1510
1510
|
const J = ve;
|
|
@@ -1540,7 +1540,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1540
1540
|
f(p(T), {
|
|
1541
1541
|
icon: "bi:x",
|
|
1542
1542
|
class: "my-auto multiselect__tag-icon",
|
|
1543
|
-
onMousedown: Y((Aa) =>
|
|
1543
|
+
onMousedown: Y((Aa) => a(W, A), ["prevent", "stop"]),
|
|
1544
1544
|
height: "18px",
|
|
1545
1545
|
width: "18px"
|
|
1546
1546
|
}, null, 8, ["onMousedown"])
|
|
@@ -1625,10 +1625,10 @@ const bt = { key: 0 }, ft = {
|
|
|
1625
1625
|
},
|
|
1626
1626
|
emits: ["update:modelValue"],
|
|
1627
1627
|
setup(e, { emit: t }) {
|
|
1628
|
-
const o = e,
|
|
1629
|
-
|
|
1628
|
+
const o = e, a = ce(), l = t, n = k(() => `${a.modelValue.length} selected`), d = k(() => a.modelValue.length), u = (r) => {
|
|
1629
|
+
l("update:modelValue", r);
|
|
1630
1630
|
}, c = (r) => {
|
|
1631
|
-
u(
|
|
1631
|
+
u(a.modelValue.filter((s) => s.id !== r));
|
|
1632
1632
|
};
|
|
1633
1633
|
return (r, s) => {
|
|
1634
1634
|
const v = L;
|
|
@@ -1715,7 +1715,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1715
1715
|
},
|
|
1716
1716
|
setup(e) {
|
|
1717
1717
|
const t = e;
|
|
1718
|
-
return (o,
|
|
1718
|
+
return (o, a) => (i(), y("div", Dt, [
|
|
1719
1719
|
m("h3", Ut, w(t.title), 1),
|
|
1720
1720
|
m("div", At, [
|
|
1721
1721
|
B(o.$slots, "default")
|
|
@@ -1795,11 +1795,11 @@ const bt = { key: 0 }, ft = {
|
|
|
1795
1795
|
}),
|
|
1796
1796
|
emits: ["update:modelValue"],
|
|
1797
1797
|
setup(e) {
|
|
1798
|
-
const t = e, o = E(e, "modelValue"), { errors:
|
|
1798
|
+
const t = e, o = E(e, "modelValue"), { errors: a, errorMessage: l, handleChange: n, handleBlur: d } = K(() => t.name, void 0, {
|
|
1799
1799
|
initialValue: o.value
|
|
1800
1800
|
}), u = () => {
|
|
1801
1801
|
o.value = null;
|
|
1802
|
-
}, c = k(() =>
|
|
1802
|
+
}, c = k(() => a.value.length > 0), r = k(() => ({
|
|
1803
1803
|
day: ({ context: s }) => ({
|
|
1804
1804
|
class: [
|
|
1805
1805
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
@@ -1931,7 +1931,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1931
1931
|
R(m("small", {
|
|
1932
1932
|
"data-cy": "error",
|
|
1933
1933
|
class: "text-invalid"
|
|
1934
|
-
}, w(p(
|
|
1934
|
+
}, w(p(l)), 513), [
|
|
1935
1935
|
[H, c.value]
|
|
1936
1936
|
])
|
|
1937
1937
|
], 64);
|
|
@@ -1945,7 +1945,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1945
1945
|
},
|
|
1946
1946
|
setup(e) {
|
|
1947
1947
|
const t = e, o = k(() => t.maxCount - t.currentCount);
|
|
1948
|
-
return (
|
|
1948
|
+
return (a, l) => (i(), y("div", {
|
|
1949
1949
|
class: _(o.value < 0 ? "text-danger" : "")
|
|
1950
1950
|
}, "Remaining characters: " + w(o.value), 3));
|
|
1951
1951
|
}
|
|
@@ -1961,16 +1961,16 @@ const bt = { key: 0 }, ft = {
|
|
|
1961
1961
|
hideCancel: { type: Boolean, default: !1 }
|
|
1962
1962
|
},
|
|
1963
1963
|
setup(e) {
|
|
1964
|
-
const t = e, o = I(!1),
|
|
1964
|
+
const t = e, o = I(!1), a = I({
|
|
1965
1965
|
hasError: !1,
|
|
1966
1966
|
message: ""
|
|
1967
1967
|
});
|
|
1968
|
-
async function
|
|
1969
|
-
o.value = !0,
|
|
1968
|
+
async function l() {
|
|
1969
|
+
o.value = !0, a.value.hasError = !1;
|
|
1970
1970
|
try {
|
|
1971
1971
|
await t.onSubmit();
|
|
1972
1972
|
} catch (n) {
|
|
1973
|
-
|
|
1973
|
+
a.value.hasError = !0, n.message && (a.value.message = n.message);
|
|
1974
1974
|
}
|
|
1975
1975
|
o.value = !1;
|
|
1976
1976
|
}
|
|
@@ -1979,7 +1979,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1979
1979
|
return i(), y("form", C(n.$attrs, {
|
|
1980
1980
|
novalidate: "",
|
|
1981
1981
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
1982
|
-
onSubmit: Y(
|
|
1982
|
+
onSubmit: Y(l, ["prevent"])
|
|
1983
1983
|
}), [
|
|
1984
1984
|
n.hideTitle ? S("", !0) : (i(), y(N, { key: 0 }, [
|
|
1985
1985
|
B(n.$slots, "title", {}, () => [
|
|
@@ -1990,16 +1990,16 @@ const bt = { key: 0 }, ft = {
|
|
|
1990
1990
|
]),
|
|
1991
1991
|
jt
|
|
1992
1992
|
], 64)),
|
|
1993
|
-
|
|
1993
|
+
a.value.hasError ? (i(), h(se, {
|
|
1994
1994
|
key: 1,
|
|
1995
1995
|
severity: "danger",
|
|
1996
1996
|
"data-cy": "error"
|
|
1997
1997
|
}, {
|
|
1998
1998
|
default: b(() => [
|
|
1999
1999
|
B(n.$slots, "error", {
|
|
2000
|
-
error:
|
|
2000
|
+
error: a.value.message
|
|
2001
2001
|
}, () => [
|
|
2002
|
-
O(w(
|
|
2002
|
+
O(w(a.value.message), 1)
|
|
2003
2003
|
])
|
|
2004
2004
|
]),
|
|
2005
2005
|
_: 3
|
|
@@ -2021,7 +2021,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2021
2021
|
_: 1
|
|
2022
2022
|
}))
|
|
2023
2023
|
]),
|
|
2024
|
-
B(n.$slots, "submit", { submit:
|
|
2024
|
+
B(n.$slots, "submit", { submit: l }, () => [
|
|
2025
2025
|
f(u, {
|
|
2026
2026
|
"data-cy": "submit-btn",
|
|
2027
2027
|
type: "submit",
|
|
@@ -2059,11 +2059,11 @@ const bt = { key: 0 }, ft = {
|
|
|
2059
2059
|
}),
|
|
2060
2060
|
emits: ["update:modelValue"],
|
|
2061
2061
|
setup(e) {
|
|
2062
|
-
const t = E(e, "modelValue"), o = e,
|
|
2062
|
+
const t = E(e, "modelValue"), o = e, a = (s) => {
|
|
2063
2063
|
o.type == "number" ? u(s.value) : u(s);
|
|
2064
|
-
}, { errors:
|
|
2064
|
+
}, { errors: l, value: n, errorMessage: d, handleChange: u, handleBlur: c } = K(() => o.name, void 0, {
|
|
2065
2065
|
initialValue: t.value
|
|
2066
|
-
}), r = k(() =>
|
|
2066
|
+
}), r = k(() => l.value.length > 0);
|
|
2067
2067
|
return re(() => n.value, (s) => {
|
|
2068
2068
|
t.value = s;
|
|
2069
2069
|
}, { immediate: !0 }), (s, v) => {
|
|
@@ -2090,7 +2090,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2090
2090
|
class: { "is-invalid": r.value },
|
|
2091
2091
|
modelValue: t.value,
|
|
2092
2092
|
"onUpdate:modelValue": v[1] || (v[1] = ($) => t.value = $),
|
|
2093
|
-
onInput:
|
|
2093
|
+
onInput: a
|
|
2094
2094
|
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : o.type === "textarea" ? (i(), h(x, C({
|
|
2095
2095
|
key: 1,
|
|
2096
2096
|
id: o.name
|
|
@@ -2099,7 +2099,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2099
2099
|
class: { "is-invalid": r.value },
|
|
2100
2100
|
modelValue: t.value,
|
|
2101
2101
|
"onUpdate:modelValue": v[2] || (v[2] = ($) => t.value = $),
|
|
2102
|
-
onInput:
|
|
2102
|
+
onInput: a,
|
|
2103
2103
|
onBlur: p(c)
|
|
2104
2104
|
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : o.type === "mask" ? (i(), h(F, C({
|
|
2105
2105
|
key: 2,
|
|
@@ -2110,7 +2110,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2110
2110
|
class: { "is-invalid": r.value },
|
|
2111
2111
|
modelValue: t.value,
|
|
2112
2112
|
"onUpdate:modelValue": v[3] || (v[3] = ($) => t.value = $),
|
|
2113
|
-
onComplete:
|
|
2113
|
+
onComplete: a,
|
|
2114
2114
|
onBlur: p(c)
|
|
2115
2115
|
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : o.type === "text" ? (i(), h(P, C({
|
|
2116
2116
|
key: 3,
|
|
@@ -2120,7 +2120,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2120
2120
|
class: { "is-invalid": r.value },
|
|
2121
2121
|
modelValue: t.value,
|
|
2122
2122
|
"onUpdate:modelValue": v[4] || (v[4] = ($) => t.value = $),
|
|
2123
|
-
onInput:
|
|
2123
|
+
onInput: a,
|
|
2124
2124
|
onBlur: p(c)
|
|
2125
2125
|
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : o.type === "select" ? (i(), h(M, C({ key: 4 }, { ...o, ...s.$attrs }, {
|
|
2126
2126
|
modelValue: t.value,
|
|
@@ -2171,7 +2171,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2171
2171
|
unstyled: { type: Boolean }
|
|
2172
2172
|
},
|
|
2173
2173
|
setup(e) {
|
|
2174
|
-
const t = e, { errors: o, value:
|
|
2174
|
+
const t = e, { errors: o, value: a, errorMessage: l } = K(() => t.name, void 0, {
|
|
2175
2175
|
initialValue: t.modelValue
|
|
2176
2176
|
}), n = k(() => o.value.length > 0), d = k(() => ({
|
|
2177
2177
|
inputtoken: "list-unstyled",
|
|
@@ -2209,8 +2209,8 @@ const bt = { key: 0 }, ft = {
|
|
|
2209
2209
|
return i(), y(N, null, [
|
|
2210
2210
|
f(r, C({ ...t, ...u.$attrs }, {
|
|
2211
2211
|
pt: d.value,
|
|
2212
|
-
"model-value": p(
|
|
2213
|
-
"onUpdate:modelValue": c[0] || (c[0] = (s) => le(
|
|
2212
|
+
"model-value": p(a),
|
|
2213
|
+
"onUpdate:modelValue": c[0] || (c[0] = (s) => le(a) ? a.value = s : null)
|
|
2214
2214
|
}), {
|
|
2215
2215
|
removetokenicon: b(({ removeCallback: s }) => [
|
|
2216
2216
|
R(f(p(T), {
|
|
@@ -2226,7 +2226,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2226
2226
|
R(m("small", {
|
|
2227
2227
|
"data-cy": "error",
|
|
2228
2228
|
class: "text-invalid"
|
|
2229
|
-
}, w(p(
|
|
2229
|
+
}, w(p(l)), 513), [
|
|
2230
2230
|
[H, n.value]
|
|
2231
2231
|
])
|
|
2232
2232
|
], 64);
|
|
@@ -2247,7 +2247,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2247
2247
|
unstyled: { type: Boolean }
|
|
2248
2248
|
},
|
|
2249
2249
|
setup(e) {
|
|
2250
|
-
const t = e, o = k(() => t.striped ? "progress-bar-striped" : null),
|
|
2250
|
+
const t = e, o = k(() => t.striped ? "progress-bar-striped" : null), a = k(() => t.animate ? "progress-bar-animated" : null), l = k(() => {
|
|
2251
2251
|
switch (t.severity) {
|
|
2252
2252
|
case "brand":
|
|
2253
2253
|
return "bg-brand";
|
|
@@ -2271,7 +2271,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2271
2271
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2272
2272
|
},
|
|
2273
2273
|
value: {
|
|
2274
|
-
class: [
|
|
2274
|
+
class: [l.value, o.value, a.value]
|
|
2275
2275
|
}
|
|
2276
2276
|
}));
|
|
2277
2277
|
return (d, u) => {
|
|
@@ -2292,7 +2292,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2292
2292
|
},
|
|
2293
2293
|
setup(e) {
|
|
2294
2294
|
const t = e;
|
|
2295
|
-
return (o,
|
|
2295
|
+
return (o, a) => (i(), y("div", C(o.$attrs, {
|
|
2296
2296
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2297
2297
|
}), [
|
|
2298
2298
|
m("span", Kt, [
|
|
@@ -2319,20 +2319,20 @@ const bt = { key: 0 }, ft = {
|
|
|
2319
2319
|
},
|
|
2320
2320
|
emits: ["update:currentStep"],
|
|
2321
2321
|
setup(e, { emit: t }) {
|
|
2322
|
-
const o = t,
|
|
2322
|
+
const o = t, a = e, l = I(a.currentStep), n = () => {
|
|
2323
2323
|
do
|
|
2324
|
-
|
|
2325
|
-
while (
|
|
2326
|
-
o("update:currentStep",
|
|
2324
|
+
l.value--;
|
|
2325
|
+
while (a.model[l.value].disabled);
|
|
2326
|
+
o("update:currentStep", l.value);
|
|
2327
2327
|
}, d = () => {
|
|
2328
|
-
if (
|
|
2328
|
+
if (l.value < a.model.length - 1)
|
|
2329
2329
|
do
|
|
2330
|
-
|
|
2331
|
-
while (
|
|
2332
|
-
o("update:currentStep",
|
|
2330
|
+
l.value++;
|
|
2331
|
+
while (a.model[l.value].disabled);
|
|
2332
|
+
o("update:currentStep", l.value);
|
|
2333
2333
|
}, u = k(() => {
|
|
2334
|
-
const r =
|
|
2335
|
-
return !(r <
|
|
2334
|
+
const r = a.model.findIndex((s) => !s.disabled);
|
|
2335
|
+
return !(r < l.value && r > -1);
|
|
2336
2336
|
}), c = k(() => ({
|
|
2337
2337
|
menuitem: (r) => ({
|
|
2338
2338
|
class: [{
|
|
@@ -2344,13 +2344,13 @@ const bt = { key: 0 }, ft = {
|
|
|
2344
2344
|
"d-flex align-items-center justify-content-center mb-2 step",
|
|
2345
2345
|
{
|
|
2346
2346
|
inactive: r.context.disabled,
|
|
2347
|
-
"bg-primary text-white": r.context.index ===
|
|
2348
|
-
"bg-brand text-white": r.context.index ===
|
|
2349
|
-
"bg-secondary text-white": r.context.index ===
|
|
2350
|
-
"bg-success text-white": r.context.index ===
|
|
2351
|
-
"bg-warning text-white": r.context.index ===
|
|
2352
|
-
"bg-danger text-white": r.context.index ===
|
|
2353
|
-
"bg-info text-white": r.context.index ===
|
|
2347
|
+
"bg-primary text-white": r.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
|
|
2348
|
+
"bg-brand text-white": r.context.index === l.value && a.severity === "brand",
|
|
2349
|
+
"bg-secondary text-white": r.context.index === l.value && a.severity === "secondary",
|
|
2350
|
+
"bg-success text-white": r.context.index === l.value && a.severity === "success",
|
|
2351
|
+
"bg-warning text-white": r.context.index === l.value && a.severity === "warning",
|
|
2352
|
+
"bg-danger text-white": r.context.index === l.value && a.severity === "danger",
|
|
2353
|
+
"bg-info text-white": r.context.index === l.value && a.severity === "info"
|
|
2354
2354
|
}
|
|
2355
2355
|
]
|
|
2356
2356
|
}),
|
|
@@ -2358,13 +2358,13 @@ const bt = { key: 0 }, ft = {
|
|
|
2358
2358
|
class: [
|
|
2359
2359
|
"h5",
|
|
2360
2360
|
{
|
|
2361
|
-
"border-bottom border-2 border-primary": r.context.index ===
|
|
2362
|
-
"border-bottom border-2 border-brand": r.context.index ===
|
|
2363
|
-
"border-bottom border-2 border-secondary": r.context.index ===
|
|
2364
|
-
"border-bottom border-2 border-success": r.context.index ===
|
|
2365
|
-
"border-bottom border-2 border-warning": r.context.index ===
|
|
2366
|
-
"border-bottom border-2 border-danger": r.context.index ===
|
|
2367
|
-
"border-bottom border-2 border-info": r.context.index ===
|
|
2361
|
+
"border-bottom border-2 border-primary": r.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
|
|
2362
|
+
"border-bottom border-2 border-brand": r.context.index === l.value && a.severity === "brand",
|
|
2363
|
+
"border-bottom border-2 border-secondary": r.context.index === l.value && a.severity === "secondary",
|
|
2364
|
+
"border-bottom border-2 border-success": r.context.index === l.value && a.severity === "success",
|
|
2365
|
+
"border-bottom border-2 border-warning": r.context.index === l.value && a.severity === "warning",
|
|
2366
|
+
"border-bottom border-2 border-danger": r.context.index === l.value && a.severity === "danger",
|
|
2367
|
+
"border-bottom border-2 border-info": r.context.index === l.value && a.severity === "info"
|
|
2368
2368
|
}
|
|
2369
2369
|
]
|
|
2370
2370
|
})
|
|
@@ -2374,7 +2374,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2374
2374
|
return i(), y("div", Wt, [
|
|
2375
2375
|
m("div", Zt, [
|
|
2376
2376
|
f(v, {
|
|
2377
|
-
severity:
|
|
2377
|
+
severity: a.severity,
|
|
2378
2378
|
disabled: u.value,
|
|
2379
2379
|
onClick: n,
|
|
2380
2380
|
class: "rounded-circle py-2 me-4",
|
|
@@ -2389,19 +2389,19 @@ const bt = { key: 0 }, ft = {
|
|
|
2389
2389
|
_: 1
|
|
2390
2390
|
}, 8, ["severity", "disabled"]),
|
|
2391
2391
|
f(x, {
|
|
2392
|
-
"active-step":
|
|
2393
|
-
"onUpdate:activeStep": s[0] || (s[0] = (P) =>
|
|
2394
|
-
model:
|
|
2392
|
+
"active-step": l.value,
|
|
2393
|
+
"onUpdate:activeStep": s[0] || (s[0] = (P) => l.value = P),
|
|
2394
|
+
model: a.model,
|
|
2395
2395
|
pt: c.value,
|
|
2396
2396
|
readonly: !1
|
|
2397
2397
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2398
2398
|
]),
|
|
2399
2399
|
f(F),
|
|
2400
|
-
(i(!0), y(N, null, q(
|
|
2400
|
+
(i(!0), y(N, null, q(a.model, (P, M) => (i(), y("div", {
|
|
2401
2401
|
key: M,
|
|
2402
2402
|
class: "w-100"
|
|
2403
2403
|
}, [
|
|
2404
|
-
M ===
|
|
2404
|
+
M === l.value ? B(r.$slots, P.key ?? P.label, {
|
|
2405
2405
|
key: 0,
|
|
2406
2406
|
nextStep: d,
|
|
2407
2407
|
previousStep: n
|
|
@@ -2435,8 +2435,8 @@ const bt = { key: 0 }, ft = {
|
|
|
2435
2435
|
selected: { type: Boolean, default: !1 }
|
|
2436
2436
|
},
|
|
2437
2437
|
setup(e) {
|
|
2438
|
-
const t = e, o = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`),
|
|
2439
|
-
return (
|
|
2438
|
+
const t = e, o = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), a = k(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
2439
|
+
return (l, n) => {
|
|
2440
2440
|
const d = L;
|
|
2441
2441
|
return t.clickable ? (i(), h(d, {
|
|
2442
2442
|
key: 0,
|
|
@@ -2447,7 +2447,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2447
2447
|
}, {
|
|
2448
2448
|
default: b(() => [
|
|
2449
2449
|
m("div", Jt, [
|
|
2450
|
-
B(
|
|
2450
|
+
B(l.$slots, "default", {}, () => [
|
|
2451
2451
|
O("Tile Content")
|
|
2452
2452
|
])
|
|
2453
2453
|
])
|
|
@@ -2455,11 +2455,11 @@ const bt = { key: 0 }, ft = {
|
|
|
2455
2455
|
_: 3
|
|
2456
2456
|
}, 8, ["severity", "class"])) : (i(), y("div", {
|
|
2457
2457
|
key: 1,
|
|
2458
|
-
class: _(["d-flex w-100",
|
|
2458
|
+
class: _(["d-flex w-100", a.value]),
|
|
2459
2459
|
"data-cy": "tile"
|
|
2460
2460
|
}, [
|
|
2461
2461
|
m("div", Xt, [
|
|
2462
|
-
B(
|
|
2462
|
+
B(l.$slots, "default", {}, () => [
|
|
2463
2463
|
O("Tile Content")
|
|
2464
2464
|
])
|
|
2465
2465
|
])
|
|
@@ -2485,24 +2485,24 @@ const Qt = {
|
|
|
2485
2485
|
},
|
|
2486
2486
|
emits: ["update:perPage"],
|
|
2487
2487
|
setup(e, { emit: t }) {
|
|
2488
|
-
const o = t,
|
|
2488
|
+
const o = t, a = e, l = (d) => {
|
|
2489
2489
|
o("update:perPage", d.value);
|
|
2490
2490
|
}, n = k(() => {
|
|
2491
|
-
const d = Math.ceil(
|
|
2491
|
+
const d = Math.ceil(a.total / a.perPage);
|
|
2492
2492
|
return `${d} ${Q(d, "page")}`;
|
|
2493
2493
|
});
|
|
2494
2494
|
return (d, u) => (i(), y("div", Qt, [
|
|
2495
2495
|
O(" Number of results per page "),
|
|
2496
2496
|
m("div", ea, [
|
|
2497
2497
|
f(p(ne), {
|
|
2498
|
-
options:
|
|
2499
|
-
"model-value":
|
|
2500
|
-
onChange: u[0] || (u[0] = (c) =>
|
|
2498
|
+
options: a.pageSizes,
|
|
2499
|
+
"model-value": a.perPage,
|
|
2500
|
+
onChange: u[0] || (u[0] = (c) => l(c))
|
|
2501
2501
|
}, null, 8, ["options", "model-value"])
|
|
2502
2502
|
]),
|
|
2503
|
-
|
|
2503
|
+
a.total ? (i(), y("div", ta, [
|
|
2504
2504
|
aa,
|
|
2505
|
-
m("span", la, w(
|
|
2505
|
+
m("span", la, w(a.total) + " " + w(p(Q)(a.total, "result")) + " across " + w(n.value), 1)
|
|
2506
2506
|
])) : S("", !0)
|
|
2507
2507
|
]));
|
|
2508
2508
|
}
|
|
@@ -2586,21 +2586,21 @@ const Qt = {
|
|
|
2586
2586
|
},
|
|
2587
2587
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
2588
2588
|
setup(e, { emit: t }) {
|
|
2589
|
-
const o = t,
|
|
2590
|
-
filters:
|
|
2589
|
+
const o = t, a = e, l = I(), n = I([10, 20, 50, 100]), d = I(20), u = I({
|
|
2590
|
+
filters: a.filters,
|
|
2591
2591
|
perPage: d.value,
|
|
2592
2592
|
page: 0,
|
|
2593
2593
|
sortDirection: "None",
|
|
2594
2594
|
sortField: "",
|
|
2595
|
-
total:
|
|
2596
|
-
}), c = k(() =>
|
|
2595
|
+
total: a.totalRecords ?? a.value.length
|
|
2596
|
+
}), c = k(() => a.totalRecords ?? a.value.length), r = k(() => {
|
|
2597
2597
|
const g = Math.ceil(c.value / d.value);
|
|
2598
2598
|
return `${g} ${Q(g, "page")}`;
|
|
2599
2599
|
}), s = k(() => ({
|
|
2600
2600
|
thead: () => ({
|
|
2601
2601
|
class: [
|
|
2602
2602
|
{
|
|
2603
|
-
"sticky-header":
|
|
2603
|
+
"sticky-header": a.stickyHeader
|
|
2604
2604
|
}
|
|
2605
2605
|
],
|
|
2606
2606
|
style: "position: "
|
|
@@ -2609,21 +2609,21 @@ const Qt = {
|
|
|
2609
2609
|
class: [
|
|
2610
2610
|
"spinner-border border-0",
|
|
2611
2611
|
{
|
|
2612
|
-
"text-brand":
|
|
2613
|
-
"text-primary":
|
|
2614
|
-
"text-success":
|
|
2615
|
-
"text-warning":
|
|
2616
|
-
"text-danger":
|
|
2617
|
-
"text-info":
|
|
2612
|
+
"text-brand": a.severity === "brand",
|
|
2613
|
+
"text-primary": a.severity === "primary",
|
|
2614
|
+
"text-success": a.severity === "success",
|
|
2615
|
+
"text-warning": a.severity === "warning",
|
|
2616
|
+
"text-danger": a.severity === "danger",
|
|
2617
|
+
"text-info": a.severity === "info"
|
|
2618
2618
|
}
|
|
2619
2619
|
]
|
|
2620
2620
|
})
|
|
2621
2621
|
})), v = () => {
|
|
2622
|
-
for (const g in
|
|
2623
|
-
typeof
|
|
2624
|
-
P(
|
|
2622
|
+
for (const g in a.filters)
|
|
2623
|
+
typeof a.filters[g] == "string" ? a.filters[g] = "" : a.filters[g].value = null;
|
|
2624
|
+
P(a.filters);
|
|
2625
2625
|
}, x = () => {
|
|
2626
|
-
|
|
2626
|
+
l.value.exportCSV();
|
|
2627
2627
|
}, F = (g) => {
|
|
2628
2628
|
var $;
|
|
2629
2629
|
u.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", u.value.sortField = (($ = g.sortField) == null ? void 0 : $.toString()) ?? "", o("update:tableContext", u.value), o("sort", g);
|
|
@@ -2634,21 +2634,21 @@ const Qt = {
|
|
|
2634
2634
|
}, z = () => {
|
|
2635
2635
|
u.value.perPage = d.value, o("update:tableContext", u.value);
|
|
2636
2636
|
};
|
|
2637
|
-
return re(() =>
|
|
2637
|
+
return re(() => a.filters, (g) => {
|
|
2638
2638
|
u.value.filters = g, o("update:tableContext", u.value);
|
|
2639
2639
|
}, { deep: !0 }), ae(() => o("update:tableContext", u.value)), (g, $) => (i(), y("div", na, [
|
|
2640
2640
|
m("span", sa, [
|
|
2641
2641
|
B(g.$slots, "above-table")
|
|
2642
2642
|
]),
|
|
2643
2643
|
f(p(Oe), C({
|
|
2644
|
-
class: ["w-100", `${
|
|
2645
|
-
}, { ...
|
|
2644
|
+
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
2645
|
+
}, { ...a, ...g.$attrs }, {
|
|
2646
2646
|
pt: s.value,
|
|
2647
2647
|
rows: d.value,
|
|
2648
2648
|
"total-records": c.value,
|
|
2649
|
-
"filter-display":
|
|
2649
|
+
"filter-display": a.filters ? "row" : void 0,
|
|
2650
2650
|
ref_key: "forgeTable",
|
|
2651
|
-
ref:
|
|
2651
|
+
ref: l,
|
|
2652
2652
|
"data-cy": "table",
|
|
2653
2653
|
"onUpdate:filters": P,
|
|
2654
2654
|
onSort: F,
|
|
@@ -2656,7 +2656,7 @@ const Qt = {
|
|
|
2656
2656
|
}), oe({
|
|
2657
2657
|
header: b(() => [
|
|
2658
2658
|
m("div", {
|
|
2659
|
-
class: _(
|
|
2659
|
+
class: _(a.loading ? "opacity-50" : "")
|
|
2660
2660
|
}, [
|
|
2661
2661
|
m("div", ia, [
|
|
2662
2662
|
m("div", ra, [
|
|
@@ -2725,7 +2725,7 @@ const Qt = {
|
|
|
2725
2725
|
name: "paginatorstart",
|
|
2726
2726
|
fn: b(() => [
|
|
2727
2727
|
m("span", {
|
|
2728
|
-
class: _(["d-flex",
|
|
2728
|
+
class: _(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
2729
2729
|
"data-cy": "legacy-page-size"
|
|
2730
2730
|
}, [
|
|
2731
2731
|
ca,
|
|
@@ -2745,7 +2745,7 @@ const Qt = {
|
|
|
2745
2745
|
fn: b(() => [
|
|
2746
2746
|
m("span", {
|
|
2747
2747
|
"data-cy": "legacy-total",
|
|
2748
|
-
class: _(
|
|
2748
|
+
class: _(a.loading ? "opacity-50" : "")
|
|
2749
2749
|
}, w(c.value) + " " + w(p(Q)(c.value, "result")) + " across " + w(r.value), 3)
|
|
2750
2750
|
]),
|
|
2751
2751
|
key: "1"
|
|
@@ -2768,8 +2768,8 @@ const Qt = {
|
|
|
2768
2768
|
}),
|
|
2769
2769
|
emits: ["update:modelValue"],
|
|
2770
2770
|
setup(e) {
|
|
2771
|
-
const t = E(e, "modelValue"), o = (
|
|
2772
|
-
if (!
|
|
2771
|
+
const t = E(e, "modelValue"), o = (l, n) => {
|
|
2772
|
+
if (!l || Array.isArray(l) && l.length === 0)
|
|
2773
2773
|
return n;
|
|
2774
2774
|
const d = (u) => {
|
|
2775
2775
|
var r;
|
|
@@ -2778,41 +2778,41 @@ const Qt = {
|
|
|
2778
2778
|
);
|
|
2779
2779
|
return e.optionLabel ? c[e.optionLabel] : c;
|
|
2780
2780
|
};
|
|
2781
|
-
return Array.isArray(
|
|
2782
|
-
},
|
|
2781
|
+
return Array.isArray(l) ? l.map(d).join(", ") : d(l);
|
|
2782
|
+
}, a = () => {
|
|
2783
2783
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
2784
2784
|
};
|
|
2785
|
-
return (
|
|
2785
|
+
return (l, n) => {
|
|
2786
2786
|
const d = me, u = L;
|
|
2787
2787
|
return i(), y("div", ma, [
|
|
2788
|
-
|
|
2788
|
+
l.dataType === "numeric" ? (i(), h(d, C({
|
|
2789
2789
|
key: 0,
|
|
2790
2790
|
modelValue: t.value,
|
|
2791
2791
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => t.value = c)
|
|
2792
|
-
},
|
|
2792
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (i(), h(fe, C({
|
|
2793
2793
|
key: 1,
|
|
2794
2794
|
modelValue: t.value,
|
|
2795
2795
|
"onUpdate:modelValue": n[1] || (n[1] = (c) => t.value = c)
|
|
2796
|
-
},
|
|
2796
|
+
}, l.$attrs, {
|
|
2797
2797
|
"show-icon": !1,
|
|
2798
2798
|
"show-on-focus": !0
|
|
2799
|
-
}), null, 16, ["modelValue"])) :
|
|
2799
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (i(), h(p(ne), C({
|
|
2800
2800
|
key: 2,
|
|
2801
2801
|
modelValue: t.value,
|
|
2802
2802
|
"onUpdate:modelValue": n[2] || (n[2] = (c) => t.value = c)
|
|
2803
|
-
},
|
|
2804
|
-
options:
|
|
2805
|
-
"option-value":
|
|
2806
|
-
"option-label":
|
|
2803
|
+
}, l.$attrs, {
|
|
2804
|
+
options: l.dropdownOptions,
|
|
2805
|
+
"option-value": l.optionValue,
|
|
2806
|
+
"option-label": l.optionLabel
|
|
2807
2807
|
}), {
|
|
2808
2808
|
value: b(({ value: c, placeholder: r }) => [
|
|
2809
2809
|
m("div", pa, [
|
|
2810
2810
|
m("span", {
|
|
2811
2811
|
class: _({ "filter-placeholder": c === null })
|
|
2812
2812
|
}, w(o(c, r)), 3),
|
|
2813
|
-
|
|
2813
|
+
l.showClearButton && t.value !== null ? (i(), h(u, {
|
|
2814
2814
|
key: 0,
|
|
2815
|
-
onClick: Y(
|
|
2815
|
+
onClick: Y(a, ["prevent"]),
|
|
2816
2816
|
size: "small",
|
|
2817
2817
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2818
2818
|
}, {
|
|
@@ -2829,15 +2829,15 @@ const Qt = {
|
|
|
2829
2829
|
])
|
|
2830
2830
|
]),
|
|
2831
2831
|
_: 1
|
|
2832
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) :
|
|
2832
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (i(), h(p(De), C({
|
|
2833
2833
|
key: 3,
|
|
2834
2834
|
modelValue: t.value,
|
|
2835
2835
|
"onUpdate:modelValue": n[3] || (n[3] = (c) => t.value = c)
|
|
2836
|
-
},
|
|
2837
|
-
options:
|
|
2836
|
+
}, l.$attrs, {
|
|
2837
|
+
options: l.dropdownOptions,
|
|
2838
2838
|
showToggleAll: !1,
|
|
2839
|
-
"option-label":
|
|
2840
|
-
"option-value":
|
|
2839
|
+
"option-label": l.optionLabel,
|
|
2840
|
+
"option-value": l.optionValue,
|
|
2841
2841
|
filter: ""
|
|
2842
2842
|
}), {
|
|
2843
2843
|
value: b(({ value: c, placeholder: r }) => [
|
|
@@ -2845,9 +2845,9 @@ const Qt = {
|
|
|
2845
2845
|
m("span", {
|
|
2846
2846
|
class: _({ "filter-placeholder": (c == null ? void 0 : c.length) === 0 || c === null })
|
|
2847
2847
|
}, w(o(c, r)), 3),
|
|
2848
|
-
|
|
2848
|
+
l.showClearButton && (c == null ? void 0 : c.length) > 0 ? (i(), h(u, {
|
|
2849
2849
|
key: 0,
|
|
2850
|
-
onClick: Y(
|
|
2850
|
+
onClick: Y(a, ["prevent"]),
|
|
2851
2851
|
size: "small",
|
|
2852
2852
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2853
2853
|
}, {
|
|
@@ -2868,10 +2868,10 @@ const Qt = {
|
|
|
2868
2868
|
key: 4,
|
|
2869
2869
|
modelValue: t.value,
|
|
2870
2870
|
"onUpdate:modelValue": n[4] || (n[4] = (c) => t.value = c)
|
|
2871
|
-
},
|
|
2872
|
-
|
|
2871
|
+
}, l.$attrs), null, 16, ["modelValue"])),
|
|
2872
|
+
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (i(), h(u, {
|
|
2873
2873
|
key: 5,
|
|
2874
|
-
onClick: Y(
|
|
2874
|
+
onClick: Y(a, ["prevent"]),
|
|
2875
2875
|
size: "small",
|
|
2876
2876
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
2877
2877
|
}, {
|
|
@@ -2889,12 +2889,12 @@ const Qt = {
|
|
|
2889
2889
|
};
|
|
2890
2890
|
}
|
|
2891
2891
|
});
|
|
2892
|
-
function ge(e, t, o,
|
|
2893
|
-
const
|
|
2892
|
+
function ge(e, t, o, a) {
|
|
2893
|
+
const l = t.flatMap((n) => n.file);
|
|
2894
2894
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2895
|
-
const d =
|
|
2895
|
+
const d = l.findIndex((c) => c.name === n.name);
|
|
2896
2896
|
let u = "Not Uploaded";
|
|
2897
|
-
d === -1 ? ((!o.includes(n.type) || !(n.size <=
|
|
2897
|
+
d === -1 ? ((!o.includes(n.type) || !(n.size <= a)) && (u = o.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2898
2898
|
file: n,
|
|
2899
2899
|
status: u,
|
|
2900
2900
|
blobFileName: null
|
|
@@ -2913,16 +2913,16 @@ async function ya(e, t) {
|
|
|
2913
2913
|
}
|
|
2914
2914
|
}
|
|
2915
2915
|
function ue(e, t = !0, o = 1) {
|
|
2916
|
-
const
|
|
2917
|
-
if (Math.abs(e) <
|
|
2916
|
+
const a = t ? 1e3 : 1024;
|
|
2917
|
+
if (Math.abs(e) < a)
|
|
2918
2918
|
return e + " B";
|
|
2919
|
-
const
|
|
2919
|
+
const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
2920
2920
|
let n = -1;
|
|
2921
2921
|
const d = 10 ** o;
|
|
2922
2922
|
do
|
|
2923
|
-
e /=
|
|
2924
|
-
while (Math.round(Math.abs(e) * d) / d >=
|
|
2925
|
-
return e.toFixed(o) + " " +
|
|
2923
|
+
e /= a, ++n;
|
|
2924
|
+
while (Math.round(Math.abs(e) * d) / d >= a && n < l.length - 1);
|
|
2925
|
+
return e.toFixed(o) + " " + l[n];
|
|
2926
2926
|
}
|
|
2927
2927
|
function ba(e) {
|
|
2928
2928
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
@@ -2942,27 +2942,27 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
2942
2942
|
}),
|
|
2943
2943
|
emits: ["update:modelValue"],
|
|
2944
2944
|
setup(e) {
|
|
2945
|
-
const t = E(e, "modelValue"), o = k(() => e.maxFileInput <= t.value.length),
|
|
2946
|
-
t.value = ge(
|
|
2945
|
+
const t = E(e, "modelValue"), o = k(() => e.maxFileInput <= t.value.length), a = (l) => {
|
|
2946
|
+
t.value = ge(l, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2947
2947
|
};
|
|
2948
|
-
return (
|
|
2949
|
-
B(
|
|
2948
|
+
return (l, n) => (i(), y("div", ga, [
|
|
2949
|
+
B(l.$slots, "message"),
|
|
2950
2950
|
m("div", null, [
|
|
2951
2951
|
m("input", {
|
|
2952
2952
|
id: "file-input",
|
|
2953
2953
|
type: "file",
|
|
2954
2954
|
class: "d-none",
|
|
2955
|
-
accept:
|
|
2955
|
+
accept: l.acceptedFileTypes.join(", "),
|
|
2956
2956
|
disabled: o.value,
|
|
2957
|
-
multiple:
|
|
2958
|
-
onInput: n[0] || (n[0] = (d) =>
|
|
2957
|
+
multiple: l.maxFileInput > 1,
|
|
2958
|
+
onInput: n[0] || (n[0] = (d) => a([...d.target.files]))
|
|
2959
2959
|
}, null, 40, ha),
|
|
2960
2960
|
m("label", {
|
|
2961
2961
|
class: _([{ disabled: o.value }, "btn btn-primary"]),
|
|
2962
2962
|
id: "file-input-button",
|
|
2963
2963
|
for: "file-input"
|
|
2964
2964
|
}, [
|
|
2965
|
-
B(
|
|
2965
|
+
B(l.$slots, "button-content", {}, () => [
|
|
2966
2966
|
f(p(T), {
|
|
2967
2967
|
icon: "bi:upload",
|
|
2968
2968
|
class: "me-2",
|
|
@@ -2973,11 +2973,11 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
2973
2973
|
])
|
|
2974
2974
|
], 2)
|
|
2975
2975
|
]),
|
|
2976
|
-
|
|
2976
|
+
l.showDragDropArea ? (i(), y("div", {
|
|
2977
2977
|
class: "ms-auto",
|
|
2978
|
-
key:
|
|
2978
|
+
key: l.acceptedFileTypes.length,
|
|
2979
2979
|
id: "accepted-file-types"
|
|
2980
|
-
}, "Accepted File Types: " + w(
|
|
2980
|
+
}, "Accepted File Types: " + w(l.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
|
|
2981
2981
|
]));
|
|
2982
2982
|
}
|
|
2983
2983
|
}), xa = {
|
|
@@ -2999,15 +2999,15 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
2999
2999
|
}),
|
|
3000
3000
|
emits: ["update:modelValue"],
|
|
3001
3001
|
setup(e) {
|
|
3002
|
-
const t = E(e, "modelValue"), o = I(!1),
|
|
3003
|
-
o.value = !1, n.dataTransfer.files.length > e.maxFileInput ||
|
|
3002
|
+
const t = E(e, "modelValue"), o = I(!1), a = k(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
3003
|
+
o.value = !1, n.dataTransfer.files.length > e.maxFileInput || a.value ? n.preventDefault() : t.value = ge([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
|
|
3004
3004
|
};
|
|
3005
3005
|
return (n, d) => (i(), y("div", {
|
|
3006
3006
|
id: "drag-drop-area",
|
|
3007
3007
|
class: _(`${o.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
3008
3008
|
onDragleave: d[0] || (d[0] = Y((u) => o.value = !1, ["prevent"])),
|
|
3009
3009
|
onDragover: d[1] || (d[1] = Y((u) => o.value = !0, ["prevent"])),
|
|
3010
|
-
onDrop: Y(
|
|
3010
|
+
onDrop: Y(l, ["prevent"])
|
|
3011
3011
|
}, [
|
|
3012
3012
|
t.value.length === 0 ? (i(), y("div", xa, [
|
|
3013
3013
|
f(p(T), {
|
|
@@ -3047,19 +3047,19 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3047
3047
|
return "Upload Failed: Connection error, please try again.";
|
|
3048
3048
|
}
|
|
3049
3049
|
});
|
|
3050
|
-
return (
|
|
3051
|
-
|
|
3050
|
+
return (a, l) => (i(), y("div", Ba, [
|
|
3051
|
+
a.uploadStatus === "Uploading" ? (i(), h(Gt, {
|
|
3052
3052
|
key: 0,
|
|
3053
3053
|
pixelWidth: 200,
|
|
3054
3054
|
animate: "",
|
|
3055
3055
|
striped: ""
|
|
3056
3056
|
}, {
|
|
3057
3057
|
default: b(() => [
|
|
3058
|
-
O(w((
|
|
3058
|
+
O(w((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
|
|
3059
3059
|
]),
|
|
3060
3060
|
_: 1
|
|
3061
3061
|
})) : S("", !0),
|
|
3062
|
-
|
|
3062
|
+
a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (i(), h(se, {
|
|
3063
3063
|
key: 1,
|
|
3064
3064
|
id: "upload-status-alert",
|
|
3065
3065
|
severity: t.value,
|
|
@@ -3100,36 +3100,36 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3100
3100
|
}),
|
|
3101
3101
|
emits: /* @__PURE__ */ j(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
3102
3102
|
setup(e, { emit: t }) {
|
|
3103
|
-
const o = E(e, "file"),
|
|
3103
|
+
const o = E(e, "file"), a = E(e, "blobFileName"), l = E(e, "uploadStatus"), n = t, d = I(o.value.name), u = I(""), c = I(0), r = I(), s = k(() => e.acceptedFileTypes.includes(o.value.type)), v = k(() => o.value.size <= e.maxFileSize), x = () => {
|
|
3104
3104
|
o.value = new File([o.value], d.value, { type: o.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
3105
3105
|
}, F = async () => {
|
|
3106
3106
|
if (!s.value || !v.value) {
|
|
3107
|
-
|
|
3107
|
+
l.value = s.value ? "InvalidFileSize" : "InvalidFileType";
|
|
3108
3108
|
return;
|
|
3109
3109
|
}
|
|
3110
|
-
|
|
3110
|
+
l.value = "Preparing", r.value = new AbortController();
|
|
3111
3111
|
const [M, z] = await e.getFileUrlAction(o.value.name);
|
|
3112
3112
|
if (!M) {
|
|
3113
|
-
|
|
3113
|
+
l.value = "Failed";
|
|
3114
3114
|
return;
|
|
3115
3115
|
}
|
|
3116
3116
|
try {
|
|
3117
|
-
|
|
3117
|
+
l.value = "Uploading";
|
|
3118
3118
|
const g = new pe(M), $ = {
|
|
3119
3119
|
abortSignal: r.value.signal,
|
|
3120
3120
|
onProgress: (G) => c.value = G.loadedBytes,
|
|
3121
3121
|
tags: { temp: "true" }
|
|
3122
3122
|
};
|
|
3123
|
-
await g.uploadData(o.value, $), u.value = M,
|
|
3123
|
+
await g.uploadData(o.value, $), u.value = M, l.value = "Uploaded", a.value = z;
|
|
3124
3124
|
} catch (g) {
|
|
3125
3125
|
if (g.name === "AbortError") {
|
|
3126
|
-
|
|
3126
|
+
l.value = "Aborted";
|
|
3127
3127
|
return;
|
|
3128
3128
|
}
|
|
3129
|
-
|
|
3129
|
+
l.value = "Failed";
|
|
3130
3130
|
}
|
|
3131
3131
|
}, P = async () => {
|
|
3132
|
-
await ya(
|
|
3132
|
+
await ya(l.value, u.value), n("deleted", o.value);
|
|
3133
3133
|
};
|
|
3134
3134
|
return ae(() => {
|
|
3135
3135
|
e.autoUploadToBlob && F();
|
|
@@ -3173,25 +3173,25 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3173
3173
|
]),
|
|
3174
3174
|
m("div", Pa, [
|
|
3175
3175
|
(i(), h(Fa, {
|
|
3176
|
-
key:
|
|
3176
|
+
key: l.value,
|
|
3177
3177
|
"file-size": o.value.size,
|
|
3178
|
-
"upload-status":
|
|
3178
|
+
"upload-status": l.value,
|
|
3179
3179
|
"bytes-uploaded": c.value,
|
|
3180
3180
|
"max-file-size": M.maxFileSize
|
|
3181
3181
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
3182
|
-
|
|
3182
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (i(), h(g, {
|
|
3183
3183
|
key: 0,
|
|
3184
3184
|
link: "",
|
|
3185
3185
|
onClick: F
|
|
3186
3186
|
}, {
|
|
3187
3187
|
default: b(() => [
|
|
3188
3188
|
f(p(T), {
|
|
3189
|
-
icon:
|
|
3189
|
+
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
3190
3190
|
}, null, 8, ["icon"])
|
|
3191
3191
|
]),
|
|
3192
3192
|
_: 1
|
|
3193
3193
|
})) : S("", !0),
|
|
3194
|
-
|
|
3194
|
+
l.value === "Uploading" ? (i(), h(g, {
|
|
3195
3195
|
key: 1,
|
|
3196
3196
|
link: "",
|
|
3197
3197
|
onClick: z[1] || (z[1] = ($) => r.value.value.abort())
|
|
@@ -3242,15 +3242,15 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3242
3242
|
}),
|
|
3243
3243
|
emits: ["update:modelValue"],
|
|
3244
3244
|
setup(e) {
|
|
3245
|
-
const t = E(e, "modelValue"), o = e,
|
|
3246
|
-
t.value = t.value.filter((n) => n.file !=
|
|
3245
|
+
const t = E(e, "modelValue"), o = e, a = (l) => {
|
|
3246
|
+
t.value = t.value.filter((n) => n.file != l);
|
|
3247
3247
|
};
|
|
3248
|
-
return (
|
|
3248
|
+
return (l, n) => (i(), y("div", Da, [
|
|
3249
3249
|
f(wa, C(o, {
|
|
3250
3250
|
modelValue: t.value,
|
|
3251
3251
|
"onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
|
|
3252
3252
|
}), null, 16, ["modelValue"]),
|
|
3253
|
-
|
|
3253
|
+
l.showDragDropArea ? (i(), y("div", Ua, [
|
|
3254
3254
|
f($a, {
|
|
3255
3255
|
"max-file-input": o.maxFileInput,
|
|
3256
3256
|
"max-file-size": o.maxFileSize,
|
|
@@ -3270,7 +3270,7 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3270
3270
|
"upload-status": t.value[u].status,
|
|
3271
3271
|
"onUpdate:uploadStatus": (c) => t.value[u].status = c,
|
|
3272
3272
|
ref_for: !0
|
|
3273
|
-
}, o, { onDeleted:
|
|
3273
|
+
}, o, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
3274
3274
|
]))), 256))
|
|
3275
3275
|
]),
|
|
3276
3276
|
_: 1
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@3squared/forge-ui-3",
|
|
3
3
|
"repository": "https://github.com/3Squared/ForgeUI-3",
|
|
4
4
|
"description": "ForgeUI 3 is Vue 3 UI Library which combines a variety of popular packages to create a consistent UI for your application.",
|
|
5
|
-
"version": "0.10.
|
|
5
|
+
"version": "0.10.2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"contributors": [
|