@3squared/forge-ui-3 0.13.1 → 0.15.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 +724 -690
- package/dist/esm/style.css +2 -2
- package/dist/src/components/ForgeActionButton.vue.d.ts +4 -4
- package/dist/src/components/ForgeAlert.vue.d.ts +4 -4
- package/dist/src/components/ForgeCheckbox.vue.d.ts +4 -4
- package/dist/src/components/ForgeChips.vue.d.ts +4 -4
- package/dist/src/components/ForgeDatepicker.vue.d.ts +4 -4
- package/dist/src/components/ForgeForm.vue.d.ts +4 -4
- package/dist/src/components/ForgeFormField.vue.d.ts +14 -4
- package/dist/src/components/ForgeInlineEditor.vue.d.ts +4 -4
- package/dist/src/components/ForgeLink.vue.d.ts +1 -1
- package/dist/src/components/ForgeLoader.vue.d.ts +4 -4
- package/dist/src/components/ForgeModal.vue.d.ts +5 -5
- package/dist/src/components/ForgeMultiSelect.vue.d.ts +5 -5
- package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +4 -4
- package/dist/src/components/ForgeNavbar.vue.d.ts +5 -5
- package/dist/src/components/ForgePageHeader.vue.d.ts +1 -1
- package/dist/src/components/ForgeProgressBar.vue.d.ts +4 -4
- package/dist/src/components/ForgeRemainingCharacters.vue.d.ts +4 -4
- package/dist/src/components/ForgeStatWidget.vue.d.ts +4 -4
- package/dist/src/components/ForgeStepper.vue.d.ts +5 -5
- package/dist/src/components/ForgeTile.vue.d.ts +4 -4
- package/dist/src/components/file-uploader/ForgeFileUploader.vue.d.ts +4 -4
- package/dist/src/components/file-uploader/components/DragDropArea.vue.d.ts +3 -3
- package/dist/src/components/file-uploader/components/FileInfo.vue.d.ts +4 -4
- package/dist/src/components/file-uploader/components/MaxFileSize.vue.d.ts +1 -1
- package/dist/src/components/file-uploader/components/UploadButton.vue.d.ts +3 -3
- package/dist/src/components/file-uploader/components/UploadStatus.vue.d.ts +1 -1
- package/dist/src/components/table/ForgeFilterHeader.vue.d.ts +3 -3
- package/dist/src/components/table/ForgePaginationHeader.vue.d.ts +5 -5
- package/dist/src/components/table/ForgeTable.vue.d.ts +6 -5
- package/dist/src/passthroughs/Button.pt.d.ts +64 -8
- package/dist/src/passthroughs/Column.pt.d.ts +8 -2
- package/dist/src/passthroughs/Dropdown.pt.d.ts +5 -1
- package/package.json +7 -7
- package/src/styles/components/_file-uploader.scss +2 -1
- package/src/styles/components/_multiselect.scss +42 -249
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import be from "primevue/message";
|
|
2
|
-
import { defineComponent as F, openBlock as i, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as g, createElementVNode as c, normalizeClass as B, unref as m, createCommentVNode as S, createVNode as
|
|
2
|
+
import { defineComponent as F, openBlock as i, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as g, createElementVNode as c, normalizeClass as B, unref as m, createCommentVNode as S, createVNode as f, renderSlot as $, ref as I, createElementBlock as v, Fragment as L, mergeProps as _, mergeModels as E, useModel as A, computed as k, createTextVNode as O, toDisplayString as h, withDirectives as j, vShow as H, createSlots as te, renderList as Y, onMounted as ne, isRef as se, withKeys as J, useAttrs as fe, withModifiers as q, normalizeStyle as ge, watch as de } from "vue";
|
|
3
3
|
import { Icon as V } from "@iconify/vue";
|
|
4
4
|
import R from "primevue/button";
|
|
5
5
|
import he from "primevue/toast";
|
|
@@ -12,14 +12,14 @@ import { vOnClickOutside as $e } from "@vueuse/components";
|
|
|
12
12
|
import Be from "primevue/menubar";
|
|
13
13
|
import Fe from "vue-multiselect";
|
|
14
14
|
import _e from "primevue/calendar";
|
|
15
|
-
import
|
|
15
|
+
import le from "primevue/dropdown";
|
|
16
16
|
import Se from "primevue/inputmask";
|
|
17
17
|
import Ve from "primevue/textarea";
|
|
18
18
|
import ue from "primevue/inputnumber";
|
|
19
19
|
import Ce from "primevue/chips";
|
|
20
20
|
import Te from "primevue/progressbar";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
21
|
+
import Pe from "primevue/divider";
|
|
22
|
+
import Me from "primevue/steps";
|
|
23
23
|
import Ie from "primevue/datatable";
|
|
24
24
|
import ze from "primevue/multiselect";
|
|
25
25
|
import { BlockBlobClient as ce } from "@azure/storage-blob";
|
|
@@ -33,47 +33,54 @@ const De = {
|
|
|
33
33
|
{
|
|
34
34
|
"btn-brand": e.severity === "brand" && !e.outlined && !e.link && !e.text,
|
|
35
35
|
"btn-outline-brand": e.severity === "brand" && e.outlined,
|
|
36
|
-
"text-brand fw-bold btn-text-brand": e.severity === "brand" && e.text
|
|
36
|
+
"text-brand fw-bold btn-text-brand": e.severity === "brand" && e.text,
|
|
37
|
+
"link-brand text-decoration-underline link-underline-brand": e.severity === "brand" && e.link
|
|
37
38
|
},
|
|
38
39
|
// Primary
|
|
39
40
|
{
|
|
40
41
|
"btn-primary": (e.severity === null || e.severity === "primary") && !e.outlined && !e.link && !e.text,
|
|
41
42
|
"btn-outline-primary": (e.severity === null || e.severity === "primary") && e.outlined,
|
|
42
|
-
"text-primary fw-bold btn-text-primary": (e.severity === null || e.severity === "primary") && e.text
|
|
43
|
+
"text-primary fw-bold btn-text-primary": (e.severity === null || e.severity === "primary") && e.text,
|
|
44
|
+
"link-primary text-decoration-underline link-underline-primary": (e.severity === null || e.severity === "primary") && e.link
|
|
43
45
|
},
|
|
44
46
|
// Secondary
|
|
45
47
|
{
|
|
46
48
|
"btn-secondary": e.severity === "secondary" && !e.outlined && !e.link && !e.text,
|
|
47
49
|
"btn-outline-secondary": e.severity === "secondary" && e.outlined,
|
|
48
|
-
"text-secondary fw-bold btn-text-secondary": e.severity === "secondary" && e.text
|
|
50
|
+
"text-secondary fw-bold btn-text-secondary": e.severity === "secondary" && e.text,
|
|
51
|
+
"link-secondary text-decoration-underline link-underline-secondary": e.severity === "secondary" && e.link
|
|
49
52
|
},
|
|
50
53
|
// Success
|
|
51
54
|
{
|
|
52
55
|
"btn-success text-white": e.severity === "success" && !e.outlined && !e.link && !e.text,
|
|
53
56
|
"btn-outline-success": e.severity === "success" && e.outlined,
|
|
54
|
-
"text-success fw-bold btn-text-success": e.severity === "success" && e.text
|
|
57
|
+
"text-success fw-bold btn-text-success": e.severity === "success" && e.text,
|
|
58
|
+
"link-success text-decoration-underline link-underline-success": e.severity === "success" && e.link
|
|
55
59
|
},
|
|
56
60
|
// Warning
|
|
57
61
|
{
|
|
58
62
|
"btn-warning text-white": e.severity === "warning" && !e.outlined && !e.link && !e.text,
|
|
59
63
|
"btn-outline-warning": e.severity === "warning" && e.outlined,
|
|
60
|
-
"text-warning fw-bold btn-text-warning": e.severity === "warning" && e.text
|
|
64
|
+
"text-warning fw-bold btn-text-warning": e.severity === "warning" && e.text,
|
|
65
|
+
"link-warning text-decoration-underline link-underline-warning": e.severity === "warning" && e.link
|
|
61
66
|
},
|
|
62
67
|
// Danger
|
|
63
68
|
{
|
|
64
69
|
"btn-danger text-white": e.severity === "danger" && !e.outlined && !e.link && !e.text,
|
|
65
70
|
"btn-outline-danger": e.severity === "danger" && e.outlined,
|
|
66
|
-
"text-danger fw-bold btn-text-danger": e.severity === "danger" && e.text
|
|
71
|
+
"text-danger fw-bold btn-text-danger": e.severity === "danger" && e.text,
|
|
72
|
+
"link-danger text-decoration-underline link-underline-danger": e.severity === "danger" && e.link
|
|
67
73
|
},
|
|
68
74
|
// Info
|
|
69
75
|
{
|
|
70
76
|
"btn-info text-white": e.severity === "info" && !e.outlined && !e.link && !e.text,
|
|
71
77
|
"btn-outline-info": e.severity === "info" && e.outlined,
|
|
72
|
-
"text-info fw-bold btn-text-info": e.severity === "info" && e.text
|
|
78
|
+
"text-info fw-bold btn-text-info": e.severity === "info" && e.text,
|
|
79
|
+
"link-info text-decoration-underline link-underline-info": e.severity === "info" && e.link
|
|
73
80
|
},
|
|
74
81
|
// Misc
|
|
75
82
|
{
|
|
76
|
-
"
|
|
83
|
+
"p-0 border-0": e.link,
|
|
77
84
|
shadow: e.raised,
|
|
78
85
|
"rounded-pill": e.rounded,
|
|
79
86
|
"btn-lg": e.size == "large",
|
|
@@ -185,19 +192,26 @@ const De = {
|
|
|
185
192
|
clearicon: "ms-auto my-auto",
|
|
186
193
|
loadingIcon: "spinner-border spinner-border-sm border-0",
|
|
187
194
|
itemGroupLabel: "ps-2 fw-bold",
|
|
188
|
-
input:
|
|
195
|
+
input: ({ instance: e }) => ({
|
|
196
|
+
class: [
|
|
197
|
+
"w-100",
|
|
198
|
+
{
|
|
199
|
+
"filter-placeholder": e.modelValue === void 0
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
})
|
|
189
203
|
}
|
|
190
204
|
}, Ne = {
|
|
191
205
|
column: {
|
|
192
206
|
sortBadge: "ms-2 my-auto cursor-pointer",
|
|
193
207
|
headerCell: (e) => {
|
|
194
|
-
var t,
|
|
208
|
+
var t, l, o, a;
|
|
195
209
|
return {
|
|
196
210
|
class: [
|
|
197
211
|
{
|
|
198
212
|
"cursor-move": e.props.reorderableColumns,
|
|
199
|
-
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((
|
|
200
|
-
"overflow-hidden position-relative bg-clip-padding": (
|
|
213
|
+
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((l = e.column) == null ? void 0 : l.context.frozen) || ((o = e.column) == null ? void 0 : o.context.frozen) === "",
|
|
214
|
+
"overflow-hidden position-relative bg-clip-padding": (a = e.column) == null ? void 0 : a.context.resizable
|
|
201
215
|
}
|
|
202
216
|
]
|
|
203
217
|
};
|
|
@@ -229,9 +243,12 @@ const De = {
|
|
|
229
243
|
}
|
|
230
244
|
]
|
|
231
245
|
}),
|
|
232
|
-
headerFilterClearButton: () => ({
|
|
246
|
+
headerFilterClearButton: ({ props: e }) => (console.log(), {
|
|
233
247
|
class: [
|
|
234
|
-
"btn"
|
|
248
|
+
"btn",
|
|
249
|
+
{
|
|
250
|
+
"d-none": e.filters[e.field].value === null
|
|
251
|
+
}
|
|
235
252
|
]
|
|
236
253
|
}),
|
|
237
254
|
filterOverlay: {
|
|
@@ -286,13 +303,13 @@ const De = {
|
|
|
286
303
|
}, Ee = {
|
|
287
304
|
inputtext: {
|
|
288
305
|
root: (e) => {
|
|
289
|
-
var t,
|
|
306
|
+
var t, l;
|
|
290
307
|
return {
|
|
291
308
|
class: [
|
|
292
309
|
"form-control",
|
|
293
310
|
{
|
|
294
311
|
"form-control-lg": ((t = e.props.size) == null ? void 0 : t.toLowerCase()) == "large",
|
|
295
|
-
"form-control-sm": ((
|
|
312
|
+
"form-control-sm": ((l = e.props.size) == null ? void 0 : l.toLowerCase()) == "small"
|
|
296
313
|
}
|
|
297
314
|
]
|
|
298
315
|
};
|
|
@@ -723,7 +740,7 @@ const De = {
|
|
|
723
740
|
]
|
|
724
741
|
})
|
|
725
742
|
}
|
|
726
|
-
},
|
|
743
|
+
}, lt = {
|
|
727
744
|
tooltip: {
|
|
728
745
|
root: ({ context: e }) => ({
|
|
729
746
|
class: [
|
|
@@ -745,7 +762,7 @@ const De = {
|
|
|
745
762
|
class: ["tooltip-inner"]
|
|
746
763
|
}
|
|
747
764
|
}
|
|
748
|
-
},
|
|
765
|
+
}, at = {
|
|
749
766
|
selectbutton: {
|
|
750
767
|
root: () => ({
|
|
751
768
|
class: ["btn-group"]
|
|
@@ -805,7 +822,7 @@ const De = {
|
|
|
805
822
|
button: "preview-button",
|
|
806
823
|
mask: "position-fixed top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center mask",
|
|
807
824
|
preview: "preview",
|
|
808
|
-
toolbar: "position-absolute top-0 end-0 d-flex p-3",
|
|
825
|
+
toolbar: "position-absolute top-0 end-0 d-flex p-3 z-3",
|
|
809
826
|
rotaterightbutton: "btn text-white",
|
|
810
827
|
rotateleftbutton: "btn text-white",
|
|
811
828
|
zoomoutbutton: "btn text-white",
|
|
@@ -836,21 +853,21 @@ const De = {
|
|
|
836
853
|
class: ["ps-1"]
|
|
837
854
|
}),
|
|
838
855
|
icon: ({ props: e }) => {
|
|
839
|
-
var t,
|
|
856
|
+
var t, l, o, a;
|
|
840
857
|
return {
|
|
841
858
|
class: [
|
|
842
859
|
"toast-icon",
|
|
843
860
|
{
|
|
844
861
|
"text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
|
|
845
|
-
"text-success": ((
|
|
862
|
+
"text-success": ((l = e.message) == null ? void 0 : l.severity) === "success",
|
|
846
863
|
"text-danger": ((o = e.message) == null ? void 0 : o.severity) === "error",
|
|
847
|
-
"text-warning": ((
|
|
864
|
+
"text-warning": ((a = e.message) == null ? void 0 : a.severity) === "warn"
|
|
848
865
|
}
|
|
849
866
|
]
|
|
850
867
|
};
|
|
851
868
|
}
|
|
852
869
|
}
|
|
853
|
-
},
|
|
870
|
+
}, ca = {
|
|
854
871
|
...et,
|
|
855
872
|
...De,
|
|
856
873
|
...nt,
|
|
@@ -871,16 +888,16 @@ const De = {
|
|
|
871
888
|
...Ye,
|
|
872
889
|
...Xe,
|
|
873
890
|
...ot,
|
|
874
|
-
...
|
|
891
|
+
...at,
|
|
875
892
|
...Ke,
|
|
876
893
|
...Qe,
|
|
877
894
|
...We,
|
|
878
895
|
...rt,
|
|
879
896
|
...je,
|
|
880
897
|
directives: {
|
|
881
|
-
...
|
|
898
|
+
...lt
|
|
882
899
|
}
|
|
883
|
-
},
|
|
900
|
+
}, ae = /* @__PURE__ */ F({
|
|
884
901
|
__name: "ForgeAlert",
|
|
885
902
|
props: {
|
|
886
903
|
severity: { default: "primary" },
|
|
@@ -896,9 +913,9 @@ const De = {
|
|
|
896
913
|
},
|
|
897
914
|
setup(e) {
|
|
898
915
|
const t = e;
|
|
899
|
-
return (
|
|
900
|
-
const
|
|
901
|
-
return i(), w(
|
|
916
|
+
return (l, o) => {
|
|
917
|
+
const a = be;
|
|
918
|
+
return i(), w(a, Q(ee({ ...l.$attrs, ...t })), {
|
|
902
919
|
messageicon: g(() => [
|
|
903
920
|
c("div", {
|
|
904
921
|
class: B(t.icon ? "me-2 pe-1" : "")
|
|
@@ -913,16 +930,16 @@ const De = {
|
|
|
913
930
|
], 2)
|
|
914
931
|
]),
|
|
915
932
|
closeicon: g(() => [
|
|
916
|
-
|
|
933
|
+
f(m(V), { icon: "bi:x" })
|
|
917
934
|
]),
|
|
918
935
|
default: g(() => [
|
|
919
|
-
$(
|
|
936
|
+
$(l.$slots, "default")
|
|
920
937
|
]),
|
|
921
938
|
_: 3
|
|
922
939
|
}, 16);
|
|
923
940
|
};
|
|
924
941
|
}
|
|
925
|
-
}),
|
|
942
|
+
}), ma = /* @__PURE__ */ F({
|
|
926
943
|
__name: "ForgeActionButton",
|
|
927
944
|
props: {
|
|
928
945
|
action: {},
|
|
@@ -931,24 +948,24 @@ const De = {
|
|
|
931
948
|
params: { default: Array }
|
|
932
949
|
},
|
|
933
950
|
setup(e) {
|
|
934
|
-
const t = I(!1),
|
|
951
|
+
const t = I(!1), l = e, o = async () => {
|
|
935
952
|
t.value = !0;
|
|
936
953
|
try {
|
|
937
|
-
await
|
|
938
|
-
} catch (
|
|
939
|
-
await
|
|
954
|
+
await l.action.apply(this, l.params);
|
|
955
|
+
} catch (a) {
|
|
956
|
+
await l.errorAction.apply(this, l.errorParams ? [...l.errorParams, a] : [a]);
|
|
940
957
|
}
|
|
941
958
|
t.value = !1;
|
|
942
959
|
};
|
|
943
|
-
return (
|
|
944
|
-
const
|
|
945
|
-
return i(),
|
|
946
|
-
|
|
960
|
+
return (a, n) => {
|
|
961
|
+
const d = R;
|
|
962
|
+
return i(), v(L, null, [
|
|
963
|
+
f(d, _({ ...l, ...a.$attrs }, {
|
|
947
964
|
loading: t.value,
|
|
948
|
-
disabled: t.value ||
|
|
965
|
+
disabled: t.value || l.disabled,
|
|
949
966
|
onClick: o
|
|
950
967
|
}), null, 16, ["loading", "disabled"]),
|
|
951
|
-
|
|
968
|
+
f(m(he))
|
|
952
969
|
], 64);
|
|
953
970
|
};
|
|
954
971
|
}
|
|
@@ -982,33 +999,33 @@ const De = {
|
|
|
982
999
|
}),
|
|
983
1000
|
emits: ["update:modelValue"],
|
|
984
1001
|
setup(e) {
|
|
985
|
-
const t = e,
|
|
1002
|
+
const t = e, l = A(e, "modelValue"), {
|
|
986
1003
|
handleChange: o,
|
|
987
|
-
errors:
|
|
1004
|
+
errors: a,
|
|
988
1005
|
errorMessage: n
|
|
989
1006
|
} = K(() => t.name ?? "", void 0, {
|
|
990
1007
|
type: "checkbox",
|
|
991
|
-
checkedValue:
|
|
992
|
-
}),
|
|
993
|
-
return (r,
|
|
1008
|
+
checkedValue: l.value
|
|
1009
|
+
}), d = k(() => a.value.length > 0);
|
|
1010
|
+
return (r, u) => {
|
|
994
1011
|
const p = we;
|
|
995
|
-
return i(),
|
|
1012
|
+
return i(), v("div", dt, [
|
|
996
1013
|
c("div", _({
|
|
997
1014
|
class: "d-flex cursor-pointer",
|
|
998
1015
|
"data-cy": "checkbox-container",
|
|
999
|
-
onClick:
|
|
1016
|
+
onClick: u[2] || (u[2] = (y) => m(o)(l.value))
|
|
1000
1017
|
}, { ...r.$attrs }), [
|
|
1001
|
-
|
|
1018
|
+
f(p, _({ ...t }, {
|
|
1002
1019
|
binary: "",
|
|
1003
|
-
modelValue:
|
|
1004
|
-
"onUpdate:modelValue":
|
|
1020
|
+
modelValue: l.value,
|
|
1021
|
+
"onUpdate:modelValue": u[0] || (u[0] = (y) => l.value = y),
|
|
1005
1022
|
"input-id": t.name,
|
|
1006
|
-
"input-class": { "is-invalid":
|
|
1023
|
+
"input-class": { "is-invalid": d.value }
|
|
1007
1024
|
}), null, 16, ["modelValue", "input-id", "input-class"]),
|
|
1008
1025
|
c("label", {
|
|
1009
1026
|
for: t.name,
|
|
1010
|
-
onClick:
|
|
1011
|
-
class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${
|
|
1027
|
+
onClick: u[1] || (u[1] = (y) => m(o)(l.value)),
|
|
1028
|
+
class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${d.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1012
1029
|
}, [
|
|
1013
1030
|
$(r.$slots, "default", {}, () => [
|
|
1014
1031
|
O(h(t.label), 1)
|
|
@@ -1019,7 +1036,7 @@ const De = {
|
|
|
1019
1036
|
"data-cy": "error",
|
|
1020
1037
|
class: "text-invalid"
|
|
1021
1038
|
}, h(m(n)), 513), [
|
|
1022
|
-
[H,
|
|
1039
|
+
[H, d.value]
|
|
1023
1040
|
])
|
|
1024
1041
|
]);
|
|
1025
1042
|
};
|
|
@@ -1031,17 +1048,17 @@ const De = {
|
|
|
1031
1048
|
},
|
|
1032
1049
|
setup(e) {
|
|
1033
1050
|
const t = e;
|
|
1034
|
-
return (
|
|
1035
|
-
const
|
|
1036
|
-
return i(),
|
|
1037
|
-
|
|
1051
|
+
return (l, o) => {
|
|
1052
|
+
const a = xe;
|
|
1053
|
+
return i(), v("div", mt, [
|
|
1054
|
+
f(a, {
|
|
1038
1055
|
"animation-duration": ".75",
|
|
1039
1056
|
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1040
1057
|
}, null, 8, ["class"])
|
|
1041
1058
|
]);
|
|
1042
1059
|
};
|
|
1043
1060
|
}
|
|
1044
|
-
}), pt = ["href", "target"],
|
|
1061
|
+
}), pt = ["href", "target"], pa = /* @__PURE__ */ F({
|
|
1045
1062
|
__name: "ForgeLink",
|
|
1046
1063
|
props: {
|
|
1047
1064
|
url: {},
|
|
@@ -1059,7 +1076,7 @@ const De = {
|
|
|
1059
1076
|
iconName: {}
|
|
1060
1077
|
},
|
|
1061
1078
|
setup(e) {
|
|
1062
|
-
const t =
|
|
1079
|
+
const t = k(() => ({
|
|
1063
1080
|
[`link-${e.severity}`]: e.severity,
|
|
1064
1081
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1065
1082
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1068,14 +1085,14 @@ const De = {
|
|
|
1068
1085
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1069
1086
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1070
1087
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1071
|
-
})),
|
|
1088
|
+
})), l = k(() => ({
|
|
1072
1089
|
"order-2": e.positionIconEnd,
|
|
1073
1090
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1074
1091
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
1075
1092
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1076
1093
|
"me-0": e.animateIconOnHover
|
|
1077
1094
|
}));
|
|
1078
|
-
return (o,
|
|
1095
|
+
return (o, a) => (i(), v("a", {
|
|
1079
1096
|
id: "link",
|
|
1080
1097
|
class: B(["cursor-pointer d-flex", t.value]),
|
|
1081
1098
|
href: o.url,
|
|
@@ -1086,34 +1103,34 @@ const De = {
|
|
|
1086
1103
|
key: 0,
|
|
1087
1104
|
id: "link-icon",
|
|
1088
1105
|
icon: o.iconName,
|
|
1089
|
-
class: B(["bi my-auto",
|
|
1106
|
+
class: B(["bi my-auto", l.value])
|
|
1090
1107
|
}, null, 8, ["icon", "class"])) : S("", !0),
|
|
1091
1108
|
O(" " + h(o.label), 1)
|
|
1092
1109
|
])
|
|
1093
1110
|
], 10, pt));
|
|
1094
1111
|
}
|
|
1095
1112
|
});
|
|
1096
|
-
function
|
|
1113
|
+
function yt(e) {
|
|
1097
1114
|
const t = {
|
|
1098
1115
|
errorMessage: "",
|
|
1099
1116
|
errorDetails: []
|
|
1100
1117
|
};
|
|
1101
1118
|
if (e.exception && (t.errorMessage = e.exception), e.message && (Array.isArray(e.message) ? t.errorDetails = e.message : t.errorMessage = e.message), e.response) {
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1119
|
+
const l = JSON.parse(e.response);
|
|
1120
|
+
l.errors && (t.errorDetails = Object.values(l.errors).flat()), l.message && (t.errorDetails = l.message);
|
|
1104
1121
|
}
|
|
1105
1122
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1106
1123
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return e.map((
|
|
1124
|
+
function ya(e, t) {
|
|
1125
|
+
return e.map((l) => ({ id: l, label: t ? t(l) : `${l}` }));
|
|
1109
1126
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return { id: e, label: t ?? e.toString(), shortLabel:
|
|
1127
|
+
function va(e, t, l) {
|
|
1128
|
+
return { id: e, label: t ?? e.toString(), shortLabel: l };
|
|
1112
1129
|
}
|
|
1113
|
-
const
|
|
1130
|
+
const vt = { key: 0 }, bt = {
|
|
1114
1131
|
class: "d-flex w-100",
|
|
1115
1132
|
"data-cy": "footer"
|
|
1116
|
-
},
|
|
1133
|
+
}, ba = /* @__PURE__ */ F({
|
|
1117
1134
|
__name: "ForgeModal",
|
|
1118
1135
|
props: /* @__PURE__ */ E({
|
|
1119
1136
|
cancelText: { default: "Cancel" },
|
|
@@ -1159,34 +1176,34 @@ const yt = { key: 0 }, bt = {
|
|
|
1159
1176
|
}),
|
|
1160
1177
|
emits: ["update:visible"],
|
|
1161
1178
|
setup(e) {
|
|
1162
|
-
const t = A(e, "visible"),
|
|
1179
|
+
const t = A(e, "visible"), l = I(!1), o = e, a = I(!1), n = I({
|
|
1163
1180
|
hasError: !1,
|
|
1164
1181
|
header: "",
|
|
1165
1182
|
message: []
|
|
1166
|
-
}),
|
|
1167
|
-
|
|
1183
|
+
}), d = () => {
|
|
1184
|
+
l.value = !1;
|
|
1168
1185
|
}, r = () => {
|
|
1169
|
-
|
|
1170
|
-
},
|
|
1186
|
+
l.value = !0;
|
|
1187
|
+
}, u = () => {
|
|
1171
1188
|
t.value = !1;
|
|
1172
1189
|
}, p = async () => {
|
|
1173
1190
|
if (o.onConfirm) {
|
|
1174
|
-
|
|
1191
|
+
a.value = !0, n.value.hasError = !1;
|
|
1175
1192
|
try {
|
|
1176
1193
|
const s = await o.onConfirm();
|
|
1177
|
-
(s || s == null) &&
|
|
1194
|
+
(s || s == null) && u();
|
|
1178
1195
|
} catch (s) {
|
|
1179
1196
|
n.value.hasError = !0;
|
|
1180
|
-
const T =
|
|
1197
|
+
const T = yt(s);
|
|
1181
1198
|
n.value.header = T.errorMessage, n.value.message = T.errorDetails;
|
|
1182
1199
|
}
|
|
1183
|
-
|
|
1200
|
+
a.value = !1;
|
|
1184
1201
|
}
|
|
1185
|
-
},
|
|
1202
|
+
}, y = k(() => ({
|
|
1186
1203
|
root: [
|
|
1187
1204
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1188
1205
|
{
|
|
1189
|
-
"mw-100 vh-100 vw-100 top-0 start-0":
|
|
1206
|
+
"mw-100 vh-100 vw-100 top-0 start-0": l.value,
|
|
1190
1207
|
"modal-sm": o.size === "sm",
|
|
1191
1208
|
"modal-lg": o.size === "lg",
|
|
1192
1209
|
"modal-xl": o.size === "xl"
|
|
@@ -1194,35 +1211,35 @@ const yt = { key: 0 }, bt = {
|
|
|
1194
1211
|
]
|
|
1195
1212
|
}));
|
|
1196
1213
|
return (s, T) => {
|
|
1197
|
-
const C = R,
|
|
1198
|
-
return i(), w(
|
|
1214
|
+
const C = R, P = ke;
|
|
1215
|
+
return i(), w(P, _(o, {
|
|
1199
1216
|
onMaximize: r,
|
|
1200
|
-
onUnmaximize:
|
|
1201
|
-
pt:
|
|
1217
|
+
onUnmaximize: d,
|
|
1218
|
+
pt: y.value
|
|
1202
1219
|
}), te({
|
|
1203
1220
|
closeicon: g(() => [
|
|
1204
|
-
|
|
1221
|
+
f(m(V), {
|
|
1205
1222
|
"data-cy": "close-icon",
|
|
1206
1223
|
icon: "bi:x-lg",
|
|
1207
1224
|
width: "18",
|
|
1208
1225
|
height: "18",
|
|
1209
|
-
onClick:
|
|
1226
|
+
onClick: u
|
|
1210
1227
|
})
|
|
1211
1228
|
]),
|
|
1212
1229
|
maximizeicon: g(() => [
|
|
1213
|
-
|
|
1230
|
+
f(m(V), {
|
|
1214
1231
|
"data-cy": "maximisable-icon",
|
|
1215
|
-
icon:
|
|
1232
|
+
icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1216
1233
|
width: "16",
|
|
1217
1234
|
height: "16"
|
|
1218
1235
|
}, null, 8, ["icon"])
|
|
1219
1236
|
]),
|
|
1220
1237
|
_: 2
|
|
1221
1238
|
}, [
|
|
1222
|
-
Y(s.$slots, (
|
|
1239
|
+
Y(s.$slots, (M, z) => ({
|
|
1223
1240
|
name: z,
|
|
1224
|
-
fn: g((
|
|
1225
|
-
n.value.hasError ? (i(), w(
|
|
1241
|
+
fn: g((b) => [
|
|
1242
|
+
n.value.hasError ? (i(), w(ae, {
|
|
1226
1243
|
key: 0,
|
|
1227
1244
|
severity: "danger",
|
|
1228
1245
|
"data-cy": "error"
|
|
@@ -1231,15 +1248,15 @@ const yt = { key: 0 }, bt = {
|
|
|
1231
1248
|
c("p", {
|
|
1232
1249
|
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1233
1250
|
}, h(n.value.header), 3),
|
|
1234
|
-
n.value.message.length > 0 ? (i(),
|
|
1235
|
-
(i(!0),
|
|
1251
|
+
n.value.message.length > 0 ? (i(), v("ul", vt, [
|
|
1252
|
+
(i(!0), v(L, null, Y(n.value.message, (x) => (i(), v("li", { key: x }, h(x), 1))), 128))
|
|
1236
1253
|
])) : S("", !0)
|
|
1237
1254
|
]),
|
|
1238
1255
|
_: 1
|
|
1239
1256
|
})) : S("", !0),
|
|
1240
|
-
$(s.$slots, z, Q(ee(
|
|
1241
|
-
|
|
1242
|
-
|
|
1257
|
+
$(s.$slots, z, Q(ee(b || {}))),
|
|
1258
|
+
a.value ? $(s.$slots, "loader", { key: 1 }, () => [
|
|
1259
|
+
f(me, { "data-cy": "loader" })
|
|
1243
1260
|
]) : S("", !0)
|
|
1244
1261
|
])
|
|
1245
1262
|
})),
|
|
@@ -1247,15 +1264,15 @@ const yt = { key: 0 }, bt = {
|
|
|
1247
1264
|
name: "footer",
|
|
1248
1265
|
fn: g(() => [
|
|
1249
1266
|
c("div", bt, [
|
|
1250
|
-
|
|
1267
|
+
f(C, {
|
|
1251
1268
|
label: s.cancelText,
|
|
1252
1269
|
class: B(o.cancelClass),
|
|
1253
1270
|
outlined: "",
|
|
1254
|
-
onClick:
|
|
1271
|
+
onClick: u,
|
|
1255
1272
|
id: "cancel-button",
|
|
1256
1273
|
type: o.cancelButtonType
|
|
1257
1274
|
}, null, 8, ["label", "class", "type"]),
|
|
1258
|
-
|
|
1275
|
+
f(C, {
|
|
1259
1276
|
label: s.submitText,
|
|
1260
1277
|
class: B([o.submitClass, "ms-auto"]),
|
|
1261
1278
|
onClick: p,
|
|
@@ -1284,13 +1301,13 @@ const yt = { key: 0 }, bt = {
|
|
|
1284
1301
|
}),
|
|
1285
1302
|
emits: ["update:modelValue"],
|
|
1286
1303
|
setup(e) {
|
|
1287
|
-
const t = e,
|
|
1304
|
+
const t = e, l = A(e, "modelValue"), o = I(!1), a = I(), n = () => {
|
|
1288
1305
|
var C;
|
|
1289
|
-
o.value = !o.value, (C =
|
|
1290
|
-
},
|
|
1306
|
+
o.value = !o.value, (C = a.value) == null || C.focus();
|
|
1307
|
+
}, d = async () => {
|
|
1291
1308
|
if (T.value)
|
|
1292
1309
|
return !1;
|
|
1293
|
-
if (
|
|
1310
|
+
if (l.value = s.value, t.completeAction)
|
|
1294
1311
|
try {
|
|
1295
1312
|
await t.completeAction.apply(this, t.params), o.value = !o.value;
|
|
1296
1313
|
} catch {
|
|
@@ -1300,58 +1317,58 @@ const yt = { key: 0 }, bt = {
|
|
|
1300
1317
|
o.value = !o.value;
|
|
1301
1318
|
}, r = () => {
|
|
1302
1319
|
o.value = !o.value;
|
|
1303
|
-
},
|
|
1320
|
+
}, u = () => {
|
|
1304
1321
|
s.value = null;
|
|
1305
|
-
}, { errorMessage: p, errors:
|
|
1306
|
-
initialValue:
|
|
1322
|
+
}, { errorMessage: p, errors: y, value: s } = K(() => t.name, void 0, {
|
|
1323
|
+
initialValue: l.value
|
|
1307
1324
|
});
|
|
1308
1325
|
ne(() => {
|
|
1309
|
-
s.value =
|
|
1326
|
+
s.value = l.value;
|
|
1310
1327
|
});
|
|
1311
|
-
const T =
|
|
1312
|
-
return (C,
|
|
1313
|
-
const
|
|
1314
|
-
return i(),
|
|
1328
|
+
const T = k(() => y.value.length > 0);
|
|
1329
|
+
return (C, P) => {
|
|
1330
|
+
const M = ie, z = R;
|
|
1331
|
+
return i(), v("div", {
|
|
1315
1332
|
id: t.name
|
|
1316
1333
|
}, [
|
|
1317
|
-
C.readonly ? (i(),
|
|
1334
|
+
C.readonly ? (i(), v("div", xt, [
|
|
1318
1335
|
$(C.$slots, "default", {}, () => [
|
|
1319
1336
|
c("span", kt, h(m(s)), 1)
|
|
1320
1337
|
])
|
|
1321
|
-
])) : (i(),
|
|
1322
|
-
o.value ? (i(),
|
|
1323
|
-
j((i(),
|
|
1338
|
+
])) : (i(), v("div", gt, [
|
|
1339
|
+
o.value ? (i(), v("div", ht, [
|
|
1340
|
+
j((i(), v("div", wt, [
|
|
1324
1341
|
$(C.$slots, "editor", {
|
|
1325
1342
|
class: B({ "is-invalid": T.value }),
|
|
1326
|
-
editFinished:
|
|
1343
|
+
editFinished: d,
|
|
1327
1344
|
cancel: r,
|
|
1328
1345
|
val: m(s)
|
|
1329
1346
|
}, () => [
|
|
1330
|
-
|
|
1347
|
+
f(M, {
|
|
1331
1348
|
"data-cy": "input",
|
|
1332
1349
|
ref_key: "input",
|
|
1333
|
-
ref:
|
|
1350
|
+
ref: a,
|
|
1334
1351
|
modelValue: m(s),
|
|
1335
|
-
"onUpdate:modelValue":
|
|
1352
|
+
"onUpdate:modelValue": P[0] || (P[0] = (b) => se(s) ? s.value = b : null),
|
|
1336
1353
|
modelModifiers: { trim: !0 },
|
|
1337
1354
|
class: B({ "is-invalid": T.value }),
|
|
1338
1355
|
onKeydown: [
|
|
1339
|
-
J(
|
|
1356
|
+
J(d, ["enter"]),
|
|
1340
1357
|
J(r, ["esc"])
|
|
1341
1358
|
]
|
|
1342
1359
|
}, null, 8, ["modelValue", "class"])
|
|
1343
1360
|
]),
|
|
1344
|
-
|
|
1361
|
+
f(m(V), {
|
|
1345
1362
|
icon: "bi:x-circle",
|
|
1346
1363
|
class: "mx-2 cursor-pointer",
|
|
1347
|
-
onClick:
|
|
1348
|
-
onKeydown: J(
|
|
1364
|
+
onClick: u,
|
|
1365
|
+
onKeydown: J(u, ["enter"]),
|
|
1349
1366
|
"data-cy": "clear-icon"
|
|
1350
1367
|
})
|
|
1351
1368
|
])), [
|
|
1352
|
-
[m($e),
|
|
1369
|
+
[m($e), d]
|
|
1353
1370
|
])
|
|
1354
|
-
])) : (i(),
|
|
1371
|
+
])) : (i(), v("div", {
|
|
1355
1372
|
key: 1,
|
|
1356
1373
|
class: "d-flex text-muted",
|
|
1357
1374
|
onClick: n,
|
|
@@ -1363,12 +1380,12 @@ const yt = { key: 0 }, bt = {
|
|
|
1363
1380
|
"data-cy": "value"
|
|
1364
1381
|
}, h(m(s) ? m(s) : "Click to edit"), 3)
|
|
1365
1382
|
]),
|
|
1366
|
-
|
|
1383
|
+
f(z, {
|
|
1367
1384
|
link: "",
|
|
1368
1385
|
class: "p-0 m-0"
|
|
1369
1386
|
}, {
|
|
1370
1387
|
default: g(() => [
|
|
1371
|
-
|
|
1388
|
+
f(m(V), {
|
|
1372
1389
|
icon: "bi:pencil",
|
|
1373
1390
|
class: B(T.value ? "text-invalid" : "text-muted"),
|
|
1374
1391
|
"data-cy": "edit-icon",
|
|
@@ -1388,7 +1405,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1388
1405
|
], 8, ft);
|
|
1389
1406
|
};
|
|
1390
1407
|
}
|
|
1391
|
-
}), Bt = ["href"],
|
|
1408
|
+
}), Bt = ["href"], fa = /* @__PURE__ */ F({
|
|
1392
1409
|
__name: "ForgeNavbar",
|
|
1393
1410
|
props: {
|
|
1394
1411
|
severity: { default: "light" },
|
|
@@ -1405,7 +1422,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1405
1422
|
unstyled: { type: Boolean }
|
|
1406
1423
|
},
|
|
1407
1424
|
setup(e) {
|
|
1408
|
-
const t = e,
|
|
1425
|
+
const t = e, l = k(() => ({
|
|
1409
1426
|
root: () => ({
|
|
1410
1427
|
class: [
|
|
1411
1428
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1432,10 +1449,10 @@ const yt = { key: 0 }, bt = {
|
|
|
1432
1449
|
]
|
|
1433
1450
|
})
|
|
1434
1451
|
}));
|
|
1435
|
-
return (o,
|
|
1452
|
+
return (o, a) => {
|
|
1436
1453
|
const n = Be;
|
|
1437
1454
|
return i(), w(n, _({ ...t, ...o.$attrs }, {
|
|
1438
|
-
pt:
|
|
1455
|
+
pt: l.value,
|
|
1439
1456
|
"data-cy": "navbar"
|
|
1440
1457
|
}), te({
|
|
1441
1458
|
start: g(() => [
|
|
@@ -1445,13 +1462,13 @@ const yt = { key: 0 }, bt = {
|
|
|
1445
1462
|
"data-cy": "logo"
|
|
1446
1463
|
}, [
|
|
1447
1464
|
$(o.$slots, "logo", {}, () => [
|
|
1448
|
-
O(" Logo ")
|
|
1465
|
+
a[0] || (a[0] = O(" Logo "))
|
|
1449
1466
|
])
|
|
1450
1467
|
], 8, Bt)
|
|
1451
1468
|
]),
|
|
1452
1469
|
menubuttonicon: g(() => [
|
|
1453
1470
|
$(o.$slots, "menubuttonicon", {}, () => [
|
|
1454
|
-
|
|
1471
|
+
f(m(V), {
|
|
1455
1472
|
icon: "bi:list",
|
|
1456
1473
|
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1457
1474
|
height: "24",
|
|
@@ -1461,16 +1478,16 @@ const yt = { key: 0 }, bt = {
|
|
|
1461
1478
|
]),
|
|
1462
1479
|
_: 2
|
|
1463
1480
|
}, [
|
|
1464
|
-
Y(o.$slots, (
|
|
1481
|
+
Y(o.$slots, (d, r) => ({
|
|
1465
1482
|
name: r,
|
|
1466
|
-
fn: g((
|
|
1467
|
-
$(o.$slots, r, Q(ee(
|
|
1483
|
+
fn: g((u) => [
|
|
1484
|
+
$(o.$slots, r, Q(ee(u)))
|
|
1468
1485
|
])
|
|
1469
1486
|
}))
|
|
1470
1487
|
]), 1040, ["pt"]);
|
|
1471
1488
|
};
|
|
1472
1489
|
}
|
|
1473
|
-
}), Ft =
|
|
1490
|
+
}), Ft = { class: "multiselect__caret" }, _t = ["checked"], St = ["data-cy"], Vt = ["checked"], Ct = { class: "my-auto ms-1" }, Tt = { class: "multiselect__tag d-inline-flex" }, Pt = { class: "my-auto" }, pe = /* @__PURE__ */ F({
|
|
1474
1491
|
__name: "ForgeMultiSelect",
|
|
1475
1492
|
props: {
|
|
1476
1493
|
severity: { default: "primary" },
|
|
@@ -1482,37 +1499,37 @@ const yt = { key: 0 }, bt = {
|
|
|
1482
1499
|
},
|
|
1483
1500
|
emits: ["update:modelValue"],
|
|
1484
1501
|
setup(e, { emit: t }) {
|
|
1485
|
-
const
|
|
1502
|
+
const l = e, o = (N, D) => {
|
|
1486
1503
|
const U = {
|
|
1487
1504
|
...D,
|
|
1488
1505
|
$isDisabled: D.$isDisabled ?? !1
|
|
1489
1506
|
};
|
|
1490
1507
|
N(U);
|
|
1491
|
-
},
|
|
1492
|
-
initialValue:
|
|
1493
|
-
}), p = I(!1),
|
|
1508
|
+
}, a = fe(), n = t, { errors: d, value: r, errorMessage: u } = K(() => l.name, void 0, {
|
|
1509
|
+
initialValue: a.modelValue
|
|
1510
|
+
}), p = I(!1), y = k(() => ({
|
|
1494
1511
|
multiple: !0,
|
|
1495
1512
|
label: "label",
|
|
1496
1513
|
trackBy: "id",
|
|
1497
1514
|
showPointer: !p.value,
|
|
1498
|
-
placeholder:
|
|
1515
|
+
placeholder: a.searchable === null || a.searchable ? "Search" : "Select",
|
|
1499
1516
|
allowEmpty: !0,
|
|
1500
1517
|
selectValue: "",
|
|
1501
|
-
closeOnSelect: !!(
|
|
1502
|
-
clearOnSelect: !!(
|
|
1503
|
-
searchable: !!(
|
|
1518
|
+
closeOnSelect: !!(a.multiple === null || a.multiple),
|
|
1519
|
+
clearOnSelect: !!(a.multiple === null || a.multiple),
|
|
1520
|
+
searchable: !!(a.searchable === null || a.searchable) && a.modelValue.length === a.options.length,
|
|
1504
1521
|
async: !1,
|
|
1505
|
-
...
|
|
1506
|
-
})), s =
|
|
1507
|
-
r.value =
|
|
1522
|
+
...a
|
|
1523
|
+
})), s = k(() => `forge-multiselect-${l.severity}`), T = k(() => `multiselect__option ${p.value ? " multiselect__option--highlight" : ""} ${C.value ? " multiselect__option--selected" : ""}`), C = k(() => y.value && !(y.value.multiple || !l.showSelectAll || y.value.async) ? !1 : a.modelValue.length === a.options.length), P = k(() => d.value.length > 0), M = k(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (y.value.multiple ? a.modelValue.length > 0 : a.modelValue))), z = () => p.value = !0, b = () => p.value = !1, x = () => {
|
|
1524
|
+
r.value = y.value.multiple ? [] : null, n("update:modelValue", r.value);
|
|
1508
1525
|
}, G = (N) => {
|
|
1509
|
-
n("update:modelValue",
|
|
1510
|
-
}, Z = (N) =>
|
|
1511
|
-
C.value ?
|
|
1526
|
+
n("update:modelValue", l.selectValue ? N.map((D) => D[l.selectValue]) : N);
|
|
1527
|
+
}, Z = (N) => a.modelValue !== null ? a.modelValue.some((D) => y.value.selectValue ? N[l.selectValue] === D : N.id === D.id && N.label === D.label) : !1, oe = () => {
|
|
1528
|
+
C.value ? x() : (r.value = [...a.options], n("update:modelValue", [...a.options]));
|
|
1512
1529
|
};
|
|
1513
|
-
return (N, D) => (i(),
|
|
1514
|
-
|
|
1515
|
-
class: [s.value,
|
|
1530
|
+
return (N, D) => (i(), v(L, null, [
|
|
1531
|
+
f(m(Fe), _(y.value, {
|
|
1532
|
+
class: [s.value, P.value ? "is-invalid" : ""],
|
|
1516
1533
|
"data-cy": "multiselect",
|
|
1517
1534
|
"onUpdate:modelValue": [
|
|
1518
1535
|
G,
|
|
@@ -1521,46 +1538,48 @@ const yt = { key: 0 }, bt = {
|
|
|
1521
1538
|
modelValue: m(r)
|
|
1522
1539
|
}), te({
|
|
1523
1540
|
caret: g(({ toggle: U }) => [
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1541
|
+
c("div", Ft, [
|
|
1542
|
+
M.value ? (i(), w(m(V), {
|
|
1543
|
+
key: 0,
|
|
1544
|
+
icon: "bi:x",
|
|
1545
|
+
class: "my-auto text-black multiselect__clear",
|
|
1546
|
+
onMousedown: D[0] || (D[0] = q((W) => x(), ["prevent", "stop"])),
|
|
1547
|
+
"data-cy": "clear",
|
|
1548
|
+
height: "18px",
|
|
1549
|
+
width: "18px"
|
|
1550
|
+
})) : S("", !0),
|
|
1551
|
+
f(m(V), {
|
|
1552
|
+
icon: "bi:chevron-down",
|
|
1553
|
+
onClick: U,
|
|
1554
|
+
class: "multiselect__arrow"
|
|
1555
|
+
}, null, 8, ["onClick"])
|
|
1556
|
+
])
|
|
1538
1557
|
]),
|
|
1539
1558
|
tag: g(({ option: U, remove: W }) => [
|
|
1540
1559
|
c("div", Tt, [
|
|
1541
|
-
c("div",
|
|
1542
|
-
|
|
1560
|
+
c("div", Pt, h(U.label), 1),
|
|
1561
|
+
f(m(V), {
|
|
1543
1562
|
icon: "bi:x",
|
|
1544
1563
|
class: "my-auto multiselect__tag-icon",
|
|
1545
|
-
onMousedown: q((
|
|
1564
|
+
onMousedown: q((Al) => o(W, U), ["prevent", "stop"]),
|
|
1546
1565
|
height: "18px",
|
|
1547
1566
|
width: "18px"
|
|
1548
1567
|
}, null, 8, ["onMousedown"])
|
|
1549
1568
|
])
|
|
1550
1569
|
]),
|
|
1551
1570
|
default: g(() => [
|
|
1552
|
-
(i(!0),
|
|
1571
|
+
(i(!0), v(L, null, Y(N.$slots, (U, W) => $(N.$slots, W, { slot: W })), 256))
|
|
1553
1572
|
]),
|
|
1554
1573
|
_: 2
|
|
1555
1574
|
}, [
|
|
1556
|
-
|
|
1575
|
+
y.value.multiple && N.showSelectAll && !y.value.async ? {
|
|
1557
1576
|
name: "beforeList",
|
|
1558
1577
|
fn: g(() => [
|
|
1559
1578
|
c("li", {
|
|
1560
1579
|
class: "multiselect__element",
|
|
1561
1580
|
onClick: oe,
|
|
1562
1581
|
onMouseover: z,
|
|
1563
|
-
onMouseleave:
|
|
1582
|
+
onMouseleave: b,
|
|
1564
1583
|
"data-cy": "toggle-all"
|
|
1565
1584
|
}, [
|
|
1566
1585
|
c("div", {
|
|
@@ -1571,14 +1590,14 @@ const yt = { key: 0 }, bt = {
|
|
|
1571
1590
|
name: "selected",
|
|
1572
1591
|
type: "checkbox",
|
|
1573
1592
|
class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
|
|
1574
|
-
}, null, 8,
|
|
1575
|
-
|
|
1593
|
+
}, null, 8, _t),
|
|
1594
|
+
D[2] || (D[2] = c("div", { class: "my-auto ms-1" }, "Toggle all", -1))
|
|
1576
1595
|
], 2)
|
|
1577
1596
|
], 32)
|
|
1578
1597
|
]),
|
|
1579
1598
|
key: "0"
|
|
1580
1599
|
} : void 0,
|
|
1581
|
-
|
|
1600
|
+
y.value.multiple ? {
|
|
1582
1601
|
name: "option",
|
|
1583
1602
|
fn: g(({ option: U }) => [
|
|
1584
1603
|
c("div", {
|
|
@@ -1591,7 +1610,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1591
1610
|
type: "checkbox",
|
|
1592
1611
|
class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
|
|
1593
1612
|
}, null, 8, Vt),
|
|
1594
|
-
c("div", Ct, h(U[
|
|
1613
|
+
c("div", Ct, h(U[y.value.label]), 1)
|
|
1595
1614
|
], 8, St)
|
|
1596
1615
|
]),
|
|
1597
1616
|
key: "1"
|
|
@@ -1600,12 +1619,12 @@ const yt = { key: 0 }, bt = {
|
|
|
1600
1619
|
j(c("small", {
|
|
1601
1620
|
"data-cy": "error",
|
|
1602
1621
|
class: "invalid-feedback"
|
|
1603
|
-
}, h(m(
|
|
1604
|
-
[H,
|
|
1622
|
+
}, h(m(u)), 513), [
|
|
1623
|
+
[H, P.value]
|
|
1605
1624
|
])
|
|
1606
1625
|
], 64));
|
|
1607
1626
|
}
|
|
1608
|
-
}),
|
|
1627
|
+
}), Mt = {
|
|
1609
1628
|
key: 0,
|
|
1610
1629
|
class: "pl-1"
|
|
1611
1630
|
}, It = { class: "border alternating-item-list" }, zt = {
|
|
@@ -1615,7 +1634,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1615
1634
|
}, Ot = { class: "d-inline-block" }, Dt = {
|
|
1616
1635
|
key: 1,
|
|
1617
1636
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1618
|
-
},
|
|
1637
|
+
}, ga = /* @__PURE__ */ F({
|
|
1619
1638
|
__name: "ForgeMultiSelectPreview",
|
|
1620
1639
|
props: /* @__PURE__ */ E({
|
|
1621
1640
|
title: { default: "Selected Items" },
|
|
@@ -1630,63 +1649,63 @@ const yt = { key: 0 }, bt = {
|
|
|
1630
1649
|
}),
|
|
1631
1650
|
emits: ["update:modelValue"],
|
|
1632
1651
|
setup(e) {
|
|
1633
|
-
const t = e,
|
|
1634
|
-
|
|
1652
|
+
const t = e, l = A(e, "modelValue"), o = (a) => {
|
|
1653
|
+
l.value = l.value.filter((n) => n.id !== a);
|
|
1635
1654
|
};
|
|
1636
|
-
return (
|
|
1637
|
-
const
|
|
1638
|
-
return i(),
|
|
1639
|
-
class: B(
|
|
1655
|
+
return (a, n) => {
|
|
1656
|
+
const d = R;
|
|
1657
|
+
return i(), v("div", {
|
|
1658
|
+
class: B(a.orientation === "column" ? "row" : ""),
|
|
1640
1659
|
"data-cy": "multiselect-preview"
|
|
1641
1660
|
}, [
|
|
1642
1661
|
c("div", {
|
|
1643
|
-
class: B(
|
|
1662
|
+
class: B(a.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1644
1663
|
"data-cy": "multiselect-container"
|
|
1645
1664
|
}, [
|
|
1646
|
-
|
|
1647
|
-
modelValue:
|
|
1648
|
-
"onUpdate:modelValue": n[0] || (n[0] = (r) =>
|
|
1649
|
-
"limit-text": () => `${
|
|
1665
|
+
f(pe, _({
|
|
1666
|
+
modelValue: l.value,
|
|
1667
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => l.value = r),
|
|
1668
|
+
"limit-text": () => `${l.value.length} selected`,
|
|
1650
1669
|
options: t.options
|
|
1651
|
-
}, { ...
|
|
1652
|
-
tag: g(() => [
|
|
1670
|
+
}, { ...a.$attrs }), {
|
|
1671
|
+
tag: g(() => n[1] || (n[1] = [
|
|
1653
1672
|
O(h(""))
|
|
1654
|
-
]),
|
|
1673
|
+
])),
|
|
1655
1674
|
selection: g(() => [
|
|
1656
|
-
|
|
1675
|
+
l.value.length > 0 ? (i(), v("span", Mt, h(l.value.length) + " items selected", 1)) : S("", !0)
|
|
1657
1676
|
]),
|
|
1658
1677
|
default: g(() => [
|
|
1659
|
-
(i(!0),
|
|
1678
|
+
(i(!0), v(L, null, Y(a.$slots, (r, u) => $(a.$slots, u, { slot: u })), 256))
|
|
1660
1679
|
]),
|
|
1661
1680
|
_: 3
|
|
1662
1681
|
}, 16, ["modelValue", "limit-text", "options"]),
|
|
1663
|
-
$(
|
|
1682
|
+
$(a.$slots, "after-multi-select")
|
|
1664
1683
|
], 2),
|
|
1665
1684
|
c("div", {
|
|
1666
|
-
class: B(
|
|
1685
|
+
class: B(a.orientation === "row" ? "col-12" : "col"),
|
|
1667
1686
|
"data-cy": "options-preview"
|
|
1668
1687
|
}, [
|
|
1669
1688
|
c("div", {
|
|
1670
|
-
style: ge({ height:
|
|
1689
|
+
style: ge({ height: a.height }),
|
|
1671
1690
|
class: "overflow-auto"
|
|
1672
1691
|
}, [
|
|
1673
1692
|
c("div", It, [
|
|
1674
|
-
|
|
1675
|
-
(i(!0),
|
|
1693
|
+
a.title ? (i(), v("div", zt, h(a.title), 1)) : S("", !0),
|
|
1694
|
+
(i(!0), v(L, null, Y(l.value, (r) => (i(), v("div", {
|
|
1676
1695
|
key: r.id,
|
|
1677
1696
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1678
1697
|
}, [
|
|
1679
|
-
$(
|
|
1698
|
+
$(a.$slots, "list-item", { item: r }, () => [
|
|
1680
1699
|
c("span", Ot, h(r.shortLabel ? r.shortLabel : r.label), 1)
|
|
1681
1700
|
]),
|
|
1682
|
-
|
|
1701
|
+
a.canRemoveItemFromPreview ? (i(), w(d, {
|
|
1683
1702
|
key: 0,
|
|
1684
1703
|
link: "",
|
|
1685
1704
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1686
|
-
onClick: (
|
|
1705
|
+
onClick: (u) => o(r.id)
|
|
1687
1706
|
}, {
|
|
1688
1707
|
default: g(() => [
|
|
1689
|
-
|
|
1708
|
+
f(m(V), {
|
|
1690
1709
|
icon: "bi:x",
|
|
1691
1710
|
class: "close-icon",
|
|
1692
1711
|
"data-cy": `close-icon-${r.id}`
|
|
@@ -1695,7 +1714,7 @@ const yt = { key: 0 }, bt = {
|
|
|
1695
1714
|
_: 2
|
|
1696
1715
|
}, 1032, ["onClick"])) : S("", !0)
|
|
1697
1716
|
]))), 128)),
|
|
1698
|
-
|
|
1717
|
+
l.value.length === 0 ? (i(), v("div", Dt, h(t.optionsPreviewEmptyText), 1)) : S("", !0)
|
|
1699
1718
|
])
|
|
1700
1719
|
], 4)
|
|
1701
1720
|
], 2)
|
|
@@ -1708,21 +1727,21 @@ const yt = { key: 0 }, bt = {
|
|
|
1708
1727
|
}, Nt = {
|
|
1709
1728
|
"data-cy": "slot",
|
|
1710
1729
|
class: "d-flex align-items-center"
|
|
1711
|
-
},
|
|
1730
|
+
}, ha = /* @__PURE__ */ F({
|
|
1712
1731
|
__name: "ForgePageHeader",
|
|
1713
1732
|
props: {
|
|
1714
1733
|
title: {}
|
|
1715
1734
|
},
|
|
1716
1735
|
setup(e) {
|
|
1717
1736
|
const t = e;
|
|
1718
|
-
return (
|
|
1737
|
+
return (l, o) => (i(), v("div", Ut, [
|
|
1719
1738
|
c("h3", At, h(t.title), 1),
|
|
1720
1739
|
c("div", Nt, [
|
|
1721
|
-
$(
|
|
1740
|
+
$(l.$slots, "default")
|
|
1722
1741
|
])
|
|
1723
1742
|
]));
|
|
1724
1743
|
}
|
|
1725
|
-
}), Et = { class: "d-flex" }, Lt = { "data-cy": "before-slot" }, Rt = { class: "position-relative w-100" }, jt = { "data-cy": "after-slot" },
|
|
1744
|
+
}), Et = { class: "d-flex" }, Lt = { "data-cy": "before-slot" }, Rt = { class: "position-relative w-100" }, jt = { "data-cy": "after-slot" }, ye = /* @__PURE__ */ F({
|
|
1726
1745
|
__name: "ForgeDatepicker",
|
|
1727
1746
|
props: /* @__PURE__ */ E({
|
|
1728
1747
|
severity: { default: "primary" },
|
|
@@ -1795,11 +1814,11 @@ const yt = { key: 0 }, bt = {
|
|
|
1795
1814
|
}),
|
|
1796
1815
|
emits: ["update:modelValue"],
|
|
1797
1816
|
setup(e) {
|
|
1798
|
-
const t = e,
|
|
1799
|
-
initialValue:
|
|
1800
|
-
}),
|
|
1801
|
-
r(null),
|
|
1802
|
-
}, p =
|
|
1817
|
+
const t = e, l = A(e, "modelValue"), { errors: o, errorMessage: a, handleChange: n, handleBlur: d, setValue: r } = K(() => t.name, void 0, {
|
|
1818
|
+
initialValue: l.value
|
|
1819
|
+
}), u = () => {
|
|
1820
|
+
r(null), l.value = null;
|
|
1821
|
+
}, p = k(() => o.value.length > 0), y = k(() => ({
|
|
1803
1822
|
day: ({ context: s }) => ({
|
|
1804
1823
|
class: [
|
|
1805
1824
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
@@ -1892,33 +1911,33 @@ const yt = { key: 0 }, bt = {
|
|
|
1892
1911
|
}));
|
|
1893
1912
|
return (s, T) => {
|
|
1894
1913
|
const C = _e;
|
|
1895
|
-
return i(),
|
|
1914
|
+
return i(), v(L, null, [
|
|
1896
1915
|
c("div", Et, [
|
|
1897
1916
|
c("span", Lt, [
|
|
1898
1917
|
$(s.$slots, "before")
|
|
1899
1918
|
]),
|
|
1900
1919
|
c("div", Rt, [
|
|
1901
|
-
|
|
1902
|
-
pt:
|
|
1903
|
-
modelValue:
|
|
1920
|
+
f(C, _({ ...t, ...s.$attrs }, {
|
|
1921
|
+
pt: y.value,
|
|
1922
|
+
modelValue: l.value,
|
|
1904
1923
|
"onUpdate:modelValue": [
|
|
1905
|
-
T[0] || (T[0] = (
|
|
1924
|
+
T[0] || (T[0] = (P) => l.value = P),
|
|
1906
1925
|
m(n)
|
|
1907
1926
|
],
|
|
1908
|
-
onBlur: m(
|
|
1927
|
+
onBlur: m(d),
|
|
1909
1928
|
"input-class": { "is-invalid": p.value }
|
|
1910
1929
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
|
|
1911
|
-
j(
|
|
1930
|
+
j(f(m(V), {
|
|
1912
1931
|
"data-cy": "icon",
|
|
1913
1932
|
icon: "bi:calendar4",
|
|
1914
1933
|
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${p.value ? "text-danger-dark" : "text-muted"}`])
|
|
1915
1934
|
}, null, 8, ["class"]), [
|
|
1916
1935
|
[H, t.showIcon]
|
|
1917
1936
|
]),
|
|
1918
|
-
j(
|
|
1937
|
+
j(f(m(V), {
|
|
1919
1938
|
"data-cy": "icon",
|
|
1920
1939
|
icon: "bi:x",
|
|
1921
|
-
onClick:
|
|
1940
|
+
onClick: u,
|
|
1922
1941
|
class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
1923
1942
|
}, null, 8, ["class"]), [
|
|
1924
1943
|
[H, t.modelValue]
|
|
@@ -1931,25 +1950,25 @@ const yt = { key: 0 }, bt = {
|
|
|
1931
1950
|
j(c("small", {
|
|
1932
1951
|
"data-cy": "error",
|
|
1933
1952
|
class: "text-invalid"
|
|
1934
|
-
}, h(m(
|
|
1953
|
+
}, h(m(a)), 513), [
|
|
1935
1954
|
[H, p.value]
|
|
1936
1955
|
])
|
|
1937
1956
|
], 64);
|
|
1938
1957
|
};
|
|
1939
1958
|
}
|
|
1940
|
-
}),
|
|
1959
|
+
}), wa = /* @__PURE__ */ F({
|
|
1941
1960
|
__name: "ForgeRemainingCharacters",
|
|
1942
1961
|
props: {
|
|
1943
1962
|
maxCount: { default: 300 },
|
|
1944
1963
|
currentCount: {}
|
|
1945
1964
|
},
|
|
1946
1965
|
setup(e) {
|
|
1947
|
-
const t = e,
|
|
1948
|
-
return (o,
|
|
1949
|
-
class: B(
|
|
1950
|
-
}, "Remaining characters: " + h(
|
|
1966
|
+
const t = e, l = k(() => t.maxCount - t.currentCount);
|
|
1967
|
+
return (o, a) => (i(), v("div", {
|
|
1968
|
+
class: B(l.value < 0 ? "text-danger" : "")
|
|
1969
|
+
}, "Remaining characters: " + h(l.value), 3));
|
|
1951
1970
|
}
|
|
1952
|
-
}), Ht =
|
|
1971
|
+
}), Ht = { class: "d-flex justify-content-between" }, xa = /* @__PURE__ */ F({
|
|
1953
1972
|
__name: "ForgeForm",
|
|
1954
1973
|
props: {
|
|
1955
1974
|
onSubmit: {},
|
|
@@ -1961,36 +1980,36 @@ const yt = { key: 0 }, bt = {
|
|
|
1961
1980
|
hideCancel: { type: Boolean, default: !1 }
|
|
1962
1981
|
},
|
|
1963
1982
|
setup(e) {
|
|
1964
|
-
const t = e,
|
|
1983
|
+
const t = e, l = I(!1), o = I({
|
|
1965
1984
|
hasError: !1,
|
|
1966
1985
|
message: ""
|
|
1967
1986
|
});
|
|
1968
|
-
async function
|
|
1969
|
-
|
|
1987
|
+
async function a() {
|
|
1988
|
+
l.value = !0, o.value.hasError = !1;
|
|
1970
1989
|
try {
|
|
1971
1990
|
await t.onSubmit();
|
|
1972
1991
|
} catch (n) {
|
|
1973
1992
|
o.value.hasError = !0, n.message && (o.value.message = n.message);
|
|
1974
1993
|
}
|
|
1975
|
-
|
|
1994
|
+
l.value = !1;
|
|
1976
1995
|
}
|
|
1977
|
-
return (n,
|
|
1996
|
+
return (n, d) => {
|
|
1978
1997
|
const r = R;
|
|
1979
|
-
return i(),
|
|
1998
|
+
return i(), v("form", _(n.$attrs, {
|
|
1980
1999
|
novalidate: "",
|
|
1981
2000
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
1982
|
-
onSubmit: q(
|
|
2001
|
+
onSubmit: q(a, ["prevent"])
|
|
1983
2002
|
}), [
|
|
1984
|
-
n.hideTitle ? S("", !0) : (i(),
|
|
2003
|
+
n.hideTitle ? S("", !0) : (i(), v(L, { key: 0 }, [
|
|
1985
2004
|
$(n.$slots, "title", {}, () => [
|
|
1986
2005
|
c("h3", {
|
|
1987
2006
|
class: B(n.titleClass),
|
|
1988
2007
|
"data-cy": "form-title"
|
|
1989
2008
|
}, h(n.title), 3)
|
|
1990
2009
|
]),
|
|
1991
|
-
|
|
2010
|
+
d[1] || (d[1] = c("hr", null, null, -1))
|
|
1992
2011
|
], 64)),
|
|
1993
|
-
o.value.hasError ? (i(), w(
|
|
2012
|
+
o.value.hasError ? (i(), w(ae, {
|
|
1994
2013
|
key: 1,
|
|
1995
2014
|
severity: "danger",
|
|
1996
2015
|
"data-cy": "error"
|
|
@@ -2005,7 +2024,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2005
2024
|
_: 3
|
|
2006
2025
|
})) : S("", !0),
|
|
2007
2026
|
$(n.$slots, "default"),
|
|
2008
|
-
c("div",
|
|
2027
|
+
c("div", Ht, [
|
|
2009
2028
|
$(n.$slots, "cancel", {}, () => [
|
|
2010
2029
|
n.hideCancel ? S("", !0) : (i(), w(r, {
|
|
2011
2030
|
key: 0,
|
|
@@ -2013,7 +2032,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2013
2032
|
type: "reset",
|
|
2014
2033
|
severity: "secondary",
|
|
2015
2034
|
outlined: "",
|
|
2016
|
-
onClick:
|
|
2035
|
+
onClick: d[0] || (d[0] = (u) => n.$emit("cancel"))
|
|
2017
2036
|
}, {
|
|
2018
2037
|
default: g(() => [
|
|
2019
2038
|
O(h(n.cancelText), 1)
|
|
@@ -2021,8 +2040,8 @@ const yt = { key: 0 }, bt = {
|
|
|
2021
2040
|
_: 1
|
|
2022
2041
|
}))
|
|
2023
2042
|
]),
|
|
2024
|
-
$(n.$slots, "submit", { submit:
|
|
2025
|
-
|
|
2043
|
+
$(n.$slots, "submit", { submit: a }, () => [
|
|
2044
|
+
f(r, {
|
|
2026
2045
|
"data-cy": "submit-btn",
|
|
2027
2046
|
type: "submit",
|
|
2028
2047
|
severity: "primary",
|
|
@@ -2035,20 +2054,21 @@ const yt = { key: 0 }, bt = {
|
|
|
2035
2054
|
})
|
|
2036
2055
|
])
|
|
2037
2056
|
]),
|
|
2038
|
-
|
|
2057
|
+
l.value ? (i(), w(me, {
|
|
2039
2058
|
key: 2,
|
|
2040
2059
|
"data-cy": "loading-spinner"
|
|
2041
2060
|
})) : S("", !0)
|
|
2042
2061
|
], 16);
|
|
2043
2062
|
};
|
|
2044
2063
|
}
|
|
2045
|
-
}),
|
|
2064
|
+
}), qt = {
|
|
2046
2065
|
key: 1,
|
|
2047
2066
|
class: "d-flex flex-column w-100"
|
|
2048
|
-
},
|
|
2067
|
+
}, Yt = ["for"], ka = /* @__PURE__ */ F({
|
|
2049
2068
|
__name: "ForgeFormField",
|
|
2050
2069
|
props: /* @__PURE__ */ E({
|
|
2051
2070
|
name: {},
|
|
2071
|
+
fieldLabelPosition: { default: "top" },
|
|
2052
2072
|
fieldLabel: {},
|
|
2053
2073
|
type: { default: "text" },
|
|
2054
2074
|
mask: { default: "" },
|
|
@@ -2059,92 +2079,97 @@ const yt = { key: 0 }, bt = {
|
|
|
2059
2079
|
}),
|
|
2060
2080
|
emits: ["update:modelValue"],
|
|
2061
2081
|
setup(e) {
|
|
2062
|
-
const t = A(e, "modelValue"),
|
|
2063
|
-
|
|
2064
|
-
}, { errors:
|
|
2082
|
+
const t = A(e, "modelValue"), l = e, o = (y) => {
|
|
2083
|
+
l.type == "number" ? r(y.value) : r(y);
|
|
2084
|
+
}, { errors: a, value: n, errorMessage: d, handleChange: r, handleBlur: u } = K(() => l.name, void 0, {
|
|
2065
2085
|
initialValue: t.value
|
|
2066
|
-
}), p =
|
|
2067
|
-
return de(() => n.value, (
|
|
2068
|
-
t.value =
|
|
2069
|
-
}, { immediate: !0 }), (
|
|
2070
|
-
const T = Ve, C = Se,
|
|
2071
|
-
return
|
|
2086
|
+
}), p = k(() => a.value.length > 0);
|
|
2087
|
+
return de(() => n.value, (y) => {
|
|
2088
|
+
t.value = y;
|
|
2089
|
+
}, { immediate: !0 }), (y, s) => {
|
|
2090
|
+
const T = Ve, C = Se, P = ie, M = le, z = pe, b = ye;
|
|
2091
|
+
return l.type === "checkbox" ? (i(), w(ct, _({
|
|
2072
2092
|
key: 0,
|
|
2073
|
-
id:
|
|
2074
|
-
label:
|
|
2075
|
-
},
|
|
2076
|
-
name:
|
|
2093
|
+
id: l.name,
|
|
2094
|
+
label: l.fieldLabel
|
|
2095
|
+
}, y.$attrs, {
|
|
2096
|
+
name: l.name,
|
|
2077
2097
|
modelValue: t.value,
|
|
2078
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2079
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (i(),
|
|
2080
|
-
c("
|
|
2081
|
-
|
|
2082
|
-
class: "
|
|
2083
|
-
},
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
placeholder:
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
placeholder:
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
placeholder:
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2098
|
+
"onUpdate:modelValue": s[0] || (s[0] = (x) => t.value = x)
|
|
2099
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (i(), v("div", qt, [
|
|
2100
|
+
c("div", {
|
|
2101
|
+
"data-cy": "input-wrapper",
|
|
2102
|
+
class: B(["d-flex", l.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2103
|
+
}, [
|
|
2104
|
+
c("label", {
|
|
2105
|
+
for: l.name,
|
|
2106
|
+
class: B(l.fieldLabelPosition === "top" ? "mb-1" : "me-2")
|
|
2107
|
+
}, h(l.fieldLabel), 11, Yt),
|
|
2108
|
+
l.type === "number" ? (i(), w(m(ue), _({
|
|
2109
|
+
key: 0,
|
|
2110
|
+
id: l.name
|
|
2111
|
+
}, y.$attrs, {
|
|
2112
|
+
placeholder: l.placeholder,
|
|
2113
|
+
"input-class": { "is-invalid": p.value },
|
|
2114
|
+
class: { "is-invalid": p.value },
|
|
2115
|
+
modelValue: t.value,
|
|
2116
|
+
"onUpdate:modelValue": s[1] || (s[1] = (x) => t.value = x),
|
|
2117
|
+
onInput: o
|
|
2118
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (i(), w(T, _({
|
|
2119
|
+
key: 1,
|
|
2120
|
+
id: l.name
|
|
2121
|
+
}, y.$attrs, {
|
|
2122
|
+
placeholder: l.placeholder,
|
|
2123
|
+
class: { "is-invalid": p.value },
|
|
2124
|
+
modelValue: t.value,
|
|
2125
|
+
"onUpdate:modelValue": s[2] || (s[2] = (x) => t.value = x),
|
|
2126
|
+
onInput: o,
|
|
2127
|
+
onBlur: m(u)
|
|
2128
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (i(), w(C, _({
|
|
2129
|
+
key: 2,
|
|
2130
|
+
id: l.name
|
|
2131
|
+
}, y.$attrs, {
|
|
2132
|
+
placeholder: l.placeholder,
|
|
2133
|
+
mask: l.mask,
|
|
2134
|
+
class: { "is-invalid": p.value },
|
|
2135
|
+
modelValue: t.value,
|
|
2136
|
+
"onUpdate:modelValue": s[3] || (s[3] = (x) => t.value = x),
|
|
2137
|
+
onComplete: o,
|
|
2138
|
+
onBlur: m(u)
|
|
2139
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (i(), w(P, _({
|
|
2140
|
+
key: 3,
|
|
2141
|
+
id: l.name
|
|
2142
|
+
}, y.$attrs, {
|
|
2143
|
+
placeholder: l.placeholder,
|
|
2144
|
+
class: { "is-invalid": p.value },
|
|
2145
|
+
modelValue: t.value,
|
|
2146
|
+
"onUpdate:modelValue": s[4] || (s[4] = (x) => t.value = x),
|
|
2147
|
+
onInput: o,
|
|
2148
|
+
onBlur: m(u)
|
|
2149
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (i(), w(M, _({ key: 4 }, { ...l, ...y.$attrs }, {
|
|
2150
|
+
modelValue: t.value,
|
|
2151
|
+
"onUpdate:modelValue": s[5] || (s[5] = (x) => t.value = x),
|
|
2152
|
+
class: { "is-invalid": p.value }
|
|
2153
|
+
}), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (i(), w(z, _({ key: 5 }, { ...l, ...y.$attrs }, {
|
|
2154
|
+
modelValue: t.value,
|
|
2155
|
+
"onUpdate:modelValue": s[6] || (s[6] = (x) => t.value = x),
|
|
2156
|
+
class: { "is-invalid": p.value }
|
|
2157
|
+
}), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (i(), w(b, _({ key: 6 }, { ...l, ...y.$attrs }, {
|
|
2158
|
+
modelValue: t.value,
|
|
2159
|
+
"onUpdate:modelValue": s[7] || (s[7] = (x) => t.value = x),
|
|
2160
|
+
class: { "is-invalid": p.value }
|
|
2161
|
+
}), null, 16, ["modelValue", "class"])) : S("", !0)
|
|
2162
|
+
], 2),
|
|
2138
2163
|
j(c("small", {
|
|
2139
2164
|
"data-cy": "error",
|
|
2140
2165
|
class: "invalid-feedback"
|
|
2141
|
-
}, h(m(
|
|
2142
|
-
[H, p.value &&
|
|
2166
|
+
}, h(m(d)), 513), [
|
|
2167
|
+
[H, p.value && l.type !== "multiselect" && l.type !== "datepicker"]
|
|
2143
2168
|
])
|
|
2144
2169
|
]));
|
|
2145
2170
|
};
|
|
2146
2171
|
}
|
|
2147
|
-
}),
|
|
2172
|
+
}), $a = /* @__PURE__ */ F({
|
|
2148
2173
|
__name: "ForgeChips",
|
|
2149
2174
|
props: {
|
|
2150
2175
|
chipSeverity: { default: "primary" },
|
|
@@ -2171,9 +2196,9 @@ const yt = { key: 0 }, bt = {
|
|
|
2171
2196
|
unstyled: { type: Boolean }
|
|
2172
2197
|
},
|
|
2173
2198
|
setup(e) {
|
|
2174
|
-
const t = e, { errors:
|
|
2199
|
+
const t = e, { errors: l, value: o, errorMessage: a } = K(() => t.name, void 0, {
|
|
2175
2200
|
initialValue: t.modelValue
|
|
2176
|
-
}), n =
|
|
2201
|
+
}), n = k(() => l.value.length > 0), d = k(() => ({
|
|
2177
2202
|
inputtoken: "list-unstyled",
|
|
2178
2203
|
input: "border-0",
|
|
2179
2204
|
container: ({ props: r }) => ({
|
|
@@ -2204,19 +2229,19 @@ const yt = { key: 0 }, bt = {
|
|
|
2204
2229
|
]
|
|
2205
2230
|
}
|
|
2206
2231
|
}));
|
|
2207
|
-
return (r,
|
|
2232
|
+
return (r, u) => {
|
|
2208
2233
|
const p = Ce;
|
|
2209
|
-
return i(),
|
|
2210
|
-
|
|
2211
|
-
pt:
|
|
2234
|
+
return i(), v(L, null, [
|
|
2235
|
+
f(p, _({ ...t, ...r.$attrs }, {
|
|
2236
|
+
pt: d.value,
|
|
2212
2237
|
"model-value": m(o),
|
|
2213
|
-
"onUpdate:modelValue":
|
|
2238
|
+
"onUpdate:modelValue": u[0] || (u[0] = (y) => se(o) ? o.value = y : null)
|
|
2214
2239
|
}), {
|
|
2215
|
-
removetokenicon: g(({ removeCallback:
|
|
2216
|
-
j(
|
|
2240
|
+
removetokenicon: g(({ removeCallback: y }) => [
|
|
2241
|
+
j(f(m(V), {
|
|
2217
2242
|
icon: "bi:x",
|
|
2218
2243
|
class: "cursor-pointer",
|
|
2219
|
-
onClick:
|
|
2244
|
+
onClick: y
|
|
2220
2245
|
}, null, 8, ["onClick"]), [
|
|
2221
2246
|
[H, !t.disabled]
|
|
2222
2247
|
])
|
|
@@ -2226,13 +2251,13 @@ const yt = { key: 0 }, bt = {
|
|
|
2226
2251
|
j(c("small", {
|
|
2227
2252
|
"data-cy": "error",
|
|
2228
2253
|
class: "text-invalid"
|
|
2229
|
-
}, h(m(
|
|
2254
|
+
}, h(m(a)), 513), [
|
|
2230
2255
|
[H, n.value]
|
|
2231
2256
|
])
|
|
2232
2257
|
], 64);
|
|
2233
2258
|
};
|
|
2234
2259
|
}
|
|
2235
|
-
}),
|
|
2260
|
+
}), Gt = /* @__PURE__ */ F({
|
|
2236
2261
|
__name: "ForgeProgressBar",
|
|
2237
2262
|
props: {
|
|
2238
2263
|
severity: { default: "primary" },
|
|
@@ -2247,7 +2272,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2247
2272
|
unstyled: { type: Boolean }
|
|
2248
2273
|
},
|
|
2249
2274
|
setup(e) {
|
|
2250
|
-
const t = e,
|
|
2275
|
+
const t = e, l = k(() => t.striped ? "progress-bar-striped" : null), o = k(() => t.animate ? "progress-bar-animated" : null), a = k(() => {
|
|
2251
2276
|
switch (t.severity) {
|
|
2252
2277
|
case "brand":
|
|
2253
2278
|
return "bg-brand";
|
|
@@ -2266,25 +2291,25 @@ const yt = { key: 0 }, bt = {
|
|
|
2266
2291
|
default:
|
|
2267
2292
|
return "bg-primary";
|
|
2268
2293
|
}
|
|
2269
|
-
}), n =
|
|
2294
|
+
}), n = k(() => ({
|
|
2270
2295
|
root: {
|
|
2271
2296
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2272
2297
|
},
|
|
2273
2298
|
value: {
|
|
2274
|
-
class: [
|
|
2299
|
+
class: [a.value, l.value, o.value]
|
|
2275
2300
|
}
|
|
2276
2301
|
}));
|
|
2277
|
-
return (
|
|
2278
|
-
const
|
|
2279
|
-
return i(), w(
|
|
2302
|
+
return (d, r) => {
|
|
2303
|
+
const u = Te;
|
|
2304
|
+
return i(), w(u, _({ ...d.$attrs, ...t }, { pt: n.value }), {
|
|
2280
2305
|
default: g(() => [
|
|
2281
|
-
$(
|
|
2306
|
+
$(d.$slots, "default")
|
|
2282
2307
|
]),
|
|
2283
2308
|
_: 3
|
|
2284
2309
|
}, 16, ["pt"]);
|
|
2285
2310
|
};
|
|
2286
2311
|
}
|
|
2287
|
-
}),
|
|
2312
|
+
}), Kt = { class: "value text-white w-100 text-center" }, Ba = /* @__PURE__ */ F({
|
|
2288
2313
|
__name: "ForgeStatWidget",
|
|
2289
2314
|
props: {
|
|
2290
2315
|
size: { default: "md" },
|
|
@@ -2292,18 +2317,18 @@ const yt = { key: 0 }, bt = {
|
|
|
2292
2317
|
},
|
|
2293
2318
|
setup(e) {
|
|
2294
2319
|
const t = e;
|
|
2295
|
-
return (
|
|
2320
|
+
return (l, o) => (i(), v("div", _(l.$attrs, {
|
|
2296
2321
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2297
2322
|
}), [
|
|
2298
|
-
c("span",
|
|
2299
|
-
$(
|
|
2323
|
+
c("span", Kt, [
|
|
2324
|
+
$(l.$slots, "default")
|
|
2300
2325
|
])
|
|
2301
2326
|
], 16));
|
|
2302
2327
|
}
|
|
2303
|
-
}),
|
|
2328
|
+
}), Wt = {
|
|
2304
2329
|
class: "d-flex flex-column align-items-center",
|
|
2305
2330
|
"data-cy": "stepper"
|
|
2306
|
-
},
|
|
2331
|
+
}, Zt = { class: "d-flex align-items-center justify-content-center w-100" }, Fa = /* @__PURE__ */ F({
|
|
2307
2332
|
__name: "ForgeStepper",
|
|
2308
2333
|
props: {
|
|
2309
2334
|
currentStep: { default: 0 },
|
|
@@ -2319,21 +2344,21 @@ const yt = { key: 0 }, bt = {
|
|
|
2319
2344
|
},
|
|
2320
2345
|
emits: ["update:currentStep"],
|
|
2321
2346
|
setup(e, { emit: t }) {
|
|
2322
|
-
const
|
|
2347
|
+
const l = t, o = e, a = I(o.currentStep), n = () => {
|
|
2323
2348
|
do
|
|
2324
|
-
|
|
2325
|
-
while (o.model[
|
|
2326
|
-
|
|
2327
|
-
},
|
|
2328
|
-
if (
|
|
2349
|
+
a.value--;
|
|
2350
|
+
while (o.model[a.value].disabled);
|
|
2351
|
+
l("update:currentStep", a.value);
|
|
2352
|
+
}, d = () => {
|
|
2353
|
+
if (a.value < o.model.length - 1)
|
|
2329
2354
|
do
|
|
2330
|
-
|
|
2331
|
-
while (o.model[
|
|
2332
|
-
|
|
2333
|
-
}, r =
|
|
2334
|
-
const p = o.model.findIndex((
|
|
2335
|
-
return !(p <
|
|
2336
|
-
}),
|
|
2355
|
+
a.value++;
|
|
2356
|
+
while (o.model[a.value].disabled);
|
|
2357
|
+
l("update:currentStep", a.value);
|
|
2358
|
+
}, r = k(() => {
|
|
2359
|
+
const p = o.model.findIndex((y) => !y.disabled);
|
|
2360
|
+
return !(p < a.value && p > -1);
|
|
2361
|
+
}), u = k(() => ({
|
|
2337
2362
|
menuitem: (p) => ({
|
|
2338
2363
|
class: [{
|
|
2339
2364
|
"cursor-pointer": !p.context.disabled
|
|
@@ -2344,13 +2369,13 @@ const yt = { key: 0 }, bt = {
|
|
|
2344
2369
|
"d-flex align-items-center justify-content-center mb-2 step",
|
|
2345
2370
|
{
|
|
2346
2371
|
inactive: p.context.disabled,
|
|
2347
|
-
"bg-primary text-white": p.context.index ===
|
|
2348
|
-
"bg-brand text-white": p.context.index ===
|
|
2349
|
-
"bg-secondary text-white": p.context.index ===
|
|
2350
|
-
"bg-success text-white": p.context.index ===
|
|
2351
|
-
"bg-warning text-white": p.context.index ===
|
|
2352
|
-
"bg-danger text-white": p.context.index ===
|
|
2353
|
-
"bg-info text-white": p.context.index ===
|
|
2372
|
+
"bg-primary text-white": p.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
|
|
2373
|
+
"bg-brand text-white": p.context.index === a.value && o.severity === "brand",
|
|
2374
|
+
"bg-secondary text-white": p.context.index === a.value && o.severity === "secondary",
|
|
2375
|
+
"bg-success text-white": p.context.index === a.value && o.severity === "success",
|
|
2376
|
+
"bg-warning text-white": p.context.index === a.value && o.severity === "warning",
|
|
2377
|
+
"bg-danger text-white": p.context.index === a.value && o.severity === "danger",
|
|
2378
|
+
"bg-info text-white": p.context.index === a.value && o.severity === "info"
|
|
2354
2379
|
}
|
|
2355
2380
|
]
|
|
2356
2381
|
}),
|
|
@@ -2358,22 +2383,22 @@ const yt = { key: 0 }, bt = {
|
|
|
2358
2383
|
class: [
|
|
2359
2384
|
"h5",
|
|
2360
2385
|
{
|
|
2361
|
-
"border-bottom border-2 border-primary": p.context.index ===
|
|
2362
|
-
"border-bottom border-2 border-brand": p.context.index ===
|
|
2363
|
-
"border-bottom border-2 border-secondary": p.context.index ===
|
|
2364
|
-
"border-bottom border-2 border-success": p.context.index ===
|
|
2365
|
-
"border-bottom border-2 border-warning": p.context.index ===
|
|
2366
|
-
"border-bottom border-2 border-danger": p.context.index ===
|
|
2367
|
-
"border-bottom border-2 border-info": p.context.index ===
|
|
2386
|
+
"border-bottom border-2 border-primary": p.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
|
|
2387
|
+
"border-bottom border-2 border-brand": p.context.index === a.value && o.severity === "brand",
|
|
2388
|
+
"border-bottom border-2 border-secondary": p.context.index === a.value && o.severity === "secondary",
|
|
2389
|
+
"border-bottom border-2 border-success": p.context.index === a.value && o.severity === "success",
|
|
2390
|
+
"border-bottom border-2 border-warning": p.context.index === a.value && o.severity === "warning",
|
|
2391
|
+
"border-bottom border-2 border-danger": p.context.index === a.value && o.severity === "danger",
|
|
2392
|
+
"border-bottom border-2 border-info": p.context.index === a.value && o.severity === "info"
|
|
2368
2393
|
}
|
|
2369
2394
|
]
|
|
2370
2395
|
})
|
|
2371
2396
|
}));
|
|
2372
|
-
return (p,
|
|
2373
|
-
const s = R, T =
|
|
2374
|
-
return i(),
|
|
2375
|
-
c("div",
|
|
2376
|
-
|
|
2397
|
+
return (p, y) => {
|
|
2398
|
+
const s = R, T = Me, C = Pe;
|
|
2399
|
+
return i(), v("div", Wt, [
|
|
2400
|
+
c("div", Zt, [
|
|
2401
|
+
f(s, {
|
|
2377
2402
|
severity: o.severity,
|
|
2378
2403
|
disabled: r.value,
|
|
2379
2404
|
onClick: n,
|
|
@@ -2381,41 +2406,41 @@ const yt = { key: 0 }, bt = {
|
|
|
2381
2406
|
"data-cy": "back-button"
|
|
2382
2407
|
}, {
|
|
2383
2408
|
default: g(() => [
|
|
2384
|
-
|
|
2409
|
+
f(m(V), {
|
|
2385
2410
|
icon: "bi:chevron-left",
|
|
2386
2411
|
class: "mb-1"
|
|
2387
2412
|
})
|
|
2388
2413
|
]),
|
|
2389
2414
|
_: 1
|
|
2390
2415
|
}, 8, ["severity", "disabled"]),
|
|
2391
|
-
|
|
2392
|
-
"active-step":
|
|
2393
|
-
"onUpdate:activeStep":
|
|
2416
|
+
f(T, {
|
|
2417
|
+
"active-step": a.value,
|
|
2418
|
+
"onUpdate:activeStep": y[0] || (y[0] = (P) => a.value = P),
|
|
2394
2419
|
model: o.model,
|
|
2395
|
-
pt:
|
|
2420
|
+
pt: u.value,
|
|
2396
2421
|
readonly: !1
|
|
2397
2422
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2398
2423
|
]),
|
|
2399
|
-
|
|
2400
|
-
(i(!0),
|
|
2401
|
-
key:
|
|
2424
|
+
f(C, { class: "m-4" }),
|
|
2425
|
+
(i(!0), v(L, null, Y(o.model, (P, M) => (i(), v("div", {
|
|
2426
|
+
key: M,
|
|
2402
2427
|
class: "w-100"
|
|
2403
2428
|
}, [
|
|
2404
|
-
|
|
2429
|
+
M === a.value ? $(p.$slots, P.key ?? P.label, {
|
|
2405
2430
|
key: 0,
|
|
2406
|
-
nextStep:
|
|
2431
|
+
nextStep: d,
|
|
2407
2432
|
previousStep: n
|
|
2408
2433
|
}, () => [
|
|
2409
|
-
|
|
2434
|
+
f(ae, {
|
|
2410
2435
|
severity: "info",
|
|
2411
2436
|
"data-cy": "alert"
|
|
2412
2437
|
}, {
|
|
2413
2438
|
default: g(() => [
|
|
2414
|
-
O(" Please add Slot Content for the key " + h(
|
|
2415
|
-
|
|
2439
|
+
O(" Please add Slot Content for the key " + h(P.key ?? P.label) + " ", 1),
|
|
2440
|
+
f(s, {
|
|
2416
2441
|
severity: "primary",
|
|
2417
2442
|
label: "Next",
|
|
2418
|
-
onClick:
|
|
2443
|
+
onClick: d,
|
|
2419
2444
|
class: "ms-2"
|
|
2420
2445
|
})
|
|
2421
2446
|
]),
|
|
@@ -2426,7 +2451,7 @@ const yt = { key: 0 }, bt = {
|
|
|
2426
2451
|
]);
|
|
2427
2452
|
};
|
|
2428
2453
|
}
|
|
2429
|
-
}),
|
|
2454
|
+
}), Jt = { class: "p-4 text-wrap w-100" }, Xt = { class: "p-4 text-wrap w-100" }, _a = /* @__PURE__ */ F({
|
|
2430
2455
|
__name: "ForgeTile",
|
|
2431
2456
|
props: {
|
|
2432
2457
|
severity: { default: "primary" },
|
|
@@ -2435,32 +2460,32 @@ const yt = { key: 0 }, bt = {
|
|
|
2435
2460
|
selected: { type: Boolean, default: !1 }
|
|
2436
2461
|
},
|
|
2437
2462
|
setup(e) {
|
|
2438
|
-
const t = e,
|
|
2439
|
-
return (
|
|
2440
|
-
const
|
|
2441
|
-
return t.clickable ? (i(), w(
|
|
2463
|
+
const t = e, l = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), o = k(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
2464
|
+
return (a, n) => {
|
|
2465
|
+
const d = R;
|
|
2466
|
+
return t.clickable ? (i(), w(d, {
|
|
2442
2467
|
key: 0,
|
|
2443
|
-
class: B(["d-flex w-100 p-0 text-body",
|
|
2468
|
+
class: B(["d-flex w-100 p-0 text-body", l.value]),
|
|
2444
2469
|
severity: t.severity,
|
|
2445
2470
|
unstyled: "",
|
|
2446
2471
|
"data-cy": "button-tile"
|
|
2447
2472
|
}, {
|
|
2448
2473
|
default: g(() => [
|
|
2449
|
-
c("div",
|
|
2450
|
-
$(
|
|
2451
|
-
O("Tile Content")
|
|
2474
|
+
c("div", Jt, [
|
|
2475
|
+
$(a.$slots, "default", {}, () => [
|
|
2476
|
+
n[0] || (n[0] = O("Tile Content"))
|
|
2452
2477
|
])
|
|
2453
2478
|
])
|
|
2454
2479
|
]),
|
|
2455
2480
|
_: 3
|
|
2456
|
-
}, 8, ["severity", "class"])) : (i(),
|
|
2481
|
+
}, 8, ["severity", "class"])) : (i(), v("div", {
|
|
2457
2482
|
key: 1,
|
|
2458
2483
|
class: B(["d-flex w-100", o.value]),
|
|
2459
2484
|
"data-cy": "tile"
|
|
2460
2485
|
}, [
|
|
2461
|
-
c("div",
|
|
2462
|
-
$(
|
|
2463
|
-
O("Tile Content")
|
|
2486
|
+
c("div", Xt, [
|
|
2487
|
+
$(a.$slots, "default", {}, () => [
|
|
2488
|
+
n[1] || (n[1] = O("Tile Content"))
|
|
2464
2489
|
])
|
|
2465
2490
|
])
|
|
2466
2491
|
], 2));
|
|
@@ -2470,13 +2495,13 @@ const yt = { key: 0 }, bt = {
|
|
|
2470
2495
|
function X(e, t) {
|
|
2471
2496
|
return e > 1 ? `${t}s` : t;
|
|
2472
2497
|
}
|
|
2473
|
-
const
|
|
2498
|
+
const Qt = {
|
|
2474
2499
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2475
2500
|
"data-cy": "pagination-header"
|
|
2476
|
-
},
|
|
2501
|
+
}, el = { class: "ms-2" }, tl = { key: 0 }, ll = {
|
|
2477
2502
|
class: "w-auto",
|
|
2478
2503
|
"data-cy": "total"
|
|
2479
|
-
},
|
|
2504
|
+
}, al = /* @__PURE__ */ F({
|
|
2480
2505
|
__name: "ForgePaginationHeader",
|
|
2481
2506
|
props: {
|
|
2482
2507
|
total: {},
|
|
@@ -2485,28 +2510,31 @@ const ea = {
|
|
|
2485
2510
|
},
|
|
2486
2511
|
emits: ["update:perPage"],
|
|
2487
2512
|
setup(e, { emit: t }) {
|
|
2488
|
-
const
|
|
2489
|
-
|
|
2490
|
-
}, n =
|
|
2491
|
-
const
|
|
2492
|
-
return `${
|
|
2513
|
+
const l = t, o = e, a = (d) => {
|
|
2514
|
+
l("update:perPage", d.value);
|
|
2515
|
+
}, n = k(() => {
|
|
2516
|
+
const d = Math.ceil(o.total / o.perPage);
|
|
2517
|
+
return `${d} ${X(d, "page")}`;
|
|
2493
2518
|
});
|
|
2494
|
-
return (
|
|
2495
|
-
O(" Number of results per page "),
|
|
2496
|
-
c("div",
|
|
2497
|
-
|
|
2519
|
+
return (d, r) => (i(), v("div", Qt, [
|
|
2520
|
+
r[2] || (r[2] = O(" Number of results per page ")),
|
|
2521
|
+
c("div", el, [
|
|
2522
|
+
f(m(le), {
|
|
2498
2523
|
options: o.pageSizes,
|
|
2499
2524
|
"model-value": o.perPage,
|
|
2500
|
-
onChange: r[0] || (r[0] = (
|
|
2525
|
+
onChange: r[0] || (r[0] = (u) => a(u))
|
|
2501
2526
|
}, null, 8, ["options", "model-value"])
|
|
2502
2527
|
]),
|
|
2503
|
-
o.total ? (i(),
|
|
2504
|
-
|
|
2505
|
-
c("span",
|
|
2528
|
+
o.total ? (i(), v("div", tl, [
|
|
2529
|
+
r[1] || (r[1] = c("span", { class: "mx-2" }, "|", -1)),
|
|
2530
|
+
c("span", ll, h(o.total) + " " + h(m(X)(o.total, "result")) + " across " + h(n.value), 1)
|
|
2506
2531
|
])) : S("", !0)
|
|
2507
2532
|
]));
|
|
2508
2533
|
}
|
|
2509
|
-
}),
|
|
2534
|
+
}), ol = { class: "position-relative" }, nl = { "data-cy": "above-table-slot" }, sl = { class: "d-flex w-100" }, il = {
|
|
2535
|
+
class: "mx-auto",
|
|
2536
|
+
"data-cy": "empty-message"
|
|
2537
|
+
}, rl = { class: "d-flex" }, dl = { class: "d-flex align-items-end mb-2" }, ul = { key: 0 }, cl = { class: "ms-auto" }, Sa = /* @__PURE__ */ F({
|
|
2510
2538
|
__name: "ForgeTable",
|
|
2511
2539
|
props: {
|
|
2512
2540
|
value: {},
|
|
@@ -2516,6 +2544,7 @@ const ea = {
|
|
|
2516
2544
|
stickyHeader: { type: Boolean, default: !0 },
|
|
2517
2545
|
severity: {},
|
|
2518
2546
|
clearAll: {},
|
|
2547
|
+
emptyMessage: {},
|
|
2519
2548
|
dataKey: {},
|
|
2520
2549
|
rows: {},
|
|
2521
2550
|
first: {},
|
|
@@ -2587,17 +2616,17 @@ const ea = {
|
|
|
2587
2616
|
},
|
|
2588
2617
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
2589
2618
|
setup(e, { emit: t }) {
|
|
2590
|
-
const
|
|
2619
|
+
const l = t, o = e, a = I(), n = I([10, 20, 50, 100]), d = I(20), r = I({
|
|
2591
2620
|
filters: o.filters,
|
|
2592
|
-
perPage:
|
|
2621
|
+
perPage: d.value,
|
|
2593
2622
|
page: 0,
|
|
2594
2623
|
sortDirection: "None",
|
|
2595
2624
|
sortField: "",
|
|
2596
2625
|
total: o.totalRecords ?? o.value.length
|
|
2597
|
-
}),
|
|
2598
|
-
const
|
|
2599
|
-
return `${
|
|
2600
|
-
}),
|
|
2626
|
+
}), u = k(() => o.totalRecords ?? o.value.length), p = k(() => {
|
|
2627
|
+
const b = Math.ceil(u.value / d.value);
|
|
2628
|
+
return `${b} ${X(b, "page")}`;
|
|
2629
|
+
}), y = k(() => ({
|
|
2601
2630
|
thead: () => ({
|
|
2602
2631
|
class: [
|
|
2603
2632
|
{
|
|
@@ -2623,90 +2652,95 @@ const ea = {
|
|
|
2623
2652
|
if (o.clearAll)
|
|
2624
2653
|
o.clearAll();
|
|
2625
2654
|
else
|
|
2626
|
-
for (const
|
|
2627
|
-
typeof o.filters[
|
|
2628
|
-
|
|
2655
|
+
for (const b in o.filters)
|
|
2656
|
+
typeof o.filters[b] == "string" ? o.filters[b] = "" : o.filters[b].value = null;
|
|
2657
|
+
P(o.filters);
|
|
2629
2658
|
}, T = () => {
|
|
2630
|
-
|
|
2631
|
-
}, C = (
|
|
2632
|
-
var
|
|
2633
|
-
r.value.sortDirection =
|
|
2634
|
-
},
|
|
2635
|
-
r.value.filters =
|
|
2636
|
-
},
|
|
2637
|
-
r.value.page =
|
|
2659
|
+
a.value.exportCSV();
|
|
2660
|
+
}, C = (b) => {
|
|
2661
|
+
var x;
|
|
2662
|
+
r.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((x = b.sortField) == null ? void 0 : x.toString()) ?? "", l("update:tableContext", r.value), l("sort", b);
|
|
2663
|
+
}, P = (b) => {
|
|
2664
|
+
r.value.filters = b, l("update:tableContext", r.value), l("update:filters", b);
|
|
2665
|
+
}, M = (b) => {
|
|
2666
|
+
r.value.page = b.page, l("update:tableContext", r.value), l("page", b);
|
|
2638
2667
|
}, z = () => {
|
|
2639
|
-
r.value.perPage =
|
|
2668
|
+
r.value.perPage = d.value, l("update:tableContext", r.value);
|
|
2640
2669
|
};
|
|
2641
|
-
return de(() => o.filters, (
|
|
2642
|
-
r.value.filters =
|
|
2643
|
-
}, { deep: !0 }), ne(() =>
|
|
2644
|
-
c("span",
|
|
2645
|
-
$(
|
|
2670
|
+
return de(() => o.filters, (b) => {
|
|
2671
|
+
r.value.filters = b, l("update:tableContext", r.value);
|
|
2672
|
+
}, { deep: !0 }), ne(() => l("update:tableContext", r.value)), (b, x) => (i(), v("div", ol, [
|
|
2673
|
+
c("span", nl, [
|
|
2674
|
+
$(b.$slots, "above-table")
|
|
2646
2675
|
]),
|
|
2647
|
-
|
|
2676
|
+
f(m(Ie), _({
|
|
2648
2677
|
class: ["w-100", `${o.severity ? `forge-table-${o.severity}` : ""}`]
|
|
2649
|
-
}, { ...o, ...
|
|
2650
|
-
pt:
|
|
2651
|
-
rows:
|
|
2652
|
-
"total-records":
|
|
2678
|
+
}, { ...o, ...b.$attrs }, {
|
|
2679
|
+
pt: y.value,
|
|
2680
|
+
rows: d.value,
|
|
2681
|
+
"total-records": u.value,
|
|
2653
2682
|
"filter-display": o.filters ? "row" : void 0,
|
|
2654
2683
|
ref_key: "forgeTable",
|
|
2655
|
-
ref:
|
|
2684
|
+
ref: a,
|
|
2656
2685
|
"data-cy": "table",
|
|
2657
|
-
"onUpdate:filters":
|
|
2686
|
+
"onUpdate:filters": P,
|
|
2658
2687
|
onSort: C,
|
|
2659
|
-
onPage:
|
|
2688
|
+
onPage: M
|
|
2660
2689
|
}), te({
|
|
2690
|
+
empty: g(() => [
|
|
2691
|
+
c("div", sl, [
|
|
2692
|
+
c("h5", il, h(b.emptyMessage ?? "No items Found."), 1)
|
|
2693
|
+
])
|
|
2694
|
+
]),
|
|
2661
2695
|
header: g(() => [
|
|
2662
2696
|
c("div", {
|
|
2663
2697
|
class: B(o.loading ? "opacity-50" : "")
|
|
2664
2698
|
}, [
|
|
2665
|
-
c("div",
|
|
2666
|
-
c("div",
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
total:
|
|
2699
|
+
c("div", rl, [
|
|
2700
|
+
c("div", dl, [
|
|
2701
|
+
b.paginator && !b.legacyPaginationFooter ? (i(), v("span", ul, [
|
|
2702
|
+
f(al, {
|
|
2703
|
+
total: u.value,
|
|
2670
2704
|
"page-sizes": n.value,
|
|
2671
|
-
"per-page":
|
|
2705
|
+
"per-page": d.value,
|
|
2672
2706
|
"onUpdate:perPage": [
|
|
2673
|
-
|
|
2707
|
+
x[0] || (x[0] = (G) => d.value = G),
|
|
2674
2708
|
z
|
|
2675
2709
|
]
|
|
2676
2710
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2677
2711
|
])) : S("", !0)
|
|
2678
2712
|
]),
|
|
2679
|
-
c("div",
|
|
2680
|
-
|
|
2713
|
+
c("div", cl, [
|
|
2714
|
+
b.showClearButton ? (i(), w(m(R), {
|
|
2681
2715
|
key: 0,
|
|
2682
2716
|
outlined: "",
|
|
2683
|
-
class: B(
|
|
2717
|
+
class: B(b.showExporterButton ? "me-2" : ""),
|
|
2684
2718
|
onClick: s,
|
|
2685
2719
|
"data-cy": "clear-all"
|
|
2686
2720
|
}, {
|
|
2687
2721
|
default: g(() => [
|
|
2688
|
-
|
|
2722
|
+
f(m(V), {
|
|
2689
2723
|
icon: "bi:funnel-fill",
|
|
2690
2724
|
width: "24",
|
|
2691
2725
|
height: "24"
|
|
2692
2726
|
}),
|
|
2693
|
-
O(" Clear ")
|
|
2727
|
+
x[2] || (x[2] = O(" Clear "))
|
|
2694
2728
|
]),
|
|
2695
2729
|
_: 1
|
|
2696
2730
|
}, 8, ["class"])) : S("", !0),
|
|
2697
|
-
|
|
2731
|
+
b.showExporterButton ? (i(), w(m(R), {
|
|
2698
2732
|
key: 1,
|
|
2699
2733
|
outlined: "",
|
|
2700
2734
|
onClick: T,
|
|
2701
2735
|
"data-cy": "exporter"
|
|
2702
2736
|
}, {
|
|
2703
2737
|
default: g(() => [
|
|
2704
|
-
|
|
2738
|
+
f(m(V), {
|
|
2705
2739
|
icon: "typcn:export",
|
|
2706
2740
|
width: "24",
|
|
2707
2741
|
height: "24"
|
|
2708
2742
|
}),
|
|
2709
|
-
O(" Export ")
|
|
2743
|
+
x[3] || (x[3] = O(" Export "))
|
|
2710
2744
|
]),
|
|
2711
2745
|
_: 1
|
|
2712
2746
|
})) : S("", !0)
|
|
@@ -2715,28 +2749,28 @@ const ea = {
|
|
|
2715
2749
|
], 2)
|
|
2716
2750
|
]),
|
|
2717
2751
|
default: g(() => [
|
|
2718
|
-
$(
|
|
2752
|
+
$(b.$slots, "default")
|
|
2719
2753
|
]),
|
|
2720
2754
|
_: 2
|
|
2721
2755
|
}, [
|
|
2722
|
-
Y(
|
|
2756
|
+
Y(b.$slots, (G, Z) => ({
|
|
2723
2757
|
name: Z,
|
|
2724
2758
|
fn: g((oe) => [
|
|
2725
|
-
$(
|
|
2759
|
+
$(b.$slots, Z, Q(ee(oe || {})))
|
|
2726
2760
|
])
|
|
2727
2761
|
})),
|
|
2728
|
-
|
|
2762
|
+
b.legacyPaginationFooter ? {
|
|
2729
2763
|
name: "paginatorstart",
|
|
2730
2764
|
fn: g(() => [
|
|
2731
2765
|
c("span", {
|
|
2732
2766
|
class: B(["d-flex", o.loading ? "opacity-50" : ""]),
|
|
2733
2767
|
"data-cy": "legacy-page-size"
|
|
2734
2768
|
}, [
|
|
2735
|
-
|
|
2736
|
-
|
|
2769
|
+
x[4] || (x[4] = c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
2770
|
+
f(m(le), {
|
|
2737
2771
|
options: n.value,
|
|
2738
|
-
modelValue:
|
|
2739
|
-
"onUpdate:modelValue":
|
|
2772
|
+
modelValue: d.value,
|
|
2773
|
+
"onUpdate:modelValue": x[1] || (x[1] = (G) => d.value = G),
|
|
2740
2774
|
class: "ms-2",
|
|
2741
2775
|
onClick: z
|
|
2742
2776
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -2744,20 +2778,20 @@ const ea = {
|
|
|
2744
2778
|
]),
|
|
2745
2779
|
key: "0"
|
|
2746
2780
|
} : void 0,
|
|
2747
|
-
|
|
2781
|
+
b.legacyPaginationFooter ? {
|
|
2748
2782
|
name: "paginatorend",
|
|
2749
2783
|
fn: g(() => [
|
|
2750
2784
|
c("span", {
|
|
2751
2785
|
"data-cy": "legacy-total",
|
|
2752
2786
|
class: B(o.loading ? "opacity-50" : "")
|
|
2753
|
-
}, h(
|
|
2787
|
+
}, h(u.value) + " " + h(m(X)(u.value, "result")) + " across " + h(p.value), 3)
|
|
2754
2788
|
]),
|
|
2755
2789
|
key: "1"
|
|
2756
2790
|
} : void 0
|
|
2757
2791
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
2758
2792
|
]));
|
|
2759
2793
|
}
|
|
2760
|
-
}),
|
|
2794
|
+
}), ml = { class: "d-flex position-relative" }, pl = { class: "d-flex w-100" }, yl = { class: "d-flex w-100" }, Va = /* @__PURE__ */ F({
|
|
2761
2795
|
__name: "ForgeFilterHeader",
|
|
2762
2796
|
props: /* @__PURE__ */ E({
|
|
2763
2797
|
dataType: {},
|
|
@@ -2772,56 +2806,56 @@ const ea = {
|
|
|
2772
2806
|
}),
|
|
2773
2807
|
emits: ["update:modelValue"],
|
|
2774
2808
|
setup(e) {
|
|
2775
|
-
const t = A(e, "modelValue"),
|
|
2776
|
-
if (!
|
|
2809
|
+
const t = A(e, "modelValue"), l = (a, n) => {
|
|
2810
|
+
if (!a || Array.isArray(a) && a.length === 0)
|
|
2777
2811
|
return n;
|
|
2778
|
-
const
|
|
2812
|
+
const d = (r) => {
|
|
2779
2813
|
var p;
|
|
2780
|
-
const
|
|
2781
|
-
(
|
|
2814
|
+
const u = (p = e.dropdownOptions) == null ? void 0 : p.find(
|
|
2815
|
+
(y) => e.optionValue ? y[e.optionValue] === r : Object.keys(y).every((s) => r.hasOwnProperty(s) && y[s] === r[s])
|
|
2782
2816
|
);
|
|
2783
|
-
return e.optionLabel ?
|
|
2817
|
+
return e.optionLabel ? u[e.optionLabel] : u;
|
|
2784
2818
|
};
|
|
2785
|
-
return Array.isArray(
|
|
2819
|
+
return Array.isArray(a) ? a.map(d).join(", ") : d(a);
|
|
2786
2820
|
}, o = () => {
|
|
2787
2821
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
2788
2822
|
};
|
|
2789
|
-
return (
|
|
2790
|
-
const
|
|
2791
|
-
return i(),
|
|
2792
|
-
|
|
2823
|
+
return (a, n) => {
|
|
2824
|
+
const d = ue, r = R;
|
|
2825
|
+
return i(), v("div", ml, [
|
|
2826
|
+
a.dataType === "numeric" ? (i(), w(d, _({
|
|
2793
2827
|
key: 0,
|
|
2794
2828
|
modelValue: t.value,
|
|
2795
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2796
|
-
},
|
|
2829
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
|
|
2830
|
+
}, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(), w(ye, _({
|
|
2797
2831
|
key: 1,
|
|
2798
2832
|
modelValue: t.value,
|
|
2799
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
2800
|
-
},
|
|
2833
|
+
"onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
|
|
2834
|
+
}, a.$attrs, {
|
|
2801
2835
|
"show-icon": !1,
|
|
2802
2836
|
"show-on-focus": !0
|
|
2803
|
-
}), null, 16, ["modelValue"])) :
|
|
2837
|
+
}), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), w(m(le), _({
|
|
2804
2838
|
key: 2,
|
|
2805
2839
|
modelValue: t.value,
|
|
2806
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
2807
|
-
},
|
|
2808
|
-
options:
|
|
2809
|
-
"option-value":
|
|
2810
|
-
"option-label":
|
|
2840
|
+
"onUpdate:modelValue": n[2] || (n[2] = (u) => t.value = u)
|
|
2841
|
+
}, a.$attrs, {
|
|
2842
|
+
options: a.dropdownOptions,
|
|
2843
|
+
"option-value": a.optionValue,
|
|
2844
|
+
"option-label": a.optionLabel
|
|
2811
2845
|
}), {
|
|
2812
|
-
value: g(({ value:
|
|
2813
|
-
c("div",
|
|
2846
|
+
value: g(({ value: u, placeholder: p }) => [
|
|
2847
|
+
c("div", pl, [
|
|
2814
2848
|
c("span", {
|
|
2815
|
-
class: B({ "filter-placeholder":
|
|
2816
|
-
}, h(
|
|
2817
|
-
|
|
2849
|
+
class: B({ "filter-placeholder": u === null })
|
|
2850
|
+
}, h(l(u, p)), 3),
|
|
2851
|
+
a.showClearButton && t.value !== null ? (i(), w(r, {
|
|
2818
2852
|
key: 0,
|
|
2819
2853
|
onClick: q(o, ["prevent"]),
|
|
2820
2854
|
size: "small",
|
|
2821
2855
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2822
2856
|
}, {
|
|
2823
2857
|
default: g(() => [
|
|
2824
|
-
|
|
2858
|
+
f(m(V), {
|
|
2825
2859
|
icon: "bi:x",
|
|
2826
2860
|
width: "1rem",
|
|
2827
2861
|
height: "1rem",
|
|
@@ -2833,30 +2867,30 @@ const ea = {
|
|
|
2833
2867
|
])
|
|
2834
2868
|
]),
|
|
2835
2869
|
_: 1
|
|
2836
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) :
|
|
2870
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (i(), w(m(ze), _({
|
|
2837
2871
|
key: 3,
|
|
2838
2872
|
modelValue: t.value,
|
|
2839
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
2840
|
-
},
|
|
2841
|
-
options:
|
|
2873
|
+
"onUpdate:modelValue": n[3] || (n[3] = (u) => t.value = u)
|
|
2874
|
+
}, a.$attrs, {
|
|
2875
|
+
options: a.dropdownOptions,
|
|
2842
2876
|
showToggleAll: !1,
|
|
2843
|
-
"option-label":
|
|
2844
|
-
"option-value":
|
|
2877
|
+
"option-label": a.optionLabel,
|
|
2878
|
+
"option-value": a.optionValue,
|
|
2845
2879
|
filter: ""
|
|
2846
2880
|
}), {
|
|
2847
|
-
value: g(({ value:
|
|
2848
|
-
c("div",
|
|
2881
|
+
value: g(({ value: u, placeholder: p }) => [
|
|
2882
|
+
c("div", yl, [
|
|
2849
2883
|
c("span", {
|
|
2850
|
-
class: B({ "filter-placeholder": (
|
|
2851
|
-
}, h(
|
|
2852
|
-
|
|
2884
|
+
class: B({ "filter-placeholder": (u == null ? void 0 : u.length) === 0 || u === null })
|
|
2885
|
+
}, h(l(u, p)), 3),
|
|
2886
|
+
a.showClearButton && (u == null ? void 0 : u.length) > 0 ? (i(), w(r, {
|
|
2853
2887
|
key: 0,
|
|
2854
2888
|
onClick: q(o, ["prevent"]),
|
|
2855
2889
|
size: "small",
|
|
2856
2890
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2857
2891
|
}, {
|
|
2858
2892
|
default: g(() => [
|
|
2859
|
-
|
|
2893
|
+
f(m(V), {
|
|
2860
2894
|
icon: "bi:x",
|
|
2861
2895
|
width: "1rem",
|
|
2862
2896
|
height: "1rem",
|
|
@@ -2871,16 +2905,16 @@ const ea = {
|
|
|
2871
2905
|
}, 16, ["modelValue", "options", "option-label", "option-value"])) : (i(), w(m(ie), _({
|
|
2872
2906
|
key: 4,
|
|
2873
2907
|
modelValue: t.value,
|
|
2874
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
2875
|
-
},
|
|
2876
|
-
|
|
2908
|
+
"onUpdate:modelValue": n[4] || (n[4] = (u) => t.value = u)
|
|
2909
|
+
}, a.$attrs), null, 16, ["modelValue"])),
|
|
2910
|
+
a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), w(r, {
|
|
2877
2911
|
key: 5,
|
|
2878
2912
|
onClick: q(o, ["prevent"]),
|
|
2879
2913
|
size: "small",
|
|
2880
2914
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
2881
2915
|
}, {
|
|
2882
2916
|
default: g(() => [
|
|
2883
|
-
|
|
2917
|
+
f(m(V), {
|
|
2884
2918
|
icon: "bi:x",
|
|
2885
2919
|
width: "1rem",
|
|
2886
2920
|
height: "1rem",
|
|
@@ -2893,48 +2927,48 @@ const ea = {
|
|
|
2893
2927
|
};
|
|
2894
2928
|
}
|
|
2895
2929
|
});
|
|
2896
|
-
function
|
|
2897
|
-
const
|
|
2930
|
+
function ve(e, t, l, o) {
|
|
2931
|
+
const a = t.flatMap((n) => n.file);
|
|
2898
2932
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2899
|
-
const
|
|
2933
|
+
const d = a.findIndex((u) => u.name === n.name);
|
|
2900
2934
|
let r = "Not Uploaded";
|
|
2901
|
-
|
|
2935
|
+
d === -1 ? ((!l.includes(n.type) || !(n.size <= o)) && (r = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2902
2936
|
file: n,
|
|
2903
2937
|
status: r,
|
|
2904
2938
|
blobFileName: null
|
|
2905
|
-
})) : t[
|
|
2939
|
+
})) : t[d].status = "Duplicate";
|
|
2906
2940
|
}), t;
|
|
2907
2941
|
}
|
|
2908
|
-
async function
|
|
2942
|
+
async function vl(e, t) {
|
|
2909
2943
|
if (e === "Uploaded" && t !== null)
|
|
2910
2944
|
try {
|
|
2911
2945
|
await new ce(t).delete();
|
|
2912
|
-
} catch (
|
|
2913
|
-
if (
|
|
2946
|
+
} catch (l) {
|
|
2947
|
+
if (l !== "BlobNotFound") {
|
|
2914
2948
|
e = "DeleteFileFailed";
|
|
2915
2949
|
return;
|
|
2916
2950
|
}
|
|
2917
2951
|
}
|
|
2918
2952
|
}
|
|
2919
|
-
function re(e, t = !0,
|
|
2953
|
+
function re(e, t = !0, l = 1) {
|
|
2920
2954
|
const o = t ? 1e3 : 1024;
|
|
2921
2955
|
if (Math.abs(e) < o)
|
|
2922
2956
|
return e + " B";
|
|
2923
|
-
const
|
|
2957
|
+
const a = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
2924
2958
|
let n = -1;
|
|
2925
|
-
const
|
|
2959
|
+
const d = 10 ** l;
|
|
2926
2960
|
do
|
|
2927
2961
|
e /= o, ++n;
|
|
2928
|
-
while (Math.round(Math.abs(e) *
|
|
2929
|
-
return e.toFixed(
|
|
2962
|
+
while (Math.round(Math.abs(e) * d) / d >= o && n < a.length - 1);
|
|
2963
|
+
return e.toFixed(l) + " " + a[n];
|
|
2930
2964
|
}
|
|
2931
|
-
function
|
|
2965
|
+
function bl(e) {
|
|
2932
2966
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
2933
2967
|
}
|
|
2934
|
-
function
|
|
2968
|
+
function fl(e) {
|
|
2935
2969
|
return URL.createObjectURL(e);
|
|
2936
2970
|
}
|
|
2937
|
-
const
|
|
2971
|
+
const gl = { class: "d-flex justify-content-between" }, hl = ["accept", "disabled", "multiple"], wl = /* @__PURE__ */ F({
|
|
2938
2972
|
__name: "UploadButton",
|
|
2939
2973
|
props: /* @__PURE__ */ E({
|
|
2940
2974
|
acceptedFileTypes: {},
|
|
@@ -2946,52 +2980,52 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
2946
2980
|
}),
|
|
2947
2981
|
emits: ["update:modelValue"],
|
|
2948
2982
|
setup(e) {
|
|
2949
|
-
const t = A(e, "modelValue"),
|
|
2950
|
-
t.value =
|
|
2983
|
+
const t = A(e, "modelValue"), l = k(() => e.maxFileInput <= t.value.length), o = (a) => {
|
|
2984
|
+
t.value = ve(a, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2951
2985
|
};
|
|
2952
|
-
return (
|
|
2953
|
-
$(
|
|
2986
|
+
return (a, n) => (i(), v("div", gl, [
|
|
2987
|
+
$(a.$slots, "message"),
|
|
2954
2988
|
c("div", null, [
|
|
2955
2989
|
c("input", {
|
|
2956
2990
|
id: "file-input",
|
|
2957
2991
|
type: "file",
|
|
2958
2992
|
class: "d-none",
|
|
2959
|
-
accept:
|
|
2960
|
-
disabled:
|
|
2961
|
-
multiple:
|
|
2962
|
-
onInput: n[0] || (n[0] = (
|
|
2963
|
-
}, null, 40,
|
|
2993
|
+
accept: a.acceptedFileTypes.join(", "),
|
|
2994
|
+
disabled: l.value,
|
|
2995
|
+
multiple: a.maxFileInput > 1,
|
|
2996
|
+
onInput: n[0] || (n[0] = (d) => o([...d.target.files]))
|
|
2997
|
+
}, null, 40, hl),
|
|
2964
2998
|
c("label", {
|
|
2965
|
-
class: B([{ disabled:
|
|
2999
|
+
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
2966
3000
|
id: "file-input-button",
|
|
2967
3001
|
for: "file-input"
|
|
2968
3002
|
}, [
|
|
2969
|
-
$(
|
|
2970
|
-
|
|
3003
|
+
$(a.$slots, "button-content", {}, () => [
|
|
3004
|
+
f(m(V), {
|
|
2971
3005
|
icon: "bi:upload",
|
|
2972
3006
|
class: "me-2",
|
|
2973
3007
|
height: "20px",
|
|
2974
3008
|
width: "20px"
|
|
2975
3009
|
}),
|
|
2976
|
-
O(" Browse your computer ")
|
|
3010
|
+
n[1] || (n[1] = O(" Browse your computer "))
|
|
2977
3011
|
])
|
|
2978
3012
|
], 2)
|
|
2979
3013
|
]),
|
|
2980
|
-
|
|
3014
|
+
a.showDragDropArea ? (i(), v("div", {
|
|
2981
3015
|
class: "ms-auto",
|
|
2982
|
-
key:
|
|
3016
|
+
key: a.acceptedFileTypes.length,
|
|
2983
3017
|
id: "accepted-file-types"
|
|
2984
|
-
}, "Accepted File Types: " + h(
|
|
3018
|
+
}, "Accepted File Types: " + h(a.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
|
|
2985
3019
|
]));
|
|
2986
3020
|
}
|
|
2987
|
-
}),
|
|
3021
|
+
}), xl = {
|
|
2988
3022
|
key: 0,
|
|
2989
3023
|
class: "py-4 px-3",
|
|
2990
3024
|
id: "placeholder-message"
|
|
2991
|
-
},
|
|
3025
|
+
}, kl = {
|
|
2992
3026
|
key: 1,
|
|
2993
3027
|
class: "d-flex flex-column"
|
|
2994
|
-
},
|
|
3028
|
+
}, $l = /* @__PURE__ */ F({
|
|
2995
3029
|
__name: "DragDropArea",
|
|
2996
3030
|
props: /* @__PURE__ */ E({
|
|
2997
3031
|
maxFileInput: {},
|
|
@@ -3003,30 +3037,30 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3003
3037
|
}),
|
|
3004
3038
|
emits: ["update:modelValue"],
|
|
3005
3039
|
setup(e) {
|
|
3006
|
-
const t = A(e, "modelValue"),
|
|
3007
|
-
|
|
3040
|
+
const t = A(e, "modelValue"), l = I(!1), o = k(() => e.maxFileInput <= t.value.length), a = (n) => {
|
|
3041
|
+
l.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = ve([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
|
|
3008
3042
|
};
|
|
3009
|
-
return (n,
|
|
3043
|
+
return (n, d) => (i(), v("div", {
|
|
3010
3044
|
id: "drag-drop-area",
|
|
3011
|
-
class: B(`${
|
|
3012
|
-
onDragleave:
|
|
3013
|
-
onDragover:
|
|
3014
|
-
onDrop: q(
|
|
3045
|
+
class: B(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
3046
|
+
onDragleave: d[0] || (d[0] = q((r) => l.value = !1, ["prevent"])),
|
|
3047
|
+
onDragover: d[1] || (d[1] = q((r) => l.value = !0, ["prevent"])),
|
|
3048
|
+
onDrop: q(a, ["prevent"])
|
|
3015
3049
|
}, [
|
|
3016
|
-
t.value.length === 0 ? (i(),
|
|
3017
|
-
|
|
3050
|
+
t.value.length === 0 ? (i(), v("div", xl, [
|
|
3051
|
+
f(m(V), {
|
|
3018
3052
|
icon: "bi:upload",
|
|
3019
3053
|
class: "me-2",
|
|
3020
3054
|
height: "20px",
|
|
3021
3055
|
width: "20px"
|
|
3022
3056
|
}),
|
|
3023
|
-
O(" Drag and drop files here ")
|
|
3024
|
-
])) : (i(),
|
|
3057
|
+
d[2] || (d[2] = O(" Drag and drop files here "))
|
|
3058
|
+
])) : (i(), v("div", kl, [
|
|
3025
3059
|
$(n.$slots, "default")
|
|
3026
3060
|
]))
|
|
3027
3061
|
], 34));
|
|
3028
3062
|
}
|
|
3029
|
-
}),
|
|
3063
|
+
}), Bl = { class: "d-flex align-items-center me-2" }, Fl = /* @__PURE__ */ F({
|
|
3030
3064
|
__name: "UploadStatus",
|
|
3031
3065
|
props: {
|
|
3032
3066
|
fileSize: {},
|
|
@@ -3035,7 +3069,7 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3035
3069
|
uploadStatus: {}
|
|
3036
3070
|
},
|
|
3037
3071
|
setup(e) {
|
|
3038
|
-
const t =
|
|
3072
|
+
const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = k(() => {
|
|
3039
3073
|
switch (e.uploadStatus) {
|
|
3040
3074
|
case "InvalidFileType":
|
|
3041
3075
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -3051,8 +3085,8 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3051
3085
|
return "Upload Failed: Connection error, please try again.";
|
|
3052
3086
|
}
|
|
3053
3087
|
});
|
|
3054
|
-
return (o,
|
|
3055
|
-
o.uploadStatus === "Uploading" ? (i(), w(
|
|
3088
|
+
return (o, a) => (i(), v("div", Bl, [
|
|
3089
|
+
o.uploadStatus === "Uploading" ? (i(), w(Gt, {
|
|
3056
3090
|
key: 0,
|
|
3057
3091
|
pixelWidth: 200,
|
|
3058
3092
|
animate: "",
|
|
@@ -3063,29 +3097,29 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3063
3097
|
]),
|
|
3064
3098
|
_: 1
|
|
3065
3099
|
})) : S("", !0),
|
|
3066
|
-
o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (i(), w(
|
|
3100
|
+
o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (i(), w(ae, {
|
|
3067
3101
|
key: 1,
|
|
3068
3102
|
id: "upload-status-alert",
|
|
3069
3103
|
severity: t.value,
|
|
3070
3104
|
class: "mb-0 w-75 ms-auto"
|
|
3071
3105
|
}, {
|
|
3072
3106
|
default: g(() => [
|
|
3073
|
-
O(h(
|
|
3107
|
+
O(h(l.value), 1)
|
|
3074
3108
|
]),
|
|
3075
3109
|
_: 1
|
|
3076
3110
|
}, 8, ["severity"])) : S("", !0)
|
|
3077
3111
|
]));
|
|
3078
3112
|
}
|
|
3079
|
-
}),
|
|
3113
|
+
}), _l = ["data-cy"], Sl = { class: "ms-3 d-flex flex-column" }, Vl = {
|
|
3080
3114
|
key: 1,
|
|
3081
3115
|
id: "file-name"
|
|
3082
|
-
},
|
|
3116
|
+
}, Cl = {
|
|
3083
3117
|
class: "text-black-50",
|
|
3084
3118
|
id: "file-type"
|
|
3085
|
-
},
|
|
3119
|
+
}, Tl = {
|
|
3086
3120
|
class: "text-black-50",
|
|
3087
3121
|
id: "file-size"
|
|
3088
|
-
},
|
|
3122
|
+
}, Pl = { class: "ms-auto my-auto d-flex" }, Ml = /* @__PURE__ */ F({
|
|
3089
3123
|
__name: "FileInfo",
|
|
3090
3124
|
props: /* @__PURE__ */ E({
|
|
3091
3125
|
editableFileName: { type: Boolean },
|
|
@@ -3104,52 +3138,52 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3104
3138
|
}),
|
|
3105
3139
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
3106
3140
|
setup(e, { emit: t }) {
|
|
3107
|
-
const
|
|
3108
|
-
|
|
3141
|
+
const l = A(e, "file"), o = A(e, "blobFileName"), a = A(e, "uploadStatus"), n = t, d = I(l.value.name), r = I(""), u = I(0), p = I(), y = k(() => e.acceptedFileTypes.includes(l.value.type)), s = k(() => l.value.size <= e.maxFileSize), T = () => {
|
|
3142
|
+
l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
3109
3143
|
}, C = async () => {
|
|
3110
|
-
if (!
|
|
3111
|
-
|
|
3144
|
+
if (!y.value || !s.value) {
|
|
3145
|
+
a.value = y.value ? "InvalidFileSize" : "InvalidFileType";
|
|
3112
3146
|
return;
|
|
3113
3147
|
}
|
|
3114
|
-
|
|
3115
|
-
const [
|
|
3116
|
-
if (!
|
|
3117
|
-
|
|
3148
|
+
a.value = "Preparing", p.value = new AbortController();
|
|
3149
|
+
const [M, z] = await e.getFileUrlAction(l.value.name);
|
|
3150
|
+
if (!M) {
|
|
3151
|
+
a.value = "Failed";
|
|
3118
3152
|
return;
|
|
3119
3153
|
}
|
|
3120
3154
|
try {
|
|
3121
|
-
|
|
3122
|
-
const
|
|
3155
|
+
a.value = "Uploading";
|
|
3156
|
+
const b = new ce(M), x = {
|
|
3123
3157
|
abortSignal: p.value.signal,
|
|
3124
|
-
onProgress: (G) =>
|
|
3158
|
+
onProgress: (G) => u.value = G.loadedBytes,
|
|
3125
3159
|
tags: { temp: "true" }
|
|
3126
3160
|
};
|
|
3127
|
-
await
|
|
3128
|
-
} catch (
|
|
3129
|
-
if (
|
|
3130
|
-
|
|
3161
|
+
await b.uploadData(l.value, x), r.value = M, a.value = "Uploaded", o.value = z;
|
|
3162
|
+
} catch (b) {
|
|
3163
|
+
if (b.name === "AbortError") {
|
|
3164
|
+
a.value = "Aborted";
|
|
3131
3165
|
return;
|
|
3132
3166
|
}
|
|
3133
|
-
|
|
3167
|
+
a.value = "Failed";
|
|
3134
3168
|
}
|
|
3135
|
-
},
|
|
3136
|
-
await
|
|
3169
|
+
}, P = async () => {
|
|
3170
|
+
await vl(a.value, r.value), n("deleted", l.value);
|
|
3137
3171
|
};
|
|
3138
3172
|
return ne(() => {
|
|
3139
3173
|
e.autoUploadToBlob && C();
|
|
3140
|
-
}), (
|
|
3141
|
-
const
|
|
3142
|
-
return i(),
|
|
3174
|
+
}), (M, z) => {
|
|
3175
|
+
const b = R;
|
|
3176
|
+
return i(), v("div", {
|
|
3143
3177
|
class: "py-4 px-3 d-flex",
|
|
3144
|
-
"data-cy": `file-info-${
|
|
3178
|
+
"data-cy": `file-info-${l.value.name}`
|
|
3145
3179
|
}, [
|
|
3146
3180
|
c("div", null, [
|
|
3147
|
-
m(
|
|
3181
|
+
m(bl)(l.value.type) ? (i(), w(m(Oe), {
|
|
3148
3182
|
key: 0,
|
|
3149
3183
|
id: "thumbnail-image",
|
|
3150
3184
|
"image-class": "image-file-thumbnail border",
|
|
3151
|
-
src: m(
|
|
3152
|
-
alt:
|
|
3185
|
+
src: m(fl)(l.value),
|
|
3186
|
+
alt: l.value.name,
|
|
3153
3187
|
width: "75px",
|
|
3154
3188
|
preview: ""
|
|
3155
3189
|
}, null, 8, ["src", "alt"])) : (i(), w(m(V), {
|
|
@@ -3160,76 +3194,76 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3160
3194
|
width: "75px"
|
|
3161
3195
|
}))
|
|
3162
3196
|
]),
|
|
3163
|
-
c("div",
|
|
3197
|
+
c("div", Sl, [
|
|
3164
3198
|
c("div", null, [
|
|
3165
|
-
|
|
3199
|
+
M.editableFileName ? (i(), w($t, {
|
|
3166
3200
|
key: 0,
|
|
3167
3201
|
id: "edit-file-name",
|
|
3168
|
-
modelValue:
|
|
3169
|
-
"onUpdate:modelValue": z[0] || (z[0] = (
|
|
3170
|
-
rules:
|
|
3171
|
-
name:
|
|
3202
|
+
modelValue: d.value,
|
|
3203
|
+
"onUpdate:modelValue": z[0] || (z[0] = (x) => d.value = x),
|
|
3204
|
+
rules: M.customFileNameRules,
|
|
3205
|
+
name: l.value.name,
|
|
3172
3206
|
"complete-action": T
|
|
3173
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (i(),
|
|
3207
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (i(), v("span", Vl, h(l.value.name), 1))
|
|
3174
3208
|
]),
|
|
3175
|
-
c("span",
|
|
3176
|
-
c("span",
|
|
3209
|
+
c("span", Cl, "File type: " + h(l.value.type.split("/").pop()), 1),
|
|
3210
|
+
c("span", Tl, "File size: " + h(m(re)(l.value.size)), 1)
|
|
3177
3211
|
]),
|
|
3178
|
-
c("div",
|
|
3179
|
-
(i(), w(
|
|
3180
|
-
key:
|
|
3181
|
-
"file-size":
|
|
3182
|
-
"upload-status":
|
|
3183
|
-
"bytes-uploaded":
|
|
3184
|
-
"max-file-size":
|
|
3212
|
+
c("div", Pl, [
|
|
3213
|
+
(i(), w(Fl, {
|
|
3214
|
+
key: a.value,
|
|
3215
|
+
"file-size": l.value.size,
|
|
3216
|
+
"upload-status": a.value,
|
|
3217
|
+
"bytes-uploaded": u.value,
|
|
3218
|
+
"max-file-size": M.maxFileSize
|
|
3185
3219
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
3186
|
-
|
|
3220
|
+
a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (i(), w(b, {
|
|
3187
3221
|
key: 0,
|
|
3188
3222
|
link: "",
|
|
3189
3223
|
onClick: C
|
|
3190
3224
|
}, {
|
|
3191
3225
|
default: g(() => [
|
|
3192
|
-
|
|
3193
|
-
icon:
|
|
3226
|
+
f(m(V), {
|
|
3227
|
+
icon: a.value === "Not Uploaded" || a.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
3194
3228
|
}, null, 8, ["icon"])
|
|
3195
3229
|
]),
|
|
3196
3230
|
_: 1
|
|
3197
3231
|
})) : S("", !0),
|
|
3198
|
-
|
|
3232
|
+
a.value === "Uploading" ? (i(), w(b, {
|
|
3199
3233
|
key: 1,
|
|
3200
3234
|
link: "",
|
|
3201
|
-
onClick: z[1] || (z[1] = (
|
|
3235
|
+
onClick: z[1] || (z[1] = (x) => p.value.value.abort())
|
|
3202
3236
|
}, {
|
|
3203
3237
|
default: g(() => [
|
|
3204
|
-
|
|
3238
|
+
f(m(V), { icon: "bi:x-circle-fill" })
|
|
3205
3239
|
]),
|
|
3206
3240
|
_: 1
|
|
3207
|
-
})) : (i(), w(
|
|
3241
|
+
})) : (i(), w(b, {
|
|
3208
3242
|
key: 2,
|
|
3209
3243
|
link: "",
|
|
3210
|
-
onClick:
|
|
3244
|
+
onClick: P,
|
|
3211
3245
|
id: "delete-button"
|
|
3212
3246
|
}, {
|
|
3213
3247
|
default: g(() => [
|
|
3214
|
-
|
|
3248
|
+
f(m(V), { icon: "bi:trash" })
|
|
3215
3249
|
]),
|
|
3216
3250
|
_: 1
|
|
3217
3251
|
}))
|
|
3218
3252
|
])
|
|
3219
|
-
], 8,
|
|
3253
|
+
], 8, _l);
|
|
3220
3254
|
};
|
|
3221
3255
|
}
|
|
3222
|
-
}),
|
|
3256
|
+
}), Il = { class: "d-flex justify-content-end mt-1" }, zl = { id: "max-file-size" }, Ol = /* @__PURE__ */ F({
|
|
3223
3257
|
__name: "MaxFileSize",
|
|
3224
3258
|
props: {
|
|
3225
3259
|
maxFileSize: {}
|
|
3226
3260
|
},
|
|
3227
3261
|
setup(e) {
|
|
3228
|
-
return (t,
|
|
3229
|
-
c("div",
|
|
3262
|
+
return (t, l) => (i(), v("div", Il, [
|
|
3263
|
+
c("div", zl, "Max file size: " + h(m(re)(t.maxFileSize)), 1)
|
|
3230
3264
|
]));
|
|
3231
3265
|
}
|
|
3232
|
-
}),
|
|
3266
|
+
}), Dl = { "data-cy": "file-uploader" }, Ul = { key: 0 }, Ca = /* @__PURE__ */ F({
|
|
3233
3267
|
__name: "ForgeFileUploader",
|
|
3234
3268
|
props: /* @__PURE__ */ E({
|
|
3235
3269
|
acceptedFileTypes: {},
|
|
@@ -3246,72 +3280,72 @@ const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disable
|
|
|
3246
3280
|
}),
|
|
3247
3281
|
emits: ["update:modelValue"],
|
|
3248
3282
|
setup(e) {
|
|
3249
|
-
const t = A(e, "modelValue"),
|
|
3250
|
-
t.value = t.value.filter((n) => n.file !=
|
|
3283
|
+
const t = A(e, "modelValue"), l = e, o = (a) => {
|
|
3284
|
+
t.value = t.value.filter((n) => n.file != a);
|
|
3251
3285
|
};
|
|
3252
|
-
return (
|
|
3253
|
-
|
|
3286
|
+
return (a, n) => (i(), v("div", Dl, [
|
|
3287
|
+
f(wl, _(l, {
|
|
3254
3288
|
modelValue: t.value,
|
|
3255
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3289
|
+
"onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
|
|
3256
3290
|
}), null, 16, ["modelValue"]),
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
"max-file-input":
|
|
3260
|
-
"max-file-size":
|
|
3261
|
-
"accepted-file-types":
|
|
3291
|
+
a.showDragDropArea ? (i(), v("div", Ul, [
|
|
3292
|
+
f($l, {
|
|
3293
|
+
"max-file-input": l.maxFileInput,
|
|
3294
|
+
"max-file-size": l.maxFileSize,
|
|
3295
|
+
"accepted-file-types": l.acceptedFileTypes,
|
|
3262
3296
|
modelValue: t.value,
|
|
3263
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
3297
|
+
"onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
|
|
3264
3298
|
}, {
|
|
3265
3299
|
default: g(() => [
|
|
3266
|
-
(i(!0),
|
|
3267
|
-
(i(), w(
|
|
3268
|
-
key:
|
|
3300
|
+
(i(!0), v(L, null, Y(t.value, ({ file: d }, r) => (i(), v("span", null, [
|
|
3301
|
+
(i(), w(Ml, _({
|
|
3302
|
+
key: d.name,
|
|
3269
3303
|
class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
3270
3304
|
file: t.value[r].file,
|
|
3271
|
-
"onUpdate:file": (
|
|
3305
|
+
"onUpdate:file": (u) => t.value[r].file = u,
|
|
3272
3306
|
"blob-file-name": t.value[r].blobFileName,
|
|
3273
|
-
"onUpdate:blobFileName": (
|
|
3307
|
+
"onUpdate:blobFileName": (u) => t.value[r].blobFileName = u,
|
|
3274
3308
|
"upload-status": t.value[r].status,
|
|
3275
|
-
"onUpdate:uploadStatus": (
|
|
3309
|
+
"onUpdate:uploadStatus": (u) => t.value[r].status = u,
|
|
3276
3310
|
ref_for: !0
|
|
3277
|
-
},
|
|
3311
|
+
}, l, { onDeleted: o }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
3278
3312
|
]))), 256))
|
|
3279
3313
|
]),
|
|
3280
3314
|
_: 1
|
|
3281
3315
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
3282
|
-
|
|
3283
|
-
"max-file-size":
|
|
3316
|
+
f(Ol, {
|
|
3317
|
+
"max-file-size": l.maxFileSize
|
|
3284
3318
|
}, null, 8, ["max-file-size"])
|
|
3285
3319
|
])) : S("", !0)
|
|
3286
3320
|
]));
|
|
3287
3321
|
}
|
|
3288
3322
|
});
|
|
3289
3323
|
export {
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3324
|
+
ca as Bootstrap_PT,
|
|
3325
|
+
ma as ForgeActionButton,
|
|
3326
|
+
ae as ForgeAlert,
|
|
3293
3327
|
ct as ForgeCheckbox,
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3328
|
+
$a as ForgeChips,
|
|
3329
|
+
ye as ForgeDatepicker,
|
|
3330
|
+
Ca as ForgeFileUploader,
|
|
3331
|
+
Va as ForgeFilterHeader,
|
|
3332
|
+
xa as ForgeForm,
|
|
3333
|
+
ka as ForgeFormField,
|
|
3300
3334
|
$t as ForgeInlineEditor,
|
|
3301
|
-
|
|
3335
|
+
pa as ForgeLink,
|
|
3302
3336
|
me as ForgeLoader,
|
|
3303
|
-
|
|
3337
|
+
ba as ForgeModal,
|
|
3304
3338
|
pe as ForgeMultiSelect,
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3339
|
+
ga as ForgeMultiSelectPreview,
|
|
3340
|
+
fa as ForgeNavbar,
|
|
3341
|
+
ha as ForgePageHeader,
|
|
3342
|
+
Gt as ForgeProgressBar,
|
|
3343
|
+
wa as ForgeRemainingCharacters,
|
|
3344
|
+
Ba as ForgeStatWidget,
|
|
3345
|
+
Fa as ForgeStepper,
|
|
3346
|
+
Sa as ForgeTable,
|
|
3347
|
+
_a as ForgeTile,
|
|
3348
|
+
va as convertToMultiSelectOption,
|
|
3349
|
+
ya as enumToMultiSelectList,
|
|
3350
|
+
yt as parseError
|
|
3317
3351
|
};
|