@3squared/forge-ui-3 2.17.0 → 2.18.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 +271 -263
- package/package.json +10 -10
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";
|
|
@@ -991,7 +991,7 @@ const Xe = {
|
|
|
991
991
|
previewMask: "preview-button",
|
|
992
992
|
mask: "position-fixed top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center mask",
|
|
993
993
|
original: "preview",
|
|
994
|
-
toolbar: "position-absolute top-0 end-0 d-flex p-3 z-3",
|
|
994
|
+
toolbar: "position-absolute top-0 end-0 d-flex p-3 z-3 bg-black",
|
|
995
995
|
rotaterightbutton: "btn text-white",
|
|
996
996
|
rotateleftbutton: "btn text-white",
|
|
997
997
|
zoomoutbutton: "btn text-white",
|
|
@@ -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,10 +1476,10 @@ 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
1485
|
const Nt = {
|
|
@@ -1489,7 +1489,7 @@ const Nt = {
|
|
|
1489
1489
|
}, At = { key: 0 }, Et = {
|
|
1490
1490
|
class: "d-flex w-100",
|
|
1491
1491
|
"data-cy": "footer"
|
|
1492
|
-
},
|
|
1492
|
+
}, nl = /* @__PURE__ */ S({
|
|
1493
1493
|
__name: "ForgeModal",
|
|
1494
1494
|
props: /* @__PURE__ */ R({
|
|
1495
1495
|
cancelText: { default: "Cancel" },
|
|
@@ -1601,13 +1601,13 @@ const Nt = {
|
|
|
1601
1601
|
}));
|
|
1602
1602
|
return (T, D) => {
|
|
1603
1603
|
const O = q, U = Ie;
|
|
1604
|
-
return r(), y(U,
|
|
1604
|
+
return r(), y(U, _(l, {
|
|
1605
1605
|
onMaximize: c,
|
|
1606
1606
|
onUnmaximize: p,
|
|
1607
1607
|
pt: $.value
|
|
1608
1608
|
}), ae({
|
|
1609
1609
|
closeicon: f(() => [
|
|
1610
|
-
h(u(
|
|
1610
|
+
h(u(P), {
|
|
1611
1611
|
"data-cy": "close-icon",
|
|
1612
1612
|
icon: "bi:x-lg",
|
|
1613
1613
|
width: "18",
|
|
@@ -1616,7 +1616,7 @@ const Nt = {
|
|
|
1616
1616
|
})
|
|
1617
1617
|
]),
|
|
1618
1618
|
maximizeicon: f(() => [
|
|
1619
|
-
h(u(
|
|
1619
|
+
h(u(P), {
|
|
1620
1620
|
"data-cy": "maximisable-icon",
|
|
1621
1621
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1622
1622
|
width: "16",
|
|
@@ -1625,7 +1625,7 @@ const Nt = {
|
|
|
1625
1625
|
]),
|
|
1626
1626
|
_: 2
|
|
1627
1627
|
}, [
|
|
1628
|
-
E(T.$slots, (
|
|
1628
|
+
E(T.$slots, (b, w) => ({
|
|
1629
1629
|
name: w,
|
|
1630
1630
|
fn: f((I) => [
|
|
1631
1631
|
w == "default" ? (r(), v(A, { key: 0 }, [
|
|
@@ -1640,7 +1640,7 @@ const Nt = {
|
|
|
1640
1640
|
class: F(o.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1641
1641
|
}, B(o.value.header), 3),
|
|
1642
1642
|
o.value.message.length > 0 ? (r(), v("ul", At, [
|
|
1643
|
-
(r(!0), v(A, null, E(o.value.message, (
|
|
1643
|
+
(r(!0), v(A, null, E(o.value.message, (g) => (r(), v("li", { key: g }, B(g), 1))), 128))
|
|
1644
1644
|
])) : C("", !0)
|
|
1645
1645
|
]),
|
|
1646
1646
|
_: 1
|
|
@@ -1739,7 +1739,7 @@ const Nt = {
|
|
|
1739
1739
|
}, () => [
|
|
1740
1740
|
h(O, {
|
|
1741
1741
|
modelValue: u(d),
|
|
1742
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
1742
|
+
"onUpdate:modelValue": D[0] || (D[0] = (b) => Fe(d) ? d.value = b : null),
|
|
1743
1743
|
modelModifiers: { trim: !0 },
|
|
1744
1744
|
"data-cy": "input",
|
|
1745
1745
|
ref_key: "input",
|
|
@@ -1751,7 +1751,7 @@ const Nt = {
|
|
|
1751
1751
|
]
|
|
1752
1752
|
}, null, 8, ["modelValue", "class"])
|
|
1753
1753
|
]),
|
|
1754
|
-
h(u(
|
|
1754
|
+
h(u(P), {
|
|
1755
1755
|
icon: "bi:x-circle",
|
|
1756
1756
|
class: "mx-2 cursor-pointer",
|
|
1757
1757
|
onClick: p,
|
|
@@ -1778,7 +1778,7 @@ const Nt = {
|
|
|
1778
1778
|
class: "p-0 m-0"
|
|
1779
1779
|
}, {
|
|
1780
1780
|
default: f(() => [
|
|
1781
|
-
h(u(
|
|
1781
|
+
h(u(P), {
|
|
1782
1782
|
icon: "bi:pencil",
|
|
1783
1783
|
class: F($.value ? "text-invalid" : "text-muted"),
|
|
1784
1784
|
"data-cy": "edit-icon",
|
|
@@ -1798,7 +1798,7 @@ const Nt = {
|
|
|
1798
1798
|
], 8, Ut);
|
|
1799
1799
|
};
|
|
1800
1800
|
}
|
|
1801
|
-
}), Yt = ["href"],
|
|
1801
|
+
}), Yt = ["href"], ol = /* @__PURE__ */ S({
|
|
1802
1802
|
__name: "ForgeNavbar",
|
|
1803
1803
|
props: {
|
|
1804
1804
|
severity: { default: "light" },
|
|
@@ -1843,7 +1843,7 @@ const Nt = {
|
|
|
1843
1843
|
]
|
|
1844
1844
|
})
|
|
1845
1845
|
}));
|
|
1846
|
-
return (i, l) => (r(), y(u(Ve),
|
|
1846
|
+
return (i, l) => (r(), y(u(Ve), _({ ...t, ...i.$attrs }, {
|
|
1847
1847
|
pt: a.value,
|
|
1848
1848
|
"data-cy": "navbar"
|
|
1849
1849
|
}), ae({
|
|
@@ -1860,7 +1860,7 @@ const Nt = {
|
|
|
1860
1860
|
]),
|
|
1861
1861
|
buttonicon: f(() => [
|
|
1862
1862
|
k(i.$slots, "buttonIcon", {}, () => [
|
|
1863
|
-
h(u(
|
|
1863
|
+
h(u(P), {
|
|
1864
1864
|
icon: "bi:list",
|
|
1865
1865
|
class: F(t.severity === "light" ? "text-black" : "text-white"),
|
|
1866
1866
|
height: "24",
|
|
@@ -1914,7 +1914,7 @@ const Nt = {
|
|
|
1914
1914
|
class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1915
1915
|
"data-cy": "multiselect-container"
|
|
1916
1916
|
}, [
|
|
1917
|
-
h(o,
|
|
1917
|
+
h(o, _({
|
|
1918
1918
|
modelValue: a.value,
|
|
1919
1919
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
|
|
1920
1920
|
}, { ...l.$attrs }, {
|
|
@@ -1954,7 +1954,7 @@ const Nt = {
|
|
|
1954
1954
|
onClick: (c) => i(p.id)
|
|
1955
1955
|
}, {
|
|
1956
1956
|
default: f(() => [
|
|
1957
|
-
h(u(
|
|
1957
|
+
h(u(P), {
|
|
1958
1958
|
icon: "bi:x",
|
|
1959
1959
|
class: "close-icon",
|
|
1960
1960
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -1976,7 +1976,7 @@ const Nt = {
|
|
|
1976
1976
|
}, aa = {
|
|
1977
1977
|
"data-cy": "slot",
|
|
1978
1978
|
class: "d-flex align-items-center"
|
|
1979
|
-
},
|
|
1979
|
+
}, sl = /* @__PURE__ */ S({
|
|
1980
1980
|
__name: "ForgePageHeader",
|
|
1981
1981
|
props: {
|
|
1982
1982
|
title: {}
|
|
@@ -2173,7 +2173,7 @@ const Nt = {
|
|
|
2173
2173
|
k(d.$slots, "before")
|
|
2174
2174
|
]),
|
|
2175
2175
|
m("div", na, [
|
|
2176
|
-
h(T,
|
|
2176
|
+
h(T, _({ ...t, ...d.$attrs }, {
|
|
2177
2177
|
pt: x.value,
|
|
2178
2178
|
modelValue: a.value,
|
|
2179
2179
|
"onUpdate:modelValue": [
|
|
@@ -2183,14 +2183,14 @@ const Nt = {
|
|
|
2183
2183
|
onBlur: $[1] || ($[1] = () => u(o)),
|
|
2184
2184
|
"input-class": { "datepicker-invalid": c.value }
|
|
2185
2185
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2186
|
-
J(h(u(
|
|
2186
|
+
J(h(u(P), {
|
|
2187
2187
|
"data-cy": "icon",
|
|
2188
2188
|
icon: "bi:calendar4",
|
|
2189
2189
|
class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2190
2190
|
}, null, 8, ["class"]), [
|
|
2191
2191
|
[Z, t.showIcon]
|
|
2192
2192
|
]),
|
|
2193
|
-
J(h(u(
|
|
2193
|
+
J(h(u(P), {
|
|
2194
2194
|
"data-cy": "icon",
|
|
2195
2195
|
icon: "bi:x",
|
|
2196
2196
|
onClick: p,
|
|
@@ -2212,7 +2212,7 @@ const Nt = {
|
|
|
2212
2212
|
], 64);
|
|
2213
2213
|
};
|
|
2214
2214
|
}
|
|
2215
|
-
}),
|
|
2215
|
+
}), rl = /* @__PURE__ */ S({
|
|
2216
2216
|
__name: "ForgeRemainingCharacters",
|
|
2217
2217
|
props: {
|
|
2218
2218
|
maxCount: { default: 300 },
|
|
@@ -2224,7 +2224,7 @@ const Nt = {
|
|
|
2224
2224
|
class: F(a.value < 0 ? "text-danger" : "")
|
|
2225
2225
|
}, "Remaining characters: " + B(a.value), 3));
|
|
2226
2226
|
}
|
|
2227
|
-
}), sa = { class: "d-flex justify-content-between" },
|
|
2227
|
+
}), sa = { class: "d-flex justify-content-between" }, dl = /* @__PURE__ */ S({
|
|
2228
2228
|
__name: "ForgeForm",
|
|
2229
2229
|
props: {
|
|
2230
2230
|
onSubmit: {},
|
|
@@ -2251,7 +2251,7 @@ const Nt = {
|
|
|
2251
2251
|
}
|
|
2252
2252
|
return (n, o) => {
|
|
2253
2253
|
const s = q;
|
|
2254
|
-
return r(), v("form",
|
|
2254
|
+
return r(), v("form", _(n.$attrs, {
|
|
2255
2255
|
novalidate: "",
|
|
2256
2256
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2257
2257
|
onSubmit: X(l, ["prevent"])
|
|
@@ -2323,7 +2323,7 @@ const Nt = {
|
|
|
2323
2323
|
}, da = ["for"], pa = {
|
|
2324
2324
|
key: 0,
|
|
2325
2325
|
class: "text-danger fw-600"
|
|
2326
|
-
},
|
|
2326
|
+
}, pl = /* @__PURE__ */ S({
|
|
2327
2327
|
__name: "ForgeFormField",
|
|
2328
2328
|
props: /* @__PURE__ */ R({
|
|
2329
2329
|
name: {},
|
|
@@ -2348,8 +2348,8 @@ const Nt = {
|
|
|
2348
2348
|
return Q(() => n.value, (x) => {
|
|
2349
2349
|
t.value = x;
|
|
2350
2350
|
}, { immediate: !0 }), (x, d) => {
|
|
2351
|
-
const $ = Ne, T = Oe, D = se, O = ie, U = re,
|
|
2352
|
-
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, _({
|
|
2353
2353
|
key: 0,
|
|
2354
2354
|
id: a.name,
|
|
2355
2355
|
label: a.fieldLabel
|
|
@@ -2370,7 +2370,7 @@ const Nt = {
|
|
|
2370
2370
|
x.required ? (r(), v("span", pa, "*")) : C("", !0)
|
|
2371
2371
|
], 10, da),
|
|
2372
2372
|
k(x.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2373
|
-
a.type === "number" ? (r(), y(u(fe),
|
|
2373
|
+
a.type === "number" ? (r(), y(u(fe), _({
|
|
2374
2374
|
key: 0,
|
|
2375
2375
|
id: a.name
|
|
2376
2376
|
}, x.$attrs, {
|
|
@@ -2380,7 +2380,7 @@ const Nt = {
|
|
|
2380
2380
|
onInput: i,
|
|
2381
2381
|
modelValue: t.value,
|
|
2382
2382
|
"onUpdate:modelValue": d[1] || (d[1] = (w) => t.value = w)
|
|
2383
|
-
}), 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($, _({
|
|
2384
2384
|
key: 1,
|
|
2385
2385
|
id: a.name
|
|
2386
2386
|
}, x.$attrs, {
|
|
@@ -2390,7 +2390,7 @@ const Nt = {
|
|
|
2390
2390
|
"onUpdate:modelValue": d[2] || (d[2] = (w) => t.value = w),
|
|
2391
2391
|
onInput: i,
|
|
2392
2392
|
onBlur: u(p)
|
|
2393
|
-
}), 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, _({
|
|
2394
2394
|
key: 2,
|
|
2395
2395
|
id: a.name
|
|
2396
2396
|
}, x.$attrs, {
|
|
@@ -2401,7 +2401,7 @@ const Nt = {
|
|
|
2401
2401
|
"onUpdate:modelValue": d[3] || (d[3] = (w) => t.value = w),
|
|
2402
2402
|
onComplete: i,
|
|
2403
2403
|
onBlur: u(p)
|
|
2404
|
-
}), 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, _({
|
|
2405
2405
|
key: 3,
|
|
2406
2406
|
id: a.name
|
|
2407
2407
|
}, x.$attrs, {
|
|
@@ -2411,19 +2411,19 @@ const Nt = {
|
|
|
2411
2411
|
"onUpdate:modelValue": d[4] || (d[4] = (w) => t.value = w),
|
|
2412
2412
|
onInput: i,
|
|
2413
2413
|
onBlur: u(p)
|
|
2414
|
-
}), 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 }, {
|
|
2415
2415
|
modelValue: t.value,
|
|
2416
2416
|
"onUpdate:modelValue": d[5] || (d[5] = (w) => t.value = w),
|
|
2417
2417
|
class: { "is-invalid": c.value }
|
|
2418
|
-
}), 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 }, {
|
|
2419
2419
|
modelValue: t.value,
|
|
2420
2420
|
"onUpdate:modelValue": d[6] || (d[6] = (w) => t.value = w),
|
|
2421
2421
|
class: { "is-invalid": c.value }
|
|
2422
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), y(Qt,
|
|
2422
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), y(Qt, _({ key: 6 }, { ...a, ...x.$attrs }, {
|
|
2423
2423
|
modelValue: t.value,
|
|
2424
2424
|
"onUpdate:modelValue": d[7] || (d[7] = (w) => t.value = w),
|
|
2425
2425
|
class: { "is-invalid": c.value }
|
|
2426
|
-
}), 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 }, {
|
|
2427
2427
|
modelValue: t.value,
|
|
2428
2428
|
"onUpdate:modelValue": d[8] || (d[8] = (w) => t.value = w),
|
|
2429
2429
|
class: { "is-invalid": c.value }
|
|
@@ -2439,7 +2439,7 @@ const Nt = {
|
|
|
2439
2439
|
]));
|
|
2440
2440
|
};
|
|
2441
2441
|
}
|
|
2442
|
-
}),
|
|
2442
|
+
}), cl = /* @__PURE__ */ S({
|
|
2443
2443
|
__name: "ForgeChip",
|
|
2444
2444
|
props: {
|
|
2445
2445
|
chipSeverity: { default: "primary" },
|
|
@@ -2475,7 +2475,7 @@ const Nt = {
|
|
|
2475
2475
|
}));
|
|
2476
2476
|
return (i, l) => {
|
|
2477
2477
|
const n = Ae;
|
|
2478
|
-
return r(), y(n,
|
|
2478
|
+
return r(), y(n, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2479
2479
|
default: f(() => [
|
|
2480
2480
|
(r(!0), v(A, null, E(i.$slots, (o, s) => k(i.$slots, s, { slot: s })), 256))
|
|
2481
2481
|
]),
|
|
@@ -2483,7 +2483,7 @@ const Nt = {
|
|
|
2483
2483
|
}, 16, ["pt"]);
|
|
2484
2484
|
};
|
|
2485
2485
|
}
|
|
2486
|
-
}),
|
|
2486
|
+
}), ul = /* @__PURE__ */ S({
|
|
2487
2487
|
__name: "ForgeProgressBar",
|
|
2488
2488
|
props: {
|
|
2489
2489
|
severity: { default: "primary" },
|
|
@@ -2530,7 +2530,7 @@ const Nt = {
|
|
|
2530
2530
|
}));
|
|
2531
2531
|
return (o, s) => {
|
|
2532
2532
|
const p = Ee;
|
|
2533
|
-
return r(), y(p,
|
|
2533
|
+
return r(), y(p, _({ ...o.$attrs, ...t }, { pt: n.value }), {
|
|
2534
2534
|
default: f(() => [
|
|
2535
2535
|
k(o.$slots, "default")
|
|
2536
2536
|
]),
|
|
@@ -2929,7 +2929,7 @@ var ca = /* @__PURE__ */ S({
|
|
|
2929
2929
|
});
|
|
2930
2930
|
}
|
|
2931
2931
|
});
|
|
2932
|
-
const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1 gap-1" },
|
|
2932
|
+
const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1 gap-1" }, ml = /* @__PURE__ */ S({
|
|
2933
2933
|
__name: "ForgeScratchpad",
|
|
2934
2934
|
props: {
|
|
2935
2935
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2954,7 +2954,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
2954
2954
|
return (x, d) => {
|
|
2955
2955
|
const $ = q;
|
|
2956
2956
|
return r(), v("div", ua, [
|
|
2957
|
-
h(u(ca),
|
|
2957
|
+
h(u(ca), _({
|
|
2958
2958
|
ref_key: "drawingCanvas",
|
|
2959
2959
|
ref: l,
|
|
2960
2960
|
image: n.value,
|
|
@@ -3016,7 +3016,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3016
3016
|
]);
|
|
3017
3017
|
};
|
|
3018
3018
|
}
|
|
3019
|
-
}), va = { class: "value text-white w-100 text-center" },
|
|
3019
|
+
}), va = { class: "value text-white w-100 text-center" }, vl = /* @__PURE__ */ S({
|
|
3020
3020
|
__name: "ForgeStatWidget",
|
|
3021
3021
|
props: {
|
|
3022
3022
|
size: { default: "md" },
|
|
@@ -3024,7 +3024,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3024
3024
|
},
|
|
3025
3025
|
setup(e) {
|
|
3026
3026
|
const t = e;
|
|
3027
|
-
return (a, i) => (r(), v("div",
|
|
3027
|
+
return (a, i) => (r(), v("div", _(a.$attrs, {
|
|
3028
3028
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3029
3029
|
}), [
|
|
3030
3030
|
m("span", va, [
|
|
@@ -3032,7 +3032,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3032
3032
|
])
|
|
3033
3033
|
], 16));
|
|
3034
3034
|
}
|
|
3035
|
-
}), fa = { key: 0 },
|
|
3035
|
+
}), fa = { key: 0 }, fl = /* @__PURE__ */ S({
|
|
3036
3036
|
__name: "ForgeStepper",
|
|
3037
3037
|
props: {
|
|
3038
3038
|
currentStep: { default: 1 },
|
|
@@ -3083,7 +3083,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3083
3083
|
default: f(() => [
|
|
3084
3084
|
h(u(Le), null, {
|
|
3085
3085
|
default: f(() => [
|
|
3086
|
-
(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), _({
|
|
3087
3087
|
key: n.value,
|
|
3088
3088
|
value: n.value,
|
|
3089
3089
|
disabled: n.disabled,
|
|
@@ -3115,7 +3115,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3115
3115
|
_: 3
|
|
3116
3116
|
}, 8, ["value"]));
|
|
3117
3117
|
}
|
|
3118
|
-
}), ga = { class: "p-4 text-wrap w-100" }, ba = { class: "p-4 text-wrap w-100" },
|
|
3118
|
+
}), ga = { class: "p-4 text-wrap w-100" }, ba = { class: "p-4 text-wrap w-100" }, gl = /* @__PURE__ */ S({
|
|
3119
3119
|
__name: "ForgeTile",
|
|
3120
3120
|
props: {
|
|
3121
3121
|
severity: { default: "primary" },
|
|
@@ -3200,7 +3200,7 @@ const ya = {
|
|
|
3200
3200
|
}), ka = { class: "position-relative" }, $a = { "data-cy": "above-table-slot" }, Ba = { class: "d-flex w-100" }, Fa = {
|
|
3201
3201
|
class: "mx-auto",
|
|
3202
3202
|
"data-cy": "empty-message"
|
|
3203
|
-
}, Sa = { class: "d-flex" }, Ca = { class: "d-flex align-items-end mb-2" }, za = { key: 0 }, Ta = { class: "ms-auto" },
|
|
3203
|
+
}, Sa = { class: "d-flex" }, Ca = { class: "d-flex align-items-end mb-2" }, za = { key: 0 }, Ta = { class: "ms-auto" }, bl = /* @__PURE__ */ S({
|
|
3204
3204
|
__name: "ForgeTable",
|
|
3205
3205
|
props: {
|
|
3206
3206
|
value: {},
|
|
@@ -3295,12 +3295,12 @@ const ya = {
|
|
|
3295
3295
|
sortField: "",
|
|
3296
3296
|
total: i.totalRecords ?? i.value.length
|
|
3297
3297
|
});
|
|
3298
|
-
Q(() => i.perPage, (
|
|
3299
|
-
|
|
3298
|
+
Q(() => i.perPage, (b) => {
|
|
3299
|
+
b && (o.value = b, s.value.perPage = b);
|
|
3300
3300
|
});
|
|
3301
3301
|
const p = z(() => i.totalRecords ?? i.value.length), c = z(() => {
|
|
3302
|
-
const
|
|
3303
|
-
return `${
|
|
3302
|
+
const b = Math.ceil(p.value / o.value);
|
|
3303
|
+
return `${b} ${ee(b, "page")}`;
|
|
3304
3304
|
}), x = z(() => ({
|
|
3305
3305
|
thead: () => ({
|
|
3306
3306
|
class: [
|
|
@@ -3328,30 +3328,30 @@ const ya = {
|
|
|
3328
3328
|
if (i.clearAll)
|
|
3329
3329
|
i.clearAll();
|
|
3330
3330
|
else
|
|
3331
|
-
for (const
|
|
3332
|
-
typeof i.filters[
|
|
3331
|
+
for (const b in i.filters)
|
|
3332
|
+
typeof i.filters[b] == "string" ? i.filters[b] = "" : i.filters[b].value = null;
|
|
3333
3333
|
D(i.filters);
|
|
3334
3334
|
}, $ = () => {
|
|
3335
3335
|
l.value.exportCSV();
|
|
3336
|
-
}, T = (
|
|
3336
|
+
}, T = (b) => {
|
|
3337
3337
|
var w;
|
|
3338
|
-
s.value.sortDirection =
|
|
3339
|
-
}, D = (
|
|
3340
|
-
s.value.filters =
|
|
3341
|
-
}, O = (
|
|
3342
|
-
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);
|
|
3343
3343
|
}, U = () => {
|
|
3344
3344
|
s.value.perPage = o.value, a("update:tableContext", s.value);
|
|
3345
3345
|
};
|
|
3346
|
-
return Q(() => i.filters, (
|
|
3347
|
-
s.value.filters =
|
|
3348
|
-
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (
|
|
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
3349
|
m("span", $a, [
|
|
3350
|
-
k(
|
|
3350
|
+
k(b.$slots, "above-table")
|
|
3351
3351
|
]),
|
|
3352
|
-
h(u(We),
|
|
3352
|
+
h(u(We), _({
|
|
3353
3353
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3354
|
-
}, { ...i, ...
|
|
3354
|
+
}, { ...i, ...b.$attrs }, {
|
|
3355
3355
|
pt: x.value,
|
|
3356
3356
|
rows: o.value,
|
|
3357
3357
|
"total-records": p.value,
|
|
@@ -3366,7 +3366,7 @@ const ya = {
|
|
|
3366
3366
|
}), ae({
|
|
3367
3367
|
empty: f(() => [
|
|
3368
3368
|
m("div", Ba, [
|
|
3369
|
-
m("h5", Fa, B(
|
|
3369
|
+
m("h5", Fa, B(b.emptyMessage ?? "No items Found."), 1)
|
|
3370
3370
|
])
|
|
3371
3371
|
]),
|
|
3372
3372
|
header: f(() => [
|
|
@@ -3375,7 +3375,7 @@ const ya = {
|
|
|
3375
3375
|
}, [
|
|
3376
3376
|
m("div", Sa, [
|
|
3377
3377
|
m("div", Ca, [
|
|
3378
|
-
|
|
3378
|
+
b.paginator && !b.legacyPaginationFooter ? (r(), v("span", za, [
|
|
3379
3379
|
h(he, {
|
|
3380
3380
|
total: p.value,
|
|
3381
3381
|
"page-sizes": n.value,
|
|
@@ -3388,15 +3388,15 @@ const ya = {
|
|
|
3388
3388
|
])) : C("", !0)
|
|
3389
3389
|
]),
|
|
3390
3390
|
m("div", Ta, [
|
|
3391
|
-
|
|
3391
|
+
b.showClearButton ? (r(), y(u(q), {
|
|
3392
3392
|
key: 0,
|
|
3393
3393
|
outlined: "",
|
|
3394
|
-
class: F(
|
|
3394
|
+
class: F(b.showExporterButton ? "me-2" : ""),
|
|
3395
3395
|
onClick: d,
|
|
3396
3396
|
"data-cy": "clear-all"
|
|
3397
3397
|
}, {
|
|
3398
3398
|
default: f(() => [
|
|
3399
|
-
h(u(
|
|
3399
|
+
h(u(P), {
|
|
3400
3400
|
icon: "bi:funnel-fill",
|
|
3401
3401
|
width: "24",
|
|
3402
3402
|
height: "24"
|
|
@@ -3405,14 +3405,14 @@ const ya = {
|
|
|
3405
3405
|
]),
|
|
3406
3406
|
_: 1
|
|
3407
3407
|
}, 8, ["class"])) : C("", !0),
|
|
3408
|
-
|
|
3408
|
+
b.showExporterButton ? (r(), y(u(q), {
|
|
3409
3409
|
key: 1,
|
|
3410
3410
|
outlined: "",
|
|
3411
3411
|
onClick: $,
|
|
3412
3412
|
"data-cy": "exporter"
|
|
3413
3413
|
}, {
|
|
3414
3414
|
default: f(() => [
|
|
3415
|
-
h(u(
|
|
3415
|
+
h(u(P), {
|
|
3416
3416
|
icon: "typcn:export",
|
|
3417
3417
|
width: "24",
|
|
3418
3418
|
height: "24"
|
|
@@ -3421,23 +3421,23 @@ const ya = {
|
|
|
3421
3421
|
]),
|
|
3422
3422
|
_: 1
|
|
3423
3423
|
})) : C("", !0),
|
|
3424
|
-
k(
|
|
3424
|
+
k(b.$slots, "column-customiser")
|
|
3425
3425
|
])
|
|
3426
3426
|
])
|
|
3427
3427
|
], 2)
|
|
3428
3428
|
]),
|
|
3429
3429
|
default: f(() => [
|
|
3430
|
-
k(
|
|
3430
|
+
k(b.$slots, "default")
|
|
3431
3431
|
]),
|
|
3432
3432
|
_: 2
|
|
3433
3433
|
}, [
|
|
3434
|
-
E(
|
|
3435
|
-
name:
|
|
3434
|
+
E(b.$slots, (I, g) => ({
|
|
3435
|
+
name: g,
|
|
3436
3436
|
fn: f((V) => [
|
|
3437
|
-
k(
|
|
3437
|
+
k(b.$slots, g, W(G(V || {})))
|
|
3438
3438
|
])
|
|
3439
3439
|
})),
|
|
3440
|
-
|
|
3440
|
+
b.legacyPaginationFooter ? {
|
|
3441
3441
|
name: "paginatorstart",
|
|
3442
3442
|
fn: f(() => [
|
|
3443
3443
|
m("span", {
|
|
@@ -3456,7 +3456,7 @@ const ya = {
|
|
|
3456
3456
|
]),
|
|
3457
3457
|
key: "0"
|
|
3458
3458
|
} : void 0,
|
|
3459
|
-
|
|
3459
|
+
b.legacyPaginationFooter ? {
|
|
3460
3460
|
name: "paginatorend",
|
|
3461
3461
|
fn: f(() => [
|
|
3462
3462
|
m("span", {
|
|
@@ -3469,7 +3469,10 @@ const ya = {
|
|
|
3469
3469
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3470
3470
|
]));
|
|
3471
3471
|
}
|
|
3472
|
-
}),
|
|
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({
|
|
3473
3476
|
__name: "ForgeTreeTable",
|
|
3474
3477
|
props: {
|
|
3475
3478
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3538,20 +3541,20 @@ const ya = {
|
|
|
3538
3541
|
sortField: "",
|
|
3539
3542
|
total: a.totalRecords ?? a.value.length
|
|
3540
3543
|
}), c = z(() => a.totalRecords ?? a.value.length), x = z(() => {
|
|
3541
|
-
const
|
|
3542
|
-
return `${
|
|
3544
|
+
const g = Math.ceil(c.value / n.value);
|
|
3545
|
+
return `${g} ${ee(g, "page")}`;
|
|
3543
3546
|
}), d = z(() => ({
|
|
3544
3547
|
root: "position-relative",
|
|
3545
|
-
table: (
|
|
3548
|
+
table: (g) => ({
|
|
3546
3549
|
class: [
|
|
3547
3550
|
"table position-relative",
|
|
3548
3551
|
{
|
|
3549
|
-
"table-striped":
|
|
3550
|
-
"table-hover":
|
|
3551
|
-
"table-bordered":
|
|
3552
|
-
"table-sm":
|
|
3553
|
-
"table-lg":
|
|
3554
|
-
"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
|
|
3555
3558
|
}
|
|
3556
3559
|
]
|
|
3557
3560
|
}),
|
|
@@ -3569,26 +3572,26 @@ const ya = {
|
|
|
3569
3572
|
}
|
|
3570
3573
|
]
|
|
3571
3574
|
}),
|
|
3572
|
-
row: ({ instance:
|
|
3575
|
+
row: ({ instance: g }) => [
|
|
3573
3576
|
{
|
|
3574
|
-
"parent-node":
|
|
3577
|
+
"parent-node": g.node.hasOwnProperty("children")
|
|
3575
3578
|
}
|
|
3576
3579
|
]
|
|
3577
3580
|
}));
|
|
3578
|
-
Q(() => a.parentExpanderFullRow, (
|
|
3579
|
-
|
|
3581
|
+
Q(() => a.parentExpanderFullRow, (g) => {
|
|
3582
|
+
g ? $() : T();
|
|
3580
3583
|
});
|
|
3581
3584
|
const $ = () => {
|
|
3582
3585
|
a.parentExpanderFullRow && setTimeout(
|
|
3583
3586
|
() => {
|
|
3584
|
-
const
|
|
3587
|
+
const g = Array.from(
|
|
3585
3588
|
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3586
3589
|
);
|
|
3587
3590
|
Array.from(
|
|
3588
3591
|
document.querySelectorAll(".parent-node td")
|
|
3589
3592
|
).forEach((L) => {
|
|
3590
3593
|
L.classList.add("d-none");
|
|
3591
|
-
}),
|
|
3594
|
+
}), g.forEach((L) => {
|
|
3592
3595
|
L.setAttribute("colspan", a.totalColumns.toString()), L.classList.remove("d-none");
|
|
3593
3596
|
});
|
|
3594
3597
|
},
|
|
@@ -3597,12 +3600,12 @@ const ya = {
|
|
|
3597
3600
|
}, T = () => {
|
|
3598
3601
|
setTimeout(
|
|
3599
3602
|
() => {
|
|
3600
|
-
const
|
|
3603
|
+
const g = Array.from(
|
|
3601
3604
|
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3602
3605
|
), V = Array.from(
|
|
3603
3606
|
document.querySelectorAll(".parent-node td")
|
|
3604
3607
|
);
|
|
3605
|
-
|
|
3608
|
+
g.forEach((L) => {
|
|
3606
3609
|
L.removeAttribute("colspan");
|
|
3607
3610
|
}), V.forEach((L) => {
|
|
3608
3611
|
L.classList.remove("d-none");
|
|
@@ -3614,21 +3617,21 @@ const ya = {
|
|
|
3614
3617
|
if (a.clearAll)
|
|
3615
3618
|
a.clearAll();
|
|
3616
3619
|
else
|
|
3617
|
-
for (const
|
|
3618
|
-
typeof a.filters[
|
|
3620
|
+
for (const g in a.filters)
|
|
3621
|
+
typeof a.filters[g] == "string" ? a.filters[g] = "" : a.filters[g].value = null;
|
|
3619
3622
|
U(a.filters);
|
|
3620
|
-
}, O = (
|
|
3623
|
+
}, O = (g) => {
|
|
3621
3624
|
var V;
|
|
3622
|
-
p.value.sortDirection =
|
|
3623
|
-
}, U = (
|
|
3624
|
-
p.value.filters =
|
|
3625
|
-
},
|
|
3626
|
-
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), $();
|
|
3627
3630
|
}, w = () => {
|
|
3628
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), $();
|
|
3629
3632
|
};
|
|
3630
|
-
Q(() => a.filters, (
|
|
3631
|
-
p.value.filters =
|
|
3633
|
+
Q(() => a.filters, (g) => {
|
|
3634
|
+
p.value.filters = g, i("update:tableContext", p.value);
|
|
3632
3635
|
}, { deep: !0 }), Q(() => a.value, () => {
|
|
3633
3636
|
$();
|
|
3634
3637
|
}), ne(() => {
|
|
@@ -3637,31 +3640,36 @@ const ya = {
|
|
|
3637
3640
|
const I = () => {
|
|
3638
3641
|
o.value = s.value * n.value;
|
|
3639
3642
|
};
|
|
3640
|
-
return (
|
|
3641
|
-
m("span",
|
|
3642
|
-
k(
|
|
3643
|
+
return (g, V) => (r(), v("div", _a, [
|
|
3644
|
+
m("span", Pa, [
|
|
3645
|
+
k(g.$slots, "above-table")
|
|
3643
3646
|
]),
|
|
3644
|
-
h(u(Ge),
|
|
3647
|
+
h(u(Ge), _({
|
|
3645
3648
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3646
|
-
}, { ...a, ...
|
|
3649
|
+
}, { ...a, ...g.$attrs }, {
|
|
3647
3650
|
pt: d.value,
|
|
3648
3651
|
"filter-display": a.filters ? "row" : void 0,
|
|
3649
|
-
rows:
|
|
3652
|
+
rows: g.paginator ? n.value : void 0,
|
|
3650
3653
|
"data-cy": "tree-table",
|
|
3651
3654
|
"onUpdate:filters": U,
|
|
3652
3655
|
onSort: O,
|
|
3653
|
-
onPage:
|
|
3656
|
+
onPage: b,
|
|
3654
3657
|
onNodeExpand: V[2] || (V[2] = () => $()),
|
|
3655
3658
|
showHeaders: "",
|
|
3656
3659
|
first: o.value
|
|
3657
3660
|
}), ae({
|
|
3661
|
+
empty: f(() => [
|
|
3662
|
+
m("div", ja, [
|
|
3663
|
+
m("h5", Ia, B(g.emptyMessage ?? "No items Found."), 1)
|
|
3664
|
+
])
|
|
3665
|
+
]),
|
|
3658
3666
|
header: f(() => [
|
|
3659
3667
|
m("div", {
|
|
3660
3668
|
class: F(a.loading ? "opacity-50" : "")
|
|
3661
3669
|
}, [
|
|
3662
|
-
m("div",
|
|
3663
|
-
m("div",
|
|
3664
|
-
|
|
3670
|
+
m("div", Ma, [
|
|
3671
|
+
m("div", Va, [
|
|
3672
|
+
g.paginator && !g.legacyPaginationFooter ? (r(), v("span", Da, [
|
|
3665
3673
|
h(he, {
|
|
3666
3674
|
total: c.value,
|
|
3667
3675
|
"page-sizes": l.value,
|
|
@@ -3673,15 +3681,15 @@ const ya = {
|
|
|
3673
3681
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3674
3682
|
])) : C("", !0)
|
|
3675
3683
|
]),
|
|
3676
|
-
m("div",
|
|
3677
|
-
|
|
3684
|
+
m("div", Oa, [
|
|
3685
|
+
g.showClearButton ? (r(), y(u(q), {
|
|
3678
3686
|
key: 0,
|
|
3679
3687
|
outlined: "",
|
|
3680
3688
|
onClick: D,
|
|
3681
3689
|
"data-cy": "clear-all"
|
|
3682
3690
|
}, {
|
|
3683
3691
|
default: f(() => [
|
|
3684
|
-
h(u(
|
|
3692
|
+
h(u(P), {
|
|
3685
3693
|
icon: "bi:funnel-fill",
|
|
3686
3694
|
width: "24",
|
|
3687
3695
|
height: "24"
|
|
@@ -3690,23 +3698,23 @@ const ya = {
|
|
|
3690
3698
|
]),
|
|
3691
3699
|
_: 1
|
|
3692
3700
|
})) : C("", !0),
|
|
3693
|
-
k(
|
|
3701
|
+
k(g.$slots, "column-customiser")
|
|
3694
3702
|
])
|
|
3695
3703
|
])
|
|
3696
3704
|
], 2)
|
|
3697
3705
|
]),
|
|
3698
3706
|
default: f(() => [
|
|
3699
|
-
k(
|
|
3707
|
+
k(g.$slots, "default")
|
|
3700
3708
|
]),
|
|
3701
3709
|
_: 2
|
|
3702
3710
|
}, [
|
|
3703
|
-
E(
|
|
3711
|
+
E(g.$slots, (L, ve) => ({
|
|
3704
3712
|
name: ve,
|
|
3705
3713
|
fn: f(($e) => [
|
|
3706
|
-
k(
|
|
3714
|
+
k(g.$slots, ve, W(G($e || {})))
|
|
3707
3715
|
])
|
|
3708
3716
|
})),
|
|
3709
|
-
|
|
3717
|
+
g.legacyPaginationFooter ? {
|
|
3710
3718
|
name: "paginatorstart",
|
|
3711
3719
|
fn: f(() => [
|
|
3712
3720
|
m("span", {
|
|
@@ -3725,7 +3733,7 @@ const ya = {
|
|
|
3725
3733
|
]),
|
|
3726
3734
|
key: "0"
|
|
3727
3735
|
} : void 0,
|
|
3728
|
-
|
|
3736
|
+
g.legacyPaginationFooter ? {
|
|
3729
3737
|
name: "paginatorend",
|
|
3730
3738
|
fn: f(() => [
|
|
3731
3739
|
m("span", {
|
|
@@ -3738,7 +3746,7 @@ const ya = {
|
|
|
3738
3746
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3739
3747
|
]));
|
|
3740
3748
|
}
|
|
3741
|
-
}),
|
|
3749
|
+
}), Na = { class: "d-flex position-relative" }, Aa = { class: "d-flex w-100" }, xl = /* @__PURE__ */ S({
|
|
3742
3750
|
__name: "ForgeFilterHeader",
|
|
3743
3751
|
props: /* @__PURE__ */ R({
|
|
3744
3752
|
dataType: {},
|
|
@@ -3769,20 +3777,20 @@ const ya = {
|
|
|
3769
3777
|
};
|
|
3770
3778
|
return (l, n) => {
|
|
3771
3779
|
const o = fe, s = q;
|
|
3772
|
-
return r(), v("div",
|
|
3773
|
-
l.dataType === "numeric" ? (r(), y(o,
|
|
3780
|
+
return r(), v("div", Na, [
|
|
3781
|
+
l.dataType === "numeric" ? (r(), y(o, _({
|
|
3774
3782
|
key: 0,
|
|
3775
3783
|
modelValue: t.value,
|
|
3776
3784
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
|
|
3777
3785
|
modelModifiers: { trim: !0 }
|
|
3778
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), y(xe,
|
|
3786
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), y(xe, _({
|
|
3779
3787
|
key: 1,
|
|
3780
3788
|
modelValue: t.value,
|
|
3781
3789
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3782
3790
|
}, l.$attrs, {
|
|
3783
3791
|
"show-icon": !1,
|
|
3784
3792
|
"show-on-focus": !0
|
|
3785
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), y(u(ie),
|
|
3793
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), y(u(ie), _({
|
|
3786
3794
|
key: 2,
|
|
3787
3795
|
modelValue: t.value,
|
|
3788
3796
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
@@ -3792,7 +3800,7 @@ const ya = {
|
|
|
3792
3800
|
"option-label": l.optionLabel
|
|
3793
3801
|
}), {
|
|
3794
3802
|
value: f(({ value: p, placeholder: c }) => [
|
|
3795
|
-
m("div",
|
|
3803
|
+
m("div", Aa, [
|
|
3796
3804
|
m("span", {
|
|
3797
3805
|
class: F({ "filter-placeholder": p === null })
|
|
3798
3806
|
}, B(a(p, c)), 3),
|
|
@@ -3803,7 +3811,7 @@ const ya = {
|
|
|
3803
3811
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3804
3812
|
}, {
|
|
3805
3813
|
default: f(() => [
|
|
3806
|
-
h(u(
|
|
3814
|
+
h(u(P), {
|
|
3807
3815
|
icon: "bi:x",
|
|
3808
3816
|
width: "1rem",
|
|
3809
3817
|
height: "1rem",
|
|
@@ -3815,7 +3823,7 @@ const ya = {
|
|
|
3815
3823
|
])
|
|
3816
3824
|
]),
|
|
3817
3825
|
_: 1
|
|
3818
|
-
}, 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), _({
|
|
3819
3827
|
key: 3,
|
|
3820
3828
|
modelValue: t.value,
|
|
3821
3829
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
@@ -3825,7 +3833,7 @@ const ya = {
|
|
|
3825
3833
|
"option-label": l.optionLabel,
|
|
3826
3834
|
"option-value": l.optionValue,
|
|
3827
3835
|
filter: ""
|
|
3828
|
-
}), 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), _({
|
|
3829
3837
|
key: 4,
|
|
3830
3838
|
modelValue: t.value,
|
|
3831
3839
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
|
|
@@ -3838,7 +3846,7 @@ const ya = {
|
|
|
3838
3846
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3839
3847
|
}, {
|
|
3840
3848
|
default: f(() => [
|
|
3841
|
-
h(u(
|
|
3849
|
+
h(u(P), {
|
|
3842
3850
|
icon: "bi:x",
|
|
3843
3851
|
width: "1rem",
|
|
3844
3852
|
height: "1rem",
|
|
@@ -4960,7 +4968,7 @@ class we {
|
|
|
4960
4968
|
}
|
|
4961
4969
|
}
|
|
4962
4970
|
K = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
|
|
4963
|
-
const
|
|
4971
|
+
const Ea = new we(ue, ce)._freeze();
|
|
4964
4972
|
function ke(e, t, a, i) {
|
|
4965
4973
|
const l = t.flatMap((n) => n.file);
|
|
4966
4974
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
@@ -4973,7 +4981,7 @@ function ke(e, t, a, i) {
|
|
|
4973
4981
|
})) : t[o].status = "Duplicate";
|
|
4974
4982
|
}), t;
|
|
4975
4983
|
}
|
|
4976
|
-
async function
|
|
4984
|
+
async function Ua(e, t) {
|
|
4977
4985
|
if (e === "Uploaded" && t !== null)
|
|
4978
4986
|
try {
|
|
4979
4987
|
await new ge(t).delete();
|
|
@@ -4996,20 +5004,20 @@ function me(e, t = !0, a = 1) {
|
|
|
4996
5004
|
while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
|
|
4997
5005
|
return e.toFixed(a) + " " + l[n];
|
|
4998
5006
|
}
|
|
4999
|
-
function
|
|
5007
|
+
function qa(e) {
|
|
5000
5008
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
5001
5009
|
}
|
|
5002
|
-
function
|
|
5010
|
+
function La(e) {
|
|
5003
5011
|
return URL.createObjectURL(e);
|
|
5004
5012
|
}
|
|
5005
|
-
function
|
|
5013
|
+
function Ra() {
|
|
5006
5014
|
const e = new we(ue, ce);
|
|
5007
5015
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
5008
5016
|
}
|
|
5009
|
-
const
|
|
5017
|
+
const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disabled", "multiple"], Ga = {
|
|
5010
5018
|
class: "text-break accepted-file-types-container",
|
|
5011
5019
|
id: "accepted-file-types-overlay"
|
|
5012
|
-
},
|
|
5020
|
+
}, Ya = /* @__PURE__ */ S({
|
|
5013
5021
|
__name: "UploadButton",
|
|
5014
5022
|
props: /* @__PURE__ */ R({
|
|
5015
5023
|
acceptedFileTypes: {},
|
|
@@ -5026,7 +5034,7 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5026
5034
|
};
|
|
5027
5035
|
return (o, s) => {
|
|
5028
5036
|
const p = q;
|
|
5029
|
-
return r(), v("div",
|
|
5037
|
+
return r(), v("div", Ha, [
|
|
5030
5038
|
k(o.$slots, "message"),
|
|
5031
5039
|
m("div", null, [
|
|
5032
5040
|
m("input", {
|
|
@@ -5037,14 +5045,14 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5037
5045
|
disabled: l.value,
|
|
5038
5046
|
multiple: o.maxFileInput > 1,
|
|
5039
5047
|
onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
|
|
5040
|
-
}, null, 40,
|
|
5048
|
+
}, null, 40, Wa),
|
|
5041
5049
|
m("label", {
|
|
5042
5050
|
class: F([{ disabled: l.value }, "btn btn-primary"]),
|
|
5043
5051
|
id: "file-input-button",
|
|
5044
5052
|
for: "file-input"
|
|
5045
5053
|
}, [
|
|
5046
5054
|
k(o.$slots, "button-content", {}, () => [
|
|
5047
|
-
h(u(
|
|
5055
|
+
h(u(P), {
|
|
5048
5056
|
icon: "bi:upload",
|
|
5049
5057
|
class: "me-2",
|
|
5050
5058
|
height: "20px",
|
|
@@ -5071,21 +5079,21 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5071
5079
|
ref: a
|
|
5072
5080
|
}, {
|
|
5073
5081
|
default: f(() => [
|
|
5074
|
-
m("div",
|
|
5082
|
+
m("div", Ga, B(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
5075
5083
|
]),
|
|
5076
5084
|
_: 1
|
|
5077
5085
|
}, 512)
|
|
5078
5086
|
]);
|
|
5079
5087
|
};
|
|
5080
5088
|
}
|
|
5081
|
-
}),
|
|
5089
|
+
}), Ja = {
|
|
5082
5090
|
key: 0,
|
|
5083
5091
|
class: "py-4 px-3",
|
|
5084
5092
|
id: "placeholder-message"
|
|
5085
|
-
},
|
|
5093
|
+
}, Ka = {
|
|
5086
5094
|
key: 1,
|
|
5087
5095
|
class: "d-flex flex-column"
|
|
5088
|
-
},
|
|
5096
|
+
}, Za = /* @__PURE__ */ S({
|
|
5089
5097
|
__name: "DragDropArea",
|
|
5090
5098
|
props: /* @__PURE__ */ R({
|
|
5091
5099
|
maxFileInput: {},
|
|
@@ -5107,20 +5115,20 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5107
5115
|
onDragover: o[1] || (o[1] = X((s) => a.value = !0, ["prevent"])),
|
|
5108
5116
|
onDrop: X(l, ["prevent"])
|
|
5109
5117
|
}, [
|
|
5110
|
-
t.value.length === 0 ? (r(), v("div",
|
|
5111
|
-
h(u(
|
|
5118
|
+
t.value.length === 0 ? (r(), v("div", Ja, [
|
|
5119
|
+
h(u(P), {
|
|
5112
5120
|
icon: "bi:upload",
|
|
5113
5121
|
class: "me-2",
|
|
5114
5122
|
height: "20px",
|
|
5115
5123
|
width: "20px"
|
|
5116
5124
|
}),
|
|
5117
5125
|
o[2] || (o[2] = M(" Drag and drop files here "))
|
|
5118
|
-
])) : (r(), v("div",
|
|
5126
|
+
])) : (r(), v("div", Ka, [
|
|
5119
5127
|
k(n.$slots, "default")
|
|
5120
5128
|
]))
|
|
5121
5129
|
], 34));
|
|
5122
5130
|
}
|
|
5123
|
-
}),
|
|
5131
|
+
}), Xa = { class: "d-flex align-items-center me-2" }, Qa = /* @__PURE__ */ S({
|
|
5124
5132
|
__name: "UploadStatus",
|
|
5125
5133
|
props: {
|
|
5126
5134
|
fileSize: {},
|
|
@@ -5147,7 +5155,7 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5147
5155
|
});
|
|
5148
5156
|
return (l, n) => {
|
|
5149
5157
|
const o = pe;
|
|
5150
|
-
return r(), v("div",
|
|
5158
|
+
return r(), v("div", Xa, [
|
|
5151
5159
|
t.uploadStatus === "Uploading" ? (r(), y(o, {
|
|
5152
5160
|
key: 0,
|
|
5153
5161
|
"in-line": ""
|
|
@@ -5166,16 +5174,16 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5166
5174
|
]);
|
|
5167
5175
|
};
|
|
5168
5176
|
}
|
|
5169
|
-
}),
|
|
5177
|
+
}), ei = ["data-cy"], ti = { class: "ms-3 d-flex flex-column" }, ai = {
|
|
5170
5178
|
key: 1,
|
|
5171
5179
|
id: "file-name"
|
|
5172
|
-
},
|
|
5180
|
+
}, ii = {
|
|
5173
5181
|
class: "text-black-50",
|
|
5174
5182
|
id: "file-type"
|
|
5175
|
-
},
|
|
5183
|
+
}, li = {
|
|
5176
5184
|
class: "text-black-50",
|
|
5177
5185
|
id: "file-size"
|
|
5178
|
-
},
|
|
5186
|
+
}, ni = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, oi = /* @__PURE__ */ S({
|
|
5179
5187
|
__name: "FileInfo",
|
|
5180
5188
|
props: /* @__PURE__ */ R({
|
|
5181
5189
|
editableFileName: { type: Boolean },
|
|
@@ -5194,25 +5202,25 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5194
5202
|
}),
|
|
5195
5203
|
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5196
5204
|
setup(e, { emit: t }) {
|
|
5197
|
-
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 = () => {
|
|
5198
5206
|
o.value != null && (D(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5199
5207
|
}, D = () => {
|
|
5200
|
-
let
|
|
5201
|
-
|
|
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));
|
|
5202
5210
|
}, O = async () => {
|
|
5203
5211
|
if (!x.value || !d.value) {
|
|
5204
5212
|
l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5205
5213
|
return;
|
|
5206
5214
|
}
|
|
5207
5215
|
l.value = "Preparing", c.value = new AbortController();
|
|
5208
|
-
const [
|
|
5209
|
-
if (!
|
|
5216
|
+
const [b, w] = await e.getFileUrlAction(a.value.name);
|
|
5217
|
+
if (!b) {
|
|
5210
5218
|
l.value = "Failed";
|
|
5211
5219
|
return;
|
|
5212
5220
|
}
|
|
5213
5221
|
try {
|
|
5214
5222
|
l.value = "Uploading";
|
|
5215
|
-
const I = new ge(
|
|
5223
|
+
const I = new ge(b), g = {
|
|
5216
5224
|
abortSignal: c.value.signal,
|
|
5217
5225
|
onProgress: (V) => p.value = V.loadedBytes,
|
|
5218
5226
|
blobHTTPHeaders: {
|
|
@@ -5221,7 +5229,7 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5221
5229
|
},
|
|
5222
5230
|
tags: { temp: "true" }
|
|
5223
5231
|
};
|
|
5224
|
-
await I.uploadData(a.value,
|
|
5232
|
+
await I.uploadData(a.value, g), s.value = b, l.value = "Uploaded", i.value = w;
|
|
5225
5233
|
} catch (I) {
|
|
5226
5234
|
if (I.name === "AbortError") {
|
|
5227
5235
|
l.value = "Aborted";
|
|
@@ -5230,26 +5238,26 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5230
5238
|
l.value = "Failed";
|
|
5231
5239
|
}
|
|
5232
5240
|
}, U = async () => {
|
|
5233
|
-
await
|
|
5241
|
+
await Ua(l.value, s.value), n("deleted", a.value);
|
|
5234
5242
|
};
|
|
5235
5243
|
return ne(() => {
|
|
5236
5244
|
e.autoUploadToBlob && l.value != "Uploaded" && O();
|
|
5237
|
-
}), (
|
|
5245
|
+
}), (b, w) => {
|
|
5238
5246
|
const I = q;
|
|
5239
5247
|
return r(), v("div", {
|
|
5240
5248
|
class: "py-4 px-3 d-flex",
|
|
5241
5249
|
"data-cy": `file-info-${a.value.name}`
|
|
5242
5250
|
}, [
|
|
5243
5251
|
m("div", null, [
|
|
5244
|
-
u(
|
|
5252
|
+
u(qa)(a.value.type) ? (r(), y(u(Ye), {
|
|
5245
5253
|
key: 0,
|
|
5246
5254
|
id: "thumbnail-image",
|
|
5247
5255
|
"image-class": "image-file-thumbnail border",
|
|
5248
|
-
src: u(
|
|
5256
|
+
src: u(La)(a.value),
|
|
5249
5257
|
alt: a.value.name,
|
|
5250
5258
|
width: "75px",
|
|
5251
5259
|
preview: ""
|
|
5252
|
-
}, null, 8, ["src", "alt"])) : (r(), y(u(
|
|
5260
|
+
}, null, 8, ["src", "alt"])) : (r(), y(u(P), {
|
|
5253
5261
|
key: 1,
|
|
5254
5262
|
id: "file-earmark",
|
|
5255
5263
|
icon: "bi:file-earmark",
|
|
@@ -5257,28 +5265,28 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5257
5265
|
width: "75px"
|
|
5258
5266
|
}))
|
|
5259
5267
|
]),
|
|
5260
|
-
m("div",
|
|
5268
|
+
m("div", ti, [
|
|
5261
5269
|
m("div", null, [
|
|
5262
|
-
|
|
5270
|
+
b.editableFileName ? (r(), y(Gt, {
|
|
5263
5271
|
key: 0,
|
|
5264
5272
|
id: "edit-file-name",
|
|
5265
5273
|
modelValue: o.value,
|
|
5266
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
5267
|
-
rules:
|
|
5274
|
+
"onUpdate:modelValue": w[0] || (w[0] = (g) => o.value = g),
|
|
5275
|
+
rules: b.customFileNameRules,
|
|
5268
5276
|
name: a.value.name,
|
|
5269
5277
|
"complete-action": T
|
|
5270
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span",
|
|
5278
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", ai, B(o.value), 1))
|
|
5271
5279
|
]),
|
|
5272
|
-
m("span",
|
|
5273
|
-
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)
|
|
5274
5282
|
]),
|
|
5275
|
-
m("div",
|
|
5276
|
-
(r(), y(
|
|
5283
|
+
m("div", ni, [
|
|
5284
|
+
(r(), y(Qa, {
|
|
5277
5285
|
key: l.value,
|
|
5278
5286
|
"file-size": a.value.size,
|
|
5279
5287
|
"upload-status": l.value,
|
|
5280
5288
|
"bytes-uploaded": p.value,
|
|
5281
|
-
"max-file-size":
|
|
5289
|
+
"max-file-size": b.maxFileSize
|
|
5282
5290
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
5283
5291
|
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (r(), y(I, {
|
|
5284
5292
|
key: 0,
|
|
@@ -5286,7 +5294,7 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5286
5294
|
onClick: O
|
|
5287
5295
|
}, {
|
|
5288
5296
|
default: f(() => [
|
|
5289
|
-
h(u(
|
|
5297
|
+
h(u(P), {
|
|
5290
5298
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5291
5299
|
}, null, 8, ["icon"])
|
|
5292
5300
|
]),
|
|
@@ -5295,10 +5303,10 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5295
5303
|
l.value === "Uploading" ? (r(), y(I, {
|
|
5296
5304
|
key: 1,
|
|
5297
5305
|
link: "",
|
|
5298
|
-
onClick: w[1] || (w[1] = (
|
|
5306
|
+
onClick: w[1] || (w[1] = (g) => c.value.abort())
|
|
5299
5307
|
}, {
|
|
5300
5308
|
default: f(() => [
|
|
5301
|
-
h(u(
|
|
5309
|
+
h(u(P), { icon: "bi:x-circle-fill" })
|
|
5302
5310
|
]),
|
|
5303
5311
|
_: 1
|
|
5304
5312
|
})) : (r(), y(I, {
|
|
@@ -5308,27 +5316,27 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5308
5316
|
id: "delete-button"
|
|
5309
5317
|
}, {
|
|
5310
5318
|
default: f(() => [
|
|
5311
|
-
h(u(
|
|
5319
|
+
h(u(P), { icon: "bi:trash" })
|
|
5312
5320
|
]),
|
|
5313
5321
|
_: 1
|
|
5314
5322
|
}))
|
|
5315
5323
|
])
|
|
5316
|
-
], 8,
|
|
5324
|
+
], 8, ei);
|
|
5317
5325
|
};
|
|
5318
5326
|
}
|
|
5319
|
-
}),
|
|
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({
|
|
5320
5328
|
__name: "FileInputInfo",
|
|
5321
5329
|
props: {
|
|
5322
5330
|
maxFileSize: {},
|
|
5323
5331
|
maxFileInput: {}
|
|
5324
5332
|
},
|
|
5325
5333
|
setup(e) {
|
|
5326
|
-
return (t, a) => (r(), v("div",
|
|
5327
|
-
m("div",
|
|
5328
|
-
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)
|
|
5329
5337
|
]));
|
|
5330
5338
|
}
|
|
5331
|
-
}),
|
|
5339
|
+
}), ci = { "data-cy": "file-uploader" }, ui = { key: 0 }, hl = /* @__PURE__ */ S({
|
|
5332
5340
|
__name: "ForgeFileUploader",
|
|
5333
5341
|
props: /* @__PURE__ */ R({
|
|
5334
5342
|
acceptedFileTypes: {},
|
|
@@ -5348,13 +5356,13 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5348
5356
|
const t = N(e, "modelValue"), a = e, i = (l) => {
|
|
5349
5357
|
t.value = t.value.filter((n) => n.file != l);
|
|
5350
5358
|
};
|
|
5351
|
-
return (l, n) => (r(), v("div",
|
|
5352
|
-
h(
|
|
5359
|
+
return (l, n) => (r(), v("div", ci, [
|
|
5360
|
+
h(Ya, _(a, {
|
|
5353
5361
|
modelValue: t.value,
|
|
5354
5362
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
|
|
5355
5363
|
}), null, 16, ["modelValue"]),
|
|
5356
|
-
l.showDragDropArea ? (r(), v("div",
|
|
5357
|
-
h(
|
|
5364
|
+
l.showDragDropArea ? (r(), v("div", ui, [
|
|
5365
|
+
h(Za, {
|
|
5358
5366
|
"max-file-input": a.maxFileInput,
|
|
5359
5367
|
"max-file-size": a.maxFileSize,
|
|
5360
5368
|
"accepted-file-types": a.acceptedFileTypes,
|
|
@@ -5363,7 +5371,7 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5363
5371
|
}, {
|
|
5364
5372
|
default: f(() => [
|
|
5365
5373
|
(r(!0), v(A, null, E(t.value, ({ file: o }, s) => (r(), v("div", null, [
|
|
5366
|
-
(r(), y(
|
|
5374
|
+
(r(), y(oi, _({
|
|
5367
5375
|
key: o.name,
|
|
5368
5376
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5369
5377
|
file: t.value[s].file,
|
|
@@ -5378,14 +5386,14 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5378
5386
|
]),
|
|
5379
5387
|
_: 1
|
|
5380
5388
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5381
|
-
h(
|
|
5389
|
+
h(pi, {
|
|
5382
5390
|
"max-file-size": a.maxFileSize,
|
|
5383
5391
|
"max-file-input": l.maxFileInput
|
|
5384
5392
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5385
5393
|
])) : C("", !0)
|
|
5386
5394
|
]));
|
|
5387
5395
|
}
|
|
5388
|
-
}),
|
|
5396
|
+
}), mi = { class: "d-flex" }, vi = { class: "me-3" }, fi = { class: "ms-2" }, gi = { class: "d-flex flex-column w-100" }, wl = /* @__PURE__ */ S({
|
|
5389
5397
|
__name: "ForgeColumnCustomiser",
|
|
5390
5398
|
props: {
|
|
5391
5399
|
modelValue: { required: !0 },
|
|
@@ -5402,13 +5410,13 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5402
5410
|
class: "ms-2"
|
|
5403
5411
|
}, {
|
|
5404
5412
|
default: f(() => [
|
|
5405
|
-
m("div",
|
|
5406
|
-
m("div",
|
|
5407
|
-
h(u(
|
|
5413
|
+
m("div", mi, [
|
|
5414
|
+
m("div", vi, [
|
|
5415
|
+
h(u(P), { icon: "bi:layout-three-columns" })
|
|
5408
5416
|
]),
|
|
5409
5417
|
M(" Columns (" + B(t.value.filter((s) => s.selected).length ?? 0) + "/" + B(t.value.length ?? 0) + ") ", 1),
|
|
5410
|
-
m("div",
|
|
5411
|
-
h(u(
|
|
5418
|
+
m("div", fi, [
|
|
5419
|
+
h(u(P), {
|
|
5412
5420
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5413
5421
|
}, null, 8, ["icon"])
|
|
5414
5422
|
])
|
|
@@ -5424,7 +5432,7 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5424
5432
|
onShow: o[1] || (o[1] = () => i.value = !0)
|
|
5425
5433
|
}, {
|
|
5426
5434
|
default: f(() => [
|
|
5427
|
-
m("div",
|
|
5435
|
+
m("div", gi, [
|
|
5428
5436
|
(r(!0), v(A, null, E(t.value, (s, p) => (r(), v("div", {
|
|
5429
5437
|
class: F(["d-flex cursor-pointer", {
|
|
5430
5438
|
"border-top": p !== 0,
|
|
@@ -5448,19 +5456,19 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5448
5456
|
}, 512)
|
|
5449
5457
|
], 64));
|
|
5450
5458
|
}
|
|
5451
|
-
}),
|
|
5459
|
+
}), kl = /* @__PURE__ */ S({
|
|
5452
5460
|
__name: "ForgePanel",
|
|
5453
5461
|
setup(e) {
|
|
5454
5462
|
return (t, a) => {
|
|
5455
5463
|
const i = Je;
|
|
5456
5464
|
return r(), y(i, W(G({ ...t.$attrs })), ae({
|
|
5457
5465
|
toggleicon: f(({ collapsed: l }) => [
|
|
5458
|
-
l ? (r(), y(u(
|
|
5466
|
+
l ? (r(), y(u(P), {
|
|
5459
5467
|
key: 0,
|
|
5460
5468
|
"data-cy": "message-icon",
|
|
5461
5469
|
icon: "bi:chevron-down"
|
|
5462
5470
|
})) : C("", !0),
|
|
5463
|
-
l ? C("", !0) : (r(), y(u(
|
|
5471
|
+
l ? C("", !0) : (r(), y(u(P), {
|
|
5464
5472
|
key: 1,
|
|
5465
5473
|
"data-cy": "message-icon",
|
|
5466
5474
|
icon: "bi:chevron-up"
|
|
@@ -5477,7 +5485,7 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5477
5485
|
]), 1040);
|
|
5478
5486
|
};
|
|
5479
5487
|
}
|
|
5480
|
-
}),
|
|
5488
|
+
}), bi = /* @__PURE__ */ S({
|
|
5481
5489
|
__name: "ForgeToggleButton",
|
|
5482
5490
|
props: {
|
|
5483
5491
|
severity: { default: "primary" }
|
|
@@ -5504,15 +5512,15 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5504
5512
|
]
|
|
5505
5513
|
})
|
|
5506
5514
|
}));
|
|
5507
|
-
return (i, l) => (r(), y(u(Ke),
|
|
5515
|
+
return (i, l) => (r(), y(u(Ke), _({ ...i.$attrs, ...t }, {
|
|
5508
5516
|
severity: t.severity,
|
|
5509
5517
|
pt: a.value
|
|
5510
5518
|
}), null, 16, ["severity", "pt"]));
|
|
5511
5519
|
}
|
|
5512
|
-
}),
|
|
5520
|
+
}), yi = {
|
|
5513
5521
|
class: "btn-group",
|
|
5514
5522
|
"data-cy": "forge-select-button"
|
|
5515
|
-
},
|
|
5523
|
+
}, $l = /* @__PURE__ */ S({
|
|
5516
5524
|
__name: "ForgeSelectButton",
|
|
5517
5525
|
props: /* @__PURE__ */ R({
|
|
5518
5526
|
options: {},
|
|
@@ -5542,8 +5550,8 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5542
5550
|
} else
|
|
5543
5551
|
a.value = a.value === n.value && t.allowEmpty ? null : n.value;
|
|
5544
5552
|
};
|
|
5545
|
-
return (n, o) => (r(), v("div",
|
|
5546
|
-
(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, {
|
|
5547
5555
|
key: p,
|
|
5548
5556
|
onLabel: s.label,
|
|
5549
5557
|
offLabel: s.label,
|
|
@@ -5556,7 +5564,7 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5556
5564
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5557
5565
|
]));
|
|
5558
5566
|
}
|
|
5559
|
-
}),
|
|
5567
|
+
}), Bl = /* @__PURE__ */ S({
|
|
5560
5568
|
__name: "ForgeConfirmPopup",
|
|
5561
5569
|
setup(e) {
|
|
5562
5570
|
const t = z(() => ({
|
|
@@ -5570,14 +5578,14 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5570
5578
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5571
5579
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5572
5580
|
}));
|
|
5573
|
-
return (a, i) => (r(), y(u(Ze),
|
|
5581
|
+
return (a, i) => (r(), y(u(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5574
5582
|
default: f(() => [
|
|
5575
5583
|
(r(!0), v(A, null, E(a.$slots, (l, n) => k(a.$slots, n, { slot: n })), 256))
|
|
5576
5584
|
]),
|
|
5577
5585
|
_: 3
|
|
5578
5586
|
}, 16, ["pt"]));
|
|
5579
5587
|
}
|
|
5580
|
-
}),
|
|
5588
|
+
}), Fl = () => ({
|
|
5581
5589
|
type: "component",
|
|
5582
5590
|
resolve: (e) => {
|
|
5583
5591
|
if (e.startsWith("Forge"))
|
|
@@ -5588,39 +5596,39 @@ const La = { class: "d-flex justify-content-between" }, Ra = ["accept", "disable
|
|
|
5588
5596
|
}
|
|
5589
5597
|
});
|
|
5590
5598
|
export {
|
|
5591
|
-
|
|
5592
|
-
|
|
5599
|
+
Qi as Bootstrap_PT,
|
|
5600
|
+
el as ForgeActionButton,
|
|
5593
5601
|
de as ForgeAlert,
|
|
5594
|
-
|
|
5602
|
+
tl as ForgeAutoComplete,
|
|
5595
5603
|
ye as ForgeCheckbox,
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5604
|
+
cl as ForgeChip,
|
|
5605
|
+
wl as ForgeColumnCustomiser,
|
|
5606
|
+
Bl as ForgeConfirmPopup,
|
|
5599
5607
|
xe as ForgeDatepicker,
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5608
|
+
hl as ForgeFileUploader,
|
|
5609
|
+
xl as ForgeFilterHeader,
|
|
5610
|
+
dl as ForgeForm,
|
|
5611
|
+
pl as ForgeFormField,
|
|
5604
5612
|
Gt as ForgeInlineEditor,
|
|
5605
|
-
|
|
5613
|
+
al as ForgeLink,
|
|
5606
5614
|
pe as ForgeLoader,
|
|
5607
|
-
|
|
5615
|
+
nl as ForgeModal,
|
|
5608
5616
|
Qt as ForgeMultiSelectPreview,
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
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,
|
|
5625
5633
|
Ot as parseError
|
|
5626
5634
|
};
|