@3squared/forge-ui-3 0.1.1 → 0.1.3
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/cypress/support/component.d.ts +3 -0
- package/dist/esm/forge-ui-3.mjs +346 -321
- package/dist/esm/style.css +3 -3
- package/dist/src/components/ForgeModal.vue.d.ts +226 -45
- package/dist/tests/component/action-button/action-button.cy.d.ts +1 -0
- package/dist/tests/component/alert/alert.cy.d.ts +1 -0
- package/dist/tests/component/badge/badge.cy.d.ts +1 -0
- package/dist/tests/component/button/button.cy.d.ts +1 -0
- package/dist/tests/component/calendar/calendar.cy.d.ts +1 -0
- package/dist/tests/component/card/card.cy.d.ts +1 -0
- package/dist/tests/component/checkbox/checkbox.cy.d.ts +1 -0
- package/dist/tests/component/chips/chips.cy.d.ts +1 -0
- package/dist/tests/component/dialog/dialog.cy.d.ts +1 -0
- package/dist/tests/component/dropdown/dropdown.cy.d.ts +1 -0
- package/dist/tests/component/file-uploader/file-uploader.cy.d.ts +1 -0
- package/dist/tests/component/form/form.cy.d.ts +1 -0
- package/dist/tests/component/form-field/form-field.cy.d.ts +1 -0
- package/dist/tests/component/inline-editor/inline-editor.cy.d.ts +1 -0
- package/dist/tests/component/input-mask/input-mask.cy.d.ts +1 -0
- package/dist/tests/component/input-number/input-number.cy.d.ts +1 -0
- package/dist/tests/component/input-text/input-text.cy.d.ts +1 -0
- package/dist/tests/component/loader/loader.cy.d.ts +1 -0
- package/dist/tests/component/multiselect/multiselect.cy.d.ts +1 -0
- package/dist/tests/component/multiselect-preview/multiselect-preview.cy.d.ts +1 -0
- package/dist/tests/component/navbar/navbar.cy.d.ts +1 -0
- package/dist/tests/component/overlay-panel/overlay-panel.cy.d.ts +1 -0
- package/dist/tests/component/page-header/page-header.cy.d.ts +1 -0
- package/dist/tests/component/progress-bar/progress-bar.cy.d.ts +1 -0
- package/dist/tests/component/remaining-characters/remaining-characters.cy.d.ts +1 -0
- package/dist/tests/component/select-button/select-button.cy.d.ts +1 -0
- package/dist/tests/component/stat-widget/stat-widget.cy.d.ts +1 -0
- package/dist/tests/component/stepper/stepper.cy.d.ts +1 -0
- package/dist/tests/component/tab-view/tab-view.cy.d.ts +1 -0
- package/dist/tests/component/table/table.cy.d.ts +1 -0
- package/dist/tests/component/text-area/text-area.cy.d.ts +1 -0
- package/dist/tests/component/tile/tile.cy.d.ts +1 -0
- package/dist/tests/component/toast/toast.cy.d.ts +1 -0
- package/dist/tests/component/tooltip/tooltip.cy.d.ts +1 -0
- package/package.json +13 -13
package/dist/esm/forge-ui-3.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ye from "primevue/message";
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as $, openBlock as n, createBlock as w, normalizeProps as ae, guardReactiveProps as le, withCtx as f, createElementVNode as m, normalizeClass as S, unref as p, createCommentVNode as F, createVNode as v, renderSlot as k, ref as I, createElementBlock as y, Fragment as D, mergeProps as B, computed as _, createTextVNode as M, toDisplayString as h, withDirectives as R, vShow as L, mergeModels as H, useModel as O, createSlots as X, renderList as E, onMounted as ie, isRef as j, withKeys as Y, useAttrs as re, withModifiers as K, normalizeStyle as be } from "vue";
|
|
3
3
|
import { Icon as C } from "@iconify/vue";
|
|
4
4
|
import A from "primevue/button";
|
|
5
5
|
import ve from "primevue/toast";
|
|
@@ -477,9 +477,6 @@ const Ia = {
|
|
|
477
477
|
})
|
|
478
478
|
},
|
|
479
479
|
dialog: {
|
|
480
|
-
root: () => ({
|
|
481
|
-
class: ["modal modal-dialog modal-content vw-100"]
|
|
482
|
-
}),
|
|
483
480
|
header: () => ({
|
|
484
481
|
class: ["modal-header"]
|
|
485
482
|
}),
|
|
@@ -495,8 +492,18 @@ const Ia = {
|
|
|
495
492
|
headerIcons: () => ({
|
|
496
493
|
class: ["ms-auto"]
|
|
497
494
|
}),
|
|
495
|
+
icons: "d-flex ms-auto",
|
|
496
|
+
closeButton: ({ props: e }) => ({
|
|
497
|
+
class: [
|
|
498
|
+
"btn",
|
|
499
|
+
{
|
|
500
|
+
"ms-auto": !e.maximizable
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
}),
|
|
498
504
|
maximizableButton: ({ props: e }) => ({
|
|
499
505
|
class: [
|
|
506
|
+
"btn ms-auto",
|
|
500
507
|
{
|
|
501
508
|
"me-2": e.closable
|
|
502
509
|
}
|
|
@@ -791,7 +798,7 @@ const Ia = {
|
|
|
791
798
|
zoominbutton: "btn text-white",
|
|
792
799
|
closebutton: "btn text-white"
|
|
793
800
|
}
|
|
794
|
-
},
|
|
801
|
+
}, Q = /* @__PURE__ */ $({
|
|
795
802
|
__name: "ForgeAlert",
|
|
796
803
|
props: {
|
|
797
804
|
severity: { default: "primary" },
|
|
@@ -809,7 +816,7 @@ const Ia = {
|
|
|
809
816
|
const t = e;
|
|
810
817
|
return (l, a) => {
|
|
811
818
|
const s = ye;
|
|
812
|
-
return n(), w(s,
|
|
819
|
+
return n(), w(s, ae(le({ ...l.$attrs, ...t })), {
|
|
813
820
|
messageicon: f(() => [
|
|
814
821
|
m("div", {
|
|
815
822
|
class: S(t.icon ? "me-2 pe-1" : "")
|
|
@@ -827,13 +834,13 @@ const Ia = {
|
|
|
827
834
|
v(p(C), { icon: "bi:x" })
|
|
828
835
|
]),
|
|
829
836
|
default: f(() => [
|
|
830
|
-
|
|
837
|
+
k(l.$slots, "default")
|
|
831
838
|
]),
|
|
832
839
|
_: 3
|
|
833
840
|
}, 16);
|
|
834
841
|
};
|
|
835
842
|
}
|
|
836
|
-
}), Ta = /* @__PURE__ */
|
|
843
|
+
}), Ta = /* @__PURE__ */ $({
|
|
837
844
|
__name: "ForgeActionButton",
|
|
838
845
|
props: {
|
|
839
846
|
action: {},
|
|
@@ -842,7 +849,7 @@ const Ia = {
|
|
|
842
849
|
params: { default: Array }
|
|
843
850
|
},
|
|
844
851
|
setup(e) {
|
|
845
|
-
const t =
|
|
852
|
+
const t = I(!1), l = e, a = async () => {
|
|
846
853
|
t.value = !0;
|
|
847
854
|
try {
|
|
848
855
|
await l.action.apply(this, l.params);
|
|
@@ -853,7 +860,7 @@ const Ia = {
|
|
|
853
860
|
};
|
|
854
861
|
return (s, o) => {
|
|
855
862
|
const u = A;
|
|
856
|
-
return n(), y(
|
|
863
|
+
return n(), y(D, null, [
|
|
857
864
|
v(u, B({ ...l, ...s.$attrs }, {
|
|
858
865
|
loading: t.value,
|
|
859
866
|
disabled: t.value || l.disabled,
|
|
@@ -863,10 +870,10 @@ const Ia = {
|
|
|
863
870
|
], 64);
|
|
864
871
|
};
|
|
865
872
|
}
|
|
866
|
-
}),
|
|
873
|
+
}), Me = {
|
|
867
874
|
class: "d-flex",
|
|
868
875
|
"data-cy": "checkbox-container"
|
|
869
|
-
},
|
|
876
|
+
}, Pe = /* @__PURE__ */ m("div", null, null, -1), Ue = ["for"], De = /* @__PURE__ */ $({
|
|
870
877
|
__name: "ForgeCheckbox",
|
|
871
878
|
props: {
|
|
872
879
|
label: { default: "" },
|
|
@@ -894,49 +901,49 @@ const Ia = {
|
|
|
894
901
|
},
|
|
895
902
|
emits: ["update:modelValue"],
|
|
896
903
|
setup(e, { emit: t }) {
|
|
897
|
-
const l = t, a = e, { checked: s, handleChange: o, errors: u, errorMessage:
|
|
904
|
+
const l = t, a = e, { checked: s, handleChange: o, errors: u, errorMessage: r } = W(() => a.name ?? a.label, a.rules, {
|
|
898
905
|
type: "checkbox",
|
|
899
906
|
checkedValue: !0,
|
|
900
907
|
initialValue: a.modelValue
|
|
901
|
-
}),
|
|
908
|
+
}), d = (b) => {
|
|
902
909
|
a.disabled || (o(b), l("update:modelValue", !a.modelValue));
|
|
903
|
-
}, i =
|
|
910
|
+
}, i = _(() => u.value.length > 0);
|
|
904
911
|
return (b, c) => {
|
|
905
912
|
const g = fe;
|
|
906
|
-
return n(), y(
|
|
907
|
-
m("div",
|
|
913
|
+
return n(), y(D, null, [
|
|
914
|
+
m("div", Me, [
|
|
908
915
|
v(g, B({
|
|
909
916
|
id: a.name
|
|
910
917
|
}, { ...b.$attrs, ...a }, {
|
|
911
918
|
value: p(s),
|
|
912
919
|
"input-class": { "is-invalid": i.value },
|
|
913
|
-
onChange:
|
|
920
|
+
onChange: d
|
|
914
921
|
}), {
|
|
915
922
|
icon: f(() => [
|
|
916
|
-
|
|
923
|
+
Pe
|
|
917
924
|
]),
|
|
918
925
|
_: 1
|
|
919
926
|
}, 16, ["id", "value", "input-class"]),
|
|
920
927
|
m("label", {
|
|
921
928
|
for: a.name,
|
|
922
929
|
class: S(`${a.disabled ? "opacity-50" : "cursor-pointer"}`),
|
|
923
|
-
onClick:
|
|
930
|
+
onClick: d
|
|
924
931
|
}, [
|
|
925
|
-
|
|
926
|
-
|
|
932
|
+
k(b.$slots, "default", {}, () => [
|
|
933
|
+
M(h(a.label), 1)
|
|
927
934
|
])
|
|
928
935
|
], 10, Ue)
|
|
929
936
|
]),
|
|
930
|
-
|
|
937
|
+
R(m("small", {
|
|
931
938
|
"data-cy": "error",
|
|
932
939
|
class: "text-invalid"
|
|
933
|
-
}, h(p(
|
|
940
|
+
}, h(p(r)), 513), [
|
|
934
941
|
[L, i.value]
|
|
935
942
|
])
|
|
936
943
|
], 64);
|
|
937
944
|
};
|
|
938
945
|
}
|
|
939
|
-
}), Ae = { class: "forge-loader" }, ce = /* @__PURE__ */
|
|
946
|
+
}), Ae = { class: "forge-loader" }, ce = /* @__PURE__ */ $({
|
|
940
947
|
__name: "ForgeLoader",
|
|
941
948
|
props: {
|
|
942
949
|
severity: { default: "primary" }
|
|
@@ -968,9 +975,9 @@ function Ne(e) {
|
|
|
968
975
|
const Oe = { key: 0 }, Re = {
|
|
969
976
|
class: "d-flex w-100",
|
|
970
977
|
"data-cy": "footer"
|
|
971
|
-
},
|
|
978
|
+
}, Ma = /* @__PURE__ */ $({
|
|
972
979
|
__name: "ForgeModal",
|
|
973
|
-
props: {
|
|
980
|
+
props: /* @__PURE__ */ H({
|
|
974
981
|
cancelText: { default: "Cancel" },
|
|
975
982
|
submitText: { default: "Submit" },
|
|
976
983
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1005,39 +1012,57 @@ const Oe = { key: 0 }, Re = {
|
|
|
1005
1012
|
pt: {},
|
|
1006
1013
|
ptOptions: {},
|
|
1007
1014
|
unstyled: { type: Boolean }
|
|
1008
|
-
},
|
|
1015
|
+
}, {
|
|
1016
|
+
visible: { type: Boolean, required: !0 },
|
|
1017
|
+
visibleModifiers: {}
|
|
1018
|
+
}),
|
|
1009
1019
|
emits: ["update:visible"],
|
|
1010
|
-
setup(e
|
|
1011
|
-
const l =
|
|
1020
|
+
setup(e) {
|
|
1021
|
+
const t = O(e, "visible"), l = I(!1), a = e, s = I(!1), o = I({
|
|
1012
1022
|
hasError: !1,
|
|
1013
1023
|
header: "",
|
|
1014
1024
|
message: []
|
|
1015
1025
|
}), u = () => {
|
|
1016
|
-
l
|
|
1017
|
-
},
|
|
1026
|
+
l.value = !1;
|
|
1027
|
+
}, r = () => {
|
|
1028
|
+
l.value = !0;
|
|
1029
|
+
}, d = () => {
|
|
1030
|
+
t.value = !1;
|
|
1031
|
+
}, i = async () => {
|
|
1018
1032
|
if (a.onConfirm) {
|
|
1019
1033
|
s.value = !0, o.value.hasError = !1;
|
|
1020
1034
|
try {
|
|
1021
|
-
const
|
|
1022
|
-
(
|
|
1023
|
-
} catch (
|
|
1035
|
+
const c = await a.onConfirm();
|
|
1036
|
+
(c || c == null) && d();
|
|
1037
|
+
} catch (c) {
|
|
1024
1038
|
o.value.hasError = !0;
|
|
1025
|
-
const
|
|
1026
|
-
o.value.header =
|
|
1039
|
+
const g = Ne(c);
|
|
1040
|
+
o.value.header = g.errorMessage, o.value.message = g.errorDetails;
|
|
1027
1041
|
}
|
|
1028
1042
|
s.value = !1;
|
|
1029
1043
|
}
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1044
|
+
}, b = _(() => ({
|
|
1045
|
+
root: [
|
|
1046
|
+
"modal modal-dialog modal-content h-auto m-0",
|
|
1047
|
+
{
|
|
1048
|
+
"mw-100 vh-100 vw-100 top-0 start-0": l.value
|
|
1049
|
+
}
|
|
1050
|
+
]
|
|
1051
|
+
}));
|
|
1052
|
+
return (c, g) => {
|
|
1053
|
+
const x = A, V = he;
|
|
1054
|
+
return n(), w(V, B(a, {
|
|
1055
|
+
onMaximize: r,
|
|
1056
|
+
onUnmaximize: u,
|
|
1057
|
+
pt: b.value
|
|
1058
|
+
}), X({
|
|
1034
1059
|
closeicon: f(() => [
|
|
1035
1060
|
v(p(C), {
|
|
1036
1061
|
"data-cy": "close-icon",
|
|
1037
1062
|
icon: "bi:x-lg",
|
|
1038
1063
|
width: "21",
|
|
1039
1064
|
height: "21",
|
|
1040
|
-
onClick:
|
|
1065
|
+
onClick: d
|
|
1041
1066
|
})
|
|
1042
1067
|
]),
|
|
1043
1068
|
maximizeicon: f(() => [
|
|
@@ -1047,7 +1072,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1047
1072
|
})
|
|
1048
1073
|
]),
|
|
1049
1074
|
default: f(() => [
|
|
1050
|
-
o.value.hasError ? (n(), w(
|
|
1075
|
+
o.value.hasError ? (n(), w(Q, {
|
|
1051
1076
|
key: 0,
|
|
1052
1077
|
severity: "danger",
|
|
1053
1078
|
"data-cy": "error"
|
|
@@ -1057,44 +1082,44 @@ const Oe = { key: 0 }, Re = {
|
|
|
1057
1082
|
class: S(o.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1058
1083
|
}, h(o.value.header), 3),
|
|
1059
1084
|
o.value.message.length > 0 ? (n(), y("ul", Oe, [
|
|
1060
|
-
(n(!0), y(
|
|
1085
|
+
(n(!0), y(D, null, E(o.value.message, (U) => (n(), y("li", { key: U }, h(U), 1))), 128))
|
|
1061
1086
|
])) : F("", !0)
|
|
1062
1087
|
]),
|
|
1063
1088
|
_: 1
|
|
1064
1089
|
})) : F("", !0),
|
|
1065
|
-
|
|
1066
|
-
s.value ?
|
|
1090
|
+
k(c.$slots, "default"),
|
|
1091
|
+
s.value ? k(c.$slots, "loader", { key: 1 }, () => [
|
|
1067
1092
|
v(ce, { "data-cy": "loader" })
|
|
1068
1093
|
]) : F("", !0)
|
|
1069
1094
|
]),
|
|
1070
1095
|
_: 2
|
|
1071
1096
|
}, [
|
|
1072
|
-
|
|
1097
|
+
c.showFooter ? {
|
|
1073
1098
|
name: "footer",
|
|
1074
1099
|
fn: f(() => [
|
|
1075
1100
|
m("div", Re, [
|
|
1076
|
-
v(
|
|
1077
|
-
label:
|
|
1101
|
+
v(x, {
|
|
1102
|
+
label: c.cancelText,
|
|
1078
1103
|
outlined: "",
|
|
1079
|
-
onClick:
|
|
1104
|
+
onClick: d,
|
|
1080
1105
|
"data-cy": "cancel-button"
|
|
1081
1106
|
}, null, 8, ["label"]),
|
|
1082
|
-
v(
|
|
1083
|
-
label:
|
|
1107
|
+
v(x, {
|
|
1108
|
+
label: c.submitText,
|
|
1084
1109
|
class: "ms-auto",
|
|
1085
|
-
onClick:
|
|
1110
|
+
onClick: i,
|
|
1086
1111
|
"data-cy": "submit-button"
|
|
1087
1112
|
}, null, 8, ["label"])
|
|
1088
1113
|
])
|
|
1089
1114
|
]),
|
|
1090
1115
|
key: "0"
|
|
1091
1116
|
} : void 0
|
|
1092
|
-
]), 1040);
|
|
1117
|
+
]), 1040, ["pt"]);
|
|
1093
1118
|
};
|
|
1094
1119
|
}
|
|
1095
|
-
}), Ee = ["id"], je = { key: 0 }, Le = { key: 0 }, He = { class: "d-flex justify-content-between align-items-center position-relative" }, qe = { key: 1 }, Ge = { "data-cy": "readonly-value" }, Ke = /* @__PURE__ */
|
|
1120
|
+
}), Ee = ["id"], je = { key: 0 }, Le = { key: 0 }, He = { class: "d-flex justify-content-between align-items-center position-relative" }, qe = { key: 1 }, Ge = { "data-cy": "readonly-value" }, Ke = /* @__PURE__ */ $({
|
|
1096
1121
|
__name: "ForgeInlineEditor",
|
|
1097
|
-
props: /* @__PURE__ */
|
|
1122
|
+
props: /* @__PURE__ */ H({
|
|
1098
1123
|
name: { default: "" },
|
|
1099
1124
|
rules: {},
|
|
1100
1125
|
completeAction: {},
|
|
@@ -1108,9 +1133,9 @@ const Oe = { key: 0 }, Re = {
|
|
|
1108
1133
|
}),
|
|
1109
1134
|
emits: ["update:modelValue"],
|
|
1110
1135
|
setup(e) {
|
|
1111
|
-
const t = e, l =
|
|
1112
|
-
var
|
|
1113
|
-
a.value = !a.value, (
|
|
1136
|
+
const t = e, l = O(e, "modelValue"), a = I(!1), s = I(), o = () => {
|
|
1137
|
+
var x;
|
|
1138
|
+
a.value = !a.value, (x = s.value) == null || x.focus();
|
|
1114
1139
|
}, u = async () => {
|
|
1115
1140
|
if (g.value)
|
|
1116
1141
|
return !1;
|
|
@@ -1122,52 +1147,52 @@ const Oe = { key: 0 }, Re = {
|
|
|
1122
1147
|
}
|
|
1123
1148
|
else
|
|
1124
1149
|
a.value = !a.value;
|
|
1125
|
-
}, d = () => {
|
|
1126
|
-
a.value = !a.value;
|
|
1127
1150
|
}, r = () => {
|
|
1151
|
+
a.value = !a.value;
|
|
1152
|
+
}, d = () => {
|
|
1128
1153
|
c.value = null;
|
|
1129
1154
|
}, { errorMessage: i, errors: b, value: c } = W(() => t.name, t.rules);
|
|
1130
1155
|
ie(() => {
|
|
1131
1156
|
c.value = l.value;
|
|
1132
1157
|
});
|
|
1133
|
-
const g =
|
|
1134
|
-
return (
|
|
1135
|
-
const
|
|
1158
|
+
const g = _(() => b.value.length > 0);
|
|
1159
|
+
return (x, V) => {
|
|
1160
|
+
const U = oe, q = A;
|
|
1136
1161
|
return n(), y("div", {
|
|
1137
1162
|
id: t.name
|
|
1138
1163
|
}, [
|
|
1139
|
-
|
|
1140
|
-
|
|
1164
|
+
x.readonly ? (n(), y("div", qe, [
|
|
1165
|
+
k(x.$slots, "default", {}, () => [
|
|
1141
1166
|
m("span", Ge, h(p(c)), 1)
|
|
1142
1167
|
])
|
|
1143
1168
|
])) : (n(), y("div", je, [
|
|
1144
1169
|
a.value ? (n(), y("div", Le, [
|
|
1145
|
-
|
|
1146
|
-
|
|
1170
|
+
R((n(), y("div", He, [
|
|
1171
|
+
k(x.$slots, "editor", {
|
|
1147
1172
|
class: S({ "is-invalid": g.value }),
|
|
1148
1173
|
editFinished: u,
|
|
1149
|
-
cancel:
|
|
1174
|
+
cancel: r,
|
|
1150
1175
|
val: p(c)
|
|
1151
1176
|
}, () => [
|
|
1152
|
-
v(
|
|
1177
|
+
v(U, {
|
|
1153
1178
|
"data-cy": "input",
|
|
1154
1179
|
ref_key: "input",
|
|
1155
1180
|
ref: s,
|
|
1156
1181
|
modelValue: p(c),
|
|
1157
|
-
"onUpdate:modelValue":
|
|
1182
|
+
"onUpdate:modelValue": V[0] || (V[0] = (G) => j(c) ? c.value = G : null),
|
|
1158
1183
|
modelModifiers: { trim: !0 },
|
|
1159
1184
|
class: S({ "is-invalid": g.value }),
|
|
1160
1185
|
onKeydown: [
|
|
1161
1186
|
Y(u, ["enter"]),
|
|
1162
|
-
Y(
|
|
1187
|
+
Y(r, ["esc"])
|
|
1163
1188
|
]
|
|
1164
1189
|
}, null, 8, ["modelValue", "class"])
|
|
1165
1190
|
]),
|
|
1166
1191
|
v(p(C), {
|
|
1167
1192
|
icon: "bi:x-circle",
|
|
1168
1193
|
class: "mx-2 cursor-pointer",
|
|
1169
|
-
onClick:
|
|
1170
|
-
onKeydown: Y(
|
|
1194
|
+
onClick: d,
|
|
1195
|
+
onKeydown: Y(d, ["enter"]),
|
|
1171
1196
|
"data-cy": "clear-icon"
|
|
1172
1197
|
})
|
|
1173
1198
|
])), [
|
|
@@ -1179,13 +1204,13 @@ const Oe = { key: 0 }, Re = {
|
|
|
1179
1204
|
onClick: o,
|
|
1180
1205
|
onFocus: o
|
|
1181
1206
|
}, [
|
|
1182
|
-
|
|
1207
|
+
k(x.$slots, "default", {}, () => [
|
|
1183
1208
|
m("div", {
|
|
1184
1209
|
class: S(["pe-2 cursor-pointer", { "text-invalid": g.value }]),
|
|
1185
1210
|
"data-cy": "value"
|
|
1186
1211
|
}, h(p(c) ? p(c) : "Click to edit"), 3)
|
|
1187
1212
|
]),
|
|
1188
|
-
v(
|
|
1213
|
+
v(q, {
|
|
1189
1214
|
link: "",
|
|
1190
1215
|
class: "p-0 m-0"
|
|
1191
1216
|
}, {
|
|
@@ -1201,7 +1226,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1201
1226
|
})
|
|
1202
1227
|
], 32))
|
|
1203
1228
|
])),
|
|
1204
|
-
|
|
1229
|
+
R(m("small", {
|
|
1205
1230
|
"data-cy": "error",
|
|
1206
1231
|
class: "text-invalid"
|
|
1207
1232
|
}, h(p(i)), 513), [
|
|
@@ -1210,7 +1235,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1210
1235
|
], 8, Ee);
|
|
1211
1236
|
};
|
|
1212
1237
|
}
|
|
1213
|
-
}), We = ["href"],
|
|
1238
|
+
}), We = ["href"], Pa = /* @__PURE__ */ $({
|
|
1214
1239
|
__name: "ForgeNavbar",
|
|
1215
1240
|
props: {
|
|
1216
1241
|
severity: { default: "light" },
|
|
@@ -1227,7 +1252,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1227
1252
|
unstyled: { type: Boolean }
|
|
1228
1253
|
},
|
|
1229
1254
|
setup(e) {
|
|
1230
|
-
const t = e, l =
|
|
1255
|
+
const t = e, l = _(() => ({
|
|
1231
1256
|
root: () => ({
|
|
1232
1257
|
class: [
|
|
1233
1258
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1258,20 +1283,20 @@ const Oe = { key: 0 }, Re = {
|
|
|
1258
1283
|
return n(), w(o, B({ ...t, ...a.$attrs }, {
|
|
1259
1284
|
pt: l.value,
|
|
1260
1285
|
"data-cy": "navbar"
|
|
1261
|
-
}),
|
|
1286
|
+
}), X({
|
|
1262
1287
|
start: f(() => [
|
|
1263
1288
|
m("a", {
|
|
1264
1289
|
href: a.logoUrl,
|
|
1265
1290
|
class: "navbar-brand ms-3",
|
|
1266
1291
|
"data-cy": "logo"
|
|
1267
1292
|
}, [
|
|
1268
|
-
|
|
1269
|
-
|
|
1293
|
+
k(a.$slots, "logo", {}, () => [
|
|
1294
|
+
M(" Logo ")
|
|
1270
1295
|
])
|
|
1271
1296
|
], 8, We)
|
|
1272
1297
|
]),
|
|
1273
1298
|
menubuttonicon: f(() => [
|
|
1274
|
-
|
|
1299
|
+
k(a.$slots, "menubuttonicon", {}, () => [
|
|
1275
1300
|
v(p(C), {
|
|
1276
1301
|
icon: "bi:list",
|
|
1277
1302
|
class: S(t.severity === "light" ? "text-black" : "text-white"),
|
|
@@ -1282,16 +1307,16 @@ const Oe = { key: 0 }, Re = {
|
|
|
1282
1307
|
]),
|
|
1283
1308
|
_: 2
|
|
1284
1309
|
}, [
|
|
1285
|
-
|
|
1286
|
-
name:
|
|
1287
|
-
fn: f((
|
|
1288
|
-
|
|
1310
|
+
E(a.$slots, (u, r) => ({
|
|
1311
|
+
name: r,
|
|
1312
|
+
fn: f((d) => [
|
|
1313
|
+
k(a.$slots, r, ae(le(d)))
|
|
1289
1314
|
])
|
|
1290
1315
|
}))
|
|
1291
1316
|
]), 1040, ["pt"]);
|
|
1292
1317
|
};
|
|
1293
1318
|
}
|
|
1294
|
-
}), Ze = ["onMousedown"], Ye = ["checked"], Je = /* @__PURE__ */ m("strong", null, "Select all", -1), Xe = ["data-cy"], Qe = ["checked"], et = /* @__PURE__ */
|
|
1319
|
+
}), Ze = ["onMousedown"], Ye = ["checked"], Je = /* @__PURE__ */ m("strong", null, "Select all", -1), Xe = ["data-cy"], Qe = ["checked"], et = /* @__PURE__ */ $({
|
|
1295
1320
|
__name: "ForgeMultiSelect",
|
|
1296
1321
|
props: {
|
|
1297
1322
|
severity: { default: "primary" },
|
|
@@ -1304,11 +1329,11 @@ const Oe = { key: 0 }, Re = {
|
|
|
1304
1329
|
},
|
|
1305
1330
|
emits: ["update:modelValue"],
|
|
1306
1331
|
setup(e, { emit: t }) {
|
|
1307
|
-
const l = e, a = re(), s = t, { errors: o, value: u, errorMessage:
|
|
1332
|
+
const l = e, a = re(), s = t, { errors: o, value: u, errorMessage: r } = W(() => l.name, l.rules), d = I(!1), i = _(() => ({
|
|
1308
1333
|
multiple: !0,
|
|
1309
1334
|
label: "label",
|
|
1310
1335
|
trackBy: "id",
|
|
1311
|
-
showPointer: !
|
|
1336
|
+
showPointer: !d.value,
|
|
1312
1337
|
placeholder: "Select...",
|
|
1313
1338
|
allowEmpty: !0,
|
|
1314
1339
|
selectValue: "",
|
|
@@ -1317,52 +1342,52 @@ const Oe = { key: 0 }, Re = {
|
|
|
1317
1342
|
searchable: !!((a.searchable === null || a.searchable) && !g.value),
|
|
1318
1343
|
async: !1,
|
|
1319
1344
|
...a
|
|
1320
|
-
})), b =
|
|
1345
|
+
})), b = _(() => `forge-multiselect-${l.severity}`), c = _(() => `multiselect-option ${d.value ? " multiselect__option--highlight" : ""} ${g.value ? " multiselect__option--selected" : ""}`), g = _(() => i.value && !(i.value.multiple || !l.showSelectAll || i.value.async) ? !1 : a.modelValue.length === a.options.length), x = _(() => o.value.length > 0), V = _(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (i.value.multiple ? a.modelValue.length > 0 : a.modelValue))), U = () => d.value = !0, q = () => d.value = !1, G = () => {
|
|
1321
1346
|
u.value = i.value.multiple ? [] : null, s("update:modelValue", u.value);
|
|
1322
|
-
},
|
|
1323
|
-
s("update:modelValue", l.selectValue ?
|
|
1324
|
-
}, Z = (
|
|
1325
|
-
g.value ?
|
|
1347
|
+
}, ee = (z) => {
|
|
1348
|
+
s("update:modelValue", l.selectValue ? z.map((T) => T[l.selectValue]) : z);
|
|
1349
|
+
}, Z = (z) => a.modelValue !== null ? a.modelValue.some((T) => i.value.selectValue ? z[l.selectValue] === T : z.id === T.id && z.label === T.label) : !1, te = () => {
|
|
1350
|
+
g.value ? G() : (u.value = [...a.options], s("update:modelValue", [...a.options]));
|
|
1326
1351
|
};
|
|
1327
|
-
return (
|
|
1352
|
+
return (z, T) => (n(), y(D, null, [
|
|
1328
1353
|
v(p(ke), B(i.value, {
|
|
1329
|
-
class: [b.value,
|
|
1354
|
+
class: [b.value, x.value ? "is-invalid" : ""],
|
|
1330
1355
|
"data-cy": "multiselect",
|
|
1331
1356
|
"onUpdate:modelValue": [
|
|
1332
|
-
|
|
1333
|
-
|
|
1357
|
+
ee,
|
|
1358
|
+
T[1] || (T[1] = (P) => j(u) ? u.value = P : null)
|
|
1334
1359
|
],
|
|
1335
1360
|
modelValue: p(u)
|
|
1336
|
-
}),
|
|
1361
|
+
}), X({
|
|
1337
1362
|
default: f(() => [
|
|
1338
|
-
(n(!0), y(
|
|
1363
|
+
(n(!0), y(D, null, E(z.$slots, (P, N) => k(z.$slots, N, { slot: N })), 256))
|
|
1339
1364
|
]),
|
|
1340
1365
|
_: 2
|
|
1341
1366
|
}, [
|
|
1342
|
-
|
|
1367
|
+
V.value ? {
|
|
1343
1368
|
name: "caret",
|
|
1344
|
-
fn: f(({ toggle:
|
|
1369
|
+
fn: f(({ toggle: P }) => [
|
|
1345
1370
|
v(p(C), {
|
|
1346
1371
|
icon: "bi:x",
|
|
1347
1372
|
class: "my-auto multiselect__clear-icon",
|
|
1348
|
-
onMousedown:
|
|
1373
|
+
onMousedown: T[0] || (T[0] = K((N) => G(), ["prevent", "stop"])),
|
|
1349
1374
|
"data-cy": "clear"
|
|
1350
1375
|
}),
|
|
1351
1376
|
m("div", {
|
|
1352
1377
|
class: "multiselect__select",
|
|
1353
|
-
onMousedown:
|
|
1378
|
+
onMousedown: K(P, ["prevent", "stop"])
|
|
1354
1379
|
}, null, 40, Ze)
|
|
1355
1380
|
]),
|
|
1356
1381
|
key: "0"
|
|
1357
1382
|
} : void 0,
|
|
1358
|
-
i.value.multiple &&
|
|
1383
|
+
i.value.multiple && z.showSelectAll && !i.value.async ? {
|
|
1359
1384
|
name: "beforeList",
|
|
1360
1385
|
fn: f(() => [
|
|
1361
1386
|
m("li", {
|
|
1362
1387
|
class: "multiselect__element",
|
|
1363
|
-
onClick:
|
|
1364
|
-
onMouseover:
|
|
1365
|
-
onMouseleave:
|
|
1388
|
+
onClick: te,
|
|
1389
|
+
onMouseover: U,
|
|
1390
|
+
onMouseleave: q,
|
|
1366
1391
|
"data-cy": "toggle-all"
|
|
1367
1392
|
}, [
|
|
1368
1393
|
m("span", {
|
|
@@ -1382,27 +1407,27 @@ const Oe = { key: 0 }, Re = {
|
|
|
1382
1407
|
} : void 0,
|
|
1383
1408
|
i.value.multiple ? {
|
|
1384
1409
|
name: "option",
|
|
1385
|
-
fn: f(({ option:
|
|
1410
|
+
fn: f(({ option: P }) => [
|
|
1386
1411
|
m("div", {
|
|
1387
|
-
"data-cy":
|
|
1412
|
+
"data-cy": P.label
|
|
1388
1413
|
}, [
|
|
1389
1414
|
m("input", {
|
|
1390
|
-
checked: Z(
|
|
1415
|
+
checked: Z(P),
|
|
1391
1416
|
name: "selected",
|
|
1392
1417
|
type: "checkbox",
|
|
1393
1418
|
class: "multiselect__option--checkbox"
|
|
1394
1419
|
}, null, 8, Qe),
|
|
1395
|
-
|
|
1420
|
+
M(" " + h(P[i.value.label]), 1)
|
|
1396
1421
|
], 8, Xe)
|
|
1397
1422
|
]),
|
|
1398
1423
|
key: "2"
|
|
1399
1424
|
} : void 0
|
|
1400
1425
|
]), 1040, ["class", "modelValue"]),
|
|
1401
|
-
|
|
1426
|
+
R(m("small", {
|
|
1402
1427
|
"data-cy": "error",
|
|
1403
1428
|
class: "invalid-feedback"
|
|
1404
|
-
}, h(p(
|
|
1405
|
-
[L,
|
|
1429
|
+
}, h(p(r)), 513), [
|
|
1430
|
+
[L, x.value]
|
|
1406
1431
|
])
|
|
1407
1432
|
], 64));
|
|
1408
1433
|
}
|
|
@@ -1416,7 +1441,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1416
1441
|
}, ot = { class: "d-inline-block" }, st = {
|
|
1417
1442
|
key: 1,
|
|
1418
1443
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1419
|
-
}, Ua = /* @__PURE__ */
|
|
1444
|
+
}, Ua = /* @__PURE__ */ $({
|
|
1420
1445
|
__name: "ForgeMultiSelectPreview",
|
|
1421
1446
|
props: {
|
|
1422
1447
|
title: { default: "Selected Items" },
|
|
@@ -1427,10 +1452,10 @@ const Oe = { key: 0 }, Re = {
|
|
|
1427
1452
|
},
|
|
1428
1453
|
emits: ["update:modelValue"],
|
|
1429
1454
|
setup(e, { emit: t }) {
|
|
1430
|
-
const l = e, a = re(), s = t, o =
|
|
1455
|
+
const l = e, a = re(), s = t, o = _(() => `${a.modelValue.length} selected`), u = _(() => a.modelValue.length), r = (i) => {
|
|
1431
1456
|
s("update:modelValue", i);
|
|
1432
|
-
},
|
|
1433
|
-
|
|
1457
|
+
}, d = (i) => {
|
|
1458
|
+
r(a.modelValue.filter((b) => b.id !== i));
|
|
1434
1459
|
};
|
|
1435
1460
|
return (i, b) => {
|
|
1436
1461
|
const c = A;
|
|
@@ -1444,7 +1469,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1444
1469
|
}, [
|
|
1445
1470
|
v(et, {
|
|
1446
1471
|
"onUpdate:modelValue": [
|
|
1447
|
-
b[0] || (b[0] = (g) =>
|
|
1472
|
+
b[0] || (b[0] = (g) => r(g)),
|
|
1448
1473
|
b[1] || (b[1] = (g) => i.$attrs.modelValue = g)
|
|
1449
1474
|
],
|
|
1450
1475
|
modelValue: i.$attrs.modelValue,
|
|
@@ -1452,17 +1477,17 @@ const Oe = { key: 0 }, Re = {
|
|
|
1452
1477
|
options: l.options
|
|
1453
1478
|
}, {
|
|
1454
1479
|
tag: f(() => [
|
|
1455
|
-
|
|
1480
|
+
M(h(""))
|
|
1456
1481
|
]),
|
|
1457
1482
|
selection: f(() => [
|
|
1458
1483
|
i.$attrs.modelValue.length > 0 ? (n(), y("span", tt, h(u.value) + " items selected", 1)) : F("", !0)
|
|
1459
1484
|
]),
|
|
1460
1485
|
default: f(() => [
|
|
1461
|
-
(n(!0), y(
|
|
1486
|
+
(n(!0), y(D, null, E(i.$slots, (g, x) => k(i.$slots, x, { slot: x })), 256))
|
|
1462
1487
|
]),
|
|
1463
1488
|
_: 3
|
|
1464
1489
|
}, 8, ["modelValue", "limit-text", "options"]),
|
|
1465
|
-
|
|
1490
|
+
k(i.$slots, "after-multi-select")
|
|
1466
1491
|
], 2),
|
|
1467
1492
|
m("div", {
|
|
1468
1493
|
class: S(i.orientation === "row" ? "col-12" : "col"),
|
|
@@ -1474,18 +1499,18 @@ const Oe = { key: 0 }, Re = {
|
|
|
1474
1499
|
}, [
|
|
1475
1500
|
m("div", at, [
|
|
1476
1501
|
i.title ? (n(), y("div", lt, h(i.title), 1)) : F("", !0),
|
|
1477
|
-
(n(!0), y(
|
|
1502
|
+
(n(!0), y(D, null, E(i.$attrs.modelValue, (g) => (n(), y("div", {
|
|
1478
1503
|
key: g.id,
|
|
1479
1504
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1480
1505
|
}, [
|
|
1481
|
-
|
|
1506
|
+
k(i.$slots, "list-item", { item: g }, () => [
|
|
1482
1507
|
m("span", ot, h(g.shortLabel ? g.shortLabel : g.label), 1)
|
|
1483
1508
|
]),
|
|
1484
1509
|
i.canRemoveItemFromPreview ? (n(), w(c, {
|
|
1485
1510
|
key: 0,
|
|
1486
1511
|
link: "",
|
|
1487
1512
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1488
|
-
onClick: (
|
|
1513
|
+
onClick: (x) => d(g.id)
|
|
1489
1514
|
}, {
|
|
1490
1515
|
default: f(() => [
|
|
1491
1516
|
v(p(C), {
|
|
@@ -1510,7 +1535,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1510
1535
|
}, rt = {
|
|
1511
1536
|
"data-cy": "slot",
|
|
1512
1537
|
class: "d-flex align-items-center"
|
|
1513
|
-
}, Da = /* @__PURE__ */
|
|
1538
|
+
}, Da = /* @__PURE__ */ $({
|
|
1514
1539
|
__name: "ForgePageHeader",
|
|
1515
1540
|
props: {
|
|
1516
1541
|
title: {}
|
|
@@ -1520,11 +1545,11 @@ const Oe = { key: 0 }, Re = {
|
|
|
1520
1545
|
return (l, a) => (n(), y("div", nt, [
|
|
1521
1546
|
m("h1", it, h(t.title), 1),
|
|
1522
1547
|
m("div", rt, [
|
|
1523
|
-
|
|
1548
|
+
k(l.$slots, "default")
|
|
1524
1549
|
])
|
|
1525
1550
|
]));
|
|
1526
1551
|
}
|
|
1527
|
-
}), dt = { "data-cy": "before-slot" }, ut = { "data-cy": "after-slot" }, ct = /* @__PURE__ */
|
|
1552
|
+
}), dt = { "data-cy": "before-slot" }, ut = { "data-cy": "after-slot" }, ct = /* @__PURE__ */ $({
|
|
1528
1553
|
__name: "ForgeDatepicker",
|
|
1529
1554
|
props: {
|
|
1530
1555
|
severity: { default: "primary" },
|
|
@@ -1592,7 +1617,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1592
1617
|
unstyled: { type: Boolean }
|
|
1593
1618
|
},
|
|
1594
1619
|
setup(e) {
|
|
1595
|
-
const t = e, l =
|
|
1620
|
+
const t = e, l = _(() => ({
|
|
1596
1621
|
dayLabel: ({ context: a }) => ({
|
|
1597
1622
|
class: [
|
|
1598
1623
|
"btn rounded-circle w-100 py-2",
|
|
@@ -1636,12 +1661,12 @@ const Oe = { key: 0 }, Re = {
|
|
|
1636
1661
|
}));
|
|
1637
1662
|
return (a, s) => {
|
|
1638
1663
|
const o = xe;
|
|
1639
|
-
return n(), y(
|
|
1664
|
+
return n(), y(D, null, [
|
|
1640
1665
|
m("span", dt, [
|
|
1641
|
-
|
|
1666
|
+
k(a.$slots, "before")
|
|
1642
1667
|
]),
|
|
1643
1668
|
v(o, B({ ...t, ...a.$attrs }, { pt: l.value }), null, 16, ["pt"]),
|
|
1644
|
-
|
|
1669
|
+
R(v(p(C), {
|
|
1645
1670
|
"data-cy": "icon",
|
|
1646
1671
|
icon: "bi:calendar3",
|
|
1647
1672
|
width: "32",
|
|
@@ -1651,24 +1676,24 @@ const Oe = { key: 0 }, Re = {
|
|
|
1651
1676
|
[L, t.showIcon]
|
|
1652
1677
|
]),
|
|
1653
1678
|
m("span", ut, [
|
|
1654
|
-
|
|
1679
|
+
k(a.$slots, "after")
|
|
1655
1680
|
])
|
|
1656
1681
|
], 64);
|
|
1657
1682
|
};
|
|
1658
1683
|
}
|
|
1659
|
-
}), Aa = /* @__PURE__ */
|
|
1684
|
+
}), Aa = /* @__PURE__ */ $({
|
|
1660
1685
|
__name: "ForgeRemainingCharacters",
|
|
1661
1686
|
props: {
|
|
1662
1687
|
maxCount: { default: 300 },
|
|
1663
1688
|
currentCount: {}
|
|
1664
1689
|
},
|
|
1665
1690
|
setup(e) {
|
|
1666
|
-
const t = e, l =
|
|
1691
|
+
const t = e, l = _(() => t.maxCount - t.currentCount);
|
|
1667
1692
|
return (a, s) => (n(), y("div", {
|
|
1668
1693
|
class: S(l.value < 0 ? "text-danger" : "")
|
|
1669
1694
|
}, "Remaining characters: " + h(l.value), 3));
|
|
1670
1695
|
}
|
|
1671
|
-
}), pt = /* @__PURE__ */ m("hr", null, null, -1), mt = { class: "d-flex justify-content-between" }, Na = /* @__PURE__ */
|
|
1696
|
+
}), pt = /* @__PURE__ */ m("hr", null, null, -1), mt = { class: "d-flex justify-content-between" }, Na = /* @__PURE__ */ $({
|
|
1672
1697
|
__name: "ForgeForm",
|
|
1673
1698
|
props: {
|
|
1674
1699
|
onSubmit: {},
|
|
@@ -1680,7 +1705,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1680
1705
|
hideCancel: { type: Boolean, default: !1 }
|
|
1681
1706
|
},
|
|
1682
1707
|
setup(e) {
|
|
1683
|
-
const t = e, l =
|
|
1708
|
+
const t = e, l = I(!1), a = I({
|
|
1684
1709
|
hasError: !1,
|
|
1685
1710
|
message: ""
|
|
1686
1711
|
});
|
|
@@ -1694,14 +1719,14 @@ const Oe = { key: 0 }, Re = {
|
|
|
1694
1719
|
l.value = !1;
|
|
1695
1720
|
}
|
|
1696
1721
|
return (o, u) => {
|
|
1697
|
-
const
|
|
1722
|
+
const r = A;
|
|
1698
1723
|
return n(), y("form", B(o.$attrs, {
|
|
1699
1724
|
novalidate: "",
|
|
1700
1725
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
1701
|
-
onSubmit:
|
|
1726
|
+
onSubmit: K(s, ["prevent"])
|
|
1702
1727
|
}), [
|
|
1703
|
-
o.hideTitle ? F("", !0) : (n(), y(
|
|
1704
|
-
|
|
1728
|
+
o.hideTitle ? F("", !0) : (n(), y(D, { key: 0 }, [
|
|
1729
|
+
k(o.$slots, "title", {}, () => [
|
|
1705
1730
|
m("h3", {
|
|
1706
1731
|
class: S(o.titleClass),
|
|
1707
1732
|
"data-cy": "form-title"
|
|
@@ -1709,46 +1734,46 @@ const Oe = { key: 0 }, Re = {
|
|
|
1709
1734
|
]),
|
|
1710
1735
|
pt
|
|
1711
1736
|
], 64)),
|
|
1712
|
-
a.value.hasError ? (n(), w(
|
|
1737
|
+
a.value.hasError ? (n(), w(Q, {
|
|
1713
1738
|
key: 1,
|
|
1714
1739
|
severity: "danger",
|
|
1715
1740
|
"data-cy": "error"
|
|
1716
1741
|
}, {
|
|
1717
1742
|
default: f(() => [
|
|
1718
|
-
|
|
1743
|
+
k(o.$slots, "error", {
|
|
1719
1744
|
error: a.value.message
|
|
1720
1745
|
}, () => [
|
|
1721
|
-
|
|
1746
|
+
M(h(a.value.message), 1)
|
|
1722
1747
|
])
|
|
1723
1748
|
]),
|
|
1724
1749
|
_: 3
|
|
1725
1750
|
})) : F("", !0),
|
|
1726
|
-
|
|
1751
|
+
k(o.$slots, "default"),
|
|
1727
1752
|
m("div", mt, [
|
|
1728
|
-
|
|
1729
|
-
o.hideCancel ? F("", !0) : (n(), w(
|
|
1753
|
+
k(o.$slots, "cancel", {}, () => [
|
|
1754
|
+
o.hideCancel ? F("", !0) : (n(), w(r, {
|
|
1730
1755
|
key: 0,
|
|
1731
1756
|
"data-cy": "cancel-btn",
|
|
1732
1757
|
type: "reset",
|
|
1733
1758
|
severity: "secondary",
|
|
1734
1759
|
outlined: "",
|
|
1735
|
-
onClick: u[0] || (u[0] = (
|
|
1760
|
+
onClick: u[0] || (u[0] = (d) => o.$emit("cancel"))
|
|
1736
1761
|
}, {
|
|
1737
1762
|
default: f(() => [
|
|
1738
|
-
|
|
1763
|
+
M(h(o.cancelText), 1)
|
|
1739
1764
|
]),
|
|
1740
1765
|
_: 1
|
|
1741
1766
|
}))
|
|
1742
1767
|
]),
|
|
1743
|
-
|
|
1744
|
-
v(
|
|
1768
|
+
k(o.$slots, "submit", { submit: s }, () => [
|
|
1769
|
+
v(r, {
|
|
1745
1770
|
"data-cy": "submit-btn",
|
|
1746
1771
|
type: "submit",
|
|
1747
1772
|
severity: "primary",
|
|
1748
1773
|
class: "ms-auto"
|
|
1749
1774
|
}, {
|
|
1750
1775
|
default: f(() => [
|
|
1751
|
-
|
|
1776
|
+
M(h(o.submitText), 1)
|
|
1752
1777
|
]),
|
|
1753
1778
|
_: 1
|
|
1754
1779
|
})
|
|
@@ -1761,7 +1786,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1761
1786
|
], 16);
|
|
1762
1787
|
};
|
|
1763
1788
|
}
|
|
1764
|
-
}), yt = { class: "d-flex flex-column" }, bt = ["for"], Oa = /* @__PURE__ */
|
|
1789
|
+
}), yt = { class: "d-flex flex-column" }, bt = ["for"], Oa = /* @__PURE__ */ $({
|
|
1765
1790
|
__name: "ForgeFormField",
|
|
1766
1791
|
props: {
|
|
1767
1792
|
name: {},
|
|
@@ -1772,9 +1797,9 @@ const Oe = { key: 0 }, Re = {
|
|
|
1772
1797
|
placeholder: { default: "" }
|
|
1773
1798
|
},
|
|
1774
1799
|
setup(e) {
|
|
1775
|
-
const t = e, { errors: l, value: a, errorMessage: s } = W(() => t.name, t.rules), o =
|
|
1776
|
-
return (u,
|
|
1777
|
-
const
|
|
1800
|
+
const t = e, { errors: l, value: a, errorMessage: s } = W(() => t.name, t.rules), o = _(() => l.value.length > 0);
|
|
1801
|
+
return (u, r) => {
|
|
1802
|
+
const d = Fe, i = $e, b = oe;
|
|
1778
1803
|
return n(), y("div", yt, [
|
|
1779
1804
|
t.type !== "checkbox" ? (n(), y("label", {
|
|
1780
1805
|
key: 0,
|
|
@@ -1790,22 +1815,22 @@ const Oe = { key: 0 }, Re = {
|
|
|
1790
1815
|
id: t.name,
|
|
1791
1816
|
placeholder: t.placeholder,
|
|
1792
1817
|
modelValue: p(a),
|
|
1793
|
-
"onUpdate:modelValue":
|
|
1818
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => j(a) ? a.value = c : null),
|
|
1794
1819
|
"input-class": { "is-invalid": o.value },
|
|
1795
1820
|
class: { "is-invalid": o.value }
|
|
1796
|
-
}, u.$attrs), null, 16, ["id", "placeholder", "modelValue", "input-class", "class"])) : t.type === "textarea" ? (n(), w(
|
|
1821
|
+
}, u.$attrs), null, 16, ["id", "placeholder", "modelValue", "input-class", "class"])) : t.type === "textarea" ? (n(), w(d, B({
|
|
1797
1822
|
key: 3,
|
|
1798
1823
|
id: t.name,
|
|
1799
1824
|
placeholder: t.placeholder,
|
|
1800
1825
|
modelValue: p(a),
|
|
1801
|
-
"onUpdate:modelValue":
|
|
1826
|
+
"onUpdate:modelValue": r[1] || (r[1] = (c) => j(a) ? a.value = c : null),
|
|
1802
1827
|
class: { "is-invalid": o.value }
|
|
1803
1828
|
}, u.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : t.type === "mask" ? (n(), w(i, B({
|
|
1804
1829
|
key: 4,
|
|
1805
1830
|
id: t.name,
|
|
1806
1831
|
placeholder: t.placeholder,
|
|
1807
1832
|
modelValue: p(a),
|
|
1808
|
-
"onUpdate:modelValue":
|
|
1833
|
+
"onUpdate:modelValue": r[2] || (r[2] = (c) => j(a) ? a.value = c : null),
|
|
1809
1834
|
mask: t.mask,
|
|
1810
1835
|
class: { "is-invalid": o.value }
|
|
1811
1836
|
}, u.$attrs), null, 16, ["id", "placeholder", "modelValue", "mask", "class"])) : t.type === "text" ? (n(), w(b, B({
|
|
@@ -1813,10 +1838,10 @@ const Oe = { key: 0 }, Re = {
|
|
|
1813
1838
|
id: t.name,
|
|
1814
1839
|
placeholder: t.placeholder,
|
|
1815
1840
|
modelValue: p(a),
|
|
1816
|
-
"onUpdate:modelValue":
|
|
1841
|
+
"onUpdate:modelValue": r[3] || (r[3] = (c) => j(a) ? a.value = c : null),
|
|
1817
1842
|
class: { "is-invalid": o.value }
|
|
1818
1843
|
}, u.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : F("", !0),
|
|
1819
|
-
t.type !== "checkbox" ?
|
|
1844
|
+
t.type !== "checkbox" ? R((n(), y("small", {
|
|
1820
1845
|
key: 6,
|
|
1821
1846
|
"data-cy": "error",
|
|
1822
1847
|
class: "invalid-feedback"
|
|
@@ -1826,7 +1851,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1826
1851
|
]);
|
|
1827
1852
|
};
|
|
1828
1853
|
}
|
|
1829
|
-
}), Ra = /* @__PURE__ */
|
|
1854
|
+
}), Ra = /* @__PURE__ */ $({
|
|
1830
1855
|
__name: "ForgeChips",
|
|
1831
1856
|
props: {
|
|
1832
1857
|
chipSeverity: { default: "primary" },
|
|
@@ -1856,12 +1881,12 @@ const Oe = { key: 0 }, Re = {
|
|
|
1856
1881
|
setup(e) {
|
|
1857
1882
|
const t = e, { errors: l, value: a, errorMessage: s } = W(() => t.name, t.rules);
|
|
1858
1883
|
a.value = t.modelValue;
|
|
1859
|
-
const o =
|
|
1860
|
-
container: ({ props:
|
|
1884
|
+
const o = _(() => l.value.length > 0), u = _(() => ({
|
|
1885
|
+
container: ({ props: r }) => ({
|
|
1861
1886
|
class: [
|
|
1862
1887
|
"form-control mb-0",
|
|
1863
1888
|
{
|
|
1864
|
-
disabled:
|
|
1889
|
+
disabled: r.disabled,
|
|
1865
1890
|
"is-invalid": o.value
|
|
1866
1891
|
}
|
|
1867
1892
|
]
|
|
@@ -1884,16 +1909,16 @@ const Oe = { key: 0 }, Re = {
|
|
|
1884
1909
|
]
|
|
1885
1910
|
}
|
|
1886
1911
|
}));
|
|
1887
|
-
return (
|
|
1912
|
+
return (r, d) => {
|
|
1888
1913
|
const i = Be;
|
|
1889
|
-
return n(), y(
|
|
1890
|
-
v(i, B({ ...t, ...
|
|
1914
|
+
return n(), y(D, null, [
|
|
1915
|
+
v(i, B({ ...t, ...r.$attrs }, {
|
|
1891
1916
|
pt: u.value,
|
|
1892
1917
|
"model-value": p(a),
|
|
1893
|
-
"onUpdate:modelValue":
|
|
1918
|
+
"onUpdate:modelValue": d[0] || (d[0] = (b) => j(a) ? a.value = b : null)
|
|
1894
1919
|
}), {
|
|
1895
1920
|
removetokenicon: f(({ removeCallback: b }) => [
|
|
1896
|
-
|
|
1921
|
+
R(v(p(C), {
|
|
1897
1922
|
icon: "bi:x",
|
|
1898
1923
|
class: "cursor-pointer",
|
|
1899
1924
|
onClick: b
|
|
@@ -1903,7 +1928,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1903
1928
|
]),
|
|
1904
1929
|
_: 1
|
|
1905
1930
|
}, 16, ["pt", "model-value"]),
|
|
1906
|
-
|
|
1931
|
+
R(m("small", {
|
|
1907
1932
|
"data-cy": "error",
|
|
1908
1933
|
class: "text-invalid"
|
|
1909
1934
|
}, h(p(s)), 513), [
|
|
@@ -1912,7 +1937,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1912
1937
|
], 64);
|
|
1913
1938
|
};
|
|
1914
1939
|
}
|
|
1915
|
-
}), vt = /* @__PURE__ */
|
|
1940
|
+
}), vt = /* @__PURE__ */ $({
|
|
1916
1941
|
__name: "ForgeProgressBar",
|
|
1917
1942
|
props: {
|
|
1918
1943
|
severity: { default: "primary" },
|
|
@@ -1927,7 +1952,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1927
1952
|
unstyled: { type: Boolean }
|
|
1928
1953
|
},
|
|
1929
1954
|
setup(e) {
|
|
1930
|
-
const t = e, l =
|
|
1955
|
+
const t = e, l = _(() => t.striped ? "progress-bar-striped" : null), a = _(() => t.animate ? "progress-bar-animated" : null), s = _(() => {
|
|
1931
1956
|
switch (t.severity) {
|
|
1932
1957
|
case "secondary":
|
|
1933
1958
|
return "bg-secondary";
|
|
@@ -1944,7 +1969,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1944
1969
|
default:
|
|
1945
1970
|
return "bg-primary";
|
|
1946
1971
|
}
|
|
1947
|
-
}), o =
|
|
1972
|
+
}), o = _(() => ({
|
|
1948
1973
|
root: {
|
|
1949
1974
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
1950
1975
|
},
|
|
@@ -1952,17 +1977,17 @@ const Oe = { key: 0 }, Re = {
|
|
|
1952
1977
|
class: [s.value, l.value, a.value]
|
|
1953
1978
|
}
|
|
1954
1979
|
}));
|
|
1955
|
-
return (u,
|
|
1956
|
-
const
|
|
1957
|
-
return n(), w(
|
|
1980
|
+
return (u, r) => {
|
|
1981
|
+
const d = Se;
|
|
1982
|
+
return n(), w(d, B({ ...u.$attrs, ...t }, { pt: o.value }), {
|
|
1958
1983
|
default: f(() => [
|
|
1959
|
-
|
|
1984
|
+
k(u.$slots, "default")
|
|
1960
1985
|
]),
|
|
1961
1986
|
_: 3
|
|
1962
1987
|
}, 16, ["pt"]);
|
|
1963
1988
|
};
|
|
1964
1989
|
}
|
|
1965
|
-
}), ft = { class: "value text-light w-100 text-center" }, Ea = /* @__PURE__ */
|
|
1990
|
+
}), ft = { class: "value text-light w-100 text-center" }, Ea = /* @__PURE__ */ $({
|
|
1966
1991
|
__name: "ForgeStatWidget",
|
|
1967
1992
|
props: {
|
|
1968
1993
|
size: { default: "md" },
|
|
@@ -1974,14 +1999,14 @@ const Oe = { key: 0 }, Re = {
|
|
|
1974
1999
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
1975
2000
|
}), [
|
|
1976
2001
|
m("span", ft, [
|
|
1977
|
-
|
|
2002
|
+
k(l.$slots, "default")
|
|
1978
2003
|
])
|
|
1979
2004
|
], 16));
|
|
1980
2005
|
}
|
|
1981
2006
|
}), gt = {
|
|
1982
2007
|
class: "d-flex flex-column align-items-center",
|
|
1983
2008
|
"data-cy": "stepper"
|
|
1984
|
-
}, ht = { class: "d-flex align-items-center justify-content-center w-100" }, ja = /* @__PURE__ */
|
|
2009
|
+
}, ht = { class: "d-flex align-items-center justify-content-center w-100" }, ja = /* @__PURE__ */ $({
|
|
1985
2010
|
__name: "ForgeStepper",
|
|
1986
2011
|
props: {
|
|
1987
2012
|
currentStep: { default: 0 },
|
|
@@ -1997,7 +2022,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
1997
2022
|
},
|
|
1998
2023
|
emits: ["update:currentStep"],
|
|
1999
2024
|
setup(e, { emit: t }) {
|
|
2000
|
-
const l = t, a = e, s =
|
|
2025
|
+
const l = t, a = e, s = I(a.currentStep), o = () => {
|
|
2001
2026
|
do
|
|
2002
2027
|
s.value--;
|
|
2003
2028
|
while (a.model[s.value].disabled);
|
|
@@ -2008,10 +2033,10 @@ const Oe = { key: 0 }, Re = {
|
|
|
2008
2033
|
s.value++;
|
|
2009
2034
|
while (a.model[s.value].disabled);
|
|
2010
2035
|
l("update:currentStep", s.value);
|
|
2011
|
-
},
|
|
2036
|
+
}, r = _(() => {
|
|
2012
2037
|
const i = a.model.findIndex((b) => !b.disabled);
|
|
2013
2038
|
return !(i < s.value && i > -1);
|
|
2014
|
-
}),
|
|
2039
|
+
}), d = _(() => ({
|
|
2015
2040
|
menuitem: (i) => ({
|
|
2016
2041
|
class: [{
|
|
2017
2042
|
"cursor-pointer": !i.context.disabled
|
|
@@ -2046,12 +2071,12 @@ const Oe = { key: 0 }, Re = {
|
|
|
2046
2071
|
})
|
|
2047
2072
|
}));
|
|
2048
2073
|
return (i, b) => {
|
|
2049
|
-
const c = A, g = Ve,
|
|
2074
|
+
const c = A, g = Ve, x = Ce;
|
|
2050
2075
|
return n(), y("div", gt, [
|
|
2051
2076
|
m("div", ht, [
|
|
2052
2077
|
v(c, {
|
|
2053
2078
|
severity: a.severity,
|
|
2054
|
-
disabled:
|
|
2079
|
+
disabled: r.value,
|
|
2055
2080
|
onClick: o,
|
|
2056
2081
|
class: "rounded-circle py-2 me-4",
|
|
2057
2082
|
"data-cy": "back-button"
|
|
@@ -2066,28 +2091,28 @@ const Oe = { key: 0 }, Re = {
|
|
|
2066
2091
|
}, 8, ["severity", "disabled"]),
|
|
2067
2092
|
v(g, {
|
|
2068
2093
|
"active-step": s.value,
|
|
2069
|
-
"onUpdate:activeStep": b[0] || (b[0] = (
|
|
2094
|
+
"onUpdate:activeStep": b[0] || (b[0] = (V) => s.value = V),
|
|
2070
2095
|
model: a.model,
|
|
2071
|
-
pt:
|
|
2096
|
+
pt: d.value,
|
|
2072
2097
|
readonly: !1
|
|
2073
2098
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2074
2099
|
]),
|
|
2075
|
-
v(
|
|
2076
|
-
(n(!0), y(
|
|
2077
|
-
key:
|
|
2100
|
+
v(x),
|
|
2101
|
+
(n(!0), y(D, null, E(a.model, (V, U) => (n(), y("div", {
|
|
2102
|
+
key: U,
|
|
2078
2103
|
class: "w-100"
|
|
2079
2104
|
}, [
|
|
2080
|
-
|
|
2105
|
+
U === s.value ? k(i.$slots, V.key ?? V.label, {
|
|
2081
2106
|
key: 0,
|
|
2082
2107
|
nextStep: u,
|
|
2083
2108
|
previousStep: o
|
|
2084
2109
|
}, () => [
|
|
2085
|
-
v(
|
|
2110
|
+
v(Q, {
|
|
2086
2111
|
severity: "info",
|
|
2087
2112
|
"data-cy": "alert"
|
|
2088
2113
|
}, {
|
|
2089
2114
|
default: f(() => [
|
|
2090
|
-
|
|
2115
|
+
M(" Please add Slot Content for the key " + h(V.key ?? V.label) + " ", 1),
|
|
2091
2116
|
v(c, {
|
|
2092
2117
|
severity: "primary",
|
|
2093
2118
|
label: "Next",
|
|
@@ -2102,7 +2127,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
2102
2127
|
]);
|
|
2103
2128
|
};
|
|
2104
2129
|
}
|
|
2105
|
-
}), wt = { class: "p-4 text-wrap w-100" }, _t = { class: "p-4 text-wrap w-100" }, La = /* @__PURE__ */
|
|
2130
|
+
}), wt = { class: "p-4 text-wrap w-100" }, _t = { class: "p-4 text-wrap w-100" }, La = /* @__PURE__ */ $({
|
|
2106
2131
|
__name: "ForgeTile",
|
|
2107
2132
|
props: {
|
|
2108
2133
|
severity: { default: "primary" },
|
|
@@ -2110,7 +2135,7 @@ const Oe = { key: 0 }, Re = {
|
|
|
2110
2135
|
clickable: { type: Boolean, default: !1 }
|
|
2111
2136
|
},
|
|
2112
2137
|
setup(e) {
|
|
2113
|
-
const t = e, l =
|
|
2138
|
+
const t = e, l = _(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "border-0" : `tile-bar-${t.barPosition}`}`), a = _(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`}`);
|
|
2114
2139
|
return (s, o) => {
|
|
2115
2140
|
const u = A;
|
|
2116
2141
|
return t.clickable ? (n(), w(u, {
|
|
@@ -2122,8 +2147,8 @@ const Oe = { key: 0 }, Re = {
|
|
|
2122
2147
|
}, {
|
|
2123
2148
|
default: f(() => [
|
|
2124
2149
|
m("div", wt, [
|
|
2125
|
-
|
|
2126
|
-
|
|
2150
|
+
k(s.$slots, "default", {}, () => [
|
|
2151
|
+
M("Tile Content")
|
|
2127
2152
|
])
|
|
2128
2153
|
])
|
|
2129
2154
|
]),
|
|
@@ -2134,8 +2159,8 @@ const Oe = { key: 0 }, Re = {
|
|
|
2134
2159
|
"data-cy": "tile"
|
|
2135
2160
|
}, [
|
|
2136
2161
|
m("div", _t, [
|
|
2137
|
-
|
|
2138
|
-
|
|
2162
|
+
k(s.$slots, "default", {}, () => [
|
|
2163
|
+
M("Tile Content")
|
|
2139
2164
|
])
|
|
2140
2165
|
])
|
|
2141
2166
|
], 2));
|
|
@@ -2151,7 +2176,7 @@ const kt = {
|
|
|
2151
2176
|
}, xt = { class: "ms-2" }, $t = { key: 0 }, Ft = /* @__PURE__ */ m("span", { class: "mx-2" }, "|", -1), Bt = {
|
|
2152
2177
|
class: "w-auto",
|
|
2153
2178
|
"data-cy": "total"
|
|
2154
|
-
}, St = /* @__PURE__ */
|
|
2179
|
+
}, St = /* @__PURE__ */ $({
|
|
2155
2180
|
__name: "ForgePaginationHeader",
|
|
2156
2181
|
props: {
|
|
2157
2182
|
total: {},
|
|
@@ -2162,17 +2187,17 @@ const kt = {
|
|
|
2162
2187
|
setup(e, { emit: t }) {
|
|
2163
2188
|
const l = t, a = e, s = (u) => {
|
|
2164
2189
|
l("update:perPage", u.value);
|
|
2165
|
-
}, o =
|
|
2190
|
+
}, o = _(() => {
|
|
2166
2191
|
const u = Math.ceil(a.total / a.perPage);
|
|
2167
2192
|
return `${u} ${J(u, "page")}`;
|
|
2168
2193
|
});
|
|
2169
|
-
return (u,
|
|
2170
|
-
|
|
2194
|
+
return (u, r) => (n(), y("div", kt, [
|
|
2195
|
+
M(" Number of results per page "),
|
|
2171
2196
|
m("div", xt, [
|
|
2172
2197
|
v(p(se), {
|
|
2173
2198
|
options: a.pageSizes,
|
|
2174
2199
|
"model-value": a.perPage,
|
|
2175
|
-
onChange:
|
|
2200
|
+
onChange: r[0] || (r[0] = (d) => s(d))
|
|
2176
2201
|
}, null, 8, ["options", "model-value"])
|
|
2177
2202
|
]),
|
|
2178
2203
|
a.total ? (n(), y("div", $t, [
|
|
@@ -2181,10 +2206,10 @@ const kt = {
|
|
|
2181
2206
|
])) : F("", !0)
|
|
2182
2207
|
]));
|
|
2183
2208
|
}
|
|
2184
|
-
}), Ct = { "data-cy": "above-table-slot" }, Vt = { class: "d-flex" }, zt = { class: "d-flex align-items-end mb-2" }, It = { key: 0 }, Tt = { class: "ms-auto" },
|
|
2209
|
+
}), Ct = { "data-cy": "above-table-slot" }, Vt = { class: "d-flex" }, zt = { class: "d-flex align-items-end mb-2" }, It = { key: 0 }, Tt = { class: "ms-auto" }, Mt = {
|
|
2185
2210
|
class: "d-flex",
|
|
2186
2211
|
"data-cy": "legacy-page-size"
|
|
2187
|
-
},
|
|
2212
|
+
}, Pt = /* @__PURE__ */ m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), Ut = { "data-cy": "legacy-total" }, Ha = /* @__PURE__ */ $({
|
|
2188
2213
|
__name: "ForgeTable",
|
|
2189
2214
|
props: {
|
|
2190
2215
|
value: {},
|
|
@@ -2263,21 +2288,21 @@ const kt = {
|
|
|
2263
2288
|
},
|
|
2264
2289
|
emits: ["update:filters"],
|
|
2265
2290
|
setup(e, { emit: t }) {
|
|
2266
|
-
const l = t, a = e, s =
|
|
2291
|
+
const l = t, a = e, s = I([10, 20, 50, 100]), o = I(20), u = I(), r = () => {
|
|
2267
2292
|
for (const c in a.filters)
|
|
2268
2293
|
a.filters[c].value = null;
|
|
2269
|
-
|
|
2270
|
-
},
|
|
2294
|
+
d(a.filters);
|
|
2295
|
+
}, d = (c) => {
|
|
2271
2296
|
l("update:filters", c);
|
|
2272
|
-
}, i =
|
|
2297
|
+
}, i = _(() => {
|
|
2273
2298
|
const c = Math.ceil((a.total ?? a.value.length) / o.value);
|
|
2274
2299
|
return `${c} ${J(c, "page")}`;
|
|
2275
2300
|
}), b = () => {
|
|
2276
2301
|
u.value.exportCSV();
|
|
2277
2302
|
};
|
|
2278
|
-
return (c, g) => (n(), y(
|
|
2303
|
+
return (c, g) => (n(), y(D, null, [
|
|
2279
2304
|
m("span", Ct, [
|
|
2280
|
-
|
|
2305
|
+
k(c.$slots, "above-table")
|
|
2281
2306
|
]),
|
|
2282
2307
|
v(p(ze), B({ class: "w-100" }, { ...a, ...c.$attrs }, {
|
|
2283
2308
|
rows: o.value,
|
|
@@ -2285,9 +2310,9 @@ const kt = {
|
|
|
2285
2310
|
"filter-display": a.filters ? "row" : void 0,
|
|
2286
2311
|
ref_key: "forgeTable",
|
|
2287
2312
|
ref: u,
|
|
2288
|
-
"onUpdate:filters":
|
|
2313
|
+
"onUpdate:filters": d,
|
|
2289
2314
|
"data-cy": "table"
|
|
2290
|
-
}),
|
|
2315
|
+
}), X({
|
|
2291
2316
|
header: f(() => [
|
|
2292
2317
|
m("div", Vt, [
|
|
2293
2318
|
m("div", zt, [
|
|
@@ -2296,7 +2321,7 @@ const kt = {
|
|
|
2296
2321
|
total: c.total ?? c.value.length,
|
|
2297
2322
|
"page-sizes": s.value,
|
|
2298
2323
|
"per-page": o.value,
|
|
2299
|
-
"onUpdate:perPage": g[0] || (g[0] = (
|
|
2324
|
+
"onUpdate:perPage": g[0] || (g[0] = (x) => o.value = x)
|
|
2300
2325
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2301
2326
|
])) : F("", !0)
|
|
2302
2327
|
]),
|
|
@@ -2305,7 +2330,7 @@ const kt = {
|
|
|
2305
2330
|
key: 0,
|
|
2306
2331
|
outlined: "",
|
|
2307
2332
|
class: S(c.showExporterButton ? "me-2" : ""),
|
|
2308
|
-
onClick:
|
|
2333
|
+
onClick: r,
|
|
2309
2334
|
"data-cy": "clear-all"
|
|
2310
2335
|
}, {
|
|
2311
2336
|
default: f(() => [
|
|
@@ -2314,7 +2339,7 @@ const kt = {
|
|
|
2314
2339
|
width: "24",
|
|
2315
2340
|
height: "24"
|
|
2316
2341
|
}),
|
|
2317
|
-
|
|
2342
|
+
M(" Clear ")
|
|
2318
2343
|
]),
|
|
2319
2344
|
_: 1
|
|
2320
2345
|
}, 8, ["class"])) : F("", !0),
|
|
@@ -2330,7 +2355,7 @@ const kt = {
|
|
|
2330
2355
|
width: "24",
|
|
2331
2356
|
height: "24"
|
|
2332
2357
|
}),
|
|
2333
|
-
|
|
2358
|
+
M(" Export ")
|
|
2334
2359
|
]),
|
|
2335
2360
|
_: 1
|
|
2336
2361
|
})) : F("", !0)
|
|
@@ -2338,25 +2363,25 @@ const kt = {
|
|
|
2338
2363
|
])
|
|
2339
2364
|
]),
|
|
2340
2365
|
default: f(() => [
|
|
2341
|
-
|
|
2366
|
+
k(c.$slots, "default")
|
|
2342
2367
|
]),
|
|
2343
2368
|
_: 2
|
|
2344
2369
|
}, [
|
|
2345
|
-
|
|
2346
|
-
name:
|
|
2347
|
-
fn: f((
|
|
2348
|
-
|
|
2370
|
+
E(c.$slots, (x, V) => ({
|
|
2371
|
+
name: V,
|
|
2372
|
+
fn: f((U) => [
|
|
2373
|
+
k(c.$slots, V, ae(le(U || {})))
|
|
2349
2374
|
])
|
|
2350
2375
|
})),
|
|
2351
2376
|
c.legacyPaginationFooter ? {
|
|
2352
2377
|
name: "paginatorstart",
|
|
2353
2378
|
fn: f(() => [
|
|
2354
|
-
m("span",
|
|
2355
|
-
|
|
2379
|
+
m("span", Mt, [
|
|
2380
|
+
Pt,
|
|
2356
2381
|
v(p(se), {
|
|
2357
2382
|
options: s.value,
|
|
2358
2383
|
modelValue: o.value,
|
|
2359
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
2384
|
+
"onUpdate:modelValue": g[1] || (g[1] = (x) => o.value = x),
|
|
2360
2385
|
class: "ms-2"
|
|
2361
2386
|
}, null, 8, ["options", "modelValue"])
|
|
2362
2387
|
])
|
|
@@ -2373,7 +2398,7 @@ const kt = {
|
|
|
2373
2398
|
]), 1040, ["rows", "total-records", "filter-display"])
|
|
2374
2399
|
], 64));
|
|
2375
2400
|
}
|
|
2376
|
-
}), qa = /* @__PURE__ */
|
|
2401
|
+
}), qa = /* @__PURE__ */ $({
|
|
2377
2402
|
__name: "ForgeFilterHeader",
|
|
2378
2403
|
props: {
|
|
2379
2404
|
dataType: {},
|
|
@@ -2402,11 +2427,11 @@ const kt = {
|
|
|
2402
2427
|
function pe(e, t, l, a) {
|
|
2403
2428
|
const s = t.flatMap((o) => o.file);
|
|
2404
2429
|
return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
|
|
2405
|
-
const u = s.findIndex((
|
|
2406
|
-
let
|
|
2407
|
-
u === -1 ? ((!l.includes(o.type) || !(o.size <= a)) && (
|
|
2430
|
+
const u = s.findIndex((d) => d.name === o.name);
|
|
2431
|
+
let r = "Not Uploaded";
|
|
2432
|
+
u === -1 ? ((!l.includes(o.type) || !(o.size <= a)) && (r = l.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2408
2433
|
file: o,
|
|
2409
|
-
status:
|
|
2434
|
+
status: r,
|
|
2410
2435
|
blobFileName: null
|
|
2411
2436
|
})) : t[u].status = "Duplicate";
|
|
2412
2437
|
}), t;
|
|
@@ -2440,9 +2465,9 @@ function At(e) {
|
|
|
2440
2465
|
function Nt(e) {
|
|
2441
2466
|
return URL.createObjectURL(e);
|
|
2442
2467
|
}
|
|
2443
|
-
const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disabled", "multiple"], Et = /* @__PURE__ */
|
|
2468
|
+
const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disabled", "multiple"], Et = /* @__PURE__ */ $({
|
|
2444
2469
|
__name: "UploadButton",
|
|
2445
|
-
props: /* @__PURE__ */
|
|
2470
|
+
props: /* @__PURE__ */ H({
|
|
2446
2471
|
acceptedFileTypes: {},
|
|
2447
2472
|
maxFileInput: {},
|
|
2448
2473
|
showDragDropArea: { type: Boolean }
|
|
@@ -2452,42 +2477,42 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2452
2477
|
}),
|
|
2453
2478
|
emits: ["update:modelValue"],
|
|
2454
2479
|
setup(e) {
|
|
2455
|
-
const t =
|
|
2456
|
-
t.value = pe(
|
|
2480
|
+
const t = O(e, "modelValue"), { acceptedFileTypes: l, maxFileInput: a, showDragDropArea: s } = e, o = _(() => a <= t.value.length), u = (r) => {
|
|
2481
|
+
t.value = pe(r, t.value, l, a);
|
|
2457
2482
|
};
|
|
2458
|
-
return (
|
|
2459
|
-
|
|
2483
|
+
return (r, d) => (n(), y("div", Ot, [
|
|
2484
|
+
k(r.$slots, "message"),
|
|
2460
2485
|
m("div", null, [
|
|
2461
2486
|
m("input", {
|
|
2462
2487
|
id: "file-input",
|
|
2463
2488
|
type: "file",
|
|
2464
2489
|
class: "d-none",
|
|
2465
|
-
accept:
|
|
2490
|
+
accept: r.acceptedFileTypes.join(", "),
|
|
2466
2491
|
disabled: o.value,
|
|
2467
|
-
multiple:
|
|
2468
|
-
onInput:
|
|
2492
|
+
multiple: r.maxFileInput > 1,
|
|
2493
|
+
onInput: d[0] || (d[0] = (i) => u([...i.target.files]))
|
|
2469
2494
|
}, null, 40, Rt),
|
|
2470
2495
|
m("label", {
|
|
2471
2496
|
class: S([{ disabled: o.value }, "btn btn-primary"]),
|
|
2472
2497
|
id: "file-input-button",
|
|
2473
2498
|
for: "file-input"
|
|
2474
2499
|
}, [
|
|
2475
|
-
|
|
2500
|
+
k(r.$slots, "button-content", {}, () => [
|
|
2476
2501
|
v(p(C), {
|
|
2477
2502
|
icon: "bi:upload",
|
|
2478
2503
|
class: "me-2",
|
|
2479
2504
|
height: "20px",
|
|
2480
2505
|
width: "20px"
|
|
2481
2506
|
}),
|
|
2482
|
-
|
|
2507
|
+
M(" Browse your computer ")
|
|
2483
2508
|
])
|
|
2484
2509
|
], 2)
|
|
2485
2510
|
]),
|
|
2486
|
-
|
|
2511
|
+
r.showDragDropArea ? (n(), y("div", {
|
|
2487
2512
|
class: "ms-auto",
|
|
2488
|
-
key:
|
|
2513
|
+
key: r.acceptedFileTypes.length,
|
|
2489
2514
|
id: "accepted-file-types"
|
|
2490
|
-
}, "Accepted File Types: " + h(
|
|
2515
|
+
}, "Accepted File Types: " + h(r.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) : F("", !0)
|
|
2491
2516
|
]));
|
|
2492
2517
|
}
|
|
2493
2518
|
}), jt = {
|
|
@@ -2497,9 +2522,9 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2497
2522
|
}, Lt = {
|
|
2498
2523
|
key: 1,
|
|
2499
2524
|
class: "d-flex flex-column"
|
|
2500
|
-
}, Ht = /* @__PURE__ */
|
|
2525
|
+
}, Ht = /* @__PURE__ */ $({
|
|
2501
2526
|
__name: "DragDropArea",
|
|
2502
|
-
props: /* @__PURE__ */
|
|
2527
|
+
props: /* @__PURE__ */ H({
|
|
2503
2528
|
maxFileInput: {},
|
|
2504
2529
|
maxFileSize: {},
|
|
2505
2530
|
acceptedFileTypes: {}
|
|
@@ -2509,15 +2534,15 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2509
2534
|
}),
|
|
2510
2535
|
emits: ["update:modelValue"],
|
|
2511
2536
|
setup(e) {
|
|
2512
|
-
const { acceptedFileTypes: t, maxFileInput: l, maxFileSize: a } = e, s =
|
|
2513
|
-
o.value = !1,
|
|
2537
|
+
const { acceptedFileTypes: t, maxFileInput: l, maxFileSize: a } = e, s = O(e, "modelValue"), o = I(!1), u = _(() => l <= s.value.length), r = (d) => {
|
|
2538
|
+
o.value = !1, d.dataTransfer.files.length > l || u.value ? d.preventDefault() : s.value = pe([...d.dataTransfer.files], s.value, t, a);
|
|
2514
2539
|
};
|
|
2515
|
-
return (
|
|
2540
|
+
return (d, i) => (n(), y("div", {
|
|
2516
2541
|
id: "drag-drop-area",
|
|
2517
2542
|
class: S(`${o.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
2518
|
-
onDragleave: i[0] || (i[0] =
|
|
2519
|
-
onDragover: i[1] || (i[1] =
|
|
2520
|
-
onDrop:
|
|
2543
|
+
onDragleave: i[0] || (i[0] = K((b) => o.value = !1, ["prevent"])),
|
|
2544
|
+
onDragover: i[1] || (i[1] = K((b) => o.value = !0, ["prevent"])),
|
|
2545
|
+
onDrop: K(r, ["prevent"])
|
|
2521
2546
|
}, [
|
|
2522
2547
|
s.value.length === 0 ? (n(), y("div", jt, [
|
|
2523
2548
|
v(p(C), {
|
|
@@ -2526,13 +2551,13 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2526
2551
|
height: "20px",
|
|
2527
2552
|
width: "20px"
|
|
2528
2553
|
}),
|
|
2529
|
-
|
|
2554
|
+
M(" Drag and drop files here ")
|
|
2530
2555
|
])) : (n(), y("div", Lt, [
|
|
2531
|
-
|
|
2556
|
+
k(d.$slots, "default")
|
|
2532
2557
|
]))
|
|
2533
2558
|
], 34));
|
|
2534
2559
|
}
|
|
2535
|
-
}), qt = { class: "d-flex align-items-center me-2" }, Gt = /* @__PURE__ */
|
|
2560
|
+
}), qt = { class: "d-flex align-items-center me-2" }, Gt = /* @__PURE__ */ $({
|
|
2536
2561
|
__name: "UploadStatus",
|
|
2537
2562
|
props: {
|
|
2538
2563
|
fileSize: {},
|
|
@@ -2541,7 +2566,7 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2541
2566
|
uploadStatus: {}
|
|
2542
2567
|
},
|
|
2543
2568
|
setup(e) {
|
|
2544
|
-
const { fileSize: t, uploadStatus: l, bytesUploaded: a, maxFileSize: s } = e, o =
|
|
2569
|
+
const { fileSize: t, uploadStatus: l, bytesUploaded: a, maxFileSize: s } = e, o = _(() => l === "Failed" || l === "InvalidFileType" || l === "InvalidFileSize" ? "danger" : "warning"), u = _(() => {
|
|
2545
2570
|
switch (l) {
|
|
2546
2571
|
case "InvalidFileType":
|
|
2547
2572
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -2557,26 +2582,26 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2557
2582
|
return "Upload Failed: Connection error, please try again.";
|
|
2558
2583
|
}
|
|
2559
2584
|
});
|
|
2560
|
-
return (
|
|
2561
|
-
|
|
2585
|
+
return (r, d) => (n(), y("div", qt, [
|
|
2586
|
+
r.uploadStatus === "Uploading" ? (n(), w(vt, {
|
|
2562
2587
|
key: 0,
|
|
2563
2588
|
pixelWidth: 200,
|
|
2564
2589
|
animate: "",
|
|
2565
2590
|
striped: ""
|
|
2566
2591
|
}, {
|
|
2567
2592
|
default: f(() => [
|
|
2568
|
-
|
|
2593
|
+
M(h((r.bytesUploaded / r.fileSize * 100).toFixed(0)) + "%", 1)
|
|
2569
2594
|
]),
|
|
2570
2595
|
_: 1
|
|
2571
2596
|
})) : F("", !0),
|
|
2572
|
-
|
|
2597
|
+
r.uploadStatus !== "Uploading" && r.uploadStatus !== "Not Uploaded" && r.uploadStatus !== "Uploaded" && r.uploadStatus !== "Preparing" ? (n(), w(Q, {
|
|
2573
2598
|
key: 1,
|
|
2574
2599
|
id: "upload-status-alert",
|
|
2575
2600
|
severity: o.value,
|
|
2576
2601
|
class: "mb-0 w-75 ms-auto"
|
|
2577
2602
|
}, {
|
|
2578
2603
|
default: f(() => [
|
|
2579
|
-
|
|
2604
|
+
M(h(u.value), 1)
|
|
2580
2605
|
]),
|
|
2581
2606
|
_: 1
|
|
2582
2607
|
}, 8, ["severity"])) : F("", !0)
|
|
@@ -2591,9 +2616,9 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2591
2616
|
}, Jt = {
|
|
2592
2617
|
class: "text-black-50",
|
|
2593
2618
|
id: "file-size"
|
|
2594
|
-
}, Xt = { class: "ms-auto my-auto d-flex" }, Qt = /* @__PURE__ */
|
|
2619
|
+
}, Xt = { class: "ms-auto my-auto d-flex" }, Qt = /* @__PURE__ */ $({
|
|
2595
2620
|
__name: "FileInfo",
|
|
2596
|
-
props: /* @__PURE__ */
|
|
2621
|
+
props: /* @__PURE__ */ H({
|
|
2597
2622
|
editableFileName: { type: Boolean },
|
|
2598
2623
|
acceptedFileTypes: {},
|
|
2599
2624
|
maxFileSize: {},
|
|
@@ -2608,54 +2633,54 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2608
2633
|
uploadStatus: { required: !0 },
|
|
2609
2634
|
uploadStatusModifiers: {}
|
|
2610
2635
|
}),
|
|
2611
|
-
emits: /* @__PURE__ */
|
|
2636
|
+
emits: /* @__PURE__ */ H(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
2612
2637
|
setup(e, { emit: t }) {
|
|
2613
|
-
const { autoUploadToBlob: l, maxFileSize: a, getFileUrlAction: s, customFileNameRules: o, editableFileName: u, acceptedFileTypes:
|
|
2614
|
-
|
|
2638
|
+
const { autoUploadToBlob: l, maxFileSize: a, getFileUrlAction: s, customFileNameRules: o, editableFileName: u, acceptedFileTypes: r } = e, d = O(e, "file"), i = O(e, "blobFileName"), b = O(e, "uploadStatus"), c = t, g = I(d.value.name), x = I(""), V = I(0), U = I(), q = _(() => r.includes(d.value.type)), G = _(() => d.value.size <= a), ee = () => {
|
|
2639
|
+
d.value = new File([d.value], g.value, { type: d.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
2615
2640
|
}, Z = async () => {
|
|
2616
|
-
if (!
|
|
2617
|
-
b.value =
|
|
2641
|
+
if (!q.value || !G.value) {
|
|
2642
|
+
b.value = q.value ? "InvalidFileSize" : "InvalidFileType";
|
|
2618
2643
|
return;
|
|
2619
2644
|
}
|
|
2620
|
-
b.value = "Preparing",
|
|
2621
|
-
const [
|
|
2622
|
-
if (!
|
|
2645
|
+
b.value = "Preparing", U.value = new AbortController();
|
|
2646
|
+
const [z, T] = await s(d.value.name);
|
|
2647
|
+
if (!z) {
|
|
2623
2648
|
b.value = "Failed";
|
|
2624
2649
|
return;
|
|
2625
2650
|
}
|
|
2626
2651
|
try {
|
|
2627
2652
|
b.value = "Uploading";
|
|
2628
|
-
const
|
|
2629
|
-
abortSignal:
|
|
2630
|
-
onProgress: (me) =>
|
|
2653
|
+
const P = new ue(z), N = {
|
|
2654
|
+
abortSignal: U.value.signal,
|
|
2655
|
+
onProgress: (me) => V.value = me.loadedBytes,
|
|
2631
2656
|
tags: { temp: "true" }
|
|
2632
2657
|
};
|
|
2633
|
-
await
|
|
2634
|
-
} catch (
|
|
2635
|
-
if (
|
|
2658
|
+
await P.uploadData(d.value, N), x.value = z, b.value = "Uploaded", i.value = T;
|
|
2659
|
+
} catch (P) {
|
|
2660
|
+
if (P.name === "AbortError") {
|
|
2636
2661
|
b.value = "Aborted";
|
|
2637
2662
|
return;
|
|
2638
2663
|
}
|
|
2639
2664
|
b.value = "Failed";
|
|
2640
2665
|
}
|
|
2641
|
-
},
|
|
2642
|
-
await Dt(b.value,
|
|
2666
|
+
}, te = async () => {
|
|
2667
|
+
await Dt(b.value, x.value), c("deleted", d.value);
|
|
2643
2668
|
};
|
|
2644
2669
|
return ie(() => {
|
|
2645
2670
|
l && Z();
|
|
2646
|
-
}), (
|
|
2647
|
-
const
|
|
2671
|
+
}), (z, T) => {
|
|
2672
|
+
const P = A;
|
|
2648
2673
|
return n(), y("div", {
|
|
2649
2674
|
class: "py-4 px-3 d-flex",
|
|
2650
|
-
"data-cy": `file-info-${
|
|
2675
|
+
"data-cy": `file-info-${d.value.name}`
|
|
2651
2676
|
}, [
|
|
2652
2677
|
m("div", null, [
|
|
2653
|
-
p(At)(
|
|
2678
|
+
p(At)(d.value.type) ? (n(), w(p(Te), {
|
|
2654
2679
|
key: 0,
|
|
2655
2680
|
id: "thumbnail-image",
|
|
2656
2681
|
"image-class": "image-file-thumbnail border",
|
|
2657
|
-
src: p(Nt)(
|
|
2658
|
-
alt:
|
|
2682
|
+
src: p(Nt)(d.value),
|
|
2683
|
+
alt: d.value.name,
|
|
2659
2684
|
width: "75px",
|
|
2660
2685
|
preview: ""
|
|
2661
2686
|
}, null, 8, ["src", "alt"])) : (n(), w(p(C), {
|
|
@@ -2668,28 +2693,28 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2668
2693
|
]),
|
|
2669
2694
|
m("div", Wt, [
|
|
2670
2695
|
m("div", null, [
|
|
2671
|
-
|
|
2696
|
+
z.editableFileName ? (n(), w(Ke, {
|
|
2672
2697
|
key: 0,
|
|
2673
2698
|
id: "edit-file-name",
|
|
2674
2699
|
modelValue: g.value,
|
|
2675
|
-
"onUpdate:modelValue":
|
|
2676
|
-
rules:
|
|
2677
|
-
name:
|
|
2678
|
-
"complete-action":
|
|
2679
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (n(), y("span", Zt, h(
|
|
2700
|
+
"onUpdate:modelValue": T[0] || (T[0] = (N) => g.value = N),
|
|
2701
|
+
rules: z.customFileNameRules,
|
|
2702
|
+
name: d.value.name,
|
|
2703
|
+
"complete-action": ee
|
|
2704
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (n(), y("span", Zt, h(d.value.name), 1))
|
|
2680
2705
|
]),
|
|
2681
|
-
m("span", Yt, "File type: " + h(
|
|
2682
|
-
m("span", Jt, "File size: " + h(p(ne)(
|
|
2706
|
+
m("span", Yt, "File type: " + h(d.value.type.split("/").pop()), 1),
|
|
2707
|
+
m("span", Jt, "File size: " + h(p(ne)(d.value.size)), 1)
|
|
2683
2708
|
]),
|
|
2684
2709
|
m("div", Xt, [
|
|
2685
2710
|
(n(), w(Gt, {
|
|
2686
2711
|
key: b.value,
|
|
2687
|
-
"file-size":
|
|
2712
|
+
"file-size": d.value.size,
|
|
2688
2713
|
"upload-status": b.value,
|
|
2689
|
-
"bytes-uploaded":
|
|
2690
|
-
"max-file-size":
|
|
2714
|
+
"bytes-uploaded": V.value,
|
|
2715
|
+
"max-file-size": z.maxFileSize
|
|
2691
2716
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
2692
|
-
b.value === "Not Uploaded" || b.value === "Failed" || b.value === "Duplicate" || b.value === "Aborted" ? (n(), w(
|
|
2717
|
+
b.value === "Not Uploaded" || b.value === "Failed" || b.value === "Duplicate" || b.value === "Aborted" ? (n(), w(P, {
|
|
2693
2718
|
key: 0,
|
|
2694
2719
|
link: "",
|
|
2695
2720
|
onClick: Z
|
|
@@ -2701,19 +2726,19 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2701
2726
|
]),
|
|
2702
2727
|
_: 1
|
|
2703
2728
|
})) : F("", !0),
|
|
2704
|
-
b.value === "Uploading" ? (n(), w(
|
|
2729
|
+
b.value === "Uploading" ? (n(), w(P, {
|
|
2705
2730
|
key: 1,
|
|
2706
2731
|
link: "",
|
|
2707
|
-
onClick:
|
|
2732
|
+
onClick: T[1] || (T[1] = (N) => U.value.value.abort())
|
|
2708
2733
|
}, {
|
|
2709
2734
|
default: f(() => [
|
|
2710
2735
|
v(p(C), { icon: "bi:x-circle-fill" })
|
|
2711
2736
|
]),
|
|
2712
2737
|
_: 1
|
|
2713
|
-
})) : (n(), w(
|
|
2738
|
+
})) : (n(), w(P, {
|
|
2714
2739
|
key: 2,
|
|
2715
2740
|
link: "",
|
|
2716
|
-
onClick:
|
|
2741
|
+
onClick: te,
|
|
2717
2742
|
id: "delete-button"
|
|
2718
2743
|
}, {
|
|
2719
2744
|
default: f(() => [
|
|
@@ -2725,7 +2750,7 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2725
2750
|
], 8, Kt);
|
|
2726
2751
|
};
|
|
2727
2752
|
}
|
|
2728
|
-
}), ea = { class: "d-flex justify-content-end mt-1" }, ta = { id: "max-file-size" }, aa = /* @__PURE__ */
|
|
2753
|
+
}), ea = { class: "d-flex justify-content-end mt-1" }, ta = { id: "max-file-size" }, aa = /* @__PURE__ */ $({
|
|
2729
2754
|
__name: "MaxFileSize",
|
|
2730
2755
|
props: {
|
|
2731
2756
|
maxFileSize: {}
|
|
@@ -2735,9 +2760,9 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2735
2760
|
m("div", ta, "Max file size: " + h(p(ne)(t.maxFileSize)), 1)
|
|
2736
2761
|
]));
|
|
2737
2762
|
}
|
|
2738
|
-
}), la = { "data-cy": "file-uploader" }, oa = { key: 0 }, Ga = /* @__PURE__ */
|
|
2763
|
+
}), la = { "data-cy": "file-uploader" }, oa = { key: 0 }, Ga = /* @__PURE__ */ $({
|
|
2739
2764
|
__name: "ForgeFileUploader",
|
|
2740
|
-
props: /* @__PURE__ */
|
|
2765
|
+
props: /* @__PURE__ */ H({
|
|
2741
2766
|
acceptedFileTypes: {},
|
|
2742
2767
|
maxFileSize: {},
|
|
2743
2768
|
getFileUrlAction: {},
|
|
@@ -2752,7 +2777,7 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2752
2777
|
}),
|
|
2753
2778
|
emits: ["update:modelValue"],
|
|
2754
2779
|
setup(e) {
|
|
2755
|
-
const t =
|
|
2780
|
+
const t = O(e, "modelValue"), l = e, a = (s) => {
|
|
2756
2781
|
t.value = t.value.filter((o) => o.file != s);
|
|
2757
2782
|
};
|
|
2758
2783
|
return (s, o) => (n(), y("div", la, [
|
|
@@ -2769,16 +2794,16 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2769
2794
|
"onUpdate:modelValue": o[1] || (o[1] = (u) => t.value = u)
|
|
2770
2795
|
}, {
|
|
2771
2796
|
default: f(() => [
|
|
2772
|
-
(n(!0), y(
|
|
2797
|
+
(n(!0), y(D, null, E(t.value, ({ file: u }, r) => (n(), y("span", null, [
|
|
2773
2798
|
(n(), w(Qt, B({
|
|
2774
2799
|
key: u.name,
|
|
2775
|
-
class:
|
|
2776
|
-
file: t.value[
|
|
2777
|
-
"onUpdate:file": (
|
|
2778
|
-
"blob-file-name": t.value[
|
|
2779
|
-
"onUpdate:blobFileName": (
|
|
2780
|
-
"upload-status": t.value[
|
|
2781
|
-
"onUpdate:uploadStatus": (
|
|
2800
|
+
class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
2801
|
+
file: t.value[r].file,
|
|
2802
|
+
"onUpdate:file": (d) => t.value[r].file = d,
|
|
2803
|
+
"blob-file-name": t.value[r].blobFileName,
|
|
2804
|
+
"onUpdate:blobFileName": (d) => t.value[r].blobFileName = d,
|
|
2805
|
+
"upload-status": t.value[r].status,
|
|
2806
|
+
"onUpdate:uploadStatus": (d) => t.value[r].status = d
|
|
2782
2807
|
}, l, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
2783
2808
|
]))), 256))
|
|
2784
2809
|
]),
|
|
@@ -2794,7 +2819,7 @@ const Ot = { class: "d-flex justify-content-between" }, Rt = ["accept", "disable
|
|
|
2794
2819
|
export {
|
|
2795
2820
|
Ia as Bootstrap_PT,
|
|
2796
2821
|
Ta as ForgeActionButton,
|
|
2797
|
-
|
|
2822
|
+
Q as ForgeAlert,
|
|
2798
2823
|
De as ForgeCheckbox,
|
|
2799
2824
|
Ra as ForgeChips,
|
|
2800
2825
|
ct as ForgeDatepicker,
|
|
@@ -2804,10 +2829,10 @@ export {
|
|
|
2804
2829
|
Oa as ForgeFormField,
|
|
2805
2830
|
Ke as ForgeInlineEditor,
|
|
2806
2831
|
ce as ForgeLoader,
|
|
2807
|
-
|
|
2832
|
+
Ma as ForgeModal,
|
|
2808
2833
|
et as ForgeMultiSelect,
|
|
2809
2834
|
Ua as ForgeMultiSelectPreview,
|
|
2810
|
-
|
|
2835
|
+
Pa as ForgeNavbar,
|
|
2811
2836
|
Da as ForgePageHeader,
|
|
2812
2837
|
vt as ForgeProgressBar,
|
|
2813
2838
|
Aa as ForgeRemainingCharacters,
|