@3squared/forge-ui-3 1.0.0 → 1.1.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 +643 -570
- package/dist/esm/style.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/src/components/table/ForgeColumnCustomiser.vue.d.ts +14 -0
- package/dist/src/components/table/ForgeTable.vue.d.ts +1 -0
- package/package.json +7 -7
- package/src/styles/components/_table.scss +4 -0
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as F, openBlock as r, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import ge from "primevue/message";
|
|
2
|
+
import { defineComponent as F, openBlock as r, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as f, createElementVNode as c, normalizeClass as B, unref as p, createCommentVNode as S, createVNode as y, renderSlot as $, ref as P, createElementBlock as b, Fragment as N, mergeProps as V, mergeModels as R, useModel as U, computed as x, createTextVNode as z, toDisplayString as h, withDirectives as j, vShow as q, createSlots as te, renderList as H, onMounted as le, isRef as se, withKeys as J, useAttrs as he, withModifiers as Y, normalizeStyle as we, watch as de } from "vue";
|
|
3
|
+
import { Icon as _ } from "@iconify/vue";
|
|
4
|
+
import E from "primevue/button";
|
|
5
|
+
import ke from "primevue/toast";
|
|
6
|
+
import ue from "primevue/checkbox";
|
|
7
7
|
import { useField as K } from "vee-validate";
|
|
8
8
|
import xe from "primevue/progressspinner";
|
|
9
|
-
import
|
|
9
|
+
import $e from "primevue/dialog";
|
|
10
10
|
import ie from "primevue/inputtext";
|
|
11
|
-
import { vOnClickOutside as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
11
|
+
import { vOnClickOutside as Be } from "@vueuse/components";
|
|
12
|
+
import Fe from "primevue/menubar";
|
|
13
|
+
import _e from "vue-multiselect";
|
|
14
|
+
import Ve from "primevue/calendar";
|
|
15
|
+
import ae from "primevue/dropdown";
|
|
16
16
|
import Se from "primevue/inputmask";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import { BlockBlobClient as
|
|
26
|
-
import
|
|
17
|
+
import Ce from "primevue/textarea";
|
|
18
|
+
import ce from "primevue/inputnumber";
|
|
19
|
+
import Te from "primevue/chips";
|
|
20
|
+
import Pe from "primevue/progressbar";
|
|
21
|
+
import Me from "primevue/divider";
|
|
22
|
+
import Ie from "primevue/steps";
|
|
23
|
+
import ze from "primevue/datatable";
|
|
24
|
+
import Oe from "primevue/multiselect";
|
|
25
|
+
import { BlockBlobClient as me } from "@azure/storage-blob";
|
|
26
|
+
import pe from "primevue/overlaypanel";
|
|
27
27
|
import De from "primevue/image";
|
|
28
28
|
const Ue = {
|
|
29
29
|
button: {
|
|
@@ -248,7 +248,7 @@ const Ue = {
|
|
|
248
248
|
class: [
|
|
249
249
|
"btn",
|
|
250
250
|
{
|
|
251
|
-
"d-none": e.filters[e.field].value === null
|
|
251
|
+
"d-none": e.filters[e.field] ? e.filters[e.field].value === null : !1
|
|
252
252
|
}
|
|
253
253
|
]
|
|
254
254
|
}),
|
|
@@ -869,7 +869,7 @@ const Ue = {
|
|
|
869
869
|
};
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
|
-
},
|
|
872
|
+
}, wa = {
|
|
873
873
|
...tt,
|
|
874
874
|
...Ue,
|
|
875
875
|
...st,
|
|
@@ -899,7 +899,7 @@ const Ue = {
|
|
|
899
899
|
directives: {
|
|
900
900
|
...at
|
|
901
901
|
}
|
|
902
|
-
},
|
|
902
|
+
}, oe = /* @__PURE__ */ F({
|
|
903
903
|
__name: "ForgeAlert",
|
|
904
904
|
props: {
|
|
905
905
|
severity: { default: "primary" },
|
|
@@ -916,13 +916,13 @@ const Ue = {
|
|
|
916
916
|
setup(e) {
|
|
917
917
|
const t = e;
|
|
918
918
|
return (l, o) => {
|
|
919
|
-
const a =
|
|
919
|
+
const a = ge;
|
|
920
920
|
return r(), w(a, Q(ee({ ...l.$attrs, ...t })), {
|
|
921
|
-
messageicon:
|
|
921
|
+
messageicon: f(() => [
|
|
922
922
|
c("div", {
|
|
923
923
|
class: B(t.icon ? "me-2 pe-1" : "")
|
|
924
924
|
}, [
|
|
925
|
-
t.icon ? (r(), w(p(
|
|
925
|
+
t.icon ? (r(), w(p(_), {
|
|
926
926
|
key: 0,
|
|
927
927
|
"data-cy": "message-icon",
|
|
928
928
|
icon: t.icon,
|
|
@@ -931,17 +931,17 @@ const Ue = {
|
|
|
931
931
|
}, null, 8, ["icon", "class"])) : S("", !0)
|
|
932
932
|
], 2)
|
|
933
933
|
]),
|
|
934
|
-
closeicon:
|
|
935
|
-
|
|
934
|
+
closeicon: f(() => [
|
|
935
|
+
y(p(_), { icon: "bi:x" })
|
|
936
936
|
]),
|
|
937
|
-
default:
|
|
937
|
+
default: f(() => [
|
|
938
938
|
$(l.$slots, "default")
|
|
939
939
|
]),
|
|
940
940
|
_: 3
|
|
941
941
|
}, 16);
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
|
-
}),
|
|
944
|
+
}), ka = /* @__PURE__ */ F({
|
|
945
945
|
__name: "ForgeActionButton",
|
|
946
946
|
props: {
|
|
947
947
|
action: {},
|
|
@@ -950,7 +950,7 @@ const Ue = {
|
|
|
950
950
|
params: { default: Array }
|
|
951
951
|
},
|
|
952
952
|
setup(e) {
|
|
953
|
-
const t =
|
|
953
|
+
const t = P(!1), l = e, o = async () => {
|
|
954
954
|
t.value = !0;
|
|
955
955
|
try {
|
|
956
956
|
await l.action.apply(this, l.params);
|
|
@@ -960,20 +960,20 @@ const Ue = {
|
|
|
960
960
|
t.value = !1;
|
|
961
961
|
};
|
|
962
962
|
return (a, n) => {
|
|
963
|
-
const d =
|
|
964
|
-
return r(),
|
|
965
|
-
|
|
963
|
+
const d = E;
|
|
964
|
+
return r(), b(N, null, [
|
|
965
|
+
y(d, V({ ...l, ...a.$attrs }, {
|
|
966
966
|
loading: t.value,
|
|
967
967
|
disabled: t.value || l.disabled,
|
|
968
968
|
onClick: o
|
|
969
969
|
}), null, 16, ["loading", "disabled"]),
|
|
970
|
-
|
|
970
|
+
y(p(ke))
|
|
971
971
|
], 64);
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
974
|
}), ut = { class: "d-flex flex-column" }, ct = ["for"], mt = /* @__PURE__ */ F({
|
|
975
975
|
__name: "ForgeCheckbox",
|
|
976
|
-
props: /* @__PURE__ */
|
|
976
|
+
props: /* @__PURE__ */ R({
|
|
977
977
|
label: { default: "" },
|
|
978
978
|
value: {},
|
|
979
979
|
modelValue: {},
|
|
@@ -1001,36 +1001,36 @@ const Ue = {
|
|
|
1001
1001
|
}),
|
|
1002
1002
|
emits: ["update:modelValue"],
|
|
1003
1003
|
setup(e) {
|
|
1004
|
-
const t = e, l =
|
|
1004
|
+
const t = e, l = U(e, "modelValue"), {
|
|
1005
1005
|
handleChange: o,
|
|
1006
1006
|
errors: a,
|
|
1007
1007
|
errorMessage: n
|
|
1008
1008
|
} = K(() => t.name ?? "", void 0, {
|
|
1009
1009
|
type: "checkbox",
|
|
1010
1010
|
checkedValue: l.value
|
|
1011
|
-
}), d =
|
|
1012
|
-
return (
|
|
1013
|
-
const m =
|
|
1014
|
-
return r(),
|
|
1015
|
-
c("div",
|
|
1011
|
+
}), d = x(() => a.value.length > 0);
|
|
1012
|
+
return (i, u) => {
|
|
1013
|
+
const m = ue;
|
|
1014
|
+
return r(), b("div", ut, [
|
|
1015
|
+
c("div", V({
|
|
1016
1016
|
class: "d-flex cursor-pointer",
|
|
1017
1017
|
"data-cy": "checkbox-container",
|
|
1018
|
-
onClick: u[2] || (u[2] = (
|
|
1019
|
-
}, { ...
|
|
1020
|
-
|
|
1018
|
+
onClick: u[2] || (u[2] = (v) => p(o)(l.value))
|
|
1019
|
+
}, { ...i.$attrs }), [
|
|
1020
|
+
y(m, V({ ...t }, {
|
|
1021
1021
|
binary: "",
|
|
1022
1022
|
modelValue: l.value,
|
|
1023
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1023
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => l.value = v),
|
|
1024
1024
|
"input-id": t.name,
|
|
1025
1025
|
"input-class": { "is-invalid": d.value }
|
|
1026
1026
|
}), null, 16, ["modelValue", "input-id", "input-class"]),
|
|
1027
1027
|
c("label", {
|
|
1028
1028
|
for: t.name,
|
|
1029
|
-
onClick: u[1] || (u[1] = (
|
|
1029
|
+
onClick: u[1] || (u[1] = (v) => p(o)(l.value)),
|
|
1030
1030
|
class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${d.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1031
1031
|
}, [
|
|
1032
|
-
$(
|
|
1033
|
-
|
|
1032
|
+
$(i.$slots, "default", {}, () => [
|
|
1033
|
+
z(h(t.label), 1)
|
|
1034
1034
|
])
|
|
1035
1035
|
], 10, ct)
|
|
1036
1036
|
], 16),
|
|
@@ -1038,12 +1038,12 @@ const Ue = {
|
|
|
1038
1038
|
"data-cy": "error",
|
|
1039
1039
|
class: "text-invalid"
|
|
1040
1040
|
}, h(p(n)), 513), [
|
|
1041
|
-
[
|
|
1041
|
+
[q, d.value]
|
|
1042
1042
|
])
|
|
1043
1043
|
]);
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
1046
|
-
}), pt = { class: "forge-loader" },
|
|
1046
|
+
}), pt = { class: "forge-loader" }, ve = /* @__PURE__ */ F({
|
|
1047
1047
|
__name: "ForgeLoader",
|
|
1048
1048
|
props: {
|
|
1049
1049
|
severity: { default: "primary" }
|
|
@@ -1052,15 +1052,15 @@ const Ue = {
|
|
|
1052
1052
|
const t = e;
|
|
1053
1053
|
return (l, o) => {
|
|
1054
1054
|
const a = xe;
|
|
1055
|
-
return r(),
|
|
1056
|
-
|
|
1055
|
+
return r(), b("div", pt, [
|
|
1056
|
+
y(a, {
|
|
1057
1057
|
"animation-duration": ".75",
|
|
1058
1058
|
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1059
1059
|
}, null, 8, ["class"])
|
|
1060
1060
|
]);
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
1063
|
-
}),
|
|
1063
|
+
}), vt = ["href", "target"], xa = /* @__PURE__ */ F({
|
|
1064
1064
|
__name: "ForgeLink",
|
|
1065
1065
|
props: {
|
|
1066
1066
|
url: {},
|
|
@@ -1078,7 +1078,7 @@ const Ue = {
|
|
|
1078
1078
|
iconName: {}
|
|
1079
1079
|
},
|
|
1080
1080
|
setup(e) {
|
|
1081
|
-
const t =
|
|
1081
|
+
const t = x(() => ({
|
|
1082
1082
|
[`link-${e.severity}`]: e.severity,
|
|
1083
1083
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1084
1084
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1087,32 +1087,32 @@ const Ue = {
|
|
|
1087
1087
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1088
1088
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1089
1089
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1090
|
-
})), l =
|
|
1090
|
+
})), l = x(() => ({
|
|
1091
1091
|
"order-2": e.positionIconEnd,
|
|
1092
1092
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1093
1093
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
1094
1094
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1095
1095
|
"me-0": e.animateIconOnHover
|
|
1096
1096
|
}));
|
|
1097
|
-
return (o, a) => (r(),
|
|
1097
|
+
return (o, a) => (r(), b("a", {
|
|
1098
1098
|
id: "link",
|
|
1099
1099
|
class: B(["cursor-pointer d-flex text-break", t.value]),
|
|
1100
1100
|
href: o.url,
|
|
1101
1101
|
target: o.target
|
|
1102
1102
|
}, [
|
|
1103
1103
|
$(o.$slots, "default", {}, () => [
|
|
1104
|
-
o.iconName ? (r(), w(p(
|
|
1104
|
+
o.iconName ? (r(), w(p(_), {
|
|
1105
1105
|
key: 0,
|
|
1106
1106
|
id: "link-icon",
|
|
1107
1107
|
icon: o.iconName,
|
|
1108
1108
|
class: B(["bi my-auto", l.value])
|
|
1109
1109
|
}, null, 8, ["icon", "class"])) : S("", !0),
|
|
1110
|
-
|
|
1110
|
+
z(" " + h(o.label), 1)
|
|
1111
1111
|
])
|
|
1112
|
-
], 10,
|
|
1112
|
+
], 10, vt));
|
|
1113
1113
|
}
|
|
1114
1114
|
});
|
|
1115
|
-
function
|
|
1115
|
+
function yt(e) {
|
|
1116
1116
|
const t = {
|
|
1117
1117
|
errorMessage: "",
|
|
1118
1118
|
errorDetails: []
|
|
@@ -1123,18 +1123,18 @@ function vt(e) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1125
1125
|
}
|
|
1126
|
-
function
|
|
1126
|
+
function $a(e, t) {
|
|
1127
1127
|
return e.map((l) => ({ id: l, label: t ? t(l) : `${l}` }));
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function Ba(e, t, l) {
|
|
1130
1130
|
return { id: e, label: t ?? e.toString(), shortLabel: l };
|
|
1131
1131
|
}
|
|
1132
1132
|
const bt = { key: 0 }, ft = {
|
|
1133
1133
|
class: "d-flex w-100",
|
|
1134
1134
|
"data-cy": "footer"
|
|
1135
|
-
},
|
|
1135
|
+
}, Fa = /* @__PURE__ */ F({
|
|
1136
1136
|
__name: "ForgeModal",
|
|
1137
|
-
props: /* @__PURE__ */
|
|
1137
|
+
props: /* @__PURE__ */ R({
|
|
1138
1138
|
cancelText: { default: "Cancel" },
|
|
1139
1139
|
submitText: { default: "Submit" },
|
|
1140
1140
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1178,13 +1178,13 @@ const bt = { key: 0 }, ft = {
|
|
|
1178
1178
|
}),
|
|
1179
1179
|
emits: ["update:visible"],
|
|
1180
1180
|
setup(e) {
|
|
1181
|
-
const t =
|
|
1181
|
+
const t = U(e, "visible"), l = P(!1), o = e, a = P(!1), n = P({
|
|
1182
1182
|
hasError: !1,
|
|
1183
1183
|
header: "",
|
|
1184
1184
|
message: []
|
|
1185
1185
|
}), d = () => {
|
|
1186
1186
|
l.value = !1;
|
|
1187
|
-
},
|
|
1187
|
+
}, i = () => {
|
|
1188
1188
|
l.value = !0;
|
|
1189
1189
|
}, u = () => {
|
|
1190
1190
|
t.value = !1;
|
|
@@ -1192,16 +1192,16 @@ const bt = { key: 0 }, ft = {
|
|
|
1192
1192
|
if (o.onConfirm) {
|
|
1193
1193
|
a.value = !0, n.value.hasError = !1;
|
|
1194
1194
|
try {
|
|
1195
|
-
const
|
|
1196
|
-
(
|
|
1197
|
-
} catch (
|
|
1195
|
+
const s = await o.onConfirm();
|
|
1196
|
+
(s || s == null) && u();
|
|
1197
|
+
} catch (s) {
|
|
1198
1198
|
n.value.hasError = !0;
|
|
1199
|
-
const
|
|
1200
|
-
n.value.header =
|
|
1199
|
+
const C = yt(s);
|
|
1200
|
+
n.value.header = C.errorMessage, n.value.message = C.errorDetails;
|
|
1201
1201
|
}
|
|
1202
1202
|
a.value = !1;
|
|
1203
1203
|
}
|
|
1204
|
-
},
|
|
1204
|
+
}, v = x(() => ({
|
|
1205
1205
|
root: [
|
|
1206
1206
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1207
1207
|
{
|
|
@@ -1212,15 +1212,15 @@ const bt = { key: 0 }, ft = {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
]
|
|
1214
1214
|
}));
|
|
1215
|
-
return (
|
|
1216
|
-
const
|
|
1217
|
-
return r(), w(
|
|
1218
|
-
onMaximize:
|
|
1215
|
+
return (s, C) => {
|
|
1216
|
+
const T = E, M = $e;
|
|
1217
|
+
return r(), w(M, V(o, {
|
|
1218
|
+
onMaximize: i,
|
|
1219
1219
|
onUnmaximize: d,
|
|
1220
|
-
pt:
|
|
1220
|
+
pt: v.value
|
|
1221
1221
|
}), te({
|
|
1222
|
-
closeicon:
|
|
1223
|
-
|
|
1222
|
+
closeicon: f(() => [
|
|
1223
|
+
y(p(_), {
|
|
1224
1224
|
"data-cy": "close-icon",
|
|
1225
1225
|
icon: "bi:x-lg",
|
|
1226
1226
|
width: "18",
|
|
@@ -1228,8 +1228,8 @@ const bt = { key: 0 }, ft = {
|
|
|
1228
1228
|
onClick: u
|
|
1229
1229
|
})
|
|
1230
1230
|
]),
|
|
1231
|
-
maximizeicon:
|
|
1232
|
-
|
|
1231
|
+
maximizeicon: f(() => [
|
|
1232
|
+
y(p(_), {
|
|
1233
1233
|
"data-cy": "maximisable-icon",
|
|
1234
1234
|
icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1235
1235
|
width: "16",
|
|
@@ -1238,44 +1238,44 @@ const bt = { key: 0 }, ft = {
|
|
|
1238
1238
|
]),
|
|
1239
1239
|
_: 2
|
|
1240
1240
|
}, [
|
|
1241
|
-
|
|
1242
|
-
name:
|
|
1243
|
-
fn:
|
|
1244
|
-
n.value.hasError ? (r(), w(
|
|
1241
|
+
H(s.$slots, (I, O) => ({
|
|
1242
|
+
name: O,
|
|
1243
|
+
fn: f((g) => [
|
|
1244
|
+
n.value.hasError ? (r(), w(oe, {
|
|
1245
1245
|
key: 0,
|
|
1246
1246
|
severity: "danger",
|
|
1247
1247
|
"data-cy": "error"
|
|
1248
1248
|
}, {
|
|
1249
|
-
default:
|
|
1249
|
+
default: f(() => [
|
|
1250
1250
|
c("p", {
|
|
1251
1251
|
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1252
1252
|
}, h(n.value.header), 3),
|
|
1253
|
-
n.value.message.length > 0 ? (r(),
|
|
1254
|
-
(r(!0),
|
|
1253
|
+
n.value.message.length > 0 ? (r(), b("ul", bt, [
|
|
1254
|
+
(r(!0), b(N, null, H(n.value.message, (k) => (r(), b("li", { key: k }, h(k), 1))), 128))
|
|
1255
1255
|
])) : S("", !0)
|
|
1256
1256
|
]),
|
|
1257
1257
|
_: 1
|
|
1258
1258
|
})) : S("", !0),
|
|
1259
|
-
$(
|
|
1260
|
-
a.value ? $(
|
|
1261
|
-
|
|
1259
|
+
$(s.$slots, O, Q(ee(g || {}))),
|
|
1260
|
+
a.value ? $(s.$slots, "loader", { key: 1 }, () => [
|
|
1261
|
+
y(ve, { "data-cy": "loader" })
|
|
1262
1262
|
]) : S("", !0)
|
|
1263
1263
|
])
|
|
1264
1264
|
})),
|
|
1265
|
-
|
|
1265
|
+
s.showFooter ? {
|
|
1266
1266
|
name: "footer",
|
|
1267
|
-
fn:
|
|
1267
|
+
fn: f(() => [
|
|
1268
1268
|
c("div", ft, [
|
|
1269
|
-
|
|
1270
|
-
label:
|
|
1269
|
+
y(T, {
|
|
1270
|
+
label: s.cancelText,
|
|
1271
1271
|
class: B(o.cancelClass),
|
|
1272
1272
|
outlined: "",
|
|
1273
1273
|
onClick: u,
|
|
1274
1274
|
id: "cancel-button",
|
|
1275
1275
|
type: o.cancelButtonType
|
|
1276
1276
|
}, null, 8, ["label", "class", "type"]),
|
|
1277
|
-
|
|
1278
|
-
label:
|
|
1277
|
+
y(T, {
|
|
1278
|
+
label: s.submitText,
|
|
1279
1279
|
class: B([o.submitClass, "ms-auto"]),
|
|
1280
1280
|
onClick: m,
|
|
1281
1281
|
id: "submit-button",
|
|
@@ -1288,9 +1288,9 @@ const bt = { key: 0 }, ft = {
|
|
|
1288
1288
|
]), 1040, ["pt"]);
|
|
1289
1289
|
};
|
|
1290
1290
|
}
|
|
1291
|
-
}), gt = ["id"], ht = { key: 0 }, wt = { key: 0 },
|
|
1291
|
+
}), gt = ["id"], ht = { key: 0 }, wt = { key: 0 }, kt = { class: "d-flex justify-content-between align-items-center position-relative" }, xt = { key: 1 }, $t = { "data-cy": "readonly-value" }, Bt = /* @__PURE__ */ F({
|
|
1292
1292
|
__name: "ForgeInlineEditor",
|
|
1293
|
-
props: /* @__PURE__ */
|
|
1293
|
+
props: /* @__PURE__ */ R({
|
|
1294
1294
|
name: { default: "" },
|
|
1295
1295
|
completeAction: {},
|
|
1296
1296
|
errorAction: {},
|
|
@@ -1303,13 +1303,13 @@ const bt = { key: 0 }, ft = {
|
|
|
1303
1303
|
}),
|
|
1304
1304
|
emits: ["update:modelValue"],
|
|
1305
1305
|
setup(e) {
|
|
1306
|
-
const t = e, l =
|
|
1307
|
-
var
|
|
1308
|
-
o.value = !o.value, (
|
|
1306
|
+
const t = e, l = U(e, "modelValue"), o = P(!1), a = P(), n = () => {
|
|
1307
|
+
var T;
|
|
1308
|
+
o.value = !o.value, (T = a.value) == null || T.focus();
|
|
1309
1309
|
}, d = async () => {
|
|
1310
|
-
if (
|
|
1310
|
+
if (C.value)
|
|
1311
1311
|
return !1;
|
|
1312
|
-
if (l.value =
|
|
1312
|
+
if (l.value = s.value, t.completeAction)
|
|
1313
1313
|
try {
|
|
1314
1314
|
await t.completeAction.apply(this, t.params), o.value = !o.value;
|
|
1315
1315
|
} catch {
|
|
@@ -1317,50 +1317,50 @@ const bt = { key: 0 }, ft = {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
else
|
|
1319
1319
|
o.value = !o.value;
|
|
1320
|
-
},
|
|
1320
|
+
}, i = () => {
|
|
1321
1321
|
o.value = !o.value;
|
|
1322
1322
|
}, u = () => {
|
|
1323
|
-
|
|
1324
|
-
}, { errorMessage: m, errors:
|
|
1323
|
+
s.value = null;
|
|
1324
|
+
}, { errorMessage: m, errors: v, value: s } = K(() => t.name, void 0, {
|
|
1325
1325
|
initialValue: l.value
|
|
1326
1326
|
});
|
|
1327
|
-
|
|
1328
|
-
|
|
1327
|
+
le(() => {
|
|
1328
|
+
s.value = l.value;
|
|
1329
1329
|
});
|
|
1330
|
-
const
|
|
1331
|
-
return (
|
|
1332
|
-
const I = ie,
|
|
1333
|
-
return r(),
|
|
1330
|
+
const C = x(() => v.value.length > 0);
|
|
1331
|
+
return (T, M) => {
|
|
1332
|
+
const I = ie, O = E;
|
|
1333
|
+
return r(), b("div", {
|
|
1334
1334
|
id: t.name
|
|
1335
1335
|
}, [
|
|
1336
|
-
|
|
1337
|
-
$(
|
|
1338
|
-
c("span", $t, h(p(
|
|
1336
|
+
T.readonly ? (r(), b("div", xt, [
|
|
1337
|
+
$(T.$slots, "default", {}, () => [
|
|
1338
|
+
c("span", $t, h(p(s)), 1)
|
|
1339
1339
|
])
|
|
1340
|
-
])) : (r(),
|
|
1341
|
-
o.value ? (r(),
|
|
1342
|
-
j((r(),
|
|
1343
|
-
$(
|
|
1344
|
-
class: B({ "is-invalid":
|
|
1340
|
+
])) : (r(), b("div", ht, [
|
|
1341
|
+
o.value ? (r(), b("div", wt, [
|
|
1342
|
+
j((r(), b("div", kt, [
|
|
1343
|
+
$(T.$slots, "editor", {
|
|
1344
|
+
class: B({ "is-invalid": C.value }),
|
|
1345
1345
|
editFinished: d,
|
|
1346
|
-
cancel:
|
|
1347
|
-
val: p(
|
|
1346
|
+
cancel: i,
|
|
1347
|
+
val: p(s)
|
|
1348
1348
|
}, () => [
|
|
1349
|
-
|
|
1349
|
+
y(I, {
|
|
1350
1350
|
"data-cy": "input",
|
|
1351
1351
|
ref_key: "input",
|
|
1352
1352
|
ref: a,
|
|
1353
|
-
modelValue: p(
|
|
1354
|
-
"onUpdate:modelValue":
|
|
1353
|
+
modelValue: p(s),
|
|
1354
|
+
"onUpdate:modelValue": M[0] || (M[0] = (g) => se(s) ? s.value = g : null),
|
|
1355
1355
|
modelModifiers: { trim: !0 },
|
|
1356
|
-
class: B({ "is-invalid":
|
|
1356
|
+
class: B({ "is-invalid": C.value }),
|
|
1357
1357
|
onKeydown: [
|
|
1358
1358
|
J(d, ["enter"]),
|
|
1359
|
-
J(
|
|
1359
|
+
J(i, ["esc"])
|
|
1360
1360
|
]
|
|
1361
1361
|
}, null, 8, ["modelValue", "class"])
|
|
1362
1362
|
]),
|
|
1363
|
-
|
|
1363
|
+
y(p(_), {
|
|
1364
1364
|
icon: "bi:x-circle",
|
|
1365
1365
|
class: "mx-2 cursor-pointer",
|
|
1366
1366
|
onClick: u,
|
|
@@ -1368,28 +1368,28 @@ const bt = { key: 0 }, ft = {
|
|
|
1368
1368
|
"data-cy": "clear-icon"
|
|
1369
1369
|
})
|
|
1370
1370
|
])), [
|
|
1371
|
-
[p(
|
|
1371
|
+
[p(Be), d]
|
|
1372
1372
|
])
|
|
1373
|
-
])) : (r(),
|
|
1373
|
+
])) : (r(), b("div", {
|
|
1374
1374
|
key: 1,
|
|
1375
1375
|
class: "d-flex text-muted",
|
|
1376
1376
|
onClick: n,
|
|
1377
1377
|
onFocus: n
|
|
1378
1378
|
}, [
|
|
1379
|
-
$(
|
|
1379
|
+
$(T.$slots, "default", {}, () => [
|
|
1380
1380
|
c("div", {
|
|
1381
|
-
class: B(["pe-2 cursor-pointer", { "text-invalid":
|
|
1381
|
+
class: B(["pe-2 cursor-pointer", { "text-invalid": C.value }]),
|
|
1382
1382
|
"data-cy": "value"
|
|
1383
|
-
}, h(p(
|
|
1383
|
+
}, h(p(s) ? p(s) : "Click to edit"), 3)
|
|
1384
1384
|
]),
|
|
1385
|
-
|
|
1385
|
+
y(O, {
|
|
1386
1386
|
link: "",
|
|
1387
1387
|
class: "p-0 m-0"
|
|
1388
1388
|
}, {
|
|
1389
|
-
default:
|
|
1390
|
-
|
|
1389
|
+
default: f(() => [
|
|
1390
|
+
y(p(_), {
|
|
1391
1391
|
icon: "bi:pencil",
|
|
1392
|
-
class: B(
|
|
1392
|
+
class: B(C.value ? "text-invalid" : "text-muted"),
|
|
1393
1393
|
"data-cy": "edit-icon",
|
|
1394
1394
|
onKeydown: J(n, ["enter"])
|
|
1395
1395
|
}, null, 8, ["class"])
|
|
@@ -1402,12 +1402,12 @@ const bt = { key: 0 }, ft = {
|
|
|
1402
1402
|
"data-cy": "error",
|
|
1403
1403
|
class: "text-invalid"
|
|
1404
1404
|
}, h(p(m)), 513), [
|
|
1405
|
-
[
|
|
1405
|
+
[q, C.value]
|
|
1406
1406
|
])
|
|
1407
1407
|
], 8, gt);
|
|
1408
1408
|
};
|
|
1409
1409
|
}
|
|
1410
|
-
}), Ft = ["href"],
|
|
1410
|
+
}), Ft = ["href"], _a = /* @__PURE__ */ F({
|
|
1411
1411
|
__name: "ForgeNavbar",
|
|
1412
1412
|
props: {
|
|
1413
1413
|
severity: { default: "light" },
|
|
@@ -1424,7 +1424,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1424
1424
|
unstyled: { type: Boolean }
|
|
1425
1425
|
},
|
|
1426
1426
|
setup(e) {
|
|
1427
|
-
const t = e, l =
|
|
1427
|
+
const t = e, l = x(() => ({
|
|
1428
1428
|
root: () => ({
|
|
1429
1429
|
class: [
|
|
1430
1430
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1452,25 +1452,25 @@ const bt = { key: 0 }, ft = {
|
|
|
1452
1452
|
})
|
|
1453
1453
|
}));
|
|
1454
1454
|
return (o, a) => {
|
|
1455
|
-
const n =
|
|
1456
|
-
return r(), w(n,
|
|
1455
|
+
const n = Fe;
|
|
1456
|
+
return r(), w(n, V({ ...t, ...o.$attrs }, {
|
|
1457
1457
|
pt: l.value,
|
|
1458
1458
|
"data-cy": "navbar"
|
|
1459
1459
|
}), te({
|
|
1460
|
-
start:
|
|
1460
|
+
start: f(() => [
|
|
1461
1461
|
c("a", {
|
|
1462
1462
|
href: o.logoUrl,
|
|
1463
1463
|
class: "navbar-brand ms-3",
|
|
1464
1464
|
"data-cy": "logo"
|
|
1465
1465
|
}, [
|
|
1466
1466
|
$(o.$slots, "logo", {}, () => [
|
|
1467
|
-
a[0] || (a[0] =
|
|
1467
|
+
a[0] || (a[0] = z(" Logo "))
|
|
1468
1468
|
])
|
|
1469
1469
|
], 8, Ft)
|
|
1470
1470
|
]),
|
|
1471
|
-
menubuttonicon:
|
|
1471
|
+
menubuttonicon: f(() => [
|
|
1472
1472
|
$(o.$slots, "menubuttonicon", {}, () => [
|
|
1473
|
-
|
|
1473
|
+
y(p(_), {
|
|
1474
1474
|
icon: "bi:list",
|
|
1475
1475
|
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1476
1476
|
height: "24",
|
|
@@ -1480,16 +1480,16 @@ const bt = { key: 0 }, ft = {
|
|
|
1480
1480
|
]),
|
|
1481
1481
|
_: 2
|
|
1482
1482
|
}, [
|
|
1483
|
-
|
|
1484
|
-
name:
|
|
1485
|
-
fn:
|
|
1486
|
-
$(o.$slots,
|
|
1483
|
+
H(o.$slots, (d, i) => ({
|
|
1484
|
+
name: i,
|
|
1485
|
+
fn: f((u) => [
|
|
1486
|
+
$(o.$slots, i, Q(ee(u)))
|
|
1487
1487
|
])
|
|
1488
1488
|
}))
|
|
1489
1489
|
]), 1040, ["pt"]);
|
|
1490
1490
|
};
|
|
1491
1491
|
}
|
|
1492
|
-
}), _t = { class: "multiselect__caret" },
|
|
1492
|
+
}), _t = { class: "multiselect__caret" }, Vt = ["checked"], St = ["data-cy"], Ct = ["checked"], Tt = { class: "my-auto ms-1" }, Pt = { class: "multiselect__tag d-inline-flex" }, Mt = { class: "my-auto" }, ye = /* @__PURE__ */ F({
|
|
1493
1493
|
__name: "ForgeMultiSelect",
|
|
1494
1494
|
props: {
|
|
1495
1495
|
severity: { default: "primary" },
|
|
@@ -1501,15 +1501,15 @@ const bt = { key: 0 }, ft = {
|
|
|
1501
1501
|
},
|
|
1502
1502
|
emits: ["update:modelValue"],
|
|
1503
1503
|
setup(e, { emit: t }) {
|
|
1504
|
-
const l = e, o = (
|
|
1505
|
-
const
|
|
1504
|
+
const l = e, o = (L, D) => {
|
|
1505
|
+
const A = {
|
|
1506
1506
|
...D,
|
|
1507
1507
|
$isDisabled: D.$isDisabled ?? !1
|
|
1508
1508
|
};
|
|
1509
|
-
|
|
1510
|
-
}, a =
|
|
1509
|
+
L(A);
|
|
1510
|
+
}, a = he(), n = t, { errors: d, value: i, errorMessage: u } = K(() => l.name, void 0, {
|
|
1511
1511
|
initialValue: a.modelValue
|
|
1512
|
-
}), m =
|
|
1512
|
+
}), m = P(!1), v = x(() => ({
|
|
1513
1513
|
multiple: !0,
|
|
1514
1514
|
label: "label",
|
|
1515
1515
|
trackBy: "id",
|
|
@@ -1522,98 +1522,98 @@ const bt = { key: 0 }, ft = {
|
|
|
1522
1522
|
searchable: !!(a.searchable === null || a.searchable) && a.modelValue.length === a.options.length,
|
|
1523
1523
|
async: !1,
|
|
1524
1524
|
...a
|
|
1525
|
-
})),
|
|
1526
|
-
|
|
1527
|
-
}, G = (
|
|
1528
|
-
n("update:modelValue", l.selectValue ?
|
|
1529
|
-
}, Z = (
|
|
1530
|
-
|
|
1525
|
+
})), s = x(() => `forge-multiselect-${l.severity}`), C = x(() => `multiselect__option ${m.value ? " multiselect__option--highlight" : ""} ${T.value ? " multiselect__option--selected" : ""}`), T = x(() => v.value && !(v.value.multiple || !l.showSelectAll || v.value.async) ? !1 : a.modelValue.length === a.options.length), M = x(() => d.value.length > 0), I = x(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (v.value.multiple ? a.modelValue.length > 0 : a.modelValue))), O = () => m.value = !0, g = () => m.value = !1, k = () => {
|
|
1526
|
+
i.value = v.value.multiple ? [] : null, n("update:modelValue", i.value);
|
|
1527
|
+
}, G = (L) => {
|
|
1528
|
+
n("update:modelValue", l.selectValue ? L.map((D) => D[l.selectValue]) : L);
|
|
1529
|
+
}, Z = (L) => a.modelValue !== null ? a.modelValue.some((D) => v.value.selectValue ? L[l.selectValue] === D : L.id === D.id && L.label === D.label) : !1, ne = () => {
|
|
1530
|
+
T.value ? k() : (i.value = [...a.options], n("update:modelValue", [...a.options]));
|
|
1531
1531
|
};
|
|
1532
|
-
return (
|
|
1533
|
-
|
|
1534
|
-
class: [
|
|
1532
|
+
return (L, D) => (r(), b(N, null, [
|
|
1533
|
+
y(p(_e), V(v.value, {
|
|
1534
|
+
class: [s.value, M.value ? "is-invalid" : ""],
|
|
1535
1535
|
"data-cy": "multiselect",
|
|
1536
1536
|
"onUpdate:modelValue": [
|
|
1537
1537
|
G,
|
|
1538
|
-
D[1] || (D[1] = (
|
|
1538
|
+
D[1] || (D[1] = (A) => se(i) ? i.value = A : null)
|
|
1539
1539
|
],
|
|
1540
|
-
modelValue: p(
|
|
1540
|
+
modelValue: p(i)
|
|
1541
1541
|
}), te({
|
|
1542
|
-
caret:
|
|
1542
|
+
caret: f(({ toggle: A }) => [
|
|
1543
1543
|
c("div", _t, [
|
|
1544
|
-
I.value ? (r(), w(p(
|
|
1544
|
+
I.value ? (r(), w(p(_), {
|
|
1545
1545
|
key: 0,
|
|
1546
1546
|
icon: "bi:x",
|
|
1547
1547
|
class: "my-auto text-black multiselect__clear",
|
|
1548
|
-
onMousedown: D[0] || (D[0] =
|
|
1548
|
+
onMousedown: D[0] || (D[0] = Y((W) => k(), ["prevent", "stop"])),
|
|
1549
1549
|
"data-cy": "clear",
|
|
1550
1550
|
height: "18px",
|
|
1551
1551
|
width: "18px"
|
|
1552
1552
|
})) : S("", !0),
|
|
1553
|
-
|
|
1553
|
+
y(p(_), {
|
|
1554
1554
|
icon: "bi:chevron-down",
|
|
1555
|
-
onClick:
|
|
1555
|
+
onClick: A,
|
|
1556
1556
|
class: "multiselect__arrow"
|
|
1557
1557
|
}, null, 8, ["onClick"])
|
|
1558
1558
|
])
|
|
1559
1559
|
]),
|
|
1560
|
-
tag:
|
|
1560
|
+
tag: f(({ option: A, remove: W }) => [
|
|
1561
1561
|
c("div", Pt, [
|
|
1562
|
-
c("div", Mt, h(
|
|
1563
|
-
|
|
1562
|
+
c("div", Mt, h(A.label), 1),
|
|
1563
|
+
y(p(_), {
|
|
1564
1564
|
icon: "bi:x",
|
|
1565
1565
|
class: "my-auto multiselect__tag-icon",
|
|
1566
|
-
onMousedown:
|
|
1566
|
+
onMousedown: Y((Yl) => o(W, A), ["prevent", "stop"]),
|
|
1567
1567
|
height: "18px",
|
|
1568
1568
|
width: "18px"
|
|
1569
1569
|
}, null, 8, ["onMousedown"])
|
|
1570
1570
|
])
|
|
1571
1571
|
]),
|
|
1572
|
-
default:
|
|
1573
|
-
(r(!0),
|
|
1572
|
+
default: f(() => [
|
|
1573
|
+
(r(!0), b(N, null, H(L.$slots, (A, W) => $(L.$slots, W, { slot: W })), 256))
|
|
1574
1574
|
]),
|
|
1575
1575
|
_: 2
|
|
1576
1576
|
}, [
|
|
1577
|
-
|
|
1577
|
+
v.value.multiple && L.showSelectAll && !v.value.async ? {
|
|
1578
1578
|
name: "beforeList",
|
|
1579
|
-
fn:
|
|
1579
|
+
fn: f(() => [
|
|
1580
1580
|
c("li", {
|
|
1581
1581
|
class: "multiselect__element",
|
|
1582
|
-
onClick:
|
|
1583
|
-
onMouseover:
|
|
1582
|
+
onClick: ne,
|
|
1583
|
+
onMouseover: O,
|
|
1584
1584
|
onMouseleave: g,
|
|
1585
1585
|
"data-cy": "toggle-all"
|
|
1586
1586
|
}, [
|
|
1587
1587
|
c("div", {
|
|
1588
|
-
class: B(["d-flex py-1",
|
|
1588
|
+
class: B(["d-flex py-1", C.value])
|
|
1589
1589
|
}, [
|
|
1590
1590
|
c("input", {
|
|
1591
|
-
checked:
|
|
1591
|
+
checked: T.value,
|
|
1592
1592
|
name: "selected",
|
|
1593
1593
|
type: "checkbox",
|
|
1594
1594
|
class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
|
|
1595
|
-
}, null, 8,
|
|
1595
|
+
}, null, 8, Vt),
|
|
1596
1596
|
D[2] || (D[2] = c("div", { class: "my-auto ms-1" }, "Toggle all", -1))
|
|
1597
1597
|
], 2)
|
|
1598
1598
|
], 32)
|
|
1599
1599
|
]),
|
|
1600
1600
|
key: "0"
|
|
1601
1601
|
} : void 0,
|
|
1602
|
-
|
|
1602
|
+
v.value.multiple ? {
|
|
1603
1603
|
name: "option",
|
|
1604
|
-
fn:
|
|
1604
|
+
fn: f(({ option: A }) => [
|
|
1605
1605
|
c("div", {
|
|
1606
1606
|
class: "d-flex py-1",
|
|
1607
|
-
"data-cy":
|
|
1607
|
+
"data-cy": A.label
|
|
1608
1608
|
}, [
|
|
1609
1609
|
c("input", {
|
|
1610
|
-
checked: Z(
|
|
1610
|
+
checked: Z(A),
|
|
1611
1611
|
name: "selected",
|
|
1612
1612
|
type: "checkbox",
|
|
1613
1613
|
class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
|
|
1614
1614
|
}, null, 8, Ct),
|
|
1615
|
-
c("div", Tt, h(
|
|
1616
|
-
], 8,
|
|
1615
|
+
c("div", Tt, h(A[v.value.label]), 1)
|
|
1616
|
+
], 8, St)
|
|
1617
1617
|
]),
|
|
1618
1618
|
key: "1"
|
|
1619
1619
|
} : void 0
|
|
@@ -1622,7 +1622,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1622
1622
|
"data-cy": "error",
|
|
1623
1623
|
class: "invalid-feedback"
|
|
1624
1624
|
}, h(p(u)), 513), [
|
|
1625
|
-
[
|
|
1625
|
+
[q, M.value]
|
|
1626
1626
|
])
|
|
1627
1627
|
], 64));
|
|
1628
1628
|
}
|
|
@@ -1636,9 +1636,9 @@ const bt = { key: 0 }, ft = {
|
|
|
1636
1636
|
}, Dt = { class: "d-inline-block" }, Ut = {
|
|
1637
1637
|
key: 1,
|
|
1638
1638
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1639
|
-
},
|
|
1639
|
+
}, Va = /* @__PURE__ */ F({
|
|
1640
1640
|
__name: "ForgeMultiSelectPreview",
|
|
1641
|
-
props: /* @__PURE__ */
|
|
1641
|
+
props: /* @__PURE__ */ R({
|
|
1642
1642
|
title: { default: "Selected Items" },
|
|
1643
1643
|
orientation: { default: "row" },
|
|
1644
1644
|
height: { default: "200px" },
|
|
@@ -1651,12 +1651,12 @@ const bt = { key: 0 }, ft = {
|
|
|
1651
1651
|
}),
|
|
1652
1652
|
emits: ["update:modelValue"],
|
|
1653
1653
|
setup(e) {
|
|
1654
|
-
const t = e, l =
|
|
1654
|
+
const t = e, l = U(e, "modelValue"), o = (a) => {
|
|
1655
1655
|
l.value = l.value.filter((n) => n.id !== a);
|
|
1656
1656
|
};
|
|
1657
1657
|
return (a, n) => {
|
|
1658
|
-
const d =
|
|
1659
|
-
return r(),
|
|
1658
|
+
const d = E;
|
|
1659
|
+
return r(), b("div", {
|
|
1660
1660
|
class: B(a.orientation === "column" ? "row" : ""),
|
|
1661
1661
|
"data-cy": "multiselect-preview"
|
|
1662
1662
|
}, [
|
|
@@ -1664,20 +1664,20 @@ const bt = { key: 0 }, ft = {
|
|
|
1664
1664
|
class: B(a.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1665
1665
|
"data-cy": "multiselect-container"
|
|
1666
1666
|
}, [
|
|
1667
|
-
|
|
1667
|
+
y(ye, V({
|
|
1668
1668
|
modelValue: l.value,
|
|
1669
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1669
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
|
|
1670
1670
|
"limit-text": () => `${l.value.length} selected`,
|
|
1671
1671
|
options: t.options
|
|
1672
1672
|
}, { ...a.$attrs }), {
|
|
1673
|
-
tag:
|
|
1674
|
-
|
|
1673
|
+
tag: f(() => n[1] || (n[1] = [
|
|
1674
|
+
z(h(""))
|
|
1675
1675
|
])),
|
|
1676
|
-
selection:
|
|
1677
|
-
l.value.length > 0 ? (r(),
|
|
1676
|
+
selection: f(() => [
|
|
1677
|
+
l.value.length > 0 ? (r(), b("span", It, h(l.value.length) + " items selected", 1)) : S("", !0)
|
|
1678
1678
|
]),
|
|
1679
|
-
default:
|
|
1680
|
-
(r(!0),
|
|
1679
|
+
default: f(() => [
|
|
1680
|
+
(r(!0), b(N, null, H(a.$slots, (i, u) => $(a.$slots, u, { slot: u })), 256))
|
|
1681
1681
|
]),
|
|
1682
1682
|
_: 3
|
|
1683
1683
|
}, 16, ["modelValue", "limit-text", "options"]),
|
|
@@ -1688,35 +1688,35 @@ const bt = { key: 0 }, ft = {
|
|
|
1688
1688
|
"data-cy": "options-preview"
|
|
1689
1689
|
}, [
|
|
1690
1690
|
c("div", {
|
|
1691
|
-
style:
|
|
1691
|
+
style: we({ height: a.height }),
|
|
1692
1692
|
class: "overflow-auto"
|
|
1693
1693
|
}, [
|
|
1694
1694
|
c("div", zt, [
|
|
1695
|
-
a.title ? (r(),
|
|
1696
|
-
(r(!0),
|
|
1697
|
-
key:
|
|
1695
|
+
a.title ? (r(), b("div", Ot, h(a.title), 1)) : S("", !0),
|
|
1696
|
+
(r(!0), b(N, null, H(l.value, (i) => (r(), b("div", {
|
|
1697
|
+
key: i.id,
|
|
1698
1698
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1699
1699
|
}, [
|
|
1700
|
-
$(a.$slots, "list-item", { item:
|
|
1701
|
-
c("span", Dt, h(
|
|
1700
|
+
$(a.$slots, "list-item", { item: i }, () => [
|
|
1701
|
+
c("span", Dt, h(i.shortLabel ? i.shortLabel : i.label), 1)
|
|
1702
1702
|
]),
|
|
1703
1703
|
a.canRemoveItemFromPreview ? (r(), w(d, {
|
|
1704
1704
|
key: 0,
|
|
1705
1705
|
link: "",
|
|
1706
1706
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1707
|
-
onClick: (u) => o(
|
|
1707
|
+
onClick: (u) => o(i.id)
|
|
1708
1708
|
}, {
|
|
1709
|
-
default:
|
|
1710
|
-
|
|
1709
|
+
default: f(() => [
|
|
1710
|
+
y(p(_), {
|
|
1711
1711
|
icon: "bi:x",
|
|
1712
1712
|
class: "close-icon",
|
|
1713
|
-
"data-cy": `close-icon-${
|
|
1713
|
+
"data-cy": `close-icon-${i.id}`
|
|
1714
1714
|
}, null, 8, ["data-cy"])
|
|
1715
1715
|
]),
|
|
1716
1716
|
_: 2
|
|
1717
1717
|
}, 1032, ["onClick"])) : S("", !0)
|
|
1718
1718
|
]))), 128)),
|
|
1719
|
-
l.value.length === 0 ? (r(),
|
|
1719
|
+
l.value.length === 0 ? (r(), b("div", Ut, h(t.optionsPreviewEmptyText), 1)) : S("", !0)
|
|
1720
1720
|
])
|
|
1721
1721
|
], 4)
|
|
1722
1722
|
], 2)
|
|
@@ -1729,23 +1729,23 @@ const bt = { key: 0 }, ft = {
|
|
|
1729
1729
|
}, Et = {
|
|
1730
1730
|
"data-cy": "slot",
|
|
1731
1731
|
class: "d-flex align-items-center"
|
|
1732
|
-
},
|
|
1732
|
+
}, Sa = /* @__PURE__ */ F({
|
|
1733
1733
|
__name: "ForgePageHeader",
|
|
1734
1734
|
props: {
|
|
1735
1735
|
title: {}
|
|
1736
1736
|
},
|
|
1737
1737
|
setup(e) {
|
|
1738
1738
|
const t = e;
|
|
1739
|
-
return (l, o) => (r(),
|
|
1739
|
+
return (l, o) => (r(), b("div", At, [
|
|
1740
1740
|
c("h3", Nt, h(t.title), 1),
|
|
1741
1741
|
c("div", Et, [
|
|
1742
1742
|
$(l.$slots, "default")
|
|
1743
1743
|
])
|
|
1744
1744
|
]));
|
|
1745
1745
|
}
|
|
1746
|
-
}), Lt = { class: "d-flex" }, Rt = { "data-cy": "before-slot" }, jt = { class: "position-relative w-100" }, Ht = { "data-cy": "after-slot" },
|
|
1746
|
+
}), Lt = { class: "d-flex" }, Rt = { "data-cy": "before-slot" }, jt = { class: "position-relative w-100" }, Ht = { "data-cy": "after-slot" }, be = /* @__PURE__ */ F({
|
|
1747
1747
|
__name: "ForgeDatepicker",
|
|
1748
|
-
props: /* @__PURE__ */
|
|
1748
|
+
props: /* @__PURE__ */ R({
|
|
1749
1749
|
severity: { default: "primary" },
|
|
1750
1750
|
modelValue: {},
|
|
1751
1751
|
selectionMode: { default: "single" },
|
|
@@ -1816,37 +1816,37 @@ const bt = { key: 0 }, ft = {
|
|
|
1816
1816
|
}),
|
|
1817
1817
|
emits: ["update:modelValue"],
|
|
1818
1818
|
setup(e) {
|
|
1819
|
-
const t = e, l =
|
|
1819
|
+
const t = e, l = U(e, "modelValue"), { errors: o, errorMessage: a, handleChange: n, handleBlur: d, setValue: i } = K(() => t.name, void 0, {
|
|
1820
1820
|
initialValue: l.value
|
|
1821
1821
|
}), u = () => {
|
|
1822
|
-
|
|
1823
|
-
}, m =
|
|
1824
|
-
day: ({ context:
|
|
1822
|
+
i(null), l.value = null;
|
|
1823
|
+
}, m = x(() => o.value.length > 0), v = x(() => ({
|
|
1824
|
+
day: ({ context: s }) => ({
|
|
1825
1825
|
class: [
|
|
1826
1826
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
1827
1827
|
{
|
|
1828
|
-
"cursor-pointer": !
|
|
1829
|
-
"pe-none":
|
|
1830
|
-
"text-white":
|
|
1828
|
+
"cursor-pointer": !s.disabled,
|
|
1829
|
+
"pe-none": s.disabled,
|
|
1830
|
+
"text-white": s.selected
|
|
1831
1831
|
},
|
|
1832
1832
|
// Severities
|
|
1833
1833
|
{
|
|
1834
|
-
selected:
|
|
1835
|
-
"text-primary": !
|
|
1836
|
-
"text-brand": !
|
|
1837
|
-
"text-secondary": !
|
|
1838
|
-
"text-success": !
|
|
1839
|
-
"text-warning": !
|
|
1840
|
-
"text-danger": !
|
|
1841
|
-
"text-info": !
|
|
1834
|
+
selected: s.selected && !s.disabled,
|
|
1835
|
+
"text-primary": !s.selected && s.today && (t.severity === void 0 || t.severity === "primary"),
|
|
1836
|
+
"text-brand": !s.selected && s.today && t.severity === "brand",
|
|
1837
|
+
"text-secondary": !s.selected && s.today && t.severity === "secondary",
|
|
1838
|
+
"text-success": !s.selected && s.today && t.severity === "success",
|
|
1839
|
+
"text-warning": !s.selected && s.today && t.severity === "warning",
|
|
1840
|
+
"text-danger": !s.selected && s.today && t.severity === "danger",
|
|
1841
|
+
"text-info": !s.selected && s.today && t.severity === "info"
|
|
1842
1842
|
}
|
|
1843
1843
|
]
|
|
1844
1844
|
}),
|
|
1845
|
-
dayLabel: ({ context:
|
|
1845
|
+
dayLabel: ({ context: s }) => ({
|
|
1846
1846
|
class: [
|
|
1847
1847
|
// Disabled States
|
|
1848
1848
|
{
|
|
1849
|
-
"text-muted":
|
|
1849
|
+
"text-muted": s.disabled
|
|
1850
1850
|
}
|
|
1851
1851
|
]
|
|
1852
1852
|
}),
|
|
@@ -1882,95 +1882,95 @@ const bt = { key: 0 }, ft = {
|
|
|
1882
1882
|
]
|
|
1883
1883
|
})
|
|
1884
1884
|
},
|
|
1885
|
-
year: ({ context:
|
|
1885
|
+
year: ({ context: s }) => ({
|
|
1886
1886
|
class: [
|
|
1887
1887
|
"col-3 text-center cursor-pointer py-2",
|
|
1888
1888
|
{
|
|
1889
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
1890
|
-
"text-brand": t.severity === "brand" &&
|
|
1891
|
-
"text-secondary": t.severity === "secondary" &&
|
|
1892
|
-
"text-success": t.severity === "success" &&
|
|
1893
|
-
"text-warning": t.severity === "warning" &&
|
|
1894
|
-
"text-danger": t.severity === "danger" &&
|
|
1895
|
-
"text-info": t.severity === "info" &&
|
|
1889
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1890
|
+
"text-brand": t.severity === "brand" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1891
|
+
"text-secondary": t.severity === "secondary" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1892
|
+
"text-success": t.severity === "success" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1893
|
+
"text-warning": t.severity === "warning" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1894
|
+
"text-danger": t.severity === "danger" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1895
|
+
"text-info": t.severity === "info" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear()
|
|
1896
1896
|
}
|
|
1897
1897
|
]
|
|
1898
1898
|
}),
|
|
1899
|
-
month: ({ context:
|
|
1899
|
+
month: ({ context: s }) => ({
|
|
1900
1900
|
class: [
|
|
1901
1901
|
"col-3 text-center cursor-pointer py-2",
|
|
1902
1902
|
{
|
|
1903
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
1904
|
-
"text-brand": t.severity === "brand" &&
|
|
1905
|
-
"text-secondary": t.severity === "secondary" &&
|
|
1906
|
-
"text-success": t.severity === "success" &&
|
|
1907
|
-
"text-warning": t.severity === "warning" &&
|
|
1908
|
-
"text-danger": t.severity === "danger" &&
|
|
1909
|
-
"text-info": t.severity === "info" &&
|
|
1903
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1904
|
+
"text-brand": t.severity === "brand" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1905
|
+
"text-secondary": t.severity === "secondary" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1906
|
+
"text-success": t.severity === "success" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1907
|
+
"text-warning": t.severity === "warning" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1908
|
+
"text-danger": t.severity === "danger" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1909
|
+
"text-info": t.severity === "info" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
|
|
1910
1910
|
}
|
|
1911
1911
|
]
|
|
1912
1912
|
})
|
|
1913
1913
|
}));
|
|
1914
|
-
return (
|
|
1915
|
-
const
|
|
1916
|
-
return r(),
|
|
1914
|
+
return (s, C) => {
|
|
1915
|
+
const T = Ve;
|
|
1916
|
+
return r(), b(N, null, [
|
|
1917
1917
|
c("div", Lt, [
|
|
1918
1918
|
c("span", Rt, [
|
|
1919
|
-
$(
|
|
1919
|
+
$(s.$slots, "before")
|
|
1920
1920
|
]),
|
|
1921
1921
|
c("div", jt, [
|
|
1922
|
-
|
|
1923
|
-
pt:
|
|
1922
|
+
y(T, V({ ...t, ...s.$attrs }, {
|
|
1923
|
+
pt: v.value,
|
|
1924
1924
|
modelValue: l.value,
|
|
1925
1925
|
"onUpdate:modelValue": [
|
|
1926
|
-
|
|
1926
|
+
C[0] || (C[0] = (M) => l.value = M),
|
|
1927
1927
|
p(n)
|
|
1928
1928
|
],
|
|
1929
1929
|
onBlur: p(d),
|
|
1930
1930
|
"input-class": { "datepicker-invalid": m.value }
|
|
1931
1931
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
|
|
1932
|
-
j(
|
|
1932
|
+
j(y(p(_), {
|
|
1933
1933
|
"data-cy": "icon",
|
|
1934
1934
|
icon: "bi:calendar4",
|
|
1935
1935
|
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${m.value ? "text-danger-dark" : "text-muted"}`])
|
|
1936
1936
|
}, null, 8, ["class"]), [
|
|
1937
|
-
[
|
|
1937
|
+
[q, t.showIcon]
|
|
1938
1938
|
]),
|
|
1939
|
-
j(
|
|
1939
|
+
j(y(p(_), {
|
|
1940
1940
|
"data-cy": "icon",
|
|
1941
1941
|
icon: "bi:x",
|
|
1942
1942
|
onClick: u,
|
|
1943
1943
|
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"])
|
|
1944
1944
|
}, null, 8, ["class"]), [
|
|
1945
|
-
[
|
|
1945
|
+
[q, t.modelValue]
|
|
1946
1946
|
])
|
|
1947
1947
|
]),
|
|
1948
1948
|
c("span", Ht, [
|
|
1949
|
-
$(
|
|
1949
|
+
$(s.$slots, "after")
|
|
1950
1950
|
])
|
|
1951
1951
|
]),
|
|
1952
1952
|
j(c("small", {
|
|
1953
1953
|
"data-cy": "error",
|
|
1954
1954
|
class: "text-invalid"
|
|
1955
1955
|
}, h(p(a)), 513), [
|
|
1956
|
-
[
|
|
1956
|
+
[q, m.value]
|
|
1957
1957
|
])
|
|
1958
1958
|
], 64);
|
|
1959
1959
|
};
|
|
1960
1960
|
}
|
|
1961
|
-
}),
|
|
1961
|
+
}), Ca = /* @__PURE__ */ F({
|
|
1962
1962
|
__name: "ForgeRemainingCharacters",
|
|
1963
1963
|
props: {
|
|
1964
1964
|
maxCount: { default: 300 },
|
|
1965
1965
|
currentCount: {}
|
|
1966
1966
|
},
|
|
1967
1967
|
setup(e) {
|
|
1968
|
-
const t = e, l =
|
|
1969
|
-
return (o, a) => (r(),
|
|
1968
|
+
const t = e, l = x(() => t.maxCount - t.currentCount);
|
|
1969
|
+
return (o, a) => (r(), b("div", {
|
|
1970
1970
|
class: B(l.value < 0 ? "text-danger" : "")
|
|
1971
1971
|
}, "Remaining characters: " + h(l.value), 3));
|
|
1972
1972
|
}
|
|
1973
|
-
}), qt = { class: "d-flex justify-content-between" },
|
|
1973
|
+
}), qt = { class: "d-flex justify-content-between" }, Ta = /* @__PURE__ */ F({
|
|
1974
1974
|
__name: "ForgeForm",
|
|
1975
1975
|
props: {
|
|
1976
1976
|
onSubmit: {},
|
|
@@ -1982,7 +1982,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1982
1982
|
hideCancel: { type: Boolean, default: !1 }
|
|
1983
1983
|
},
|
|
1984
1984
|
setup(e) {
|
|
1985
|
-
const t = e, l =
|
|
1985
|
+
const t = e, l = P(!1), o = P({
|
|
1986
1986
|
hasError: !1,
|
|
1987
1987
|
message: ""
|
|
1988
1988
|
});
|
|
@@ -1996,13 +1996,13 @@ const bt = { key: 0 }, ft = {
|
|
|
1996
1996
|
l.value = !1;
|
|
1997
1997
|
}
|
|
1998
1998
|
return (n, d) => {
|
|
1999
|
-
const
|
|
2000
|
-
return r(),
|
|
1999
|
+
const i = E;
|
|
2000
|
+
return r(), b("form", V(n.$attrs, {
|
|
2001
2001
|
novalidate: "",
|
|
2002
2002
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2003
|
-
onSubmit:
|
|
2003
|
+
onSubmit: Y(a, ["prevent"])
|
|
2004
2004
|
}), [
|
|
2005
|
-
n.hideTitle ? S("", !0) : (r(),
|
|
2005
|
+
n.hideTitle ? S("", !0) : (r(), b(N, { key: 0 }, [
|
|
2006
2006
|
$(n.$slots, "title", {}, () => [
|
|
2007
2007
|
c("h3", {
|
|
2008
2008
|
class: B(n.titleClass),
|
|
@@ -2011,16 +2011,16 @@ const bt = { key: 0 }, ft = {
|
|
|
2011
2011
|
]),
|
|
2012
2012
|
d[1] || (d[1] = c("hr", null, null, -1))
|
|
2013
2013
|
], 64)),
|
|
2014
|
-
o.value.hasError ? (r(), w(
|
|
2014
|
+
o.value.hasError ? (r(), w(oe, {
|
|
2015
2015
|
key: 1,
|
|
2016
2016
|
severity: "danger",
|
|
2017
2017
|
"data-cy": "error"
|
|
2018
2018
|
}, {
|
|
2019
|
-
default:
|
|
2019
|
+
default: f(() => [
|
|
2020
2020
|
$(n.$slots, "error", {
|
|
2021
2021
|
error: o.value.message
|
|
2022
2022
|
}, () => [
|
|
2023
|
-
|
|
2023
|
+
z(h(o.value.message), 1)
|
|
2024
2024
|
])
|
|
2025
2025
|
]),
|
|
2026
2026
|
_: 3
|
|
@@ -2028,7 +2028,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2028
2028
|
$(n.$slots, "default"),
|
|
2029
2029
|
c("div", qt, [
|
|
2030
2030
|
$(n.$slots, "cancel", {}, () => [
|
|
2031
|
-
n.hideCancel ? S("", !0) : (r(), w(
|
|
2031
|
+
n.hideCancel ? S("", !0) : (r(), w(i, {
|
|
2032
2032
|
key: 0,
|
|
2033
2033
|
"data-cy": "cancel-btn",
|
|
2034
2034
|
type: "reset",
|
|
@@ -2036,27 +2036,27 @@ const bt = { key: 0 }, ft = {
|
|
|
2036
2036
|
outlined: "",
|
|
2037
2037
|
onClick: d[0] || (d[0] = (u) => n.$emit("cancel"))
|
|
2038
2038
|
}, {
|
|
2039
|
-
default:
|
|
2040
|
-
|
|
2039
|
+
default: f(() => [
|
|
2040
|
+
z(h(n.cancelText), 1)
|
|
2041
2041
|
]),
|
|
2042
2042
|
_: 1
|
|
2043
2043
|
}))
|
|
2044
2044
|
]),
|
|
2045
2045
|
$(n.$slots, "submit", { submit: a }, () => [
|
|
2046
|
-
|
|
2046
|
+
y(i, {
|
|
2047
2047
|
"data-cy": "submit-btn",
|
|
2048
2048
|
type: "submit",
|
|
2049
2049
|
severity: "primary",
|
|
2050
2050
|
class: "ms-auto"
|
|
2051
2051
|
}, {
|
|
2052
|
-
default:
|
|
2053
|
-
|
|
2052
|
+
default: f(() => [
|
|
2053
|
+
z(h(n.submitText), 1)
|
|
2054
2054
|
]),
|
|
2055
2055
|
_: 1
|
|
2056
2056
|
})
|
|
2057
2057
|
])
|
|
2058
2058
|
]),
|
|
2059
|
-
l.value ? (r(), w(
|
|
2059
|
+
l.value ? (r(), w(ve, {
|
|
2060
2060
|
key: 2,
|
|
2061
2061
|
"data-cy": "loading-spinner"
|
|
2062
2062
|
})) : S("", !0)
|
|
@@ -2066,9 +2066,9 @@ const bt = { key: 0 }, ft = {
|
|
|
2066
2066
|
}), Yt = {
|
|
2067
2067
|
key: 1,
|
|
2068
2068
|
class: "d-flex flex-column w-100"
|
|
2069
|
-
}, Gt = ["for"],
|
|
2069
|
+
}, Gt = ["for"], Pa = /* @__PURE__ */ F({
|
|
2070
2070
|
__name: "ForgeFormField",
|
|
2071
|
-
props: /* @__PURE__ */
|
|
2071
|
+
props: /* @__PURE__ */ R({
|
|
2072
2072
|
name: {},
|
|
2073
2073
|
fieldLabelPosition: { default: "top" },
|
|
2074
2074
|
fieldLabel: {},
|
|
@@ -2081,24 +2081,24 @@ const bt = { key: 0 }, ft = {
|
|
|
2081
2081
|
}),
|
|
2082
2082
|
emits: ["update:modelValue"],
|
|
2083
2083
|
setup(e) {
|
|
2084
|
-
const t =
|
|
2085
|
-
l.type == "number" ?
|
|
2086
|
-
}, { errors: a, value: n, errorMessage: d, handleChange:
|
|
2084
|
+
const t = U(e, "modelValue"), l = e, o = (v) => {
|
|
2085
|
+
l.type == "number" ? i(v.value) : i(v);
|
|
2086
|
+
}, { errors: a, value: n, errorMessage: d, handleChange: i, handleBlur: u } = K(() => l.name, void 0, {
|
|
2087
2087
|
initialValue: t.value
|
|
2088
|
-
}), m =
|
|
2089
|
-
return de(() => n.value, (
|
|
2090
|
-
t.value =
|
|
2091
|
-
}, { immediate: !0 }), (
|
|
2092
|
-
const
|
|
2093
|
-
return l.type === "checkbox" ? (r(), w(mt,
|
|
2088
|
+
}), m = x(() => a.value.length > 0);
|
|
2089
|
+
return de(() => n.value, (v) => {
|
|
2090
|
+
t.value = v;
|
|
2091
|
+
}, { immediate: !0 }), (v, s) => {
|
|
2092
|
+
const C = Ce, T = Se, M = ie, I = ae, O = ye, g = be;
|
|
2093
|
+
return l.type === "checkbox" ? (r(), w(mt, V({
|
|
2094
2094
|
key: 0,
|
|
2095
2095
|
id: l.name,
|
|
2096
2096
|
label: l.fieldLabel
|
|
2097
|
-
},
|
|
2097
|
+
}, v.$attrs, {
|
|
2098
2098
|
name: l.name,
|
|
2099
2099
|
modelValue: t.value,
|
|
2100
|
-
"onUpdate:modelValue":
|
|
2101
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(),
|
|
2100
|
+
"onUpdate:modelValue": s[0] || (s[0] = (k) => t.value = k)
|
|
2101
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(), b("div", Yt, [
|
|
2102
2102
|
c("div", {
|
|
2103
2103
|
"data-cy": "input-wrapper",
|
|
2104
2104
|
class: B(["d-flex", l.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2107,58 +2107,58 @@ const bt = { key: 0 }, ft = {
|
|
|
2107
2107
|
for: l.name,
|
|
2108
2108
|
class: B(l.fieldLabelPosition === "top" ? "mb-1" : "me-2")
|
|
2109
2109
|
}, h(l.fieldLabel), 11, Gt),
|
|
2110
|
-
l.type === "number" ? (r(), w(p(
|
|
2110
|
+
l.type === "number" ? (r(), w(p(ce), V({
|
|
2111
2111
|
key: 0,
|
|
2112
2112
|
id: l.name
|
|
2113
|
-
},
|
|
2113
|
+
}, v.$attrs, {
|
|
2114
2114
|
placeholder: l.placeholder,
|
|
2115
2115
|
"input-class": { "is-invalid": m.value },
|
|
2116
2116
|
class: { "is-invalid": m.value },
|
|
2117
2117
|
modelValue: t.value,
|
|
2118
|
-
"onUpdate:modelValue":
|
|
2118
|
+
"onUpdate:modelValue": s[1] || (s[1] = (k) => t.value = k),
|
|
2119
2119
|
onInput: o
|
|
2120
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (r(), w(
|
|
2120
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (r(), w(C, V({
|
|
2121
2121
|
key: 1,
|
|
2122
2122
|
id: l.name
|
|
2123
|
-
},
|
|
2123
|
+
}, v.$attrs, {
|
|
2124
2124
|
placeholder: l.placeholder,
|
|
2125
2125
|
class: { "is-invalid": m.value },
|
|
2126
2126
|
modelValue: t.value,
|
|
2127
|
-
"onUpdate:modelValue":
|
|
2127
|
+
"onUpdate:modelValue": s[2] || (s[2] = (k) => t.value = k),
|
|
2128
2128
|
onInput: o,
|
|
2129
2129
|
onBlur: p(u)
|
|
2130
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (r(), w(
|
|
2130
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (r(), w(T, V({
|
|
2131
2131
|
key: 2,
|
|
2132
2132
|
id: l.name
|
|
2133
|
-
},
|
|
2133
|
+
}, v.$attrs, {
|
|
2134
2134
|
placeholder: l.placeholder,
|
|
2135
2135
|
mask: l.mask,
|
|
2136
2136
|
class: { "is-invalid": m.value },
|
|
2137
2137
|
modelValue: t.value,
|
|
2138
|
-
"onUpdate:modelValue":
|
|
2138
|
+
"onUpdate:modelValue": s[3] || (s[3] = (k) => t.value = k),
|
|
2139
2139
|
onComplete: o,
|
|
2140
2140
|
onBlur: p(u)
|
|
2141
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (r(), w(
|
|
2141
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (r(), w(M, V({
|
|
2142
2142
|
key: 3,
|
|
2143
2143
|
id: l.name
|
|
2144
|
-
},
|
|
2144
|
+
}, v.$attrs, {
|
|
2145
2145
|
placeholder: l.placeholder,
|
|
2146
2146
|
class: { "is-invalid": m.value },
|
|
2147
2147
|
modelValue: t.value,
|
|
2148
|
-
"onUpdate:modelValue":
|
|
2148
|
+
"onUpdate:modelValue": s[4] || (s[4] = (k) => t.value = k),
|
|
2149
2149
|
onInput: o,
|
|
2150
2150
|
onBlur: p(u)
|
|
2151
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (r(), w(I,
|
|
2151
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (r(), w(I, V({ key: 4 }, { ...l, ...v.$attrs }, {
|
|
2152
2152
|
modelValue: t.value,
|
|
2153
|
-
"onUpdate:modelValue":
|
|
2153
|
+
"onUpdate:modelValue": s[5] || (s[5] = (k) => t.value = k),
|
|
2154
2154
|
class: { "is-invalid": m.value }
|
|
2155
|
-
}), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (r(), w(
|
|
2155
|
+
}), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (r(), w(O, V({ key: 5 }, { ...l, ...v.$attrs }, {
|
|
2156
2156
|
modelValue: t.value,
|
|
2157
|
-
"onUpdate:modelValue":
|
|
2157
|
+
"onUpdate:modelValue": s[6] || (s[6] = (k) => t.value = k),
|
|
2158
2158
|
class: { "is-invalid": m.value }
|
|
2159
|
-
}), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (r(), w(g,
|
|
2159
|
+
}), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (r(), w(g, V({ key: 6 }, { ...l, ...v.$attrs }, {
|
|
2160
2160
|
modelValue: t.value,
|
|
2161
|
-
"onUpdate:modelValue":
|
|
2161
|
+
"onUpdate:modelValue": s[7] || (s[7] = (k) => t.value = k),
|
|
2162
2162
|
class: { "is-invalid": m.value }
|
|
2163
2163
|
}), null, 16, ["modelValue", "class"])) : S("", !0)
|
|
2164
2164
|
], 2),
|
|
@@ -2166,12 +2166,12 @@ const bt = { key: 0 }, ft = {
|
|
|
2166
2166
|
"data-cy": "error",
|
|
2167
2167
|
class: "invalid-feedback"
|
|
2168
2168
|
}, h(p(d)), 513), [
|
|
2169
|
-
[
|
|
2169
|
+
[q, m.value && l.type !== "multiselect" && l.type !== "datepicker"]
|
|
2170
2170
|
])
|
|
2171
2171
|
]));
|
|
2172
2172
|
};
|
|
2173
2173
|
}
|
|
2174
|
-
}),
|
|
2174
|
+
}), Ma = /* @__PURE__ */ F({
|
|
2175
2175
|
__name: "ForgeChips",
|
|
2176
2176
|
props: {
|
|
2177
2177
|
chipSeverity: { default: "primary" },
|
|
@@ -2200,14 +2200,14 @@ const bt = { key: 0 }, ft = {
|
|
|
2200
2200
|
setup(e) {
|
|
2201
2201
|
const t = e, { errors: l, value: o, errorMessage: a } = K(() => t.name, void 0, {
|
|
2202
2202
|
initialValue: t.modelValue
|
|
2203
|
-
}), n =
|
|
2203
|
+
}), n = x(() => l.value.length > 0), d = x(() => ({
|
|
2204
2204
|
inputtoken: "list-unstyled",
|
|
2205
2205
|
input: "border-0",
|
|
2206
|
-
container: ({ props:
|
|
2206
|
+
container: ({ props: i }) => ({
|
|
2207
2207
|
class: [
|
|
2208
2208
|
"form-control mb-0 d-flex",
|
|
2209
2209
|
{
|
|
2210
|
-
disabled:
|
|
2210
|
+
disabled: i.disabled,
|
|
2211
2211
|
"is-invalid": n.value
|
|
2212
2212
|
}
|
|
2213
2213
|
]
|
|
@@ -2231,21 +2231,21 @@ const bt = { key: 0 }, ft = {
|
|
|
2231
2231
|
]
|
|
2232
2232
|
}
|
|
2233
2233
|
}));
|
|
2234
|
-
return (
|
|
2235
|
-
const m =
|
|
2236
|
-
return r(),
|
|
2237
|
-
|
|
2234
|
+
return (i, u) => {
|
|
2235
|
+
const m = Te;
|
|
2236
|
+
return r(), b(N, null, [
|
|
2237
|
+
y(m, V({ ...t, ...i.$attrs }, {
|
|
2238
2238
|
pt: d.value,
|
|
2239
2239
|
"model-value": p(o),
|
|
2240
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2240
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => se(o) ? o.value = v : null)
|
|
2241
2241
|
}), {
|
|
2242
|
-
removetokenicon:
|
|
2243
|
-
j(
|
|
2242
|
+
removetokenicon: f(({ removeCallback: v }) => [
|
|
2243
|
+
j(y(p(_), {
|
|
2244
2244
|
icon: "bi:x",
|
|
2245
2245
|
class: "cursor-pointer",
|
|
2246
|
-
onClick:
|
|
2246
|
+
onClick: v
|
|
2247
2247
|
}, null, 8, ["onClick"]), [
|
|
2248
|
-
[
|
|
2248
|
+
[q, !t.disabled]
|
|
2249
2249
|
])
|
|
2250
2250
|
]),
|
|
2251
2251
|
_: 1
|
|
@@ -2254,7 +2254,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2254
2254
|
"data-cy": "error",
|
|
2255
2255
|
class: "text-invalid"
|
|
2256
2256
|
}, h(p(a)), 513), [
|
|
2257
|
-
[
|
|
2257
|
+
[q, n.value]
|
|
2258
2258
|
])
|
|
2259
2259
|
], 64);
|
|
2260
2260
|
};
|
|
@@ -2274,7 +2274,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2274
2274
|
unstyled: { type: Boolean }
|
|
2275
2275
|
},
|
|
2276
2276
|
setup(e) {
|
|
2277
|
-
const t = e, l =
|
|
2277
|
+
const t = e, l = x(() => t.striped ? "progress-bar-striped" : null), o = x(() => t.animate ? "progress-bar-animated" : null), a = x(() => {
|
|
2278
2278
|
switch (t.severity) {
|
|
2279
2279
|
case "brand":
|
|
2280
2280
|
return "bg-brand";
|
|
@@ -2293,7 +2293,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2293
2293
|
default:
|
|
2294
2294
|
return "bg-primary";
|
|
2295
2295
|
}
|
|
2296
|
-
}), n =
|
|
2296
|
+
}), n = x(() => ({
|
|
2297
2297
|
root: {
|
|
2298
2298
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2299
2299
|
},
|
|
@@ -2301,17 +2301,17 @@ const bt = { key: 0 }, ft = {
|
|
|
2301
2301
|
class: [a.value, l.value, o.value]
|
|
2302
2302
|
}
|
|
2303
2303
|
}));
|
|
2304
|
-
return (d,
|
|
2305
|
-
const u =
|
|
2306
|
-
return r(), w(u,
|
|
2307
|
-
default:
|
|
2304
|
+
return (d, i) => {
|
|
2305
|
+
const u = Pe;
|
|
2306
|
+
return r(), w(u, V({ ...d.$attrs, ...t }, { pt: n.value }), {
|
|
2307
|
+
default: f(() => [
|
|
2308
2308
|
$(d.$slots, "default")
|
|
2309
2309
|
]),
|
|
2310
2310
|
_: 3
|
|
2311
2311
|
}, 16, ["pt"]);
|
|
2312
2312
|
};
|
|
2313
2313
|
}
|
|
2314
|
-
}), Wt = { class: "value text-white w-100 text-center" },
|
|
2314
|
+
}), Wt = { class: "value text-white w-100 text-center" }, Ia = /* @__PURE__ */ F({
|
|
2315
2315
|
__name: "ForgeStatWidget",
|
|
2316
2316
|
props: {
|
|
2317
2317
|
size: { default: "md" },
|
|
@@ -2319,7 +2319,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2319
2319
|
},
|
|
2320
2320
|
setup(e) {
|
|
2321
2321
|
const t = e;
|
|
2322
|
-
return (l, o) => (r(),
|
|
2322
|
+
return (l, o) => (r(), b("div", V(l.$attrs, {
|
|
2323
2323
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2324
2324
|
}), [
|
|
2325
2325
|
c("span", Wt, [
|
|
@@ -2330,7 +2330,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2330
2330
|
}), Zt = {
|
|
2331
2331
|
class: "d-flex flex-column align-items-center",
|
|
2332
2332
|
"data-cy": "stepper"
|
|
2333
|
-
}, Jt = { class: "d-flex align-items-center justify-content-center w-100" },
|
|
2333
|
+
}, Jt = { class: "d-flex align-items-center justify-content-center w-100" }, za = /* @__PURE__ */ F({
|
|
2334
2334
|
__name: "ForgeStepper",
|
|
2335
2335
|
props: {
|
|
2336
2336
|
currentStep: { default: 0 },
|
|
@@ -2346,7 +2346,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2346
2346
|
},
|
|
2347
2347
|
emits: ["update:currentStep"],
|
|
2348
2348
|
setup(e, { emit: t }) {
|
|
2349
|
-
const l = t, o = e, a =
|
|
2349
|
+
const l = t, o = e, a = P(o.currentStep), n = () => {
|
|
2350
2350
|
do
|
|
2351
2351
|
a.value--;
|
|
2352
2352
|
while (o.model[a.value].disabled);
|
|
@@ -2357,10 +2357,10 @@ const bt = { key: 0 }, ft = {
|
|
|
2357
2357
|
a.value++;
|
|
2358
2358
|
while (o.model[a.value].disabled);
|
|
2359
2359
|
l("update:currentStep", a.value);
|
|
2360
|
-
},
|
|
2361
|
-
const m = o.model.findIndex((
|
|
2360
|
+
}, i = x(() => {
|
|
2361
|
+
const m = o.model.findIndex((v) => !v.disabled);
|
|
2362
2362
|
return !(m < a.value && m > -1);
|
|
2363
|
-
}), u =
|
|
2363
|
+
}), u = x(() => ({
|
|
2364
2364
|
menuitem: (m) => ({
|
|
2365
2365
|
class: [{
|
|
2366
2366
|
"cursor-pointer": !m.context.disabled
|
|
@@ -2396,50 +2396,50 @@ const bt = { key: 0 }, ft = {
|
|
|
2396
2396
|
]
|
|
2397
2397
|
})
|
|
2398
2398
|
}));
|
|
2399
|
-
return (m,
|
|
2400
|
-
const
|
|
2401
|
-
return r(),
|
|
2399
|
+
return (m, v) => {
|
|
2400
|
+
const s = E, C = Ie, T = Me;
|
|
2401
|
+
return r(), b("div", Zt, [
|
|
2402
2402
|
c("div", Jt, [
|
|
2403
|
-
|
|
2403
|
+
y(s, {
|
|
2404
2404
|
severity: o.severity,
|
|
2405
|
-
disabled:
|
|
2405
|
+
disabled: i.value,
|
|
2406
2406
|
onClick: n,
|
|
2407
2407
|
class: "rounded-circle py-2 me-4",
|
|
2408
2408
|
"data-cy": "back-button"
|
|
2409
2409
|
}, {
|
|
2410
|
-
default:
|
|
2411
|
-
|
|
2410
|
+
default: f(() => [
|
|
2411
|
+
y(p(_), {
|
|
2412
2412
|
icon: "bi:chevron-left",
|
|
2413
2413
|
class: "mb-1"
|
|
2414
2414
|
})
|
|
2415
2415
|
]),
|
|
2416
2416
|
_: 1
|
|
2417
2417
|
}, 8, ["severity", "disabled"]),
|
|
2418
|
-
|
|
2418
|
+
y(C, {
|
|
2419
2419
|
"active-step": a.value,
|
|
2420
|
-
"onUpdate:activeStep":
|
|
2420
|
+
"onUpdate:activeStep": v[0] || (v[0] = (M) => a.value = M),
|
|
2421
2421
|
model: o.model,
|
|
2422
2422
|
pt: u.value,
|
|
2423
2423
|
readonly: !1
|
|
2424
2424
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2425
2425
|
]),
|
|
2426
|
-
|
|
2427
|
-
(r(!0),
|
|
2426
|
+
y(T, { class: "m-4" }),
|
|
2427
|
+
(r(!0), b(N, null, H(o.model, (M, I) => (r(), b("div", {
|
|
2428
2428
|
key: I,
|
|
2429
2429
|
class: "w-100"
|
|
2430
2430
|
}, [
|
|
2431
|
-
I === a.value ? $(m.$slots,
|
|
2431
|
+
I === a.value ? $(m.$slots, M.key ?? M.label, {
|
|
2432
2432
|
key: 0,
|
|
2433
2433
|
nextStep: d,
|
|
2434
2434
|
previousStep: n
|
|
2435
2435
|
}, () => [
|
|
2436
|
-
|
|
2436
|
+
y(oe, {
|
|
2437
2437
|
severity: "info",
|
|
2438
2438
|
"data-cy": "alert"
|
|
2439
2439
|
}, {
|
|
2440
|
-
default:
|
|
2441
|
-
|
|
2442
|
-
|
|
2440
|
+
default: f(() => [
|
|
2441
|
+
z(" Please add Slot Content for the key " + h(M.key ?? M.label) + " ", 1),
|
|
2442
|
+
y(s, {
|
|
2443
2443
|
severity: "primary",
|
|
2444
2444
|
label: "Next",
|
|
2445
2445
|
onClick: d,
|
|
@@ -2453,7 +2453,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2453
2453
|
]);
|
|
2454
2454
|
};
|
|
2455
2455
|
}
|
|
2456
|
-
}), Xt = { class: "p-4 text-wrap w-100" }, Qt = { class: "p-4 text-wrap w-100" },
|
|
2456
|
+
}), Xt = { class: "p-4 text-wrap w-100" }, Qt = { class: "p-4 text-wrap w-100" }, Oa = /* @__PURE__ */ F({
|
|
2457
2457
|
__name: "ForgeTile",
|
|
2458
2458
|
props: {
|
|
2459
2459
|
severity: { default: "primary" },
|
|
@@ -2462,9 +2462,9 @@ const bt = { key: 0 }, ft = {
|
|
|
2462
2462
|
selected: { type: Boolean, default: !1 }
|
|
2463
2463
|
},
|
|
2464
2464
|
setup(e) {
|
|
2465
|
-
const t = e, l =
|
|
2465
|
+
const t = e, l = x(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), o = x(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
2466
2466
|
return (a, n) => {
|
|
2467
|
-
const d =
|
|
2467
|
+
const d = E;
|
|
2468
2468
|
return t.clickable ? (r(), w(d, {
|
|
2469
2469
|
key: 0,
|
|
2470
2470
|
class: B(["d-flex w-100 p-0 text-body", l.value]),
|
|
@@ -2472,22 +2472,22 @@ const bt = { key: 0 }, ft = {
|
|
|
2472
2472
|
unstyled: "",
|
|
2473
2473
|
"data-cy": "button-tile"
|
|
2474
2474
|
}, {
|
|
2475
|
-
default:
|
|
2475
|
+
default: f(() => [
|
|
2476
2476
|
c("div", Xt, [
|
|
2477
2477
|
$(a.$slots, "default", {}, () => [
|
|
2478
|
-
n[0] || (n[0] =
|
|
2478
|
+
n[0] || (n[0] = z("Tile Content"))
|
|
2479
2479
|
])
|
|
2480
2480
|
])
|
|
2481
2481
|
]),
|
|
2482
2482
|
_: 3
|
|
2483
|
-
}, 8, ["severity", "class"])) : (r(),
|
|
2483
|
+
}, 8, ["severity", "class"])) : (r(), b("div", {
|
|
2484
2484
|
key: 1,
|
|
2485
2485
|
class: B(["d-flex w-100", o.value]),
|
|
2486
2486
|
"data-cy": "tile"
|
|
2487
2487
|
}, [
|
|
2488
2488
|
c("div", Qt, [
|
|
2489
2489
|
$(a.$slots, "default", {}, () => [
|
|
2490
|
-
n[1] || (n[1] =
|
|
2490
|
+
n[1] || (n[1] = z("Tile Content"))
|
|
2491
2491
|
])
|
|
2492
2492
|
])
|
|
2493
2493
|
], 2));
|
|
@@ -2514,22 +2514,22 @@ const el = {
|
|
|
2514
2514
|
setup(e, { emit: t }) {
|
|
2515
2515
|
const l = t, o = e, a = (d) => {
|
|
2516
2516
|
l("update:perPage", d.value);
|
|
2517
|
-
}, n =
|
|
2517
|
+
}, n = x(() => {
|
|
2518
2518
|
const d = Math.ceil(o.total / o.perPage);
|
|
2519
2519
|
return `${d} ${X(d, "page")}`;
|
|
2520
2520
|
});
|
|
2521
|
-
return (d,
|
|
2522
|
-
|
|
2521
|
+
return (d, i) => (r(), b("div", el, [
|
|
2522
|
+
i[2] || (i[2] = z(" Number of results per page ")),
|
|
2523
2523
|
c("div", tl, [
|
|
2524
|
-
|
|
2524
|
+
y(p(ae), {
|
|
2525
2525
|
options: o.pageSizes,
|
|
2526
2526
|
"model-value": o.perPage,
|
|
2527
2527
|
class: "page-size",
|
|
2528
|
-
onChange:
|
|
2528
|
+
onChange: i[0] || (i[0] = (u) => a(u))
|
|
2529
2529
|
}, null, 8, ["options", "model-value"])
|
|
2530
2530
|
]),
|
|
2531
|
-
o.total ? (r(),
|
|
2532
|
-
|
|
2531
|
+
o.total ? (r(), b("div", ll, [
|
|
2532
|
+
i[1] || (i[1] = c("span", { class: "mx-2" }, "|", -1)),
|
|
2533
2533
|
c("span", al, h(o.total) + " " + h(p(X)(o.total, "result")) + " across " + h(n.value), 1)
|
|
2534
2534
|
])) : S("", !0)
|
|
2535
2535
|
]));
|
|
@@ -2537,7 +2537,7 @@ const el = {
|
|
|
2537
2537
|
}), nl = { class: "position-relative" }, sl = { "data-cy": "above-table-slot" }, il = { class: "d-flex w-100" }, rl = {
|
|
2538
2538
|
class: "mx-auto",
|
|
2539
2539
|
"data-cy": "empty-message"
|
|
2540
|
-
}, dl = { class: "d-flex" }, ul = { class: "d-flex align-items-end mb-2" }, cl = { key: 0 }, ml = { class: "ms-auto" },
|
|
2540
|
+
}, dl = { class: "d-flex" }, ul = { class: "d-flex align-items-end mb-2" }, cl = { key: 0 }, ml = { class: "ms-auto" }, Da = /* @__PURE__ */ F({
|
|
2541
2541
|
__name: "ForgeTable",
|
|
2542
2542
|
props: {
|
|
2543
2543
|
value: {},
|
|
@@ -2619,17 +2619,17 @@ const el = {
|
|
|
2619
2619
|
},
|
|
2620
2620
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
2621
2621
|
setup(e, { emit: t }) {
|
|
2622
|
-
const l = t, o = e, a =
|
|
2622
|
+
const l = t, o = e, a = P(), n = P([10, 20, 50, 100]), d = P(20), i = P({
|
|
2623
2623
|
filters: o.filters,
|
|
2624
2624
|
perPage: d.value,
|
|
2625
2625
|
page: 0,
|
|
2626
2626
|
sortDirection: "None",
|
|
2627
2627
|
sortField: "",
|
|
2628
2628
|
total: o.totalRecords ?? o.value.length
|
|
2629
|
-
}), u =
|
|
2629
|
+
}), u = x(() => o.totalRecords ?? o.value.length), m = x(() => {
|
|
2630
2630
|
const g = Math.ceil(u.value / d.value);
|
|
2631
2631
|
return `${g} ${X(g, "page")}`;
|
|
2632
|
-
}),
|
|
2632
|
+
}), v = x(() => ({
|
|
2633
2633
|
thead: () => ({
|
|
2634
2634
|
class: [
|
|
2635
2635
|
{
|
|
@@ -2651,131 +2651,132 @@ const el = {
|
|
|
2651
2651
|
}
|
|
2652
2652
|
]
|
|
2653
2653
|
})
|
|
2654
|
-
})),
|
|
2654
|
+
})), s = () => {
|
|
2655
2655
|
if (o.clearAll)
|
|
2656
2656
|
o.clearAll();
|
|
2657
2657
|
else
|
|
2658
2658
|
for (const g in o.filters)
|
|
2659
2659
|
typeof o.filters[g] == "string" ? o.filters[g] = "" : o.filters[g].value = null;
|
|
2660
|
-
|
|
2661
|
-
},
|
|
2660
|
+
M(o.filters);
|
|
2661
|
+
}, C = () => {
|
|
2662
2662
|
a.value.exportCSV();
|
|
2663
|
-
},
|
|
2664
|
-
var
|
|
2665
|
-
|
|
2666
|
-
},
|
|
2667
|
-
|
|
2663
|
+
}, T = (g) => {
|
|
2664
|
+
var k;
|
|
2665
|
+
i.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", i.value.sortField = ((k = g.sortField) == null ? void 0 : k.toString()) ?? "", l("update:tableContext", i.value), l("sort", g);
|
|
2666
|
+
}, M = (g) => {
|
|
2667
|
+
i.value.filters = g, l("update:tableContext", i.value), l("update:filters", g);
|
|
2668
2668
|
}, I = (g) => {
|
|
2669
|
-
|
|
2670
|
-
},
|
|
2671
|
-
|
|
2669
|
+
i.value.page = g.page, l("update:tableContext", i.value), l("page", g);
|
|
2670
|
+
}, O = () => {
|
|
2671
|
+
i.value.perPage = d.value, l("update:tableContext", i.value);
|
|
2672
2672
|
};
|
|
2673
2673
|
return de(() => o.filters, (g) => {
|
|
2674
|
-
|
|
2675
|
-
}, { deep: !0 }),
|
|
2674
|
+
i.value.filters = g, l("update:tableContext", i.value);
|
|
2675
|
+
}, { deep: !0 }), le(() => l("update:tableContext", i.value)), (g, k) => (r(), b("div", nl, [
|
|
2676
2676
|
c("span", sl, [
|
|
2677
2677
|
$(g.$slots, "above-table")
|
|
2678
2678
|
]),
|
|
2679
|
-
|
|
2679
|
+
y(p(ze), V({
|
|
2680
2680
|
class: ["w-100", `${o.severity ? `forge-table-${o.severity}` : ""}`]
|
|
2681
2681
|
}, { ...o, ...g.$attrs }, {
|
|
2682
|
-
pt:
|
|
2682
|
+
pt: v.value,
|
|
2683
2683
|
rows: d.value,
|
|
2684
2684
|
"total-records": u.value,
|
|
2685
2685
|
"filter-display": o.filters ? "row" : void 0,
|
|
2686
2686
|
ref_key: "forgeTable",
|
|
2687
2687
|
ref: a,
|
|
2688
2688
|
"data-cy": "table",
|
|
2689
|
-
"onUpdate:filters":
|
|
2690
|
-
onSort:
|
|
2689
|
+
"onUpdate:filters": M,
|
|
2690
|
+
onSort: T,
|
|
2691
2691
|
onPage: I
|
|
2692
2692
|
}), te({
|
|
2693
|
-
empty:
|
|
2693
|
+
empty: f(() => [
|
|
2694
2694
|
c("div", il, [
|
|
2695
2695
|
c("h5", rl, h(g.emptyMessage ?? "No items Found."), 1)
|
|
2696
2696
|
])
|
|
2697
2697
|
]),
|
|
2698
|
-
header:
|
|
2698
|
+
header: f(() => [
|
|
2699
2699
|
c("div", {
|
|
2700
2700
|
class: B(o.loading ? "opacity-50" : "")
|
|
2701
2701
|
}, [
|
|
2702
2702
|
c("div", dl, [
|
|
2703
2703
|
c("div", ul, [
|
|
2704
|
-
g.paginator && !g.legacyPaginationFooter ? (r(),
|
|
2705
|
-
|
|
2704
|
+
g.paginator && !g.legacyPaginationFooter ? (r(), b("span", cl, [
|
|
2705
|
+
y(ol, {
|
|
2706
2706
|
total: u.value,
|
|
2707
2707
|
"page-sizes": n.value,
|
|
2708
2708
|
"per-page": d.value,
|
|
2709
2709
|
"onUpdate:perPage": [
|
|
2710
|
-
|
|
2711
|
-
|
|
2710
|
+
k[0] || (k[0] = (G) => d.value = G),
|
|
2711
|
+
O
|
|
2712
2712
|
]
|
|
2713
2713
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2714
2714
|
])) : S("", !0)
|
|
2715
2715
|
]),
|
|
2716
2716
|
c("div", ml, [
|
|
2717
|
-
g.showClearButton ? (r(), w(p(
|
|
2717
|
+
g.showClearButton ? (r(), w(p(E), {
|
|
2718
2718
|
key: 0,
|
|
2719
2719
|
outlined: "",
|
|
2720
2720
|
class: B(g.showExporterButton ? "me-2" : ""),
|
|
2721
|
-
onClick:
|
|
2721
|
+
onClick: s,
|
|
2722
2722
|
"data-cy": "clear-all"
|
|
2723
2723
|
}, {
|
|
2724
|
-
default:
|
|
2725
|
-
|
|
2724
|
+
default: f(() => [
|
|
2725
|
+
y(p(_), {
|
|
2726
2726
|
icon: "bi:funnel-fill",
|
|
2727
2727
|
width: "24",
|
|
2728
2728
|
height: "24"
|
|
2729
2729
|
}),
|
|
2730
|
-
|
|
2730
|
+
k[2] || (k[2] = z(" Clear "))
|
|
2731
2731
|
]),
|
|
2732
2732
|
_: 1
|
|
2733
2733
|
}, 8, ["class"])) : S("", !0),
|
|
2734
|
-
g.showExporterButton ? (r(), w(p(
|
|
2734
|
+
g.showExporterButton ? (r(), w(p(E), {
|
|
2735
2735
|
key: 1,
|
|
2736
2736
|
outlined: "",
|
|
2737
|
-
onClick:
|
|
2737
|
+
onClick: C,
|
|
2738
2738
|
"data-cy": "exporter"
|
|
2739
2739
|
}, {
|
|
2740
|
-
default:
|
|
2741
|
-
|
|
2740
|
+
default: f(() => [
|
|
2741
|
+
y(p(_), {
|
|
2742
2742
|
icon: "typcn:export",
|
|
2743
2743
|
width: "24",
|
|
2744
2744
|
height: "24"
|
|
2745
2745
|
}),
|
|
2746
|
-
|
|
2746
|
+
k[3] || (k[3] = z(" Export "))
|
|
2747
2747
|
]),
|
|
2748
2748
|
_: 1
|
|
2749
|
-
})) : S("", !0)
|
|
2749
|
+
})) : S("", !0),
|
|
2750
|
+
$(g.$slots, "column-customiser")
|
|
2750
2751
|
])
|
|
2751
2752
|
])
|
|
2752
2753
|
], 2)
|
|
2753
2754
|
]),
|
|
2754
|
-
default:
|
|
2755
|
+
default: f(() => [
|
|
2755
2756
|
$(g.$slots, "default")
|
|
2756
2757
|
]),
|
|
2757
2758
|
_: 2
|
|
2758
2759
|
}, [
|
|
2759
|
-
|
|
2760
|
+
H(g.$slots, (G, Z) => ({
|
|
2760
2761
|
name: Z,
|
|
2761
|
-
fn:
|
|
2762
|
-
$(g.$slots, Z, Q(ee(
|
|
2762
|
+
fn: f((ne) => [
|
|
2763
|
+
$(g.$slots, Z, Q(ee(ne || {})))
|
|
2763
2764
|
])
|
|
2764
2765
|
})),
|
|
2765
2766
|
g.legacyPaginationFooter ? {
|
|
2766
2767
|
name: "paginatorstart",
|
|
2767
|
-
fn:
|
|
2768
|
+
fn: f(() => [
|
|
2768
2769
|
c("span", {
|
|
2769
2770
|
class: B(["d-flex", o.loading ? "opacity-50" : ""]),
|
|
2770
2771
|
"data-cy": "legacy-page-size"
|
|
2771
2772
|
}, [
|
|
2772
|
-
|
|
2773
|
-
|
|
2773
|
+
k[4] || (k[4] = c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
2774
|
+
y(p(ae), {
|
|
2774
2775
|
options: n.value,
|
|
2775
2776
|
modelValue: d.value,
|
|
2776
|
-
"onUpdate:modelValue":
|
|
2777
|
+
"onUpdate:modelValue": k[1] || (k[1] = (G) => d.value = G),
|
|
2777
2778
|
class: "ms-2",
|
|
2778
|
-
onClick:
|
|
2779
|
+
onClick: O
|
|
2779
2780
|
}, null, 8, ["options", "modelValue"])
|
|
2780
2781
|
], 2)
|
|
2781
2782
|
]),
|
|
@@ -2783,7 +2784,7 @@ const el = {
|
|
|
2783
2784
|
} : void 0,
|
|
2784
2785
|
g.legacyPaginationFooter ? {
|
|
2785
2786
|
name: "paginatorend",
|
|
2786
|
-
fn:
|
|
2787
|
+
fn: f(() => [
|
|
2787
2788
|
c("span", {
|
|
2788
2789
|
"data-cy": "legacy-total",
|
|
2789
2790
|
class: B(o.loading ? "opacity-50" : "")
|
|
@@ -2794,9 +2795,9 @@ const el = {
|
|
|
2794
2795
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
2795
2796
|
]));
|
|
2796
2797
|
}
|
|
2797
|
-
}), pl = { class: "d-flex position-relative" },
|
|
2798
|
+
}), pl = { class: "d-flex position-relative" }, vl = { class: "d-flex w-100" }, yl = { class: "d-flex w-100" }, Ua = /* @__PURE__ */ F({
|
|
2798
2799
|
__name: "ForgeFilterHeader",
|
|
2799
|
-
props: /* @__PURE__ */
|
|
2800
|
+
props: /* @__PURE__ */ R({
|
|
2800
2801
|
dataType: {},
|
|
2801
2802
|
dropdownOptions: {},
|
|
2802
2803
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -2809,13 +2810,13 @@ const el = {
|
|
|
2809
2810
|
}),
|
|
2810
2811
|
emits: ["update:modelValue"],
|
|
2811
2812
|
setup(e) {
|
|
2812
|
-
const t =
|
|
2813
|
+
const t = U(e, "modelValue"), l = (a, n) => {
|
|
2813
2814
|
if (!a || Array.isArray(a) && a.length === 0)
|
|
2814
2815
|
return n;
|
|
2815
|
-
const d = (
|
|
2816
|
+
const d = (i) => {
|
|
2816
2817
|
var m;
|
|
2817
2818
|
const u = (m = e.dropdownOptions) == null ? void 0 : m.find(
|
|
2818
|
-
(
|
|
2819
|
+
(v) => e.optionValue ? v[e.optionValue] === i : Object.keys(v).every((s) => i.hasOwnProperty(s) && v[s] === i[s])
|
|
2819
2820
|
);
|
|
2820
2821
|
return e.optionLabel ? u[e.optionLabel] : u;
|
|
2821
2822
|
};
|
|
@@ -2824,20 +2825,20 @@ const el = {
|
|
|
2824
2825
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
2825
2826
|
};
|
|
2826
2827
|
return (a, n) => {
|
|
2827
|
-
const d =
|
|
2828
|
-
return r(),
|
|
2829
|
-
a.dataType === "numeric" ? (r(), w(d,
|
|
2828
|
+
const d = ce, i = E;
|
|
2829
|
+
return r(), b("div", pl, [
|
|
2830
|
+
a.dataType === "numeric" ? (r(), w(d, V({
|
|
2830
2831
|
key: 0,
|
|
2831
2832
|
modelValue: t.value,
|
|
2832
2833
|
"onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
|
|
2833
|
-
}, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (r(), w(
|
|
2834
|
+
}, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (r(), w(be, V({
|
|
2834
2835
|
key: 1,
|
|
2835
2836
|
modelValue: t.value,
|
|
2836
2837
|
"onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
|
|
2837
2838
|
}, a.$attrs, {
|
|
2838
2839
|
"show-icon": !1,
|
|
2839
2840
|
"show-on-focus": !0
|
|
2840
|
-
}), null, 16, ["modelValue"])) : a.dataType === "select" ? (r(), w(p(
|
|
2841
|
+
}), null, 16, ["modelValue"])) : a.dataType === "select" ? (r(), w(p(ae), V({
|
|
2841
2842
|
key: 2,
|
|
2842
2843
|
modelValue: t.value,
|
|
2843
2844
|
"onUpdate:modelValue": n[2] || (n[2] = (u) => t.value = u)
|
|
@@ -2846,19 +2847,19 @@ const el = {
|
|
|
2846
2847
|
"option-value": a.optionValue,
|
|
2847
2848
|
"option-label": a.optionLabel
|
|
2848
2849
|
}), {
|
|
2849
|
-
value:
|
|
2850
|
-
c("div",
|
|
2850
|
+
value: f(({ value: u, placeholder: m }) => [
|
|
2851
|
+
c("div", vl, [
|
|
2851
2852
|
c("span", {
|
|
2852
2853
|
class: B({ "filter-placeholder": u === null })
|
|
2853
2854
|
}, h(l(u, m)), 3),
|
|
2854
|
-
a.showClearButton && t.value !== null ? (r(), w(
|
|
2855
|
+
a.showClearButton && t.value !== null ? (r(), w(i, {
|
|
2855
2856
|
key: 0,
|
|
2856
|
-
onClick:
|
|
2857
|
+
onClick: Y(o, ["prevent"]),
|
|
2857
2858
|
size: "small",
|
|
2858
2859
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2859
2860
|
}, {
|
|
2860
|
-
default:
|
|
2861
|
-
|
|
2861
|
+
default: f(() => [
|
|
2862
|
+
y(p(_), {
|
|
2862
2863
|
icon: "bi:x",
|
|
2863
2864
|
width: "1rem",
|
|
2864
2865
|
height: "1rem",
|
|
@@ -2870,7 +2871,7 @@ const el = {
|
|
|
2870
2871
|
])
|
|
2871
2872
|
]),
|
|
2872
2873
|
_: 1
|
|
2873
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (r(), w(p(
|
|
2874
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (r(), w(p(Oe), V({
|
|
2874
2875
|
key: 3,
|
|
2875
2876
|
modelValue: t.value,
|
|
2876
2877
|
"onUpdate:modelValue": n[3] || (n[3] = (u) => t.value = u)
|
|
@@ -2881,19 +2882,19 @@ const el = {
|
|
|
2881
2882
|
"option-value": a.optionValue,
|
|
2882
2883
|
filter: ""
|
|
2883
2884
|
}), {
|
|
2884
|
-
value:
|
|
2885
|
-
c("div",
|
|
2885
|
+
value: f(({ value: u, placeholder: m }) => [
|
|
2886
|
+
c("div", yl, [
|
|
2886
2887
|
c("span", {
|
|
2887
2888
|
class: B({ "filter-placeholder": (u == null ? void 0 : u.length) === 0 || u === null })
|
|
2888
2889
|
}, h(l(u, m)), 3),
|
|
2889
|
-
a.showClearButton && (u == null ? void 0 : u.length) > 0 ? (r(), w(
|
|
2890
|
+
a.showClearButton && (u == null ? void 0 : u.length) > 0 ? (r(), w(i, {
|
|
2890
2891
|
key: 0,
|
|
2891
|
-
onClick:
|
|
2892
|
+
onClick: Y(o, ["prevent"]),
|
|
2892
2893
|
size: "small",
|
|
2893
2894
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2894
2895
|
}, {
|
|
2895
|
-
default:
|
|
2896
|
-
|
|
2896
|
+
default: f(() => [
|
|
2897
|
+
y(p(_), {
|
|
2897
2898
|
icon: "bi:x",
|
|
2898
2899
|
width: "1rem",
|
|
2899
2900
|
height: "1rem",
|
|
@@ -2905,19 +2906,19 @@ const el = {
|
|
|
2905
2906
|
])
|
|
2906
2907
|
]),
|
|
2907
2908
|
_: 1
|
|
2908
|
-
}, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), w(p(ie),
|
|
2909
|
+
}, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), w(p(ie), V({
|
|
2909
2910
|
key: 4,
|
|
2910
2911
|
modelValue: t.value,
|
|
2911
2912
|
"onUpdate:modelValue": n[4] || (n[4] = (u) => t.value = u)
|
|
2912
2913
|
}, a.$attrs), null, 16, ["modelValue"])),
|
|
2913
|
-
a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (r(), w(
|
|
2914
|
+
a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (r(), w(i, {
|
|
2914
2915
|
key: 5,
|
|
2915
|
-
onClick:
|
|
2916
|
+
onClick: Y(o, ["prevent"]),
|
|
2916
2917
|
size: "small",
|
|
2917
2918
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
2918
2919
|
}, {
|
|
2919
|
-
default:
|
|
2920
|
-
|
|
2920
|
+
default: f(() => [
|
|
2921
|
+
y(p(_), {
|
|
2921
2922
|
icon: "bi:x",
|
|
2922
2923
|
width: "1rem",
|
|
2923
2924
|
height: "1rem",
|
|
@@ -2930,14 +2931,14 @@ const el = {
|
|
|
2930
2931
|
};
|
|
2931
2932
|
}
|
|
2932
2933
|
});
|
|
2933
|
-
function
|
|
2934
|
+
function fe(e, t, l, o) {
|
|
2934
2935
|
const a = t.flatMap((n) => n.file);
|
|
2935
2936
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2936
2937
|
const d = a.findIndex((u) => u.name === n.name);
|
|
2937
|
-
let
|
|
2938
|
-
d === -1 ? ((!l.includes(n.type) || !(n.size <= o)) && (
|
|
2938
|
+
let i = "Not Uploaded";
|
|
2939
|
+
d === -1 ? ((!l.includes(n.type) || !(n.size <= o)) && (i = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2939
2940
|
file: n,
|
|
2940
|
-
status:
|
|
2941
|
+
status: i,
|
|
2941
2942
|
blobFileName: null
|
|
2942
2943
|
})) : t[d].status = "Duplicate";
|
|
2943
2944
|
}), t;
|
|
@@ -2945,7 +2946,7 @@ function ve(e, t, l, o) {
|
|
|
2945
2946
|
async function bl(e, t) {
|
|
2946
2947
|
if (e === "Uploaded" && t !== null)
|
|
2947
2948
|
try {
|
|
2948
|
-
await new
|
|
2949
|
+
await new me(t).delete();
|
|
2949
2950
|
} catch (l) {
|
|
2950
2951
|
if (l !== "BlobNotFound") {
|
|
2951
2952
|
e = "DeleteFileFailed";
|
|
@@ -2971,12 +2972,12 @@ function fl(e) {
|
|
|
2971
2972
|
function gl(e) {
|
|
2972
2973
|
return URL.createObjectURL(e);
|
|
2973
2974
|
}
|
|
2974
|
-
const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disabled", "multiple"],
|
|
2975
|
+
const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disabled", "multiple"], kl = {
|
|
2975
2976
|
class: "text-break accepted-file-types-container",
|
|
2976
2977
|
id: "accepted-file-types-overlay"
|
|
2977
|
-
},
|
|
2978
|
+
}, xl = /* @__PURE__ */ F({
|
|
2978
2979
|
__name: "UploadButton",
|
|
2979
|
-
props: /* @__PURE__ */
|
|
2980
|
+
props: /* @__PURE__ */ R({
|
|
2980
2981
|
acceptedFileTypes: {},
|
|
2981
2982
|
maxFileInput: {},
|
|
2982
2983
|
showDragDropArea: { type: Boolean }
|
|
@@ -2986,12 +2987,12 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
2986
2987
|
}),
|
|
2987
2988
|
emits: ["update:modelValue"],
|
|
2988
2989
|
setup(e) {
|
|
2989
|
-
const t =
|
|
2990
|
-
t.value =
|
|
2990
|
+
const t = U(e, "modelValue"), l = P(), o = (d) => l.value.toggle(d), a = x(() => e.maxFileInput <= t.value.length), n = (d) => {
|
|
2991
|
+
t.value = fe(d, t.value, e.acceptedFileTypes.map((i) => i.fileType), e.maxFileInput);
|
|
2991
2992
|
};
|
|
2992
|
-
return (d,
|
|
2993
|
-
const u =
|
|
2994
|
-
return r(),
|
|
2993
|
+
return (d, i) => {
|
|
2994
|
+
const u = E;
|
|
2995
|
+
return r(), b("div", hl, [
|
|
2995
2996
|
$(d.$slots, "message"),
|
|
2996
2997
|
c("div", null, [
|
|
2997
2998
|
c("input", {
|
|
@@ -3001,7 +3002,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3001
3002
|
accept: d.acceptedFileTypes.join(", "),
|
|
3002
3003
|
disabled: a.value,
|
|
3003
3004
|
multiple: d.maxFileInput > 1,
|
|
3004
|
-
onInput:
|
|
3005
|
+
onInput: i[0] || (i[0] = (m) => n([...m.target.files]))
|
|
3005
3006
|
}, null, 40, wl),
|
|
3006
3007
|
c("label", {
|
|
3007
3008
|
class: B([{ disabled: a.value }, "btn btn-primary"]),
|
|
@@ -3009,13 +3010,13 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3009
3010
|
for: "file-input"
|
|
3010
3011
|
}, [
|
|
3011
3012
|
$(d.$slots, "button-content", {}, () => [
|
|
3012
|
-
|
|
3013
|
+
y(p(_), {
|
|
3013
3014
|
icon: "bi:upload",
|
|
3014
3015
|
class: "me-2",
|
|
3015
3016
|
height: "20px",
|
|
3016
3017
|
width: "20px"
|
|
3017
3018
|
}),
|
|
3018
|
-
|
|
3019
|
+
i[1] || (i[1] = z(" Browse your computer "))
|
|
3019
3020
|
])
|
|
3020
3021
|
], 2)
|
|
3021
3022
|
]),
|
|
@@ -3026,17 +3027,17 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3026
3027
|
id: "accepted-file-types",
|
|
3027
3028
|
onClick: o
|
|
3028
3029
|
}, {
|
|
3029
|
-
default:
|
|
3030
|
-
|
|
3030
|
+
default: f(() => i[2] || (i[2] = [
|
|
3031
|
+
z("Accepted File Types")
|
|
3031
3032
|
])),
|
|
3032
3033
|
_: 1
|
|
3033
3034
|
})) : S("", !0),
|
|
3034
|
-
|
|
3035
|
+
y(p(pe), {
|
|
3035
3036
|
ref_key: "acceptedFilesOverlay",
|
|
3036
3037
|
ref: l
|
|
3037
3038
|
}, {
|
|
3038
|
-
default:
|
|
3039
|
-
c("div",
|
|
3039
|
+
default: f(() => [
|
|
3040
|
+
c("div", kl, h(d.acceptedFileTypes.map((m) => m.label ?? m.fileType.split("/").pop()).join(", ")), 1)
|
|
3040
3041
|
]),
|
|
3041
3042
|
_: 1
|
|
3042
3043
|
}, 512)
|
|
@@ -3052,7 +3053,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3052
3053
|
class: "d-flex flex-column"
|
|
3053
3054
|
}, Fl = /* @__PURE__ */ F({
|
|
3054
3055
|
__name: "DragDropArea",
|
|
3055
|
-
props: /* @__PURE__ */
|
|
3056
|
+
props: /* @__PURE__ */ R({
|
|
3056
3057
|
maxFileInput: {},
|
|
3057
3058
|
maxFileSize: {},
|
|
3058
3059
|
acceptedFileTypes: {}
|
|
@@ -3062,30 +3063,30 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3062
3063
|
}),
|
|
3063
3064
|
emits: ["update:modelValue"],
|
|
3064
3065
|
setup(e) {
|
|
3065
|
-
const t =
|
|
3066
|
-
l.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value =
|
|
3066
|
+
const t = U(e, "modelValue"), l = P(!1), o = x(() => e.maxFileInput <= t.value.length), a = (n) => {
|
|
3067
|
+
l.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = fe([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((d) => d.fileType), e.maxFileSize);
|
|
3067
3068
|
};
|
|
3068
|
-
return (n, d) => (r(),
|
|
3069
|
+
return (n, d) => (r(), b("div", {
|
|
3069
3070
|
id: "drag-drop-area",
|
|
3070
3071
|
class: B(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
3071
|
-
onDragleave: d[0] || (d[0] =
|
|
3072
|
-
onDragover: d[1] || (d[1] =
|
|
3073
|
-
onDrop:
|
|
3072
|
+
onDragleave: d[0] || (d[0] = Y((i) => l.value = !1, ["prevent"])),
|
|
3073
|
+
onDragover: d[1] || (d[1] = Y((i) => l.value = !0, ["prevent"])),
|
|
3074
|
+
onDrop: Y(a, ["prevent"])
|
|
3074
3075
|
}, [
|
|
3075
|
-
t.value.length === 0 ? (r(),
|
|
3076
|
-
|
|
3076
|
+
t.value.length === 0 ? (r(), b("div", $l, [
|
|
3077
|
+
y(p(_), {
|
|
3077
3078
|
icon: "bi:upload",
|
|
3078
3079
|
class: "me-2",
|
|
3079
3080
|
height: "20px",
|
|
3080
3081
|
width: "20px"
|
|
3081
3082
|
}),
|
|
3082
|
-
d[2] || (d[2] =
|
|
3083
|
-
])) : (r(),
|
|
3083
|
+
d[2] || (d[2] = z(" Drag and drop files here "))
|
|
3084
|
+
])) : (r(), b("div", Bl, [
|
|
3084
3085
|
$(n.$slots, "default")
|
|
3085
3086
|
]))
|
|
3086
3087
|
], 34));
|
|
3087
3088
|
}
|
|
3088
|
-
}), _l = { class: "d-flex align-items-center me-2" },
|
|
3089
|
+
}), _l = { class: "d-flex align-items-center me-2" }, Vl = /* @__PURE__ */ F({
|
|
3089
3090
|
__name: "UploadStatus",
|
|
3090
3091
|
props: {
|
|
3091
3092
|
fileSize: {},
|
|
@@ -3094,7 +3095,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3094
3095
|
uploadStatus: {}
|
|
3095
3096
|
},
|
|
3096
3097
|
setup(e) {
|
|
3097
|
-
const t =
|
|
3098
|
+
const t = x(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = x(() => {
|
|
3098
3099
|
switch (e.uploadStatus) {
|
|
3099
3100
|
case "InvalidFileType":
|
|
3100
3101
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -3110,32 +3111,32 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3110
3111
|
return "Upload Failed: Connection error, please try again.";
|
|
3111
3112
|
}
|
|
3112
3113
|
});
|
|
3113
|
-
return (o, a) => (r(),
|
|
3114
|
+
return (o, a) => (r(), b("div", _l, [
|
|
3114
3115
|
o.uploadStatus === "Uploading" ? (r(), w(Kt, {
|
|
3115
3116
|
key: 0,
|
|
3116
3117
|
pixelWidth: 200,
|
|
3117
3118
|
animate: "",
|
|
3118
3119
|
striped: ""
|
|
3119
3120
|
}, {
|
|
3120
|
-
default:
|
|
3121
|
-
|
|
3121
|
+
default: f(() => [
|
|
3122
|
+
z(h((o.bytesUploaded / o.fileSize * 100).toFixed(0)) + "%", 1)
|
|
3122
3123
|
]),
|
|
3123
3124
|
_: 1
|
|
3124
3125
|
})) : S("", !0),
|
|
3125
|
-
o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (r(), w(
|
|
3126
|
+
o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (r(), w(oe, {
|
|
3126
3127
|
key: 1,
|
|
3127
3128
|
id: "upload-status-alert",
|
|
3128
3129
|
severity: t.value,
|
|
3129
3130
|
class: "mb-0 w-75 ms-auto"
|
|
3130
3131
|
}, {
|
|
3131
|
-
default:
|
|
3132
|
-
|
|
3132
|
+
default: f(() => [
|
|
3133
|
+
z(h(l.value), 1)
|
|
3133
3134
|
]),
|
|
3134
3135
|
_: 1
|
|
3135
3136
|
}, 8, ["severity"])) : S("", !0)
|
|
3136
3137
|
]));
|
|
3137
3138
|
}
|
|
3138
|
-
}),
|
|
3139
|
+
}), Sl = ["data-cy"], Cl = { class: "ms-3 d-flex flex-column" }, Tl = {
|
|
3139
3140
|
key: 1,
|
|
3140
3141
|
id: "file-name"
|
|
3141
3142
|
}, Pl = {
|
|
@@ -3146,7 +3147,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3146
3147
|
id: "file-size"
|
|
3147
3148
|
}, Il = { class: "ms-auto my-auto d-flex" }, zl = /* @__PURE__ */ F({
|
|
3148
3149
|
__name: "FileInfo",
|
|
3149
|
-
props: /* @__PURE__ */
|
|
3150
|
+
props: /* @__PURE__ */ R({
|
|
3150
3151
|
editableFileName: { type: Boolean },
|
|
3151
3152
|
acceptedFileTypes: {},
|
|
3152
3153
|
maxFileSize: {},
|
|
@@ -3161,29 +3162,29 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3161
3162
|
uploadStatus: { required: !0 },
|
|
3162
3163
|
uploadStatusModifiers: {}
|
|
3163
3164
|
}),
|
|
3164
|
-
emits: /* @__PURE__ */
|
|
3165
|
+
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
3165
3166
|
setup(e, { emit: t }) {
|
|
3166
|
-
const l =
|
|
3167
|
+
const l = U(e, "file"), o = U(e, "blobFileName"), a = U(e, "uploadStatus"), n = t, d = P(l.value.name), i = P(""), u = P(0), m = P(), v = x(() => e.acceptedFileTypes.includes(l.value.type)), s = x(() => l.value.size <= e.maxFileSize), C = () => {
|
|
3167
3168
|
l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
3168
|
-
},
|
|
3169
|
-
if (!
|
|
3170
|
-
a.value =
|
|
3169
|
+
}, T = async () => {
|
|
3170
|
+
if (!v.value || !s.value) {
|
|
3171
|
+
a.value = v.value ? "InvalidFileSize" : "InvalidFileType";
|
|
3171
3172
|
return;
|
|
3172
3173
|
}
|
|
3173
3174
|
a.value = "Preparing", m.value = new AbortController();
|
|
3174
|
-
const [I,
|
|
3175
|
+
const [I, O] = await e.getFileUrlAction(l.value.name);
|
|
3175
3176
|
if (!I) {
|
|
3176
3177
|
a.value = "Failed";
|
|
3177
3178
|
return;
|
|
3178
3179
|
}
|
|
3179
3180
|
try {
|
|
3180
3181
|
a.value = "Uploading";
|
|
3181
|
-
const g = new
|
|
3182
|
+
const g = new me(I), k = {
|
|
3182
3183
|
abortSignal: m.value.signal,
|
|
3183
3184
|
onProgress: (G) => u.value = G.loadedBytes,
|
|
3184
3185
|
tags: { temp: "true" }
|
|
3185
3186
|
};
|
|
3186
|
-
await g.uploadData(l.value,
|
|
3187
|
+
await g.uploadData(l.value, k), i.value = I, a.value = "Uploaded", o.value = O;
|
|
3187
3188
|
} catch (g) {
|
|
3188
3189
|
if (g.name === "AbortError") {
|
|
3189
3190
|
a.value = "Aborted";
|
|
@@ -3191,14 +3192,14 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3191
3192
|
}
|
|
3192
3193
|
a.value = "Failed";
|
|
3193
3194
|
}
|
|
3194
|
-
},
|
|
3195
|
-
await bl(a.value,
|
|
3195
|
+
}, M = async () => {
|
|
3196
|
+
await bl(a.value, i.value), n("deleted", l.value);
|
|
3196
3197
|
};
|
|
3197
|
-
return
|
|
3198
|
-
e.autoUploadToBlob &&
|
|
3199
|
-
}), (I,
|
|
3200
|
-
const g =
|
|
3201
|
-
return r(),
|
|
3198
|
+
return le(() => {
|
|
3199
|
+
e.autoUploadToBlob && T();
|
|
3200
|
+
}), (I, O) => {
|
|
3201
|
+
const g = E;
|
|
3202
|
+
return r(), b("div", {
|
|
3202
3203
|
class: "py-4 px-3 d-flex",
|
|
3203
3204
|
"data-cy": `file-info-${l.value.name}`
|
|
3204
3205
|
}, [
|
|
@@ -3211,7 +3212,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3211
3212
|
alt: l.value.name,
|
|
3212
3213
|
width: "75px",
|
|
3213
3214
|
preview: ""
|
|
3214
|
-
}, null, 8, ["src", "alt"])) : (r(), w(p(
|
|
3215
|
+
}, null, 8, ["src", "alt"])) : (r(), w(p(_), {
|
|
3215
3216
|
key: 1,
|
|
3216
3217
|
id: "file-earmark",
|
|
3217
3218
|
icon: "bi:file-earmark",
|
|
@@ -3225,17 +3226,17 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3225
3226
|
key: 0,
|
|
3226
3227
|
id: "edit-file-name",
|
|
3227
3228
|
modelValue: d.value,
|
|
3228
|
-
"onUpdate:modelValue":
|
|
3229
|
+
"onUpdate:modelValue": O[0] || (O[0] = (k) => d.value = k),
|
|
3229
3230
|
rules: I.customFileNameRules,
|
|
3230
3231
|
name: l.value.name,
|
|
3231
|
-
"complete-action":
|
|
3232
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (r(),
|
|
3232
|
+
"complete-action": C
|
|
3233
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (r(), b("span", Tl, h(l.value.name), 1))
|
|
3233
3234
|
]),
|
|
3234
3235
|
c("span", Pl, "File type: " + h(l.value.type.split("/").pop()), 1),
|
|
3235
3236
|
c("span", Ml, "File size: " + h(p(re)(l.value.size)), 1)
|
|
3236
3237
|
]),
|
|
3237
3238
|
c("div", Il, [
|
|
3238
|
-
(r(), w(
|
|
3239
|
+
(r(), w(Vl, {
|
|
3239
3240
|
key: a.value,
|
|
3240
3241
|
"file-size": l.value.size,
|
|
3241
3242
|
"upload-status": a.value,
|
|
@@ -3245,10 +3246,10 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3245
3246
|
a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (r(), w(g, {
|
|
3246
3247
|
key: 0,
|
|
3247
3248
|
link: "",
|
|
3248
|
-
onClick:
|
|
3249
|
+
onClick: T
|
|
3249
3250
|
}, {
|
|
3250
|
-
default:
|
|
3251
|
-
|
|
3251
|
+
default: f(() => [
|
|
3252
|
+
y(p(_), {
|
|
3252
3253
|
icon: a.value === "Not Uploaded" || a.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
3253
3254
|
}, null, 8, ["icon"])
|
|
3254
3255
|
]),
|
|
@@ -3257,25 +3258,25 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3257
3258
|
a.value === "Uploading" ? (r(), w(g, {
|
|
3258
3259
|
key: 1,
|
|
3259
3260
|
link: "",
|
|
3260
|
-
onClick:
|
|
3261
|
+
onClick: O[1] || (O[1] = (k) => m.value.value.abort())
|
|
3261
3262
|
}, {
|
|
3262
|
-
default:
|
|
3263
|
-
|
|
3263
|
+
default: f(() => [
|
|
3264
|
+
y(p(_), { icon: "bi:x-circle-fill" })
|
|
3264
3265
|
]),
|
|
3265
3266
|
_: 1
|
|
3266
3267
|
})) : (r(), w(g, {
|
|
3267
3268
|
key: 2,
|
|
3268
3269
|
link: "",
|
|
3269
|
-
onClick:
|
|
3270
|
+
onClick: M,
|
|
3270
3271
|
id: "delete-button"
|
|
3271
3272
|
}, {
|
|
3272
|
-
default:
|
|
3273
|
-
|
|
3273
|
+
default: f(() => [
|
|
3274
|
+
y(p(_), { icon: "bi:trash" })
|
|
3274
3275
|
]),
|
|
3275
3276
|
_: 1
|
|
3276
3277
|
}))
|
|
3277
3278
|
])
|
|
3278
|
-
], 8,
|
|
3279
|
+
], 8, Sl);
|
|
3279
3280
|
};
|
|
3280
3281
|
}
|
|
3281
3282
|
}), Ol = { class: "d-flex justify-content-end mt-1" }, Dl = { id: "max-file-size" }, Ul = /* @__PURE__ */ F({
|
|
@@ -3284,13 +3285,13 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3284
3285
|
maxFileSize: {}
|
|
3285
3286
|
},
|
|
3286
3287
|
setup(e) {
|
|
3287
|
-
return (t, l) => (r(),
|
|
3288
|
+
return (t, l) => (r(), b("div", Ol, [
|
|
3288
3289
|
c("div", Dl, "Max file size: " + h(p(re)(t.maxFileSize)), 1)
|
|
3289
3290
|
]));
|
|
3290
3291
|
}
|
|
3291
|
-
}), Al = { "data-cy": "file-uploader" }, Nl = { key: 0 },
|
|
3292
|
+
}), Al = { "data-cy": "file-uploader" }, Nl = { key: 0 }, Aa = /* @__PURE__ */ F({
|
|
3292
3293
|
__name: "ForgeFileUploader",
|
|
3293
|
-
props: /* @__PURE__ */
|
|
3294
|
+
props: /* @__PURE__ */ R({
|
|
3294
3295
|
acceptedFileTypes: {},
|
|
3295
3296
|
maxFileSize: {},
|
|
3296
3297
|
getFileUrlAction: {},
|
|
@@ -3305,72 +3306,144 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3305
3306
|
}),
|
|
3306
3307
|
emits: ["update:modelValue"],
|
|
3307
3308
|
setup(e) {
|
|
3308
|
-
const t =
|
|
3309
|
+
const t = U(e, "modelValue"), l = e, o = (a) => {
|
|
3309
3310
|
t.value = t.value.filter((n) => n.file != a);
|
|
3310
3311
|
};
|
|
3311
|
-
return (a, n) => (r(),
|
|
3312
|
-
|
|
3312
|
+
return (a, n) => (r(), b("div", Al, [
|
|
3313
|
+
y(xl, V(l, {
|
|
3313
3314
|
modelValue: t.value,
|
|
3314
3315
|
"onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
|
|
3315
3316
|
}), null, 16, ["modelValue"]),
|
|
3316
|
-
a.showDragDropArea ? (r(),
|
|
3317
|
-
|
|
3317
|
+
a.showDragDropArea ? (r(), b("div", Nl, [
|
|
3318
|
+
y(Fl, {
|
|
3318
3319
|
"max-file-input": l.maxFileInput,
|
|
3319
3320
|
"max-file-size": l.maxFileSize,
|
|
3320
3321
|
"accepted-file-types": l.acceptedFileTypes,
|
|
3321
3322
|
modelValue: t.value,
|
|
3322
3323
|
"onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
|
|
3323
3324
|
}, {
|
|
3324
|
-
default:
|
|
3325
|
-
(r(!0),
|
|
3326
|
-
(r(), w(zl,
|
|
3325
|
+
default: f(() => [
|
|
3326
|
+
(r(!0), b(N, null, H(t.value, ({ file: d }, i) => (r(), b("span", null, [
|
|
3327
|
+
(r(), w(zl, V({
|
|
3327
3328
|
key: d.name,
|
|
3328
|
-
class:
|
|
3329
|
-
file: t.value[
|
|
3330
|
-
"onUpdate:file": (u) => t.value[
|
|
3331
|
-
"blob-file-name": t.value[
|
|
3332
|
-
"onUpdate:blobFileName": (u) => t.value[
|
|
3333
|
-
"upload-status": t.value[
|
|
3334
|
-
"onUpdate:uploadStatus": (u) => t.value[
|
|
3329
|
+
class: i === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
3330
|
+
file: t.value[i].file,
|
|
3331
|
+
"onUpdate:file": (u) => t.value[i].file = u,
|
|
3332
|
+
"blob-file-name": t.value[i].blobFileName,
|
|
3333
|
+
"onUpdate:blobFileName": (u) => t.value[i].blobFileName = u,
|
|
3334
|
+
"upload-status": t.value[i].status,
|
|
3335
|
+
"onUpdate:uploadStatus": (u) => t.value[i].status = u,
|
|
3335
3336
|
ref_for: !0
|
|
3336
3337
|
}, l, { onDeleted: o }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
3337
3338
|
]))), 256))
|
|
3338
3339
|
]),
|
|
3339
3340
|
_: 1
|
|
3340
3341
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
3341
|
-
|
|
3342
|
+
y(Ul, {
|
|
3342
3343
|
"max-file-size": l.maxFileSize
|
|
3343
3344
|
}, null, 8, ["max-file-size"])
|
|
3344
3345
|
])) : S("", !0)
|
|
3345
3346
|
]));
|
|
3346
3347
|
}
|
|
3348
|
+
}), El = { class: "d-flex" }, Ll = { class: "me-3" }, Rl = { class: "ms-2" }, jl = { class: "d-flex flex-column w-100" }, Hl = ["onClick"], ql = ["for"], Na = /* @__PURE__ */ F({
|
|
3349
|
+
__name: "ForgeColumnCustomiser",
|
|
3350
|
+
props: {
|
|
3351
|
+
modelValue: { required: !0 },
|
|
3352
|
+
modelModifiers: {}
|
|
3353
|
+
},
|
|
3354
|
+
emits: ["update:modelValue"],
|
|
3355
|
+
setup(e) {
|
|
3356
|
+
const t = U(e, "modelValue"), l = P(), o = P(!1), a = P([]), n = P([]), d = (u) => {
|
|
3357
|
+
l.value.toggle(u);
|
|
3358
|
+
}, i = (u) => {
|
|
3359
|
+
const m = n.value.find((v) => v.field === u);
|
|
3360
|
+
m.selected = !m.selected, t.value = n.value.filter((v) => v.selected);
|
|
3361
|
+
};
|
|
3362
|
+
return le(() => {
|
|
3363
|
+
a.value = [...t.value], n.value = [...t.value].map((u) => ({ ...u, selected: !0 }));
|
|
3364
|
+
}), (u, m) => (r(), b(N, null, [
|
|
3365
|
+
y(p(E), {
|
|
3366
|
+
onClick: d,
|
|
3367
|
+
class: "ms-2"
|
|
3368
|
+
}, {
|
|
3369
|
+
default: f(() => [
|
|
3370
|
+
c("div", El, [
|
|
3371
|
+
c("div", Ll, [
|
|
3372
|
+
y(p(_), { icon: "bi:layout-three-columns" })
|
|
3373
|
+
]),
|
|
3374
|
+
z(" Columns (" + h(t.value.length ?? 0) + "/" + h(a.value.length ?? 0) + ") ", 1),
|
|
3375
|
+
c("div", Rl, [
|
|
3376
|
+
y(p(_), {
|
|
3377
|
+
icon: o.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
3378
|
+
}, null, 8, ["icon"])
|
|
3379
|
+
])
|
|
3380
|
+
])
|
|
3381
|
+
]),
|
|
3382
|
+
_: 1
|
|
3383
|
+
}),
|
|
3384
|
+
y(p(pe), {
|
|
3385
|
+
ref_key: "columnCustomiserPanel",
|
|
3386
|
+
ref: l,
|
|
3387
|
+
class: "column-customiser",
|
|
3388
|
+
onHide: m[0] || (m[0] = () => o.value = !1),
|
|
3389
|
+
onShow: m[1] || (m[1] = () => o.value = !0)
|
|
3390
|
+
}, {
|
|
3391
|
+
default: f(() => [
|
|
3392
|
+
c("div", jl, [
|
|
3393
|
+
(r(!0), b(N, null, H(a.value, (v, s) => (r(), b("div", {
|
|
3394
|
+
class: B(["d-flex cursor-pointer", {
|
|
3395
|
+
"border-top": s !== 0,
|
|
3396
|
+
"py-1": s !== 0 && a.value.length - 1 !== s,
|
|
3397
|
+
"pt-1": a.value.length - 1 === s,
|
|
3398
|
+
"pb-1": s === 0
|
|
3399
|
+
}]),
|
|
3400
|
+
onClick: (C) => i(v.field)
|
|
3401
|
+
}, [
|
|
3402
|
+
y(p(ue), {
|
|
3403
|
+
id: v.field,
|
|
3404
|
+
"model-value": n.value.find((C) => C.field === v.field).selected,
|
|
3405
|
+
binary: "",
|
|
3406
|
+
class: "cursor-pointer"
|
|
3407
|
+
}, null, 8, ["id", "model-value"]),
|
|
3408
|
+
c("label", {
|
|
3409
|
+
for: v.field,
|
|
3410
|
+
class: "cursor-pointer"
|
|
3411
|
+
}, h(v.header), 9, ql)
|
|
3412
|
+
], 10, Hl))), 256))
|
|
3413
|
+
])
|
|
3414
|
+
]),
|
|
3415
|
+
_: 1
|
|
3416
|
+
}, 512)
|
|
3417
|
+
], 64));
|
|
3418
|
+
}
|
|
3347
3419
|
});
|
|
3348
3420
|
export {
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3421
|
+
wa as Bootstrap_PT,
|
|
3422
|
+
ka as ForgeActionButton,
|
|
3423
|
+
oe as ForgeAlert,
|
|
3352
3424
|
mt as ForgeCheckbox,
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3425
|
+
Ma as ForgeChips,
|
|
3426
|
+
Na as ForgeColumnCustomiser,
|
|
3427
|
+
be as ForgeDatepicker,
|
|
3428
|
+
Aa as ForgeFileUploader,
|
|
3429
|
+
Ua as ForgeFilterHeader,
|
|
3430
|
+
Ta as ForgeForm,
|
|
3431
|
+
Pa as ForgeFormField,
|
|
3359
3432
|
Bt as ForgeInlineEditor,
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3433
|
+
xa as ForgeLink,
|
|
3434
|
+
ve as ForgeLoader,
|
|
3435
|
+
Fa as ForgeModal,
|
|
3436
|
+
ye as ForgeMultiSelect,
|
|
3437
|
+
Va as ForgeMultiSelectPreview,
|
|
3438
|
+
_a as ForgeNavbar,
|
|
3439
|
+
Sa as ForgePageHeader,
|
|
3367
3440
|
Kt as ForgeProgressBar,
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3441
|
+
Ca as ForgeRemainingCharacters,
|
|
3442
|
+
Ia as ForgeStatWidget,
|
|
3443
|
+
za as ForgeStepper,
|
|
3444
|
+
Da as ForgeTable,
|
|
3445
|
+
Oa as ForgeTile,
|
|
3446
|
+
Ba as convertToMultiSelectOption,
|
|
3447
|
+
$a as enumToMultiSelectList,
|
|
3448
|
+
yt as parseError
|
|
3376
3449
|
};
|