@3squared/forge-ui-3 2.18.0 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/forge-ui-3.css +1 -1
- package/dist/esm/forge-ui-3.js +570 -527
- package/dist/src/components/ForgeTile.vue.d.ts +1 -1
- package/dist/src/passthroughs/Column.pt.d.ts +10 -15
- package/package.json +9 -9
- package/src/styles/components/_datepicker.scss +24 -8
- package/src/styles/utilities/_utilities.scss +6 -0
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Be from "primevue/message";
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as C, openBlock as d, createBlock as y, normalizeProps as W, guardReactiveProps as G, withCtx as f, createElementVNode as m, normalizeClass as S, unref as u, createCommentVNode as z, createVNode as w, renderSlot as B, ref as j, createElementBlock as v, Fragment as A, mergeProps as _, renderList as E, mergeModels as R, useModel as N, computed as T, createTextVNode as M, toDisplayString as F, withDirectives as J, vShow as Z, createSlots as ae, onMounted as ne, isRef as Fe, withKeys as le, normalizeStyle as Se, withModifiers as X, watch as Q, h as Ce, useTemplateRef as ze } from "vue";
|
|
3
3
|
import { Icon as P } from "@iconify/vue";
|
|
4
4
|
import q from "primevue/button";
|
|
5
5
|
import Te from "primevue/toast";
|
|
@@ -247,7 +247,8 @@ const Xe = {
|
|
|
247
247
|
{
|
|
248
248
|
"cursor-move": e.props.reorderableColumns,
|
|
249
249
|
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((a = e.column) == null ? void 0 : a.context.frozen) || ((i = e.column) == null ? void 0 : i.context.frozen) === "",
|
|
250
|
-
"overflow-hidden position-relative bg-clip-padding": (l = e.column) == null ? void 0 : l.context.resizable
|
|
250
|
+
"overflow-hidden position-relative bg-clip-padding": (l = e.column) == null ? void 0 : l.context.resizable,
|
|
251
|
+
"align-bottom": e.column.props.rowspan > 1
|
|
251
252
|
}
|
|
252
253
|
]
|
|
253
254
|
};
|
|
@@ -320,7 +321,14 @@ const Xe = {
|
|
|
320
321
|
"dropdown-divider"
|
|
321
322
|
]
|
|
322
323
|
},
|
|
323
|
-
columnHeaderContent:
|
|
324
|
+
columnHeaderContent: (e) => ({
|
|
325
|
+
class: [
|
|
326
|
+
"d-flex",
|
|
327
|
+
{
|
|
328
|
+
"justify-content-center": e.column.props.colspan > 1
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
}),
|
|
324
332
|
columnTitle: "text-break",
|
|
325
333
|
sort: "d-flex ms-auto cursor-pointer table-sort-icon",
|
|
326
334
|
pcRowCheckbox: (e) => ({
|
|
@@ -610,7 +618,33 @@ const Xe = {
|
|
|
610
618
|
}
|
|
611
619
|
}),
|
|
612
620
|
title: "d-flex mx-auto",
|
|
613
|
-
|
|
621
|
+
dayCell: ({ context: e }) => ({
|
|
622
|
+
class: [
|
|
623
|
+
{
|
|
624
|
+
selected: e.selected
|
|
625
|
+
}
|
|
626
|
+
]
|
|
627
|
+
}),
|
|
628
|
+
day: ({ context: e, props: t }) => ({
|
|
629
|
+
class: [
|
|
630
|
+
"d-flex date date-primary justify-content-center align-items-center",
|
|
631
|
+
{
|
|
632
|
+
//When using a range, a disabled date can be both selected and disabled. This logic fights that and also applies the class if a
|
|
633
|
+
//date across a month boundary is also selected (not prime vue functionality for some reason)
|
|
634
|
+
"text-white": e.selected && (!e.disabled || e.disabled && e.otherMonth),
|
|
635
|
+
"opacity-50": e.otherMonth,
|
|
636
|
+
today: e.today,
|
|
637
|
+
//When using a range, a disabled date can be both selected and disabled. This logic fights that and also applies the class if a
|
|
638
|
+
//date across a month boundary is also selected (not prime vue functionality for some reason)
|
|
639
|
+
selected: e.selected && (!e.disabled || e.disabled && e.otherMonth),
|
|
640
|
+
//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
|
|
641
|
+
//disabled for otherMonth dates) show the disabled styling for current calendar dates. The second part of logic is used to set the
|
|
642
|
+
//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
|
|
643
|
+
"text-grey-300": e.disabled && !e.otherMonth || t.minDate != null && new Date(e.date.year, e.date.month, e.date.day) < t.minDate || t.maxDate != null && new Date(e.date.year, e.date.month, e.date.day) > t.maxDate,
|
|
644
|
+
"fw-500": e.disabled && !e.otherMonth || t.minDate != null && new Date(e.date.year, e.date.month, e.date.day) < t.minDate || t.maxDate != null && new Date(e.date.year, e.date.month, e.date.day) > t.maxDate
|
|
645
|
+
}
|
|
646
|
+
]
|
|
647
|
+
}),
|
|
614
648
|
decade: "fw-bold",
|
|
615
649
|
dayView: "datepicker-table",
|
|
616
650
|
tableHeaderRow: "text-center",
|
|
@@ -760,7 +794,7 @@ const Xe = {
|
|
|
760
794
|
]
|
|
761
795
|
})
|
|
762
796
|
}
|
|
763
|
-
},
|
|
797
|
+
}, ht = {
|
|
764
798
|
badge: {
|
|
765
799
|
root: ({ props: e }) => ({
|
|
766
800
|
class: [
|
|
@@ -782,7 +816,7 @@ const Xe = {
|
|
|
782
816
|
]
|
|
783
817
|
})
|
|
784
818
|
}
|
|
785
|
-
},
|
|
819
|
+
}, xt = {
|
|
786
820
|
// More PassThrough options in component file.
|
|
787
821
|
menubar: {
|
|
788
822
|
rootList: ({ instance: e }) => ({
|
|
@@ -991,7 +1025,7 @@ const Xe = {
|
|
|
991
1025
|
previewMask: "preview-button",
|
|
992
1026
|
mask: "position-fixed top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center mask",
|
|
993
1027
|
original: "preview",
|
|
994
|
-
toolbar: "position-absolute top-0 end-0 d-flex p-3 z-3",
|
|
1028
|
+
toolbar: "position-absolute top-0 end-0 d-flex p-3 z-3 bg-black",
|
|
995
1029
|
rotaterightbutton: "btn text-white",
|
|
996
1030
|
rotateleftbutton: "btn text-white",
|
|
997
1031
|
zoomoutbutton: "btn text-white",
|
|
@@ -1181,7 +1215,7 @@ const Xe = {
|
|
|
1181
1215
|
}
|
|
1182
1216
|
}, Qi = {
|
|
1183
1217
|
...Xe,
|
|
1184
|
-
...
|
|
1218
|
+
...ht,
|
|
1185
1219
|
...Qe,
|
|
1186
1220
|
...Ft,
|
|
1187
1221
|
...et,
|
|
@@ -1197,7 +1231,7 @@ const Xe = {
|
|
|
1197
1231
|
...nt,
|
|
1198
1232
|
...ct,
|
|
1199
1233
|
...ft,
|
|
1200
|
-
...
|
|
1234
|
+
...xt,
|
|
1201
1235
|
...pt,
|
|
1202
1236
|
...gt,
|
|
1203
1237
|
...Bt,
|
|
@@ -1218,7 +1252,7 @@ const Xe = {
|
|
|
1218
1252
|
directives: {
|
|
1219
1253
|
...wt
|
|
1220
1254
|
}
|
|
1221
|
-
}, de = /* @__PURE__ */
|
|
1255
|
+
}, de = /* @__PURE__ */ C({
|
|
1222
1256
|
__name: "ForgeAlert",
|
|
1223
1257
|
props: {
|
|
1224
1258
|
severity: { default: "primary" },
|
|
@@ -1239,31 +1273,31 @@ const Xe = {
|
|
|
1239
1273
|
const t = e;
|
|
1240
1274
|
return (a, i) => {
|
|
1241
1275
|
const l = Be;
|
|
1242
|
-
return
|
|
1276
|
+
return d(), y(l, W(G({ ...a.$attrs, ...t })), {
|
|
1243
1277
|
icon: f(() => [
|
|
1244
1278
|
m("div", {
|
|
1245
|
-
class:
|
|
1279
|
+
class: S(t.icon ? "me-2 pe-1" : "")
|
|
1246
1280
|
}, [
|
|
1247
|
-
t.icon ? (
|
|
1281
|
+
t.icon ? (d(), y(u(P), {
|
|
1248
1282
|
key: 0,
|
|
1249
1283
|
"data-cy": "message-icon",
|
|
1250
1284
|
icon: t.icon,
|
|
1251
|
-
class:
|
|
1285
|
+
class: S(`text-${t.severity}`),
|
|
1252
1286
|
height: 35
|
|
1253
|
-
}, null, 8, ["icon", "class"])) :
|
|
1287
|
+
}, null, 8, ["icon", "class"])) : z("", !0)
|
|
1254
1288
|
], 2)
|
|
1255
1289
|
]),
|
|
1256
1290
|
closeicon: f(() => [
|
|
1257
|
-
|
|
1291
|
+
w(u(P), { icon: "bi:x" })
|
|
1258
1292
|
]),
|
|
1259
1293
|
default: f(() => [
|
|
1260
|
-
|
|
1294
|
+
B(a.$slots, "default")
|
|
1261
1295
|
]),
|
|
1262
1296
|
_: 3
|
|
1263
1297
|
}, 16);
|
|
1264
1298
|
};
|
|
1265
1299
|
}
|
|
1266
|
-
}), el = /* @__PURE__ */
|
|
1300
|
+
}), el = /* @__PURE__ */ C({
|
|
1267
1301
|
__name: "ForgeActionButton",
|
|
1268
1302
|
props: {
|
|
1269
1303
|
action: {},
|
|
@@ -1283,27 +1317,27 @@ const Xe = {
|
|
|
1283
1317
|
};
|
|
1284
1318
|
return (l, n) => {
|
|
1285
1319
|
const o = q;
|
|
1286
|
-
return
|
|
1287
|
-
|
|
1320
|
+
return d(), v(A, null, [
|
|
1321
|
+
w(o, _({ ...a, ...l.$attrs }, {
|
|
1288
1322
|
loading: t.value,
|
|
1289
1323
|
disabled: t.value || a.disabled,
|
|
1290
1324
|
onClick: i
|
|
1291
1325
|
}), null, 16, ["loading", "disabled"]),
|
|
1292
|
-
|
|
1326
|
+
w(u(Te))
|
|
1293
1327
|
], 64);
|
|
1294
1328
|
};
|
|
1295
1329
|
}
|
|
1296
|
-
}), tl = /* @__PURE__ */
|
|
1330
|
+
}), tl = /* @__PURE__ */ C({
|
|
1297
1331
|
__name: "ForgeAutoComplete",
|
|
1298
1332
|
setup(e) {
|
|
1299
|
-
return (t, a) => (
|
|
1333
|
+
return (t, a) => (d(), y(u(_e), _({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1300
1334
|
default: f(() => [
|
|
1301
|
-
(
|
|
1335
|
+
(d(!0), v(A, null, E(t.$slots, (i, l) => B(t.$slots, l, { slot: l })), 256))
|
|
1302
1336
|
]),
|
|
1303
1337
|
_: 3
|
|
1304
1338
|
}, 16));
|
|
1305
1339
|
}
|
|
1306
|
-
}), Mt = { class: "d-flex flex-column" }, Vt = ["for"], ye = /* @__PURE__ */
|
|
1340
|
+
}), Mt = { class: "d-flex flex-column" }, Vt = ["for"], ye = /* @__PURE__ */ C({
|
|
1307
1341
|
__name: "ForgeCheckbox",
|
|
1308
1342
|
props: /* @__PURE__ */ R({
|
|
1309
1343
|
label: { default: "" },
|
|
@@ -1347,50 +1381,50 @@ const Xe = {
|
|
|
1347
1381
|
}
|
|
1348
1382
|
), o = (p, c) => {
|
|
1349
1383
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
|
|
1350
|
-
}, s =
|
|
1384
|
+
}, s = T(() => l.value.length > 0);
|
|
1351
1385
|
return (p, c) => {
|
|
1352
|
-
const
|
|
1353
|
-
return
|
|
1386
|
+
const h = Pe;
|
|
1387
|
+
return d(), v("div", Mt, [
|
|
1354
1388
|
m("div", _({
|
|
1355
1389
|
class: "d-flex",
|
|
1356
1390
|
"data-cy": "checkbox-container",
|
|
1357
|
-
onClick: c[2] || (c[2] = (
|
|
1391
|
+
onClick: c[2] || (c[2] = (r) => o(r, a.value))
|
|
1358
1392
|
}, { ...p.$attrs }), [
|
|
1359
|
-
h
|
|
1393
|
+
w(h, _({ ...t }, {
|
|
1360
1394
|
binary: "",
|
|
1361
1395
|
modelValue: a.value,
|
|
1362
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1396
|
+
"onUpdate:modelValue": c[0] || (c[0] = (r) => a.value = r),
|
|
1363
1397
|
"input-id": t.name,
|
|
1364
1398
|
"input-class": { "is-invalid": s.value },
|
|
1365
1399
|
class: t.disabled || t.readonly ? "" : "cursor-pointer"
|
|
1366
1400
|
}), null, 16, ["modelValue", "input-id", "input-class", "class"]),
|
|
1367
1401
|
m("label", {
|
|
1368
1402
|
for: t.name,
|
|
1369
|
-
onClick: c[1] || (c[1] = (
|
|
1370
|
-
class:
|
|
1403
|
+
onClick: c[1] || (c[1] = (r) => o(r, !a.value)),
|
|
1404
|
+
class: S([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1371
1405
|
}, [
|
|
1372
|
-
|
|
1373
|
-
M(
|
|
1406
|
+
B(p.$slots, "default", {}, () => [
|
|
1407
|
+
M(F(t.label), 1)
|
|
1374
1408
|
])
|
|
1375
1409
|
], 10, Vt)
|
|
1376
1410
|
], 16),
|
|
1377
1411
|
J(m("small", {
|
|
1378
1412
|
"data-cy": "error",
|
|
1379
1413
|
class: "text-invalid"
|
|
1380
|
-
},
|
|
1414
|
+
}, F(u(n)), 513), [
|
|
1381
1415
|
[Z, s.value]
|
|
1382
1416
|
])
|
|
1383
1417
|
]);
|
|
1384
1418
|
};
|
|
1385
1419
|
}
|
|
1386
|
-
}), pe = /* @__PURE__ */
|
|
1420
|
+
}), pe = /* @__PURE__ */ C({
|
|
1387
1421
|
__name: "ForgeLoader",
|
|
1388
1422
|
props: {
|
|
1389
1423
|
severity: { default: "primary" },
|
|
1390
1424
|
inLine: { type: Boolean, default: !1 }
|
|
1391
1425
|
},
|
|
1392
1426
|
setup(e) {
|
|
1393
|
-
const t = e, a =
|
|
1427
|
+
const t = e, a = T(() => ({
|
|
1394
1428
|
spin: () => ({
|
|
1395
1429
|
class: [
|
|
1396
1430
|
"spinner-border",
|
|
@@ -1402,18 +1436,18 @@ const Xe = {
|
|
|
1402
1436
|
}));
|
|
1403
1437
|
return (i, l) => {
|
|
1404
1438
|
const n = je;
|
|
1405
|
-
return
|
|
1406
|
-
class:
|
|
1439
|
+
return d(), v("div", {
|
|
1440
|
+
class: S(i.inLine ? "" : "forge-loader")
|
|
1407
1441
|
}, [
|
|
1408
|
-
|
|
1442
|
+
w(n, {
|
|
1409
1443
|
"animation-duration": ".75",
|
|
1410
|
-
class:
|
|
1444
|
+
class: S(`text-${t.severity === void 0 ? "primary" : t.severity}`),
|
|
1411
1445
|
pt: a.value
|
|
1412
1446
|
}, null, 8, ["class", "pt"])
|
|
1413
1447
|
], 2);
|
|
1414
1448
|
};
|
|
1415
1449
|
}
|
|
1416
|
-
}), Dt = ["href", "target"], al = /* @__PURE__ */
|
|
1450
|
+
}), Dt = ["href", "target"], al = /* @__PURE__ */ C({
|
|
1417
1451
|
__name: "ForgeLink",
|
|
1418
1452
|
props: {
|
|
1419
1453
|
url: {},
|
|
@@ -1431,7 +1465,7 @@ const Xe = {
|
|
|
1431
1465
|
iconName: {}
|
|
1432
1466
|
},
|
|
1433
1467
|
setup(e) {
|
|
1434
|
-
const t =
|
|
1468
|
+
const t = T(() => ({
|
|
1435
1469
|
[`link-${e.severity}`]: e.severity,
|
|
1436
1470
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1437
1471
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1440,27 +1474,27 @@ const Xe = {
|
|
|
1440
1474
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1441
1475
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1442
1476
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1443
|
-
})), a =
|
|
1477
|
+
})), a = T(() => ({
|
|
1444
1478
|
"order-2": e.positionIconEnd,
|
|
1445
1479
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1446
1480
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
1447
1481
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1448
1482
|
"me-0": e.animateIconOnHover
|
|
1449
1483
|
}));
|
|
1450
|
-
return (i, l) => (
|
|
1484
|
+
return (i, l) => (d(), v("a", {
|
|
1451
1485
|
id: "link",
|
|
1452
|
-
class:
|
|
1486
|
+
class: S(["cursor-pointer d-flex text-break", t.value]),
|
|
1453
1487
|
href: i.url,
|
|
1454
1488
|
target: i.target
|
|
1455
1489
|
}, [
|
|
1456
|
-
|
|
1457
|
-
i.iconName ? (
|
|
1490
|
+
B(i.$slots, "default", {}, () => [
|
|
1491
|
+
i.iconName ? (d(), y(u(P), {
|
|
1458
1492
|
key: 0,
|
|
1459
1493
|
id: "link-icon",
|
|
1460
1494
|
icon: i.iconName,
|
|
1461
|
-
class:
|
|
1462
|
-
}, null, 8, ["icon", "class"])) :
|
|
1463
|
-
M(" " +
|
|
1495
|
+
class: S(["bi my-auto", a.value])
|
|
1496
|
+
}, null, 8, ["icon", "class"])) : z("", !0),
|
|
1497
|
+
M(" " + F(i.label), 1)
|
|
1464
1498
|
])
|
|
1465
1499
|
], 10, Dt));
|
|
1466
1500
|
}
|
|
@@ -1489,7 +1523,7 @@ const Nt = {
|
|
|
1489
1523
|
}, At = { key: 0 }, Et = {
|
|
1490
1524
|
class: "d-flex w-100",
|
|
1491
1525
|
"data-cy": "footer"
|
|
1492
|
-
}, nl = /* @__PURE__ */
|
|
1526
|
+
}, nl = /* @__PURE__ */ C({
|
|
1493
1527
|
__name: "ForgeModal",
|
|
1494
1528
|
props: /* @__PURE__ */ R({
|
|
1495
1529
|
cancelText: { default: "Cancel" },
|
|
@@ -1565,22 +1599,22 @@ const Nt = {
|
|
|
1565
1599
|
i.value = !1;
|
|
1566
1600
|
}, c = () => {
|
|
1567
1601
|
i.value = !0;
|
|
1568
|
-
},
|
|
1602
|
+
}, h = () => {
|
|
1569
1603
|
l.resetErrorOnClose && s(), a.value = !1;
|
|
1570
|
-
},
|
|
1604
|
+
}, r = async () => {
|
|
1571
1605
|
if (l.onConfirm) {
|
|
1572
1606
|
n.value = !0, o.value.hasError = !1;
|
|
1573
1607
|
try {
|
|
1574
|
-
const
|
|
1575
|
-
(
|
|
1576
|
-
} catch (
|
|
1608
|
+
const $ = await l.onConfirm();
|
|
1609
|
+
($ || $ == null) && h();
|
|
1610
|
+
} catch ($) {
|
|
1577
1611
|
o.value.hasError = !0;
|
|
1578
|
-
const D = Ot(
|
|
1612
|
+
const D = Ot($);
|
|
1579
1613
|
o.value.header = D.errorMessage, o.value.message = D.errorDetails;
|
|
1580
1614
|
}
|
|
1581
1615
|
n.value = !1;
|
|
1582
1616
|
}
|
|
1583
|
-
},
|
|
1617
|
+
}, x = T(() => ({
|
|
1584
1618
|
root: [
|
|
1585
1619
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1586
1620
|
{
|
|
@@ -1599,24 +1633,24 @@ const Nt = {
|
|
|
1599
1633
|
}
|
|
1600
1634
|
]
|
|
1601
1635
|
}));
|
|
1602
|
-
return (
|
|
1636
|
+
return ($, D) => {
|
|
1603
1637
|
const O = q, U = Ie;
|
|
1604
|
-
return
|
|
1638
|
+
return d(), y(U, _(l, {
|
|
1605
1639
|
onMaximize: c,
|
|
1606
1640
|
onUnmaximize: p,
|
|
1607
|
-
pt:
|
|
1641
|
+
pt: x.value
|
|
1608
1642
|
}), ae({
|
|
1609
1643
|
closeicon: f(() => [
|
|
1610
|
-
|
|
1644
|
+
w(u(P), {
|
|
1611
1645
|
"data-cy": "close-icon",
|
|
1612
1646
|
icon: "bi:x-lg",
|
|
1613
1647
|
width: "18",
|
|
1614
1648
|
height: "18",
|
|
1615
|
-
onClick:
|
|
1649
|
+
onClick: h
|
|
1616
1650
|
})
|
|
1617
1651
|
]),
|
|
1618
1652
|
maximizeicon: f(() => [
|
|
1619
|
-
|
|
1653
|
+
w(u(P), {
|
|
1620
1654
|
"data-cy": "maximisable-icon",
|
|
1621
1655
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1622
1656
|
width: "16",
|
|
@@ -1625,50 +1659,50 @@ const Nt = {
|
|
|
1625
1659
|
]),
|
|
1626
1660
|
_: 2
|
|
1627
1661
|
}, [
|
|
1628
|
-
E(
|
|
1629
|
-
name:
|
|
1662
|
+
E($.$slots, (b, k) => ({
|
|
1663
|
+
name: k,
|
|
1630
1664
|
fn: f((I) => [
|
|
1631
|
-
|
|
1632
|
-
o.value.hasError ? (
|
|
1633
|
-
|
|
1665
|
+
k == "default" ? (d(), v(A, { key: 0 }, [
|
|
1666
|
+
o.value.hasError ? (d(), v("div", Nt, [
|
|
1667
|
+
w(de, {
|
|
1634
1668
|
severity: "danger",
|
|
1635
1669
|
"data-cy": "error",
|
|
1636
1670
|
class: "mb-0"
|
|
1637
1671
|
}, {
|
|
1638
1672
|
default: f(() => [
|
|
1639
1673
|
m("p", {
|
|
1640
|
-
class:
|
|
1641
|
-
},
|
|
1642
|
-
o.value.message.length > 0 ? (
|
|
1643
|
-
(
|
|
1644
|
-
])) :
|
|
1674
|
+
class: S(o.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1675
|
+
}, F(o.value.header), 3),
|
|
1676
|
+
o.value.message.length > 0 ? (d(), v("ul", At, [
|
|
1677
|
+
(d(!0), v(A, null, E(o.value.message, (g) => (d(), v("li", { key: g }, F(g), 1))), 128))
|
|
1678
|
+
])) : z("", !0)
|
|
1645
1679
|
]),
|
|
1646
1680
|
_: 1
|
|
1647
1681
|
})
|
|
1648
|
-
])) :
|
|
1649
|
-
], 64)) :
|
|
1650
|
-
|
|
1651
|
-
n.value ?
|
|
1652
|
-
|
|
1653
|
-
]) :
|
|
1682
|
+
])) : z("", !0)
|
|
1683
|
+
], 64)) : z("", !0),
|
|
1684
|
+
B($.$slots, k, W(G(I || {}))),
|
|
1685
|
+
n.value ? B($.$slots, "loader", { key: 1 }, () => [
|
|
1686
|
+
w(pe, { "data-cy": "loader" })
|
|
1687
|
+
]) : z("", !0)
|
|
1654
1688
|
])
|
|
1655
1689
|
})),
|
|
1656
|
-
|
|
1690
|
+
$.showFooter ? {
|
|
1657
1691
|
name: "footer",
|
|
1658
1692
|
fn: f(() => [
|
|
1659
1693
|
m("div", Et, [
|
|
1660
|
-
|
|
1661
|
-
label:
|
|
1662
|
-
class:
|
|
1694
|
+
w(O, {
|
|
1695
|
+
label: $.cancelText,
|
|
1696
|
+
class: S(l.cancelClass),
|
|
1663
1697
|
outlined: "",
|
|
1664
|
-
onClick:
|
|
1698
|
+
onClick: h,
|
|
1665
1699
|
id: "cancel-button",
|
|
1666
1700
|
type: l.cancelButtonType
|
|
1667
1701
|
}, null, 8, ["label", "class", "type"]),
|
|
1668
|
-
|
|
1669
|
-
label:
|
|
1670
|
-
class:
|
|
1671
|
-
onClick:
|
|
1702
|
+
w(O, {
|
|
1703
|
+
label: $.submitText,
|
|
1704
|
+
class: S([l.submitClass, "ms-auto"]),
|
|
1705
|
+
onClick: r,
|
|
1672
1706
|
id: "submit-button",
|
|
1673
1707
|
type: l.submitButtonType
|
|
1674
1708
|
}, null, 8, ["label", "class", "type"])
|
|
@@ -1679,7 +1713,7 @@ const Nt = {
|
|
|
1679
1713
|
]), 1040, ["pt"]);
|
|
1680
1714
|
};
|
|
1681
1715
|
}
|
|
1682
|
-
}), Ut = ["id"], qt = { key: 0 }, Lt = { key: 0 }, Rt = { class: "d-flex justify-content-between align-items-center position-relative" }, Ht = { key: 1 }, Wt = { "data-cy": "readonly-value" }, Gt = /* @__PURE__ */
|
|
1716
|
+
}), Ut = ["id"], qt = { key: 0 }, Lt = { key: 0 }, Rt = { class: "d-flex justify-content-between align-items-center position-relative" }, Ht = { key: 1 }, Wt = { "data-cy": "readonly-value" }, Gt = /* @__PURE__ */ C({
|
|
1683
1717
|
__name: "ForgeInlineEditor",
|
|
1684
1718
|
props: /* @__PURE__ */ R({
|
|
1685
1719
|
name: { default: "" },
|
|
@@ -1695,12 +1729,12 @@ const Nt = {
|
|
|
1695
1729
|
emits: ["update:modelValue"],
|
|
1696
1730
|
setup(e) {
|
|
1697
1731
|
const t = e, a = N(e, "modelValue"), i = j(!1), l = j(), n = () => {
|
|
1698
|
-
var
|
|
1699
|
-
i.value = !i.value, (
|
|
1732
|
+
var $;
|
|
1733
|
+
i.value = !i.value, ($ = l.value) == null || $.focus();
|
|
1700
1734
|
}, o = async () => {
|
|
1701
|
-
if (
|
|
1735
|
+
if (x.value)
|
|
1702
1736
|
return !1;
|
|
1703
|
-
if (a.value =
|
|
1737
|
+
if (a.value = r.value, t.completeAction)
|
|
1704
1738
|
try {
|
|
1705
1739
|
await t.completeAction.apply(this, t.params), i.value = !i.value;
|
|
1706
1740
|
} catch {
|
|
@@ -1711,47 +1745,47 @@ const Nt = {
|
|
|
1711
1745
|
}, s = () => {
|
|
1712
1746
|
i.value = !i.value;
|
|
1713
1747
|
}, p = () => {
|
|
1714
|
-
|
|
1715
|
-
}, { errorMessage: c, errors:
|
|
1748
|
+
r.value = null;
|
|
1749
|
+
}, { errorMessage: c, errors: h, value: r } = oe(() => t.name, void 0, {
|
|
1716
1750
|
initialValue: a.value
|
|
1717
1751
|
});
|
|
1718
1752
|
ne(() => {
|
|
1719
|
-
|
|
1753
|
+
r.value = a.value;
|
|
1720
1754
|
});
|
|
1721
|
-
const
|
|
1722
|
-
return (
|
|
1755
|
+
const x = T(() => h.value.length > 0);
|
|
1756
|
+
return ($, D) => {
|
|
1723
1757
|
const O = se, U = q;
|
|
1724
|
-
return
|
|
1758
|
+
return d(), v("div", {
|
|
1725
1759
|
id: t.name
|
|
1726
1760
|
}, [
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
m("span", Wt,
|
|
1761
|
+
$.readonly ? (d(), v("div", Ht, [
|
|
1762
|
+
B($.$slots, "default", {}, () => [
|
|
1763
|
+
m("span", Wt, F(u(r)), 1)
|
|
1730
1764
|
])
|
|
1731
|
-
])) : (
|
|
1732
|
-
i.value ? (
|
|
1733
|
-
J((
|
|
1734
|
-
|
|
1735
|
-
class:
|
|
1765
|
+
])) : (d(), v("div", qt, [
|
|
1766
|
+
i.value ? (d(), v("div", Lt, [
|
|
1767
|
+
J((d(), v("div", Rt, [
|
|
1768
|
+
B($.$slots, "editor", {
|
|
1769
|
+
class: S({ "is-invalid": x.value }),
|
|
1736
1770
|
editFinished: o,
|
|
1737
1771
|
cancel: s,
|
|
1738
|
-
val: u(
|
|
1772
|
+
val: u(r)
|
|
1739
1773
|
}, () => [
|
|
1740
|
-
|
|
1741
|
-
modelValue: u(
|
|
1742
|
-
"onUpdate:modelValue": D[0] || (D[0] = (b) => Fe(
|
|
1774
|
+
w(O, {
|
|
1775
|
+
modelValue: u(r),
|
|
1776
|
+
"onUpdate:modelValue": D[0] || (D[0] = (b) => Fe(r) ? r.value = b : null),
|
|
1743
1777
|
modelModifiers: { trim: !0 },
|
|
1744
1778
|
"data-cy": "input",
|
|
1745
1779
|
ref_key: "input",
|
|
1746
1780
|
ref: l,
|
|
1747
|
-
class:
|
|
1781
|
+
class: S({ "is-invalid": x.value }),
|
|
1748
1782
|
onKeydown: [
|
|
1749
1783
|
le(o, ["enter"]),
|
|
1750
1784
|
le(s, ["esc"])
|
|
1751
1785
|
]
|
|
1752
1786
|
}, null, 8, ["modelValue", "class"])
|
|
1753
1787
|
]),
|
|
1754
|
-
|
|
1788
|
+
w(u(P), {
|
|
1755
1789
|
icon: "bi:x-circle",
|
|
1756
1790
|
class: "mx-2 cursor-pointer",
|
|
1757
1791
|
onClick: p,
|
|
@@ -1761,26 +1795,26 @@ const Nt = {
|
|
|
1761
1795
|
])), [
|
|
1762
1796
|
[u(Me), o]
|
|
1763
1797
|
])
|
|
1764
|
-
])) : (
|
|
1798
|
+
])) : (d(), v("div", {
|
|
1765
1799
|
key: 1,
|
|
1766
1800
|
class: "d-flex text-muted",
|
|
1767
1801
|
onClick: n,
|
|
1768
1802
|
onFocus: n
|
|
1769
1803
|
}, [
|
|
1770
|
-
|
|
1804
|
+
B($.$slots, "default", {}, () => [
|
|
1771
1805
|
m("div", {
|
|
1772
|
-
class:
|
|
1806
|
+
class: S(["pe-2 cursor-pointer", { "text-invalid": x.value }]),
|
|
1773
1807
|
"data-cy": "value"
|
|
1774
|
-
},
|
|
1808
|
+
}, F(u(r) ? u(r) : "Click to edit"), 3)
|
|
1775
1809
|
]),
|
|
1776
|
-
|
|
1810
|
+
w(U, {
|
|
1777
1811
|
link: "",
|
|
1778
1812
|
class: "p-0 m-0"
|
|
1779
1813
|
}, {
|
|
1780
1814
|
default: f(() => [
|
|
1781
|
-
|
|
1815
|
+
w(u(P), {
|
|
1782
1816
|
icon: "bi:pencil",
|
|
1783
|
-
class:
|
|
1817
|
+
class: S(x.value ? "text-invalid" : "text-muted"),
|
|
1784
1818
|
"data-cy": "edit-icon",
|
|
1785
1819
|
onKeydown: le(n, ["enter"])
|
|
1786
1820
|
}, null, 8, ["class"])
|
|
@@ -1792,13 +1826,13 @@ const Nt = {
|
|
|
1792
1826
|
J(m("small", {
|
|
1793
1827
|
"data-cy": "error",
|
|
1794
1828
|
class: "text-invalid"
|
|
1795
|
-
},
|
|
1796
|
-
[Z,
|
|
1829
|
+
}, F(u(c)), 513), [
|
|
1830
|
+
[Z, x.value]
|
|
1797
1831
|
])
|
|
1798
1832
|
], 8, Ut);
|
|
1799
1833
|
};
|
|
1800
1834
|
}
|
|
1801
|
-
}), Yt = ["href"], ol = /* @__PURE__ */
|
|
1835
|
+
}), Yt = ["href"], ol = /* @__PURE__ */ C({
|
|
1802
1836
|
__name: "ForgeNavbar",
|
|
1803
1837
|
props: {
|
|
1804
1838
|
severity: { default: "light" },
|
|
@@ -1815,7 +1849,7 @@ const Nt = {
|
|
|
1815
1849
|
unstyled: { type: Boolean }
|
|
1816
1850
|
},
|
|
1817
1851
|
setup(e) {
|
|
1818
|
-
const t = e, a =
|
|
1852
|
+
const t = e, a = T(() => ({
|
|
1819
1853
|
root: () => ({
|
|
1820
1854
|
class: [
|
|
1821
1855
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1843,7 +1877,7 @@ const Nt = {
|
|
|
1843
1877
|
]
|
|
1844
1878
|
})
|
|
1845
1879
|
}));
|
|
1846
|
-
return (i, l) => (
|
|
1880
|
+
return (i, l) => (d(), y(u(Ve), _({ ...t, ...i.$attrs }, {
|
|
1847
1881
|
pt: a.value,
|
|
1848
1882
|
"data-cy": "navbar"
|
|
1849
1883
|
}), ae({
|
|
@@ -1853,16 +1887,16 @@ const Nt = {
|
|
|
1853
1887
|
class: "navbar-brand ms-3",
|
|
1854
1888
|
"data-cy": "logo"
|
|
1855
1889
|
}, [
|
|
1856
|
-
|
|
1890
|
+
B(i.$slots, "logo", {}, () => [
|
|
1857
1891
|
l[0] || (l[0] = M(" Logo "))
|
|
1858
1892
|
])
|
|
1859
1893
|
], 8, Yt)
|
|
1860
1894
|
]),
|
|
1861
1895
|
buttonicon: f(() => [
|
|
1862
|
-
|
|
1863
|
-
|
|
1896
|
+
B(i.$slots, "buttonIcon", {}, () => [
|
|
1897
|
+
w(u(P), {
|
|
1864
1898
|
icon: "bi:list",
|
|
1865
|
-
class:
|
|
1899
|
+
class: S(t.severity === "light" ? "text-black" : "text-white"),
|
|
1866
1900
|
height: "24",
|
|
1867
1901
|
"data-cy": "burger-icon"
|
|
1868
1902
|
}, null, 8, ["class"])
|
|
@@ -1873,7 +1907,7 @@ const Nt = {
|
|
|
1873
1907
|
E(i.$slots, (n, o) => ({
|
|
1874
1908
|
name: o,
|
|
1875
1909
|
fn: f((s) => [
|
|
1876
|
-
|
|
1910
|
+
B(i.$slots, o, W(G(s)))
|
|
1877
1911
|
])
|
|
1878
1912
|
}))
|
|
1879
1913
|
]), 1040, ["pt"]));
|
|
@@ -1885,7 +1919,7 @@ const Nt = {
|
|
|
1885
1919
|
}, Zt = { class: "d-inline-block" }, Xt = {
|
|
1886
1920
|
key: 1,
|
|
1887
1921
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1888
|
-
}, Qt = /* @__PURE__ */
|
|
1922
|
+
}, Qt = /* @__PURE__ */ C({
|
|
1889
1923
|
__name: "ForgeMultiSelectPreview",
|
|
1890
1924
|
props: /* @__PURE__ */ R({
|
|
1891
1925
|
title: { default: "Selected Items" },
|
|
@@ -1906,15 +1940,15 @@ const Nt = {
|
|
|
1906
1940
|
};
|
|
1907
1941
|
return (l, n) => {
|
|
1908
1942
|
const o = re, s = q;
|
|
1909
|
-
return
|
|
1910
|
-
class:
|
|
1943
|
+
return d(), v("div", {
|
|
1944
|
+
class: S(l.orientation === "column" ? "row" : ""),
|
|
1911
1945
|
"data-cy": "multiselect-preview"
|
|
1912
1946
|
}, [
|
|
1913
1947
|
m("div", {
|
|
1914
|
-
class:
|
|
1948
|
+
class: S(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1915
1949
|
"data-cy": "multiselect-container"
|
|
1916
1950
|
}, [
|
|
1917
|
-
|
|
1951
|
+
w(o, _({
|
|
1918
1952
|
modelValue: a.value,
|
|
1919
1953
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
|
|
1920
1954
|
}, { ...l.$attrs }, {
|
|
@@ -1924,14 +1958,14 @@ const Nt = {
|
|
|
1924
1958
|
"data-cy": "multiselect"
|
|
1925
1959
|
}), {
|
|
1926
1960
|
default: f(() => [
|
|
1927
|
-
(
|
|
1961
|
+
(d(!0), v(A, null, E(l.$slots, (p, c) => B(l.$slots, c, { slot: c })), 256))
|
|
1928
1962
|
]),
|
|
1929
1963
|
_: 3
|
|
1930
1964
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1931
|
-
|
|
1965
|
+
B(l.$slots, "after-multi-select")
|
|
1932
1966
|
], 2),
|
|
1933
1967
|
m("div", {
|
|
1934
|
-
class:
|
|
1968
|
+
class: S(l.orientation === "row" ? "col-12" : "col"),
|
|
1935
1969
|
"data-cy": "options-preview"
|
|
1936
1970
|
}, [
|
|
1937
1971
|
m("div", {
|
|
@@ -1939,31 +1973,31 @@ const Nt = {
|
|
|
1939
1973
|
class: "overflow-auto"
|
|
1940
1974
|
}, [
|
|
1941
1975
|
m("div", Jt, [
|
|
1942
|
-
l.title ? (
|
|
1943
|
-
(
|
|
1976
|
+
l.title ? (d(), v("div", Kt, F(l.title), 1)) : z("", !0),
|
|
1977
|
+
(d(!0), v(A, null, E(a.value, (p) => (d(), v("div", {
|
|
1944
1978
|
key: p.id,
|
|
1945
1979
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1946
1980
|
}, [
|
|
1947
|
-
|
|
1948
|
-
m("span", Zt,
|
|
1981
|
+
B(l.$slots, "list-item", { item: p }, () => [
|
|
1982
|
+
m("span", Zt, F(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1949
1983
|
]),
|
|
1950
|
-
l.canRemoveItemFromPreview ? (
|
|
1984
|
+
l.canRemoveItemFromPreview ? (d(), y(s, {
|
|
1951
1985
|
key: 0,
|
|
1952
1986
|
link: "",
|
|
1953
1987
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1954
1988
|
onClick: (c) => i(p.id)
|
|
1955
1989
|
}, {
|
|
1956
1990
|
default: f(() => [
|
|
1957
|
-
|
|
1991
|
+
w(u(P), {
|
|
1958
1992
|
icon: "bi:x",
|
|
1959
1993
|
class: "close-icon",
|
|
1960
1994
|
"data-cy": `close-icon-${p.id}`
|
|
1961
1995
|
}, null, 8, ["data-cy"])
|
|
1962
1996
|
]),
|
|
1963
1997
|
_: 2
|
|
1964
|
-
}, 1032, ["onClick"])) :
|
|
1998
|
+
}, 1032, ["onClick"])) : z("", !0)
|
|
1965
1999
|
]))), 128)),
|
|
1966
|
-
a.value == null || a.value.length == 0 ? (
|
|
2000
|
+
a.value == null || a.value.length == 0 ? (d(), v("div", Xt, F(t.optionsPreviewEmptyText), 1)) : z("", !0)
|
|
1967
2001
|
])
|
|
1968
2002
|
], 4)
|
|
1969
2003
|
], 2)
|
|
@@ -1976,21 +2010,21 @@ const Nt = {
|
|
|
1976
2010
|
}, aa = {
|
|
1977
2011
|
"data-cy": "slot",
|
|
1978
2012
|
class: "d-flex align-items-center"
|
|
1979
|
-
}, sl = /* @__PURE__ */
|
|
2013
|
+
}, sl = /* @__PURE__ */ C({
|
|
1980
2014
|
__name: "ForgePageHeader",
|
|
1981
2015
|
props: {
|
|
1982
2016
|
title: {}
|
|
1983
2017
|
},
|
|
1984
2018
|
setup(e) {
|
|
1985
2019
|
const t = e;
|
|
1986
|
-
return (a, i) => (
|
|
1987
|
-
m("h3", ta,
|
|
2020
|
+
return (a, i) => (d(), v("div", ea, [
|
|
2021
|
+
m("h3", ta, F(t.title), 1),
|
|
1988
2022
|
m("div", aa, [
|
|
1989
|
-
|
|
2023
|
+
B(a.$slots, "default")
|
|
1990
2024
|
])
|
|
1991
2025
|
]));
|
|
1992
2026
|
}
|
|
1993
|
-
}), ia = { class: "d-flex" }, la = { "data-cy": "before-slot" }, na = { class: "position-relative w-100" }, oa = { "data-cy": "after-slot" },
|
|
2027
|
+
}), ia = { class: "d-flex" }, la = { "data-cy": "before-slot" }, na = { class: "position-relative w-100" }, oa = { "data-cy": "after-slot" }, he = /* @__PURE__ */ C({
|
|
1994
2028
|
__name: "ForgeDatepicker",
|
|
1995
2029
|
props: /* @__PURE__ */ R({
|
|
1996
2030
|
severity: { default: "primary" },
|
|
@@ -2069,34 +2103,43 @@ const Nt = {
|
|
|
2069
2103
|
initialValue: a.value
|
|
2070
2104
|
}), p = () => {
|
|
2071
2105
|
s(null), a.value = null;
|
|
2072
|
-
}, c =
|
|
2073
|
-
|
|
2106
|
+
}, c = T(() => i.value.length > 0), h = T(() => ({
|
|
2107
|
+
day: ({ context: r, props: x, attrs: $ }) => ({
|
|
2074
2108
|
class: [
|
|
2075
|
-
|
|
2109
|
+
"d-flex justify-content-center align-items-center",
|
|
2076
2110
|
{
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
"text-white":
|
|
2111
|
+
//When using a range, a disabled date can be both selected and disabled. This logic fights that and also applies the class if a
|
|
2112
|
+
//date across a month boundary is also selected (not prime vue functionality for some reason)
|
|
2113
|
+
"text-white": r.selected && (!r.disabled || r.disabled && r.otherMonth),
|
|
2114
|
+
"opacity-50": r.otherMonth,
|
|
2115
|
+
today: r.today,
|
|
2116
|
+
//When using a range, a disabled date can be both selected and disabled. This logic fights that and also applies the class if a
|
|
2117
|
+
//date across a month boundary is also selected (not prime vue functionality for some reason)
|
|
2118
|
+
selected: r.selected && (!r.disabled || r.disabled && r.otherMonth),
|
|
2119
|
+
//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
|
|
2120
|
+
//disabled for otherMonth dates) show the disabled styling for current calendar dates. The second part of logic is used to set the
|
|
2121
|
+
//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
|
|
2122
|
+
"text-grey-300": r.disabled && !r.otherMonth || x.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < x.minDate || x.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > x.maxDate,
|
|
2123
|
+
"fw-500": r.disabled && !r.otherMonth || x.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < x.minDate || x.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > x.maxDate
|
|
2080
2124
|
},
|
|
2081
2125
|
// Severities
|
|
2082
2126
|
{
|
|
2083
|
-
|
|
2084
|
-
"
|
|
2085
|
-
"
|
|
2086
|
-
"
|
|
2087
|
-
"
|
|
2088
|
-
"
|
|
2089
|
-
"
|
|
2090
|
-
"
|
|
2091
|
-
"text-info": !d.selected && d.today && t.severity === "info"
|
|
2127
|
+
"date-primary": $.severity === void 0 || $.severity === "primary",
|
|
2128
|
+
"date-brand": $.severity === "brand",
|
|
2129
|
+
"date-secondary": $.severity === "secondary",
|
|
2130
|
+
"date-success": $.severity === "success",
|
|
2131
|
+
"date-success-alternate": $.severity === "success-alternate",
|
|
2132
|
+
"date-warning": $.severity === "warning",
|
|
2133
|
+
"date-danger": $.severity === "danger",
|
|
2134
|
+
"date-info": $.severity === "info"
|
|
2092
2135
|
}
|
|
2093
2136
|
]
|
|
2094
2137
|
}),
|
|
2095
|
-
dayLabel: ({ context:
|
|
2138
|
+
dayLabel: ({ context: r }) => ({
|
|
2096
2139
|
class: [
|
|
2097
2140
|
// Disabled States
|
|
2098
2141
|
{
|
|
2099
|
-
"text-muted":
|
|
2142
|
+
"text-muted": r.disabled
|
|
2100
2143
|
}
|
|
2101
2144
|
]
|
|
2102
2145
|
}),
|
|
@@ -2134,97 +2177,97 @@ const Nt = {
|
|
|
2134
2177
|
]
|
|
2135
2178
|
})
|
|
2136
2179
|
},
|
|
2137
|
-
year: ({ context:
|
|
2180
|
+
year: ({ context: r }) => ({
|
|
2138
2181
|
class: [
|
|
2139
2182
|
"col-3 text-center cursor-pointer py-2",
|
|
2140
2183
|
{
|
|
2141
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2142
|
-
"text-brand": t.severity === "brand" &&
|
|
2143
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2144
|
-
"text-success": t.severity === "success" &&
|
|
2145
|
-
"text-success-alternate": t.severity === "success-alternate" &&
|
|
2146
|
-
"text-warning": t.severity === "warning" &&
|
|
2147
|
-
"text-danger": t.severity === "danger" &&
|
|
2148
|
-
"text-info": t.severity === "info" &&
|
|
2184
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2185
|
+
"text-brand": t.severity === "brand" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2186
|
+
"text-secondary": t.severity === "secondary" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2187
|
+
"text-success": t.severity === "success" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2188
|
+
"text-success-alternate": t.severity === "success-alternate" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2189
|
+
"text-warning": t.severity === "warning" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2190
|
+
"text-danger": t.severity === "danger" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2191
|
+
"text-info": t.severity === "info" && r.year.value === (/* @__PURE__ */ new Date()).getFullYear()
|
|
2149
2192
|
}
|
|
2150
2193
|
]
|
|
2151
2194
|
}),
|
|
2152
|
-
month: ({ context:
|
|
2195
|
+
month: ({ context: r }) => ({
|
|
2153
2196
|
class: [
|
|
2154
2197
|
"col-3 text-center cursor-pointer py-2",
|
|
2155
2198
|
{
|
|
2156
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2157
|
-
"text-brand": t.severity === "brand" &&
|
|
2158
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2159
|
-
"text-success": t.severity === "success" &&
|
|
2160
|
-
"text-success-alternate": t.severity === "success-alternate" &&
|
|
2161
|
-
"text-warning": t.severity === "warning" &&
|
|
2162
|
-
"text-danger": t.severity === "danger" &&
|
|
2163
|
-
"text-info": t.severity === "info" &&
|
|
2199
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2200
|
+
"text-brand": t.severity === "brand" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2201
|
+
"text-secondary": t.severity === "secondary" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2202
|
+
"text-success": t.severity === "success" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2203
|
+
"text-success-alternate": t.severity === "success-alternate" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2204
|
+
"text-warning": t.severity === "warning" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2205
|
+
"text-danger": t.severity === "danger" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2206
|
+
"text-info": t.severity === "info" && r.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
|
|
2164
2207
|
}
|
|
2165
2208
|
]
|
|
2166
2209
|
})
|
|
2167
2210
|
}));
|
|
2168
|
-
return (
|
|
2169
|
-
const
|
|
2170
|
-
return
|
|
2211
|
+
return (r, x) => {
|
|
2212
|
+
const $ = De;
|
|
2213
|
+
return d(), v(A, null, [
|
|
2171
2214
|
m("div", ia, [
|
|
2172
2215
|
m("span", la, [
|
|
2173
|
-
|
|
2216
|
+
B(r.$slots, "before")
|
|
2174
2217
|
]),
|
|
2175
2218
|
m("div", na, [
|
|
2176
|
-
|
|
2177
|
-
pt:
|
|
2219
|
+
w($, _({ ...t, ...r.$attrs }, {
|
|
2220
|
+
pt: h.value,
|
|
2178
2221
|
modelValue: a.value,
|
|
2179
2222
|
"onUpdate:modelValue": [
|
|
2180
|
-
|
|
2223
|
+
x[0] || (x[0] = (D) => a.value = D),
|
|
2181
2224
|
u(n)
|
|
2182
2225
|
],
|
|
2183
|
-
onBlur:
|
|
2184
|
-
"input-class": { "datepicker-invalid": c.value }
|
|
2226
|
+
onBlur: x[1] || (x[1] = () => u(o)),
|
|
2227
|
+
"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) }
|
|
2185
2228
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2186
|
-
J(
|
|
2229
|
+
J(w(u(P), {
|
|
2187
2230
|
"data-cy": "icon",
|
|
2188
2231
|
icon: "bi:calendar4",
|
|
2189
|
-
class:
|
|
2232
|
+
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"}`])
|
|
2190
2233
|
}, null, 8, ["class"]), [
|
|
2191
|
-
[Z, t.showIcon]
|
|
2234
|
+
[Z, t.showIcon && !t.inline]
|
|
2192
2235
|
]),
|
|
2193
|
-
J(
|
|
2236
|
+
J(w(u(P), {
|
|
2194
2237
|
"data-cy": "icon",
|
|
2195
2238
|
icon: "bi:x",
|
|
2196
2239
|
onClick: p,
|
|
2197
|
-
class:
|
|
2240
|
+
class: S(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2198
2241
|
}, null, 8, ["class"]), [
|
|
2199
|
-
[Z, t.modelValue]
|
|
2242
|
+
[Z, t.modelValue && !t.inline]
|
|
2200
2243
|
])
|
|
2201
2244
|
]),
|
|
2202
2245
|
m("span", oa, [
|
|
2203
|
-
|
|
2246
|
+
B(r.$slots, "after")
|
|
2204
2247
|
])
|
|
2205
2248
|
]),
|
|
2206
2249
|
J(m("small", {
|
|
2207
2250
|
"data-cy": "error",
|
|
2208
2251
|
class: "text-invalid"
|
|
2209
|
-
},
|
|
2252
|
+
}, F(u(l)), 513), [
|
|
2210
2253
|
[Z, c.value]
|
|
2211
2254
|
])
|
|
2212
2255
|
], 64);
|
|
2213
2256
|
};
|
|
2214
2257
|
}
|
|
2215
|
-
}), rl = /* @__PURE__ */
|
|
2258
|
+
}), rl = /* @__PURE__ */ C({
|
|
2216
2259
|
__name: "ForgeRemainingCharacters",
|
|
2217
2260
|
props: {
|
|
2218
2261
|
maxCount: { default: 300 },
|
|
2219
2262
|
currentCount: {}
|
|
2220
2263
|
},
|
|
2221
2264
|
setup(e) {
|
|
2222
|
-
const t = e, a =
|
|
2223
|
-
return (i, l) => (
|
|
2224
|
-
class:
|
|
2225
|
-
}, "Remaining characters: " +
|
|
2265
|
+
const t = e, a = T(() => t.maxCount - t.currentCount);
|
|
2266
|
+
return (i, l) => (d(), v("div", {
|
|
2267
|
+
class: S(a.value < 0 ? "text-danger" : "")
|
|
2268
|
+
}, "Remaining characters: " + F(a.value), 3));
|
|
2226
2269
|
}
|
|
2227
|
-
}), sa = { class: "d-flex justify-content-between" }, dl = /* @__PURE__ */
|
|
2270
|
+
}), sa = { class: "d-flex justify-content-between" }, dl = /* @__PURE__ */ C({
|
|
2228
2271
|
__name: "ForgeForm",
|
|
2229
2272
|
props: {
|
|
2230
2273
|
onSubmit: {},
|
|
@@ -2251,38 +2294,38 @@ const Nt = {
|
|
|
2251
2294
|
}
|
|
2252
2295
|
return (n, o) => {
|
|
2253
2296
|
const s = q;
|
|
2254
|
-
return
|
|
2297
|
+
return d(), v("form", _(n.$attrs, {
|
|
2255
2298
|
novalidate: "",
|
|
2256
2299
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2257
2300
|
onSubmit: X(l, ["prevent"])
|
|
2258
2301
|
}), [
|
|
2259
|
-
n.hideTitle ?
|
|
2260
|
-
|
|
2302
|
+
n.hideTitle ? z("", !0) : (d(), v(A, { key: 0 }, [
|
|
2303
|
+
B(n.$slots, "title", {}, () => [
|
|
2261
2304
|
m("h3", {
|
|
2262
|
-
class:
|
|
2305
|
+
class: S(n.titleClass),
|
|
2263
2306
|
"data-cy": "form-title"
|
|
2264
|
-
},
|
|
2307
|
+
}, F(n.title), 3)
|
|
2265
2308
|
]),
|
|
2266
2309
|
o[1] || (o[1] = m("hr", null, null, -1))
|
|
2267
2310
|
], 64)),
|
|
2268
|
-
i.value.hasError ? (
|
|
2311
|
+
i.value.hasError ? (d(), y(de, {
|
|
2269
2312
|
key: 1,
|
|
2270
2313
|
severity: "danger",
|
|
2271
2314
|
"data-cy": "error"
|
|
2272
2315
|
}, {
|
|
2273
2316
|
default: f(() => [
|
|
2274
|
-
|
|
2317
|
+
B(n.$slots, "error", {
|
|
2275
2318
|
error: i.value.message
|
|
2276
2319
|
}, () => [
|
|
2277
|
-
M(
|
|
2320
|
+
M(F(i.value.message), 1)
|
|
2278
2321
|
])
|
|
2279
2322
|
]),
|
|
2280
2323
|
_: 3
|
|
2281
|
-
})) :
|
|
2282
|
-
|
|
2324
|
+
})) : z("", !0),
|
|
2325
|
+
B(n.$slots, "default"),
|
|
2283
2326
|
m("div", sa, [
|
|
2284
|
-
|
|
2285
|
-
n.hideCancel ?
|
|
2327
|
+
B(n.$slots, "cancel", {}, () => [
|
|
2328
|
+
n.hideCancel ? z("", !0) : (d(), y(s, {
|
|
2286
2329
|
key: 0,
|
|
2287
2330
|
"data-cy": "cancel-btn",
|
|
2288
2331
|
type: "reset",
|
|
@@ -2291,29 +2334,29 @@ const Nt = {
|
|
|
2291
2334
|
onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
|
|
2292
2335
|
}, {
|
|
2293
2336
|
default: f(() => [
|
|
2294
|
-
M(
|
|
2337
|
+
M(F(n.cancelText), 1)
|
|
2295
2338
|
]),
|
|
2296
2339
|
_: 1
|
|
2297
2340
|
}))
|
|
2298
2341
|
]),
|
|
2299
|
-
|
|
2300
|
-
|
|
2342
|
+
B(n.$slots, "submit", { submit: l }, () => [
|
|
2343
|
+
w(s, {
|
|
2301
2344
|
"data-cy": "submit-btn",
|
|
2302
2345
|
type: "submit",
|
|
2303
2346
|
severity: "primary",
|
|
2304
2347
|
class: "ms-auto"
|
|
2305
2348
|
}, {
|
|
2306
2349
|
default: f(() => [
|
|
2307
|
-
M(
|
|
2350
|
+
M(F(n.submitText), 1)
|
|
2308
2351
|
]),
|
|
2309
2352
|
_: 1
|
|
2310
2353
|
})
|
|
2311
2354
|
])
|
|
2312
2355
|
]),
|
|
2313
|
-
a.value ? (
|
|
2356
|
+
a.value ? (d(), y(pe, {
|
|
2314
2357
|
key: 2,
|
|
2315
2358
|
"data-cy": "loading-spinner"
|
|
2316
|
-
})) :
|
|
2359
|
+
})) : z("", !0)
|
|
2317
2360
|
], 16);
|
|
2318
2361
|
};
|
|
2319
2362
|
}
|
|
@@ -2323,7 +2366,7 @@ const Nt = {
|
|
|
2323
2366
|
}, da = ["for"], pa = {
|
|
2324
2367
|
key: 0,
|
|
2325
2368
|
class: "text-danger fw-600"
|
|
2326
|
-
}, pl = /* @__PURE__ */
|
|
2369
|
+
}, pl = /* @__PURE__ */ C({
|
|
2327
2370
|
__name: "ForgeFormField",
|
|
2328
2371
|
props: /* @__PURE__ */ R({
|
|
2329
2372
|
name: {},
|
|
@@ -2340,106 +2383,106 @@ const Nt = {
|
|
|
2340
2383
|
}),
|
|
2341
2384
|
emits: ["update:modelValue"],
|
|
2342
2385
|
setup(e) {
|
|
2343
|
-
const t = N(e, "modelValue"), a = e, i = (
|
|
2344
|
-
a.type == "number" ? s(
|
|
2386
|
+
const t = N(e, "modelValue"), a = e, i = (h) => {
|
|
2387
|
+
a.type == "number" ? s(h.value) : s(h);
|
|
2345
2388
|
}, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } = oe(() => a.name, void 0, {
|
|
2346
2389
|
initialValue: t.value
|
|
2347
|
-
}), c =
|
|
2348
|
-
return Q(() => n.value, (
|
|
2349
|
-
t.value =
|
|
2350
|
-
}, { immediate: !0 }), (
|
|
2351
|
-
const
|
|
2352
|
-
return a.type === "checkbox" ? (
|
|
2390
|
+
}), c = T(() => l.value.length > 0);
|
|
2391
|
+
return Q(() => n.value, (h) => {
|
|
2392
|
+
t.value = h;
|
|
2393
|
+
}, { immediate: !0 }), (h, r) => {
|
|
2394
|
+
const x = Ne, $ = Oe, D = se, O = ie, U = re, b = he;
|
|
2395
|
+
return a.type === "checkbox" ? (d(), y(ye, _({
|
|
2353
2396
|
key: 0,
|
|
2354
2397
|
id: a.name,
|
|
2355
2398
|
label: a.fieldLabel
|
|
2356
|
-
},
|
|
2399
|
+
}, h.$attrs, {
|
|
2357
2400
|
name: a.name,
|
|
2358
2401
|
modelValue: t.value,
|
|
2359
|
-
"onUpdate:modelValue":
|
|
2360
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (
|
|
2402
|
+
"onUpdate:modelValue": r[0] || (r[0] = (k) => t.value = k)
|
|
2403
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), v("div", ra, [
|
|
2361
2404
|
m("div", {
|
|
2362
2405
|
"data-cy": "input-wrapper",
|
|
2363
|
-
class:
|
|
2406
|
+
class: S(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2364
2407
|
}, [
|
|
2365
2408
|
m("label", {
|
|
2366
2409
|
for: a.name,
|
|
2367
|
-
class:
|
|
2410
|
+
class: S(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2368
2411
|
}, [
|
|
2369
|
-
M(
|
|
2370
|
-
|
|
2412
|
+
M(F(a.fieldLabel) + " ", 1),
|
|
2413
|
+
h.required ? (d(), v("span", pa, "*")) : z("", !0)
|
|
2371
2414
|
], 10, da),
|
|
2372
|
-
|
|
2373
|
-
a.type === "number" ? (
|
|
2415
|
+
B(h.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2416
|
+
a.type === "number" ? (d(), y(u(fe), _({
|
|
2374
2417
|
key: 0,
|
|
2375
2418
|
id: a.name
|
|
2376
|
-
},
|
|
2419
|
+
}, h.$attrs, {
|
|
2377
2420
|
placeholder: a.placeholder,
|
|
2378
2421
|
"input-class": { "is-invalid": c.value },
|
|
2379
2422
|
class: { "is-invalid": c.value },
|
|
2380
2423
|
onInput: i,
|
|
2381
2424
|
modelValue: t.value,
|
|
2382
|
-
"onUpdate:modelValue":
|
|
2383
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (
|
|
2425
|
+
"onUpdate:modelValue": r[1] || (r[1] = (k) => t.value = k)
|
|
2426
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), y(x, _({
|
|
2384
2427
|
key: 1,
|
|
2385
2428
|
id: a.name
|
|
2386
|
-
},
|
|
2429
|
+
}, h.$attrs, {
|
|
2387
2430
|
placeholder: a.placeholder,
|
|
2388
2431
|
class: { "is-invalid": c.value },
|
|
2389
2432
|
modelValue: t.value,
|
|
2390
|
-
"onUpdate:modelValue":
|
|
2433
|
+
"onUpdate:modelValue": r[2] || (r[2] = (k) => t.value = k),
|
|
2391
2434
|
onInput: i,
|
|
2392
2435
|
onBlur: u(p)
|
|
2393
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (
|
|
2436
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), y($, _({
|
|
2394
2437
|
key: 2,
|
|
2395
2438
|
id: a.name
|
|
2396
|
-
},
|
|
2439
|
+
}, h.$attrs, {
|
|
2397
2440
|
placeholder: a.placeholder,
|
|
2398
2441
|
mask: a.mask,
|
|
2399
2442
|
class: { "is-invalid": c.value },
|
|
2400
2443
|
modelValue: t.value,
|
|
2401
|
-
"onUpdate:modelValue":
|
|
2444
|
+
"onUpdate:modelValue": r[3] || (r[3] = (k) => t.value = k),
|
|
2402
2445
|
onComplete: i,
|
|
2403
2446
|
onBlur: u(p)
|
|
2404
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (
|
|
2447
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), y(D, _({
|
|
2405
2448
|
key: 3,
|
|
2406
2449
|
id: a.name
|
|
2407
|
-
},
|
|
2450
|
+
}, h.$attrs, {
|
|
2408
2451
|
placeholder: a.placeholder,
|
|
2409
2452
|
class: { "is-invalid": c.value },
|
|
2410
2453
|
modelValue: t.value,
|
|
2411
|
-
"onUpdate:modelValue":
|
|
2454
|
+
"onUpdate:modelValue": r[4] || (r[4] = (k) => t.value = k),
|
|
2412
2455
|
onInput: i,
|
|
2413
2456
|
onBlur: u(p)
|
|
2414
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (
|
|
2457
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), y(O, _({ key: 4 }, { ...a, ...h.$attrs }, {
|
|
2415
2458
|
modelValue: t.value,
|
|
2416
|
-
"onUpdate:modelValue":
|
|
2459
|
+
"onUpdate:modelValue": r[5] || (r[5] = (k) => t.value = k),
|
|
2417
2460
|
class: { "is-invalid": c.value }
|
|
2418
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (
|
|
2461
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), y(U, _({ key: 5 }, { ...a, ...h.$attrs }, {
|
|
2419
2462
|
modelValue: t.value,
|
|
2420
|
-
"onUpdate:modelValue":
|
|
2463
|
+
"onUpdate:modelValue": r[6] || (r[6] = (k) => t.value = k),
|
|
2421
2464
|
class: { "is-invalid": c.value }
|
|
2422
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (
|
|
2465
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), y(Qt, _({ key: 6 }, { ...a, ...h.$attrs }, {
|
|
2423
2466
|
modelValue: t.value,
|
|
2424
|
-
"onUpdate:modelValue":
|
|
2467
|
+
"onUpdate:modelValue": r[7] || (r[7] = (k) => t.value = k),
|
|
2425
2468
|
class: { "is-invalid": c.value }
|
|
2426
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (
|
|
2469
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), y(b, _({ key: 7 }, { ...a, ...h.$attrs }, {
|
|
2427
2470
|
modelValue: t.value,
|
|
2428
|
-
"onUpdate:modelValue":
|
|
2471
|
+
"onUpdate:modelValue": r[8] || (r[8] = (k) => t.value = k),
|
|
2429
2472
|
class: { "is-invalid": c.value }
|
|
2430
|
-
}), null, 16, ["modelValue", "class"])) :
|
|
2473
|
+
}), null, 16, ["modelValue", "class"])) : z("", !0)
|
|
2431
2474
|
])
|
|
2432
2475
|
], 2),
|
|
2433
2476
|
J(m("small", {
|
|
2434
2477
|
"data-cy": "error",
|
|
2435
2478
|
class: "invalid-feedback"
|
|
2436
|
-
},
|
|
2479
|
+
}, F(u(o)), 513), [
|
|
2437
2480
|
[Z, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2438
2481
|
])
|
|
2439
2482
|
]));
|
|
2440
2483
|
};
|
|
2441
2484
|
}
|
|
2442
|
-
}), cl = /* @__PURE__ */
|
|
2485
|
+
}), cl = /* @__PURE__ */ C({
|
|
2443
2486
|
__name: "ForgeChip",
|
|
2444
2487
|
props: {
|
|
2445
2488
|
chipSeverity: { default: "primary" },
|
|
@@ -2455,7 +2498,7 @@ const Nt = {
|
|
|
2455
2498
|
unstyled: { type: Boolean }
|
|
2456
2499
|
},
|
|
2457
2500
|
setup(e) {
|
|
2458
|
-
const t = e, a =
|
|
2501
|
+
const t = e, a = T(() => ({
|
|
2459
2502
|
root: [
|
|
2460
2503
|
"badge d-inline-flex align-items-center border me-1 p-1",
|
|
2461
2504
|
{
|
|
@@ -2475,15 +2518,15 @@ const Nt = {
|
|
|
2475
2518
|
}));
|
|
2476
2519
|
return (i, l) => {
|
|
2477
2520
|
const n = Ae;
|
|
2478
|
-
return
|
|
2521
|
+
return d(), y(n, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2479
2522
|
default: f(() => [
|
|
2480
|
-
(
|
|
2523
|
+
(d(!0), v(A, null, E(i.$slots, (o, s) => B(i.$slots, s, { slot: s })), 256))
|
|
2481
2524
|
]),
|
|
2482
2525
|
_: 3
|
|
2483
2526
|
}, 16, ["pt"]);
|
|
2484
2527
|
};
|
|
2485
2528
|
}
|
|
2486
|
-
}), ul = /* @__PURE__ */
|
|
2529
|
+
}), ul = /* @__PURE__ */ C({
|
|
2487
2530
|
__name: "ForgeProgressBar",
|
|
2488
2531
|
props: {
|
|
2489
2532
|
severity: { default: "primary" },
|
|
@@ -2499,7 +2542,7 @@ const Nt = {
|
|
|
2499
2542
|
unstyled: { type: Boolean }
|
|
2500
2543
|
},
|
|
2501
2544
|
setup(e) {
|
|
2502
|
-
const t = e, a =
|
|
2545
|
+
const t = e, a = T(() => t.striped ? "progress-bar-striped" : null), i = T(() => t.animate ? "progress-bar-animated" : null), l = T(() => {
|
|
2503
2546
|
switch (t.severity) {
|
|
2504
2547
|
case "brand":
|
|
2505
2548
|
return "bg-brand";
|
|
@@ -2520,7 +2563,7 @@ const Nt = {
|
|
|
2520
2563
|
default:
|
|
2521
2564
|
return "bg-primary";
|
|
2522
2565
|
}
|
|
2523
|
-
}), n =
|
|
2566
|
+
}), n = T(() => ({
|
|
2524
2567
|
root: {
|
|
2525
2568
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2526
2569
|
},
|
|
@@ -2530,16 +2573,16 @@ const Nt = {
|
|
|
2530
2573
|
}));
|
|
2531
2574
|
return (o, s) => {
|
|
2532
2575
|
const p = Ee;
|
|
2533
|
-
return
|
|
2576
|
+
return d(), y(p, _({ ...o.$attrs, ...t }, { pt: n.value }), {
|
|
2534
2577
|
default: f(() => [
|
|
2535
|
-
|
|
2578
|
+
B(o.$slots, "default")
|
|
2536
2579
|
]),
|
|
2537
2580
|
_: 3
|
|
2538
2581
|
}, 16, ["pt"]);
|
|
2539
2582
|
};
|
|
2540
2583
|
}
|
|
2541
2584
|
});
|
|
2542
|
-
var ca = /* @__PURE__ */
|
|
2585
|
+
var ca = /* @__PURE__ */ C({
|
|
2543
2586
|
name: "VueDrawingCanvas",
|
|
2544
2587
|
props: {
|
|
2545
2588
|
strokeType: {
|
|
@@ -2854,11 +2897,11 @@ var ca = /* @__PURE__ */ S({
|
|
|
2854
2897
|
const o = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2855
2898
|
var p = t.split(o).filter((O) => O.length > 0);
|
|
2856
2899
|
for (let O = 0; O < p.length; O++) {
|
|
2857
|
-
for (var c = p[O].split(s).filter((U) => U.length > 0),
|
|
2858
|
-
var
|
|
2859
|
-
D > l &&
|
|
2900
|
+
for (var c = p[O].split(s).filter((U) => U.length > 0), h = "", r = 0; r < c.length; r++) {
|
|
2901
|
+
var x = h + c[r] + " ", $ = e.measureText(x), D = $.width;
|
|
2902
|
+
D > l && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(h, a, i) : e.fillText(h, a, i), h = c[r] + " ", i += n) : h = x;
|
|
2860
2903
|
}
|
|
2861
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2904
|
+
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(h, a, i) : e.fillText(h, a, i), i += c.length > 0 ? n : 0;
|
|
2862
2905
|
}
|
|
2863
2906
|
},
|
|
2864
2907
|
save() {
|
|
@@ -2885,13 +2928,13 @@ var ca = /* @__PURE__ */ S({
|
|
|
2885
2928
|
} else if (a.type === "Text") {
|
|
2886
2929
|
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", o = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
|
|
2887
2930
|
if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
|
|
2888
|
-
let
|
|
2889
|
-
a.fontStyle && a.fontStyle.width ?
|
|
2931
|
+
let r, x;
|
|
2932
|
+
a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ? x = a.y + Math.floor(a.fontStyle.lineHeight / 2) : x = a.y, t.translate(r, x), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(r * -1, x * -1);
|
|
2890
2933
|
}
|
|
2891
2934
|
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 = o, 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));
|
|
2892
|
-
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
2893
|
-
if (s.width = Number(c), s.height = Number(
|
|
2894
|
-
return p.drawImage(e, 0, 0, Number(c), Number(
|
|
2935
|
+
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, h = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2936
|
+
if (s.width = Number(c), s.height = Number(h), p)
|
|
2937
|
+
return p.drawImage(e, 0, 0, Number(c), Number(h)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
|
|
2895
2938
|
}
|
|
2896
2939
|
},
|
|
2897
2940
|
isEmpty() {
|
|
@@ -2929,7 +2972,7 @@ var ca = /* @__PURE__ */ S({
|
|
|
2929
2972
|
});
|
|
2930
2973
|
}
|
|
2931
2974
|
});
|
|
2932
|
-
const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1 gap-1" }, ml = /* @__PURE__ */
|
|
2975
|
+
const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1 gap-1" }, ml = /* @__PURE__ */ C({
|
|
2933
2976
|
__name: "ForgeScratchpad",
|
|
2934
2977
|
props: {
|
|
2935
2978
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2951,72 +2994,72 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
2951
2994
|
}, c = () => {
|
|
2952
2995
|
i("save", l.value.isEmpty());
|
|
2953
2996
|
};
|
|
2954
|
-
return (
|
|
2955
|
-
const
|
|
2956
|
-
return
|
|
2957
|
-
|
|
2997
|
+
return (h, r) => {
|
|
2998
|
+
const x = q;
|
|
2999
|
+
return d(), v("div", ua, [
|
|
3000
|
+
w(u(ca), _({
|
|
2958
3001
|
ref_key: "drawingCanvas",
|
|
2959
3002
|
ref: l,
|
|
2960
3003
|
image: n.value,
|
|
2961
|
-
"onUpdate:image":
|
|
3004
|
+
"onUpdate:image": r[0] || (r[0] = ($) => n.value = $),
|
|
2962
3005
|
"data-cy": "drawing-canvas",
|
|
2963
3006
|
class: "border canvas"
|
|
2964
|
-
}, { ...
|
|
2965
|
-
height:
|
|
2966
|
-
width:
|
|
2967
|
-
style: `height: ${
|
|
2968
|
-
"line-join":
|
|
3007
|
+
}, { ...h.$attrs }, {
|
|
3008
|
+
height: h.height,
|
|
3009
|
+
width: h.width,
|
|
3010
|
+
style: `height: ${h.height}px; width: ${h.width}px`,
|
|
3011
|
+
"line-join": h.lineJoin
|
|
2969
3012
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2970
3013
|
m("div", ma, [
|
|
2971
|
-
a.showUndo ? (
|
|
3014
|
+
a.showUndo ? (d(), y(x, {
|
|
2972
3015
|
key: 0,
|
|
2973
3016
|
onClick: p,
|
|
2974
3017
|
outlined: "",
|
|
2975
3018
|
"data-cy": "undo-button"
|
|
2976
3019
|
}, {
|
|
2977
|
-
default: f(() =>
|
|
3020
|
+
default: f(() => r[1] || (r[1] = [
|
|
2978
3021
|
M("Undo")
|
|
2979
3022
|
])),
|
|
2980
3023
|
_: 1
|
|
2981
|
-
})) :
|
|
2982
|
-
a.showRedo ? (
|
|
3024
|
+
})) : z("", !0),
|
|
3025
|
+
a.showRedo ? (d(), y(x, {
|
|
2983
3026
|
key: 1,
|
|
2984
3027
|
onClick: s,
|
|
2985
3028
|
outlined: "",
|
|
2986
3029
|
"data-cy": "redo-button"
|
|
2987
3030
|
}, {
|
|
2988
|
-
default: f(() =>
|
|
3031
|
+
default: f(() => r[2] || (r[2] = [
|
|
2989
3032
|
M("Redo")
|
|
2990
3033
|
])),
|
|
2991
3034
|
_: 1
|
|
2992
|
-
})) :
|
|
2993
|
-
a.showClear ? (
|
|
3035
|
+
})) : z("", !0),
|
|
3036
|
+
a.showClear ? (d(), y(x, {
|
|
2994
3037
|
key: 2,
|
|
2995
3038
|
onClick: o,
|
|
2996
3039
|
outlined: "",
|
|
2997
3040
|
"data-cy": "clear-button"
|
|
2998
3041
|
}, {
|
|
2999
|
-
default: f(() =>
|
|
3042
|
+
default: f(() => r[3] || (r[3] = [
|
|
3000
3043
|
M("Clear")
|
|
3001
3044
|
])),
|
|
3002
3045
|
_: 1
|
|
3003
|
-
})) :
|
|
3004
|
-
a.showSave ? (
|
|
3046
|
+
})) : z("", !0),
|
|
3047
|
+
a.showSave ? (d(), y(x, {
|
|
3005
3048
|
key: 3,
|
|
3006
3049
|
onClick: c,
|
|
3007
3050
|
class: "ms-auto",
|
|
3008
3051
|
"data-cy": "save-button"
|
|
3009
3052
|
}, {
|
|
3010
|
-
default: f(() =>
|
|
3053
|
+
default: f(() => r[4] || (r[4] = [
|
|
3011
3054
|
M("Save")
|
|
3012
3055
|
])),
|
|
3013
3056
|
_: 1
|
|
3014
|
-
})) :
|
|
3057
|
+
})) : z("", !0)
|
|
3015
3058
|
])
|
|
3016
3059
|
]);
|
|
3017
3060
|
};
|
|
3018
3061
|
}
|
|
3019
|
-
}), va = { class: "value text-white w-100 text-center" }, vl = /* @__PURE__ */
|
|
3062
|
+
}), va = { class: "value text-white w-100 text-center" }, vl = /* @__PURE__ */ C({
|
|
3020
3063
|
__name: "ForgeStatWidget",
|
|
3021
3064
|
props: {
|
|
3022
3065
|
size: { default: "md" },
|
|
@@ -3024,15 +3067,15 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3024
3067
|
},
|
|
3025
3068
|
setup(e) {
|
|
3026
3069
|
const t = e;
|
|
3027
|
-
return (a, i) => (
|
|
3070
|
+
return (a, i) => (d(), v("div", _(a.$attrs, {
|
|
3028
3071
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3029
3072
|
}), [
|
|
3030
3073
|
m("span", va, [
|
|
3031
|
-
|
|
3074
|
+
B(a.$slots, "default")
|
|
3032
3075
|
])
|
|
3033
3076
|
], 16));
|
|
3034
3077
|
}
|
|
3035
|
-
}), fa = { key: 0 }, fl = /* @__PURE__ */
|
|
3078
|
+
}), fa = { key: 0 }, fl = /* @__PURE__ */ C({
|
|
3036
3079
|
__name: "ForgeStepper",
|
|
3037
3080
|
props: {
|
|
3038
3081
|
currentStep: { default: 1 },
|
|
@@ -3050,7 +3093,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3050
3093
|
unstyled: { type: Boolean }
|
|
3051
3094
|
},
|
|
3052
3095
|
setup(e) {
|
|
3053
|
-
const t = e, a =
|
|
3096
|
+
const t = e, a = T(() => ({
|
|
3054
3097
|
header: {
|
|
3055
3098
|
class: [
|
|
3056
3099
|
"p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
|
|
@@ -3079,32 +3122,32 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3079
3122
|
]
|
|
3080
3123
|
})
|
|
3081
3124
|
}));
|
|
3082
|
-
return (i, l) => (
|
|
3125
|
+
return (i, l) => (d(), y(u(qe), { value: i.currentStep }, {
|
|
3083
3126
|
default: f(() => [
|
|
3084
|
-
|
|
3127
|
+
w(u(Le), null, {
|
|
3085
3128
|
default: f(() => [
|
|
3086
|
-
(
|
|
3129
|
+
(d(!0), v(A, null, E(i.steps, (n) => (d(), y(u(Ue), _({
|
|
3087
3130
|
key: n.value,
|
|
3088
3131
|
value: n.value,
|
|
3089
3132
|
disabled: n.disabled,
|
|
3090
3133
|
ref_for: !0
|
|
3091
3134
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
3092
3135
|
default: f(() => [
|
|
3093
|
-
i.showStepLabel ? (
|
|
3136
|
+
i.showStepLabel ? (d(), v("div", fa, F(n.label), 1)) : z("", !0)
|
|
3094
3137
|
]),
|
|
3095
3138
|
_: 2
|
|
3096
3139
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
3097
3140
|
]),
|
|
3098
3141
|
_: 1
|
|
3099
3142
|
}),
|
|
3100
|
-
|
|
3143
|
+
w(u(He), null, {
|
|
3101
3144
|
default: f(() => [
|
|
3102
|
-
(
|
|
3145
|
+
(d(!0), v(A, null, E(i.steps, (n) => (d(), y(u(Re), {
|
|
3103
3146
|
key: n.value,
|
|
3104
3147
|
value: n.value
|
|
3105
3148
|
}, {
|
|
3106
3149
|
default: f(() => [
|
|
3107
|
-
|
|
3150
|
+
B(i.$slots, "step" + n.value)
|
|
3108
3151
|
]),
|
|
3109
3152
|
_: 2
|
|
3110
3153
|
}, 1032, ["value"]))), 128))
|
|
@@ -3115,7 +3158,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3115
3158
|
_: 3
|
|
3116
3159
|
}, 8, ["value"]));
|
|
3117
3160
|
}
|
|
3118
|
-
}), ga = { class: "p-4 text-wrap w-100" }, ba = { class: "p-4 text-wrap w-100" }, gl = /* @__PURE__ */
|
|
3161
|
+
}), ga = { class: "p-4 text-wrap w-100" }, ba = { class: "p-4 text-wrap w-100" }, gl = /* @__PURE__ */ C({
|
|
3119
3162
|
__name: "ForgeTile",
|
|
3120
3163
|
props: {
|
|
3121
3164
|
severity: { default: "primary" },
|
|
@@ -3124,31 +3167,31 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3124
3167
|
selected: { type: Boolean, default: !1 }
|
|
3125
3168
|
},
|
|
3126
3169
|
setup(e) {
|
|
3127
|
-
const t = e, a =
|
|
3170
|
+
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" : ""}`);
|
|
3128
3171
|
return (l, n) => {
|
|
3129
3172
|
const o = q;
|
|
3130
|
-
return t.clickable ? (
|
|
3173
|
+
return t.clickable ? (d(), y(o, {
|
|
3131
3174
|
key: 0,
|
|
3132
|
-
class:
|
|
3175
|
+
class: S(["d-flex w-100 p-0 text-body", a.value]),
|
|
3133
3176
|
severity: t.severity,
|
|
3134
3177
|
unstyled: "",
|
|
3135
3178
|
"data-cy": "button-tile"
|
|
3136
3179
|
}, {
|
|
3137
3180
|
default: f(() => [
|
|
3138
3181
|
m("div", ga, [
|
|
3139
|
-
|
|
3182
|
+
B(l.$slots, "default", {}, () => [
|
|
3140
3183
|
n[0] || (n[0] = M("Tile Content"))
|
|
3141
3184
|
])
|
|
3142
3185
|
])
|
|
3143
3186
|
]),
|
|
3144
3187
|
_: 3
|
|
3145
|
-
}, 8, ["severity", "class"])) : (
|
|
3188
|
+
}, 8, ["severity", "class"])) : (d(), v("div", {
|
|
3146
3189
|
key: 1,
|
|
3147
|
-
class:
|
|
3190
|
+
class: S(["d-flex w-100", i.value]),
|
|
3148
3191
|
"data-cy": "tile"
|
|
3149
3192
|
}, [
|
|
3150
3193
|
m("div", ba, [
|
|
3151
|
-
|
|
3194
|
+
B(l.$slots, "default", {}, () => [
|
|
3152
3195
|
n[1] || (n[1] = M("Tile Content"))
|
|
3153
3196
|
])
|
|
3154
3197
|
])
|
|
@@ -3162,10 +3205,10 @@ function ee(e, t) {
|
|
|
3162
3205
|
const ya = {
|
|
3163
3206
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3164
3207
|
"data-cy": "pagination-header"
|
|
3165
|
-
},
|
|
3208
|
+
}, ha = { class: "ms-2" }, xa = { key: 0 }, wa = {
|
|
3166
3209
|
class: "w-auto",
|
|
3167
3210
|
"data-cy": "total"
|
|
3168
|
-
},
|
|
3211
|
+
}, xe = /* @__PURE__ */ C({
|
|
3169
3212
|
__name: "ForgePaginationHeader",
|
|
3170
3213
|
props: {
|
|
3171
3214
|
total: {},
|
|
@@ -3176,14 +3219,14 @@ const ya = {
|
|
|
3176
3219
|
setup(e, { emit: t }) {
|
|
3177
3220
|
const a = t, i = e, l = (o) => {
|
|
3178
3221
|
a("update:perPage", o.value);
|
|
3179
|
-
}, n =
|
|
3222
|
+
}, n = T(() => {
|
|
3180
3223
|
const o = Math.ceil(i.total / i.perPage);
|
|
3181
3224
|
return `${o} ${ee(o, "page")}`;
|
|
3182
3225
|
});
|
|
3183
|
-
return (o, s) => (
|
|
3226
|
+
return (o, s) => (d(), v("div", ya, [
|
|
3184
3227
|
s[2] || (s[2] = M(" Number of results per page ")),
|
|
3185
|
-
m("div",
|
|
3186
|
-
|
|
3228
|
+
m("div", ha, [
|
|
3229
|
+
w(u(ie), {
|
|
3187
3230
|
options: i.pageSizes,
|
|
3188
3231
|
"model-value": i.perPage,
|
|
3189
3232
|
class: "page-size",
|
|
@@ -3191,16 +3234,16 @@ const ya = {
|
|
|
3191
3234
|
"data-cy": "pagination-page-size-select"
|
|
3192
3235
|
}, null, 8, ["options", "model-value"])
|
|
3193
3236
|
]),
|
|
3194
|
-
i.total ? (
|
|
3237
|
+
i.total ? (d(), v("div", xa, [
|
|
3195
3238
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3196
|
-
m("span", wa,
|
|
3197
|
-
])) :
|
|
3239
|
+
m("span", wa, F(i.total) + " " + F(u(ee)(i.total, "result")) + " across " + F(n.value), 1)
|
|
3240
|
+
])) : z("", !0)
|
|
3198
3241
|
]));
|
|
3199
3242
|
}
|
|
3200
3243
|
}), ka = { class: "position-relative" }, $a = { "data-cy": "above-table-slot" }, Ba = { class: "d-flex w-100" }, Fa = {
|
|
3201
3244
|
class: "mx-auto",
|
|
3202
3245
|
"data-cy": "empty-message"
|
|
3203
|
-
}, Sa = { class: "d-flex" }, Ca = { class: "d-flex align-items-end mb-2" }, za = { key: 0 }, Ta = { class: "ms-auto" }, bl = /* @__PURE__ */
|
|
3246
|
+
}, Sa = { class: "d-flex" }, Ca = { class: "d-flex align-items-end mb-2" }, za = { key: 0 }, Ta = { class: "ms-auto" }, bl = /* @__PURE__ */ C({
|
|
3204
3247
|
__name: "ForgeTable",
|
|
3205
3248
|
props: {
|
|
3206
3249
|
value: {},
|
|
@@ -3298,10 +3341,10 @@ const ya = {
|
|
|
3298
3341
|
Q(() => i.perPage, (b) => {
|
|
3299
3342
|
b && (o.value = b, s.value.perPage = b);
|
|
3300
3343
|
});
|
|
3301
|
-
const p =
|
|
3344
|
+
const p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
|
|
3302
3345
|
const b = Math.ceil(p.value / o.value);
|
|
3303
3346
|
return `${b} ${ee(b, "page")}`;
|
|
3304
|
-
}),
|
|
3347
|
+
}), h = T(() => ({
|
|
3305
3348
|
thead: () => ({
|
|
3306
3349
|
class: [
|
|
3307
3350
|
{
|
|
@@ -3324,18 +3367,18 @@ const ya = {
|
|
|
3324
3367
|
}
|
|
3325
3368
|
]
|
|
3326
3369
|
})
|
|
3327
|
-
})),
|
|
3370
|
+
})), r = () => {
|
|
3328
3371
|
if (i.clearAll)
|
|
3329
3372
|
i.clearAll();
|
|
3330
3373
|
else
|
|
3331
3374
|
for (const b in i.filters)
|
|
3332
3375
|
typeof i.filters[b] == "string" ? i.filters[b] = "" : i.filters[b].value = null;
|
|
3333
3376
|
D(i.filters);
|
|
3334
|
-
},
|
|
3377
|
+
}, x = () => {
|
|
3335
3378
|
l.value.exportCSV();
|
|
3336
|
-
},
|
|
3337
|
-
var
|
|
3338
|
-
s.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((
|
|
3379
|
+
}, $ = (b) => {
|
|
3380
|
+
var k;
|
|
3381
|
+
s.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((k = b.sortField) == null ? void 0 : k.toString()) ?? "", a("update:tableContext", s.value), a("sort", b);
|
|
3339
3382
|
}, D = (b) => {
|
|
3340
3383
|
s.value.filters = b, a("update:tableContext", s.value), a("update:filters", b);
|
|
3341
3384
|
}, O = (b) => {
|
|
@@ -3345,14 +3388,14 @@ const ya = {
|
|
|
3345
3388
|
};
|
|
3346
3389
|
return Q(() => i.filters, (b) => {
|
|
3347
3390
|
s.value.filters = b, a("update:tableContext", s.value);
|
|
3348
|
-
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (b,
|
|
3391
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (b, k) => (d(), v("div", ka, [
|
|
3349
3392
|
m("span", $a, [
|
|
3350
|
-
|
|
3393
|
+
B(b.$slots, "above-table")
|
|
3351
3394
|
]),
|
|
3352
|
-
|
|
3395
|
+
w(u(We), _({
|
|
3353
3396
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3354
3397
|
}, { ...i, ...b.$attrs }, {
|
|
3355
|
-
pt:
|
|
3398
|
+
pt: h.value,
|
|
3356
3399
|
rows: o.value,
|
|
3357
3400
|
"total-records": p.value,
|
|
3358
3401
|
"filter-display": i.filters ? "row" : void 0,
|
|
@@ -3360,95 +3403,95 @@ const ya = {
|
|
|
3360
3403
|
ref: l,
|
|
3361
3404
|
"data-cy": "table",
|
|
3362
3405
|
"onUpdate:filters": D,
|
|
3363
|
-
onSort:
|
|
3406
|
+
onSort: $,
|
|
3364
3407
|
onPage: O,
|
|
3365
3408
|
showHeaders: ""
|
|
3366
3409
|
}), ae({
|
|
3367
3410
|
empty: f(() => [
|
|
3368
3411
|
m("div", Ba, [
|
|
3369
|
-
m("h5", Fa,
|
|
3412
|
+
m("h5", Fa, F(b.emptyMessage ?? "No items Found."), 1)
|
|
3370
3413
|
])
|
|
3371
3414
|
]),
|
|
3372
3415
|
header: f(() => [
|
|
3373
3416
|
m("div", {
|
|
3374
|
-
class:
|
|
3417
|
+
class: S(i.loading ? "opacity-50" : "")
|
|
3375
3418
|
}, [
|
|
3376
3419
|
m("div", Sa, [
|
|
3377
3420
|
m("div", Ca, [
|
|
3378
|
-
b.paginator && !b.legacyPaginationFooter ? (
|
|
3379
|
-
|
|
3421
|
+
b.paginator && !b.legacyPaginationFooter ? (d(), v("span", za, [
|
|
3422
|
+
w(xe, {
|
|
3380
3423
|
total: p.value,
|
|
3381
3424
|
"page-sizes": n.value,
|
|
3382
3425
|
"per-page": o.value,
|
|
3383
3426
|
"onUpdate:perPage": [
|
|
3384
|
-
|
|
3427
|
+
k[0] || (k[0] = (I) => o.value = I),
|
|
3385
3428
|
U
|
|
3386
3429
|
]
|
|
3387
3430
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3388
|
-
])) :
|
|
3431
|
+
])) : z("", !0)
|
|
3389
3432
|
]),
|
|
3390
3433
|
m("div", Ta, [
|
|
3391
|
-
b.showClearButton ? (
|
|
3434
|
+
b.showClearButton ? (d(), y(u(q), {
|
|
3392
3435
|
key: 0,
|
|
3393
3436
|
outlined: "",
|
|
3394
|
-
class:
|
|
3395
|
-
onClick:
|
|
3437
|
+
class: S(b.showExporterButton ? "me-2" : ""),
|
|
3438
|
+
onClick: r,
|
|
3396
3439
|
"data-cy": "clear-all"
|
|
3397
3440
|
}, {
|
|
3398
3441
|
default: f(() => [
|
|
3399
|
-
|
|
3442
|
+
w(u(P), {
|
|
3400
3443
|
icon: "bi:funnel-fill",
|
|
3401
3444
|
width: "24",
|
|
3402
3445
|
height: "24"
|
|
3403
3446
|
}),
|
|
3404
|
-
|
|
3447
|
+
k[2] || (k[2] = M(" Clear "))
|
|
3405
3448
|
]),
|
|
3406
3449
|
_: 1
|
|
3407
|
-
}, 8, ["class"])) :
|
|
3408
|
-
b.showExporterButton ? (
|
|
3450
|
+
}, 8, ["class"])) : z("", !0),
|
|
3451
|
+
b.showExporterButton ? (d(), y(u(q), {
|
|
3409
3452
|
key: 1,
|
|
3410
3453
|
outlined: "",
|
|
3411
|
-
onClick:
|
|
3454
|
+
onClick: x,
|
|
3412
3455
|
"data-cy": "exporter"
|
|
3413
3456
|
}, {
|
|
3414
3457
|
default: f(() => [
|
|
3415
|
-
|
|
3458
|
+
w(u(P), {
|
|
3416
3459
|
icon: "typcn:export",
|
|
3417
3460
|
width: "24",
|
|
3418
3461
|
height: "24"
|
|
3419
3462
|
}),
|
|
3420
|
-
|
|
3463
|
+
k[3] || (k[3] = M(" Export "))
|
|
3421
3464
|
]),
|
|
3422
3465
|
_: 1
|
|
3423
|
-
})) :
|
|
3424
|
-
|
|
3466
|
+
})) : z("", !0),
|
|
3467
|
+
B(b.$slots, "column-customiser")
|
|
3425
3468
|
])
|
|
3426
3469
|
])
|
|
3427
3470
|
], 2)
|
|
3428
3471
|
]),
|
|
3429
3472
|
default: f(() => [
|
|
3430
|
-
|
|
3473
|
+
B(b.$slots, "default")
|
|
3431
3474
|
]),
|
|
3432
3475
|
_: 2
|
|
3433
3476
|
}, [
|
|
3434
3477
|
E(b.$slots, (I, g) => ({
|
|
3435
3478
|
name: g,
|
|
3436
3479
|
fn: f((V) => [
|
|
3437
|
-
|
|
3480
|
+
B(b.$slots, g, W(G(V || {})))
|
|
3438
3481
|
])
|
|
3439
3482
|
})),
|
|
3440
3483
|
b.legacyPaginationFooter ? {
|
|
3441
3484
|
name: "paginatorstart",
|
|
3442
3485
|
fn: f(() => [
|
|
3443
3486
|
m("span", {
|
|
3444
|
-
class:
|
|
3487
|
+
class: S(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3445
3488
|
"data-cy": "legacy-page-size"
|
|
3446
3489
|
}, [
|
|
3447
|
-
|
|
3448
|
-
|
|
3490
|
+
k[4] || (k[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3491
|
+
w(u(ie), {
|
|
3449
3492
|
options: n.value,
|
|
3450
3493
|
modelValue: o.value,
|
|
3451
|
-
"onUpdate:modelValue":
|
|
3494
|
+
"onUpdate:modelValue": k[1] || (k[1] = (I) => o.value = I),
|
|
3452
3495
|
class: "ms-2",
|
|
3453
3496
|
onClick: U
|
|
3454
3497
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -3461,8 +3504,8 @@ const ya = {
|
|
|
3461
3504
|
fn: f(() => [
|
|
3462
3505
|
m("span", {
|
|
3463
3506
|
"data-cy": "legacy-total",
|
|
3464
|
-
class:
|
|
3465
|
-
},
|
|
3507
|
+
class: S(i.loading ? "opacity-50" : "")
|
|
3508
|
+
}, F(p.value) + " " + F(u(ee)(p.value, "result")) + " across " + F(c.value), 3)
|
|
3466
3509
|
]),
|
|
3467
3510
|
key: "1"
|
|
3468
3511
|
} : void 0
|
|
@@ -3472,7 +3515,7 @@ const ya = {
|
|
|
3472
3515
|
}), _a = { class: "position-relative" }, Pa = { "data-cy": "above-table-slot" }, ja = { class: "d-flex w-100" }, Ia = {
|
|
3473
3516
|
class: "mx-auto",
|
|
3474
3517
|
"data-cy": "empty-message"
|
|
3475
|
-
}, Ma = { class: "d-flex" }, Va = { class: "d-flex align-items-end mb-2" }, Da = { key: 0 }, Oa = { class: "ms-auto" }, yl = /* @__PURE__ */
|
|
3518
|
+
}, Ma = { class: "d-flex" }, Va = { class: "d-flex align-items-end mb-2" }, Da = { key: 0 }, Oa = { class: "ms-auto" }, yl = /* @__PURE__ */ C({
|
|
3476
3519
|
__name: "ForgeTreeTable",
|
|
3477
3520
|
props: {
|
|
3478
3521
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3540,10 +3583,10 @@ const ya = {
|
|
|
3540
3583
|
sortDirection: "None",
|
|
3541
3584
|
sortField: "",
|
|
3542
3585
|
total: a.totalRecords ?? a.value.length
|
|
3543
|
-
}), c =
|
|
3586
|
+
}), c = T(() => a.totalRecords ?? a.value.length), h = T(() => {
|
|
3544
3587
|
const g = Math.ceil(c.value / n.value);
|
|
3545
3588
|
return `${g} ${ee(g, "page")}`;
|
|
3546
|
-
}),
|
|
3589
|
+
}), r = T(() => ({
|
|
3547
3590
|
root: "position-relative",
|
|
3548
3591
|
table: (g) => ({
|
|
3549
3592
|
class: [
|
|
@@ -3579,9 +3622,9 @@ const ya = {
|
|
|
3579
3622
|
]
|
|
3580
3623
|
}));
|
|
3581
3624
|
Q(() => a.parentExpanderFullRow, (g) => {
|
|
3582
|
-
g ?
|
|
3625
|
+
g ? x() : $();
|
|
3583
3626
|
});
|
|
3584
|
-
const
|
|
3627
|
+
const x = () => {
|
|
3585
3628
|
a.parentExpanderFullRow && setTimeout(
|
|
3586
3629
|
() => {
|
|
3587
3630
|
const g = Array.from(
|
|
@@ -3597,7 +3640,7 @@ const ya = {
|
|
|
3597
3640
|
},
|
|
3598
3641
|
0
|
|
3599
3642
|
);
|
|
3600
|
-
},
|
|
3643
|
+
}, $ = () => {
|
|
3601
3644
|
setTimeout(
|
|
3602
3645
|
() => {
|
|
3603
3646
|
const g = Array.from(
|
|
@@ -3622,74 +3665,74 @@ const ya = {
|
|
|
3622
3665
|
U(a.filters);
|
|
3623
3666
|
}, O = (g) => {
|
|
3624
3667
|
var V;
|
|
3625
|
-
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),
|
|
3668
|
+
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), x();
|
|
3626
3669
|
}, U = (g) => {
|
|
3627
|
-
p.value.filters = g, i("update:tableContext", p.value), i("update:filters", g),
|
|
3670
|
+
p.value.filters = g, i("update:tableContext", p.value), i("update:filters", g), x();
|
|
3628
3671
|
}, b = (g) => {
|
|
3629
|
-
p.value.page = s.value = g.page, I(), i("update:tableContext", p.value), i("page", g),
|
|
3630
|
-
},
|
|
3631
|
-
p.value.perPage = n.value, s.value = 0, p.value.page = s.value = Math.floor(o.value / n.value), I(), i("update:tableContext", p.value),
|
|
3672
|
+
p.value.page = s.value = g.page, I(), i("update:tableContext", p.value), i("page", g), x();
|
|
3673
|
+
}, k = () => {
|
|
3674
|
+
p.value.perPage = n.value, s.value = 0, p.value.page = s.value = Math.floor(o.value / n.value), I(), i("update:tableContext", p.value), x();
|
|
3632
3675
|
};
|
|
3633
3676
|
Q(() => a.filters, (g) => {
|
|
3634
3677
|
p.value.filters = g, i("update:tableContext", p.value);
|
|
3635
3678
|
}, { deep: !0 }), Q(() => a.value, () => {
|
|
3636
|
-
|
|
3679
|
+
x();
|
|
3637
3680
|
}), ne(() => {
|
|
3638
|
-
|
|
3681
|
+
x(), i("update:tableContext", p.value);
|
|
3639
3682
|
});
|
|
3640
3683
|
const I = () => {
|
|
3641
3684
|
o.value = s.value * n.value;
|
|
3642
3685
|
};
|
|
3643
|
-
return (g, V) => (
|
|
3686
|
+
return (g, V) => (d(), v("div", _a, [
|
|
3644
3687
|
m("span", Pa, [
|
|
3645
|
-
|
|
3688
|
+
B(g.$slots, "above-table")
|
|
3646
3689
|
]),
|
|
3647
|
-
|
|
3690
|
+
w(u(Ge), _({
|
|
3648
3691
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3649
3692
|
}, { ...a, ...g.$attrs }, {
|
|
3650
|
-
pt:
|
|
3693
|
+
pt: r.value,
|
|
3651
3694
|
"filter-display": a.filters ? "row" : void 0,
|
|
3652
3695
|
rows: g.paginator ? n.value : void 0,
|
|
3653
3696
|
"data-cy": "tree-table",
|
|
3654
3697
|
"onUpdate:filters": U,
|
|
3655
3698
|
onSort: O,
|
|
3656
3699
|
onPage: b,
|
|
3657
|
-
onNodeExpand: V[2] || (V[2] = () =>
|
|
3700
|
+
onNodeExpand: V[2] || (V[2] = () => x()),
|
|
3658
3701
|
showHeaders: "",
|
|
3659
3702
|
first: o.value
|
|
3660
3703
|
}), ae({
|
|
3661
3704
|
empty: f(() => [
|
|
3662
3705
|
m("div", ja, [
|
|
3663
|
-
m("h5", Ia,
|
|
3706
|
+
m("h5", Ia, F(g.emptyMessage ?? "No items Found."), 1)
|
|
3664
3707
|
])
|
|
3665
3708
|
]),
|
|
3666
3709
|
header: f(() => [
|
|
3667
3710
|
m("div", {
|
|
3668
|
-
class:
|
|
3711
|
+
class: S(a.loading ? "opacity-50" : "")
|
|
3669
3712
|
}, [
|
|
3670
3713
|
m("div", Ma, [
|
|
3671
3714
|
m("div", Va, [
|
|
3672
|
-
g.paginator && !g.legacyPaginationFooter ? (
|
|
3673
|
-
|
|
3715
|
+
g.paginator && !g.legacyPaginationFooter ? (d(), v("span", Da, [
|
|
3716
|
+
w(xe, {
|
|
3674
3717
|
total: c.value,
|
|
3675
3718
|
"page-sizes": l.value,
|
|
3676
3719
|
"per-page": n.value,
|
|
3677
3720
|
"onUpdate:perPage": [
|
|
3678
3721
|
V[0] || (V[0] = (L) => n.value = L),
|
|
3679
|
-
|
|
3722
|
+
k
|
|
3680
3723
|
]
|
|
3681
3724
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3682
|
-
])) :
|
|
3725
|
+
])) : z("", !0)
|
|
3683
3726
|
]),
|
|
3684
3727
|
m("div", Oa, [
|
|
3685
|
-
g.showClearButton ? (
|
|
3728
|
+
g.showClearButton ? (d(), y(u(q), {
|
|
3686
3729
|
key: 0,
|
|
3687
3730
|
outlined: "",
|
|
3688
3731
|
onClick: D,
|
|
3689
3732
|
"data-cy": "clear-all"
|
|
3690
3733
|
}, {
|
|
3691
3734
|
default: f(() => [
|
|
3692
|
-
|
|
3735
|
+
w(u(P), {
|
|
3693
3736
|
icon: "bi:funnel-fill",
|
|
3694
3737
|
width: "24",
|
|
3695
3738
|
height: "24"
|
|
@@ -3697,37 +3740,37 @@ const ya = {
|
|
|
3697
3740
|
V[3] || (V[3] = M(" Clear "))
|
|
3698
3741
|
]),
|
|
3699
3742
|
_: 1
|
|
3700
|
-
})) :
|
|
3701
|
-
|
|
3743
|
+
})) : z("", !0),
|
|
3744
|
+
B(g.$slots, "column-customiser")
|
|
3702
3745
|
])
|
|
3703
3746
|
])
|
|
3704
3747
|
], 2)
|
|
3705
3748
|
]),
|
|
3706
3749
|
default: f(() => [
|
|
3707
|
-
|
|
3750
|
+
B(g.$slots, "default")
|
|
3708
3751
|
]),
|
|
3709
3752
|
_: 2
|
|
3710
3753
|
}, [
|
|
3711
3754
|
E(g.$slots, (L, ve) => ({
|
|
3712
3755
|
name: ve,
|
|
3713
3756
|
fn: f(($e) => [
|
|
3714
|
-
|
|
3757
|
+
B(g.$slots, ve, W(G($e || {})))
|
|
3715
3758
|
])
|
|
3716
3759
|
})),
|
|
3717
3760
|
g.legacyPaginationFooter ? {
|
|
3718
3761
|
name: "paginatorstart",
|
|
3719
3762
|
fn: f(() => [
|
|
3720
3763
|
m("span", {
|
|
3721
|
-
class:
|
|
3764
|
+
class: S(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
3722
3765
|
"data-cy": "legacy-page-size"
|
|
3723
3766
|
}, [
|
|
3724
3767
|
V[4] || (V[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3725
|
-
|
|
3768
|
+
w(u(ie), {
|
|
3726
3769
|
options: l.value,
|
|
3727
3770
|
modelValue: n.value,
|
|
3728
3771
|
"onUpdate:modelValue": V[1] || (V[1] = (L) => n.value = L),
|
|
3729
3772
|
class: "ms-2",
|
|
3730
|
-
onClick:
|
|
3773
|
+
onClick: k
|
|
3731
3774
|
}, null, 8, ["options", "modelValue"])
|
|
3732
3775
|
], 2)
|
|
3733
3776
|
]),
|
|
@@ -3738,15 +3781,15 @@ const ya = {
|
|
|
3738
3781
|
fn: f(() => [
|
|
3739
3782
|
m("span", {
|
|
3740
3783
|
"data-cy": "legacy-total",
|
|
3741
|
-
class:
|
|
3742
|
-
},
|
|
3784
|
+
class: S(a.loading ? "opacity-50" : "")
|
|
3785
|
+
}, F(c.value) + " " + F(u(ee)(c.value, "result")) + " across " + F(h.value), 3)
|
|
3743
3786
|
]),
|
|
3744
3787
|
key: "1"
|
|
3745
3788
|
} : void 0
|
|
3746
3789
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3747
3790
|
]));
|
|
3748
3791
|
}
|
|
3749
|
-
}), Na = { class: "d-flex position-relative" }, Aa = { class: "d-flex w-100" },
|
|
3792
|
+
}), Na = { class: "d-flex position-relative" }, Aa = { class: "d-flex w-100" }, hl = /* @__PURE__ */ C({
|
|
3750
3793
|
__name: "ForgeFilterHeader",
|
|
3751
3794
|
props: /* @__PURE__ */ R({
|
|
3752
3795
|
dataType: {},
|
|
@@ -3767,7 +3810,7 @@ const ya = {
|
|
|
3767
3810
|
const o = (s) => {
|
|
3768
3811
|
var c;
|
|
3769
3812
|
const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
|
|
3770
|
-
(
|
|
3813
|
+
(h) => e.optionValue ? h[e.optionValue] === s : Object.keys(h).every((r) => s.hasOwnProperty(r) && h[r] === s[r])
|
|
3771
3814
|
);
|
|
3772
3815
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3773
3816
|
};
|
|
@@ -3777,20 +3820,20 @@ const ya = {
|
|
|
3777
3820
|
};
|
|
3778
3821
|
return (l, n) => {
|
|
3779
3822
|
const o = fe, s = q;
|
|
3780
|
-
return
|
|
3781
|
-
l.dataType === "numeric" ? (
|
|
3823
|
+
return d(), v("div", Na, [
|
|
3824
|
+
l.dataType === "numeric" ? (d(), y(o, _({
|
|
3782
3825
|
key: 0,
|
|
3783
3826
|
modelValue: t.value,
|
|
3784
3827
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
|
|
3785
3828
|
modelModifiers: { trim: !0 }
|
|
3786
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (
|
|
3829
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), y(he, _({
|
|
3787
3830
|
key: 1,
|
|
3788
3831
|
modelValue: t.value,
|
|
3789
3832
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3790
3833
|
}, l.$attrs, {
|
|
3791
3834
|
"show-icon": !1,
|
|
3792
3835
|
"show-on-focus": !0
|
|
3793
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (
|
|
3836
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), y(u(ie), _({
|
|
3794
3837
|
key: 2,
|
|
3795
3838
|
modelValue: t.value,
|
|
3796
3839
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
@@ -3802,16 +3845,16 @@ const ya = {
|
|
|
3802
3845
|
value: f(({ value: p, placeholder: c }) => [
|
|
3803
3846
|
m("div", Aa, [
|
|
3804
3847
|
m("span", {
|
|
3805
|
-
class:
|
|
3806
|
-
},
|
|
3807
|
-
l.showClearButton && t.value !== null ? (
|
|
3848
|
+
class: S({ "filter-placeholder": p === null })
|
|
3849
|
+
}, F(a(p, c)), 3),
|
|
3850
|
+
l.showClearButton && t.value !== null ? (d(), y(s, {
|
|
3808
3851
|
key: 0,
|
|
3809
3852
|
onClick: X(i, ["prevent"]),
|
|
3810
3853
|
size: "small",
|
|
3811
3854
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3812
3855
|
}, {
|
|
3813
3856
|
default: f(() => [
|
|
3814
|
-
|
|
3857
|
+
w(u(P), {
|
|
3815
3858
|
icon: "bi:x",
|
|
3816
3859
|
width: "1rem",
|
|
3817
3860
|
height: "1rem",
|
|
@@ -3819,11 +3862,11 @@ const ya = {
|
|
|
3819
3862
|
})
|
|
3820
3863
|
]),
|
|
3821
3864
|
_: 1
|
|
3822
|
-
})) :
|
|
3865
|
+
})) : z("", !0)
|
|
3823
3866
|
])
|
|
3824
3867
|
]),
|
|
3825
3868
|
_: 1
|
|
3826
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (
|
|
3869
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), y(u(re), _({
|
|
3827
3870
|
key: 3,
|
|
3828
3871
|
modelValue: t.value,
|
|
3829
3872
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
@@ -3833,20 +3876,20 @@ const ya = {
|
|
|
3833
3876
|
"option-label": l.optionLabel,
|
|
3834
3877
|
"option-value": l.optionValue,
|
|
3835
3878
|
filter: ""
|
|
3836
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (
|
|
3879
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), y(u(se), _({
|
|
3837
3880
|
key: 4,
|
|
3838
3881
|
modelValue: t.value,
|
|
3839
3882
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
|
|
3840
3883
|
modelModifiers: { trim: !0 }
|
|
3841
3884
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3842
|
-
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (
|
|
3885
|
+
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), y(s, {
|
|
3843
3886
|
key: 5,
|
|
3844
3887
|
onClick: X(i, ["prevent"]),
|
|
3845
3888
|
size: "small",
|
|
3846
3889
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3847
3890
|
}, {
|
|
3848
3891
|
default: f(() => [
|
|
3849
|
-
|
|
3892
|
+
w(u(P), {
|
|
3850
3893
|
icon: "bi:x",
|
|
3851
3894
|
width: "1rem",
|
|
3852
3895
|
height: "1rem",
|
|
@@ -3854,7 +3897,7 @@ const ya = {
|
|
|
3854
3897
|
})
|
|
3855
3898
|
]),
|
|
3856
3899
|
_: 1
|
|
3857
|
-
})) :
|
|
3900
|
+
})) : z("", !0)
|
|
3858
3901
|
]);
|
|
3859
3902
|
};
|
|
3860
3903
|
}
|
|
@@ -5017,7 +5060,7 @@ function Ra() {
|
|
|
5017
5060
|
const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disabled", "multiple"], Ga = {
|
|
5018
5061
|
class: "text-break accepted-file-types-container",
|
|
5019
5062
|
id: "accepted-file-types-overlay"
|
|
5020
|
-
}, Ya = /* @__PURE__ */
|
|
5063
|
+
}, Ya = /* @__PURE__ */ C({
|
|
5021
5064
|
__name: "UploadButton",
|
|
5022
5065
|
props: /* @__PURE__ */ R({
|
|
5023
5066
|
acceptedFileTypes: {},
|
|
@@ -5029,13 +5072,13 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5029
5072
|
}),
|
|
5030
5073
|
emits: ["update:modelValue"],
|
|
5031
5074
|
setup(e) {
|
|
5032
|
-
const t = N(e, "modelValue"), a = j(), i = (o) => a.value.toggle(o), l =
|
|
5075
|
+
const t = N(e, "modelValue"), a = j(), i = (o) => a.value.toggle(o), l = T(() => e.maxFileInput <= t.value.length), n = (o) => {
|
|
5033
5076
|
t.value = ke(o, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
5034
5077
|
};
|
|
5035
5078
|
return (o, s) => {
|
|
5036
5079
|
const p = q;
|
|
5037
|
-
return
|
|
5038
|
-
|
|
5080
|
+
return d(), v("div", Ha, [
|
|
5081
|
+
B(o.$slots, "message"),
|
|
5039
5082
|
m("div", null, [
|
|
5040
5083
|
m("input", {
|
|
5041
5084
|
id: "file-input",
|
|
@@ -5047,12 +5090,12 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5047
5090
|
onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
|
|
5048
5091
|
}, null, 40, Wa),
|
|
5049
5092
|
m("label", {
|
|
5050
|
-
class:
|
|
5093
|
+
class: S([{ disabled: l.value }, "btn btn-primary"]),
|
|
5051
5094
|
id: "file-input-button",
|
|
5052
5095
|
for: "file-input"
|
|
5053
5096
|
}, [
|
|
5054
|
-
|
|
5055
|
-
|
|
5097
|
+
B(o.$slots, "button-content", {}, () => [
|
|
5098
|
+
w(u(P), {
|
|
5056
5099
|
icon: "bi:upload",
|
|
5057
5100
|
class: "me-2",
|
|
5058
5101
|
height: "20px",
|
|
@@ -5062,7 +5105,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5062
5105
|
])
|
|
5063
5106
|
], 2)
|
|
5064
5107
|
]),
|
|
5065
|
-
o.showDragDropArea ? (
|
|
5108
|
+
o.showDragDropArea ? (d(), y(p, {
|
|
5066
5109
|
link: "",
|
|
5067
5110
|
class: "ms-auto",
|
|
5068
5111
|
key: o.acceptedFileTypes.length,
|
|
@@ -5073,13 +5116,13 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5073
5116
|
M("Accepted File Types")
|
|
5074
5117
|
])),
|
|
5075
5118
|
_: 1
|
|
5076
|
-
})) :
|
|
5077
|
-
|
|
5119
|
+
})) : z("", !0),
|
|
5120
|
+
w(u(be), {
|
|
5078
5121
|
ref_key: "acceptedFilesOverlay",
|
|
5079
5122
|
ref: a
|
|
5080
5123
|
}, {
|
|
5081
5124
|
default: f(() => [
|
|
5082
|
-
m("div", Ga,
|
|
5125
|
+
m("div", Ga, F(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
5083
5126
|
]),
|
|
5084
5127
|
_: 1
|
|
5085
5128
|
}, 512)
|
|
@@ -5093,7 +5136,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5093
5136
|
}, Ka = {
|
|
5094
5137
|
key: 1,
|
|
5095
5138
|
class: "d-flex flex-column"
|
|
5096
|
-
}, Za = /* @__PURE__ */
|
|
5139
|
+
}, Za = /* @__PURE__ */ C({
|
|
5097
5140
|
__name: "DragDropArea",
|
|
5098
5141
|
props: /* @__PURE__ */ R({
|
|
5099
5142
|
maxFileInput: {},
|
|
@@ -5105,30 +5148,30 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5105
5148
|
}),
|
|
5106
5149
|
emits: ["update:modelValue"],
|
|
5107
5150
|
setup(e) {
|
|
5108
|
-
const t = N(e, "modelValue"), a = j(!1), i =
|
|
5151
|
+
const t = N(e, "modelValue"), a = j(!1), i = T(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5109
5152
|
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = ke([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((o) => o.fileType), e.maxFileSize);
|
|
5110
5153
|
};
|
|
5111
|
-
return (n, o) => (
|
|
5154
|
+
return (n, o) => (d(), v("div", {
|
|
5112
5155
|
id: "drag-drop-area",
|
|
5113
|
-
class:
|
|
5156
|
+
class: S(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
5114
5157
|
onDragleave: o[0] || (o[0] = X((s) => a.value = !1, ["prevent"])),
|
|
5115
5158
|
onDragover: o[1] || (o[1] = X((s) => a.value = !0, ["prevent"])),
|
|
5116
5159
|
onDrop: X(l, ["prevent"])
|
|
5117
5160
|
}, [
|
|
5118
|
-
t.value.length === 0 ? (
|
|
5119
|
-
|
|
5161
|
+
t.value.length === 0 ? (d(), v("div", Ja, [
|
|
5162
|
+
w(u(P), {
|
|
5120
5163
|
icon: "bi:upload",
|
|
5121
5164
|
class: "me-2",
|
|
5122
5165
|
height: "20px",
|
|
5123
5166
|
width: "20px"
|
|
5124
5167
|
}),
|
|
5125
5168
|
o[2] || (o[2] = M(" Drag and drop files here "))
|
|
5126
|
-
])) : (
|
|
5127
|
-
|
|
5169
|
+
])) : (d(), v("div", Ka, [
|
|
5170
|
+
B(n.$slots, "default")
|
|
5128
5171
|
]))
|
|
5129
5172
|
], 34));
|
|
5130
5173
|
}
|
|
5131
|
-
}), Xa = { class: "d-flex align-items-center me-2" }, Qa = /* @__PURE__ */
|
|
5174
|
+
}), Xa = { class: "d-flex align-items-center me-2" }, Qa = /* @__PURE__ */ C({
|
|
5132
5175
|
__name: "UploadStatus",
|
|
5133
5176
|
props: {
|
|
5134
5177
|
fileSize: {},
|
|
@@ -5137,7 +5180,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5137
5180
|
uploadStatus: {}
|
|
5138
5181
|
},
|
|
5139
5182
|
setup(e) {
|
|
5140
|
-
const t = e, a =
|
|
5183
|
+
const t = e, a = T(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = T(() => {
|
|
5141
5184
|
switch (t.uploadStatus) {
|
|
5142
5185
|
case "InvalidFileType":
|
|
5143
5186
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -5155,22 +5198,22 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5155
5198
|
});
|
|
5156
5199
|
return (l, n) => {
|
|
5157
5200
|
const o = pe;
|
|
5158
|
-
return
|
|
5159
|
-
t.uploadStatus === "Uploading" ? (
|
|
5201
|
+
return d(), v("div", Xa, [
|
|
5202
|
+
t.uploadStatus === "Uploading" ? (d(), y(o, {
|
|
5160
5203
|
key: 0,
|
|
5161
5204
|
"in-line": ""
|
|
5162
|
-
})) :
|
|
5163
|
-
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (
|
|
5205
|
+
})) : z("", !0),
|
|
5206
|
+
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), y(de, {
|
|
5164
5207
|
key: 1,
|
|
5165
5208
|
id: "upload-status-alert",
|
|
5166
5209
|
severity: a.value,
|
|
5167
5210
|
class: "mb-0 w-75 ms-auto"
|
|
5168
5211
|
}, {
|
|
5169
5212
|
default: f(() => [
|
|
5170
|
-
M(
|
|
5213
|
+
M(F(i.value), 1)
|
|
5171
5214
|
]),
|
|
5172
5215
|
_: 1
|
|
5173
|
-
}, 8, ["severity"])) :
|
|
5216
|
+
}, 8, ["severity"])) : z("", !0)
|
|
5174
5217
|
]);
|
|
5175
5218
|
};
|
|
5176
5219
|
}
|
|
@@ -5183,7 +5226,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5183
5226
|
}, li = {
|
|
5184
5227
|
class: "text-black-50",
|
|
5185
5228
|
id: "file-size"
|
|
5186
|
-
}, ni = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, oi = /* @__PURE__ */
|
|
5229
|
+
}, ni = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, oi = /* @__PURE__ */ C({
|
|
5187
5230
|
__name: "FileInfo",
|
|
5188
5231
|
props: /* @__PURE__ */ R({
|
|
5189
5232
|
editableFileName: { type: Boolean },
|
|
@@ -5202,18 +5245,18 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5202
5245
|
}),
|
|
5203
5246
|
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5204
5247
|
setup(e, { emit: t }) {
|
|
5205
|
-
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o = j(a.value.name), s = j(""), p = j(0), c = j(),
|
|
5248
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o = j(a.value.name), s = j(""), p = j(0), c = j(), h = T(() => e.acceptedFileTypes.some(({ fileType: b }) => b === a.value.type)), r = T(() => a.value.size <= e.maxFileSize), x = T(() => a.value.type ? a.value.type : Ra().getType(a.value.name)), $ = () => {
|
|
5206
5249
|
o.value != null && (D(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5207
5250
|
}, D = () => {
|
|
5208
|
-
let b = o.value.split("."),
|
|
5209
|
-
b.length === 1 ? I && I.length > 0 && (o.value = [o.value,
|
|
5251
|
+
let b = o.value.split("."), k = Ea.getExtension(x.value), I = o.value.split(".").pop();
|
|
5252
|
+
b.length === 1 ? I && I.length > 0 && (o.value = [o.value, k].join(".")) : b.length > 1 && I !== k && (o.value = o.value.replace(I, k));
|
|
5210
5253
|
}, O = async () => {
|
|
5211
|
-
if (!
|
|
5212
|
-
l.value =
|
|
5254
|
+
if (!h.value || !r.value) {
|
|
5255
|
+
l.value = h.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5213
5256
|
return;
|
|
5214
5257
|
}
|
|
5215
5258
|
l.value = "Preparing", c.value = new AbortController();
|
|
5216
|
-
const [b,
|
|
5259
|
+
const [b, k] = await e.getFileUrlAction(a.value.name);
|
|
5217
5260
|
if (!b) {
|
|
5218
5261
|
l.value = "Failed";
|
|
5219
5262
|
return;
|
|
@@ -5224,12 +5267,12 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5224
5267
|
abortSignal: c.value.signal,
|
|
5225
5268
|
onProgress: (V) => p.value = V.loadedBytes,
|
|
5226
5269
|
blobHTTPHeaders: {
|
|
5227
|
-
blobContentType:
|
|
5270
|
+
blobContentType: x.value,
|
|
5228
5271
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
5229
5272
|
},
|
|
5230
5273
|
tags: { temp: "true" }
|
|
5231
5274
|
};
|
|
5232
|
-
await I.uploadData(a.value, g), s.value = b, l.value = "Uploaded", i.value =
|
|
5275
|
+
await I.uploadData(a.value, g), s.value = b, l.value = "Uploaded", i.value = k;
|
|
5233
5276
|
} catch (I) {
|
|
5234
5277
|
if (I.name === "AbortError") {
|
|
5235
5278
|
l.value = "Aborted";
|
|
@@ -5242,14 +5285,14 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5242
5285
|
};
|
|
5243
5286
|
return ne(() => {
|
|
5244
5287
|
e.autoUploadToBlob && l.value != "Uploaded" && O();
|
|
5245
|
-
}), (b,
|
|
5288
|
+
}), (b, k) => {
|
|
5246
5289
|
const I = q;
|
|
5247
|
-
return
|
|
5290
|
+
return d(), v("div", {
|
|
5248
5291
|
class: "py-4 px-3 d-flex",
|
|
5249
5292
|
"data-cy": `file-info-${a.value.name}`
|
|
5250
5293
|
}, [
|
|
5251
5294
|
m("div", null, [
|
|
5252
|
-
u(qa)(a.value.type) ? (
|
|
5295
|
+
u(qa)(a.value.type) ? (d(), y(u(Ye), {
|
|
5253
5296
|
key: 0,
|
|
5254
5297
|
id: "thumbnail-image",
|
|
5255
5298
|
"image-class": "image-file-thumbnail border",
|
|
@@ -5257,7 +5300,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5257
5300
|
alt: a.value.name,
|
|
5258
5301
|
width: "75px",
|
|
5259
5302
|
preview: ""
|
|
5260
|
-
}, null, 8, ["src", "alt"])) : (
|
|
5303
|
+
}, null, 8, ["src", "alt"])) : (d(), y(u(P), {
|
|
5261
5304
|
key: 1,
|
|
5262
5305
|
id: "file-earmark",
|
|
5263
5306
|
icon: "bi:file-earmark",
|
|
@@ -5267,56 +5310,56 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5267
5310
|
]),
|
|
5268
5311
|
m("div", ti, [
|
|
5269
5312
|
m("div", null, [
|
|
5270
|
-
b.editableFileName ? (
|
|
5313
|
+
b.editableFileName ? (d(), y(Gt, {
|
|
5271
5314
|
key: 0,
|
|
5272
5315
|
id: "edit-file-name",
|
|
5273
5316
|
modelValue: o.value,
|
|
5274
|
-
"onUpdate:modelValue":
|
|
5317
|
+
"onUpdate:modelValue": k[0] || (k[0] = (g) => o.value = g),
|
|
5275
5318
|
rules: b.customFileNameRules,
|
|
5276
5319
|
name: a.value.name,
|
|
5277
|
-
"complete-action":
|
|
5278
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (
|
|
5320
|
+
"complete-action": $
|
|
5321
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), v("span", ai, F(o.value), 1))
|
|
5279
5322
|
]),
|
|
5280
|
-
m("span", ii, "File type: " +
|
|
5281
|
-
m("span", li, "File size: " +
|
|
5323
|
+
m("span", ii, "File type: " + F(a.value.type.split("/").pop()), 1),
|
|
5324
|
+
m("span", li, "File size: " + F(u(me)(a.value.size)), 1)
|
|
5282
5325
|
]),
|
|
5283
5326
|
m("div", ni, [
|
|
5284
|
-
(
|
|
5327
|
+
(d(), y(Qa, {
|
|
5285
5328
|
key: l.value,
|
|
5286
5329
|
"file-size": a.value.size,
|
|
5287
5330
|
"upload-status": l.value,
|
|
5288
5331
|
"bytes-uploaded": p.value,
|
|
5289
5332
|
"max-file-size": b.maxFileSize
|
|
5290
5333
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
5291
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (
|
|
5334
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), y(I, {
|
|
5292
5335
|
key: 0,
|
|
5293
5336
|
link: "",
|
|
5294
5337
|
onClick: O
|
|
5295
5338
|
}, {
|
|
5296
5339
|
default: f(() => [
|
|
5297
|
-
|
|
5340
|
+
w(u(P), {
|
|
5298
5341
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5299
5342
|
}, null, 8, ["icon"])
|
|
5300
5343
|
]),
|
|
5301
5344
|
_: 1
|
|
5302
|
-
})) :
|
|
5303
|
-
l.value === "Uploading" ? (
|
|
5345
|
+
})) : z("", !0),
|
|
5346
|
+
l.value === "Uploading" ? (d(), y(I, {
|
|
5304
5347
|
key: 1,
|
|
5305
5348
|
link: "",
|
|
5306
|
-
onClick:
|
|
5349
|
+
onClick: k[1] || (k[1] = (g) => c.value.abort())
|
|
5307
5350
|
}, {
|
|
5308
5351
|
default: f(() => [
|
|
5309
|
-
|
|
5352
|
+
w(u(P), { icon: "bi:x-circle-fill" })
|
|
5310
5353
|
]),
|
|
5311
5354
|
_: 1
|
|
5312
|
-
})) : (
|
|
5355
|
+
})) : (d(), y(I, {
|
|
5313
5356
|
key: 2,
|
|
5314
5357
|
link: "",
|
|
5315
5358
|
onClick: U,
|
|
5316
5359
|
id: "delete-button"
|
|
5317
5360
|
}, {
|
|
5318
5361
|
default: f(() => [
|
|
5319
|
-
|
|
5362
|
+
w(u(P), { icon: "bi:trash" })
|
|
5320
5363
|
]),
|
|
5321
5364
|
_: 1
|
|
5322
5365
|
}))
|
|
@@ -5324,19 +5367,19 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5324
5367
|
], 8, ei);
|
|
5325
5368
|
};
|
|
5326
5369
|
}
|
|
5327
|
-
}), si = { class: "d-flex justify-content-end mt-1 gap-1" }, ri = { id: "max-file-size" }, di = { id: "max-file-input" }, pi = /* @__PURE__ */
|
|
5370
|
+
}), si = { class: "d-flex justify-content-end mt-1 gap-1" }, ri = { id: "max-file-size" }, di = { id: "max-file-input" }, pi = /* @__PURE__ */ C({
|
|
5328
5371
|
__name: "FileInputInfo",
|
|
5329
5372
|
props: {
|
|
5330
5373
|
maxFileSize: {},
|
|
5331
5374
|
maxFileInput: {}
|
|
5332
5375
|
},
|
|
5333
5376
|
setup(e) {
|
|
5334
|
-
return (t, a) => (
|
|
5335
|
-
m("div", ri, "Max file size: " +
|
|
5336
|
-
m("div", di, "| Max file count: " +
|
|
5377
|
+
return (t, a) => (d(), v("div", si, [
|
|
5378
|
+
m("div", ri, "Max file size: " + F(u(me)(t.maxFileSize)), 1),
|
|
5379
|
+
m("div", di, "| Max file count: " + F(t.maxFileInput), 1)
|
|
5337
5380
|
]));
|
|
5338
5381
|
}
|
|
5339
|
-
}), ci = { "data-cy": "file-uploader" }, ui = { key: 0 },
|
|
5382
|
+
}), ci = { "data-cy": "file-uploader" }, ui = { key: 0 }, xl = /* @__PURE__ */ C({
|
|
5340
5383
|
__name: "ForgeFileUploader",
|
|
5341
5384
|
props: /* @__PURE__ */ R({
|
|
5342
5385
|
acceptedFileTypes: {},
|
|
@@ -5356,13 +5399,13 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5356
5399
|
const t = N(e, "modelValue"), a = e, i = (l) => {
|
|
5357
5400
|
t.value = t.value.filter((n) => n.file != l);
|
|
5358
5401
|
};
|
|
5359
|
-
return (l, n) => (
|
|
5360
|
-
|
|
5402
|
+
return (l, n) => (d(), v("div", ci, [
|
|
5403
|
+
w(Ya, _(a, {
|
|
5361
5404
|
modelValue: t.value,
|
|
5362
5405
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
|
|
5363
5406
|
}), null, 16, ["modelValue"]),
|
|
5364
|
-
l.showDragDropArea ? (
|
|
5365
|
-
|
|
5407
|
+
l.showDragDropArea ? (d(), v("div", ui, [
|
|
5408
|
+
w(Za, {
|
|
5366
5409
|
"max-file-input": a.maxFileInput,
|
|
5367
5410
|
"max-file-size": a.maxFileSize,
|
|
5368
5411
|
"accepted-file-types": a.acceptedFileTypes,
|
|
@@ -5370,8 +5413,8 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5370
5413
|
"onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
|
|
5371
5414
|
}, {
|
|
5372
5415
|
default: f(() => [
|
|
5373
|
-
(
|
|
5374
|
-
(
|
|
5416
|
+
(d(!0), v(A, null, E(t.value, ({ file: o }, s) => (d(), v("div", null, [
|
|
5417
|
+
(d(), y(oi, _({
|
|
5375
5418
|
key: o.name,
|
|
5376
5419
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5377
5420
|
file: t.value[s].file,
|
|
@@ -5386,14 +5429,14 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5386
5429
|
]),
|
|
5387
5430
|
_: 1
|
|
5388
5431
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5389
|
-
|
|
5432
|
+
w(pi, {
|
|
5390
5433
|
"max-file-size": a.maxFileSize,
|
|
5391
5434
|
"max-file-input": l.maxFileInput
|
|
5392
5435
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5393
|
-
])) :
|
|
5436
|
+
])) : z("", !0)
|
|
5394
5437
|
]));
|
|
5395
5438
|
}
|
|
5396
|
-
}), mi = { class: "d-flex" }, vi = { class: "me-3" }, fi = { class: "ms-2" }, gi = { class: "d-flex flex-column w-100" }, wl = /* @__PURE__ */
|
|
5439
|
+
}), mi = { class: "d-flex" }, vi = { class: "me-3" }, fi = { class: "ms-2" }, gi = { class: "d-flex flex-column w-100" }, wl = /* @__PURE__ */ C({
|
|
5397
5440
|
__name: "ForgeColumnCustomiser",
|
|
5398
5441
|
props: {
|
|
5399
5442
|
modelValue: { required: !0 },
|
|
@@ -5404,19 +5447,19 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5404
5447
|
const t = N(e, "modelValue"), a = j(), i = j(!1), l = (n) => {
|
|
5405
5448
|
a.value.toggle(n);
|
|
5406
5449
|
};
|
|
5407
|
-
return (n, o) => (
|
|
5408
|
-
|
|
5450
|
+
return (n, o) => (d(), v(A, null, [
|
|
5451
|
+
w(u(q), {
|
|
5409
5452
|
onClick: l,
|
|
5410
5453
|
class: "ms-2"
|
|
5411
5454
|
}, {
|
|
5412
5455
|
default: f(() => [
|
|
5413
5456
|
m("div", mi, [
|
|
5414
5457
|
m("div", vi, [
|
|
5415
|
-
|
|
5458
|
+
w(u(P), { icon: "bi:layout-three-columns" })
|
|
5416
5459
|
]),
|
|
5417
|
-
M(" Columns (" +
|
|
5460
|
+
M(" Columns (" + F(t.value.filter((s) => s.selected).length ?? 0) + "/" + F(t.value.length ?? 0) + ") ", 1),
|
|
5418
5461
|
m("div", fi, [
|
|
5419
|
-
|
|
5462
|
+
w(u(P), {
|
|
5420
5463
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5421
5464
|
}, null, 8, ["icon"])
|
|
5422
5465
|
])
|
|
@@ -5424,7 +5467,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5424
5467
|
]),
|
|
5425
5468
|
_: 1
|
|
5426
5469
|
}),
|
|
5427
|
-
|
|
5470
|
+
w(u(be), {
|
|
5428
5471
|
ref_key: "columnCustomiserPanel",
|
|
5429
5472
|
ref: a,
|
|
5430
5473
|
class: "column-customiser",
|
|
@@ -5433,15 +5476,15 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5433
5476
|
}, {
|
|
5434
5477
|
default: f(() => [
|
|
5435
5478
|
m("div", gi, [
|
|
5436
|
-
(
|
|
5437
|
-
class:
|
|
5479
|
+
(d(!0), v(A, null, E(t.value, (s, p) => (d(), v("div", {
|
|
5480
|
+
class: S(["d-flex cursor-pointer", {
|
|
5438
5481
|
"border-top": p !== 0,
|
|
5439
5482
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
5440
5483
|
"pt-1": t.value.length - 1 === p,
|
|
5441
5484
|
"pb-1": p === 0
|
|
5442
5485
|
}])
|
|
5443
5486
|
}, [
|
|
5444
|
-
|
|
5487
|
+
w(ye, {
|
|
5445
5488
|
id: s.field,
|
|
5446
5489
|
modelValue: s.selected,
|
|
5447
5490
|
"onUpdate:modelValue": (c) => s.selected = c,
|
|
@@ -5456,19 +5499,19 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5456
5499
|
}, 512)
|
|
5457
5500
|
], 64));
|
|
5458
5501
|
}
|
|
5459
|
-
}), kl = /* @__PURE__ */
|
|
5502
|
+
}), kl = /* @__PURE__ */ C({
|
|
5460
5503
|
__name: "ForgePanel",
|
|
5461
5504
|
setup(e) {
|
|
5462
5505
|
return (t, a) => {
|
|
5463
5506
|
const i = Je;
|
|
5464
|
-
return
|
|
5507
|
+
return d(), y(i, W(G({ ...t.$attrs })), ae({
|
|
5465
5508
|
toggleicon: f(({ collapsed: l }) => [
|
|
5466
|
-
l ? (
|
|
5509
|
+
l ? (d(), y(u(P), {
|
|
5467
5510
|
key: 0,
|
|
5468
5511
|
"data-cy": "message-icon",
|
|
5469
5512
|
icon: "bi:chevron-down"
|
|
5470
|
-
})) :
|
|
5471
|
-
l ?
|
|
5513
|
+
})) : z("", !0),
|
|
5514
|
+
l ? z("", !0) : (d(), y(u(P), {
|
|
5472
5515
|
key: 1,
|
|
5473
5516
|
"data-cy": "message-icon",
|
|
5474
5517
|
icon: "bi:chevron-up"
|
|
@@ -5479,19 +5522,19 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5479
5522
|
E(t.$slots, (l, n) => ({
|
|
5480
5523
|
name: n,
|
|
5481
5524
|
fn: f((o) => [
|
|
5482
|
-
|
|
5525
|
+
B(t.$slots, n, W(G(o)))
|
|
5483
5526
|
])
|
|
5484
5527
|
}))
|
|
5485
5528
|
]), 1040);
|
|
5486
5529
|
};
|
|
5487
5530
|
}
|
|
5488
|
-
}), bi = /* @__PURE__ */
|
|
5531
|
+
}), bi = /* @__PURE__ */ C({
|
|
5489
5532
|
__name: "ForgeToggleButton",
|
|
5490
5533
|
props: {
|
|
5491
5534
|
severity: { default: "primary" }
|
|
5492
5535
|
},
|
|
5493
5536
|
setup(e) {
|
|
5494
|
-
const t = e, a =
|
|
5537
|
+
const t = e, a = T(() => ({
|
|
5495
5538
|
root: (i) => ({
|
|
5496
5539
|
class: [
|
|
5497
5540
|
"btn",
|
|
@@ -5512,7 +5555,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5512
5555
|
]
|
|
5513
5556
|
})
|
|
5514
5557
|
}));
|
|
5515
|
-
return (i, l) => (
|
|
5558
|
+
return (i, l) => (d(), y(u(Ke), _({ ...i.$attrs, ...t }, {
|
|
5516
5559
|
severity: t.severity,
|
|
5517
5560
|
pt: a.value
|
|
5518
5561
|
}), null, 16, ["severity", "pt"]));
|
|
@@ -5520,7 +5563,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5520
5563
|
}), yi = {
|
|
5521
5564
|
class: "btn-group",
|
|
5522
5565
|
"data-cy": "forge-select-button"
|
|
5523
|
-
}, $l = /* @__PURE__ */
|
|
5566
|
+
}, $l = /* @__PURE__ */ C({
|
|
5524
5567
|
__name: "ForgeSelectButton",
|
|
5525
5568
|
props: /* @__PURE__ */ R({
|
|
5526
5569
|
options: {},
|
|
@@ -5550,8 +5593,8 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5550
5593
|
} else
|
|
5551
5594
|
a.value = a.value === n.value && t.allowEmpty ? null : n.value;
|
|
5552
5595
|
};
|
|
5553
|
-
return (n, o) => (
|
|
5554
|
-
(
|
|
5596
|
+
return (n, o) => (d(), v("div", yi, [
|
|
5597
|
+
(d(!0), v(A, null, E(n.options, (s, p) => (d(), y(bi, {
|
|
5555
5598
|
key: p,
|
|
5556
5599
|
onLabel: s.label,
|
|
5557
5600
|
offLabel: s.label,
|
|
@@ -5564,10 +5607,10 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5564
5607
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5565
5608
|
]));
|
|
5566
5609
|
}
|
|
5567
|
-
}), Bl = /* @__PURE__ */
|
|
5610
|
+
}), Bl = /* @__PURE__ */ C({
|
|
5568
5611
|
__name: "ForgeConfirmPopup",
|
|
5569
5612
|
setup(e) {
|
|
5570
|
-
const t =
|
|
5613
|
+
const t = T(() => ({
|
|
5571
5614
|
root: [
|
|
5572
5615
|
"card w-fit-content position-absolute"
|
|
5573
5616
|
],
|
|
@@ -5578,9 +5621,9 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5578
5621
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5579
5622
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5580
5623
|
}));
|
|
5581
|
-
return (a, i) => (
|
|
5624
|
+
return (a, i) => (d(), y(u(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5582
5625
|
default: f(() => [
|
|
5583
|
-
(
|
|
5626
|
+
(d(!0), v(A, null, E(a.$slots, (l, n) => B(a.$slots, n, { slot: n })), 256))
|
|
5584
5627
|
]),
|
|
5585
5628
|
_: 3
|
|
5586
5629
|
}, 16, ["pt"]));
|
|
@@ -5604,9 +5647,9 @@ export {
|
|
|
5604
5647
|
cl as ForgeChip,
|
|
5605
5648
|
wl as ForgeColumnCustomiser,
|
|
5606
5649
|
Bl as ForgeConfirmPopup,
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5650
|
+
he as ForgeDatepicker,
|
|
5651
|
+
xl as ForgeFileUploader,
|
|
5652
|
+
hl as ForgeFilterHeader,
|
|
5610
5653
|
dl as ForgeForm,
|
|
5611
5654
|
pl as ForgeFormField,
|
|
5612
5655
|
Gt as ForgeInlineEditor,
|