@3squared/forge-ui-3 2.21.5 → 2.21.7
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,12 +1,12 @@
|
|
|
1
1
|
import $e from "primevue/message";
|
|
2
|
-
import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as
|
|
2
|
+
import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as g, renderSlot as S, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as M, createElementBlock as b, Fragment as U, mergeProps as _, renderList as L, mergeModels as E, useModel as N, computed as j, withDirectives as K, createTextVNode as V, toDisplayString as $, vShow as X, createSlots as ie, onMounted as ne, withKeys as le, isRef as Se, normalizeStyle as Fe, withModifiers as Q, watch as W, h as Ce, useTemplateRef as Te } from "vue";
|
|
3
3
|
import { Icon as I } from "@iconify/vue";
|
|
4
4
|
import q from "primevue/button";
|
|
5
5
|
import ze from "primevue/toast";
|
|
6
6
|
import Pe from "primevue/autocomplete";
|
|
7
|
-
import
|
|
7
|
+
import _e from "primevue/checkbox";
|
|
8
8
|
import { useField as se } from "vee-validate";
|
|
9
|
-
import
|
|
9
|
+
import je from "primevue/progressspinner";
|
|
10
10
|
import Me from "primevue/dialog";
|
|
11
11
|
import ae from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as Ie } from "@vueuse/components";
|
|
@@ -191,9 +191,10 @@ const Qe = {
|
|
|
191
191
|
select: {
|
|
192
192
|
root: ({ props: e }) => ({
|
|
193
193
|
class: [
|
|
194
|
-
"form-select d-flex
|
|
194
|
+
"form-select flex-1 d-flex position-relative",
|
|
195
195
|
{
|
|
196
|
-
disabled: e.disabled
|
|
196
|
+
disabled: e.disabled,
|
|
197
|
+
"cursor-pointer ": !e.disabled
|
|
197
198
|
}
|
|
198
199
|
]
|
|
199
200
|
}),
|
|
@@ -239,9 +240,17 @@ const Qe = {
|
|
|
239
240
|
}
|
|
240
241
|
}, it = {
|
|
241
242
|
column: {
|
|
242
|
-
pcSortBadge: {
|
|
243
|
-
root:
|
|
244
|
-
|
|
243
|
+
pcSortBadge: (e) => ({
|
|
244
|
+
root: {
|
|
245
|
+
class: [
|
|
246
|
+
"ms-2 my-auto cursor-pointer",
|
|
247
|
+
{
|
|
248
|
+
// Remove the badge, if one of the (2) sort columns is the row grouping, as it looks like only one column is sortable. Will show numbers if not only 2 sort values
|
|
249
|
+
"d-none": e.parent.state.d_groupRowsSortMeta != null && e.parent.state.d_multiSortMeta != null && e.parent.state.d_multiSortMeta.length == 2 && e.parent.state.d_multiSortMeta.some((t) => t.field == e.parent.state.d_groupRowsSortMeta.field)
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
}),
|
|
245
254
|
headerCell: (e) => {
|
|
246
255
|
var t, a, i, o, l, n;
|
|
247
256
|
return {
|
|
@@ -577,7 +586,7 @@ const Qe = {
|
|
|
577
586
|
}, ft = {
|
|
578
587
|
// More PassThrough options defined in ForgeDatepicker.
|
|
579
588
|
datepicker: {
|
|
580
|
-
root: "d-
|
|
589
|
+
root: "d-flex flex-1 relative",
|
|
581
590
|
pcInputText: "form-control",
|
|
582
591
|
dropdown: "d-none",
|
|
583
592
|
panel: ({ props: e }) => ({
|
|
@@ -993,7 +1002,7 @@ const Qe = {
|
|
|
993
1002
|
separator: "border-bottom"
|
|
994
1003
|
}
|
|
995
1004
|
}
|
|
996
|
-
},
|
|
1005
|
+
}, St = {
|
|
997
1006
|
progressspinner: {
|
|
998
1007
|
spin: () => ({
|
|
999
1008
|
class: [
|
|
@@ -1001,7 +1010,7 @@ const Qe = {
|
|
|
1001
1010
|
]
|
|
1002
1011
|
})
|
|
1003
1012
|
}
|
|
1004
|
-
},
|
|
1013
|
+
}, Ft = {
|
|
1005
1014
|
card: {
|
|
1006
1015
|
root: () => ({
|
|
1007
1016
|
class: ["card"]
|
|
@@ -1110,7 +1119,7 @@ const Qe = {
|
|
|
1110
1119
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1111
1120
|
filterIcon: "d-none"
|
|
1112
1121
|
}
|
|
1113
|
-
},
|
|
1122
|
+
}, _t = {
|
|
1114
1123
|
treeSelect: {
|
|
1115
1124
|
root: ({ props: e }) => ({
|
|
1116
1125
|
class: [
|
|
@@ -1158,7 +1167,7 @@ const Qe = {
|
|
|
1158
1167
|
filterIcon: "d-none"
|
|
1159
1168
|
}
|
|
1160
1169
|
}
|
|
1161
|
-
},
|
|
1170
|
+
}, jt = {
|
|
1162
1171
|
fieldset: {
|
|
1163
1172
|
root: () => ({
|
|
1164
1173
|
class: [
|
|
@@ -1283,7 +1292,7 @@ const Qe = {
|
|
|
1283
1292
|
...Qe,
|
|
1284
1293
|
...ht,
|
|
1285
1294
|
...et,
|
|
1286
|
-
...
|
|
1295
|
+
...Ft,
|
|
1287
1296
|
...tt,
|
|
1288
1297
|
...dt,
|
|
1289
1298
|
...it,
|
|
@@ -1300,7 +1309,7 @@ const Qe = {
|
|
|
1300
1309
|
...wt,
|
|
1301
1310
|
...ct,
|
|
1302
1311
|
...bt,
|
|
1303
|
-
...
|
|
1312
|
+
...St,
|
|
1304
1313
|
...yt,
|
|
1305
1314
|
...Bt,
|
|
1306
1315
|
...$t,
|
|
@@ -1310,8 +1319,8 @@ const Qe = {
|
|
|
1310
1319
|
...vt,
|
|
1311
1320
|
...zt,
|
|
1312
1321
|
...rt,
|
|
1313
|
-
..._t,
|
|
1314
1322
|
...jt,
|
|
1323
|
+
..._t,
|
|
1315
1324
|
...Pt,
|
|
1316
1325
|
...Mt,
|
|
1317
1326
|
...It,
|
|
@@ -1342,7 +1351,7 @@ const Qe = {
|
|
|
1342
1351
|
return (a, i) => {
|
|
1343
1352
|
const o = $e;
|
|
1344
1353
|
return d(), x(o, G(Y({ ...a.$attrs, ...t })), {
|
|
1345
|
-
icon:
|
|
1354
|
+
icon: g(() => [
|
|
1346
1355
|
m("div", {
|
|
1347
1356
|
class: P(t.icon ? "me-2 pe-1" : "")
|
|
1348
1357
|
}, [
|
|
@@ -1355,11 +1364,11 @@ const Qe = {
|
|
|
1355
1364
|
}, null, 8, ["icon", "class"])) : T("", !0)
|
|
1356
1365
|
], 2)
|
|
1357
1366
|
]),
|
|
1358
|
-
closeicon:
|
|
1367
|
+
closeicon: g(() => [
|
|
1359
1368
|
k(c(I), { icon: "bi:x" })
|
|
1360
1369
|
]),
|
|
1361
|
-
default:
|
|
1362
|
-
|
|
1370
|
+
default: g(() => [
|
|
1371
|
+
S(a.$slots, "default")
|
|
1363
1372
|
]),
|
|
1364
1373
|
_: 3
|
|
1365
1374
|
}, 16);
|
|
@@ -1386,7 +1395,7 @@ const Qe = {
|
|
|
1386
1395
|
return (o, l) => {
|
|
1387
1396
|
const n = q;
|
|
1388
1397
|
return d(), b(U, null, [
|
|
1389
|
-
k(n,
|
|
1398
|
+
k(n, _({ ...a, ...o.$attrs }, {
|
|
1390
1399
|
loading: t.value,
|
|
1391
1400
|
disabled: t.value || a.disabled,
|
|
1392
1401
|
onClick: i
|
|
@@ -1398,9 +1407,9 @@ const Qe = {
|
|
|
1398
1407
|
}), so = /* @__PURE__ */ z({
|
|
1399
1408
|
__name: "ForgeAutoComplete",
|
|
1400
1409
|
setup(e) {
|
|
1401
|
-
return (t, a) => (d(), x(c(Pe),
|
|
1402
|
-
default:
|
|
1403
|
-
(d(!0), b(U, null, L(t.$slots, (i, o) =>
|
|
1410
|
+
return (t, a) => (d(), x(c(Pe), _({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1411
|
+
default: g(() => [
|
|
1412
|
+
(d(!0), b(U, null, L(t.$slots, (i, o) => S(t.$slots, o, { slot: o })), 256))
|
|
1404
1413
|
]),
|
|
1405
1414
|
_: 3
|
|
1406
1415
|
}, 16));
|
|
@@ -1449,16 +1458,16 @@ const Qe = {
|
|
|
1449
1458
|
}
|
|
1450
1459
|
), n = (p, u) => {
|
|
1451
1460
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(u) : a.value = u;
|
|
1452
|
-
}, s =
|
|
1461
|
+
}, s = j(() => o.value.length > 0);
|
|
1453
1462
|
return (p, u) => {
|
|
1454
|
-
const h =
|
|
1463
|
+
const h = _e;
|
|
1455
1464
|
return d(), b("div", Ot, [
|
|
1456
|
-
m("div",
|
|
1465
|
+
m("div", _({
|
|
1457
1466
|
class: "d-flex",
|
|
1458
1467
|
"data-cy": "checkbox-container",
|
|
1459
1468
|
onClick: u[2] || (u[2] = (r) => n(r, a.value))
|
|
1460
1469
|
}, { ...p.$attrs }), [
|
|
1461
|
-
k(h,
|
|
1470
|
+
k(h, _({ ...t }, {
|
|
1462
1471
|
binary: "",
|
|
1463
1472
|
modelValue: a.value,
|
|
1464
1473
|
"onUpdate:modelValue": u[0] || (u[0] = (r) => a.value = r),
|
|
@@ -1471,7 +1480,7 @@ const Qe = {
|
|
|
1471
1480
|
onClick: u[1] || (u[1] = (r) => n(r, !a.value)),
|
|
1472
1481
|
class: P([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1473
1482
|
}, [
|
|
1474
|
-
|
|
1483
|
+
S(p.$slots, "default", {}, () => [
|
|
1475
1484
|
V($(t.label), 1)
|
|
1476
1485
|
])
|
|
1477
1486
|
], 10, At)
|
|
@@ -1492,7 +1501,7 @@ const Qe = {
|
|
|
1492
1501
|
inLine: { type: Boolean, default: !1 }
|
|
1493
1502
|
},
|
|
1494
1503
|
setup(e) {
|
|
1495
|
-
const t = e, a =
|
|
1504
|
+
const t = e, a = j(() => ({
|
|
1496
1505
|
spin: () => ({
|
|
1497
1506
|
class: [
|
|
1498
1507
|
"spinner-border",
|
|
@@ -1503,7 +1512,7 @@ const Qe = {
|
|
|
1503
1512
|
})
|
|
1504
1513
|
}));
|
|
1505
1514
|
return (i, o) => {
|
|
1506
|
-
const l =
|
|
1515
|
+
const l = je;
|
|
1507
1516
|
return d(), b("div", {
|
|
1508
1517
|
class: P(i.inLine ? "" : "forge-loader")
|
|
1509
1518
|
}, [
|
|
@@ -1533,7 +1542,7 @@ const Qe = {
|
|
|
1533
1542
|
iconName: {}
|
|
1534
1543
|
},
|
|
1535
1544
|
setup(e) {
|
|
1536
|
-
const t =
|
|
1545
|
+
const t = j(() => ({
|
|
1537
1546
|
[`link-${e.severity}`]: e.severity,
|
|
1538
1547
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1539
1548
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1542,7 +1551,7 @@ const Qe = {
|
|
|
1542
1551
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1543
1552
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1544
1553
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1545
|
-
})), a =
|
|
1554
|
+
})), a = j(() => ({
|
|
1546
1555
|
"order-2": e.positionIconEnd,
|
|
1547
1556
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1548
1557
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
@@ -1555,7 +1564,7 @@ const Qe = {
|
|
|
1555
1564
|
href: i.url,
|
|
1556
1565
|
target: i.target
|
|
1557
1566
|
}, [
|
|
1558
|
-
|
|
1567
|
+
S(i.$slots, "default", {}, () => [
|
|
1559
1568
|
i.iconName ? (d(), x(c(I), {
|
|
1560
1569
|
key: 0,
|
|
1561
1570
|
id: "link-icon",
|
|
@@ -1673,16 +1682,16 @@ const Lt = {
|
|
|
1673
1682
|
if (o.onConfirm) {
|
|
1674
1683
|
l.value = !0, n.value.hasError = !1;
|
|
1675
1684
|
try {
|
|
1676
|
-
const
|
|
1677
|
-
(
|
|
1678
|
-
} catch (
|
|
1685
|
+
const v = await o.onConfirm();
|
|
1686
|
+
(v || v == null) && h();
|
|
1687
|
+
} catch (v) {
|
|
1679
1688
|
n.value.hasError = !0;
|
|
1680
|
-
const C = Ut(
|
|
1689
|
+
const C = Ut(v);
|
|
1681
1690
|
n.value.header = C.errorMessage, n.value.message = C.errorDetails;
|
|
1682
1691
|
}
|
|
1683
1692
|
l.value = !1;
|
|
1684
1693
|
}
|
|
1685
|
-
}, w =
|
|
1694
|
+
}, w = j(() => ({
|
|
1686
1695
|
root: [
|
|
1687
1696
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1688
1697
|
{
|
|
@@ -1701,14 +1710,14 @@ const Lt = {
|
|
|
1701
1710
|
}
|
|
1702
1711
|
]
|
|
1703
1712
|
}));
|
|
1704
|
-
return (
|
|
1705
|
-
const
|
|
1706
|
-
return d(), x(A,
|
|
1713
|
+
return (v, C) => {
|
|
1714
|
+
const F = q, A = Me;
|
|
1715
|
+
return d(), x(A, _(o, {
|
|
1707
1716
|
onMaximize: u,
|
|
1708
1717
|
onUnmaximize: p,
|
|
1709
1718
|
pt: w.value
|
|
1710
1719
|
}), ie({
|
|
1711
|
-
closeicon:
|
|
1720
|
+
closeicon: g(() => [
|
|
1712
1721
|
k(c(I), {
|
|
1713
1722
|
"data-cy": "close-icon",
|
|
1714
1723
|
icon: "bi:x-lg",
|
|
@@ -1717,7 +1726,7 @@ const Lt = {
|
|
|
1717
1726
|
onClick: h
|
|
1718
1727
|
})
|
|
1719
1728
|
]),
|
|
1720
|
-
maximizeicon:
|
|
1729
|
+
maximizeicon: g(() => [
|
|
1721
1730
|
k(c(I), {
|
|
1722
1731
|
"data-cy": "maximisable-icon",
|
|
1723
1732
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
@@ -1727,9 +1736,9 @@ const Lt = {
|
|
|
1727
1736
|
]),
|
|
1728
1737
|
_: 2
|
|
1729
1738
|
}, [
|
|
1730
|
-
L(
|
|
1739
|
+
L(v.$slots, (f, B) => ({
|
|
1731
1740
|
name: B,
|
|
1732
|
-
fn:
|
|
1741
|
+
fn: g((D) => [
|
|
1733
1742
|
B == "default" ? (d(), b(U, { key: 0 }, [
|
|
1734
1743
|
n.value.hasError ? (d(), b("div", Lt, [
|
|
1735
1744
|
k(re, {
|
|
@@ -1737,7 +1746,7 @@ const Lt = {
|
|
|
1737
1746
|
"data-cy": "error",
|
|
1738
1747
|
class: "mb-0"
|
|
1739
1748
|
}, {
|
|
1740
|
-
default:
|
|
1749
|
+
default: g(() => [
|
|
1741
1750
|
m("p", {
|
|
1742
1751
|
class: P(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1743
1752
|
}, $(n.value.header), 3),
|
|
@@ -1749,26 +1758,26 @@ const Lt = {
|
|
|
1749
1758
|
})
|
|
1750
1759
|
])) : T("", !0)
|
|
1751
1760
|
], 64)) : T("", !0),
|
|
1752
|
-
|
|
1753
|
-
l.value ?
|
|
1761
|
+
S(v.$slots, B, G(Y(D || {}))),
|
|
1762
|
+
l.value ? S(v.$slots, "loader", { key: 1 }, () => [
|
|
1754
1763
|
k(pe, { "data-cy": "loader" })
|
|
1755
1764
|
]) : T("", !0)
|
|
1756
1765
|
])
|
|
1757
1766
|
})),
|
|
1758
|
-
|
|
1767
|
+
v.showFooter ? {
|
|
1759
1768
|
name: "footer",
|
|
1760
|
-
fn:
|
|
1769
|
+
fn: g(() => [
|
|
1761
1770
|
m("div", qt, [
|
|
1762
|
-
k(
|
|
1763
|
-
label:
|
|
1771
|
+
k(F, {
|
|
1772
|
+
label: v.cancelText,
|
|
1764
1773
|
class: P(o.cancelClass),
|
|
1765
1774
|
outlined: "",
|
|
1766
1775
|
onClick: h,
|
|
1767
1776
|
id: "cancel-button",
|
|
1768
1777
|
type: o.cancelButtonType
|
|
1769
1778
|
}, null, 8, ["label", "class", "type"]),
|
|
1770
|
-
k(
|
|
1771
|
-
label:
|
|
1779
|
+
k(F, {
|
|
1780
|
+
label: v.submitText,
|
|
1772
1781
|
class: P([o.submitClass, "ms-auto"]),
|
|
1773
1782
|
onClick: r,
|
|
1774
1783
|
id: "submit-button",
|
|
@@ -1797,8 +1806,8 @@ const Lt = {
|
|
|
1797
1806
|
emits: ["update:modelValue"],
|
|
1798
1807
|
setup(e) {
|
|
1799
1808
|
const t = e, a = N(e, "modelValue"), i = M(!1), o = M(), l = () => {
|
|
1800
|
-
var
|
|
1801
|
-
i.value = !i.value, (
|
|
1809
|
+
var v;
|
|
1810
|
+
i.value = !i.value, (v = o.value) == null || v.focus();
|
|
1802
1811
|
}, n = async () => {
|
|
1803
1812
|
if (w.value)
|
|
1804
1813
|
return !1;
|
|
@@ -1820,28 +1829,28 @@ const Lt = {
|
|
|
1820
1829
|
ne(() => {
|
|
1821
1830
|
r.value = a.value;
|
|
1822
1831
|
});
|
|
1823
|
-
const w =
|
|
1824
|
-
return (
|
|
1825
|
-
const
|
|
1832
|
+
const w = j(() => h.value.length > 0);
|
|
1833
|
+
return (v, C) => {
|
|
1834
|
+
const F = ae, A = q;
|
|
1826
1835
|
return d(), b("div", {
|
|
1827
1836
|
id: t.name
|
|
1828
1837
|
}, [
|
|
1829
|
-
|
|
1830
|
-
|
|
1838
|
+
v.readonly ? (d(), b("div", Yt, [
|
|
1839
|
+
S(v.$slots, "default", {}, () => [
|
|
1831
1840
|
m("span", Jt, $(c(r)), 1)
|
|
1832
1841
|
])
|
|
1833
1842
|
])) : (d(), b("div", Ht, [
|
|
1834
1843
|
i.value ? (d(), b("div", Wt, [
|
|
1835
1844
|
K((d(), b("div", Gt, [
|
|
1836
|
-
|
|
1845
|
+
S(v.$slots, "editor", {
|
|
1837
1846
|
class: P({ "is-invalid": w.value }),
|
|
1838
1847
|
editFinished: n,
|
|
1839
1848
|
cancel: s,
|
|
1840
1849
|
val: c(r)
|
|
1841
1850
|
}, () => [
|
|
1842
|
-
k(
|
|
1851
|
+
k(F, {
|
|
1843
1852
|
modelValue: c(r),
|
|
1844
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
1853
|
+
"onUpdate:modelValue": C[0] || (C[0] = (f) => Se(r) ? r.value = f : null),
|
|
1845
1854
|
modelModifiers: { trim: !0 },
|
|
1846
1855
|
"data-cy": "input",
|
|
1847
1856
|
ref_key: "input",
|
|
@@ -1869,7 +1878,7 @@ const Lt = {
|
|
|
1869
1878
|
onClick: l,
|
|
1870
1879
|
onFocus: l
|
|
1871
1880
|
}, [
|
|
1872
|
-
|
|
1881
|
+
S(v.$slots, "default", {}, () => [
|
|
1873
1882
|
m("div", {
|
|
1874
1883
|
class: P(["pe-2 cursor-pointer", { "text-invalid": w.value }]),
|
|
1875
1884
|
"data-cy": "value"
|
|
@@ -1879,7 +1888,7 @@ const Lt = {
|
|
|
1879
1888
|
link: "",
|
|
1880
1889
|
class: "p-0 m-0"
|
|
1881
1890
|
}, {
|
|
1882
|
-
default:
|
|
1891
|
+
default: g(() => [
|
|
1883
1892
|
k(c(I), {
|
|
1884
1893
|
icon: "bi:pencil",
|
|
1885
1894
|
class: P(w.value ? "text-invalid" : "text-muted"),
|
|
@@ -1917,7 +1926,7 @@ const Lt = {
|
|
|
1917
1926
|
unstyled: { type: Boolean }
|
|
1918
1927
|
},
|
|
1919
1928
|
setup(e) {
|
|
1920
|
-
const t = e, a =
|
|
1929
|
+
const t = e, a = j(() => ({
|
|
1921
1930
|
root: () => ({
|
|
1922
1931
|
class: [
|
|
1923
1932
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1945,23 +1954,23 @@ const Lt = {
|
|
|
1945
1954
|
]
|
|
1946
1955
|
})
|
|
1947
1956
|
}));
|
|
1948
|
-
return (i, o) => (d(), x(c(Ve),
|
|
1957
|
+
return (i, o) => (d(), x(c(Ve), _({ ...t, ...i.$attrs }, {
|
|
1949
1958
|
pt: a.value,
|
|
1950
1959
|
"data-cy": "navbar"
|
|
1951
1960
|
}), ie({
|
|
1952
|
-
start:
|
|
1961
|
+
start: g(() => [
|
|
1953
1962
|
m("a", {
|
|
1954
1963
|
href: i.logoUrl,
|
|
1955
1964
|
class: "navbar-brand ms-3",
|
|
1956
1965
|
"data-cy": "logo"
|
|
1957
1966
|
}, [
|
|
1958
|
-
|
|
1967
|
+
S(i.$slots, "logo", {}, () => [
|
|
1959
1968
|
o[0] || (o[0] = V(" Logo "))
|
|
1960
1969
|
])
|
|
1961
1970
|
], 8, Zt)
|
|
1962
1971
|
]),
|
|
1963
|
-
buttonicon:
|
|
1964
|
-
|
|
1972
|
+
buttonicon: g(() => [
|
|
1973
|
+
S(i.$slots, "buttonIcon", {}, () => [
|
|
1965
1974
|
k(c(I), {
|
|
1966
1975
|
icon: "bi:list",
|
|
1967
1976
|
class: P(t.severity === "light" ? "text-black" : "text-white"),
|
|
@@ -1974,8 +1983,8 @@ const Lt = {
|
|
|
1974
1983
|
}, [
|
|
1975
1984
|
L(i.$slots, (l, n) => ({
|
|
1976
1985
|
name: n,
|
|
1977
|
-
fn:
|
|
1978
|
-
|
|
1986
|
+
fn: g((s) => [
|
|
1987
|
+
S(i.$slots, n, G(Y(s)))
|
|
1979
1988
|
])
|
|
1980
1989
|
}))
|
|
1981
1990
|
]), 1040, ["pt"]));
|
|
@@ -2009,14 +2018,14 @@ const Lt = {
|
|
|
2009
2018
|
return (o, l) => {
|
|
2010
2019
|
const n = de, s = q;
|
|
2011
2020
|
return d(), b("div", {
|
|
2012
|
-
class: P(o.orientation === "column" ? "row" : ""),
|
|
2021
|
+
class: P(o.orientation === "column" ? "row" : "flex-1"),
|
|
2013
2022
|
"data-cy": "multiselect-preview"
|
|
2014
2023
|
}, [
|
|
2015
2024
|
m("div", {
|
|
2016
2025
|
class: P(o.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
2017
2026
|
"data-cy": "multiselect-container"
|
|
2018
2027
|
}, [
|
|
2019
|
-
k(n,
|
|
2028
|
+
k(n, _({
|
|
2020
2029
|
modelValue: a.value,
|
|
2021
2030
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => a.value = p)
|
|
2022
2031
|
}, { ...o.$attrs }, {
|
|
@@ -2025,19 +2034,19 @@ const Lt = {
|
|
|
2025
2034
|
placeholder: o.multiselectPlaceholder,
|
|
2026
2035
|
"data-cy": "multiselect"
|
|
2027
2036
|
}), {
|
|
2028
|
-
default:
|
|
2029
|
-
(d(!0), b(U, null, L(o.$slots, (p, u) =>
|
|
2037
|
+
default: g(() => [
|
|
2038
|
+
(d(!0), b(U, null, L(o.$slots, (p, u) => S(o.$slots, u, { slot: u })), 256))
|
|
2030
2039
|
]),
|
|
2031
2040
|
_: 3
|
|
2032
2041
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
2033
|
-
|
|
2042
|
+
S(o.$slots, "after-multi-select")
|
|
2034
2043
|
], 2),
|
|
2035
2044
|
m("div", {
|
|
2036
2045
|
class: P(o.orientation === "row" ? "col-12" : "col"),
|
|
2037
2046
|
"data-cy": "options-preview"
|
|
2038
2047
|
}, [
|
|
2039
2048
|
m("div", {
|
|
2040
|
-
style:
|
|
2049
|
+
style: Fe({ height: o.height }),
|
|
2041
2050
|
class: "overflow-auto"
|
|
2042
2051
|
}, [
|
|
2043
2052
|
m("div", Xt, [
|
|
@@ -2046,7 +2055,7 @@ const Lt = {
|
|
|
2046
2055
|
key: p.id,
|
|
2047
2056
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
2048
2057
|
}, [
|
|
2049
|
-
|
|
2058
|
+
S(o.$slots, "list-item", { item: p }, () => [
|
|
2050
2059
|
m("span", ea, $(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
2051
2060
|
]),
|
|
2052
2061
|
o.canRemoveItemFromPreview ? (d(), x(s, {
|
|
@@ -2055,7 +2064,7 @@ const Lt = {
|
|
|
2055
2064
|
class: "m-0 p-0 d-flex align-items-center",
|
|
2056
2065
|
onClick: (u) => i(p.id)
|
|
2057
2066
|
}, {
|
|
2058
|
-
default:
|
|
2067
|
+
default: g(() => [
|
|
2059
2068
|
k(c(I), {
|
|
2060
2069
|
icon: "bi:x",
|
|
2061
2070
|
class: "close-icon",
|
|
@@ -2088,11 +2097,11 @@ const Lt = {
|
|
|
2088
2097
|
return (a, i) => (d(), b("div", ia, [
|
|
2089
2098
|
m("h3", oa, $(t.title), 1),
|
|
2090
2099
|
m("div", la, [
|
|
2091
|
-
|
|
2100
|
+
S(a.$slots, "default")
|
|
2092
2101
|
])
|
|
2093
2102
|
]));
|
|
2094
2103
|
}
|
|
2095
|
-
}), na = { class: "d-flex" }, sa = { "data-cy": "before-slot" }, ra = { class: "position-relative
|
|
2104
|
+
}), na = { class: "d-flex flex-1" }, sa = { "data-cy": "before-slot" }, ra = { class: "position-relative d-flex flex-1" }, da = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ z({
|
|
2096
2105
|
__name: "ForgeDatepicker",
|
|
2097
2106
|
props: /* @__PURE__ */ E({
|
|
2098
2107
|
severity: { default: "primary" },
|
|
@@ -2171,8 +2180,8 @@ const Lt = {
|
|
|
2171
2180
|
initialValue: a.value
|
|
2172
2181
|
}), p = () => {
|
|
2173
2182
|
s(null), a.value = null;
|
|
2174
|
-
}, u =
|
|
2175
|
-
day: ({ context: r, props: w, attrs:
|
|
2183
|
+
}, u = j(() => i.value.length > 0), h = j(() => ({
|
|
2184
|
+
day: ({ context: r, props: w, attrs: v }) => ({
|
|
2176
2185
|
class: [
|
|
2177
2186
|
"d-flex justify-content-center align-items-center",
|
|
2178
2187
|
{
|
|
@@ -2192,14 +2201,14 @@ const Lt = {
|
|
|
2192
2201
|
},
|
|
2193
2202
|
// Severities
|
|
2194
2203
|
{
|
|
2195
|
-
"date-primary":
|
|
2196
|
-
"date-brand":
|
|
2197
|
-
"date-secondary":
|
|
2198
|
-
"date-success":
|
|
2199
|
-
"date-success-alternate":
|
|
2200
|
-
"date-warning":
|
|
2201
|
-
"date-danger":
|
|
2202
|
-
"date-info":
|
|
2204
|
+
"date-primary": v.severity === void 0 || v.severity === "primary",
|
|
2205
|
+
"date-brand": v.severity === "brand",
|
|
2206
|
+
"date-secondary": v.severity === "secondary",
|
|
2207
|
+
"date-success": v.severity === "success",
|
|
2208
|
+
"date-success-alternate": v.severity === "success-alternate",
|
|
2209
|
+
"date-warning": v.severity === "warning",
|
|
2210
|
+
"date-danger": v.severity === "danger",
|
|
2211
|
+
"date-info": v.severity === "info"
|
|
2203
2212
|
}
|
|
2204
2213
|
]
|
|
2205
2214
|
}),
|
|
@@ -2277,14 +2286,14 @@ const Lt = {
|
|
|
2277
2286
|
})
|
|
2278
2287
|
}));
|
|
2279
2288
|
return (r, w) => {
|
|
2280
|
-
const
|
|
2289
|
+
const v = De;
|
|
2281
2290
|
return d(), b(U, null, [
|
|
2282
2291
|
m("div", na, [
|
|
2283
2292
|
m("span", sa, [
|
|
2284
|
-
|
|
2293
|
+
S(r.$slots, "before")
|
|
2285
2294
|
]),
|
|
2286
2295
|
m("div", ra, [
|
|
2287
|
-
k(
|
|
2296
|
+
k(v, _({ ...t, ...r.$attrs }, {
|
|
2288
2297
|
pt: h.value,
|
|
2289
2298
|
modelValue: a.value,
|
|
2290
2299
|
"onUpdate:modelValue": [
|
|
@@ -2307,11 +2316,11 @@ const Lt = {
|
|
|
2307
2316
|
onClick: p,
|
|
2308
2317
|
class: P(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2309
2318
|
}, null, 8, ["class"]), [
|
|
2310
|
-
[X, t.modelValue && !t.inline]
|
|
2319
|
+
[X, t.modelValue && !t.inline && !r.readonly]
|
|
2311
2320
|
])
|
|
2312
2321
|
]),
|
|
2313
2322
|
m("span", da, [
|
|
2314
|
-
|
|
2323
|
+
S(r.$slots, "after")
|
|
2315
2324
|
])
|
|
2316
2325
|
]),
|
|
2317
2326
|
K(m("small", {
|
|
@@ -2330,7 +2339,7 @@ const Lt = {
|
|
|
2330
2339
|
currentCount: {}
|
|
2331
2340
|
},
|
|
2332
2341
|
setup(e) {
|
|
2333
|
-
const t = e, a =
|
|
2342
|
+
const t = e, a = j(() => t.maxCount - t.currentCount);
|
|
2334
2343
|
return (i, o) => (d(), b("div", {
|
|
2335
2344
|
class: P(a.value < 0 ? "text-danger" : "")
|
|
2336
2345
|
}, "Remaining characters: " + $(a.value), 3));
|
|
@@ -2362,13 +2371,13 @@ const Lt = {
|
|
|
2362
2371
|
}
|
|
2363
2372
|
return (l, n) => {
|
|
2364
2373
|
const s = q;
|
|
2365
|
-
return d(), b("form",
|
|
2374
|
+
return d(), b("form", _(l.$attrs, {
|
|
2366
2375
|
novalidate: "",
|
|
2367
2376
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2368
2377
|
onSubmit: Q(o, ["prevent"])
|
|
2369
2378
|
}), [
|
|
2370
2379
|
l.hideTitle ? T("", !0) : (d(), b(U, { key: 0 }, [
|
|
2371
|
-
|
|
2380
|
+
S(l.$slots, "title", {}, () => [
|
|
2372
2381
|
m("h3", {
|
|
2373
2382
|
class: P(l.titleClass),
|
|
2374
2383
|
"data-cy": "form-title"
|
|
@@ -2381,8 +2390,8 @@ const Lt = {
|
|
|
2381
2390
|
severity: "danger",
|
|
2382
2391
|
"data-cy": "error"
|
|
2383
2392
|
}, {
|
|
2384
|
-
default:
|
|
2385
|
-
|
|
2393
|
+
default: g(() => [
|
|
2394
|
+
S(l.$slots, "error", {
|
|
2386
2395
|
error: i.value.message
|
|
2387
2396
|
}, () => [
|
|
2388
2397
|
V($(i.value.message), 1)
|
|
@@ -2390,9 +2399,9 @@ const Lt = {
|
|
|
2390
2399
|
]),
|
|
2391
2400
|
_: 3
|
|
2392
2401
|
})) : T("", !0),
|
|
2393
|
-
|
|
2402
|
+
S(l.$slots, "default"),
|
|
2394
2403
|
m("div", pa, [
|
|
2395
|
-
|
|
2404
|
+
S(l.$slots, "cancel", {}, () => [
|
|
2396
2405
|
l.hideCancel ? T("", !0) : (d(), x(s, {
|
|
2397
2406
|
key: 0,
|
|
2398
2407
|
"data-cy": "cancel-btn",
|
|
@@ -2401,20 +2410,20 @@ const Lt = {
|
|
|
2401
2410
|
outlined: "",
|
|
2402
2411
|
onClick: n[0] || (n[0] = (p) => l.$emit("cancel"))
|
|
2403
2412
|
}, {
|
|
2404
|
-
default:
|
|
2413
|
+
default: g(() => [
|
|
2405
2414
|
V($(l.cancelText), 1)
|
|
2406
2415
|
]),
|
|
2407
2416
|
_: 1
|
|
2408
2417
|
}))
|
|
2409
2418
|
]),
|
|
2410
|
-
|
|
2419
|
+
S(l.$slots, "submit", { submit: o }, () => [
|
|
2411
2420
|
k(s, {
|
|
2412
2421
|
"data-cy": "submit-btn",
|
|
2413
2422
|
type: "submit",
|
|
2414
2423
|
severity: "primary",
|
|
2415
2424
|
class: "ms-auto"
|
|
2416
2425
|
}, {
|
|
2417
|
-
default:
|
|
2426
|
+
default: g(() => [
|
|
2418
2427
|
V($(l.submitText), 1)
|
|
2419
2428
|
]),
|
|
2420
2429
|
_: 1
|
|
@@ -2455,12 +2464,12 @@ const Lt = {
|
|
|
2455
2464
|
a.type == "number" ? s(h.value) : s(h);
|
|
2456
2465
|
}, { errors: o, value: l, errorMessage: n, handleChange: s, handleBlur: p } = se(() => a.name, void 0, {
|
|
2457
2466
|
initialValue: t.value
|
|
2458
|
-
}), u =
|
|
2467
|
+
}), u = j(() => o.value.length > 0);
|
|
2459
2468
|
return W(() => l.value, (h) => {
|
|
2460
2469
|
t.value = h;
|
|
2461
2470
|
}, { immediate: !0 }), (h, r) => {
|
|
2462
|
-
const w = Ae,
|
|
2463
|
-
return a.type === "checkbox" ? (d(), x(ye,
|
|
2471
|
+
const w = Ae, v = Oe, C = ae, F = oe, A = de, f = xe;
|
|
2472
|
+
return a.type === "checkbox" ? (d(), x(ye, _({
|
|
2464
2473
|
key: 0,
|
|
2465
2474
|
id: a.name,
|
|
2466
2475
|
label: a.fieldLabel
|
|
@@ -2480,61 +2489,61 @@ const Lt = {
|
|
|
2480
2489
|
V($(a.fieldLabel) + " ", 1),
|
|
2481
2490
|
h.required ? (d(), b("span", ma, "*")) : T("", !0)
|
|
2482
2491
|
], 10, ua),
|
|
2483
|
-
|
|
2484
|
-
a.type === "number" ? (d(), x(c(fe),
|
|
2492
|
+
S(h.$slots, "default", G(Y({ modelValue: t.value, updateModel: c(s), hasErrors: u.value })), () => [
|
|
2493
|
+
a.type === "number" ? (d(), x(c(fe), _({
|
|
2485
2494
|
key: 0,
|
|
2486
2495
|
id: a.name
|
|
2487
2496
|
}, h.$attrs, {
|
|
2497
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2488
2498
|
placeholder: a.placeholder,
|
|
2489
2499
|
"input-class": { "is-invalid": u.value },
|
|
2490
|
-
class: { "is-invalid": u.value },
|
|
2491
2500
|
onInput: i,
|
|
2492
2501
|
modelValue: t.value,
|
|
2493
2502
|
"onUpdate:modelValue": r[1] || (r[1] = (B) => t.value = B)
|
|
2494
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), x(w,
|
|
2503
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), x(w, _({
|
|
2495
2504
|
key: 1,
|
|
2496
2505
|
id: a.name
|
|
2497
2506
|
}, h.$attrs, {
|
|
2507
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2498
2508
|
placeholder: a.placeholder,
|
|
2499
|
-
class: { "is-invalid": u.value },
|
|
2500
2509
|
modelValue: t.value,
|
|
2501
2510
|
"onUpdate:modelValue": r[2] || (r[2] = (B) => t.value = B),
|
|
2502
2511
|
onInput: i,
|
|
2503
2512
|
onBlur: c(p)
|
|
2504
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), x(
|
|
2513
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), x(v, _({
|
|
2505
2514
|
key: 2,
|
|
2506
2515
|
id: a.name
|
|
2507
2516
|
}, h.$attrs, {
|
|
2517
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2508
2518
|
placeholder: a.placeholder,
|
|
2509
2519
|
mask: a.mask,
|
|
2510
|
-
class: { "is-invalid": u.value },
|
|
2511
2520
|
modelValue: t.value,
|
|
2512
2521
|
"onUpdate:modelValue": r[3] || (r[3] = (B) => t.value = B),
|
|
2513
2522
|
onComplete: i,
|
|
2514
2523
|
onBlur: c(p)
|
|
2515
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(C,
|
|
2524
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(C, _({
|
|
2516
2525
|
key: 3,
|
|
2517
2526
|
id: a.name
|
|
2518
2527
|
}, h.$attrs, {
|
|
2528
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2519
2529
|
placeholder: a.placeholder,
|
|
2520
|
-
class: { "is-invalid": u.value },
|
|
2521
2530
|
modelValue: t.value,
|
|
2522
2531
|
"onUpdate:modelValue": r[4] || (r[4] = (B) => t.value = B),
|
|
2523
2532
|
onInput: i,
|
|
2524
2533
|
onBlur: c(p)
|
|
2525
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(
|
|
2534
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(F, _({ key: 4 }, { ...a, ...h.$attrs }, {
|
|
2526
2535
|
modelValue: t.value,
|
|
2527
2536
|
"onUpdate:modelValue": r[5] || (r[5] = (B) => t.value = B),
|
|
2528
2537
|
class: { "is-invalid": u.value }
|
|
2529
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), x(A,
|
|
2538
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), x(A, _({ key: 5 }, { ...a, ...h.$attrs }, {
|
|
2530
2539
|
modelValue: t.value,
|
|
2531
2540
|
"onUpdate:modelValue": r[6] || (r[6] = (B) => t.value = B),
|
|
2532
2541
|
class: { "is-invalid": u.value }
|
|
2533
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(aa,
|
|
2542
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(aa, _({ key: 6 }, { ...a, ...h.$attrs }, {
|
|
2534
2543
|
modelValue: t.value,
|
|
2535
2544
|
"onUpdate:modelValue": r[7] || (r[7] = (B) => t.value = B),
|
|
2536
2545
|
class: { "is-invalid": u.value }
|
|
2537
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), x(
|
|
2546
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), x(f, _({ key: 7 }, { ...a, ...h.$attrs }, {
|
|
2538
2547
|
modelValue: t.value,
|
|
2539
2548
|
"onUpdate:modelValue": r[8] || (r[8] = (B) => t.value = B),
|
|
2540
2549
|
class: { "is-invalid": u.value }
|
|
@@ -2566,7 +2575,7 @@ const Lt = {
|
|
|
2566
2575
|
unstyled: { type: Boolean }
|
|
2567
2576
|
},
|
|
2568
2577
|
setup(e) {
|
|
2569
|
-
const t = e, a =
|
|
2578
|
+
const t = e, a = j(() => ({
|
|
2570
2579
|
root: [
|
|
2571
2580
|
"badge d-inline-flex align-items-center border me-1 p-1",
|
|
2572
2581
|
{
|
|
@@ -2586,9 +2595,9 @@ const Lt = {
|
|
|
2586
2595
|
}));
|
|
2587
2596
|
return (i, o) => {
|
|
2588
2597
|
const l = Ne;
|
|
2589
|
-
return d(), x(l,
|
|
2590
|
-
default:
|
|
2591
|
-
(d(!0), b(U, null, L(i.$slots, (n, s) =>
|
|
2598
|
+
return d(), x(l, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2599
|
+
default: g(() => [
|
|
2600
|
+
(d(!0), b(U, null, L(i.$slots, (n, s) => S(i.$slots, s, { slot: s })), 256))
|
|
2592
2601
|
]),
|
|
2593
2602
|
_: 3
|
|
2594
2603
|
}, 16, ["pt"]);
|
|
@@ -2610,7 +2619,7 @@ const Lt = {
|
|
|
2610
2619
|
unstyled: { type: Boolean }
|
|
2611
2620
|
},
|
|
2612
2621
|
setup(e) {
|
|
2613
|
-
const t = e, a =
|
|
2622
|
+
const t = e, a = j(() => t.striped ? "progress-bar-striped" : null), i = j(() => t.animate ? "progress-bar-animated" : null), o = j(() => {
|
|
2614
2623
|
switch (t.severity) {
|
|
2615
2624
|
case "brand":
|
|
2616
2625
|
return "bg-brand";
|
|
@@ -2631,7 +2640,7 @@ const Lt = {
|
|
|
2631
2640
|
default:
|
|
2632
2641
|
return "bg-primary";
|
|
2633
2642
|
}
|
|
2634
|
-
}), l =
|
|
2643
|
+
}), l = j(() => ({
|
|
2635
2644
|
root: {
|
|
2636
2645
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2637
2646
|
},
|
|
@@ -2641,9 +2650,9 @@ const Lt = {
|
|
|
2641
2650
|
}));
|
|
2642
2651
|
return (n, s) => {
|
|
2643
2652
|
const p = Ue;
|
|
2644
|
-
return d(), x(p,
|
|
2645
|
-
default:
|
|
2646
|
-
|
|
2653
|
+
return d(), x(p, _({ ...n.$attrs, ...t }, { pt: l.value }), {
|
|
2654
|
+
default: g(() => [
|
|
2655
|
+
S(n.$slots, "default")
|
|
2647
2656
|
]),
|
|
2648
2657
|
_: 3
|
|
2649
2658
|
}, 16, ["pt"]);
|
|
@@ -2963,10 +2972,10 @@ var va = /* @__PURE__ */ z({
|
|
|
2963
2972
|
},
|
|
2964
2973
|
wrapText(e, t, a, i, o, l) {
|
|
2965
2974
|
const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2966
|
-
var p = t.split(n).filter((
|
|
2967
|
-
for (let
|
|
2968
|
-
for (var u = p[
|
|
2969
|
-
var w = h + u[r] + " ",
|
|
2975
|
+
var p = t.split(n).filter((F) => F.length > 0);
|
|
2976
|
+
for (let F = 0; F < p.length; F++) {
|
|
2977
|
+
for (var u = p[F].split(s).filter((A) => A.length > 0), h = "", r = 0; r < u.length; r++) {
|
|
2978
|
+
var w = h + u[r] + " ", v = e.measureText(w), C = v.width;
|
|
2970
2979
|
C > o && 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 = u[r] + " ", i += l) : h = w;
|
|
2971
2980
|
}
|
|
2972
2981
|
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 += u.length > 0 ? l : 0;
|
|
@@ -3065,11 +3074,11 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3065
3074
|
return (h, r) => {
|
|
3066
3075
|
const w = q;
|
|
3067
3076
|
return d(), b("div", fa, [
|
|
3068
|
-
k(c(va),
|
|
3077
|
+
k(c(va), _({
|
|
3069
3078
|
ref_key: "drawingCanvas",
|
|
3070
3079
|
ref: o,
|
|
3071
3080
|
image: l.value,
|
|
3072
|
-
"onUpdate:image": r[0] || (r[0] = (
|
|
3081
|
+
"onUpdate:image": r[0] || (r[0] = (v) => l.value = v),
|
|
3073
3082
|
"data-cy": "drawing-canvas",
|
|
3074
3083
|
class: "border canvas"
|
|
3075
3084
|
}, { ...h.$attrs }, {
|
|
@@ -3085,7 +3094,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3085
3094
|
outlined: "",
|
|
3086
3095
|
"data-cy": "undo-button"
|
|
3087
3096
|
}, {
|
|
3088
|
-
default:
|
|
3097
|
+
default: g(() => r[1] || (r[1] = [
|
|
3089
3098
|
V("Undo")
|
|
3090
3099
|
])),
|
|
3091
3100
|
_: 1,
|
|
@@ -3097,7 +3106,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3097
3106
|
outlined: "",
|
|
3098
3107
|
"data-cy": "redo-button"
|
|
3099
3108
|
}, {
|
|
3100
|
-
default:
|
|
3109
|
+
default: g(() => r[2] || (r[2] = [
|
|
3101
3110
|
V("Redo")
|
|
3102
3111
|
])),
|
|
3103
3112
|
_: 1,
|
|
@@ -3109,7 +3118,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3109
3118
|
outlined: "",
|
|
3110
3119
|
"data-cy": "clear-button"
|
|
3111
3120
|
}, {
|
|
3112
|
-
default:
|
|
3121
|
+
default: g(() => r[3] || (r[3] = [
|
|
3113
3122
|
V("Clear")
|
|
3114
3123
|
])),
|
|
3115
3124
|
_: 1,
|
|
@@ -3121,7 +3130,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3121
3130
|
class: "ms-auto",
|
|
3122
3131
|
"data-cy": "save-button"
|
|
3123
3132
|
}, {
|
|
3124
|
-
default:
|
|
3133
|
+
default: g(() => r[4] || (r[4] = [
|
|
3125
3134
|
V("Save")
|
|
3126
3135
|
])),
|
|
3127
3136
|
_: 1,
|
|
@@ -3139,11 +3148,11 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3139
3148
|
},
|
|
3140
3149
|
setup(e) {
|
|
3141
3150
|
const t = e;
|
|
3142
|
-
return (a, i) => (d(), b("div",
|
|
3151
|
+
return (a, i) => (d(), b("div", _(a.$attrs, {
|
|
3143
3152
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3144
3153
|
}), [
|
|
3145
3154
|
m("span", ba, [
|
|
3146
|
-
|
|
3155
|
+
S(a.$slots, "default")
|
|
3147
3156
|
])
|
|
3148
3157
|
], 16));
|
|
3149
3158
|
}
|
|
@@ -3165,7 +3174,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3165
3174
|
unstyled: { type: Boolean }
|
|
3166
3175
|
},
|
|
3167
3176
|
setup(e) {
|
|
3168
|
-
const t = e, a =
|
|
3177
|
+
const t = e, a = j(() => ({
|
|
3169
3178
|
header: {
|
|
3170
3179
|
class: [
|
|
3171
3180
|
"p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
|
|
@@ -3195,15 +3204,15 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3195
3204
|
})
|
|
3196
3205
|
}));
|
|
3197
3206
|
return (i, o) => (d(), x(c(Ee), { value: i.currentStep }, {
|
|
3198
|
-
default:
|
|
3207
|
+
default: g(() => [
|
|
3199
3208
|
k(c(qe), null, {
|
|
3200
|
-
default:
|
|
3201
|
-
(d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Le),
|
|
3209
|
+
default: g(() => [
|
|
3210
|
+
(d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Le), _({
|
|
3202
3211
|
key: l.value,
|
|
3203
3212
|
value: l.value,
|
|
3204
3213
|
disabled: l.disabled
|
|
3205
3214
|
}, { ref_for: !0 }, { ...i.$attrs }, { pt: a.value }), {
|
|
3206
|
-
default:
|
|
3215
|
+
default: g(() => [
|
|
3207
3216
|
i.showStepLabel ? (d(), b("div", ya, $(l.label), 1)) : T("", !0)
|
|
3208
3217
|
]),
|
|
3209
3218
|
_: 2
|
|
@@ -3212,13 +3221,13 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3212
3221
|
_: 1
|
|
3213
3222
|
}),
|
|
3214
3223
|
k(c(He), null, {
|
|
3215
|
-
default:
|
|
3224
|
+
default: g(() => [
|
|
3216
3225
|
(d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Re), {
|
|
3217
3226
|
key: l.value,
|
|
3218
3227
|
value: l.value
|
|
3219
3228
|
}, {
|
|
3220
|
-
default:
|
|
3221
|
-
|
|
3229
|
+
default: g(() => [
|
|
3230
|
+
S(i.$slots, "step" + l.value)
|
|
3222
3231
|
]),
|
|
3223
3232
|
_: 2
|
|
3224
3233
|
}, 1032, ["value"]))), 128))
|
|
@@ -3238,7 +3247,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3238
3247
|
selected: { type: Boolean, default: !1 }
|
|
3239
3248
|
},
|
|
3240
3249
|
setup(e) {
|
|
3241
|
-
const t = e, a =
|
|
3250
|
+
const t = e, a = j(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = j(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
3242
3251
|
return (o, l) => {
|
|
3243
3252
|
const n = q;
|
|
3244
3253
|
return t.clickable ? (d(), x(n, {
|
|
@@ -3248,9 +3257,9 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3248
3257
|
unstyled: "",
|
|
3249
3258
|
"data-cy": "button-tile"
|
|
3250
3259
|
}, {
|
|
3251
|
-
default:
|
|
3260
|
+
default: g(() => [
|
|
3252
3261
|
m("div", xa, [
|
|
3253
|
-
|
|
3262
|
+
S(o.$slots, "default", {}, () => [
|
|
3254
3263
|
l[0] || (l[0] = V("Tile Content"))
|
|
3255
3264
|
])
|
|
3256
3265
|
])
|
|
@@ -3262,7 +3271,7 @@ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1
|
|
|
3262
3271
|
"data-cy": "tile"
|
|
3263
3272
|
}, [
|
|
3264
3273
|
m("div", ha, [
|
|
3265
|
-
|
|
3274
|
+
S(o.$slots, "default", {}, () => [
|
|
3266
3275
|
l[1] || (l[1] = V("Tile Content"))
|
|
3267
3276
|
])
|
|
3268
3277
|
])
|
|
@@ -3290,7 +3299,7 @@ const wa = {
|
|
|
3290
3299
|
setup(e, { emit: t }) {
|
|
3291
3300
|
const a = t, i = e, o = (n) => {
|
|
3292
3301
|
a("update:perPage", n.value);
|
|
3293
|
-
}, l =
|
|
3302
|
+
}, l = j(() => {
|
|
3294
3303
|
const n = Math.ceil(i.total / i.perPage);
|
|
3295
3304
|
return `${n} ${ee(n, "page")}`;
|
|
3296
3305
|
});
|
|
@@ -3311,10 +3320,10 @@ const wa = {
|
|
|
3311
3320
|
])) : T("", !0)
|
|
3312
3321
|
]));
|
|
3313
3322
|
}
|
|
3314
|
-
}),
|
|
3323
|
+
}), Sa = { class: "position-relative" }, Fa = { "data-cy": "above-table-slot" }, Ca = { class: "d-flex w-100" }, Ta = {
|
|
3315
3324
|
class: "mx-auto",
|
|
3316
3325
|
"data-cy": "empty-message"
|
|
3317
|
-
}, za = { class: "d-flex" }, Pa = { class: "d-flex align-items-end mb-2" },
|
|
3326
|
+
}, za = { class: "d-flex" }, Pa = { class: "d-flex align-items-end mb-2" }, _a = { key: 0 }, ja = { class: "ms-auto" }, $o = /* @__PURE__ */ z({
|
|
3318
3327
|
__name: "ForgeTable",
|
|
3319
3328
|
props: {
|
|
3320
3329
|
value: {},
|
|
@@ -3409,13 +3418,13 @@ const wa = {
|
|
|
3409
3418
|
sortField: "",
|
|
3410
3419
|
total: i.totalRecords ?? i.value.length
|
|
3411
3420
|
});
|
|
3412
|
-
W(() => i.perPage, (
|
|
3413
|
-
|
|
3421
|
+
W(() => i.perPage, (f) => {
|
|
3422
|
+
f && (n.value = f, s.value.perPage = f);
|
|
3414
3423
|
});
|
|
3415
|
-
const p =
|
|
3416
|
-
const
|
|
3417
|
-
return `${
|
|
3418
|
-
}), h =
|
|
3424
|
+
const p = j(() => i.totalRecords ?? i.value.length), u = j(() => {
|
|
3425
|
+
const f = Math.ceil(p.value / n.value);
|
|
3426
|
+
return `${f} ${ee(f, "page")}`;
|
|
3427
|
+
}), h = j(() => ({
|
|
3419
3428
|
thead: () => ({
|
|
3420
3429
|
class: [
|
|
3421
3430
|
{
|
|
@@ -3442,30 +3451,30 @@ const wa = {
|
|
|
3442
3451
|
if (i.clearAll)
|
|
3443
3452
|
i.clearAll();
|
|
3444
3453
|
else
|
|
3445
|
-
for (const
|
|
3446
|
-
typeof i.filters[
|
|
3454
|
+
for (const f in i.filters)
|
|
3455
|
+
typeof i.filters[f] == "string" ? i.filters[f] = "" : i.filters[f].value = null;
|
|
3447
3456
|
C(i.filters);
|
|
3448
3457
|
}, w = () => {
|
|
3449
3458
|
o.value.exportCSV();
|
|
3450
|
-
},
|
|
3459
|
+
}, v = (f) => {
|
|
3451
3460
|
var B;
|
|
3452
|
-
s.value.sortDirection =
|
|
3453
|
-
}, C = (
|
|
3454
|
-
s.value.filters =
|
|
3455
|
-
},
|
|
3456
|
-
s.value.page =
|
|
3461
|
+
s.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((B = f.sortField) == null ? void 0 : B.toString()) ?? "", a("update:tableContext", s.value), a("sort", f);
|
|
3462
|
+
}, C = (f) => {
|
|
3463
|
+
s.value.filters = f, a("update:tableContext", s.value), a("update:filters", f);
|
|
3464
|
+
}, F = (f) => {
|
|
3465
|
+
s.value.page = f.page, a("update:tableContext", s.value), a("page", f);
|
|
3457
3466
|
}, A = () => {
|
|
3458
3467
|
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3459
3468
|
};
|
|
3460
|
-
return W(() => i.filters, (
|
|
3461
|
-
s.value.filters =
|
|
3462
|
-
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (
|
|
3463
|
-
m("span",
|
|
3464
|
-
|
|
3469
|
+
return W(() => i.filters, (f) => {
|
|
3470
|
+
s.value.filters = f, a("update:tableContext", s.value);
|
|
3471
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (f, B) => (d(), b("div", Sa, [
|
|
3472
|
+
m("span", Fa, [
|
|
3473
|
+
S(f.$slots, "above-table")
|
|
3465
3474
|
]),
|
|
3466
|
-
k(c(We),
|
|
3475
|
+
k(c(We), _({
|
|
3467
3476
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3468
|
-
}, { ...i, ...
|
|
3477
|
+
}, { ...i, ...f.$attrs }, {
|
|
3469
3478
|
pt: h.value,
|
|
3470
3479
|
rows: n.value,
|
|
3471
3480
|
"total-records": p.value,
|
|
@@ -3474,22 +3483,22 @@ const wa = {
|
|
|
3474
3483
|
ref: o,
|
|
3475
3484
|
"data-cy": "table",
|
|
3476
3485
|
"onUpdate:filters": C,
|
|
3477
|
-
onSort:
|
|
3478
|
-
onPage:
|
|
3486
|
+
onSort: v,
|
|
3487
|
+
onPage: F,
|
|
3479
3488
|
showHeaders: ""
|
|
3480
3489
|
}), ie({
|
|
3481
|
-
empty:
|
|
3490
|
+
empty: g(() => [
|
|
3482
3491
|
m("div", Ca, [
|
|
3483
|
-
m("h5", Ta, $(
|
|
3492
|
+
m("h5", Ta, $(f.emptyMessage ?? "No items Found."), 1)
|
|
3484
3493
|
])
|
|
3485
3494
|
]),
|
|
3486
|
-
header:
|
|
3495
|
+
header: g(() => [
|
|
3487
3496
|
m("div", {
|
|
3488
3497
|
class: P(i.loading ? "opacity-50" : "")
|
|
3489
3498
|
}, [
|
|
3490
3499
|
m("div", za, [
|
|
3491
3500
|
m("div", Pa, [
|
|
3492
|
-
|
|
3501
|
+
f.paginator && !f.legacyPaginationFooter ? (d(), b("span", _a, [
|
|
3493
3502
|
k(he, {
|
|
3494
3503
|
total: p.value,
|
|
3495
3504
|
"page-sizes": l.value,
|
|
@@ -3501,15 +3510,15 @@ const wa = {
|
|
|
3501
3510
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3502
3511
|
])) : T("", !0)
|
|
3503
3512
|
]),
|
|
3504
|
-
m("div",
|
|
3505
|
-
|
|
3513
|
+
m("div", ja, [
|
|
3514
|
+
f.showClearButton ? (d(), x(c(q), {
|
|
3506
3515
|
key: 0,
|
|
3507
3516
|
outlined: "",
|
|
3508
|
-
class: P(
|
|
3517
|
+
class: P(f.showExporterButton ? "me-2" : ""),
|
|
3509
3518
|
onClick: r,
|
|
3510
3519
|
"data-cy": "clear-all"
|
|
3511
3520
|
}, {
|
|
3512
|
-
default:
|
|
3521
|
+
default: g(() => [
|
|
3513
3522
|
k(c(I), {
|
|
3514
3523
|
icon: "bi:funnel-fill",
|
|
3515
3524
|
width: "24",
|
|
@@ -3520,13 +3529,13 @@ const wa = {
|
|
|
3520
3529
|
_: 1,
|
|
3521
3530
|
__: [2]
|
|
3522
3531
|
}, 8, ["class"])) : T("", !0),
|
|
3523
|
-
|
|
3532
|
+
f.showExporterButton ? (d(), x(c(q), {
|
|
3524
3533
|
key: 1,
|
|
3525
3534
|
outlined: "",
|
|
3526
3535
|
onClick: w,
|
|
3527
3536
|
"data-cy": "exporter"
|
|
3528
3537
|
}, {
|
|
3529
|
-
default:
|
|
3538
|
+
default: g(() => [
|
|
3530
3539
|
k(c(I), {
|
|
3531
3540
|
icon: "typcn:export",
|
|
3532
3541
|
width: "24",
|
|
@@ -3537,25 +3546,25 @@ const wa = {
|
|
|
3537
3546
|
_: 1,
|
|
3538
3547
|
__: [3]
|
|
3539
3548
|
})) : T("", !0),
|
|
3540
|
-
|
|
3549
|
+
S(f.$slots, "column-customiser")
|
|
3541
3550
|
])
|
|
3542
3551
|
])
|
|
3543
3552
|
], 2)
|
|
3544
3553
|
]),
|
|
3545
|
-
default:
|
|
3546
|
-
|
|
3554
|
+
default: g(() => [
|
|
3555
|
+
S(f.$slots, "default")
|
|
3547
3556
|
]),
|
|
3548
3557
|
_: 2
|
|
3549
3558
|
}, [
|
|
3550
|
-
L(
|
|
3559
|
+
L(f.$slots, (D, y) => ({
|
|
3551
3560
|
name: y,
|
|
3552
|
-
fn:
|
|
3553
|
-
|
|
3561
|
+
fn: g((O) => [
|
|
3562
|
+
S(f.$slots, y, G(Y(O || {})))
|
|
3554
3563
|
])
|
|
3555
3564
|
})),
|
|
3556
|
-
|
|
3565
|
+
f.legacyPaginationFooter ? {
|
|
3557
3566
|
name: "paginatorstart",
|
|
3558
|
-
fn:
|
|
3567
|
+
fn: g(() => [
|
|
3559
3568
|
m("span", {
|
|
3560
3569
|
class: P(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3561
3570
|
"data-cy": "legacy-page-size"
|
|
@@ -3572,9 +3581,9 @@ const wa = {
|
|
|
3572
3581
|
]),
|
|
3573
3582
|
key: "0"
|
|
3574
3583
|
} : void 0,
|
|
3575
|
-
|
|
3584
|
+
f.legacyPaginationFooter ? {
|
|
3576
3585
|
name: "paginatorend",
|
|
3577
|
-
fn:
|
|
3586
|
+
fn: g(() => [
|
|
3578
3587
|
m("span", {
|
|
3579
3588
|
"data-cy": "legacy-total",
|
|
3580
3589
|
class: P(i.loading ? "opacity-50" : "")
|
|
@@ -3588,7 +3597,7 @@ const wa = {
|
|
|
3588
3597
|
}), Ma = { class: "position-relative" }, Ia = { "data-cy": "above-table-slot" }, Va = { class: "d-flex w-100" }, Da = {
|
|
3589
3598
|
class: "mx-auto",
|
|
3590
3599
|
"data-cy": "empty-message"
|
|
3591
|
-
}, Oa = { class: "d-flex" }, Aa = { class: "d-flex align-items-end mb-2" }, Na = { key: 0 }, Ua = { class: "ms-auto" },
|
|
3600
|
+
}, Oa = { class: "d-flex" }, Aa = { class: "d-flex align-items-end mb-2" }, Na = { key: 0 }, Ua = { class: "ms-auto" }, So = /* @__PURE__ */ z({
|
|
3592
3601
|
__name: "ForgeTreeTable",
|
|
3593
3602
|
props: {
|
|
3594
3603
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3656,10 +3665,10 @@ const wa = {
|
|
|
3656
3665
|
sortDirection: "None",
|
|
3657
3666
|
sortField: "",
|
|
3658
3667
|
total: a.totalRecords ?? a.value.length
|
|
3659
|
-
}), u =
|
|
3668
|
+
}), u = j(() => a.totalRecords ?? a.value.length), h = j(() => {
|
|
3660
3669
|
const y = Math.ceil(u.value / l.value);
|
|
3661
3670
|
return `${y} ${ee(y, "page")}`;
|
|
3662
|
-
}), r =
|
|
3671
|
+
}), r = j(() => ({
|
|
3663
3672
|
root: "position-relative",
|
|
3664
3673
|
table: (y) => ({
|
|
3665
3674
|
class: [
|
|
@@ -3695,7 +3704,7 @@ const wa = {
|
|
|
3695
3704
|
]
|
|
3696
3705
|
}));
|
|
3697
3706
|
W(() => a.parentExpanderFullRow, (y) => {
|
|
3698
|
-
y ? w() :
|
|
3707
|
+
y ? w() : v();
|
|
3699
3708
|
});
|
|
3700
3709
|
const w = () => {
|
|
3701
3710
|
a.parentExpanderFullRow && setTimeout(
|
|
@@ -3713,7 +3722,7 @@ const wa = {
|
|
|
3713
3722
|
},
|
|
3714
3723
|
0
|
|
3715
3724
|
);
|
|
3716
|
-
},
|
|
3725
|
+
}, v = () => {
|
|
3717
3726
|
setTimeout(
|
|
3718
3727
|
() => {
|
|
3719
3728
|
const y = Array.from(
|
|
@@ -3736,12 +3745,12 @@ const wa = {
|
|
|
3736
3745
|
for (const y in a.filters)
|
|
3737
3746
|
typeof a.filters[y] == "string" ? a.filters[y] = "" : a.filters[y].value = null;
|
|
3738
3747
|
A(a.filters);
|
|
3739
|
-
},
|
|
3748
|
+
}, F = (y) => {
|
|
3740
3749
|
var O;
|
|
3741
3750
|
p.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((O = y.sortField) == null ? void 0 : O.toString()) ?? "", i("update:tableContext", p.value), i("sort", y), w();
|
|
3742
3751
|
}, A = (y) => {
|
|
3743
3752
|
p.value.filters = y, i("update:tableContext", p.value), i("update:filters", y), w();
|
|
3744
|
-
},
|
|
3753
|
+
}, f = (y) => {
|
|
3745
3754
|
p.value.page = s.value = y.page, D(), i("update:tableContext", p.value), i("page", y), w();
|
|
3746
3755
|
}, B = () => {
|
|
3747
3756
|
p.value.perPage = l.value, s.value = 0, p.value.page = s.value = Math.floor(n.value / l.value), D(), i("update:tableContext", p.value), w();
|
|
@@ -3758,9 +3767,9 @@ const wa = {
|
|
|
3758
3767
|
};
|
|
3759
3768
|
return (y, O) => (d(), b("div", Ma, [
|
|
3760
3769
|
m("span", Ia, [
|
|
3761
|
-
|
|
3770
|
+
S(y.$slots, "above-table")
|
|
3762
3771
|
]),
|
|
3763
|
-
k(c(Ge),
|
|
3772
|
+
k(c(Ge), _({
|
|
3764
3773
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3765
3774
|
}, { ...a, ...y.$attrs }, {
|
|
3766
3775
|
pt: r.value,
|
|
@@ -3768,18 +3777,18 @@ const wa = {
|
|
|
3768
3777
|
rows: y.paginator ? l.value : void 0,
|
|
3769
3778
|
"data-cy": "tree-table",
|
|
3770
3779
|
"onUpdate:filters": A,
|
|
3771
|
-
onSort:
|
|
3772
|
-
onPage:
|
|
3780
|
+
onSort: F,
|
|
3781
|
+
onPage: f,
|
|
3773
3782
|
onNodeExpand: O[2] || (O[2] = () => w()),
|
|
3774
3783
|
showHeaders: "",
|
|
3775
3784
|
first: n.value
|
|
3776
3785
|
}), ie({
|
|
3777
|
-
empty:
|
|
3786
|
+
empty: g(() => [
|
|
3778
3787
|
m("div", Va, [
|
|
3779
3788
|
m("h5", Da, $(y.emptyMessage ?? "No items Found."), 1)
|
|
3780
3789
|
])
|
|
3781
3790
|
]),
|
|
3782
|
-
header:
|
|
3791
|
+
header: g(() => [
|
|
3783
3792
|
m("div", {
|
|
3784
3793
|
class: P(a.loading ? "opacity-50" : "")
|
|
3785
3794
|
}, [
|
|
@@ -3804,7 +3813,7 @@ const wa = {
|
|
|
3804
3813
|
onClick: C,
|
|
3805
3814
|
"data-cy": "clear-all"
|
|
3806
3815
|
}, {
|
|
3807
|
-
default:
|
|
3816
|
+
default: g(() => [
|
|
3808
3817
|
k(c(I), {
|
|
3809
3818
|
icon: "bi:funnel-fill",
|
|
3810
3819
|
width: "24",
|
|
@@ -3815,25 +3824,25 @@ const wa = {
|
|
|
3815
3824
|
_: 1,
|
|
3816
3825
|
__: [3]
|
|
3817
3826
|
})) : T("", !0),
|
|
3818
|
-
|
|
3827
|
+
S(y.$slots, "column-customiser")
|
|
3819
3828
|
])
|
|
3820
3829
|
])
|
|
3821
3830
|
], 2)
|
|
3822
3831
|
]),
|
|
3823
|
-
default:
|
|
3824
|
-
|
|
3832
|
+
default: g(() => [
|
|
3833
|
+
S(y.$slots, "default")
|
|
3825
3834
|
]),
|
|
3826
3835
|
_: 2
|
|
3827
3836
|
}, [
|
|
3828
3837
|
L(y.$slots, (R, ve) => ({
|
|
3829
3838
|
name: ve,
|
|
3830
|
-
fn:
|
|
3831
|
-
|
|
3839
|
+
fn: g((Be) => [
|
|
3840
|
+
S(y.$slots, ve, G(Y(Be || {})))
|
|
3832
3841
|
])
|
|
3833
3842
|
})),
|
|
3834
3843
|
y.legacyPaginationFooter ? {
|
|
3835
3844
|
name: "paginatorstart",
|
|
3836
|
-
fn:
|
|
3845
|
+
fn: g(() => [
|
|
3837
3846
|
m("span", {
|
|
3838
3847
|
class: P(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
3839
3848
|
"data-cy": "legacy-page-size"
|
|
@@ -3852,7 +3861,7 @@ const wa = {
|
|
|
3852
3861
|
} : void 0,
|
|
3853
3862
|
y.legacyPaginationFooter ? {
|
|
3854
3863
|
name: "paginatorend",
|
|
3855
|
-
fn:
|
|
3864
|
+
fn: g(() => [
|
|
3856
3865
|
m("span", {
|
|
3857
3866
|
"data-cy": "legacy-total",
|
|
3858
3867
|
class: P(a.loading ? "opacity-50" : "")
|
|
@@ -3863,7 +3872,7 @@ const wa = {
|
|
|
3863
3872
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3864
3873
|
]));
|
|
3865
3874
|
}
|
|
3866
|
-
}), La = { class: "d-flex position-relative" }, Ea = { class: "d-flex w-100" },
|
|
3875
|
+
}), La = { class: "d-flex position-relative" }, Ea = { class: "d-flex w-100" }, Fo = /* @__PURE__ */ z({
|
|
3867
3876
|
__name: "ForgeFilterHeader",
|
|
3868
3877
|
props: /* @__PURE__ */ E({
|
|
3869
3878
|
dataType: {},
|
|
@@ -3895,19 +3904,19 @@ const wa = {
|
|
|
3895
3904
|
return (o, l) => {
|
|
3896
3905
|
const n = fe, s = q;
|
|
3897
3906
|
return d(), b("div", La, [
|
|
3898
|
-
o.dataType === "numeric" ? (d(), x(n,
|
|
3907
|
+
o.dataType === "numeric" ? (d(), x(n, _({
|
|
3899
3908
|
key: 0,
|
|
3900
3909
|
modelValue: t.value,
|
|
3901
3910
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => t.value = p),
|
|
3902
3911
|
modelModifiers: { trim: !0 }
|
|
3903
|
-
}, o.$attrs), null, 16, ["modelValue"])) : o.dataType === "date" ? (d(), x(xe,
|
|
3912
|
+
}, o.$attrs), null, 16, ["modelValue"])) : o.dataType === "date" ? (d(), x(xe, _({
|
|
3904
3913
|
key: 1,
|
|
3905
3914
|
modelValue: t.value,
|
|
3906
3915
|
"onUpdate:modelValue": l[1] || (l[1] = (p) => t.value = p)
|
|
3907
3916
|
}, o.$attrs, {
|
|
3908
3917
|
"show-icon": !1,
|
|
3909
3918
|
"show-on-focus": !0
|
|
3910
|
-
}), null, 16, ["modelValue"])) : o.dataType === "select" ? (d(), x(c(oe),
|
|
3919
|
+
}), null, 16, ["modelValue"])) : o.dataType === "select" ? (d(), x(c(oe), _({
|
|
3911
3920
|
key: 2,
|
|
3912
3921
|
modelValue: t.value,
|
|
3913
3922
|
"onUpdate:modelValue": l[2] || (l[2] = (p) => t.value = p)
|
|
@@ -3916,7 +3925,7 @@ const wa = {
|
|
|
3916
3925
|
"option-value": o.optionValue,
|
|
3917
3926
|
"option-label": o.optionLabel
|
|
3918
3927
|
}), {
|
|
3919
|
-
value:
|
|
3928
|
+
value: g(({ value: p, placeholder: u }) => [
|
|
3920
3929
|
m("div", Ea, [
|
|
3921
3930
|
m("span", {
|
|
3922
3931
|
class: P({ "filter-placeholder": p === null })
|
|
@@ -3927,7 +3936,7 @@ const wa = {
|
|
|
3927
3936
|
size: "small",
|
|
3928
3937
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3929
3938
|
}, {
|
|
3930
|
-
default:
|
|
3939
|
+
default: g(() => [
|
|
3931
3940
|
k(c(I), {
|
|
3932
3941
|
icon: "bi:x",
|
|
3933
3942
|
width: "1rem",
|
|
@@ -3940,7 +3949,7 @@ const wa = {
|
|
|
3940
3949
|
])
|
|
3941
3950
|
]),
|
|
3942
3951
|
_: 1
|
|
3943
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : o.dataType === "multiselect" ? (d(), x(c(de),
|
|
3952
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : o.dataType === "multiselect" ? (d(), x(c(de), _({
|
|
3944
3953
|
key: 3,
|
|
3945
3954
|
modelValue: t.value,
|
|
3946
3955
|
"onUpdate:modelValue": l[3] || (l[3] = (p) => t.value = p)
|
|
@@ -3950,7 +3959,7 @@ const wa = {
|
|
|
3950
3959
|
"option-label": o.optionLabel,
|
|
3951
3960
|
"option-value": o.optionValue,
|
|
3952
3961
|
filter: ""
|
|
3953
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), x(c(ae),
|
|
3962
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), x(c(ae), _({
|
|
3954
3963
|
key: 4,
|
|
3955
3964
|
modelValue: t.value,
|
|
3956
3965
|
"onUpdate:modelValue": l[4] || (l[4] = (p) => t.value = p),
|
|
@@ -3962,7 +3971,7 @@ const wa = {
|
|
|
3962
3971
|
size: "small",
|
|
3963
3972
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3964
3973
|
}, {
|
|
3965
|
-
default:
|
|
3974
|
+
default: g(() => [
|
|
3966
3975
|
k(c(I), {
|
|
3967
3976
|
icon: "bi:x",
|
|
3968
3977
|
width: "1rem",
|
|
@@ -5176,13 +5185,13 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5176
5185
|
}),
|
|
5177
5186
|
emits: ["update:modelValue"],
|
|
5178
5187
|
setup(e) {
|
|
5179
|
-
const t = N(e, "modelValue"), a = M(), i = (n) => a.value.toggle(n), o =
|
|
5188
|
+
const t = N(e, "modelValue"), a = M(), i = (n) => a.value.toggle(n), o = j(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5180
5189
|
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
5181
5190
|
};
|
|
5182
5191
|
return (n, s) => {
|
|
5183
5192
|
const p = q;
|
|
5184
5193
|
return d(), b("div", Ya, [
|
|
5185
|
-
|
|
5194
|
+
S(n.$slots, "message"),
|
|
5186
5195
|
m("div", null, [
|
|
5187
5196
|
m("input", {
|
|
5188
5197
|
id: "file-input",
|
|
@@ -5198,7 +5207,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5198
5207
|
id: "file-input-button",
|
|
5199
5208
|
for: "file-input"
|
|
5200
5209
|
}, [
|
|
5201
|
-
|
|
5210
|
+
S(n.$slots, "button-content", {}, () => [
|
|
5202
5211
|
k(c(I), {
|
|
5203
5212
|
icon: "bi:upload",
|
|
5204
5213
|
class: "me-2",
|
|
@@ -5216,7 +5225,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5216
5225
|
id: "accepted-file-types",
|
|
5217
5226
|
onClick: i
|
|
5218
5227
|
}, {
|
|
5219
|
-
default:
|
|
5228
|
+
default: g(() => s[2] || (s[2] = [
|
|
5220
5229
|
V("Accepted File Types")
|
|
5221
5230
|
])),
|
|
5222
5231
|
_: 1,
|
|
@@ -5226,7 +5235,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5226
5235
|
ref_key: "acceptedFilesOverlay",
|
|
5227
5236
|
ref: a
|
|
5228
5237
|
}, {
|
|
5229
|
-
default:
|
|
5238
|
+
default: g(() => [
|
|
5230
5239
|
m("div", Ka, $(n.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
5231
5240
|
]),
|
|
5232
5241
|
_: 1
|
|
@@ -5253,7 +5262,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5253
5262
|
}),
|
|
5254
5263
|
emits: ["update:modelValue"],
|
|
5255
5264
|
setup(e) {
|
|
5256
|
-
const t = N(e, "modelValue"), a = M(!1), i =
|
|
5265
|
+
const t = N(e, "modelValue"), a = M(!1), i = j(() => e.maxFileInput <= t.value.length), o = (l) => {
|
|
5257
5266
|
a.value = !1, l.dataTransfer.files.length > e.maxFileInput || i.value ? l.preventDefault() : t.value = ke([...l.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
|
|
5258
5267
|
};
|
|
5259
5268
|
return (l, n) => (d(), b("div", {
|
|
@@ -5272,7 +5281,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5272
5281
|
}),
|
|
5273
5282
|
n[2] || (n[2] = V(" Drag and drop files here "))
|
|
5274
5283
|
])) : (d(), b("div", Qa, [
|
|
5275
|
-
|
|
5284
|
+
S(l.$slots, "default")
|
|
5276
5285
|
]))
|
|
5277
5286
|
], 34));
|
|
5278
5287
|
}
|
|
@@ -5285,7 +5294,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5285
5294
|
uploadStatus: {}
|
|
5286
5295
|
},
|
|
5287
5296
|
setup(e) {
|
|
5288
|
-
const t = e, a =
|
|
5297
|
+
const t = e, a = j(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = j(() => {
|
|
5289
5298
|
switch (t.uploadStatus) {
|
|
5290
5299
|
case "InvalidFileType":
|
|
5291
5300
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -5314,7 +5323,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5314
5323
|
severity: a.value,
|
|
5315
5324
|
class: "mb-0 w-75 ms-auto"
|
|
5316
5325
|
}, {
|
|
5317
|
-
default:
|
|
5326
|
+
default: g(() => [
|
|
5318
5327
|
V($(i.value), 1)
|
|
5319
5328
|
]),
|
|
5320
5329
|
_: 1
|
|
@@ -5350,25 +5359,25 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5350
5359
|
}),
|
|
5351
5360
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5352
5361
|
setup(e, { emit: t }) {
|
|
5353
|
-
const a = N(e, "file"), i = N(e, "blobFileName"), o = N(e, "uploadStatus"), l = t, n = M(a.value.name), s = M(""), p = M(0), u = M(), h =
|
|
5362
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), o = N(e, "uploadStatus"), l = t, n = M(a.value.name), s = M(""), p = M(0), u = M(), h = j(() => e.acceptedFileTypes.some(({ fileType: f }) => f === a.value.type)), r = j(() => a.value.size <= e.maxFileSize), w = j(() => a.value.type ? a.value.type : Ga().getType(a.value.name)), v = () => {
|
|
5354
5363
|
n.value != null && (C(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5355
5364
|
}, C = () => {
|
|
5356
|
-
let
|
|
5357
|
-
|
|
5358
|
-
},
|
|
5365
|
+
let f = n.value.split("."), B = qa.getExtension(w.value), D = n.value.split(".").pop();
|
|
5366
|
+
f.length === 1 ? D && D.length > 0 && (n.value = [n.value, B].join(".")) : f.length > 1 && D !== B && (n.value = n.value.replace(D, B));
|
|
5367
|
+
}, F = async () => {
|
|
5359
5368
|
if (!h.value || !r.value) {
|
|
5360
5369
|
o.value = h.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5361
5370
|
return;
|
|
5362
5371
|
}
|
|
5363
5372
|
o.value = "Preparing", u.value = new AbortController();
|
|
5364
|
-
const [
|
|
5365
|
-
if (!
|
|
5373
|
+
const [f, B] = await e.getFileUrlAction(a.value.name);
|
|
5374
|
+
if (!f) {
|
|
5366
5375
|
o.value = "Failed";
|
|
5367
5376
|
return;
|
|
5368
5377
|
}
|
|
5369
5378
|
try {
|
|
5370
5379
|
o.value = "Uploading";
|
|
5371
|
-
const D = new ge(
|
|
5380
|
+
const D = new ge(f), y = {
|
|
5372
5381
|
abortSignal: u.value.signal,
|
|
5373
5382
|
onProgress: (O) => p.value = O.loadedBytes,
|
|
5374
5383
|
blobHTTPHeaders: {
|
|
@@ -5377,7 +5386,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5377
5386
|
},
|
|
5378
5387
|
tags: { temp: "true" }
|
|
5379
5388
|
};
|
|
5380
|
-
await D.uploadData(a.value, y), s.value =
|
|
5389
|
+
await D.uploadData(a.value, y), s.value = f, o.value = "Uploaded", i.value = B;
|
|
5381
5390
|
} catch (D) {
|
|
5382
5391
|
if (D.name === "AbortError") {
|
|
5383
5392
|
o.value = "Aborted";
|
|
@@ -5389,8 +5398,8 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5389
5398
|
await Ra(o.value, s.value), l("deleted", a.value);
|
|
5390
5399
|
};
|
|
5391
5400
|
return ne(() => {
|
|
5392
|
-
e.autoUploadToBlob && o.value != "Uploaded" &&
|
|
5393
|
-
}), (
|
|
5401
|
+
e.autoUploadToBlob && o.value != "Uploaded" && F();
|
|
5402
|
+
}), (f, B) => {
|
|
5394
5403
|
const D = q;
|
|
5395
5404
|
return d(), b("div", {
|
|
5396
5405
|
class: "py-4 px-3 d-flex",
|
|
@@ -5415,14 +5424,14 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5415
5424
|
]),
|
|
5416
5425
|
m("div", oi, [
|
|
5417
5426
|
m("div", null, [
|
|
5418
|
-
|
|
5427
|
+
f.editableFileName ? (d(), x(Kt, {
|
|
5419
5428
|
key: 0,
|
|
5420
5429
|
id: "edit-file-name",
|
|
5421
5430
|
modelValue: n.value,
|
|
5422
5431
|
"onUpdate:modelValue": B[0] || (B[0] = (y) => n.value = y),
|
|
5423
|
-
rules:
|
|
5432
|
+
rules: f.customFileNameRules,
|
|
5424
5433
|
name: a.value.name,
|
|
5425
|
-
"complete-action":
|
|
5434
|
+
"complete-action": v
|
|
5426
5435
|
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", li, $(n.value), 1))
|
|
5427
5436
|
]),
|
|
5428
5437
|
m("span", ni, "File type: " + $(a.value.type.split("/").pop()), 1),
|
|
@@ -5434,14 +5443,14 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5434
5443
|
"file-size": a.value.size,
|
|
5435
5444
|
"upload-status": o.value,
|
|
5436
5445
|
"bytes-uploaded": p.value,
|
|
5437
|
-
"max-file-size":
|
|
5446
|
+
"max-file-size": f.maxFileSize
|
|
5438
5447
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
5439
5448
|
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (d(), x(D, {
|
|
5440
5449
|
key: 0,
|
|
5441
5450
|
link: "",
|
|
5442
|
-
onClick:
|
|
5451
|
+
onClick: F
|
|
5443
5452
|
}, {
|
|
5444
|
-
default:
|
|
5453
|
+
default: g(() => [
|
|
5445
5454
|
k(c(I), {
|
|
5446
5455
|
icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5447
5456
|
}, null, 8, ["icon"])
|
|
@@ -5453,7 +5462,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5453
5462
|
link: "",
|
|
5454
5463
|
onClick: B[1] || (B[1] = (y) => u.value.abort())
|
|
5455
5464
|
}, {
|
|
5456
|
-
default:
|
|
5465
|
+
default: g(() => [
|
|
5457
5466
|
k(c(I), { icon: "bi:x-circle-fill" })
|
|
5458
5467
|
]),
|
|
5459
5468
|
_: 1
|
|
@@ -5463,7 +5472,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5463
5472
|
onClick: A,
|
|
5464
5473
|
id: "delete-button"
|
|
5465
5474
|
}, {
|
|
5466
|
-
default:
|
|
5475
|
+
default: g(() => [
|
|
5467
5476
|
k(c(I), { icon: "bi:trash" })
|
|
5468
5477
|
]),
|
|
5469
5478
|
_: 1
|
|
@@ -5515,12 +5524,12 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5515
5524
|
id: "max-files-alert",
|
|
5516
5525
|
severity: "danger"
|
|
5517
5526
|
}, {
|
|
5518
|
-
default:
|
|
5527
|
+
default: g(() => [
|
|
5519
5528
|
V($(o.maxFileWarning), 1)
|
|
5520
5529
|
]),
|
|
5521
5530
|
_: 1
|
|
5522
5531
|
})) : T("", !0),
|
|
5523
|
-
k(Za,
|
|
5532
|
+
k(Za, _(a, {
|
|
5524
5533
|
modelValue: t.value,
|
|
5525
5534
|
"onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n)
|
|
5526
5535
|
}), null, 16, ["modelValue"]),
|
|
@@ -5532,9 +5541,9 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5532
5541
|
modelValue: t.value,
|
|
5533
5542
|
"onUpdate:modelValue": l[1] || (l[1] = (n) => t.value = n)
|
|
5534
5543
|
}, {
|
|
5535
|
-
default:
|
|
5544
|
+
default: g(() => [
|
|
5536
5545
|
(d(!0), b(U, null, L(t.value, ({ file: n }, s) => (d(), b("div", null, [
|
|
5537
|
-
(d(), x(di,
|
|
5546
|
+
(d(), x(di, _({
|
|
5538
5547
|
key: n.name,
|
|
5539
5548
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5540
5549
|
file: t.value[s].file,
|
|
@@ -5571,7 +5580,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5571
5580
|
onClick: o,
|
|
5572
5581
|
class: "ms-2"
|
|
5573
5582
|
}, {
|
|
5574
|
-
default:
|
|
5583
|
+
default: g(() => [
|
|
5575
5584
|
m("div", gi, [
|
|
5576
5585
|
m("div", bi, [
|
|
5577
5586
|
k(c(I), { icon: "bi:layout-three-columns" })
|
|
@@ -5593,7 +5602,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5593
5602
|
onHide: n[0] || (n[0] = () => i.value = !1),
|
|
5594
5603
|
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5595
5604
|
}, {
|
|
5596
|
-
default:
|
|
5605
|
+
default: g(() => [
|
|
5597
5606
|
m("div", xi, [
|
|
5598
5607
|
(d(!0), b(U, null, L(t.value, (s, p) => (d(), b("div", {
|
|
5599
5608
|
class: P(["d-flex cursor-pointer", {
|
|
@@ -5624,7 +5633,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5624
5633
|
return (t, a) => {
|
|
5625
5634
|
const i = Je;
|
|
5626
5635
|
return d(), x(i, G(Y({ ...t.$attrs })), ie({
|
|
5627
|
-
toggleicon:
|
|
5636
|
+
toggleicon: g(({ collapsed: o }) => [
|
|
5628
5637
|
o ? (d(), x(c(I), {
|
|
5629
5638
|
key: 0,
|
|
5630
5639
|
"data-cy": "message-icon",
|
|
@@ -5640,8 +5649,8 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5640
5649
|
}, [
|
|
5641
5650
|
L(t.$slots, (o, l) => ({
|
|
5642
5651
|
name: l,
|
|
5643
|
-
fn:
|
|
5644
|
-
|
|
5652
|
+
fn: g((n) => [
|
|
5653
|
+
S(t.$slots, l, G(Y(n)))
|
|
5645
5654
|
])
|
|
5646
5655
|
}))
|
|
5647
5656
|
]), 1040);
|
|
@@ -5653,7 +5662,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5653
5662
|
severity: { default: "primary" }
|
|
5654
5663
|
},
|
|
5655
5664
|
setup(e) {
|
|
5656
|
-
const t = e, a =
|
|
5665
|
+
const t = e, a = j(() => ({
|
|
5657
5666
|
root: (i) => ({
|
|
5658
5667
|
class: [
|
|
5659
5668
|
"btn",
|
|
@@ -5674,7 +5683,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5674
5683
|
]
|
|
5675
5684
|
})
|
|
5676
5685
|
}));
|
|
5677
|
-
return (i, o) => (d(), x(c(Ke),
|
|
5686
|
+
return (i, o) => (d(), x(c(Ke), _({ ...i.$attrs, ...t }, {
|
|
5678
5687
|
severity: t.severity,
|
|
5679
5688
|
pt: a.value
|
|
5680
5689
|
}), null, 16, ["severity", "pt"]));
|
|
@@ -5726,10 +5735,10 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5726
5735
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5727
5736
|
]));
|
|
5728
5737
|
}
|
|
5729
|
-
}),
|
|
5738
|
+
}), _o = /* @__PURE__ */ z({
|
|
5730
5739
|
__name: "ForgeConfirmPopup",
|
|
5731
5740
|
setup(e) {
|
|
5732
|
-
const t =
|
|
5741
|
+
const t = j(() => ({
|
|
5733
5742
|
root: [
|
|
5734
5743
|
"card w-fit-content position-absolute"
|
|
5735
5744
|
],
|
|
@@ -5740,9 +5749,9 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5740
5749
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5741
5750
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5742
5751
|
}));
|
|
5743
|
-
return (a, i) => (d(), x(c(Ze),
|
|
5744
|
-
default:
|
|
5745
|
-
(d(!0), b(U, null, L(a.$slots, (o, l) =>
|
|
5752
|
+
return (a, i) => (d(), x(c(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5753
|
+
default: g(() => [
|
|
5754
|
+
(d(!0), b(U, null, L(a.$slots, (o, l) => S(a.$slots, l, { slot: l })), 256))
|
|
5746
5755
|
]),
|
|
5747
5756
|
_: 3
|
|
5748
5757
|
}, 16, ["pt"]));
|
|
@@ -5753,7 +5762,7 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5753
5762
|
}, Bi = {
|
|
5754
5763
|
key: 0,
|
|
5755
5764
|
class: "mb-1"
|
|
5756
|
-
},
|
|
5765
|
+
}, jo = /* @__PURE__ */ z({
|
|
5757
5766
|
__name: "ForgePickList",
|
|
5758
5767
|
props: /* @__PURE__ */ E({
|
|
5759
5768
|
filterBy: {},
|
|
@@ -5792,53 +5801,59 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5792
5801
|
}),
|
|
5793
5802
|
emits: ["update:modelValue"],
|
|
5794
5803
|
setup(e) {
|
|
5795
|
-
const t = e, a = N(e, "modelValue"), i = M([]), o = M([]), l = M(null), n = M(null), s = (
|
|
5796
|
-
const { items: C } =
|
|
5797
|
-
i.value = [...i.value, ...C], o.value = o.value.filter((
|
|
5798
|
-
}, p = (
|
|
5799
|
-
const { items: C } =
|
|
5800
|
-
o.value =
|
|
5804
|
+
const t = e, a = N(e, "modelValue"), i = M([]), o = M([]), l = M(null), n = M(null), s = (v) => {
|
|
5805
|
+
const { items: C } = v;
|
|
5806
|
+
i.value = [...i.value, ...C], o.value = o.value.filter((F) => !C.includes(F));
|
|
5807
|
+
}, p = (v) => {
|
|
5808
|
+
const { items: C } = v;
|
|
5809
|
+
o.value = o.value.push(...C), i.value = i.value.filter((F) => !C.includes(F));
|
|
5801
5810
|
}, u = () => {
|
|
5802
|
-
o.value =
|
|
5811
|
+
o.value = [.../* @__PURE__ */ new Set([...o.value, ...a.value[1]])], i.value = i.value.filter((v) => !a.value[1].includes(v));
|
|
5803
5812
|
}, h = () => {
|
|
5804
|
-
i.value =
|
|
5805
|
-
}
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5813
|
+
i.value = [.../* @__PURE__ */ new Set([...i.value, ...a.value[0]])], o.value = o.value.filter((v) => !a.value[0].includes(v));
|
|
5814
|
+
};
|
|
5815
|
+
W(o, async () => {
|
|
5816
|
+
r();
|
|
5817
|
+
}), W(i, async () => {
|
|
5818
|
+
w();
|
|
5819
|
+
});
|
|
5820
|
+
const r = () => {
|
|
5821
|
+
var F;
|
|
5822
|
+
const v = t.filterBy, C = l.value ? o.value.filter((A) => {
|
|
5823
|
+
var f;
|
|
5824
|
+
return A[v].toLowerCase().includes((f = l.value) == null ? void 0 : f.toLowerCase());
|
|
5825
|
+
}) : [...o.value];
|
|
5826
|
+
(F = a.value) == null || F.splice(0, 1, C);
|
|
5812
5827
|
}, w = () => {
|
|
5813
|
-
var
|
|
5814
|
-
const
|
|
5815
|
-
var
|
|
5816
|
-
return A[
|
|
5817
|
-
}) : i.value;
|
|
5818
|
-
|
|
5828
|
+
var F;
|
|
5829
|
+
const v = t.filterBy, C = n.value ? i.value.filter((A) => {
|
|
5830
|
+
var f;
|
|
5831
|
+
return A[v].toLowerCase().includes((f = n.value) == null ? void 0 : f.toLowerCase());
|
|
5832
|
+
}) : [...i.value];
|
|
5833
|
+
(F = a.value) == null || F.splice(1, 1, C);
|
|
5819
5834
|
};
|
|
5820
5835
|
return W(
|
|
5821
5836
|
() => a.value,
|
|
5822
|
-
(
|
|
5823
|
-
|
|
5837
|
+
(v) => {
|
|
5838
|
+
v && (i.value = v[1].length > 0 ? [...v[1]] : [], o.value = v[0].length > 0 ? [...v[0]] : [], a.value.splice(0, 1, o.value), a.value.splice(1, 1, i.value));
|
|
5824
5839
|
},
|
|
5825
5840
|
{ once: !0 }
|
|
5826
|
-
), (
|
|
5841
|
+
), (v, C) => (d(), x(c(Xe), _({
|
|
5827
5842
|
modelValue: a.value,
|
|
5828
|
-
"onUpdate:modelValue": C[2] || (C[2] = (
|
|
5829
|
-
}, { ...
|
|
5843
|
+
"onUpdate:modelValue": C[2] || (C[2] = (F) => a.value = F)
|
|
5844
|
+
}, { ...v.$attrs, ...t }, {
|
|
5830
5845
|
onMoveAllToSource: u,
|
|
5831
5846
|
onMoveAllToTarget: h,
|
|
5832
|
-
onMoveToTarget: C[3] || (C[3] = (
|
|
5833
|
-
onMoveToSource: C[4] || (C[4] = (
|
|
5847
|
+
onMoveToTarget: C[3] || (C[3] = (F) => s(F)),
|
|
5848
|
+
onMoveToSource: C[4] || (C[4] = (F) => p(F)),
|
|
5834
5849
|
style: { height: "14rem" }
|
|
5835
5850
|
}), {
|
|
5836
|
-
sourceheader:
|
|
5837
|
-
|
|
5851
|
+
sourceheader: g(() => [
|
|
5852
|
+
v.sourceTitle ? (d(), b("div", ki, $(v.sourceTitle), 1)) : T("", !0),
|
|
5838
5853
|
k(c(ae), {
|
|
5839
5854
|
modelValue: l.value,
|
|
5840
5855
|
"onUpdate:modelValue": [
|
|
5841
|
-
C[0] || (C[0] = (
|
|
5856
|
+
C[0] || (C[0] = (F) => l.value = F),
|
|
5842
5857
|
r
|
|
5843
5858
|
],
|
|
5844
5859
|
class: "mb-2",
|
|
@@ -5846,12 +5861,12 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5846
5861
|
"data-cy": "source-search"
|
|
5847
5862
|
}, null, 8, ["modelValue"])
|
|
5848
5863
|
]),
|
|
5849
|
-
targetheader:
|
|
5850
|
-
|
|
5864
|
+
targetheader: g(() => [
|
|
5865
|
+
v.targetTitle ? (d(), b("div", Bi, $(v.targetTitle), 1)) : T("", !0),
|
|
5851
5866
|
k(c(ae), {
|
|
5852
5867
|
modelValue: n.value,
|
|
5853
5868
|
"onUpdate:modelValue": [
|
|
5854
|
-
C[1] || (C[1] = (
|
|
5869
|
+
C[1] || (C[1] = (F) => n.value = F),
|
|
5855
5870
|
w
|
|
5856
5871
|
],
|
|
5857
5872
|
class: "mb-2",
|
|
@@ -5859,8 +5874,8 @@ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disable
|
|
|
5859
5874
|
"data-cy": "target-search"
|
|
5860
5875
|
}, null, 8, ["modelValue"])
|
|
5861
5876
|
]),
|
|
5862
|
-
option:
|
|
5863
|
-
V($(
|
|
5877
|
+
option: g(({ option: F }) => [
|
|
5878
|
+
V($(F[v.filterBy]), 1)
|
|
5864
5879
|
]),
|
|
5865
5880
|
_: 1
|
|
5866
5881
|
}, 16, ["modelValue"]));
|
|
@@ -5883,10 +5898,10 @@ export {
|
|
|
5883
5898
|
ye as ForgeCheckbox,
|
|
5884
5899
|
yo as ForgeChip,
|
|
5885
5900
|
To as ForgeColumnCustomiser,
|
|
5886
|
-
|
|
5901
|
+
_o as ForgeConfirmPopup,
|
|
5887
5902
|
xe as ForgeDatepicker,
|
|
5888
5903
|
Co as ForgeFileUploader,
|
|
5889
|
-
|
|
5904
|
+
Fo as ForgeFilterHeader,
|
|
5890
5905
|
go as ForgeForm,
|
|
5891
5906
|
bo as ForgeFormField,
|
|
5892
5907
|
Kt as ForgeInlineEditor,
|
|
@@ -5897,7 +5912,7 @@ export {
|
|
|
5897
5912
|
mo as ForgeNavbar,
|
|
5898
5913
|
vo as ForgePageHeader,
|
|
5899
5914
|
zo as ForgePanel,
|
|
5900
|
-
|
|
5915
|
+
jo as ForgePickList,
|
|
5901
5916
|
xo as ForgeProgressBar,
|
|
5902
5917
|
fo as ForgeRemainingCharacters,
|
|
5903
5918
|
Mo as ForgeResolver,
|
|
@@ -5908,7 +5923,7 @@ export {
|
|
|
5908
5923
|
$o as ForgeTable,
|
|
5909
5924
|
Bo as ForgeTile,
|
|
5910
5925
|
hi as ForgeToggleButton,
|
|
5911
|
-
|
|
5926
|
+
So as ForgeTreeTable,
|
|
5912
5927
|
co as convertToMultiSelectOption,
|
|
5913
5928
|
po as enumToMultiSelectList,
|
|
5914
5929
|
Ut as parseError
|