@3squared/forge-ui-3 0.9.0 → 0.10.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 +812 -784
- package/dist/esm/style.css +1 -1
- package/dist/src/components/ForgeDatepicker.vue.d.ts +3 -0
- package/dist/src/components/ForgeFormField.vue.d.ts +7 -9
- package/dist/src/types/forge-types.d.ts +1 -1
- package/package.json +1 -1
- package/src/styles/components/_table.scss +14 -0
- package/src/types/forge-types.ts +1 -1
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { Icon as
|
|
1
|
+
import he from "primevue/message";
|
|
2
|
+
import { defineComponent as V, openBlock as i, createBlock as h, normalizeProps as ee, guardReactiveProps as te, withCtx as b, createElementVNode as c, normalizeClass as F, unref as m, createCommentVNode as S, createVNode as f, renderSlot as B, ref as I, createElementBlock as y, Fragment as N, mergeProps as C, onMounted as ae, watch as re, computed as k, isRef as le, createTextVNode as O, toDisplayString as w, withDirectives as L, vShow as H, mergeModels as j, useModel as E, createSlots as oe, renderList as q, withKeys as X, useAttrs as ce, withModifiers as Y, normalizeStyle as we } from "vue";
|
|
3
|
+
import { Icon as T } from "@iconify/vue";
|
|
4
4
|
import R from "primevue/button";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useField as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { vOnClickOutside as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
5
|
+
import xe from "primevue/toast";
|
|
6
|
+
import ke from "primevue/checkbox";
|
|
7
|
+
import { useField as K } from "vee-validate";
|
|
8
|
+
import $e from "primevue/progressspinner";
|
|
9
|
+
import Be from "primevue/dialog";
|
|
10
|
+
import de from "primevue/inputtext";
|
|
11
|
+
import { vOnClickOutside as _e } from "@vueuse/components";
|
|
12
|
+
import Fe from "primevue/menubar";
|
|
13
|
+
import Ve from "vue-multiselect";
|
|
14
|
+
import Se from "primevue/calendar";
|
|
15
|
+
import ne from "primevue/dropdown";
|
|
16
|
+
import Ce from "primevue/inputmask";
|
|
17
|
+
import Te from "primevue/textarea";
|
|
17
18
|
import me from "primevue/inputnumber";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import ze from "primevue/multiselect";
|
|
19
|
+
import Pe from "primevue/chips";
|
|
20
|
+
import Me from "primevue/progressbar";
|
|
21
|
+
import Ie from "primevue/divider";
|
|
22
|
+
import ze from "primevue/steps";
|
|
23
|
+
import Oe from "primevue/datatable";
|
|
24
|
+
import De from "primevue/multiselect";
|
|
25
25
|
import { BlockBlobClient as pe } from "@azure/storage-blob";
|
|
26
|
-
import
|
|
27
|
-
const
|
|
26
|
+
import Ue from "primevue/image";
|
|
27
|
+
const Ae = {
|
|
28
28
|
button: {
|
|
29
29
|
root: ({ props: e }) => ({
|
|
30
30
|
class: [
|
|
@@ -108,7 +108,7 @@ const De = {
|
|
|
108
108
|
]
|
|
109
109
|
})
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, Ne = {
|
|
112
112
|
checkbox: {
|
|
113
113
|
root: () => ({
|
|
114
114
|
class: [
|
|
@@ -126,7 +126,7 @@ const De = {
|
|
|
126
126
|
]
|
|
127
127
|
})
|
|
128
128
|
}
|
|
129
|
-
},
|
|
129
|
+
}, Ee = {
|
|
130
130
|
dropdown: {
|
|
131
131
|
root: ({ props: e }) => ({
|
|
132
132
|
class: [
|
|
@@ -187,7 +187,7 @@ const De = {
|
|
|
187
187
|
itemGroupLabel: "ps-2 fw-bold",
|
|
188
188
|
input: "w-100"
|
|
189
189
|
}
|
|
190
|
-
},
|
|
190
|
+
}, Re = {
|
|
191
191
|
column: {
|
|
192
192
|
sortBadge: "ms-2 my-auto cursor-pointer",
|
|
193
193
|
headerCell: (e) => {
|
|
@@ -283,7 +283,7 @@ const De = {
|
|
|
283
283
|
]
|
|
284
284
|
})
|
|
285
285
|
}
|
|
286
|
-
},
|
|
286
|
+
}, Le = {
|
|
287
287
|
inputtext: {
|
|
288
288
|
root: (e) => {
|
|
289
289
|
var t, l;
|
|
@@ -298,7 +298,7 @@ const De = {
|
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, je = {
|
|
302
302
|
inputmask: {
|
|
303
303
|
root: () => ({
|
|
304
304
|
class: [
|
|
@@ -306,12 +306,12 @@ const De = {
|
|
|
306
306
|
]
|
|
307
307
|
})
|
|
308
308
|
}
|
|
309
|
-
},
|
|
309
|
+
}, He = {
|
|
310
310
|
inputSwitch: {
|
|
311
311
|
root: "form-check form-switch",
|
|
312
312
|
input: "form-check-input"
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, Ye = {
|
|
315
315
|
textarea: {
|
|
316
316
|
root: () => ({
|
|
317
317
|
class: [
|
|
@@ -319,13 +319,13 @@ const De = {
|
|
|
319
319
|
]
|
|
320
320
|
})
|
|
321
321
|
}
|
|
322
|
-
},
|
|
322
|
+
}, qe = {
|
|
323
323
|
// More PassThrough options in component file.
|
|
324
324
|
chips: {
|
|
325
325
|
root: "d-flex",
|
|
326
326
|
label: "pe-2"
|
|
327
327
|
}
|
|
328
|
-
},
|
|
328
|
+
}, Ge = {
|
|
329
329
|
dialog: {
|
|
330
330
|
header: () => ({
|
|
331
331
|
class: ["modal-header"]
|
|
@@ -368,7 +368,7 @@ const De = {
|
|
|
368
368
|
]
|
|
369
369
|
})
|
|
370
370
|
}
|
|
371
|
-
},
|
|
371
|
+
}, Ke = {
|
|
372
372
|
overlaypanel: {
|
|
373
373
|
root: (e) => ({
|
|
374
374
|
class: [
|
|
@@ -382,7 +382,7 @@ const De = {
|
|
|
382
382
|
content: "d-flex position-relative",
|
|
383
383
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
384
384
|
}
|
|
385
|
-
},
|
|
385
|
+
}, We = {
|
|
386
386
|
message: {
|
|
387
387
|
root: ({ props: e }) => ({
|
|
388
388
|
class: [
|
|
@@ -411,13 +411,13 @@ const De = {
|
|
|
411
411
|
class: ["px-0 ms-2 btn d-flex"]
|
|
412
412
|
})
|
|
413
413
|
}
|
|
414
|
-
},
|
|
414
|
+
}, Ze = {
|
|
415
415
|
// More PT options defined in ForgeStepper.
|
|
416
416
|
steps: {
|
|
417
417
|
root: "w-100 mx-2 line",
|
|
418
418
|
menu: "p-0 m-0 list-unstyled d-flex justify-content-between "
|
|
419
419
|
}
|
|
420
|
-
},
|
|
420
|
+
}, Je = {
|
|
421
421
|
tabview: {
|
|
422
422
|
navContainer: () => ({
|
|
423
423
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -455,7 +455,7 @@ const De = {
|
|
|
455
455
|
class: ["p-2"]
|
|
456
456
|
})
|
|
457
457
|
}
|
|
458
|
-
},
|
|
458
|
+
}, Xe = {
|
|
459
459
|
// More PassThrough options defined in ForgeDatepicker.
|
|
460
460
|
calendar: {
|
|
461
461
|
root: "d-inline-flex relative w-100",
|
|
@@ -528,7 +528,7 @@ const De = {
|
|
|
528
528
|
decrementButton: "btn btn-sm",
|
|
529
529
|
incrementButton: "btn btn-sm"
|
|
530
530
|
}
|
|
531
|
-
},
|
|
531
|
+
}, Qe = {
|
|
532
532
|
multiselect: {
|
|
533
533
|
root: ({ props: e }) => ({
|
|
534
534
|
class: [
|
|
@@ -559,7 +559,7 @@ const De = {
|
|
|
559
559
|
]
|
|
560
560
|
})
|
|
561
561
|
}
|
|
562
|
-
},
|
|
562
|
+
}, et = {
|
|
563
563
|
// More PassThrough options in component file.
|
|
564
564
|
progressbar: {
|
|
565
565
|
root: () => ({
|
|
@@ -572,7 +572,7 @@ const De = {
|
|
|
572
572
|
class: ["text-white"]
|
|
573
573
|
})
|
|
574
574
|
}
|
|
575
|
-
},
|
|
575
|
+
}, tt = {
|
|
576
576
|
// More PT options can be found in the ForgeTable file.
|
|
577
577
|
dataTable: {
|
|
578
578
|
datatable: "position-relative",
|
|
@@ -632,7 +632,7 @@ const De = {
|
|
|
632
632
|
]
|
|
633
633
|
})
|
|
634
634
|
}
|
|
635
|
-
},
|
|
635
|
+
}, at = {
|
|
636
636
|
badge: {
|
|
637
637
|
root: ({ props: e }) => ({
|
|
638
638
|
class: [
|
|
@@ -653,7 +653,7 @@ const De = {
|
|
|
653
653
|
]
|
|
654
654
|
})
|
|
655
655
|
}
|
|
656
|
-
},
|
|
656
|
+
}, lt = {
|
|
657
657
|
// More PassThrough options in component file.
|
|
658
658
|
menubar: {
|
|
659
659
|
menu: ({ instance: e }) => ({
|
|
@@ -723,7 +723,7 @@ const De = {
|
|
|
723
723
|
]
|
|
724
724
|
})
|
|
725
725
|
}
|
|
726
|
-
},
|
|
726
|
+
}, ot = {
|
|
727
727
|
tooltip: {
|
|
728
728
|
root: ({ context: e }) => ({
|
|
729
729
|
class: [
|
|
@@ -745,7 +745,7 @@ const De = {
|
|
|
745
745
|
class: ["tooltip-inner"]
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
|
-
},
|
|
748
|
+
}, nt = {
|
|
749
749
|
selectbutton: {
|
|
750
750
|
root: () => ({
|
|
751
751
|
class: ["btn-group"]
|
|
@@ -763,7 +763,7 @@ const De = {
|
|
|
763
763
|
]
|
|
764
764
|
})
|
|
765
765
|
}
|
|
766
|
-
},
|
|
766
|
+
}, st = {
|
|
767
767
|
progressspinner: {
|
|
768
768
|
spinner: () => ({
|
|
769
769
|
class: [
|
|
@@ -771,7 +771,7 @@ const De = {
|
|
|
771
771
|
]
|
|
772
772
|
})
|
|
773
773
|
}
|
|
774
|
-
},
|
|
774
|
+
}, it = {
|
|
775
775
|
card: {
|
|
776
776
|
root: () => ({
|
|
777
777
|
class: ["card"]
|
|
@@ -795,11 +795,11 @@ const De = {
|
|
|
795
795
|
class: ["card-header"]
|
|
796
796
|
})
|
|
797
797
|
}
|
|
798
|
-
},
|
|
798
|
+
}, rt = {
|
|
799
799
|
divider: {
|
|
800
800
|
root: "border-bottom m-4 w-100"
|
|
801
801
|
}
|
|
802
|
-
},
|
|
802
|
+
}, dt = {
|
|
803
803
|
image: {
|
|
804
804
|
root: "position-relative d-inline-block",
|
|
805
805
|
button: "preview-button",
|
|
@@ -812,7 +812,7 @@ const De = {
|
|
|
812
812
|
zoominbutton: "btn text-white",
|
|
813
813
|
closebutton: "btn text-white"
|
|
814
814
|
}
|
|
815
|
-
},
|
|
815
|
+
}, ut = {
|
|
816
816
|
toast: {
|
|
817
817
|
message: () => ({
|
|
818
818
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -850,37 +850,37 @@ const De = {
|
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
|
-
},
|
|
854
|
-
...
|
|
855
|
-
...De,
|
|
856
|
-
...nt,
|
|
857
|
-
...Ue,
|
|
858
|
-
...He,
|
|
859
|
-
...Ne,
|
|
860
|
-
...Ze,
|
|
861
|
-
...Ye,
|
|
862
|
-
...st,
|
|
853
|
+
}, cl = {
|
|
854
|
+
...at,
|
|
863
855
|
...Ae,
|
|
864
856
|
...it,
|
|
865
|
-
...
|
|
866
|
-
...Re,
|
|
867
|
-
...Le,
|
|
868
|
-
...Ge,
|
|
869
|
-
...Je,
|
|
870
|
-
...tt,
|
|
857
|
+
...Ne,
|
|
871
858
|
...qe,
|
|
859
|
+
...Re,
|
|
872
860
|
...Xe,
|
|
873
|
-
...
|
|
874
|
-
...lt,
|
|
875
|
-
...Ke,
|
|
876
|
-
...Qe,
|
|
877
|
-
...We,
|
|
861
|
+
...Ge,
|
|
878
862
|
...rt,
|
|
863
|
+
...Ee,
|
|
864
|
+
...dt,
|
|
865
|
+
...Le,
|
|
879
866
|
...je,
|
|
867
|
+
...He,
|
|
868
|
+
...We,
|
|
869
|
+
...Qe,
|
|
870
|
+
...lt,
|
|
871
|
+
...Ke,
|
|
872
|
+
...et,
|
|
873
|
+
...st,
|
|
874
|
+
...nt,
|
|
875
|
+
...Ze,
|
|
876
|
+
...tt,
|
|
877
|
+
...Je,
|
|
878
|
+
...ut,
|
|
879
|
+
...Ye,
|
|
880
880
|
directives: {
|
|
881
|
-
...
|
|
881
|
+
...ot
|
|
882
882
|
}
|
|
883
|
-
},
|
|
883
|
+
}, se = /* @__PURE__ */ V({
|
|
884
884
|
__name: "ForgeAlert",
|
|
885
885
|
props: {
|
|
886
886
|
severity: { default: "primary" },
|
|
@@ -897,32 +897,32 @@ const De = {
|
|
|
897
897
|
setup(e) {
|
|
898
898
|
const t = e;
|
|
899
899
|
return (l, a) => {
|
|
900
|
-
const o =
|
|
901
|
-
return i(),
|
|
900
|
+
const o = he;
|
|
901
|
+
return i(), h(o, ee(te({ ...l.$attrs, ...t })), {
|
|
902
902
|
messageicon: b(() => [
|
|
903
|
-
|
|
904
|
-
class:
|
|
903
|
+
c("div", {
|
|
904
|
+
class: F(t.icon ? "me-2 pe-1" : "")
|
|
905
905
|
}, [
|
|
906
|
-
t.icon ? (i(),
|
|
906
|
+
t.icon ? (i(), h(m(T), {
|
|
907
907
|
key: 0,
|
|
908
908
|
"data-cy": "message-icon",
|
|
909
909
|
icon: t.icon,
|
|
910
|
-
class:
|
|
910
|
+
class: F(`text-${t.severity}`),
|
|
911
911
|
height: 35
|
|
912
912
|
}, null, 8, ["icon", "class"])) : S("", !0)
|
|
913
913
|
], 2)
|
|
914
914
|
]),
|
|
915
915
|
closeicon: b(() => [
|
|
916
|
-
f(
|
|
916
|
+
f(m(T), { icon: "bi:x" })
|
|
917
917
|
]),
|
|
918
918
|
default: b(() => [
|
|
919
|
-
|
|
919
|
+
B(l.$slots, "default")
|
|
920
920
|
]),
|
|
921
921
|
_: 3
|
|
922
922
|
}, 16);
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
|
-
}),
|
|
925
|
+
}), ml = /* @__PURE__ */ V({
|
|
926
926
|
__name: "ForgeActionButton",
|
|
927
927
|
props: {
|
|
928
928
|
action: {},
|
|
@@ -940,19 +940,19 @@ const De = {
|
|
|
940
940
|
}
|
|
941
941
|
t.value = !1;
|
|
942
942
|
};
|
|
943
|
-
return (o,
|
|
944
|
-
const
|
|
945
|
-
return i(),
|
|
946
|
-
f(
|
|
943
|
+
return (o, s) => {
|
|
944
|
+
const d = R;
|
|
945
|
+
return i(), y(N, null, [
|
|
946
|
+
f(d, C({ ...l, ...o.$attrs }, {
|
|
947
947
|
loading: t.value,
|
|
948
948
|
disabled: t.value || l.disabled,
|
|
949
949
|
onClick: a
|
|
950
950
|
}), null, 16, ["loading", "disabled"]),
|
|
951
|
-
f(
|
|
951
|
+
f(m(xe))
|
|
952
952
|
], 64);
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
|
-
}),
|
|
955
|
+
}), ct = /* @__PURE__ */ c("div", null, null, -1), mt = ["for"], ve = /* @__PURE__ */ V({
|
|
956
956
|
__name: "ForgeCheckbox",
|
|
957
957
|
props: {
|
|
958
958
|
label: { default: "" },
|
|
@@ -979,58 +979,58 @@ const De = {
|
|
|
979
979
|
},
|
|
980
980
|
emits: ["update:modelValue"],
|
|
981
981
|
setup(e, { emit: t }) {
|
|
982
|
-
const l = t, a = e, { checked: o, handleChange:
|
|
982
|
+
const l = t, a = e, { checked: o, handleChange: s, setValue: d, errors: r, errorMessage: v } = K(() => a.name ?? a.label, void 0, {
|
|
983
983
|
type: "checkbox",
|
|
984
984
|
checkedValue: !0
|
|
985
|
-
}),
|
|
986
|
-
a.disabled || (
|
|
985
|
+
}), u = (p) => {
|
|
986
|
+
a.disabled || (s(p), l("update:modelValue", !a.modelValue));
|
|
987
987
|
};
|
|
988
988
|
ae(() => {
|
|
989
|
-
a.value !== void 0 && a.value !== (o == null ? void 0 : o.value) ?
|
|
990
|
-
}),
|
|
991
|
-
|
|
989
|
+
a.value !== void 0 && a.value !== (o == null ? void 0 : o.value) ? d(a.value) : a.modelValue !== void 0 && a.modelValue !== (o == null ? void 0 : o.value) && d(a.modelValue);
|
|
990
|
+
}), re(() => a.value, (p) => {
|
|
991
|
+
d(p);
|
|
992
992
|
});
|
|
993
|
-
const
|
|
994
|
-
return (
|
|
995
|
-
const _ =
|
|
996
|
-
return i(),
|
|
997
|
-
|
|
993
|
+
const n = k(() => r.value.length > 0);
|
|
994
|
+
return (p, x) => {
|
|
995
|
+
const _ = ke;
|
|
996
|
+
return i(), y(N, null, [
|
|
997
|
+
c("div", C({
|
|
998
998
|
class: "d-flex",
|
|
999
999
|
"data-cy": "checkbox-container"
|
|
1000
|
-
}, { ...
|
|
1001
|
-
f(_,
|
|
1000
|
+
}, { ...p.$attrs }), [
|
|
1001
|
+
f(_, C({
|
|
1002
1002
|
id: a.name
|
|
1003
1003
|
}, { ...a }, {
|
|
1004
|
-
modelValue:
|
|
1005
|
-
"onUpdate:modelValue":
|
|
1006
|
-
"input-class": { "is-invalid":
|
|
1007
|
-
onChange:
|
|
1004
|
+
modelValue: m(o),
|
|
1005
|
+
"onUpdate:modelValue": x[0] || (x[0] = (P) => le(o) ? o.value = P : null),
|
|
1006
|
+
"input-class": { "is-invalid": n.value },
|
|
1007
|
+
onChange: u
|
|
1008
1008
|
}), {
|
|
1009
1009
|
icon: b(() => [
|
|
1010
|
-
|
|
1010
|
+
ct
|
|
1011
1011
|
]),
|
|
1012
1012
|
_: 1
|
|
1013
1013
|
}, 16, ["id", "modelValue", "input-class"]),
|
|
1014
|
-
|
|
1014
|
+
c("label", {
|
|
1015
1015
|
for: a.name,
|
|
1016
|
-
class:
|
|
1017
|
-
onClick:
|
|
1016
|
+
class: F(`${a.disabled ? "opacity-50" : "cursor-pointer"} ${n.value ? "text-danger-dark" : ""}`),
|
|
1017
|
+
onClick: u
|
|
1018
1018
|
}, [
|
|
1019
|
-
|
|
1020
|
-
|
|
1019
|
+
B(p.$slots, "default", {}, () => [
|
|
1020
|
+
O(w(a.label), 1)
|
|
1021
1021
|
])
|
|
1022
|
-
], 10,
|
|
1022
|
+
], 10, mt)
|
|
1023
1023
|
], 16),
|
|
1024
|
-
|
|
1024
|
+
L(c("small", {
|
|
1025
1025
|
"data-cy": "error",
|
|
1026
1026
|
class: "text-invalid"
|
|
1027
|
-
},
|
|
1028
|
-
[
|
|
1027
|
+
}, w(m(v)), 513), [
|
|
1028
|
+
[H, n.value]
|
|
1029
1029
|
])
|
|
1030
1030
|
], 64);
|
|
1031
1031
|
};
|
|
1032
1032
|
}
|
|
1033
|
-
}),
|
|
1033
|
+
}), pt = { class: "forge-loader" }, ye = /* @__PURE__ */ V({
|
|
1034
1034
|
__name: "ForgeLoader",
|
|
1035
1035
|
props: {
|
|
1036
1036
|
severity: { default: "primary" }
|
|
@@ -1038,16 +1038,16 @@ const De = {
|
|
|
1038
1038
|
setup(e) {
|
|
1039
1039
|
const t = e;
|
|
1040
1040
|
return (l, a) => {
|
|
1041
|
-
const o =
|
|
1042
|
-
return i(),
|
|
1041
|
+
const o = $e;
|
|
1042
|
+
return i(), y("div", pt, [
|
|
1043
1043
|
f(o, {
|
|
1044
1044
|
"animation-duration": ".75",
|
|
1045
|
-
class:
|
|
1045
|
+
class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1046
1046
|
}, null, 8, ["class"])
|
|
1047
1047
|
]);
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
}),
|
|
1050
|
+
}), vt = ["href", "target"], pl = /* @__PURE__ */ V({
|
|
1051
1051
|
__name: "ForgeLink",
|
|
1052
1052
|
props: {
|
|
1053
1053
|
url: {},
|
|
@@ -1065,7 +1065,7 @@ const De = {
|
|
|
1065
1065
|
iconName: {}
|
|
1066
1066
|
},
|
|
1067
1067
|
setup(e) {
|
|
1068
|
-
const t =
|
|
1068
|
+
const t = k(() => ({
|
|
1069
1069
|
[`link-${e.severity}`]: e.severity,
|
|
1070
1070
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1071
1071
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1074,32 +1074,32 @@ const De = {
|
|
|
1074
1074
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1075
1075
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1076
1076
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1077
|
-
})), l =
|
|
1077
|
+
})), l = k(() => ({
|
|
1078
1078
|
"order-2": e.positionIconEnd,
|
|
1079
1079
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1080
1080
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
1081
1081
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1082
1082
|
"me-0": e.animateIconOnHover
|
|
1083
1083
|
}));
|
|
1084
|
-
return (a, o) => (i(),
|
|
1084
|
+
return (a, o) => (i(), y("a", {
|
|
1085
1085
|
id: "link",
|
|
1086
|
-
class:
|
|
1086
|
+
class: F(["cursor-pointer d-flex", t.value]),
|
|
1087
1087
|
href: a.url,
|
|
1088
1088
|
target: a.target
|
|
1089
1089
|
}, [
|
|
1090
|
-
|
|
1091
|
-
a.iconName ? (i(),
|
|
1090
|
+
B(a.$slots, "default", {}, () => [
|
|
1091
|
+
a.iconName ? (i(), h(m(T), {
|
|
1092
1092
|
key: 0,
|
|
1093
1093
|
id: "link-icon",
|
|
1094
1094
|
icon: a.iconName,
|
|
1095
|
-
class:
|
|
1095
|
+
class: F(["bi my-auto", l.value])
|
|
1096
1096
|
}, null, 8, ["icon", "class"])) : S("", !0),
|
|
1097
|
-
|
|
1097
|
+
O(" " + w(a.label), 1)
|
|
1098
1098
|
])
|
|
1099
|
-
], 10,
|
|
1099
|
+
], 10, vt));
|
|
1100
1100
|
}
|
|
1101
1101
|
});
|
|
1102
|
-
function
|
|
1102
|
+
function yt(e) {
|
|
1103
1103
|
const t = {
|
|
1104
1104
|
errorMessage: "",
|
|
1105
1105
|
errorDetails: []
|
|
@@ -1110,12 +1110,12 @@ function pt(e) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1112
1112
|
}
|
|
1113
|
-
const
|
|
1113
|
+
const bt = { key: 0 }, ft = {
|
|
1114
1114
|
class: "d-flex w-100",
|
|
1115
1115
|
"data-cy": "footer"
|
|
1116
|
-
},
|
|
1116
|
+
}, vl = /* @__PURE__ */ V({
|
|
1117
1117
|
__name: "ForgeModal",
|
|
1118
|
-
props: /* @__PURE__ */
|
|
1118
|
+
props: /* @__PURE__ */ j({
|
|
1119
1119
|
cancelText: { default: "Cancel" },
|
|
1120
1120
|
submitText: { default: "Submit" },
|
|
1121
1121
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1158,30 +1158,30 @@ const yt = { key: 0 }, vt = {
|
|
|
1158
1158
|
}),
|
|
1159
1159
|
emits: ["update:visible"],
|
|
1160
1160
|
setup(e) {
|
|
1161
|
-
const t = E(e, "visible"), l = I(!1), a = e, o = I(!1),
|
|
1161
|
+
const t = E(e, "visible"), l = I(!1), a = e, o = I(!1), s = I({
|
|
1162
1162
|
hasError: !1,
|
|
1163
1163
|
header: "",
|
|
1164
1164
|
message: []
|
|
1165
|
-
}),
|
|
1165
|
+
}), d = () => {
|
|
1166
1166
|
l.value = !1;
|
|
1167
|
-
},
|
|
1167
|
+
}, r = () => {
|
|
1168
1168
|
l.value = !0;
|
|
1169
|
-
},
|
|
1169
|
+
}, v = () => {
|
|
1170
1170
|
t.value = !1;
|
|
1171
|
-
},
|
|
1171
|
+
}, u = async () => {
|
|
1172
1172
|
if (a.onConfirm) {
|
|
1173
|
-
o.value = !0,
|
|
1173
|
+
o.value = !0, s.value.hasError = !1;
|
|
1174
1174
|
try {
|
|
1175
|
-
const
|
|
1176
|
-
(
|
|
1177
|
-
} catch (
|
|
1178
|
-
|
|
1179
|
-
const
|
|
1180
|
-
|
|
1175
|
+
const p = await a.onConfirm();
|
|
1176
|
+
(p || p == null) && v();
|
|
1177
|
+
} catch (p) {
|
|
1178
|
+
s.value.hasError = !0;
|
|
1179
|
+
const x = yt(p);
|
|
1180
|
+
s.value.header = x.errorMessage, s.value.message = x.errorDetails;
|
|
1181
1181
|
}
|
|
1182
1182
|
o.value = !1;
|
|
1183
1183
|
}
|
|
1184
|
-
},
|
|
1184
|
+
}, n = k(() => ({
|
|
1185
1185
|
root: [
|
|
1186
1186
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1187
1187
|
{
|
|
@@ -1189,24 +1189,24 @@ const yt = { key: 0 }, vt = {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
]
|
|
1191
1191
|
}));
|
|
1192
|
-
return (
|
|
1193
|
-
const _ = R, P =
|
|
1194
|
-
return i(),
|
|
1195
|
-
onMaximize:
|
|
1196
|
-
onUnmaximize:
|
|
1197
|
-
pt:
|
|
1192
|
+
return (p, x) => {
|
|
1193
|
+
const _ = R, P = Be;
|
|
1194
|
+
return i(), h(P, C(a, {
|
|
1195
|
+
onMaximize: r,
|
|
1196
|
+
onUnmaximize: d,
|
|
1197
|
+
pt: n.value
|
|
1198
1198
|
}), oe({
|
|
1199
1199
|
closeicon: b(() => [
|
|
1200
|
-
f(
|
|
1200
|
+
f(m(T), {
|
|
1201
1201
|
"data-cy": "close-icon",
|
|
1202
1202
|
icon: "bi:x-lg",
|
|
1203
1203
|
width: "18",
|
|
1204
1204
|
height: "18",
|
|
1205
|
-
onClick:
|
|
1205
|
+
onClick: v
|
|
1206
1206
|
})
|
|
1207
1207
|
]),
|
|
1208
1208
|
maximizeicon: b(() => [
|
|
1209
|
-
f(
|
|
1209
|
+
f(m(T), {
|
|
1210
1210
|
"data-cy": "maximisable-icon",
|
|
1211
1211
|
icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1212
1212
|
width: "16",
|
|
@@ -1215,46 +1215,46 @@ const yt = { key: 0 }, vt = {
|
|
|
1215
1215
|
]),
|
|
1216
1216
|
_: 2
|
|
1217
1217
|
}, [
|
|
1218
|
-
|
|
1219
|
-
name:
|
|
1218
|
+
q(p.$slots, (M, z) => ({
|
|
1219
|
+
name: z,
|
|
1220
1220
|
fn: b((g) => [
|
|
1221
|
-
|
|
1221
|
+
s.value.hasError ? (i(), h(se, {
|
|
1222
1222
|
key: 0,
|
|
1223
1223
|
severity: "danger",
|
|
1224
1224
|
"data-cy": "error"
|
|
1225
1225
|
}, {
|
|
1226
1226
|
default: b(() => [
|
|
1227
|
-
|
|
1228
|
-
class:
|
|
1229
|
-
},
|
|
1230
|
-
|
|
1231
|
-
(i(!0),
|
|
1227
|
+
c("p", {
|
|
1228
|
+
class: F(s.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1229
|
+
}, w(s.value.header), 3),
|
|
1230
|
+
s.value.message.length > 0 ? (i(), y("ul", bt, [
|
|
1231
|
+
(i(!0), y(N, null, q(s.value.message, ($) => (i(), y("li", { key: $ }, w($), 1))), 128))
|
|
1232
1232
|
])) : S("", !0)
|
|
1233
1233
|
]),
|
|
1234
1234
|
_: 1
|
|
1235
1235
|
})) : S("", !0),
|
|
1236
|
-
|
|
1237
|
-
o.value ?
|
|
1238
|
-
f(
|
|
1236
|
+
B(p.$slots, z, ee(te(g || {}))),
|
|
1237
|
+
o.value ? B(p.$slots, "loader", { key: 1 }, () => [
|
|
1238
|
+
f(ye, { "data-cy": "loader" })
|
|
1239
1239
|
]) : S("", !0)
|
|
1240
1240
|
])
|
|
1241
1241
|
})),
|
|
1242
|
-
|
|
1242
|
+
p.showFooter ? {
|
|
1243
1243
|
name: "footer",
|
|
1244
1244
|
fn: b(() => [
|
|
1245
|
-
|
|
1245
|
+
c("div", ft, [
|
|
1246
1246
|
f(_, {
|
|
1247
|
-
label:
|
|
1248
|
-
class:
|
|
1247
|
+
label: p.cancelText,
|
|
1248
|
+
class: F(a.cancelClass),
|
|
1249
1249
|
outlined: "",
|
|
1250
|
-
onClick:
|
|
1250
|
+
onClick: v,
|
|
1251
1251
|
id: "cancel-button",
|
|
1252
1252
|
type: a.cancelButtonType
|
|
1253
1253
|
}, null, 8, ["label", "class", "type"]),
|
|
1254
1254
|
f(_, {
|
|
1255
|
-
label:
|
|
1256
|
-
class:
|
|
1257
|
-
onClick:
|
|
1255
|
+
label: p.submitText,
|
|
1256
|
+
class: F([a.submitClass, "ms-auto"]),
|
|
1257
|
+
onClick: u,
|
|
1258
1258
|
id: "submit-button",
|
|
1259
1259
|
type: a.submitButtonType
|
|
1260
1260
|
}, null, 8, ["label", "class", "type"])
|
|
@@ -1265,9 +1265,9 @@ const yt = { key: 0 }, vt = {
|
|
|
1265
1265
|
]), 1040, ["pt"]);
|
|
1266
1266
|
};
|
|
1267
1267
|
}
|
|
1268
|
-
}),
|
|
1268
|
+
}), gt = ["id"], ht = { key: 0 }, wt = { key: 0 }, xt = { class: "d-flex justify-content-between align-items-center position-relative" }, kt = { key: 1 }, $t = { "data-cy": "readonly-value" }, Bt = /* @__PURE__ */ V({
|
|
1269
1269
|
__name: "ForgeInlineEditor",
|
|
1270
|
-
props: /* @__PURE__ */
|
|
1270
|
+
props: /* @__PURE__ */ j({
|
|
1271
1271
|
name: { default: "" },
|
|
1272
1272
|
completeAction: {},
|
|
1273
1273
|
errorAction: {},
|
|
@@ -1280,13 +1280,13 @@ const yt = { key: 0 }, vt = {
|
|
|
1280
1280
|
}),
|
|
1281
1281
|
emits: ["update:modelValue"],
|
|
1282
1282
|
setup(e) {
|
|
1283
|
-
const t = e, l = E(e, "modelValue"), a = I(!1), o = I(),
|
|
1283
|
+
const t = e, l = E(e, "modelValue"), a = I(!1), o = I(), s = () => {
|
|
1284
1284
|
var _;
|
|
1285
1285
|
a.value = !a.value, (_ = o.value) == null || _.focus();
|
|
1286
|
-
},
|
|
1287
|
-
if (
|
|
1286
|
+
}, d = async () => {
|
|
1287
|
+
if (x.value)
|
|
1288
1288
|
return !1;
|
|
1289
|
-
if (l.value =
|
|
1289
|
+
if (l.value = p.value, t.completeAction)
|
|
1290
1290
|
try {
|
|
1291
1291
|
await t.completeAction.apply(this, t.params), a.value = !a.value;
|
|
1292
1292
|
} catch {
|
|
@@ -1294,97 +1294,97 @@ const yt = { key: 0 }, vt = {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
else
|
|
1296
1296
|
a.value = !a.value;
|
|
1297
|
-
},
|
|
1297
|
+
}, r = () => {
|
|
1298
1298
|
a.value = !a.value;
|
|
1299
|
-
},
|
|
1300
|
-
|
|
1301
|
-
}, { errorMessage:
|
|
1299
|
+
}, v = () => {
|
|
1300
|
+
p.value = null;
|
|
1301
|
+
}, { errorMessage: u, errors: n, value: p } = K(() => t.name, void 0, {
|
|
1302
1302
|
initialValue: l.value
|
|
1303
1303
|
});
|
|
1304
1304
|
ae(() => {
|
|
1305
|
-
|
|
1305
|
+
p.value = l.value;
|
|
1306
1306
|
});
|
|
1307
|
-
const
|
|
1307
|
+
const x = k(() => n.value.length > 0);
|
|
1308
1308
|
return (_, P) => {
|
|
1309
|
-
const
|
|
1310
|
-
return i(),
|
|
1309
|
+
const M = de, z = R;
|
|
1310
|
+
return i(), y("div", {
|
|
1311
1311
|
id: t.name
|
|
1312
1312
|
}, [
|
|
1313
|
-
_.readonly ? (i(),
|
|
1314
|
-
|
|
1315
|
-
|
|
1313
|
+
_.readonly ? (i(), y("div", kt, [
|
|
1314
|
+
B(_.$slots, "default", {}, () => [
|
|
1315
|
+
c("span", $t, w(m(p)), 1)
|
|
1316
1316
|
])
|
|
1317
|
-
])) : (i(),
|
|
1318
|
-
a.value ? (i(),
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
class:
|
|
1322
|
-
editFinished:
|
|
1323
|
-
cancel:
|
|
1324
|
-
val:
|
|
1317
|
+
])) : (i(), y("div", ht, [
|
|
1318
|
+
a.value ? (i(), y("div", wt, [
|
|
1319
|
+
L((i(), y("div", xt, [
|
|
1320
|
+
B(_.$slots, "editor", {
|
|
1321
|
+
class: F({ "is-invalid": x.value }),
|
|
1322
|
+
editFinished: d,
|
|
1323
|
+
cancel: r,
|
|
1324
|
+
val: m(p)
|
|
1325
1325
|
}, () => [
|
|
1326
|
-
f(
|
|
1326
|
+
f(M, {
|
|
1327
1327
|
"data-cy": "input",
|
|
1328
1328
|
ref_key: "input",
|
|
1329
1329
|
ref: o,
|
|
1330
|
-
modelValue:
|
|
1331
|
-
"onUpdate:modelValue": P[0] || (P[0] = (g) => le(
|
|
1330
|
+
modelValue: m(p),
|
|
1331
|
+
"onUpdate:modelValue": P[0] || (P[0] = (g) => le(p) ? p.value = g : null),
|
|
1332
1332
|
modelModifiers: { trim: !0 },
|
|
1333
|
-
class:
|
|
1333
|
+
class: F({ "is-invalid": x.value }),
|
|
1334
1334
|
onKeydown: [
|
|
1335
|
-
X(
|
|
1336
|
-
X(
|
|
1335
|
+
X(d, ["enter"]),
|
|
1336
|
+
X(r, ["esc"])
|
|
1337
1337
|
]
|
|
1338
1338
|
}, null, 8, ["modelValue", "class"])
|
|
1339
1339
|
]),
|
|
1340
|
-
f(
|
|
1340
|
+
f(m(T), {
|
|
1341
1341
|
icon: "bi:x-circle",
|
|
1342
1342
|
class: "mx-2 cursor-pointer",
|
|
1343
|
-
onClick:
|
|
1344
|
-
onKeydown: X(
|
|
1343
|
+
onClick: v,
|
|
1344
|
+
onKeydown: X(v, ["enter"]),
|
|
1345
1345
|
"data-cy": "clear-icon"
|
|
1346
1346
|
})
|
|
1347
1347
|
])), [
|
|
1348
|
-
[
|
|
1348
|
+
[m(_e), d]
|
|
1349
1349
|
])
|
|
1350
|
-
])) : (i(),
|
|
1350
|
+
])) : (i(), y("div", {
|
|
1351
1351
|
key: 1,
|
|
1352
1352
|
class: "d-flex text-muted",
|
|
1353
|
-
onClick:
|
|
1354
|
-
onFocus:
|
|
1353
|
+
onClick: s,
|
|
1354
|
+
onFocus: s
|
|
1355
1355
|
}, [
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
class:
|
|
1356
|
+
B(_.$slots, "default", {}, () => [
|
|
1357
|
+
c("div", {
|
|
1358
|
+
class: F(["pe-2 cursor-pointer", { "text-invalid": x.value }]),
|
|
1359
1359
|
"data-cy": "value"
|
|
1360
|
-
},
|
|
1360
|
+
}, w(m(p) ? m(p) : "Click to edit"), 3)
|
|
1361
1361
|
]),
|
|
1362
|
-
f(
|
|
1362
|
+
f(z, {
|
|
1363
1363
|
link: "",
|
|
1364
1364
|
class: "p-0 m-0"
|
|
1365
1365
|
}, {
|
|
1366
1366
|
default: b(() => [
|
|
1367
|
-
f(
|
|
1367
|
+
f(m(T), {
|
|
1368
1368
|
icon: "bi:pencil",
|
|
1369
|
-
class:
|
|
1369
|
+
class: F(x.value ? "text-invalid" : "text-muted"),
|
|
1370
1370
|
"data-cy": "edit-icon",
|
|
1371
|
-
onKeydown: X(
|
|
1371
|
+
onKeydown: X(s, ["enter"])
|
|
1372
1372
|
}, null, 8, ["class"])
|
|
1373
1373
|
]),
|
|
1374
1374
|
_: 1
|
|
1375
1375
|
})
|
|
1376
1376
|
], 32))
|
|
1377
1377
|
])),
|
|
1378
|
-
|
|
1378
|
+
L(c("small", {
|
|
1379
1379
|
"data-cy": "error",
|
|
1380
1380
|
class: "text-invalid"
|
|
1381
|
-
},
|
|
1382
|
-
[
|
|
1381
|
+
}, w(m(u)), 513), [
|
|
1382
|
+
[H, x.value]
|
|
1383
1383
|
])
|
|
1384
|
-
], 8,
|
|
1384
|
+
], 8, gt);
|
|
1385
1385
|
};
|
|
1386
1386
|
}
|
|
1387
|
-
}),
|
|
1387
|
+
}), _t = ["href"], yl = /* @__PURE__ */ V({
|
|
1388
1388
|
__name: "ForgeNavbar",
|
|
1389
1389
|
props: {
|
|
1390
1390
|
severity: { default: "light" },
|
|
@@ -1401,7 +1401,7 @@ const yt = { key: 0 }, vt = {
|
|
|
1401
1401
|
unstyled: { type: Boolean }
|
|
1402
1402
|
},
|
|
1403
1403
|
setup(e) {
|
|
1404
|
-
const t = e, l =
|
|
1404
|
+
const t = e, l = k(() => ({
|
|
1405
1405
|
root: () => ({
|
|
1406
1406
|
class: [
|
|
1407
1407
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1429,27 +1429,27 @@ const yt = { key: 0 }, vt = {
|
|
|
1429
1429
|
})
|
|
1430
1430
|
}));
|
|
1431
1431
|
return (a, o) => {
|
|
1432
|
-
const
|
|
1433
|
-
return i(),
|
|
1432
|
+
const s = Fe;
|
|
1433
|
+
return i(), h(s, C({ ...t, ...a.$attrs }, {
|
|
1434
1434
|
pt: l.value,
|
|
1435
1435
|
"data-cy": "navbar"
|
|
1436
1436
|
}), oe({
|
|
1437
1437
|
start: b(() => [
|
|
1438
|
-
|
|
1438
|
+
c("a", {
|
|
1439
1439
|
href: a.logoUrl,
|
|
1440
1440
|
class: "navbar-brand ms-3",
|
|
1441
1441
|
"data-cy": "logo"
|
|
1442
1442
|
}, [
|
|
1443
|
-
|
|
1444
|
-
|
|
1443
|
+
B(a.$slots, "logo", {}, () => [
|
|
1444
|
+
O(" Logo ")
|
|
1445
1445
|
])
|
|
1446
|
-
], 8,
|
|
1446
|
+
], 8, _t)
|
|
1447
1447
|
]),
|
|
1448
1448
|
menubuttonicon: b(() => [
|
|
1449
|
-
|
|
1450
|
-
f(
|
|
1449
|
+
B(a.$slots, "menubuttonicon", {}, () => [
|
|
1450
|
+
f(m(T), {
|
|
1451
1451
|
icon: "bi:list",
|
|
1452
|
-
class:
|
|
1452
|
+
class: F(t.severity === "light" ? "text-black" : "text-white"),
|
|
1453
1453
|
height: "24",
|
|
1454
1454
|
"data-cy": "burger-icon"
|
|
1455
1455
|
}, null, 8, ["class"])
|
|
@@ -1457,16 +1457,16 @@ const yt = { key: 0 }, vt = {
|
|
|
1457
1457
|
]),
|
|
1458
1458
|
_: 2
|
|
1459
1459
|
}, [
|
|
1460
|
-
|
|
1461
|
-
name:
|
|
1462
|
-
fn: b((
|
|
1463
|
-
|
|
1460
|
+
q(a.$slots, (d, r) => ({
|
|
1461
|
+
name: r,
|
|
1462
|
+
fn: b((v) => [
|
|
1463
|
+
B(a.$slots, r, ee(te(v)))
|
|
1464
1464
|
])
|
|
1465
1465
|
}))
|
|
1466
1466
|
]), 1040, ["pt"]);
|
|
1467
1467
|
};
|
|
1468
1468
|
}
|
|
1469
|
-
}),
|
|
1469
|
+
}), Ft = /* @__PURE__ */ c("div", { class: "ps-1" }, "Select all", -1), Vt = ["data-cy"], St = { class: "ps-1 w-100" }, Ct = { class: "multiselect__tag d-inline-flex" }, Tt = { class: "my-auto" }, be = /* @__PURE__ */ V({
|
|
1470
1470
|
__name: "ForgeMultiSelect",
|
|
1471
1471
|
props: {
|
|
1472
1472
|
severity: { default: "primary" },
|
|
@@ -1484,13 +1484,13 @@ const yt = { key: 0 }, vt = {
|
|
|
1484
1484
|
$isDisabled: D.$isDisabled ?? !1
|
|
1485
1485
|
};
|
|
1486
1486
|
U(J);
|
|
1487
|
-
}, o = ce(),
|
|
1487
|
+
}, o = ce(), s = t, { errors: d, value: r, errorMessage: v } = K(() => l.name, void 0, {
|
|
1488
1488
|
initialValue: o.modelValue
|
|
1489
|
-
}),
|
|
1489
|
+
}), u = I(!1), n = k(() => ({
|
|
1490
1490
|
multiple: !0,
|
|
1491
1491
|
label: "label",
|
|
1492
1492
|
trackBy: "id",
|
|
1493
|
-
showPointer: !
|
|
1493
|
+
showPointer: !u.value,
|
|
1494
1494
|
placeholder: o.searchable === null || o.searchable ? "Search" : "Select",
|
|
1495
1495
|
allowEmpty: !0,
|
|
1496
1496
|
selectValue: "",
|
|
@@ -1499,74 +1499,74 @@ const yt = { key: 0 }, vt = {
|
|
|
1499
1499
|
searchable: !!(o.searchable === null || o.searchable) && o.modelValue.length === o.options.length,
|
|
1500
1500
|
async: !1,
|
|
1501
1501
|
...o
|
|
1502
|
-
})),
|
|
1503
|
-
|
|
1504
|
-
},
|
|
1505
|
-
|
|
1506
|
-
}, Z = (U) => o.modelValue !== null ? o.modelValue.some((D) =>
|
|
1507
|
-
_.value ?
|
|
1502
|
+
})), p = k(() => `forge-multiselect-${l.severity}`), x = k(() => `multiselect__option ${u.value ? " multiselect__option--highlight" : ""} ${_.value ? " multiselect__option--selected" : ""}`), _ = k(() => n.value && !(n.value.multiple || !l.showSelectAll || n.value.async) ? !1 : o.modelValue.length === o.options.length), P = k(() => d.value.length > 0), M = k(() => !!((o.allowEmpty == null || o.allowEmpty) && l.showClearSelection && (n.value.multiple ? o.modelValue.length > 0 : o.modelValue))), z = () => u.value = !0, g = () => u.value = !1, $ = () => {
|
|
1503
|
+
r.value = n.value.multiple ? [] : null, s("update:modelValue", r.value);
|
|
1504
|
+
}, G = (U) => {
|
|
1505
|
+
s("update:modelValue", l.selectValue ? U.map((D) => D[l.selectValue]) : U);
|
|
1506
|
+
}, Z = (U) => o.modelValue !== null ? o.modelValue.some((D) => n.value.selectValue ? U[l.selectValue] === D : U.id === D.id && U.label === D.label) : !1, ie = () => {
|
|
1507
|
+
_.value ? $() : (r.value = [...o.options], s("update:modelValue", [...o.options]));
|
|
1508
1508
|
};
|
|
1509
1509
|
return (U, D) => {
|
|
1510
|
-
const J =
|
|
1511
|
-
return i(),
|
|
1512
|
-
f(
|
|
1513
|
-
class: [
|
|
1510
|
+
const J = ve;
|
|
1511
|
+
return i(), y(N, null, [
|
|
1512
|
+
f(m(Ve), C(n.value, {
|
|
1513
|
+
class: [p.value, P.value ? "is-invalid" : ""],
|
|
1514
1514
|
"data-cy": "multiselect",
|
|
1515
1515
|
"onUpdate:modelValue": [
|
|
1516
|
-
|
|
1517
|
-
D[1] || (D[1] = (A) => le(
|
|
1516
|
+
G,
|
|
1517
|
+
D[1] || (D[1] = (A) => le(r) ? r.value = A : null)
|
|
1518
1518
|
],
|
|
1519
|
-
modelValue:
|
|
1519
|
+
modelValue: m(r)
|
|
1520
1520
|
}), oe({
|
|
1521
1521
|
caret: b(({ toggle: A }) => [
|
|
1522
|
-
|
|
1522
|
+
M.value ? (i(), h(m(T), {
|
|
1523
1523
|
key: 0,
|
|
1524
1524
|
icon: "bi:x",
|
|
1525
1525
|
class: "my-auto multiselect__clear-icon",
|
|
1526
|
-
onMousedown: D[0] || (D[0] =
|
|
1526
|
+
onMousedown: D[0] || (D[0] = Y((W) => $(), ["prevent", "stop"])),
|
|
1527
1527
|
"data-cy": "clear",
|
|
1528
1528
|
height: "18px",
|
|
1529
1529
|
width: "18px"
|
|
1530
1530
|
})) : S("", !0),
|
|
1531
|
-
f(
|
|
1531
|
+
f(m(T), {
|
|
1532
1532
|
icon: "bi:chevron-down",
|
|
1533
1533
|
onClick: A,
|
|
1534
1534
|
class: "multiselect__select"
|
|
1535
1535
|
}, null, 8, ["onClick"])
|
|
1536
1536
|
]),
|
|
1537
|
-
tag: b(({ option: A, remove:
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
f(
|
|
1537
|
+
tag: b(({ option: A, remove: W }) => [
|
|
1538
|
+
c("div", Ct, [
|
|
1539
|
+
c("div", Tt, w(A.label), 1),
|
|
1540
|
+
f(m(T), {
|
|
1541
1541
|
icon: "bi:x",
|
|
1542
1542
|
class: "my-auto multiselect__tag-icon",
|
|
1543
|
-
onMousedown:
|
|
1543
|
+
onMousedown: Y((Aa) => a(W, A), ["prevent", "stop"]),
|
|
1544
1544
|
height: "18px",
|
|
1545
1545
|
width: "18px"
|
|
1546
1546
|
}, null, 8, ["onMousedown"])
|
|
1547
1547
|
])
|
|
1548
1548
|
]),
|
|
1549
1549
|
default: b(() => [
|
|
1550
|
-
(i(!0),
|
|
1550
|
+
(i(!0), y(N, null, q(U.$slots, (A, W) => B(U.$slots, W, { slot: W })), 256))
|
|
1551
1551
|
]),
|
|
1552
1552
|
_: 2
|
|
1553
1553
|
}, [
|
|
1554
|
-
|
|
1554
|
+
n.value.multiple && U.showSelectAll && !n.value.async ? {
|
|
1555
1555
|
name: "beforeList",
|
|
1556
1556
|
fn: b(() => [
|
|
1557
|
-
|
|
1557
|
+
c("li", {
|
|
1558
1558
|
class: "multiselect__element",
|
|
1559
|
-
onClick:
|
|
1560
|
-
onMouseover:
|
|
1559
|
+
onClick: ie,
|
|
1560
|
+
onMouseover: z,
|
|
1561
1561
|
onMouseleave: g,
|
|
1562
1562
|
"data-cy": "toggle-all"
|
|
1563
1563
|
}, [
|
|
1564
|
-
|
|
1565
|
-
class:
|
|
1564
|
+
c("span", {
|
|
1565
|
+
class: F(`${x.value}`)
|
|
1566
1566
|
}, [
|
|
1567
1567
|
f(J, { value: _.value }, {
|
|
1568
1568
|
default: b(() => [
|
|
1569
|
-
|
|
1569
|
+
Ft
|
|
1570
1570
|
]),
|
|
1571
1571
|
_: 1
|
|
1572
1572
|
}, 8, ["value"])
|
|
@@ -1575,46 +1575,46 @@ const yt = { key: 0 }, vt = {
|
|
|
1575
1575
|
]),
|
|
1576
1576
|
key: "0"
|
|
1577
1577
|
} : void 0,
|
|
1578
|
-
|
|
1578
|
+
n.value.multiple ? {
|
|
1579
1579
|
name: "option",
|
|
1580
1580
|
fn: b(({ option: A }) => [
|
|
1581
|
-
|
|
1581
|
+
c("div", {
|
|
1582
1582
|
"data-cy": A.label
|
|
1583
1583
|
}, [
|
|
1584
|
-
(i(),
|
|
1584
|
+
(i(), h(J, {
|
|
1585
1585
|
value: Z(A),
|
|
1586
1586
|
key: A
|
|
1587
1587
|
}, {
|
|
1588
1588
|
default: b(() => [
|
|
1589
|
-
|
|
1589
|
+
c("div", St, w(A[n.value.label]), 1)
|
|
1590
1590
|
]),
|
|
1591
1591
|
_: 2
|
|
1592
1592
|
}, 1032, ["value"]))
|
|
1593
|
-
], 8,
|
|
1593
|
+
], 8, Vt)
|
|
1594
1594
|
]),
|
|
1595
1595
|
key: "1"
|
|
1596
1596
|
} : void 0
|
|
1597
1597
|
]), 1040, ["class", "modelValue"]),
|
|
1598
|
-
|
|
1598
|
+
L(c("small", {
|
|
1599
1599
|
"data-cy": "error",
|
|
1600
1600
|
class: "invalid-feedback"
|
|
1601
|
-
},
|
|
1602
|
-
[
|
|
1601
|
+
}, w(m(v)), 513), [
|
|
1602
|
+
[H, P.value]
|
|
1603
1603
|
])
|
|
1604
1604
|
], 64);
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
|
-
}),
|
|
1607
|
+
}), Pt = {
|
|
1608
1608
|
key: 0,
|
|
1609
1609
|
class: "pl-1"
|
|
1610
|
-
},
|
|
1610
|
+
}, Mt = { class: "border alternating-item-list" }, It = {
|
|
1611
1611
|
key: 0,
|
|
1612
1612
|
class: "p-2 border-top border-bottom",
|
|
1613
1613
|
"data-cy": "title"
|
|
1614
|
-
},
|
|
1614
|
+
}, zt = { class: "d-inline-block" }, Ot = {
|
|
1615
1615
|
key: 1,
|
|
1616
1616
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1617
|
-
},
|
|
1617
|
+
}, bl = /* @__PURE__ */ V({
|
|
1618
1618
|
__name: "ForgeMultiSelectPreview",
|
|
1619
1619
|
props: {
|
|
1620
1620
|
title: { default: "Selected Items" },
|
|
@@ -1625,106 +1625,106 @@ const yt = { key: 0 }, vt = {
|
|
|
1625
1625
|
},
|
|
1626
1626
|
emits: ["update:modelValue"],
|
|
1627
1627
|
setup(e, { emit: t }) {
|
|
1628
|
-
const l = e, a = ce(), o = t,
|
|
1629
|
-
o("update:modelValue",
|
|
1630
|
-
},
|
|
1631
|
-
|
|
1628
|
+
const l = e, a = ce(), o = t, s = k(() => `${a.modelValue.length} selected`), d = k(() => a.modelValue.length), r = (u) => {
|
|
1629
|
+
o("update:modelValue", u);
|
|
1630
|
+
}, v = (u) => {
|
|
1631
|
+
r(a.modelValue.filter((n) => n.id !== u));
|
|
1632
1632
|
};
|
|
1633
|
-
return (
|
|
1634
|
-
const
|
|
1635
|
-
return i(),
|
|
1636
|
-
class:
|
|
1633
|
+
return (u, n) => {
|
|
1634
|
+
const p = R;
|
|
1635
|
+
return i(), y("div", {
|
|
1636
|
+
class: F(u.orientation === "column" ? "row" : ""),
|
|
1637
1637
|
"data-cy": "multiselect-preview"
|
|
1638
1638
|
}, [
|
|
1639
|
-
|
|
1640
|
-
class:
|
|
1639
|
+
c("div", {
|
|
1640
|
+
class: F(u.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1641
1641
|
"data-cy": "multiselect-container"
|
|
1642
1642
|
}, [
|
|
1643
|
-
f(
|
|
1643
|
+
f(be, {
|
|
1644
1644
|
"onUpdate:modelValue": [
|
|
1645
|
-
|
|
1646
|
-
|
|
1645
|
+
n[0] || (n[0] = (x) => r(x)),
|
|
1646
|
+
n[1] || (n[1] = (x) => u.$attrs.modelValue = x)
|
|
1647
1647
|
],
|
|
1648
|
-
modelValue:
|
|
1649
|
-
"limit-text":
|
|
1648
|
+
modelValue: u.$attrs.modelValue,
|
|
1649
|
+
"limit-text": s.value,
|
|
1650
1650
|
options: l.options
|
|
1651
1651
|
}, {
|
|
1652
1652
|
tag: b(() => [
|
|
1653
|
-
|
|
1653
|
+
O(w(""))
|
|
1654
1654
|
]),
|
|
1655
1655
|
selection: b(() => [
|
|
1656
|
-
|
|
1656
|
+
u.$attrs.modelValue.length > 0 ? (i(), y("span", Pt, w(d.value) + " items selected", 1)) : S("", !0)
|
|
1657
1657
|
]),
|
|
1658
1658
|
default: b(() => [
|
|
1659
|
-
(i(!0),
|
|
1659
|
+
(i(!0), y(N, null, q(u.$slots, (x, _) => B(u.$slots, _, { slot: _ })), 256))
|
|
1660
1660
|
]),
|
|
1661
1661
|
_: 3
|
|
1662
1662
|
}, 8, ["modelValue", "limit-text", "options"]),
|
|
1663
|
-
|
|
1663
|
+
B(u.$slots, "after-multi-select")
|
|
1664
1664
|
], 2),
|
|
1665
|
-
|
|
1666
|
-
class:
|
|
1665
|
+
c("div", {
|
|
1666
|
+
class: F(u.orientation === "row" ? "col-12" : "col"),
|
|
1667
1667
|
"data-cy": "options-preview"
|
|
1668
1668
|
}, [
|
|
1669
|
-
|
|
1670
|
-
style:
|
|
1669
|
+
c("div", {
|
|
1670
|
+
style: we({ height: u.height }),
|
|
1671
1671
|
class: "overflow-auto"
|
|
1672
1672
|
}, [
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
(i(!0),
|
|
1676
|
-
key:
|
|
1673
|
+
c("div", Mt, [
|
|
1674
|
+
u.title ? (i(), y("div", It, w(u.title), 1)) : S("", !0),
|
|
1675
|
+
(i(!0), y(N, null, q(u.$attrs.modelValue, (x) => (i(), y("div", {
|
|
1676
|
+
key: x.id,
|
|
1677
1677
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1678
1678
|
}, [
|
|
1679
|
-
|
|
1680
|
-
|
|
1679
|
+
B(u.$slots, "list-item", { item: x }, () => [
|
|
1680
|
+
c("span", zt, w(x.shortLabel ? x.shortLabel : x.label), 1)
|
|
1681
1681
|
]),
|
|
1682
|
-
|
|
1682
|
+
u.canRemoveItemFromPreview ? (i(), h(p, {
|
|
1683
1683
|
key: 0,
|
|
1684
1684
|
link: "",
|
|
1685
1685
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1686
|
-
onClick: (_) =>
|
|
1686
|
+
onClick: (_) => v(x.id)
|
|
1687
1687
|
}, {
|
|
1688
1688
|
default: b(() => [
|
|
1689
|
-
f(
|
|
1689
|
+
f(m(T), {
|
|
1690
1690
|
icon: "bi:x",
|
|
1691
1691
|
class: "close-icon",
|
|
1692
|
-
"data-cy": `close-icon-${
|
|
1692
|
+
"data-cy": `close-icon-${x.id}`
|
|
1693
1693
|
}, null, 8, ["data-cy"])
|
|
1694
1694
|
]),
|
|
1695
1695
|
_: 2
|
|
1696
1696
|
}, 1032, ["onClick"])) : S("", !0)
|
|
1697
1697
|
]))), 128)),
|
|
1698
|
-
|
|
1698
|
+
u.$attrs.modelValue.length === 0 ? (i(), y("div", Ot, "No Items Selected.")) : S("", !0)
|
|
1699
1699
|
])
|
|
1700
1700
|
], 4)
|
|
1701
1701
|
], 2)
|
|
1702
1702
|
], 2);
|
|
1703
1703
|
};
|
|
1704
1704
|
}
|
|
1705
|
-
}),
|
|
1705
|
+
}), Dt = { class: "d-flex justify-content-between pb-2" }, Ut = {
|
|
1706
1706
|
"data-cy": "title",
|
|
1707
1707
|
class: "my-auto"
|
|
1708
|
-
},
|
|
1708
|
+
}, At = {
|
|
1709
1709
|
"data-cy": "slot",
|
|
1710
1710
|
class: "d-flex align-items-center"
|
|
1711
|
-
},
|
|
1711
|
+
}, fl = /* @__PURE__ */ V({
|
|
1712
1712
|
__name: "ForgePageHeader",
|
|
1713
1713
|
props: {
|
|
1714
1714
|
title: {}
|
|
1715
1715
|
},
|
|
1716
1716
|
setup(e) {
|
|
1717
1717
|
const t = e;
|
|
1718
|
-
return (l, a) => (i(),
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1718
|
+
return (l, a) => (i(), y("div", Dt, [
|
|
1719
|
+
c("h3", Ut, w(t.title), 1),
|
|
1720
|
+
c("div", At, [
|
|
1721
|
+
B(l.$slots, "default")
|
|
1722
1722
|
])
|
|
1723
1723
|
]));
|
|
1724
1724
|
}
|
|
1725
|
-
}),
|
|
1725
|
+
}), Nt = { class: "d-flex" }, Et = { "data-cy": "before-slot" }, Rt = { class: "position-relative" }, Lt = { "data-cy": "after-slot" }, fe = /* @__PURE__ */ V({
|
|
1726
1726
|
__name: "ForgeDatepicker",
|
|
1727
|
-
props: /* @__PURE__ */
|
|
1727
|
+
props: /* @__PURE__ */ j({
|
|
1728
1728
|
severity: { default: "primary" },
|
|
1729
1729
|
modelValue: {},
|
|
1730
1730
|
selectionMode: { default: "single" },
|
|
@@ -1783,7 +1783,7 @@ const yt = { key: 0 }, vt = {
|
|
|
1783
1783
|
panelStyle: {},
|
|
1784
1784
|
panelClass: {},
|
|
1785
1785
|
panelProps: {},
|
|
1786
|
-
name: {},
|
|
1786
|
+
name: { default: "" },
|
|
1787
1787
|
ariaLabelledby: {},
|
|
1788
1788
|
ariaLabel: {},
|
|
1789
1789
|
pt: {},
|
|
@@ -1795,9 +1795,11 @@ const yt = { key: 0 }, vt = {
|
|
|
1795
1795
|
}),
|
|
1796
1796
|
emits: ["update:modelValue"],
|
|
1797
1797
|
setup(e) {
|
|
1798
|
-
const t = e, l = E(e, "modelValue"), a = () => {
|
|
1798
|
+
const t = e, l = E(e, "modelValue"), { errors: a, errorMessage: o, handleChange: s, handleBlur: d } = K(() => t.name, void 0, {
|
|
1799
|
+
initialValue: l.value
|
|
1800
|
+
}), r = () => {
|
|
1799
1801
|
l.value = null;
|
|
1800
|
-
},
|
|
1802
|
+
}, v = k(() => a.value.length > 0), u = k(() => ({
|
|
1801
1803
|
day: ({ context: n }) => ({
|
|
1802
1804
|
class: [
|
|
1803
1805
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
@@ -1888,53 +1890,66 @@ const yt = { key: 0 }, vt = {
|
|
|
1888
1890
|
]
|
|
1889
1891
|
})
|
|
1890
1892
|
}));
|
|
1891
|
-
return (n,
|
|
1892
|
-
const
|
|
1893
|
-
return i(),
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
u("div", Nt, [
|
|
1898
|
-
f(s, T({ ...t, ...n.$attrs }, {
|
|
1899
|
-
pt: o.value,
|
|
1900
|
-
modelValue: l.value,
|
|
1901
|
-
"onUpdate:modelValue": r[0] || (r[0] = (p) => l.value = p)
|
|
1902
|
-
}), null, 16, ["pt", "modelValue"]),
|
|
1903
|
-
H(f(c(C), {
|
|
1904
|
-
"data-cy": "icon",
|
|
1905
|
-
icon: "bi:calendar4",
|
|
1906
|
-
class: "position-absolute end-0 top-50 bottom-50 my-auto me-2 text-muted bg-white"
|
|
1907
|
-
}, null, 512), [
|
|
1908
|
-
[G, t.showIcon]
|
|
1893
|
+
return (n, p) => {
|
|
1894
|
+
const x = Se;
|
|
1895
|
+
return i(), y(N, null, [
|
|
1896
|
+
c("div", Nt, [
|
|
1897
|
+
c("span", Et, [
|
|
1898
|
+
B(n.$slots, "before")
|
|
1909
1899
|
]),
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1900
|
+
c("div", Rt, [
|
|
1901
|
+
f(x, C({ ...t, ...n.$attrs }, {
|
|
1902
|
+
pt: u.value,
|
|
1903
|
+
modelValue: l.value,
|
|
1904
|
+
"onUpdate:modelValue": [
|
|
1905
|
+
p[0] || (p[0] = (_) => l.value = _),
|
|
1906
|
+
m(s)
|
|
1907
|
+
],
|
|
1908
|
+
onBlur: m(d),
|
|
1909
|
+
"input-class": { "is-invalid": v.value }
|
|
1910
|
+
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
|
|
1911
|
+
L(f(m(T), {
|
|
1912
|
+
"data-cy": "icon",
|
|
1913
|
+
icon: "bi:calendar4",
|
|
1914
|
+
class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${v.value ? "text-danger-dark" : "text-muted"}`])
|
|
1915
|
+
}, null, 8, ["class"]), [
|
|
1916
|
+
[H, t.showIcon]
|
|
1917
|
+
]),
|
|
1918
|
+
L(f(m(T), {
|
|
1919
|
+
"data-cy": "icon",
|
|
1920
|
+
icon: "bi:x",
|
|
1921
|
+
onClick: r,
|
|
1922
|
+
class: F(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
1923
|
+
}, null, 8, ["class"]), [
|
|
1924
|
+
[H, t.modelValue]
|
|
1925
|
+
])
|
|
1926
|
+
]),
|
|
1927
|
+
c("span", Lt, [
|
|
1928
|
+
B(n.$slots, "after")
|
|
1917
1929
|
])
|
|
1918
1930
|
]),
|
|
1919
|
-
|
|
1920
|
-
|
|
1931
|
+
L(c("small", {
|
|
1932
|
+
"data-cy": "error",
|
|
1933
|
+
class: "text-invalid"
|
|
1934
|
+
}, w(m(o)), 513), [
|
|
1935
|
+
[H, v.value]
|
|
1921
1936
|
])
|
|
1922
1937
|
], 64);
|
|
1923
1938
|
};
|
|
1924
1939
|
}
|
|
1925
|
-
}),
|
|
1940
|
+
}), gl = /* @__PURE__ */ V({
|
|
1926
1941
|
__name: "ForgeRemainingCharacters",
|
|
1927
1942
|
props: {
|
|
1928
1943
|
maxCount: { default: 300 },
|
|
1929
1944
|
currentCount: {}
|
|
1930
1945
|
},
|
|
1931
1946
|
setup(e) {
|
|
1932
|
-
const t = e, l =
|
|
1933
|
-
return (a, o) => (i(),
|
|
1934
|
-
class:
|
|
1935
|
-
}, "Remaining characters: " +
|
|
1947
|
+
const t = e, l = k(() => t.maxCount - t.currentCount);
|
|
1948
|
+
return (a, o) => (i(), y("div", {
|
|
1949
|
+
class: F(l.value < 0 ? "text-danger" : "")
|
|
1950
|
+
}, "Remaining characters: " + w(l.value), 3));
|
|
1936
1951
|
}
|
|
1937
|
-
}),
|
|
1952
|
+
}), jt = /* @__PURE__ */ c("hr", null, null, -1), Ht = { class: "d-flex justify-content-between" }, hl = /* @__PURE__ */ V({
|
|
1938
1953
|
__name: "ForgeForm",
|
|
1939
1954
|
props: {
|
|
1940
1955
|
onSubmit: {},
|
|
@@ -1954,87 +1969,87 @@ const yt = { key: 0 }, vt = {
|
|
|
1954
1969
|
l.value = !0, a.value.hasError = !1;
|
|
1955
1970
|
try {
|
|
1956
1971
|
await t.onSubmit();
|
|
1957
|
-
} catch (
|
|
1958
|
-
a.value.hasError = !0,
|
|
1972
|
+
} catch (s) {
|
|
1973
|
+
a.value.hasError = !0, s.message && (a.value.message = s.message);
|
|
1959
1974
|
}
|
|
1960
1975
|
l.value = !1;
|
|
1961
1976
|
}
|
|
1962
|
-
return (
|
|
1963
|
-
const
|
|
1964
|
-
return i(),
|
|
1977
|
+
return (s, d) => {
|
|
1978
|
+
const r = R;
|
|
1979
|
+
return i(), y("form", C(s.$attrs, {
|
|
1965
1980
|
novalidate: "",
|
|
1966
1981
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
1967
|
-
onSubmit:
|
|
1982
|
+
onSubmit: Y(o, ["prevent"])
|
|
1968
1983
|
}), [
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
class:
|
|
1984
|
+
s.hideTitle ? S("", !0) : (i(), y(N, { key: 0 }, [
|
|
1985
|
+
B(s.$slots, "title", {}, () => [
|
|
1986
|
+
c("h3", {
|
|
1987
|
+
class: F(s.titleClass),
|
|
1973
1988
|
"data-cy": "form-title"
|
|
1974
|
-
},
|
|
1989
|
+
}, w(s.title), 3)
|
|
1975
1990
|
]),
|
|
1976
|
-
|
|
1991
|
+
jt
|
|
1977
1992
|
], 64)),
|
|
1978
|
-
a.value.hasError ? (i(),
|
|
1993
|
+
a.value.hasError ? (i(), h(se, {
|
|
1979
1994
|
key: 1,
|
|
1980
1995
|
severity: "danger",
|
|
1981
1996
|
"data-cy": "error"
|
|
1982
1997
|
}, {
|
|
1983
1998
|
default: b(() => [
|
|
1984
|
-
|
|
1999
|
+
B(s.$slots, "error", {
|
|
1985
2000
|
error: a.value.message
|
|
1986
2001
|
}, () => [
|
|
1987
|
-
|
|
2002
|
+
O(w(a.value.message), 1)
|
|
1988
2003
|
])
|
|
1989
2004
|
]),
|
|
1990
2005
|
_: 3
|
|
1991
2006
|
})) : S("", !0),
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2007
|
+
B(s.$slots, "default"),
|
|
2008
|
+
c("div", Ht, [
|
|
2009
|
+
B(s.$slots, "cancel", {}, () => [
|
|
2010
|
+
s.hideCancel ? S("", !0) : (i(), h(r, {
|
|
1996
2011
|
key: 0,
|
|
1997
2012
|
"data-cy": "cancel-btn",
|
|
1998
2013
|
type: "reset",
|
|
1999
2014
|
severity: "secondary",
|
|
2000
2015
|
outlined: "",
|
|
2001
|
-
onClick:
|
|
2016
|
+
onClick: d[0] || (d[0] = (v) => s.$emit("cancel"))
|
|
2002
2017
|
}, {
|
|
2003
2018
|
default: b(() => [
|
|
2004
|
-
|
|
2019
|
+
O(w(s.cancelText), 1)
|
|
2005
2020
|
]),
|
|
2006
2021
|
_: 1
|
|
2007
2022
|
}))
|
|
2008
2023
|
]),
|
|
2009
|
-
|
|
2010
|
-
f(
|
|
2024
|
+
B(s.$slots, "submit", { submit: o }, () => [
|
|
2025
|
+
f(r, {
|
|
2011
2026
|
"data-cy": "submit-btn",
|
|
2012
2027
|
type: "submit",
|
|
2013
2028
|
severity: "primary",
|
|
2014
2029
|
class: "ms-auto"
|
|
2015
2030
|
}, {
|
|
2016
2031
|
default: b(() => [
|
|
2017
|
-
|
|
2032
|
+
O(w(s.submitText), 1)
|
|
2018
2033
|
]),
|
|
2019
2034
|
_: 1
|
|
2020
2035
|
})
|
|
2021
2036
|
])
|
|
2022
2037
|
]),
|
|
2023
|
-
l.value ? (i(),
|
|
2038
|
+
l.value ? (i(), h(ye, {
|
|
2024
2039
|
key: 2,
|
|
2025
2040
|
"data-cy": "loading-spinner"
|
|
2026
2041
|
})) : S("", !0)
|
|
2027
2042
|
], 16);
|
|
2028
2043
|
};
|
|
2029
2044
|
}
|
|
2030
|
-
}),
|
|
2045
|
+
}), Yt = {
|
|
2031
2046
|
key: 1,
|
|
2032
|
-
class: "d-flex flex-column"
|
|
2033
|
-
},
|
|
2047
|
+
class: "d-flex flex-column w-100"
|
|
2048
|
+
}, qt = ["for"], wl = /* @__PURE__ */ V({
|
|
2034
2049
|
__name: "ForgeFormField",
|
|
2035
|
-
props: /* @__PURE__ */
|
|
2050
|
+
props: /* @__PURE__ */ j({
|
|
2036
2051
|
name: {},
|
|
2037
|
-
|
|
2052
|
+
fieldLabel: {},
|
|
2038
2053
|
type: { default: "text" },
|
|
2039
2054
|
mask: { default: "" },
|
|
2040
2055
|
placeholder: { default: "" }
|
|
@@ -2044,79 +2059,92 @@ const yt = { key: 0 }, vt = {
|
|
|
2044
2059
|
}),
|
|
2045
2060
|
emits: ["update:modelValue"],
|
|
2046
2061
|
setup(e) {
|
|
2047
|
-
const t = E(e, "modelValue"), l = e, a = (
|
|
2048
|
-
l.type == "number" ?
|
|
2049
|
-
}, { errors: o, value:
|
|
2062
|
+
const t = E(e, "modelValue"), l = e, a = (n) => {
|
|
2063
|
+
l.type == "number" ? r(n.value) : r(n);
|
|
2064
|
+
}, { errors: o, value: s, errorMessage: d, handleChange: r, handleBlur: v } = K(() => l.name, void 0, {
|
|
2050
2065
|
initialValue: t.value
|
|
2051
|
-
}),
|
|
2052
|
-
return
|
|
2053
|
-
t.value =
|
|
2054
|
-
}, { immediate: !0 }), (
|
|
2055
|
-
const
|
|
2056
|
-
return l.type === "checkbox" ? (i(),
|
|
2066
|
+
}), u = k(() => o.value.length > 0);
|
|
2067
|
+
return re(() => s.value, (n) => {
|
|
2068
|
+
t.value = n;
|
|
2069
|
+
}, { immediate: !0 }), (n, p) => {
|
|
2070
|
+
const x = Te, _ = Ce, P = de, M = ne, z = be, g = fe;
|
|
2071
|
+
return l.type === "checkbox" ? (i(), h(ve, C({
|
|
2057
2072
|
key: 0,
|
|
2058
2073
|
id: l.name,
|
|
2059
|
-
label: l.
|
|
2060
|
-
},
|
|
2074
|
+
label: l.fieldLabel
|
|
2075
|
+
}, n.$attrs, {
|
|
2061
2076
|
name: l.name,
|
|
2062
2077
|
modelValue: t.value,
|
|
2063
|
-
"onUpdate:modelValue":
|
|
2064
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (i(),
|
|
2065
|
-
|
|
2066
|
-
for: l.name
|
|
2067
|
-
|
|
2068
|
-
l.
|
|
2078
|
+
"onUpdate:modelValue": p[0] || (p[0] = ($) => t.value = $)
|
|
2079
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (i(), y("div", Yt, [
|
|
2080
|
+
c("label", {
|
|
2081
|
+
for: l.name,
|
|
2082
|
+
class: "mb-1"
|
|
2083
|
+
}, w(l.fieldLabel), 9, qt),
|
|
2084
|
+
l.type === "number" ? (i(), h(m(me), C({
|
|
2069
2085
|
key: 0,
|
|
2070
2086
|
id: l.name
|
|
2071
|
-
},
|
|
2087
|
+
}, n.$attrs, {
|
|
2072
2088
|
placeholder: l.placeholder,
|
|
2073
|
-
"input-class": { "is-invalid":
|
|
2074
|
-
class: { "is-invalid":
|
|
2089
|
+
"input-class": { "is-invalid": u.value },
|
|
2090
|
+
class: { "is-invalid": u.value },
|
|
2075
2091
|
modelValue: t.value,
|
|
2076
|
-
"onUpdate:modelValue":
|
|
2092
|
+
"onUpdate:modelValue": p[1] || (p[1] = ($) => t.value = $),
|
|
2077
2093
|
onInput: a
|
|
2078
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (i(),
|
|
2094
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (i(), h(x, C({
|
|
2079
2095
|
key: 1,
|
|
2080
2096
|
id: l.name
|
|
2081
|
-
},
|
|
2097
|
+
}, n.$attrs, {
|
|
2082
2098
|
placeholder: l.placeholder,
|
|
2083
|
-
class: { "is-invalid":
|
|
2099
|
+
class: { "is-invalid": u.value },
|
|
2084
2100
|
modelValue: t.value,
|
|
2085
|
-
"onUpdate:modelValue":
|
|
2101
|
+
"onUpdate:modelValue": p[2] || (p[2] = ($) => t.value = $),
|
|
2086
2102
|
onInput: a,
|
|
2087
|
-
onBlur:
|
|
2088
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (i(),
|
|
2103
|
+
onBlur: m(v)
|
|
2104
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (i(), h(_, C({
|
|
2089
2105
|
key: 2,
|
|
2090
2106
|
id: l.name
|
|
2091
|
-
},
|
|
2107
|
+
}, n.$attrs, {
|
|
2092
2108
|
placeholder: l.placeholder,
|
|
2093
2109
|
mask: l.mask,
|
|
2094
|
-
class: { "is-invalid":
|
|
2110
|
+
class: { "is-invalid": u.value },
|
|
2095
2111
|
modelValue: t.value,
|
|
2096
|
-
"onUpdate:modelValue":
|
|
2097
|
-
|
|
2098
|
-
onBlur:
|
|
2099
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (i(),
|
|
2112
|
+
"onUpdate:modelValue": p[3] || (p[3] = ($) => t.value = $),
|
|
2113
|
+
onComplete: a,
|
|
2114
|
+
onBlur: m(v)
|
|
2115
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (i(), h(P, C({
|
|
2100
2116
|
key: 3,
|
|
2101
2117
|
id: l.name
|
|
2102
|
-
},
|
|
2118
|
+
}, n.$attrs, {
|
|
2103
2119
|
placeholder: l.placeholder,
|
|
2104
|
-
class: { "is-invalid":
|
|
2120
|
+
class: { "is-invalid": u.value },
|
|
2105
2121
|
modelValue: t.value,
|
|
2106
|
-
"onUpdate:modelValue":
|
|
2122
|
+
"onUpdate:modelValue": p[4] || (p[4] = ($) => t.value = $),
|
|
2107
2123
|
onInput: a,
|
|
2108
|
-
onBlur:
|
|
2109
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) :
|
|
2110
|
-
|
|
2124
|
+
onBlur: m(v)
|
|
2125
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (i(), h(M, C({ key: 4 }, { ...l, ...n.$attrs }, {
|
|
2126
|
+
modelValue: t.value,
|
|
2127
|
+
"onUpdate:modelValue": p[5] || (p[5] = ($) => t.value = $),
|
|
2128
|
+
class: { "is-invalid": u.value }
|
|
2129
|
+
}), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (i(), h(z, C({ key: 5 }, { ...l, ...n.$attrs }, {
|
|
2130
|
+
modelValue: t.value,
|
|
2131
|
+
"onUpdate:modelValue": p[6] || (p[6] = ($) => t.value = $),
|
|
2132
|
+
class: { "is-invalid": u.value }
|
|
2133
|
+
}), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (i(), h(g, C({ key: 6 }, { ...l, ...n.$attrs }, {
|
|
2134
|
+
modelValue: t.value,
|
|
2135
|
+
"onUpdate:modelValue": p[7] || (p[7] = ($) => t.value = $),
|
|
2136
|
+
class: { "is-invalid": u.value }
|
|
2137
|
+
}), null, 16, ["modelValue", "class"])) : S("", !0),
|
|
2138
|
+
L(c("small", {
|
|
2111
2139
|
"data-cy": "error",
|
|
2112
2140
|
class: "invalid-feedback"
|
|
2113
|
-
},
|
|
2114
|
-
[
|
|
2141
|
+
}, w(m(d)), 513), [
|
|
2142
|
+
[H, u.value && l.type !== "multiselect" && l.type !== "datepicker"]
|
|
2115
2143
|
])
|
|
2116
2144
|
]));
|
|
2117
2145
|
};
|
|
2118
2146
|
}
|
|
2119
|
-
}),
|
|
2147
|
+
}), xl = /* @__PURE__ */ V({
|
|
2120
2148
|
__name: "ForgeChips",
|
|
2121
2149
|
props: {
|
|
2122
2150
|
chipSeverity: { default: "primary" },
|
|
@@ -2143,17 +2171,17 @@ const yt = { key: 0 }, vt = {
|
|
|
2143
2171
|
unstyled: { type: Boolean }
|
|
2144
2172
|
},
|
|
2145
2173
|
setup(e) {
|
|
2146
|
-
const t = e, { errors: l, value: a, errorMessage: o } =
|
|
2174
|
+
const t = e, { errors: l, value: a, errorMessage: o } = K(() => t.name, void 0, {
|
|
2147
2175
|
initialValue: t.modelValue
|
|
2148
|
-
}),
|
|
2176
|
+
}), s = k(() => l.value.length > 0), d = k(() => ({
|
|
2149
2177
|
inputtoken: "list-unstyled",
|
|
2150
2178
|
input: "border-0",
|
|
2151
|
-
container: ({ props:
|
|
2179
|
+
container: ({ props: r }) => ({
|
|
2152
2180
|
class: [
|
|
2153
2181
|
"form-control mb-0 d-flex",
|
|
2154
2182
|
{
|
|
2155
|
-
disabled:
|
|
2156
|
-
"is-invalid":
|
|
2183
|
+
disabled: r.disabled,
|
|
2184
|
+
"is-invalid": s.value
|
|
2157
2185
|
}
|
|
2158
2186
|
]
|
|
2159
2187
|
}),
|
|
@@ -2176,35 +2204,35 @@ const yt = { key: 0 }, vt = {
|
|
|
2176
2204
|
]
|
|
2177
2205
|
}
|
|
2178
2206
|
}));
|
|
2179
|
-
return (
|
|
2180
|
-
const
|
|
2181
|
-
return i(),
|
|
2182
|
-
f(
|
|
2183
|
-
pt:
|
|
2184
|
-
"model-value":
|
|
2185
|
-
"onUpdate:modelValue":
|
|
2207
|
+
return (r, v) => {
|
|
2208
|
+
const u = Pe;
|
|
2209
|
+
return i(), y(N, null, [
|
|
2210
|
+
f(u, C({ ...t, ...r.$attrs }, {
|
|
2211
|
+
pt: d.value,
|
|
2212
|
+
"model-value": m(a),
|
|
2213
|
+
"onUpdate:modelValue": v[0] || (v[0] = (n) => le(a) ? a.value = n : null)
|
|
2186
2214
|
}), {
|
|
2187
|
-
removetokenicon: b(({ removeCallback:
|
|
2188
|
-
|
|
2215
|
+
removetokenicon: b(({ removeCallback: n }) => [
|
|
2216
|
+
L(f(m(T), {
|
|
2189
2217
|
icon: "bi:x",
|
|
2190
2218
|
class: "cursor-pointer",
|
|
2191
|
-
onClick:
|
|
2219
|
+
onClick: n
|
|
2192
2220
|
}, null, 8, ["onClick"]), [
|
|
2193
|
-
[
|
|
2221
|
+
[H, !t.disabled]
|
|
2194
2222
|
])
|
|
2195
2223
|
]),
|
|
2196
2224
|
_: 1
|
|
2197
2225
|
}, 16, ["pt", "model-value"]),
|
|
2198
|
-
|
|
2226
|
+
L(c("small", {
|
|
2199
2227
|
"data-cy": "error",
|
|
2200
2228
|
class: "text-invalid"
|
|
2201
|
-
},
|
|
2202
|
-
[
|
|
2229
|
+
}, w(m(o)), 513), [
|
|
2230
|
+
[H, s.value]
|
|
2203
2231
|
])
|
|
2204
2232
|
], 64);
|
|
2205
2233
|
};
|
|
2206
2234
|
}
|
|
2207
|
-
}),
|
|
2235
|
+
}), Gt = /* @__PURE__ */ V({
|
|
2208
2236
|
__name: "ForgeProgressBar",
|
|
2209
2237
|
props: {
|
|
2210
2238
|
severity: { default: "primary" },
|
|
@@ -2219,7 +2247,7 @@ const yt = { key: 0 }, vt = {
|
|
|
2219
2247
|
unstyled: { type: Boolean }
|
|
2220
2248
|
},
|
|
2221
2249
|
setup(e) {
|
|
2222
|
-
const t = e, l =
|
|
2250
|
+
const t = e, l = k(() => t.striped ? "progress-bar-striped" : null), a = k(() => t.animate ? "progress-bar-animated" : null), o = k(() => {
|
|
2223
2251
|
switch (t.severity) {
|
|
2224
2252
|
case "brand":
|
|
2225
2253
|
return "bg-brand";
|
|
@@ -2238,7 +2266,7 @@ const yt = { key: 0 }, vt = {
|
|
|
2238
2266
|
default:
|
|
2239
2267
|
return "bg-primary";
|
|
2240
2268
|
}
|
|
2241
|
-
}),
|
|
2269
|
+
}), s = k(() => ({
|
|
2242
2270
|
root: {
|
|
2243
2271
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2244
2272
|
},
|
|
@@ -2246,17 +2274,17 @@ const yt = { key: 0 }, vt = {
|
|
|
2246
2274
|
class: [o.value, l.value, a.value]
|
|
2247
2275
|
}
|
|
2248
2276
|
}));
|
|
2249
|
-
return (
|
|
2250
|
-
const
|
|
2251
|
-
return i(),
|
|
2277
|
+
return (d, r) => {
|
|
2278
|
+
const v = Me;
|
|
2279
|
+
return i(), h(v, C({ ...d.$attrs, ...t }, { pt: s.value }), {
|
|
2252
2280
|
default: b(() => [
|
|
2253
|
-
|
|
2281
|
+
B(d.$slots, "default")
|
|
2254
2282
|
]),
|
|
2255
2283
|
_: 3
|
|
2256
2284
|
}, 16, ["pt"]);
|
|
2257
2285
|
};
|
|
2258
2286
|
}
|
|
2259
|
-
}),
|
|
2287
|
+
}), Kt = { class: "value text-white w-100 text-center" }, kl = /* @__PURE__ */ V({
|
|
2260
2288
|
__name: "ForgeStatWidget",
|
|
2261
2289
|
props: {
|
|
2262
2290
|
size: { default: "md" },
|
|
@@ -2264,18 +2292,18 @@ const yt = { key: 0 }, vt = {
|
|
|
2264
2292
|
},
|
|
2265
2293
|
setup(e) {
|
|
2266
2294
|
const t = e;
|
|
2267
|
-
return (l, a) => (i(),
|
|
2295
|
+
return (l, a) => (i(), y("div", C(l.$attrs, {
|
|
2268
2296
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2269
2297
|
}), [
|
|
2270
|
-
|
|
2271
|
-
|
|
2298
|
+
c("span", Kt, [
|
|
2299
|
+
B(l.$slots, "default")
|
|
2272
2300
|
])
|
|
2273
2301
|
], 16));
|
|
2274
2302
|
}
|
|
2275
|
-
}),
|
|
2303
|
+
}), Wt = {
|
|
2276
2304
|
class: "d-flex flex-column align-items-center",
|
|
2277
2305
|
"data-cy": "stepper"
|
|
2278
|
-
},
|
|
2306
|
+
}, Zt = { class: "d-flex align-items-center justify-content-center w-100" }, $l = /* @__PURE__ */ V({
|
|
2279
2307
|
__name: "ForgeStepper",
|
|
2280
2308
|
props: {
|
|
2281
2309
|
currentStep: { default: 0 },
|
|
@@ -2291,103 +2319,103 @@ const yt = { key: 0 }, vt = {
|
|
|
2291
2319
|
},
|
|
2292
2320
|
emits: ["update:currentStep"],
|
|
2293
2321
|
setup(e, { emit: t }) {
|
|
2294
|
-
const l = t, a = e, o = I(a.currentStep),
|
|
2322
|
+
const l = t, a = e, o = I(a.currentStep), s = () => {
|
|
2295
2323
|
do
|
|
2296
2324
|
o.value--;
|
|
2297
2325
|
while (a.model[o.value].disabled);
|
|
2298
2326
|
l("update:currentStep", o.value);
|
|
2299
|
-
},
|
|
2327
|
+
}, d = () => {
|
|
2300
2328
|
if (o.value < a.model.length - 1)
|
|
2301
2329
|
do
|
|
2302
2330
|
o.value++;
|
|
2303
2331
|
while (a.model[o.value].disabled);
|
|
2304
2332
|
l("update:currentStep", o.value);
|
|
2305
|
-
},
|
|
2306
|
-
const
|
|
2307
|
-
return !(
|
|
2308
|
-
}),
|
|
2309
|
-
menuitem: (
|
|
2333
|
+
}, r = k(() => {
|
|
2334
|
+
const u = a.model.findIndex((n) => !n.disabled);
|
|
2335
|
+
return !(u < o.value && u > -1);
|
|
2336
|
+
}), v = k(() => ({
|
|
2337
|
+
menuitem: (u) => ({
|
|
2310
2338
|
class: [{
|
|
2311
|
-
"cursor-pointer": !
|
|
2339
|
+
"cursor-pointer": !u.context.disabled
|
|
2312
2340
|
}]
|
|
2313
2341
|
}),
|
|
2314
|
-
step: (
|
|
2342
|
+
step: (u) => ({
|
|
2315
2343
|
class: [
|
|
2316
2344
|
"d-flex align-items-center justify-content-center mb-2 step",
|
|
2317
2345
|
{
|
|
2318
|
-
inactive:
|
|
2319
|
-
"bg-primary text-white":
|
|
2320
|
-
"bg-brand text-white":
|
|
2321
|
-
"bg-secondary text-white":
|
|
2322
|
-
"bg-success text-white":
|
|
2323
|
-
"bg-warning text-white":
|
|
2324
|
-
"bg-danger text-white":
|
|
2325
|
-
"bg-info text-white":
|
|
2346
|
+
inactive: u.context.disabled,
|
|
2347
|
+
"bg-primary text-white": u.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
|
|
2348
|
+
"bg-brand text-white": u.context.index === o.value && a.severity === "brand",
|
|
2349
|
+
"bg-secondary text-white": u.context.index === o.value && a.severity === "secondary",
|
|
2350
|
+
"bg-success text-white": u.context.index === o.value && a.severity === "success",
|
|
2351
|
+
"bg-warning text-white": u.context.index === o.value && a.severity === "warning",
|
|
2352
|
+
"bg-danger text-white": u.context.index === o.value && a.severity === "danger",
|
|
2353
|
+
"bg-info text-white": u.context.index === o.value && a.severity === "info"
|
|
2326
2354
|
}
|
|
2327
2355
|
]
|
|
2328
2356
|
}),
|
|
2329
|
-
label: (
|
|
2357
|
+
label: (u) => ({
|
|
2330
2358
|
class: [
|
|
2331
2359
|
"h5",
|
|
2332
2360
|
{
|
|
2333
|
-
"border-bottom border-2 border-primary":
|
|
2334
|
-
"border-bottom border-2 border-brand":
|
|
2335
|
-
"border-bottom border-2 border-secondary":
|
|
2336
|
-
"border-bottom border-2 border-success":
|
|
2337
|
-
"border-bottom border-2 border-warning":
|
|
2338
|
-
"border-bottom border-2 border-danger":
|
|
2339
|
-
"border-bottom border-2 border-info":
|
|
2361
|
+
"border-bottom border-2 border-primary": u.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
|
|
2362
|
+
"border-bottom border-2 border-brand": u.context.index === o.value && a.severity === "brand",
|
|
2363
|
+
"border-bottom border-2 border-secondary": u.context.index === o.value && a.severity === "secondary",
|
|
2364
|
+
"border-bottom border-2 border-success": u.context.index === o.value && a.severity === "success",
|
|
2365
|
+
"border-bottom border-2 border-warning": u.context.index === o.value && a.severity === "warning",
|
|
2366
|
+
"border-bottom border-2 border-danger": u.context.index === o.value && a.severity === "danger",
|
|
2367
|
+
"border-bottom border-2 border-info": u.context.index === o.value && a.severity === "info"
|
|
2340
2368
|
}
|
|
2341
2369
|
]
|
|
2342
2370
|
})
|
|
2343
2371
|
}));
|
|
2344
|
-
return (
|
|
2345
|
-
const
|
|
2346
|
-
return i(),
|
|
2347
|
-
|
|
2348
|
-
f(
|
|
2372
|
+
return (u, n) => {
|
|
2373
|
+
const p = R, x = ze, _ = Ie;
|
|
2374
|
+
return i(), y("div", Wt, [
|
|
2375
|
+
c("div", Zt, [
|
|
2376
|
+
f(p, {
|
|
2349
2377
|
severity: a.severity,
|
|
2350
|
-
disabled:
|
|
2351
|
-
onClick:
|
|
2378
|
+
disabled: r.value,
|
|
2379
|
+
onClick: s,
|
|
2352
2380
|
class: "rounded-circle py-2 me-4",
|
|
2353
2381
|
"data-cy": "back-button"
|
|
2354
2382
|
}, {
|
|
2355
2383
|
default: b(() => [
|
|
2356
|
-
f(
|
|
2384
|
+
f(m(T), {
|
|
2357
2385
|
icon: "bi:chevron-left",
|
|
2358
2386
|
class: "mb-1"
|
|
2359
2387
|
})
|
|
2360
2388
|
]),
|
|
2361
2389
|
_: 1
|
|
2362
2390
|
}, 8, ["severity", "disabled"]),
|
|
2363
|
-
f(
|
|
2391
|
+
f(x, {
|
|
2364
2392
|
"active-step": o.value,
|
|
2365
|
-
"onUpdate:activeStep":
|
|
2393
|
+
"onUpdate:activeStep": n[0] || (n[0] = (P) => o.value = P),
|
|
2366
2394
|
model: a.model,
|
|
2367
|
-
pt:
|
|
2395
|
+
pt: v.value,
|
|
2368
2396
|
readonly: !1
|
|
2369
2397
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2370
2398
|
]),
|
|
2371
2399
|
f(_),
|
|
2372
|
-
(i(!0),
|
|
2373
|
-
key:
|
|
2400
|
+
(i(!0), y(N, null, q(a.model, (P, M) => (i(), y("div", {
|
|
2401
|
+
key: M,
|
|
2374
2402
|
class: "w-100"
|
|
2375
2403
|
}, [
|
|
2376
|
-
|
|
2404
|
+
M === o.value ? B(u.$slots, P.key ?? P.label, {
|
|
2377
2405
|
key: 0,
|
|
2378
|
-
nextStep:
|
|
2379
|
-
previousStep:
|
|
2406
|
+
nextStep: d,
|
|
2407
|
+
previousStep: s
|
|
2380
2408
|
}, () => [
|
|
2381
|
-
f(
|
|
2409
|
+
f(se, {
|
|
2382
2410
|
severity: "info",
|
|
2383
2411
|
"data-cy": "alert"
|
|
2384
2412
|
}, {
|
|
2385
2413
|
default: b(() => [
|
|
2386
|
-
|
|
2387
|
-
f(
|
|
2414
|
+
O(" Please add Slot Content for the key " + w(P.key ?? P.label) + " ", 1),
|
|
2415
|
+
f(p, {
|
|
2388
2416
|
severity: "primary",
|
|
2389
2417
|
label: "Next",
|
|
2390
|
-
onClick:
|
|
2418
|
+
onClick: d,
|
|
2391
2419
|
class: "ms-2"
|
|
2392
2420
|
})
|
|
2393
2421
|
]),
|
|
@@ -2398,7 +2426,7 @@ const yt = { key: 0 }, vt = {
|
|
|
2398
2426
|
]);
|
|
2399
2427
|
};
|
|
2400
2428
|
}
|
|
2401
|
-
}),
|
|
2429
|
+
}), Jt = { class: "p-4 text-wrap w-100" }, Xt = { class: "p-4 text-wrap w-100" }, Bl = /* @__PURE__ */ V({
|
|
2402
2430
|
__name: "ForgeTile",
|
|
2403
2431
|
props: {
|
|
2404
2432
|
severity: { default: "primary" },
|
|
@@ -2407,32 +2435,32 @@ const yt = { key: 0 }, vt = {
|
|
|
2407
2435
|
selected: { type: Boolean, default: !1 }
|
|
2408
2436
|
},
|
|
2409
2437
|
setup(e) {
|
|
2410
|
-
const t = e, l =
|
|
2411
|
-
return (o,
|
|
2412
|
-
const
|
|
2413
|
-
return t.clickable ? (i(),
|
|
2438
|
+
const t = e, l = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), a = 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" : ""}`);
|
|
2439
|
+
return (o, s) => {
|
|
2440
|
+
const d = R;
|
|
2441
|
+
return t.clickable ? (i(), h(d, {
|
|
2414
2442
|
key: 0,
|
|
2415
|
-
class:
|
|
2443
|
+
class: F(["d-flex w-100 p-0 text-body", l.value]),
|
|
2416
2444
|
severity: t.severity,
|
|
2417
2445
|
unstyled: "",
|
|
2418
2446
|
"data-cy": "button-tile"
|
|
2419
2447
|
}, {
|
|
2420
2448
|
default: b(() => [
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2449
|
+
c("div", Jt, [
|
|
2450
|
+
B(o.$slots, "default", {}, () => [
|
|
2451
|
+
O("Tile Content")
|
|
2424
2452
|
])
|
|
2425
2453
|
])
|
|
2426
2454
|
]),
|
|
2427
2455
|
_: 3
|
|
2428
|
-
}, 8, ["severity", "class"])) : (i(),
|
|
2456
|
+
}, 8, ["severity", "class"])) : (i(), y("div", {
|
|
2429
2457
|
key: 1,
|
|
2430
|
-
class:
|
|
2458
|
+
class: F(["d-flex w-100", a.value]),
|
|
2431
2459
|
"data-cy": "tile"
|
|
2432
2460
|
}, [
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2461
|
+
c("div", Xt, [
|
|
2462
|
+
B(o.$slots, "default", {}, () => [
|
|
2463
|
+
O("Tile Content")
|
|
2436
2464
|
])
|
|
2437
2465
|
])
|
|
2438
2466
|
], 2));
|
|
@@ -2442,13 +2470,13 @@ const yt = { key: 0 }, vt = {
|
|
|
2442
2470
|
function Q(e, t) {
|
|
2443
2471
|
return e > 1 ? `${t}s` : t;
|
|
2444
2472
|
}
|
|
2445
|
-
const
|
|
2473
|
+
const Qt = {
|
|
2446
2474
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2447
2475
|
"data-cy": "pagination-header"
|
|
2448
|
-
},
|
|
2476
|
+
}, ea = { class: "ms-2" }, ta = { key: 0 }, aa = /* @__PURE__ */ c("span", { class: "mx-2" }, "|", -1), la = {
|
|
2449
2477
|
class: "w-auto",
|
|
2450
2478
|
"data-cy": "total"
|
|
2451
|
-
},
|
|
2479
|
+
}, oa = /* @__PURE__ */ V({
|
|
2452
2480
|
__name: "ForgePaginationHeader",
|
|
2453
2481
|
props: {
|
|
2454
2482
|
total: {},
|
|
@@ -2457,28 +2485,28 @@ const Xt = {
|
|
|
2457
2485
|
},
|
|
2458
2486
|
emits: ["update:perPage"],
|
|
2459
2487
|
setup(e, { emit: t }) {
|
|
2460
|
-
const l = t, a = e, o = (
|
|
2461
|
-
l("update:perPage",
|
|
2462
|
-
},
|
|
2463
|
-
const
|
|
2464
|
-
return `${
|
|
2488
|
+
const l = t, a = e, o = (d) => {
|
|
2489
|
+
l("update:perPage", d.value);
|
|
2490
|
+
}, s = k(() => {
|
|
2491
|
+
const d = Math.ceil(a.total / a.perPage);
|
|
2492
|
+
return `${d} ${Q(d, "page")}`;
|
|
2465
2493
|
});
|
|
2466
|
-
return (
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
f(
|
|
2494
|
+
return (d, r) => (i(), y("div", Qt, [
|
|
2495
|
+
O(" Number of results per page "),
|
|
2496
|
+
c("div", ea, [
|
|
2497
|
+
f(m(ne), {
|
|
2470
2498
|
options: a.pageSizes,
|
|
2471
2499
|
"model-value": a.perPage,
|
|
2472
|
-
onChange:
|
|
2500
|
+
onChange: r[0] || (r[0] = (v) => o(v))
|
|
2473
2501
|
}, null, 8, ["options", "model-value"])
|
|
2474
2502
|
]),
|
|
2475
|
-
a.total ? (i(),
|
|
2476
|
-
|
|
2477
|
-
|
|
2503
|
+
a.total ? (i(), y("div", ta, [
|
|
2504
|
+
aa,
|
|
2505
|
+
c("span", la, w(a.total) + " " + w(m(Q)(a.total, "result")) + " across " + w(s.value), 1)
|
|
2478
2506
|
])) : S("", !0)
|
|
2479
2507
|
]));
|
|
2480
2508
|
}
|
|
2481
|
-
}),
|
|
2509
|
+
}), na = { class: "position-relative" }, sa = { "data-cy": "above-table-slot" }, ia = { class: "d-flex" }, ra = { class: "d-flex align-items-end mb-2" }, da = { key: 0 }, ua = { class: "ms-auto" }, ca = /* @__PURE__ */ c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), _l = /* @__PURE__ */ V({
|
|
2482
2510
|
__name: "ForgeTable",
|
|
2483
2511
|
props: {
|
|
2484
2512
|
value: {},
|
|
@@ -2558,17 +2586,17 @@ const Xt = {
|
|
|
2558
2586
|
},
|
|
2559
2587
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
2560
2588
|
setup(e, { emit: t }) {
|
|
2561
|
-
const l = t, a = e, o = I(),
|
|
2589
|
+
const l = t, a = e, o = I(), s = I([10, 20, 50, 100]), d = I(20), r = I({
|
|
2562
2590
|
filters: a.filters,
|
|
2563
|
-
perPage:
|
|
2591
|
+
perPage: d.value,
|
|
2564
2592
|
page: 0,
|
|
2565
2593
|
sortDirection: "None",
|
|
2566
2594
|
sortField: "",
|
|
2567
2595
|
total: a.totalRecords ?? a.value.length
|
|
2568
|
-
}),
|
|
2569
|
-
const g = Math.ceil(
|
|
2596
|
+
}), v = k(() => a.totalRecords ?? a.value.length), u = k(() => {
|
|
2597
|
+
const g = Math.ceil(v.value / d.value);
|
|
2570
2598
|
return `${g} ${Q(g, "page")}`;
|
|
2571
|
-
}),
|
|
2599
|
+
}), n = k(() => ({
|
|
2572
2600
|
thead: () => ({
|
|
2573
2601
|
class: [
|
|
2574
2602
|
{
|
|
@@ -2590,91 +2618,91 @@ const Xt = {
|
|
|
2590
2618
|
}
|
|
2591
2619
|
]
|
|
2592
2620
|
})
|
|
2593
|
-
})),
|
|
2621
|
+
})), p = () => {
|
|
2594
2622
|
for (const g in a.filters)
|
|
2595
2623
|
typeof a.filters[g] == "string" ? a.filters[g] = "" : a.filters[g].value = null;
|
|
2596
2624
|
P(a.filters);
|
|
2597
|
-
},
|
|
2625
|
+
}, x = () => {
|
|
2598
2626
|
o.value.exportCSV();
|
|
2599
2627
|
}, _ = (g) => {
|
|
2600
|
-
var
|
|
2601
|
-
|
|
2628
|
+
var $;
|
|
2629
|
+
r.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", r.value.sortField = (($ = g.sortField) == null ? void 0 : $.toString()) ?? "", l("update:tableContext", r.value), l("sort", g);
|
|
2602
2630
|
}, P = (g) => {
|
|
2603
|
-
|
|
2604
|
-
},
|
|
2605
|
-
|
|
2606
|
-
},
|
|
2607
|
-
|
|
2631
|
+
r.value.filters = g, l("update:tableContext", r.value), l("update:filters", g);
|
|
2632
|
+
}, M = (g) => {
|
|
2633
|
+
r.value.page = g.page, l("update:tableContext", r.value), l("page", g);
|
|
2634
|
+
}, z = () => {
|
|
2635
|
+
r.value.perPage = d.value, l("update:tableContext", r.value);
|
|
2608
2636
|
};
|
|
2609
|
-
return
|
|
2610
|
-
|
|
2611
|
-
}, { deep: !0 }), ae(() => l("update:tableContext",
|
|
2612
|
-
|
|
2613
|
-
|
|
2637
|
+
return re(() => a.filters, (g) => {
|
|
2638
|
+
r.value.filters = g, l("update:tableContext", r.value);
|
|
2639
|
+
}, { deep: !0 }), ae(() => l("update:tableContext", r.value)), (g, $) => (i(), y("div", na, [
|
|
2640
|
+
c("span", sa, [
|
|
2641
|
+
B(g.$slots, "above-table")
|
|
2614
2642
|
]),
|
|
2615
|
-
f(
|
|
2643
|
+
f(m(Oe), C({
|
|
2616
2644
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
2617
2645
|
}, { ...a, ...g.$attrs }, {
|
|
2618
|
-
pt:
|
|
2619
|
-
rows:
|
|
2620
|
-
"total-records":
|
|
2646
|
+
pt: n.value,
|
|
2647
|
+
rows: d.value,
|
|
2648
|
+
"total-records": v.value,
|
|
2621
2649
|
"filter-display": a.filters ? "row" : void 0,
|
|
2622
2650
|
ref_key: "forgeTable",
|
|
2623
2651
|
ref: o,
|
|
2624
2652
|
"data-cy": "table",
|
|
2625
2653
|
"onUpdate:filters": P,
|
|
2626
2654
|
onSort: _,
|
|
2627
|
-
onPage:
|
|
2655
|
+
onPage: M
|
|
2628
2656
|
}), oe({
|
|
2629
2657
|
header: b(() => [
|
|
2630
|
-
|
|
2631
|
-
class:
|
|
2658
|
+
c("div", {
|
|
2659
|
+
class: F(a.loading ? "opacity-50" : "")
|
|
2632
2660
|
}, [
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
g.paginator && !g.legacyPaginationFooter ? (i(),
|
|
2636
|
-
f(
|
|
2637
|
-
total:
|
|
2638
|
-
"page-sizes":
|
|
2639
|
-
"per-page":
|
|
2661
|
+
c("div", ia, [
|
|
2662
|
+
c("div", ra, [
|
|
2663
|
+
g.paginator && !g.legacyPaginationFooter ? (i(), y("span", da, [
|
|
2664
|
+
f(oa, {
|
|
2665
|
+
total: v.value,
|
|
2666
|
+
"page-sizes": s.value,
|
|
2667
|
+
"per-page": d.value,
|
|
2640
2668
|
"onUpdate:perPage": [
|
|
2641
|
-
|
|
2642
|
-
|
|
2669
|
+
$[0] || ($[0] = (G) => d.value = G),
|
|
2670
|
+
z
|
|
2643
2671
|
]
|
|
2644
2672
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2645
2673
|
])) : S("", !0)
|
|
2646
2674
|
]),
|
|
2647
|
-
|
|
2648
|
-
g.showClearButton ? (i(),
|
|
2675
|
+
c("div", ua, [
|
|
2676
|
+
g.showClearButton ? (i(), h(m(R), {
|
|
2649
2677
|
key: 0,
|
|
2650
2678
|
outlined: "",
|
|
2651
|
-
class:
|
|
2652
|
-
onClick:
|
|
2679
|
+
class: F(g.showExporterButton ? "me-2" : ""),
|
|
2680
|
+
onClick: p,
|
|
2653
2681
|
"data-cy": "clear-all"
|
|
2654
2682
|
}, {
|
|
2655
2683
|
default: b(() => [
|
|
2656
|
-
f(
|
|
2684
|
+
f(m(T), {
|
|
2657
2685
|
icon: "bi:funnel-fill",
|
|
2658
2686
|
width: "24",
|
|
2659
2687
|
height: "24"
|
|
2660
2688
|
}),
|
|
2661
|
-
|
|
2689
|
+
O(" Clear ")
|
|
2662
2690
|
]),
|
|
2663
2691
|
_: 1
|
|
2664
2692
|
}, 8, ["class"])) : S("", !0),
|
|
2665
|
-
g.showExporterButton ? (i(),
|
|
2693
|
+
g.showExporterButton ? (i(), h(m(R), {
|
|
2666
2694
|
key: 1,
|
|
2667
2695
|
outlined: "",
|
|
2668
|
-
onClick:
|
|
2696
|
+
onClick: x,
|
|
2669
2697
|
"data-cy": "exporter"
|
|
2670
2698
|
}, {
|
|
2671
2699
|
default: b(() => [
|
|
2672
|
-
f(
|
|
2700
|
+
f(m(T), {
|
|
2673
2701
|
icon: "typcn:export",
|
|
2674
2702
|
width: "24",
|
|
2675
2703
|
height: "24"
|
|
2676
2704
|
}),
|
|
2677
|
-
|
|
2705
|
+
O(" Export ")
|
|
2678
2706
|
]),
|
|
2679
2707
|
_: 1
|
|
2680
2708
|
})) : S("", !0)
|
|
@@ -2683,30 +2711,30 @@ const Xt = {
|
|
|
2683
2711
|
], 2)
|
|
2684
2712
|
]),
|
|
2685
2713
|
default: b(() => [
|
|
2686
|
-
|
|
2714
|
+
B(g.$slots, "default")
|
|
2687
2715
|
]),
|
|
2688
2716
|
_: 2
|
|
2689
2717
|
}, [
|
|
2690
|
-
|
|
2718
|
+
q(g.$slots, (G, Z) => ({
|
|
2691
2719
|
name: Z,
|
|
2692
|
-
fn: b((
|
|
2693
|
-
|
|
2720
|
+
fn: b((ie) => [
|
|
2721
|
+
B(g.$slots, Z, ee(te(ie || {})))
|
|
2694
2722
|
])
|
|
2695
2723
|
})),
|
|
2696
2724
|
g.legacyPaginationFooter ? {
|
|
2697
2725
|
name: "paginatorstart",
|
|
2698
2726
|
fn: b(() => [
|
|
2699
|
-
|
|
2700
|
-
class:
|
|
2727
|
+
c("span", {
|
|
2728
|
+
class: F(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
2701
2729
|
"data-cy": "legacy-page-size"
|
|
2702
2730
|
}, [
|
|
2703
|
-
|
|
2704
|
-
f(
|
|
2705
|
-
options:
|
|
2706
|
-
modelValue:
|
|
2707
|
-
"onUpdate:modelValue":
|
|
2731
|
+
ca,
|
|
2732
|
+
f(m(ne), {
|
|
2733
|
+
options: s.value,
|
|
2734
|
+
modelValue: d.value,
|
|
2735
|
+
"onUpdate:modelValue": $[1] || ($[1] = (G) => d.value = G),
|
|
2708
2736
|
class: "ms-2",
|
|
2709
|
-
onClick:
|
|
2737
|
+
onClick: z
|
|
2710
2738
|
}, null, 8, ["options", "modelValue"])
|
|
2711
2739
|
], 2)
|
|
2712
2740
|
]),
|
|
@@ -2715,19 +2743,19 @@ const Xt = {
|
|
|
2715
2743
|
g.legacyPaginationFooter ? {
|
|
2716
2744
|
name: "paginatorend",
|
|
2717
2745
|
fn: b(() => [
|
|
2718
|
-
|
|
2746
|
+
c("span", {
|
|
2719
2747
|
"data-cy": "legacy-total",
|
|
2720
|
-
class:
|
|
2721
|
-
},
|
|
2748
|
+
class: F(a.loading ? "opacity-50" : "")
|
|
2749
|
+
}, w(v.value) + " " + w(m(Q)(v.value, "result")) + " across " + w(u.value), 3)
|
|
2722
2750
|
]),
|
|
2723
2751
|
key: "1"
|
|
2724
2752
|
} : void 0
|
|
2725
2753
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
2726
2754
|
]));
|
|
2727
2755
|
}
|
|
2728
|
-
}),
|
|
2756
|
+
}), ma = { class: "d-flex position-relative" }, pa = { class: "d-flex w-100" }, va = { class: "d-flex w-100" }, Fl = /* @__PURE__ */ V({
|
|
2729
2757
|
__name: "ForgeFilterHeader",
|
|
2730
|
-
props: /* @__PURE__ */
|
|
2758
|
+
props: /* @__PURE__ */ j({
|
|
2731
2759
|
dataType: {},
|
|
2732
2760
|
dropdownOptions: {},
|
|
2733
2761
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -2742,37 +2770,37 @@ const Xt = {
|
|
|
2742
2770
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
2743
2771
|
};
|
|
2744
2772
|
return (a, o) => {
|
|
2745
|
-
const
|
|
2746
|
-
return i(),
|
|
2747
|
-
a.dataType === "numeric" ? (i(),
|
|
2773
|
+
const s = me, d = R;
|
|
2774
|
+
return i(), y("div", ma, [
|
|
2775
|
+
a.dataType === "numeric" ? (i(), h(s, C({
|
|
2748
2776
|
key: 0,
|
|
2749
2777
|
modelValue: t.value,
|
|
2750
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
2751
|
-
}, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(),
|
|
2778
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => t.value = r)
|
|
2779
|
+
}, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(), h(fe, C({
|
|
2752
2780
|
key: 1,
|
|
2753
2781
|
modelValue: t.value,
|
|
2754
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
2782
|
+
"onUpdate:modelValue": o[1] || (o[1] = (r) => t.value = r)
|
|
2755
2783
|
}, a.$attrs, {
|
|
2756
2784
|
"show-icon": !1,
|
|
2757
2785
|
"show-on-focus": !0
|
|
2758
|
-
}), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(),
|
|
2786
|
+
}), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), h(m(ne), C({
|
|
2759
2787
|
key: 2,
|
|
2760
2788
|
modelValue: t.value,
|
|
2761
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
2789
|
+
"onUpdate:modelValue": o[2] || (o[2] = (r) => t.value = r)
|
|
2762
2790
|
}, a.$attrs, { options: a.dropdownOptions }), {
|
|
2763
|
-
value: b(({ value:
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
class:
|
|
2767
|
-
},
|
|
2768
|
-
a.showClearButton && t.value !== null ? (i(),
|
|
2791
|
+
value: b(({ value: r, placeholder: v }) => [
|
|
2792
|
+
c("div", pa, [
|
|
2793
|
+
c("span", {
|
|
2794
|
+
class: F({ "filter-placeholder": r === null })
|
|
2795
|
+
}, w(r !== null ? r : v), 3),
|
|
2796
|
+
a.showClearButton && t.value !== null ? (i(), h(d, {
|
|
2769
2797
|
key: 0,
|
|
2770
|
-
onClick:
|
|
2798
|
+
onClick: Y(l, ["prevent"]),
|
|
2771
2799
|
size: "small",
|
|
2772
2800
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2773
2801
|
}, {
|
|
2774
2802
|
default: b(() => [
|
|
2775
|
-
f(
|
|
2803
|
+
f(m(T), {
|
|
2776
2804
|
icon: "bi:x",
|
|
2777
2805
|
width: "1rem",
|
|
2778
2806
|
height: "1rem",
|
|
@@ -2784,28 +2812,28 @@ const Xt = {
|
|
|
2784
2812
|
])
|
|
2785
2813
|
]),
|
|
2786
2814
|
_: 1
|
|
2787
|
-
}, 16, ["modelValue", "options"])) : a.dataType === "multiselect" ? (i(),
|
|
2815
|
+
}, 16, ["modelValue", "options"])) : a.dataType === "multiselect" ? (i(), h(m(De), C({
|
|
2788
2816
|
key: 3,
|
|
2789
2817
|
modelValue: t.value,
|
|
2790
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
|
2818
|
+
"onUpdate:modelValue": o[3] || (o[3] = (r) => t.value = r)
|
|
2791
2819
|
}, a.$attrs, {
|
|
2792
2820
|
options: a.dropdownOptions,
|
|
2793
2821
|
showToggleAll: !1,
|
|
2794
2822
|
filter: ""
|
|
2795
2823
|
}), {
|
|
2796
|
-
value: b(({ value:
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
class:
|
|
2800
|
-
},
|
|
2801
|
-
a.showClearButton && (
|
|
2824
|
+
value: b(({ value: r, placeholder: v }) => [
|
|
2825
|
+
c("div", va, [
|
|
2826
|
+
c("span", {
|
|
2827
|
+
class: F({ "filter-placeholder": (r == null ? void 0 : r.length) === 0 })
|
|
2828
|
+
}, w(r !== null && (r == null ? void 0 : r.length) > 0 ? r.join(", ") : v), 3),
|
|
2829
|
+
a.showClearButton && (r == null ? void 0 : r.length) > 0 ? (i(), h(d, {
|
|
2802
2830
|
key: 0,
|
|
2803
|
-
onClick:
|
|
2831
|
+
onClick: Y(l, ["prevent"]),
|
|
2804
2832
|
size: "small",
|
|
2805
2833
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2806
2834
|
}, {
|
|
2807
2835
|
default: b(() => [
|
|
2808
|
-
f(
|
|
2836
|
+
f(m(T), {
|
|
2809
2837
|
icon: "bi:x",
|
|
2810
2838
|
width: "1rem",
|
|
2811
2839
|
height: "1rem",
|
|
@@ -2817,19 +2845,19 @@ const Xt = {
|
|
|
2817
2845
|
])
|
|
2818
2846
|
]),
|
|
2819
2847
|
_: 1
|
|
2820
|
-
}, 16, ["modelValue", "options"])) : (i(),
|
|
2848
|
+
}, 16, ["modelValue", "options"])) : (i(), h(m(de), C({
|
|
2821
2849
|
key: 4,
|
|
2822
2850
|
modelValue: t.value,
|
|
2823
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
|
2851
|
+
"onUpdate:modelValue": o[4] || (o[4] = (r) => t.value = r)
|
|
2824
2852
|
}, a.$attrs), null, 16, ["modelValue"])),
|
|
2825
|
-
a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(),
|
|
2853
|
+
a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), h(d, {
|
|
2826
2854
|
key: 5,
|
|
2827
|
-
onClick:
|
|
2855
|
+
onClick: Y(l, ["prevent"]),
|
|
2828
2856
|
size: "small",
|
|
2829
2857
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
2830
2858
|
}, {
|
|
2831
2859
|
default: b(() => [
|
|
2832
|
-
f(
|
|
2860
|
+
f(m(T), {
|
|
2833
2861
|
icon: "bi:x",
|
|
2834
2862
|
width: "1rem",
|
|
2835
2863
|
height: "1rem",
|
|
@@ -2842,16 +2870,16 @@ const Xt = {
|
|
|
2842
2870
|
};
|
|
2843
2871
|
}
|
|
2844
2872
|
});
|
|
2845
|
-
function
|
|
2846
|
-
const o = t.flatMap((
|
|
2847
|
-
return t = t.map((
|
|
2848
|
-
const
|
|
2849
|
-
let
|
|
2850
|
-
|
|
2851
|
-
file:
|
|
2852
|
-
status:
|
|
2873
|
+
function ge(e, t, l, a) {
|
|
2874
|
+
const o = t.flatMap((s) => s.file);
|
|
2875
|
+
return t = t.map((s) => ({ ...s, status: s.status == "Duplicate" ? "Not Uploaded" : s.status })), e.forEach((s) => {
|
|
2876
|
+
const d = o.findIndex((v) => v.name === s.name);
|
|
2877
|
+
let r = "Not Uploaded";
|
|
2878
|
+
d === -1 ? ((!l.includes(s.type) || !(s.size <= a)) && (r = l.includes(s.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2879
|
+
file: s,
|
|
2880
|
+
status: r,
|
|
2853
2881
|
blobFileName: null
|
|
2854
|
-
})) : t[
|
|
2882
|
+
})) : t[d].status = "Duplicate";
|
|
2855
2883
|
}), t;
|
|
2856
2884
|
}
|
|
2857
2885
|
async function ya(e, t) {
|
|
@@ -2870,22 +2898,22 @@ function ue(e, t = !0, l = 1) {
|
|
|
2870
2898
|
if (Math.abs(e) < a)
|
|
2871
2899
|
return e + " B";
|
|
2872
2900
|
const o = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
2873
|
-
let
|
|
2874
|
-
const
|
|
2901
|
+
let s = -1;
|
|
2902
|
+
const d = 10 ** l;
|
|
2875
2903
|
do
|
|
2876
|
-
e /= a, ++
|
|
2877
|
-
while (Math.round(Math.abs(e) *
|
|
2878
|
-
return e.toFixed(l) + " " + o[
|
|
2904
|
+
e /= a, ++s;
|
|
2905
|
+
while (Math.round(Math.abs(e) * d) / d >= a && s < o.length - 1);
|
|
2906
|
+
return e.toFixed(l) + " " + o[s];
|
|
2879
2907
|
}
|
|
2880
|
-
function
|
|
2908
|
+
function ba(e) {
|
|
2881
2909
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
2882
2910
|
}
|
|
2883
|
-
function
|
|
2911
|
+
function fa(e) {
|
|
2884
2912
|
return URL.createObjectURL(e);
|
|
2885
2913
|
}
|
|
2886
|
-
const
|
|
2914
|
+
const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disabled", "multiple"], wa = /* @__PURE__ */ V({
|
|
2887
2915
|
__name: "UploadButton",
|
|
2888
|
-
props: /* @__PURE__ */
|
|
2916
|
+
props: /* @__PURE__ */ j({
|
|
2889
2917
|
acceptedFileTypes: {},
|
|
2890
2918
|
maxFileInput: {},
|
|
2891
2919
|
showDragDropArea: { type: Boolean }
|
|
@@ -2895,54 +2923,54 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
2895
2923
|
}),
|
|
2896
2924
|
emits: ["update:modelValue"],
|
|
2897
2925
|
setup(e) {
|
|
2898
|
-
const t = E(e, "modelValue"), l =
|
|
2899
|
-
t.value =
|
|
2926
|
+
const t = E(e, "modelValue"), l = k(() => e.maxFileInput <= t.value.length), a = (o) => {
|
|
2927
|
+
t.value = ge(o, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2900
2928
|
};
|
|
2901
|
-
return (o,
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2929
|
+
return (o, s) => (i(), y("div", ga, [
|
|
2930
|
+
B(o.$slots, "message"),
|
|
2931
|
+
c("div", null, [
|
|
2932
|
+
c("input", {
|
|
2905
2933
|
id: "file-input",
|
|
2906
2934
|
type: "file",
|
|
2907
2935
|
class: "d-none",
|
|
2908
2936
|
accept: o.acceptedFileTypes.join(", "),
|
|
2909
2937
|
disabled: l.value,
|
|
2910
2938
|
multiple: o.maxFileInput > 1,
|
|
2911
|
-
onInput:
|
|
2912
|
-
}, null, 40,
|
|
2913
|
-
|
|
2914
|
-
class:
|
|
2939
|
+
onInput: s[0] || (s[0] = (d) => a([...d.target.files]))
|
|
2940
|
+
}, null, 40, ha),
|
|
2941
|
+
c("label", {
|
|
2942
|
+
class: F([{ disabled: l.value }, "btn btn-primary"]),
|
|
2915
2943
|
id: "file-input-button",
|
|
2916
2944
|
for: "file-input"
|
|
2917
2945
|
}, [
|
|
2918
|
-
|
|
2919
|
-
f(
|
|
2946
|
+
B(o.$slots, "button-content", {}, () => [
|
|
2947
|
+
f(m(T), {
|
|
2920
2948
|
icon: "bi:upload",
|
|
2921
2949
|
class: "me-2",
|
|
2922
2950
|
height: "20px",
|
|
2923
2951
|
width: "20px"
|
|
2924
2952
|
}),
|
|
2925
|
-
|
|
2953
|
+
O(" Browse your computer ")
|
|
2926
2954
|
])
|
|
2927
2955
|
], 2)
|
|
2928
2956
|
]),
|
|
2929
|
-
o.showDragDropArea ? (i(),
|
|
2957
|
+
o.showDragDropArea ? (i(), y("div", {
|
|
2930
2958
|
class: "ms-auto",
|
|
2931
2959
|
key: o.acceptedFileTypes.length,
|
|
2932
2960
|
id: "accepted-file-types"
|
|
2933
|
-
}, "Accepted File Types: " +
|
|
2961
|
+
}, "Accepted File Types: " + w(o.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
|
|
2934
2962
|
]));
|
|
2935
2963
|
}
|
|
2936
|
-
}),
|
|
2964
|
+
}), xa = {
|
|
2937
2965
|
key: 0,
|
|
2938
2966
|
class: "py-4 px-3",
|
|
2939
2967
|
id: "placeholder-message"
|
|
2940
|
-
},
|
|
2968
|
+
}, ka = {
|
|
2941
2969
|
key: 1,
|
|
2942
2970
|
class: "d-flex flex-column"
|
|
2943
|
-
},
|
|
2971
|
+
}, $a = /* @__PURE__ */ V({
|
|
2944
2972
|
__name: "DragDropArea",
|
|
2945
|
-
props: /* @__PURE__ */
|
|
2973
|
+
props: /* @__PURE__ */ j({
|
|
2946
2974
|
maxFileInput: {},
|
|
2947
2975
|
maxFileSize: {},
|
|
2948
2976
|
acceptedFileTypes: {}
|
|
@@ -2952,30 +2980,30 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
2952
2980
|
}),
|
|
2953
2981
|
emits: ["update:modelValue"],
|
|
2954
2982
|
setup(e) {
|
|
2955
|
-
const t = E(e, "modelValue"), l = I(!1), a =
|
|
2956
|
-
l.value = !1,
|
|
2983
|
+
const t = E(e, "modelValue"), l = I(!1), a = k(() => e.maxFileInput <= t.value.length), o = (s) => {
|
|
2984
|
+
l.value = !1, s.dataTransfer.files.length > e.maxFileInput || a.value ? s.preventDefault() : t.value = ge([...s.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
|
|
2957
2985
|
};
|
|
2958
|
-
return (
|
|
2986
|
+
return (s, d) => (i(), y("div", {
|
|
2959
2987
|
id: "drag-drop-area",
|
|
2960
|
-
class:
|
|
2961
|
-
onDragleave:
|
|
2962
|
-
onDragover:
|
|
2963
|
-
onDrop:
|
|
2988
|
+
class: F(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
2989
|
+
onDragleave: d[0] || (d[0] = Y((r) => l.value = !1, ["prevent"])),
|
|
2990
|
+
onDragover: d[1] || (d[1] = Y((r) => l.value = !0, ["prevent"])),
|
|
2991
|
+
onDrop: Y(o, ["prevent"])
|
|
2964
2992
|
}, [
|
|
2965
|
-
t.value.length === 0 ? (i(),
|
|
2966
|
-
f(
|
|
2993
|
+
t.value.length === 0 ? (i(), y("div", xa, [
|
|
2994
|
+
f(m(T), {
|
|
2967
2995
|
icon: "bi:upload",
|
|
2968
2996
|
class: "me-2",
|
|
2969
2997
|
height: "20px",
|
|
2970
2998
|
width: "20px"
|
|
2971
2999
|
}),
|
|
2972
|
-
|
|
2973
|
-
])) : (i(),
|
|
2974
|
-
|
|
3000
|
+
O(" Drag and drop files here ")
|
|
3001
|
+
])) : (i(), y("div", ka, [
|
|
3002
|
+
B(s.$slots, "default")
|
|
2975
3003
|
]))
|
|
2976
3004
|
], 34));
|
|
2977
3005
|
}
|
|
2978
|
-
}),
|
|
3006
|
+
}), Ba = { class: "d-flex align-items-center me-2" }, _a = /* @__PURE__ */ V({
|
|
2979
3007
|
__name: "UploadStatus",
|
|
2980
3008
|
props: {
|
|
2981
3009
|
fileSize: {},
|
|
@@ -2984,7 +3012,7 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
2984
3012
|
uploadStatus: {}
|
|
2985
3013
|
},
|
|
2986
3014
|
setup(e) {
|
|
2987
|
-
const t =
|
|
3015
|
+
const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = k(() => {
|
|
2988
3016
|
switch (e.uploadStatus) {
|
|
2989
3017
|
case "InvalidFileType":
|
|
2990
3018
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -3000,43 +3028,43 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
3000
3028
|
return "Upload Failed: Connection error, please try again.";
|
|
3001
3029
|
}
|
|
3002
3030
|
});
|
|
3003
|
-
return (a, o) => (i(),
|
|
3004
|
-
a.uploadStatus === "Uploading" ? (i(),
|
|
3031
|
+
return (a, o) => (i(), y("div", Ba, [
|
|
3032
|
+
a.uploadStatus === "Uploading" ? (i(), h(Gt, {
|
|
3005
3033
|
key: 0,
|
|
3006
3034
|
pixelWidth: 200,
|
|
3007
3035
|
animate: "",
|
|
3008
3036
|
striped: ""
|
|
3009
3037
|
}, {
|
|
3010
3038
|
default: b(() => [
|
|
3011
|
-
|
|
3039
|
+
O(w((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
|
|
3012
3040
|
]),
|
|
3013
3041
|
_: 1
|
|
3014
3042
|
})) : S("", !0),
|
|
3015
|
-
a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (i(),
|
|
3043
|
+
a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (i(), h(se, {
|
|
3016
3044
|
key: 1,
|
|
3017
3045
|
id: "upload-status-alert",
|
|
3018
3046
|
severity: t.value,
|
|
3019
3047
|
class: "mb-0 w-75 ms-auto"
|
|
3020
3048
|
}, {
|
|
3021
3049
|
default: b(() => [
|
|
3022
|
-
|
|
3050
|
+
O(w(l.value), 1)
|
|
3023
3051
|
]),
|
|
3024
3052
|
_: 1
|
|
3025
3053
|
}, 8, ["severity"])) : S("", !0)
|
|
3026
3054
|
]));
|
|
3027
3055
|
}
|
|
3028
|
-
}),
|
|
3056
|
+
}), Fa = ["data-cy"], Va = { class: "ms-3 d-flex flex-column" }, Sa = {
|
|
3029
3057
|
key: 1,
|
|
3030
3058
|
id: "file-name"
|
|
3031
|
-
},
|
|
3059
|
+
}, Ca = {
|
|
3032
3060
|
class: "text-black-50",
|
|
3033
3061
|
id: "file-type"
|
|
3034
|
-
},
|
|
3062
|
+
}, Ta = {
|
|
3035
3063
|
class: "text-black-50",
|
|
3036
3064
|
id: "file-size"
|
|
3037
|
-
},
|
|
3065
|
+
}, Pa = { class: "ms-auto my-auto d-flex" }, Ma = /* @__PURE__ */ V({
|
|
3038
3066
|
__name: "FileInfo",
|
|
3039
|
-
props: /* @__PURE__ */
|
|
3067
|
+
props: /* @__PURE__ */ j({
|
|
3040
3068
|
editableFileName: { type: Boolean },
|
|
3041
3069
|
acceptedFileTypes: {},
|
|
3042
3070
|
maxFileSize: {},
|
|
@@ -3051,29 +3079,29 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
3051
3079
|
uploadStatus: { required: !0 },
|
|
3052
3080
|
uploadStatusModifiers: {}
|
|
3053
3081
|
}),
|
|
3054
|
-
emits: /* @__PURE__ */
|
|
3082
|
+
emits: /* @__PURE__ */ j(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
3055
3083
|
setup(e, { emit: t }) {
|
|
3056
|
-
const l = E(e, "file"), a = E(e, "blobFileName"), o = E(e, "uploadStatus"),
|
|
3057
|
-
l.value = new File([l.value],
|
|
3084
|
+
const l = E(e, "file"), a = E(e, "blobFileName"), o = E(e, "uploadStatus"), s = t, d = I(l.value.name), r = I(""), v = I(0), u = I(), n = k(() => e.acceptedFileTypes.includes(l.value.type)), p = k(() => l.value.size <= e.maxFileSize), x = () => {
|
|
3085
|
+
l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
3058
3086
|
}, _ = async () => {
|
|
3059
|
-
if (!
|
|
3060
|
-
o.value =
|
|
3087
|
+
if (!n.value || !p.value) {
|
|
3088
|
+
o.value = n.value ? "InvalidFileSize" : "InvalidFileType";
|
|
3061
3089
|
return;
|
|
3062
3090
|
}
|
|
3063
|
-
o.value = "Preparing",
|
|
3064
|
-
const [
|
|
3065
|
-
if (!
|
|
3091
|
+
o.value = "Preparing", u.value = new AbortController();
|
|
3092
|
+
const [M, z] = await e.getFileUrlAction(l.value.name);
|
|
3093
|
+
if (!M) {
|
|
3066
3094
|
o.value = "Failed";
|
|
3067
3095
|
return;
|
|
3068
3096
|
}
|
|
3069
3097
|
try {
|
|
3070
3098
|
o.value = "Uploading";
|
|
3071
|
-
const g = new pe(
|
|
3072
|
-
abortSignal:
|
|
3073
|
-
onProgress: (
|
|
3099
|
+
const g = new pe(M), $ = {
|
|
3100
|
+
abortSignal: u.value.signal,
|
|
3101
|
+
onProgress: (G) => v.value = G.loadedBytes,
|
|
3074
3102
|
tags: { temp: "true" }
|
|
3075
3103
|
};
|
|
3076
|
-
await g.uploadData(l.value,
|
|
3104
|
+
await g.uploadData(l.value, $), r.value = M, o.value = "Uploaded", a.value = z;
|
|
3077
3105
|
} catch (g) {
|
|
3078
3106
|
if (g.name === "AbortError") {
|
|
3079
3107
|
o.value = "Aborted";
|
|
@@ -3082,26 +3110,26 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
3082
3110
|
o.value = "Failed";
|
|
3083
3111
|
}
|
|
3084
3112
|
}, P = async () => {
|
|
3085
|
-
await ya(o.value,
|
|
3113
|
+
await ya(o.value, r.value), s("deleted", l.value);
|
|
3086
3114
|
};
|
|
3087
3115
|
return ae(() => {
|
|
3088
3116
|
e.autoUploadToBlob && _();
|
|
3089
|
-
}), (
|
|
3117
|
+
}), (M, z) => {
|
|
3090
3118
|
const g = R;
|
|
3091
|
-
return i(),
|
|
3119
|
+
return i(), y("div", {
|
|
3092
3120
|
class: "py-4 px-3 d-flex",
|
|
3093
3121
|
"data-cy": `file-info-${l.value.name}`
|
|
3094
3122
|
}, [
|
|
3095
|
-
|
|
3096
|
-
|
|
3123
|
+
c("div", null, [
|
|
3124
|
+
m(ba)(l.value.type) ? (i(), h(m(Ue), {
|
|
3097
3125
|
key: 0,
|
|
3098
3126
|
id: "thumbnail-image",
|
|
3099
3127
|
"image-class": "image-file-thumbnail border",
|
|
3100
|
-
src:
|
|
3128
|
+
src: m(fa)(l.value),
|
|
3101
3129
|
alt: l.value.name,
|
|
3102
3130
|
width: "75px",
|
|
3103
3131
|
preview: ""
|
|
3104
|
-
}, null, 8, ["src", "alt"])) : (i(),
|
|
3132
|
+
}, null, 8, ["src", "alt"])) : (i(), h(m(T), {
|
|
3105
3133
|
key: 1,
|
|
3106
3134
|
id: "file-earmark",
|
|
3107
3135
|
icon: "bi:file-earmark",
|
|
@@ -3109,78 +3137,78 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
3109
3137
|
width: "75px"
|
|
3110
3138
|
}))
|
|
3111
3139
|
]),
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3140
|
+
c("div", Va, [
|
|
3141
|
+
c("div", null, [
|
|
3142
|
+
M.editableFileName ? (i(), h(Bt, {
|
|
3115
3143
|
key: 0,
|
|
3116
3144
|
id: "edit-file-name",
|
|
3117
|
-
modelValue:
|
|
3118
|
-
"onUpdate:modelValue":
|
|
3119
|
-
rules:
|
|
3145
|
+
modelValue: d.value,
|
|
3146
|
+
"onUpdate:modelValue": z[0] || (z[0] = ($) => d.value = $),
|
|
3147
|
+
rules: M.customFileNameRules,
|
|
3120
3148
|
name: l.value.name,
|
|
3121
|
-
"complete-action":
|
|
3122
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (i(),
|
|
3149
|
+
"complete-action": x
|
|
3150
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span", Sa, w(l.value.name), 1))
|
|
3123
3151
|
]),
|
|
3124
|
-
|
|
3125
|
-
|
|
3152
|
+
c("span", Ca, "File type: " + w(l.value.type.split("/").pop()), 1),
|
|
3153
|
+
c("span", Ta, "File size: " + w(m(ue)(l.value.size)), 1)
|
|
3126
3154
|
]),
|
|
3127
|
-
|
|
3128
|
-
(i(),
|
|
3155
|
+
c("div", Pa, [
|
|
3156
|
+
(i(), h(_a, {
|
|
3129
3157
|
key: o.value,
|
|
3130
3158
|
"file-size": l.value.size,
|
|
3131
3159
|
"upload-status": o.value,
|
|
3132
|
-
"bytes-uploaded":
|
|
3133
|
-
"max-file-size":
|
|
3160
|
+
"bytes-uploaded": v.value,
|
|
3161
|
+
"max-file-size": M.maxFileSize
|
|
3134
3162
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
3135
|
-
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (i(),
|
|
3163
|
+
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (i(), h(g, {
|
|
3136
3164
|
key: 0,
|
|
3137
3165
|
link: "",
|
|
3138
3166
|
onClick: _
|
|
3139
3167
|
}, {
|
|
3140
3168
|
default: b(() => [
|
|
3141
|
-
f(
|
|
3169
|
+
f(m(T), {
|
|
3142
3170
|
icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
3143
3171
|
}, null, 8, ["icon"])
|
|
3144
3172
|
]),
|
|
3145
3173
|
_: 1
|
|
3146
3174
|
})) : S("", !0),
|
|
3147
|
-
o.value === "Uploading" ? (i(),
|
|
3175
|
+
o.value === "Uploading" ? (i(), h(g, {
|
|
3148
3176
|
key: 1,
|
|
3149
3177
|
link: "",
|
|
3150
|
-
onClick:
|
|
3178
|
+
onClick: z[1] || (z[1] = ($) => u.value.value.abort())
|
|
3151
3179
|
}, {
|
|
3152
3180
|
default: b(() => [
|
|
3153
|
-
f(
|
|
3181
|
+
f(m(T), { icon: "bi:x-circle-fill" })
|
|
3154
3182
|
]),
|
|
3155
3183
|
_: 1
|
|
3156
|
-
})) : (i(),
|
|
3184
|
+
})) : (i(), h(g, {
|
|
3157
3185
|
key: 2,
|
|
3158
3186
|
link: "",
|
|
3159
3187
|
onClick: P,
|
|
3160
3188
|
id: "delete-button"
|
|
3161
3189
|
}, {
|
|
3162
3190
|
default: b(() => [
|
|
3163
|
-
f(
|
|
3191
|
+
f(m(T), { icon: "bi:trash" })
|
|
3164
3192
|
]),
|
|
3165
3193
|
_: 1
|
|
3166
3194
|
}))
|
|
3167
3195
|
])
|
|
3168
|
-
], 8,
|
|
3196
|
+
], 8, Fa);
|
|
3169
3197
|
};
|
|
3170
3198
|
}
|
|
3171
|
-
}), Ia = { class: "d-flex justify-content-end mt-1" },
|
|
3199
|
+
}), Ia = { class: "d-flex justify-content-end mt-1" }, za = { id: "max-file-size" }, Oa = /* @__PURE__ */ V({
|
|
3172
3200
|
__name: "MaxFileSize",
|
|
3173
3201
|
props: {
|
|
3174
3202
|
maxFileSize: {}
|
|
3175
3203
|
},
|
|
3176
3204
|
setup(e) {
|
|
3177
|
-
return (t, l) => (i(),
|
|
3178
|
-
|
|
3205
|
+
return (t, l) => (i(), y("div", Ia, [
|
|
3206
|
+
c("div", za, "Max file size: " + w(m(ue)(t.maxFileSize)), 1)
|
|
3179
3207
|
]));
|
|
3180
3208
|
}
|
|
3181
|
-
}),
|
|
3209
|
+
}), Da = { "data-cy": "file-uploader" }, Ua = { key: 0 }, Vl = /* @__PURE__ */ V({
|
|
3182
3210
|
__name: "ForgeFileUploader",
|
|
3183
|
-
props: /* @__PURE__ */
|
|
3211
|
+
props: /* @__PURE__ */ j({
|
|
3184
3212
|
acceptedFileTypes: {},
|
|
3185
3213
|
maxFileSize: {},
|
|
3186
3214
|
getFileUrlAction: {},
|
|
@@ -3196,39 +3224,39 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
3196
3224
|
emits: ["update:modelValue"],
|
|
3197
3225
|
setup(e) {
|
|
3198
3226
|
const t = E(e, "modelValue"), l = e, a = (o) => {
|
|
3199
|
-
t.value = t.value.filter((
|
|
3227
|
+
t.value = t.value.filter((s) => s.file != o);
|
|
3200
3228
|
};
|
|
3201
|
-
return (o,
|
|
3202
|
-
f(
|
|
3229
|
+
return (o, s) => (i(), y("div", Da, [
|
|
3230
|
+
f(wa, C(l, {
|
|
3203
3231
|
modelValue: t.value,
|
|
3204
|
-
"onUpdate:modelValue":
|
|
3232
|
+
"onUpdate:modelValue": s[0] || (s[0] = (d) => t.value = d)
|
|
3205
3233
|
}), null, 16, ["modelValue"]),
|
|
3206
|
-
o.showDragDropArea ? (i(),
|
|
3207
|
-
f(
|
|
3234
|
+
o.showDragDropArea ? (i(), y("div", Ua, [
|
|
3235
|
+
f($a, {
|
|
3208
3236
|
"max-file-input": l.maxFileInput,
|
|
3209
3237
|
"max-file-size": l.maxFileSize,
|
|
3210
3238
|
"accepted-file-types": l.acceptedFileTypes,
|
|
3211
3239
|
modelValue: t.value,
|
|
3212
|
-
"onUpdate:modelValue":
|
|
3240
|
+
"onUpdate:modelValue": s[1] || (s[1] = (d) => t.value = d)
|
|
3213
3241
|
}, {
|
|
3214
3242
|
default: b(() => [
|
|
3215
|
-
(i(!0),
|
|
3216
|
-
(i(),
|
|
3217
|
-
key:
|
|
3218
|
-
class:
|
|
3219
|
-
file: t.value[
|
|
3220
|
-
"onUpdate:file": (
|
|
3221
|
-
"blob-file-name": t.value[
|
|
3222
|
-
"onUpdate:blobFileName": (
|
|
3223
|
-
"upload-status": t.value[
|
|
3224
|
-
"onUpdate:uploadStatus": (
|
|
3243
|
+
(i(!0), y(N, null, q(t.value, ({ file: d }, r) => (i(), y("span", null, [
|
|
3244
|
+
(i(), h(Ma, C({
|
|
3245
|
+
key: d.name,
|
|
3246
|
+
class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
3247
|
+
file: t.value[r].file,
|
|
3248
|
+
"onUpdate:file": (v) => t.value[r].file = v,
|
|
3249
|
+
"blob-file-name": t.value[r].blobFileName,
|
|
3250
|
+
"onUpdate:blobFileName": (v) => t.value[r].blobFileName = v,
|
|
3251
|
+
"upload-status": t.value[r].status,
|
|
3252
|
+
"onUpdate:uploadStatus": (v) => t.value[r].status = v,
|
|
3225
3253
|
ref_for: !0
|
|
3226
3254
|
}, l, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
3227
3255
|
]))), 256))
|
|
3228
3256
|
]),
|
|
3229
3257
|
_: 1
|
|
3230
3258
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
3231
|
-
f(
|
|
3259
|
+
f(Oa, {
|
|
3232
3260
|
"max-file-size": l.maxFileSize
|
|
3233
3261
|
}, null, 8, ["max-file-size"])
|
|
3234
3262
|
])) : S("", !0)
|
|
@@ -3236,28 +3264,28 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
3236
3264
|
}
|
|
3237
3265
|
});
|
|
3238
3266
|
export {
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3267
|
+
cl as Bootstrap_PT,
|
|
3268
|
+
ml as ForgeActionButton,
|
|
3269
|
+
se as ForgeAlert,
|
|
3270
|
+
ve as ForgeCheckbox,
|
|
3271
|
+
xl as ForgeChips,
|
|
3272
|
+
fe as ForgeDatepicker,
|
|
3273
|
+
Vl as ForgeFileUploader,
|
|
3274
|
+
Fl as ForgeFilterHeader,
|
|
3275
|
+
hl as ForgeForm,
|
|
3276
|
+
wl as ForgeFormField,
|
|
3277
|
+
Bt as ForgeInlineEditor,
|
|
3278
|
+
pl as ForgeLink,
|
|
3279
|
+
ye as ForgeLoader,
|
|
3280
|
+
vl as ForgeModal,
|
|
3281
|
+
be as ForgeMultiSelect,
|
|
3282
|
+
bl as ForgeMultiSelectPreview,
|
|
3255
3283
|
yl as ForgeNavbar,
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3284
|
+
fl as ForgePageHeader,
|
|
3285
|
+
Gt as ForgeProgressBar,
|
|
3286
|
+
gl as ForgeRemainingCharacters,
|
|
3287
|
+
kl as ForgeStatWidget,
|
|
3288
|
+
$l as ForgeStepper,
|
|
3289
|
+
_l as ForgeTable,
|
|
3290
|
+
Bl as ForgeTile
|
|
3263
3291
|
};
|