@3squared/forge-ui-3 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/forge-ui-3.js +854 -805
- package/dist/src/components/ForgeCheckbox.vue.d.ts +0 -2
- package/dist/src/components/ForgeDatepicker.vue.d.ts +6 -0
- package/dist/src/components/ForgeFormField.vue.d.ts +45 -28
- package/dist/src/components/ForgeModal.vue.d.ts +20 -0
- package/dist/src/components/table/ForgeTable.vue.d.ts +6 -1
- package/dist/src/types/forge-types.d.ts +10 -7
- package/package.json +7 -8
- package/src/types/forge-types.ts +11 -7
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as F, openBlock as s, createBlock as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import
|
|
1
|
+
import ge from "primevue/message";
|
|
2
|
+
import { defineComponent as F, openBlock as s, createBlock as k, normalizeProps as ee, guardReactiveProps as te, withCtx as g, createElementVNode as u, normalizeClass as B, unref as c, createCommentVNode as C, createVNode as b, renderSlot as _, ref as M, createElementBlock as v, Fragment as N, mergeProps as V, onMounted as ae, watch as ie, computed as w, isRef as le, createTextVNode as z, toDisplayString as h, withDirectives as L, vShow as q, mergeModels as H, useModel as E, createSlots as oe, renderList as j, withKeys as X, useAttrs as me, withModifiers as G, normalizeStyle as he } from "vue";
|
|
3
|
+
import { Icon as T } from "@iconify/vue";
|
|
4
|
+
import R from "primevue/button";
|
|
5
5
|
import we from "primevue/toast";
|
|
6
6
|
import xe from "primevue/checkbox";
|
|
7
7
|
import { useField as W } from "vee-validate";
|
|
8
8
|
import ke from "primevue/progressspinner";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { vOnClickOutside as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
9
|
+
import _e from "primevue/dialog";
|
|
10
|
+
import re from "primevue/inputtext";
|
|
11
|
+
import { vOnClickOutside as $e } from "@vueuse/components";
|
|
12
|
+
import Be from "primevue/menubar";
|
|
13
|
+
import Fe from "vue-multiselect";
|
|
14
14
|
import Se from "primevue/calendar";
|
|
15
15
|
import Ce from "primevue/inputmask";
|
|
16
16
|
import Ve from "primevue/textarea";
|
|
17
|
-
import
|
|
17
|
+
import pe from "primevue/inputnumber";
|
|
18
18
|
import Te from "primevue/chips";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
19
|
+
import Pe from "primevue/progressbar";
|
|
20
|
+
import Me from "primevue/divider";
|
|
21
21
|
import Ie from "primevue/steps";
|
|
22
22
|
import ze from "primevue/datatable";
|
|
23
|
-
import
|
|
23
|
+
import de from "primevue/dropdown";
|
|
24
24
|
import Oe from "primevue/multiselect";
|
|
25
|
-
import { BlockBlobClient as
|
|
25
|
+
import { BlockBlobClient as ve } from "@azure/storage-blob";
|
|
26
26
|
import De from "primevue/image";
|
|
27
27
|
const Ue = {
|
|
28
28
|
button: {
|
|
@@ -126,7 +126,7 @@ const Ue = {
|
|
|
126
126
|
]
|
|
127
127
|
})
|
|
128
128
|
}
|
|
129
|
-
},
|
|
129
|
+
}, ce = {
|
|
130
130
|
dropdown: {
|
|
131
131
|
root: ({ props: e }) => ({
|
|
132
132
|
class: [
|
|
@@ -190,12 +190,12 @@ const Ue = {
|
|
|
190
190
|
column: {
|
|
191
191
|
sortBadge: "ms-2 my-auto cursor-pointer",
|
|
192
192
|
headerCell: (e) => {
|
|
193
|
-
var t,
|
|
193
|
+
var t, l, a, o;
|
|
194
194
|
return {
|
|
195
195
|
class: [{
|
|
196
196
|
"cursor-move": e.props.reorderableColumns,
|
|
197
|
-
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((
|
|
198
|
-
"overflow-hidden position-relative bg-clip-padding": (
|
|
197
|
+
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((l = e.column) == null ? void 0 : l.context.frozen) || ((a = e.column) == null ? void 0 : a.context.frozen) === "",
|
|
198
|
+
"overflow-hidden position-relative bg-clip-padding": (o = e.column) == null ? void 0 : o.context.resizable
|
|
199
199
|
}]
|
|
200
200
|
};
|
|
201
201
|
},
|
|
@@ -282,13 +282,13 @@ const Ue = {
|
|
|
282
282
|
}, Ee = {
|
|
283
283
|
inputtext: {
|
|
284
284
|
root: (e) => {
|
|
285
|
-
var t,
|
|
285
|
+
var t, l;
|
|
286
286
|
return {
|
|
287
287
|
class: [
|
|
288
288
|
"form-control",
|
|
289
289
|
{
|
|
290
290
|
"form-control-lg": ((t = e.props.size) == null ? void 0 : t.toLowerCase()) == "large",
|
|
291
|
-
"form-control-sm": ((
|
|
291
|
+
"form-control-sm": ((l = e.props.size) == null ? void 0 : l.toLowerCase()) == "small"
|
|
292
292
|
}
|
|
293
293
|
]
|
|
294
294
|
};
|
|
@@ -583,13 +583,13 @@ const Ue = {
|
|
|
583
583
|
};
|
|
584
584
|
},
|
|
585
585
|
pages: "d-flex",
|
|
586
|
-
firstPageButton: "page-link",
|
|
587
|
-
previousPageButton: "page-link",
|
|
588
|
-
nextPageButton: "page-link",
|
|
589
|
-
lastPageButton: "page-link me-2",
|
|
586
|
+
firstPageButton: "page-link cursor-pointer",
|
|
587
|
+
previousPageButton: "page-link cursor-pointer",
|
|
588
|
+
nextPageButton: "page-link cursor-pointer",
|
|
589
|
+
lastPageButton: "page-link me-2 cursor-pointer",
|
|
590
590
|
pageButton: ({ context: e }) => ({
|
|
591
591
|
class: [
|
|
592
|
-
"page-link",
|
|
592
|
+
"page-link cursor-pointer",
|
|
593
593
|
{
|
|
594
594
|
active: e.active,
|
|
595
595
|
disabled: e.disabled
|
|
@@ -801,15 +801,15 @@ const Ue = {
|
|
|
801
801
|
class: ["ps-1"]
|
|
802
802
|
}),
|
|
803
803
|
icon: ({ props: e }) => {
|
|
804
|
-
var t,
|
|
804
|
+
var t, l, a, o;
|
|
805
805
|
return {
|
|
806
806
|
class: [
|
|
807
807
|
"toast-icon",
|
|
808
808
|
{
|
|
809
809
|
"text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
|
|
810
|
-
"text-success": ((
|
|
810
|
+
"text-success": ((l = e.message) == null ? void 0 : l.severity) === "success",
|
|
811
811
|
"text-danger": ((a = e.message) == null ? void 0 : a.severity) === "error",
|
|
812
|
-
"text-warning": ((
|
|
812
|
+
"text-warning": ((o = e.message) == null ? void 0 : o.severity) === "warn"
|
|
813
813
|
}
|
|
814
814
|
]
|
|
815
815
|
};
|
|
@@ -825,13 +825,13 @@ const Ue = {
|
|
|
825
825
|
...Ze,
|
|
826
826
|
...Ye,
|
|
827
827
|
...nt,
|
|
828
|
-
...
|
|
828
|
+
...ce,
|
|
829
829
|
...st,
|
|
830
830
|
...Ee,
|
|
831
831
|
...Re,
|
|
832
832
|
...Le,
|
|
833
833
|
...Ge,
|
|
834
|
-
...
|
|
834
|
+
...ce,
|
|
835
835
|
...et,
|
|
836
836
|
...qe,
|
|
837
837
|
...Je,
|
|
@@ -845,7 +845,7 @@ const Ue = {
|
|
|
845
845
|
directives: {
|
|
846
846
|
...tt
|
|
847
847
|
}
|
|
848
|
-
},
|
|
848
|
+
}, ne = /* @__PURE__ */ F({
|
|
849
849
|
__name: "ForgeAlert",
|
|
850
850
|
props: {
|
|
851
851
|
severity: { default: "primary" },
|
|
@@ -861,27 +861,27 @@ const Ue = {
|
|
|
861
861
|
},
|
|
862
862
|
setup(e) {
|
|
863
863
|
const t = e;
|
|
864
|
-
return (
|
|
865
|
-
const
|
|
866
|
-
return s(),
|
|
867
|
-
messageicon:
|
|
868
|
-
|
|
869
|
-
class:
|
|
864
|
+
return (l, a) => {
|
|
865
|
+
const o = ge;
|
|
866
|
+
return s(), k(o, ee(te({ ...l.$attrs, ...t })), {
|
|
867
|
+
messageicon: g(() => [
|
|
868
|
+
u("div", {
|
|
869
|
+
class: B(t.icon ? "me-2 pe-1" : "")
|
|
870
870
|
}, [
|
|
871
|
-
t.icon ? (s(),
|
|
871
|
+
t.icon ? (s(), k(c(T), {
|
|
872
872
|
key: 0,
|
|
873
873
|
"data-cy": "message-icon",
|
|
874
874
|
icon: t.icon,
|
|
875
|
-
class:
|
|
875
|
+
class: B(`text-${t.severity}`),
|
|
876
876
|
height: 35
|
|
877
|
-
}, null, 8, ["icon", "class"])) :
|
|
877
|
+
}, null, 8, ["icon", "class"])) : C("", !0)
|
|
878
878
|
], 2)
|
|
879
879
|
]),
|
|
880
|
-
closeicon:
|
|
881
|
-
|
|
880
|
+
closeicon: g(() => [
|
|
881
|
+
b(c(T), { icon: "bi:x" })
|
|
882
882
|
]),
|
|
883
|
-
default:
|
|
884
|
-
|
|
883
|
+
default: g(() => [
|
|
884
|
+
_(l.$slots, "default")
|
|
885
885
|
]),
|
|
886
886
|
_: 3
|
|
887
887
|
}, 16);
|
|
@@ -896,32 +896,31 @@ const Ue = {
|
|
|
896
896
|
params: { default: Array }
|
|
897
897
|
},
|
|
898
898
|
setup(e) {
|
|
899
|
-
const t = M(!1),
|
|
899
|
+
const t = M(!1), l = e, a = async () => {
|
|
900
900
|
t.value = !0;
|
|
901
901
|
try {
|
|
902
|
-
await
|
|
903
|
-
} catch (
|
|
904
|
-
await
|
|
902
|
+
await l.action.apply(this, l.params);
|
|
903
|
+
} catch (o) {
|
|
904
|
+
await l.errorAction.apply(this, l.errorParams ? [...l.errorParams, o] : [o]);
|
|
905
905
|
}
|
|
906
906
|
t.value = !1;
|
|
907
907
|
};
|
|
908
|
-
return (
|
|
909
|
-
const i =
|
|
910
|
-
return s(),
|
|
911
|
-
|
|
908
|
+
return (o, n) => {
|
|
909
|
+
const i = R;
|
|
910
|
+
return s(), v(N, null, [
|
|
911
|
+
b(i, V({ ...l, ...o.$attrs }, {
|
|
912
912
|
loading: t.value,
|
|
913
|
-
disabled: t.value ||
|
|
913
|
+
disabled: t.value || l.disabled,
|
|
914
914
|
onClick: a
|
|
915
915
|
}), null, 16, ["loading", "disabled"]),
|
|
916
|
-
|
|
916
|
+
b(c(we))
|
|
917
917
|
], 64);
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
|
-
}), rt = /* @__PURE__ */
|
|
920
|
+
}), rt = /* @__PURE__ */ u("div", null, null, -1), dt = ["for"], ye = /* @__PURE__ */ F({
|
|
921
921
|
__name: "ForgeCheckbox",
|
|
922
922
|
props: {
|
|
923
923
|
label: { default: "" },
|
|
924
|
-
rules: {},
|
|
925
924
|
value: {},
|
|
926
925
|
modelValue: {},
|
|
927
926
|
name: {},
|
|
@@ -945,70 +944,70 @@ const Ue = {
|
|
|
945
944
|
},
|
|
946
945
|
emits: ["update:modelValue"],
|
|
947
946
|
setup(e, { emit: t }) {
|
|
948
|
-
const
|
|
947
|
+
const l = t, a = e, { checked: o, handleChange: n, setValue: i, errors: d, errorMessage: y } = W(() => a.name ?? a.label, void 0, {
|
|
949
948
|
type: "checkbox",
|
|
950
949
|
checkedValue: !0
|
|
951
|
-
}), r = (
|
|
952
|
-
a.disabled || (
|
|
950
|
+
}), r = (p) => {
|
|
951
|
+
a.disabled || (n(p), l("update:modelValue", !a.modelValue));
|
|
953
952
|
};
|
|
954
|
-
|
|
955
|
-
a.value !== void 0 && a.value !== (
|
|
956
|
-
}),
|
|
957
|
-
i(
|
|
953
|
+
ae(() => {
|
|
954
|
+
a.value !== void 0 && a.value !== (o == null ? void 0 : o.value) ? i(a.value) : a.modelValue !== void 0 && a.modelValue !== (o == null ? void 0 : o.value) && i(a.modelValue);
|
|
955
|
+
}), ie(() => a.value, (p) => {
|
|
956
|
+
i(p);
|
|
958
957
|
});
|
|
959
|
-
const
|
|
960
|
-
return (
|
|
958
|
+
const m = w(() => d.value.length > 0);
|
|
959
|
+
return (p, x) => {
|
|
961
960
|
const $ = xe;
|
|
962
|
-
return s(),
|
|
963
|
-
|
|
961
|
+
return s(), v(N, null, [
|
|
962
|
+
u("div", V({
|
|
964
963
|
class: "d-flex",
|
|
965
964
|
"data-cy": "checkbox-container"
|
|
966
|
-
}, { ...
|
|
967
|
-
|
|
965
|
+
}, { ...p.$attrs }), [
|
|
966
|
+
b($, V({
|
|
968
967
|
id: a.name
|
|
969
968
|
}, { ...a }, {
|
|
970
|
-
modelValue:
|
|
971
|
-
"onUpdate:modelValue":
|
|
972
|
-
"input-class": { "is-invalid":
|
|
969
|
+
modelValue: c(o),
|
|
970
|
+
"onUpdate:modelValue": x[0] || (x[0] = (P) => le(o) ? o.value = P : null),
|
|
971
|
+
"input-class": { "is-invalid": m.value },
|
|
973
972
|
onChange: r
|
|
974
973
|
}), {
|
|
975
|
-
icon:
|
|
974
|
+
icon: g(() => [
|
|
976
975
|
rt
|
|
977
976
|
]),
|
|
978
977
|
_: 1
|
|
979
978
|
}, 16, ["id", "modelValue", "input-class"]),
|
|
980
|
-
|
|
979
|
+
u("label", {
|
|
981
980
|
for: a.name,
|
|
982
|
-
class:
|
|
981
|
+
class: B(`${a.disabled ? "opacity-50" : "cursor-pointer"} ${m.value ? "text-danger-dark" : ""}`),
|
|
983
982
|
onClick: r
|
|
984
983
|
}, [
|
|
985
|
-
|
|
986
|
-
|
|
984
|
+
_(p.$slots, "default", {}, () => [
|
|
985
|
+
z(h(a.label), 1)
|
|
987
986
|
])
|
|
988
987
|
], 10, dt)
|
|
989
988
|
], 16),
|
|
990
|
-
L(
|
|
989
|
+
L(u("small", {
|
|
991
990
|
"data-cy": "error",
|
|
992
991
|
class: "text-invalid"
|
|
993
|
-
}, h(
|
|
994
|
-
[
|
|
992
|
+
}, h(c(y)), 513), [
|
|
993
|
+
[q, m.value]
|
|
995
994
|
])
|
|
996
995
|
], 64);
|
|
997
996
|
};
|
|
998
997
|
}
|
|
999
|
-
}), ut = { class: "forge-loader" },
|
|
998
|
+
}), ut = { class: "forge-loader" }, be = /* @__PURE__ */ F({
|
|
1000
999
|
__name: "ForgeLoader",
|
|
1001
1000
|
props: {
|
|
1002
1001
|
severity: { default: "primary" }
|
|
1003
1002
|
},
|
|
1004
1003
|
setup(e) {
|
|
1005
1004
|
const t = e;
|
|
1006
|
-
return (
|
|
1007
|
-
const
|
|
1008
|
-
return s(),
|
|
1009
|
-
|
|
1005
|
+
return (l, a) => {
|
|
1006
|
+
const o = ke;
|
|
1007
|
+
return s(), v("div", ut, [
|
|
1008
|
+
b(o, {
|
|
1010
1009
|
"animation-duration": ".75",
|
|
1011
|
-
class:
|
|
1010
|
+
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1012
1011
|
}, null, 8, ["class"])
|
|
1013
1012
|
]);
|
|
1014
1013
|
};
|
|
@@ -1031,7 +1030,7 @@ const Ue = {
|
|
|
1031
1030
|
iconName: {}
|
|
1032
1031
|
},
|
|
1033
1032
|
setup(e) {
|
|
1034
|
-
const t =
|
|
1033
|
+
const t = w(() => ({
|
|
1035
1034
|
[`link-${e.severity}`]: e.severity,
|
|
1036
1035
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1037
1036
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1040,27 +1039,27 @@ const Ue = {
|
|
|
1040
1039
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1041
1040
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1042
1041
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1043
|
-
})),
|
|
1042
|
+
})), l = w(() => ({
|
|
1044
1043
|
"order-2": e.positionIconEnd,
|
|
1045
1044
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1046
1045
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
1047
1046
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1048
1047
|
"me-0": e.animateIconOnHover
|
|
1049
1048
|
}));
|
|
1050
|
-
return (a,
|
|
1049
|
+
return (a, o) => (s(), v("a", {
|
|
1051
1050
|
id: "link",
|
|
1052
|
-
class:
|
|
1051
|
+
class: B(["cursor-pointer d-flex", t.value]),
|
|
1053
1052
|
href: a.url,
|
|
1054
1053
|
target: a.target
|
|
1055
1054
|
}, [
|
|
1056
|
-
|
|
1057
|
-
a.iconName ? (s(),
|
|
1055
|
+
_(a.$slots, "default", {}, () => [
|
|
1056
|
+
a.iconName ? (s(), k(c(T), {
|
|
1058
1057
|
key: 0,
|
|
1059
1058
|
id: "link-icon",
|
|
1060
1059
|
icon: a.iconName,
|
|
1061
|
-
class:
|
|
1062
|
-
}, null, 8, ["icon", "class"])) :
|
|
1063
|
-
|
|
1060
|
+
class: B(["bi my-auto", l.value])
|
|
1061
|
+
}, null, 8, ["icon", "class"])) : C("", !0),
|
|
1062
|
+
z(" " + h(a.label), 1)
|
|
1064
1063
|
])
|
|
1065
1064
|
], 10, ct));
|
|
1066
1065
|
}
|
|
@@ -1071,21 +1070,23 @@ function mt(e) {
|
|
|
1071
1070
|
errorDetails: []
|
|
1072
1071
|
};
|
|
1073
1072
|
if (e.exception && (t.errorMessage = e.exception), e.message && (Array.isArray(e.message) ? t.errorDetails = e.message : t.errorMessage = e.message), e.response) {
|
|
1074
|
-
const
|
|
1075
|
-
|
|
1073
|
+
const l = JSON.parse(e.response);
|
|
1074
|
+
l.errors && (t.errorDetails = Object.values(l.errors).flat()), l.message && (t.errorDetails = l.message);
|
|
1076
1075
|
}
|
|
1077
1076
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1078
1077
|
}
|
|
1079
|
-
const pt = { key: 0 },
|
|
1078
|
+
const pt = { key: 0 }, vt = {
|
|
1080
1079
|
class: "d-flex w-100",
|
|
1081
1080
|
"data-cy": "footer"
|
|
1082
1081
|
}, dl = /* @__PURE__ */ F({
|
|
1083
1082
|
__name: "ForgeModal",
|
|
1084
|
-
props: /* @__PURE__ */
|
|
1083
|
+
props: /* @__PURE__ */ H({
|
|
1085
1084
|
cancelText: { default: "Cancel" },
|
|
1086
1085
|
submitText: { default: "Submit" },
|
|
1087
1086
|
showFooter: { type: Boolean, default: !0 },
|
|
1088
1087
|
onConfirm: { type: [Function, null], default: null },
|
|
1088
|
+
submitButtonType: { default: "button" },
|
|
1089
|
+
cancelButtonType: { default: "button" },
|
|
1089
1090
|
header: { default: "Header" },
|
|
1090
1091
|
footer: {},
|
|
1091
1092
|
visible: { type: Boolean },
|
|
@@ -1122,104 +1123,106 @@ const pt = { key: 0 }, yt = {
|
|
|
1122
1123
|
}),
|
|
1123
1124
|
emits: ["update:visible"],
|
|
1124
1125
|
setup(e) {
|
|
1125
|
-
const t =
|
|
1126
|
+
const t = E(e, "visible"), l = M(!1), a = e, o = M(!1), n = M({
|
|
1126
1127
|
hasError: !1,
|
|
1127
1128
|
header: "",
|
|
1128
1129
|
message: []
|
|
1129
1130
|
}), i = () => {
|
|
1130
|
-
|
|
1131
|
+
l.value = !1;
|
|
1131
1132
|
}, d = () => {
|
|
1132
|
-
|
|
1133
|
-
},
|
|
1133
|
+
l.value = !0;
|
|
1134
|
+
}, y = () => {
|
|
1134
1135
|
t.value = !1;
|
|
1135
1136
|
}, r = async () => {
|
|
1136
1137
|
if (a.onConfirm) {
|
|
1137
|
-
|
|
1138
|
+
o.value = !0, n.value.hasError = !1;
|
|
1138
1139
|
try {
|
|
1139
|
-
const
|
|
1140
|
-
(
|
|
1141
|
-
} catch (
|
|
1142
|
-
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1140
|
+
const p = await a.onConfirm();
|
|
1141
|
+
(p || p == null) && y();
|
|
1142
|
+
} catch (p) {
|
|
1143
|
+
n.value.hasError = !0;
|
|
1144
|
+
const x = mt(p);
|
|
1145
|
+
n.value.header = x.errorMessage, n.value.message = x.errorDetails;
|
|
1145
1146
|
}
|
|
1146
|
-
|
|
1147
|
+
o.value = !1;
|
|
1147
1148
|
}
|
|
1148
|
-
},
|
|
1149
|
+
}, m = w(() => ({
|
|
1149
1150
|
root: [
|
|
1150
1151
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1151
1152
|
{
|
|
1152
|
-
"mw-100 vh-100 vw-100 top-0 start-0":
|
|
1153
|
+
"mw-100 vh-100 vw-100 top-0 start-0": l.value
|
|
1153
1154
|
}
|
|
1154
1155
|
]
|
|
1155
1156
|
}));
|
|
1156
|
-
return (
|
|
1157
|
-
const $ =
|
|
1158
|
-
return s(),
|
|
1157
|
+
return (p, x) => {
|
|
1158
|
+
const $ = R, P = _e;
|
|
1159
|
+
return s(), k(P, V(a, {
|
|
1159
1160
|
onMaximize: d,
|
|
1160
1161
|
onUnmaximize: i,
|
|
1161
|
-
pt:
|
|
1162
|
-
}),
|
|
1163
|
-
closeicon:
|
|
1164
|
-
|
|
1162
|
+
pt: m.value
|
|
1163
|
+
}), oe({
|
|
1164
|
+
closeicon: g(() => [
|
|
1165
|
+
b(c(T), {
|
|
1165
1166
|
"data-cy": "close-icon",
|
|
1166
1167
|
icon: "bi:x-lg",
|
|
1167
1168
|
width: "18",
|
|
1168
1169
|
height: "18",
|
|
1169
|
-
onClick:
|
|
1170
|
+
onClick: y
|
|
1170
1171
|
})
|
|
1171
1172
|
]),
|
|
1172
|
-
maximizeicon:
|
|
1173
|
-
|
|
1173
|
+
maximizeicon: g(() => [
|
|
1174
|
+
b(c(T), {
|
|
1174
1175
|
"data-cy": "maximisable-icon",
|
|
1175
|
-
icon:
|
|
1176
|
+
icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1176
1177
|
width: "16",
|
|
1177
1178
|
height: "16"
|
|
1178
1179
|
}, null, 8, ["icon"])
|
|
1179
1180
|
]),
|
|
1180
1181
|
_: 2
|
|
1181
1182
|
}, [
|
|
1182
|
-
|
|
1183
|
-
name:
|
|
1184
|
-
fn:
|
|
1185
|
-
|
|
1183
|
+
j(p.$slots, (S, O) => ({
|
|
1184
|
+
name: O,
|
|
1185
|
+
fn: g((f) => [
|
|
1186
|
+
n.value.hasError ? (s(), k(ne, {
|
|
1186
1187
|
key: 0,
|
|
1187
1188
|
severity: "danger",
|
|
1188
1189
|
"data-cy": "error"
|
|
1189
1190
|
}, {
|
|
1190
|
-
default:
|
|
1191
|
-
|
|
1192
|
-
class:
|
|
1193
|
-
}, h(
|
|
1194
|
-
|
|
1195
|
-
(s(!0),
|
|
1196
|
-
])) :
|
|
1191
|
+
default: g(() => [
|
|
1192
|
+
u("p", {
|
|
1193
|
+
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1194
|
+
}, h(n.value.header), 3),
|
|
1195
|
+
n.value.message.length > 0 ? (s(), v("ul", pt, [
|
|
1196
|
+
(s(!0), v(N, null, j(n.value.message, (I) => (s(), v("li", { key: I }, h(I), 1))), 128))
|
|
1197
|
+
])) : C("", !0)
|
|
1197
1198
|
]),
|
|
1198
1199
|
_: 1
|
|
1199
|
-
})) :
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
]) :
|
|
1200
|
+
})) : C("", !0),
|
|
1201
|
+
_(p.$slots, O, ee(te(f || {}))),
|
|
1202
|
+
o.value ? _(p.$slots, "loader", { key: 1 }, () => [
|
|
1203
|
+
b(be, { "data-cy": "loader" })
|
|
1204
|
+
]) : C("", !0)
|
|
1204
1205
|
])
|
|
1205
1206
|
})),
|
|
1206
|
-
|
|
1207
|
+
p.showFooter ? {
|
|
1207
1208
|
name: "footer",
|
|
1208
|
-
fn:
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
label:
|
|
1212
|
-
class:
|
|
1209
|
+
fn: g(() => [
|
|
1210
|
+
u("div", vt, [
|
|
1211
|
+
b($, {
|
|
1212
|
+
label: p.cancelText,
|
|
1213
|
+
class: B(a.cancelClass),
|
|
1213
1214
|
outlined: "",
|
|
1214
|
-
onClick:
|
|
1215
|
-
id: "cancel-button"
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1215
|
+
onClick: y,
|
|
1216
|
+
id: "cancel-button",
|
|
1217
|
+
type: a.cancelButtonType
|
|
1218
|
+
}, null, 8, ["label", "class", "type"]),
|
|
1219
|
+
b($, {
|
|
1220
|
+
label: p.submitText,
|
|
1221
|
+
class: B([a.submitClass, "ms-auto"]),
|
|
1220
1222
|
onClick: r,
|
|
1221
|
-
id: "submit-button"
|
|
1222
|
-
|
|
1223
|
+
id: "submit-button",
|
|
1224
|
+
type: a.submitButtonType
|
|
1225
|
+
}, null, 8, ["label", "class", "type"])
|
|
1223
1226
|
])
|
|
1224
1227
|
]),
|
|
1225
1228
|
key: "0"
|
|
@@ -1227,9 +1230,9 @@ const pt = { key: 0 }, yt = {
|
|
|
1227
1230
|
]), 1040, ["pt"]);
|
|
1228
1231
|
};
|
|
1229
1232
|
}
|
|
1230
|
-
}),
|
|
1233
|
+
}), yt = ["id"], bt = { key: 0 }, ft = { key: 0 }, gt = { class: "d-flex justify-content-between align-items-center position-relative" }, ht = { key: 1 }, wt = { "data-cy": "readonly-value" }, xt = /* @__PURE__ */ F({
|
|
1231
1234
|
__name: "ForgeInlineEditor",
|
|
1232
|
-
props: /* @__PURE__ */
|
|
1235
|
+
props: /* @__PURE__ */ H({
|
|
1233
1236
|
name: { default: "" },
|
|
1234
1237
|
rules: {},
|
|
1235
1238
|
completeAction: {},
|
|
@@ -1243,13 +1246,13 @@ const pt = { key: 0 }, yt = {
|
|
|
1243
1246
|
}),
|
|
1244
1247
|
emits: ["update:modelValue"],
|
|
1245
1248
|
setup(e) {
|
|
1246
|
-
const t = e,
|
|
1249
|
+
const t = e, l = E(e, "modelValue"), a = M(!1), o = M(), n = () => {
|
|
1247
1250
|
var $;
|
|
1248
|
-
a.value = !a.value, ($ =
|
|
1251
|
+
a.value = !a.value, ($ = o.value) == null || $.focus();
|
|
1249
1252
|
}, i = async () => {
|
|
1250
|
-
if (
|
|
1253
|
+
if (x.value)
|
|
1251
1254
|
return !1;
|
|
1252
|
-
if (
|
|
1255
|
+
if (l.value = p.value, t.completeAction)
|
|
1253
1256
|
try {
|
|
1254
1257
|
await t.completeAction.apply(this, t.params), a.value = !a.value;
|
|
1255
1258
|
} catch {
|
|
@@ -1259,90 +1262,90 @@ const pt = { key: 0 }, yt = {
|
|
|
1259
1262
|
a.value = !a.value;
|
|
1260
1263
|
}, d = () => {
|
|
1261
1264
|
a.value = !a.value;
|
|
1262
|
-
},
|
|
1263
|
-
|
|
1264
|
-
}, { errorMessage: r, errors:
|
|
1265
|
-
|
|
1266
|
-
|
|
1265
|
+
}, y = () => {
|
|
1266
|
+
p.value = null;
|
|
1267
|
+
}, { errorMessage: r, errors: m, value: p } = W(() => t.name, t.rules);
|
|
1268
|
+
ae(() => {
|
|
1269
|
+
p.value = l.value;
|
|
1267
1270
|
});
|
|
1268
|
-
const
|
|
1269
|
-
return ($,
|
|
1270
|
-
const
|
|
1271
|
-
return s(),
|
|
1271
|
+
const x = w(() => m.value.length > 0);
|
|
1272
|
+
return ($, P) => {
|
|
1273
|
+
const S = re, O = R;
|
|
1274
|
+
return s(), v("div", {
|
|
1272
1275
|
id: t.name
|
|
1273
1276
|
}, [
|
|
1274
|
-
$.readonly ? (s(),
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
+
$.readonly ? (s(), v("div", ht, [
|
|
1278
|
+
_($.$slots, "default", {}, () => [
|
|
1279
|
+
u("span", wt, h(c(p)), 1)
|
|
1277
1280
|
])
|
|
1278
|
-
])) : (s(),
|
|
1279
|
-
a.value ? (s(),
|
|
1280
|
-
L((s(),
|
|
1281
|
-
|
|
1282
|
-
class:
|
|
1281
|
+
])) : (s(), v("div", bt, [
|
|
1282
|
+
a.value ? (s(), v("div", ft, [
|
|
1283
|
+
L((s(), v("div", gt, [
|
|
1284
|
+
_($.$slots, "editor", {
|
|
1285
|
+
class: B({ "is-invalid": x.value }),
|
|
1283
1286
|
editFinished: i,
|
|
1284
1287
|
cancel: d,
|
|
1285
|
-
val:
|
|
1288
|
+
val: c(p)
|
|
1286
1289
|
}, () => [
|
|
1287
|
-
|
|
1290
|
+
b(S, {
|
|
1288
1291
|
"data-cy": "input",
|
|
1289
1292
|
ref_key: "input",
|
|
1290
|
-
ref:
|
|
1291
|
-
modelValue:
|
|
1292
|
-
"onUpdate:modelValue":
|
|
1293
|
+
ref: o,
|
|
1294
|
+
modelValue: c(p),
|
|
1295
|
+
"onUpdate:modelValue": P[0] || (P[0] = (f) => le(p) ? p.value = f : null),
|
|
1293
1296
|
modelModifiers: { trim: !0 },
|
|
1294
|
-
class:
|
|
1297
|
+
class: B({ "is-invalid": x.value }),
|
|
1295
1298
|
onKeydown: [
|
|
1296
|
-
|
|
1297
|
-
|
|
1299
|
+
X(i, ["enter"]),
|
|
1300
|
+
X(d, ["esc"])
|
|
1298
1301
|
]
|
|
1299
1302
|
}, null, 8, ["modelValue", "class"])
|
|
1300
1303
|
]),
|
|
1301
|
-
|
|
1304
|
+
b(c(T), {
|
|
1302
1305
|
icon: "bi:x-circle",
|
|
1303
1306
|
class: "mx-2 cursor-pointer",
|
|
1304
|
-
onClick:
|
|
1305
|
-
onKeydown:
|
|
1307
|
+
onClick: y,
|
|
1308
|
+
onKeydown: X(y, ["enter"]),
|
|
1306
1309
|
"data-cy": "clear-icon"
|
|
1307
1310
|
})
|
|
1308
1311
|
])), [
|
|
1309
|
-
[
|
|
1312
|
+
[c($e), i]
|
|
1310
1313
|
])
|
|
1311
|
-
])) : (s(),
|
|
1314
|
+
])) : (s(), v("div", {
|
|
1312
1315
|
key: 1,
|
|
1313
1316
|
class: "d-flex text-muted",
|
|
1314
|
-
onClick:
|
|
1315
|
-
onFocus:
|
|
1317
|
+
onClick: n,
|
|
1318
|
+
onFocus: n
|
|
1316
1319
|
}, [
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
class:
|
|
1320
|
+
_($.$slots, "default", {}, () => [
|
|
1321
|
+
u("div", {
|
|
1322
|
+
class: B(["pe-2 cursor-pointer", { "text-invalid": x.value }]),
|
|
1320
1323
|
"data-cy": "value"
|
|
1321
|
-
}, h(
|
|
1324
|
+
}, h(c(p) ? c(p) : "Click to edit"), 3)
|
|
1322
1325
|
]),
|
|
1323
|
-
|
|
1326
|
+
b(O, {
|
|
1324
1327
|
link: "",
|
|
1325
1328
|
class: "p-0 m-0"
|
|
1326
1329
|
}, {
|
|
1327
|
-
default:
|
|
1328
|
-
|
|
1330
|
+
default: g(() => [
|
|
1331
|
+
b(c(T), {
|
|
1329
1332
|
icon: "bi:pencil",
|
|
1330
|
-
class:
|
|
1333
|
+
class: B(x.value ? "text-invalid" : "text-muted"),
|
|
1331
1334
|
"data-cy": "edit-icon",
|
|
1332
|
-
onKeydown:
|
|
1335
|
+
onKeydown: X(n, ["enter"])
|
|
1333
1336
|
}, null, 8, ["class"])
|
|
1334
1337
|
]),
|
|
1335
1338
|
_: 1
|
|
1336
1339
|
})
|
|
1337
1340
|
], 32))
|
|
1338
1341
|
])),
|
|
1339
|
-
L(
|
|
1342
|
+
L(u("small", {
|
|
1340
1343
|
"data-cy": "error",
|
|
1341
1344
|
class: "text-invalid"
|
|
1342
|
-
}, h(
|
|
1343
|
-
[
|
|
1345
|
+
}, h(c(r)), 513), [
|
|
1346
|
+
[q, x.value]
|
|
1344
1347
|
])
|
|
1345
|
-
], 8,
|
|
1348
|
+
], 8, yt);
|
|
1346
1349
|
};
|
|
1347
1350
|
}
|
|
1348
1351
|
}), kt = ["href"], ul = /* @__PURE__ */ F({
|
|
@@ -1362,7 +1365,7 @@ const pt = { key: 0 }, yt = {
|
|
|
1362
1365
|
unstyled: { type: Boolean }
|
|
1363
1366
|
},
|
|
1364
1367
|
setup(e) {
|
|
1365
|
-
const t = e,
|
|
1368
|
+
const t = e, l = w(() => ({
|
|
1366
1369
|
root: () => ({
|
|
1367
1370
|
class: [
|
|
1368
1371
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1389,28 +1392,28 @@ const pt = { key: 0 }, yt = {
|
|
|
1389
1392
|
]
|
|
1390
1393
|
})
|
|
1391
1394
|
}));
|
|
1392
|
-
return (a,
|
|
1393
|
-
const
|
|
1394
|
-
return s(),
|
|
1395
|
-
pt:
|
|
1395
|
+
return (a, o) => {
|
|
1396
|
+
const n = Be;
|
|
1397
|
+
return s(), k(n, V({ ...t, ...a.$attrs }, {
|
|
1398
|
+
pt: l.value,
|
|
1396
1399
|
"data-cy": "navbar"
|
|
1397
|
-
}),
|
|
1398
|
-
start:
|
|
1399
|
-
|
|
1400
|
+
}), oe({
|
|
1401
|
+
start: g(() => [
|
|
1402
|
+
u("a", {
|
|
1400
1403
|
href: a.logoUrl,
|
|
1401
1404
|
class: "navbar-brand ms-3",
|
|
1402
1405
|
"data-cy": "logo"
|
|
1403
1406
|
}, [
|
|
1404
|
-
|
|
1405
|
-
|
|
1407
|
+
_(a.$slots, "logo", {}, () => [
|
|
1408
|
+
z(" Logo ")
|
|
1406
1409
|
])
|
|
1407
1410
|
], 8, kt)
|
|
1408
1411
|
]),
|
|
1409
|
-
menubuttonicon:
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
+
menubuttonicon: g(() => [
|
|
1413
|
+
_(a.$slots, "menubuttonicon", {}, () => [
|
|
1414
|
+
b(c(T), {
|
|
1412
1415
|
icon: "bi:list",
|
|
1413
|
-
class:
|
|
1416
|
+
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1414
1417
|
height: "24",
|
|
1415
1418
|
"data-cy": "burger-icon"
|
|
1416
1419
|
}, null, 8, ["class"])
|
|
@@ -1418,16 +1421,16 @@ const pt = { key: 0 }, yt = {
|
|
|
1418
1421
|
]),
|
|
1419
1422
|
_: 2
|
|
1420
1423
|
}, [
|
|
1421
|
-
|
|
1424
|
+
j(a.$slots, (i, d) => ({
|
|
1422
1425
|
name: d,
|
|
1423
|
-
fn:
|
|
1424
|
-
|
|
1426
|
+
fn: g((y) => [
|
|
1427
|
+
_(a.$slots, d, ee(te(y)))
|
|
1425
1428
|
])
|
|
1426
1429
|
}))
|
|
1427
1430
|
]), 1040, ["pt"]);
|
|
1428
1431
|
};
|
|
1429
1432
|
}
|
|
1430
|
-
}),
|
|
1433
|
+
}), _t = /* @__PURE__ */ u("div", { class: "ps-1" }, "Select all", -1), $t = ["data-cy"], Bt = { class: "ps-1 w-100" }, Ft = { class: "multiselect__tag d-inline-flex" }, St = { class: "my-auto" }, Ct = /* @__PURE__ */ F({
|
|
1431
1434
|
__name: "ForgeMultiSelect",
|
|
1432
1435
|
props: {
|
|
1433
1436
|
severity: { default: "primary" },
|
|
@@ -1440,93 +1443,93 @@ const pt = { key: 0 }, yt = {
|
|
|
1440
1443
|
},
|
|
1441
1444
|
emits: ["update:modelValue"],
|
|
1442
1445
|
setup(e, { emit: t }) {
|
|
1443
|
-
const
|
|
1444
|
-
const
|
|
1445
|
-
...
|
|
1446
|
-
$isDisabled:
|
|
1446
|
+
const l = e, a = (U, D) => {
|
|
1447
|
+
const J = {
|
|
1448
|
+
...D,
|
|
1449
|
+
$isDisabled: D.$isDisabled ?? !1
|
|
1447
1450
|
};
|
|
1448
|
-
|
|
1449
|
-
},
|
|
1451
|
+
U(J);
|
|
1452
|
+
}, o = me(), n = t, { errors: i, value: d, errorMessage: y } = W(() => l.name, l.rules), r = M(!1), m = w(() => ({
|
|
1450
1453
|
multiple: !0,
|
|
1451
1454
|
label: "label",
|
|
1452
1455
|
trackBy: "id",
|
|
1453
1456
|
showPointer: !r.value,
|
|
1454
|
-
placeholder:
|
|
1457
|
+
placeholder: o.searchable === null || o.searchable ? "Search" : "Select",
|
|
1455
1458
|
allowEmpty: !0,
|
|
1456
1459
|
selectValue: "",
|
|
1457
|
-
closeOnSelect: !!(
|
|
1458
|
-
clearOnSelect: !!(
|
|
1459
|
-
searchable: !!(
|
|
1460
|
+
closeOnSelect: !!(o.multiple === null || o.multiple),
|
|
1461
|
+
clearOnSelect: !!(o.multiple === null || o.multiple),
|
|
1462
|
+
searchable: !!(o.searchable === null || o.searchable) && o.modelValue.length === o.options.length,
|
|
1460
1463
|
async: !1,
|
|
1461
|
-
...
|
|
1462
|
-
})),
|
|
1463
|
-
d.value =
|
|
1464
|
-
},
|
|
1465
|
-
|
|
1466
|
-
},
|
|
1467
|
-
$.value ?
|
|
1464
|
+
...o
|
|
1465
|
+
})), p = w(() => `forge-multiselect-${l.severity}`), x = w(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${$.value ? " multiselect__option--selected" : ""}`), $ = w(() => m.value && !(m.value.multiple || !l.showSelectAll || m.value.async) ? !1 : o.modelValue.length === o.options.length), P = w(() => i.value.length > 0), S = w(() => !!((o.allowEmpty == null || o.allowEmpty) && l.showClearSelection && (m.value.multiple ? o.modelValue.length > 0 : o.modelValue))), O = () => r.value = !0, f = () => r.value = !1, I = () => {
|
|
1466
|
+
d.value = m.value.multiple ? [] : null, n("update:modelValue", d.value);
|
|
1467
|
+
}, Y = (U) => {
|
|
1468
|
+
n("update:modelValue", l.selectValue ? U.map((D) => D[l.selectValue]) : U);
|
|
1469
|
+
}, Z = (U) => o.modelValue !== null ? o.modelValue.some((D) => m.value.selectValue ? U[l.selectValue] === D : U.id === D.id && U.label === D.label) : !1, se = () => {
|
|
1470
|
+
$.value ? I() : (d.value = [...o.options], n("update:modelValue", [...o.options]));
|
|
1468
1471
|
};
|
|
1469
|
-
return (
|
|
1470
|
-
const
|
|
1471
|
-
return s(),
|
|
1472
|
-
|
|
1473
|
-
class: [
|
|
1472
|
+
return (U, D) => {
|
|
1473
|
+
const J = ye;
|
|
1474
|
+
return s(), v(N, null, [
|
|
1475
|
+
b(c(Fe), V(m.value, {
|
|
1476
|
+
class: [p.value, P.value ? "is-invalid" : ""],
|
|
1474
1477
|
"data-cy": "multiselect",
|
|
1475
1478
|
"onUpdate:modelValue": [
|
|
1476
|
-
|
|
1477
|
-
|
|
1479
|
+
Y,
|
|
1480
|
+
D[1] || (D[1] = (A) => le(d) ? d.value = A : null)
|
|
1478
1481
|
],
|
|
1479
|
-
modelValue:
|
|
1480
|
-
}),
|
|
1481
|
-
caret:
|
|
1482
|
-
|
|
1482
|
+
modelValue: c(d)
|
|
1483
|
+
}), oe({
|
|
1484
|
+
caret: g(({ toggle: A }) => [
|
|
1485
|
+
S.value ? (s(), k(c(T), {
|
|
1483
1486
|
key: 0,
|
|
1484
1487
|
icon: "bi:x",
|
|
1485
1488
|
class: "my-auto multiselect__clear-icon",
|
|
1486
|
-
onMousedown:
|
|
1489
|
+
onMousedown: D[0] || (D[0] = G((K) => I(), ["prevent", "stop"])),
|
|
1487
1490
|
"data-cy": "clear",
|
|
1488
1491
|
height: "18px",
|
|
1489
1492
|
width: "18px"
|
|
1490
|
-
})) :
|
|
1491
|
-
|
|
1493
|
+
})) : C("", !0),
|
|
1494
|
+
b(c(T), {
|
|
1492
1495
|
icon: "bi:chevron-down",
|
|
1493
|
-
onClick:
|
|
1496
|
+
onClick: A,
|
|
1494
1497
|
class: "multiselect__select"
|
|
1495
1498
|
}, null, 8, ["onClick"])
|
|
1496
1499
|
]),
|
|
1497
|
-
tag:
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1500
|
+
tag: g(({ option: A, remove: K }) => [
|
|
1501
|
+
u("div", Ft, [
|
|
1502
|
+
u("div", St, h(A.label), 1),
|
|
1503
|
+
b(c(T), {
|
|
1501
1504
|
icon: "bi:x",
|
|
1502
1505
|
class: "my-auto multiselect__tag-icon",
|
|
1503
|
-
onMousedown: G((Ia) => a(K,
|
|
1506
|
+
onMousedown: G((Ia) => a(K, A), ["prevent", "stop"]),
|
|
1504
1507
|
height: "18px",
|
|
1505
1508
|
width: "18px"
|
|
1506
1509
|
}, null, 8, ["onMousedown"])
|
|
1507
1510
|
])
|
|
1508
1511
|
]),
|
|
1509
|
-
default:
|
|
1510
|
-
(s(!0),
|
|
1512
|
+
default: g(() => [
|
|
1513
|
+
(s(!0), v(N, null, j(U.$slots, (A, K) => _(U.$slots, K, { slot: K })), 256))
|
|
1511
1514
|
]),
|
|
1512
1515
|
_: 2
|
|
1513
1516
|
}, [
|
|
1514
|
-
|
|
1517
|
+
m.value.multiple && U.showSelectAll && !m.value.async ? {
|
|
1515
1518
|
name: "beforeList",
|
|
1516
|
-
fn:
|
|
1517
|
-
|
|
1519
|
+
fn: g(() => [
|
|
1520
|
+
u("li", {
|
|
1518
1521
|
class: "multiselect__element",
|
|
1519
|
-
onClick:
|
|
1520
|
-
onMouseover:
|
|
1521
|
-
onMouseleave:
|
|
1522
|
+
onClick: se,
|
|
1523
|
+
onMouseover: O,
|
|
1524
|
+
onMouseleave: f,
|
|
1522
1525
|
"data-cy": "toggle-all"
|
|
1523
1526
|
}, [
|
|
1524
|
-
|
|
1525
|
-
class:
|
|
1527
|
+
u("span", {
|
|
1528
|
+
class: B(`${x.value}`)
|
|
1526
1529
|
}, [
|
|
1527
|
-
|
|
1528
|
-
default:
|
|
1529
|
-
|
|
1530
|
+
b(J, { value: $.value }, {
|
|
1531
|
+
default: g(() => [
|
|
1532
|
+
_t
|
|
1530
1533
|
]),
|
|
1531
1534
|
_: 1
|
|
1532
1535
|
}, 8, ["value"])
|
|
@@ -1535,31 +1538,31 @@ const pt = { key: 0 }, yt = {
|
|
|
1535
1538
|
]),
|
|
1536
1539
|
key: "0"
|
|
1537
1540
|
} : void 0,
|
|
1538
|
-
|
|
1541
|
+
m.value.multiple ? {
|
|
1539
1542
|
name: "option",
|
|
1540
|
-
fn:
|
|
1541
|
-
|
|
1542
|
-
"data-cy":
|
|
1543
|
+
fn: g(({ option: A }) => [
|
|
1544
|
+
u("div", {
|
|
1545
|
+
"data-cy": A.label
|
|
1543
1546
|
}, [
|
|
1544
|
-
(s(),
|
|
1545
|
-
value:
|
|
1546
|
-
key:
|
|
1547
|
+
(s(), k(J, {
|
|
1548
|
+
value: Z(A),
|
|
1549
|
+
key: A
|
|
1547
1550
|
}, {
|
|
1548
|
-
default:
|
|
1549
|
-
|
|
1551
|
+
default: g(() => [
|
|
1552
|
+
u("div", Bt, h(A[m.value.label]), 1)
|
|
1550
1553
|
]),
|
|
1551
1554
|
_: 2
|
|
1552
1555
|
}, 1032, ["value"]))
|
|
1553
|
-
], 8,
|
|
1556
|
+
], 8, $t)
|
|
1554
1557
|
]),
|
|
1555
1558
|
key: "1"
|
|
1556
1559
|
} : void 0
|
|
1557
1560
|
]), 1040, ["class", "modelValue"]),
|
|
1558
|
-
L(
|
|
1561
|
+
L(u("small", {
|
|
1559
1562
|
"data-cy": "error",
|
|
1560
1563
|
class: "invalid-feedback"
|
|
1561
|
-
}, h(
|
|
1562
|
-
[
|
|
1564
|
+
}, h(c(y)), 513), [
|
|
1565
|
+
[q, P.value]
|
|
1563
1566
|
])
|
|
1564
1567
|
], 64);
|
|
1565
1568
|
};
|
|
@@ -1567,11 +1570,11 @@ const pt = { key: 0 }, yt = {
|
|
|
1567
1570
|
}), Vt = {
|
|
1568
1571
|
key: 0,
|
|
1569
1572
|
class: "pl-1"
|
|
1570
|
-
}, Tt = { class: "border alternating-item-list" },
|
|
1573
|
+
}, Tt = { class: "border alternating-item-list" }, Pt = {
|
|
1571
1574
|
key: 0,
|
|
1572
1575
|
class: "p-2 border-top border-bottom",
|
|
1573
1576
|
"data-cy": "title"
|
|
1574
|
-
},
|
|
1577
|
+
}, Mt = { class: "d-inline-block" }, It = {
|
|
1575
1578
|
key: 1,
|
|
1576
1579
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1577
1580
|
}, cl = /* @__PURE__ */ F({
|
|
@@ -1585,77 +1588,77 @@ const pt = { key: 0 }, yt = {
|
|
|
1585
1588
|
},
|
|
1586
1589
|
emits: ["update:modelValue"],
|
|
1587
1590
|
setup(e, { emit: t }) {
|
|
1588
|
-
const
|
|
1589
|
-
|
|
1590
|
-
},
|
|
1591
|
-
d(a.modelValue.filter((
|
|
1591
|
+
const l = e, a = me(), o = t, n = w(() => `${a.modelValue.length} selected`), i = w(() => a.modelValue.length), d = (r) => {
|
|
1592
|
+
o("update:modelValue", r);
|
|
1593
|
+
}, y = (r) => {
|
|
1594
|
+
d(a.modelValue.filter((m) => m.id !== r));
|
|
1592
1595
|
};
|
|
1593
|
-
return (r,
|
|
1594
|
-
const
|
|
1595
|
-
return s(),
|
|
1596
|
-
class:
|
|
1596
|
+
return (r, m) => {
|
|
1597
|
+
const p = R;
|
|
1598
|
+
return s(), v("div", {
|
|
1599
|
+
class: B(r.orientation === "column" ? "row" : ""),
|
|
1597
1600
|
"data-cy": "multiselect-preview"
|
|
1598
1601
|
}, [
|
|
1599
|
-
|
|
1600
|
-
class:
|
|
1602
|
+
u("div", {
|
|
1603
|
+
class: B(r.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1601
1604
|
"data-cy": "multiselect-container"
|
|
1602
1605
|
}, [
|
|
1603
|
-
|
|
1606
|
+
b(Ct, {
|
|
1604
1607
|
"onUpdate:modelValue": [
|
|
1605
|
-
|
|
1606
|
-
|
|
1608
|
+
m[0] || (m[0] = (x) => d(x)),
|
|
1609
|
+
m[1] || (m[1] = (x) => r.$attrs.modelValue = x)
|
|
1607
1610
|
],
|
|
1608
1611
|
modelValue: r.$attrs.modelValue,
|
|
1609
|
-
"limit-text":
|
|
1610
|
-
options:
|
|
1612
|
+
"limit-text": n.value,
|
|
1613
|
+
options: l.options
|
|
1611
1614
|
}, {
|
|
1612
|
-
tag:
|
|
1613
|
-
|
|
1615
|
+
tag: g(() => [
|
|
1616
|
+
z(h(""))
|
|
1614
1617
|
]),
|
|
1615
|
-
selection:
|
|
1616
|
-
r.$attrs.modelValue.length > 0 ? (s(),
|
|
1618
|
+
selection: g(() => [
|
|
1619
|
+
r.$attrs.modelValue.length > 0 ? (s(), v("span", Vt, h(i.value) + " items selected", 1)) : C("", !0)
|
|
1617
1620
|
]),
|
|
1618
|
-
default:
|
|
1619
|
-
(s(!0),
|
|
1621
|
+
default: g(() => [
|
|
1622
|
+
(s(!0), v(N, null, j(r.$slots, (x, $) => _(r.$slots, $, { slot: $ })), 256))
|
|
1620
1623
|
]),
|
|
1621
1624
|
_: 3
|
|
1622
1625
|
}, 8, ["modelValue", "limit-text", "options"]),
|
|
1623
|
-
|
|
1626
|
+
_(r.$slots, "after-multi-select")
|
|
1624
1627
|
], 2),
|
|
1625
|
-
|
|
1626
|
-
class:
|
|
1628
|
+
u("div", {
|
|
1629
|
+
class: B(r.orientation === "row" ? "col-12" : "col"),
|
|
1627
1630
|
"data-cy": "options-preview"
|
|
1628
1631
|
}, [
|
|
1629
|
-
|
|
1632
|
+
u("div", {
|
|
1630
1633
|
style: he({ height: r.height }),
|
|
1631
1634
|
class: "overflow-auto"
|
|
1632
1635
|
}, [
|
|
1633
|
-
|
|
1634
|
-
r.title ? (s(),
|
|
1635
|
-
(s(!0),
|
|
1636
|
-
key:
|
|
1636
|
+
u("div", Tt, [
|
|
1637
|
+
r.title ? (s(), v("div", Pt, h(r.title), 1)) : C("", !0),
|
|
1638
|
+
(s(!0), v(N, null, j(r.$attrs.modelValue, (x) => (s(), v("div", {
|
|
1639
|
+
key: x.id,
|
|
1637
1640
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1638
1641
|
}, [
|
|
1639
|
-
|
|
1640
|
-
|
|
1642
|
+
_(r.$slots, "list-item", { item: x }, () => [
|
|
1643
|
+
u("span", Mt, h(x.shortLabel ? x.shortLabel : x.label), 1)
|
|
1641
1644
|
]),
|
|
1642
|
-
r.canRemoveItemFromPreview ? (s(),
|
|
1645
|
+
r.canRemoveItemFromPreview ? (s(), k(p, {
|
|
1643
1646
|
key: 0,
|
|
1644
1647
|
link: "",
|
|
1645
1648
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1646
|
-
onClick: ($) =>
|
|
1649
|
+
onClick: ($) => y(x.id)
|
|
1647
1650
|
}, {
|
|
1648
|
-
default:
|
|
1649
|
-
|
|
1651
|
+
default: g(() => [
|
|
1652
|
+
b(c(T), {
|
|
1650
1653
|
icon: "bi:x",
|
|
1651
1654
|
class: "close-icon",
|
|
1652
|
-
"data-cy": `close-icon-${
|
|
1655
|
+
"data-cy": `close-icon-${x.id}`
|
|
1653
1656
|
}, null, 8, ["data-cy"])
|
|
1654
1657
|
]),
|
|
1655
1658
|
_: 2
|
|
1656
|
-
}, 1032, ["onClick"])) :
|
|
1659
|
+
}, 1032, ["onClick"])) : C("", !0)
|
|
1657
1660
|
]))), 128)),
|
|
1658
|
-
r.$attrs.modelValue.length === 0 ? (s(),
|
|
1661
|
+
r.$attrs.modelValue.length === 0 ? (s(), v("div", It, "No Items Selected.")) : C("", !0)
|
|
1659
1662
|
])
|
|
1660
1663
|
], 4)
|
|
1661
1664
|
], 2)
|
|
@@ -1675,16 +1678,16 @@ const pt = { key: 0 }, yt = {
|
|
|
1675
1678
|
},
|
|
1676
1679
|
setup(e) {
|
|
1677
1680
|
const t = e;
|
|
1678
|
-
return (
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1681
|
+
return (l, a) => (s(), v("div", zt, [
|
|
1682
|
+
u("h3", Ot, h(t.title), 1),
|
|
1683
|
+
u("div", Dt, [
|
|
1684
|
+
_(l.$slots, "default")
|
|
1682
1685
|
])
|
|
1683
1686
|
]));
|
|
1684
1687
|
}
|
|
1685
1688
|
}), Ut = { "data-cy": "before-slot" }, At = { class: "position-relative" }, Nt = { "data-cy": "after-slot" }, Et = /* @__PURE__ */ F({
|
|
1686
1689
|
__name: "ForgeDatepicker",
|
|
1687
|
-
props: /* @__PURE__ */
|
|
1690
|
+
props: /* @__PURE__ */ H({
|
|
1688
1691
|
severity: { default: "primary" },
|
|
1689
1692
|
modelValue: {},
|
|
1690
1693
|
selectionMode: { default: "single" },
|
|
@@ -1743,6 +1746,7 @@ const pt = { key: 0 }, yt = {
|
|
|
1743
1746
|
panelStyle: {},
|
|
1744
1747
|
panelClass: {},
|
|
1745
1748
|
panelProps: {},
|
|
1749
|
+
name: {},
|
|
1746
1750
|
ariaLabelledby: {},
|
|
1747
1751
|
ariaLabel: {},
|
|
1748
1752
|
pt: {},
|
|
@@ -1754,35 +1758,35 @@ const pt = { key: 0 }, yt = {
|
|
|
1754
1758
|
}),
|
|
1755
1759
|
emits: ["update:modelValue"],
|
|
1756
1760
|
setup(e) {
|
|
1757
|
-
const t = e,
|
|
1758
|
-
|
|
1759
|
-
},
|
|
1760
|
-
day: ({ context:
|
|
1761
|
+
const t = e, l = E(e, "modelValue"), a = () => {
|
|
1762
|
+
l.value = null;
|
|
1763
|
+
}, o = w(() => ({
|
|
1764
|
+
day: ({ context: n }) => ({
|
|
1761
1765
|
class: [
|
|
1762
1766
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
1763
1767
|
{
|
|
1764
|
-
"cursor-pointer": !
|
|
1765
|
-
"pe-none":
|
|
1766
|
-
"text-white":
|
|
1768
|
+
"cursor-pointer": !n.disabled,
|
|
1769
|
+
"pe-none": n.disabled,
|
|
1770
|
+
"text-white": n.selected
|
|
1767
1771
|
},
|
|
1768
1772
|
// Severities
|
|
1769
1773
|
{
|
|
1770
|
-
selected:
|
|
1771
|
-
"text-primary": !
|
|
1772
|
-
"text-brand": !
|
|
1773
|
-
"text-secondary": !
|
|
1774
|
-
"text-success": !
|
|
1775
|
-
"text-warning": !
|
|
1776
|
-
"text-danger": !
|
|
1777
|
-
"text-info": !
|
|
1774
|
+
selected: n.selected && !n.disabled,
|
|
1775
|
+
"text-primary": !n.selected && n.today && (t.severity === void 0 || t.severity === "primary"),
|
|
1776
|
+
"text-brand": !n.selected && n.today && t.severity === "brand",
|
|
1777
|
+
"text-secondary": !n.selected && n.today && t.severity === "secondary",
|
|
1778
|
+
"text-success": !n.selected && n.today && t.severity === "success",
|
|
1779
|
+
"text-warning": !n.selected && n.today && t.severity === "warning",
|
|
1780
|
+
"text-danger": !n.selected && n.today && t.severity === "danger",
|
|
1781
|
+
"text-info": !n.selected && n.today && t.severity === "info"
|
|
1778
1782
|
}
|
|
1779
1783
|
]
|
|
1780
1784
|
}),
|
|
1781
|
-
dayLabel: ({ context:
|
|
1785
|
+
dayLabel: ({ context: n }) => ({
|
|
1782
1786
|
class: [
|
|
1783
1787
|
// Disabled States
|
|
1784
1788
|
{
|
|
1785
|
-
"text-muted":
|
|
1789
|
+
"text-muted": n.disabled
|
|
1786
1790
|
}
|
|
1787
1791
|
]
|
|
1788
1792
|
}),
|
|
@@ -1818,65 +1822,65 @@ const pt = { key: 0 }, yt = {
|
|
|
1818
1822
|
]
|
|
1819
1823
|
})
|
|
1820
1824
|
},
|
|
1821
|
-
year: ({ context:
|
|
1825
|
+
year: ({ context: n }) => ({
|
|
1822
1826
|
class: [
|
|
1823
1827
|
"col-3 text-center cursor-pointer py-2",
|
|
1824
1828
|
{
|
|
1825
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
1826
|
-
"text-brand": t.severity === "brand" &&
|
|
1827
|
-
"text-secondary": t.severity === "secondary" &&
|
|
1828
|
-
"text-success": t.severity === "success" &&
|
|
1829
|
-
"text-warning": t.severity === "warning" &&
|
|
1830
|
-
"text-danger": t.severity === "danger" &&
|
|
1831
|
-
"text-info": t.severity === "info" &&
|
|
1829
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1830
|
+
"text-brand": t.severity === "brand" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1831
|
+
"text-secondary": t.severity === "secondary" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1832
|
+
"text-success": t.severity === "success" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1833
|
+
"text-warning": t.severity === "warning" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1834
|
+
"text-danger": t.severity === "danger" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1835
|
+
"text-info": t.severity === "info" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear()
|
|
1832
1836
|
}
|
|
1833
1837
|
]
|
|
1834
1838
|
}),
|
|
1835
|
-
month: ({ context:
|
|
1839
|
+
month: ({ context: n }) => ({
|
|
1836
1840
|
class: [
|
|
1837
1841
|
"col-3 text-center cursor-pointer py-2",
|
|
1838
1842
|
{
|
|
1839
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
1840
|
-
"text-brand": t.severity === "brand" &&
|
|
1841
|
-
"text-secondary": t.severity === "secondary" &&
|
|
1842
|
-
"text-success": t.severity === "success" &&
|
|
1843
|
-
"text-warning": t.severity === "warning" &&
|
|
1844
|
-
"text-danger": t.severity === "danger" &&
|
|
1845
|
-
"text-info": t.severity === "info" &&
|
|
1843
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1844
|
+
"text-brand": t.severity === "brand" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1845
|
+
"text-secondary": t.severity === "secondary" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1846
|
+
"text-success": t.severity === "success" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1847
|
+
"text-warning": t.severity === "warning" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1848
|
+
"text-danger": t.severity === "danger" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1849
|
+
"text-info": t.severity === "info" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
|
|
1846
1850
|
}
|
|
1847
1851
|
]
|
|
1848
1852
|
})
|
|
1849
1853
|
}));
|
|
1850
|
-
return (
|
|
1854
|
+
return (n, i) => {
|
|
1851
1855
|
const d = Se;
|
|
1852
|
-
return s(),
|
|
1853
|
-
|
|
1854
|
-
|
|
1856
|
+
return s(), v(N, null, [
|
|
1857
|
+
u("span", Ut, [
|
|
1858
|
+
_(n.$slots, "before")
|
|
1855
1859
|
]),
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
pt:
|
|
1859
|
-
modelValue:
|
|
1860
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1860
|
+
u("div", At, [
|
|
1861
|
+
b(d, V({ ...t, ...n.$attrs }, {
|
|
1862
|
+
pt: o.value,
|
|
1863
|
+
modelValue: l.value,
|
|
1864
|
+
"onUpdate:modelValue": i[0] || (i[0] = (y) => l.value = y)
|
|
1861
1865
|
}), null, 16, ["pt", "modelValue"]),
|
|
1862
|
-
L(
|
|
1866
|
+
L(b(c(T), {
|
|
1863
1867
|
"data-cy": "icon",
|
|
1864
1868
|
icon: "bi:calendar4",
|
|
1865
1869
|
class: "position-absolute end-0 top-50 bottom-50 my-auto me-2 text-muted"
|
|
1866
1870
|
}, null, 512), [
|
|
1867
|
-
[
|
|
1871
|
+
[q, t.showIcon]
|
|
1868
1872
|
]),
|
|
1869
|
-
L(
|
|
1873
|
+
L(b(c(T), {
|
|
1870
1874
|
"data-cy": "icon",
|
|
1871
1875
|
icon: "bi:x",
|
|
1872
1876
|
onClick: a,
|
|
1873
|
-
class:
|
|
1877
|
+
class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
1874
1878
|
}, null, 8, ["class"]), [
|
|
1875
|
-
[
|
|
1879
|
+
[q, t.modelValue]
|
|
1876
1880
|
])
|
|
1877
1881
|
]),
|
|
1878
|
-
|
|
1879
|
-
|
|
1882
|
+
u("span", Nt, [
|
|
1883
|
+
_(n.$slots, "after")
|
|
1880
1884
|
])
|
|
1881
1885
|
], 64);
|
|
1882
1886
|
};
|
|
@@ -1888,12 +1892,12 @@ const pt = { key: 0 }, yt = {
|
|
|
1888
1892
|
currentCount: {}
|
|
1889
1893
|
},
|
|
1890
1894
|
setup(e) {
|
|
1891
|
-
const t = e,
|
|
1892
|
-
return (a,
|
|
1893
|
-
class:
|
|
1894
|
-
}, "Remaining characters: " + h(
|
|
1895
|
+
const t = e, l = w(() => t.maxCount - t.currentCount);
|
|
1896
|
+
return (a, o) => (s(), v("div", {
|
|
1897
|
+
class: B(l.value < 0 ? "text-danger" : "")
|
|
1898
|
+
}, "Remaining characters: " + h(l.value), 3));
|
|
1895
1899
|
}
|
|
1896
|
-
}), Rt = /* @__PURE__ */
|
|
1900
|
+
}), Rt = /* @__PURE__ */ u("hr", null, null, -1), Lt = { class: "d-flex justify-content-between" }, vl = /* @__PURE__ */ F({
|
|
1897
1901
|
__name: "ForgeForm",
|
|
1898
1902
|
props: {
|
|
1899
1903
|
onSubmit: {},
|
|
@@ -1905,150 +1909,174 @@ const pt = { key: 0 }, yt = {
|
|
|
1905
1909
|
hideCancel: { type: Boolean, default: !1 }
|
|
1906
1910
|
},
|
|
1907
1911
|
setup(e) {
|
|
1908
|
-
const t = e,
|
|
1912
|
+
const t = e, l = M(!1), a = M({
|
|
1909
1913
|
hasError: !1,
|
|
1910
1914
|
message: ""
|
|
1911
1915
|
});
|
|
1912
|
-
async function
|
|
1913
|
-
|
|
1916
|
+
async function o() {
|
|
1917
|
+
l.value = !0, a.value.hasError = !1;
|
|
1914
1918
|
try {
|
|
1915
1919
|
await t.onSubmit();
|
|
1916
|
-
} catch (
|
|
1917
|
-
a.value.hasError = !0,
|
|
1920
|
+
} catch (n) {
|
|
1921
|
+
a.value.hasError = !0, n.message && (a.value.message = n.message);
|
|
1918
1922
|
}
|
|
1919
|
-
|
|
1923
|
+
l.value = !1;
|
|
1920
1924
|
}
|
|
1921
|
-
return (
|
|
1922
|
-
const d =
|
|
1923
|
-
return s(),
|
|
1925
|
+
return (n, i) => {
|
|
1926
|
+
const d = R;
|
|
1927
|
+
return s(), v("form", V(n.$attrs, {
|
|
1924
1928
|
novalidate: "",
|
|
1925
1929
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
1926
|
-
onSubmit: G(
|
|
1930
|
+
onSubmit: G(o, ["prevent"])
|
|
1927
1931
|
}), [
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
class:
|
|
1932
|
+
n.hideTitle ? C("", !0) : (s(), v(N, { key: 0 }, [
|
|
1933
|
+
_(n.$slots, "title", {}, () => [
|
|
1934
|
+
u("h3", {
|
|
1935
|
+
class: B(n.titleClass),
|
|
1932
1936
|
"data-cy": "form-title"
|
|
1933
|
-
}, h(
|
|
1937
|
+
}, h(n.title), 3)
|
|
1934
1938
|
]),
|
|
1935
1939
|
Rt
|
|
1936
1940
|
], 64)),
|
|
1937
|
-
a.value.hasError ? (s(),
|
|
1941
|
+
a.value.hasError ? (s(), k(ne, {
|
|
1938
1942
|
key: 1,
|
|
1939
1943
|
severity: "danger",
|
|
1940
1944
|
"data-cy": "error"
|
|
1941
1945
|
}, {
|
|
1942
|
-
default:
|
|
1943
|
-
|
|
1946
|
+
default: g(() => [
|
|
1947
|
+
_(n.$slots, "error", {
|
|
1944
1948
|
error: a.value.message
|
|
1945
1949
|
}, () => [
|
|
1946
|
-
|
|
1950
|
+
z(h(a.value.message), 1)
|
|
1947
1951
|
])
|
|
1948
1952
|
]),
|
|
1949
1953
|
_: 3
|
|
1950
|
-
})) :
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1954
|
+
})) : C("", !0),
|
|
1955
|
+
_(n.$slots, "default"),
|
|
1956
|
+
u("div", Lt, [
|
|
1957
|
+
_(n.$slots, "cancel", {}, () => [
|
|
1958
|
+
n.hideCancel ? C("", !0) : (s(), k(d, {
|
|
1955
1959
|
key: 0,
|
|
1956
1960
|
"data-cy": "cancel-btn",
|
|
1957
1961
|
type: "reset",
|
|
1958
1962
|
severity: "secondary",
|
|
1959
1963
|
outlined: "",
|
|
1960
|
-
onClick: i[0] || (i[0] = (
|
|
1964
|
+
onClick: i[0] || (i[0] = (y) => n.$emit("cancel"))
|
|
1961
1965
|
}, {
|
|
1962
|
-
default:
|
|
1963
|
-
|
|
1966
|
+
default: g(() => [
|
|
1967
|
+
z(h(n.cancelText), 1)
|
|
1964
1968
|
]),
|
|
1965
1969
|
_: 1
|
|
1966
1970
|
}))
|
|
1967
1971
|
]),
|
|
1968
|
-
|
|
1969
|
-
|
|
1972
|
+
_(n.$slots, "submit", { submit: o }, () => [
|
|
1973
|
+
b(d, {
|
|
1970
1974
|
"data-cy": "submit-btn",
|
|
1971
1975
|
type: "submit",
|
|
1972
1976
|
severity: "primary",
|
|
1973
1977
|
class: "ms-auto"
|
|
1974
1978
|
}, {
|
|
1975
|
-
default:
|
|
1976
|
-
|
|
1979
|
+
default: g(() => [
|
|
1980
|
+
z(h(n.submitText), 1)
|
|
1977
1981
|
]),
|
|
1978
1982
|
_: 1
|
|
1979
1983
|
})
|
|
1980
1984
|
])
|
|
1981
1985
|
]),
|
|
1982
|
-
|
|
1986
|
+
l.value ? (s(), k(be, {
|
|
1983
1987
|
key: 2,
|
|
1984
1988
|
"data-cy": "loading-spinner"
|
|
1985
|
-
})) :
|
|
1989
|
+
})) : C("", !0)
|
|
1986
1990
|
], 16);
|
|
1987
1991
|
};
|
|
1988
1992
|
}
|
|
1989
|
-
}), Ht = {
|
|
1993
|
+
}), Ht = {
|
|
1994
|
+
key: 1,
|
|
1995
|
+
class: "d-flex flex-column"
|
|
1996
|
+
}, jt = ["for"], yl = /* @__PURE__ */ F({
|
|
1990
1997
|
__name: "ForgeFormField",
|
|
1991
|
-
props: {
|
|
1998
|
+
props: /* @__PURE__ */ H({
|
|
1992
1999
|
name: {},
|
|
1993
2000
|
label: {},
|
|
1994
2001
|
type: { default: "text" },
|
|
1995
|
-
rules: {},
|
|
1996
2002
|
mask: { default: "" },
|
|
1997
2003
|
placeholder: { default: "" }
|
|
1998
|
-
},
|
|
2004
|
+
}, {
|
|
2005
|
+
modelValue: {},
|
|
2006
|
+
modelModifiers: {}
|
|
2007
|
+
}),
|
|
2008
|
+
emits: ["update:modelValue"],
|
|
1999
2009
|
setup(e) {
|
|
2000
|
-
const t = e,
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2010
|
+
const t = E(e, "modelValue"), l = e, a = (m) => {
|
|
2011
|
+
l.type == "number" ? d(m.value) : d(m);
|
|
2012
|
+
}, { errors: o, value: n, errorMessage: i, handleChange: d, handleBlur: y } = W(() => l.name, void 0, {
|
|
2013
|
+
initialValue: t.value
|
|
2014
|
+
}), r = w(() => o.value.length > 0);
|
|
2015
|
+
return ie(() => n.value, (m) => {
|
|
2016
|
+
t.value = m;
|
|
2017
|
+
}, { immediate: !0 }), (m, p) => {
|
|
2018
|
+
const x = Ve, $ = Ce, P = re;
|
|
2019
|
+
return l.type === "checkbox" ? (s(), k(ye, V({
|
|
2020
|
+
key: 0,
|
|
2021
|
+
id: l.name,
|
|
2022
|
+
label: l.label
|
|
2023
|
+
}, m.$attrs, {
|
|
2024
|
+
name: l.name,
|
|
2025
|
+
modelValue: t.value,
|
|
2026
|
+
"onUpdate:modelValue": p[0] || (p[0] = (S) => t.value = S)
|
|
2027
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (s(), v("div", Ht, [
|
|
2028
|
+
u("label", {
|
|
2029
|
+
for: l.name
|
|
2030
|
+
}, h(l.label), 9, jt),
|
|
2031
|
+
l.type === "number" ? (s(), k(c(pe), V({
|
|
2005
2032
|
key: 0,
|
|
2006
|
-
|
|
2007
|
-
},
|
|
2008
|
-
|
|
2033
|
+
id: l.name
|
|
2034
|
+
}, m.$attrs, {
|
|
2035
|
+
placeholder: l.placeholder,
|
|
2036
|
+
"input-class": { "is-invalid": r.value },
|
|
2037
|
+
class: { "is-invalid": r.value },
|
|
2038
|
+
modelValue: t.value,
|
|
2039
|
+
"onUpdate:modelValue": p[1] || (p[1] = (S) => t.value = S),
|
|
2040
|
+
onInput: a
|
|
2041
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (s(), k(x, V({
|
|
2009
2042
|
key: 1,
|
|
2010
|
-
id:
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2043
|
+
id: l.name
|
|
2044
|
+
}, m.$attrs, {
|
|
2045
|
+
placeholder: l.placeholder,
|
|
2046
|
+
class: { "is-invalid": r.value },
|
|
2047
|
+
modelValue: t.value,
|
|
2048
|
+
"onUpdate:modelValue": p[2] || (p[2] = (S) => t.value = S),
|
|
2049
|
+
onInput: a,
|
|
2050
|
+
onBlur: c(y)
|
|
2051
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (s(), k($, V({
|
|
2014
2052
|
key: 2,
|
|
2015
|
-
id:
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2053
|
+
id: l.name
|
|
2054
|
+
}, m.$attrs, {
|
|
2055
|
+
placeholder: l.placeholder,
|
|
2056
|
+
mask: l.mask,
|
|
2057
|
+
class: { "is-invalid": r.value },
|
|
2058
|
+
modelValue: t.value,
|
|
2059
|
+
"onUpdate:modelValue": p[3] || (p[3] = (S) => t.value = S),
|
|
2060
|
+
onInput: a,
|
|
2061
|
+
onBlur: c(y)
|
|
2062
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (s(), k(P, V({
|
|
2022
2063
|
key: 3,
|
|
2023
|
-
id:
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
"onUpdate:modelValue": d[2] || (d[2] = (y) => j(a) ? a.value = y : null),
|
|
2034
|
-
mask: t.mask,
|
|
2035
|
-
class: { "is-invalid": o.value }
|
|
2036
|
-
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "mask", "class"])) : t.type === "text" ? (s(), w(g, S({
|
|
2037
|
-
key: 5,
|
|
2038
|
-
id: t.name,
|
|
2039
|
-
placeholder: t.placeholder,
|
|
2040
|
-
modelValue: u(a),
|
|
2041
|
-
"onUpdate:modelValue": d[3] || (d[3] = (y) => j(a) ? a.value = y : null),
|
|
2042
|
-
class: { "is-invalid": o.value }
|
|
2043
|
-
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : B("", !0),
|
|
2044
|
-
t.type !== "checkbox" ? L((s(), p("small", {
|
|
2045
|
-
key: 6,
|
|
2064
|
+
id: l.name
|
|
2065
|
+
}, m.$attrs, {
|
|
2066
|
+
placeholder: l.placeholder,
|
|
2067
|
+
class: { "is-invalid": r.value },
|
|
2068
|
+
modelValue: t.value,
|
|
2069
|
+
"onUpdate:modelValue": p[4] || (p[4] = (S) => t.value = S),
|
|
2070
|
+
onInput: a,
|
|
2071
|
+
onBlur: c(y)
|
|
2072
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : C("", !0),
|
|
2073
|
+
L(u("small", {
|
|
2046
2074
|
"data-cy": "error",
|
|
2047
2075
|
class: "invalid-feedback"
|
|
2048
|
-
}, h(
|
|
2049
|
-
[
|
|
2050
|
-
])
|
|
2051
|
-
]);
|
|
2076
|
+
}, h(c(i)), 513), [
|
|
2077
|
+
[q, r.value]
|
|
2078
|
+
])
|
|
2079
|
+
]));
|
|
2052
2080
|
};
|
|
2053
2081
|
}
|
|
2054
2082
|
}), bl = /* @__PURE__ */ F({
|
|
@@ -2079,9 +2107,9 @@ const pt = { key: 0 }, yt = {
|
|
|
2079
2107
|
unstyled: { type: Boolean }
|
|
2080
2108
|
},
|
|
2081
2109
|
setup(e) {
|
|
2082
|
-
const t = e, { errors:
|
|
2110
|
+
const t = e, { errors: l, value: a, errorMessage: o } = W(() => t.name, t.rules);
|
|
2083
2111
|
a.value = t.modelValue;
|
|
2084
|
-
const
|
|
2112
|
+
const n = w(() => l.value.length > 0), i = w(() => ({
|
|
2085
2113
|
inputtoken: "list-unstyled",
|
|
2086
2114
|
input: "border-0",
|
|
2087
2115
|
container: ({ props: d }) => ({
|
|
@@ -2089,7 +2117,7 @@ const pt = { key: 0 }, yt = {
|
|
|
2089
2117
|
"form-control mb-0 d-flex",
|
|
2090
2118
|
{
|
|
2091
2119
|
disabled: d.disabled,
|
|
2092
|
-
"is-invalid":
|
|
2120
|
+
"is-invalid": n.value
|
|
2093
2121
|
}
|
|
2094
2122
|
]
|
|
2095
2123
|
}),
|
|
@@ -2112,30 +2140,30 @@ const pt = { key: 0 }, yt = {
|
|
|
2112
2140
|
]
|
|
2113
2141
|
}
|
|
2114
2142
|
}));
|
|
2115
|
-
return (d,
|
|
2143
|
+
return (d, y) => {
|
|
2116
2144
|
const r = Te;
|
|
2117
|
-
return s(),
|
|
2118
|
-
|
|
2145
|
+
return s(), v(N, null, [
|
|
2146
|
+
b(r, V({ ...t, ...d.$attrs }, {
|
|
2119
2147
|
pt: i.value,
|
|
2120
|
-
"model-value":
|
|
2121
|
-
"onUpdate:modelValue":
|
|
2148
|
+
"model-value": c(a),
|
|
2149
|
+
"onUpdate:modelValue": y[0] || (y[0] = (m) => le(a) ? a.value = m : null)
|
|
2122
2150
|
}), {
|
|
2123
|
-
removetokenicon:
|
|
2124
|
-
L(
|
|
2151
|
+
removetokenicon: g(({ removeCallback: m }) => [
|
|
2152
|
+
L(b(c(T), {
|
|
2125
2153
|
icon: "bi:x",
|
|
2126
2154
|
class: "cursor-pointer",
|
|
2127
|
-
onClick:
|
|
2155
|
+
onClick: m
|
|
2128
2156
|
}, null, 8, ["onClick"]), [
|
|
2129
|
-
[
|
|
2157
|
+
[q, !t.disabled]
|
|
2130
2158
|
])
|
|
2131
2159
|
]),
|
|
2132
2160
|
_: 1
|
|
2133
2161
|
}, 16, ["pt", "model-value"]),
|
|
2134
|
-
L(
|
|
2162
|
+
L(u("small", {
|
|
2135
2163
|
"data-cy": "error",
|
|
2136
2164
|
class: "text-invalid"
|
|
2137
|
-
}, h(
|
|
2138
|
-
[
|
|
2165
|
+
}, h(c(o)), 513), [
|
|
2166
|
+
[q, n.value]
|
|
2139
2167
|
])
|
|
2140
2168
|
], 64);
|
|
2141
2169
|
};
|
|
@@ -2155,7 +2183,7 @@ const pt = { key: 0 }, yt = {
|
|
|
2155
2183
|
unstyled: { type: Boolean }
|
|
2156
2184
|
},
|
|
2157
2185
|
setup(e) {
|
|
2158
|
-
const t = e,
|
|
2186
|
+
const t = e, l = w(() => t.striped ? "progress-bar-striped" : null), a = w(() => t.animate ? "progress-bar-animated" : null), o = w(() => {
|
|
2159
2187
|
switch (t.severity) {
|
|
2160
2188
|
case "brand":
|
|
2161
2189
|
return "bg-brand";
|
|
@@ -2174,19 +2202,19 @@ const pt = { key: 0 }, yt = {
|
|
|
2174
2202
|
default:
|
|
2175
2203
|
return "bg-primary";
|
|
2176
2204
|
}
|
|
2177
|
-
}),
|
|
2205
|
+
}), n = w(() => ({
|
|
2178
2206
|
root: {
|
|
2179
2207
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2180
2208
|
},
|
|
2181
2209
|
value: {
|
|
2182
|
-
class: [
|
|
2210
|
+
class: [o.value, l.value, a.value]
|
|
2183
2211
|
}
|
|
2184
2212
|
}));
|
|
2185
2213
|
return (i, d) => {
|
|
2186
|
-
const
|
|
2187
|
-
return s(),
|
|
2188
|
-
default:
|
|
2189
|
-
|
|
2214
|
+
const y = Pe;
|
|
2215
|
+
return s(), k(y, V({ ...i.$attrs, ...t }, { pt: n.value }), {
|
|
2216
|
+
default: g(() => [
|
|
2217
|
+
_(i.$slots, "default")
|
|
2190
2218
|
]),
|
|
2191
2219
|
_: 3
|
|
2192
2220
|
}, 16, ["pt"]);
|
|
@@ -2200,11 +2228,11 @@ const pt = { key: 0 }, yt = {
|
|
|
2200
2228
|
},
|
|
2201
2229
|
setup(e) {
|
|
2202
2230
|
const t = e;
|
|
2203
|
-
return (
|
|
2231
|
+
return (l, a) => (s(), v("div", V(l.$attrs, {
|
|
2204
2232
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2205
2233
|
}), [
|
|
2206
|
-
|
|
2207
|
-
|
|
2234
|
+
u("span", qt, [
|
|
2235
|
+
_(l.$slots, "default")
|
|
2208
2236
|
])
|
|
2209
2237
|
], 16));
|
|
2210
2238
|
}
|
|
@@ -2227,21 +2255,21 @@ const pt = { key: 0 }, yt = {
|
|
|
2227
2255
|
},
|
|
2228
2256
|
emits: ["update:currentStep"],
|
|
2229
2257
|
setup(e, { emit: t }) {
|
|
2230
|
-
const
|
|
2258
|
+
const l = t, a = e, o = M(a.currentStep), n = () => {
|
|
2231
2259
|
do
|
|
2232
|
-
|
|
2233
|
-
while (a.model[
|
|
2234
|
-
|
|
2260
|
+
o.value--;
|
|
2261
|
+
while (a.model[o.value].disabled);
|
|
2262
|
+
l("update:currentStep", o.value);
|
|
2235
2263
|
}, i = () => {
|
|
2236
|
-
if (
|
|
2264
|
+
if (o.value < a.model.length - 1)
|
|
2237
2265
|
do
|
|
2238
|
-
|
|
2239
|
-
while (a.model[
|
|
2240
|
-
|
|
2241
|
-
}, d =
|
|
2242
|
-
const r = a.model.findIndex((
|
|
2243
|
-
return !(r <
|
|
2244
|
-
}),
|
|
2266
|
+
o.value++;
|
|
2267
|
+
while (a.model[o.value].disabled);
|
|
2268
|
+
l("update:currentStep", o.value);
|
|
2269
|
+
}, d = w(() => {
|
|
2270
|
+
const r = a.model.findIndex((m) => !m.disabled);
|
|
2271
|
+
return !(r < o.value && r > -1);
|
|
2272
|
+
}), y = w(() => ({
|
|
2245
2273
|
menuitem: (r) => ({
|
|
2246
2274
|
class: [{
|
|
2247
2275
|
"cursor-pointer": !r.context.disabled
|
|
@@ -2252,13 +2280,13 @@ const pt = { key: 0 }, yt = {
|
|
|
2252
2280
|
"d-flex align-items-center justify-content-center mb-2 step",
|
|
2253
2281
|
{
|
|
2254
2282
|
inactive: r.context.disabled,
|
|
2255
|
-
"bg-primary text-white": r.context.index ===
|
|
2256
|
-
"bg-brand text-white": r.context.index ===
|
|
2257
|
-
"bg-secondary text-white": r.context.index ===
|
|
2258
|
-
"bg-success text-white": r.context.index ===
|
|
2259
|
-
"bg-warning text-white": r.context.index ===
|
|
2260
|
-
"bg-danger text-white": r.context.index ===
|
|
2261
|
-
"bg-info text-white": r.context.index ===
|
|
2283
|
+
"bg-primary text-white": r.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
|
|
2284
|
+
"bg-brand text-white": r.context.index === o.value && a.severity === "brand",
|
|
2285
|
+
"bg-secondary text-white": r.context.index === o.value && a.severity === "secondary",
|
|
2286
|
+
"bg-success text-white": r.context.index === o.value && a.severity === "success",
|
|
2287
|
+
"bg-warning text-white": r.context.index === o.value && a.severity === "warning",
|
|
2288
|
+
"bg-danger text-white": r.context.index === o.value && a.severity === "danger",
|
|
2289
|
+
"bg-info text-white": r.context.index === o.value && a.severity === "info"
|
|
2262
2290
|
}
|
|
2263
2291
|
]
|
|
2264
2292
|
}),
|
|
@@ -2266,61 +2294,61 @@ const pt = { key: 0 }, yt = {
|
|
|
2266
2294
|
class: [
|
|
2267
2295
|
"h5",
|
|
2268
2296
|
{
|
|
2269
|
-
"border-bottom border-2 border-primary": r.context.index ===
|
|
2270
|
-
"border-bottom border-2 border-brand": r.context.index ===
|
|
2271
|
-
"border-bottom border-2 border-secondary": r.context.index ===
|
|
2272
|
-
"border-bottom border-2 border-success": r.context.index ===
|
|
2273
|
-
"border-bottom border-2 border-warning": r.context.index ===
|
|
2274
|
-
"border-bottom border-2 border-danger": r.context.index ===
|
|
2275
|
-
"border-bottom border-2 border-info": r.context.index ===
|
|
2297
|
+
"border-bottom border-2 border-primary": r.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
|
|
2298
|
+
"border-bottom border-2 border-brand": r.context.index === o.value && a.severity === "brand",
|
|
2299
|
+
"border-bottom border-2 border-secondary": r.context.index === o.value && a.severity === "secondary",
|
|
2300
|
+
"border-bottom border-2 border-success": r.context.index === o.value && a.severity === "success",
|
|
2301
|
+
"border-bottom border-2 border-warning": r.context.index === o.value && a.severity === "warning",
|
|
2302
|
+
"border-bottom border-2 border-danger": r.context.index === o.value && a.severity === "danger",
|
|
2303
|
+
"border-bottom border-2 border-info": r.context.index === o.value && a.severity === "info"
|
|
2276
2304
|
}
|
|
2277
2305
|
]
|
|
2278
2306
|
})
|
|
2279
2307
|
}));
|
|
2280
|
-
return (r,
|
|
2281
|
-
const
|
|
2282
|
-
return s(),
|
|
2283
|
-
|
|
2284
|
-
|
|
2308
|
+
return (r, m) => {
|
|
2309
|
+
const p = R, x = Ie, $ = Me;
|
|
2310
|
+
return s(), v("div", Gt, [
|
|
2311
|
+
u("div", Kt, [
|
|
2312
|
+
b(p, {
|
|
2285
2313
|
severity: a.severity,
|
|
2286
2314
|
disabled: d.value,
|
|
2287
|
-
onClick:
|
|
2315
|
+
onClick: n,
|
|
2288
2316
|
class: "rounded-circle py-2 me-4",
|
|
2289
2317
|
"data-cy": "back-button"
|
|
2290
2318
|
}, {
|
|
2291
|
-
default:
|
|
2292
|
-
|
|
2319
|
+
default: g(() => [
|
|
2320
|
+
b(c(T), {
|
|
2293
2321
|
icon: "bi:chevron-left",
|
|
2294
2322
|
class: "mb-1"
|
|
2295
2323
|
})
|
|
2296
2324
|
]),
|
|
2297
2325
|
_: 1
|
|
2298
2326
|
}, 8, ["severity", "disabled"]),
|
|
2299
|
-
|
|
2300
|
-
"active-step":
|
|
2301
|
-
"onUpdate:activeStep":
|
|
2327
|
+
b(x, {
|
|
2328
|
+
"active-step": o.value,
|
|
2329
|
+
"onUpdate:activeStep": m[0] || (m[0] = (P) => o.value = P),
|
|
2302
2330
|
model: a.model,
|
|
2303
|
-
pt:
|
|
2331
|
+
pt: y.value,
|
|
2304
2332
|
readonly: !1
|
|
2305
2333
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2306
2334
|
]),
|
|
2307
|
-
|
|
2308
|
-
(s(!0),
|
|
2309
|
-
key:
|
|
2335
|
+
b($),
|
|
2336
|
+
(s(!0), v(N, null, j(a.model, (P, S) => (s(), v("div", {
|
|
2337
|
+
key: S,
|
|
2310
2338
|
class: "w-100"
|
|
2311
2339
|
}, [
|
|
2312
|
-
|
|
2340
|
+
S === o.value ? _(r.$slots, P.key ?? P.label, {
|
|
2313
2341
|
key: 0,
|
|
2314
2342
|
nextStep: i,
|
|
2315
|
-
previousStep:
|
|
2343
|
+
previousStep: n
|
|
2316
2344
|
}, () => [
|
|
2317
|
-
|
|
2345
|
+
b(ne, {
|
|
2318
2346
|
severity: "info",
|
|
2319
2347
|
"data-cy": "alert"
|
|
2320
2348
|
}, {
|
|
2321
|
-
default:
|
|
2322
|
-
|
|
2323
|
-
|
|
2349
|
+
default: g(() => [
|
|
2350
|
+
z(" Please add Slot Content for the key " + h(P.key ?? P.label) + " ", 1),
|
|
2351
|
+
b(p, {
|
|
2324
2352
|
severity: "primary",
|
|
2325
2353
|
label: "Next",
|
|
2326
2354
|
onClick: i,
|
|
@@ -2329,7 +2357,7 @@ const pt = { key: 0 }, yt = {
|
|
|
2329
2357
|
]),
|
|
2330
2358
|
_: 2
|
|
2331
2359
|
}, 1024)
|
|
2332
|
-
]) :
|
|
2360
|
+
]) : C("", !0)
|
|
2333
2361
|
]))), 128))
|
|
2334
2362
|
]);
|
|
2335
2363
|
};
|
|
@@ -2342,45 +2370,45 @@ const pt = { key: 0 }, yt = {
|
|
|
2342
2370
|
clickable: { type: Boolean, default: !1 }
|
|
2343
2371
|
},
|
|
2344
2372
|
setup(e) {
|
|
2345
|
-
const t = e,
|
|
2346
|
-
return (
|
|
2347
|
-
const i =
|
|
2348
|
-
return t.clickable ? (s(),
|
|
2373
|
+
const t = e, l = w(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "border-0" : `tile-bar-${t.barPosition}`}`), a = w(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`}`);
|
|
2374
|
+
return (o, n) => {
|
|
2375
|
+
const i = R;
|
|
2376
|
+
return t.clickable ? (s(), k(i, {
|
|
2349
2377
|
key: 0,
|
|
2350
|
-
class:
|
|
2378
|
+
class: B(["d-flex w-100 p-0 text-body", l.value]),
|
|
2351
2379
|
severity: t.severity,
|
|
2352
2380
|
unstyled: "",
|
|
2353
2381
|
"data-cy": "button-tile"
|
|
2354
2382
|
}, {
|
|
2355
|
-
default:
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2383
|
+
default: g(() => [
|
|
2384
|
+
u("div", Wt, [
|
|
2385
|
+
_(o.$slots, "default", {}, () => [
|
|
2386
|
+
z("Tile Content")
|
|
2359
2387
|
])
|
|
2360
2388
|
])
|
|
2361
2389
|
]),
|
|
2362
2390
|
_: 3
|
|
2363
|
-
}, 8, ["severity", "class"])) : (s(),
|
|
2391
|
+
}, 8, ["severity", "class"])) : (s(), v("div", {
|
|
2364
2392
|
key: 1,
|
|
2365
|
-
class:
|
|
2393
|
+
class: B(["d-flex w-100", a.value]),
|
|
2366
2394
|
"data-cy": "tile"
|
|
2367
2395
|
}, [
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2396
|
+
u("div", Zt, [
|
|
2397
|
+
_(o.$slots, "default", {}, () => [
|
|
2398
|
+
z("Tile Content")
|
|
2371
2399
|
])
|
|
2372
2400
|
])
|
|
2373
2401
|
], 2));
|
|
2374
2402
|
};
|
|
2375
2403
|
}
|
|
2376
2404
|
});
|
|
2377
|
-
function
|
|
2405
|
+
function Q(e, t) {
|
|
2378
2406
|
return e > 1 ? `${t}s` : t;
|
|
2379
2407
|
}
|
|
2380
2408
|
const Jt = {
|
|
2381
2409
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2382
2410
|
"data-cy": "pagination-header"
|
|
2383
|
-
}, Xt = { class: "ms-2" }, Qt = { key: 0 }, ea = /* @__PURE__ */
|
|
2411
|
+
}, Xt = { class: "ms-2" }, Qt = { key: 0 }, ea = /* @__PURE__ */ u("span", { class: "mx-2" }, "|", -1), ta = {
|
|
2384
2412
|
class: "w-auto",
|
|
2385
2413
|
"data-cy": "total"
|
|
2386
2414
|
}, aa = /* @__PURE__ */ F({
|
|
@@ -2392,33 +2420,32 @@ const Jt = {
|
|
|
2392
2420
|
},
|
|
2393
2421
|
emits: ["update:perPage"],
|
|
2394
2422
|
setup(e, { emit: t }) {
|
|
2395
|
-
const
|
|
2396
|
-
|
|
2397
|
-
},
|
|
2423
|
+
const l = t, a = e, o = (i) => {
|
|
2424
|
+
l("update:perPage", i.value);
|
|
2425
|
+
}, n = w(() => {
|
|
2398
2426
|
const i = Math.ceil(a.total / a.perPage);
|
|
2399
|
-
return `${i} ${
|
|
2427
|
+
return `${i} ${Q(i, "page")}`;
|
|
2400
2428
|
});
|
|
2401
|
-
return (i, d) => (s(),
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2429
|
+
return (i, d) => (s(), v("div", Jt, [
|
|
2430
|
+
z(" Number of results per page "),
|
|
2431
|
+
u("div", Xt, [
|
|
2432
|
+
b(c(de), {
|
|
2405
2433
|
options: a.pageSizes,
|
|
2406
2434
|
"model-value": a.perPage,
|
|
2407
|
-
onChange: d[0] || (d[0] = (
|
|
2435
|
+
onChange: d[0] || (d[0] = (y) => o(y))
|
|
2408
2436
|
}, null, 8, ["options", "model-value"])
|
|
2409
2437
|
]),
|
|
2410
|
-
a.total ? (s(),
|
|
2438
|
+
a.total ? (s(), v("div", Qt, [
|
|
2411
2439
|
ea,
|
|
2412
|
-
|
|
2413
|
-
])) :
|
|
2440
|
+
u("span", ta, h(a.total) + " " + h(c(Q)(a.total, "result")) + " across " + h(n.value), 1)
|
|
2441
|
+
])) : C("", !0)
|
|
2414
2442
|
]));
|
|
2415
2443
|
}
|
|
2416
|
-
}), la = { class: "position-relative" }, oa = { "data-cy": "above-table-slot" }, na = { class: "d-flex" }, sa = { class: "d-flex align-items-end mb-2" }, ia = { key: 0 }, ra = { class: "ms-auto" }, da = /* @__PURE__ */
|
|
2444
|
+
}), la = { class: "position-relative" }, oa = { "data-cy": "above-table-slot" }, na = { class: "d-flex" }, sa = { class: "d-flex align-items-end mb-2" }, ia = { key: 0 }, ra = { class: "ms-auto" }, da = /* @__PURE__ */ u("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), wl = /* @__PURE__ */ F({
|
|
2417
2445
|
__name: "ForgeTable",
|
|
2418
2446
|
props: {
|
|
2419
2447
|
value: {},
|
|
2420
2448
|
legacyPaginationFooter: { type: Boolean, default: !1 },
|
|
2421
|
-
total: {},
|
|
2422
2449
|
showClearButton: { type: Boolean, default: !1 },
|
|
2423
2450
|
showExporterButton: { type: Boolean, default: !1 },
|
|
2424
2451
|
stickyHeader: { type: Boolean, default: !0 },
|
|
@@ -2492,20 +2519,19 @@ const Jt = {
|
|
|
2492
2519
|
ptOptions: {},
|
|
2493
2520
|
unstyled: { type: Boolean }
|
|
2494
2521
|
},
|
|
2495
|
-
emits: ["update:filters"],
|
|
2522
|
+
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
2496
2523
|
setup(e, { emit: t }) {
|
|
2497
|
-
const
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
}, y = x(() => ({
|
|
2524
|
+
const l = t, a = e, o = M(), n = M([10, 20, 50, 100]), i = M(20), d = M({
|
|
2525
|
+
filters: a.filters,
|
|
2526
|
+
perPage: i.value,
|
|
2527
|
+
page: 0,
|
|
2528
|
+
sortDirection: "None",
|
|
2529
|
+
sortField: "",
|
|
2530
|
+
total: a.totalRecords ?? a.value.length
|
|
2531
|
+
}), y = w(() => a.totalRecords ?? a.value.length), r = w(() => {
|
|
2532
|
+
const f = Math.ceil(y.value / i.value);
|
|
2533
|
+
return `${f} ${Q(f, "page")}`;
|
|
2534
|
+
}), m = w(() => ({
|
|
2509
2535
|
thead: () => ({
|
|
2510
2536
|
class: [
|
|
2511
2537
|
{
|
|
@@ -2527,116 +2553,139 @@ const Jt = {
|
|
|
2527
2553
|
}
|
|
2528
2554
|
]
|
|
2529
2555
|
})
|
|
2530
|
-
}))
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2556
|
+
})), p = () => {
|
|
2557
|
+
for (const f in a.filters)
|
|
2558
|
+
typeof a.filters[f] == "string" ? a.filters[f] = "" : a.filters[f].value = null;
|
|
2559
|
+
P(a.filters);
|
|
2560
|
+
}, x = () => {
|
|
2561
|
+
o.value.exportCSV();
|
|
2562
|
+
}, $ = (f) => {
|
|
2563
|
+
var I;
|
|
2564
|
+
d.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", d.value.sortField = ((I = f.sortField) == null ? void 0 : I.toString()) ?? "", l("update:tableContext", d.value), l("sort", f);
|
|
2565
|
+
}, P = (f) => {
|
|
2566
|
+
d.value.filters = f, l("update:tableContext", d.value), l("update:filters", f);
|
|
2567
|
+
}, S = (f) => {
|
|
2568
|
+
d.value.page = f.page, l("update:tableContext", d.value), l("page", f);
|
|
2569
|
+
}, O = () => {
|
|
2570
|
+
d.value.perPage = i.value, l("update:tableContext", d.value);
|
|
2571
|
+
};
|
|
2572
|
+
return ie(() => a.filters, (f) => {
|
|
2573
|
+
d.value.filters = f, l("update:tableContext", d.value);
|
|
2574
|
+
}, { deep: !0 }), ae(() => l("update:tableContext", d.value)), (f, I) => (s(), v("div", la, [
|
|
2575
|
+
u("span", oa, [
|
|
2576
|
+
_(f.$slots, "above-table")
|
|
2534
2577
|
]),
|
|
2535
|
-
|
|
2578
|
+
b(c(ze), V({
|
|
2536
2579
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
2537
|
-
}, { ...a, ...
|
|
2538
|
-
|
|
2539
|
-
|
|
2580
|
+
}, { ...a, ...f.$attrs }, {
|
|
2581
|
+
pt: m.value,
|
|
2582
|
+
rows: i.value,
|
|
2583
|
+
"total-records": y.value,
|
|
2540
2584
|
"filter-display": a.filters ? "row" : void 0,
|
|
2541
2585
|
ref_key: "forgeTable",
|
|
2542
|
-
ref:
|
|
2543
|
-
"
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2586
|
+
ref: o,
|
|
2587
|
+
"data-cy": "table",
|
|
2588
|
+
"onUpdate:filters": P,
|
|
2589
|
+
onSort: $,
|
|
2590
|
+
onPage: S
|
|
2591
|
+
}), oe({
|
|
2592
|
+
header: g(() => [
|
|
2593
|
+
u("div", {
|
|
2594
|
+
class: B(a.loading ? "opacity-50" : "")
|
|
2550
2595
|
}, [
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
total:
|
|
2556
|
-
"page-sizes":
|
|
2557
|
-
"per-page":
|
|
2558
|
-
"onUpdate:perPage":
|
|
2596
|
+
u("div", na, [
|
|
2597
|
+
u("div", sa, [
|
|
2598
|
+
f.paginator && !f.legacyPaginationFooter ? (s(), v("span", ia, [
|
|
2599
|
+
b(aa, {
|
|
2600
|
+
total: y.value,
|
|
2601
|
+
"page-sizes": n.value,
|
|
2602
|
+
"per-page": i.value,
|
|
2603
|
+
"onUpdate:perPage": [
|
|
2604
|
+
I[0] || (I[0] = (Y) => i.value = Y),
|
|
2605
|
+
O
|
|
2606
|
+
]
|
|
2559
2607
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2560
|
-
])) :
|
|
2608
|
+
])) : C("", !0)
|
|
2561
2609
|
]),
|
|
2562
|
-
|
|
2563
|
-
|
|
2610
|
+
u("div", ra, [
|
|
2611
|
+
f.showClearButton ? (s(), k(c(R), {
|
|
2564
2612
|
key: 0,
|
|
2565
2613
|
outlined: "",
|
|
2566
|
-
class:
|
|
2567
|
-
onClick:
|
|
2614
|
+
class: B(f.showExporterButton ? "me-2" : ""),
|
|
2615
|
+
onClick: p,
|
|
2568
2616
|
"data-cy": "clear-all"
|
|
2569
2617
|
}, {
|
|
2570
|
-
default:
|
|
2571
|
-
|
|
2618
|
+
default: g(() => [
|
|
2619
|
+
b(c(T), {
|
|
2572
2620
|
icon: "bi:funnel-fill",
|
|
2573
2621
|
width: "24",
|
|
2574
2622
|
height: "24"
|
|
2575
2623
|
}),
|
|
2576
|
-
|
|
2624
|
+
z(" Clear ")
|
|
2577
2625
|
]),
|
|
2578
2626
|
_: 1
|
|
2579
|
-
}, 8, ["class"])) :
|
|
2580
|
-
|
|
2627
|
+
}, 8, ["class"])) : C("", !0),
|
|
2628
|
+
f.showExporterButton ? (s(), k(c(R), {
|
|
2581
2629
|
key: 1,
|
|
2582
2630
|
outlined: "",
|
|
2583
|
-
onClick:
|
|
2631
|
+
onClick: x,
|
|
2584
2632
|
"data-cy": "exporter"
|
|
2585
2633
|
}, {
|
|
2586
|
-
default:
|
|
2587
|
-
|
|
2634
|
+
default: g(() => [
|
|
2635
|
+
b(c(T), {
|
|
2588
2636
|
icon: "typcn:export",
|
|
2589
2637
|
width: "24",
|
|
2590
2638
|
height: "24"
|
|
2591
2639
|
}),
|
|
2592
|
-
|
|
2640
|
+
z(" Export ")
|
|
2593
2641
|
]),
|
|
2594
2642
|
_: 1
|
|
2595
|
-
})) :
|
|
2643
|
+
})) : C("", !0)
|
|
2596
2644
|
])
|
|
2597
2645
|
])
|
|
2598
2646
|
], 2)
|
|
2599
2647
|
]),
|
|
2600
|
-
default:
|
|
2601
|
-
|
|
2648
|
+
default: g(() => [
|
|
2649
|
+
_(f.$slots, "default")
|
|
2602
2650
|
]),
|
|
2603
2651
|
_: 2
|
|
2604
2652
|
}, [
|
|
2605
|
-
|
|
2606
|
-
name:
|
|
2607
|
-
fn:
|
|
2608
|
-
|
|
2653
|
+
j(f.$slots, (Y, Z) => ({
|
|
2654
|
+
name: Z,
|
|
2655
|
+
fn: g((se) => [
|
|
2656
|
+
_(f.$slots, Z, ee(te(se || {})))
|
|
2609
2657
|
])
|
|
2610
2658
|
})),
|
|
2611
|
-
|
|
2659
|
+
f.legacyPaginationFooter ? {
|
|
2612
2660
|
name: "paginatorstart",
|
|
2613
|
-
fn:
|
|
2614
|
-
|
|
2615
|
-
class:
|
|
2661
|
+
fn: g(() => [
|
|
2662
|
+
u("span", {
|
|
2663
|
+
class: B(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
2616
2664
|
"data-cy": "legacy-page-size"
|
|
2617
2665
|
}, [
|
|
2618
2666
|
da,
|
|
2619
|
-
|
|
2620
|
-
options:
|
|
2621
|
-
modelValue:
|
|
2622
|
-
"onUpdate:modelValue":
|
|
2623
|
-
class: "ms-2"
|
|
2667
|
+
b(c(de), {
|
|
2668
|
+
options: n.value,
|
|
2669
|
+
modelValue: i.value,
|
|
2670
|
+
"onUpdate:modelValue": I[1] || (I[1] = (Y) => i.value = Y),
|
|
2671
|
+
class: "ms-2",
|
|
2672
|
+
onClick: O
|
|
2624
2673
|
}, null, 8, ["options", "modelValue"])
|
|
2625
2674
|
], 2)
|
|
2626
2675
|
]),
|
|
2627
2676
|
key: "0"
|
|
2628
2677
|
} : void 0,
|
|
2629
|
-
|
|
2678
|
+
f.legacyPaginationFooter ? {
|
|
2630
2679
|
name: "paginatorend",
|
|
2631
|
-
fn:
|
|
2632
|
-
|
|
2680
|
+
fn: g(() => [
|
|
2681
|
+
u("span", {
|
|
2633
2682
|
"data-cy": "legacy-total",
|
|
2634
|
-
class:
|
|
2635
|
-
}, h(
|
|
2683
|
+
class: B(a.loading ? "opacity-50" : "")
|
|
2684
|
+
}, h(y.value) + " " + h(c(Q)(y.value, "result")) + " across " + h(r.value), 3)
|
|
2636
2685
|
]),
|
|
2637
2686
|
key: "1"
|
|
2638
2687
|
} : void 0
|
|
2639
|
-
]), 1040, ["class", "rows", "total-records", "filter-display"
|
|
2688
|
+
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
2640
2689
|
]));
|
|
2641
2690
|
}
|
|
2642
2691
|
}), xl = /* @__PURE__ */ F({
|
|
@@ -2646,32 +2695,32 @@ const Jt = {
|
|
|
2646
2695
|
dropdownOptions: {}
|
|
2647
2696
|
},
|
|
2648
2697
|
setup(e) {
|
|
2649
|
-
return (t,
|
|
2650
|
-
const a =
|
|
2651
|
-
return t.dataType === "numeric" ? (s(),
|
|
2698
|
+
return (t, l) => {
|
|
2699
|
+
const a = pe;
|
|
2700
|
+
return t.dataType === "numeric" ? (s(), k(a, V({ key: 0 }, t.$attrs, { class: "w-100" }), null, 16)) : t.dataType === "date" ? (s(), k(Et, V({ key: 1 }, t.$attrs, {
|
|
2652
2701
|
"show-icon": !1,
|
|
2653
2702
|
"show-on-focus": !0,
|
|
2654
2703
|
class: "w-100"
|
|
2655
|
-
}), null, 16)) : t.dataType === "select" ? (s(),
|
|
2704
|
+
}), null, 16)) : t.dataType === "select" ? (s(), k(c(de), V({ key: 2 }, t.$attrs, {
|
|
2656
2705
|
options: t.dropdownOptions,
|
|
2657
2706
|
class: "dropdown-input w-100"
|
|
2658
|
-
}), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(),
|
|
2707
|
+
}), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), k(c(Oe), V({ key: 3 }, t.$attrs, {
|
|
2659
2708
|
options: t.dropdownOptions,
|
|
2660
2709
|
showToggleAll: !1,
|
|
2661
2710
|
placeholder: " ",
|
|
2662
2711
|
filter: "",
|
|
2663
2712
|
class: "w-100 dropdown-input"
|
|
2664
|
-
}), null, 16, ["options"])) : (s(),
|
|
2713
|
+
}), null, 16, ["options"])) : (s(), k(c(re), V({ key: 4 }, t.$attrs, { class: "w-100" }), null, 16));
|
|
2665
2714
|
};
|
|
2666
2715
|
}
|
|
2667
2716
|
});
|
|
2668
|
-
function
|
|
2669
|
-
const
|
|
2670
|
-
return t = t.map((
|
|
2671
|
-
const i =
|
|
2717
|
+
function fe(e, t, l, a) {
|
|
2718
|
+
const o = t.flatMap((n) => n.file);
|
|
2719
|
+
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2720
|
+
const i = o.findIndex((y) => y.name === n.name);
|
|
2672
2721
|
let d = "Not Uploaded";
|
|
2673
|
-
i === -1 ? ((!
|
|
2674
|
-
file:
|
|
2722
|
+
i === -1 ? ((!l.includes(n.type) || !(n.size <= a)) && (d = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2723
|
+
file: n,
|
|
2675
2724
|
status: d,
|
|
2676
2725
|
blobFileName: null
|
|
2677
2726
|
})) : t[i].status = "Duplicate";
|
|
@@ -2680,25 +2729,25 @@ function ye(e, t, n, a) {
|
|
|
2680
2729
|
async function ua(e, t) {
|
|
2681
2730
|
if (e === "Uploaded" && t !== null)
|
|
2682
2731
|
try {
|
|
2683
|
-
await new
|
|
2684
|
-
} catch (
|
|
2685
|
-
if (
|
|
2732
|
+
await new ve(t).delete();
|
|
2733
|
+
} catch (l) {
|
|
2734
|
+
if (l !== "BlobNotFound") {
|
|
2686
2735
|
e = "DeleteFileFailed";
|
|
2687
2736
|
return;
|
|
2688
2737
|
}
|
|
2689
2738
|
}
|
|
2690
2739
|
}
|
|
2691
|
-
function
|
|
2740
|
+
function ue(e, t = !0, l = 1) {
|
|
2692
2741
|
const a = t ? 1e3 : 1024;
|
|
2693
2742
|
if (Math.abs(e) < a)
|
|
2694
2743
|
return e + " B";
|
|
2695
|
-
const
|
|
2696
|
-
let
|
|
2697
|
-
const i = 10 **
|
|
2744
|
+
const o = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
2745
|
+
let n = -1;
|
|
2746
|
+
const i = 10 ** l;
|
|
2698
2747
|
do
|
|
2699
|
-
e /= a, ++
|
|
2700
|
-
while (Math.round(Math.abs(e) * i) / i >= a &&
|
|
2701
|
-
return e.toFixed(
|
|
2748
|
+
e /= a, ++n;
|
|
2749
|
+
while (Math.round(Math.abs(e) * i) / i >= a && n < o.length - 1);
|
|
2750
|
+
return e.toFixed(l) + " " + o[n];
|
|
2702
2751
|
}
|
|
2703
2752
|
function ca(e) {
|
|
2704
2753
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
@@ -2706,9 +2755,9 @@ function ca(e) {
|
|
|
2706
2755
|
function ma(e) {
|
|
2707
2756
|
return URL.createObjectURL(e);
|
|
2708
2757
|
}
|
|
2709
|
-
const pa = { class: "d-flex justify-content-between" },
|
|
2758
|
+
const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disabled", "multiple"], ya = /* @__PURE__ */ F({
|
|
2710
2759
|
__name: "UploadButton",
|
|
2711
|
-
props: /* @__PURE__ */
|
|
2760
|
+
props: /* @__PURE__ */ H({
|
|
2712
2761
|
acceptedFileTypes: {},
|
|
2713
2762
|
maxFileInput: {},
|
|
2714
2763
|
showDragDropArea: { type: Boolean }
|
|
@@ -2718,42 +2767,42 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2718
2767
|
}),
|
|
2719
2768
|
emits: ["update:modelValue"],
|
|
2720
2769
|
setup(e) {
|
|
2721
|
-
const t =
|
|
2722
|
-
t.value =
|
|
2770
|
+
const t = E(e, "modelValue"), l = w(() => e.maxFileInput <= t.value.length), a = (o) => {
|
|
2771
|
+
t.value = fe(o, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2723
2772
|
};
|
|
2724
|
-
return (
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2773
|
+
return (o, n) => (s(), v("div", pa, [
|
|
2774
|
+
_(o.$slots, "message"),
|
|
2775
|
+
u("div", null, [
|
|
2776
|
+
u("input", {
|
|
2728
2777
|
id: "file-input",
|
|
2729
2778
|
type: "file",
|
|
2730
2779
|
class: "d-none",
|
|
2731
|
-
accept:
|
|
2732
|
-
disabled:
|
|
2733
|
-
multiple:
|
|
2734
|
-
onInput:
|
|
2735
|
-
}, null, 40,
|
|
2736
|
-
|
|
2737
|
-
class:
|
|
2780
|
+
accept: o.acceptedFileTypes.join(", "),
|
|
2781
|
+
disabled: l.value,
|
|
2782
|
+
multiple: o.maxFileInput > 1,
|
|
2783
|
+
onInput: n[0] || (n[0] = (i) => a([...i.target.files]))
|
|
2784
|
+
}, null, 40, va),
|
|
2785
|
+
u("label", {
|
|
2786
|
+
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
2738
2787
|
id: "file-input-button",
|
|
2739
2788
|
for: "file-input"
|
|
2740
2789
|
}, [
|
|
2741
|
-
|
|
2742
|
-
|
|
2790
|
+
_(o.$slots, "button-content", {}, () => [
|
|
2791
|
+
b(c(T), {
|
|
2743
2792
|
icon: "bi:upload",
|
|
2744
2793
|
class: "me-2",
|
|
2745
2794
|
height: "20px",
|
|
2746
2795
|
width: "20px"
|
|
2747
2796
|
}),
|
|
2748
|
-
|
|
2797
|
+
z(" Browse your computer ")
|
|
2749
2798
|
])
|
|
2750
2799
|
], 2)
|
|
2751
2800
|
]),
|
|
2752
|
-
|
|
2801
|
+
o.showDragDropArea ? (s(), v("div", {
|
|
2753
2802
|
class: "ms-auto",
|
|
2754
|
-
key:
|
|
2803
|
+
key: o.acceptedFileTypes.length,
|
|
2755
2804
|
id: "accepted-file-types"
|
|
2756
|
-
}, "Accepted File Types: " + h(
|
|
2805
|
+
}, "Accepted File Types: " + h(o.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) : C("", !0)
|
|
2757
2806
|
]));
|
|
2758
2807
|
}
|
|
2759
2808
|
}), ba = {
|
|
@@ -2765,7 +2814,7 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2765
2814
|
class: "d-flex flex-column"
|
|
2766
2815
|
}, ga = /* @__PURE__ */ F({
|
|
2767
2816
|
__name: "DragDropArea",
|
|
2768
|
-
props: /* @__PURE__ */
|
|
2817
|
+
props: /* @__PURE__ */ H({
|
|
2769
2818
|
maxFileInput: {},
|
|
2770
2819
|
maxFileSize: {},
|
|
2771
2820
|
acceptedFileTypes: {}
|
|
@@ -2775,26 +2824,26 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2775
2824
|
}),
|
|
2776
2825
|
emits: ["update:modelValue"],
|
|
2777
2826
|
setup(e) {
|
|
2778
|
-
const t =
|
|
2779
|
-
|
|
2827
|
+
const t = E(e, "modelValue"), l = M(!1), a = w(() => e.maxFileInput <= t.value.length), o = (n) => {
|
|
2828
|
+
l.value = !1, n.dataTransfer.files.length > e.maxFileInput || a.value ? n.preventDefault() : t.value = fe([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
|
|
2780
2829
|
};
|
|
2781
|
-
return (
|
|
2830
|
+
return (n, i) => (s(), v("div", {
|
|
2782
2831
|
id: "drag-drop-area",
|
|
2783
|
-
class:
|
|
2784
|
-
onDragleave: i[0] || (i[0] = G((d) =>
|
|
2785
|
-
onDragover: i[1] || (i[1] = G((d) =>
|
|
2786
|
-
onDrop: G(
|
|
2832
|
+
class: B(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
2833
|
+
onDragleave: i[0] || (i[0] = G((d) => l.value = !1, ["prevent"])),
|
|
2834
|
+
onDragover: i[1] || (i[1] = G((d) => l.value = !0, ["prevent"])),
|
|
2835
|
+
onDrop: G(o, ["prevent"])
|
|
2787
2836
|
}, [
|
|
2788
|
-
t.value.length === 0 ? (s(),
|
|
2789
|
-
|
|
2837
|
+
t.value.length === 0 ? (s(), v("div", ba, [
|
|
2838
|
+
b(c(T), {
|
|
2790
2839
|
icon: "bi:upload",
|
|
2791
2840
|
class: "me-2",
|
|
2792
2841
|
height: "20px",
|
|
2793
2842
|
width: "20px"
|
|
2794
2843
|
}),
|
|
2795
|
-
|
|
2796
|
-
])) : (s(),
|
|
2797
|
-
|
|
2844
|
+
z(" Drag and drop files here ")
|
|
2845
|
+
])) : (s(), v("div", fa, [
|
|
2846
|
+
_(n.$slots, "default")
|
|
2798
2847
|
]))
|
|
2799
2848
|
], 34));
|
|
2800
2849
|
}
|
|
@@ -2807,12 +2856,12 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2807
2856
|
uploadStatus: {}
|
|
2808
2857
|
},
|
|
2809
2858
|
setup(e) {
|
|
2810
|
-
const t =
|
|
2859
|
+
const t = w(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = w(() => {
|
|
2811
2860
|
switch (e.uploadStatus) {
|
|
2812
2861
|
case "InvalidFileType":
|
|
2813
2862
|
return "Upload Failed: File type is not accepted.";
|
|
2814
2863
|
case "InvalidFileSize":
|
|
2815
|
-
return `Upload Failed: File size exceeds the ${
|
|
2864
|
+
return `Upload Failed: File size exceeds the ${ue(e.maxFileSize)} limit.`;
|
|
2816
2865
|
case "Aborted":
|
|
2817
2866
|
return "Upload Failed: User cancelled.";
|
|
2818
2867
|
case "DeleteFileFailed":
|
|
@@ -2823,43 +2872,43 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2823
2872
|
return "Upload Failed: Connection error, please try again.";
|
|
2824
2873
|
}
|
|
2825
2874
|
});
|
|
2826
|
-
return (a,
|
|
2827
|
-
a.uploadStatus === "Uploading" ? (s(),
|
|
2875
|
+
return (a, o) => (s(), v("div", ha, [
|
|
2876
|
+
a.uploadStatus === "Uploading" ? (s(), k(Yt, {
|
|
2828
2877
|
key: 0,
|
|
2829
2878
|
pixelWidth: 200,
|
|
2830
2879
|
animate: "",
|
|
2831
2880
|
striped: ""
|
|
2832
2881
|
}, {
|
|
2833
|
-
default:
|
|
2834
|
-
|
|
2882
|
+
default: g(() => [
|
|
2883
|
+
z(h((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
|
|
2835
2884
|
]),
|
|
2836
2885
|
_: 1
|
|
2837
|
-
})) :
|
|
2838
|
-
a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (s(),
|
|
2886
|
+
})) : C("", !0),
|
|
2887
|
+
a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (s(), k(ne, {
|
|
2839
2888
|
key: 1,
|
|
2840
2889
|
id: "upload-status-alert",
|
|
2841
2890
|
severity: t.value,
|
|
2842
2891
|
class: "mb-0 w-75 ms-auto"
|
|
2843
2892
|
}, {
|
|
2844
|
-
default:
|
|
2845
|
-
|
|
2893
|
+
default: g(() => [
|
|
2894
|
+
z(h(l.value), 1)
|
|
2846
2895
|
]),
|
|
2847
2896
|
_: 1
|
|
2848
|
-
}, 8, ["severity"])) :
|
|
2897
|
+
}, 8, ["severity"])) : C("", !0)
|
|
2849
2898
|
]));
|
|
2850
2899
|
}
|
|
2851
|
-
}), xa = ["data-cy"], ka = { class: "ms-3 d-flex flex-column" },
|
|
2900
|
+
}), xa = ["data-cy"], ka = { class: "ms-3 d-flex flex-column" }, _a = {
|
|
2852
2901
|
key: 1,
|
|
2853
2902
|
id: "file-name"
|
|
2854
|
-
},
|
|
2903
|
+
}, $a = {
|
|
2855
2904
|
class: "text-black-50",
|
|
2856
2905
|
id: "file-type"
|
|
2857
|
-
},
|
|
2906
|
+
}, Ba = {
|
|
2858
2907
|
class: "text-black-50",
|
|
2859
2908
|
id: "file-size"
|
|
2860
|
-
},
|
|
2909
|
+
}, Fa = { class: "ms-auto my-auto d-flex" }, Sa = /* @__PURE__ */ F({
|
|
2861
2910
|
__name: "FileInfo",
|
|
2862
|
-
props: /* @__PURE__ */
|
|
2911
|
+
props: /* @__PURE__ */ H({
|
|
2863
2912
|
editableFileName: { type: Boolean },
|
|
2864
2913
|
acceptedFileTypes: {},
|
|
2865
2914
|
maxFileSize: {},
|
|
@@ -2874,57 +2923,57 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2874
2923
|
uploadStatus: { required: !0 },
|
|
2875
2924
|
uploadStatusModifiers: {}
|
|
2876
2925
|
}),
|
|
2877
|
-
emits: /* @__PURE__ */
|
|
2926
|
+
emits: /* @__PURE__ */ H(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
2878
2927
|
setup(e, { emit: t }) {
|
|
2879
|
-
const
|
|
2880
|
-
|
|
2928
|
+
const l = E(e, "file"), a = E(e, "blobFileName"), o = E(e, "uploadStatus"), n = t, i = M(l.value.name), d = M(""), y = M(0), r = M(), m = w(() => e.acceptedFileTypes.includes(l.value.type)), p = w(() => l.value.size <= e.maxFileSize), x = () => {
|
|
2929
|
+
l.value = new File([l.value], i.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
2881
2930
|
}, $ = async () => {
|
|
2882
|
-
if (!
|
|
2883
|
-
|
|
2931
|
+
if (!m.value || !p.value) {
|
|
2932
|
+
o.value = m.value ? "InvalidFileSize" : "InvalidFileType";
|
|
2884
2933
|
return;
|
|
2885
2934
|
}
|
|
2886
|
-
|
|
2887
|
-
const [
|
|
2888
|
-
if (!
|
|
2889
|
-
|
|
2935
|
+
o.value = "Preparing", r.value = new AbortController();
|
|
2936
|
+
const [S, O] = await e.getFileUrlAction(l.value.name);
|
|
2937
|
+
if (!S) {
|
|
2938
|
+
o.value = "Failed";
|
|
2890
2939
|
return;
|
|
2891
2940
|
}
|
|
2892
2941
|
try {
|
|
2893
|
-
|
|
2894
|
-
const
|
|
2942
|
+
o.value = "Uploading";
|
|
2943
|
+
const f = new ve(S), I = {
|
|
2895
2944
|
abortSignal: r.value.signal,
|
|
2896
|
-
onProgress: (
|
|
2945
|
+
onProgress: (Y) => y.value = Y.loadedBytes,
|
|
2897
2946
|
tags: { temp: "true" }
|
|
2898
2947
|
};
|
|
2899
|
-
await
|
|
2900
|
-
} catch (
|
|
2901
|
-
if (
|
|
2902
|
-
|
|
2948
|
+
await f.uploadData(l.value, I), d.value = S, o.value = "Uploaded", a.value = O;
|
|
2949
|
+
} catch (f) {
|
|
2950
|
+
if (f.name === "AbortError") {
|
|
2951
|
+
o.value = "Aborted";
|
|
2903
2952
|
return;
|
|
2904
2953
|
}
|
|
2905
|
-
|
|
2954
|
+
o.value = "Failed";
|
|
2906
2955
|
}
|
|
2907
|
-
},
|
|
2908
|
-
await ua(
|
|
2956
|
+
}, P = async () => {
|
|
2957
|
+
await ua(o.value, d.value), n("deleted", l.value);
|
|
2909
2958
|
};
|
|
2910
|
-
return
|
|
2959
|
+
return ae(() => {
|
|
2911
2960
|
e.autoUploadToBlob && $();
|
|
2912
|
-
}), (
|
|
2913
|
-
const
|
|
2914
|
-
return s(),
|
|
2961
|
+
}), (S, O) => {
|
|
2962
|
+
const f = R;
|
|
2963
|
+
return s(), v("div", {
|
|
2915
2964
|
class: "py-4 px-3 d-flex",
|
|
2916
|
-
"data-cy": `file-info-${
|
|
2965
|
+
"data-cy": `file-info-${l.value.name}`
|
|
2917
2966
|
}, [
|
|
2918
|
-
|
|
2919
|
-
|
|
2967
|
+
u("div", null, [
|
|
2968
|
+
c(ca)(l.value.type) ? (s(), k(c(De), {
|
|
2920
2969
|
key: 0,
|
|
2921
2970
|
id: "thumbnail-image",
|
|
2922
2971
|
"image-class": "image-file-thumbnail border",
|
|
2923
|
-
src:
|
|
2924
|
-
alt:
|
|
2972
|
+
src: c(ma)(l.value),
|
|
2973
|
+
alt: l.value.name,
|
|
2925
2974
|
width: "75px",
|
|
2926
2975
|
preview: ""
|
|
2927
|
-
}, null, 8, ["src", "alt"])) : (s(),
|
|
2976
|
+
}, null, 8, ["src", "alt"])) : (s(), k(c(T), {
|
|
2928
2977
|
key: 1,
|
|
2929
2978
|
id: "file-earmark",
|
|
2930
2979
|
icon: "bi:file-earmark",
|
|
@@ -2932,58 +2981,58 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2932
2981
|
width: "75px"
|
|
2933
2982
|
}))
|
|
2934
2983
|
]),
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2984
|
+
u("div", ka, [
|
|
2985
|
+
u("div", null, [
|
|
2986
|
+
S.editableFileName ? (s(), k(xt, {
|
|
2938
2987
|
key: 0,
|
|
2939
2988
|
id: "edit-file-name",
|
|
2940
2989
|
modelValue: i.value,
|
|
2941
|
-
"onUpdate:modelValue":
|
|
2942
|
-
rules:
|
|
2943
|
-
name:
|
|
2944
|
-
"complete-action":
|
|
2945
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (s(),
|
|
2990
|
+
"onUpdate:modelValue": O[0] || (O[0] = (I) => i.value = I),
|
|
2991
|
+
rules: S.customFileNameRules,
|
|
2992
|
+
name: l.value.name,
|
|
2993
|
+
"complete-action": x
|
|
2994
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (s(), v("span", _a, h(l.value.name), 1))
|
|
2946
2995
|
]),
|
|
2947
|
-
|
|
2948
|
-
|
|
2996
|
+
u("span", $a, "File type: " + h(l.value.type.split("/").pop()), 1),
|
|
2997
|
+
u("span", Ba, "File size: " + h(c(ue)(l.value.size)), 1)
|
|
2949
2998
|
]),
|
|
2950
|
-
|
|
2951
|
-
(s(),
|
|
2952
|
-
key:
|
|
2953
|
-
"file-size":
|
|
2954
|
-
"upload-status":
|
|
2955
|
-
"bytes-uploaded":
|
|
2956
|
-
"max-file-size":
|
|
2999
|
+
u("div", Fa, [
|
|
3000
|
+
(s(), k(wa, {
|
|
3001
|
+
key: o.value,
|
|
3002
|
+
"file-size": l.value.size,
|
|
3003
|
+
"upload-status": o.value,
|
|
3004
|
+
"bytes-uploaded": y.value,
|
|
3005
|
+
"max-file-size": S.maxFileSize
|
|
2957
3006
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
2958
|
-
|
|
3007
|
+
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (s(), k(f, {
|
|
2959
3008
|
key: 0,
|
|
2960
3009
|
link: "",
|
|
2961
3010
|
onClick: $
|
|
2962
3011
|
}, {
|
|
2963
|
-
default:
|
|
2964
|
-
|
|
2965
|
-
icon:
|
|
3012
|
+
default: g(() => [
|
|
3013
|
+
b(c(T), {
|
|
3014
|
+
icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
2966
3015
|
}, null, 8, ["icon"])
|
|
2967
3016
|
]),
|
|
2968
3017
|
_: 1
|
|
2969
|
-
})) :
|
|
2970
|
-
|
|
3018
|
+
})) : C("", !0),
|
|
3019
|
+
o.value === "Uploading" ? (s(), k(f, {
|
|
2971
3020
|
key: 1,
|
|
2972
3021
|
link: "",
|
|
2973
|
-
onClick:
|
|
3022
|
+
onClick: O[1] || (O[1] = (I) => r.value.value.abort())
|
|
2974
3023
|
}, {
|
|
2975
|
-
default:
|
|
2976
|
-
|
|
3024
|
+
default: g(() => [
|
|
3025
|
+
b(c(T), { icon: "bi:x-circle-fill" })
|
|
2977
3026
|
]),
|
|
2978
3027
|
_: 1
|
|
2979
|
-
})) : (s(),
|
|
3028
|
+
})) : (s(), k(f, {
|
|
2980
3029
|
key: 2,
|
|
2981
3030
|
link: "",
|
|
2982
|
-
onClick:
|
|
3031
|
+
onClick: P,
|
|
2983
3032
|
id: "delete-button"
|
|
2984
3033
|
}, {
|
|
2985
|
-
default:
|
|
2986
|
-
|
|
3034
|
+
default: g(() => [
|
|
3035
|
+
b(c(T), { icon: "bi:trash" })
|
|
2987
3036
|
]),
|
|
2988
3037
|
_: 1
|
|
2989
3038
|
}))
|
|
@@ -2997,13 +3046,13 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
2997
3046
|
maxFileSize: {}
|
|
2998
3047
|
},
|
|
2999
3048
|
setup(e) {
|
|
3000
|
-
return (t,
|
|
3001
|
-
|
|
3049
|
+
return (t, l) => (s(), v("div", Ca, [
|
|
3050
|
+
u("div", Va, "Max file size: " + h(c(ue)(t.maxFileSize)), 1)
|
|
3002
3051
|
]));
|
|
3003
3052
|
}
|
|
3004
|
-
}),
|
|
3053
|
+
}), Pa = { "data-cy": "file-uploader" }, Ma = { key: 0 }, kl = /* @__PURE__ */ F({
|
|
3005
3054
|
__name: "ForgeFileUploader",
|
|
3006
|
-
props: /* @__PURE__ */
|
|
3055
|
+
props: /* @__PURE__ */ H({
|
|
3007
3056
|
acceptedFileTypes: {},
|
|
3008
3057
|
maxFileSize: {},
|
|
3009
3058
|
getFileUrlAction: {},
|
|
@@ -3018,60 +3067,60 @@ const pa = { class: "d-flex justify-content-between" }, ya = ["accept", "disable
|
|
|
3018
3067
|
}),
|
|
3019
3068
|
emits: ["update:modelValue"],
|
|
3020
3069
|
setup(e) {
|
|
3021
|
-
const t =
|
|
3022
|
-
t.value = t.value.filter((
|
|
3070
|
+
const t = E(e, "modelValue"), l = e, a = (o) => {
|
|
3071
|
+
t.value = t.value.filter((n) => n.file != o);
|
|
3023
3072
|
};
|
|
3024
|
-
return (
|
|
3025
|
-
|
|
3073
|
+
return (o, n) => (s(), v("div", Pa, [
|
|
3074
|
+
b(ya, V(l, {
|
|
3026
3075
|
modelValue: t.value,
|
|
3027
|
-
"onUpdate:modelValue":
|
|
3076
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => t.value = i)
|
|
3028
3077
|
}), null, 16, ["modelValue"]),
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
"max-file-input":
|
|
3032
|
-
"max-file-size":
|
|
3033
|
-
"accepted-file-types":
|
|
3078
|
+
o.showDragDropArea ? (s(), v("div", Ma, [
|
|
3079
|
+
b(ga, {
|
|
3080
|
+
"max-file-input": l.maxFileInput,
|
|
3081
|
+
"max-file-size": l.maxFileSize,
|
|
3082
|
+
"accepted-file-types": l.acceptedFileTypes,
|
|
3034
3083
|
modelValue: t.value,
|
|
3035
|
-
"onUpdate:modelValue":
|
|
3084
|
+
"onUpdate:modelValue": n[1] || (n[1] = (i) => t.value = i)
|
|
3036
3085
|
}, {
|
|
3037
|
-
default:
|
|
3038
|
-
(s(!0),
|
|
3039
|
-
(s(),
|
|
3086
|
+
default: g(() => [
|
|
3087
|
+
(s(!0), v(N, null, j(t.value, ({ file: i }, d) => (s(), v("span", null, [
|
|
3088
|
+
(s(), k(Sa, V({
|
|
3040
3089
|
key: i.name,
|
|
3041
3090
|
class: d === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
3042
3091
|
file: t.value[d].file,
|
|
3043
|
-
"onUpdate:file": (
|
|
3092
|
+
"onUpdate:file": (y) => t.value[d].file = y,
|
|
3044
3093
|
"blob-file-name": t.value[d].blobFileName,
|
|
3045
|
-
"onUpdate:blobFileName": (
|
|
3094
|
+
"onUpdate:blobFileName": (y) => t.value[d].blobFileName = y,
|
|
3046
3095
|
"upload-status": t.value[d].status,
|
|
3047
|
-
"onUpdate:uploadStatus": (
|
|
3096
|
+
"onUpdate:uploadStatus": (y) => t.value[d].status = y,
|
|
3048
3097
|
ref_for: !0
|
|
3049
|
-
},
|
|
3098
|
+
}, l, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
3050
3099
|
]))), 256))
|
|
3051
3100
|
]),
|
|
3052
3101
|
_: 1
|
|
3053
3102
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
3054
|
-
|
|
3055
|
-
"max-file-size":
|
|
3103
|
+
b(Ta, {
|
|
3104
|
+
"max-file-size": l.maxFileSize
|
|
3056
3105
|
}, null, 8, ["max-file-size"])
|
|
3057
|
-
])) :
|
|
3106
|
+
])) : C("", !0)
|
|
3058
3107
|
]));
|
|
3059
3108
|
}
|
|
3060
3109
|
});
|
|
3061
3110
|
export {
|
|
3062
3111
|
sl as Bootstrap_PT,
|
|
3063
3112
|
il as ForgeActionButton,
|
|
3064
|
-
|
|
3065
|
-
|
|
3113
|
+
ne as ForgeAlert,
|
|
3114
|
+
ye as ForgeCheckbox,
|
|
3066
3115
|
bl as ForgeChips,
|
|
3067
3116
|
Et as ForgeDatepicker,
|
|
3068
3117
|
kl as ForgeFileUploader,
|
|
3069
3118
|
xl as ForgeFilterHeader,
|
|
3070
|
-
|
|
3071
|
-
|
|
3119
|
+
vl as ForgeForm,
|
|
3120
|
+
yl as ForgeFormField,
|
|
3072
3121
|
xt as ForgeInlineEditor,
|
|
3073
3122
|
rl as ForgeLink,
|
|
3074
|
-
|
|
3123
|
+
be as ForgeLoader,
|
|
3075
3124
|
dl as ForgeModal,
|
|
3076
3125
|
Ct as ForgeMultiSelect,
|
|
3077
3126
|
cl as ForgeMultiSelectPreview,
|