@3squared/forge-ui-3 2.10.1 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import he from "primevue/message";
|
|
2
|
-
import { defineComponent as $, openBlock as r, createBlock as f, normalizeProps as J, guardReactiveProps as K, withCtx as b, createElementVNode as m, normalizeClass as B, unref as u, createCommentVNode as
|
|
2
|
+
import { defineComponent as $, openBlock as r, createBlock as f, normalizeProps as J, guardReactiveProps as K, withCtx as b, createElementVNode as m, normalizeClass as B, unref as u, createCommentVNode as S, createVNode as h, renderSlot as k, ref as _, createElementBlock as v, Fragment as O, mergeProps as z, renderList as N, mergeModels as U, useModel as D, computed as T, createTextVNode as I, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
|
|
3
3
|
import { Icon as j } from "@iconify/vue";
|
|
4
4
|
import A from "primevue/button";
|
|
5
5
|
import Be from "primevue/toast";
|
|
@@ -8,10 +8,10 @@ import Ce from "primevue/checkbox";
|
|
|
8
8
|
import { useField as ee } from "vee-validate";
|
|
9
9
|
import ze from "primevue/progressspinner";
|
|
10
10
|
import Te from "primevue/dialog";
|
|
11
|
-
import
|
|
11
|
+
import oe from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as je } from "@vueuse/components";
|
|
13
13
|
import Ie from "primevue/menubar";
|
|
14
|
-
import
|
|
14
|
+
import ne from "primevue/multiselect";
|
|
15
15
|
import _e from "primevue/datepicker";
|
|
16
16
|
import te from "primevue/select";
|
|
17
17
|
import Pe from "primevue/inputmask";
|
|
@@ -463,7 +463,7 @@ const We = {
|
|
|
463
463
|
content: "d-flex position-relative",
|
|
464
464
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
465
465
|
}
|
|
466
|
-
},
|
|
466
|
+
}, ot = {
|
|
467
467
|
message: {
|
|
468
468
|
root: ({ props: e }) => ({
|
|
469
469
|
class: [
|
|
@@ -492,7 +492,7 @@ const We = {
|
|
|
492
492
|
class: ["px-0 ms-2 btn d-flex"]
|
|
493
493
|
})
|
|
494
494
|
}
|
|
495
|
-
},
|
|
495
|
+
}, nt = {
|
|
496
496
|
// More PT options defined in ForgeStepper.
|
|
497
497
|
stepList: {
|
|
498
498
|
root: "d-flex mb-2 w-100"
|
|
@@ -1147,7 +1147,7 @@ const We = {
|
|
|
1147
1147
|
...Ze,
|
|
1148
1148
|
...Xe,
|
|
1149
1149
|
...Qe,
|
|
1150
|
-
...
|
|
1150
|
+
...ot,
|
|
1151
1151
|
...dt,
|
|
1152
1152
|
...vt,
|
|
1153
1153
|
...lt,
|
|
@@ -1156,7 +1156,7 @@ const We = {
|
|
|
1156
1156
|
...ct,
|
|
1157
1157
|
...gt,
|
|
1158
1158
|
...bt,
|
|
1159
|
-
...
|
|
1159
|
+
...nt,
|
|
1160
1160
|
...ut,
|
|
1161
1161
|
...et,
|
|
1162
1162
|
...st,
|
|
@@ -1201,11 +1201,11 @@ const We = {
|
|
|
1201
1201
|
icon: t.icon,
|
|
1202
1202
|
class: B(`text-${t.severity}`),
|
|
1203
1203
|
height: 35
|
|
1204
|
-
}, null, 8, ["icon", "class"])) :
|
|
1204
|
+
}, null, 8, ["icon", "class"])) : S("", !0)
|
|
1205
1205
|
], 2)
|
|
1206
1206
|
]),
|
|
1207
1207
|
closeicon: b(() => [
|
|
1208
|
-
|
|
1208
|
+
h(u(j), { icon: "bi:x" })
|
|
1209
1209
|
]),
|
|
1210
1210
|
default: b(() => [
|
|
1211
1211
|
k(a.$slots, "default")
|
|
@@ -1232,22 +1232,22 @@ const We = {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
t.value = !1;
|
|
1234
1234
|
};
|
|
1235
|
-
return (l,
|
|
1236
|
-
const
|
|
1235
|
+
return (l, o) => {
|
|
1236
|
+
const n = A;
|
|
1237
1237
|
return r(), v(O, null, [
|
|
1238
|
-
|
|
1238
|
+
h(n, z({ ...a, ...l.$attrs }, {
|
|
1239
1239
|
loading: t.value,
|
|
1240
1240
|
disabled: t.value || a.disabled,
|
|
1241
1241
|
onClick: i
|
|
1242
1242
|
}), null, 16, ["loading", "disabled"]),
|
|
1243
|
-
|
|
1243
|
+
h(u(Be))
|
|
1244
1244
|
], 64);
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
1247
|
}), Ai = /* @__PURE__ */ $({
|
|
1248
1248
|
__name: "ForgeAutoComplete",
|
|
1249
1249
|
setup(e) {
|
|
1250
|
-
return (t, a) => (r(), f(u(Se),
|
|
1250
|
+
return (t, a) => (r(), f(u(Se), z({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1251
1251
|
default: b(() => [
|
|
1252
1252
|
(r(!0), v(O, null, N(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
|
|
1253
1253
|
]),
|
|
@@ -1289,25 +1289,25 @@ const We = {
|
|
|
1289
1289
|
}),
|
|
1290
1290
|
emits: ["update:modelValue"],
|
|
1291
1291
|
setup(e) {
|
|
1292
|
-
const t = e, a = D(e, "modelValue"), { handleChange: i, errors: l, errorMessage:
|
|
1292
|
+
const t = e, a = D(e, "modelValue"), { handleChange: i, errors: l, errorMessage: o } = ee(
|
|
1293
1293
|
() => t.name ?? "",
|
|
1294
1294
|
void 0,
|
|
1295
1295
|
{
|
|
1296
1296
|
type: "checkbox",
|
|
1297
1297
|
checkedValue: a.value
|
|
1298
1298
|
}
|
|
1299
|
-
),
|
|
1299
|
+
), n = (p, c) => {
|
|
1300
1300
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
|
|
1301
1301
|
}, s = T(() => l.value.length > 0);
|
|
1302
1302
|
return (p, c) => {
|
|
1303
1303
|
const g = Ce;
|
|
1304
1304
|
return r(), v("div", Ct, [
|
|
1305
|
-
m("div",
|
|
1305
|
+
m("div", z({
|
|
1306
1306
|
class: "d-flex",
|
|
1307
1307
|
"data-cy": "checkbox-container",
|
|
1308
|
-
onClick: c[2] || (c[2] = (d) =>
|
|
1308
|
+
onClick: c[2] || (c[2] = (d) => n(d, a.value))
|
|
1309
1309
|
}, { ...p.$attrs }), [
|
|
1310
|
-
|
|
1310
|
+
h(g, z({ ...t }, {
|
|
1311
1311
|
binary: "",
|
|
1312
1312
|
modelValue: a.value,
|
|
1313
1313
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d),
|
|
@@ -1317,7 +1317,7 @@ const We = {
|
|
|
1317
1317
|
}), null, 16, ["modelValue", "input-id", "input-class", "class"]),
|
|
1318
1318
|
m("label", {
|
|
1319
1319
|
for: t.name,
|
|
1320
|
-
onClick: c[1] || (c[1] = (d) =>
|
|
1320
|
+
onClick: c[1] || (c[1] = (d) => n(d, !a.value)),
|
|
1321
1321
|
class: B([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1322
1322
|
}, [
|
|
1323
1323
|
k(p.$slots, "default", {}, () => [
|
|
@@ -1328,7 +1328,7 @@ const We = {
|
|
|
1328
1328
|
H(m("small", {
|
|
1329
1329
|
"data-cy": "error",
|
|
1330
1330
|
class: "text-invalid"
|
|
1331
|
-
}, w(u(
|
|
1331
|
+
}, w(u(o)), 513), [
|
|
1332
1332
|
[Y, s.value]
|
|
1333
1333
|
])
|
|
1334
1334
|
]);
|
|
@@ -1344,7 +1344,7 @@ const We = {
|
|
|
1344
1344
|
return (a, i) => {
|
|
1345
1345
|
const l = ze;
|
|
1346
1346
|
return r(), v("div", Tt, [
|
|
1347
|
-
|
|
1347
|
+
h(l, {
|
|
1348
1348
|
"animation-duration": ".75",
|
|
1349
1349
|
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1350
1350
|
}, null, 8, ["class"])
|
|
@@ -1397,7 +1397,7 @@ const We = {
|
|
|
1397
1397
|
id: "link-icon",
|
|
1398
1398
|
icon: i.iconName,
|
|
1399
1399
|
class: B(["bi my-auto", a.value])
|
|
1400
|
-
}, null, 8, ["icon", "class"])) :
|
|
1400
|
+
}, null, 8, ["icon", "class"])) : S("", !0),
|
|
1401
1401
|
I(" " + w(i.label), 1)
|
|
1402
1402
|
])
|
|
1403
1403
|
], 10, jt));
|
|
@@ -1436,6 +1436,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1436
1436
|
cancelClass: { default: "" },
|
|
1437
1437
|
submitClass: { default: "" },
|
|
1438
1438
|
resetErrorOnClose: { type: Boolean, default: !0 },
|
|
1439
|
+
maxHeight: {},
|
|
1439
1440
|
header: { default: "Header" },
|
|
1440
1441
|
footer: {},
|
|
1441
1442
|
visible: { type: Boolean },
|
|
@@ -1470,16 +1471,21 @@ const _t = { key: 0 }, Pt = {
|
|
|
1470
1471
|
unstyled: { type: Boolean }
|
|
1471
1472
|
}, {
|
|
1472
1473
|
visible: { type: Boolean, required: !0 },
|
|
1473
|
-
visibleModifiers: {}
|
|
1474
|
+
visibleModifiers: {},
|
|
1475
|
+
error: {
|
|
1476
|
+
required: !1,
|
|
1477
|
+
default: {
|
|
1478
|
+
hasError: !1,
|
|
1479
|
+
header: "",
|
|
1480
|
+
message: []
|
|
1481
|
+
}
|
|
1482
|
+
},
|
|
1483
|
+
errorModifiers: {}
|
|
1474
1484
|
}),
|
|
1475
|
-
emits: ["update:visible"],
|
|
1485
|
+
emits: ["update:visible", "update:error"],
|
|
1476
1486
|
setup(e, { expose: t }) {
|
|
1477
|
-
const a = D(e, "visible"), i = _(!1), l = e,
|
|
1478
|
-
|
|
1479
|
-
header: "",
|
|
1480
|
-
message: []
|
|
1481
|
-
}), s = () => {
|
|
1482
|
-
o.value = {
|
|
1487
|
+
const a = D(e, "visible"), i = _(!1), l = e, o = _(!1), n = D(e, "error"), s = () => {
|
|
1488
|
+
n.value = {
|
|
1483
1489
|
hasError: !1,
|
|
1484
1490
|
header: "",
|
|
1485
1491
|
message: []
|
|
@@ -1496,16 +1502,16 @@ const _t = { key: 0 }, Pt = {
|
|
|
1496
1502
|
l.resetErrorOnClose && s(), a.value = !1;
|
|
1497
1503
|
}, d = async () => {
|
|
1498
1504
|
if (l.onConfirm) {
|
|
1499
|
-
|
|
1505
|
+
o.value = !0, n.value.hasError = !1;
|
|
1500
1506
|
try {
|
|
1501
|
-
const
|
|
1502
|
-
(
|
|
1503
|
-
} catch (
|
|
1504
|
-
|
|
1505
|
-
const V = It(
|
|
1506
|
-
|
|
1507
|
+
const C = await l.onConfirm();
|
|
1508
|
+
(C || C == null) && g();
|
|
1509
|
+
} catch (C) {
|
|
1510
|
+
n.value.hasError = !0;
|
|
1511
|
+
const V = It(C);
|
|
1512
|
+
n.value.header = V.errorMessage, n.value.message = V.errorDetails;
|
|
1507
1513
|
}
|
|
1508
|
-
|
|
1514
|
+
o.value = !1;
|
|
1509
1515
|
}
|
|
1510
1516
|
}, F = T(() => ({
|
|
1511
1517
|
root: [
|
|
@@ -1516,17 +1522,23 @@ const _t = { key: 0 }, Pt = {
|
|
|
1516
1522
|
"modal-lg": l.size === "lg",
|
|
1517
1523
|
"modal-xl": l.size === "xl"
|
|
1518
1524
|
}
|
|
1525
|
+
],
|
|
1526
|
+
content: [
|
|
1527
|
+
"modal-body overflow-y-auto",
|
|
1528
|
+
{
|
|
1529
|
+
[`${l.maxHeight}`]: l.maxHeight && !i.value
|
|
1530
|
+
}
|
|
1519
1531
|
]
|
|
1520
1532
|
}));
|
|
1521
|
-
return (
|
|
1533
|
+
return (C, V) => {
|
|
1522
1534
|
const M = A, q = Te;
|
|
1523
|
-
return r(), f(q,
|
|
1535
|
+
return r(), f(q, z(l, {
|
|
1524
1536
|
onMaximize: c,
|
|
1525
1537
|
onUnmaximize: p,
|
|
1526
1538
|
pt: F.value
|
|
1527
1539
|
}), ie({
|
|
1528
1540
|
closeicon: b(() => [
|
|
1529
|
-
|
|
1541
|
+
h(u(j), {
|
|
1530
1542
|
"data-cy": "close-icon",
|
|
1531
1543
|
icon: "bi:x-lg",
|
|
1532
1544
|
width: "18",
|
|
@@ -1535,7 +1547,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1535
1547
|
})
|
|
1536
1548
|
]),
|
|
1537
1549
|
maximizeicon: b(() => [
|
|
1538
|
-
|
|
1550
|
+
h(u(j), {
|
|
1539
1551
|
"data-cy": "maximisable-icon",
|
|
1540
1552
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1541
1553
|
width: "16",
|
|
@@ -1544,44 +1556,46 @@ const _t = { key: 0 }, Pt = {
|
|
|
1544
1556
|
]),
|
|
1545
1557
|
_: 2
|
|
1546
1558
|
}, [
|
|
1547
|
-
N(
|
|
1548
|
-
name:
|
|
1559
|
+
N(C.$slots, (y, x) => ({
|
|
1560
|
+
name: x,
|
|
1549
1561
|
fn: b((P) => [
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1562
|
+
x !== "footer" ? (r(), v(O, { key: 0 }, [
|
|
1563
|
+
n.value.hasError ? (r(), f(se, {
|
|
1564
|
+
key: 0,
|
|
1565
|
+
severity: "danger",
|
|
1566
|
+
"data-cy": "error"
|
|
1567
|
+
}, {
|
|
1568
|
+
default: b(() => [
|
|
1569
|
+
m("p", {
|
|
1570
|
+
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1571
|
+
}, w(n.value.header), 3),
|
|
1572
|
+
n.value.message.length > 0 ? (r(), v("ul", _t, [
|
|
1573
|
+
(r(!0), v(O, null, N(n.value.message, (L) => (r(), v("li", { key: L }, w(L), 1))), 128))
|
|
1574
|
+
])) : S("", !0)
|
|
1575
|
+
]),
|
|
1576
|
+
_: 1
|
|
1577
|
+
})) : S("", !0)
|
|
1578
|
+
], 64)) : S("", !0),
|
|
1579
|
+
k(C.$slots, x, J(K(P || {}))),
|
|
1580
|
+
o.value ? k(C.$slots, "loader", { key: 1 }, () => [
|
|
1581
|
+
h(ge, { "data-cy": "loader" })
|
|
1582
|
+
]) : S("", !0)
|
|
1569
1583
|
])
|
|
1570
1584
|
})),
|
|
1571
|
-
|
|
1585
|
+
C.showFooter ? {
|
|
1572
1586
|
name: "footer",
|
|
1573
1587
|
fn: b(() => [
|
|
1574
1588
|
m("div", Pt, [
|
|
1575
|
-
|
|
1576
|
-
label:
|
|
1589
|
+
h(M, {
|
|
1590
|
+
label: C.cancelText,
|
|
1577
1591
|
class: B(l.cancelClass),
|
|
1578
1592
|
outlined: "",
|
|
1579
1593
|
onClick: g,
|
|
1580
1594
|
id: "cancel-button",
|
|
1581
1595
|
type: l.cancelButtonType
|
|
1582
1596
|
}, null, 8, ["label", "class", "type"]),
|
|
1583
|
-
|
|
1584
|
-
label:
|
|
1597
|
+
h(M, {
|
|
1598
|
+
label: C.submitText,
|
|
1585
1599
|
class: B([l.submitClass, "ms-auto"]),
|
|
1586
1600
|
onClick: d,
|
|
1587
1601
|
id: "submit-button",
|
|
@@ -1609,10 +1623,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
1609
1623
|
}),
|
|
1610
1624
|
emits: ["update:modelValue"],
|
|
1611
1625
|
setup(e) {
|
|
1612
|
-
const t = e, a = D(e, "modelValue"), i = _(!1), l = _(),
|
|
1613
|
-
var
|
|
1614
|
-
i.value = !i.value, (
|
|
1615
|
-
},
|
|
1626
|
+
const t = e, a = D(e, "modelValue"), i = _(!1), l = _(), o = () => {
|
|
1627
|
+
var C;
|
|
1628
|
+
i.value = !i.value, (C = l.value) == null || C.focus();
|
|
1629
|
+
}, n = async () => {
|
|
1616
1630
|
if (F.value)
|
|
1617
1631
|
return !1;
|
|
1618
1632
|
if (a.value = d.value, t.completeAction)
|
|
@@ -1634,25 +1648,25 @@ const _t = { key: 0 }, Pt = {
|
|
|
1634
1648
|
d.value = a.value;
|
|
1635
1649
|
});
|
|
1636
1650
|
const F = T(() => g.value.length > 0);
|
|
1637
|
-
return (
|
|
1638
|
-
const M =
|
|
1651
|
+
return (C, V) => {
|
|
1652
|
+
const M = oe, q = A;
|
|
1639
1653
|
return r(), v("div", {
|
|
1640
1654
|
id: t.name
|
|
1641
1655
|
}, [
|
|
1642
|
-
|
|
1643
|
-
k(
|
|
1656
|
+
C.readonly ? (r(), v("div", Nt, [
|
|
1657
|
+
k(C.$slots, "default", {}, () => [
|
|
1644
1658
|
m("span", Ut, w(u(d)), 1)
|
|
1645
1659
|
])
|
|
1646
1660
|
])) : (r(), v("div", Mt, [
|
|
1647
1661
|
i.value ? (r(), v("div", Dt, [
|
|
1648
1662
|
H((r(), v("div", Ot, [
|
|
1649
|
-
k(
|
|
1663
|
+
k(C.$slots, "editor", {
|
|
1650
1664
|
class: B({ "is-invalid": F.value }),
|
|
1651
|
-
editFinished:
|
|
1665
|
+
editFinished: n,
|
|
1652
1666
|
cancel: s,
|
|
1653
1667
|
val: u(d)
|
|
1654
1668
|
}, () => [
|
|
1655
|
-
|
|
1669
|
+
h(M, {
|
|
1656
1670
|
modelValue: u(d),
|
|
1657
1671
|
"onUpdate:modelValue": V[0] || (V[0] = (y) => we(d) ? d.value = y : null),
|
|
1658
1672
|
modelModifiers: { trim: !0 },
|
|
@@ -1661,12 +1675,12 @@ const _t = { key: 0 }, Pt = {
|
|
|
1661
1675
|
ref: l,
|
|
1662
1676
|
class: B({ "is-invalid": F.value }),
|
|
1663
1677
|
onKeydown: [
|
|
1664
|
-
X(
|
|
1678
|
+
X(n, ["enter"]),
|
|
1665
1679
|
X(s, ["esc"])
|
|
1666
1680
|
]
|
|
1667
1681
|
}, null, 8, ["modelValue", "class"])
|
|
1668
1682
|
]),
|
|
1669
|
-
|
|
1683
|
+
h(u(j), {
|
|
1670
1684
|
icon: "bi:x-circle",
|
|
1671
1685
|
class: "mx-2 cursor-pointer",
|
|
1672
1686
|
onClick: p,
|
|
@@ -1674,30 +1688,30 @@ const _t = { key: 0 }, Pt = {
|
|
|
1674
1688
|
"data-cy": "clear-icon"
|
|
1675
1689
|
})
|
|
1676
1690
|
])), [
|
|
1677
|
-
[u(je),
|
|
1691
|
+
[u(je), n]
|
|
1678
1692
|
])
|
|
1679
1693
|
])) : (r(), v("div", {
|
|
1680
1694
|
key: 1,
|
|
1681
1695
|
class: "d-flex text-muted",
|
|
1682
|
-
onClick:
|
|
1683
|
-
onFocus:
|
|
1696
|
+
onClick: o,
|
|
1697
|
+
onFocus: o
|
|
1684
1698
|
}, [
|
|
1685
|
-
k(
|
|
1699
|
+
k(C.$slots, "default", {}, () => [
|
|
1686
1700
|
m("div", {
|
|
1687
1701
|
class: B(["pe-2 cursor-pointer", { "text-invalid": F.value }]),
|
|
1688
1702
|
"data-cy": "value"
|
|
1689
1703
|
}, w(u(d) ? u(d) : "Click to edit"), 3)
|
|
1690
1704
|
]),
|
|
1691
|
-
|
|
1705
|
+
h(q, {
|
|
1692
1706
|
link: "",
|
|
1693
1707
|
class: "p-0 m-0"
|
|
1694
1708
|
}, {
|
|
1695
1709
|
default: b(() => [
|
|
1696
|
-
|
|
1710
|
+
h(u(j), {
|
|
1697
1711
|
icon: "bi:pencil",
|
|
1698
1712
|
class: B(F.value ? "text-invalid" : "text-muted"),
|
|
1699
1713
|
"data-cy": "edit-icon",
|
|
1700
|
-
onKeydown: X(
|
|
1714
|
+
onKeydown: X(o, ["enter"])
|
|
1701
1715
|
}, null, 8, ["class"])
|
|
1702
1716
|
]),
|
|
1703
1717
|
_: 1
|
|
@@ -1757,7 +1771,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1757
1771
|
]
|
|
1758
1772
|
})
|
|
1759
1773
|
}));
|
|
1760
|
-
return (i, l) => (r(), f(u(Ie),
|
|
1774
|
+
return (i, l) => (r(), f(u(Ie), z({ ...t, ...i.$attrs }, {
|
|
1761
1775
|
pt: a.value,
|
|
1762
1776
|
"data-cy": "navbar"
|
|
1763
1777
|
}), ie({
|
|
@@ -1774,7 +1788,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1774
1788
|
]),
|
|
1775
1789
|
buttonicon: b(() => [
|
|
1776
1790
|
k(i.$slots, "buttonIcon", {}, () => [
|
|
1777
|
-
|
|
1791
|
+
h(u(j), {
|
|
1778
1792
|
icon: "bi:list",
|
|
1779
1793
|
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1780
1794
|
height: "24",
|
|
@@ -1784,10 +1798,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
1784
1798
|
]),
|
|
1785
1799
|
_: 2
|
|
1786
1800
|
}, [
|
|
1787
|
-
N(i.$slots, (
|
|
1788
|
-
name:
|
|
1801
|
+
N(i.$slots, (o, n) => ({
|
|
1802
|
+
name: n,
|
|
1789
1803
|
fn: b((s) => [
|
|
1790
|
-
k(i.$slots,
|
|
1804
|
+
k(i.$slots, n, J(K(s)))
|
|
1791
1805
|
])
|
|
1792
1806
|
}))
|
|
1793
1807
|
]), 1040, ["pt"]));
|
|
@@ -1816,10 +1830,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
1816
1830
|
emits: ["update:modelValue"],
|
|
1817
1831
|
setup(e) {
|
|
1818
1832
|
const t = e, a = D(e, "modelValue"), i = (l) => {
|
|
1819
|
-
a.value = a.value.filter((
|
|
1833
|
+
a.value = a.value.filter((o) => o.id !== l);
|
|
1820
1834
|
};
|
|
1821
|
-
return (l,
|
|
1822
|
-
const
|
|
1835
|
+
return (l, o) => {
|
|
1836
|
+
const n = ne, s = A;
|
|
1823
1837
|
return r(), v("div", {
|
|
1824
1838
|
class: B(l.orientation === "column" ? "row" : ""),
|
|
1825
1839
|
"data-cy": "multiselect-preview"
|
|
@@ -1828,9 +1842,9 @@ const _t = { key: 0 }, Pt = {
|
|
|
1828
1842
|
class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1829
1843
|
"data-cy": "multiselect-container"
|
|
1830
1844
|
}, [
|
|
1831
|
-
|
|
1845
|
+
h(n, z({
|
|
1832
1846
|
modelValue: a.value,
|
|
1833
|
-
"onUpdate:modelValue":
|
|
1847
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => a.value = p)
|
|
1834
1848
|
}, { ...l.$attrs }, {
|
|
1835
1849
|
options: t.options ?? [],
|
|
1836
1850
|
optionLabel: "label",
|
|
@@ -1853,7 +1867,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1853
1867
|
class: "overflow-auto"
|
|
1854
1868
|
}, [
|
|
1855
1869
|
m("div", Et, [
|
|
1856
|
-
l.title ? (r(), v("div", Lt, w(l.title), 1)) :
|
|
1870
|
+
l.title ? (r(), v("div", Lt, w(l.title), 1)) : S("", !0),
|
|
1857
1871
|
(r(!0), v(O, null, N(a.value, (p) => (r(), v("div", {
|
|
1858
1872
|
key: p.id,
|
|
1859
1873
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
@@ -1868,16 +1882,16 @@ const _t = { key: 0 }, Pt = {
|
|
|
1868
1882
|
onClick: (c) => i(p.id)
|
|
1869
1883
|
}, {
|
|
1870
1884
|
default: b(() => [
|
|
1871
|
-
|
|
1885
|
+
h(u(j), {
|
|
1872
1886
|
icon: "bi:x",
|
|
1873
1887
|
class: "close-icon",
|
|
1874
1888
|
"data-cy": `close-icon-${p.id}`
|
|
1875
1889
|
}, null, 8, ["data-cy"])
|
|
1876
1890
|
]),
|
|
1877
1891
|
_: 2
|
|
1878
|
-
}, 1032, ["onClick"])) :
|
|
1892
|
+
}, 1032, ["onClick"])) : S("", !0)
|
|
1879
1893
|
]))), 128)),
|
|
1880
|
-
a.value == null || a.value.length == 0 ? (r(), v("div", Ht, w(t.optionsPreviewEmptyText), 1)) :
|
|
1894
|
+
a.value == null || a.value.length == 0 ? (r(), v("div", Ht, w(t.optionsPreviewEmptyText), 1)) : S("", !0)
|
|
1881
1895
|
])
|
|
1882
1896
|
], 4)
|
|
1883
1897
|
], 2)
|
|
@@ -1980,7 +1994,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1980
1994
|
}),
|
|
1981
1995
|
emits: ["update:modelValue"],
|
|
1982
1996
|
setup(e) {
|
|
1983
|
-
const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange:
|
|
1997
|
+
const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: n, setValue: s } = ee(() => t.name, void 0, {
|
|
1984
1998
|
initialValue: a.value
|
|
1985
1999
|
}), p = () => {
|
|
1986
2000
|
s(null), a.value = null;
|
|
@@ -2076,31 +2090,31 @@ const _t = { key: 0 }, Pt = {
|
|
|
2076
2090
|
})
|
|
2077
2091
|
}));
|
|
2078
2092
|
return (d, F) => {
|
|
2079
|
-
const
|
|
2093
|
+
const C = _e;
|
|
2080
2094
|
return r(), v(O, null, [
|
|
2081
2095
|
m("div", Kt, [
|
|
2082
2096
|
m("span", Zt, [
|
|
2083
2097
|
k(d.$slots, "before")
|
|
2084
2098
|
]),
|
|
2085
2099
|
m("div", Xt, [
|
|
2086
|
-
|
|
2100
|
+
h(C, z({ ...t, ...d.$attrs }, {
|
|
2087
2101
|
pt: g.value,
|
|
2088
2102
|
modelValue: a.value,
|
|
2089
2103
|
"onUpdate:modelValue": [
|
|
2090
2104
|
F[0] || (F[0] = (V) => a.value = V),
|
|
2091
|
-
u(
|
|
2105
|
+
u(o)
|
|
2092
2106
|
],
|
|
2093
|
-
onBlur: F[1] || (F[1] = () => u(
|
|
2107
|
+
onBlur: F[1] || (F[1] = () => u(n)),
|
|
2094
2108
|
"input-class": { "datepicker-invalid": c.value }
|
|
2095
2109
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2096
|
-
H(
|
|
2110
|
+
H(h(u(j), {
|
|
2097
2111
|
"data-cy": "icon",
|
|
2098
2112
|
icon: "bi:calendar4",
|
|
2099
2113
|
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2100
2114
|
}, null, 8, ["class"]), [
|
|
2101
2115
|
[Y, t.showIcon]
|
|
2102
2116
|
]),
|
|
2103
|
-
H(
|
|
2117
|
+
H(h(u(j), {
|
|
2104
2118
|
"data-cy": "icon",
|
|
2105
2119
|
icon: "bi:x",
|
|
2106
2120
|
onClick: p,
|
|
@@ -2154,26 +2168,26 @@ const _t = { key: 0 }, Pt = {
|
|
|
2154
2168
|
a.value = !0, i.value.hasError = !1;
|
|
2155
2169
|
try {
|
|
2156
2170
|
await t.onSubmit();
|
|
2157
|
-
} catch (
|
|
2158
|
-
i.value.hasError = !0,
|
|
2171
|
+
} catch (o) {
|
|
2172
|
+
i.value.hasError = !0, o.message && (i.value.message = o.message);
|
|
2159
2173
|
}
|
|
2160
2174
|
a.value = !1;
|
|
2161
2175
|
}
|
|
2162
|
-
return (
|
|
2176
|
+
return (o, n) => {
|
|
2163
2177
|
const s = A;
|
|
2164
|
-
return r(), v("form",
|
|
2178
|
+
return r(), v("form", z(o.$attrs, {
|
|
2165
2179
|
novalidate: "",
|
|
2166
2180
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2167
2181
|
onSubmit: G(l, ["prevent"])
|
|
2168
2182
|
}), [
|
|
2169
|
-
|
|
2170
|
-
k(
|
|
2183
|
+
o.hideTitle ? S("", !0) : (r(), v(O, { key: 0 }, [
|
|
2184
|
+
k(o.$slots, "title", {}, () => [
|
|
2171
2185
|
m("h3", {
|
|
2172
|
-
class: B(
|
|
2186
|
+
class: B(o.titleClass),
|
|
2173
2187
|
"data-cy": "form-title"
|
|
2174
|
-
}, w(
|
|
2188
|
+
}, w(o.title), 3)
|
|
2175
2189
|
]),
|
|
2176
|
-
|
|
2190
|
+
n[1] || (n[1] = m("hr", null, null, -1))
|
|
2177
2191
|
], 64)),
|
|
2178
2192
|
i.value.hasError ? (r(), f(se, {
|
|
2179
2193
|
key: 1,
|
|
@@ -2181,40 +2195,40 @@ const _t = { key: 0 }, Pt = {
|
|
|
2181
2195
|
"data-cy": "error"
|
|
2182
2196
|
}, {
|
|
2183
2197
|
default: b(() => [
|
|
2184
|
-
k(
|
|
2198
|
+
k(o.$slots, "error", {
|
|
2185
2199
|
error: i.value.message
|
|
2186
2200
|
}, () => [
|
|
2187
2201
|
I(w(i.value.message), 1)
|
|
2188
2202
|
])
|
|
2189
2203
|
]),
|
|
2190
2204
|
_: 3
|
|
2191
|
-
})) :
|
|
2192
|
-
k(
|
|
2205
|
+
})) : S("", !0),
|
|
2206
|
+
k(o.$slots, "default"),
|
|
2193
2207
|
m("div", ea, [
|
|
2194
|
-
k(
|
|
2195
|
-
|
|
2208
|
+
k(o.$slots, "cancel", {}, () => [
|
|
2209
|
+
o.hideCancel ? S("", !0) : (r(), f(s, {
|
|
2196
2210
|
key: 0,
|
|
2197
2211
|
"data-cy": "cancel-btn",
|
|
2198
2212
|
type: "reset",
|
|
2199
2213
|
severity: "secondary",
|
|
2200
2214
|
outlined: "",
|
|
2201
|
-
onClick:
|
|
2215
|
+
onClick: n[0] || (n[0] = (p) => o.$emit("cancel"))
|
|
2202
2216
|
}, {
|
|
2203
2217
|
default: b(() => [
|
|
2204
|
-
I(w(
|
|
2218
|
+
I(w(o.cancelText), 1)
|
|
2205
2219
|
]),
|
|
2206
2220
|
_: 1
|
|
2207
2221
|
}))
|
|
2208
2222
|
]),
|
|
2209
|
-
k(
|
|
2210
|
-
|
|
2223
|
+
k(o.$slots, "submit", { submit: l }, () => [
|
|
2224
|
+
h(s, {
|
|
2211
2225
|
"data-cy": "submit-btn",
|
|
2212
2226
|
type: "submit",
|
|
2213
2227
|
severity: "primary",
|
|
2214
2228
|
class: "ms-auto"
|
|
2215
2229
|
}, {
|
|
2216
2230
|
default: b(() => [
|
|
2217
|
-
I(w(
|
|
2231
|
+
I(w(o.submitText), 1)
|
|
2218
2232
|
]),
|
|
2219
2233
|
_: 1
|
|
2220
2234
|
})
|
|
@@ -2223,7 +2237,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2223
2237
|
a.value ? (r(), f(ge, {
|
|
2224
2238
|
key: 2,
|
|
2225
2239
|
"data-cy": "loading-spinner"
|
|
2226
|
-
})) :
|
|
2240
|
+
})) : S("", !0)
|
|
2227
2241
|
], 16);
|
|
2228
2242
|
};
|
|
2229
2243
|
}
|
|
@@ -2252,21 +2266,21 @@ const _t = { key: 0 }, Pt = {
|
|
|
2252
2266
|
setup(e) {
|
|
2253
2267
|
const t = D(e, "modelValue"), a = e, i = (g) => {
|
|
2254
2268
|
a.type == "number" ? s(g.value) : s(g);
|
|
2255
|
-
}, { errors: l, value:
|
|
2269
|
+
}, { errors: l, value: o, errorMessage: n, handleChange: s, handleBlur: p } = ee(() => a.name, void 0, {
|
|
2256
2270
|
initialValue: t.value
|
|
2257
2271
|
}), c = T(() => l.value.length > 0);
|
|
2258
|
-
return ce(() =>
|
|
2272
|
+
return ce(() => o.value, (g) => {
|
|
2259
2273
|
t.value = g;
|
|
2260
2274
|
}, { immediate: !0 }), (g, d) => {
|
|
2261
|
-
const F = Ve,
|
|
2262
|
-
return a.type === "checkbox" ? (r(), f(fe,
|
|
2275
|
+
const F = Ve, C = Pe, V = oe, M = te, q = ne, y = be;
|
|
2276
|
+
return a.type === "checkbox" ? (r(), f(fe, z({
|
|
2263
2277
|
key: 0,
|
|
2264
2278
|
id: a.name,
|
|
2265
2279
|
label: a.fieldLabel
|
|
2266
2280
|
}, g.$attrs, {
|
|
2267
2281
|
name: a.name,
|
|
2268
2282
|
modelValue: t.value,
|
|
2269
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2283
|
+
"onUpdate:modelValue": d[0] || (d[0] = (x) => t.value = x)
|
|
2270
2284
|
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(), v("div", ta, [
|
|
2271
2285
|
m("div", {
|
|
2272
2286
|
"data-cy": "input-wrapper",
|
|
@@ -2277,10 +2291,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
2277
2291
|
class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2278
2292
|
}, [
|
|
2279
2293
|
I(w(a.fieldLabel) + " ", 1),
|
|
2280
|
-
g.required ? (r(), v("span", ia, "*")) :
|
|
2294
|
+
g.required ? (r(), v("span", ia, "*")) : S("", !0)
|
|
2281
2295
|
], 10, aa),
|
|
2282
2296
|
k(g.$slots, "default", J(K({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2283
|
-
a.type === "number" ? (r(), f(u(ue),
|
|
2297
|
+
a.type === "number" ? (r(), f(u(ue), z({
|
|
2284
2298
|
key: 0,
|
|
2285
2299
|
id: a.name
|
|
2286
2300
|
}, g.$attrs, {
|
|
@@ -2289,18 +2303,18 @@ const _t = { key: 0 }, Pt = {
|
|
|
2289
2303
|
class: { "is-invalid": c.value },
|
|
2290
2304
|
onInput: i,
|
|
2291
2305
|
modelValue: t.value,
|
|
2292
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
2293
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), f(F,
|
|
2306
|
+
"onUpdate:modelValue": d[1] || (d[1] = (x) => t.value = x)
|
|
2307
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), f(F, z({
|
|
2294
2308
|
key: 1,
|
|
2295
2309
|
id: a.name
|
|
2296
2310
|
}, g.$attrs, {
|
|
2297
2311
|
placeholder: a.placeholder,
|
|
2298
2312
|
class: { "is-invalid": c.value },
|
|
2299
2313
|
modelValue: t.value,
|
|
2300
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
2314
|
+
"onUpdate:modelValue": d[2] || (d[2] = (x) => t.value = x),
|
|
2301
2315
|
onInput: i,
|
|
2302
2316
|
onBlur: u(p)
|
|
2303
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), f(
|
|
2317
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), f(C, z({
|
|
2304
2318
|
key: 2,
|
|
2305
2319
|
id: a.name
|
|
2306
2320
|
}, g.$attrs, {
|
|
@@ -2308,42 +2322,42 @@ const _t = { key: 0 }, Pt = {
|
|
|
2308
2322
|
mask: a.mask,
|
|
2309
2323
|
class: { "is-invalid": c.value },
|
|
2310
2324
|
modelValue: t.value,
|
|
2311
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
2325
|
+
"onUpdate:modelValue": d[3] || (d[3] = (x) => t.value = x),
|
|
2312
2326
|
onComplete: i,
|
|
2313
2327
|
onBlur: u(p)
|
|
2314
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), f(V,
|
|
2328
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), f(V, z({
|
|
2315
2329
|
key: 3,
|
|
2316
2330
|
id: a.name
|
|
2317
2331
|
}, g.$attrs, {
|
|
2318
2332
|
placeholder: a.placeholder,
|
|
2319
2333
|
class: { "is-invalid": c.value },
|
|
2320
2334
|
modelValue: t.value,
|
|
2321
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
2335
|
+
"onUpdate:modelValue": d[4] || (d[4] = (x) => t.value = x),
|
|
2322
2336
|
onInput: i,
|
|
2323
2337
|
onBlur: u(p)
|
|
2324
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), f(M,
|
|
2338
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), f(M, z({ key: 4 }, { ...a, ...g.$attrs }, {
|
|
2325
2339
|
modelValue: t.value,
|
|
2326
|
-
"onUpdate:modelValue": d[5] || (d[5] = (
|
|
2340
|
+
"onUpdate:modelValue": d[5] || (d[5] = (x) => t.value = x),
|
|
2327
2341
|
class: { "is-invalid": c.value }
|
|
2328
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), f(q,
|
|
2342
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), f(q, z({ key: 5 }, { ...a, ...g.$attrs }, {
|
|
2329
2343
|
modelValue: t.value,
|
|
2330
|
-
"onUpdate:modelValue": d[6] || (d[6] = (
|
|
2344
|
+
"onUpdate:modelValue": d[6] || (d[6] = (x) => t.value = x),
|
|
2331
2345
|
class: { "is-invalid": c.value }
|
|
2332
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), f(Wt,
|
|
2346
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), f(Wt, z({ key: 6 }, { ...a, ...g.$attrs }, {
|
|
2333
2347
|
modelValue: t.value,
|
|
2334
|
-
"onUpdate:modelValue": d[7] || (d[7] = (
|
|
2348
|
+
"onUpdate:modelValue": d[7] || (d[7] = (x) => t.value = x),
|
|
2335
2349
|
class: { "is-invalid": c.value }
|
|
2336
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), f(y,
|
|
2350
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), f(y, z({ key: 7 }, { ...a, ...g.$attrs }, {
|
|
2337
2351
|
modelValue: t.value,
|
|
2338
|
-
"onUpdate:modelValue": d[8] || (d[8] = (
|
|
2352
|
+
"onUpdate:modelValue": d[8] || (d[8] = (x) => t.value = x),
|
|
2339
2353
|
class: { "is-invalid": c.value }
|
|
2340
|
-
}), null, 16, ["modelValue", "class"])) :
|
|
2354
|
+
}), null, 16, ["modelValue", "class"])) : S("", !0)
|
|
2341
2355
|
])
|
|
2342
2356
|
], 2),
|
|
2343
2357
|
H(m("small", {
|
|
2344
2358
|
"data-cy": "error",
|
|
2345
2359
|
class: "invalid-feedback"
|
|
2346
|
-
}, w(u(
|
|
2360
|
+
}, w(u(n)), 513), [
|
|
2347
2361
|
[Y, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2348
2362
|
])
|
|
2349
2363
|
]));
|
|
@@ -2383,10 +2397,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
2383
2397
|
]
|
|
2384
2398
|
}));
|
|
2385
2399
|
return (i, l) => {
|
|
2386
|
-
const
|
|
2387
|
-
return r(), f(
|
|
2400
|
+
const o = Me;
|
|
2401
|
+
return r(), f(o, z({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2388
2402
|
default: b(() => [
|
|
2389
|
-
(r(!0), v(O, null, N(i.$slots, (
|
|
2403
|
+
(r(!0), v(O, null, N(i.$slots, (n, s) => k(i.$slots, s, { slot: s })), 256))
|
|
2390
2404
|
]),
|
|
2391
2405
|
_: 3
|
|
2392
2406
|
}, 16, ["pt"]);
|
|
@@ -2427,7 +2441,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2427
2441
|
default:
|
|
2428
2442
|
return "bg-primary";
|
|
2429
2443
|
}
|
|
2430
|
-
}),
|
|
2444
|
+
}), o = T(() => ({
|
|
2431
2445
|
root: {
|
|
2432
2446
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2433
2447
|
},
|
|
@@ -2435,18 +2449,18 @@ const _t = { key: 0 }, Pt = {
|
|
|
2435
2449
|
class: [l.value, a.value, i.value, "progress-bar"]
|
|
2436
2450
|
}
|
|
2437
2451
|
}));
|
|
2438
|
-
return (
|
|
2452
|
+
return (n, s) => {
|
|
2439
2453
|
const p = De;
|
|
2440
|
-
return r(), f(p,
|
|
2454
|
+
return r(), f(p, z({ ...n.$attrs, ...t }, { pt: o.value }), {
|
|
2441
2455
|
default: b(() => [
|
|
2442
|
-
k(
|
|
2456
|
+
k(n.$slots, "default")
|
|
2443
2457
|
]),
|
|
2444
2458
|
_: 3
|
|
2445
2459
|
}, 16, ["pt"]);
|
|
2446
2460
|
};
|
|
2447
2461
|
}
|
|
2448
2462
|
});
|
|
2449
|
-
var
|
|
2463
|
+
var oa = /* @__PURE__ */ $({
|
|
2450
2464
|
name: "VueDrawingCanvas",
|
|
2451
2465
|
props: {
|
|
2452
2466
|
strokeType: {
|
|
@@ -2757,15 +2771,15 @@ var na = /* @__PURE__ */ $({
|
|
|
2757
2771
|
e && this.save();
|
|
2758
2772
|
});
|
|
2759
2773
|
},
|
|
2760
|
-
wrapText(e, t, a, i, l,
|
|
2761
|
-
const
|
|
2762
|
-
var p = t.split(
|
|
2774
|
+
wrapText(e, t, a, i, l, o) {
|
|
2775
|
+
const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2776
|
+
var p = t.split(n).filter((M) => M.length > 0);
|
|
2763
2777
|
for (let M = 0; M < p.length; M++) {
|
|
2764
2778
|
for (var c = p[M].split(s).filter((q) => q.length > 0), g = "", d = 0; d < c.length; d++) {
|
|
2765
|
-
var F = g + c[d] + " ",
|
|
2766
|
-
V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), g = c[d] + " ", i +=
|
|
2779
|
+
var F = g + c[d] + " ", C = e.measureText(F), V = C.width;
|
|
2780
|
+
V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), g = c[d] + " ", i += o) : g = F;
|
|
2767
2781
|
}
|
|
2768
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), i += c.length > 0 ?
|
|
2782
|
+
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), i += c.length > 0 ? o : 0;
|
|
2769
2783
|
}
|
|
2770
2784
|
},
|
|
2771
2785
|
save() {
|
|
@@ -2782,20 +2796,20 @@ var na = /* @__PURE__ */ $({
|
|
|
2782
2796
|
drawWatermark(e, t, a) {
|
|
2783
2797
|
if (a.type === "Image") {
|
|
2784
2798
|
let i = a.imageStyle ? a.imageStyle.width ? a.imageStyle.width : Number(this.width) : Number(this.width), l = a.imageStyle ? a.imageStyle.height ? a.imageStyle.height : Number(this.height) : Number(this.height);
|
|
2785
|
-
const
|
|
2786
|
-
|
|
2787
|
-
a && t && t.drawImage(
|
|
2788
|
-
let
|
|
2789
|
-
if (
|
|
2790
|
-
return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image",
|
|
2799
|
+
const o = new Image();
|
|
2800
|
+
o.src = a.source, o.onload = () => {
|
|
2801
|
+
a && t && t.drawImage(o, a.x, a.y, Number(i), Number(l));
|
|
2802
|
+
let n = document.createElement("canvas"), s = n.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, c = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2803
|
+
if (n.width = Number(p), n.height = Number(c), s)
|
|
2804
|
+
return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image", n.toDataURL("image/" + this.saveAs, 1)), n.toDataURL("image/" + this.saveAs, 1);
|
|
2791
2805
|
};
|
|
2792
2806
|
} else if (a.type === "Text") {
|
|
2793
|
-
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start",
|
|
2794
|
-
if (t.font = i, t.textAlign = l, t.textBaseline =
|
|
2807
|
+
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", o = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", n = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
|
|
2808
|
+
if (t.font = i, t.textAlign = l, t.textBaseline = o, a.fontStyle && a.fontStyle.rotate) {
|
|
2795
2809
|
let d, F;
|
|
2796
2810
|
a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ? F = a.y + Math.floor(a.fontStyle.lineHeight / 2) : F = a.y, t.translate(d, F), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(d * -1, F * -1);
|
|
2797
2811
|
}
|
|
2798
|
-
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 =
|
|
2812
|
+
a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = n, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
|
|
2799
2813
|
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, g = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2800
2814
|
if (s.width = Number(c), s.height = Number(g), p)
|
|
2801
2815
|
return p.drawImage(e, 0, 0, Number(c), Number(g)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
|
|
@@ -2836,7 +2850,7 @@ var na = /* @__PURE__ */ $({
|
|
|
2836
2850
|
});
|
|
2837
2851
|
}
|
|
2838
2852
|
});
|
|
2839
|
-
const
|
|
2853
|
+
const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1 gap-1" }, Zi = /* @__PURE__ */ $({
|
|
2840
2854
|
__name: "ForgeScratchpad",
|
|
2841
2855
|
props: {
|
|
2842
2856
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2849,7 +2863,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2849
2863
|
},
|
|
2850
2864
|
emits: ["save"],
|
|
2851
2865
|
setup(e, { emit: t }) {
|
|
2852
|
-
const a = e, i = t, l = Fe("drawingCanvas"),
|
|
2866
|
+
const a = e, i = t, l = Fe("drawingCanvas"), o = _(), n = () => {
|
|
2853
2867
|
l == null || l.value.reset();
|
|
2854
2868
|
}, s = () => {
|
|
2855
2869
|
l == null || l.value.redo();
|
|
@@ -2860,12 +2874,12 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2860
2874
|
};
|
|
2861
2875
|
return (g, d) => {
|
|
2862
2876
|
const F = A;
|
|
2863
|
-
return r(), v("div",
|
|
2864
|
-
|
|
2877
|
+
return r(), v("div", na, [
|
|
2878
|
+
h(u(oa), z({
|
|
2865
2879
|
ref_key: "drawingCanvas",
|
|
2866
2880
|
ref: l,
|
|
2867
|
-
image:
|
|
2868
|
-
"onUpdate:image": d[0] || (d[0] = (
|
|
2881
|
+
image: o.value,
|
|
2882
|
+
"onUpdate:image": d[0] || (d[0] = (C) => o.value = C),
|
|
2869
2883
|
"data-cy": "drawing-canvas",
|
|
2870
2884
|
class: "border canvas"
|
|
2871
2885
|
}, { ...g.$attrs }, {
|
|
@@ -2885,7 +2899,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2885
2899
|
I("Undo")
|
|
2886
2900
|
])),
|
|
2887
2901
|
_: 1
|
|
2888
|
-
})) :
|
|
2902
|
+
})) : S("", !0),
|
|
2889
2903
|
a.showRedo ? (r(), f(F, {
|
|
2890
2904
|
key: 1,
|
|
2891
2905
|
onClick: s,
|
|
@@ -2896,10 +2910,10 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2896
2910
|
I("Redo")
|
|
2897
2911
|
])),
|
|
2898
2912
|
_: 1
|
|
2899
|
-
})) :
|
|
2913
|
+
})) : S("", !0),
|
|
2900
2914
|
a.showClear ? (r(), f(F, {
|
|
2901
2915
|
key: 2,
|
|
2902
|
-
onClick:
|
|
2916
|
+
onClick: n,
|
|
2903
2917
|
outlined: "",
|
|
2904
2918
|
"data-cy": "clear-button"
|
|
2905
2919
|
}, {
|
|
@@ -2907,7 +2921,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2907
2921
|
I("Clear")
|
|
2908
2922
|
])),
|
|
2909
2923
|
_: 1
|
|
2910
|
-
})) :
|
|
2924
|
+
})) : S("", !0),
|
|
2911
2925
|
a.showSave ? (r(), f(F, {
|
|
2912
2926
|
key: 3,
|
|
2913
2927
|
onClick: c,
|
|
@@ -2918,7 +2932,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2918
2932
|
I("Save")
|
|
2919
2933
|
])),
|
|
2920
2934
|
_: 1
|
|
2921
|
-
})) :
|
|
2935
|
+
})) : S("", !0)
|
|
2922
2936
|
])
|
|
2923
2937
|
]);
|
|
2924
2938
|
};
|
|
@@ -2931,7 +2945,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2931
2945
|
},
|
|
2932
2946
|
setup(e) {
|
|
2933
2947
|
const t = e;
|
|
2934
|
-
return (a, i) => (r(), v("div",
|
|
2948
|
+
return (a, i) => (r(), v("div", z(a.$attrs, {
|
|
2935
2949
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2936
2950
|
}), [
|
|
2937
2951
|
m("span", ra, [
|
|
@@ -2988,30 +3002,30 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2988
3002
|
}));
|
|
2989
3003
|
return (i, l) => (r(), f(u(Ne), { value: i.currentStep }, {
|
|
2990
3004
|
default: b(() => [
|
|
2991
|
-
|
|
3005
|
+
h(u(Ue), null, {
|
|
2992
3006
|
default: b(() => [
|
|
2993
|
-
(r(!0), v(O, null, N(i.steps, (
|
|
2994
|
-
key:
|
|
2995
|
-
value:
|
|
2996
|
-
disabled:
|
|
3007
|
+
(r(!0), v(O, null, N(i.steps, (o) => (r(), f(u(Oe), z({
|
|
3008
|
+
key: o.value,
|
|
3009
|
+
value: o.value,
|
|
3010
|
+
disabled: o.disabled,
|
|
2997
3011
|
ref_for: !0
|
|
2998
3012
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
2999
3013
|
default: b(() => [
|
|
3000
|
-
i.showStepLabel ? (r(), v("div", da, w(
|
|
3014
|
+
i.showStepLabel ? (r(), v("div", da, w(o.label), 1)) : S("", !0)
|
|
3001
3015
|
]),
|
|
3002
3016
|
_: 2
|
|
3003
3017
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
3004
3018
|
]),
|
|
3005
3019
|
_: 1
|
|
3006
3020
|
}),
|
|
3007
|
-
|
|
3021
|
+
h(u(qe), null, {
|
|
3008
3022
|
default: b(() => [
|
|
3009
|
-
(r(!0), v(O, null, N(i.steps, (
|
|
3010
|
-
key:
|
|
3011
|
-
value:
|
|
3023
|
+
(r(!0), v(O, null, N(i.steps, (o) => (r(), f(u(Ae), {
|
|
3024
|
+
key: o.value,
|
|
3025
|
+
value: o.value
|
|
3012
3026
|
}, {
|
|
3013
3027
|
default: b(() => [
|
|
3014
|
-
k(i.$slots, "step" +
|
|
3028
|
+
k(i.$slots, "step" + o.value)
|
|
3015
3029
|
]),
|
|
3016
3030
|
_: 2
|
|
3017
3031
|
}, 1032, ["value"]))), 128))
|
|
@@ -3032,9 +3046,9 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3032
3046
|
},
|
|
3033
3047
|
setup(e) {
|
|
3034
3048
|
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" : ""}`);
|
|
3035
|
-
return (l,
|
|
3036
|
-
const
|
|
3037
|
-
return t.clickable ? (r(), f(
|
|
3049
|
+
return (l, o) => {
|
|
3050
|
+
const n = A;
|
|
3051
|
+
return t.clickable ? (r(), f(n, {
|
|
3038
3052
|
key: 0,
|
|
3039
3053
|
class: B(["d-flex w-100 p-0 text-body", a.value]),
|
|
3040
3054
|
severity: t.severity,
|
|
@@ -3044,7 +3058,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3044
3058
|
default: b(() => [
|
|
3045
3059
|
m("div", pa, [
|
|
3046
3060
|
k(l.$slots, "default", {}, () => [
|
|
3047
|
-
|
|
3061
|
+
o[0] || (o[0] = I("Tile Content"))
|
|
3048
3062
|
])
|
|
3049
3063
|
])
|
|
3050
3064
|
]),
|
|
@@ -3056,7 +3070,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3056
3070
|
}, [
|
|
3057
3071
|
m("div", ca, [
|
|
3058
3072
|
k(l.$slots, "default", {}, () => [
|
|
3059
|
-
|
|
3073
|
+
o[1] || (o[1] = I("Tile Content"))
|
|
3060
3074
|
])
|
|
3061
3075
|
])
|
|
3062
3076
|
], 2));
|
|
@@ -3081,16 +3095,16 @@ const ua = {
|
|
|
3081
3095
|
},
|
|
3082
3096
|
emits: ["update:perPage"],
|
|
3083
3097
|
setup(e, { emit: t }) {
|
|
3084
|
-
const a = t, i = e, l = (
|
|
3085
|
-
a("update:perPage",
|
|
3086
|
-
},
|
|
3087
|
-
const
|
|
3088
|
-
return `${
|
|
3098
|
+
const a = t, i = e, l = (n) => {
|
|
3099
|
+
a("update:perPage", n.value);
|
|
3100
|
+
}, o = T(() => {
|
|
3101
|
+
const n = Math.ceil(i.total / i.perPage);
|
|
3102
|
+
return `${n} ${Q(n, "page")}`;
|
|
3089
3103
|
});
|
|
3090
|
-
return (
|
|
3104
|
+
return (n, s) => (r(), v("div", ua, [
|
|
3091
3105
|
s[2] || (s[2] = I(" Number of results per page ")),
|
|
3092
3106
|
m("div", ma, [
|
|
3093
|
-
|
|
3107
|
+
h(u(te), {
|
|
3094
3108
|
options: i.pageSizes,
|
|
3095
3109
|
"model-value": i.perPage,
|
|
3096
3110
|
class: "page-size",
|
|
@@ -3099,8 +3113,8 @@ const ua = {
|
|
|
3099
3113
|
]),
|
|
3100
3114
|
i.total ? (r(), v("div", va, [
|
|
3101
3115
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3102
|
-
m("span", fa, w(i.total) + " " + w(u(Q)(i.total, "result")) + " across " + w(
|
|
3103
|
-
])) :
|
|
3116
|
+
m("span", fa, w(i.total) + " " + w(u(Q)(i.total, "result")) + " across " + w(o.value), 1)
|
|
3117
|
+
])) : S("", !0)
|
|
3104
3118
|
]));
|
|
3105
3119
|
}
|
|
3106
3120
|
}), ba = { class: "position-relative" }, ya = { "data-cy": "above-table-slot" }, xa = { class: "d-flex w-100" }, ha = {
|
|
@@ -3192,15 +3206,15 @@ const ua = {
|
|
|
3192
3206
|
},
|
|
3193
3207
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3194
3208
|
setup(e, { emit: t }) {
|
|
3195
|
-
const a = t, i = e, l = _(),
|
|
3209
|
+
const a = t, i = e, l = _(), o = _([5, 10, 20, 50, 100]), n = _(10), s = _({
|
|
3196
3210
|
filters: i.filters,
|
|
3197
|
-
perPage:
|
|
3211
|
+
perPage: n.value,
|
|
3198
3212
|
page: 0,
|
|
3199
3213
|
sortDirection: "None",
|
|
3200
3214
|
sortField: "",
|
|
3201
3215
|
total: i.totalRecords ?? i.value.length
|
|
3202
3216
|
}), p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
|
|
3203
|
-
const y = Math.ceil(p.value /
|
|
3217
|
+
const y = Math.ceil(p.value / n.value);
|
|
3204
3218
|
return `${y} ${Q(y, "page")}`;
|
|
3205
3219
|
}), g = T(() => ({
|
|
3206
3220
|
thead: () => ({
|
|
@@ -3233,34 +3247,34 @@ const ua = {
|
|
|
3233
3247
|
V(i.filters);
|
|
3234
3248
|
}, F = () => {
|
|
3235
3249
|
l.value.exportCSV();
|
|
3236
|
-
},
|
|
3237
|
-
var
|
|
3238
|
-
s.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((
|
|
3250
|
+
}, C = (y) => {
|
|
3251
|
+
var x;
|
|
3252
|
+
s.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((x = y.sortField) == null ? void 0 : x.toString()) ?? "", a("update:tableContext", s.value), a("sort", y);
|
|
3239
3253
|
}, V = (y) => {
|
|
3240
3254
|
s.value.filters = y, a("update:tableContext", s.value), a("update:filters", y);
|
|
3241
3255
|
}, M = (y) => {
|
|
3242
3256
|
s.value.page = y.page, a("update:tableContext", s.value), a("page", y);
|
|
3243
3257
|
}, q = () => {
|
|
3244
|
-
s.value.perPage =
|
|
3258
|
+
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3245
3259
|
};
|
|
3246
3260
|
return ce(() => i.filters, (y) => {
|
|
3247
3261
|
s.value.filters = y, a("update:tableContext", s.value);
|
|
3248
|
-
}, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y,
|
|
3262
|
+
}, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y, x) => (r(), v("div", ba, [
|
|
3249
3263
|
m("span", ya, [
|
|
3250
3264
|
k(y.$slots, "above-table")
|
|
3251
3265
|
]),
|
|
3252
|
-
|
|
3266
|
+
h(u(Ee), z({
|
|
3253
3267
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3254
3268
|
}, { ...i, ...y.$attrs }, {
|
|
3255
3269
|
pt: g.value,
|
|
3256
|
-
rows:
|
|
3270
|
+
rows: n.value,
|
|
3257
3271
|
"total-records": p.value,
|
|
3258
3272
|
"filter-display": i.filters ? "row" : void 0,
|
|
3259
3273
|
ref_key: "forgeTable",
|
|
3260
3274
|
ref: l,
|
|
3261
3275
|
"data-cy": "table",
|
|
3262
3276
|
"onUpdate:filters": V,
|
|
3263
|
-
onSort:
|
|
3277
|
+
onSort: C,
|
|
3264
3278
|
onPage: M,
|
|
3265
3279
|
showHeaders: ""
|
|
3266
3280
|
}), ie({
|
|
@@ -3276,16 +3290,16 @@ const ua = {
|
|
|
3276
3290
|
m("div", wa, [
|
|
3277
3291
|
m("div", ka, [
|
|
3278
3292
|
y.paginator && !y.legacyPaginationFooter ? (r(), v("span", $a, [
|
|
3279
|
-
|
|
3293
|
+
h(ga, {
|
|
3280
3294
|
total: p.value,
|
|
3281
|
-
"page-sizes":
|
|
3282
|
-
"per-page":
|
|
3295
|
+
"page-sizes": o.value,
|
|
3296
|
+
"per-page": n.value,
|
|
3283
3297
|
"onUpdate:perPage": [
|
|
3284
|
-
|
|
3298
|
+
x[0] || (x[0] = (P) => n.value = P),
|
|
3285
3299
|
q
|
|
3286
3300
|
]
|
|
3287
3301
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3288
|
-
])) :
|
|
3302
|
+
])) : S("", !0)
|
|
3289
3303
|
]),
|
|
3290
3304
|
m("div", Fa, [
|
|
3291
3305
|
y.showClearButton ? (r(), f(u(A), {
|
|
@@ -3296,15 +3310,15 @@ const ua = {
|
|
|
3296
3310
|
"data-cy": "clear-all"
|
|
3297
3311
|
}, {
|
|
3298
3312
|
default: b(() => [
|
|
3299
|
-
|
|
3313
|
+
h(u(j), {
|
|
3300
3314
|
icon: "bi:funnel-fill",
|
|
3301
3315
|
width: "24",
|
|
3302
3316
|
height: "24"
|
|
3303
3317
|
}),
|
|
3304
|
-
|
|
3318
|
+
x[2] || (x[2] = I(" Clear "))
|
|
3305
3319
|
]),
|
|
3306
3320
|
_: 1
|
|
3307
|
-
}, 8, ["class"])) :
|
|
3321
|
+
}, 8, ["class"])) : S("", !0),
|
|
3308
3322
|
y.showExporterButton ? (r(), f(u(A), {
|
|
3309
3323
|
key: 1,
|
|
3310
3324
|
outlined: "",
|
|
@@ -3312,15 +3326,15 @@ const ua = {
|
|
|
3312
3326
|
"data-cy": "exporter"
|
|
3313
3327
|
}, {
|
|
3314
3328
|
default: b(() => [
|
|
3315
|
-
|
|
3329
|
+
h(u(j), {
|
|
3316
3330
|
icon: "typcn:export",
|
|
3317
3331
|
width: "24",
|
|
3318
3332
|
height: "24"
|
|
3319
3333
|
}),
|
|
3320
|
-
|
|
3334
|
+
x[3] || (x[3] = I(" Export "))
|
|
3321
3335
|
]),
|
|
3322
3336
|
_: 1
|
|
3323
|
-
})) :
|
|
3337
|
+
})) : S("", !0),
|
|
3324
3338
|
k(y.$slots, "column-customiser")
|
|
3325
3339
|
])
|
|
3326
3340
|
])
|
|
@@ -3344,11 +3358,11 @@ const ua = {
|
|
|
3344
3358
|
class: B(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3345
3359
|
"data-cy": "legacy-page-size"
|
|
3346
3360
|
}, [
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
options:
|
|
3350
|
-
modelValue:
|
|
3351
|
-
"onUpdate:modelValue":
|
|
3361
|
+
x[4] || (x[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3362
|
+
h(u(te), {
|
|
3363
|
+
options: o.value,
|
|
3364
|
+
modelValue: n.value,
|
|
3365
|
+
"onUpdate:modelValue": x[1] || (x[1] = (P) => n.value = P),
|
|
3352
3366
|
class: "ms-2",
|
|
3353
3367
|
onClick: q
|
|
3354
3368
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -3384,39 +3398,39 @@ const ua = {
|
|
|
3384
3398
|
}),
|
|
3385
3399
|
emits: ["update:modelValue"],
|
|
3386
3400
|
setup(e) {
|
|
3387
|
-
const t = D(e, "modelValue"), a = (l,
|
|
3401
|
+
const t = D(e, "modelValue"), a = (l, o) => {
|
|
3388
3402
|
if (!l || Array.isArray(l) && l.length === 0)
|
|
3389
|
-
return
|
|
3390
|
-
const
|
|
3403
|
+
return o;
|
|
3404
|
+
const n = (s) => {
|
|
3391
3405
|
var c;
|
|
3392
3406
|
const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
|
|
3393
3407
|
(g) => e.optionValue ? g[e.optionValue] === s : Object.keys(g).every((d) => s.hasOwnProperty(d) && g[d] === s[d])
|
|
3394
3408
|
);
|
|
3395
3409
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3396
3410
|
};
|
|
3397
|
-
return Array.isArray(l) ? l.map(
|
|
3411
|
+
return Array.isArray(l) ? l.map(n).join(", ") : n(l);
|
|
3398
3412
|
}, i = () => {
|
|
3399
3413
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3400
3414
|
};
|
|
3401
|
-
return (l,
|
|
3402
|
-
const
|
|
3415
|
+
return (l, o) => {
|
|
3416
|
+
const n = ue, s = A;
|
|
3403
3417
|
return r(), v("div", Ba, [
|
|
3404
|
-
l.dataType === "numeric" ? (r(), f(
|
|
3418
|
+
l.dataType === "numeric" ? (r(), f(n, z({
|
|
3405
3419
|
key: 0,
|
|
3406
3420
|
modelValue: t.value,
|
|
3407
|
-
"onUpdate:modelValue":
|
|
3421
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => t.value = p),
|
|
3408
3422
|
modelModifiers: { trim: !0 }
|
|
3409
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), f(be,
|
|
3423
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), f(be, z({
|
|
3410
3424
|
key: 1,
|
|
3411
3425
|
modelValue: t.value,
|
|
3412
|
-
"onUpdate:modelValue":
|
|
3426
|
+
"onUpdate:modelValue": o[1] || (o[1] = (p) => t.value = p)
|
|
3413
3427
|
}, l.$attrs, {
|
|
3414
3428
|
"show-icon": !1,
|
|
3415
3429
|
"show-on-focus": !0
|
|
3416
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), f(u(te),
|
|
3430
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), f(u(te), z({
|
|
3417
3431
|
key: 2,
|
|
3418
3432
|
modelValue: t.value,
|
|
3419
|
-
"onUpdate:modelValue":
|
|
3433
|
+
"onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p)
|
|
3420
3434
|
}, l.$attrs, {
|
|
3421
3435
|
options: l.dropdownOptions,
|
|
3422
3436
|
"option-value": l.optionValue,
|
|
@@ -3434,7 +3448,7 @@ const ua = {
|
|
|
3434
3448
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3435
3449
|
}, {
|
|
3436
3450
|
default: b(() => [
|
|
3437
|
-
|
|
3451
|
+
h(u(j), {
|
|
3438
3452
|
icon: "bi:x",
|
|
3439
3453
|
width: "1rem",
|
|
3440
3454
|
height: "1rem",
|
|
@@ -3442,24 +3456,24 @@ const ua = {
|
|
|
3442
3456
|
})
|
|
3443
3457
|
]),
|
|
3444
3458
|
_: 1
|
|
3445
|
-
})) :
|
|
3459
|
+
})) : S("", !0)
|
|
3446
3460
|
])
|
|
3447
3461
|
]),
|
|
3448
3462
|
_: 1
|
|
3449
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), f(u(
|
|
3463
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), f(u(ne), z({
|
|
3450
3464
|
key: 3,
|
|
3451
3465
|
modelValue: t.value,
|
|
3452
|
-
"onUpdate:modelValue":
|
|
3466
|
+
"onUpdate:modelValue": o[3] || (o[3] = (p) => t.value = p)
|
|
3453
3467
|
}, l.$attrs, {
|
|
3454
3468
|
options: l.dropdownOptions,
|
|
3455
3469
|
showToggleAll: !1,
|
|
3456
3470
|
"option-label": l.optionLabel,
|
|
3457
3471
|
"option-value": l.optionValue,
|
|
3458
3472
|
filter: ""
|
|
3459
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), f(u(
|
|
3473
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), f(u(oe), z({
|
|
3460
3474
|
key: 4,
|
|
3461
3475
|
modelValue: t.value,
|
|
3462
|
-
"onUpdate:modelValue":
|
|
3476
|
+
"onUpdate:modelValue": o[4] || (o[4] = (p) => t.value = p),
|
|
3463
3477
|
modelModifiers: { trim: !0 }
|
|
3464
3478
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3465
3479
|
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(), f(s, {
|
|
@@ -3469,7 +3483,7 @@ const ua = {
|
|
|
3469
3483
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3470
3484
|
}, {
|
|
3471
3485
|
default: b(() => [
|
|
3472
|
-
|
|
3486
|
+
h(u(j), {
|
|
3473
3487
|
icon: "bi:x",
|
|
3474
3488
|
width: "1rem",
|
|
3475
3489
|
height: "1rem",
|
|
@@ -3477,7 +3491,7 @@ const ua = {
|
|
|
3477
3491
|
})
|
|
3478
3492
|
]),
|
|
3479
3493
|
_: 1
|
|
3480
|
-
})) :
|
|
3494
|
+
})) : S("", !0)
|
|
3481
3495
|
]);
|
|
3482
3496
|
};
|
|
3483
3497
|
}
|
|
@@ -4548,11 +4562,11 @@ class ye {
|
|
|
4548
4562
|
define(t, a = !1) {
|
|
4549
4563
|
for (let [i, l] of Object.entries(t)) {
|
|
4550
4564
|
i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), E(this, R, "f").has(i) || E(this, R, "f").set(i, /* @__PURE__ */ new Set());
|
|
4551
|
-
const
|
|
4552
|
-
let
|
|
4565
|
+
const o = E(this, R, "f").get(i);
|
|
4566
|
+
let n = !0;
|
|
4553
4567
|
for (let s of l) {
|
|
4554
4568
|
const p = s.startsWith("*");
|
|
4555
|
-
if (s = p ? s.slice(1) : s,
|
|
4569
|
+
if (s = p ? s.slice(1) : s, o == null || o.add(s), n && E(this, Z, "f").set(i, s), n = !1, p)
|
|
4556
4570
|
continue;
|
|
4557
4571
|
const c = E(this, W, "f").get(s);
|
|
4558
4572
|
if (c && c != i && !a)
|
|
@@ -4593,15 +4607,15 @@ class ye {
|
|
|
4593
4607
|
W = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
|
|
4594
4608
|
const Ca = new ye(de, re)._freeze();
|
|
4595
4609
|
function xe(e, t, a, i) {
|
|
4596
|
-
const l = t.flatMap((
|
|
4597
|
-
return t = t.map((
|
|
4598
|
-
const
|
|
4610
|
+
const l = t.flatMap((o) => o.file);
|
|
4611
|
+
return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
|
|
4612
|
+
const n = l.findIndex((p) => p.name === o.name);
|
|
4599
4613
|
let s = "Not Uploaded";
|
|
4600
|
-
|
|
4601
|
-
file:
|
|
4614
|
+
n === -1 ? ((!a.includes(o.type) || !(o.size <= i)) && (s = a.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
4615
|
+
file: o,
|
|
4602
4616
|
status: s,
|
|
4603
4617
|
blobFileName: null
|
|
4604
|
-
})) : t[
|
|
4618
|
+
})) : t[n].status = "Duplicate";
|
|
4605
4619
|
}), t;
|
|
4606
4620
|
}
|
|
4607
4621
|
async function za(e, t) {
|
|
@@ -4620,12 +4634,12 @@ function pe(e, t = !0, a = 1) {
|
|
|
4620
4634
|
if (Math.abs(e) < i)
|
|
4621
4635
|
return e + " B";
|
|
4622
4636
|
const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
4623
|
-
let
|
|
4624
|
-
const
|
|
4637
|
+
let o = -1;
|
|
4638
|
+
const n = 10 ** a;
|
|
4625
4639
|
do
|
|
4626
|
-
e /= i, ++
|
|
4627
|
-
while (Math.round(Math.abs(e) *
|
|
4628
|
-
return e.toFixed(a) + " " + l[
|
|
4640
|
+
e /= i, ++o;
|
|
4641
|
+
while (Math.round(Math.abs(e) * n) / n >= i && o < l.length - 1);
|
|
4642
|
+
return e.toFixed(a) + " " + l[o];
|
|
4629
4643
|
}
|
|
4630
4644
|
function Ta(e) {
|
|
4631
4645
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
@@ -4652,30 +4666,30 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4652
4666
|
}),
|
|
4653
4667
|
emits: ["update:modelValue"],
|
|
4654
4668
|
setup(e) {
|
|
4655
|
-
const t = D(e, "modelValue"), a = _(), i = (
|
|
4656
|
-
t.value = xe(
|
|
4669
|
+
const t = D(e, "modelValue"), a = _(), i = (n) => a.value.toggle(n), l = T(() => e.maxFileInput <= t.value.length), o = (n) => {
|
|
4670
|
+
t.value = xe(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
4657
4671
|
};
|
|
4658
|
-
return (
|
|
4672
|
+
return (n, s) => {
|
|
4659
4673
|
const p = A;
|
|
4660
4674
|
return r(), v("div", _a, [
|
|
4661
|
-
k(
|
|
4675
|
+
k(n.$slots, "message"),
|
|
4662
4676
|
m("div", null, [
|
|
4663
4677
|
m("input", {
|
|
4664
4678
|
id: "file-input",
|
|
4665
4679
|
type: "file",
|
|
4666
4680
|
class: "d-none",
|
|
4667
|
-
accept:
|
|
4681
|
+
accept: n.acceptedFileTypes.join(", "),
|
|
4668
4682
|
disabled: l.value,
|
|
4669
|
-
multiple:
|
|
4670
|
-
onInput: s[0] || (s[0] = (c) =>
|
|
4683
|
+
multiple: n.maxFileInput > 1,
|
|
4684
|
+
onInput: s[0] || (s[0] = (c) => o([...c.target.files]))
|
|
4671
4685
|
}, null, 40, Pa),
|
|
4672
4686
|
m("label", {
|
|
4673
4687
|
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
4674
4688
|
id: "file-input-button",
|
|
4675
4689
|
for: "file-input"
|
|
4676
4690
|
}, [
|
|
4677
|
-
k(
|
|
4678
|
-
|
|
4691
|
+
k(n.$slots, "button-content", {}, () => [
|
|
4692
|
+
h(u(j), {
|
|
4679
4693
|
icon: "bi:upload",
|
|
4680
4694
|
class: "me-2",
|
|
4681
4695
|
height: "20px",
|
|
@@ -4685,10 +4699,10 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4685
4699
|
])
|
|
4686
4700
|
], 2)
|
|
4687
4701
|
]),
|
|
4688
|
-
|
|
4702
|
+
n.showDragDropArea ? (r(), f(p, {
|
|
4689
4703
|
link: "",
|
|
4690
4704
|
class: "ms-auto",
|
|
4691
|
-
key:
|
|
4705
|
+
key: n.acceptedFileTypes.length,
|
|
4692
4706
|
id: "accepted-file-types",
|
|
4693
4707
|
onClick: i
|
|
4694
4708
|
}, {
|
|
@@ -4696,13 +4710,13 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4696
4710
|
I("Accepted File Types")
|
|
4697
4711
|
])),
|
|
4698
4712
|
_: 1
|
|
4699
|
-
})) :
|
|
4700
|
-
|
|
4713
|
+
})) : S("", !0),
|
|
4714
|
+
h(u(ve), {
|
|
4701
4715
|
ref_key: "acceptedFilesOverlay",
|
|
4702
4716
|
ref: a
|
|
4703
4717
|
}, {
|
|
4704
4718
|
default: b(() => [
|
|
4705
|
-
m("div", Va, w(
|
|
4719
|
+
m("div", Va, w(n.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
4706
4720
|
]),
|
|
4707
4721
|
_: 1
|
|
4708
4722
|
}, 512)
|
|
@@ -4728,26 +4742,26 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4728
4742
|
}),
|
|
4729
4743
|
emits: ["update:modelValue"],
|
|
4730
4744
|
setup(e) {
|
|
4731
|
-
const t = D(e, "modelValue"), a = _(!1), i = T(() => e.maxFileInput <= t.value.length), l = (
|
|
4732
|
-
a.value = !1,
|
|
4745
|
+
const t = D(e, "modelValue"), a = _(!1), i = T(() => e.maxFileInput <= t.value.length), l = (o) => {
|
|
4746
|
+
a.value = !1, o.dataTransfer.files.length > e.maxFileInput || i.value ? o.preventDefault() : t.value = xe([...o.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
|
|
4733
4747
|
};
|
|
4734
|
-
return (
|
|
4748
|
+
return (o, n) => (r(), v("div", {
|
|
4735
4749
|
id: "drag-drop-area",
|
|
4736
4750
|
class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
4737
|
-
onDragleave:
|
|
4738
|
-
onDragover:
|
|
4751
|
+
onDragleave: n[0] || (n[0] = G((s) => a.value = !1, ["prevent"])),
|
|
4752
|
+
onDragover: n[1] || (n[1] = G((s) => a.value = !0, ["prevent"])),
|
|
4739
4753
|
onDrop: G(l, ["prevent"])
|
|
4740
4754
|
}, [
|
|
4741
4755
|
t.value.length === 0 ? (r(), v("div", Da, [
|
|
4742
|
-
|
|
4756
|
+
h(u(j), {
|
|
4743
4757
|
icon: "bi:upload",
|
|
4744
4758
|
class: "me-2",
|
|
4745
4759
|
height: "20px",
|
|
4746
4760
|
width: "20px"
|
|
4747
4761
|
}),
|
|
4748
|
-
|
|
4762
|
+
n[2] || (n[2] = I(" Drag and drop files here "))
|
|
4749
4763
|
])) : (r(), v("div", Oa, [
|
|
4750
|
-
k(
|
|
4764
|
+
k(o.$slots, "default")
|
|
4751
4765
|
]))
|
|
4752
4766
|
], 34));
|
|
4753
4767
|
}
|
|
@@ -4787,7 +4801,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4787
4801
|
I(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
|
|
4788
4802
|
]),
|
|
4789
4803
|
_: 1
|
|
4790
|
-
})) :
|
|
4804
|
+
})) : S("", !0),
|
|
4791
4805
|
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (r(), f(se, {
|
|
4792
4806
|
key: 1,
|
|
4793
4807
|
id: "upload-status-alert",
|
|
@@ -4798,7 +4812,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4798
4812
|
I(w(a.value), 1)
|
|
4799
4813
|
]),
|
|
4800
4814
|
_: 1
|
|
4801
|
-
}, 8, ["severity"])) :
|
|
4815
|
+
}, 8, ["severity"])) : S("", !0)
|
|
4802
4816
|
]));
|
|
4803
4817
|
}
|
|
4804
4818
|
}), qa = ["data-cy"], Ea = { class: "ms-3 d-flex flex-column" }, La = {
|
|
@@ -4829,18 +4843,18 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4829
4843
|
}),
|
|
4830
4844
|
emits: /* @__PURE__ */ U(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
4831
4845
|
setup(e, { emit: t }) {
|
|
4832
|
-
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"),
|
|
4833
|
-
|
|
4846
|
+
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), o = t, n = _(a.value.name), s = _(""), p = _(0), c = _(), g = T(() => e.acceptedFileTypes.some(({ fileType: y }) => y === a.value.type)), d = T(() => a.value.size <= e.maxFileSize), F = T(() => a.value.type ? a.value.type : Ia().getType(a.value.name)), C = () => {
|
|
4847
|
+
n.value != null && (V(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
4834
4848
|
}, V = () => {
|
|
4835
|
-
let y =
|
|
4836
|
-
y.length === 1 ? P && P.length > 0 && (
|
|
4849
|
+
let y = n.value.split("."), x = Ca.getExtension(F.value), P = n.value.split(".").pop();
|
|
4850
|
+
y.length === 1 ? P && P.length > 0 && (n.value = [n.value, x].join(".")) : y.length > 1 && P !== x && (n.value = n.value.replace(P, x));
|
|
4837
4851
|
}, M = async () => {
|
|
4838
4852
|
if (!g.value || !d.value) {
|
|
4839
4853
|
l.value = g.value ? "InvalidFileSize" : "InvalidFileType";
|
|
4840
4854
|
return;
|
|
4841
4855
|
}
|
|
4842
4856
|
l.value = "Preparing", c.value = new AbortController();
|
|
4843
|
-
const [y,
|
|
4857
|
+
const [y, x] = await e.getFileUrlAction(a.value.name);
|
|
4844
4858
|
if (!y) {
|
|
4845
4859
|
l.value = "Failed";
|
|
4846
4860
|
return;
|
|
@@ -4856,7 +4870,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4856
4870
|
},
|
|
4857
4871
|
tags: { temp: "true" }
|
|
4858
4872
|
};
|
|
4859
|
-
await P.uploadData(a.value, L), s.value = y, l.value = "Uploaded", i.value =
|
|
4873
|
+
await P.uploadData(a.value, L), s.value = y, l.value = "Uploaded", i.value = x;
|
|
4860
4874
|
} catch (P) {
|
|
4861
4875
|
if (P.name === "AbortError") {
|
|
4862
4876
|
l.value = "Aborted";
|
|
@@ -4865,11 +4879,11 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4865
4879
|
l.value = "Failed";
|
|
4866
4880
|
}
|
|
4867
4881
|
}, q = async () => {
|
|
4868
|
-
await za(l.value, s.value),
|
|
4882
|
+
await za(l.value, s.value), o("deleted", a.value);
|
|
4869
4883
|
};
|
|
4870
4884
|
return le(() => {
|
|
4871
4885
|
e.autoUploadToBlob && M();
|
|
4872
|
-
}), (y,
|
|
4886
|
+
}), (y, x) => {
|
|
4873
4887
|
const P = A;
|
|
4874
4888
|
return r(), v("div", {
|
|
4875
4889
|
class: "py-4 px-3 d-flex",
|
|
@@ -4897,12 +4911,12 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4897
4911
|
y.editableFileName ? (r(), f(At, {
|
|
4898
4912
|
key: 0,
|
|
4899
4913
|
id: "edit-file-name",
|
|
4900
|
-
modelValue:
|
|
4901
|
-
"onUpdate:modelValue":
|
|
4914
|
+
modelValue: n.value,
|
|
4915
|
+
"onUpdate:modelValue": x[0] || (x[0] = (L) => n.value = L),
|
|
4902
4916
|
rules: y.customFileNameRules,
|
|
4903
4917
|
name: a.value.name,
|
|
4904
|
-
"complete-action":
|
|
4905
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La, w(
|
|
4918
|
+
"complete-action": C
|
|
4919
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La, w(n.value), 1))
|
|
4906
4920
|
]),
|
|
4907
4921
|
m("span", Ra, "File type: " + w(a.value.type.split("/").pop()), 1),
|
|
4908
4922
|
m("span", Ha, "File size: " + w(u(pe)(a.value.size)), 1)
|
|
@@ -4921,19 +4935,19 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4921
4935
|
onClick: M
|
|
4922
4936
|
}, {
|
|
4923
4937
|
default: b(() => [
|
|
4924
|
-
|
|
4938
|
+
h(u(j), {
|
|
4925
4939
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
4926
4940
|
}, null, 8, ["icon"])
|
|
4927
4941
|
]),
|
|
4928
4942
|
_: 1
|
|
4929
|
-
})) :
|
|
4943
|
+
})) : S("", !0),
|
|
4930
4944
|
l.value === "Uploading" ? (r(), f(P, {
|
|
4931
4945
|
key: 1,
|
|
4932
4946
|
link: "",
|
|
4933
|
-
onClick:
|
|
4947
|
+
onClick: x[1] || (x[1] = (L) => c.value.value.abort())
|
|
4934
4948
|
}, {
|
|
4935
4949
|
default: b(() => [
|
|
4936
|
-
|
|
4950
|
+
h(u(j), { icon: "bi:x-circle-fill" })
|
|
4937
4951
|
]),
|
|
4938
4952
|
_: 1
|
|
4939
4953
|
})) : (r(), f(P, {
|
|
@@ -4943,7 +4957,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4943
4957
|
id: "delete-button"
|
|
4944
4958
|
}, {
|
|
4945
4959
|
default: b(() => [
|
|
4946
|
-
|
|
4960
|
+
h(u(j), { icon: "bi:trash" })
|
|
4947
4961
|
]),
|
|
4948
4962
|
_: 1
|
|
4949
4963
|
}))
|
|
@@ -4981,25 +4995,25 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4981
4995
|
emits: ["update:modelValue"],
|
|
4982
4996
|
setup(e) {
|
|
4983
4997
|
const t = D(e, "modelValue"), a = e, i = (l) => {
|
|
4984
|
-
t.value = t.value.filter((
|
|
4998
|
+
t.value = t.value.filter((o) => o.file != l);
|
|
4985
4999
|
};
|
|
4986
|
-
return (l,
|
|
4987
|
-
|
|
5000
|
+
return (l, o) => (r(), v("div", Xa, [
|
|
5001
|
+
h(Ma, z(a, {
|
|
4988
5002
|
modelValue: t.value,
|
|
4989
|
-
"onUpdate:modelValue":
|
|
5003
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => t.value = n)
|
|
4990
5004
|
}), null, 16, ["modelValue"]),
|
|
4991
5005
|
l.showDragDropArea ? (r(), v("div", Qa, [
|
|
4992
|
-
|
|
5006
|
+
h(Na, {
|
|
4993
5007
|
"max-file-input": a.maxFileInput,
|
|
4994
5008
|
"max-file-size": a.maxFileSize,
|
|
4995
5009
|
"accepted-file-types": a.acceptedFileTypes,
|
|
4996
5010
|
modelValue: t.value,
|
|
4997
|
-
"onUpdate:modelValue":
|
|
5011
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => t.value = n)
|
|
4998
5012
|
}, {
|
|
4999
5013
|
default: b(() => [
|
|
5000
|
-
(r(!0), v(O, null, N(t.value, ({ file:
|
|
5001
|
-
(r(), f(Ya,
|
|
5002
|
-
key:
|
|
5014
|
+
(r(!0), v(O, null, N(t.value, ({ file: n }, s) => (r(), v("span", null, [
|
|
5015
|
+
(r(), f(Ya, z({
|
|
5016
|
+
key: n.name,
|
|
5003
5017
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5004
5018
|
file: t.value[s].file,
|
|
5005
5019
|
"onUpdate:file": (p) => t.value[s].file = p,
|
|
@@ -5013,11 +5027,11 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5013
5027
|
]),
|
|
5014
5028
|
_: 1
|
|
5015
5029
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5016
|
-
|
|
5030
|
+
h(Za, {
|
|
5017
5031
|
"max-file-size": a.maxFileSize,
|
|
5018
5032
|
"max-file-input": l.maxFileInput
|
|
5019
5033
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5020
|
-
])) :
|
|
5034
|
+
])) : S("", !0)
|
|
5021
5035
|
]));
|
|
5022
5036
|
}
|
|
5023
5037
|
}), ei = { class: "d-flex" }, ti = { class: "me-3" }, ai = { class: "ms-2" }, ii = { class: "d-flex flex-column w-100" }, ll = /* @__PURE__ */ $({
|
|
@@ -5028,22 +5042,22 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5028
5042
|
},
|
|
5029
5043
|
emits: ["update:modelValue"],
|
|
5030
5044
|
setup(e) {
|
|
5031
|
-
const t = D(e, "modelValue"), a = _(), i = _(!1), l = (
|
|
5032
|
-
a.value.toggle(
|
|
5045
|
+
const t = D(e, "modelValue"), a = _(), i = _(!1), l = (o) => {
|
|
5046
|
+
a.value.toggle(o);
|
|
5033
5047
|
};
|
|
5034
|
-
return (
|
|
5035
|
-
|
|
5048
|
+
return (o, n) => (r(), v(O, null, [
|
|
5049
|
+
h(u(A), {
|
|
5036
5050
|
onClick: l,
|
|
5037
5051
|
class: "ms-2"
|
|
5038
5052
|
}, {
|
|
5039
5053
|
default: b(() => [
|
|
5040
5054
|
m("div", ei, [
|
|
5041
5055
|
m("div", ti, [
|
|
5042
|
-
|
|
5056
|
+
h(u(j), { icon: "bi:layout-three-columns" })
|
|
5043
5057
|
]),
|
|
5044
5058
|
I(" Columns (" + w(t.value.filter((s) => s.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
|
|
5045
5059
|
m("div", ai, [
|
|
5046
|
-
|
|
5060
|
+
h(u(j), {
|
|
5047
5061
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5048
5062
|
}, null, 8, ["icon"])
|
|
5049
5063
|
])
|
|
@@ -5051,12 +5065,12 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5051
5065
|
]),
|
|
5052
5066
|
_: 1
|
|
5053
5067
|
}),
|
|
5054
|
-
|
|
5068
|
+
h(u(ve), {
|
|
5055
5069
|
ref_key: "columnCustomiserPanel",
|
|
5056
5070
|
ref: a,
|
|
5057
5071
|
class: "column-customiser",
|
|
5058
|
-
onHide:
|
|
5059
|
-
onShow:
|
|
5072
|
+
onHide: n[0] || (n[0] = () => i.value = !1),
|
|
5073
|
+
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5060
5074
|
}, {
|
|
5061
5075
|
default: b(() => [
|
|
5062
5076
|
m("div", ii, [
|
|
@@ -5068,7 +5082,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5068
5082
|
"pb-1": p === 0
|
|
5069
5083
|
}])
|
|
5070
5084
|
}, [
|
|
5071
|
-
|
|
5085
|
+
h(fe, {
|
|
5072
5086
|
id: s.field,
|
|
5073
5087
|
modelValue: s.selected,
|
|
5074
5088
|
"onUpdate:modelValue": (c) => s.selected = c,
|
|
@@ -5083,7 +5097,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5083
5097
|
}, 512)
|
|
5084
5098
|
], 64));
|
|
5085
5099
|
}
|
|
5086
|
-
}),
|
|
5100
|
+
}), ol = /* @__PURE__ */ $({
|
|
5087
5101
|
__name: "ForgePanel",
|
|
5088
5102
|
setup(e) {
|
|
5089
5103
|
return (t, a) => {
|
|
@@ -5094,8 +5108,8 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5094
5108
|
key: 0,
|
|
5095
5109
|
"data-cy": "message-icon",
|
|
5096
5110
|
icon: "bi:chevron-down"
|
|
5097
|
-
})) :
|
|
5098
|
-
l ?
|
|
5111
|
+
})) : S("", !0),
|
|
5112
|
+
l ? S("", !0) : (r(), f(u(j), {
|
|
5099
5113
|
key: 1,
|
|
5100
5114
|
"data-cy": "message-icon",
|
|
5101
5115
|
icon: "bi:chevron-up"
|
|
@@ -5135,15 +5149,15 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5135
5149
|
]
|
|
5136
5150
|
})
|
|
5137
5151
|
}));
|
|
5138
|
-
return (i, l) => (r(), f(u(He),
|
|
5152
|
+
return (i, l) => (r(), f(u(He), z({ ...i.$attrs, ...t }, {
|
|
5139
5153
|
severity: t.severity,
|
|
5140
5154
|
pt: a.value
|
|
5141
5155
|
}), null, 16, ["severity", "pt"]));
|
|
5142
5156
|
}
|
|
5143
|
-
}),
|
|
5157
|
+
}), oi = {
|
|
5144
5158
|
class: "btn-group",
|
|
5145
5159
|
"data-cy": "forge-select-button"
|
|
5146
|
-
},
|
|
5160
|
+
}, nl = /* @__PURE__ */ $({
|
|
5147
5161
|
__name: "ForgeSelectButton",
|
|
5148
5162
|
props: /* @__PURE__ */ U({
|
|
5149
5163
|
options: {},
|
|
@@ -5156,25 +5170,25 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5156
5170
|
}),
|
|
5157
5171
|
emits: ["update:modelValue"],
|
|
5158
5172
|
setup(e) {
|
|
5159
|
-
const t = e, a = D(e, "modelValue"), i = (
|
|
5160
|
-
var
|
|
5161
|
-
return t.multiple ? (
|
|
5162
|
-
}, l = (
|
|
5163
|
-
var
|
|
5164
|
-
if (!
|
|
5173
|
+
const t = e, a = D(e, "modelValue"), i = (o) => {
|
|
5174
|
+
var n;
|
|
5175
|
+
return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(o.value) : a.value === o.value;
|
|
5176
|
+
}, l = (o) => {
|
|
5177
|
+
var n;
|
|
5178
|
+
if (!o.disabled)
|
|
5165
5179
|
if (t.multiple) {
|
|
5166
|
-
let s = (
|
|
5167
|
-
if (s.length >= 1 && s.includes(
|
|
5180
|
+
let s = (n = a.value) != null && n.length ? [...a.value] : [];
|
|
5181
|
+
if (s.length >= 1 && s.includes(o.value)) {
|
|
5168
5182
|
if (!t.allowEmpty && s.length === 1) return;
|
|
5169
|
-
s = s.length > 1 ? s.filter((c) => c !==
|
|
5183
|
+
s = s.length > 1 ? s.filter((c) => c !== o.value) : [];
|
|
5170
5184
|
} else
|
|
5171
|
-
s.push(
|
|
5185
|
+
s.push(o.value);
|
|
5172
5186
|
a.value = s;
|
|
5173
5187
|
} else
|
|
5174
|
-
a.value = a.value ===
|
|
5188
|
+
a.value = a.value === o.value && t.allowEmpty ? null : o.value;
|
|
5175
5189
|
};
|
|
5176
|
-
return (
|
|
5177
|
-
(r(!0), v(O, null, N(
|
|
5190
|
+
return (o, n) => (r(), v("div", oi, [
|
|
5191
|
+
(r(!0), v(O, null, N(o.options, (s, p) => (r(), f(li, {
|
|
5178
5192
|
key: p,
|
|
5179
5193
|
onLabel: s.label,
|
|
5180
5194
|
offLabel: s.label,
|
|
@@ -5183,7 +5197,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5183
5197
|
defaultValue: i(s),
|
|
5184
5198
|
disabled: s.disabled,
|
|
5185
5199
|
"data-cy": `toggle-button-${s.value}`,
|
|
5186
|
-
invalid:
|
|
5200
|
+
invalid: o.invalid
|
|
5187
5201
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5188
5202
|
]));
|
|
5189
5203
|
}
|
|
@@ -5217,12 +5231,12 @@ export {
|
|
|
5217
5231
|
Wt as ForgeMultiSelectPreview,
|
|
5218
5232
|
Hi as ForgeNavbar,
|
|
5219
5233
|
Wi as ForgePageHeader,
|
|
5220
|
-
|
|
5234
|
+
ol as ForgePanel,
|
|
5221
5235
|
la as ForgeProgressBar,
|
|
5222
5236
|
Yi as ForgeRemainingCharacters,
|
|
5223
5237
|
sl as ForgeResolver,
|
|
5224
5238
|
Zi as ForgeScratchpad,
|
|
5225
|
-
|
|
5239
|
+
nl as ForgeSelectButton,
|
|
5226
5240
|
Xi as ForgeStatWidget,
|
|
5227
5241
|
Qi as ForgeStepper,
|
|
5228
5242
|
tl as ForgeTable,
|