@3squared/forge-ui-3 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fe from "primevue/message";
|
|
2
|
-
import { defineComponent as F, openBlock as s, createBlock as k, normalizeProps as K, guardReactiveProps as te, withCtx as g, createElementVNode as u, normalizeClass as B, unref as c, createCommentVNode as C, createVNode as b, renderSlot as
|
|
2
|
+
import { defineComponent as F, openBlock as s, createBlock as k, normalizeProps as K, guardReactiveProps as te, withCtx as g, createElementVNode as u, normalizeClass as B, unref as c, createCommentVNode as C, createVNode as b, renderSlot as $, ref as I, createElementBlock as v, Fragment as N, mergeProps as V, onMounted as ae, watch as ie, computed as w, isRef as le, createTextVNode as z, toDisplayString as h, withDirectives as L, vShow as q, mergeModels as H, useModel as E, createSlots as oe, renderList as j, withKeys as Q, useAttrs as ce, withModifiers as G, normalizeStyle as ge } from "vue";
|
|
3
3
|
import { Icon as T } from "@iconify/vue";
|
|
4
4
|
import R from "primevue/button";
|
|
5
5
|
import he from "primevue/toast";
|
|
@@ -8,8 +8,8 @@ import { useField as Z } from "vee-validate";
|
|
|
8
8
|
import xe from "primevue/progressspinner";
|
|
9
9
|
import ke from "primevue/dialog";
|
|
10
10
|
import re from "primevue/inputtext";
|
|
11
|
-
import { vOnClickOutside as
|
|
12
|
-
import
|
|
11
|
+
import { vOnClickOutside as $e } from "@vueuse/components";
|
|
12
|
+
import _e from "primevue/menubar";
|
|
13
13
|
import Be from "vue-multiselect";
|
|
14
14
|
import Fe from "primevue/calendar";
|
|
15
15
|
import Se from "primevue/inputmask";
|
|
@@ -906,7 +906,7 @@ const De = {
|
|
|
906
906
|
b(c(T), { icon: "bi:x" })
|
|
907
907
|
]),
|
|
908
908
|
default: g(() => [
|
|
909
|
-
|
|
909
|
+
$(l.$slots, "default")
|
|
910
910
|
]),
|
|
911
911
|
_: 3
|
|
912
912
|
}, 16);
|
|
@@ -982,13 +982,13 @@ const De = {
|
|
|
982
982
|
});
|
|
983
983
|
const m = w(() => d.value.length > 0);
|
|
984
984
|
return (p, x) => {
|
|
985
|
-
const
|
|
985
|
+
const _ = we;
|
|
986
986
|
return s(), v(N, null, [
|
|
987
987
|
u("div", V({
|
|
988
988
|
class: "d-flex",
|
|
989
989
|
"data-cy": "checkbox-container"
|
|
990
990
|
}, { ...p.$attrs }), [
|
|
991
|
-
b(
|
|
991
|
+
b(_, V({
|
|
992
992
|
id: a.name
|
|
993
993
|
}, { ...a }, {
|
|
994
994
|
modelValue: c(o),
|
|
@@ -1006,7 +1006,7 @@ const De = {
|
|
|
1006
1006
|
class: B(`${a.disabled ? "opacity-50" : "cursor-pointer"} ${m.value ? "text-danger-dark" : ""}`),
|
|
1007
1007
|
onClick: r
|
|
1008
1008
|
}, [
|
|
1009
|
-
|
|
1009
|
+
$(p.$slots, "default", {}, () => [
|
|
1010
1010
|
z(h(a.label), 1)
|
|
1011
1011
|
])
|
|
1012
1012
|
], 10, ut)
|
|
@@ -1077,7 +1077,7 @@ const De = {
|
|
|
1077
1077
|
href: a.url,
|
|
1078
1078
|
target: a.target
|
|
1079
1079
|
}, [
|
|
1080
|
-
|
|
1080
|
+
$(a.$slots, "default", {}, () => [
|
|
1081
1081
|
a.iconName ? (s(), k(c(T), {
|
|
1082
1082
|
key: 0,
|
|
1083
1083
|
id: "link-icon",
|
|
@@ -1180,7 +1180,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1180
1180
|
]
|
|
1181
1181
|
}));
|
|
1182
1182
|
return (p, x) => {
|
|
1183
|
-
const
|
|
1183
|
+
const _ = R, P = ke;
|
|
1184
1184
|
return s(), k(P, V(a, {
|
|
1185
1185
|
onMaximize: d,
|
|
1186
1186
|
onUnmaximize: i,
|
|
@@ -1223,8 +1223,8 @@ const vt = { key: 0 }, yt = {
|
|
|
1223
1223
|
]),
|
|
1224
1224
|
_: 1
|
|
1225
1225
|
})) : C("", !0),
|
|
1226
|
-
|
|
1227
|
-
o.value ?
|
|
1226
|
+
$(p.$slots, O, K(te(f || {}))),
|
|
1227
|
+
o.value ? $(p.$slots, "loader", { key: 1 }, () => [
|
|
1228
1228
|
b(ye, { "data-cy": "loader" })
|
|
1229
1229
|
]) : C("", !0)
|
|
1230
1230
|
])
|
|
@@ -1233,7 +1233,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1233
1233
|
name: "footer",
|
|
1234
1234
|
fn: g(() => [
|
|
1235
1235
|
u("div", yt, [
|
|
1236
|
-
b(
|
|
1236
|
+
b(_, {
|
|
1237
1237
|
label: p.cancelText,
|
|
1238
1238
|
class: B(a.cancelClass),
|
|
1239
1239
|
outlined: "",
|
|
@@ -1241,7 +1241,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1241
1241
|
id: "cancel-button",
|
|
1242
1242
|
type: a.cancelButtonType
|
|
1243
1243
|
}, null, 8, ["label", "class", "type"]),
|
|
1244
|
-
b(
|
|
1244
|
+
b(_, {
|
|
1245
1245
|
label: p.submitText,
|
|
1246
1246
|
class: B([a.submitClass, "ms-auto"]),
|
|
1247
1247
|
onClick: r,
|
|
@@ -1271,8 +1271,8 @@ const vt = { key: 0 }, yt = {
|
|
|
1271
1271
|
emits: ["update:modelValue"],
|
|
1272
1272
|
setup(e) {
|
|
1273
1273
|
const t = e, l = E(e, "modelValue"), a = I(!1), o = I(), n = () => {
|
|
1274
|
-
var
|
|
1275
|
-
a.value = !a.value, (
|
|
1274
|
+
var _;
|
|
1275
|
+
a.value = !a.value, (_ = o.value) == null || _.focus();
|
|
1276
1276
|
}, i = async () => {
|
|
1277
1277
|
if (x.value)
|
|
1278
1278
|
return !1;
|
|
@@ -1295,19 +1295,19 @@ const vt = { key: 0 }, yt = {
|
|
|
1295
1295
|
p.value = l.value;
|
|
1296
1296
|
});
|
|
1297
1297
|
const x = w(() => m.value.length > 0);
|
|
1298
|
-
return (
|
|
1298
|
+
return (_, P) => {
|
|
1299
1299
|
const S = re, O = R;
|
|
1300
1300
|
return s(), v("div", {
|
|
1301
1301
|
id: t.name
|
|
1302
1302
|
}, [
|
|
1303
|
-
|
|
1304
|
-
_
|
|
1303
|
+
_.readonly ? (s(), v("div", wt, [
|
|
1304
|
+
$(_.$slots, "default", {}, () => [
|
|
1305
1305
|
u("span", xt, h(c(p)), 1)
|
|
1306
1306
|
])
|
|
1307
1307
|
])) : (s(), v("div", ft, [
|
|
1308
1308
|
a.value ? (s(), v("div", gt, [
|
|
1309
1309
|
L((s(), v("div", ht, [
|
|
1310
|
-
_
|
|
1310
|
+
$(_.$slots, "editor", {
|
|
1311
1311
|
class: B({ "is-invalid": x.value }),
|
|
1312
1312
|
editFinished: i,
|
|
1313
1313
|
cancel: d,
|
|
@@ -1335,7 +1335,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1335
1335
|
"data-cy": "clear-icon"
|
|
1336
1336
|
})
|
|
1337
1337
|
])), [
|
|
1338
|
-
[c(
|
|
1338
|
+
[c($e), i]
|
|
1339
1339
|
])
|
|
1340
1340
|
])) : (s(), v("div", {
|
|
1341
1341
|
key: 1,
|
|
@@ -1343,7 +1343,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1343
1343
|
onClick: n,
|
|
1344
1344
|
onFocus: n
|
|
1345
1345
|
}, [
|
|
1346
|
-
_
|
|
1346
|
+
$(_.$slots, "default", {}, () => [
|
|
1347
1347
|
u("div", {
|
|
1348
1348
|
class: B(["pe-2 cursor-pointer", { "text-invalid": x.value }]),
|
|
1349
1349
|
"data-cy": "value"
|
|
@@ -1374,7 +1374,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1374
1374
|
], 8, bt);
|
|
1375
1375
|
};
|
|
1376
1376
|
}
|
|
1377
|
-
}),
|
|
1377
|
+
}), $t = ["href"], cl = /* @__PURE__ */ F({
|
|
1378
1378
|
__name: "ForgeNavbar",
|
|
1379
1379
|
props: {
|
|
1380
1380
|
severity: { default: "light" },
|
|
@@ -1419,7 +1419,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1419
1419
|
})
|
|
1420
1420
|
}));
|
|
1421
1421
|
return (a, o) => {
|
|
1422
|
-
const n =
|
|
1422
|
+
const n = _e;
|
|
1423
1423
|
return s(), k(n, V({ ...t, ...a.$attrs }, {
|
|
1424
1424
|
pt: l.value,
|
|
1425
1425
|
"data-cy": "navbar"
|
|
@@ -1430,13 +1430,13 @@ const vt = { key: 0 }, yt = {
|
|
|
1430
1430
|
class: "navbar-brand ms-3",
|
|
1431
1431
|
"data-cy": "logo"
|
|
1432
1432
|
}, [
|
|
1433
|
-
|
|
1433
|
+
$(a.$slots, "logo", {}, () => [
|
|
1434
1434
|
z(" Logo ")
|
|
1435
1435
|
])
|
|
1436
|
-
], 8,
|
|
1436
|
+
], 8, $t)
|
|
1437
1437
|
]),
|
|
1438
1438
|
menubuttonicon: g(() => [
|
|
1439
|
-
|
|
1439
|
+
$(a.$slots, "menubuttonicon", {}, () => [
|
|
1440
1440
|
b(c(T), {
|
|
1441
1441
|
icon: "bi:list",
|
|
1442
1442
|
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
@@ -1450,13 +1450,13 @@ const vt = { key: 0 }, yt = {
|
|
|
1450
1450
|
j(a.$slots, (i, d) => ({
|
|
1451
1451
|
name: d,
|
|
1452
1452
|
fn: g((y) => [
|
|
1453
|
-
|
|
1453
|
+
$(a.$slots, d, K(te(y)))
|
|
1454
1454
|
])
|
|
1455
1455
|
}))
|
|
1456
1456
|
]), 1040, ["pt"]);
|
|
1457
1457
|
};
|
|
1458
1458
|
}
|
|
1459
|
-
}),
|
|
1459
|
+
}), _t = /* @__PURE__ */ u("div", { class: "ps-1" }, "Select all", -1), Bt = ["data-cy"], Ft = { class: "ps-1 w-100" }, St = { class: "multiselect__tag d-inline-flex" }, Ct = { class: "my-auto" }, Vt = /* @__PURE__ */ F({
|
|
1460
1460
|
__name: "ForgeMultiSelect",
|
|
1461
1461
|
props: {
|
|
1462
1462
|
severity: { default: "primary" },
|
|
@@ -1489,12 +1489,12 @@ const vt = { key: 0 }, yt = {
|
|
|
1489
1489
|
searchable: !!(o.searchable === null || o.searchable) && o.modelValue.length === o.options.length,
|
|
1490
1490
|
async: !1,
|
|
1491
1491
|
...o
|
|
1492
|
-
})), p = w(() => `forge-multiselect-${l.severity}`), x = w(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${
|
|
1492
|
+
})), p = w(() => `forge-multiselect-${l.severity}`), x = w(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${_.value ? " multiselect__option--selected" : ""}`), _ = w(() => m.value && !(m.value.multiple || !l.showSelectAll || m.value.async) ? !1 : o.modelValue.length === o.options.length), P = w(() => i.value.length > 0), S = w(() => !!((o.allowEmpty == null || o.allowEmpty) && l.showClearSelection && (m.value.multiple ? o.modelValue.length > 0 : o.modelValue))), O = () => r.value = !0, f = () => r.value = !1, M = () => {
|
|
1493
1493
|
d.value = m.value.multiple ? [] : null, n("update:modelValue", d.value);
|
|
1494
1494
|
}, Y = (U) => {
|
|
1495
1495
|
n("update:modelValue", l.selectValue ? U.map((D) => D[l.selectValue]) : U);
|
|
1496
1496
|
}, J = (U) => o.modelValue !== null ? o.modelValue.some((D) => m.value.selectValue ? U[l.selectValue] === D : U.id === D.id && U.label === D.label) : !1, se = () => {
|
|
1497
|
-
|
|
1497
|
+
_.value ? M() : (d.value = [...o.options], n("update:modelValue", [...o.options]));
|
|
1498
1498
|
};
|
|
1499
1499
|
return (U, D) => {
|
|
1500
1500
|
const X = ve;
|
|
@@ -1537,7 +1537,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1537
1537
|
])
|
|
1538
1538
|
]),
|
|
1539
1539
|
default: g(() => [
|
|
1540
|
-
(s(!0), v(N, null, j(U.$slots, (A, W) =>
|
|
1540
|
+
(s(!0), v(N, null, j(U.$slots, (A, W) => $(U.$slots, W, { slot: W })), 256))
|
|
1541
1541
|
]),
|
|
1542
1542
|
_: 2
|
|
1543
1543
|
}, [
|
|
@@ -1554,9 +1554,9 @@ const vt = { key: 0 }, yt = {
|
|
|
1554
1554
|
u("span", {
|
|
1555
1555
|
class: B(`${x.value}`)
|
|
1556
1556
|
}, [
|
|
1557
|
-
b(X, { value:
|
|
1557
|
+
b(X, { value: _.value }, {
|
|
1558
1558
|
default: g(() => [
|
|
1559
|
-
|
|
1559
|
+
_t
|
|
1560
1560
|
]),
|
|
1561
1561
|
_: 1
|
|
1562
1562
|
}, 8, ["value"])
|
|
@@ -1646,11 +1646,11 @@ const vt = { key: 0 }, yt = {
|
|
|
1646
1646
|
r.$attrs.modelValue.length > 0 ? (s(), v("span", Tt, h(i.value) + " items selected", 1)) : C("", !0)
|
|
1647
1647
|
]),
|
|
1648
1648
|
default: g(() => [
|
|
1649
|
-
(s(!0), v(N, null, j(r.$slots, (x,
|
|
1649
|
+
(s(!0), v(N, null, j(r.$slots, (x, _) => $(r.$slots, _, { slot: _ })), 256))
|
|
1650
1650
|
]),
|
|
1651
1651
|
_: 3
|
|
1652
1652
|
}, 8, ["modelValue", "limit-text", "options"]),
|
|
1653
|
-
|
|
1653
|
+
$(r.$slots, "after-multi-select")
|
|
1654
1654
|
], 2),
|
|
1655
1655
|
u("div", {
|
|
1656
1656
|
class: B(r.orientation === "row" ? "col-12" : "col"),
|
|
@@ -1666,14 +1666,14 @@ const vt = { key: 0 }, yt = {
|
|
|
1666
1666
|
key: x.id,
|
|
1667
1667
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1668
1668
|
}, [
|
|
1669
|
-
|
|
1669
|
+
$(r.$slots, "list-item", { item: x }, () => [
|
|
1670
1670
|
u("span", Mt, h(x.shortLabel ? x.shortLabel : x.label), 1)
|
|
1671
1671
|
]),
|
|
1672
1672
|
r.canRemoveItemFromPreview ? (s(), k(p, {
|
|
1673
1673
|
key: 0,
|
|
1674
1674
|
link: "",
|
|
1675
1675
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1676
|
-
onClick: (
|
|
1676
|
+
onClick: (_) => y(x.id)
|
|
1677
1677
|
}, {
|
|
1678
1678
|
default: g(() => [
|
|
1679
1679
|
b(c(T), {
|
|
@@ -1708,7 +1708,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1708
1708
|
return (l, a) => (s(), v("div", Ot, [
|
|
1709
1709
|
u("h3", Dt, h(t.title), 1),
|
|
1710
1710
|
u("div", Ut, [
|
|
1711
|
-
|
|
1711
|
+
$(l.$slots, "default")
|
|
1712
1712
|
])
|
|
1713
1713
|
]));
|
|
1714
1714
|
}
|
|
@@ -1882,7 +1882,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1882
1882
|
const d = Fe;
|
|
1883
1883
|
return s(), v(N, null, [
|
|
1884
1884
|
u("span", At, [
|
|
1885
|
-
|
|
1885
|
+
$(n.$slots, "before")
|
|
1886
1886
|
]),
|
|
1887
1887
|
u("div", Nt, [
|
|
1888
1888
|
b(d, V({ ...t, ...n.$attrs }, {
|
|
@@ -1907,7 +1907,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1907
1907
|
])
|
|
1908
1908
|
]),
|
|
1909
1909
|
u("span", Et, [
|
|
1910
|
-
|
|
1910
|
+
$(n.$slots, "after")
|
|
1911
1911
|
])
|
|
1912
1912
|
], 64);
|
|
1913
1913
|
};
|
|
@@ -1957,7 +1957,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1957
1957
|
onSubmit: G(o, ["prevent"])
|
|
1958
1958
|
}), [
|
|
1959
1959
|
n.hideTitle ? C("", !0) : (s(), v(N, { key: 0 }, [
|
|
1960
|
-
|
|
1960
|
+
$(n.$slots, "title", {}, () => [
|
|
1961
1961
|
u("h3", {
|
|
1962
1962
|
class: B(n.titleClass),
|
|
1963
1963
|
"data-cy": "form-title"
|
|
@@ -1971,7 +1971,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1971
1971
|
"data-cy": "error"
|
|
1972
1972
|
}, {
|
|
1973
1973
|
default: g(() => [
|
|
1974
|
-
|
|
1974
|
+
$(n.$slots, "error", {
|
|
1975
1975
|
error: a.value.message
|
|
1976
1976
|
}, () => [
|
|
1977
1977
|
z(h(a.value.message), 1)
|
|
@@ -1979,9 +1979,9 @@ const vt = { key: 0 }, yt = {
|
|
|
1979
1979
|
]),
|
|
1980
1980
|
_: 3
|
|
1981
1981
|
})) : C("", !0),
|
|
1982
|
-
|
|
1982
|
+
$(n.$slots, "default"),
|
|
1983
1983
|
u("div", Ht, [
|
|
1984
|
-
|
|
1984
|
+
$(n.$slots, "cancel", {}, () => [
|
|
1985
1985
|
n.hideCancel ? C("", !0) : (s(), k(d, {
|
|
1986
1986
|
key: 0,
|
|
1987
1987
|
"data-cy": "cancel-btn",
|
|
@@ -1996,7 +1996,7 @@ const vt = { key: 0 }, yt = {
|
|
|
1996
1996
|
_: 1
|
|
1997
1997
|
}))
|
|
1998
1998
|
]),
|
|
1999
|
-
|
|
1999
|
+
$(n.$slots, "submit", { submit: o }, () => [
|
|
2000
2000
|
b(d, {
|
|
2001
2001
|
"data-cy": "submit-btn",
|
|
2002
2002
|
type: "submit",
|
|
@@ -2042,7 +2042,7 @@ const vt = { key: 0 }, yt = {
|
|
|
2042
2042
|
return ie(() => n.value, (m) => {
|
|
2043
2043
|
t.value = m;
|
|
2044
2044
|
}, { immediate: !0 }), (m, p) => {
|
|
2045
|
-
const x = Ce,
|
|
2045
|
+
const x = Ce, _ = Se, P = re;
|
|
2046
2046
|
return l.type === "checkbox" ? (s(), k(ve, V({
|
|
2047
2047
|
key: 0,
|
|
2048
2048
|
id: l.name,
|
|
@@ -2075,7 +2075,7 @@ const vt = { key: 0 }, yt = {
|
|
|
2075
2075
|
"onUpdate:modelValue": p[2] || (p[2] = (S) => t.value = S),
|
|
2076
2076
|
onInput: a,
|
|
2077
2077
|
onBlur: c(y)
|
|
2078
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (s(), k(
|
|
2078
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (s(), k(_, V({
|
|
2079
2079
|
key: 2,
|
|
2080
2080
|
id: l.name
|
|
2081
2081
|
}, m.$attrs, {
|
|
@@ -2240,7 +2240,7 @@ const vt = { key: 0 }, yt = {
|
|
|
2240
2240
|
const y = Te;
|
|
2241
2241
|
return s(), k(y, V({ ...i.$attrs, ...t }, { pt: n.value }), {
|
|
2242
2242
|
default: g(() => [
|
|
2243
|
-
|
|
2243
|
+
$(i.$slots, "default")
|
|
2244
2244
|
]),
|
|
2245
2245
|
_: 3
|
|
2246
2246
|
}, 16, ["pt"]);
|
|
@@ -2258,7 +2258,7 @@ const vt = { key: 0 }, yt = {
|
|
|
2258
2258
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2259
2259
|
}), [
|
|
2260
2260
|
u("span", Gt, [
|
|
2261
|
-
|
|
2261
|
+
$(l.$slots, "default")
|
|
2262
2262
|
])
|
|
2263
2263
|
], 16));
|
|
2264
2264
|
}
|
|
@@ -2332,7 +2332,7 @@ const vt = { key: 0 }, yt = {
|
|
|
2332
2332
|
})
|
|
2333
2333
|
}));
|
|
2334
2334
|
return (r, m) => {
|
|
2335
|
-
const p = R, x = Ie,
|
|
2335
|
+
const p = R, x = Ie, _ = Pe;
|
|
2336
2336
|
return s(), v("div", Kt, [
|
|
2337
2337
|
u("div", Wt, [
|
|
2338
2338
|
b(p, {
|
|
@@ -2358,12 +2358,12 @@ const vt = { key: 0 }, yt = {
|
|
|
2358
2358
|
readonly: !1
|
|
2359
2359
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2360
2360
|
]),
|
|
2361
|
-
b(
|
|
2361
|
+
b(_),
|
|
2362
2362
|
(s(!0), v(N, null, j(a.model, (P, S) => (s(), v("div", {
|
|
2363
2363
|
key: S,
|
|
2364
2364
|
class: "w-100"
|
|
2365
2365
|
}, [
|
|
2366
|
-
S === o.value ?
|
|
2366
|
+
S === o.value ? $(r.$slots, P.key ?? P.label, {
|
|
2367
2367
|
key: 0,
|
|
2368
2368
|
nextStep: i,
|
|
2369
2369
|
previousStep: n
|
|
@@ -2393,10 +2393,11 @@ const vt = { key: 0 }, yt = {
|
|
|
2393
2393
|
props: {
|
|
2394
2394
|
severity: { default: "primary" },
|
|
2395
2395
|
barPosition: { default: "none" },
|
|
2396
|
-
clickable: { type: Boolean, default: !1 }
|
|
2396
|
+
clickable: { type: Boolean, default: !1 },
|
|
2397
|
+
selected: { type: Boolean, default: !1 }
|
|
2397
2398
|
},
|
|
2398
2399
|
setup(e) {
|
|
2399
|
-
const t = e, l = w(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "
|
|
2400
|
+
const t = e, l = w(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), a = w(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
2400
2401
|
return (o, n) => {
|
|
2401
2402
|
const i = R;
|
|
2402
2403
|
return t.clickable ? (s(), k(i, {
|
|
@@ -2408,7 +2409,7 @@ const vt = { key: 0 }, yt = {
|
|
|
2408
2409
|
}, {
|
|
2409
2410
|
default: g(() => [
|
|
2410
2411
|
u("div", Zt, [
|
|
2411
|
-
|
|
2412
|
+
$(o.$slots, "default", {}, () => [
|
|
2412
2413
|
z("Tile Content")
|
|
2413
2414
|
])
|
|
2414
2415
|
])
|
|
@@ -2420,7 +2421,7 @@ const vt = { key: 0 }, yt = {
|
|
|
2420
2421
|
"data-cy": "tile"
|
|
2421
2422
|
}, [
|
|
2422
2423
|
u("div", Jt, [
|
|
2423
|
-
|
|
2424
|
+
$(o.$slots, "default", {}, () => [
|
|
2424
2425
|
z("Tile Content")
|
|
2425
2426
|
])
|
|
2426
2427
|
])
|
|
@@ -2585,7 +2586,7 @@ const Xt = {
|
|
|
2585
2586
|
P(a.filters);
|
|
2586
2587
|
}, x = () => {
|
|
2587
2588
|
o.value.exportCSV();
|
|
2588
|
-
},
|
|
2589
|
+
}, _ = (f) => {
|
|
2589
2590
|
var M;
|
|
2590
2591
|
d.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", d.value.sortField = ((M = f.sortField) == null ? void 0 : M.toString()) ?? "", l("update:tableContext", d.value), l("sort", f);
|
|
2591
2592
|
}, P = (f) => {
|
|
@@ -2599,7 +2600,7 @@ const Xt = {
|
|
|
2599
2600
|
d.value.filters = f, l("update:tableContext", d.value);
|
|
2600
2601
|
}, { deep: !0 }), ae(() => l("update:tableContext", d.value)), (f, M) => (s(), v("div", oa, [
|
|
2601
2602
|
u("span", na, [
|
|
2602
|
-
|
|
2603
|
+
$(f.$slots, "above-table")
|
|
2603
2604
|
]),
|
|
2604
2605
|
b(c(Me), V({
|
|
2605
2606
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
@@ -2612,7 +2613,7 @@ const Xt = {
|
|
|
2612
2613
|
ref: o,
|
|
2613
2614
|
"data-cy": "table",
|
|
2614
2615
|
"onUpdate:filters": P,
|
|
2615
|
-
onSort:
|
|
2616
|
+
onSort: _,
|
|
2616
2617
|
onPage: S
|
|
2617
2618
|
}), oe({
|
|
2618
2619
|
header: g(() => [
|
|
@@ -2672,14 +2673,14 @@ const Xt = {
|
|
|
2672
2673
|
], 2)
|
|
2673
2674
|
]),
|
|
2674
2675
|
default: g(() => [
|
|
2675
|
-
|
|
2676
|
+
$(f.$slots, "default")
|
|
2676
2677
|
]),
|
|
2677
2678
|
_: 2
|
|
2678
2679
|
}, [
|
|
2679
2680
|
j(f.$slots, (Y, J) => ({
|
|
2680
2681
|
name: J,
|
|
2681
2682
|
fn: g((se) => [
|
|
2682
|
-
|
|
2683
|
+
$(f.$slots, J, K(te(se || {})))
|
|
2683
2684
|
])
|
|
2684
2685
|
})),
|
|
2685
2686
|
f.legacyPaginationFooter ? {
|
|
@@ -2792,7 +2793,7 @@ const va = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2792
2793
|
t.value = be(o, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2793
2794
|
};
|
|
2794
2795
|
return (o, n) => (s(), v("div", va, [
|
|
2795
|
-
|
|
2796
|
+
$(o.$slots, "message"),
|
|
2796
2797
|
u("div", null, [
|
|
2797
2798
|
u("input", {
|
|
2798
2799
|
id: "file-input",
|
|
@@ -2808,7 +2809,7 @@ const va = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2808
2809
|
id: "file-input-button",
|
|
2809
2810
|
for: "file-input"
|
|
2810
2811
|
}, [
|
|
2811
|
-
|
|
2812
|
+
$(o.$slots, "button-content", {}, () => [
|
|
2812
2813
|
b(c(T), {
|
|
2813
2814
|
icon: "bi:upload",
|
|
2814
2815
|
class: "me-2",
|
|
@@ -2864,7 +2865,7 @@ const va = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2864
2865
|
}),
|
|
2865
2866
|
z(" Drag and drop files here ")
|
|
2866
2867
|
])) : (s(), v("div", ga, [
|
|
2867
|
-
|
|
2868
|
+
$(n.$slots, "default")
|
|
2868
2869
|
]))
|
|
2869
2870
|
], 34));
|
|
2870
2871
|
}
|
|
@@ -2918,7 +2919,7 @@ const va = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2918
2919
|
}, 8, ["severity"])) : C("", !0)
|
|
2919
2920
|
]));
|
|
2920
2921
|
}
|
|
2921
|
-
}), ka = ["data-cy"],
|
|
2922
|
+
}), ka = ["data-cy"], $a = { class: "ms-3 d-flex flex-column" }, _a = {
|
|
2922
2923
|
key: 1,
|
|
2923
2924
|
id: "file-name"
|
|
2924
2925
|
}, Ba = {
|
|
@@ -2948,7 +2949,7 @@ const va = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2948
2949
|
setup(e, { emit: t }) {
|
|
2949
2950
|
const l = E(e, "file"), a = E(e, "blobFileName"), o = E(e, "uploadStatus"), n = t, i = I(l.value.name), d = I(""), y = I(0), r = I(), m = w(() => e.acceptedFileTypes.includes(l.value.type)), p = w(() => l.value.size <= e.maxFileSize), x = () => {
|
|
2950
2951
|
l.value = new File([l.value], i.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
2951
|
-
},
|
|
2952
|
+
}, _ = async () => {
|
|
2952
2953
|
if (!m.value || !p.value) {
|
|
2953
2954
|
o.value = m.value ? "InvalidFileSize" : "InvalidFileType";
|
|
2954
2955
|
return;
|
|
@@ -2978,7 +2979,7 @@ const va = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2978
2979
|
await ca(o.value, d.value), n("deleted", l.value);
|
|
2979
2980
|
};
|
|
2980
2981
|
return ae(() => {
|
|
2981
|
-
e.autoUploadToBlob &&
|
|
2982
|
+
e.autoUploadToBlob && _();
|
|
2982
2983
|
}), (S, O) => {
|
|
2983
2984
|
const f = R;
|
|
2984
2985
|
return s(), v("div", {
|
|
@@ -3002,7 +3003,7 @@ const va = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
3002
3003
|
width: "75px"
|
|
3003
3004
|
}))
|
|
3004
3005
|
]),
|
|
3005
|
-
u("div",
|
|
3006
|
+
u("div", $a, [
|
|
3006
3007
|
u("div", null, [
|
|
3007
3008
|
S.editableFileName ? (s(), k(kt, {
|
|
3008
3009
|
key: 0,
|
|
@@ -3012,7 +3013,7 @@ const va = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
3012
3013
|
rules: S.customFileNameRules,
|
|
3013
3014
|
name: l.value.name,
|
|
3014
3015
|
"complete-action": x
|
|
3015
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (s(), v("span",
|
|
3016
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (s(), v("span", _a, h(l.value.name), 1))
|
|
3016
3017
|
]),
|
|
3017
3018
|
u("span", Ba, "File type: " + h(l.value.type.split("/").pop()), 1),
|
|
3018
3019
|
u("span", Fa, "File size: " + h(c(ue)(l.value.size)), 1)
|
|
@@ -3028,7 +3029,7 @@ const va = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
3028
3029
|
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (s(), k(f, {
|
|
3029
3030
|
key: 0,
|
|
3030
3031
|
link: "",
|
|
3031
|
-
onClick:
|
|
3032
|
+
onClick: _
|
|
3032
3033
|
}, {
|
|
3033
3034
|
default: g(() => [
|
|
3034
3035
|
b(c(T), {
|
|
@@ -3071,7 +3072,7 @@ const va = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
3071
3072
|
u("div", Ta, "Max file size: " + h(c(ue)(t.maxFileSize)), 1)
|
|
3072
3073
|
]));
|
|
3073
3074
|
}
|
|
3074
|
-
}), Ia = { "data-cy": "file-uploader" }, Ma = { key: 0 },
|
|
3075
|
+
}), Ia = { "data-cy": "file-uploader" }, Ma = { key: 0 }, $l = /* @__PURE__ */ F({
|
|
3075
3076
|
__name: "ForgeFileUploader",
|
|
3076
3077
|
props: /* @__PURE__ */ H({
|
|
3077
3078
|
acceptedFileTypes: {},
|
|
@@ -3135,7 +3136,7 @@ export {
|
|
|
3135
3136
|
ve as ForgeCheckbox,
|
|
3136
3137
|
fl as ForgeChips,
|
|
3137
3138
|
Rt as ForgeDatepicker,
|
|
3138
|
-
|
|
3139
|
+
$l as ForgeFileUploader,
|
|
3139
3140
|
kl as ForgeFilterHeader,
|
|
3140
3141
|
yl as ForgeForm,
|
|
3141
3142
|
bl as ForgeFormField,
|