@3squared/forge-ui-3 2.19.1 → 2.19.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.css +3 -3
- package/dist/esm/forge-ui-3.js +435 -401
- package/dist/src/components/ForgeDatepicker.vue.d.ts +2 -2
- package/dist/src/components/ForgeFormField.vue.d.ts +2 -2
- package/dist/src/components/ForgeInlineEditor.vue.d.ts +1 -1
- package/dist/src/components/ForgeModal.vue.d.ts +1 -1
- package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +1 -1
- package/dist/src/components/ForgeSelectButton.vue.d.ts +1 -1
- package/dist/src/components/ForgeStatWidget.vue.d.ts +1 -1
- package/dist/src/components/table/ForgeTable.vue.d.ts +2 -2
- package/dist/src/passthroughs/SplitButton.pt.d.ts +10 -6
- package/package.json +13 -13
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import Be from "primevue/message";
|
|
2
|
-
import { defineComponent as C,
|
|
3
|
-
import { Icon as
|
|
2
|
+
import { defineComponent as C, createBlock as y, openBlock as d, normalizeProps as W, guardReactiveProps as G, withCtx as f, renderSlot as B, createVNode as w, unref as u, createElementVNode as m, normalizeClass as S, createCommentVNode as z, ref as P, createElementBlock as v, Fragment as A, mergeProps as j, renderList as E, mergeModels as R, useModel as N, computed as T, withDirectives as J, createTextVNode as M, toDisplayString as F, vShow as Z, createSlots as ae, onMounted as oe, withKeys as le, isRef as Fe, normalizeStyle as Se, withModifiers as X, watch as Q, h as Ce, useTemplateRef as ze } from "vue";
|
|
3
|
+
import { Icon as _ } from "@iconify/vue";
|
|
4
4
|
import q from "primevue/button";
|
|
5
5
|
import Te from "primevue/toast";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useField as
|
|
9
|
-
import
|
|
6
|
+
import je from "primevue/autocomplete";
|
|
7
|
+
import _e from "primevue/checkbox";
|
|
8
|
+
import { useField as ne } from "vee-validate";
|
|
9
|
+
import Pe from "primevue/progressspinner";
|
|
10
10
|
import Ie from "primevue/dialog";
|
|
11
11
|
import se from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as Me } from "@vueuse/components";
|
|
@@ -240,15 +240,15 @@ const Xe = {
|
|
|
240
240
|
column: {
|
|
241
241
|
pcSortBadge: "ms-2 my-auto cursor-pointer",
|
|
242
242
|
headerCell: (e) => {
|
|
243
|
-
var t, a, i, l,
|
|
243
|
+
var t, a, i, l, o, n;
|
|
244
244
|
return {
|
|
245
245
|
class: [
|
|
246
246
|
"align-top",
|
|
247
247
|
{
|
|
248
248
|
"cursor-move": (t = e.props) == null ? void 0 : t.reorderableColumns,
|
|
249
249
|
"position-sticky": ((a = e.column) == null ? void 0 : a.context.frozen) !== void 0 || ((i = e.column) == null ? void 0 : i.context.frozen) || ((l = e.column) == null ? void 0 : l.context.frozen) === "",
|
|
250
|
-
"overflow-hidden position-relative bg-clip-padding": (
|
|
251
|
-
"align-bottom": ((
|
|
250
|
+
"overflow-hidden position-relative bg-clip-padding": (o = e.column) == null ? void 0 : o.context.resizable,
|
|
251
|
+
"align-bottom": ((n = e.column.props) == null ? void 0 : n.rowspan) > 1
|
|
252
252
|
}
|
|
253
253
|
]
|
|
254
254
|
};
|
|
@@ -375,12 +375,12 @@ const Xe = {
|
|
|
375
375
|
]
|
|
376
376
|
})
|
|
377
377
|
}
|
|
378
|
-
},
|
|
378
|
+
}, ot = {
|
|
379
379
|
toggleSwitch: {
|
|
380
380
|
root: "form-check form-switch",
|
|
381
381
|
input: "form-check-input"
|
|
382
382
|
}
|
|
383
|
-
},
|
|
383
|
+
}, nt = {
|
|
384
384
|
tag: {
|
|
385
385
|
root: ({ props: e }) => ({
|
|
386
386
|
class: [
|
|
@@ -797,7 +797,7 @@ const Xe = {
|
|
|
797
797
|
]
|
|
798
798
|
})
|
|
799
799
|
}
|
|
800
|
-
},
|
|
800
|
+
}, xt = {
|
|
801
801
|
badge: {
|
|
802
802
|
root: ({ props: e }) => ({
|
|
803
803
|
class: [
|
|
@@ -819,7 +819,7 @@ const Xe = {
|
|
|
819
819
|
]
|
|
820
820
|
})
|
|
821
821
|
}
|
|
822
|
-
},
|
|
822
|
+
}, ht = {
|
|
823
823
|
// More PassThrough options in component file.
|
|
824
824
|
menubar: {
|
|
825
825
|
rootList: ({ instance: e }) => ({
|
|
@@ -982,7 +982,12 @@ const Xe = {
|
|
|
982
982
|
class: t
|
|
983
983
|
};
|
|
984
984
|
},
|
|
985
|
-
itemLink:
|
|
985
|
+
itemLink: ({ props: e }) => ({
|
|
986
|
+
class: [
|
|
987
|
+
"dropdown-item",
|
|
988
|
+
{ "cursor-pointer": !e.disabled }
|
|
989
|
+
]
|
|
990
|
+
}),
|
|
986
991
|
separator: "border-bottom"
|
|
987
992
|
}
|
|
988
993
|
}
|
|
@@ -1056,7 +1061,7 @@ const Xe = {
|
|
|
1056
1061
|
class: ["ps-1"]
|
|
1057
1062
|
}),
|
|
1058
1063
|
messageIcon: ({ props: e }) => {
|
|
1059
|
-
var t, a, i, l,
|
|
1064
|
+
var t, a, i, l, o;
|
|
1060
1065
|
return {
|
|
1061
1066
|
class: [
|
|
1062
1067
|
"toast-icon",
|
|
@@ -1065,7 +1070,7 @@ const Xe = {
|
|
|
1065
1070
|
"text-success": ((a = e.message) == null ? void 0 : a.severity) === "success",
|
|
1066
1071
|
"text-success-alternate": ((i = e.message) == null ? void 0 : i.severity) === "success-alternate",
|
|
1067
1072
|
"text-danger": ((l = e.message) == null ? void 0 : l.severity) === "error",
|
|
1068
|
-
"text-warning": ((
|
|
1073
|
+
"text-warning": ((o = e.message) == null ? void 0 : o.severity) === "warn"
|
|
1069
1074
|
}
|
|
1070
1075
|
]
|
|
1071
1076
|
};
|
|
@@ -1103,7 +1108,7 @@ const Xe = {
|
|
|
1103
1108
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1104
1109
|
filterIcon: "d-none"
|
|
1105
1110
|
}
|
|
1106
|
-
},
|
|
1111
|
+
}, jt = {
|
|
1107
1112
|
treeSelect: {
|
|
1108
1113
|
root: ({ props: e }) => ({
|
|
1109
1114
|
class: [
|
|
@@ -1151,7 +1156,7 @@ const Xe = {
|
|
|
1151
1156
|
filterIcon: "d-none"
|
|
1152
1157
|
}
|
|
1153
1158
|
}
|
|
1154
|
-
},
|
|
1159
|
+
}, _t = {
|
|
1155
1160
|
fieldset: {
|
|
1156
1161
|
root: () => ({
|
|
1157
1162
|
class: [
|
|
@@ -1177,7 +1182,7 @@ const Xe = {
|
|
|
1177
1182
|
]
|
|
1178
1183
|
})
|
|
1179
1184
|
}
|
|
1180
|
-
},
|
|
1185
|
+
}, Pt = {
|
|
1181
1186
|
accordionPanel: {
|
|
1182
1187
|
root: "card my-2"
|
|
1183
1188
|
},
|
|
@@ -1218,7 +1223,7 @@ const Xe = {
|
|
|
1218
1223
|
}
|
|
1219
1224
|
}, Qi = {
|
|
1220
1225
|
...Xe,
|
|
1221
|
-
...
|
|
1226
|
+
...xt,
|
|
1222
1227
|
...Qe,
|
|
1223
1228
|
...Ft,
|
|
1224
1229
|
...et,
|
|
@@ -1231,10 +1236,10 @@ const Xe = {
|
|
|
1231
1236
|
...Ct,
|
|
1232
1237
|
...it,
|
|
1233
1238
|
...lt,
|
|
1234
|
-
...
|
|
1239
|
+
...ot,
|
|
1235
1240
|
...ct,
|
|
1236
1241
|
...ft,
|
|
1237
|
-
...
|
|
1242
|
+
...ht,
|
|
1238
1243
|
...pt,
|
|
1239
1244
|
...gt,
|
|
1240
1245
|
...Bt,
|
|
@@ -1243,14 +1248,14 @@ const Xe = {
|
|
|
1243
1248
|
...$t,
|
|
1244
1249
|
...ut,
|
|
1245
1250
|
...yt,
|
|
1246
|
-
...
|
|
1251
|
+
...nt,
|
|
1247
1252
|
...mt,
|
|
1248
1253
|
...zt,
|
|
1249
1254
|
...st,
|
|
1250
|
-
...Pt,
|
|
1251
1255
|
..._t,
|
|
1252
|
-
...Tt,
|
|
1253
1256
|
...jt,
|
|
1257
|
+
...Tt,
|
|
1258
|
+
...Pt,
|
|
1254
1259
|
...It,
|
|
1255
1260
|
directives: {
|
|
1256
1261
|
...wt
|
|
@@ -1281,7 +1286,7 @@ const Xe = {
|
|
|
1281
1286
|
m("div", {
|
|
1282
1287
|
class: S(t.icon ? "me-2 pe-1" : "")
|
|
1283
1288
|
}, [
|
|
1284
|
-
t.icon ? (d(), y(u(
|
|
1289
|
+
t.icon ? (d(), y(u(_), {
|
|
1285
1290
|
key: 0,
|
|
1286
1291
|
"data-cy": "message-icon",
|
|
1287
1292
|
icon: t.icon,
|
|
@@ -1291,7 +1296,7 @@ const Xe = {
|
|
|
1291
1296
|
], 2)
|
|
1292
1297
|
]),
|
|
1293
1298
|
closeicon: f(() => [
|
|
1294
|
-
w(u(
|
|
1299
|
+
w(u(_), { icon: "bi:x" })
|
|
1295
1300
|
]),
|
|
1296
1301
|
default: f(() => [
|
|
1297
1302
|
B(a.$slots, "default")
|
|
@@ -1309,7 +1314,7 @@ const Xe = {
|
|
|
1309
1314
|
params: { default: Array }
|
|
1310
1315
|
},
|
|
1311
1316
|
setup(e) {
|
|
1312
|
-
const t =
|
|
1317
|
+
const t = P(!1), a = e, i = async () => {
|
|
1313
1318
|
t.value = !0;
|
|
1314
1319
|
try {
|
|
1315
1320
|
await a.action.apply(this, a.params);
|
|
@@ -1318,10 +1323,10 @@ const Xe = {
|
|
|
1318
1323
|
}
|
|
1319
1324
|
t.value = !1;
|
|
1320
1325
|
};
|
|
1321
|
-
return (l,
|
|
1322
|
-
const
|
|
1326
|
+
return (l, o) => {
|
|
1327
|
+
const n = q;
|
|
1323
1328
|
return d(), v(A, null, [
|
|
1324
|
-
w(
|
|
1329
|
+
w(n, j({ ...a, ...l.$attrs }, {
|
|
1325
1330
|
loading: t.value,
|
|
1326
1331
|
disabled: t.value || a.disabled,
|
|
1327
1332
|
onClick: i
|
|
@@ -1333,7 +1338,7 @@ const Xe = {
|
|
|
1333
1338
|
}), tl = /* @__PURE__ */ C({
|
|
1334
1339
|
__name: "ForgeAutoComplete",
|
|
1335
1340
|
setup(e) {
|
|
1336
|
-
return (t, a) => (d(), y(u(
|
|
1341
|
+
return (t, a) => (d(), y(u(je), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1337
1342
|
default: f(() => [
|
|
1338
1343
|
(d(!0), v(A, null, E(t.$slots, (i, l) => B(t.$slots, l, { slot: l })), 256))
|
|
1339
1344
|
]),
|
|
@@ -1375,25 +1380,25 @@ const Xe = {
|
|
|
1375
1380
|
}),
|
|
1376
1381
|
emits: ["update:modelValue"],
|
|
1377
1382
|
setup(e) {
|
|
1378
|
-
const t = e, a = N(e, "modelValue"), { handleChange: i, errors: l, errorMessage:
|
|
1383
|
+
const t = e, a = N(e, "modelValue"), { handleChange: i, errors: l, errorMessage: o } = ne(
|
|
1379
1384
|
() => t.name ?? "",
|
|
1380
1385
|
void 0,
|
|
1381
1386
|
{
|
|
1382
1387
|
type: "checkbox",
|
|
1383
1388
|
checkedValue: a.value
|
|
1384
1389
|
}
|
|
1385
|
-
),
|
|
1390
|
+
), n = (p, c) => {
|
|
1386
1391
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
|
|
1387
1392
|
}, s = T(() => l.value.length > 0);
|
|
1388
1393
|
return (p, c) => {
|
|
1389
|
-
const
|
|
1394
|
+
const x = _e;
|
|
1390
1395
|
return d(), v("div", Mt, [
|
|
1391
|
-
m("div",
|
|
1396
|
+
m("div", j({
|
|
1392
1397
|
class: "d-flex",
|
|
1393
1398
|
"data-cy": "checkbox-container",
|
|
1394
|
-
onClick: c[2] || (c[2] = (r) =>
|
|
1399
|
+
onClick: c[2] || (c[2] = (r) => n(r, a.value))
|
|
1395
1400
|
}, { ...p.$attrs }), [
|
|
1396
|
-
w(
|
|
1401
|
+
w(x, j({ ...t }, {
|
|
1397
1402
|
binary: "",
|
|
1398
1403
|
modelValue: a.value,
|
|
1399
1404
|
"onUpdate:modelValue": c[0] || (c[0] = (r) => a.value = r),
|
|
@@ -1403,7 +1408,7 @@ const Xe = {
|
|
|
1403
1408
|
}), null, 16, ["modelValue", "input-id", "input-class", "class"]),
|
|
1404
1409
|
m("label", {
|
|
1405
1410
|
for: t.name,
|
|
1406
|
-
onClick: c[1] || (c[1] = (r) =>
|
|
1411
|
+
onClick: c[1] || (c[1] = (r) => n(r, !a.value)),
|
|
1407
1412
|
class: S([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1408
1413
|
}, [
|
|
1409
1414
|
B(p.$slots, "default", {}, () => [
|
|
@@ -1414,7 +1419,7 @@ const Xe = {
|
|
|
1414
1419
|
J(m("small", {
|
|
1415
1420
|
"data-cy": "error",
|
|
1416
1421
|
class: "text-invalid"
|
|
1417
|
-
}, F(u(
|
|
1422
|
+
}, F(u(o)), 513), [
|
|
1418
1423
|
[Z, s.value]
|
|
1419
1424
|
])
|
|
1420
1425
|
]);
|
|
@@ -1438,11 +1443,11 @@ const Xe = {
|
|
|
1438
1443
|
})
|
|
1439
1444
|
}));
|
|
1440
1445
|
return (i, l) => {
|
|
1441
|
-
const
|
|
1446
|
+
const o = Pe;
|
|
1442
1447
|
return d(), v("div", {
|
|
1443
1448
|
class: S(i.inLine ? "" : "forge-loader")
|
|
1444
1449
|
}, [
|
|
1445
|
-
w(
|
|
1450
|
+
w(o, {
|
|
1446
1451
|
"animation-duration": ".75",
|
|
1447
1452
|
class: S(`text-${t.severity === void 0 ? "primary" : t.severity}`),
|
|
1448
1453
|
pt: a.value
|
|
@@ -1491,7 +1496,7 @@ const Xe = {
|
|
|
1491
1496
|
target: i.target
|
|
1492
1497
|
}, [
|
|
1493
1498
|
B(i.$slots, "default", {}, () => [
|
|
1494
|
-
i.iconName ? (d(), y(u(
|
|
1499
|
+
i.iconName ? (d(), y(u(_), {
|
|
1495
1500
|
key: 0,
|
|
1496
1501
|
id: "link-icon",
|
|
1497
1502
|
icon: i.iconName,
|
|
@@ -1526,7 +1531,7 @@ const Nt = {
|
|
|
1526
1531
|
}, At = { key: 0 }, Et = {
|
|
1527
1532
|
class: "d-flex w-100",
|
|
1528
1533
|
"data-cy": "footer"
|
|
1529
|
-
},
|
|
1534
|
+
}, ol = /* @__PURE__ */ C({
|
|
1530
1535
|
__name: "ForgeModal",
|
|
1531
1536
|
props: /* @__PURE__ */ R({
|
|
1532
1537
|
cancelText: { default: "Cancel" },
|
|
@@ -1588,8 +1593,8 @@ const Nt = {
|
|
|
1588
1593
|
}),
|
|
1589
1594
|
emits: ["update:visible", "update:error"],
|
|
1590
1595
|
setup(e, { expose: t }) {
|
|
1591
|
-
const a = N(e, "visible"), i =
|
|
1592
|
-
|
|
1596
|
+
const a = N(e, "visible"), i = P(!1), l = e, o = P(!1), n = N(e, "error"), s = () => {
|
|
1597
|
+
n.value = {
|
|
1593
1598
|
hasError: !1,
|
|
1594
1599
|
header: "",
|
|
1595
1600
|
message: []
|
|
@@ -1602,22 +1607,22 @@ const Nt = {
|
|
|
1602
1607
|
i.value = !1;
|
|
1603
1608
|
}, c = () => {
|
|
1604
1609
|
i.value = !0;
|
|
1605
|
-
},
|
|
1610
|
+
}, x = () => {
|
|
1606
1611
|
l.resetErrorOnClose && s(), a.value = !1;
|
|
1607
1612
|
}, r = async () => {
|
|
1608
1613
|
if (l.onConfirm) {
|
|
1609
|
-
|
|
1614
|
+
o.value = !0, n.value.hasError = !1;
|
|
1610
1615
|
try {
|
|
1611
1616
|
const $ = await l.onConfirm();
|
|
1612
|
-
($ || $ == null) &&
|
|
1617
|
+
($ || $ == null) && x();
|
|
1613
1618
|
} catch ($) {
|
|
1614
|
-
|
|
1619
|
+
n.value.hasError = !0;
|
|
1615
1620
|
const D = Ot($);
|
|
1616
|
-
|
|
1621
|
+
n.value.header = D.errorMessage, n.value.message = D.errorDetails;
|
|
1617
1622
|
}
|
|
1618
|
-
|
|
1623
|
+
o.value = !1;
|
|
1619
1624
|
}
|
|
1620
|
-
},
|
|
1625
|
+
}, h = T(() => ({
|
|
1621
1626
|
root: [
|
|
1622
1627
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1623
1628
|
{
|
|
@@ -1632,28 +1637,28 @@ const Nt = {
|
|
|
1632
1637
|
{
|
|
1633
1638
|
[`${l.maxHeight}`]: l.maxHeight && !i.value,
|
|
1634
1639
|
[`${l.minHeight}`]: l.minHeight && !i.value,
|
|
1635
|
-
"pt-0":
|
|
1640
|
+
"pt-0": n.value.hasError
|
|
1636
1641
|
}
|
|
1637
1642
|
]
|
|
1638
1643
|
}));
|
|
1639
1644
|
return ($, D) => {
|
|
1640
1645
|
const O = q, U = Ie;
|
|
1641
|
-
return d(), y(U,
|
|
1646
|
+
return d(), y(U, j(l, {
|
|
1642
1647
|
onMaximize: c,
|
|
1643
1648
|
onUnmaximize: p,
|
|
1644
|
-
pt:
|
|
1649
|
+
pt: h.value
|
|
1645
1650
|
}), ae({
|
|
1646
1651
|
closeicon: f(() => [
|
|
1647
|
-
w(u(
|
|
1652
|
+
w(u(_), {
|
|
1648
1653
|
"data-cy": "close-icon",
|
|
1649
1654
|
icon: "bi:x-lg",
|
|
1650
1655
|
width: "18",
|
|
1651
1656
|
height: "18",
|
|
1652
|
-
onClick:
|
|
1657
|
+
onClick: x
|
|
1653
1658
|
})
|
|
1654
1659
|
]),
|
|
1655
1660
|
maximizeicon: f(() => [
|
|
1656
|
-
w(u(
|
|
1661
|
+
w(u(_), {
|
|
1657
1662
|
"data-cy": "maximisable-icon",
|
|
1658
1663
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1659
1664
|
width: "16",
|
|
@@ -1666,7 +1671,7 @@ const Nt = {
|
|
|
1666
1671
|
name: k,
|
|
1667
1672
|
fn: f((I) => [
|
|
1668
1673
|
k == "default" ? (d(), v(A, { key: 0 }, [
|
|
1669
|
-
|
|
1674
|
+
n.value.hasError ? (d(), v("div", Nt, [
|
|
1670
1675
|
w(de, {
|
|
1671
1676
|
severity: "danger",
|
|
1672
1677
|
"data-cy": "error",
|
|
@@ -1674,10 +1679,10 @@ const Nt = {
|
|
|
1674
1679
|
}, {
|
|
1675
1680
|
default: f(() => [
|
|
1676
1681
|
m("p", {
|
|
1677
|
-
class: S(
|
|
1678
|
-
}, F(
|
|
1679
|
-
|
|
1680
|
-
(d(!0), v(A, null, E(
|
|
1682
|
+
class: S(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1683
|
+
}, F(n.value.header), 3),
|
|
1684
|
+
n.value.message.length > 0 ? (d(), v("ul", At, [
|
|
1685
|
+
(d(!0), v(A, null, E(n.value.message, (g) => (d(), v("li", { key: g }, F(g), 1))), 128))
|
|
1681
1686
|
])) : z("", !0)
|
|
1682
1687
|
]),
|
|
1683
1688
|
_: 1
|
|
@@ -1685,7 +1690,7 @@ const Nt = {
|
|
|
1685
1690
|
])) : z("", !0)
|
|
1686
1691
|
], 64)) : z("", !0),
|
|
1687
1692
|
B($.$slots, k, W(G(I || {}))),
|
|
1688
|
-
|
|
1693
|
+
o.value ? B($.$slots, "loader", { key: 1 }, () => [
|
|
1689
1694
|
w(pe, { "data-cy": "loader" })
|
|
1690
1695
|
]) : z("", !0)
|
|
1691
1696
|
])
|
|
@@ -1698,7 +1703,7 @@ const Nt = {
|
|
|
1698
1703
|
label: $.cancelText,
|
|
1699
1704
|
class: S(l.cancelClass),
|
|
1700
1705
|
outlined: "",
|
|
1701
|
-
onClick:
|
|
1706
|
+
onClick: x,
|
|
1702
1707
|
id: "cancel-button",
|
|
1703
1708
|
type: l.cancelButtonType
|
|
1704
1709
|
}, null, 8, ["label", "class", "type"]),
|
|
@@ -1731,11 +1736,11 @@ const Nt = {
|
|
|
1731
1736
|
}),
|
|
1732
1737
|
emits: ["update:modelValue"],
|
|
1733
1738
|
setup(e) {
|
|
1734
|
-
const t = e, a = N(e, "modelValue"), i =
|
|
1739
|
+
const t = e, a = N(e, "modelValue"), i = P(!1), l = P(), o = () => {
|
|
1735
1740
|
var $;
|
|
1736
1741
|
i.value = !i.value, ($ = l.value) == null || $.focus();
|
|
1737
|
-
},
|
|
1738
|
-
if (
|
|
1742
|
+
}, n = async () => {
|
|
1743
|
+
if (h.value)
|
|
1739
1744
|
return !1;
|
|
1740
1745
|
if (a.value = r.value, t.completeAction)
|
|
1741
1746
|
try {
|
|
@@ -1749,13 +1754,13 @@ const Nt = {
|
|
|
1749
1754
|
i.value = !i.value;
|
|
1750
1755
|
}, p = () => {
|
|
1751
1756
|
r.value = null;
|
|
1752
|
-
}, { errorMessage: c, errors:
|
|
1757
|
+
}, { errorMessage: c, errors: x, value: r } = ne(() => t.name, void 0, {
|
|
1753
1758
|
initialValue: a.value
|
|
1754
1759
|
});
|
|
1755
|
-
|
|
1760
|
+
oe(() => {
|
|
1756
1761
|
r.value = a.value;
|
|
1757
1762
|
});
|
|
1758
|
-
const
|
|
1763
|
+
const h = T(() => x.value.length > 0);
|
|
1759
1764
|
return ($, D) => {
|
|
1760
1765
|
const O = se, U = q;
|
|
1761
1766
|
return d(), v("div", {
|
|
@@ -1769,8 +1774,8 @@ const Nt = {
|
|
|
1769
1774
|
i.value ? (d(), v("div", Lt, [
|
|
1770
1775
|
J((d(), v("div", Rt, [
|
|
1771
1776
|
B($.$slots, "editor", {
|
|
1772
|
-
class: S({ "is-invalid":
|
|
1773
|
-
editFinished:
|
|
1777
|
+
class: S({ "is-invalid": h.value }),
|
|
1778
|
+
editFinished: n,
|
|
1774
1779
|
cancel: s,
|
|
1775
1780
|
val: u(r)
|
|
1776
1781
|
}, () => [
|
|
@@ -1781,14 +1786,14 @@ const Nt = {
|
|
|
1781
1786
|
"data-cy": "input",
|
|
1782
1787
|
ref_key: "input",
|
|
1783
1788
|
ref: l,
|
|
1784
|
-
class: S({ "is-invalid":
|
|
1789
|
+
class: S({ "is-invalid": h.value }),
|
|
1785
1790
|
onKeydown: [
|
|
1786
|
-
le(
|
|
1791
|
+
le(n, ["enter"]),
|
|
1787
1792
|
le(s, ["esc"])
|
|
1788
1793
|
]
|
|
1789
1794
|
}, null, 8, ["modelValue", "class"])
|
|
1790
1795
|
]),
|
|
1791
|
-
w(u(
|
|
1796
|
+
w(u(_), {
|
|
1792
1797
|
icon: "bi:x-circle",
|
|
1793
1798
|
class: "mx-2 cursor-pointer",
|
|
1794
1799
|
onClick: p,
|
|
@@ -1796,17 +1801,17 @@ const Nt = {
|
|
|
1796
1801
|
"data-cy": "clear-icon"
|
|
1797
1802
|
})
|
|
1798
1803
|
])), [
|
|
1799
|
-
[u(Me),
|
|
1804
|
+
[u(Me), n]
|
|
1800
1805
|
])
|
|
1801
1806
|
])) : (d(), v("div", {
|
|
1802
1807
|
key: 1,
|
|
1803
1808
|
class: "d-flex text-muted",
|
|
1804
|
-
onClick:
|
|
1805
|
-
onFocus:
|
|
1809
|
+
onClick: o,
|
|
1810
|
+
onFocus: o
|
|
1806
1811
|
}, [
|
|
1807
1812
|
B($.$slots, "default", {}, () => [
|
|
1808
1813
|
m("div", {
|
|
1809
|
-
class: S(["pe-2 cursor-pointer", { "text-invalid":
|
|
1814
|
+
class: S(["pe-2 cursor-pointer", { "text-invalid": h.value }]),
|
|
1810
1815
|
"data-cy": "value"
|
|
1811
1816
|
}, F(u(r) ? u(r) : "Click to edit"), 3)
|
|
1812
1817
|
]),
|
|
@@ -1815,11 +1820,11 @@ const Nt = {
|
|
|
1815
1820
|
class: "p-0 m-0"
|
|
1816
1821
|
}, {
|
|
1817
1822
|
default: f(() => [
|
|
1818
|
-
w(u(
|
|
1823
|
+
w(u(_), {
|
|
1819
1824
|
icon: "bi:pencil",
|
|
1820
|
-
class: S(
|
|
1825
|
+
class: S(h.value ? "text-invalid" : "text-muted"),
|
|
1821
1826
|
"data-cy": "edit-icon",
|
|
1822
|
-
onKeydown: le(
|
|
1827
|
+
onKeydown: le(o, ["enter"])
|
|
1823
1828
|
}, null, 8, ["class"])
|
|
1824
1829
|
]),
|
|
1825
1830
|
_: 1
|
|
@@ -1830,12 +1835,12 @@ const Nt = {
|
|
|
1830
1835
|
"data-cy": "error",
|
|
1831
1836
|
class: "text-invalid"
|
|
1832
1837
|
}, F(u(c)), 513), [
|
|
1833
|
-
[Z,
|
|
1838
|
+
[Z, h.value]
|
|
1834
1839
|
])
|
|
1835
1840
|
], 8, Ut);
|
|
1836
1841
|
};
|
|
1837
1842
|
}
|
|
1838
|
-
}), Yt = ["href"],
|
|
1843
|
+
}), Yt = ["href"], nl = /* @__PURE__ */ C({
|
|
1839
1844
|
__name: "ForgeNavbar",
|
|
1840
1845
|
props: {
|
|
1841
1846
|
severity: { default: "light" },
|
|
@@ -1880,7 +1885,7 @@ const Nt = {
|
|
|
1880
1885
|
]
|
|
1881
1886
|
})
|
|
1882
1887
|
}));
|
|
1883
|
-
return (i, l) => (d(), y(u(Ve),
|
|
1888
|
+
return (i, l) => (d(), y(u(Ve), j({ ...t, ...i.$attrs }, {
|
|
1884
1889
|
pt: a.value,
|
|
1885
1890
|
"data-cy": "navbar"
|
|
1886
1891
|
}), ae({
|
|
@@ -1897,7 +1902,7 @@ const Nt = {
|
|
|
1897
1902
|
]),
|
|
1898
1903
|
buttonicon: f(() => [
|
|
1899
1904
|
B(i.$slots, "buttonIcon", {}, () => [
|
|
1900
|
-
w(u(
|
|
1905
|
+
w(u(_), {
|
|
1901
1906
|
icon: "bi:list",
|
|
1902
1907
|
class: S(t.severity === "light" ? "text-black" : "text-white"),
|
|
1903
1908
|
height: "24",
|
|
@@ -1907,10 +1912,10 @@ const Nt = {
|
|
|
1907
1912
|
]),
|
|
1908
1913
|
_: 2
|
|
1909
1914
|
}, [
|
|
1910
|
-
E(i.$slots, (
|
|
1911
|
-
name:
|
|
1915
|
+
E(i.$slots, (o, n) => ({
|
|
1916
|
+
name: n,
|
|
1912
1917
|
fn: f((s) => [
|
|
1913
|
-
B(i.$slots,
|
|
1918
|
+
B(i.$slots, n, W(G(s)))
|
|
1914
1919
|
])
|
|
1915
1920
|
}))
|
|
1916
1921
|
]), 1040, ["pt"]));
|
|
@@ -1939,10 +1944,10 @@ const Nt = {
|
|
|
1939
1944
|
emits: ["update:modelValue"],
|
|
1940
1945
|
setup(e) {
|
|
1941
1946
|
const t = e, a = N(e, "modelValue"), i = (l) => {
|
|
1942
|
-
a.value = a.value.filter((
|
|
1947
|
+
a.value = a.value.filter((o) => o.id !== l);
|
|
1943
1948
|
};
|
|
1944
|
-
return (l,
|
|
1945
|
-
const
|
|
1949
|
+
return (l, o) => {
|
|
1950
|
+
const n = re, s = q;
|
|
1946
1951
|
return d(), v("div", {
|
|
1947
1952
|
class: S(l.orientation === "column" ? "row" : ""),
|
|
1948
1953
|
"data-cy": "multiselect-preview"
|
|
@@ -1951,9 +1956,9 @@ const Nt = {
|
|
|
1951
1956
|
class: S(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1952
1957
|
"data-cy": "multiselect-container"
|
|
1953
1958
|
}, [
|
|
1954
|
-
w(
|
|
1959
|
+
w(n, j({
|
|
1955
1960
|
modelValue: a.value,
|
|
1956
|
-
"onUpdate:modelValue":
|
|
1961
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => a.value = p)
|
|
1957
1962
|
}, { ...l.$attrs }, {
|
|
1958
1963
|
options: t.options ?? [],
|
|
1959
1964
|
optionLabel: "label",
|
|
@@ -1991,7 +1996,7 @@ const Nt = {
|
|
|
1991
1996
|
onClick: (c) => i(p.id)
|
|
1992
1997
|
}, {
|
|
1993
1998
|
default: f(() => [
|
|
1994
|
-
w(u(
|
|
1999
|
+
w(u(_), {
|
|
1995
2000
|
icon: "bi:x",
|
|
1996
2001
|
class: "close-icon",
|
|
1997
2002
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -2027,7 +2032,7 @@ const Nt = {
|
|
|
2027
2032
|
])
|
|
2028
2033
|
]));
|
|
2029
2034
|
}
|
|
2030
|
-
}), ia = { class: "d-flex" }, la = { "data-cy": "before-slot" },
|
|
2035
|
+
}), ia = { class: "d-flex" }, la = { "data-cy": "before-slot" }, oa = { class: "position-relative w-100" }, na = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ C({
|
|
2031
2036
|
__name: "ForgeDatepicker",
|
|
2032
2037
|
props: /* @__PURE__ */ R({
|
|
2033
2038
|
severity: { default: "primary" },
|
|
@@ -2102,12 +2107,12 @@ const Nt = {
|
|
|
2102
2107
|
}),
|
|
2103
2108
|
emits: ["update:modelValue"],
|
|
2104
2109
|
setup(e) {
|
|
2105
|
-
const t = e, a = N(e, "modelValue"), { errors: i, errorMessage: l, handleChange:
|
|
2110
|
+
const t = e, a = N(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: n, setValue: s } = ne(() => t.name, void 0, {
|
|
2106
2111
|
initialValue: a.value
|
|
2107
2112
|
}), p = () => {
|
|
2108
2113
|
s(null), a.value = null;
|
|
2109
|
-
}, c = T(() => i.value.length > 0),
|
|
2110
|
-
day: ({ context: r, props:
|
|
2114
|
+
}, c = T(() => i.value.length > 0), x = T(() => ({
|
|
2115
|
+
day: ({ context: r, props: h, attrs: $ }) => ({
|
|
2111
2116
|
class: [
|
|
2112
2117
|
"d-flex justify-content-center align-items-center",
|
|
2113
2118
|
{
|
|
@@ -2122,8 +2127,8 @@ const Nt = {
|
|
|
2122
2127
|
//This is used to show which dates should be shows as 'disabled'. The first part of logic is used to only (due to prime vue passing
|
|
2123
2128
|
//disabled for otherMonth dates) show the disabled styling for current calendar dates. The second part of logic is used to set the
|
|
2124
2129
|
//disabled state for dates out of the min/max date range, as they would also come through the context as disabled dates without knowing why
|
|
2125
|
-
"text-grey-300": r.disabled && !r.otherMonth ||
|
|
2126
|
-
"fw-500": r.disabled && !r.otherMonth ||
|
|
2130
|
+
"text-grey-300": r.disabled && !r.otherMonth || h.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < h.minDate || h.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > h.maxDate,
|
|
2131
|
+
"fw-500": r.disabled && !r.otherMonth || h.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < h.minDate || h.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > h.maxDate
|
|
2127
2132
|
},
|
|
2128
2133
|
// Severities
|
|
2129
2134
|
{
|
|
@@ -2211,32 +2216,32 @@ const Nt = {
|
|
|
2211
2216
|
]
|
|
2212
2217
|
})
|
|
2213
2218
|
}));
|
|
2214
|
-
return (r,
|
|
2219
|
+
return (r, h) => {
|
|
2215
2220
|
const $ = De;
|
|
2216
2221
|
return d(), v(A, null, [
|
|
2217
2222
|
m("div", ia, [
|
|
2218
2223
|
m("span", la, [
|
|
2219
2224
|
B(r.$slots, "before")
|
|
2220
2225
|
]),
|
|
2221
|
-
m("div",
|
|
2222
|
-
w($,
|
|
2223
|
-
pt:
|
|
2226
|
+
m("div", oa, [
|
|
2227
|
+
w($, j({ ...t, ...r.$attrs }, {
|
|
2228
|
+
pt: x.value,
|
|
2224
2229
|
modelValue: a.value,
|
|
2225
2230
|
"onUpdate:modelValue": [
|
|
2226
|
-
|
|
2227
|
-
u(
|
|
2231
|
+
h[0] || (h[0] = (D) => a.value = D),
|
|
2232
|
+
u(o)
|
|
2228
2233
|
],
|
|
2229
|
-
onBlur:
|
|
2234
|
+
onBlur: h[1] || (h[1] = () => u(n)),
|
|
2230
2235
|
"input-class": { "text-truncate": !0, "datepicker-invalid": c.value, "pe-5": t.showIcon && t.modelValue, "pe-4": (t.showIcon || t.modelValue) && !(t.showIcon && t.modelValue) }
|
|
2231
2236
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2232
|
-
J(w(u(
|
|
2237
|
+
J(w(u(_), {
|
|
2233
2238
|
"data-cy": "icon",
|
|
2234
2239
|
icon: "bi:calendar4",
|
|
2235
2240
|
class: S(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white pe-none", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2236
2241
|
}, null, 8, ["class"]), [
|
|
2237
2242
|
[Z, t.showIcon && !t.inline]
|
|
2238
2243
|
]),
|
|
2239
|
-
J(w(u(
|
|
2244
|
+
J(w(u(_), {
|
|
2240
2245
|
"data-cy": "icon",
|
|
2241
2246
|
icon: "bi:x",
|
|
2242
2247
|
onClick: p,
|
|
@@ -2245,7 +2250,7 @@ const Nt = {
|
|
|
2245
2250
|
[Z, t.modelValue && !t.inline]
|
|
2246
2251
|
])
|
|
2247
2252
|
]),
|
|
2248
|
-
m("span",
|
|
2253
|
+
m("span", na, [
|
|
2249
2254
|
B(r.$slots, "after")
|
|
2250
2255
|
])
|
|
2251
2256
|
]),
|
|
@@ -2282,7 +2287,7 @@ const Nt = {
|
|
|
2282
2287
|
hideCancel: { type: Boolean, default: !1 }
|
|
2283
2288
|
},
|
|
2284
2289
|
setup(e) {
|
|
2285
|
-
const t = e, a =
|
|
2290
|
+
const t = e, a = P(!1), i = P({
|
|
2286
2291
|
hasError: !1,
|
|
2287
2292
|
message: ""
|
|
2288
2293
|
});
|
|
@@ -2290,26 +2295,26 @@ const Nt = {
|
|
|
2290
2295
|
a.value = !0, i.value.hasError = !1;
|
|
2291
2296
|
try {
|
|
2292
2297
|
await t.onSubmit();
|
|
2293
|
-
} catch (
|
|
2294
|
-
i.value.hasError = !0,
|
|
2298
|
+
} catch (o) {
|
|
2299
|
+
i.value.hasError = !0, o.message && (i.value.message = o.message);
|
|
2295
2300
|
}
|
|
2296
2301
|
a.value = !1;
|
|
2297
2302
|
}
|
|
2298
|
-
return (
|
|
2303
|
+
return (o, n) => {
|
|
2299
2304
|
const s = q;
|
|
2300
|
-
return d(), v("form",
|
|
2305
|
+
return d(), v("form", j(o.$attrs, {
|
|
2301
2306
|
novalidate: "",
|
|
2302
2307
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2303
2308
|
onSubmit: X(l, ["prevent"])
|
|
2304
2309
|
}), [
|
|
2305
|
-
|
|
2306
|
-
B(
|
|
2310
|
+
o.hideTitle ? z("", !0) : (d(), v(A, { key: 0 }, [
|
|
2311
|
+
B(o.$slots, "title", {}, () => [
|
|
2307
2312
|
m("h3", {
|
|
2308
|
-
class: S(
|
|
2313
|
+
class: S(o.titleClass),
|
|
2309
2314
|
"data-cy": "form-title"
|
|
2310
|
-
}, F(
|
|
2315
|
+
}, F(o.title), 3)
|
|
2311
2316
|
]),
|
|
2312
|
-
|
|
2317
|
+
n[1] || (n[1] = m("hr", null, null, -1))
|
|
2313
2318
|
], 64)),
|
|
2314
2319
|
i.value.hasError ? (d(), y(de, {
|
|
2315
2320
|
key: 1,
|
|
@@ -2317,7 +2322,7 @@ const Nt = {
|
|
|
2317
2322
|
"data-cy": "error"
|
|
2318
2323
|
}, {
|
|
2319
2324
|
default: f(() => [
|
|
2320
|
-
B(
|
|
2325
|
+
B(o.$slots, "error", {
|
|
2321
2326
|
error: i.value.message
|
|
2322
2327
|
}, () => [
|
|
2323
2328
|
M(F(i.value.message), 1)
|
|
@@ -2325,24 +2330,24 @@ const Nt = {
|
|
|
2325
2330
|
]),
|
|
2326
2331
|
_: 3
|
|
2327
2332
|
})) : z("", !0),
|
|
2328
|
-
B(
|
|
2333
|
+
B(o.$slots, "default"),
|
|
2329
2334
|
m("div", sa, [
|
|
2330
|
-
B(
|
|
2331
|
-
|
|
2335
|
+
B(o.$slots, "cancel", {}, () => [
|
|
2336
|
+
o.hideCancel ? z("", !0) : (d(), y(s, {
|
|
2332
2337
|
key: 0,
|
|
2333
2338
|
"data-cy": "cancel-btn",
|
|
2334
2339
|
type: "reset",
|
|
2335
2340
|
severity: "secondary",
|
|
2336
2341
|
outlined: "",
|
|
2337
|
-
onClick:
|
|
2342
|
+
onClick: n[0] || (n[0] = (p) => o.$emit("cancel"))
|
|
2338
2343
|
}, {
|
|
2339
2344
|
default: f(() => [
|
|
2340
|
-
M(F(
|
|
2345
|
+
M(F(o.cancelText), 1)
|
|
2341
2346
|
]),
|
|
2342
2347
|
_: 1
|
|
2343
2348
|
}))
|
|
2344
2349
|
]),
|
|
2345
|
-
B(
|
|
2350
|
+
B(o.$slots, "submit", { submit: l }, () => [
|
|
2346
2351
|
w(s, {
|
|
2347
2352
|
"data-cy": "submit-btn",
|
|
2348
2353
|
type: "submit",
|
|
@@ -2350,7 +2355,7 @@ const Nt = {
|
|
|
2350
2355
|
class: "ms-auto"
|
|
2351
2356
|
}, {
|
|
2352
2357
|
default: f(() => [
|
|
2353
|
-
M(F(
|
|
2358
|
+
M(F(o.submitText), 1)
|
|
2354
2359
|
]),
|
|
2355
2360
|
_: 1
|
|
2356
2361
|
})
|
|
@@ -2386,20 +2391,20 @@ const Nt = {
|
|
|
2386
2391
|
}),
|
|
2387
2392
|
emits: ["update:modelValue"],
|
|
2388
2393
|
setup(e) {
|
|
2389
|
-
const t = N(e, "modelValue"), a = e, i = (
|
|
2390
|
-
a.type == "number" ? s(
|
|
2391
|
-
}, { errors: l, value:
|
|
2394
|
+
const t = N(e, "modelValue"), a = e, i = (x) => {
|
|
2395
|
+
a.type == "number" ? s(x.value) : s(x);
|
|
2396
|
+
}, { errors: l, value: o, errorMessage: n, handleChange: s, handleBlur: p } = ne(() => a.name, void 0, {
|
|
2392
2397
|
initialValue: t.value
|
|
2393
2398
|
}), c = T(() => l.value.length > 0);
|
|
2394
|
-
return Q(() =>
|
|
2395
|
-
t.value =
|
|
2396
|
-
}, { immediate: !0 }), (
|
|
2397
|
-
const
|
|
2398
|
-
return a.type === "checkbox" ? (d(), y(ye,
|
|
2399
|
+
return Q(() => o.value, (x) => {
|
|
2400
|
+
t.value = x;
|
|
2401
|
+
}, { immediate: !0 }), (x, r) => {
|
|
2402
|
+
const h = Ne, $ = Oe, D = se, O = ie, U = re, b = xe;
|
|
2403
|
+
return a.type === "checkbox" ? (d(), y(ye, j({
|
|
2399
2404
|
key: 0,
|
|
2400
2405
|
id: a.name,
|
|
2401
2406
|
label: a.fieldLabel
|
|
2402
|
-
},
|
|
2407
|
+
}, x.$attrs, {
|
|
2403
2408
|
name: a.name,
|
|
2404
2409
|
modelValue: t.value,
|
|
2405
2410
|
"onUpdate:modelValue": r[0] || (r[0] = (k) => t.value = k)
|
|
@@ -2413,33 +2418,33 @@ const Nt = {
|
|
|
2413
2418
|
class: S(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2414
2419
|
}, [
|
|
2415
2420
|
M(F(a.fieldLabel) + " ", 1),
|
|
2416
|
-
|
|
2421
|
+
x.required ? (d(), v("span", pa, "*")) : z("", !0)
|
|
2417
2422
|
], 10, da),
|
|
2418
|
-
B(
|
|
2419
|
-
a.type === "number" ? (d(), y(u(fe),
|
|
2423
|
+
B(x.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2424
|
+
a.type === "number" ? (d(), y(u(fe), j({
|
|
2420
2425
|
key: 0,
|
|
2421
2426
|
id: a.name
|
|
2422
|
-
},
|
|
2427
|
+
}, x.$attrs, {
|
|
2423
2428
|
placeholder: a.placeholder,
|
|
2424
2429
|
"input-class": { "is-invalid": c.value },
|
|
2425
2430
|
class: { "is-invalid": c.value },
|
|
2426
2431
|
onInput: i,
|
|
2427
2432
|
modelValue: t.value,
|
|
2428
2433
|
"onUpdate:modelValue": r[1] || (r[1] = (k) => t.value = k)
|
|
2429
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), y(
|
|
2434
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), y(h, j({
|
|
2430
2435
|
key: 1,
|
|
2431
2436
|
id: a.name
|
|
2432
|
-
},
|
|
2437
|
+
}, x.$attrs, {
|
|
2433
2438
|
placeholder: a.placeholder,
|
|
2434
2439
|
class: { "is-invalid": c.value },
|
|
2435
2440
|
modelValue: t.value,
|
|
2436
2441
|
"onUpdate:modelValue": r[2] || (r[2] = (k) => t.value = k),
|
|
2437
2442
|
onInput: i,
|
|
2438
2443
|
onBlur: u(p)
|
|
2439
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), y($,
|
|
2444
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), y($, j({
|
|
2440
2445
|
key: 2,
|
|
2441
2446
|
id: a.name
|
|
2442
|
-
},
|
|
2447
|
+
}, x.$attrs, {
|
|
2443
2448
|
placeholder: a.placeholder,
|
|
2444
2449
|
mask: a.mask,
|
|
2445
2450
|
class: { "is-invalid": c.value },
|
|
@@ -2447,29 +2452,29 @@ const Nt = {
|
|
|
2447
2452
|
"onUpdate:modelValue": r[3] || (r[3] = (k) => t.value = k),
|
|
2448
2453
|
onComplete: i,
|
|
2449
2454
|
onBlur: u(p)
|
|
2450
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), y(D,
|
|
2455
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), y(D, j({
|
|
2451
2456
|
key: 3,
|
|
2452
2457
|
id: a.name
|
|
2453
|
-
},
|
|
2458
|
+
}, x.$attrs, {
|
|
2454
2459
|
placeholder: a.placeholder,
|
|
2455
2460
|
class: { "is-invalid": c.value },
|
|
2456
2461
|
modelValue: t.value,
|
|
2457
2462
|
"onUpdate:modelValue": r[4] || (r[4] = (k) => t.value = k),
|
|
2458
2463
|
onInput: i,
|
|
2459
2464
|
onBlur: u(p)
|
|
2460
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), y(O,
|
|
2465
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), y(O, j({ key: 4 }, { ...a, ...x.$attrs }, {
|
|
2461
2466
|
modelValue: t.value,
|
|
2462
2467
|
"onUpdate:modelValue": r[5] || (r[5] = (k) => t.value = k),
|
|
2463
2468
|
class: { "is-invalid": c.value }
|
|
2464
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), y(U,
|
|
2469
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), y(U, j({ key: 5 }, { ...a, ...x.$attrs }, {
|
|
2465
2470
|
modelValue: t.value,
|
|
2466
2471
|
"onUpdate:modelValue": r[6] || (r[6] = (k) => t.value = k),
|
|
2467
2472
|
class: { "is-invalid": c.value }
|
|
2468
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), y(Qt,
|
|
2473
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), y(Qt, j({ key: 6 }, { ...a, ...x.$attrs }, {
|
|
2469
2474
|
modelValue: t.value,
|
|
2470
2475
|
"onUpdate:modelValue": r[7] || (r[7] = (k) => t.value = k),
|
|
2471
2476
|
class: { "is-invalid": c.value }
|
|
2472
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), y(b,
|
|
2477
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), y(b, j({ key: 7 }, { ...a, ...x.$attrs }, {
|
|
2473
2478
|
modelValue: t.value,
|
|
2474
2479
|
"onUpdate:modelValue": r[8] || (r[8] = (k) => t.value = k),
|
|
2475
2480
|
class: { "is-invalid": c.value }
|
|
@@ -2479,7 +2484,7 @@ const Nt = {
|
|
|
2479
2484
|
J(m("small", {
|
|
2480
2485
|
"data-cy": "error",
|
|
2481
2486
|
class: "invalid-feedback"
|
|
2482
|
-
}, F(u(
|
|
2487
|
+
}, F(u(n)), 513), [
|
|
2483
2488
|
[Z, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2484
2489
|
])
|
|
2485
2490
|
]));
|
|
@@ -2520,10 +2525,10 @@ const Nt = {
|
|
|
2520
2525
|
]
|
|
2521
2526
|
}));
|
|
2522
2527
|
return (i, l) => {
|
|
2523
|
-
const
|
|
2524
|
-
return d(), y(
|
|
2528
|
+
const o = Ae;
|
|
2529
|
+
return d(), y(o, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2525
2530
|
default: f(() => [
|
|
2526
|
-
(d(!0), v(A, null, E(i.$slots, (
|
|
2531
|
+
(d(!0), v(A, null, E(i.$slots, (n, s) => B(i.$slots, s, { slot: s })), 256))
|
|
2527
2532
|
]),
|
|
2528
2533
|
_: 3
|
|
2529
2534
|
}, 16, ["pt"]);
|
|
@@ -2566,7 +2571,7 @@ const Nt = {
|
|
|
2566
2571
|
default:
|
|
2567
2572
|
return "bg-primary";
|
|
2568
2573
|
}
|
|
2569
|
-
}),
|
|
2574
|
+
}), o = T(() => ({
|
|
2570
2575
|
root: {
|
|
2571
2576
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2572
2577
|
},
|
|
@@ -2574,11 +2579,11 @@ const Nt = {
|
|
|
2574
2579
|
class: [l.value, a.value, i.value, "progress-bar"]
|
|
2575
2580
|
}
|
|
2576
2581
|
}));
|
|
2577
|
-
return (
|
|
2582
|
+
return (n, s) => {
|
|
2578
2583
|
const p = Ee;
|
|
2579
|
-
return d(), y(p,
|
|
2584
|
+
return d(), y(p, j({ ...n.$attrs, ...t }, { pt: o.value }), {
|
|
2580
2585
|
default: f(() => [
|
|
2581
|
-
B(
|
|
2586
|
+
B(n.$slots, "default")
|
|
2582
2587
|
]),
|
|
2583
2588
|
_: 3
|
|
2584
2589
|
}, 16, ["pt"]);
|
|
@@ -2896,15 +2901,15 @@ var ca = /* @__PURE__ */ C({
|
|
|
2896
2901
|
e && this.save();
|
|
2897
2902
|
});
|
|
2898
2903
|
},
|
|
2899
|
-
wrapText(e, t, a, i, l,
|
|
2900
|
-
const
|
|
2901
|
-
var p = t.split(
|
|
2904
|
+
wrapText(e, t, a, i, l, o) {
|
|
2905
|
+
const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2906
|
+
var p = t.split(n).filter((O) => O.length > 0);
|
|
2902
2907
|
for (let O = 0; O < p.length; O++) {
|
|
2903
|
-
for (var c = p[O].split(s).filter((U) => U.length > 0),
|
|
2904
|
-
var
|
|
2905
|
-
D > l && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2908
|
+
for (var c = p[O].split(s).filter((U) => U.length > 0), x = "", r = 0; r < c.length; r++) {
|
|
2909
|
+
var h = x + c[r] + " ", $ = e.measureText(h), D = $.width;
|
|
2910
|
+
D > l && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), x = c[r] + " ", i += o) : x = h;
|
|
2906
2911
|
}
|
|
2907
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2912
|
+
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), i += c.length > 0 ? o : 0;
|
|
2908
2913
|
}
|
|
2909
2914
|
},
|
|
2910
2915
|
save() {
|
|
@@ -2921,23 +2926,23 @@ var ca = /* @__PURE__ */ C({
|
|
|
2921
2926
|
drawWatermark(e, t, a) {
|
|
2922
2927
|
if (a.type === "Image") {
|
|
2923
2928
|
let i = a.imageStyle ? a.imageStyle.width ? a.imageStyle.width : Number(this.width) : Number(this.width), l = a.imageStyle ? a.imageStyle.height ? a.imageStyle.height : Number(this.height) : Number(this.height);
|
|
2924
|
-
const
|
|
2925
|
-
|
|
2926
|
-
a && t && t.drawImage(
|
|
2927
|
-
let
|
|
2928
|
-
if (
|
|
2929
|
-
return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image",
|
|
2929
|
+
const o = new Image();
|
|
2930
|
+
o.src = a.source, o.onload = () => {
|
|
2931
|
+
a && t && t.drawImage(o, a.x, a.y, Number(i), Number(l));
|
|
2932
|
+
let n = document.createElement("canvas"), s = n.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, c = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2933
|
+
if (n.width = Number(p), n.height = Number(c), s)
|
|
2934
|
+
return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image", n.toDataURL("image/" + this.saveAs, 1)), n.toDataURL("image/" + this.saveAs, 1);
|
|
2930
2935
|
};
|
|
2931
2936
|
} else if (a.type === "Text") {
|
|
2932
|
-
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start",
|
|
2933
|
-
if (t.font = i, t.textAlign = l, t.textBaseline =
|
|
2934
|
-
let r,
|
|
2935
|
-
a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ?
|
|
2937
|
+
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", o = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", n = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
|
|
2938
|
+
if (t.font = i, t.textAlign = l, t.textBaseline = o, a.fontStyle && a.fontStyle.rotate) {
|
|
2939
|
+
let r, h;
|
|
2940
|
+
a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ? h = a.y + Math.floor(a.fontStyle.lineHeight / 2) : h = a.y, t.translate(r, h), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(r * -1, h * -1);
|
|
2936
2941
|
}
|
|
2937
|
-
a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle =
|
|
2938
|
-
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
2939
|
-
if (s.width = Number(c), s.height = Number(
|
|
2940
|
-
return p.drawImage(e, 0, 0, Number(c), Number(
|
|
2942
|
+
a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = n, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
|
|
2943
|
+
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, x = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2944
|
+
if (s.width = Number(c), s.height = Number(x), p)
|
|
2945
|
+
return p.drawImage(e, 0, 0, Number(c), Number(x)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
|
|
2941
2946
|
}
|
|
2942
2947
|
},
|
|
2943
2948
|
isEmpty() {
|
|
@@ -2988,7 +2993,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
2988
2993
|
},
|
|
2989
2994
|
emits: ["save"],
|
|
2990
2995
|
setup(e, { emit: t }) {
|
|
2991
|
-
const a = e, i = t, l = ze("drawingCanvas"),
|
|
2996
|
+
const a = e, i = t, l = ze("drawingCanvas"), o = P(), n = () => {
|
|
2992
2997
|
l == null || l.value.reset();
|
|
2993
2998
|
}, s = () => {
|
|
2994
2999
|
l == null || l.value.redo();
|
|
@@ -2997,24 +3002,24 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
2997
3002
|
}, c = () => {
|
|
2998
3003
|
i("save", l.value.isEmpty());
|
|
2999
3004
|
};
|
|
3000
|
-
return (
|
|
3001
|
-
const
|
|
3005
|
+
return (x, r) => {
|
|
3006
|
+
const h = q;
|
|
3002
3007
|
return d(), v("div", ua, [
|
|
3003
|
-
w(u(ca),
|
|
3008
|
+
w(u(ca), j({
|
|
3004
3009
|
ref_key: "drawingCanvas",
|
|
3005
3010
|
ref: l,
|
|
3006
|
-
image:
|
|
3007
|
-
"onUpdate:image": r[0] || (r[0] = ($) =>
|
|
3011
|
+
image: o.value,
|
|
3012
|
+
"onUpdate:image": r[0] || (r[0] = ($) => o.value = $),
|
|
3008
3013
|
"data-cy": "drawing-canvas",
|
|
3009
3014
|
class: "border canvas"
|
|
3010
|
-
}, { ...
|
|
3011
|
-
height:
|
|
3012
|
-
width:
|
|
3013
|
-
style: `height: ${
|
|
3014
|
-
"line-join":
|
|
3015
|
+
}, { ...x.$attrs }, {
|
|
3016
|
+
height: x.height,
|
|
3017
|
+
width: x.width,
|
|
3018
|
+
style: `height: ${x.height}px; width: ${x.width}px`,
|
|
3019
|
+
"line-join": x.lineJoin
|
|
3015
3020
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
3016
3021
|
m("div", ma, [
|
|
3017
|
-
a.showUndo ? (d(), y(
|
|
3022
|
+
a.showUndo ? (d(), y(h, {
|
|
3018
3023
|
key: 0,
|
|
3019
3024
|
onClick: p,
|
|
3020
3025
|
outlined: "",
|
|
@@ -3025,7 +3030,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3025
3030
|
])),
|
|
3026
3031
|
_: 1
|
|
3027
3032
|
})) : z("", !0),
|
|
3028
|
-
a.showRedo ? (d(), y(
|
|
3033
|
+
a.showRedo ? (d(), y(h, {
|
|
3029
3034
|
key: 1,
|
|
3030
3035
|
onClick: s,
|
|
3031
3036
|
outlined: "",
|
|
@@ -3036,9 +3041,9 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3036
3041
|
])),
|
|
3037
3042
|
_: 1
|
|
3038
3043
|
})) : z("", !0),
|
|
3039
|
-
a.showClear ? (d(), y(
|
|
3044
|
+
a.showClear ? (d(), y(h, {
|
|
3040
3045
|
key: 2,
|
|
3041
|
-
onClick:
|
|
3046
|
+
onClick: n,
|
|
3042
3047
|
outlined: "",
|
|
3043
3048
|
"data-cy": "clear-button"
|
|
3044
3049
|
}, {
|
|
@@ -3047,7 +3052,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3047
3052
|
])),
|
|
3048
3053
|
_: 1
|
|
3049
3054
|
})) : z("", !0),
|
|
3050
|
-
a.showSave ? (d(), y(
|
|
3055
|
+
a.showSave ? (d(), y(h, {
|
|
3051
3056
|
key: 3,
|
|
3052
3057
|
onClick: c,
|
|
3053
3058
|
class: "ms-auto",
|
|
@@ -3070,7 +3075,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3070
3075
|
},
|
|
3071
3076
|
setup(e) {
|
|
3072
3077
|
const t = e;
|
|
3073
|
-
return (a, i) => (d(), v("div",
|
|
3078
|
+
return (a, i) => (d(), v("div", j(a.$attrs, {
|
|
3074
3079
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3075
3080
|
}), [
|
|
3076
3081
|
m("span", va, [
|
|
@@ -3129,14 +3134,14 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3129
3134
|
default: f(() => [
|
|
3130
3135
|
w(u(Le), null, {
|
|
3131
3136
|
default: f(() => [
|
|
3132
|
-
(d(!0), v(A, null, E(i.steps, (
|
|
3133
|
-
key:
|
|
3134
|
-
value:
|
|
3135
|
-
disabled:
|
|
3137
|
+
(d(!0), v(A, null, E(i.steps, (o) => (d(), y(u(Ue), j({
|
|
3138
|
+
key: o.value,
|
|
3139
|
+
value: o.value,
|
|
3140
|
+
disabled: o.disabled,
|
|
3136
3141
|
ref_for: !0
|
|
3137
3142
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
3138
3143
|
default: f(() => [
|
|
3139
|
-
i.showStepLabel ? (d(), v("div", fa, F(
|
|
3144
|
+
i.showStepLabel ? (d(), v("div", fa, F(o.label), 1)) : z("", !0)
|
|
3140
3145
|
]),
|
|
3141
3146
|
_: 2
|
|
3142
3147
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -3145,12 +3150,12 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3145
3150
|
}),
|
|
3146
3151
|
w(u(He), null, {
|
|
3147
3152
|
default: f(() => [
|
|
3148
|
-
(d(!0), v(A, null, E(i.steps, (
|
|
3149
|
-
key:
|
|
3150
|
-
value:
|
|
3153
|
+
(d(!0), v(A, null, E(i.steps, (o) => (d(), y(u(Re), {
|
|
3154
|
+
key: o.value,
|
|
3155
|
+
value: o.value
|
|
3151
3156
|
}, {
|
|
3152
3157
|
default: f(() => [
|
|
3153
|
-
B(i.$slots, "step" +
|
|
3158
|
+
B(i.$slots, "step" + o.value)
|
|
3154
3159
|
]),
|
|
3155
3160
|
_: 2
|
|
3156
3161
|
}, 1032, ["value"]))), 128))
|
|
@@ -3171,9 +3176,9 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3171
3176
|
},
|
|
3172
3177
|
setup(e) {
|
|
3173
3178
|
const t = e, a = T(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = T(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
3174
|
-
return (l,
|
|
3175
|
-
const
|
|
3176
|
-
return t.clickable ? (d(), y(
|
|
3179
|
+
return (l, o) => {
|
|
3180
|
+
const n = q;
|
|
3181
|
+
return t.clickable ? (d(), y(n, {
|
|
3177
3182
|
key: 0,
|
|
3178
3183
|
class: S(["d-flex w-100 p-0 text-body", a.value]),
|
|
3179
3184
|
severity: t.severity,
|
|
@@ -3183,7 +3188,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3183
3188
|
default: f(() => [
|
|
3184
3189
|
m("div", ga, [
|
|
3185
3190
|
B(l.$slots, "default", {}, () => [
|
|
3186
|
-
|
|
3191
|
+
o[0] || (o[0] = M("Tile Content"))
|
|
3187
3192
|
])
|
|
3188
3193
|
])
|
|
3189
3194
|
]),
|
|
@@ -3195,7 +3200,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3195
3200
|
}, [
|
|
3196
3201
|
m("div", ba, [
|
|
3197
3202
|
B(l.$slots, "default", {}, () => [
|
|
3198
|
-
|
|
3203
|
+
o[1] || (o[1] = M("Tile Content"))
|
|
3199
3204
|
])
|
|
3200
3205
|
])
|
|
3201
3206
|
], 2));
|
|
@@ -3208,10 +3213,10 @@ function ee(e, t) {
|
|
|
3208
3213
|
const ya = {
|
|
3209
3214
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3210
3215
|
"data-cy": "pagination-header"
|
|
3211
|
-
},
|
|
3216
|
+
}, xa = { class: "ms-2" }, ha = { key: 0 }, wa = {
|
|
3212
3217
|
class: "w-auto",
|
|
3213
3218
|
"data-cy": "total"
|
|
3214
|
-
},
|
|
3219
|
+
}, he = /* @__PURE__ */ C({
|
|
3215
3220
|
__name: "ForgePaginationHeader",
|
|
3216
3221
|
props: {
|
|
3217
3222
|
total: {},
|
|
@@ -3220,15 +3225,15 @@ const ya = {
|
|
|
3220
3225
|
},
|
|
3221
3226
|
emits: ["update:perPage"],
|
|
3222
3227
|
setup(e, { emit: t }) {
|
|
3223
|
-
const a = t, i = e, l = (
|
|
3224
|
-
a("update:perPage",
|
|
3225
|
-
},
|
|
3226
|
-
const
|
|
3227
|
-
return `${
|
|
3228
|
+
const a = t, i = e, l = (n) => {
|
|
3229
|
+
a("update:perPage", n.value);
|
|
3230
|
+
}, o = T(() => {
|
|
3231
|
+
const n = Math.ceil(i.total / i.perPage);
|
|
3232
|
+
return `${n} ${ee(n, "page")}`;
|
|
3228
3233
|
});
|
|
3229
|
-
return (
|
|
3234
|
+
return (n, s) => (d(), v("div", ya, [
|
|
3230
3235
|
s[2] || (s[2] = M(" Number of results per page ")),
|
|
3231
|
-
m("div",
|
|
3236
|
+
m("div", xa, [
|
|
3232
3237
|
w(u(ie), {
|
|
3233
3238
|
options: i.pageSizes,
|
|
3234
3239
|
"model-value": i.perPage,
|
|
@@ -3237,9 +3242,9 @@ const ya = {
|
|
|
3237
3242
|
"data-cy": "pagination-page-size-select"
|
|
3238
3243
|
}, null, 8, ["options", "model-value"])
|
|
3239
3244
|
]),
|
|
3240
|
-
i.total ? (d(), v("div",
|
|
3245
|
+
i.total ? (d(), v("div", ha, [
|
|
3241
3246
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3242
|
-
m("span", wa, F(i.total) + " " + F(u(ee)(i.total, "result")) + " across " + F(
|
|
3247
|
+
m("span", wa, F(i.total) + " " + F(u(ee)(i.total, "result")) + " across " + F(o.value), 1)
|
|
3243
3248
|
])) : z("", !0)
|
|
3244
3249
|
]));
|
|
3245
3250
|
}
|
|
@@ -3333,21 +3338,21 @@ const ya = {
|
|
|
3333
3338
|
},
|
|
3334
3339
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3335
3340
|
setup(e, { emit: t }) {
|
|
3336
|
-
const a = t, i = e, l =
|
|
3341
|
+
const a = t, i = e, l = P(), o = P([5, 10, 20, 50, 100]), n = P(i.perPage ?? 10), s = P({
|
|
3337
3342
|
filters: i.filters,
|
|
3338
|
-
perPage:
|
|
3343
|
+
perPage: n.value,
|
|
3339
3344
|
page: 0,
|
|
3340
3345
|
sortDirection: "None",
|
|
3341
3346
|
sortField: "",
|
|
3342
3347
|
total: i.totalRecords ?? i.value.length
|
|
3343
3348
|
});
|
|
3344
3349
|
Q(() => i.perPage, (b) => {
|
|
3345
|
-
b && (
|
|
3350
|
+
b && (n.value = b, s.value.perPage = b);
|
|
3346
3351
|
});
|
|
3347
3352
|
const p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
|
|
3348
|
-
const b = Math.ceil(p.value /
|
|
3353
|
+
const b = Math.ceil(p.value / n.value);
|
|
3349
3354
|
return `${b} ${ee(b, "page")}`;
|
|
3350
|
-
}),
|
|
3355
|
+
}), x = T(() => ({
|
|
3351
3356
|
thead: () => ({
|
|
3352
3357
|
class: [
|
|
3353
3358
|
{
|
|
@@ -3377,7 +3382,7 @@ const ya = {
|
|
|
3377
3382
|
for (const b in i.filters)
|
|
3378
3383
|
typeof i.filters[b] == "string" ? i.filters[b] = "" : i.filters[b].value = null;
|
|
3379
3384
|
D(i.filters);
|
|
3380
|
-
},
|
|
3385
|
+
}, h = () => {
|
|
3381
3386
|
l.value.exportCSV();
|
|
3382
3387
|
}, $ = (b) => {
|
|
3383
3388
|
var k;
|
|
@@ -3387,19 +3392,19 @@ const ya = {
|
|
|
3387
3392
|
}, O = (b) => {
|
|
3388
3393
|
s.value.page = b.page, a("update:tableContext", s.value), a("page", b);
|
|
3389
3394
|
}, U = () => {
|
|
3390
|
-
s.value.perPage =
|
|
3395
|
+
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3391
3396
|
};
|
|
3392
3397
|
return Q(() => i.filters, (b) => {
|
|
3393
3398
|
s.value.filters = b, a("update:tableContext", s.value);
|
|
3394
|
-
}, { deep: !0 }),
|
|
3399
|
+
}, { deep: !0 }), oe(() => a("update:tableContext", s.value)), (b, k) => (d(), v("div", ka, [
|
|
3395
3400
|
m("span", $a, [
|
|
3396
3401
|
B(b.$slots, "above-table")
|
|
3397
3402
|
]),
|
|
3398
|
-
w(u(We),
|
|
3403
|
+
w(u(We), j({
|
|
3399
3404
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3400
3405
|
}, { ...i, ...b.$attrs }, {
|
|
3401
|
-
pt:
|
|
3402
|
-
rows:
|
|
3406
|
+
pt: x.value,
|
|
3407
|
+
rows: n.value,
|
|
3403
3408
|
"total-records": p.value,
|
|
3404
3409
|
"filter-display": i.filters ? "row" : void 0,
|
|
3405
3410
|
ref_key: "forgeTable",
|
|
@@ -3422,12 +3427,12 @@ const ya = {
|
|
|
3422
3427
|
m("div", Sa, [
|
|
3423
3428
|
m("div", Ca, [
|
|
3424
3429
|
b.paginator && !b.legacyPaginationFooter ? (d(), v("span", za, [
|
|
3425
|
-
w(
|
|
3430
|
+
w(he, {
|
|
3426
3431
|
total: p.value,
|
|
3427
|
-
"page-sizes":
|
|
3428
|
-
"per-page":
|
|
3432
|
+
"page-sizes": o.value,
|
|
3433
|
+
"per-page": n.value,
|
|
3429
3434
|
"onUpdate:perPage": [
|
|
3430
|
-
k[0] || (k[0] = (I) =>
|
|
3435
|
+
k[0] || (k[0] = (I) => n.value = I),
|
|
3431
3436
|
U
|
|
3432
3437
|
]
|
|
3433
3438
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
@@ -3442,7 +3447,7 @@ const ya = {
|
|
|
3442
3447
|
"data-cy": "clear-all"
|
|
3443
3448
|
}, {
|
|
3444
3449
|
default: f(() => [
|
|
3445
|
-
w(u(
|
|
3450
|
+
w(u(_), {
|
|
3446
3451
|
icon: "bi:funnel-fill",
|
|
3447
3452
|
width: "24",
|
|
3448
3453
|
height: "24"
|
|
@@ -3454,11 +3459,11 @@ const ya = {
|
|
|
3454
3459
|
b.showExporterButton ? (d(), y(u(q), {
|
|
3455
3460
|
key: 1,
|
|
3456
3461
|
outlined: "",
|
|
3457
|
-
onClick:
|
|
3462
|
+
onClick: h,
|
|
3458
3463
|
"data-cy": "exporter"
|
|
3459
3464
|
}, {
|
|
3460
3465
|
default: f(() => [
|
|
3461
|
-
w(u(
|
|
3466
|
+
w(u(_), {
|
|
3462
3467
|
icon: "typcn:export",
|
|
3463
3468
|
width: "24",
|
|
3464
3469
|
height: "24"
|
|
@@ -3492,9 +3497,9 @@ const ya = {
|
|
|
3492
3497
|
}, [
|
|
3493
3498
|
k[4] || (k[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3494
3499
|
w(u(ie), {
|
|
3495
|
-
options:
|
|
3496
|
-
modelValue:
|
|
3497
|
-
"onUpdate:modelValue": k[1] || (k[1] = (I) =>
|
|
3500
|
+
options: o.value,
|
|
3501
|
+
modelValue: n.value,
|
|
3502
|
+
"onUpdate:modelValue": k[1] || (k[1] = (I) => n.value = I),
|
|
3498
3503
|
class: "ms-2",
|
|
3499
3504
|
onClick: U
|
|
3500
3505
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -3515,7 +3520,7 @@ const ya = {
|
|
|
3515
3520
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3516
3521
|
]));
|
|
3517
3522
|
}
|
|
3518
|
-
}),
|
|
3523
|
+
}), ja = { class: "position-relative" }, _a = { "data-cy": "above-table-slot" }, Pa = { class: "d-flex w-100" }, Ia = {
|
|
3519
3524
|
class: "mx-auto",
|
|
3520
3525
|
"data-cy": "empty-message"
|
|
3521
3526
|
}, Ma = { class: "d-flex" }, Va = { class: "d-flex align-items-end mb-2" }, Da = { key: 0 }, Oa = { class: "ms-auto" }, yl = /* @__PURE__ */ C({
|
|
@@ -3579,15 +3584,15 @@ const ya = {
|
|
|
3579
3584
|
},
|
|
3580
3585
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3581
3586
|
setup(e, { emit: t }) {
|
|
3582
|
-
const a = e, i = t, l =
|
|
3587
|
+
const a = e, i = t, l = P([5, 10, 20, 50, 100]), o = P(10), n = P(0), s = P(0), p = P({
|
|
3583
3588
|
filters: a.filters,
|
|
3584
|
-
perPage:
|
|
3589
|
+
perPage: o.value,
|
|
3585
3590
|
page: 0,
|
|
3586
3591
|
sortDirection: "None",
|
|
3587
3592
|
sortField: "",
|
|
3588
3593
|
total: a.totalRecords ?? a.value.length
|
|
3589
|
-
}), c = T(() => a.totalRecords ?? a.value.length),
|
|
3590
|
-
const g = Math.ceil(c.value /
|
|
3594
|
+
}), c = T(() => a.totalRecords ?? a.value.length), x = T(() => {
|
|
3595
|
+
const g = Math.ceil(c.value / o.value);
|
|
3591
3596
|
return `${g} ${ee(g, "page")}`;
|
|
3592
3597
|
}), r = T(() => ({
|
|
3593
3598
|
root: "position-relative",
|
|
@@ -3625,9 +3630,9 @@ const ya = {
|
|
|
3625
3630
|
]
|
|
3626
3631
|
}));
|
|
3627
3632
|
Q(() => a.parentExpanderFullRow, (g) => {
|
|
3628
|
-
g ?
|
|
3633
|
+
g ? h() : $();
|
|
3629
3634
|
});
|
|
3630
|
-
const
|
|
3635
|
+
const h = () => {
|
|
3631
3636
|
a.parentExpanderFullRow && setTimeout(
|
|
3632
3637
|
() => {
|
|
3633
3638
|
const g = Array.from(
|
|
@@ -3668,44 +3673,44 @@ const ya = {
|
|
|
3668
3673
|
U(a.filters);
|
|
3669
3674
|
}, O = (g) => {
|
|
3670
3675
|
var V;
|
|
3671
|
-
p.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = g.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", g),
|
|
3676
|
+
p.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = g.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", g), h();
|
|
3672
3677
|
}, U = (g) => {
|
|
3673
|
-
p.value.filters = g, i("update:tableContext", p.value), i("update:filters", g),
|
|
3678
|
+
p.value.filters = g, i("update:tableContext", p.value), i("update:filters", g), h();
|
|
3674
3679
|
}, b = (g) => {
|
|
3675
|
-
p.value.page = s.value = g.page, I(), i("update:tableContext", p.value), i("page", g),
|
|
3680
|
+
p.value.page = s.value = g.page, I(), i("update:tableContext", p.value), i("page", g), h();
|
|
3676
3681
|
}, k = () => {
|
|
3677
|
-
p.value.perPage =
|
|
3682
|
+
p.value.perPage = o.value, s.value = 0, p.value.page = s.value = Math.floor(n.value / o.value), I(), i("update:tableContext", p.value), h();
|
|
3678
3683
|
};
|
|
3679
3684
|
Q(() => a.filters, (g) => {
|
|
3680
3685
|
p.value.filters = g, i("update:tableContext", p.value);
|
|
3681
3686
|
}, { deep: !0 }), Q(() => a.value, () => {
|
|
3682
|
-
|
|
3683
|
-
}),
|
|
3684
|
-
|
|
3687
|
+
h();
|
|
3688
|
+
}), oe(() => {
|
|
3689
|
+
h(), i("update:tableContext", p.value);
|
|
3685
3690
|
});
|
|
3686
3691
|
const I = () => {
|
|
3687
|
-
|
|
3692
|
+
n.value = s.value * o.value;
|
|
3688
3693
|
};
|
|
3689
|
-
return (g, V) => (d(), v("div",
|
|
3690
|
-
m("span",
|
|
3694
|
+
return (g, V) => (d(), v("div", ja, [
|
|
3695
|
+
m("span", _a, [
|
|
3691
3696
|
B(g.$slots, "above-table")
|
|
3692
3697
|
]),
|
|
3693
|
-
w(u(Ge),
|
|
3698
|
+
w(u(Ge), j({
|
|
3694
3699
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3695
3700
|
}, { ...a, ...g.$attrs }, {
|
|
3696
3701
|
pt: r.value,
|
|
3697
3702
|
"filter-display": a.filters ? "row" : void 0,
|
|
3698
|
-
rows: g.paginator ?
|
|
3703
|
+
rows: g.paginator ? o.value : void 0,
|
|
3699
3704
|
"data-cy": "tree-table",
|
|
3700
3705
|
"onUpdate:filters": U,
|
|
3701
3706
|
onSort: O,
|
|
3702
3707
|
onPage: b,
|
|
3703
|
-
onNodeExpand: V[2] || (V[2] = () =>
|
|
3708
|
+
onNodeExpand: V[2] || (V[2] = () => h()),
|
|
3704
3709
|
showHeaders: "",
|
|
3705
|
-
first:
|
|
3710
|
+
first: n.value
|
|
3706
3711
|
}), ae({
|
|
3707
3712
|
empty: f(() => [
|
|
3708
|
-
m("div",
|
|
3713
|
+
m("div", Pa, [
|
|
3709
3714
|
m("h5", Ia, F(g.emptyMessage ?? "No items Found."), 1)
|
|
3710
3715
|
])
|
|
3711
3716
|
]),
|
|
@@ -3716,12 +3721,12 @@ const ya = {
|
|
|
3716
3721
|
m("div", Ma, [
|
|
3717
3722
|
m("div", Va, [
|
|
3718
3723
|
g.paginator && !g.legacyPaginationFooter ? (d(), v("span", Da, [
|
|
3719
|
-
w(
|
|
3724
|
+
w(he, {
|
|
3720
3725
|
total: c.value,
|
|
3721
3726
|
"page-sizes": l.value,
|
|
3722
|
-
"per-page":
|
|
3727
|
+
"per-page": o.value,
|
|
3723
3728
|
"onUpdate:perPage": [
|
|
3724
|
-
V[0] || (V[0] = (L) =>
|
|
3729
|
+
V[0] || (V[0] = (L) => o.value = L),
|
|
3725
3730
|
k
|
|
3726
3731
|
]
|
|
3727
3732
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
@@ -3735,7 +3740,7 @@ const ya = {
|
|
|
3735
3740
|
"data-cy": "clear-all"
|
|
3736
3741
|
}, {
|
|
3737
3742
|
default: f(() => [
|
|
3738
|
-
w(u(
|
|
3743
|
+
w(u(_), {
|
|
3739
3744
|
icon: "bi:funnel-fill",
|
|
3740
3745
|
width: "24",
|
|
3741
3746
|
height: "24"
|
|
@@ -3770,8 +3775,8 @@ const ya = {
|
|
|
3770
3775
|
V[4] || (V[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3771
3776
|
w(u(ie), {
|
|
3772
3777
|
options: l.value,
|
|
3773
|
-
modelValue:
|
|
3774
|
-
"onUpdate:modelValue": V[1] || (V[1] = (L) =>
|
|
3778
|
+
modelValue: o.value,
|
|
3779
|
+
"onUpdate:modelValue": V[1] || (V[1] = (L) => o.value = L),
|
|
3775
3780
|
class: "ms-2",
|
|
3776
3781
|
onClick: k
|
|
3777
3782
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -3785,14 +3790,14 @@ const ya = {
|
|
|
3785
3790
|
m("span", {
|
|
3786
3791
|
"data-cy": "legacy-total",
|
|
3787
3792
|
class: S(a.loading ? "opacity-50" : "")
|
|
3788
|
-
}, F(c.value) + " " + F(u(ee)(c.value, "result")) + " across " + F(
|
|
3793
|
+
}, F(c.value) + " " + F(u(ee)(c.value, "result")) + " across " + F(x.value), 3)
|
|
3789
3794
|
]),
|
|
3790
3795
|
key: "1"
|
|
3791
3796
|
} : void 0
|
|
3792
3797
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3793
3798
|
]));
|
|
3794
3799
|
}
|
|
3795
|
-
}), Na = { class: "d-flex position-relative" }, Aa = { class: "d-flex w-100" },
|
|
3800
|
+
}), Na = { class: "d-flex position-relative" }, Aa = { class: "d-flex w-100" }, xl = /* @__PURE__ */ C({
|
|
3796
3801
|
__name: "ForgeFilterHeader",
|
|
3797
3802
|
props: /* @__PURE__ */ R({
|
|
3798
3803
|
dataType: {},
|
|
@@ -3807,39 +3812,39 @@ const ya = {
|
|
|
3807
3812
|
}),
|
|
3808
3813
|
emits: ["update:modelValue"],
|
|
3809
3814
|
setup(e) {
|
|
3810
|
-
const t = N(e, "modelValue"), a = (l,
|
|
3815
|
+
const t = N(e, "modelValue"), a = (l, o) => {
|
|
3811
3816
|
if (!l || Array.isArray(l) && l.length === 0)
|
|
3812
|
-
return
|
|
3813
|
-
const
|
|
3817
|
+
return o;
|
|
3818
|
+
const n = (s) => {
|
|
3814
3819
|
var c;
|
|
3815
3820
|
const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
|
|
3816
|
-
(
|
|
3821
|
+
(x) => e.optionValue ? x[e.optionValue] === s : Object.keys(x).every((r) => s.hasOwnProperty(r) && x[r] === s[r])
|
|
3817
3822
|
);
|
|
3818
3823
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3819
3824
|
};
|
|
3820
|
-
return Array.isArray(l) ? l.map(
|
|
3825
|
+
return Array.isArray(l) ? l.map(n).join(", ") : n(l);
|
|
3821
3826
|
}, i = () => {
|
|
3822
3827
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3823
3828
|
};
|
|
3824
|
-
return (l,
|
|
3825
|
-
const
|
|
3829
|
+
return (l, o) => {
|
|
3830
|
+
const n = fe, s = q;
|
|
3826
3831
|
return d(), v("div", Na, [
|
|
3827
|
-
l.dataType === "numeric" ? (d(), y(
|
|
3832
|
+
l.dataType === "numeric" ? (d(), y(n, j({
|
|
3828
3833
|
key: 0,
|
|
3829
3834
|
modelValue: t.value,
|
|
3830
|
-
"onUpdate:modelValue":
|
|
3835
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => t.value = p),
|
|
3831
3836
|
modelModifiers: { trim: !0 }
|
|
3832
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), y(
|
|
3837
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), y(xe, j({
|
|
3833
3838
|
key: 1,
|
|
3834
3839
|
modelValue: t.value,
|
|
3835
|
-
"onUpdate:modelValue":
|
|
3840
|
+
"onUpdate:modelValue": o[1] || (o[1] = (p) => t.value = p)
|
|
3836
3841
|
}, l.$attrs, {
|
|
3837
3842
|
"show-icon": !1,
|
|
3838
3843
|
"show-on-focus": !0
|
|
3839
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), y(u(ie),
|
|
3844
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), y(u(ie), j({
|
|
3840
3845
|
key: 2,
|
|
3841
3846
|
modelValue: t.value,
|
|
3842
|
-
"onUpdate:modelValue":
|
|
3847
|
+
"onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p)
|
|
3843
3848
|
}, l.$attrs, {
|
|
3844
3849
|
options: l.dropdownOptions,
|
|
3845
3850
|
"option-value": l.optionValue,
|
|
@@ -3857,7 +3862,7 @@ const ya = {
|
|
|
3857
3862
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3858
3863
|
}, {
|
|
3859
3864
|
default: f(() => [
|
|
3860
|
-
w(u(
|
|
3865
|
+
w(u(_), {
|
|
3861
3866
|
icon: "bi:x",
|
|
3862
3867
|
width: "1rem",
|
|
3863
3868
|
height: "1rem",
|
|
@@ -3869,20 +3874,20 @@ const ya = {
|
|
|
3869
3874
|
])
|
|
3870
3875
|
]),
|
|
3871
3876
|
_: 1
|
|
3872
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), y(u(re),
|
|
3877
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), y(u(re), j({
|
|
3873
3878
|
key: 3,
|
|
3874
3879
|
modelValue: t.value,
|
|
3875
|
-
"onUpdate:modelValue":
|
|
3880
|
+
"onUpdate:modelValue": o[3] || (o[3] = (p) => t.value = p)
|
|
3876
3881
|
}, l.$attrs, {
|
|
3877
3882
|
options: l.dropdownOptions,
|
|
3878
3883
|
showToggleAll: !1,
|
|
3879
3884
|
"option-label": l.optionLabel,
|
|
3880
3885
|
"option-value": l.optionValue,
|
|
3881
3886
|
filter: ""
|
|
3882
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), y(u(se),
|
|
3887
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), y(u(se), j({
|
|
3883
3888
|
key: 4,
|
|
3884
3889
|
modelValue: t.value,
|
|
3885
|
-
"onUpdate:modelValue":
|
|
3890
|
+
"onUpdate:modelValue": o[4] || (o[4] = (p) => t.value = p),
|
|
3886
3891
|
modelModifiers: { trim: !0 }
|
|
3887
3892
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3888
3893
|
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), y(s, {
|
|
@@ -3892,7 +3897,7 @@ const ya = {
|
|
|
3892
3897
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3893
3898
|
}, {
|
|
3894
3899
|
default: f(() => [
|
|
3895
|
-
w(u(
|
|
3900
|
+
w(u(_), {
|
|
3896
3901
|
icon: "bi:x",
|
|
3897
3902
|
width: "1rem",
|
|
3898
3903
|
height: "1rem",
|
|
@@ -3942,6 +3947,7 @@ const ya = {
|
|
|
3942
3947
|
"application/vnd.aristanetworks.swi": ["swi"],
|
|
3943
3948
|
"application/vnd.astraea-software.iota": ["iota"],
|
|
3944
3949
|
"application/vnd.audiograph": ["aep"],
|
|
3950
|
+
"application/vnd.autodesk.fbx": ["fbx"],
|
|
3945
3951
|
"application/vnd.balsamiq.bmml+xml": ["bmml"],
|
|
3946
3952
|
"application/vnd.blueice.multipass": ["mpm"],
|
|
3947
3953
|
"application/vnd.bmi": ["bmi"],
|
|
@@ -3971,6 +3977,7 @@ const ya = {
|
|
|
3971
3977
|
"application/vnd.dart": ["dart"],
|
|
3972
3978
|
"application/vnd.data-vision.rdz": ["rdz"],
|
|
3973
3979
|
"application/vnd.dbf": ["dbf"],
|
|
3980
|
+
"application/vnd.dcmp+xml": ["dcmp"],
|
|
3974
3981
|
"application/vnd.dece.data": ["uvf", "uvvf", "uvd", "uvvd"],
|
|
3975
3982
|
"application/vnd.dece.ttml+xml": ["uvt", "uvvt"],
|
|
3976
3983
|
"application/vnd.dece.unspecified": ["uvx", "uvvx"],
|
|
@@ -4022,7 +4029,13 @@ const ya = {
|
|
|
4022
4029
|
"application/vnd.geospace": ["g3w"],
|
|
4023
4030
|
"application/vnd.gmx": ["gmx"],
|
|
4024
4031
|
"application/vnd.google-apps.document": ["gdoc"],
|
|
4032
|
+
"application/vnd.google-apps.drawing": ["gdraw"],
|
|
4033
|
+
"application/vnd.google-apps.form": ["gform"],
|
|
4034
|
+
"application/vnd.google-apps.jam": ["gjam"],
|
|
4035
|
+
"application/vnd.google-apps.map": ["gmap"],
|
|
4025
4036
|
"application/vnd.google-apps.presentation": ["gslides"],
|
|
4037
|
+
"application/vnd.google-apps.script": ["gscript"],
|
|
4038
|
+
"application/vnd.google-apps.site": ["gsite"],
|
|
4026
4039
|
"application/vnd.google-apps.spreadsheet": ["gsheet"],
|
|
4027
4040
|
"application/vnd.google-earth.kml+xml": ["kml"],
|
|
4028
4041
|
"application/vnd.google-earth.kmz": ["kmz"],
|
|
@@ -4133,6 +4146,7 @@ const ya = {
|
|
|
4133
4146
|
"application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"],
|
|
4134
4147
|
"application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"],
|
|
4135
4148
|
"application/vnd.ms-project": ["*mpp", "mpt"],
|
|
4149
|
+
"application/vnd.ms-visio.viewer": ["vdx"],
|
|
4136
4150
|
"application/vnd.ms-word.document.macroenabled.12": ["docm"],
|
|
4137
4151
|
"application/vnd.ms-word.template.macroenabled.12": ["dotm"],
|
|
4138
4152
|
"application/vnd.ms-works": ["wps", "wks", "wcm", "wdb"],
|
|
@@ -4212,6 +4226,9 @@ const ya = {
|
|
|
4212
4226
|
"application/vnd.pocketlearn": ["plf"],
|
|
4213
4227
|
"application/vnd.powerbuilder6": ["pbd"],
|
|
4214
4228
|
"application/vnd.previewsystems.box": ["box"],
|
|
4229
|
+
"application/vnd.procrate.brushset": ["brushset"],
|
|
4230
|
+
"application/vnd.procreate.brush": ["brush"],
|
|
4231
|
+
"application/vnd.procreate.dream": ["drm"],
|
|
4215
4232
|
"application/vnd.proteus.magazine": ["mgz"],
|
|
4216
4233
|
"application/vnd.publishare-delta-tree": ["qps"],
|
|
4217
4234
|
"application/vnd.pvi.ptid1": ["ptid"],
|
|
@@ -4287,7 +4304,7 @@ const ya = {
|
|
|
4287
4304
|
"application/vnd.unity": ["unityweb"],
|
|
4288
4305
|
"application/vnd.uoml+xml": ["uoml", "uo"],
|
|
4289
4306
|
"application/vnd.vcx": ["vcx"],
|
|
4290
|
-
"application/vnd.visio": ["vsd", "vst", "vss", "vsw"],
|
|
4307
|
+
"application/vnd.visio": ["vsd", "vst", "vss", "vsw", "vsdx", "vtx"],
|
|
4291
4308
|
"application/vnd.visionary": ["vis"],
|
|
4292
4309
|
"application/vnd.vsf": ["vsf"],
|
|
4293
4310
|
"application/vnd.wap.wbxml": ["wbxml"],
|
|
@@ -4321,6 +4338,7 @@ const ya = {
|
|
|
4321
4338
|
"application/x-bcpio": ["bcpio"],
|
|
4322
4339
|
"application/x-bdoc": ["*bdoc"],
|
|
4323
4340
|
"application/x-bittorrent": ["torrent"],
|
|
4341
|
+
"application/x-blender": ["blend"],
|
|
4324
4342
|
"application/x-blorb": ["blb", "blorb"],
|
|
4325
4343
|
"application/x-bzip": ["bz"],
|
|
4326
4344
|
"application/x-bzip2": ["bz2", "boz"],
|
|
@@ -4331,6 +4349,7 @@ const ya = {
|
|
|
4331
4349
|
"application/x-chess-pgn": ["pgn"],
|
|
4332
4350
|
"application/x-chrome-extension": ["crx"],
|
|
4333
4351
|
"application/x-cocoa": ["cco"],
|
|
4352
|
+
"application/x-compressed": ["*rar"],
|
|
4334
4353
|
"application/x-conference": ["nsc"],
|
|
4335
4354
|
"application/x-cpio": ["cpio"],
|
|
4336
4355
|
"application/x-csh": ["csh"],
|
|
@@ -4370,6 +4389,7 @@ const ya = {
|
|
|
4370
4389
|
"application/x-hdf": ["hdf"],
|
|
4371
4390
|
"application/x-httpd-php": ["php"],
|
|
4372
4391
|
"application/x-install-instructions": ["install"],
|
|
4392
|
+
"application/x-ipynb+json": ["ipynb"],
|
|
4373
4393
|
"application/x-iso9660-image": ["*iso"],
|
|
4374
4394
|
"application/x-iwork-keynote-sffkey": ["*key"],
|
|
4375
4395
|
"application/x-iwork-numbers-sffnumbers": ["*numbers"],
|
|
@@ -4447,6 +4467,7 @@ const ya = {
|
|
|
4447
4467
|
"application/x-xliff+xml": ["*xlf"],
|
|
4448
4468
|
"application/x-xpinstall": ["xpi"],
|
|
4449
4469
|
"application/x-xz": ["xz"],
|
|
4470
|
+
"application/x-zip-compressed": ["*zip"],
|
|
4450
4471
|
"application/x-zmachine": ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"],
|
|
4451
4472
|
"audio/vnd.dece.audio": ["uva", "uvva"],
|
|
4452
4473
|
"audio/vnd.digital-winds": ["eol"],
|
|
@@ -4504,6 +4525,7 @@ const ya = {
|
|
|
4504
4525
|
"image/vnd.xiff": ["xif"],
|
|
4505
4526
|
"image/vnd.zbrush.pcx": ["pcx"],
|
|
4506
4527
|
"image/x-3ds": ["3ds"],
|
|
4528
|
+
"image/x-adobe-dng": ["dng"],
|
|
4507
4529
|
"image/x-cmu-raster": ["ras"],
|
|
4508
4530
|
"image/x-cmx": ["cmx"],
|
|
4509
4531
|
"image/x-freehand": ["fh", "fhc", "fh4", "fh5", "fh7"],
|
|
@@ -4634,6 +4656,7 @@ const ue = {
|
|
|
4634
4656
|
"application/dash+xml": ["mpd"],
|
|
4635
4657
|
"application/dash-patch+xml": ["mpp"],
|
|
4636
4658
|
"application/davmount+xml": ["davmount"],
|
|
4659
|
+
"application/dicom": ["dcm"],
|
|
4637
4660
|
"application/docbook+xml": ["dbk"],
|
|
4638
4661
|
"application/dssc+der": ["dssc"],
|
|
4639
4662
|
"application/dssc+xml": ["xdssc"],
|
|
@@ -4720,7 +4743,14 @@ const ue = {
|
|
|
4720
4743
|
"application/oebps-package+xml": ["opf"],
|
|
4721
4744
|
"application/ogg": ["ogx"],
|
|
4722
4745
|
"application/omdoc+xml": ["omdoc"],
|
|
4723
|
-
"application/onenote": [
|
|
4746
|
+
"application/onenote": [
|
|
4747
|
+
"onetoc",
|
|
4748
|
+
"onetoc2",
|
|
4749
|
+
"onetmp",
|
|
4750
|
+
"onepkg",
|
|
4751
|
+
"one",
|
|
4752
|
+
"onea"
|
|
4753
|
+
],
|
|
4724
4754
|
"application/oxps": ["oxps"],
|
|
4725
4755
|
"application/p2p-overlay+xml": ["relo"],
|
|
4726
4756
|
"application/patch-ops-error+xml": ["xer"],
|
|
@@ -4816,6 +4846,7 @@ const ue = {
|
|
|
4816
4846
|
"application/yang": ["yang"],
|
|
4817
4847
|
"application/yin+xml": ["yin"],
|
|
4818
4848
|
"application/zip": ["zip"],
|
|
4849
|
+
"application/zip+dotlottie": ["lottie"],
|
|
4819
4850
|
"audio/3gpp": ["*3gpp"],
|
|
4820
4851
|
"audio/aac": ["adts", "aac"],
|
|
4821
4852
|
"audio/adpcm": ["adp"],
|
|
@@ -4824,7 +4855,7 @@ const ue = {
|
|
|
4824
4855
|
"audio/midi": ["mid", "midi", "kar", "rmi"],
|
|
4825
4856
|
"audio/mobile-xmf": ["mxmf"],
|
|
4826
4857
|
"audio/mp3": ["*mp3"],
|
|
4827
|
-
"audio/mp4": ["m4a", "mp4a"],
|
|
4858
|
+
"audio/mp4": ["m4a", "mp4a", "m4b"],
|
|
4828
4859
|
"audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"],
|
|
4829
4860
|
"audio/ogg": ["oga", "ogg", "spx", "opus"],
|
|
4830
4861
|
"audio/s3m": ["s3m"],
|
|
@@ -4856,11 +4887,12 @@ const ue = {
|
|
|
4856
4887
|
"image/heif": ["heif"],
|
|
4857
4888
|
"image/heif-sequence": ["heifs"],
|
|
4858
4889
|
"image/hej2k": ["hej2"],
|
|
4859
|
-
"image/hsj2": ["hsj2"],
|
|
4860
4890
|
"image/ief": ["ief"],
|
|
4891
|
+
"image/jaii": ["jaii"],
|
|
4892
|
+
"image/jais": ["jais"],
|
|
4861
4893
|
"image/jls": ["jls"],
|
|
4862
4894
|
"image/jp2": ["jp2", "jpg2"],
|
|
4863
|
-
"image/jpeg": ["
|
|
4895
|
+
"image/jpeg": ["jpg", "jpeg", "jpe"],
|
|
4864
4896
|
"image/jph": ["jph"],
|
|
4865
4897
|
"image/jphc": ["jhc"],
|
|
4866
4898
|
"image/jpm": ["jpm", "jpgm"],
|
|
@@ -4875,6 +4907,7 @@ const ue = {
|
|
|
4875
4907
|
"image/jxss": ["jxss"],
|
|
4876
4908
|
"image/ktx": ["ktx"],
|
|
4877
4909
|
"image/ktx2": ["ktx2"],
|
|
4910
|
+
"image/pjpeg": ["jfif"],
|
|
4878
4911
|
"image/png": ["png"],
|
|
4879
4912
|
"image/sgi": ["sgi"],
|
|
4880
4913
|
"image/svg+xml": ["svg", "svgz"],
|
|
@@ -4888,7 +4921,7 @@ const ue = {
|
|
|
4888
4921
|
"message/global-delivery-status": ["u8dsn"],
|
|
4889
4922
|
"message/global-disposition-notification": ["u8mdn"],
|
|
4890
4923
|
"message/global-headers": ["u8hdr"],
|
|
4891
|
-
"message/rfc822": ["eml", "mime"],
|
|
4924
|
+
"message/rfc822": ["eml", "mime", "mht", "mhtml"],
|
|
4892
4925
|
"model/3mf": ["3mf"],
|
|
4893
4926
|
"model/gltf+json": ["gltf"],
|
|
4894
4927
|
"model/gltf-binary": ["glb"],
|
|
@@ -4898,6 +4931,7 @@ const ue = {
|
|
|
4898
4931
|
"model/mtl": ["mtl"],
|
|
4899
4932
|
"model/obj": ["obj"],
|
|
4900
4933
|
"model/prc": ["prc"],
|
|
4934
|
+
"model/step": ["step", "stp", "stpnc", "p21", "210"],
|
|
4901
4935
|
"model/step+xml": ["stpx"],
|
|
4902
4936
|
"model/step+zip": ["stpz"],
|
|
4903
4937
|
"model/step-xml+zip": ["stpxz"],
|
|
@@ -4971,11 +5005,11 @@ class we {
|
|
|
4971
5005
|
define(t, a = !1) {
|
|
4972
5006
|
for (let [i, l] of Object.entries(t)) {
|
|
4973
5007
|
i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), H(this, Y, "f").has(i) || H(this, Y, "f").set(i, /* @__PURE__ */ new Set());
|
|
4974
|
-
const
|
|
4975
|
-
let
|
|
5008
|
+
const o = H(this, Y, "f").get(i);
|
|
5009
|
+
let n = !0;
|
|
4976
5010
|
for (let s of l) {
|
|
4977
5011
|
const p = s.startsWith("*");
|
|
4978
|
-
if (s = p ? s.slice(1) : s,
|
|
5012
|
+
if (s = p ? s.slice(1) : s, o == null || o.add(s), n && H(this, te, "f").set(i, s), n = !1, p)
|
|
4979
5013
|
continue;
|
|
4980
5014
|
const c = H(this, K, "f").get(s);
|
|
4981
5015
|
if (c && c != i && !a)
|
|
@@ -4988,7 +5022,7 @@ class we {
|
|
|
4988
5022
|
getType(t) {
|
|
4989
5023
|
if (typeof t != "string")
|
|
4990
5024
|
return null;
|
|
4991
|
-
const a = t.replace(/^.*[/\\]
|
|
5025
|
+
const a = t.replace(/^.*[/\\]/s, "").toLowerCase(), i = a.replace(/^.*\./s, "").toLowerCase(), l = a.length < t.length;
|
|
4992
5026
|
return !(i.length < a.length - 1) && l ? null : H(this, K, "f").get(i) ?? null;
|
|
4993
5027
|
}
|
|
4994
5028
|
getExtension(t) {
|
|
@@ -5016,15 +5050,15 @@ class we {
|
|
|
5016
5050
|
K = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
|
|
5017
5051
|
const Ea = new we(ue, ce)._freeze();
|
|
5018
5052
|
function ke(e, t, a, i) {
|
|
5019
|
-
const l = t.flatMap((
|
|
5020
|
-
return t = t.map((
|
|
5021
|
-
const
|
|
5053
|
+
const l = t.flatMap((o) => o.file);
|
|
5054
|
+
return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
|
|
5055
|
+
const n = l.findIndex((p) => p.name === o.name);
|
|
5022
5056
|
let s = "Not Uploaded";
|
|
5023
|
-
|
|
5024
|
-
file:
|
|
5057
|
+
n === -1 ? ((!a.includes(o.type) || !(o.size <= i)) && (s = a.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
5058
|
+
file: o,
|
|
5025
5059
|
status: s,
|
|
5026
5060
|
blobFileName: null
|
|
5027
|
-
})) : t[
|
|
5061
|
+
})) : t[n].status = "Duplicate";
|
|
5028
5062
|
}), t;
|
|
5029
5063
|
}
|
|
5030
5064
|
async function Ua(e, t) {
|
|
@@ -5043,12 +5077,12 @@ function me(e, t = !0, a = 1) {
|
|
|
5043
5077
|
if (Math.abs(e) < i)
|
|
5044
5078
|
return e + " B";
|
|
5045
5079
|
const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
5046
|
-
let
|
|
5047
|
-
const
|
|
5080
|
+
let o = -1;
|
|
5081
|
+
const n = 10 ** a;
|
|
5048
5082
|
do
|
|
5049
|
-
e /= i, ++
|
|
5050
|
-
while (Math.round(Math.abs(e) *
|
|
5051
|
-
return e.toFixed(a) + " " + l[
|
|
5083
|
+
e /= i, ++o;
|
|
5084
|
+
while (Math.round(Math.abs(e) * n) / n >= i && o < l.length - 1);
|
|
5085
|
+
return e.toFixed(a) + " " + l[o];
|
|
5052
5086
|
}
|
|
5053
5087
|
function qa(e) {
|
|
5054
5088
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
@@ -5075,30 +5109,30 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5075
5109
|
}),
|
|
5076
5110
|
emits: ["update:modelValue"],
|
|
5077
5111
|
setup(e) {
|
|
5078
|
-
const t = N(e, "modelValue"), a =
|
|
5079
|
-
t.value = ke(
|
|
5112
|
+
const t = N(e, "modelValue"), a = P(), i = (n) => a.value.toggle(n), l = T(() => e.maxFileInput <= t.value.length), o = (n) => {
|
|
5113
|
+
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
5080
5114
|
};
|
|
5081
|
-
return (
|
|
5115
|
+
return (n, s) => {
|
|
5082
5116
|
const p = q;
|
|
5083
5117
|
return d(), v("div", Ha, [
|
|
5084
|
-
B(
|
|
5118
|
+
B(n.$slots, "message"),
|
|
5085
5119
|
m("div", null, [
|
|
5086
5120
|
m("input", {
|
|
5087
5121
|
id: "file-input",
|
|
5088
5122
|
type: "file",
|
|
5089
5123
|
class: "d-none",
|
|
5090
|
-
accept:
|
|
5124
|
+
accept: n.acceptedFileTypes.join(", "),
|
|
5091
5125
|
disabled: l.value,
|
|
5092
|
-
multiple:
|
|
5093
|
-
onInput: s[0] || (s[0] = (c) =>
|
|
5126
|
+
multiple: n.maxFileInput > 1,
|
|
5127
|
+
onInput: s[0] || (s[0] = (c) => o([...c.target.files]))
|
|
5094
5128
|
}, null, 40, Wa),
|
|
5095
5129
|
m("label", {
|
|
5096
5130
|
class: S([{ disabled: l.value }, "btn btn-primary"]),
|
|
5097
5131
|
id: "file-input-button",
|
|
5098
5132
|
for: "file-input"
|
|
5099
5133
|
}, [
|
|
5100
|
-
B(
|
|
5101
|
-
w(u(
|
|
5134
|
+
B(n.$slots, "button-content", {}, () => [
|
|
5135
|
+
w(u(_), {
|
|
5102
5136
|
icon: "bi:upload",
|
|
5103
5137
|
class: "me-2",
|
|
5104
5138
|
height: "20px",
|
|
@@ -5108,10 +5142,10 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5108
5142
|
])
|
|
5109
5143
|
], 2)
|
|
5110
5144
|
]),
|
|
5111
|
-
|
|
5145
|
+
n.showDragDropArea ? (d(), y(p, {
|
|
5112
5146
|
link: "",
|
|
5113
5147
|
class: "ms-auto",
|
|
5114
|
-
key:
|
|
5148
|
+
key: n.acceptedFileTypes.length,
|
|
5115
5149
|
id: "accepted-file-types",
|
|
5116
5150
|
onClick: i
|
|
5117
5151
|
}, {
|
|
@@ -5125,7 +5159,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5125
5159
|
ref: a
|
|
5126
5160
|
}, {
|
|
5127
5161
|
default: f(() => [
|
|
5128
|
-
m("div", Ga, F(
|
|
5162
|
+
m("div", Ga, F(n.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
5129
5163
|
]),
|
|
5130
5164
|
_: 1
|
|
5131
5165
|
}, 512)
|
|
@@ -5151,26 +5185,26 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5151
5185
|
}),
|
|
5152
5186
|
emits: ["update:modelValue"],
|
|
5153
5187
|
setup(e) {
|
|
5154
|
-
const t = N(e, "modelValue"), a =
|
|
5155
|
-
a.value = !1,
|
|
5188
|
+
const t = N(e, "modelValue"), a = P(!1), i = T(() => e.maxFileInput <= t.value.length), l = (o) => {
|
|
5189
|
+
a.value = !1, o.dataTransfer.files.length > e.maxFileInput || i.value ? o.preventDefault() : t.value = ke([...o.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
|
|
5156
5190
|
};
|
|
5157
|
-
return (
|
|
5191
|
+
return (o, n) => (d(), v("div", {
|
|
5158
5192
|
id: "drag-drop-area",
|
|
5159
5193
|
class: S(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
5160
|
-
onDragleave:
|
|
5161
|
-
onDragover:
|
|
5194
|
+
onDragleave: n[0] || (n[0] = X((s) => a.value = !1, ["prevent"])),
|
|
5195
|
+
onDragover: n[1] || (n[1] = X((s) => a.value = !0, ["prevent"])),
|
|
5162
5196
|
onDrop: X(l, ["prevent"])
|
|
5163
5197
|
}, [
|
|
5164
5198
|
t.value.length === 0 ? (d(), v("div", Ja, [
|
|
5165
|
-
w(u(
|
|
5199
|
+
w(u(_), {
|
|
5166
5200
|
icon: "bi:upload",
|
|
5167
5201
|
class: "me-2",
|
|
5168
5202
|
height: "20px",
|
|
5169
5203
|
width: "20px"
|
|
5170
5204
|
}),
|
|
5171
|
-
|
|
5205
|
+
n[2] || (n[2] = M(" Drag and drop files here "))
|
|
5172
5206
|
])) : (d(), v("div", Ka, [
|
|
5173
|
-
B(
|
|
5207
|
+
B(o.$slots, "default")
|
|
5174
5208
|
]))
|
|
5175
5209
|
], 34));
|
|
5176
5210
|
}
|
|
@@ -5199,10 +5233,10 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5199
5233
|
return "Upload Failed: Connection error, please try again.";
|
|
5200
5234
|
}
|
|
5201
5235
|
});
|
|
5202
|
-
return (l,
|
|
5203
|
-
const
|
|
5236
|
+
return (l, o) => {
|
|
5237
|
+
const n = pe;
|
|
5204
5238
|
return d(), v("div", Xa, [
|
|
5205
|
-
t.uploadStatus === "Uploading" ? (d(), y(
|
|
5239
|
+
t.uploadStatus === "Uploading" ? (d(), y(n, {
|
|
5206
5240
|
key: 0,
|
|
5207
5241
|
"in-line": ""
|
|
5208
5242
|
})) : z("", !0),
|
|
@@ -5229,7 +5263,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5229
5263
|
}, li = {
|
|
5230
5264
|
class: "text-black-50",
|
|
5231
5265
|
id: "file-size"
|
|
5232
|
-
},
|
|
5266
|
+
}, oi = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, ni = /* @__PURE__ */ C({
|
|
5233
5267
|
__name: "FileInfo",
|
|
5234
5268
|
props: /* @__PURE__ */ R({
|
|
5235
5269
|
editableFileName: { type: Boolean },
|
|
@@ -5248,14 +5282,14 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5248
5282
|
}),
|
|
5249
5283
|
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5250
5284
|
setup(e, { emit: t }) {
|
|
5251
|
-
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"),
|
|
5252
|
-
|
|
5285
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), o = t, n = P(a.value.name), s = P(""), p = P(0), c = P(), x = T(() => e.acceptedFileTypes.some(({ fileType: b }) => b === a.value.type)), r = T(() => a.value.size <= e.maxFileSize), h = T(() => a.value.type ? a.value.type : Ra().getType(a.value.name)), $ = () => {
|
|
5286
|
+
n.value != null && (D(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5253
5287
|
}, D = () => {
|
|
5254
|
-
let b =
|
|
5255
|
-
b.length === 1 ? I && I.length > 0 && (
|
|
5288
|
+
let b = n.value.split("."), k = Ea.getExtension(h.value), I = n.value.split(".").pop();
|
|
5289
|
+
b.length === 1 ? I && I.length > 0 && (n.value = [n.value, k].join(".")) : b.length > 1 && I !== k && (n.value = n.value.replace(I, k));
|
|
5256
5290
|
}, O = async () => {
|
|
5257
|
-
if (!
|
|
5258
|
-
l.value =
|
|
5291
|
+
if (!x.value || !r.value) {
|
|
5292
|
+
l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5259
5293
|
return;
|
|
5260
5294
|
}
|
|
5261
5295
|
l.value = "Preparing", c.value = new AbortController();
|
|
@@ -5270,7 +5304,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5270
5304
|
abortSignal: c.value.signal,
|
|
5271
5305
|
onProgress: (V) => p.value = V.loadedBytes,
|
|
5272
5306
|
blobHTTPHeaders: {
|
|
5273
|
-
blobContentType:
|
|
5307
|
+
blobContentType: h.value,
|
|
5274
5308
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
5275
5309
|
},
|
|
5276
5310
|
tags: { temp: "true" }
|
|
@@ -5284,9 +5318,9 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5284
5318
|
l.value = "Failed";
|
|
5285
5319
|
}
|
|
5286
5320
|
}, U = async () => {
|
|
5287
|
-
await Ua(l.value, s.value),
|
|
5321
|
+
await Ua(l.value, s.value), o("deleted", a.value);
|
|
5288
5322
|
};
|
|
5289
|
-
return
|
|
5323
|
+
return oe(() => {
|
|
5290
5324
|
e.autoUploadToBlob && l.value != "Uploaded" && O();
|
|
5291
5325
|
}), (b, k) => {
|
|
5292
5326
|
const I = q;
|
|
@@ -5303,7 +5337,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5303
5337
|
alt: a.value.name,
|
|
5304
5338
|
width: "75px",
|
|
5305
5339
|
preview: ""
|
|
5306
|
-
}, null, 8, ["src", "alt"])) : (d(), y(u(
|
|
5340
|
+
}, null, 8, ["src", "alt"])) : (d(), y(u(_), {
|
|
5307
5341
|
key: 1,
|
|
5308
5342
|
id: "file-earmark",
|
|
5309
5343
|
icon: "bi:file-earmark",
|
|
@@ -5316,17 +5350,17 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5316
5350
|
b.editableFileName ? (d(), y(Gt, {
|
|
5317
5351
|
key: 0,
|
|
5318
5352
|
id: "edit-file-name",
|
|
5319
|
-
modelValue:
|
|
5320
|
-
"onUpdate:modelValue": k[0] || (k[0] = (g) =>
|
|
5353
|
+
modelValue: n.value,
|
|
5354
|
+
"onUpdate:modelValue": k[0] || (k[0] = (g) => n.value = g),
|
|
5321
5355
|
rules: b.customFileNameRules,
|
|
5322
5356
|
name: a.value.name,
|
|
5323
5357
|
"complete-action": $
|
|
5324
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(), v("span", ai, F(
|
|
5358
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), v("span", ai, F(n.value), 1))
|
|
5325
5359
|
]),
|
|
5326
5360
|
m("span", ii, "File type: " + F(a.value.type.split("/").pop()), 1),
|
|
5327
5361
|
m("span", li, "File size: " + F(u(me)(a.value.size)), 1)
|
|
5328
5362
|
]),
|
|
5329
|
-
m("div",
|
|
5363
|
+
m("div", oi, [
|
|
5330
5364
|
(d(), y(Qa, {
|
|
5331
5365
|
key: l.value,
|
|
5332
5366
|
"file-size": a.value.size,
|
|
@@ -5340,7 +5374,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5340
5374
|
onClick: O
|
|
5341
5375
|
}, {
|
|
5342
5376
|
default: f(() => [
|
|
5343
|
-
w(u(
|
|
5377
|
+
w(u(_), {
|
|
5344
5378
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5345
5379
|
}, null, 8, ["icon"])
|
|
5346
5380
|
]),
|
|
@@ -5352,7 +5386,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5352
5386
|
onClick: k[1] || (k[1] = (g) => c.value.abort())
|
|
5353
5387
|
}, {
|
|
5354
5388
|
default: f(() => [
|
|
5355
|
-
w(u(
|
|
5389
|
+
w(u(_), { icon: "bi:x-circle-fill" })
|
|
5356
5390
|
]),
|
|
5357
5391
|
_: 1
|
|
5358
5392
|
})) : (d(), y(I, {
|
|
@@ -5362,7 +5396,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5362
5396
|
id: "delete-button"
|
|
5363
5397
|
}, {
|
|
5364
5398
|
default: f(() => [
|
|
5365
|
-
w(u(
|
|
5399
|
+
w(u(_), { icon: "bi:trash" })
|
|
5366
5400
|
]),
|
|
5367
5401
|
_: 1
|
|
5368
5402
|
}))
|
|
@@ -5382,7 +5416,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5382
5416
|
m("div", di, "| Max file count: " + F(t.maxFileInput), 1)
|
|
5383
5417
|
]));
|
|
5384
5418
|
}
|
|
5385
|
-
}), ci = { "data-cy": "file-uploader" }, ui = { key: 0 },
|
|
5419
|
+
}), ci = { "data-cy": "file-uploader" }, ui = { key: 0 }, hl = /* @__PURE__ */ C({
|
|
5386
5420
|
__name: "ForgeFileUploader",
|
|
5387
5421
|
props: /* @__PURE__ */ R({
|
|
5388
5422
|
acceptedFileTypes: {},
|
|
@@ -5400,12 +5434,12 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5400
5434
|
emits: ["update:modelValue"],
|
|
5401
5435
|
setup(e) {
|
|
5402
5436
|
const t = N(e, "modelValue"), a = e, i = (l) => {
|
|
5403
|
-
t.value = t.value.filter((
|
|
5437
|
+
t.value = t.value.filter((o) => o.file != l);
|
|
5404
5438
|
};
|
|
5405
|
-
return (l,
|
|
5406
|
-
w(Ya,
|
|
5439
|
+
return (l, o) => (d(), v("div", ci, [
|
|
5440
|
+
w(Ya, j(a, {
|
|
5407
5441
|
modelValue: t.value,
|
|
5408
|
-
"onUpdate:modelValue":
|
|
5442
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => t.value = n)
|
|
5409
5443
|
}), null, 16, ["modelValue"]),
|
|
5410
5444
|
l.showDragDropArea ? (d(), v("div", ui, [
|
|
5411
5445
|
w(Za, {
|
|
@@ -5413,12 +5447,12 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5413
5447
|
"max-file-size": a.maxFileSize,
|
|
5414
5448
|
"accepted-file-types": a.acceptedFileTypes,
|
|
5415
5449
|
modelValue: t.value,
|
|
5416
|
-
"onUpdate:modelValue":
|
|
5450
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => t.value = n)
|
|
5417
5451
|
}, {
|
|
5418
5452
|
default: f(() => [
|
|
5419
|
-
(d(!0), v(A, null, E(t.value, ({ file:
|
|
5420
|
-
(d(), y(
|
|
5421
|
-
key:
|
|
5453
|
+
(d(!0), v(A, null, E(t.value, ({ file: n }, s) => (d(), v("div", null, [
|
|
5454
|
+
(d(), y(ni, j({
|
|
5455
|
+
key: n.name,
|
|
5422
5456
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5423
5457
|
file: t.value[s].file,
|
|
5424
5458
|
"onUpdate:file": (p) => t.value[s].file = p,
|
|
@@ -5447,10 +5481,10 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5447
5481
|
},
|
|
5448
5482
|
emits: ["update:modelValue"],
|
|
5449
5483
|
setup(e) {
|
|
5450
|
-
const t = N(e, "modelValue"), a =
|
|
5451
|
-
a.value.toggle(
|
|
5484
|
+
const t = N(e, "modelValue"), a = P(), i = P(!1), l = (o) => {
|
|
5485
|
+
a.value.toggle(o);
|
|
5452
5486
|
};
|
|
5453
|
-
return (
|
|
5487
|
+
return (o, n) => (d(), v(A, null, [
|
|
5454
5488
|
w(u(q), {
|
|
5455
5489
|
onClick: l,
|
|
5456
5490
|
class: "ms-2"
|
|
@@ -5458,11 +5492,11 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5458
5492
|
default: f(() => [
|
|
5459
5493
|
m("div", mi, [
|
|
5460
5494
|
m("div", vi, [
|
|
5461
|
-
w(u(
|
|
5495
|
+
w(u(_), { icon: "bi:layout-three-columns" })
|
|
5462
5496
|
]),
|
|
5463
5497
|
M(" Columns (" + F(t.value.filter((s) => s.selected).length ?? 0) + "/" + F(t.value.length ?? 0) + ") ", 1),
|
|
5464
5498
|
m("div", fi, [
|
|
5465
|
-
w(u(
|
|
5499
|
+
w(u(_), {
|
|
5466
5500
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5467
5501
|
}, null, 8, ["icon"])
|
|
5468
5502
|
])
|
|
@@ -5474,8 +5508,8 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5474
5508
|
ref_key: "columnCustomiserPanel",
|
|
5475
5509
|
ref: a,
|
|
5476
5510
|
class: "column-customiser",
|
|
5477
|
-
onHide:
|
|
5478
|
-
onShow:
|
|
5511
|
+
onHide: n[0] || (n[0] = () => i.value = !1),
|
|
5512
|
+
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5479
5513
|
}, {
|
|
5480
5514
|
default: f(() => [
|
|
5481
5515
|
m("div", gi, [
|
|
@@ -5509,12 +5543,12 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5509
5543
|
const i = Je;
|
|
5510
5544
|
return d(), y(i, W(G({ ...t.$attrs })), ae({
|
|
5511
5545
|
toggleicon: f(({ collapsed: l }) => [
|
|
5512
|
-
l ? (d(), y(u(
|
|
5546
|
+
l ? (d(), y(u(_), {
|
|
5513
5547
|
key: 0,
|
|
5514
5548
|
"data-cy": "message-icon",
|
|
5515
5549
|
icon: "bi:chevron-down"
|
|
5516
5550
|
})) : z("", !0),
|
|
5517
|
-
l ? z("", !0) : (d(), y(u(
|
|
5551
|
+
l ? z("", !0) : (d(), y(u(_), {
|
|
5518
5552
|
key: 1,
|
|
5519
5553
|
"data-cy": "message-icon",
|
|
5520
5554
|
icon: "bi:chevron-up"
|
|
@@ -5522,10 +5556,10 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5522
5556
|
]),
|
|
5523
5557
|
_: 2
|
|
5524
5558
|
}, [
|
|
5525
|
-
E(t.$slots, (l,
|
|
5526
|
-
name:
|
|
5527
|
-
fn: f((
|
|
5528
|
-
B(t.$slots,
|
|
5559
|
+
E(t.$slots, (l, o) => ({
|
|
5560
|
+
name: o,
|
|
5561
|
+
fn: f((n) => [
|
|
5562
|
+
B(t.$slots, o, W(G(n)))
|
|
5529
5563
|
])
|
|
5530
5564
|
}))
|
|
5531
5565
|
]), 1040);
|
|
@@ -5558,7 +5592,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5558
5592
|
]
|
|
5559
5593
|
})
|
|
5560
5594
|
}));
|
|
5561
|
-
return (i, l) => (d(), y(u(Ke),
|
|
5595
|
+
return (i, l) => (d(), y(u(Ke), j({ ...i.$attrs, ...t }, {
|
|
5562
5596
|
severity: t.severity,
|
|
5563
5597
|
pt: a.value
|
|
5564
5598
|
}), null, 16, ["severity", "pt"]));
|
|
@@ -5579,25 +5613,25 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5579
5613
|
}),
|
|
5580
5614
|
emits: ["update:modelValue"],
|
|
5581
5615
|
setup(e) {
|
|
5582
|
-
const t = e, a = N(e, "modelValue"), i = (
|
|
5583
|
-
var
|
|
5584
|
-
return t.multiple ? (
|
|
5585
|
-
}, l = (
|
|
5586
|
-
var
|
|
5587
|
-
if (!
|
|
5616
|
+
const t = e, a = N(e, "modelValue"), i = (o) => {
|
|
5617
|
+
var n;
|
|
5618
|
+
return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(o.value) : a.value === o.value;
|
|
5619
|
+
}, l = (o) => {
|
|
5620
|
+
var n;
|
|
5621
|
+
if (!o.disabled)
|
|
5588
5622
|
if (t.multiple) {
|
|
5589
|
-
let s = (
|
|
5590
|
-
if (s.length >= 1 && s.includes(
|
|
5623
|
+
let s = (n = a.value) != null && n.length ? [...a.value] : [];
|
|
5624
|
+
if (s.length >= 1 && s.includes(o.value)) {
|
|
5591
5625
|
if (!t.allowEmpty && s.length === 1) return;
|
|
5592
|
-
s = s.length > 1 ? s.filter((c) => c !==
|
|
5626
|
+
s = s.length > 1 ? s.filter((c) => c !== o.value) : [];
|
|
5593
5627
|
} else
|
|
5594
|
-
s.push(
|
|
5628
|
+
s.push(o.value);
|
|
5595
5629
|
a.value = s;
|
|
5596
5630
|
} else
|
|
5597
|
-
a.value = a.value ===
|
|
5631
|
+
a.value = a.value === o.value && t.allowEmpty ? null : o.value;
|
|
5598
5632
|
};
|
|
5599
|
-
return (
|
|
5600
|
-
(d(!0), v(A, null, E(
|
|
5633
|
+
return (o, n) => (d(), v("div", yi, [
|
|
5634
|
+
(d(!0), v(A, null, E(o.options, (s, p) => (d(), y(bi, {
|
|
5601
5635
|
key: p,
|
|
5602
5636
|
onLabel: s.label,
|
|
5603
5637
|
offLabel: s.label,
|
|
@@ -5606,7 +5640,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5606
5640
|
defaultValue: i(s),
|
|
5607
5641
|
disabled: s.disabled,
|
|
5608
5642
|
"data-cy": `toggle-button-${s.value}`,
|
|
5609
|
-
invalid:
|
|
5643
|
+
invalid: o.invalid
|
|
5610
5644
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5611
5645
|
]));
|
|
5612
5646
|
}
|
|
@@ -5624,9 +5658,9 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5624
5658
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5625
5659
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5626
5660
|
}));
|
|
5627
|
-
return (a, i) => (d(), y(u(Ze),
|
|
5661
|
+
return (a, i) => (d(), y(u(Ze), j({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5628
5662
|
default: f(() => [
|
|
5629
|
-
(d(!0), v(A, null, E(a.$slots, (l,
|
|
5663
|
+
(d(!0), v(A, null, E(a.$slots, (l, o) => B(a.$slots, o, { slot: o })), 256))
|
|
5630
5664
|
]),
|
|
5631
5665
|
_: 3
|
|
5632
5666
|
}, 16, ["pt"]));
|
|
@@ -5650,17 +5684,17 @@ export {
|
|
|
5650
5684
|
cl as ForgeChip,
|
|
5651
5685
|
wl as ForgeColumnCustomiser,
|
|
5652
5686
|
Bl as ForgeConfirmPopup,
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5687
|
+
xe as ForgeDatepicker,
|
|
5688
|
+
hl as ForgeFileUploader,
|
|
5689
|
+
xl as ForgeFilterHeader,
|
|
5656
5690
|
dl as ForgeForm,
|
|
5657
5691
|
pl as ForgeFormField,
|
|
5658
5692
|
Gt as ForgeInlineEditor,
|
|
5659
5693
|
al as ForgeLink,
|
|
5660
5694
|
pe as ForgeLoader,
|
|
5661
|
-
|
|
5695
|
+
ol as ForgeModal,
|
|
5662
5696
|
Qt as ForgeMultiSelectPreview,
|
|
5663
|
-
|
|
5697
|
+
nl as ForgeNavbar,
|
|
5664
5698
|
sl as ForgePageHeader,
|
|
5665
5699
|
kl as ForgePanel,
|
|
5666
5700
|
ul as ForgeProgressBar,
|