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