@3squared/forge-ui-3 2.10.0 → 2.10.1
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,8 +1,8 @@
|
|
|
1
1
|
import he from "primevue/message";
|
|
2
|
-
import { defineComponent as $, openBlock as r, createBlock as f, normalizeProps as J, guardReactiveProps as K, withCtx as b, createElementVNode as m, normalizeClass as
|
|
2
|
+
import { defineComponent as $, openBlock as r, createBlock as f, normalizeProps as J, guardReactiveProps as K, withCtx as b, createElementVNode as m, normalizeClass as B, unref as u, createCommentVNode as z, createVNode as x, renderSlot as k, ref as _, createElementBlock as v, Fragment as O, mergeProps as C, renderList as N, mergeModels as U, useModel as D, computed as T, createTextVNode as I, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
|
|
3
3
|
import { Icon as j } from "@iconify/vue";
|
|
4
4
|
import A from "primevue/button";
|
|
5
|
-
import
|
|
5
|
+
import Be from "primevue/toast";
|
|
6
6
|
import Se from "primevue/autocomplete";
|
|
7
7
|
import Ce from "primevue/checkbox";
|
|
8
8
|
import { useField as ee } from "vee-validate";
|
|
@@ -1039,7 +1039,7 @@ const We = {
|
|
|
1039
1039
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1040
1040
|
filterIcon: "d-none"
|
|
1041
1041
|
}
|
|
1042
|
-
},
|
|
1042
|
+
}, Ft = {
|
|
1043
1043
|
treeSelect: {
|
|
1044
1044
|
root: ({ props: e }) => ({
|
|
1045
1045
|
class: [
|
|
@@ -1087,7 +1087,7 @@ const We = {
|
|
|
1087
1087
|
filterIcon: "d-none"
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
},
|
|
1090
|
+
}, Bt = {
|
|
1091
1091
|
fieldset: {
|
|
1092
1092
|
root: () => ({
|
|
1093
1093
|
class: [
|
|
@@ -1131,7 +1131,7 @@ const We = {
|
|
|
1131
1131
|
accordionContent: {
|
|
1132
1132
|
root: "mt-2 mx-4 mb-4"
|
|
1133
1133
|
}
|
|
1134
|
-
},
|
|
1134
|
+
}, Ni = {
|
|
1135
1135
|
...We,
|
|
1136
1136
|
...mt,
|
|
1137
1137
|
...Ye,
|
|
@@ -1162,8 +1162,8 @@ const We = {
|
|
|
1162
1162
|
...st,
|
|
1163
1163
|
...kt,
|
|
1164
1164
|
...tt,
|
|
1165
|
-
...Ft,
|
|
1166
1165
|
...Bt,
|
|
1166
|
+
...Ft,
|
|
1167
1167
|
...$t,
|
|
1168
1168
|
...St,
|
|
1169
1169
|
directives: {
|
|
@@ -1193,13 +1193,13 @@ const We = {
|
|
|
1193
1193
|
return r(), f(l, J(K({ ...a.$attrs, ...t })), {
|
|
1194
1194
|
icon: b(() => [
|
|
1195
1195
|
m("div", {
|
|
1196
|
-
class:
|
|
1196
|
+
class: B(t.icon ? "me-2 pe-1" : "")
|
|
1197
1197
|
}, [
|
|
1198
1198
|
t.icon ? (r(), f(u(j), {
|
|
1199
1199
|
key: 0,
|
|
1200
1200
|
"data-cy": "message-icon",
|
|
1201
1201
|
icon: t.icon,
|
|
1202
|
-
class:
|
|
1202
|
+
class: B(`text-${t.severity}`),
|
|
1203
1203
|
height: 35
|
|
1204
1204
|
}, null, 8, ["icon", "class"])) : z("", !0)
|
|
1205
1205
|
], 2)
|
|
@@ -1208,13 +1208,13 @@ const We = {
|
|
|
1208
1208
|
x(u(j), { icon: "bi:x" })
|
|
1209
1209
|
]),
|
|
1210
1210
|
default: b(() => [
|
|
1211
|
-
|
|
1211
|
+
k(a.$slots, "default")
|
|
1212
1212
|
]),
|
|
1213
1213
|
_: 3
|
|
1214
1214
|
}, 16);
|
|
1215
1215
|
};
|
|
1216
1216
|
}
|
|
1217
|
-
}),
|
|
1217
|
+
}), Ui = /* @__PURE__ */ $({
|
|
1218
1218
|
__name: "ForgeActionButton",
|
|
1219
1219
|
props: {
|
|
1220
1220
|
action: {},
|
|
@@ -1240,16 +1240,16 @@ const We = {
|
|
|
1240
1240
|
disabled: t.value || a.disabled,
|
|
1241
1241
|
onClick: i
|
|
1242
1242
|
}), null, 16, ["loading", "disabled"]),
|
|
1243
|
-
x(u(
|
|
1243
|
+
x(u(Be))
|
|
1244
1244
|
], 64);
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
|
-
}),
|
|
1247
|
+
}), Ai = /* @__PURE__ */ $({
|
|
1248
1248
|
__name: "ForgeAutoComplete",
|
|
1249
1249
|
setup(e) {
|
|
1250
1250
|
return (t, a) => (r(), f(u(Se), C({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1251
1251
|
default: b(() => [
|
|
1252
|
-
(r(!0), v(O, null, N(t.$slots, (i, l) =>
|
|
1252
|
+
(r(!0), v(O, null, N(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
|
|
1253
1253
|
]),
|
|
1254
1254
|
_: 3
|
|
1255
1255
|
}, 16));
|
|
@@ -1318,17 +1318,17 @@ const We = {
|
|
|
1318
1318
|
m("label", {
|
|
1319
1319
|
for: t.name,
|
|
1320
1320
|
onClick: c[1] || (c[1] = (d) => o(d, !a.value)),
|
|
1321
|
-
class:
|
|
1321
|
+
class: B([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1322
1322
|
}, [
|
|
1323
|
-
|
|
1324
|
-
I(
|
|
1323
|
+
k(p.$slots, "default", {}, () => [
|
|
1324
|
+
I(w(t.label), 1)
|
|
1325
1325
|
])
|
|
1326
1326
|
], 10, zt)
|
|
1327
1327
|
], 16),
|
|
1328
1328
|
H(m("small", {
|
|
1329
1329
|
"data-cy": "error",
|
|
1330
1330
|
class: "text-invalid"
|
|
1331
|
-
},
|
|
1331
|
+
}, w(u(n)), 513), [
|
|
1332
1332
|
[Y, s.value]
|
|
1333
1333
|
])
|
|
1334
1334
|
]);
|
|
@@ -1346,12 +1346,12 @@ const We = {
|
|
|
1346
1346
|
return r(), v("div", Tt, [
|
|
1347
1347
|
x(l, {
|
|
1348
1348
|
"animation-duration": ".75",
|
|
1349
|
-
class:
|
|
1349
|
+
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1350
1350
|
}, null, 8, ["class"])
|
|
1351
1351
|
]);
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
1354
|
-
}), jt = ["href", "target"],
|
|
1354
|
+
}), jt = ["href", "target"], qi = /* @__PURE__ */ $({
|
|
1355
1355
|
__name: "ForgeLink",
|
|
1356
1356
|
props: {
|
|
1357
1357
|
url: {},
|
|
@@ -1387,18 +1387,18 @@ const We = {
|
|
|
1387
1387
|
}));
|
|
1388
1388
|
return (i, l) => (r(), v("a", {
|
|
1389
1389
|
id: "link",
|
|
1390
|
-
class:
|
|
1390
|
+
class: B(["cursor-pointer d-flex text-break", t.value]),
|
|
1391
1391
|
href: i.url,
|
|
1392
1392
|
target: i.target
|
|
1393
1393
|
}, [
|
|
1394
|
-
|
|
1394
|
+
k(i.$slots, "default", {}, () => [
|
|
1395
1395
|
i.iconName ? (r(), f(u(j), {
|
|
1396
1396
|
key: 0,
|
|
1397
1397
|
id: "link-icon",
|
|
1398
1398
|
icon: i.iconName,
|
|
1399
|
-
class:
|
|
1399
|
+
class: B(["bi my-auto", a.value])
|
|
1400
1400
|
}, null, 8, ["icon", "class"])) : z("", !0),
|
|
1401
|
-
I(" " +
|
|
1401
|
+
I(" " + w(i.label), 1)
|
|
1402
1402
|
])
|
|
1403
1403
|
], 10, jt));
|
|
1404
1404
|
}
|
|
@@ -1414,16 +1414,16 @@ function It(e) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function Ei(e, t) {
|
|
1418
1418
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function Li(e, t, a) {
|
|
1421
1421
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1422
1422
|
}
|
|
1423
1423
|
const _t = { key: 0 }, Pt = {
|
|
1424
1424
|
class: "d-flex w-100",
|
|
1425
1425
|
"data-cy": "footer"
|
|
1426
|
-
},
|
|
1426
|
+
}, Ri = /* @__PURE__ */ $({
|
|
1427
1427
|
__name: "ForgeModal",
|
|
1428
1428
|
props: /* @__PURE__ */ U({
|
|
1429
1429
|
cancelText: { default: "Cancel" },
|
|
@@ -1507,7 +1507,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
n.value = !1;
|
|
1509
1509
|
}
|
|
1510
|
-
},
|
|
1510
|
+
}, F = T(() => ({
|
|
1511
1511
|
root: [
|
|
1512
1512
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1513
1513
|
{
|
|
@@ -1523,7 +1523,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1523
1523
|
return r(), f(q, C(l, {
|
|
1524
1524
|
onMaximize: c,
|
|
1525
1525
|
onUnmaximize: p,
|
|
1526
|
-
pt:
|
|
1526
|
+
pt: F.value
|
|
1527
1527
|
}), ie({
|
|
1528
1528
|
closeicon: b(() => [
|
|
1529
1529
|
x(u(j), {
|
|
@@ -1554,16 +1554,16 @@ const _t = { key: 0 }, Pt = {
|
|
|
1554
1554
|
}, {
|
|
1555
1555
|
default: b(() => [
|
|
1556
1556
|
m("p", {
|
|
1557
|
-
class:
|
|
1558
|
-
},
|
|
1557
|
+
class: B(o.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1558
|
+
}, w(o.value.header), 3),
|
|
1559
1559
|
o.value.message.length > 0 ? (r(), v("ul", _t, [
|
|
1560
|
-
(r(!0), v(O, null, N(o.value.message, (L) => (r(), v("li", { key: L },
|
|
1560
|
+
(r(!0), v(O, null, N(o.value.message, (L) => (r(), v("li", { key: L }, w(L), 1))), 128))
|
|
1561
1561
|
])) : z("", !0)
|
|
1562
1562
|
]),
|
|
1563
1563
|
_: 1
|
|
1564
1564
|
})) : z("", !0),
|
|
1565
|
-
|
|
1566
|
-
n.value ?
|
|
1565
|
+
k(S.$slots, h, J(K(P || {}))),
|
|
1566
|
+
n.value ? k(S.$slots, "loader", { key: 1 }, () => [
|
|
1567
1567
|
x(ge, { "data-cy": "loader" })
|
|
1568
1568
|
]) : z("", !0)
|
|
1569
1569
|
])
|
|
@@ -1574,7 +1574,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1574
1574
|
m("div", Pt, [
|
|
1575
1575
|
x(M, {
|
|
1576
1576
|
label: S.cancelText,
|
|
1577
|
-
class:
|
|
1577
|
+
class: B(l.cancelClass),
|
|
1578
1578
|
outlined: "",
|
|
1579
1579
|
onClick: g,
|
|
1580
1580
|
id: "cancel-button",
|
|
@@ -1582,7 +1582,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1582
1582
|
}, null, 8, ["label", "class", "type"]),
|
|
1583
1583
|
x(M, {
|
|
1584
1584
|
label: S.submitText,
|
|
1585
|
-
class:
|
|
1585
|
+
class: B([l.submitClass, "ms-auto"]),
|
|
1586
1586
|
onClick: d,
|
|
1587
1587
|
id: "submit-button",
|
|
1588
1588
|
type: l.submitButtonType
|
|
@@ -1613,7 +1613,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1613
1613
|
var S;
|
|
1614
1614
|
i.value = !i.value, (S = l.value) == null || S.focus();
|
|
1615
1615
|
}, o = async () => {
|
|
1616
|
-
if (
|
|
1616
|
+
if (F.value)
|
|
1617
1617
|
return !1;
|
|
1618
1618
|
if (a.value = d.value, t.completeAction)
|
|
1619
1619
|
try {
|
|
@@ -1633,21 +1633,21 @@ const _t = { key: 0 }, Pt = {
|
|
|
1633
1633
|
le(() => {
|
|
1634
1634
|
d.value = a.value;
|
|
1635
1635
|
});
|
|
1636
|
-
const
|
|
1636
|
+
const F = T(() => g.value.length > 0);
|
|
1637
1637
|
return (S, V) => {
|
|
1638
1638
|
const M = ne, q = A;
|
|
1639
1639
|
return r(), v("div", {
|
|
1640
1640
|
id: t.name
|
|
1641
1641
|
}, [
|
|
1642
1642
|
S.readonly ? (r(), v("div", Nt, [
|
|
1643
|
-
|
|
1644
|
-
m("span", Ut,
|
|
1643
|
+
k(S.$slots, "default", {}, () => [
|
|
1644
|
+
m("span", Ut, w(u(d)), 1)
|
|
1645
1645
|
])
|
|
1646
1646
|
])) : (r(), v("div", Mt, [
|
|
1647
1647
|
i.value ? (r(), v("div", Dt, [
|
|
1648
1648
|
H((r(), v("div", Ot, [
|
|
1649
|
-
|
|
1650
|
-
class:
|
|
1649
|
+
k(S.$slots, "editor", {
|
|
1650
|
+
class: B({ "is-invalid": F.value }),
|
|
1651
1651
|
editFinished: o,
|
|
1652
1652
|
cancel: s,
|
|
1653
1653
|
val: u(d)
|
|
@@ -1659,7 +1659,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1659
1659
|
"data-cy": "input",
|
|
1660
1660
|
ref_key: "input",
|
|
1661
1661
|
ref: l,
|
|
1662
|
-
class:
|
|
1662
|
+
class: B({ "is-invalid": F.value }),
|
|
1663
1663
|
onKeydown: [
|
|
1664
1664
|
X(o, ["enter"]),
|
|
1665
1665
|
X(s, ["esc"])
|
|
@@ -1682,11 +1682,11 @@ const _t = { key: 0 }, Pt = {
|
|
|
1682
1682
|
onClick: n,
|
|
1683
1683
|
onFocus: n
|
|
1684
1684
|
}, [
|
|
1685
|
-
|
|
1685
|
+
k(S.$slots, "default", {}, () => [
|
|
1686
1686
|
m("div", {
|
|
1687
|
-
class:
|
|
1687
|
+
class: B(["pe-2 cursor-pointer", { "text-invalid": F.value }]),
|
|
1688
1688
|
"data-cy": "value"
|
|
1689
|
-
},
|
|
1689
|
+
}, w(u(d) ? u(d) : "Click to edit"), 3)
|
|
1690
1690
|
]),
|
|
1691
1691
|
x(q, {
|
|
1692
1692
|
link: "",
|
|
@@ -1695,7 +1695,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1695
1695
|
default: b(() => [
|
|
1696
1696
|
x(u(j), {
|
|
1697
1697
|
icon: "bi:pencil",
|
|
1698
|
-
class: F
|
|
1698
|
+
class: B(F.value ? "text-invalid" : "text-muted"),
|
|
1699
1699
|
"data-cy": "edit-icon",
|
|
1700
1700
|
onKeydown: X(n, ["enter"])
|
|
1701
1701
|
}, null, 8, ["class"])
|
|
@@ -1707,13 +1707,13 @@ const _t = { key: 0 }, Pt = {
|
|
|
1707
1707
|
H(m("small", {
|
|
1708
1708
|
"data-cy": "error",
|
|
1709
1709
|
class: "text-invalid"
|
|
1710
|
-
},
|
|
1711
|
-
[Y,
|
|
1710
|
+
}, w(u(c)), 513), [
|
|
1711
|
+
[Y, F.value]
|
|
1712
1712
|
])
|
|
1713
1713
|
], 8, Vt);
|
|
1714
1714
|
};
|
|
1715
1715
|
}
|
|
1716
|
-
}), qt = ["href"],
|
|
1716
|
+
}), qt = ["href"], Hi = /* @__PURE__ */ $({
|
|
1717
1717
|
__name: "ForgeNavbar",
|
|
1718
1718
|
props: {
|
|
1719
1719
|
severity: { default: "light" },
|
|
@@ -1767,16 +1767,16 @@ const _t = { key: 0 }, Pt = {
|
|
|
1767
1767
|
class: "navbar-brand ms-3",
|
|
1768
1768
|
"data-cy": "logo"
|
|
1769
1769
|
}, [
|
|
1770
|
-
|
|
1770
|
+
k(i.$slots, "logo", {}, () => [
|
|
1771
1771
|
l[0] || (l[0] = I(" Logo "))
|
|
1772
1772
|
])
|
|
1773
1773
|
], 8, qt)
|
|
1774
1774
|
]),
|
|
1775
1775
|
buttonicon: b(() => [
|
|
1776
|
-
|
|
1776
|
+
k(i.$slots, "buttonIcon", {}, () => [
|
|
1777
1777
|
x(u(j), {
|
|
1778
1778
|
icon: "bi:list",
|
|
1779
|
-
class:
|
|
1779
|
+
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1780
1780
|
height: "24",
|
|
1781
1781
|
"data-cy": "burger-icon"
|
|
1782
1782
|
}, null, 8, ["class"])
|
|
@@ -1787,7 +1787,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1787
1787
|
N(i.$slots, (n, o) => ({
|
|
1788
1788
|
name: o,
|
|
1789
1789
|
fn: b((s) => [
|
|
1790
|
-
|
|
1790
|
+
k(i.$slots, o, J(K(s)))
|
|
1791
1791
|
])
|
|
1792
1792
|
}))
|
|
1793
1793
|
]), 1040, ["pt"]));
|
|
@@ -1821,11 +1821,11 @@ const _t = { key: 0 }, Pt = {
|
|
|
1821
1821
|
return (l, n) => {
|
|
1822
1822
|
const o = oe, s = A;
|
|
1823
1823
|
return r(), v("div", {
|
|
1824
|
-
class:
|
|
1824
|
+
class: B(l.orientation === "column" ? "row" : ""),
|
|
1825
1825
|
"data-cy": "multiselect-preview"
|
|
1826
1826
|
}, [
|
|
1827
1827
|
m("div", {
|
|
1828
|
-
class:
|
|
1828
|
+
class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1829
1829
|
"data-cy": "multiselect-container"
|
|
1830
1830
|
}, [
|
|
1831
1831
|
x(o, C({
|
|
@@ -1838,14 +1838,14 @@ const _t = { key: 0 }, Pt = {
|
|
|
1838
1838
|
"data-cy": "multiselect"
|
|
1839
1839
|
}), {
|
|
1840
1840
|
default: b(() => [
|
|
1841
|
-
(r(!0), v(O, null, N(l.$slots, (p, c) =>
|
|
1841
|
+
(r(!0), v(O, null, N(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
|
|
1842
1842
|
]),
|
|
1843
1843
|
_: 3
|
|
1844
1844
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1845
|
-
|
|
1845
|
+
k(l.$slots, "after-multi-select")
|
|
1846
1846
|
], 2),
|
|
1847
1847
|
m("div", {
|
|
1848
|
-
class:
|
|
1848
|
+
class: B(l.orientation === "row" ? "col-12" : "col"),
|
|
1849
1849
|
"data-cy": "options-preview"
|
|
1850
1850
|
}, [
|
|
1851
1851
|
m("div", {
|
|
@@ -1853,13 +1853,13 @@ const _t = { key: 0 }, Pt = {
|
|
|
1853
1853
|
class: "overflow-auto"
|
|
1854
1854
|
}, [
|
|
1855
1855
|
m("div", Et, [
|
|
1856
|
-
l.title ? (r(), v("div", Lt,
|
|
1856
|
+
l.title ? (r(), v("div", Lt, w(l.title), 1)) : z("", !0),
|
|
1857
1857
|
(r(!0), v(O, null, N(a.value, (p) => (r(), v("div", {
|
|
1858
1858
|
key: p.id,
|
|
1859
1859
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1860
1860
|
}, [
|
|
1861
|
-
|
|
1862
|
-
m("span", Rt,
|
|
1861
|
+
k(l.$slots, "list-item", { item: p }, () => [
|
|
1862
|
+
m("span", Rt, w(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1863
1863
|
]),
|
|
1864
1864
|
l.canRemoveItemFromPreview ? (r(), f(s, {
|
|
1865
1865
|
key: 0,
|
|
@@ -1877,7 +1877,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1877
1877
|
_: 2
|
|
1878
1878
|
}, 1032, ["onClick"])) : z("", !0)
|
|
1879
1879
|
]))), 128)),
|
|
1880
|
-
a.value == null || a.value.length == 0 ? (r(), v("div", Ht,
|
|
1880
|
+
a.value == null || a.value.length == 0 ? (r(), v("div", Ht, w(t.optionsPreviewEmptyText), 1)) : z("", !0)
|
|
1881
1881
|
])
|
|
1882
1882
|
], 4)
|
|
1883
1883
|
], 2)
|
|
@@ -1890,7 +1890,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
1890
1890
|
}, Jt = {
|
|
1891
1891
|
"data-cy": "slot",
|
|
1892
1892
|
class: "d-flex align-items-center"
|
|
1893
|
-
},
|
|
1893
|
+
}, Wi = /* @__PURE__ */ $({
|
|
1894
1894
|
__name: "ForgePageHeader",
|
|
1895
1895
|
props: {
|
|
1896
1896
|
title: {}
|
|
@@ -1898,9 +1898,9 @@ const _t = { key: 0 }, Pt = {
|
|
|
1898
1898
|
setup(e) {
|
|
1899
1899
|
const t = e;
|
|
1900
1900
|
return (a, i) => (r(), v("div", Yt, [
|
|
1901
|
-
m("h3", Gt,
|
|
1901
|
+
m("h3", Gt, w(t.title), 1),
|
|
1902
1902
|
m("div", Jt, [
|
|
1903
|
-
|
|
1903
|
+
k(a.$slots, "default")
|
|
1904
1904
|
])
|
|
1905
1905
|
]));
|
|
1906
1906
|
}
|
|
@@ -2075,28 +2075,28 @@ const _t = { key: 0 }, Pt = {
|
|
|
2075
2075
|
]
|
|
2076
2076
|
})
|
|
2077
2077
|
}));
|
|
2078
|
-
return (d,
|
|
2078
|
+
return (d, F) => {
|
|
2079
2079
|
const S = _e;
|
|
2080
2080
|
return r(), v(O, null, [
|
|
2081
2081
|
m("div", Kt, [
|
|
2082
2082
|
m("span", Zt, [
|
|
2083
|
-
|
|
2083
|
+
k(d.$slots, "before")
|
|
2084
2084
|
]),
|
|
2085
2085
|
m("div", Xt, [
|
|
2086
2086
|
x(S, C({ ...t, ...d.$attrs }, {
|
|
2087
2087
|
pt: g.value,
|
|
2088
2088
|
modelValue: a.value,
|
|
2089
2089
|
"onUpdate:modelValue": [
|
|
2090
|
-
|
|
2090
|
+
F[0] || (F[0] = (V) => a.value = V),
|
|
2091
2091
|
u(n)
|
|
2092
2092
|
],
|
|
2093
|
-
onBlur:
|
|
2093
|
+
onBlur: F[1] || (F[1] = () => u(o)),
|
|
2094
2094
|
"input-class": { "datepicker-invalid": c.value }
|
|
2095
2095
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2096
2096
|
H(x(u(j), {
|
|
2097
2097
|
"data-cy": "icon",
|
|
2098
2098
|
icon: "bi:calendar4",
|
|
2099
|
-
class:
|
|
2099
|
+
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2100
2100
|
}, null, 8, ["class"]), [
|
|
2101
2101
|
[Y, t.showIcon]
|
|
2102
2102
|
]),
|
|
@@ -2104,25 +2104,25 @@ const _t = { key: 0 }, Pt = {
|
|
|
2104
2104
|
"data-cy": "icon",
|
|
2105
2105
|
icon: "bi:x",
|
|
2106
2106
|
onClick: p,
|
|
2107
|
-
class:
|
|
2107
|
+
class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2108
2108
|
}, null, 8, ["class"]), [
|
|
2109
2109
|
[Y, t.modelValue]
|
|
2110
2110
|
])
|
|
2111
2111
|
]),
|
|
2112
2112
|
m("span", Qt, [
|
|
2113
|
-
|
|
2113
|
+
k(d.$slots, "after")
|
|
2114
2114
|
])
|
|
2115
2115
|
]),
|
|
2116
2116
|
H(m("small", {
|
|
2117
2117
|
"data-cy": "error",
|
|
2118
2118
|
class: "text-invalid"
|
|
2119
|
-
},
|
|
2119
|
+
}, w(u(l)), 513), [
|
|
2120
2120
|
[Y, c.value]
|
|
2121
2121
|
])
|
|
2122
2122
|
], 64);
|
|
2123
2123
|
};
|
|
2124
2124
|
}
|
|
2125
|
-
}),
|
|
2125
|
+
}), Yi = /* @__PURE__ */ $({
|
|
2126
2126
|
__name: "ForgeRemainingCharacters",
|
|
2127
2127
|
props: {
|
|
2128
2128
|
maxCount: { default: 300 },
|
|
@@ -2131,10 +2131,10 @@ const _t = { key: 0 }, Pt = {
|
|
|
2131
2131
|
setup(e) {
|
|
2132
2132
|
const t = e, a = T(() => t.maxCount - t.currentCount);
|
|
2133
2133
|
return (i, l) => (r(), v("div", {
|
|
2134
|
-
class:
|
|
2135
|
-
}, "Remaining characters: " +
|
|
2134
|
+
class: B(a.value < 0 ? "text-danger" : "")
|
|
2135
|
+
}, "Remaining characters: " + w(a.value), 3));
|
|
2136
2136
|
}
|
|
2137
|
-
}), ea = { class: "d-flex justify-content-between" },
|
|
2137
|
+
}), ea = { class: "d-flex justify-content-between" }, Gi = /* @__PURE__ */ $({
|
|
2138
2138
|
__name: "ForgeForm",
|
|
2139
2139
|
props: {
|
|
2140
2140
|
onSubmit: {},
|
|
@@ -2167,11 +2167,11 @@ const _t = { key: 0 }, Pt = {
|
|
|
2167
2167
|
onSubmit: G(l, ["prevent"])
|
|
2168
2168
|
}), [
|
|
2169
2169
|
n.hideTitle ? z("", !0) : (r(), v(O, { key: 0 }, [
|
|
2170
|
-
|
|
2170
|
+
k(n.$slots, "title", {}, () => [
|
|
2171
2171
|
m("h3", {
|
|
2172
|
-
class:
|
|
2172
|
+
class: B(n.titleClass),
|
|
2173
2173
|
"data-cy": "form-title"
|
|
2174
|
-
},
|
|
2174
|
+
}, w(n.title), 3)
|
|
2175
2175
|
]),
|
|
2176
2176
|
o[1] || (o[1] = m("hr", null, null, -1))
|
|
2177
2177
|
], 64)),
|
|
@@ -2181,17 +2181,17 @@ const _t = { key: 0 }, Pt = {
|
|
|
2181
2181
|
"data-cy": "error"
|
|
2182
2182
|
}, {
|
|
2183
2183
|
default: b(() => [
|
|
2184
|
-
|
|
2184
|
+
k(n.$slots, "error", {
|
|
2185
2185
|
error: i.value.message
|
|
2186
2186
|
}, () => [
|
|
2187
|
-
I(
|
|
2187
|
+
I(w(i.value.message), 1)
|
|
2188
2188
|
])
|
|
2189
2189
|
]),
|
|
2190
2190
|
_: 3
|
|
2191
2191
|
})) : z("", !0),
|
|
2192
|
-
|
|
2192
|
+
k(n.$slots, "default"),
|
|
2193
2193
|
m("div", ea, [
|
|
2194
|
-
|
|
2194
|
+
k(n.$slots, "cancel", {}, () => [
|
|
2195
2195
|
n.hideCancel ? z("", !0) : (r(), f(s, {
|
|
2196
2196
|
key: 0,
|
|
2197
2197
|
"data-cy": "cancel-btn",
|
|
@@ -2201,12 +2201,12 @@ const _t = { key: 0 }, Pt = {
|
|
|
2201
2201
|
onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
|
|
2202
2202
|
}, {
|
|
2203
2203
|
default: b(() => [
|
|
2204
|
-
I(
|
|
2204
|
+
I(w(n.cancelText), 1)
|
|
2205
2205
|
]),
|
|
2206
2206
|
_: 1
|
|
2207
2207
|
}))
|
|
2208
2208
|
]),
|
|
2209
|
-
|
|
2209
|
+
k(n.$slots, "submit", { submit: l }, () => [
|
|
2210
2210
|
x(s, {
|
|
2211
2211
|
"data-cy": "submit-btn",
|
|
2212
2212
|
type: "submit",
|
|
@@ -2214,7 +2214,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2214
2214
|
class: "ms-auto"
|
|
2215
2215
|
}, {
|
|
2216
2216
|
default: b(() => [
|
|
2217
|
-
I(
|
|
2217
|
+
I(w(n.submitText), 1)
|
|
2218
2218
|
]),
|
|
2219
2219
|
_: 1
|
|
2220
2220
|
})
|
|
@@ -2233,7 +2233,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2233
2233
|
}, aa = ["for"], ia = {
|
|
2234
2234
|
key: 0,
|
|
2235
2235
|
class: "text-danger fw-600"
|
|
2236
|
-
},
|
|
2236
|
+
}, Ji = /* @__PURE__ */ $({
|
|
2237
2237
|
__name: "ForgeFormField",
|
|
2238
2238
|
props: /* @__PURE__ */ U({
|
|
2239
2239
|
name: {},
|
|
@@ -2258,7 +2258,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2258
2258
|
return ce(() => n.value, (g) => {
|
|
2259
2259
|
t.value = g;
|
|
2260
2260
|
}, { immediate: !0 }), (g, d) => {
|
|
2261
|
-
const
|
|
2261
|
+
const F = Ve, S = Pe, V = ne, M = te, q = oe, y = be;
|
|
2262
2262
|
return a.type === "checkbox" ? (r(), f(fe, C({
|
|
2263
2263
|
key: 0,
|
|
2264
2264
|
id: a.name,
|
|
@@ -2270,16 +2270,16 @@ const _t = { key: 0 }, Pt = {
|
|
|
2270
2270
|
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(), v("div", ta, [
|
|
2271
2271
|
m("div", {
|
|
2272
2272
|
"data-cy": "input-wrapper",
|
|
2273
|
-
class:
|
|
2273
|
+
class: B(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2274
2274
|
}, [
|
|
2275
2275
|
m("label", {
|
|
2276
2276
|
for: a.name,
|
|
2277
|
-
class:
|
|
2277
|
+
class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2278
2278
|
}, [
|
|
2279
|
-
I(
|
|
2279
|
+
I(w(a.fieldLabel) + " ", 1),
|
|
2280
2280
|
g.required ? (r(), v("span", ia, "*")) : z("", !0)
|
|
2281
2281
|
], 10, aa),
|
|
2282
|
-
|
|
2282
|
+
k(g.$slots, "default", J(K({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2283
2283
|
a.type === "number" ? (r(), f(u(ue), C({
|
|
2284
2284
|
key: 0,
|
|
2285
2285
|
id: a.name
|
|
@@ -2290,7 +2290,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2290
2290
|
onInput: i,
|
|
2291
2291
|
modelValue: t.value,
|
|
2292
2292
|
"onUpdate:modelValue": d[1] || (d[1] = (h) => t.value = h)
|
|
2293
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), f(
|
|
2293
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), f(F, C({
|
|
2294
2294
|
key: 1,
|
|
2295
2295
|
id: a.name
|
|
2296
2296
|
}, g.$attrs, {
|
|
@@ -2343,13 +2343,13 @@ const _t = { key: 0 }, Pt = {
|
|
|
2343
2343
|
H(m("small", {
|
|
2344
2344
|
"data-cy": "error",
|
|
2345
2345
|
class: "invalid-feedback"
|
|
2346
|
-
},
|
|
2346
|
+
}, w(u(o)), 513), [
|
|
2347
2347
|
[Y, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2348
2348
|
])
|
|
2349
2349
|
]));
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
2352
|
-
}),
|
|
2352
|
+
}), Ki = /* @__PURE__ */ $({
|
|
2353
2353
|
__name: "ForgeChip",
|
|
2354
2354
|
props: {
|
|
2355
2355
|
chipSeverity: { default: "primary" },
|
|
@@ -2386,7 +2386,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2386
2386
|
const n = Me;
|
|
2387
2387
|
return r(), f(n, C({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2388
2388
|
default: b(() => [
|
|
2389
|
-
(r(!0), v(O, null, N(i.$slots, (o, s) =>
|
|
2389
|
+
(r(!0), v(O, null, N(i.$slots, (o, s) => k(i.$slots, s, { slot: s })), 256))
|
|
2390
2390
|
]),
|
|
2391
2391
|
_: 3
|
|
2392
2392
|
}, 16, ["pt"]);
|
|
@@ -2439,7 +2439,7 @@ const _t = { key: 0 }, Pt = {
|
|
|
2439
2439
|
const p = De;
|
|
2440
2440
|
return r(), f(p, C({ ...o.$attrs, ...t }, { pt: n.value }), {
|
|
2441
2441
|
default: b(() => [
|
|
2442
|
-
|
|
2442
|
+
k(o.$slots, "default")
|
|
2443
2443
|
]),
|
|
2444
2444
|
_: 3
|
|
2445
2445
|
}, 16, ["pt"]);
|
|
@@ -2762,8 +2762,8 @@ var na = /* @__PURE__ */ $({
|
|
|
2762
2762
|
var p = t.split(o).filter((M) => M.length > 0);
|
|
2763
2763
|
for (let M = 0; M < p.length; M++) {
|
|
2764
2764
|
for (var c = p[M].split(s).filter((q) => q.length > 0), g = "", d = 0; d < c.length; d++) {
|
|
2765
|
-
var
|
|
2766
|
-
V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), g = c[d] + " ", i += n) : g =
|
|
2765
|
+
var F = g + c[d] + " ", S = e.measureText(F), V = S.width;
|
|
2766
|
+
V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), g = c[d] + " ", i += n) : g = F;
|
|
2767
2767
|
}
|
|
2768
2768
|
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), i += c.length > 0 ? n : 0;
|
|
2769
2769
|
}
|
|
@@ -2792,8 +2792,8 @@ var na = /* @__PURE__ */ $({
|
|
|
2792
2792
|
} else if (a.type === "Text") {
|
|
2793
2793
|
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", o = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
|
|
2794
2794
|
if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
|
|
2795
|
-
let d,
|
|
2796
|
-
a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ?
|
|
2795
|
+
let d, F;
|
|
2796
|
+
a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ? F = a.y + Math.floor(a.fontStyle.lineHeight / 2) : F = a.y, t.translate(d, F), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(d * -1, F * -1);
|
|
2797
2797
|
}
|
|
2798
2798
|
a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = o, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
|
|
2799
2799
|
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, g = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
@@ -2836,7 +2836,7 @@ var na = /* @__PURE__ */ $({
|
|
|
2836
2836
|
});
|
|
2837
2837
|
}
|
|
2838
2838
|
});
|
|
2839
|
-
const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1 gap-1" },
|
|
2839
|
+
const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1 gap-1" }, Zi = /* @__PURE__ */ $({
|
|
2840
2840
|
__name: "ForgeScratchpad",
|
|
2841
2841
|
props: {
|
|
2842
2842
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2849,7 +2849,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2849
2849
|
},
|
|
2850
2850
|
emits: ["save"],
|
|
2851
2851
|
setup(e, { emit: t }) {
|
|
2852
|
-
const a = e, i = t, l =
|
|
2852
|
+
const a = e, i = t, l = Fe("drawingCanvas"), n = _(), o = () => {
|
|
2853
2853
|
l == null || l.value.reset();
|
|
2854
2854
|
}, s = () => {
|
|
2855
2855
|
l == null || l.value.redo();
|
|
@@ -2859,7 +2859,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2859
2859
|
i("save", l.value.isEmpty());
|
|
2860
2860
|
};
|
|
2861
2861
|
return (g, d) => {
|
|
2862
|
-
const
|
|
2862
|
+
const F = A;
|
|
2863
2863
|
return r(), v("div", oa, [
|
|
2864
2864
|
x(u(na), C({
|
|
2865
2865
|
ref_key: "drawingCanvas",
|
|
@@ -2875,7 +2875,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2875
2875
|
"line-join": g.lineJoin
|
|
2876
2876
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2877
2877
|
m("div", sa, [
|
|
2878
|
-
a.showUndo ? (r(), f(
|
|
2878
|
+
a.showUndo ? (r(), f(F, {
|
|
2879
2879
|
key: 0,
|
|
2880
2880
|
onClick: p,
|
|
2881
2881
|
outlined: "",
|
|
@@ -2886,7 +2886,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2886
2886
|
])),
|
|
2887
2887
|
_: 1
|
|
2888
2888
|
})) : z("", !0),
|
|
2889
|
-
a.showRedo ? (r(), f(
|
|
2889
|
+
a.showRedo ? (r(), f(F, {
|
|
2890
2890
|
key: 1,
|
|
2891
2891
|
onClick: s,
|
|
2892
2892
|
outlined: "",
|
|
@@ -2897,7 +2897,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2897
2897
|
])),
|
|
2898
2898
|
_: 1
|
|
2899
2899
|
})) : z("", !0),
|
|
2900
|
-
a.showClear ? (r(), f(
|
|
2900
|
+
a.showClear ? (r(), f(F, {
|
|
2901
2901
|
key: 2,
|
|
2902
2902
|
onClick: o,
|
|
2903
2903
|
outlined: "",
|
|
@@ -2908,7 +2908,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2908
2908
|
])),
|
|
2909
2909
|
_: 1
|
|
2910
2910
|
})) : z("", !0),
|
|
2911
|
-
a.showSave ? (r(), f(
|
|
2911
|
+
a.showSave ? (r(), f(F, {
|
|
2912
2912
|
key: 3,
|
|
2913
2913
|
onClick: c,
|
|
2914
2914
|
class: "ms-auto",
|
|
@@ -2923,7 +2923,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2923
2923
|
]);
|
|
2924
2924
|
};
|
|
2925
2925
|
}
|
|
2926
|
-
}), ra = { class: "value text-white w-100 text-center" },
|
|
2926
|
+
}), ra = { class: "value text-white w-100 text-center" }, Xi = /* @__PURE__ */ $({
|
|
2927
2927
|
__name: "ForgeStatWidget",
|
|
2928
2928
|
props: {
|
|
2929
2929
|
size: { default: "md" },
|
|
@@ -2935,11 +2935,11 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2935
2935
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2936
2936
|
}), [
|
|
2937
2937
|
m("span", ra, [
|
|
2938
|
-
|
|
2938
|
+
k(a.$slots, "default")
|
|
2939
2939
|
])
|
|
2940
2940
|
], 16));
|
|
2941
2941
|
}
|
|
2942
|
-
}), da = { key: 0 },
|
|
2942
|
+
}), da = { key: 0 }, Qi = /* @__PURE__ */ $({
|
|
2943
2943
|
__name: "ForgeStepper",
|
|
2944
2944
|
props: {
|
|
2945
2945
|
currentStep: { default: 1 },
|
|
@@ -2997,7 +2997,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
2997
2997
|
ref_for: !0
|
|
2998
2998
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
2999
2999
|
default: b(() => [
|
|
3000
|
-
i.showStepLabel ? (r(), v("div", da,
|
|
3000
|
+
i.showStepLabel ? (r(), v("div", da, w(n.label), 1)) : z("", !0)
|
|
3001
3001
|
]),
|
|
3002
3002
|
_: 2
|
|
3003
3003
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -3011,7 +3011,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3011
3011
|
value: n.value
|
|
3012
3012
|
}, {
|
|
3013
3013
|
default: b(() => [
|
|
3014
|
-
|
|
3014
|
+
k(i.$slots, "step" + n.value)
|
|
3015
3015
|
]),
|
|
3016
3016
|
_: 2
|
|
3017
3017
|
}, 1032, ["value"]))), 128))
|
|
@@ -3022,7 +3022,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3022
3022
|
_: 3
|
|
3023
3023
|
}, 8, ["value"]));
|
|
3024
3024
|
}
|
|
3025
|
-
}), pa = { class: "p-4 text-wrap w-100" }, ca = { class: "p-4 text-wrap w-100" },
|
|
3025
|
+
}), pa = { class: "p-4 text-wrap w-100" }, ca = { class: "p-4 text-wrap w-100" }, el = /* @__PURE__ */ $({
|
|
3026
3026
|
__name: "ForgeTile",
|
|
3027
3027
|
props: {
|
|
3028
3028
|
severity: { default: "primary" },
|
|
@@ -3036,14 +3036,14 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3036
3036
|
const o = A;
|
|
3037
3037
|
return t.clickable ? (r(), f(o, {
|
|
3038
3038
|
key: 0,
|
|
3039
|
-
class:
|
|
3039
|
+
class: B(["d-flex w-100 p-0 text-body", a.value]),
|
|
3040
3040
|
severity: t.severity,
|
|
3041
3041
|
unstyled: "",
|
|
3042
3042
|
"data-cy": "button-tile"
|
|
3043
3043
|
}, {
|
|
3044
3044
|
default: b(() => [
|
|
3045
3045
|
m("div", pa, [
|
|
3046
|
-
|
|
3046
|
+
k(l.$slots, "default", {}, () => [
|
|
3047
3047
|
n[0] || (n[0] = I("Tile Content"))
|
|
3048
3048
|
])
|
|
3049
3049
|
])
|
|
@@ -3051,11 +3051,11 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
|
|
|
3051
3051
|
_: 3
|
|
3052
3052
|
}, 8, ["severity", "class"])) : (r(), v("div", {
|
|
3053
3053
|
key: 1,
|
|
3054
|
-
class:
|
|
3054
|
+
class: B(["d-flex w-100", i.value]),
|
|
3055
3055
|
"data-cy": "tile"
|
|
3056
3056
|
}, [
|
|
3057
3057
|
m("div", ca, [
|
|
3058
|
-
|
|
3058
|
+
k(l.$slots, "default", {}, () => [
|
|
3059
3059
|
n[1] || (n[1] = I("Tile Content"))
|
|
3060
3060
|
])
|
|
3061
3061
|
])
|
|
@@ -3099,14 +3099,14 @@ const ua = {
|
|
|
3099
3099
|
]),
|
|
3100
3100
|
i.total ? (r(), v("div", va, [
|
|
3101
3101
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3102
|
-
m("span", fa,
|
|
3102
|
+
m("span", fa, w(i.total) + " " + w(u(Q)(i.total, "result")) + " across " + w(n.value), 1)
|
|
3103
3103
|
])) : z("", !0)
|
|
3104
3104
|
]));
|
|
3105
3105
|
}
|
|
3106
3106
|
}), ba = { class: "position-relative" }, ya = { "data-cy": "above-table-slot" }, xa = { class: "d-flex w-100" }, ha = {
|
|
3107
3107
|
class: "mx-auto",
|
|
3108
3108
|
"data-cy": "empty-message"
|
|
3109
|
-
}, wa = { class: "d-flex" }, ka = { class: "d-flex align-items-end mb-2" }, $a = { key: 0 },
|
|
3109
|
+
}, wa = { class: "d-flex" }, ka = { class: "d-flex align-items-end mb-2" }, $a = { key: 0 }, Fa = { class: "ms-auto" }, tl = /* @__PURE__ */ $({
|
|
3110
3110
|
__name: "ForgeTable",
|
|
3111
3111
|
props: {
|
|
3112
3112
|
value: {},
|
|
@@ -3231,7 +3231,7 @@ const ua = {
|
|
|
3231
3231
|
for (const y in i.filters)
|
|
3232
3232
|
typeof i.filters[y] == "string" ? i.filters[y] = "" : i.filters[y].value = null;
|
|
3233
3233
|
V(i.filters);
|
|
3234
|
-
},
|
|
3234
|
+
}, F = () => {
|
|
3235
3235
|
l.value.exportCSV();
|
|
3236
3236
|
}, S = (y) => {
|
|
3237
3237
|
var h;
|
|
@@ -3247,7 +3247,7 @@ const ua = {
|
|
|
3247
3247
|
s.value.filters = y, a("update:tableContext", s.value);
|
|
3248
3248
|
}, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y, h) => (r(), v("div", ba, [
|
|
3249
3249
|
m("span", ya, [
|
|
3250
|
-
|
|
3250
|
+
k(y.$slots, "above-table")
|
|
3251
3251
|
]),
|
|
3252
3252
|
x(u(Ee), C({
|
|
3253
3253
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
@@ -3266,12 +3266,12 @@ const ua = {
|
|
|
3266
3266
|
}), ie({
|
|
3267
3267
|
empty: b(() => [
|
|
3268
3268
|
m("div", xa, [
|
|
3269
|
-
m("h5", ha,
|
|
3269
|
+
m("h5", ha, w(y.emptyMessage ?? "No items Found."), 1)
|
|
3270
3270
|
])
|
|
3271
3271
|
]),
|
|
3272
3272
|
header: b(() => [
|
|
3273
3273
|
m("div", {
|
|
3274
|
-
class:
|
|
3274
|
+
class: B(i.loading ? "opacity-50" : "")
|
|
3275
3275
|
}, [
|
|
3276
3276
|
m("div", wa, [
|
|
3277
3277
|
m("div", ka, [
|
|
@@ -3287,11 +3287,11 @@ const ua = {
|
|
|
3287
3287
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3288
3288
|
])) : z("", !0)
|
|
3289
3289
|
]),
|
|
3290
|
-
m("div",
|
|
3290
|
+
m("div", Fa, [
|
|
3291
3291
|
y.showClearButton ? (r(), f(u(A), {
|
|
3292
3292
|
key: 0,
|
|
3293
3293
|
outlined: "",
|
|
3294
|
-
class:
|
|
3294
|
+
class: B(y.showExporterButton ? "me-2" : ""),
|
|
3295
3295
|
onClick: d,
|
|
3296
3296
|
"data-cy": "clear-all"
|
|
3297
3297
|
}, {
|
|
@@ -3308,7 +3308,7 @@ const ua = {
|
|
|
3308
3308
|
y.showExporterButton ? (r(), f(u(A), {
|
|
3309
3309
|
key: 1,
|
|
3310
3310
|
outlined: "",
|
|
3311
|
-
onClick:
|
|
3311
|
+
onClick: F,
|
|
3312
3312
|
"data-cy": "exporter"
|
|
3313
3313
|
}, {
|
|
3314
3314
|
default: b(() => [
|
|
@@ -3321,27 +3321,27 @@ const ua = {
|
|
|
3321
3321
|
]),
|
|
3322
3322
|
_: 1
|
|
3323
3323
|
})) : z("", !0),
|
|
3324
|
-
|
|
3324
|
+
k(y.$slots, "column-customiser")
|
|
3325
3325
|
])
|
|
3326
3326
|
])
|
|
3327
3327
|
], 2)
|
|
3328
3328
|
]),
|
|
3329
3329
|
default: b(() => [
|
|
3330
|
-
|
|
3330
|
+
k(y.$slots, "default")
|
|
3331
3331
|
]),
|
|
3332
3332
|
_: 2
|
|
3333
3333
|
}, [
|
|
3334
3334
|
N(y.$slots, (P, L) => ({
|
|
3335
3335
|
name: L,
|
|
3336
3336
|
fn: b((ae) => [
|
|
3337
|
-
|
|
3337
|
+
k(y.$slots, L, J(K(ae || {})))
|
|
3338
3338
|
])
|
|
3339
3339
|
})),
|
|
3340
3340
|
y.legacyPaginationFooter ? {
|
|
3341
3341
|
name: "paginatorstart",
|
|
3342
3342
|
fn: b(() => [
|
|
3343
3343
|
m("span", {
|
|
3344
|
-
class:
|
|
3344
|
+
class: B(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3345
3345
|
"data-cy": "legacy-page-size"
|
|
3346
3346
|
}, [
|
|
3347
3347
|
h[4] || (h[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
@@ -3361,15 +3361,15 @@ const ua = {
|
|
|
3361
3361
|
fn: b(() => [
|
|
3362
3362
|
m("span", {
|
|
3363
3363
|
"data-cy": "legacy-total",
|
|
3364
|
-
class:
|
|
3365
|
-
},
|
|
3364
|
+
class: B(i.loading ? "opacity-50" : "")
|
|
3365
|
+
}, w(p.value) + " " + w(u(Q)(p.value, "result")) + " across " + w(c.value), 3)
|
|
3366
3366
|
]),
|
|
3367
3367
|
key: "1"
|
|
3368
3368
|
} : void 0
|
|
3369
3369
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3370
3370
|
]));
|
|
3371
3371
|
}
|
|
3372
|
-
}),
|
|
3372
|
+
}), Ba = { class: "d-flex position-relative" }, Sa = { class: "d-flex w-100" }, al = /* @__PURE__ */ $({
|
|
3373
3373
|
__name: "ForgeFilterHeader",
|
|
3374
3374
|
props: /* @__PURE__ */ U({
|
|
3375
3375
|
dataType: {},
|
|
@@ -3400,7 +3400,7 @@ const ua = {
|
|
|
3400
3400
|
};
|
|
3401
3401
|
return (l, n) => {
|
|
3402
3402
|
const o = ue, s = A;
|
|
3403
|
-
return r(), v("div",
|
|
3403
|
+
return r(), v("div", Ba, [
|
|
3404
3404
|
l.dataType === "numeric" ? (r(), f(o, C({
|
|
3405
3405
|
key: 0,
|
|
3406
3406
|
modelValue: t.value,
|
|
@@ -3425,8 +3425,8 @@ const ua = {
|
|
|
3425
3425
|
value: b(({ value: p, placeholder: c }) => [
|
|
3426
3426
|
m("div", Sa, [
|
|
3427
3427
|
m("span", {
|
|
3428
|
-
class:
|
|
3429
|
-
},
|
|
3428
|
+
class: B({ "filter-placeholder": p === null })
|
|
3429
|
+
}, w(a(p, c)), 3),
|
|
3430
3430
|
l.showClearButton && t.value !== null ? (r(), f(s, {
|
|
3431
3431
|
key: 0,
|
|
3432
3432
|
onClick: G(i, ["prevent"]),
|
|
@@ -4658,7 +4658,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4658
4658
|
return (o, s) => {
|
|
4659
4659
|
const p = A;
|
|
4660
4660
|
return r(), v("div", _a, [
|
|
4661
|
-
|
|
4661
|
+
k(o.$slots, "message"),
|
|
4662
4662
|
m("div", null, [
|
|
4663
4663
|
m("input", {
|
|
4664
4664
|
id: "file-input",
|
|
@@ -4670,11 +4670,11 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4670
4670
|
onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
|
|
4671
4671
|
}, null, 40, Pa),
|
|
4672
4672
|
m("label", {
|
|
4673
|
-
class:
|
|
4673
|
+
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
4674
4674
|
id: "file-input-button",
|
|
4675
4675
|
for: "file-input"
|
|
4676
4676
|
}, [
|
|
4677
|
-
|
|
4677
|
+
k(o.$slots, "button-content", {}, () => [
|
|
4678
4678
|
x(u(j), {
|
|
4679
4679
|
icon: "bi:upload",
|
|
4680
4680
|
class: "me-2",
|
|
@@ -4702,7 +4702,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4702
4702
|
ref: a
|
|
4703
4703
|
}, {
|
|
4704
4704
|
default: b(() => [
|
|
4705
|
-
m("div", Va,
|
|
4705
|
+
m("div", Va, w(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
4706
4706
|
]),
|
|
4707
4707
|
_: 1
|
|
4708
4708
|
}, 512)
|
|
@@ -4733,7 +4733,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4733
4733
|
};
|
|
4734
4734
|
return (n, o) => (r(), v("div", {
|
|
4735
4735
|
id: "drag-drop-area",
|
|
4736
|
-
class:
|
|
4736
|
+
class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
4737
4737
|
onDragleave: o[0] || (o[0] = G((s) => a.value = !1, ["prevent"])),
|
|
4738
4738
|
onDragover: o[1] || (o[1] = G((s) => a.value = !0, ["prevent"])),
|
|
4739
4739
|
onDrop: G(l, ["prevent"])
|
|
@@ -4747,7 +4747,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4747
4747
|
}),
|
|
4748
4748
|
o[2] || (o[2] = I(" Drag and drop files here "))
|
|
4749
4749
|
])) : (r(), v("div", Oa, [
|
|
4750
|
-
|
|
4750
|
+
k(n.$slots, "default")
|
|
4751
4751
|
]))
|
|
4752
4752
|
], 34));
|
|
4753
4753
|
}
|
|
@@ -4784,7 +4784,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4784
4784
|
striped: ""
|
|
4785
4785
|
}, {
|
|
4786
4786
|
default: b(() => [
|
|
4787
|
-
I(
|
|
4787
|
+
I(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
|
|
4788
4788
|
]),
|
|
4789
4789
|
_: 1
|
|
4790
4790
|
})) : z("", !0),
|
|
@@ -4795,7 +4795,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4795
4795
|
class: "mb-0 w-75 ms-auto"
|
|
4796
4796
|
}, {
|
|
4797
4797
|
default: b(() => [
|
|
4798
|
-
I(
|
|
4798
|
+
I(w(a.value), 1)
|
|
4799
4799
|
]),
|
|
4800
4800
|
_: 1
|
|
4801
4801
|
}, 8, ["severity"])) : z("", !0)
|
|
@@ -4829,10 +4829,10 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4829
4829
|
}),
|
|
4830
4830
|
emits: /* @__PURE__ */ U(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
4831
4831
|
setup(e, { emit: t }) {
|
|
4832
|
-
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = _(a.value.name), s = _(""), p = _(0), c = _(), g = T(() => e.acceptedFileTypes.some(({ fileType: y }) => y === a.value.type)), d = T(() => a.value.size <= e.maxFileSize),
|
|
4832
|
+
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = _(a.value.name), s = _(""), p = _(0), c = _(), g = T(() => e.acceptedFileTypes.some(({ fileType: y }) => y === a.value.type)), d = T(() => a.value.size <= e.maxFileSize), F = T(() => a.value.type ? a.value.type : Ia().getType(a.value.name)), S = () => {
|
|
4833
4833
|
o.value != null && (V(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
4834
4834
|
}, V = () => {
|
|
4835
|
-
let y = o.value.split("."), h = Ca.getExtension(
|
|
4835
|
+
let y = o.value.split("."), h = Ca.getExtension(F.value), P = o.value.split(".").pop();
|
|
4836
4836
|
y.length === 1 ? P && P.length > 0 && (o.value = [o.value, h].join(".")) : y.length > 1 && P !== h && (o.value = o.value.replace(P, h));
|
|
4837
4837
|
}, M = async () => {
|
|
4838
4838
|
if (!g.value || !d.value) {
|
|
@@ -4851,7 +4851,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4851
4851
|
abortSignal: c.value.signal,
|
|
4852
4852
|
onProgress: (ae) => p.value = ae.loadedBytes,
|
|
4853
4853
|
blobHTTPHeaders: {
|
|
4854
|
-
blobContentType:
|
|
4854
|
+
blobContentType: F.value,
|
|
4855
4855
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
4856
4856
|
},
|
|
4857
4857
|
tags: { temp: "true" }
|
|
@@ -4902,10 +4902,10 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4902
4902
|
rules: y.customFileNameRules,
|
|
4903
4903
|
name: a.value.name,
|
|
4904
4904
|
"complete-action": S
|
|
4905
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La,
|
|
4905
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La, w(o.value), 1))
|
|
4906
4906
|
]),
|
|
4907
|
-
m("span", Ra, "File type: " +
|
|
4908
|
-
m("span", Ha, "File size: " +
|
|
4907
|
+
m("span", Ra, "File type: " + w(a.value.type.split("/").pop()), 1),
|
|
4908
|
+
m("span", Ha, "File size: " + w(u(pe)(a.value.size)), 1)
|
|
4909
4909
|
]),
|
|
4910
4910
|
m("div", Wa, [
|
|
4911
4911
|
(r(), f(Aa, {
|
|
@@ -4951,17 +4951,19 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4951
4951
|
], 8, qa);
|
|
4952
4952
|
};
|
|
4953
4953
|
}
|
|
4954
|
-
}), Ga = { class: "d-flex justify-content-end mt-1" }, Ja = { id: "max-file-size" }, Ka = /* @__PURE__ */ $({
|
|
4955
|
-
__name: "
|
|
4954
|
+
}), Ga = { class: "d-flex justify-content-end mt-1 gap-1" }, Ja = { id: "max-file-size" }, Ka = { id: "max-file-input" }, Za = /* @__PURE__ */ $({
|
|
4955
|
+
__name: "FileInputInfo",
|
|
4956
4956
|
props: {
|
|
4957
|
-
maxFileSize: {}
|
|
4957
|
+
maxFileSize: {},
|
|
4958
|
+
maxFileInput: {}
|
|
4958
4959
|
},
|
|
4959
4960
|
setup(e) {
|
|
4960
4961
|
return (t, a) => (r(), v("div", Ga, [
|
|
4961
|
-
m("div", Ja, "Max file size: " +
|
|
4962
|
+
m("div", Ja, "Max file size: " + w(u(pe)(t.maxFileSize)), 1),
|
|
4963
|
+
m("div", Ka, "| Max file count: " + w(t.maxFileInput), 1)
|
|
4962
4964
|
]));
|
|
4963
4965
|
}
|
|
4964
|
-
}),
|
|
4966
|
+
}), Xa = { "data-cy": "file-uploader" }, Qa = { key: 0 }, il = /* @__PURE__ */ $({
|
|
4965
4967
|
__name: "ForgeFileUploader",
|
|
4966
4968
|
props: /* @__PURE__ */ U({
|
|
4967
4969
|
acceptedFileTypes: {},
|
|
@@ -4981,12 +4983,12 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
4981
4983
|
const t = D(e, "modelValue"), a = e, i = (l) => {
|
|
4982
4984
|
t.value = t.value.filter((n) => n.file != l);
|
|
4983
4985
|
};
|
|
4984
|
-
return (l, n) => (r(), v("div",
|
|
4986
|
+
return (l, n) => (r(), v("div", Xa, [
|
|
4985
4987
|
x(Ma, C(a, {
|
|
4986
4988
|
modelValue: t.value,
|
|
4987
4989
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
|
|
4988
4990
|
}), null, 16, ["modelValue"]),
|
|
4989
|
-
l.showDragDropArea ? (r(), v("div",
|
|
4991
|
+
l.showDragDropArea ? (r(), v("div", Qa, [
|
|
4990
4992
|
x(Na, {
|
|
4991
4993
|
"max-file-input": a.maxFileInput,
|
|
4992
4994
|
"max-file-size": a.maxFileSize,
|
|
@@ -5011,13 +5013,14 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5011
5013
|
]),
|
|
5012
5014
|
_: 1
|
|
5013
5015
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5014
|
-
x(
|
|
5015
|
-
"max-file-size": a.maxFileSize
|
|
5016
|
-
|
|
5016
|
+
x(Za, {
|
|
5017
|
+
"max-file-size": a.maxFileSize,
|
|
5018
|
+
"max-file-input": l.maxFileInput
|
|
5019
|
+
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5017
5020
|
])) : z("", !0)
|
|
5018
5021
|
]));
|
|
5019
5022
|
}
|
|
5020
|
-
}),
|
|
5023
|
+
}), ei = { class: "d-flex" }, ti = { class: "me-3" }, ai = { class: "ms-2" }, ii = { class: "d-flex flex-column w-100" }, ll = /* @__PURE__ */ $({
|
|
5021
5024
|
__name: "ForgeColumnCustomiser",
|
|
5022
5025
|
props: {
|
|
5023
5026
|
modelValue: { required: !0 },
|
|
@@ -5034,12 +5037,12 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5034
5037
|
class: "ms-2"
|
|
5035
5038
|
}, {
|
|
5036
5039
|
default: b(() => [
|
|
5037
|
-
m("div",
|
|
5038
|
-
m("div",
|
|
5040
|
+
m("div", ei, [
|
|
5041
|
+
m("div", ti, [
|
|
5039
5042
|
x(u(j), { icon: "bi:layout-three-columns" })
|
|
5040
5043
|
]),
|
|
5041
|
-
I(" Columns (" +
|
|
5042
|
-
m("div",
|
|
5044
|
+
I(" Columns (" + w(t.value.filter((s) => s.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
|
|
5045
|
+
m("div", ai, [
|
|
5043
5046
|
x(u(j), {
|
|
5044
5047
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5045
5048
|
}, null, 8, ["icon"])
|
|
@@ -5056,9 +5059,9 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5056
5059
|
onShow: o[1] || (o[1] = () => i.value = !0)
|
|
5057
5060
|
}, {
|
|
5058
5061
|
default: b(() => [
|
|
5059
|
-
m("div",
|
|
5062
|
+
m("div", ii, [
|
|
5060
5063
|
(r(!0), v(O, null, N(t.value, (s, p) => (r(), v("div", {
|
|
5061
|
-
class:
|
|
5064
|
+
class: B(["d-flex cursor-pointer", {
|
|
5062
5065
|
"border-top": p !== 0,
|
|
5063
5066
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
5064
5067
|
"pt-1": t.value.length - 1 === p,
|
|
@@ -5080,7 +5083,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5080
5083
|
}, 512)
|
|
5081
5084
|
], 64));
|
|
5082
5085
|
}
|
|
5083
|
-
}),
|
|
5086
|
+
}), nl = /* @__PURE__ */ $({
|
|
5084
5087
|
__name: "ForgePanel",
|
|
5085
5088
|
setup(e) {
|
|
5086
5089
|
return (t, a) => {
|
|
@@ -5099,13 +5102,13 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5099
5102
|
}))
|
|
5100
5103
|
]),
|
|
5101
5104
|
default: b(() => [
|
|
5102
|
-
|
|
5105
|
+
k(t.$slots, "default")
|
|
5103
5106
|
]),
|
|
5104
5107
|
_: 3
|
|
5105
5108
|
}, 16);
|
|
5106
5109
|
};
|
|
5107
5110
|
}
|
|
5108
|
-
}),
|
|
5111
|
+
}), li = /* @__PURE__ */ $({
|
|
5109
5112
|
__name: "ForgeToggleButton",
|
|
5110
5113
|
props: {
|
|
5111
5114
|
severity: { default: "primary" }
|
|
@@ -5137,10 +5140,10 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5137
5140
|
pt: a.value
|
|
5138
5141
|
}), null, 16, ["severity", "pt"]));
|
|
5139
5142
|
}
|
|
5140
|
-
}),
|
|
5143
|
+
}), ni = {
|
|
5141
5144
|
class: "btn-group",
|
|
5142
5145
|
"data-cy": "forge-select-button"
|
|
5143
|
-
},
|
|
5146
|
+
}, ol = /* @__PURE__ */ $({
|
|
5144
5147
|
__name: "ForgeSelectButton",
|
|
5145
5148
|
props: /* @__PURE__ */ U({
|
|
5146
5149
|
options: {},
|
|
@@ -5170,8 +5173,8 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5170
5173
|
} else
|
|
5171
5174
|
a.value = a.value === n.value && t.allowEmpty ? null : n.value;
|
|
5172
5175
|
};
|
|
5173
|
-
return (n, o) => (r(), v("div",
|
|
5174
|
-
(r(!0), v(O, null, N(n.options, (s, p) => (r(), f(
|
|
5176
|
+
return (n, o) => (r(), v("div", ni, [
|
|
5177
|
+
(r(!0), v(O, null, N(n.options, (s, p) => (r(), f(li, {
|
|
5175
5178
|
key: p,
|
|
5176
5179
|
onLabel: s.label,
|
|
5177
5180
|
offLabel: s.label,
|
|
@@ -5184,7 +5187,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5184
5187
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5185
5188
|
]));
|
|
5186
5189
|
}
|
|
5187
|
-
}),
|
|
5190
|
+
}), sl = () => ({
|
|
5188
5191
|
type: "component",
|
|
5189
5192
|
resolve: (e) => {
|
|
5190
5193
|
if (e.startsWith("Forge"))
|
|
@@ -5195,37 +5198,37 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
|
|
|
5195
5198
|
}
|
|
5196
5199
|
});
|
|
5197
5200
|
export {
|
|
5198
|
-
|
|
5199
|
-
|
|
5201
|
+
Ni as Bootstrap_PT,
|
|
5202
|
+
Ui as ForgeActionButton,
|
|
5200
5203
|
se as ForgeAlert,
|
|
5201
|
-
|
|
5204
|
+
Ai as ForgeAutoComplete,
|
|
5202
5205
|
fe as ForgeCheckbox,
|
|
5203
|
-
|
|
5204
|
-
|
|
5206
|
+
Ki as ForgeChip,
|
|
5207
|
+
ll as ForgeColumnCustomiser,
|
|
5205
5208
|
be as ForgeDatepicker,
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5209
|
+
il as ForgeFileUploader,
|
|
5210
|
+
al as ForgeFilterHeader,
|
|
5211
|
+
Gi as ForgeForm,
|
|
5212
|
+
Ji as ForgeFormField,
|
|
5210
5213
|
At as ForgeInlineEditor,
|
|
5211
|
-
|
|
5214
|
+
qi as ForgeLink,
|
|
5212
5215
|
ge as ForgeLoader,
|
|
5213
|
-
|
|
5216
|
+
Ri as ForgeModal,
|
|
5214
5217
|
Wt as ForgeMultiSelectPreview,
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
+
Hi as ForgeNavbar,
|
|
5219
|
+
Wi as ForgePageHeader,
|
|
5220
|
+
nl as ForgePanel,
|
|
5218
5221
|
la as ForgeProgressBar,
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5222
|
+
Yi as ForgeRemainingCharacters,
|
|
5223
|
+
sl as ForgeResolver,
|
|
5224
|
+
Zi as ForgeScratchpad,
|
|
5225
|
+
ol as ForgeSelectButton,
|
|
5226
|
+
Xi as ForgeStatWidget,
|
|
5227
|
+
Qi as ForgeStepper,
|
|
5228
|
+
tl as ForgeTable,
|
|
5229
|
+
el as ForgeTile,
|
|
5230
|
+
li as ForgeToggleButton,
|
|
5231
|
+
Li as convertToMultiSelectOption,
|
|
5232
|
+
Ei as enumToMultiSelectList,
|
|
5230
5233
|
It as parseError
|
|
5231
5234
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface FileInputInfoProps {
|
|
2
|
+
maxFileSize: number;
|
|
3
|
+
maxFileInput: number;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<FileInputInfoProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FileInputInfoProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@3squared/forge-ui-3",
|
|
3
3
|
"repository": "https://github.com/3Squared/ForgeUI-3",
|
|
4
4
|
"description": "ForgeUI 3 is Vue 3 UI Library which combines a variety of popular packages to create a consistent UI for your application.",
|
|
5
|
-
"version": "2.10.
|
|
5
|
+
"version": "2.10.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"contributors": [
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
interface MaxFileSizeProps {
|
|
2
|
-
maxFileSize: number;
|
|
3
|
-
}
|
|
4
|
-
declare const _default: import('vue').DefineComponent<MaxFileSizeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MaxFileSizeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
-
export default _default;
|