@3squared/forge-ui-3 0.7.0 → 0.7.2
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 +311 -290
- package/dist/esm/style.css +1 -1
- package/dist/src/components/ForgeChips.vue.d.ts +0 -2
- package/dist/src/components/ForgeDatepicker.vue.d.ts +3 -0
- package/dist/src/components/ForgeInlineEditor.vue.d.ts +1 -10
- package/dist/src/components/ForgeMultiSelect.vue.d.ts +0 -2
- package/dist/src/components/table/ForgeFilterHeader.vue.d.ts +1 -1
- package/dist/src/passthroughs/Column.pt.d.ts +1 -0
- package/dist/src/passthroughs/Multiselect.pt.d.ts +23 -0
- package/package.json +2 -2
- package/src/styles/components/_multiselect.scss +4 -0
- package/src/styles/components/_table.scss +4 -0
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as F, openBlock as s, createBlock as k, normalizeProps as
|
|
1
|
+
import fe from "primevue/message";
|
|
2
|
+
import { defineComponent as F, openBlock as s, createBlock as k, normalizeProps as K, guardReactiveProps as te, withCtx as g, createElementVNode as u, normalizeClass as B, unref as c, createCommentVNode as C, createVNode as b, renderSlot as _, ref as I, createElementBlock as v, Fragment as N, mergeProps as V, onMounted as ae, watch as ie, computed as w, isRef as le, createTextVNode as z, toDisplayString as h, withDirectives as L, vShow as q, mergeModels as H, useModel as E, createSlots as oe, renderList as j, withKeys as Q, useAttrs as ce, withModifiers as G, normalizeStyle as ge } from "vue";
|
|
3
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
|
|
5
|
+
import he from "primevue/toast";
|
|
6
|
+
import we from "primevue/checkbox";
|
|
7
|
+
import { useField as Z } from "vee-validate";
|
|
8
|
+
import xe from "primevue/progressspinner";
|
|
9
|
+
import ke from "primevue/dialog";
|
|
10
10
|
import re from "primevue/inputtext";
|
|
11
|
-
import { vOnClickOutside as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
11
|
+
import { vOnClickOutside as _e } from "@vueuse/components";
|
|
12
|
+
import $e from "primevue/menubar";
|
|
13
|
+
import Be from "vue-multiselect";
|
|
14
|
+
import Fe from "primevue/calendar";
|
|
15
|
+
import Se from "primevue/inputmask";
|
|
16
|
+
import Ce from "primevue/textarea";
|
|
17
|
+
import me from "primevue/inputnumber";
|
|
18
|
+
import Ve from "primevue/chips";
|
|
19
|
+
import Te from "primevue/progressbar";
|
|
20
|
+
import Pe from "primevue/divider";
|
|
21
21
|
import Ie from "primevue/steps";
|
|
22
|
-
import
|
|
22
|
+
import Me from "primevue/datatable";
|
|
23
23
|
import de from "primevue/dropdown";
|
|
24
|
-
import
|
|
25
|
-
import { BlockBlobClient as
|
|
26
|
-
import
|
|
27
|
-
const
|
|
24
|
+
import ze from "primevue/multiselect";
|
|
25
|
+
import { BlockBlobClient as pe } from "@azure/storage-blob";
|
|
26
|
+
import Oe from "primevue/image";
|
|
27
|
+
const De = {
|
|
28
28
|
button: {
|
|
29
29
|
root: ({ props: e }) => ({
|
|
30
30
|
class: [
|
|
@@ -108,7 +108,7 @@ const Ue = {
|
|
|
108
108
|
]
|
|
109
109
|
})
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, Ue = {
|
|
112
112
|
checkbox: {
|
|
113
113
|
root: () => ({
|
|
114
114
|
class: [
|
|
@@ -126,7 +126,7 @@ const Ue = {
|
|
|
126
126
|
]
|
|
127
127
|
})
|
|
128
128
|
}
|
|
129
|
-
},
|
|
129
|
+
}, Ae = {
|
|
130
130
|
dropdown: {
|
|
131
131
|
root: ({ props: e }) => ({
|
|
132
132
|
class: [
|
|
@@ -192,11 +192,13 @@ const Ue = {
|
|
|
192
192
|
headerCell: (e) => {
|
|
193
193
|
var t, l, a, o;
|
|
194
194
|
return {
|
|
195
|
-
class: [
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
195
|
+
class: [
|
|
196
|
+
{
|
|
197
|
+
"cursor-move": e.props.reorderableColumns,
|
|
198
|
+
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((l = e.column) == null ? void 0 : l.context.frozen) || ((a = e.column) == null ? void 0 : a.context.frozen) === "",
|
|
199
|
+
"overflow-hidden position-relative bg-clip-padding": (o = e.column) == null ? void 0 : o.context.resizable
|
|
200
|
+
}
|
|
201
|
+
]
|
|
200
202
|
};
|
|
201
203
|
},
|
|
202
204
|
roweditorinitbutton: "btn",
|
|
@@ -241,7 +243,8 @@ const Ue = {
|
|
|
241
243
|
"list-unstyled"
|
|
242
244
|
]
|
|
243
245
|
},
|
|
244
|
-
columnfilter: "d-flex",
|
|
246
|
+
columnfilter: "d-flex w-100",
|
|
247
|
+
filterinput: "w-100",
|
|
245
248
|
filterRowItem: (e) => {
|
|
246
249
|
var t;
|
|
247
250
|
return {
|
|
@@ -454,7 +457,7 @@ const Ue = {
|
|
|
454
457
|
}, Ze = {
|
|
455
458
|
// More PassThrough options defined in ForgeDatepicker.
|
|
456
459
|
calendar: {
|
|
457
|
-
root: "d-inline-flex relative",
|
|
460
|
+
root: "d-inline-flex relative w-100",
|
|
458
461
|
input: "form-control",
|
|
459
462
|
panel: ({ props: e }) => ({
|
|
460
463
|
class: [
|
|
@@ -525,6 +528,28 @@ const Ue = {
|
|
|
525
528
|
incrementButton: "btn btn-sm"
|
|
526
529
|
}
|
|
527
530
|
}, Je = {
|
|
531
|
+
multiselect: {
|
|
532
|
+
root: ({ props: e }) => ({
|
|
533
|
+
class: [
|
|
534
|
+
"form-control d-flex cursor-pointer w-100",
|
|
535
|
+
{
|
|
536
|
+
disabled: e.disabled
|
|
537
|
+
}
|
|
538
|
+
]
|
|
539
|
+
}),
|
|
540
|
+
panel: "dropdown-menu show",
|
|
541
|
+
list: "list-unstyled mb-0",
|
|
542
|
+
item: "dropdown-item d-flex cursor-pointer",
|
|
543
|
+
header: "d-flex",
|
|
544
|
+
filterContainer: "d-flex w-100",
|
|
545
|
+
filterIcon: "d-none",
|
|
546
|
+
filterInput: "form-control form-control-sm my-2 mx-3",
|
|
547
|
+
closeButton: "d-none",
|
|
548
|
+
hiddenInput: "d-none",
|
|
549
|
+
emptymessage: "mx-3 my-2",
|
|
550
|
+
trigger: "ms-auto"
|
|
551
|
+
}
|
|
552
|
+
}, Xe = {
|
|
528
553
|
// More PassThrough options in component file.
|
|
529
554
|
progressbar: {
|
|
530
555
|
root: () => ({
|
|
@@ -537,7 +562,7 @@ const Ue = {
|
|
|
537
562
|
class: ["text-white"]
|
|
538
563
|
})
|
|
539
564
|
}
|
|
540
|
-
},
|
|
565
|
+
}, Qe = {
|
|
541
566
|
// More PT options can be found in the ForgeTable file.
|
|
542
567
|
dataTable: {
|
|
543
568
|
datatable: "position-relative",
|
|
@@ -597,7 +622,7 @@ const Ue = {
|
|
|
597
622
|
]
|
|
598
623
|
})
|
|
599
624
|
}
|
|
600
|
-
},
|
|
625
|
+
}, et = {
|
|
601
626
|
badge: {
|
|
602
627
|
root: ({ props: e }) => ({
|
|
603
628
|
class: [
|
|
@@ -618,7 +643,7 @@ const Ue = {
|
|
|
618
643
|
]
|
|
619
644
|
})
|
|
620
645
|
}
|
|
621
|
-
},
|
|
646
|
+
}, tt = {
|
|
622
647
|
// More PassThrough options in component file.
|
|
623
648
|
menubar: {
|
|
624
649
|
menu: ({ instance: e }) => ({
|
|
@@ -688,7 +713,7 @@ const Ue = {
|
|
|
688
713
|
]
|
|
689
714
|
})
|
|
690
715
|
}
|
|
691
|
-
},
|
|
716
|
+
}, at = {
|
|
692
717
|
tooltip: {
|
|
693
718
|
root: ({ context: e }) => ({
|
|
694
719
|
class: [
|
|
@@ -710,7 +735,7 @@ const Ue = {
|
|
|
710
735
|
class: ["tooltip-inner"]
|
|
711
736
|
}
|
|
712
737
|
}
|
|
713
|
-
},
|
|
738
|
+
}, lt = {
|
|
714
739
|
selectbutton: {
|
|
715
740
|
root: () => ({
|
|
716
741
|
class: ["btn-group"]
|
|
@@ -728,7 +753,7 @@ const Ue = {
|
|
|
728
753
|
]
|
|
729
754
|
})
|
|
730
755
|
}
|
|
731
|
-
},
|
|
756
|
+
}, ot = {
|
|
732
757
|
progressspinner: {
|
|
733
758
|
spinner: () => ({
|
|
734
759
|
class: [
|
|
@@ -736,7 +761,7 @@ const Ue = {
|
|
|
736
761
|
]
|
|
737
762
|
})
|
|
738
763
|
}
|
|
739
|
-
},
|
|
764
|
+
}, nt = {
|
|
740
765
|
card: {
|
|
741
766
|
root: () => ({
|
|
742
767
|
class: ["card"]
|
|
@@ -760,11 +785,11 @@ const Ue = {
|
|
|
760
785
|
class: ["card-header"]
|
|
761
786
|
})
|
|
762
787
|
}
|
|
763
|
-
},
|
|
788
|
+
}, st = {
|
|
764
789
|
divider: {
|
|
765
790
|
root: "border-bottom m-4 w-100"
|
|
766
791
|
}
|
|
767
|
-
},
|
|
792
|
+
}, it = {
|
|
768
793
|
image: {
|
|
769
794
|
root: "position-relative d-inline-block",
|
|
770
795
|
button: "preview-button",
|
|
@@ -777,7 +802,7 @@ const Ue = {
|
|
|
777
802
|
zoominbutton: "btn text-white",
|
|
778
803
|
closebutton: "btn text-white"
|
|
779
804
|
}
|
|
780
|
-
},
|
|
805
|
+
}, rt = {
|
|
781
806
|
toast: {
|
|
782
807
|
message: () => ({
|
|
783
808
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -815,35 +840,35 @@ const Ue = {
|
|
|
815
840
|
};
|
|
816
841
|
}
|
|
817
842
|
}
|
|
818
|
-
},
|
|
819
|
-
...
|
|
843
|
+
}, il = {
|
|
844
|
+
...et,
|
|
845
|
+
...De,
|
|
846
|
+
...nt,
|
|
820
847
|
...Ue,
|
|
821
|
-
...ot,
|
|
822
|
-
...Ae,
|
|
823
848
|
...je,
|
|
824
849
|
...Ne,
|
|
825
850
|
...Ze,
|
|
826
851
|
...Ye,
|
|
827
|
-
...nt,
|
|
828
|
-
...ce,
|
|
829
852
|
...st,
|
|
853
|
+
...Ae,
|
|
854
|
+
...it,
|
|
830
855
|
...Ee,
|
|
831
856
|
...Re,
|
|
832
857
|
...Le,
|
|
833
858
|
...Ge,
|
|
834
|
-
...ce,
|
|
835
|
-
...et,
|
|
836
|
-
...qe,
|
|
837
859
|
...Je,
|
|
860
|
+
...tt,
|
|
861
|
+
...qe,
|
|
862
|
+
...Xe,
|
|
863
|
+
...ot,
|
|
838
864
|
...lt,
|
|
839
|
-
...at,
|
|
840
865
|
...Ke,
|
|
841
|
-
...
|
|
866
|
+
...Qe,
|
|
842
867
|
...We,
|
|
843
|
-
...
|
|
868
|
+
...rt,
|
|
844
869
|
...He,
|
|
845
870
|
directives: {
|
|
846
|
-
...
|
|
871
|
+
...at
|
|
847
872
|
}
|
|
848
873
|
}, ne = /* @__PURE__ */ F({
|
|
849
874
|
__name: "ForgeAlert",
|
|
@@ -862,8 +887,8 @@ const Ue = {
|
|
|
862
887
|
setup(e) {
|
|
863
888
|
const t = e;
|
|
864
889
|
return (l, a) => {
|
|
865
|
-
const o =
|
|
866
|
-
return s(), k(o,
|
|
890
|
+
const o = fe;
|
|
891
|
+
return s(), k(o, K(te({ ...l.$attrs, ...t })), {
|
|
867
892
|
messageicon: g(() => [
|
|
868
893
|
u("div", {
|
|
869
894
|
class: B(t.icon ? "me-2 pe-1" : "")
|
|
@@ -887,7 +912,7 @@ const Ue = {
|
|
|
887
912
|
}, 16);
|
|
888
913
|
};
|
|
889
914
|
}
|
|
890
|
-
}),
|
|
915
|
+
}), rl = /* @__PURE__ */ F({
|
|
891
916
|
__name: "ForgeActionButton",
|
|
892
917
|
props: {
|
|
893
918
|
action: {},
|
|
@@ -896,7 +921,7 @@ const Ue = {
|
|
|
896
921
|
params: { default: Array }
|
|
897
922
|
},
|
|
898
923
|
setup(e) {
|
|
899
|
-
const t =
|
|
924
|
+
const t = I(!1), l = e, a = async () => {
|
|
900
925
|
t.value = !0;
|
|
901
926
|
try {
|
|
902
927
|
await l.action.apply(this, l.params);
|
|
@@ -913,11 +938,11 @@ const Ue = {
|
|
|
913
938
|
disabled: t.value || l.disabled,
|
|
914
939
|
onClick: a
|
|
915
940
|
}), null, 16, ["loading", "disabled"]),
|
|
916
|
-
b(c(
|
|
941
|
+
b(c(he))
|
|
917
942
|
], 64);
|
|
918
943
|
};
|
|
919
944
|
}
|
|
920
|
-
}),
|
|
945
|
+
}), dt = /* @__PURE__ */ u("div", null, null, -1), ut = ["for"], ve = /* @__PURE__ */ F({
|
|
921
946
|
__name: "ForgeCheckbox",
|
|
922
947
|
props: {
|
|
923
948
|
label: { default: "" },
|
|
@@ -944,7 +969,7 @@ const Ue = {
|
|
|
944
969
|
},
|
|
945
970
|
emits: ["update:modelValue"],
|
|
946
971
|
setup(e, { emit: t }) {
|
|
947
|
-
const l = t, a = e, { checked: o, handleChange: n, setValue: i, errors: d, errorMessage: y } =
|
|
972
|
+
const l = t, a = e, { checked: o, handleChange: n, setValue: i, errors: d, errorMessage: y } = Z(() => a.name ?? a.label, void 0, {
|
|
948
973
|
type: "checkbox",
|
|
949
974
|
checkedValue: !0
|
|
950
975
|
}), r = (p) => {
|
|
@@ -957,7 +982,7 @@ const Ue = {
|
|
|
957
982
|
});
|
|
958
983
|
const m = w(() => d.value.length > 0);
|
|
959
984
|
return (p, x) => {
|
|
960
|
-
const $ =
|
|
985
|
+
const $ = we;
|
|
961
986
|
return s(), v(N, null, [
|
|
962
987
|
u("div", V({
|
|
963
988
|
class: "d-flex",
|
|
@@ -972,7 +997,7 @@ const Ue = {
|
|
|
972
997
|
onChange: r
|
|
973
998
|
}), {
|
|
974
999
|
icon: g(() => [
|
|
975
|
-
|
|
1000
|
+
dt
|
|
976
1001
|
]),
|
|
977
1002
|
_: 1
|
|
978
1003
|
}, 16, ["id", "modelValue", "input-class"]),
|
|
@@ -984,7 +1009,7 @@ const Ue = {
|
|
|
984
1009
|
_(p.$slots, "default", {}, () => [
|
|
985
1010
|
z(h(a.label), 1)
|
|
986
1011
|
])
|
|
987
|
-
], 10,
|
|
1012
|
+
], 10, ut)
|
|
988
1013
|
], 16),
|
|
989
1014
|
L(u("small", {
|
|
990
1015
|
"data-cy": "error",
|
|
@@ -995,7 +1020,7 @@ const Ue = {
|
|
|
995
1020
|
], 64);
|
|
996
1021
|
};
|
|
997
1022
|
}
|
|
998
|
-
}),
|
|
1023
|
+
}), ct = { class: "forge-loader" }, ye = /* @__PURE__ */ F({
|
|
999
1024
|
__name: "ForgeLoader",
|
|
1000
1025
|
props: {
|
|
1001
1026
|
severity: { default: "primary" }
|
|
@@ -1003,8 +1028,8 @@ const Ue = {
|
|
|
1003
1028
|
setup(e) {
|
|
1004
1029
|
const t = e;
|
|
1005
1030
|
return (l, a) => {
|
|
1006
|
-
const o =
|
|
1007
|
-
return s(), v("div",
|
|
1031
|
+
const o = xe;
|
|
1032
|
+
return s(), v("div", ct, [
|
|
1008
1033
|
b(o, {
|
|
1009
1034
|
"animation-duration": ".75",
|
|
1010
1035
|
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
@@ -1012,7 +1037,7 @@ const Ue = {
|
|
|
1012
1037
|
]);
|
|
1013
1038
|
};
|
|
1014
1039
|
}
|
|
1015
|
-
}),
|
|
1040
|
+
}), mt = ["href", "target"], dl = /* @__PURE__ */ F({
|
|
1016
1041
|
__name: "ForgeLink",
|
|
1017
1042
|
props: {
|
|
1018
1043
|
url: {},
|
|
@@ -1061,10 +1086,10 @@ const Ue = {
|
|
|
1061
1086
|
}, null, 8, ["icon", "class"])) : C("", !0),
|
|
1062
1087
|
z(" " + h(a.label), 1)
|
|
1063
1088
|
])
|
|
1064
|
-
], 10,
|
|
1089
|
+
], 10, mt));
|
|
1065
1090
|
}
|
|
1066
1091
|
});
|
|
1067
|
-
function
|
|
1092
|
+
function pt(e) {
|
|
1068
1093
|
const t = {
|
|
1069
1094
|
errorMessage: "",
|
|
1070
1095
|
errorDetails: []
|
|
@@ -1075,10 +1100,10 @@ function mt(e) {
|
|
|
1075
1100
|
}
|
|
1076
1101
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1077
1102
|
}
|
|
1078
|
-
const
|
|
1103
|
+
const vt = { key: 0 }, yt = {
|
|
1079
1104
|
class: "d-flex w-100",
|
|
1080
1105
|
"data-cy": "footer"
|
|
1081
|
-
},
|
|
1106
|
+
}, ul = /* @__PURE__ */ F({
|
|
1082
1107
|
__name: "ForgeModal",
|
|
1083
1108
|
props: /* @__PURE__ */ H({
|
|
1084
1109
|
cancelText: { default: "Cancel" },
|
|
@@ -1123,7 +1148,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1123
1148
|
}),
|
|
1124
1149
|
emits: ["update:visible"],
|
|
1125
1150
|
setup(e) {
|
|
1126
|
-
const t = E(e, "visible"), l =
|
|
1151
|
+
const t = E(e, "visible"), l = I(!1), a = e, o = I(!1), n = I({
|
|
1127
1152
|
hasError: !1,
|
|
1128
1153
|
header: "",
|
|
1129
1154
|
message: []
|
|
@@ -1141,7 +1166,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1141
1166
|
(p || p == null) && y();
|
|
1142
1167
|
} catch (p) {
|
|
1143
1168
|
n.value.hasError = !0;
|
|
1144
|
-
const x =
|
|
1169
|
+
const x = pt(p);
|
|
1145
1170
|
n.value.header = x.errorMessage, n.value.message = x.errorDetails;
|
|
1146
1171
|
}
|
|
1147
1172
|
o.value = !1;
|
|
@@ -1155,7 +1180,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1155
1180
|
]
|
|
1156
1181
|
}));
|
|
1157
1182
|
return (p, x) => {
|
|
1158
|
-
const $ = R, P =
|
|
1183
|
+
const $ = R, P = ke;
|
|
1159
1184
|
return s(), k(P, V(a, {
|
|
1160
1185
|
onMaximize: d,
|
|
1161
1186
|
onUnmaximize: i,
|
|
@@ -1192,22 +1217,22 @@ const pt = { key: 0 }, vt = {
|
|
|
1192
1217
|
u("p", {
|
|
1193
1218
|
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1194
1219
|
}, h(n.value.header), 3),
|
|
1195
|
-
n.value.message.length > 0 ? (s(), v("ul",
|
|
1196
|
-
(s(!0), v(N, null, j(n.value.message, (
|
|
1220
|
+
n.value.message.length > 0 ? (s(), v("ul", vt, [
|
|
1221
|
+
(s(!0), v(N, null, j(n.value.message, (M) => (s(), v("li", { key: M }, h(M), 1))), 128))
|
|
1197
1222
|
])) : C("", !0)
|
|
1198
1223
|
]),
|
|
1199
1224
|
_: 1
|
|
1200
1225
|
})) : C("", !0),
|
|
1201
|
-
_(p.$slots, O,
|
|
1226
|
+
_(p.$slots, O, K(te(f || {}))),
|
|
1202
1227
|
o.value ? _(p.$slots, "loader", { key: 1 }, () => [
|
|
1203
|
-
b(
|
|
1228
|
+
b(ye, { "data-cy": "loader" })
|
|
1204
1229
|
]) : C("", !0)
|
|
1205
1230
|
])
|
|
1206
1231
|
})),
|
|
1207
1232
|
p.showFooter ? {
|
|
1208
1233
|
name: "footer",
|
|
1209
1234
|
fn: g(() => [
|
|
1210
|
-
u("div",
|
|
1235
|
+
u("div", yt, [
|
|
1211
1236
|
b($, {
|
|
1212
1237
|
label: p.cancelText,
|
|
1213
1238
|
class: B(a.cancelClass),
|
|
@@ -1230,11 +1255,10 @@ const pt = { key: 0 }, vt = {
|
|
|
1230
1255
|
]), 1040, ["pt"]);
|
|
1231
1256
|
};
|
|
1232
1257
|
}
|
|
1233
|
-
}),
|
|
1258
|
+
}), bt = ["id"], ft = { key: 0 }, gt = { key: 0 }, ht = { class: "d-flex justify-content-between align-items-center position-relative" }, wt = { key: 1 }, xt = { "data-cy": "readonly-value" }, kt = /* @__PURE__ */ F({
|
|
1234
1259
|
__name: "ForgeInlineEditor",
|
|
1235
1260
|
props: /* @__PURE__ */ H({
|
|
1236
1261
|
name: { default: "" },
|
|
1237
|
-
rules: {},
|
|
1238
1262
|
completeAction: {},
|
|
1239
1263
|
errorAction: {},
|
|
1240
1264
|
params: { default: Array },
|
|
@@ -1246,7 +1270,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1246
1270
|
}),
|
|
1247
1271
|
emits: ["update:modelValue"],
|
|
1248
1272
|
setup(e) {
|
|
1249
|
-
const t = e, l = E(e, "modelValue"), a =
|
|
1273
|
+
const t = e, l = E(e, "modelValue"), a = I(!1), o = I(), n = () => {
|
|
1250
1274
|
var $;
|
|
1251
1275
|
a.value = !a.value, ($ = o.value) == null || $.focus();
|
|
1252
1276
|
}, i = async () => {
|
|
@@ -1264,7 +1288,9 @@ const pt = { key: 0 }, vt = {
|
|
|
1264
1288
|
a.value = !a.value;
|
|
1265
1289
|
}, y = () => {
|
|
1266
1290
|
p.value = null;
|
|
1267
|
-
}, { errorMessage: r, errors: m, value: p } =
|
|
1291
|
+
}, { errorMessage: r, errors: m, value: p } = Z(() => t.name, void 0, {
|
|
1292
|
+
initialValue: l.value
|
|
1293
|
+
});
|
|
1268
1294
|
ae(() => {
|
|
1269
1295
|
p.value = l.value;
|
|
1270
1296
|
});
|
|
@@ -1274,13 +1300,13 @@ const pt = { key: 0 }, vt = {
|
|
|
1274
1300
|
return s(), v("div", {
|
|
1275
1301
|
id: t.name
|
|
1276
1302
|
}, [
|
|
1277
|
-
$.readonly ? (s(), v("div",
|
|
1303
|
+
$.readonly ? (s(), v("div", wt, [
|
|
1278
1304
|
_($.$slots, "default", {}, () => [
|
|
1279
|
-
u("span",
|
|
1305
|
+
u("span", xt, h(c(p)), 1)
|
|
1280
1306
|
])
|
|
1281
|
-
])) : (s(), v("div",
|
|
1282
|
-
a.value ? (s(), v("div",
|
|
1283
|
-
L((s(), v("div",
|
|
1307
|
+
])) : (s(), v("div", ft, [
|
|
1308
|
+
a.value ? (s(), v("div", gt, [
|
|
1309
|
+
L((s(), v("div", ht, [
|
|
1284
1310
|
_($.$slots, "editor", {
|
|
1285
1311
|
class: B({ "is-invalid": x.value }),
|
|
1286
1312
|
editFinished: i,
|
|
@@ -1296,8 +1322,8 @@ const pt = { key: 0 }, vt = {
|
|
|
1296
1322
|
modelModifiers: { trim: !0 },
|
|
1297
1323
|
class: B({ "is-invalid": x.value }),
|
|
1298
1324
|
onKeydown: [
|
|
1299
|
-
|
|
1300
|
-
|
|
1325
|
+
Q(i, ["enter"]),
|
|
1326
|
+
Q(d, ["esc"])
|
|
1301
1327
|
]
|
|
1302
1328
|
}, null, 8, ["modelValue", "class"])
|
|
1303
1329
|
]),
|
|
@@ -1305,11 +1331,11 @@ const pt = { key: 0 }, vt = {
|
|
|
1305
1331
|
icon: "bi:x-circle",
|
|
1306
1332
|
class: "mx-2 cursor-pointer",
|
|
1307
1333
|
onClick: y,
|
|
1308
|
-
onKeydown:
|
|
1334
|
+
onKeydown: Q(y, ["enter"]),
|
|
1309
1335
|
"data-cy": "clear-icon"
|
|
1310
1336
|
})
|
|
1311
1337
|
])), [
|
|
1312
|
-
[c(
|
|
1338
|
+
[c(_e), i]
|
|
1313
1339
|
])
|
|
1314
1340
|
])) : (s(), v("div", {
|
|
1315
1341
|
key: 1,
|
|
@@ -1332,7 +1358,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1332
1358
|
icon: "bi:pencil",
|
|
1333
1359
|
class: B(x.value ? "text-invalid" : "text-muted"),
|
|
1334
1360
|
"data-cy": "edit-icon",
|
|
1335
|
-
onKeydown:
|
|
1361
|
+
onKeydown: Q(n, ["enter"])
|
|
1336
1362
|
}, null, 8, ["class"])
|
|
1337
1363
|
]),
|
|
1338
1364
|
_: 1
|
|
@@ -1345,10 +1371,10 @@ const pt = { key: 0 }, vt = {
|
|
|
1345
1371
|
}, h(c(r)), 513), [
|
|
1346
1372
|
[q, x.value]
|
|
1347
1373
|
])
|
|
1348
|
-
], 8,
|
|
1374
|
+
], 8, bt);
|
|
1349
1375
|
};
|
|
1350
1376
|
}
|
|
1351
|
-
}),
|
|
1377
|
+
}), _t = ["href"], cl = /* @__PURE__ */ F({
|
|
1352
1378
|
__name: "ForgeNavbar",
|
|
1353
1379
|
props: {
|
|
1354
1380
|
severity: { default: "light" },
|
|
@@ -1393,7 +1419,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1393
1419
|
})
|
|
1394
1420
|
}));
|
|
1395
1421
|
return (a, o) => {
|
|
1396
|
-
const n =
|
|
1422
|
+
const n = $e;
|
|
1397
1423
|
return s(), k(n, V({ ...t, ...a.$attrs }, {
|
|
1398
1424
|
pt: l.value,
|
|
1399
1425
|
"data-cy": "navbar"
|
|
@@ -1407,7 +1433,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1407
1433
|
_(a.$slots, "logo", {}, () => [
|
|
1408
1434
|
z(" Logo ")
|
|
1409
1435
|
])
|
|
1410
|
-
], 8,
|
|
1436
|
+
], 8, _t)
|
|
1411
1437
|
]),
|
|
1412
1438
|
menubuttonicon: g(() => [
|
|
1413
1439
|
_(a.$slots, "menubuttonicon", {}, () => [
|
|
@@ -1424,13 +1450,13 @@ const pt = { key: 0 }, vt = {
|
|
|
1424
1450
|
j(a.$slots, (i, d) => ({
|
|
1425
1451
|
name: d,
|
|
1426
1452
|
fn: g((y) => [
|
|
1427
|
-
_(a.$slots, d,
|
|
1453
|
+
_(a.$slots, d, K(te(y)))
|
|
1428
1454
|
])
|
|
1429
1455
|
}))
|
|
1430
1456
|
]), 1040, ["pt"]);
|
|
1431
1457
|
};
|
|
1432
1458
|
}
|
|
1433
|
-
}),
|
|
1459
|
+
}), $t = /* @__PURE__ */ u("div", { class: "ps-1" }, "Select all", -1), Bt = ["data-cy"], Ft = { class: "ps-1 w-100" }, St = { class: "multiselect__tag d-inline-flex" }, Ct = { class: "my-auto" }, Vt = /* @__PURE__ */ F({
|
|
1434
1460
|
__name: "ForgeMultiSelect",
|
|
1435
1461
|
props: {
|
|
1436
1462
|
severity: { default: "primary" },
|
|
@@ -1438,18 +1464,19 @@ const pt = { key: 0 }, vt = {
|
|
|
1438
1464
|
showClearSelection: { type: Boolean, default: !1 },
|
|
1439
1465
|
expandLeft: { type: Boolean, default: !1 },
|
|
1440
1466
|
selectValue: { default: "" },
|
|
1441
|
-
rules: {},
|
|
1442
1467
|
name: { default: "" }
|
|
1443
1468
|
},
|
|
1444
1469
|
emits: ["update:modelValue"],
|
|
1445
1470
|
setup(e, { emit: t }) {
|
|
1446
1471
|
const l = e, a = (U, D) => {
|
|
1447
|
-
const
|
|
1472
|
+
const X = {
|
|
1448
1473
|
...D,
|
|
1449
1474
|
$isDisabled: D.$isDisabled ?? !1
|
|
1450
1475
|
};
|
|
1451
|
-
U(
|
|
1452
|
-
}, o =
|
|
1476
|
+
U(X);
|
|
1477
|
+
}, o = ce(), n = t, { errors: i, value: d, errorMessage: y } = Z(() => l.name, void 0, {
|
|
1478
|
+
initialValue: o.modelValue
|
|
1479
|
+
}), r = I(!1), m = w(() => ({
|
|
1453
1480
|
multiple: !0,
|
|
1454
1481
|
label: "label",
|
|
1455
1482
|
trackBy: "id",
|
|
@@ -1462,17 +1489,17 @@ const pt = { key: 0 }, vt = {
|
|
|
1462
1489
|
searchable: !!(o.searchable === null || o.searchable) && o.modelValue.length === o.options.length,
|
|
1463
1490
|
async: !1,
|
|
1464
1491
|
...o
|
|
1465
|
-
})), p = w(() => `forge-multiselect-${l.severity}`), x = w(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${$.value ? " multiselect__option--selected" : ""}`), $ = w(() => m.value && !(m.value.multiple || !l.showSelectAll || m.value.async) ? !1 : o.modelValue.length === o.options.length), P = w(() => i.value.length > 0), S = w(() => !!((o.allowEmpty == null || o.allowEmpty) && l.showClearSelection && (m.value.multiple ? o.modelValue.length > 0 : o.modelValue))), O = () => r.value = !0, f = () => r.value = !1,
|
|
1492
|
+
})), p = w(() => `forge-multiselect-${l.severity}`), x = w(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${$.value ? " multiselect__option--selected" : ""}`), $ = w(() => m.value && !(m.value.multiple || !l.showSelectAll || m.value.async) ? !1 : o.modelValue.length === o.options.length), P = w(() => i.value.length > 0), S = w(() => !!((o.allowEmpty == null || o.allowEmpty) && l.showClearSelection && (m.value.multiple ? o.modelValue.length > 0 : o.modelValue))), O = () => r.value = !0, f = () => r.value = !1, M = () => {
|
|
1466
1493
|
d.value = m.value.multiple ? [] : null, n("update:modelValue", d.value);
|
|
1467
1494
|
}, Y = (U) => {
|
|
1468
1495
|
n("update:modelValue", l.selectValue ? U.map((D) => D[l.selectValue]) : U);
|
|
1469
|
-
},
|
|
1470
|
-
$.value ?
|
|
1496
|
+
}, J = (U) => o.modelValue !== null ? o.modelValue.some((D) => m.value.selectValue ? U[l.selectValue] === D : U.id === D.id && U.label === D.label) : !1, se = () => {
|
|
1497
|
+
$.value ? M() : (d.value = [...o.options], n("update:modelValue", [...o.options]));
|
|
1471
1498
|
};
|
|
1472
1499
|
return (U, D) => {
|
|
1473
|
-
const
|
|
1500
|
+
const X = ve;
|
|
1474
1501
|
return s(), v(N, null, [
|
|
1475
|
-
b(c(
|
|
1502
|
+
b(c(Be), V(m.value, {
|
|
1476
1503
|
class: [p.value, P.value ? "is-invalid" : ""],
|
|
1477
1504
|
"data-cy": "multiselect",
|
|
1478
1505
|
"onUpdate:modelValue": [
|
|
@@ -1486,7 +1513,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1486
1513
|
key: 0,
|
|
1487
1514
|
icon: "bi:x",
|
|
1488
1515
|
class: "my-auto multiselect__clear-icon",
|
|
1489
|
-
onMousedown: D[0] || (D[0] = G((
|
|
1516
|
+
onMousedown: D[0] || (D[0] = G((W) => M(), ["prevent", "stop"])),
|
|
1490
1517
|
"data-cy": "clear",
|
|
1491
1518
|
height: "18px",
|
|
1492
1519
|
width: "18px"
|
|
@@ -1497,20 +1524,20 @@ const pt = { key: 0 }, vt = {
|
|
|
1497
1524
|
class: "multiselect__select"
|
|
1498
1525
|
}, null, 8, ["onClick"])
|
|
1499
1526
|
]),
|
|
1500
|
-
tag: g(({ option: A, remove:
|
|
1501
|
-
u("div",
|
|
1502
|
-
u("div",
|
|
1527
|
+
tag: g(({ option: A, remove: W }) => [
|
|
1528
|
+
u("div", St, [
|
|
1529
|
+
u("div", Ct, h(A.label), 1),
|
|
1503
1530
|
b(c(T), {
|
|
1504
1531
|
icon: "bi:x",
|
|
1505
1532
|
class: "my-auto multiselect__tag-icon",
|
|
1506
|
-
onMousedown: G((
|
|
1533
|
+
onMousedown: G((za) => a(W, A), ["prevent", "stop"]),
|
|
1507
1534
|
height: "18px",
|
|
1508
1535
|
width: "18px"
|
|
1509
1536
|
}, null, 8, ["onMousedown"])
|
|
1510
1537
|
])
|
|
1511
1538
|
]),
|
|
1512
1539
|
default: g(() => [
|
|
1513
|
-
(s(!0), v(N, null, j(U.$slots, (A,
|
|
1540
|
+
(s(!0), v(N, null, j(U.$slots, (A, W) => _(U.$slots, W, { slot: W })), 256))
|
|
1514
1541
|
]),
|
|
1515
1542
|
_: 2
|
|
1516
1543
|
}, [
|
|
@@ -1527,9 +1554,9 @@ const pt = { key: 0 }, vt = {
|
|
|
1527
1554
|
u("span", {
|
|
1528
1555
|
class: B(`${x.value}`)
|
|
1529
1556
|
}, [
|
|
1530
|
-
b(
|
|
1557
|
+
b(X, { value: $.value }, {
|
|
1531
1558
|
default: g(() => [
|
|
1532
|
-
|
|
1559
|
+
$t
|
|
1533
1560
|
]),
|
|
1534
1561
|
_: 1
|
|
1535
1562
|
}, 8, ["value"])
|
|
@@ -1544,16 +1571,16 @@ const pt = { key: 0 }, vt = {
|
|
|
1544
1571
|
u("div", {
|
|
1545
1572
|
"data-cy": A.label
|
|
1546
1573
|
}, [
|
|
1547
|
-
(s(), k(
|
|
1548
|
-
value:
|
|
1574
|
+
(s(), k(X, {
|
|
1575
|
+
value: J(A),
|
|
1549
1576
|
key: A
|
|
1550
1577
|
}, {
|
|
1551
1578
|
default: g(() => [
|
|
1552
|
-
u("div",
|
|
1579
|
+
u("div", Ft, h(A[m.value.label]), 1)
|
|
1553
1580
|
]),
|
|
1554
1581
|
_: 2
|
|
1555
1582
|
}, 1032, ["value"]))
|
|
1556
|
-
], 8,
|
|
1583
|
+
], 8, Bt)
|
|
1557
1584
|
]),
|
|
1558
1585
|
key: "1"
|
|
1559
1586
|
} : void 0
|
|
@@ -1567,17 +1594,17 @@ const pt = { key: 0 }, vt = {
|
|
|
1567
1594
|
], 64);
|
|
1568
1595
|
};
|
|
1569
1596
|
}
|
|
1570
|
-
}),
|
|
1597
|
+
}), Tt = {
|
|
1571
1598
|
key: 0,
|
|
1572
1599
|
class: "pl-1"
|
|
1573
|
-
},
|
|
1600
|
+
}, Pt = { class: "border alternating-item-list" }, It = {
|
|
1574
1601
|
key: 0,
|
|
1575
1602
|
class: "p-2 border-top border-bottom",
|
|
1576
1603
|
"data-cy": "title"
|
|
1577
|
-
}, Mt = { class: "d-inline-block" },
|
|
1604
|
+
}, Mt = { class: "d-inline-block" }, zt = {
|
|
1578
1605
|
key: 1,
|
|
1579
1606
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1580
|
-
},
|
|
1607
|
+
}, ml = /* @__PURE__ */ F({
|
|
1581
1608
|
__name: "ForgeMultiSelectPreview",
|
|
1582
1609
|
props: {
|
|
1583
1610
|
title: { default: "Selected Items" },
|
|
@@ -1588,7 +1615,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1588
1615
|
},
|
|
1589
1616
|
emits: ["update:modelValue"],
|
|
1590
1617
|
setup(e, { emit: t }) {
|
|
1591
|
-
const l = e, a =
|
|
1618
|
+
const l = e, a = ce(), o = t, n = w(() => `${a.modelValue.length} selected`), i = w(() => a.modelValue.length), d = (r) => {
|
|
1592
1619
|
o("update:modelValue", r);
|
|
1593
1620
|
}, y = (r) => {
|
|
1594
1621
|
d(a.modelValue.filter((m) => m.id !== r));
|
|
@@ -1603,7 +1630,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1603
1630
|
class: B(r.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1604
1631
|
"data-cy": "multiselect-container"
|
|
1605
1632
|
}, [
|
|
1606
|
-
b(
|
|
1633
|
+
b(Vt, {
|
|
1607
1634
|
"onUpdate:modelValue": [
|
|
1608
1635
|
m[0] || (m[0] = (x) => d(x)),
|
|
1609
1636
|
m[1] || (m[1] = (x) => r.$attrs.modelValue = x)
|
|
@@ -1616,7 +1643,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1616
1643
|
z(h(""))
|
|
1617
1644
|
]),
|
|
1618
1645
|
selection: g(() => [
|
|
1619
|
-
r.$attrs.modelValue.length > 0 ? (s(), v("span",
|
|
1646
|
+
r.$attrs.modelValue.length > 0 ? (s(), v("span", Tt, h(i.value) + " items selected", 1)) : C("", !0)
|
|
1620
1647
|
]),
|
|
1621
1648
|
default: g(() => [
|
|
1622
1649
|
(s(!0), v(N, null, j(r.$slots, (x, $) => _(r.$slots, $, { slot: $ })), 256))
|
|
@@ -1630,11 +1657,11 @@ const pt = { key: 0 }, vt = {
|
|
|
1630
1657
|
"data-cy": "options-preview"
|
|
1631
1658
|
}, [
|
|
1632
1659
|
u("div", {
|
|
1633
|
-
style:
|
|
1660
|
+
style: ge({ height: r.height }),
|
|
1634
1661
|
class: "overflow-auto"
|
|
1635
1662
|
}, [
|
|
1636
|
-
u("div",
|
|
1637
|
-
r.title ? (s(), v("div",
|
|
1663
|
+
u("div", Pt, [
|
|
1664
|
+
r.title ? (s(), v("div", It, h(r.title), 1)) : C("", !0),
|
|
1638
1665
|
(s(!0), v(N, null, j(r.$attrs.modelValue, (x) => (s(), v("div", {
|
|
1639
1666
|
key: x.id,
|
|
1640
1667
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
@@ -1658,34 +1685,34 @@ const pt = { key: 0 }, vt = {
|
|
|
1658
1685
|
_: 2
|
|
1659
1686
|
}, 1032, ["onClick"])) : C("", !0)
|
|
1660
1687
|
]))), 128)),
|
|
1661
|
-
r.$attrs.modelValue.length === 0 ? (s(), v("div",
|
|
1688
|
+
r.$attrs.modelValue.length === 0 ? (s(), v("div", zt, "No Items Selected.")) : C("", !0)
|
|
1662
1689
|
])
|
|
1663
1690
|
], 4)
|
|
1664
1691
|
], 2)
|
|
1665
1692
|
], 2);
|
|
1666
1693
|
};
|
|
1667
1694
|
}
|
|
1668
|
-
}),
|
|
1695
|
+
}), Ot = { class: "d-flex justify-content-between pb-2" }, Dt = {
|
|
1669
1696
|
"data-cy": "title",
|
|
1670
1697
|
class: "my-auto"
|
|
1671
|
-
},
|
|
1698
|
+
}, Ut = {
|
|
1672
1699
|
"data-cy": "slot",
|
|
1673
1700
|
class: "d-flex align-items-center"
|
|
1674
|
-
},
|
|
1701
|
+
}, pl = /* @__PURE__ */ F({
|
|
1675
1702
|
__name: "ForgePageHeader",
|
|
1676
1703
|
props: {
|
|
1677
1704
|
title: {}
|
|
1678
1705
|
},
|
|
1679
1706
|
setup(e) {
|
|
1680
1707
|
const t = e;
|
|
1681
|
-
return (l, a) => (s(), v("div",
|
|
1682
|
-
u("h3",
|
|
1683
|
-
u("div",
|
|
1708
|
+
return (l, a) => (s(), v("div", Ot, [
|
|
1709
|
+
u("h3", Dt, h(t.title), 1),
|
|
1710
|
+
u("div", Ut, [
|
|
1684
1711
|
_(l.$slots, "default")
|
|
1685
1712
|
])
|
|
1686
1713
|
]));
|
|
1687
1714
|
}
|
|
1688
|
-
}),
|
|
1715
|
+
}), At = { "data-cy": "before-slot" }, Nt = { class: "position-relative" }, Et = { "data-cy": "after-slot" }, Rt = /* @__PURE__ */ F({
|
|
1689
1716
|
__name: "ForgeDatepicker",
|
|
1690
1717
|
props: /* @__PURE__ */ H({
|
|
1691
1718
|
severity: { default: "primary" },
|
|
@@ -1715,7 +1742,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1715
1742
|
disabledDates: {},
|
|
1716
1743
|
disabledDays: {},
|
|
1717
1744
|
maxDateCount: {},
|
|
1718
|
-
showOnFocus: { type: Boolean },
|
|
1745
|
+
showOnFocus: { type: Boolean, default: !0 },
|
|
1719
1746
|
autoZIndex: { type: Boolean, default: !0 },
|
|
1720
1747
|
baseZIndex: { default: 0 },
|
|
1721
1748
|
showButtonBar: { type: Boolean, default: !1 },
|
|
@@ -1852,12 +1879,12 @@ const pt = { key: 0 }, vt = {
|
|
|
1852
1879
|
})
|
|
1853
1880
|
}));
|
|
1854
1881
|
return (n, i) => {
|
|
1855
|
-
const d =
|
|
1882
|
+
const d = Fe;
|
|
1856
1883
|
return s(), v(N, null, [
|
|
1857
|
-
u("span",
|
|
1884
|
+
u("span", At, [
|
|
1858
1885
|
_(n.$slots, "before")
|
|
1859
1886
|
]),
|
|
1860
|
-
u("div",
|
|
1887
|
+
u("div", Nt, [
|
|
1861
1888
|
b(d, V({ ...t, ...n.$attrs }, {
|
|
1862
1889
|
pt: o.value,
|
|
1863
1890
|
modelValue: l.value,
|
|
@@ -1879,13 +1906,13 @@ const pt = { key: 0 }, vt = {
|
|
|
1879
1906
|
[q, t.modelValue]
|
|
1880
1907
|
])
|
|
1881
1908
|
]),
|
|
1882
|
-
u("span",
|
|
1909
|
+
u("span", Et, [
|
|
1883
1910
|
_(n.$slots, "after")
|
|
1884
1911
|
])
|
|
1885
1912
|
], 64);
|
|
1886
1913
|
};
|
|
1887
1914
|
}
|
|
1888
|
-
}),
|
|
1915
|
+
}), vl = /* @__PURE__ */ F({
|
|
1889
1916
|
__name: "ForgeRemainingCharacters",
|
|
1890
1917
|
props: {
|
|
1891
1918
|
maxCount: { default: 300 },
|
|
@@ -1897,7 +1924,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1897
1924
|
class: B(l.value < 0 ? "text-danger" : "")
|
|
1898
1925
|
}, "Remaining characters: " + h(l.value), 3));
|
|
1899
1926
|
}
|
|
1900
|
-
}),
|
|
1927
|
+
}), Lt = /* @__PURE__ */ u("hr", null, null, -1), Ht = { class: "d-flex justify-content-between" }, yl = /* @__PURE__ */ F({
|
|
1901
1928
|
__name: "ForgeForm",
|
|
1902
1929
|
props: {
|
|
1903
1930
|
onSubmit: {},
|
|
@@ -1909,7 +1936,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1909
1936
|
hideCancel: { type: Boolean, default: !1 }
|
|
1910
1937
|
},
|
|
1911
1938
|
setup(e) {
|
|
1912
|
-
const t = e, l =
|
|
1939
|
+
const t = e, l = I(!1), a = I({
|
|
1913
1940
|
hasError: !1,
|
|
1914
1941
|
message: ""
|
|
1915
1942
|
});
|
|
@@ -1936,7 +1963,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1936
1963
|
"data-cy": "form-title"
|
|
1937
1964
|
}, h(n.title), 3)
|
|
1938
1965
|
]),
|
|
1939
|
-
|
|
1966
|
+
Lt
|
|
1940
1967
|
], 64)),
|
|
1941
1968
|
a.value.hasError ? (s(), k(ne, {
|
|
1942
1969
|
key: 1,
|
|
@@ -1953,7 +1980,7 @@ const pt = { key: 0 }, vt = {
|
|
|
1953
1980
|
_: 3
|
|
1954
1981
|
})) : C("", !0),
|
|
1955
1982
|
_(n.$slots, "default"),
|
|
1956
|
-
u("div",
|
|
1983
|
+
u("div", Ht, [
|
|
1957
1984
|
_(n.$slots, "cancel", {}, () => [
|
|
1958
1985
|
n.hideCancel ? C("", !0) : (s(), k(d, {
|
|
1959
1986
|
key: 0,
|
|
@@ -1983,17 +2010,17 @@ const pt = { key: 0 }, vt = {
|
|
|
1983
2010
|
})
|
|
1984
2011
|
])
|
|
1985
2012
|
]),
|
|
1986
|
-
l.value ? (s(), k(
|
|
2013
|
+
l.value ? (s(), k(ye, {
|
|
1987
2014
|
key: 2,
|
|
1988
2015
|
"data-cy": "loading-spinner"
|
|
1989
2016
|
})) : C("", !0)
|
|
1990
2017
|
], 16);
|
|
1991
2018
|
};
|
|
1992
2019
|
}
|
|
1993
|
-
}),
|
|
2020
|
+
}), jt = {
|
|
1994
2021
|
key: 1,
|
|
1995
2022
|
class: "d-flex flex-column"
|
|
1996
|
-
},
|
|
2023
|
+
}, Yt = ["for"], bl = /* @__PURE__ */ F({
|
|
1997
2024
|
__name: "ForgeFormField",
|
|
1998
2025
|
props: /* @__PURE__ */ H({
|
|
1999
2026
|
name: {},
|
|
@@ -2009,14 +2036,14 @@ const pt = { key: 0 }, vt = {
|
|
|
2009
2036
|
setup(e) {
|
|
2010
2037
|
const t = E(e, "modelValue"), l = e, a = (m) => {
|
|
2011
2038
|
l.type == "number" ? d(m.value) : d(m);
|
|
2012
|
-
}, { errors: o, value: n, errorMessage: i, handleChange: d, handleBlur: y } =
|
|
2039
|
+
}, { errors: o, value: n, errorMessage: i, handleChange: d, handleBlur: y } = Z(() => l.name, void 0, {
|
|
2013
2040
|
initialValue: t.value
|
|
2014
2041
|
}), r = w(() => o.value.length > 0);
|
|
2015
2042
|
return ie(() => n.value, (m) => {
|
|
2016
2043
|
t.value = m;
|
|
2017
2044
|
}, { immediate: !0 }), (m, p) => {
|
|
2018
|
-
const x =
|
|
2019
|
-
return l.type === "checkbox" ? (s(), k(
|
|
2045
|
+
const x = Ce, $ = Se, P = re;
|
|
2046
|
+
return l.type === "checkbox" ? (s(), k(ve, V({
|
|
2020
2047
|
key: 0,
|
|
2021
2048
|
id: l.name,
|
|
2022
2049
|
label: l.label
|
|
@@ -2024,11 +2051,11 @@ const pt = { key: 0 }, vt = {
|
|
|
2024
2051
|
name: l.name,
|
|
2025
2052
|
modelValue: t.value,
|
|
2026
2053
|
"onUpdate:modelValue": p[0] || (p[0] = (S) => t.value = S)
|
|
2027
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (s(), v("div",
|
|
2054
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (s(), v("div", jt, [
|
|
2028
2055
|
u("label", {
|
|
2029
2056
|
for: l.name
|
|
2030
|
-
}, h(l.label), 9,
|
|
2031
|
-
l.type === "number" ? (s(), k(c(
|
|
2057
|
+
}, h(l.label), 9, Yt),
|
|
2058
|
+
l.type === "number" ? (s(), k(c(me), V({
|
|
2032
2059
|
key: 0,
|
|
2033
2060
|
id: l.name
|
|
2034
2061
|
}, m.$attrs, {
|
|
@@ -2079,13 +2106,12 @@ const pt = { key: 0 }, vt = {
|
|
|
2079
2106
|
]));
|
|
2080
2107
|
};
|
|
2081
2108
|
}
|
|
2082
|
-
}),
|
|
2109
|
+
}), fl = /* @__PURE__ */ F({
|
|
2083
2110
|
__name: "ForgeChips",
|
|
2084
2111
|
props: {
|
|
2085
2112
|
chipSeverity: { default: "primary" },
|
|
2086
2113
|
pill: { type: Boolean, default: !1 },
|
|
2087
2114
|
name: { default: "" },
|
|
2088
|
-
rules: {},
|
|
2089
2115
|
modelValue: {},
|
|
2090
2116
|
max: {},
|
|
2091
2117
|
addOnBlur: { type: Boolean },
|
|
@@ -2107,9 +2133,9 @@ const pt = { key: 0 }, vt = {
|
|
|
2107
2133
|
unstyled: { type: Boolean }
|
|
2108
2134
|
},
|
|
2109
2135
|
setup(e) {
|
|
2110
|
-
const t = e, { errors: l, value: a, errorMessage: o } =
|
|
2111
|
-
|
|
2112
|
-
|
|
2136
|
+
const t = e, { errors: l, value: a, errorMessage: o } = Z(() => t.name, void 0, {
|
|
2137
|
+
initialValue: t.modelValue
|
|
2138
|
+
}), n = w(() => l.value.length > 0), i = w(() => ({
|
|
2113
2139
|
inputtoken: "list-unstyled",
|
|
2114
2140
|
input: "border-0",
|
|
2115
2141
|
container: ({ props: d }) => ({
|
|
@@ -2141,7 +2167,7 @@ const pt = { key: 0 }, vt = {
|
|
|
2141
2167
|
}
|
|
2142
2168
|
}));
|
|
2143
2169
|
return (d, y) => {
|
|
2144
|
-
const r =
|
|
2170
|
+
const r = Ve;
|
|
2145
2171
|
return s(), v(N, null, [
|
|
2146
2172
|
b(r, V({ ...t, ...d.$attrs }, {
|
|
2147
2173
|
pt: i.value,
|
|
@@ -2168,7 +2194,7 @@ const pt = { key: 0 }, vt = {
|
|
|
2168
2194
|
], 64);
|
|
2169
2195
|
};
|
|
2170
2196
|
}
|
|
2171
|
-
}),
|
|
2197
|
+
}), qt = /* @__PURE__ */ F({
|
|
2172
2198
|
__name: "ForgeProgressBar",
|
|
2173
2199
|
props: {
|
|
2174
2200
|
severity: { default: "primary" },
|
|
@@ -2211,7 +2237,7 @@ const pt = { key: 0 }, vt = {
|
|
|
2211
2237
|
}
|
|
2212
2238
|
}));
|
|
2213
2239
|
return (i, d) => {
|
|
2214
|
-
const y =
|
|
2240
|
+
const y = Te;
|
|
2215
2241
|
return s(), k(y, V({ ...i.$attrs, ...t }, { pt: n.value }), {
|
|
2216
2242
|
default: g(() => [
|
|
2217
2243
|
_(i.$slots, "default")
|
|
@@ -2220,7 +2246,7 @@ const pt = { key: 0 }, vt = {
|
|
|
2220
2246
|
}, 16, ["pt"]);
|
|
2221
2247
|
};
|
|
2222
2248
|
}
|
|
2223
|
-
}),
|
|
2249
|
+
}), Gt = { class: "value text-white w-100 text-center" }, gl = /* @__PURE__ */ F({
|
|
2224
2250
|
__name: "ForgeStatWidget",
|
|
2225
2251
|
props: {
|
|
2226
2252
|
size: { default: "md" },
|
|
@@ -2231,15 +2257,15 @@ const pt = { key: 0 }, vt = {
|
|
|
2231
2257
|
return (l, a) => (s(), v("div", V(l.$attrs, {
|
|
2232
2258
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2233
2259
|
}), [
|
|
2234
|
-
u("span",
|
|
2260
|
+
u("span", Gt, [
|
|
2235
2261
|
_(l.$slots, "default")
|
|
2236
2262
|
])
|
|
2237
2263
|
], 16));
|
|
2238
2264
|
}
|
|
2239
|
-
}),
|
|
2265
|
+
}), Kt = {
|
|
2240
2266
|
class: "d-flex flex-column align-items-center",
|
|
2241
2267
|
"data-cy": "stepper"
|
|
2242
|
-
},
|
|
2268
|
+
}, Wt = { class: "d-flex align-items-center justify-content-center w-100" }, hl = /* @__PURE__ */ F({
|
|
2243
2269
|
__name: "ForgeStepper",
|
|
2244
2270
|
props: {
|
|
2245
2271
|
currentStep: { default: 0 },
|
|
@@ -2255,7 +2281,7 @@ const pt = { key: 0 }, vt = {
|
|
|
2255
2281
|
},
|
|
2256
2282
|
emits: ["update:currentStep"],
|
|
2257
2283
|
setup(e, { emit: t }) {
|
|
2258
|
-
const l = t, a = e, o =
|
|
2284
|
+
const l = t, a = e, o = I(a.currentStep), n = () => {
|
|
2259
2285
|
do
|
|
2260
2286
|
o.value--;
|
|
2261
2287
|
while (a.model[o.value].disabled);
|
|
@@ -2306,9 +2332,9 @@ const pt = { key: 0 }, vt = {
|
|
|
2306
2332
|
})
|
|
2307
2333
|
}));
|
|
2308
2334
|
return (r, m) => {
|
|
2309
|
-
const p = R, x = Ie, $ =
|
|
2310
|
-
return s(), v("div",
|
|
2311
|
-
u("div",
|
|
2335
|
+
const p = R, x = Ie, $ = Pe;
|
|
2336
|
+
return s(), v("div", Kt, [
|
|
2337
|
+
u("div", Wt, [
|
|
2312
2338
|
b(p, {
|
|
2313
2339
|
severity: a.severity,
|
|
2314
2340
|
disabled: d.value,
|
|
@@ -2362,7 +2388,7 @@ const pt = { key: 0 }, vt = {
|
|
|
2362
2388
|
]);
|
|
2363
2389
|
};
|
|
2364
2390
|
}
|
|
2365
|
-
}),
|
|
2391
|
+
}), Zt = { class: "p-4 text-wrap w-100" }, Jt = { class: "p-4 text-wrap w-100" }, wl = /* @__PURE__ */ F({
|
|
2366
2392
|
__name: "ForgeTile",
|
|
2367
2393
|
props: {
|
|
2368
2394
|
severity: { default: "primary" },
|
|
@@ -2381,7 +2407,7 @@ const pt = { key: 0 }, vt = {
|
|
|
2381
2407
|
"data-cy": "button-tile"
|
|
2382
2408
|
}, {
|
|
2383
2409
|
default: g(() => [
|
|
2384
|
-
u("div",
|
|
2410
|
+
u("div", Zt, [
|
|
2385
2411
|
_(o.$slots, "default", {}, () => [
|
|
2386
2412
|
z("Tile Content")
|
|
2387
2413
|
])
|
|
@@ -2393,7 +2419,7 @@ const pt = { key: 0 }, vt = {
|
|
|
2393
2419
|
class: B(["d-flex w-100", a.value]),
|
|
2394
2420
|
"data-cy": "tile"
|
|
2395
2421
|
}, [
|
|
2396
|
-
u("div",
|
|
2422
|
+
u("div", Jt, [
|
|
2397
2423
|
_(o.$slots, "default", {}, () => [
|
|
2398
2424
|
z("Tile Content")
|
|
2399
2425
|
])
|
|
@@ -2402,16 +2428,16 @@ const pt = { key: 0 }, vt = {
|
|
|
2402
2428
|
};
|
|
2403
2429
|
}
|
|
2404
2430
|
});
|
|
2405
|
-
function
|
|
2431
|
+
function ee(e, t) {
|
|
2406
2432
|
return e > 1 ? `${t}s` : t;
|
|
2407
2433
|
}
|
|
2408
|
-
const
|
|
2434
|
+
const Xt = {
|
|
2409
2435
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2410
2436
|
"data-cy": "pagination-header"
|
|
2411
|
-
},
|
|
2437
|
+
}, Qt = { class: "ms-2" }, ea = { key: 0 }, ta = /* @__PURE__ */ u("span", { class: "mx-2" }, "|", -1), aa = {
|
|
2412
2438
|
class: "w-auto",
|
|
2413
2439
|
"data-cy": "total"
|
|
2414
|
-
},
|
|
2440
|
+
}, la = /* @__PURE__ */ F({
|
|
2415
2441
|
__name: "ForgePaginationHeader",
|
|
2416
2442
|
props: {
|
|
2417
2443
|
total: {},
|
|
@@ -2424,24 +2450,24 @@ const Jt = {
|
|
|
2424
2450
|
l("update:perPage", i.value);
|
|
2425
2451
|
}, n = w(() => {
|
|
2426
2452
|
const i = Math.ceil(a.total / a.perPage);
|
|
2427
|
-
return `${i} ${
|
|
2453
|
+
return `${i} ${ee(i, "page")}`;
|
|
2428
2454
|
});
|
|
2429
|
-
return (i, d) => (s(), v("div",
|
|
2455
|
+
return (i, d) => (s(), v("div", Xt, [
|
|
2430
2456
|
z(" Number of results per page "),
|
|
2431
|
-
u("div",
|
|
2457
|
+
u("div", Qt, [
|
|
2432
2458
|
b(c(de), {
|
|
2433
2459
|
options: a.pageSizes,
|
|
2434
2460
|
"model-value": a.perPage,
|
|
2435
2461
|
onChange: d[0] || (d[0] = (y) => o(y))
|
|
2436
2462
|
}, null, 8, ["options", "model-value"])
|
|
2437
2463
|
]),
|
|
2438
|
-
a.total ? (s(), v("div",
|
|
2439
|
-
|
|
2440
|
-
u("span",
|
|
2464
|
+
a.total ? (s(), v("div", ea, [
|
|
2465
|
+
ta,
|
|
2466
|
+
u("span", aa, h(a.total) + " " + h(c(ee)(a.total, "result")) + " across " + h(n.value), 1)
|
|
2441
2467
|
])) : C("", !0)
|
|
2442
2468
|
]));
|
|
2443
2469
|
}
|
|
2444
|
-
}),
|
|
2470
|
+
}), oa = { class: "position-relative" }, na = { "data-cy": "above-table-slot" }, sa = { class: "d-flex" }, ia = { class: "d-flex align-items-end mb-2" }, ra = { key: 0 }, da = { class: "ms-auto" }, ua = /* @__PURE__ */ u("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), xl = /* @__PURE__ */ F({
|
|
2445
2471
|
__name: "ForgeTable",
|
|
2446
2472
|
props: {
|
|
2447
2473
|
value: {},
|
|
@@ -2521,7 +2547,7 @@ const Jt = {
|
|
|
2521
2547
|
},
|
|
2522
2548
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
2523
2549
|
setup(e, { emit: t }) {
|
|
2524
|
-
const l = t, a = e, o =
|
|
2550
|
+
const l = t, a = e, o = I(), n = I([10, 20, 50, 100]), i = I(20), d = I({
|
|
2525
2551
|
filters: a.filters,
|
|
2526
2552
|
perPage: i.value,
|
|
2527
2553
|
page: 0,
|
|
@@ -2530,7 +2556,7 @@ const Jt = {
|
|
|
2530
2556
|
total: a.totalRecords ?? a.value.length
|
|
2531
2557
|
}), y = w(() => a.totalRecords ?? a.value.length), r = w(() => {
|
|
2532
2558
|
const f = Math.ceil(y.value / i.value);
|
|
2533
|
-
return `${f} ${
|
|
2559
|
+
return `${f} ${ee(f, "page")}`;
|
|
2534
2560
|
}), m = w(() => ({
|
|
2535
2561
|
thead: () => ({
|
|
2536
2562
|
class: [
|
|
@@ -2560,8 +2586,8 @@ const Jt = {
|
|
|
2560
2586
|
}, x = () => {
|
|
2561
2587
|
o.value.exportCSV();
|
|
2562
2588
|
}, $ = (f) => {
|
|
2563
|
-
var
|
|
2564
|
-
d.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", d.value.sortField = ((
|
|
2589
|
+
var M;
|
|
2590
|
+
d.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", d.value.sortField = ((M = f.sortField) == null ? void 0 : M.toString()) ?? "", l("update:tableContext", d.value), l("sort", f);
|
|
2565
2591
|
}, P = (f) => {
|
|
2566
2592
|
d.value.filters = f, l("update:tableContext", d.value), l("update:filters", f);
|
|
2567
2593
|
}, S = (f) => {
|
|
@@ -2571,11 +2597,11 @@ const Jt = {
|
|
|
2571
2597
|
};
|
|
2572
2598
|
return ie(() => a.filters, (f) => {
|
|
2573
2599
|
d.value.filters = f, l("update:tableContext", d.value);
|
|
2574
|
-
}, { deep: !0 }), ae(() => l("update:tableContext", d.value)), (f,
|
|
2575
|
-
u("span",
|
|
2600
|
+
}, { deep: !0 }), ae(() => l("update:tableContext", d.value)), (f, M) => (s(), v("div", oa, [
|
|
2601
|
+
u("span", na, [
|
|
2576
2602
|
_(f.$slots, "above-table")
|
|
2577
2603
|
]),
|
|
2578
|
-
b(c(
|
|
2604
|
+
b(c(Me), V({
|
|
2579
2605
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
2580
2606
|
}, { ...a, ...f.$attrs }, {
|
|
2581
2607
|
pt: m.value,
|
|
@@ -2593,21 +2619,21 @@ const Jt = {
|
|
|
2593
2619
|
u("div", {
|
|
2594
2620
|
class: B(a.loading ? "opacity-50" : "")
|
|
2595
2621
|
}, [
|
|
2596
|
-
u("div",
|
|
2597
|
-
u("div",
|
|
2598
|
-
f.paginator && !f.legacyPaginationFooter ? (s(), v("span",
|
|
2599
|
-
b(
|
|
2622
|
+
u("div", sa, [
|
|
2623
|
+
u("div", ia, [
|
|
2624
|
+
f.paginator && !f.legacyPaginationFooter ? (s(), v("span", ra, [
|
|
2625
|
+
b(la, {
|
|
2600
2626
|
total: y.value,
|
|
2601
2627
|
"page-sizes": n.value,
|
|
2602
2628
|
"per-page": i.value,
|
|
2603
2629
|
"onUpdate:perPage": [
|
|
2604
|
-
|
|
2630
|
+
M[0] || (M[0] = (Y) => i.value = Y),
|
|
2605
2631
|
O
|
|
2606
2632
|
]
|
|
2607
2633
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2608
2634
|
])) : C("", !0)
|
|
2609
2635
|
]),
|
|
2610
|
-
u("div",
|
|
2636
|
+
u("div", da, [
|
|
2611
2637
|
f.showClearButton ? (s(), k(c(R), {
|
|
2612
2638
|
key: 0,
|
|
2613
2639
|
outlined: "",
|
|
@@ -2650,10 +2676,10 @@ const Jt = {
|
|
|
2650
2676
|
]),
|
|
2651
2677
|
_: 2
|
|
2652
2678
|
}, [
|
|
2653
|
-
j(f.$slots, (Y,
|
|
2654
|
-
name:
|
|
2679
|
+
j(f.$slots, (Y, J) => ({
|
|
2680
|
+
name: J,
|
|
2655
2681
|
fn: g((se) => [
|
|
2656
|
-
_(f.$slots,
|
|
2682
|
+
_(f.$slots, J, K(te(se || {})))
|
|
2657
2683
|
])
|
|
2658
2684
|
})),
|
|
2659
2685
|
f.legacyPaginationFooter ? {
|
|
@@ -2663,11 +2689,11 @@ const Jt = {
|
|
|
2663
2689
|
class: B(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
2664
2690
|
"data-cy": "legacy-page-size"
|
|
2665
2691
|
}, [
|
|
2666
|
-
|
|
2692
|
+
ua,
|
|
2667
2693
|
b(c(de), {
|
|
2668
2694
|
options: n.value,
|
|
2669
2695
|
modelValue: i.value,
|
|
2670
|
-
"onUpdate:modelValue":
|
|
2696
|
+
"onUpdate:modelValue": M[1] || (M[1] = (Y) => i.value = Y),
|
|
2671
2697
|
class: "ms-2",
|
|
2672
2698
|
onClick: O
|
|
2673
2699
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -2681,14 +2707,14 @@ const Jt = {
|
|
|
2681
2707
|
u("span", {
|
|
2682
2708
|
"data-cy": "legacy-total",
|
|
2683
2709
|
class: B(a.loading ? "opacity-50" : "")
|
|
2684
|
-
}, h(y.value) + " " + h(c(
|
|
2710
|
+
}, h(y.value) + " " + h(c(ee)(y.value, "result")) + " across " + h(r.value), 3)
|
|
2685
2711
|
]),
|
|
2686
2712
|
key: "1"
|
|
2687
2713
|
} : void 0
|
|
2688
2714
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
2689
2715
|
]));
|
|
2690
2716
|
}
|
|
2691
|
-
}),
|
|
2717
|
+
}), kl = /* @__PURE__ */ F({
|
|
2692
2718
|
__name: "ForgeFilterHeader",
|
|
2693
2719
|
props: {
|
|
2694
2720
|
dataType: {},
|
|
@@ -2696,25 +2722,20 @@ const Jt = {
|
|
|
2696
2722
|
},
|
|
2697
2723
|
setup(e) {
|
|
2698
2724
|
return (t, l) => {
|
|
2699
|
-
const a =
|
|
2700
|
-
return t.dataType === "numeric" ? (s(), k(a, V({ key: 0 }, t.$attrs
|
|
2725
|
+
const a = me;
|
|
2726
|
+
return t.dataType === "numeric" ? (s(), k(a, K(V({ key: 0 }, t.$attrs)), null, 16)) : t.dataType === "date" ? (s(), k(Rt, V({ key: 1 }, t.$attrs, {
|
|
2701
2727
|
"show-icon": !1,
|
|
2702
|
-
"show-on-focus": !0
|
|
2703
|
-
|
|
2704
|
-
}), null, 16)) : t.dataType === "select" ? (s(), k(c(de), V({ key: 2 }, t.$attrs, {
|
|
2705
|
-
options: t.dropdownOptions,
|
|
2706
|
-
class: "dropdown-input w-100"
|
|
2707
|
-
}), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), k(c(Oe), V({ key: 3 }, t.$attrs, {
|
|
2728
|
+
"show-on-focus": !0
|
|
2729
|
+
}), null, 16)) : t.dataType === "select" ? (s(), k(c(de), V({ key: 2 }, t.$attrs, { options: t.dropdownOptions }), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), k(c(ze), V({ key: 3 }, t.$attrs, {
|
|
2708
2730
|
options: t.dropdownOptions,
|
|
2709
2731
|
showToggleAll: !1,
|
|
2710
2732
|
placeholder: " ",
|
|
2711
|
-
filter: ""
|
|
2712
|
-
|
|
2713
|
-
}), null, 16, ["options"])) : (s(), k(c(re), V({ key: 4 }, t.$attrs, { class: "w-100" }), null, 16));
|
|
2733
|
+
filter: ""
|
|
2734
|
+
}), null, 16, ["options"])) : (s(), k(c(re), K(V({ key: 4 }, t.$attrs)), null, 16));
|
|
2714
2735
|
};
|
|
2715
2736
|
}
|
|
2716
2737
|
});
|
|
2717
|
-
function
|
|
2738
|
+
function be(e, t, l, a) {
|
|
2718
2739
|
const o = t.flatMap((n) => n.file);
|
|
2719
2740
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2720
2741
|
const i = o.findIndex((y) => y.name === n.name);
|
|
@@ -2726,10 +2747,10 @@ function fe(e, t, l, a) {
|
|
|
2726
2747
|
})) : t[i].status = "Duplicate";
|
|
2727
2748
|
}), t;
|
|
2728
2749
|
}
|
|
2729
|
-
async function
|
|
2750
|
+
async function ca(e, t) {
|
|
2730
2751
|
if (e === "Uploaded" && t !== null)
|
|
2731
2752
|
try {
|
|
2732
|
-
await new
|
|
2753
|
+
await new pe(t).delete();
|
|
2733
2754
|
} catch (l) {
|
|
2734
2755
|
if (l !== "BlobNotFound") {
|
|
2735
2756
|
e = "DeleteFileFailed";
|
|
@@ -2749,13 +2770,13 @@ function ue(e, t = !0, l = 1) {
|
|
|
2749
2770
|
while (Math.round(Math.abs(e) * i) / i >= a && n < o.length - 1);
|
|
2750
2771
|
return e.toFixed(l) + " " + o[n];
|
|
2751
2772
|
}
|
|
2752
|
-
function
|
|
2773
|
+
function ma(e) {
|
|
2753
2774
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
2754
2775
|
}
|
|
2755
|
-
function
|
|
2776
|
+
function pa(e) {
|
|
2756
2777
|
return URL.createObjectURL(e);
|
|
2757
2778
|
}
|
|
2758
|
-
const
|
|
2779
|
+
const va = { class: "d-flex justify-content-between" }, ya = ["accept", "disabled", "multiple"], ba = /* @__PURE__ */ F({
|
|
2759
2780
|
__name: "UploadButton",
|
|
2760
2781
|
props: /* @__PURE__ */ H({
|
|
2761
2782
|
acceptedFileTypes: {},
|
|
@@ -2768,9 +2789,9 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2768
2789
|
emits: ["update:modelValue"],
|
|
2769
2790
|
setup(e) {
|
|
2770
2791
|
const t = E(e, "modelValue"), l = w(() => e.maxFileInput <= t.value.length), a = (o) => {
|
|
2771
|
-
t.value =
|
|
2792
|
+
t.value = be(o, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2772
2793
|
};
|
|
2773
|
-
return (o, n) => (s(), v("div",
|
|
2794
|
+
return (o, n) => (s(), v("div", va, [
|
|
2774
2795
|
_(o.$slots, "message"),
|
|
2775
2796
|
u("div", null, [
|
|
2776
2797
|
u("input", {
|
|
@@ -2781,7 +2802,7 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2781
2802
|
disabled: l.value,
|
|
2782
2803
|
multiple: o.maxFileInput > 1,
|
|
2783
2804
|
onInput: n[0] || (n[0] = (i) => a([...i.target.files]))
|
|
2784
|
-
}, null, 40,
|
|
2805
|
+
}, null, 40, ya),
|
|
2785
2806
|
u("label", {
|
|
2786
2807
|
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
2787
2808
|
id: "file-input-button",
|
|
@@ -2805,14 +2826,14 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2805
2826
|
}, "Accepted File Types: " + h(o.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) : C("", !0)
|
|
2806
2827
|
]));
|
|
2807
2828
|
}
|
|
2808
|
-
}),
|
|
2829
|
+
}), fa = {
|
|
2809
2830
|
key: 0,
|
|
2810
2831
|
class: "py-4 px-3",
|
|
2811
2832
|
id: "placeholder-message"
|
|
2812
|
-
},
|
|
2833
|
+
}, ga = {
|
|
2813
2834
|
key: 1,
|
|
2814
2835
|
class: "d-flex flex-column"
|
|
2815
|
-
},
|
|
2836
|
+
}, ha = /* @__PURE__ */ F({
|
|
2816
2837
|
__name: "DragDropArea",
|
|
2817
2838
|
props: /* @__PURE__ */ H({
|
|
2818
2839
|
maxFileInput: {},
|
|
@@ -2824,8 +2845,8 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2824
2845
|
}),
|
|
2825
2846
|
emits: ["update:modelValue"],
|
|
2826
2847
|
setup(e) {
|
|
2827
|
-
const t = E(e, "modelValue"), l =
|
|
2828
|
-
l.value = !1, n.dataTransfer.files.length > e.maxFileInput || a.value ? n.preventDefault() : t.value =
|
|
2848
|
+
const t = E(e, "modelValue"), l = I(!1), a = w(() => e.maxFileInput <= t.value.length), o = (n) => {
|
|
2849
|
+
l.value = !1, n.dataTransfer.files.length > e.maxFileInput || a.value ? n.preventDefault() : t.value = be([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
|
|
2829
2850
|
};
|
|
2830
2851
|
return (n, i) => (s(), v("div", {
|
|
2831
2852
|
id: "drag-drop-area",
|
|
@@ -2834,7 +2855,7 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2834
2855
|
onDragover: i[1] || (i[1] = G((d) => l.value = !0, ["prevent"])),
|
|
2835
2856
|
onDrop: G(o, ["prevent"])
|
|
2836
2857
|
}, [
|
|
2837
|
-
t.value.length === 0 ? (s(), v("div",
|
|
2858
|
+
t.value.length === 0 ? (s(), v("div", fa, [
|
|
2838
2859
|
b(c(T), {
|
|
2839
2860
|
icon: "bi:upload",
|
|
2840
2861
|
class: "me-2",
|
|
@@ -2842,12 +2863,12 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2842
2863
|
width: "20px"
|
|
2843
2864
|
}),
|
|
2844
2865
|
z(" Drag and drop files here ")
|
|
2845
|
-
])) : (s(), v("div",
|
|
2866
|
+
])) : (s(), v("div", ga, [
|
|
2846
2867
|
_(n.$slots, "default")
|
|
2847
2868
|
]))
|
|
2848
2869
|
], 34));
|
|
2849
2870
|
}
|
|
2850
|
-
}),
|
|
2871
|
+
}), wa = { class: "d-flex align-items-center me-2" }, xa = /* @__PURE__ */ F({
|
|
2851
2872
|
__name: "UploadStatus",
|
|
2852
2873
|
props: {
|
|
2853
2874
|
fileSize: {},
|
|
@@ -2872,8 +2893,8 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2872
2893
|
return "Upload Failed: Connection error, please try again.";
|
|
2873
2894
|
}
|
|
2874
2895
|
});
|
|
2875
|
-
return (a, o) => (s(), v("div",
|
|
2876
|
-
a.uploadStatus === "Uploading" ? (s(), k(
|
|
2896
|
+
return (a, o) => (s(), v("div", wa, [
|
|
2897
|
+
a.uploadStatus === "Uploading" ? (s(), k(qt, {
|
|
2877
2898
|
key: 0,
|
|
2878
2899
|
pixelWidth: 200,
|
|
2879
2900
|
animate: "",
|
|
@@ -2897,16 +2918,16 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2897
2918
|
}, 8, ["severity"])) : C("", !0)
|
|
2898
2919
|
]));
|
|
2899
2920
|
}
|
|
2900
|
-
}),
|
|
2921
|
+
}), ka = ["data-cy"], _a = { class: "ms-3 d-flex flex-column" }, $a = {
|
|
2901
2922
|
key: 1,
|
|
2902
2923
|
id: "file-name"
|
|
2903
|
-
},
|
|
2924
|
+
}, Ba = {
|
|
2904
2925
|
class: "text-black-50",
|
|
2905
2926
|
id: "file-type"
|
|
2906
|
-
},
|
|
2927
|
+
}, Fa = {
|
|
2907
2928
|
class: "text-black-50",
|
|
2908
2929
|
id: "file-size"
|
|
2909
|
-
},
|
|
2930
|
+
}, Sa = { class: "ms-auto my-auto d-flex" }, Ca = /* @__PURE__ */ F({
|
|
2910
2931
|
__name: "FileInfo",
|
|
2911
2932
|
props: /* @__PURE__ */ H({
|
|
2912
2933
|
editableFileName: { type: Boolean },
|
|
@@ -2925,7 +2946,7 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2925
2946
|
}),
|
|
2926
2947
|
emits: /* @__PURE__ */ H(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
2927
2948
|
setup(e, { emit: t }) {
|
|
2928
|
-
const l = E(e, "file"), a = E(e, "blobFileName"), o = E(e, "uploadStatus"), n = t, i =
|
|
2949
|
+
const l = E(e, "file"), a = E(e, "blobFileName"), o = E(e, "uploadStatus"), n = t, i = I(l.value.name), d = I(""), y = I(0), r = I(), m = w(() => e.acceptedFileTypes.includes(l.value.type)), p = w(() => l.value.size <= e.maxFileSize), x = () => {
|
|
2929
2950
|
l.value = new File([l.value], i.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
2930
2951
|
}, $ = async () => {
|
|
2931
2952
|
if (!m.value || !p.value) {
|
|
@@ -2940,12 +2961,12 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2940
2961
|
}
|
|
2941
2962
|
try {
|
|
2942
2963
|
o.value = "Uploading";
|
|
2943
|
-
const f = new
|
|
2964
|
+
const f = new pe(S), M = {
|
|
2944
2965
|
abortSignal: r.value.signal,
|
|
2945
2966
|
onProgress: (Y) => y.value = Y.loadedBytes,
|
|
2946
2967
|
tags: { temp: "true" }
|
|
2947
2968
|
};
|
|
2948
|
-
await f.uploadData(l.value,
|
|
2969
|
+
await f.uploadData(l.value, M), d.value = S, o.value = "Uploaded", a.value = O;
|
|
2949
2970
|
} catch (f) {
|
|
2950
2971
|
if (f.name === "AbortError") {
|
|
2951
2972
|
o.value = "Aborted";
|
|
@@ -2954,7 +2975,7 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2954
2975
|
o.value = "Failed";
|
|
2955
2976
|
}
|
|
2956
2977
|
}, P = async () => {
|
|
2957
|
-
await
|
|
2978
|
+
await ca(o.value, d.value), n("deleted", l.value);
|
|
2958
2979
|
};
|
|
2959
2980
|
return ae(() => {
|
|
2960
2981
|
e.autoUploadToBlob && $();
|
|
@@ -2965,11 +2986,11 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2965
2986
|
"data-cy": `file-info-${l.value.name}`
|
|
2966
2987
|
}, [
|
|
2967
2988
|
u("div", null, [
|
|
2968
|
-
c(
|
|
2989
|
+
c(ma)(l.value.type) ? (s(), k(c(Oe), {
|
|
2969
2990
|
key: 0,
|
|
2970
2991
|
id: "thumbnail-image",
|
|
2971
2992
|
"image-class": "image-file-thumbnail border",
|
|
2972
|
-
src: c(
|
|
2993
|
+
src: c(pa)(l.value),
|
|
2973
2994
|
alt: l.value.name,
|
|
2974
2995
|
width: "75px",
|
|
2975
2996
|
preview: ""
|
|
@@ -2981,23 +3002,23 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
2981
3002
|
width: "75px"
|
|
2982
3003
|
}))
|
|
2983
3004
|
]),
|
|
2984
|
-
u("div",
|
|
3005
|
+
u("div", _a, [
|
|
2985
3006
|
u("div", null, [
|
|
2986
|
-
S.editableFileName ? (s(), k(
|
|
3007
|
+
S.editableFileName ? (s(), k(kt, {
|
|
2987
3008
|
key: 0,
|
|
2988
3009
|
id: "edit-file-name",
|
|
2989
3010
|
modelValue: i.value,
|
|
2990
|
-
"onUpdate:modelValue": O[0] || (O[0] = (
|
|
3011
|
+
"onUpdate:modelValue": O[0] || (O[0] = (M) => i.value = M),
|
|
2991
3012
|
rules: S.customFileNameRules,
|
|
2992
3013
|
name: l.value.name,
|
|
2993
3014
|
"complete-action": x
|
|
2994
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (s(), v("span",
|
|
3015
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (s(), v("span", $a, h(l.value.name), 1))
|
|
2995
3016
|
]),
|
|
2996
|
-
u("span",
|
|
2997
|
-
u("span",
|
|
3017
|
+
u("span", Ba, "File type: " + h(l.value.type.split("/").pop()), 1),
|
|
3018
|
+
u("span", Fa, "File size: " + h(c(ue)(l.value.size)), 1)
|
|
2998
3019
|
]),
|
|
2999
|
-
u("div",
|
|
3000
|
-
(s(), k(
|
|
3020
|
+
u("div", Sa, [
|
|
3021
|
+
(s(), k(xa, {
|
|
3001
3022
|
key: o.value,
|
|
3002
3023
|
"file-size": l.value.size,
|
|
3003
3024
|
"upload-status": o.value,
|
|
@@ -3019,7 +3040,7 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
3019
3040
|
o.value === "Uploading" ? (s(), k(f, {
|
|
3020
3041
|
key: 1,
|
|
3021
3042
|
link: "",
|
|
3022
|
-
onClick: O[1] || (O[1] = (
|
|
3043
|
+
onClick: O[1] || (O[1] = (M) => r.value.value.abort())
|
|
3023
3044
|
}, {
|
|
3024
3045
|
default: g(() => [
|
|
3025
3046
|
b(c(T), { icon: "bi:x-circle-fill" })
|
|
@@ -3037,20 +3058,20 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
3037
3058
|
_: 1
|
|
3038
3059
|
}))
|
|
3039
3060
|
])
|
|
3040
|
-
], 8,
|
|
3061
|
+
], 8, ka);
|
|
3041
3062
|
};
|
|
3042
3063
|
}
|
|
3043
|
-
}),
|
|
3064
|
+
}), Va = { class: "d-flex justify-content-end mt-1" }, Ta = { id: "max-file-size" }, Pa = /* @__PURE__ */ F({
|
|
3044
3065
|
__name: "MaxFileSize",
|
|
3045
3066
|
props: {
|
|
3046
3067
|
maxFileSize: {}
|
|
3047
3068
|
},
|
|
3048
3069
|
setup(e) {
|
|
3049
|
-
return (t, l) => (s(), v("div",
|
|
3050
|
-
u("div",
|
|
3070
|
+
return (t, l) => (s(), v("div", Va, [
|
|
3071
|
+
u("div", Ta, "Max file size: " + h(c(ue)(t.maxFileSize)), 1)
|
|
3051
3072
|
]));
|
|
3052
3073
|
}
|
|
3053
|
-
}),
|
|
3074
|
+
}), Ia = { "data-cy": "file-uploader" }, Ma = { key: 0 }, _l = /* @__PURE__ */ F({
|
|
3054
3075
|
__name: "ForgeFileUploader",
|
|
3055
3076
|
props: /* @__PURE__ */ H({
|
|
3056
3077
|
acceptedFileTypes: {},
|
|
@@ -3070,13 +3091,13 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
3070
3091
|
const t = E(e, "modelValue"), l = e, a = (o) => {
|
|
3071
3092
|
t.value = t.value.filter((n) => n.file != o);
|
|
3072
3093
|
};
|
|
3073
|
-
return (o, n) => (s(), v("div",
|
|
3074
|
-
b(
|
|
3094
|
+
return (o, n) => (s(), v("div", Ia, [
|
|
3095
|
+
b(ba, V(l, {
|
|
3075
3096
|
modelValue: t.value,
|
|
3076
3097
|
"onUpdate:modelValue": n[0] || (n[0] = (i) => t.value = i)
|
|
3077
3098
|
}), null, 16, ["modelValue"]),
|
|
3078
3099
|
o.showDragDropArea ? (s(), v("div", Ma, [
|
|
3079
|
-
b(
|
|
3100
|
+
b(ha, {
|
|
3080
3101
|
"max-file-input": l.maxFileInput,
|
|
3081
3102
|
"max-file-size": l.maxFileSize,
|
|
3082
3103
|
"accepted-file-types": l.acceptedFileTypes,
|
|
@@ -3085,7 +3106,7 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
3085
3106
|
}, {
|
|
3086
3107
|
default: g(() => [
|
|
3087
3108
|
(s(!0), v(N, null, j(t.value, ({ file: i }, d) => (s(), v("span", null, [
|
|
3088
|
-
(s(), k(
|
|
3109
|
+
(s(), k(Ca, V({
|
|
3089
3110
|
key: i.name,
|
|
3090
3111
|
class: d === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
3091
3112
|
file: t.value[d].file,
|
|
@@ -3100,7 +3121,7 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
3100
3121
|
]),
|
|
3101
3122
|
_: 1
|
|
3102
3123
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
3103
|
-
b(
|
|
3124
|
+
b(Pa, {
|
|
3104
3125
|
"max-file-size": l.maxFileSize
|
|
3105
3126
|
}, null, 8, ["max-file-size"])
|
|
3106
3127
|
])) : C("", !0)
|
|
@@ -3108,28 +3129,28 @@ const pa = { class: "d-flex justify-content-between" }, va = ["accept", "disable
|
|
|
3108
3129
|
}
|
|
3109
3130
|
});
|
|
3110
3131
|
export {
|
|
3111
|
-
|
|
3112
|
-
|
|
3132
|
+
il as Bootstrap_PT,
|
|
3133
|
+
rl as ForgeActionButton,
|
|
3113
3134
|
ne as ForgeAlert,
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
+
ve as ForgeCheckbox,
|
|
3136
|
+
fl as ForgeChips,
|
|
3137
|
+
Rt as ForgeDatepicker,
|
|
3138
|
+
_l as ForgeFileUploader,
|
|
3139
|
+
kl as ForgeFilterHeader,
|
|
3140
|
+
yl as ForgeForm,
|
|
3141
|
+
bl as ForgeFormField,
|
|
3142
|
+
kt as ForgeInlineEditor,
|
|
3143
|
+
dl as ForgeLink,
|
|
3144
|
+
ye as ForgeLoader,
|
|
3145
|
+
ul as ForgeModal,
|
|
3146
|
+
Vt as ForgeMultiSelect,
|
|
3147
|
+
ml as ForgeMultiSelectPreview,
|
|
3148
|
+
cl as ForgeNavbar,
|
|
3149
|
+
pl as ForgePageHeader,
|
|
3150
|
+
qt as ForgeProgressBar,
|
|
3151
|
+
vl as ForgeRemainingCharacters,
|
|
3152
|
+
gl as ForgeStatWidget,
|
|
3153
|
+
hl as ForgeStepper,
|
|
3154
|
+
xl as ForgeTable,
|
|
3155
|
+
wl as ForgeTile
|
|
3135
3156
|
};
|