@3squared/forge-ui-3 2.16.1 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/forge-ui-3.css +1 -1
- package/dist/esm/forge-ui-3.js +350 -333
- package/dist/src/components/ForgeModal.vue.d.ts +1 -0
- package/package.json +4 -4
- package/src/styles/components/_dialog.scss +4 -0
- package/src/styles/components/_tile.scss +2 -0
- package/src/styles/utilities/_utilities.scss +35 -3
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Be from "primevue/message";
|
|
2
|
-
import { defineComponent as S, openBlock as r, createBlock as y, normalizeProps as W, guardReactiveProps as G, withCtx as f, createElementVNode as m, normalizeClass as F, unref as u, createCommentVNode as C, createVNode as h, renderSlot as k, ref as j, createElementBlock as v, Fragment as A, mergeProps as
|
|
3
|
-
import { Icon as
|
|
2
|
+
import { defineComponent as S, openBlock as r, createBlock as y, normalizeProps as W, guardReactiveProps as G, withCtx as f, createElementVNode as m, normalizeClass as F, unref as u, createCommentVNode as C, createVNode as h, renderSlot as k, ref as j, createElementBlock as v, Fragment as A, mergeProps as _, renderList as E, mergeModels as R, useModel as N, computed as z, createTextVNode as M, toDisplayString as B, withDirectives as J, vShow as Z, createSlots as ae, onMounted as ne, isRef as Fe, withKeys as le, normalizeStyle as Se, withModifiers as X, watch as Q, h as Ce, useTemplateRef as ze } from "vue";
|
|
3
|
+
import { Icon as P } from "@iconify/vue";
|
|
4
4
|
import q from "primevue/button";
|
|
5
5
|
import Te from "primevue/toast";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import _e from "primevue/autocomplete";
|
|
7
|
+
import Pe from "primevue/checkbox";
|
|
8
8
|
import { useField as oe } from "vee-validate";
|
|
9
9
|
import je from "primevue/progressspinner";
|
|
10
10
|
import Ie from "primevue/dialog";
|
|
@@ -1066,7 +1066,7 @@ const Xe = {
|
|
|
1066
1066
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1067
1067
|
filterIcon: "d-none"
|
|
1068
1068
|
}
|
|
1069
|
-
},
|
|
1069
|
+
}, _t = {
|
|
1070
1070
|
treeSelect: {
|
|
1071
1071
|
root: ({ props: e }) => ({
|
|
1072
1072
|
class: [
|
|
@@ -1114,7 +1114,7 @@ const Xe = {
|
|
|
1114
1114
|
filterIcon: "d-none"
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
|
-
},
|
|
1117
|
+
}, Pt = {
|
|
1118
1118
|
fieldset: {
|
|
1119
1119
|
root: () => ({
|
|
1120
1120
|
class: [
|
|
@@ -1179,7 +1179,7 @@ const Xe = {
|
|
|
1179
1179
|
class: "table-overlay table-spinner"
|
|
1180
1180
|
})
|
|
1181
1181
|
}
|
|
1182
|
-
},
|
|
1182
|
+
}, Qi = {
|
|
1183
1183
|
...Xe,
|
|
1184
1184
|
...xt,
|
|
1185
1185
|
...Qe,
|
|
@@ -1210,8 +1210,8 @@ const Xe = {
|
|
|
1210
1210
|
...mt,
|
|
1211
1211
|
...zt,
|
|
1212
1212
|
...st,
|
|
1213
|
-
..._t,
|
|
1214
1213
|
...Pt,
|
|
1214
|
+
..._t,
|
|
1215
1215
|
...Tt,
|
|
1216
1216
|
...jt,
|
|
1217
1217
|
...It,
|
|
@@ -1244,7 +1244,7 @@ const Xe = {
|
|
|
1244
1244
|
m("div", {
|
|
1245
1245
|
class: F(t.icon ? "me-2 pe-1" : "")
|
|
1246
1246
|
}, [
|
|
1247
|
-
t.icon ? (r(), y(u(
|
|
1247
|
+
t.icon ? (r(), y(u(P), {
|
|
1248
1248
|
key: 0,
|
|
1249
1249
|
"data-cy": "message-icon",
|
|
1250
1250
|
icon: t.icon,
|
|
@@ -1254,7 +1254,7 @@ const Xe = {
|
|
|
1254
1254
|
], 2)
|
|
1255
1255
|
]),
|
|
1256
1256
|
closeicon: f(() => [
|
|
1257
|
-
h(u(
|
|
1257
|
+
h(u(P), { icon: "bi:x" })
|
|
1258
1258
|
]),
|
|
1259
1259
|
default: f(() => [
|
|
1260
1260
|
k(a.$slots, "default")
|
|
@@ -1263,7 +1263,7 @@ const Xe = {
|
|
|
1263
1263
|
}, 16);
|
|
1264
1264
|
};
|
|
1265
1265
|
}
|
|
1266
|
-
}),
|
|
1266
|
+
}), el = /* @__PURE__ */ S({
|
|
1267
1267
|
__name: "ForgeActionButton",
|
|
1268
1268
|
props: {
|
|
1269
1269
|
action: {},
|
|
@@ -1284,7 +1284,7 @@ const Xe = {
|
|
|
1284
1284
|
return (l, n) => {
|
|
1285
1285
|
const o = q;
|
|
1286
1286
|
return r(), v(A, null, [
|
|
1287
|
-
h(o,
|
|
1287
|
+
h(o, _({ ...a, ...l.$attrs }, {
|
|
1288
1288
|
loading: t.value,
|
|
1289
1289
|
disabled: t.value || a.disabled,
|
|
1290
1290
|
onClick: i
|
|
@@ -1293,10 +1293,10 @@ const Xe = {
|
|
|
1293
1293
|
], 64);
|
|
1294
1294
|
};
|
|
1295
1295
|
}
|
|
1296
|
-
}),
|
|
1296
|
+
}), tl = /* @__PURE__ */ S({
|
|
1297
1297
|
__name: "ForgeAutoComplete",
|
|
1298
1298
|
setup(e) {
|
|
1299
|
-
return (t, a) => (r(), y(u(
|
|
1299
|
+
return (t, a) => (r(), y(u(_e), _({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1300
1300
|
default: f(() => [
|
|
1301
1301
|
(r(!0), v(A, null, E(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
|
|
1302
1302
|
]),
|
|
@@ -1349,14 +1349,14 @@ const Xe = {
|
|
|
1349
1349
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
|
|
1350
1350
|
}, s = z(() => l.value.length > 0);
|
|
1351
1351
|
return (p, c) => {
|
|
1352
|
-
const x =
|
|
1352
|
+
const x = Pe;
|
|
1353
1353
|
return r(), v("div", Mt, [
|
|
1354
|
-
m("div",
|
|
1354
|
+
m("div", _({
|
|
1355
1355
|
class: "d-flex",
|
|
1356
1356
|
"data-cy": "checkbox-container",
|
|
1357
1357
|
onClick: c[2] || (c[2] = (d) => o(d, a.value))
|
|
1358
1358
|
}, { ...p.$attrs }), [
|
|
1359
|
-
h(x,
|
|
1359
|
+
h(x, _({ ...t }, {
|
|
1360
1360
|
binary: "",
|
|
1361
1361
|
modelValue: a.value,
|
|
1362
1362
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d),
|
|
@@ -1413,7 +1413,7 @@ const Xe = {
|
|
|
1413
1413
|
], 2);
|
|
1414
1414
|
};
|
|
1415
1415
|
}
|
|
1416
|
-
}), Dt = ["href", "target"],
|
|
1416
|
+
}), Dt = ["href", "target"], al = /* @__PURE__ */ S({
|
|
1417
1417
|
__name: "ForgeLink",
|
|
1418
1418
|
props: {
|
|
1419
1419
|
url: {},
|
|
@@ -1454,7 +1454,7 @@ const Xe = {
|
|
|
1454
1454
|
target: i.target
|
|
1455
1455
|
}, [
|
|
1456
1456
|
k(i.$slots, "default", {}, () => [
|
|
1457
|
-
i.iconName ? (r(), y(u(
|
|
1457
|
+
i.iconName ? (r(), y(u(P), {
|
|
1458
1458
|
key: 0,
|
|
1459
1459
|
id: "link-icon",
|
|
1460
1460
|
icon: i.iconName,
|
|
@@ -1476,16 +1476,20 @@ function Ot(e) {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function il(e, t) {
|
|
1480
1480
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1482
|
+
function ll(e, t, a) {
|
|
1483
1483
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1484
1484
|
}
|
|
1485
|
-
const Nt = {
|
|
1485
|
+
const Nt = {
|
|
1486
|
+
key: 0,
|
|
1487
|
+
class: "sticky-top py-3 error-bg",
|
|
1488
|
+
"data-cy": "error-wrapper"
|
|
1489
|
+
}, At = { key: 0 }, Et = {
|
|
1486
1490
|
class: "d-flex w-100",
|
|
1487
1491
|
"data-cy": "footer"
|
|
1488
|
-
},
|
|
1492
|
+
}, nl = /* @__PURE__ */ S({
|
|
1489
1493
|
__name: "ForgeModal",
|
|
1490
1494
|
props: /* @__PURE__ */ R({
|
|
1491
1495
|
cancelText: { default: "Cancel" },
|
|
@@ -1499,6 +1503,7 @@ const Nt = { key: 0 }, At = {
|
|
|
1499
1503
|
submitClass: { default: "" },
|
|
1500
1504
|
resetErrorOnClose: { type: Boolean, default: !0 },
|
|
1501
1505
|
maxHeight: {},
|
|
1506
|
+
minHeight: {},
|
|
1502
1507
|
header: { default: "Header" },
|
|
1503
1508
|
footer: {},
|
|
1504
1509
|
visible: { type: Boolean },
|
|
@@ -1588,19 +1593,21 @@ const Nt = { key: 0 }, At = {
|
|
|
1588
1593
|
content: [
|
|
1589
1594
|
"modal-body overflow-y-auto",
|
|
1590
1595
|
{
|
|
1591
|
-
[`${l.maxHeight}`]: l.maxHeight && !i.value
|
|
1596
|
+
[`${l.maxHeight}`]: l.maxHeight && !i.value,
|
|
1597
|
+
[`${l.minHeight}`]: l.minHeight && !i.value,
|
|
1598
|
+
"pt-0": o.value.hasError
|
|
1592
1599
|
}
|
|
1593
1600
|
]
|
|
1594
1601
|
}));
|
|
1595
1602
|
return (T, D) => {
|
|
1596
1603
|
const O = q, U = Ie;
|
|
1597
|
-
return r(), y(U,
|
|
1604
|
+
return r(), y(U, _(l, {
|
|
1598
1605
|
onMaximize: c,
|
|
1599
1606
|
onUnmaximize: p,
|
|
1600
1607
|
pt: $.value
|
|
1601
1608
|
}), ae({
|
|
1602
1609
|
closeicon: f(() => [
|
|
1603
|
-
h(u(
|
|
1610
|
+
h(u(P), {
|
|
1604
1611
|
"data-cy": "close-icon",
|
|
1605
1612
|
icon: "bi:x-lg",
|
|
1606
1613
|
width: "18",
|
|
@@ -1609,7 +1616,7 @@ const Nt = { key: 0 }, At = {
|
|
|
1609
1616
|
})
|
|
1610
1617
|
]),
|
|
1611
1618
|
maximizeicon: f(() => [
|
|
1612
|
-
h(u(
|
|
1619
|
+
h(u(P), {
|
|
1613
1620
|
"data-cy": "maximisable-icon",
|
|
1614
1621
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1615
1622
|
width: "16",
|
|
@@ -1618,25 +1625,27 @@ const Nt = { key: 0 }, At = {
|
|
|
1618
1625
|
]),
|
|
1619
1626
|
_: 2
|
|
1620
1627
|
}, [
|
|
1621
|
-
E(T.$slots, (
|
|
1628
|
+
E(T.$slots, (b, w) => ({
|
|
1622
1629
|
name: w,
|
|
1623
1630
|
fn: f((I) => [
|
|
1624
|
-
w
|
|
1625
|
-
o.value.hasError ? (r(),
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1631
|
+
w == "default" ? (r(), v(A, { key: 0 }, [
|
|
1632
|
+
o.value.hasError ? (r(), v("div", Nt, [
|
|
1633
|
+
h(de, {
|
|
1634
|
+
severity: "danger",
|
|
1635
|
+
"data-cy": "error",
|
|
1636
|
+
class: "mb-0"
|
|
1637
|
+
}, {
|
|
1638
|
+
default: f(() => [
|
|
1639
|
+
m("p", {
|
|
1640
|
+
class: F(o.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1641
|
+
}, B(o.value.header), 3),
|
|
1642
|
+
o.value.message.length > 0 ? (r(), v("ul", At, [
|
|
1643
|
+
(r(!0), v(A, null, E(o.value.message, (g) => (r(), v("li", { key: g }, B(g), 1))), 128))
|
|
1644
|
+
])) : C("", !0)
|
|
1645
|
+
]),
|
|
1646
|
+
_: 1
|
|
1647
|
+
})
|
|
1648
|
+
])) : C("", !0)
|
|
1640
1649
|
], 64)) : C("", !0),
|
|
1641
1650
|
k(T.$slots, w, W(G(I || {}))),
|
|
1642
1651
|
n.value ? k(T.$slots, "loader", { key: 1 }, () => [
|
|
@@ -1647,7 +1656,7 @@ const Nt = { key: 0 }, At = {
|
|
|
1647
1656
|
T.showFooter ? {
|
|
1648
1657
|
name: "footer",
|
|
1649
1658
|
fn: f(() => [
|
|
1650
|
-
m("div",
|
|
1659
|
+
m("div", Et, [
|
|
1651
1660
|
h(O, {
|
|
1652
1661
|
label: T.cancelText,
|
|
1653
1662
|
class: F(l.cancelClass),
|
|
@@ -1670,7 +1679,7 @@ const Nt = { key: 0 }, At = {
|
|
|
1670
1679
|
]), 1040, ["pt"]);
|
|
1671
1680
|
};
|
|
1672
1681
|
}
|
|
1673
|
-
}),
|
|
1682
|
+
}), Ut = ["id"], qt = { key: 0 }, Lt = { key: 0 }, Rt = { class: "d-flex justify-content-between align-items-center position-relative" }, Ht = { key: 1 }, Wt = { "data-cy": "readonly-value" }, Gt = /* @__PURE__ */ S({
|
|
1674
1683
|
__name: "ForgeInlineEditor",
|
|
1675
1684
|
props: /* @__PURE__ */ R({
|
|
1676
1685
|
name: { default: "" },
|
|
@@ -1715,13 +1724,13 @@ const Nt = { key: 0 }, At = {
|
|
|
1715
1724
|
return r(), v("div", {
|
|
1716
1725
|
id: t.name
|
|
1717
1726
|
}, [
|
|
1718
|
-
T.readonly ? (r(), v("div",
|
|
1727
|
+
T.readonly ? (r(), v("div", Ht, [
|
|
1719
1728
|
k(T.$slots, "default", {}, () => [
|
|
1720
|
-
m("span",
|
|
1729
|
+
m("span", Wt, B(u(d)), 1)
|
|
1721
1730
|
])
|
|
1722
|
-
])) : (r(), v("div",
|
|
1723
|
-
i.value ? (r(), v("div",
|
|
1724
|
-
J((r(), v("div",
|
|
1731
|
+
])) : (r(), v("div", qt, [
|
|
1732
|
+
i.value ? (r(), v("div", Lt, [
|
|
1733
|
+
J((r(), v("div", Rt, [
|
|
1725
1734
|
k(T.$slots, "editor", {
|
|
1726
1735
|
class: F({ "is-invalid": $.value }),
|
|
1727
1736
|
editFinished: o,
|
|
@@ -1730,7 +1739,7 @@ const Nt = { key: 0 }, At = {
|
|
|
1730
1739
|
}, () => [
|
|
1731
1740
|
h(O, {
|
|
1732
1741
|
modelValue: u(d),
|
|
1733
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
1742
|
+
"onUpdate:modelValue": D[0] || (D[0] = (b) => Fe(d) ? d.value = b : null),
|
|
1734
1743
|
modelModifiers: { trim: !0 },
|
|
1735
1744
|
"data-cy": "input",
|
|
1736
1745
|
ref_key: "input",
|
|
@@ -1742,7 +1751,7 @@ const Nt = { key: 0 }, At = {
|
|
|
1742
1751
|
]
|
|
1743
1752
|
}, null, 8, ["modelValue", "class"])
|
|
1744
1753
|
]),
|
|
1745
|
-
h(u(
|
|
1754
|
+
h(u(P), {
|
|
1746
1755
|
icon: "bi:x-circle",
|
|
1747
1756
|
class: "mx-2 cursor-pointer",
|
|
1748
1757
|
onClick: p,
|
|
@@ -1769,7 +1778,7 @@ const Nt = { key: 0 }, At = {
|
|
|
1769
1778
|
class: "p-0 m-0"
|
|
1770
1779
|
}, {
|
|
1771
1780
|
default: f(() => [
|
|
1772
|
-
h(u(
|
|
1781
|
+
h(u(P), {
|
|
1773
1782
|
icon: "bi:pencil",
|
|
1774
1783
|
class: F($.value ? "text-invalid" : "text-muted"),
|
|
1775
1784
|
"data-cy": "edit-icon",
|
|
@@ -1786,10 +1795,10 @@ const Nt = { key: 0 }, At = {
|
|
|
1786
1795
|
}, B(u(c)), 513), [
|
|
1787
1796
|
[Z, $.value]
|
|
1788
1797
|
])
|
|
1789
|
-
], 8,
|
|
1798
|
+
], 8, Ut);
|
|
1790
1799
|
};
|
|
1791
1800
|
}
|
|
1792
|
-
}),
|
|
1801
|
+
}), Yt = ["href"], ol = /* @__PURE__ */ S({
|
|
1793
1802
|
__name: "ForgeNavbar",
|
|
1794
1803
|
props: {
|
|
1795
1804
|
severity: { default: "light" },
|
|
@@ -1834,7 +1843,7 @@ const Nt = { key: 0 }, At = {
|
|
|
1834
1843
|
]
|
|
1835
1844
|
})
|
|
1836
1845
|
}));
|
|
1837
|
-
return (i, l) => (r(), y(u(Ve),
|
|
1846
|
+
return (i, l) => (r(), y(u(Ve), _({ ...t, ...i.$attrs }, {
|
|
1838
1847
|
pt: a.value,
|
|
1839
1848
|
"data-cy": "navbar"
|
|
1840
1849
|
}), ae({
|
|
@@ -1847,11 +1856,11 @@ const Nt = { key: 0 }, At = {
|
|
|
1847
1856
|
k(i.$slots, "logo", {}, () => [
|
|
1848
1857
|
l[0] || (l[0] = M(" Logo "))
|
|
1849
1858
|
])
|
|
1850
|
-
], 8,
|
|
1859
|
+
], 8, Yt)
|
|
1851
1860
|
]),
|
|
1852
1861
|
buttonicon: f(() => [
|
|
1853
1862
|
k(i.$slots, "buttonIcon", {}, () => [
|
|
1854
|
-
h(u(
|
|
1863
|
+
h(u(P), {
|
|
1855
1864
|
icon: "bi:list",
|
|
1856
1865
|
class: F(t.severity === "light" ? "text-black" : "text-white"),
|
|
1857
1866
|
height: "24",
|
|
@@ -1869,14 +1878,14 @@ const Nt = { key: 0 }, At = {
|
|
|
1869
1878
|
}))
|
|
1870
1879
|
]), 1040, ["pt"]));
|
|
1871
1880
|
}
|
|
1872
|
-
}),
|
|
1881
|
+
}), Jt = { class: "border alternating-item-list" }, Kt = {
|
|
1873
1882
|
key: 0,
|
|
1874
1883
|
class: "p-2 border-top border-bottom",
|
|
1875
1884
|
"data-cy": "title"
|
|
1876
|
-
},
|
|
1885
|
+
}, Zt = { class: "d-inline-block" }, Xt = {
|
|
1877
1886
|
key: 1,
|
|
1878
1887
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1879
|
-
},
|
|
1888
|
+
}, Qt = /* @__PURE__ */ S({
|
|
1880
1889
|
__name: "ForgeMultiSelectPreview",
|
|
1881
1890
|
props: /* @__PURE__ */ R({
|
|
1882
1891
|
title: { default: "Selected Items" },
|
|
@@ -1905,7 +1914,7 @@ const Nt = { key: 0 }, At = {
|
|
|
1905
1914
|
class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1906
1915
|
"data-cy": "multiselect-container"
|
|
1907
1916
|
}, [
|
|
1908
|
-
h(o,
|
|
1917
|
+
h(o, _({
|
|
1909
1918
|
modelValue: a.value,
|
|
1910
1919
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
|
|
1911
1920
|
}, { ...l.$attrs }, {
|
|
@@ -1929,14 +1938,14 @@ const Nt = { key: 0 }, At = {
|
|
|
1929
1938
|
style: Se({ height: l.height }),
|
|
1930
1939
|
class: "overflow-auto"
|
|
1931
1940
|
}, [
|
|
1932
|
-
m("div",
|
|
1933
|
-
l.title ? (r(), v("div",
|
|
1941
|
+
m("div", Jt, [
|
|
1942
|
+
l.title ? (r(), v("div", Kt, B(l.title), 1)) : C("", !0),
|
|
1934
1943
|
(r(!0), v(A, null, E(a.value, (p) => (r(), v("div", {
|
|
1935
1944
|
key: p.id,
|
|
1936
1945
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1937
1946
|
}, [
|
|
1938
1947
|
k(l.$slots, "list-item", { item: p }, () => [
|
|
1939
|
-
m("span",
|
|
1948
|
+
m("span", Zt, B(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1940
1949
|
]),
|
|
1941
1950
|
l.canRemoveItemFromPreview ? (r(), y(s, {
|
|
1942
1951
|
key: 0,
|
|
@@ -1945,7 +1954,7 @@ const Nt = { key: 0 }, At = {
|
|
|
1945
1954
|
onClick: (c) => i(p.id)
|
|
1946
1955
|
}, {
|
|
1947
1956
|
default: f(() => [
|
|
1948
|
-
h(u(
|
|
1957
|
+
h(u(P), {
|
|
1949
1958
|
icon: "bi:x",
|
|
1950
1959
|
class: "close-icon",
|
|
1951
1960
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -1954,34 +1963,34 @@ const Nt = { key: 0 }, At = {
|
|
|
1954
1963
|
_: 2
|
|
1955
1964
|
}, 1032, ["onClick"])) : C("", !0)
|
|
1956
1965
|
]))), 128)),
|
|
1957
|
-
a.value == null || a.value.length == 0 ? (r(), v("div",
|
|
1966
|
+
a.value == null || a.value.length == 0 ? (r(), v("div", Xt, B(t.optionsPreviewEmptyText), 1)) : C("", !0)
|
|
1958
1967
|
])
|
|
1959
1968
|
], 4)
|
|
1960
1969
|
], 2)
|
|
1961
1970
|
], 2);
|
|
1962
1971
|
};
|
|
1963
1972
|
}
|
|
1964
|
-
}),
|
|
1973
|
+
}), ea = { class: "d-flex justify-content-between pb-2" }, ta = {
|
|
1965
1974
|
"data-cy": "title",
|
|
1966
1975
|
class: "my-auto"
|
|
1967
|
-
},
|
|
1976
|
+
}, aa = {
|
|
1968
1977
|
"data-cy": "slot",
|
|
1969
1978
|
class: "d-flex align-items-center"
|
|
1970
|
-
},
|
|
1979
|
+
}, sl = /* @__PURE__ */ S({
|
|
1971
1980
|
__name: "ForgePageHeader",
|
|
1972
1981
|
props: {
|
|
1973
1982
|
title: {}
|
|
1974
1983
|
},
|
|
1975
1984
|
setup(e) {
|
|
1976
1985
|
const t = e;
|
|
1977
|
-
return (a, i) => (r(), v("div",
|
|
1978
|
-
m("h3",
|
|
1979
|
-
m("div",
|
|
1986
|
+
return (a, i) => (r(), v("div", ea, [
|
|
1987
|
+
m("h3", ta, B(t.title), 1),
|
|
1988
|
+
m("div", aa, [
|
|
1980
1989
|
k(a.$slots, "default")
|
|
1981
1990
|
])
|
|
1982
1991
|
]));
|
|
1983
1992
|
}
|
|
1984
|
-
}),
|
|
1993
|
+
}), ia = { class: "d-flex" }, la = { "data-cy": "before-slot" }, na = { class: "position-relative w-100" }, oa = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ S({
|
|
1985
1994
|
__name: "ForgeDatepicker",
|
|
1986
1995
|
props: /* @__PURE__ */ R({
|
|
1987
1996
|
severity: { default: "primary" },
|
|
@@ -2159,12 +2168,12 @@ const Nt = { key: 0 }, At = {
|
|
|
2159
2168
|
return (d, $) => {
|
|
2160
2169
|
const T = De;
|
|
2161
2170
|
return r(), v(A, null, [
|
|
2162
|
-
m("div",
|
|
2163
|
-
m("span",
|
|
2171
|
+
m("div", ia, [
|
|
2172
|
+
m("span", la, [
|
|
2164
2173
|
k(d.$slots, "before")
|
|
2165
2174
|
]),
|
|
2166
|
-
m("div",
|
|
2167
|
-
h(T,
|
|
2175
|
+
m("div", na, [
|
|
2176
|
+
h(T, _({ ...t, ...d.$attrs }, {
|
|
2168
2177
|
pt: x.value,
|
|
2169
2178
|
modelValue: a.value,
|
|
2170
2179
|
"onUpdate:modelValue": [
|
|
@@ -2174,14 +2183,14 @@ const Nt = { key: 0 }, At = {
|
|
|
2174
2183
|
onBlur: $[1] || ($[1] = () => u(o)),
|
|
2175
2184
|
"input-class": { "datepicker-invalid": c.value }
|
|
2176
2185
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2177
|
-
J(h(u(
|
|
2186
|
+
J(h(u(P), {
|
|
2178
2187
|
"data-cy": "icon",
|
|
2179
2188
|
icon: "bi:calendar4",
|
|
2180
2189
|
class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2181
2190
|
}, null, 8, ["class"]), [
|
|
2182
2191
|
[Z, t.showIcon]
|
|
2183
2192
|
]),
|
|
2184
|
-
J(h(u(
|
|
2193
|
+
J(h(u(P), {
|
|
2185
2194
|
"data-cy": "icon",
|
|
2186
2195
|
icon: "bi:x",
|
|
2187
2196
|
onClick: p,
|
|
@@ -2190,7 +2199,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2190
2199
|
[Z, t.modelValue]
|
|
2191
2200
|
])
|
|
2192
2201
|
]),
|
|
2193
|
-
m("span",
|
|
2202
|
+
m("span", oa, [
|
|
2194
2203
|
k(d.$slots, "after")
|
|
2195
2204
|
])
|
|
2196
2205
|
]),
|
|
@@ -2203,7 +2212,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2203
2212
|
], 64);
|
|
2204
2213
|
};
|
|
2205
2214
|
}
|
|
2206
|
-
}),
|
|
2215
|
+
}), rl = /* @__PURE__ */ S({
|
|
2207
2216
|
__name: "ForgeRemainingCharacters",
|
|
2208
2217
|
props: {
|
|
2209
2218
|
maxCount: { default: 300 },
|
|
@@ -2215,7 +2224,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2215
2224
|
class: F(a.value < 0 ? "text-danger" : "")
|
|
2216
2225
|
}, "Remaining characters: " + B(a.value), 3));
|
|
2217
2226
|
}
|
|
2218
|
-
}),
|
|
2227
|
+
}), sa = { class: "d-flex justify-content-between" }, dl = /* @__PURE__ */ S({
|
|
2219
2228
|
__name: "ForgeForm",
|
|
2220
2229
|
props: {
|
|
2221
2230
|
onSubmit: {},
|
|
@@ -2242,7 +2251,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2242
2251
|
}
|
|
2243
2252
|
return (n, o) => {
|
|
2244
2253
|
const s = q;
|
|
2245
|
-
return r(), v("form",
|
|
2254
|
+
return r(), v("form", _(n.$attrs, {
|
|
2246
2255
|
novalidate: "",
|
|
2247
2256
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2248
2257
|
onSubmit: X(l, ["prevent"])
|
|
@@ -2271,7 +2280,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2271
2280
|
_: 3
|
|
2272
2281
|
})) : C("", !0),
|
|
2273
2282
|
k(n.$slots, "default"),
|
|
2274
|
-
m("div",
|
|
2283
|
+
m("div", sa, [
|
|
2275
2284
|
k(n.$slots, "cancel", {}, () => [
|
|
2276
2285
|
n.hideCancel ? C("", !0) : (r(), y(s, {
|
|
2277
2286
|
key: 0,
|
|
@@ -2308,13 +2317,13 @@ const Nt = { key: 0 }, At = {
|
|
|
2308
2317
|
], 16);
|
|
2309
2318
|
};
|
|
2310
2319
|
}
|
|
2311
|
-
}),
|
|
2320
|
+
}), ra = {
|
|
2312
2321
|
key: 1,
|
|
2313
2322
|
class: "d-flex flex-column w-100"
|
|
2314
|
-
},
|
|
2323
|
+
}, da = ["for"], pa = {
|
|
2315
2324
|
key: 0,
|
|
2316
2325
|
class: "text-danger fw-600"
|
|
2317
|
-
},
|
|
2326
|
+
}, pl = /* @__PURE__ */ S({
|
|
2318
2327
|
__name: "ForgeFormField",
|
|
2319
2328
|
props: /* @__PURE__ */ R({
|
|
2320
2329
|
name: {},
|
|
@@ -2339,8 +2348,8 @@ const Nt = { key: 0 }, At = {
|
|
|
2339
2348
|
return Q(() => n.value, (x) => {
|
|
2340
2349
|
t.value = x;
|
|
2341
2350
|
}, { immediate: !0 }), (x, d) => {
|
|
2342
|
-
const $ = Ne, T = Oe, D = se, O = ie, U = re,
|
|
2343
|
-
return a.type === "checkbox" ? (r(), y(ye,
|
|
2351
|
+
const $ = Ne, T = Oe, D = se, O = ie, U = re, b = xe;
|
|
2352
|
+
return a.type === "checkbox" ? (r(), y(ye, _({
|
|
2344
2353
|
key: 0,
|
|
2345
2354
|
id: a.name,
|
|
2346
2355
|
label: a.fieldLabel
|
|
@@ -2348,7 +2357,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2348
2357
|
name: a.name,
|
|
2349
2358
|
modelValue: t.value,
|
|
2350
2359
|
"onUpdate:modelValue": d[0] || (d[0] = (w) => t.value = w)
|
|
2351
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(), v("div",
|
|
2360
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(), v("div", ra, [
|
|
2352
2361
|
m("div", {
|
|
2353
2362
|
"data-cy": "input-wrapper",
|
|
2354
2363
|
class: F(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2358,10 +2367,10 @@ const Nt = { key: 0 }, At = {
|
|
|
2358
2367
|
class: F(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2359
2368
|
}, [
|
|
2360
2369
|
M(B(a.fieldLabel) + " ", 1),
|
|
2361
|
-
x.required ? (r(), v("span",
|
|
2362
|
-
], 10,
|
|
2370
|
+
x.required ? (r(), v("span", pa, "*")) : C("", !0)
|
|
2371
|
+
], 10, da),
|
|
2363
2372
|
k(x.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2364
|
-
a.type === "number" ? (r(), y(u(fe),
|
|
2373
|
+
a.type === "number" ? (r(), y(u(fe), _({
|
|
2365
2374
|
key: 0,
|
|
2366
2375
|
id: a.name
|
|
2367
2376
|
}, x.$attrs, {
|
|
@@ -2371,7 +2380,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2371
2380
|
onInput: i,
|
|
2372
2381
|
modelValue: t.value,
|
|
2373
2382
|
"onUpdate:modelValue": d[1] || (d[1] = (w) => t.value = w)
|
|
2374
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), y($,
|
|
2383
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), y($, _({
|
|
2375
2384
|
key: 1,
|
|
2376
2385
|
id: a.name
|
|
2377
2386
|
}, x.$attrs, {
|
|
@@ -2381,7 +2390,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2381
2390
|
"onUpdate:modelValue": d[2] || (d[2] = (w) => t.value = w),
|
|
2382
2391
|
onInput: i,
|
|
2383
2392
|
onBlur: u(p)
|
|
2384
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), y(T,
|
|
2393
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), y(T, _({
|
|
2385
2394
|
key: 2,
|
|
2386
2395
|
id: a.name
|
|
2387
2396
|
}, x.$attrs, {
|
|
@@ -2392,7 +2401,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2392
2401
|
"onUpdate:modelValue": d[3] || (d[3] = (w) => t.value = w),
|
|
2393
2402
|
onComplete: i,
|
|
2394
2403
|
onBlur: u(p)
|
|
2395
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), y(D,
|
|
2404
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), y(D, _({
|
|
2396
2405
|
key: 3,
|
|
2397
2406
|
id: a.name
|
|
2398
2407
|
}, x.$attrs, {
|
|
@@ -2402,19 +2411,19 @@ const Nt = { key: 0 }, At = {
|
|
|
2402
2411
|
"onUpdate:modelValue": d[4] || (d[4] = (w) => t.value = w),
|
|
2403
2412
|
onInput: i,
|
|
2404
2413
|
onBlur: u(p)
|
|
2405
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), y(O,
|
|
2414
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), y(O, _({ key: 4 }, { ...a, ...x.$attrs }, {
|
|
2406
2415
|
modelValue: t.value,
|
|
2407
2416
|
"onUpdate:modelValue": d[5] || (d[5] = (w) => t.value = w),
|
|
2408
2417
|
class: { "is-invalid": c.value }
|
|
2409
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), y(U,
|
|
2418
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), y(U, _({ key: 5 }, { ...a, ...x.$attrs }, {
|
|
2410
2419
|
modelValue: t.value,
|
|
2411
2420
|
"onUpdate:modelValue": d[6] || (d[6] = (w) => t.value = w),
|
|
2412
2421
|
class: { "is-invalid": c.value }
|
|
2413
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), y(
|
|
2422
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), y(Qt, _({ key: 6 }, { ...a, ...x.$attrs }, {
|
|
2414
2423
|
modelValue: t.value,
|
|
2415
2424
|
"onUpdate:modelValue": d[7] || (d[7] = (w) => t.value = w),
|
|
2416
2425
|
class: { "is-invalid": c.value }
|
|
2417
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), y(
|
|
2426
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), y(b, _({ key: 7 }, { ...a, ...x.$attrs }, {
|
|
2418
2427
|
modelValue: t.value,
|
|
2419
2428
|
"onUpdate:modelValue": d[8] || (d[8] = (w) => t.value = w),
|
|
2420
2429
|
class: { "is-invalid": c.value }
|
|
@@ -2430,7 +2439,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2430
2439
|
]));
|
|
2431
2440
|
};
|
|
2432
2441
|
}
|
|
2433
|
-
}),
|
|
2442
|
+
}), cl = /* @__PURE__ */ S({
|
|
2434
2443
|
__name: "ForgeChip",
|
|
2435
2444
|
props: {
|
|
2436
2445
|
chipSeverity: { default: "primary" },
|
|
@@ -2466,7 +2475,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2466
2475
|
}));
|
|
2467
2476
|
return (i, l) => {
|
|
2468
2477
|
const n = Ae;
|
|
2469
|
-
return r(), y(n,
|
|
2478
|
+
return r(), y(n, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2470
2479
|
default: f(() => [
|
|
2471
2480
|
(r(!0), v(A, null, E(i.$slots, (o, s) => k(i.$slots, s, { slot: s })), 256))
|
|
2472
2481
|
]),
|
|
@@ -2474,7 +2483,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2474
2483
|
}, 16, ["pt"]);
|
|
2475
2484
|
};
|
|
2476
2485
|
}
|
|
2477
|
-
}),
|
|
2486
|
+
}), ul = /* @__PURE__ */ S({
|
|
2478
2487
|
__name: "ForgeProgressBar",
|
|
2479
2488
|
props: {
|
|
2480
2489
|
severity: { default: "primary" },
|
|
@@ -2521,7 +2530,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2521
2530
|
}));
|
|
2522
2531
|
return (o, s) => {
|
|
2523
2532
|
const p = Ee;
|
|
2524
|
-
return r(), y(p,
|
|
2533
|
+
return r(), y(p, _({ ...o.$attrs, ...t }, { pt: n.value }), {
|
|
2525
2534
|
default: f(() => [
|
|
2526
2535
|
k(o.$slots, "default")
|
|
2527
2536
|
]),
|
|
@@ -2530,7 +2539,7 @@ const Nt = { key: 0 }, At = {
|
|
|
2530
2539
|
};
|
|
2531
2540
|
}
|
|
2532
2541
|
});
|
|
2533
|
-
var
|
|
2542
|
+
var ca = /* @__PURE__ */ S({
|
|
2534
2543
|
name: "VueDrawingCanvas",
|
|
2535
2544
|
props: {
|
|
2536
2545
|
strokeType: {
|
|
@@ -2920,7 +2929,7 @@ var pa = /* @__PURE__ */ S({
|
|
|
2920
2929
|
});
|
|
2921
2930
|
}
|
|
2922
2931
|
});
|
|
2923
|
-
const
|
|
2932
|
+
const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1 gap-1" }, ml = /* @__PURE__ */ S({
|
|
2924
2933
|
__name: "ForgeScratchpad",
|
|
2925
2934
|
props: {
|
|
2926
2935
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2944,8 +2953,8 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
|
|
|
2944
2953
|
};
|
|
2945
2954
|
return (x, d) => {
|
|
2946
2955
|
const $ = q;
|
|
2947
|
-
return r(), v("div",
|
|
2948
|
-
h(u(
|
|
2956
|
+
return r(), v("div", ua, [
|
|
2957
|
+
h(u(ca), _({
|
|
2949
2958
|
ref_key: "drawingCanvas",
|
|
2950
2959
|
ref: l,
|
|
2951
2960
|
image: n.value,
|
|
@@ -2958,7 +2967,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
|
|
|
2958
2967
|
style: `height: ${x.height}px; width: ${x.width}px`,
|
|
2959
2968
|
"line-join": x.lineJoin
|
|
2960
2969
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2961
|
-
m("div",
|
|
2970
|
+
m("div", ma, [
|
|
2962
2971
|
a.showUndo ? (r(), y($, {
|
|
2963
2972
|
key: 0,
|
|
2964
2973
|
onClick: p,
|
|
@@ -3007,7 +3016,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
|
|
|
3007
3016
|
]);
|
|
3008
3017
|
};
|
|
3009
3018
|
}
|
|
3010
|
-
}),
|
|
3019
|
+
}), va = { class: "value text-white w-100 text-center" }, vl = /* @__PURE__ */ S({
|
|
3011
3020
|
__name: "ForgeStatWidget",
|
|
3012
3021
|
props: {
|
|
3013
3022
|
size: { default: "md" },
|
|
@@ -3015,15 +3024,15 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
|
|
|
3015
3024
|
},
|
|
3016
3025
|
setup(e) {
|
|
3017
3026
|
const t = e;
|
|
3018
|
-
return (a, i) => (r(), v("div",
|
|
3027
|
+
return (a, i) => (r(), v("div", _(a.$attrs, {
|
|
3019
3028
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3020
3029
|
}), [
|
|
3021
|
-
m("span",
|
|
3030
|
+
m("span", va, [
|
|
3022
3031
|
k(a.$slots, "default")
|
|
3023
3032
|
])
|
|
3024
3033
|
], 16));
|
|
3025
3034
|
}
|
|
3026
|
-
}),
|
|
3035
|
+
}), fa = { key: 0 }, fl = /* @__PURE__ */ S({
|
|
3027
3036
|
__name: "ForgeStepper",
|
|
3028
3037
|
props: {
|
|
3029
3038
|
currentStep: { default: 1 },
|
|
@@ -3074,14 +3083,14 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
|
|
|
3074
3083
|
default: f(() => [
|
|
3075
3084
|
h(u(Le), null, {
|
|
3076
3085
|
default: f(() => [
|
|
3077
|
-
(r(!0), v(A, null, E(i.steps, (n) => (r(), y(u(Ue),
|
|
3086
|
+
(r(!0), v(A, null, E(i.steps, (n) => (r(), y(u(Ue), _({
|
|
3078
3087
|
key: n.value,
|
|
3079
3088
|
value: n.value,
|
|
3080
3089
|
disabled: n.disabled,
|
|
3081
3090
|
ref_for: !0
|
|
3082
3091
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
3083
3092
|
default: f(() => [
|
|
3084
|
-
i.showStepLabel ? (r(), v("div",
|
|
3093
|
+
i.showStepLabel ? (r(), v("div", fa, B(n.label), 1)) : C("", !0)
|
|
3085
3094
|
]),
|
|
3086
3095
|
_: 2
|
|
3087
3096
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -3106,7 +3115,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
|
|
|
3106
3115
|
_: 3
|
|
3107
3116
|
}, 8, ["value"]));
|
|
3108
3117
|
}
|
|
3109
|
-
}),
|
|
3118
|
+
}), ga = { class: "p-4 text-wrap w-100" }, ba = { class: "p-4 text-wrap w-100" }, gl = /* @__PURE__ */ S({
|
|
3110
3119
|
__name: "ForgeTile",
|
|
3111
3120
|
props: {
|
|
3112
3121
|
severity: { default: "primary" },
|
|
@@ -3126,7 +3135,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
|
|
|
3126
3135
|
"data-cy": "button-tile"
|
|
3127
3136
|
}, {
|
|
3128
3137
|
default: f(() => [
|
|
3129
|
-
m("div",
|
|
3138
|
+
m("div", ga, [
|
|
3130
3139
|
k(l.$slots, "default", {}, () => [
|
|
3131
3140
|
n[0] || (n[0] = M("Tile Content"))
|
|
3132
3141
|
])
|
|
@@ -3138,7 +3147,7 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
|
|
|
3138
3147
|
class: F(["d-flex w-100", i.value]),
|
|
3139
3148
|
"data-cy": "tile"
|
|
3140
3149
|
}, [
|
|
3141
|
-
m("div",
|
|
3150
|
+
m("div", ba, [
|
|
3142
3151
|
k(l.$slots, "default", {}, () => [
|
|
3143
3152
|
n[1] || (n[1] = M("Tile Content"))
|
|
3144
3153
|
])
|
|
@@ -3150,10 +3159,10 @@ const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1
|
|
|
3150
3159
|
function ee(e, t) {
|
|
3151
3160
|
return e > 1 ? `${t}s` : t;
|
|
3152
3161
|
}
|
|
3153
|
-
const
|
|
3162
|
+
const ya = {
|
|
3154
3163
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3155
3164
|
"data-cy": "pagination-header"
|
|
3156
|
-
},
|
|
3165
|
+
}, xa = { class: "ms-2" }, ha = { key: 0 }, wa = {
|
|
3157
3166
|
class: "w-auto",
|
|
3158
3167
|
"data-cy": "total"
|
|
3159
3168
|
}, he = /* @__PURE__ */ S({
|
|
@@ -3171,9 +3180,9 @@ const ba = {
|
|
|
3171
3180
|
const o = Math.ceil(i.total / i.perPage);
|
|
3172
3181
|
return `${o} ${ee(o, "page")}`;
|
|
3173
3182
|
});
|
|
3174
|
-
return (o, s) => (r(), v("div",
|
|
3183
|
+
return (o, s) => (r(), v("div", ya, [
|
|
3175
3184
|
s[2] || (s[2] = M(" Number of results per page ")),
|
|
3176
|
-
m("div",
|
|
3185
|
+
m("div", xa, [
|
|
3177
3186
|
h(u(ie), {
|
|
3178
3187
|
options: i.pageSizes,
|
|
3179
3188
|
"model-value": i.perPage,
|
|
@@ -3182,16 +3191,16 @@ const ba = {
|
|
|
3182
3191
|
"data-cy": "pagination-page-size-select"
|
|
3183
3192
|
}, null, 8, ["options", "model-value"])
|
|
3184
3193
|
]),
|
|
3185
|
-
i.total ? (r(), v("div",
|
|
3194
|
+
i.total ? (r(), v("div", ha, [
|
|
3186
3195
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3187
|
-
m("span",
|
|
3196
|
+
m("span", wa, B(i.total) + " " + B(u(ee)(i.total, "result")) + " across " + B(n.value), 1)
|
|
3188
3197
|
])) : C("", !0)
|
|
3189
3198
|
]));
|
|
3190
3199
|
}
|
|
3191
|
-
}),
|
|
3200
|
+
}), ka = { class: "position-relative" }, $a = { "data-cy": "above-table-slot" }, Ba = { class: "d-flex w-100" }, Fa = {
|
|
3192
3201
|
class: "mx-auto",
|
|
3193
3202
|
"data-cy": "empty-message"
|
|
3194
|
-
},
|
|
3203
|
+
}, Sa = { class: "d-flex" }, Ca = { class: "d-flex align-items-end mb-2" }, za = { key: 0 }, Ta = { class: "ms-auto" }, bl = /* @__PURE__ */ S({
|
|
3195
3204
|
__name: "ForgeTable",
|
|
3196
3205
|
props: {
|
|
3197
3206
|
value: {},
|
|
@@ -3286,12 +3295,12 @@ const ba = {
|
|
|
3286
3295
|
sortField: "",
|
|
3287
3296
|
total: i.totalRecords ?? i.value.length
|
|
3288
3297
|
});
|
|
3289
|
-
Q(() => i.perPage, (
|
|
3290
|
-
|
|
3298
|
+
Q(() => i.perPage, (b) => {
|
|
3299
|
+
b && (o.value = b, s.value.perPage = b);
|
|
3291
3300
|
});
|
|
3292
3301
|
const p = z(() => i.totalRecords ?? i.value.length), c = z(() => {
|
|
3293
|
-
const
|
|
3294
|
-
return `${
|
|
3302
|
+
const b = Math.ceil(p.value / o.value);
|
|
3303
|
+
return `${b} ${ee(b, "page")}`;
|
|
3295
3304
|
}), x = z(() => ({
|
|
3296
3305
|
thead: () => ({
|
|
3297
3306
|
class: [
|
|
@@ -3319,30 +3328,30 @@ const ba = {
|
|
|
3319
3328
|
if (i.clearAll)
|
|
3320
3329
|
i.clearAll();
|
|
3321
3330
|
else
|
|
3322
|
-
for (const
|
|
3323
|
-
typeof i.filters[
|
|
3331
|
+
for (const b in i.filters)
|
|
3332
|
+
typeof i.filters[b] == "string" ? i.filters[b] = "" : i.filters[b].value = null;
|
|
3324
3333
|
D(i.filters);
|
|
3325
3334
|
}, $ = () => {
|
|
3326
3335
|
l.value.exportCSV();
|
|
3327
|
-
}, T = (
|
|
3336
|
+
}, T = (b) => {
|
|
3328
3337
|
var w;
|
|
3329
|
-
s.value.sortDirection =
|
|
3330
|
-
}, D = (
|
|
3331
|
-
s.value.filters =
|
|
3332
|
-
}, O = (
|
|
3333
|
-
s.value.page =
|
|
3338
|
+
s.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((w = b.sortField) == null ? void 0 : w.toString()) ?? "", a("update:tableContext", s.value), a("sort", b);
|
|
3339
|
+
}, D = (b) => {
|
|
3340
|
+
s.value.filters = b, a("update:tableContext", s.value), a("update:filters", b);
|
|
3341
|
+
}, O = (b) => {
|
|
3342
|
+
s.value.page = b.page, a("update:tableContext", s.value), a("page", b);
|
|
3334
3343
|
}, U = () => {
|
|
3335
3344
|
s.value.perPage = o.value, a("update:tableContext", s.value);
|
|
3336
3345
|
};
|
|
3337
|
-
return Q(() => i.filters, (
|
|
3338
|
-
s.value.filters =
|
|
3339
|
-
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (
|
|
3340
|
-
m("span",
|
|
3341
|
-
k(
|
|
3346
|
+
return Q(() => i.filters, (b) => {
|
|
3347
|
+
s.value.filters = b, a("update:tableContext", s.value);
|
|
3348
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (b, w) => (r(), v("div", ka, [
|
|
3349
|
+
m("span", $a, [
|
|
3350
|
+
k(b.$slots, "above-table")
|
|
3342
3351
|
]),
|
|
3343
|
-
h(u(We),
|
|
3352
|
+
h(u(We), _({
|
|
3344
3353
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3345
|
-
}, { ...i, ...
|
|
3354
|
+
}, { ...i, ...b.$attrs }, {
|
|
3346
3355
|
pt: x.value,
|
|
3347
3356
|
rows: o.value,
|
|
3348
3357
|
"total-records": p.value,
|
|
@@ -3356,17 +3365,17 @@ const ba = {
|
|
|
3356
3365
|
showHeaders: ""
|
|
3357
3366
|
}), ae({
|
|
3358
3367
|
empty: f(() => [
|
|
3359
|
-
m("div",
|
|
3360
|
-
m("h5",
|
|
3368
|
+
m("div", Ba, [
|
|
3369
|
+
m("h5", Fa, B(b.emptyMessage ?? "No items Found."), 1)
|
|
3361
3370
|
])
|
|
3362
3371
|
]),
|
|
3363
3372
|
header: f(() => [
|
|
3364
3373
|
m("div", {
|
|
3365
3374
|
class: F(i.loading ? "opacity-50" : "")
|
|
3366
3375
|
}, [
|
|
3367
|
-
m("div",
|
|
3368
|
-
m("div",
|
|
3369
|
-
|
|
3376
|
+
m("div", Sa, [
|
|
3377
|
+
m("div", Ca, [
|
|
3378
|
+
b.paginator && !b.legacyPaginationFooter ? (r(), v("span", za, [
|
|
3370
3379
|
h(he, {
|
|
3371
3380
|
total: p.value,
|
|
3372
3381
|
"page-sizes": n.value,
|
|
@@ -3378,16 +3387,16 @@ const ba = {
|
|
|
3378
3387
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3379
3388
|
])) : C("", !0)
|
|
3380
3389
|
]),
|
|
3381
|
-
m("div",
|
|
3382
|
-
|
|
3390
|
+
m("div", Ta, [
|
|
3391
|
+
b.showClearButton ? (r(), y(u(q), {
|
|
3383
3392
|
key: 0,
|
|
3384
3393
|
outlined: "",
|
|
3385
|
-
class: F(
|
|
3394
|
+
class: F(b.showExporterButton ? "me-2" : ""),
|
|
3386
3395
|
onClick: d,
|
|
3387
3396
|
"data-cy": "clear-all"
|
|
3388
3397
|
}, {
|
|
3389
3398
|
default: f(() => [
|
|
3390
|
-
h(u(
|
|
3399
|
+
h(u(P), {
|
|
3391
3400
|
icon: "bi:funnel-fill",
|
|
3392
3401
|
width: "24",
|
|
3393
3402
|
height: "24"
|
|
@@ -3396,14 +3405,14 @@ const ba = {
|
|
|
3396
3405
|
]),
|
|
3397
3406
|
_: 1
|
|
3398
3407
|
}, 8, ["class"])) : C("", !0),
|
|
3399
|
-
|
|
3408
|
+
b.showExporterButton ? (r(), y(u(q), {
|
|
3400
3409
|
key: 1,
|
|
3401
3410
|
outlined: "",
|
|
3402
3411
|
onClick: $,
|
|
3403
3412
|
"data-cy": "exporter"
|
|
3404
3413
|
}, {
|
|
3405
3414
|
default: f(() => [
|
|
3406
|
-
h(u(
|
|
3415
|
+
h(u(P), {
|
|
3407
3416
|
icon: "typcn:export",
|
|
3408
3417
|
width: "24",
|
|
3409
3418
|
height: "24"
|
|
@@ -3412,23 +3421,23 @@ const ba = {
|
|
|
3412
3421
|
]),
|
|
3413
3422
|
_: 1
|
|
3414
3423
|
})) : C("", !0),
|
|
3415
|
-
k(
|
|
3424
|
+
k(b.$slots, "column-customiser")
|
|
3416
3425
|
])
|
|
3417
3426
|
])
|
|
3418
3427
|
], 2)
|
|
3419
3428
|
]),
|
|
3420
3429
|
default: f(() => [
|
|
3421
|
-
k(
|
|
3430
|
+
k(b.$slots, "default")
|
|
3422
3431
|
]),
|
|
3423
3432
|
_: 2
|
|
3424
3433
|
}, [
|
|
3425
|
-
E(
|
|
3426
|
-
name:
|
|
3434
|
+
E(b.$slots, (I, g) => ({
|
|
3435
|
+
name: g,
|
|
3427
3436
|
fn: f((V) => [
|
|
3428
|
-
k(
|
|
3437
|
+
k(b.$slots, g, W(G(V || {})))
|
|
3429
3438
|
])
|
|
3430
3439
|
})),
|
|
3431
|
-
|
|
3440
|
+
b.legacyPaginationFooter ? {
|
|
3432
3441
|
name: "paginatorstart",
|
|
3433
3442
|
fn: f(() => [
|
|
3434
3443
|
m("span", {
|
|
@@ -3447,7 +3456,7 @@ const ba = {
|
|
|
3447
3456
|
]),
|
|
3448
3457
|
key: "0"
|
|
3449
3458
|
} : void 0,
|
|
3450
|
-
|
|
3459
|
+
b.legacyPaginationFooter ? {
|
|
3451
3460
|
name: "paginatorend",
|
|
3452
3461
|
fn: f(() => [
|
|
3453
3462
|
m("span", {
|
|
@@ -3460,7 +3469,10 @@ const ba = {
|
|
|
3460
3469
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3461
3470
|
]));
|
|
3462
3471
|
}
|
|
3463
|
-
}),
|
|
3472
|
+
}), _a = { class: "position-relative" }, Pa = { "data-cy": "above-table-slot" }, ja = { class: "d-flex w-100" }, Ia = {
|
|
3473
|
+
class: "mx-auto",
|
|
3474
|
+
"data-cy": "empty-message"
|
|
3475
|
+
}, Ma = { class: "d-flex" }, Va = { class: "d-flex align-items-end mb-2" }, Da = { key: 0 }, Oa = { class: "ms-auto" }, yl = /* @__PURE__ */ S({
|
|
3464
3476
|
__name: "ForgeTreeTable",
|
|
3465
3477
|
props: {
|
|
3466
3478
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3529,20 +3541,20 @@ const ba = {
|
|
|
3529
3541
|
sortField: "",
|
|
3530
3542
|
total: a.totalRecords ?? a.value.length
|
|
3531
3543
|
}), c = z(() => a.totalRecords ?? a.value.length), x = z(() => {
|
|
3532
|
-
const
|
|
3533
|
-
return `${
|
|
3544
|
+
const g = Math.ceil(c.value / n.value);
|
|
3545
|
+
return `${g} ${ee(g, "page")}`;
|
|
3534
3546
|
}), d = z(() => ({
|
|
3535
3547
|
root: "position-relative",
|
|
3536
|
-
table: (
|
|
3548
|
+
table: (g) => ({
|
|
3537
3549
|
class: [
|
|
3538
3550
|
"table position-relative",
|
|
3539
3551
|
{
|
|
3540
|
-
"table-striped":
|
|
3541
|
-
"table-hover":
|
|
3542
|
-
"table-bordered":
|
|
3543
|
-
"table-sm":
|
|
3544
|
-
"table-lg":
|
|
3545
|
-
"opacity-50":
|
|
3552
|
+
"table-striped": g.attrs.stripedRows,
|
|
3553
|
+
"table-hover": g.props.rowHover,
|
|
3554
|
+
"table-bordered": g.props.showGridlines,
|
|
3555
|
+
"table-sm": g.props.size === "small",
|
|
3556
|
+
"table-lg": g.props.size === "large",
|
|
3557
|
+
"opacity-50": g.props.loading
|
|
3546
3558
|
}
|
|
3547
3559
|
]
|
|
3548
3560
|
}),
|
|
@@ -3560,26 +3572,26 @@ const ba = {
|
|
|
3560
3572
|
}
|
|
3561
3573
|
]
|
|
3562
3574
|
}),
|
|
3563
|
-
row: ({ instance:
|
|
3575
|
+
row: ({ instance: g }) => [
|
|
3564
3576
|
{
|
|
3565
|
-
"parent-node":
|
|
3577
|
+
"parent-node": g.node.hasOwnProperty("children")
|
|
3566
3578
|
}
|
|
3567
3579
|
]
|
|
3568
3580
|
}));
|
|
3569
|
-
Q(() => a.parentExpanderFullRow, (
|
|
3570
|
-
|
|
3581
|
+
Q(() => a.parentExpanderFullRow, (g) => {
|
|
3582
|
+
g ? $() : T();
|
|
3571
3583
|
});
|
|
3572
3584
|
const $ = () => {
|
|
3573
3585
|
a.parentExpanderFullRow && setTimeout(
|
|
3574
3586
|
() => {
|
|
3575
|
-
const
|
|
3587
|
+
const g = Array.from(
|
|
3576
3588
|
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3577
3589
|
);
|
|
3578
3590
|
Array.from(
|
|
3579
3591
|
document.querySelectorAll(".parent-node td")
|
|
3580
3592
|
).forEach((L) => {
|
|
3581
3593
|
L.classList.add("d-none");
|
|
3582
|
-
}),
|
|
3594
|
+
}), g.forEach((L) => {
|
|
3583
3595
|
L.setAttribute("colspan", a.totalColumns.toString()), L.classList.remove("d-none");
|
|
3584
3596
|
});
|
|
3585
3597
|
},
|
|
@@ -3588,12 +3600,12 @@ const ba = {
|
|
|
3588
3600
|
}, T = () => {
|
|
3589
3601
|
setTimeout(
|
|
3590
3602
|
() => {
|
|
3591
|
-
const
|
|
3603
|
+
const g = Array.from(
|
|
3592
3604
|
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3593
3605
|
), V = Array.from(
|
|
3594
3606
|
document.querySelectorAll(".parent-node td")
|
|
3595
3607
|
);
|
|
3596
|
-
|
|
3608
|
+
g.forEach((L) => {
|
|
3597
3609
|
L.removeAttribute("colspan");
|
|
3598
3610
|
}), V.forEach((L) => {
|
|
3599
3611
|
L.classList.remove("d-none");
|
|
@@ -3605,21 +3617,21 @@ const ba = {
|
|
|
3605
3617
|
if (a.clearAll)
|
|
3606
3618
|
a.clearAll();
|
|
3607
3619
|
else
|
|
3608
|
-
for (const
|
|
3609
|
-
typeof a.filters[
|
|
3620
|
+
for (const g in a.filters)
|
|
3621
|
+
typeof a.filters[g] == "string" ? a.filters[g] = "" : a.filters[g].value = null;
|
|
3610
3622
|
U(a.filters);
|
|
3611
|
-
}, O = (
|
|
3623
|
+
}, O = (g) => {
|
|
3612
3624
|
var V;
|
|
3613
|
-
p.value.sortDirection =
|
|
3614
|
-
}, U = (
|
|
3615
|
-
p.value.filters =
|
|
3616
|
-
},
|
|
3617
|
-
p.value.page = s.value =
|
|
3625
|
+
p.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = g.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", g), $();
|
|
3626
|
+
}, U = (g) => {
|
|
3627
|
+
p.value.filters = g, i("update:tableContext", p.value), i("update:filters", g), $();
|
|
3628
|
+
}, b = (g) => {
|
|
3629
|
+
p.value.page = s.value = g.page, I(), i("update:tableContext", p.value), i("page", g), $();
|
|
3618
3630
|
}, w = () => {
|
|
3619
3631
|
p.value.perPage = n.value, s.value = 0, p.value.page = s.value = Math.floor(o.value / n.value), I(), i("update:tableContext", p.value), $();
|
|
3620
3632
|
};
|
|
3621
|
-
Q(() => a.filters, (
|
|
3622
|
-
p.value.filters =
|
|
3633
|
+
Q(() => a.filters, (g) => {
|
|
3634
|
+
p.value.filters = g, i("update:tableContext", p.value);
|
|
3623
3635
|
}, { deep: !0 }), Q(() => a.value, () => {
|
|
3624
3636
|
$();
|
|
3625
3637
|
}), ne(() => {
|
|
@@ -3628,31 +3640,36 @@ const ba = {
|
|
|
3628
3640
|
const I = () => {
|
|
3629
3641
|
o.value = s.value * n.value;
|
|
3630
3642
|
};
|
|
3631
|
-
return (
|
|
3643
|
+
return (g, V) => (r(), v("div", _a, [
|
|
3632
3644
|
m("span", Pa, [
|
|
3633
|
-
k(
|
|
3645
|
+
k(g.$slots, "above-table")
|
|
3634
3646
|
]),
|
|
3635
|
-
h(u(Ge),
|
|
3647
|
+
h(u(Ge), _({
|
|
3636
3648
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3637
|
-
}, { ...a, ...
|
|
3649
|
+
}, { ...a, ...g.$attrs }, {
|
|
3638
3650
|
pt: d.value,
|
|
3639
3651
|
"filter-display": a.filters ? "row" : void 0,
|
|
3640
|
-
rows:
|
|
3652
|
+
rows: g.paginator ? n.value : void 0,
|
|
3641
3653
|
"data-cy": "tree-table",
|
|
3642
3654
|
"onUpdate:filters": U,
|
|
3643
3655
|
onSort: O,
|
|
3644
|
-
onPage:
|
|
3656
|
+
onPage: b,
|
|
3645
3657
|
onNodeExpand: V[2] || (V[2] = () => $()),
|
|
3646
3658
|
showHeaders: "",
|
|
3647
3659
|
first: o.value
|
|
3648
3660
|
}), ae({
|
|
3661
|
+
empty: f(() => [
|
|
3662
|
+
m("div", ja, [
|
|
3663
|
+
m("h5", Ia, B(g.emptyMessage ?? "No items Found."), 1)
|
|
3664
|
+
])
|
|
3665
|
+
]),
|
|
3649
3666
|
header: f(() => [
|
|
3650
3667
|
m("div", {
|
|
3651
3668
|
class: F(a.loading ? "opacity-50" : "")
|
|
3652
3669
|
}, [
|
|
3653
|
-
m("div",
|
|
3654
|
-
m("div",
|
|
3655
|
-
|
|
3670
|
+
m("div", Ma, [
|
|
3671
|
+
m("div", Va, [
|
|
3672
|
+
g.paginator && !g.legacyPaginationFooter ? (r(), v("span", Da, [
|
|
3656
3673
|
h(he, {
|
|
3657
3674
|
total: c.value,
|
|
3658
3675
|
"page-sizes": l.value,
|
|
@@ -3664,15 +3681,15 @@ const ba = {
|
|
|
3664
3681
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3665
3682
|
])) : C("", !0)
|
|
3666
3683
|
]),
|
|
3667
|
-
m("div",
|
|
3668
|
-
|
|
3684
|
+
m("div", Oa, [
|
|
3685
|
+
g.showClearButton ? (r(), y(u(q), {
|
|
3669
3686
|
key: 0,
|
|
3670
3687
|
outlined: "",
|
|
3671
3688
|
onClick: D,
|
|
3672
3689
|
"data-cy": "clear-all"
|
|
3673
3690
|
}, {
|
|
3674
3691
|
default: f(() => [
|
|
3675
|
-
h(u(
|
|
3692
|
+
h(u(P), {
|
|
3676
3693
|
icon: "bi:funnel-fill",
|
|
3677
3694
|
width: "24",
|
|
3678
3695
|
height: "24"
|
|
@@ -3681,23 +3698,23 @@ const ba = {
|
|
|
3681
3698
|
]),
|
|
3682
3699
|
_: 1
|
|
3683
3700
|
})) : C("", !0),
|
|
3684
|
-
k(
|
|
3701
|
+
k(g.$slots, "column-customiser")
|
|
3685
3702
|
])
|
|
3686
3703
|
])
|
|
3687
3704
|
], 2)
|
|
3688
3705
|
]),
|
|
3689
3706
|
default: f(() => [
|
|
3690
|
-
k(
|
|
3707
|
+
k(g.$slots, "default")
|
|
3691
3708
|
]),
|
|
3692
3709
|
_: 2
|
|
3693
3710
|
}, [
|
|
3694
|
-
E(
|
|
3711
|
+
E(g.$slots, (L, ve) => ({
|
|
3695
3712
|
name: ve,
|
|
3696
3713
|
fn: f(($e) => [
|
|
3697
|
-
k(
|
|
3714
|
+
k(g.$slots, ve, W(G($e || {})))
|
|
3698
3715
|
])
|
|
3699
3716
|
})),
|
|
3700
|
-
|
|
3717
|
+
g.legacyPaginationFooter ? {
|
|
3701
3718
|
name: "paginatorstart",
|
|
3702
3719
|
fn: f(() => [
|
|
3703
3720
|
m("span", {
|
|
@@ -3716,7 +3733,7 @@ const ba = {
|
|
|
3716
3733
|
]),
|
|
3717
3734
|
key: "0"
|
|
3718
3735
|
} : void 0,
|
|
3719
|
-
|
|
3736
|
+
g.legacyPaginationFooter ? {
|
|
3720
3737
|
name: "paginatorend",
|
|
3721
3738
|
fn: f(() => [
|
|
3722
3739
|
m("span", {
|
|
@@ -3729,7 +3746,7 @@ const ba = {
|
|
|
3729
3746
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3730
3747
|
]));
|
|
3731
3748
|
}
|
|
3732
|
-
}),
|
|
3749
|
+
}), Na = { class: "d-flex position-relative" }, Aa = { class: "d-flex w-100" }, xl = /* @__PURE__ */ S({
|
|
3733
3750
|
__name: "ForgeFilterHeader",
|
|
3734
3751
|
props: /* @__PURE__ */ R({
|
|
3735
3752
|
dataType: {},
|
|
@@ -3760,20 +3777,20 @@ const ba = {
|
|
|
3760
3777
|
};
|
|
3761
3778
|
return (l, n) => {
|
|
3762
3779
|
const o = fe, s = q;
|
|
3763
|
-
return r(), v("div",
|
|
3764
|
-
l.dataType === "numeric" ? (r(), y(o,
|
|
3780
|
+
return r(), v("div", Na, [
|
|
3781
|
+
l.dataType === "numeric" ? (r(), y(o, _({
|
|
3765
3782
|
key: 0,
|
|
3766
3783
|
modelValue: t.value,
|
|
3767
3784
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
|
|
3768
3785
|
modelModifiers: { trim: !0 }
|
|
3769
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), y(xe,
|
|
3786
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), y(xe, _({
|
|
3770
3787
|
key: 1,
|
|
3771
3788
|
modelValue: t.value,
|
|
3772
3789
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3773
3790
|
}, l.$attrs, {
|
|
3774
3791
|
"show-icon": !1,
|
|
3775
3792
|
"show-on-focus": !0
|
|
3776
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), y(u(ie),
|
|
3793
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), y(u(ie), _({
|
|
3777
3794
|
key: 2,
|
|
3778
3795
|
modelValue: t.value,
|
|
3779
3796
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
@@ -3783,7 +3800,7 @@ const ba = {
|
|
|
3783
3800
|
"option-label": l.optionLabel
|
|
3784
3801
|
}), {
|
|
3785
3802
|
value: f(({ value: p, placeholder: c }) => [
|
|
3786
|
-
m("div",
|
|
3803
|
+
m("div", Aa, [
|
|
3787
3804
|
m("span", {
|
|
3788
3805
|
class: F({ "filter-placeholder": p === null })
|
|
3789
3806
|
}, B(a(p, c)), 3),
|
|
@@ -3794,7 +3811,7 @@ const ba = {
|
|
|
3794
3811
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3795
3812
|
}, {
|
|
3796
3813
|
default: f(() => [
|
|
3797
|
-
h(u(
|
|
3814
|
+
h(u(P), {
|
|
3798
3815
|
icon: "bi:x",
|
|
3799
3816
|
width: "1rem",
|
|
3800
3817
|
height: "1rem",
|
|
@@ -3806,7 +3823,7 @@ const ba = {
|
|
|
3806
3823
|
])
|
|
3807
3824
|
]),
|
|
3808
3825
|
_: 1
|
|
3809
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), y(u(re),
|
|
3826
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), y(u(re), _({
|
|
3810
3827
|
key: 3,
|
|
3811
3828
|
modelValue: t.value,
|
|
3812
3829
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
@@ -3816,7 +3833,7 @@ const ba = {
|
|
|
3816
3833
|
"option-label": l.optionLabel,
|
|
3817
3834
|
"option-value": l.optionValue,
|
|
3818
3835
|
filter: ""
|
|
3819
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), y(u(se),
|
|
3836
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), y(u(se), _({
|
|
3820
3837
|
key: 4,
|
|
3821
3838
|
modelValue: t.value,
|
|
3822
3839
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
|
|
@@ -3829,7 +3846,7 @@ const ba = {
|
|
|
3829
3846
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3830
3847
|
}, {
|
|
3831
3848
|
default: f(() => [
|
|
3832
|
-
h(u(
|
|
3849
|
+
h(u(P), {
|
|
3833
3850
|
icon: "bi:x",
|
|
3834
3851
|
width: "1rem",
|
|
3835
3852
|
height: "1rem",
|
|
@@ -4951,7 +4968,7 @@ class we {
|
|
|
4951
4968
|
}
|
|
4952
4969
|
}
|
|
4953
4970
|
K = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
|
|
4954
|
-
const
|
|
4971
|
+
const Ea = new we(ue, ce)._freeze();
|
|
4955
4972
|
function ke(e, t, a, i) {
|
|
4956
4973
|
const l = t.flatMap((n) => n.file);
|
|
4957
4974
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
@@ -4964,7 +4981,7 @@ function ke(e, t, a, i) {
|
|
|
4964
4981
|
})) : t[o].status = "Duplicate";
|
|
4965
4982
|
}), t;
|
|
4966
4983
|
}
|
|
4967
|
-
async function
|
|
4984
|
+
async function Ua(e, t) {
|
|
4968
4985
|
if (e === "Uploaded" && t !== null)
|
|
4969
4986
|
try {
|
|
4970
4987
|
await new ge(t).delete();
|
|
@@ -4987,20 +5004,20 @@ function me(e, t = !0, a = 1) {
|
|
|
4987
5004
|
while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
|
|
4988
5005
|
return e.toFixed(a) + " " + l[n];
|
|
4989
5006
|
}
|
|
4990
|
-
function
|
|
5007
|
+
function qa(e) {
|
|
4991
5008
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
4992
5009
|
}
|
|
4993
|
-
function
|
|
5010
|
+
function La(e) {
|
|
4994
5011
|
return URL.createObjectURL(e);
|
|
4995
5012
|
}
|
|
4996
|
-
function
|
|
5013
|
+
function Ra() {
|
|
4997
5014
|
const e = new we(ue, ce);
|
|
4998
5015
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
4999
5016
|
}
|
|
5000
|
-
const
|
|
5017
|
+
const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disabled", "multiple"], Ga = {
|
|
5001
5018
|
class: "text-break accepted-file-types-container",
|
|
5002
5019
|
id: "accepted-file-types-overlay"
|
|
5003
|
-
},
|
|
5020
|
+
}, Ya = /* @__PURE__ */ S({
|
|
5004
5021
|
__name: "UploadButton",
|
|
5005
5022
|
props: /* @__PURE__ */ R({
|
|
5006
5023
|
acceptedFileTypes: {},
|
|
@@ -5017,7 +5034,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5017
5034
|
};
|
|
5018
5035
|
return (o, s) => {
|
|
5019
5036
|
const p = q;
|
|
5020
|
-
return r(), v("div",
|
|
5037
|
+
return r(), v("div", Ha, [
|
|
5021
5038
|
k(o.$slots, "message"),
|
|
5022
5039
|
m("div", null, [
|
|
5023
5040
|
m("input", {
|
|
@@ -5028,14 +5045,14 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5028
5045
|
disabled: l.value,
|
|
5029
5046
|
multiple: o.maxFileInput > 1,
|
|
5030
5047
|
onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
|
|
5031
|
-
}, null, 40,
|
|
5048
|
+
}, null, 40, Wa),
|
|
5032
5049
|
m("label", {
|
|
5033
5050
|
class: F([{ disabled: l.value }, "btn btn-primary"]),
|
|
5034
5051
|
id: "file-input-button",
|
|
5035
5052
|
for: "file-input"
|
|
5036
5053
|
}, [
|
|
5037
5054
|
k(o.$slots, "button-content", {}, () => [
|
|
5038
|
-
h(u(
|
|
5055
|
+
h(u(P), {
|
|
5039
5056
|
icon: "bi:upload",
|
|
5040
5057
|
class: "me-2",
|
|
5041
5058
|
height: "20px",
|
|
@@ -5062,21 +5079,21 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5062
5079
|
ref: a
|
|
5063
5080
|
}, {
|
|
5064
5081
|
default: f(() => [
|
|
5065
|
-
m("div",
|
|
5082
|
+
m("div", Ga, B(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
5066
5083
|
]),
|
|
5067
5084
|
_: 1
|
|
5068
5085
|
}, 512)
|
|
5069
5086
|
]);
|
|
5070
5087
|
};
|
|
5071
5088
|
}
|
|
5072
|
-
}),
|
|
5089
|
+
}), Ja = {
|
|
5073
5090
|
key: 0,
|
|
5074
5091
|
class: "py-4 px-3",
|
|
5075
5092
|
id: "placeholder-message"
|
|
5076
|
-
},
|
|
5093
|
+
}, Ka = {
|
|
5077
5094
|
key: 1,
|
|
5078
5095
|
class: "d-flex flex-column"
|
|
5079
|
-
},
|
|
5096
|
+
}, Za = /* @__PURE__ */ S({
|
|
5080
5097
|
__name: "DragDropArea",
|
|
5081
5098
|
props: /* @__PURE__ */ R({
|
|
5082
5099
|
maxFileInput: {},
|
|
@@ -5098,20 +5115,20 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5098
5115
|
onDragover: o[1] || (o[1] = X((s) => a.value = !0, ["prevent"])),
|
|
5099
5116
|
onDrop: X(l, ["prevent"])
|
|
5100
5117
|
}, [
|
|
5101
|
-
t.value.length === 0 ? (r(), v("div",
|
|
5102
|
-
h(u(
|
|
5118
|
+
t.value.length === 0 ? (r(), v("div", Ja, [
|
|
5119
|
+
h(u(P), {
|
|
5103
5120
|
icon: "bi:upload",
|
|
5104
5121
|
class: "me-2",
|
|
5105
5122
|
height: "20px",
|
|
5106
5123
|
width: "20px"
|
|
5107
5124
|
}),
|
|
5108
5125
|
o[2] || (o[2] = M(" Drag and drop files here "))
|
|
5109
|
-
])) : (r(), v("div",
|
|
5126
|
+
])) : (r(), v("div", Ka, [
|
|
5110
5127
|
k(n.$slots, "default")
|
|
5111
5128
|
]))
|
|
5112
5129
|
], 34));
|
|
5113
5130
|
}
|
|
5114
|
-
}),
|
|
5131
|
+
}), Xa = { class: "d-flex align-items-center me-2" }, Qa = /* @__PURE__ */ S({
|
|
5115
5132
|
__name: "UploadStatus",
|
|
5116
5133
|
props: {
|
|
5117
5134
|
fileSize: {},
|
|
@@ -5138,7 +5155,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5138
5155
|
});
|
|
5139
5156
|
return (l, n) => {
|
|
5140
5157
|
const o = pe;
|
|
5141
|
-
return r(), v("div",
|
|
5158
|
+
return r(), v("div", Xa, [
|
|
5142
5159
|
t.uploadStatus === "Uploading" ? (r(), y(o, {
|
|
5143
5160
|
key: 0,
|
|
5144
5161
|
"in-line": ""
|
|
@@ -5157,16 +5174,16 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5157
5174
|
]);
|
|
5158
5175
|
};
|
|
5159
5176
|
}
|
|
5160
|
-
}),
|
|
5177
|
+
}), ei = ["data-cy"], ti = { class: "ms-3 d-flex flex-column" }, ai = {
|
|
5161
5178
|
key: 1,
|
|
5162
5179
|
id: "file-name"
|
|
5163
|
-
},
|
|
5180
|
+
}, ii = {
|
|
5164
5181
|
class: "text-black-50",
|
|
5165
5182
|
id: "file-type"
|
|
5166
|
-
},
|
|
5183
|
+
}, li = {
|
|
5167
5184
|
class: "text-black-50",
|
|
5168
5185
|
id: "file-size"
|
|
5169
|
-
},
|
|
5186
|
+
}, ni = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, oi = /* @__PURE__ */ S({
|
|
5170
5187
|
__name: "FileInfo",
|
|
5171
5188
|
props: /* @__PURE__ */ R({
|
|
5172
5189
|
editableFileName: { type: Boolean },
|
|
@@ -5185,25 +5202,25 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5185
5202
|
}),
|
|
5186
5203
|
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5187
5204
|
setup(e, { emit: t }) {
|
|
5188
|
-
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o = j(a.value.name), s = j(""), p = j(0), c = j(), x = z(() => e.acceptedFileTypes.some(({ fileType:
|
|
5205
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o = j(a.value.name), s = j(""), p = j(0), c = j(), x = z(() => e.acceptedFileTypes.some(({ fileType: b }) => b === a.value.type)), d = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : Ra().getType(a.value.name)), T = () => {
|
|
5189
5206
|
o.value != null && (D(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5190
5207
|
}, D = () => {
|
|
5191
|
-
let
|
|
5192
|
-
|
|
5208
|
+
let b = o.value.split("."), w = Ea.getExtension($.value), I = o.value.split(".").pop();
|
|
5209
|
+
b.length === 1 ? I && I.length > 0 && (o.value = [o.value, w].join(".")) : b.length > 1 && I !== w && (o.value = o.value.replace(I, w));
|
|
5193
5210
|
}, O = async () => {
|
|
5194
5211
|
if (!x.value || !d.value) {
|
|
5195
5212
|
l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5196
5213
|
return;
|
|
5197
5214
|
}
|
|
5198
5215
|
l.value = "Preparing", c.value = new AbortController();
|
|
5199
|
-
const [
|
|
5200
|
-
if (!
|
|
5216
|
+
const [b, w] = await e.getFileUrlAction(a.value.name);
|
|
5217
|
+
if (!b) {
|
|
5201
5218
|
l.value = "Failed";
|
|
5202
5219
|
return;
|
|
5203
5220
|
}
|
|
5204
5221
|
try {
|
|
5205
5222
|
l.value = "Uploading";
|
|
5206
|
-
const I = new ge(
|
|
5223
|
+
const I = new ge(b), g = {
|
|
5207
5224
|
abortSignal: c.value.signal,
|
|
5208
5225
|
onProgress: (V) => p.value = V.loadedBytes,
|
|
5209
5226
|
blobHTTPHeaders: {
|
|
@@ -5212,7 +5229,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5212
5229
|
},
|
|
5213
5230
|
tags: { temp: "true" }
|
|
5214
5231
|
};
|
|
5215
|
-
await I.uploadData(a.value,
|
|
5232
|
+
await I.uploadData(a.value, g), s.value = b, l.value = "Uploaded", i.value = w;
|
|
5216
5233
|
} catch (I) {
|
|
5217
5234
|
if (I.name === "AbortError") {
|
|
5218
5235
|
l.value = "Aborted";
|
|
@@ -5221,26 +5238,26 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5221
5238
|
l.value = "Failed";
|
|
5222
5239
|
}
|
|
5223
5240
|
}, U = async () => {
|
|
5224
|
-
await
|
|
5241
|
+
await Ua(l.value, s.value), n("deleted", a.value);
|
|
5225
5242
|
};
|
|
5226
5243
|
return ne(() => {
|
|
5227
5244
|
e.autoUploadToBlob && l.value != "Uploaded" && O();
|
|
5228
|
-
}), (
|
|
5245
|
+
}), (b, w) => {
|
|
5229
5246
|
const I = q;
|
|
5230
5247
|
return r(), v("div", {
|
|
5231
5248
|
class: "py-4 px-3 d-flex",
|
|
5232
5249
|
"data-cy": `file-info-${a.value.name}`
|
|
5233
5250
|
}, [
|
|
5234
5251
|
m("div", null, [
|
|
5235
|
-
u(
|
|
5252
|
+
u(qa)(a.value.type) ? (r(), y(u(Ye), {
|
|
5236
5253
|
key: 0,
|
|
5237
5254
|
id: "thumbnail-image",
|
|
5238
5255
|
"image-class": "image-file-thumbnail border",
|
|
5239
|
-
src: u(
|
|
5256
|
+
src: u(La)(a.value),
|
|
5240
5257
|
alt: a.value.name,
|
|
5241
5258
|
width: "75px",
|
|
5242
5259
|
preview: ""
|
|
5243
|
-
}, null, 8, ["src", "alt"])) : (r(), y(u(
|
|
5260
|
+
}, null, 8, ["src", "alt"])) : (r(), y(u(P), {
|
|
5244
5261
|
key: 1,
|
|
5245
5262
|
id: "file-earmark",
|
|
5246
5263
|
icon: "bi:file-earmark",
|
|
@@ -5248,28 +5265,28 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5248
5265
|
width: "75px"
|
|
5249
5266
|
}))
|
|
5250
5267
|
]),
|
|
5251
|
-
m("div",
|
|
5268
|
+
m("div", ti, [
|
|
5252
5269
|
m("div", null, [
|
|
5253
|
-
|
|
5270
|
+
b.editableFileName ? (r(), y(Gt, {
|
|
5254
5271
|
key: 0,
|
|
5255
5272
|
id: "edit-file-name",
|
|
5256
5273
|
modelValue: o.value,
|
|
5257
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
5258
|
-
rules:
|
|
5274
|
+
"onUpdate:modelValue": w[0] || (w[0] = (g) => o.value = g),
|
|
5275
|
+
rules: b.customFileNameRules,
|
|
5259
5276
|
name: a.value.name,
|
|
5260
5277
|
"complete-action": T
|
|
5261
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span",
|
|
5278
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", ai, B(o.value), 1))
|
|
5262
5279
|
]),
|
|
5263
|
-
m("span",
|
|
5264
|
-
m("span",
|
|
5280
|
+
m("span", ii, "File type: " + B(a.value.type.split("/").pop()), 1),
|
|
5281
|
+
m("span", li, "File size: " + B(u(me)(a.value.size)), 1)
|
|
5265
5282
|
]),
|
|
5266
|
-
m("div",
|
|
5267
|
-
(r(), y(
|
|
5283
|
+
m("div", ni, [
|
|
5284
|
+
(r(), y(Qa, {
|
|
5268
5285
|
key: l.value,
|
|
5269
5286
|
"file-size": a.value.size,
|
|
5270
5287
|
"upload-status": l.value,
|
|
5271
5288
|
"bytes-uploaded": p.value,
|
|
5272
|
-
"max-file-size":
|
|
5289
|
+
"max-file-size": b.maxFileSize
|
|
5273
5290
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
5274
5291
|
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (r(), y(I, {
|
|
5275
5292
|
key: 0,
|
|
@@ -5277,7 +5294,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5277
5294
|
onClick: O
|
|
5278
5295
|
}, {
|
|
5279
5296
|
default: f(() => [
|
|
5280
|
-
h(u(
|
|
5297
|
+
h(u(P), {
|
|
5281
5298
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5282
5299
|
}, null, 8, ["icon"])
|
|
5283
5300
|
]),
|
|
@@ -5286,10 +5303,10 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5286
5303
|
l.value === "Uploading" ? (r(), y(I, {
|
|
5287
5304
|
key: 1,
|
|
5288
5305
|
link: "",
|
|
5289
|
-
onClick: w[1] || (w[1] = (
|
|
5306
|
+
onClick: w[1] || (w[1] = (g) => c.value.abort())
|
|
5290
5307
|
}, {
|
|
5291
5308
|
default: f(() => [
|
|
5292
|
-
h(u(
|
|
5309
|
+
h(u(P), { icon: "bi:x-circle-fill" })
|
|
5293
5310
|
]),
|
|
5294
5311
|
_: 1
|
|
5295
5312
|
})) : (r(), y(I, {
|
|
@@ -5299,27 +5316,27 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5299
5316
|
id: "delete-button"
|
|
5300
5317
|
}, {
|
|
5301
5318
|
default: f(() => [
|
|
5302
|
-
h(u(
|
|
5319
|
+
h(u(P), { icon: "bi:trash" })
|
|
5303
5320
|
]),
|
|
5304
5321
|
_: 1
|
|
5305
5322
|
}))
|
|
5306
5323
|
])
|
|
5307
|
-
], 8,
|
|
5324
|
+
], 8, ei);
|
|
5308
5325
|
};
|
|
5309
5326
|
}
|
|
5310
|
-
}),
|
|
5327
|
+
}), si = { class: "d-flex justify-content-end mt-1 gap-1" }, ri = { id: "max-file-size" }, di = { id: "max-file-input" }, pi = /* @__PURE__ */ S({
|
|
5311
5328
|
__name: "FileInputInfo",
|
|
5312
5329
|
props: {
|
|
5313
5330
|
maxFileSize: {},
|
|
5314
5331
|
maxFileInput: {}
|
|
5315
5332
|
},
|
|
5316
5333
|
setup(e) {
|
|
5317
|
-
return (t, a) => (r(), v("div",
|
|
5318
|
-
m("div",
|
|
5319
|
-
m("div",
|
|
5334
|
+
return (t, a) => (r(), v("div", si, [
|
|
5335
|
+
m("div", ri, "Max file size: " + B(u(me)(t.maxFileSize)), 1),
|
|
5336
|
+
m("div", di, "| Max file count: " + B(t.maxFileInput), 1)
|
|
5320
5337
|
]));
|
|
5321
5338
|
}
|
|
5322
|
-
}),
|
|
5339
|
+
}), ci = { "data-cy": "file-uploader" }, ui = { key: 0 }, hl = /* @__PURE__ */ S({
|
|
5323
5340
|
__name: "ForgeFileUploader",
|
|
5324
5341
|
props: /* @__PURE__ */ R({
|
|
5325
5342
|
acceptedFileTypes: {},
|
|
@@ -5339,13 +5356,13 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5339
5356
|
const t = N(e, "modelValue"), a = e, i = (l) => {
|
|
5340
5357
|
t.value = t.value.filter((n) => n.file != l);
|
|
5341
5358
|
};
|
|
5342
|
-
return (l, n) => (r(), v("div",
|
|
5343
|
-
h(
|
|
5359
|
+
return (l, n) => (r(), v("div", ci, [
|
|
5360
|
+
h(Ya, _(a, {
|
|
5344
5361
|
modelValue: t.value,
|
|
5345
5362
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
|
|
5346
5363
|
}), null, 16, ["modelValue"]),
|
|
5347
|
-
l.showDragDropArea ? (r(), v("div",
|
|
5348
|
-
h(
|
|
5364
|
+
l.showDragDropArea ? (r(), v("div", ui, [
|
|
5365
|
+
h(Za, {
|
|
5349
5366
|
"max-file-input": a.maxFileInput,
|
|
5350
5367
|
"max-file-size": a.maxFileSize,
|
|
5351
5368
|
"accepted-file-types": a.acceptedFileTypes,
|
|
@@ -5354,7 +5371,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5354
5371
|
}, {
|
|
5355
5372
|
default: f(() => [
|
|
5356
5373
|
(r(!0), v(A, null, E(t.value, ({ file: o }, s) => (r(), v("div", null, [
|
|
5357
|
-
(r(), y(
|
|
5374
|
+
(r(), y(oi, _({
|
|
5358
5375
|
key: o.name,
|
|
5359
5376
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5360
5377
|
file: t.value[s].file,
|
|
@@ -5369,14 +5386,14 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5369
5386
|
]),
|
|
5370
5387
|
_: 1
|
|
5371
5388
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5372
|
-
h(
|
|
5389
|
+
h(pi, {
|
|
5373
5390
|
"max-file-size": a.maxFileSize,
|
|
5374
5391
|
"max-file-input": l.maxFileInput
|
|
5375
5392
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5376
5393
|
])) : C("", !0)
|
|
5377
5394
|
]));
|
|
5378
5395
|
}
|
|
5379
|
-
}),
|
|
5396
|
+
}), mi = { class: "d-flex" }, vi = { class: "me-3" }, fi = { class: "ms-2" }, gi = { class: "d-flex flex-column w-100" }, wl = /* @__PURE__ */ S({
|
|
5380
5397
|
__name: "ForgeColumnCustomiser",
|
|
5381
5398
|
props: {
|
|
5382
5399
|
modelValue: { required: !0 },
|
|
@@ -5393,13 +5410,13 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5393
5410
|
class: "ms-2"
|
|
5394
5411
|
}, {
|
|
5395
5412
|
default: f(() => [
|
|
5396
|
-
m("div",
|
|
5397
|
-
m("div",
|
|
5398
|
-
h(u(
|
|
5413
|
+
m("div", mi, [
|
|
5414
|
+
m("div", vi, [
|
|
5415
|
+
h(u(P), { icon: "bi:layout-three-columns" })
|
|
5399
5416
|
]),
|
|
5400
5417
|
M(" Columns (" + B(t.value.filter((s) => s.selected).length ?? 0) + "/" + B(t.value.length ?? 0) + ") ", 1),
|
|
5401
|
-
m("div",
|
|
5402
|
-
h(u(
|
|
5418
|
+
m("div", fi, [
|
|
5419
|
+
h(u(P), {
|
|
5403
5420
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5404
5421
|
}, null, 8, ["icon"])
|
|
5405
5422
|
])
|
|
@@ -5415,7 +5432,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5415
5432
|
onShow: o[1] || (o[1] = () => i.value = !0)
|
|
5416
5433
|
}, {
|
|
5417
5434
|
default: f(() => [
|
|
5418
|
-
m("div",
|
|
5435
|
+
m("div", gi, [
|
|
5419
5436
|
(r(!0), v(A, null, E(t.value, (s, p) => (r(), v("div", {
|
|
5420
5437
|
class: F(["d-flex cursor-pointer", {
|
|
5421
5438
|
"border-top": p !== 0,
|
|
@@ -5439,19 +5456,19 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5439
5456
|
}, 512)
|
|
5440
5457
|
], 64));
|
|
5441
5458
|
}
|
|
5442
|
-
}),
|
|
5459
|
+
}), kl = /* @__PURE__ */ S({
|
|
5443
5460
|
__name: "ForgePanel",
|
|
5444
5461
|
setup(e) {
|
|
5445
5462
|
return (t, a) => {
|
|
5446
5463
|
const i = Je;
|
|
5447
5464
|
return r(), y(i, W(G({ ...t.$attrs })), ae({
|
|
5448
5465
|
toggleicon: f(({ collapsed: l }) => [
|
|
5449
|
-
l ? (r(), y(u(
|
|
5466
|
+
l ? (r(), y(u(P), {
|
|
5450
5467
|
key: 0,
|
|
5451
5468
|
"data-cy": "message-icon",
|
|
5452
5469
|
icon: "bi:chevron-down"
|
|
5453
5470
|
})) : C("", !0),
|
|
5454
|
-
l ? C("", !0) : (r(), y(u(
|
|
5471
|
+
l ? C("", !0) : (r(), y(u(P), {
|
|
5455
5472
|
key: 1,
|
|
5456
5473
|
"data-cy": "message-icon",
|
|
5457
5474
|
icon: "bi:chevron-up"
|
|
@@ -5468,7 +5485,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5468
5485
|
]), 1040);
|
|
5469
5486
|
};
|
|
5470
5487
|
}
|
|
5471
|
-
}),
|
|
5488
|
+
}), bi = /* @__PURE__ */ S({
|
|
5472
5489
|
__name: "ForgeToggleButton",
|
|
5473
5490
|
props: {
|
|
5474
5491
|
severity: { default: "primary" }
|
|
@@ -5479,8 +5496,8 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5479
5496
|
class: [
|
|
5480
5497
|
"btn",
|
|
5481
5498
|
{
|
|
5482
|
-
[`focus-ring focus-ring-${t.severity} btn-${t.severity}-subtle border border-2 border-${t.severity} fw-500 text-${t.severity}`]: i.context.active,
|
|
5483
|
-
[`border text-${t.severity} select-btn-${t.severity}`]: !i.context.active,
|
|
5499
|
+
[`focus-ring focus-ring-${t.severity} btn-${t.severity}-subtle border border-2 border-${t.severity} fw-500 text-${t.severity} z-1`]: i.context.active,
|
|
5500
|
+
[`border text-${t.severity} select-btn-${t.severity} z-0`]: !i.context.active,
|
|
5484
5501
|
"btn-secondary-subtle": i.context.disabled,
|
|
5485
5502
|
"border-danger": i.props.invalid
|
|
5486
5503
|
}
|
|
@@ -5495,15 +5512,15 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5495
5512
|
]
|
|
5496
5513
|
})
|
|
5497
5514
|
}));
|
|
5498
|
-
return (i, l) => (r(), y(u(Ke),
|
|
5515
|
+
return (i, l) => (r(), y(u(Ke), _({ ...i.$attrs, ...t }, {
|
|
5499
5516
|
severity: t.severity,
|
|
5500
5517
|
pt: a.value
|
|
5501
5518
|
}), null, 16, ["severity", "pt"]));
|
|
5502
5519
|
}
|
|
5503
|
-
}),
|
|
5520
|
+
}), yi = {
|
|
5504
5521
|
class: "btn-group",
|
|
5505
5522
|
"data-cy": "forge-select-button"
|
|
5506
|
-
},
|
|
5523
|
+
}, $l = /* @__PURE__ */ S({
|
|
5507
5524
|
__name: "ForgeSelectButton",
|
|
5508
5525
|
props: /* @__PURE__ */ R({
|
|
5509
5526
|
options: {},
|
|
@@ -5533,8 +5550,8 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5533
5550
|
} else
|
|
5534
5551
|
a.value = a.value === n.value && t.allowEmpty ? null : n.value;
|
|
5535
5552
|
};
|
|
5536
|
-
return (n, o) => (r(), v("div",
|
|
5537
|
-
(r(!0), v(A, null, E(n.options, (s, p) => (r(), y(
|
|
5553
|
+
return (n, o) => (r(), v("div", yi, [
|
|
5554
|
+
(r(!0), v(A, null, E(n.options, (s, p) => (r(), y(bi, {
|
|
5538
5555
|
key: p,
|
|
5539
5556
|
onLabel: s.label,
|
|
5540
5557
|
offLabel: s.label,
|
|
@@ -5547,7 +5564,7 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5547
5564
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5548
5565
|
]));
|
|
5549
5566
|
}
|
|
5550
|
-
}),
|
|
5567
|
+
}), Bl = /* @__PURE__ */ S({
|
|
5551
5568
|
__name: "ForgeConfirmPopup",
|
|
5552
5569
|
setup(e) {
|
|
5553
5570
|
const t = z(() => ({
|
|
@@ -5561,14 +5578,14 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5561
5578
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5562
5579
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5563
5580
|
}));
|
|
5564
|
-
return (a, i) => (r(), y(u(Ze),
|
|
5581
|
+
return (a, i) => (r(), y(u(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5565
5582
|
default: f(() => [
|
|
5566
5583
|
(r(!0), v(A, null, E(a.$slots, (l, n) => k(a.$slots, n, { slot: n })), 256))
|
|
5567
5584
|
]),
|
|
5568
5585
|
_: 3
|
|
5569
5586
|
}, 16, ["pt"]));
|
|
5570
5587
|
}
|
|
5571
|
-
}),
|
|
5588
|
+
}), Fl = () => ({
|
|
5572
5589
|
type: "component",
|
|
5573
5590
|
resolve: (e) => {
|
|
5574
5591
|
if (e.startsWith("Forge"))
|
|
@@ -5579,39 +5596,39 @@ const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disable
|
|
|
5579
5596
|
}
|
|
5580
5597
|
});
|
|
5581
5598
|
export {
|
|
5582
|
-
|
|
5583
|
-
|
|
5599
|
+
Qi as Bootstrap_PT,
|
|
5600
|
+
el as ForgeActionButton,
|
|
5584
5601
|
de as ForgeAlert,
|
|
5585
|
-
|
|
5602
|
+
tl as ForgeAutoComplete,
|
|
5586
5603
|
ye as ForgeCheckbox,
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5604
|
+
cl as ForgeChip,
|
|
5605
|
+
wl as ForgeColumnCustomiser,
|
|
5606
|
+
Bl as ForgeConfirmPopup,
|
|
5590
5607
|
xe as ForgeDatepicker,
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5608
|
+
hl as ForgeFileUploader,
|
|
5609
|
+
xl as ForgeFilterHeader,
|
|
5610
|
+
dl as ForgeForm,
|
|
5611
|
+
pl as ForgeFormField,
|
|
5612
|
+
Gt as ForgeInlineEditor,
|
|
5613
|
+
al as ForgeLink,
|
|
5597
5614
|
pe as ForgeLoader,
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5615
|
+
nl as ForgeModal,
|
|
5616
|
+
Qt as ForgeMultiSelectPreview,
|
|
5617
|
+
ol as ForgeNavbar,
|
|
5618
|
+
sl as ForgePageHeader,
|
|
5619
|
+
kl as ForgePanel,
|
|
5620
|
+
ul as ForgeProgressBar,
|
|
5621
|
+
rl as ForgeRemainingCharacters,
|
|
5622
|
+
Fl as ForgeResolver,
|
|
5623
|
+
ml as ForgeScratchpad,
|
|
5624
|
+
$l as ForgeSelectButton,
|
|
5625
|
+
vl as ForgeStatWidget,
|
|
5626
|
+
fl as ForgeStepper,
|
|
5627
|
+
bl as ForgeTable,
|
|
5628
|
+
gl as ForgeTile,
|
|
5629
|
+
bi as ForgeToggleButton,
|
|
5630
|
+
yl as ForgeTreeTable,
|
|
5631
|
+
ll as convertToMultiSelectOption,
|
|
5632
|
+
il as enumToMultiSelectList,
|
|
5616
5633
|
Ot as parseError
|
|
5617
5634
|
};
|