@3squared/forge-ui-3 0.13.0 → 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" },
|
|
@@ -1170,25 +1159,25 @@ const bt = { key: 0 }, ft = {
|
|
|
1170
1159
|
}),
|
|
1171
1160
|
emits: ["update:visible"],
|
|
1172
1161
|
setup(e) {
|
|
1173
|
-
const t =
|
|
1162
|
+
const t = A(e, "visible"), a = I(!1), o = e, l = I(!1), n = I({
|
|
1174
1163
|
hasError: !1,
|
|
1175
1164
|
header: "",
|
|
1176
1165
|
message: []
|
|
1177
|
-
}),
|
|
1166
|
+
}), u = () => {
|
|
1178
1167
|
a.value = !1;
|
|
1179
1168
|
}, r = () => {
|
|
1180
1169
|
a.value = !0;
|
|
1181
|
-
},
|
|
1170
|
+
}, d = () => {
|
|
1182
1171
|
t.value = !1;
|
|
1183
|
-
},
|
|
1172
|
+
}, p = async () => {
|
|
1184
1173
|
if (o.onConfirm) {
|
|
1185
1174
|
l.value = !0, n.value.hasError = !1;
|
|
1186
1175
|
try {
|
|
1187
1176
|
const s = await o.onConfirm();
|
|
1188
|
-
(s || s == null) &&
|
|
1177
|
+
(s || s == null) && d();
|
|
1189
1178
|
} catch (s) {
|
|
1190
1179
|
n.value.hasError = !0;
|
|
1191
|
-
const T =
|
|
1180
|
+
const T = vt(s);
|
|
1192
1181
|
n.value.header = T.errorMessage, n.value.message = T.errorDetails;
|
|
1193
1182
|
}
|
|
1194
1183
|
l.value = !1;
|
|
@@ -1205,23 +1194,23 @@ const bt = { key: 0 }, ft = {
|
|
|
1205
1194
|
]
|
|
1206
1195
|
}));
|
|
1207
1196
|
return (s, T) => {
|
|
1208
|
-
const
|
|
1209
|
-
return i(), w(M,
|
|
1197
|
+
const C = R, M = ke;
|
|
1198
|
+
return i(), w(M, _(o, {
|
|
1210
1199
|
onMaximize: r,
|
|
1211
|
-
onUnmaximize:
|
|
1200
|
+
onUnmaximize: u,
|
|
1212
1201
|
pt: v.value
|
|
1213
|
-
}),
|
|
1214
|
-
closeicon:
|
|
1215
|
-
b(
|
|
1202
|
+
}), te({
|
|
1203
|
+
closeicon: g(() => [
|
|
1204
|
+
b(m(V), {
|
|
1216
1205
|
"data-cy": "close-icon",
|
|
1217
1206
|
icon: "bi:x-lg",
|
|
1218
1207
|
width: "18",
|
|
1219
1208
|
height: "18",
|
|
1220
|
-
onClick:
|
|
1209
|
+
onClick: d
|
|
1221
1210
|
})
|
|
1222
1211
|
]),
|
|
1223
|
-
maximizeicon:
|
|
1224
|
-
b(
|
|
1212
|
+
maximizeicon: g(() => [
|
|
1213
|
+
b(m(V), {
|
|
1225
1214
|
"data-cy": "maximisable-icon",
|
|
1226
1215
|
icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1227
1216
|
width: "16",
|
|
@@ -1230,46 +1219,46 @@ const bt = { key: 0 }, ft = {
|
|
|
1230
1219
|
]),
|
|
1231
1220
|
_: 2
|
|
1232
1221
|
}, [
|
|
1233
|
-
|
|
1222
|
+
Y(s.$slots, (P, z) => ({
|
|
1234
1223
|
name: z,
|
|
1235
|
-
fn:
|
|
1236
|
-
n.value.hasError ? (i(), w(
|
|
1224
|
+
fn: g((f) => [
|
|
1225
|
+
n.value.hasError ? (i(), w(le, {
|
|
1237
1226
|
key: 0,
|
|
1238
1227
|
severity: "danger",
|
|
1239
1228
|
"data-cy": "error"
|
|
1240
1229
|
}, {
|
|
1241
|
-
default:
|
|
1230
|
+
default: g(() => [
|
|
1242
1231
|
c("p", {
|
|
1243
1232
|
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1244
1233
|
}, h(n.value.header), 3),
|
|
1245
|
-
n.value.message.length > 0 ? (i(), y("ul",
|
|
1246
|
-
(i(!0), y(
|
|
1247
|
-
])) :
|
|
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)
|
|
1248
1237
|
]),
|
|
1249
1238
|
_: 1
|
|
1250
|
-
})) :
|
|
1251
|
-
$(s.$slots, z, ee(
|
|
1239
|
+
})) : S("", !0),
|
|
1240
|
+
$(s.$slots, z, Q(ee(f || {}))),
|
|
1252
1241
|
l.value ? $(s.$slots, "loader", { key: 1 }, () => [
|
|
1253
|
-
b(
|
|
1254
|
-
]) :
|
|
1242
|
+
b(me, { "data-cy": "loader" })
|
|
1243
|
+
]) : S("", !0)
|
|
1255
1244
|
])
|
|
1256
1245
|
})),
|
|
1257
1246
|
s.showFooter ? {
|
|
1258
1247
|
name: "footer",
|
|
1259
|
-
fn:
|
|
1260
|
-
c("div",
|
|
1261
|
-
b(
|
|
1248
|
+
fn: g(() => [
|
|
1249
|
+
c("div", bt, [
|
|
1250
|
+
b(C, {
|
|
1262
1251
|
label: s.cancelText,
|
|
1263
1252
|
class: B(o.cancelClass),
|
|
1264
1253
|
outlined: "",
|
|
1265
|
-
onClick:
|
|
1254
|
+
onClick: d,
|
|
1266
1255
|
id: "cancel-button",
|
|
1267
1256
|
type: o.cancelButtonType
|
|
1268
1257
|
}, null, 8, ["label", "class", "type"]),
|
|
1269
|
-
b(
|
|
1258
|
+
b(C, {
|
|
1270
1259
|
label: s.submitText,
|
|
1271
1260
|
class: B([o.submitClass, "ms-auto"]),
|
|
1272
|
-
onClick:
|
|
1261
|
+
onClick: p,
|
|
1273
1262
|
id: "submit-button",
|
|
1274
1263
|
type: o.submitButtonType
|
|
1275
1264
|
}, null, 8, ["label", "class", "type"])
|
|
@@ -1280,7 +1269,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1280
1269
|
]), 1040, ["pt"]);
|
|
1281
1270
|
};
|
|
1282
1271
|
}
|
|
1283
|
-
}),
|
|
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({
|
|
1284
1273
|
__name: "ForgeInlineEditor",
|
|
1285
1274
|
props: /* @__PURE__ */ E({
|
|
1286
1275
|
name: { default: "" },
|
|
@@ -1295,10 +1284,10 @@ const bt = { key: 0 }, ft = {
|
|
|
1295
1284
|
}),
|
|
1296
1285
|
emits: ["update:modelValue"],
|
|
1297
1286
|
setup(e) {
|
|
1298
|
-
const t = e, a =
|
|
1299
|
-
var
|
|
1300
|
-
o.value = !o.value, (
|
|
1301
|
-
},
|
|
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 () => {
|
|
1302
1291
|
if (T.value)
|
|
1303
1292
|
return !1;
|
|
1304
1293
|
if (a.value = s.value, t.completeAction)
|
|
@@ -1311,56 +1300,56 @@ const bt = { key: 0 }, ft = {
|
|
|
1311
1300
|
o.value = !o.value;
|
|
1312
1301
|
}, r = () => {
|
|
1313
1302
|
o.value = !o.value;
|
|
1314
|
-
},
|
|
1303
|
+
}, d = () => {
|
|
1315
1304
|
s.value = null;
|
|
1316
|
-
}, { errorMessage:
|
|
1305
|
+
}, { errorMessage: p, errors: v, value: s } = K(() => t.name, void 0, {
|
|
1317
1306
|
initialValue: a.value
|
|
1318
1307
|
});
|
|
1319
|
-
|
|
1308
|
+
ne(() => {
|
|
1320
1309
|
s.value = a.value;
|
|
1321
1310
|
});
|
|
1322
1311
|
const T = x(() => v.value.length > 0);
|
|
1323
|
-
return (
|
|
1324
|
-
const P =
|
|
1312
|
+
return (C, M) => {
|
|
1313
|
+
const P = ie, z = R;
|
|
1325
1314
|
return i(), y("div", {
|
|
1326
1315
|
id: t.name
|
|
1327
1316
|
}, [
|
|
1328
|
-
|
|
1329
|
-
$(
|
|
1330
|
-
c("span",
|
|
1317
|
+
C.readonly ? (i(), y("div", xt, [
|
|
1318
|
+
$(C.$slots, "default", {}, () => [
|
|
1319
|
+
c("span", kt, h(m(s)), 1)
|
|
1331
1320
|
])
|
|
1332
|
-
])) : (i(), y("div",
|
|
1333
|
-
o.value ? (i(), y("div",
|
|
1334
|
-
j((i(), y("div",
|
|
1335
|
-
$(
|
|
1321
|
+
])) : (i(), y("div", gt, [
|
|
1322
|
+
o.value ? (i(), y("div", ht, [
|
|
1323
|
+
j((i(), y("div", wt, [
|
|
1324
|
+
$(C.$slots, "editor", {
|
|
1336
1325
|
class: B({ "is-invalid": T.value }),
|
|
1337
|
-
editFinished:
|
|
1326
|
+
editFinished: u,
|
|
1338
1327
|
cancel: r,
|
|
1339
|
-
val:
|
|
1328
|
+
val: m(s)
|
|
1340
1329
|
}, () => [
|
|
1341
1330
|
b(P, {
|
|
1342
1331
|
"data-cy": "input",
|
|
1343
1332
|
ref_key: "input",
|
|
1344
1333
|
ref: l,
|
|
1345
|
-
modelValue:
|
|
1346
|
-
"onUpdate:modelValue": M[0] || (M[0] = (
|
|
1334
|
+
modelValue: m(s),
|
|
1335
|
+
"onUpdate:modelValue": M[0] || (M[0] = (f) => se(s) ? s.value = f : null),
|
|
1347
1336
|
modelModifiers: { trim: !0 },
|
|
1348
1337
|
class: B({ "is-invalid": T.value }),
|
|
1349
1338
|
onKeydown: [
|
|
1350
|
-
|
|
1351
|
-
|
|
1339
|
+
J(u, ["enter"]),
|
|
1340
|
+
J(r, ["esc"])
|
|
1352
1341
|
]
|
|
1353
1342
|
}, null, 8, ["modelValue", "class"])
|
|
1354
1343
|
]),
|
|
1355
|
-
b(
|
|
1344
|
+
b(m(V), {
|
|
1356
1345
|
icon: "bi:x-circle",
|
|
1357
1346
|
class: "mx-2 cursor-pointer",
|
|
1358
|
-
onClick:
|
|
1359
|
-
onKeydown:
|
|
1347
|
+
onClick: d,
|
|
1348
|
+
onKeydown: J(d, ["enter"]),
|
|
1360
1349
|
"data-cy": "clear-icon"
|
|
1361
1350
|
})
|
|
1362
1351
|
])), [
|
|
1363
|
-
[
|
|
1352
|
+
[m($e), u]
|
|
1364
1353
|
])
|
|
1365
1354
|
])) : (i(), y("div", {
|
|
1366
1355
|
key: 1,
|
|
@@ -1368,22 +1357,22 @@ const bt = { key: 0 }, ft = {
|
|
|
1368
1357
|
onClick: n,
|
|
1369
1358
|
onFocus: n
|
|
1370
1359
|
}, [
|
|
1371
|
-
$(
|
|
1360
|
+
$(C.$slots, "default", {}, () => [
|
|
1372
1361
|
c("div", {
|
|
1373
1362
|
class: B(["pe-2 cursor-pointer", { "text-invalid": T.value }]),
|
|
1374
1363
|
"data-cy": "value"
|
|
1375
|
-
}, h(
|
|
1364
|
+
}, h(m(s) ? m(s) : "Click to edit"), 3)
|
|
1376
1365
|
]),
|
|
1377
1366
|
b(z, {
|
|
1378
1367
|
link: "",
|
|
1379
1368
|
class: "p-0 m-0"
|
|
1380
1369
|
}, {
|
|
1381
|
-
default:
|
|
1382
|
-
b(
|
|
1370
|
+
default: g(() => [
|
|
1371
|
+
b(m(V), {
|
|
1383
1372
|
icon: "bi:pencil",
|
|
1384
1373
|
class: B(T.value ? "text-invalid" : "text-muted"),
|
|
1385
1374
|
"data-cy": "edit-icon",
|
|
1386
|
-
onKeydown:
|
|
1375
|
+
onKeydown: J(n, ["enter"])
|
|
1387
1376
|
}, null, 8, ["class"])
|
|
1388
1377
|
]),
|
|
1389
1378
|
_: 1
|
|
@@ -1393,13 +1382,13 @@ const bt = { key: 0 }, ft = {
|
|
|
1393
1382
|
j(c("small", {
|
|
1394
1383
|
"data-cy": "error",
|
|
1395
1384
|
class: "text-invalid"
|
|
1396
|
-
}, h(p
|
|
1385
|
+
}, h(m(p)), 513), [
|
|
1397
1386
|
[H, T.value]
|
|
1398
1387
|
])
|
|
1399
|
-
], 8,
|
|
1388
|
+
], 8, ft);
|
|
1400
1389
|
};
|
|
1401
1390
|
}
|
|
1402
|
-
}),
|
|
1391
|
+
}), Bt = ["href"], gl = /* @__PURE__ */ F({
|
|
1403
1392
|
__name: "ForgeNavbar",
|
|
1404
1393
|
props: {
|
|
1405
1394
|
severity: { default: "light" },
|
|
@@ -1444,12 +1433,12 @@ const bt = { key: 0 }, ft = {
|
|
|
1444
1433
|
})
|
|
1445
1434
|
}));
|
|
1446
1435
|
return (o, l) => {
|
|
1447
|
-
const n =
|
|
1448
|
-
return i(), w(n,
|
|
1436
|
+
const n = Be;
|
|
1437
|
+
return i(), w(n, _({ ...t, ...o.$attrs }, {
|
|
1449
1438
|
pt: a.value,
|
|
1450
1439
|
"data-cy": "navbar"
|
|
1451
|
-
}),
|
|
1452
|
-
start:
|
|
1440
|
+
}), te({
|
|
1441
|
+
start: g(() => [
|
|
1453
1442
|
c("a", {
|
|
1454
1443
|
href: o.logoUrl,
|
|
1455
1444
|
class: "navbar-brand ms-3",
|
|
@@ -1458,11 +1447,11 @@ const bt = { key: 0 }, ft = {
|
|
|
1458
1447
|
$(o.$slots, "logo", {}, () => [
|
|
1459
1448
|
O(" Logo ")
|
|
1460
1449
|
])
|
|
1461
|
-
], 8,
|
|
1450
|
+
], 8, Bt)
|
|
1462
1451
|
]),
|
|
1463
|
-
menubuttonicon:
|
|
1452
|
+
menubuttonicon: g(() => [
|
|
1464
1453
|
$(o.$slots, "menubuttonicon", {}, () => [
|
|
1465
|
-
b(
|
|
1454
|
+
b(m(V), {
|
|
1466
1455
|
icon: "bi:list",
|
|
1467
1456
|
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1468
1457
|
height: "24",
|
|
@@ -1472,16 +1461,16 @@ const bt = { key: 0 }, ft = {
|
|
|
1472
1461
|
]),
|
|
1473
1462
|
_: 2
|
|
1474
1463
|
}, [
|
|
1475
|
-
|
|
1464
|
+
Y(o.$slots, (u, r) => ({
|
|
1476
1465
|
name: r,
|
|
1477
|
-
fn:
|
|
1478
|
-
$(o.$slots, r, ee(
|
|
1466
|
+
fn: g((d) => [
|
|
1467
|
+
$(o.$slots, r, Q(ee(d)))
|
|
1479
1468
|
])
|
|
1480
1469
|
}))
|
|
1481
1470
|
]), 1040, ["pt"]);
|
|
1482
1471
|
};
|
|
1483
1472
|
}
|
|
1484
|
-
}), _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({
|
|
1485
1474
|
__name: "ForgeMultiSelect",
|
|
1486
1475
|
props: {
|
|
1487
1476
|
severity: { default: "primary" },
|
|
@@ -1493,19 +1482,19 @@ const bt = { key: 0 }, ft = {
|
|
|
1493
1482
|
},
|
|
1494
1483
|
emits: ["update:modelValue"],
|
|
1495
1484
|
setup(e, { emit: t }) {
|
|
1496
|
-
const a = e, o = (
|
|
1497
|
-
const
|
|
1485
|
+
const a = e, o = (N, D) => {
|
|
1486
|
+
const U = {
|
|
1498
1487
|
...D,
|
|
1499
1488
|
$isDisabled: D.$isDisabled ?? !1
|
|
1500
1489
|
};
|
|
1501
|
-
|
|
1502
|
-
}, l =
|
|
1490
|
+
N(U);
|
|
1491
|
+
}, l = fe(), n = t, { errors: u, value: r, errorMessage: d } = K(() => a.name, void 0, {
|
|
1503
1492
|
initialValue: l.modelValue
|
|
1504
|
-
}),
|
|
1493
|
+
}), p = I(!1), v = x(() => ({
|
|
1505
1494
|
multiple: !0,
|
|
1506
1495
|
label: "label",
|
|
1507
1496
|
trackBy: "id",
|
|
1508
|
-
showPointer: !
|
|
1497
|
+
showPointer: !p.value,
|
|
1509
1498
|
placeholder: l.searchable === null || l.searchable ? "Search" : "Select",
|
|
1510
1499
|
allowEmpty: !0,
|
|
1511
1500
|
selectValue: "",
|
|
@@ -1514,125 +1503,119 @@ const bt = { key: 0 }, ft = {
|
|
|
1514
1503
|
searchable: !!(l.searchable === null || l.searchable) && l.modelValue.length === l.options.length,
|
|
1515
1504
|
async: !1,
|
|
1516
1505
|
...l
|
|
1517
|
-
})), 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 = () => {
|
|
1518
1507
|
r.value = v.value.multiple ? [] : null, n("update:modelValue", r.value);
|
|
1519
|
-
}, G = (
|
|
1520
|
-
n("update:modelValue", a.selectValue ?
|
|
1521
|
-
}, Z = (
|
|
1522
|
-
|
|
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]));
|
|
1523
1512
|
};
|
|
1524
|
-
return (
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
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), {
|
|
1539
1543
|
icon: "bi:x",
|
|
1540
|
-
class: "my-auto
|
|
1541
|
-
onMousedown:
|
|
1542
|
-
"data-cy": "clear",
|
|
1544
|
+
class: "my-auto multiselect__tag-icon",
|
|
1545
|
+
onMousedown: q((Na) => o(W, U), ["prevent", "stop"]),
|
|
1543
1546
|
height: "18px",
|
|
1544
1547
|
width: "18px"
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
]),
|
|
1564
|
-
default: f(() => [
|
|
1565
|
-
(i(!0), y(N, null, q(A.$slots, (L, W) => $(A.$slots, W, { slot: W })), 256))
|
|
1566
|
-
]),
|
|
1567
|
-
_: 2
|
|
1568
|
-
}, [
|
|
1569
|
-
v.value.multiple && A.showSelectAll && !v.value.async ? {
|
|
1570
|
-
name: "beforeList",
|
|
1571
|
-
fn: f(() => [
|
|
1572
|
-
c("li", {
|
|
1573
|
-
class: "multiselect__element",
|
|
1574
|
-
onClick: se,
|
|
1575
|
-
onMouseover: z,
|
|
1576
|
-
onMouseleave: g,
|
|
1577
|
-
"data-cy": "toggle-all"
|
|
1578
|
-
}, [
|
|
1579
|
-
c("span", {
|
|
1580
|
-
class: B(`${T.value}`)
|
|
1581
|
-
}, [
|
|
1582
|
-
b(J, {
|
|
1583
|
-
value: _.value,
|
|
1584
|
-
class: "w-100 p-1"
|
|
1585
|
-
}, {
|
|
1586
|
-
default: f(() => [
|
|
1587
|
-
_t
|
|
1588
|
-
]),
|
|
1589
|
-
_: 1
|
|
1590
|
-
}, 8, ["value"])
|
|
1591
|
-
], 2)
|
|
1592
|
-
], 32)
|
|
1593
|
-
]),
|
|
1594
|
-
key: "0"
|
|
1595
|
-
} : void 0,
|
|
1596
|
-
v.value.multiple ? {
|
|
1597
|
-
name: "option",
|
|
1598
|
-
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
|
+
}, [
|
|
1599
1566
|
c("div", {
|
|
1600
|
-
"
|
|
1567
|
+
class: B(["d-flex py-1", T.value])
|
|
1601
1568
|
}, [
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
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));
|
|
1624
1607
|
}
|
|
1625
|
-
}),
|
|
1608
|
+
}), Pt = {
|
|
1626
1609
|
key: 0,
|
|
1627
1610
|
class: "pl-1"
|
|
1628
|
-
},
|
|
1611
|
+
}, It = { class: "border alternating-item-list" }, zt = {
|
|
1629
1612
|
key: 0,
|
|
1630
1613
|
class: "p-2 border-top border-bottom",
|
|
1631
1614
|
"data-cy": "title"
|
|
1632
|
-
},
|
|
1615
|
+
}, Ot = { class: "d-inline-block" }, Dt = {
|
|
1633
1616
|
key: 1,
|
|
1634
1617
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1635
|
-
},
|
|
1618
|
+
}, hl = /* @__PURE__ */ F({
|
|
1636
1619
|
__name: "ForgeMultiSelectPreview",
|
|
1637
1620
|
props: /* @__PURE__ */ E({
|
|
1638
1621
|
title: { default: "Selected Items" },
|
|
@@ -1647,11 +1630,11 @@ const bt = { key: 0 }, ft = {
|
|
|
1647
1630
|
}),
|
|
1648
1631
|
emits: ["update:modelValue"],
|
|
1649
1632
|
setup(e) {
|
|
1650
|
-
const t = e, a =
|
|
1633
|
+
const t = e, a = A(e, "modelValue"), o = (l) => {
|
|
1651
1634
|
a.value = a.value.filter((n) => n.id !== l);
|
|
1652
1635
|
};
|
|
1653
1636
|
return (l, n) => {
|
|
1654
|
-
const
|
|
1637
|
+
const u = R;
|
|
1655
1638
|
return i(), y("div", {
|
|
1656
1639
|
class: B(l.orientation === "column" ? "row" : ""),
|
|
1657
1640
|
"data-cy": "multiselect-preview"
|
|
@@ -1660,20 +1643,20 @@ const bt = { key: 0 }, ft = {
|
|
|
1660
1643
|
class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1661
1644
|
"data-cy": "multiselect-container"
|
|
1662
1645
|
}, [
|
|
1663
|
-
b(
|
|
1646
|
+
b(pe, _({
|
|
1664
1647
|
modelValue: a.value,
|
|
1665
1648
|
"onUpdate:modelValue": n[0] || (n[0] = (r) => a.value = r),
|
|
1666
1649
|
"limit-text": () => `${a.value.length} selected`,
|
|
1667
1650
|
options: t.options
|
|
1668
1651
|
}, { ...l.$attrs }), {
|
|
1669
|
-
tag:
|
|
1652
|
+
tag: g(() => [
|
|
1670
1653
|
O(h(""))
|
|
1671
1654
|
]),
|
|
1672
|
-
selection:
|
|
1673
|
-
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)
|
|
1674
1657
|
]),
|
|
1675
|
-
default:
|
|
1676
|
-
(i(!0), y(
|
|
1658
|
+
default: g(() => [
|
|
1659
|
+
(i(!0), y(L, null, Y(l.$slots, (r, d) => $(l.$slots, d, { slot: d })), 256))
|
|
1677
1660
|
]),
|
|
1678
1661
|
_: 3
|
|
1679
1662
|
}, 16, ["modelValue", "limit-text", "options"]),
|
|
@@ -1684,62 +1667,62 @@ const bt = { key: 0 }, ft = {
|
|
|
1684
1667
|
"data-cy": "options-preview"
|
|
1685
1668
|
}, [
|
|
1686
1669
|
c("div", {
|
|
1687
|
-
style:
|
|
1670
|
+
style: ge({ height: l.height }),
|
|
1688
1671
|
class: "overflow-auto"
|
|
1689
1672
|
}, [
|
|
1690
|
-
c("div",
|
|
1691
|
-
l.title ? (i(), y("div",
|
|
1692
|
-
(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", {
|
|
1693
1676
|
key: r.id,
|
|
1694
1677
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1695
1678
|
}, [
|
|
1696
1679
|
$(l.$slots, "list-item", { item: r }, () => [
|
|
1697
|
-
c("span",
|
|
1680
|
+
c("span", Ot, h(r.shortLabel ? r.shortLabel : r.label), 1)
|
|
1698
1681
|
]),
|
|
1699
|
-
l.canRemoveItemFromPreview ? (i(), w(
|
|
1682
|
+
l.canRemoveItemFromPreview ? (i(), w(u, {
|
|
1700
1683
|
key: 0,
|
|
1701
1684
|
link: "",
|
|
1702
1685
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1703
|
-
onClick: (
|
|
1686
|
+
onClick: (d) => o(r.id)
|
|
1704
1687
|
}, {
|
|
1705
|
-
default:
|
|
1706
|
-
b(
|
|
1688
|
+
default: g(() => [
|
|
1689
|
+
b(m(V), {
|
|
1707
1690
|
icon: "bi:x",
|
|
1708
1691
|
class: "close-icon",
|
|
1709
1692
|
"data-cy": `close-icon-${r.id}`
|
|
1710
1693
|
}, null, 8, ["data-cy"])
|
|
1711
1694
|
]),
|
|
1712
1695
|
_: 2
|
|
1713
|
-
}, 1032, ["onClick"])) :
|
|
1696
|
+
}, 1032, ["onClick"])) : S("", !0)
|
|
1714
1697
|
]))), 128)),
|
|
1715
|
-
a.value.length === 0 ? (i(), y("div",
|
|
1698
|
+
a.value.length === 0 ? (i(), y("div", Dt, h(t.optionsPreviewEmptyText), 1)) : S("", !0)
|
|
1716
1699
|
])
|
|
1717
1700
|
], 4)
|
|
1718
1701
|
], 2)
|
|
1719
1702
|
], 2);
|
|
1720
1703
|
};
|
|
1721
1704
|
}
|
|
1722
|
-
}),
|
|
1705
|
+
}), Ut = { class: "d-flex justify-content-between pb-2" }, At = {
|
|
1723
1706
|
"data-cy": "title",
|
|
1724
1707
|
class: "my-auto"
|
|
1725
|
-
},
|
|
1708
|
+
}, Nt = {
|
|
1726
1709
|
"data-cy": "slot",
|
|
1727
1710
|
class: "d-flex align-items-center"
|
|
1728
|
-
},
|
|
1711
|
+
}, wl = /* @__PURE__ */ F({
|
|
1729
1712
|
__name: "ForgePageHeader",
|
|
1730
1713
|
props: {
|
|
1731
1714
|
title: {}
|
|
1732
1715
|
},
|
|
1733
1716
|
setup(e) {
|
|
1734
1717
|
const t = e;
|
|
1735
|
-
return (a, o) => (i(), y("div",
|
|
1736
|
-
c("h3",
|
|
1737
|
-
c("div",
|
|
1718
|
+
return (a, o) => (i(), y("div", Ut, [
|
|
1719
|
+
c("h3", At, h(t.title), 1),
|
|
1720
|
+
c("div", Nt, [
|
|
1738
1721
|
$(a.$slots, "default")
|
|
1739
1722
|
])
|
|
1740
1723
|
]));
|
|
1741
1724
|
}
|
|
1742
|
-
}),
|
|
1725
|
+
}), Et = { class: "d-flex" }, Lt = { "data-cy": "before-slot" }, Rt = { class: "position-relative w-100" }, jt = { "data-cy": "after-slot" }, ve = /* @__PURE__ */ F({
|
|
1743
1726
|
__name: "ForgeDatepicker",
|
|
1744
1727
|
props: /* @__PURE__ */ E({
|
|
1745
1728
|
severity: { default: "primary" },
|
|
@@ -1812,11 +1795,11 @@ const bt = { key: 0 }, ft = {
|
|
|
1812
1795
|
}),
|
|
1813
1796
|
emits: ["update:modelValue"],
|
|
1814
1797
|
setup(e) {
|
|
1815
|
-
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, {
|
|
1816
1799
|
initialValue: a.value
|
|
1817
|
-
}),
|
|
1800
|
+
}), d = () => {
|
|
1818
1801
|
r(null), a.value = null;
|
|
1819
|
-
},
|
|
1802
|
+
}, p = x(() => o.value.length > 0), v = x(() => ({
|
|
1820
1803
|
day: ({ context: s }) => ({
|
|
1821
1804
|
class: [
|
|
1822
1805
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
@@ -1908,53 +1891,53 @@ const bt = { key: 0 }, ft = {
|
|
|
1908
1891
|
})
|
|
1909
1892
|
}));
|
|
1910
1893
|
return (s, T) => {
|
|
1911
|
-
const
|
|
1912
|
-
return i(), y(
|
|
1913
|
-
c("div",
|
|
1914
|
-
c("span",
|
|
1894
|
+
const C = _e;
|
|
1895
|
+
return i(), y(L, null, [
|
|
1896
|
+
c("div", Et, [
|
|
1897
|
+
c("span", Lt, [
|
|
1915
1898
|
$(s.$slots, "before")
|
|
1916
1899
|
]),
|
|
1917
|
-
c("div",
|
|
1918
|
-
b(
|
|
1900
|
+
c("div", Rt, [
|
|
1901
|
+
b(C, _({ ...t, ...s.$attrs }, {
|
|
1919
1902
|
pt: v.value,
|
|
1920
1903
|
modelValue: a.value,
|
|
1921
1904
|
"onUpdate:modelValue": [
|
|
1922
1905
|
T[0] || (T[0] = (M) => a.value = M),
|
|
1923
|
-
|
|
1906
|
+
m(n)
|
|
1924
1907
|
],
|
|
1925
|
-
onBlur:
|
|
1926
|
-
"input-class": { "is-invalid":
|
|
1908
|
+
onBlur: m(u),
|
|
1909
|
+
"input-class": { "is-invalid": p.value }
|
|
1927
1910
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
|
|
1928
|
-
j(b(
|
|
1911
|
+
j(b(m(V), {
|
|
1929
1912
|
"data-cy": "icon",
|
|
1930
1913
|
icon: "bi:calendar4",
|
|
1931
|
-
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"}`])
|
|
1932
1915
|
}, null, 8, ["class"]), [
|
|
1933
1916
|
[H, t.showIcon]
|
|
1934
1917
|
]),
|
|
1935
|
-
j(b(
|
|
1918
|
+
j(b(m(V), {
|
|
1936
1919
|
"data-cy": "icon",
|
|
1937
1920
|
icon: "bi:x",
|
|
1938
|
-
onClick:
|
|
1921
|
+
onClick: d,
|
|
1939
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"])
|
|
1940
1923
|
}, null, 8, ["class"]), [
|
|
1941
1924
|
[H, t.modelValue]
|
|
1942
1925
|
])
|
|
1943
1926
|
]),
|
|
1944
|
-
c("span",
|
|
1927
|
+
c("span", jt, [
|
|
1945
1928
|
$(s.$slots, "after")
|
|
1946
1929
|
])
|
|
1947
1930
|
]),
|
|
1948
1931
|
j(c("small", {
|
|
1949
1932
|
"data-cy": "error",
|
|
1950
1933
|
class: "text-invalid"
|
|
1951
|
-
}, h(
|
|
1952
|
-
[H,
|
|
1934
|
+
}, h(m(l)), 513), [
|
|
1935
|
+
[H, p.value]
|
|
1953
1936
|
])
|
|
1954
1937
|
], 64);
|
|
1955
1938
|
};
|
|
1956
1939
|
}
|
|
1957
|
-
}),
|
|
1940
|
+
}), xl = /* @__PURE__ */ F({
|
|
1958
1941
|
__name: "ForgeRemainingCharacters",
|
|
1959
1942
|
props: {
|
|
1960
1943
|
maxCount: { default: 300 },
|
|
@@ -1966,7 +1949,7 @@ const bt = { key: 0 }, ft = {
|
|
|
1966
1949
|
class: B(a.value < 0 ? "text-danger" : "")
|
|
1967
1950
|
}, "Remaining characters: " + h(a.value), 3));
|
|
1968
1951
|
}
|
|
1969
|
-
}),
|
|
1952
|
+
}), Ht = /* @__PURE__ */ c("hr", null, null, -1), qt = { class: "d-flex justify-content-between" }, kl = /* @__PURE__ */ F({
|
|
1970
1953
|
__name: "ForgeForm",
|
|
1971
1954
|
props: {
|
|
1972
1955
|
onSubmit: {},
|
|
@@ -1991,28 +1974,28 @@ const bt = { key: 0 }, ft = {
|
|
|
1991
1974
|
}
|
|
1992
1975
|
a.value = !1;
|
|
1993
1976
|
}
|
|
1994
|
-
return (n,
|
|
1977
|
+
return (n, u) => {
|
|
1995
1978
|
const r = R;
|
|
1996
|
-
return i(), y("form",
|
|
1979
|
+
return i(), y("form", _(n.$attrs, {
|
|
1997
1980
|
novalidate: "",
|
|
1998
1981
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
1999
|
-
onSubmit:
|
|
1982
|
+
onSubmit: q(l, ["prevent"])
|
|
2000
1983
|
}), [
|
|
2001
|
-
n.hideTitle ?
|
|
1984
|
+
n.hideTitle ? S("", !0) : (i(), y(L, { key: 0 }, [
|
|
2002
1985
|
$(n.$slots, "title", {}, () => [
|
|
2003
1986
|
c("h3", {
|
|
2004
1987
|
class: B(n.titleClass),
|
|
2005
1988
|
"data-cy": "form-title"
|
|
2006
1989
|
}, h(n.title), 3)
|
|
2007
1990
|
]),
|
|
2008
|
-
|
|
1991
|
+
Ht
|
|
2009
1992
|
], 64)),
|
|
2010
|
-
o.value.hasError ? (i(), w(
|
|
1993
|
+
o.value.hasError ? (i(), w(le, {
|
|
2011
1994
|
key: 1,
|
|
2012
1995
|
severity: "danger",
|
|
2013
1996
|
"data-cy": "error"
|
|
2014
1997
|
}, {
|
|
2015
|
-
default:
|
|
1998
|
+
default: g(() => [
|
|
2016
1999
|
$(n.$slots, "error", {
|
|
2017
2000
|
error: o.value.message
|
|
2018
2001
|
}, () => [
|
|
@@ -2020,19 +2003,19 @@ const bt = { key: 0 }, ft = {
|
|
|
2020
2003
|
])
|
|
2021
2004
|
]),
|
|
2022
2005
|
_: 3
|
|
2023
|
-
})) :
|
|
2006
|
+
})) : S("", !0),
|
|
2024
2007
|
$(n.$slots, "default"),
|
|
2025
|
-
c("div",
|
|
2008
|
+
c("div", qt, [
|
|
2026
2009
|
$(n.$slots, "cancel", {}, () => [
|
|
2027
|
-
n.hideCancel ?
|
|
2010
|
+
n.hideCancel ? S("", !0) : (i(), w(r, {
|
|
2028
2011
|
key: 0,
|
|
2029
2012
|
"data-cy": "cancel-btn",
|
|
2030
2013
|
type: "reset",
|
|
2031
2014
|
severity: "secondary",
|
|
2032
2015
|
outlined: "",
|
|
2033
|
-
onClick:
|
|
2016
|
+
onClick: u[0] || (u[0] = (d) => n.$emit("cancel"))
|
|
2034
2017
|
}, {
|
|
2035
|
-
default:
|
|
2018
|
+
default: g(() => [
|
|
2036
2019
|
O(h(n.cancelText), 1)
|
|
2037
2020
|
]),
|
|
2038
2021
|
_: 1
|
|
@@ -2045,24 +2028,24 @@ const bt = { key: 0 }, ft = {
|
|
|
2045
2028
|
severity: "primary",
|
|
2046
2029
|
class: "ms-auto"
|
|
2047
2030
|
}, {
|
|
2048
|
-
default:
|
|
2031
|
+
default: g(() => [
|
|
2049
2032
|
O(h(n.submitText), 1)
|
|
2050
2033
|
]),
|
|
2051
2034
|
_: 1
|
|
2052
2035
|
})
|
|
2053
2036
|
])
|
|
2054
2037
|
]),
|
|
2055
|
-
a.value ? (i(), w(
|
|
2038
|
+
a.value ? (i(), w(me, {
|
|
2056
2039
|
key: 2,
|
|
2057
2040
|
"data-cy": "loading-spinner"
|
|
2058
|
-
})) :
|
|
2041
|
+
})) : S("", !0)
|
|
2059
2042
|
], 16);
|
|
2060
2043
|
};
|
|
2061
2044
|
}
|
|
2062
2045
|
}), Yt = {
|
|
2063
2046
|
key: 1,
|
|
2064
2047
|
class: "d-flex flex-column w-100"
|
|
2065
|
-
},
|
|
2048
|
+
}, Gt = ["for"], $l = /* @__PURE__ */ F({
|
|
2066
2049
|
__name: "ForgeFormField",
|
|
2067
2050
|
props: /* @__PURE__ */ E({
|
|
2068
2051
|
name: {},
|
|
@@ -2076,16 +2059,16 @@ const bt = { key: 0 }, ft = {
|
|
|
2076
2059
|
}),
|
|
2077
2060
|
emits: ["update:modelValue"],
|
|
2078
2061
|
setup(e) {
|
|
2079
|
-
const t =
|
|
2062
|
+
const t = A(e, "modelValue"), a = e, o = (v) => {
|
|
2080
2063
|
a.type == "number" ? r(v.value) : r(v);
|
|
2081
|
-
}, { errors: l, value: n, errorMessage:
|
|
2064
|
+
}, { errors: l, value: n, errorMessage: u, handleChange: r, handleBlur: d } = K(() => a.name, void 0, {
|
|
2082
2065
|
initialValue: t.value
|
|
2083
|
-
}),
|
|
2084
|
-
return
|
|
2066
|
+
}), p = x(() => l.value.length > 0);
|
|
2067
|
+
return de(() => n.value, (v) => {
|
|
2085
2068
|
t.value = v;
|
|
2086
2069
|
}, { immediate: !0 }), (v, s) => {
|
|
2087
|
-
const T =
|
|
2088
|
-
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, _({
|
|
2089
2072
|
key: 0,
|
|
2090
2073
|
id: a.name,
|
|
2091
2074
|
label: a.fieldLabel
|
|
@@ -2097,71 +2080,71 @@ const bt = { key: 0 }, ft = {
|
|
|
2097
2080
|
c("label", {
|
|
2098
2081
|
for: a.name,
|
|
2099
2082
|
class: "mb-1"
|
|
2100
|
-
}, h(a.fieldLabel), 9,
|
|
2101
|
-
a.type === "number" ? (i(), w(
|
|
2083
|
+
}, h(a.fieldLabel), 9, Gt),
|
|
2084
|
+
a.type === "number" ? (i(), w(m(ue), _({
|
|
2102
2085
|
key: 0,
|
|
2103
2086
|
id: a.name
|
|
2104
2087
|
}, v.$attrs, {
|
|
2105
2088
|
placeholder: a.placeholder,
|
|
2106
|
-
"input-class": { "is-invalid":
|
|
2107
|
-
class: { "is-invalid":
|
|
2089
|
+
"input-class": { "is-invalid": p.value },
|
|
2090
|
+
class: { "is-invalid": p.value },
|
|
2108
2091
|
modelValue: t.value,
|
|
2109
2092
|
"onUpdate:modelValue": s[1] || (s[1] = (k) => t.value = k),
|
|
2110
2093
|
onInput: o
|
|
2111
|
-
}), 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, _({
|
|
2112
2095
|
key: 1,
|
|
2113
2096
|
id: a.name
|
|
2114
2097
|
}, v.$attrs, {
|
|
2115
2098
|
placeholder: a.placeholder,
|
|
2116
|
-
class: { "is-invalid":
|
|
2099
|
+
class: { "is-invalid": p.value },
|
|
2117
2100
|
modelValue: t.value,
|
|
2118
2101
|
"onUpdate:modelValue": s[2] || (s[2] = (k) => t.value = k),
|
|
2119
2102
|
onInput: o,
|
|
2120
|
-
onBlur:
|
|
2121
|
-
}), 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, _({
|
|
2122
2105
|
key: 2,
|
|
2123
2106
|
id: a.name
|
|
2124
2107
|
}, v.$attrs, {
|
|
2125
2108
|
placeholder: a.placeholder,
|
|
2126
2109
|
mask: a.mask,
|
|
2127
|
-
class: { "is-invalid":
|
|
2110
|
+
class: { "is-invalid": p.value },
|
|
2128
2111
|
modelValue: t.value,
|
|
2129
2112
|
"onUpdate:modelValue": s[3] || (s[3] = (k) => t.value = k),
|
|
2130
2113
|
onComplete: o,
|
|
2131
|
-
onBlur:
|
|
2132
|
-
}), 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, _({
|
|
2133
2116
|
key: 3,
|
|
2134
2117
|
id: a.name
|
|
2135
2118
|
}, v.$attrs, {
|
|
2136
2119
|
placeholder: a.placeholder,
|
|
2137
|
-
class: { "is-invalid":
|
|
2120
|
+
class: { "is-invalid": p.value },
|
|
2138
2121
|
modelValue: t.value,
|
|
2139
2122
|
"onUpdate:modelValue": s[4] || (s[4] = (k) => t.value = k),
|
|
2140
2123
|
onInput: o,
|
|
2141
|
-
onBlur:
|
|
2142
|
-
}), 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 }, {
|
|
2143
2126
|
modelValue: t.value,
|
|
2144
2127
|
"onUpdate:modelValue": s[5] || (s[5] = (k) => t.value = k),
|
|
2145
|
-
class: { "is-invalid":
|
|
2146
|
-
}), 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 }, {
|
|
2147
2130
|
modelValue: t.value,
|
|
2148
2131
|
"onUpdate:modelValue": s[6] || (s[6] = (k) => t.value = k),
|
|
2149
|
-
class: { "is-invalid":
|
|
2150
|
-
}), 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 }, {
|
|
2151
2134
|
modelValue: t.value,
|
|
2152
2135
|
"onUpdate:modelValue": s[7] || (s[7] = (k) => t.value = k),
|
|
2153
|
-
class: { "is-invalid":
|
|
2154
|
-
}), null, 16, ["modelValue", "class"])) :
|
|
2136
|
+
class: { "is-invalid": p.value }
|
|
2137
|
+
}), null, 16, ["modelValue", "class"])) : S("", !0),
|
|
2155
2138
|
j(c("small", {
|
|
2156
2139
|
"data-cy": "error",
|
|
2157
2140
|
class: "invalid-feedback"
|
|
2158
|
-
}, h(
|
|
2159
|
-
[H,
|
|
2141
|
+
}, h(m(u)), 513), [
|
|
2142
|
+
[H, p.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2160
2143
|
])
|
|
2161
2144
|
]));
|
|
2162
2145
|
};
|
|
2163
2146
|
}
|
|
2164
|
-
}),
|
|
2147
|
+
}), Bl = /* @__PURE__ */ F({
|
|
2165
2148
|
__name: "ForgeChips",
|
|
2166
2149
|
props: {
|
|
2167
2150
|
chipSeverity: { default: "primary" },
|
|
@@ -2190,7 +2173,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2190
2173
|
setup(e) {
|
|
2191
2174
|
const t = e, { errors: a, value: o, errorMessage: l } = K(() => t.name, void 0, {
|
|
2192
2175
|
initialValue: t.modelValue
|
|
2193
|
-
}), n = x(() => a.value.length > 0),
|
|
2176
|
+
}), n = x(() => a.value.length > 0), u = x(() => ({
|
|
2194
2177
|
inputtoken: "list-unstyled",
|
|
2195
2178
|
input: "border-0",
|
|
2196
2179
|
container: ({ props: r }) => ({
|
|
@@ -2221,16 +2204,16 @@ const bt = { key: 0 }, ft = {
|
|
|
2221
2204
|
]
|
|
2222
2205
|
}
|
|
2223
2206
|
}));
|
|
2224
|
-
return (r,
|
|
2225
|
-
const
|
|
2226
|
-
return i(), y(
|
|
2227
|
-
b(
|
|
2228
|
-
pt:
|
|
2229
|
-
"model-value":
|
|
2230
|
-
"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)
|
|
2231
2214
|
}), {
|
|
2232
|
-
removetokenicon:
|
|
2233
|
-
j(b(
|
|
2215
|
+
removetokenicon: g(({ removeCallback: v }) => [
|
|
2216
|
+
j(b(m(V), {
|
|
2234
2217
|
icon: "bi:x",
|
|
2235
2218
|
class: "cursor-pointer",
|
|
2236
2219
|
onClick: v
|
|
@@ -2243,13 +2226,13 @@ const bt = { key: 0 }, ft = {
|
|
|
2243
2226
|
j(c("small", {
|
|
2244
2227
|
"data-cy": "error",
|
|
2245
2228
|
class: "text-invalid"
|
|
2246
|
-
}, h(
|
|
2229
|
+
}, h(m(l)), 513), [
|
|
2247
2230
|
[H, n.value]
|
|
2248
2231
|
])
|
|
2249
2232
|
], 64);
|
|
2250
2233
|
};
|
|
2251
2234
|
}
|
|
2252
|
-
}),
|
|
2235
|
+
}), Kt = /* @__PURE__ */ F({
|
|
2253
2236
|
__name: "ForgeProgressBar",
|
|
2254
2237
|
props: {
|
|
2255
2238
|
severity: { default: "primary" },
|
|
@@ -2291,17 +2274,17 @@ const bt = { key: 0 }, ft = {
|
|
|
2291
2274
|
class: [l.value, a.value, o.value]
|
|
2292
2275
|
}
|
|
2293
2276
|
}));
|
|
2294
|
-
return (
|
|
2295
|
-
const
|
|
2296
|
-
return i(), w(
|
|
2297
|
-
default:
|
|
2298
|
-
$(
|
|
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")
|
|
2299
2282
|
]),
|
|
2300
2283
|
_: 3
|
|
2301
2284
|
}, 16, ["pt"]);
|
|
2302
2285
|
};
|
|
2303
2286
|
}
|
|
2304
|
-
}),
|
|
2287
|
+
}), Wt = { class: "value text-white w-100 text-center" }, Fl = /* @__PURE__ */ F({
|
|
2305
2288
|
__name: "ForgeStatWidget",
|
|
2306
2289
|
props: {
|
|
2307
2290
|
size: { default: "md" },
|
|
@@ -2309,18 +2292,18 @@ const bt = { key: 0 }, ft = {
|
|
|
2309
2292
|
},
|
|
2310
2293
|
setup(e) {
|
|
2311
2294
|
const t = e;
|
|
2312
|
-
return (a, o) => (i(), y("div",
|
|
2295
|
+
return (a, o) => (i(), y("div", _(a.$attrs, {
|
|
2313
2296
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2314
2297
|
}), [
|
|
2315
|
-
c("span",
|
|
2298
|
+
c("span", Wt, [
|
|
2316
2299
|
$(a.$slots, "default")
|
|
2317
2300
|
])
|
|
2318
2301
|
], 16));
|
|
2319
2302
|
}
|
|
2320
|
-
}),
|
|
2303
|
+
}), Zt = {
|
|
2321
2304
|
class: "d-flex flex-column align-items-center",
|
|
2322
2305
|
"data-cy": "stepper"
|
|
2323
|
-
},
|
|
2306
|
+
}, Jt = { class: "d-flex align-items-center justify-content-center w-100" }, _l = /* @__PURE__ */ F({
|
|
2324
2307
|
__name: "ForgeStepper",
|
|
2325
2308
|
props: {
|
|
2326
2309
|
currentStep: { default: 0 },
|
|
@@ -2341,55 +2324,55 @@ const bt = { key: 0 }, ft = {
|
|
|
2341
2324
|
l.value--;
|
|
2342
2325
|
while (o.model[l.value].disabled);
|
|
2343
2326
|
a("update:currentStep", l.value);
|
|
2344
|
-
},
|
|
2327
|
+
}, u = () => {
|
|
2345
2328
|
if (l.value < o.model.length - 1)
|
|
2346
2329
|
do
|
|
2347
2330
|
l.value++;
|
|
2348
2331
|
while (o.model[l.value].disabled);
|
|
2349
2332
|
a("update:currentStep", l.value);
|
|
2350
2333
|
}, r = x(() => {
|
|
2351
|
-
const
|
|
2352
|
-
return !(
|
|
2353
|
-
}),
|
|
2354
|
-
menuitem: (
|
|
2334
|
+
const p = o.model.findIndex((v) => !v.disabled);
|
|
2335
|
+
return !(p < l.value && p > -1);
|
|
2336
|
+
}), d = x(() => ({
|
|
2337
|
+
menuitem: (p) => ({
|
|
2355
2338
|
class: [{
|
|
2356
|
-
"cursor-pointer": !
|
|
2339
|
+
"cursor-pointer": !p.context.disabled
|
|
2357
2340
|
}]
|
|
2358
2341
|
}),
|
|
2359
|
-
step: (
|
|
2342
|
+
step: (p) => ({
|
|
2360
2343
|
class: [
|
|
2361
2344
|
"d-flex align-items-center justify-content-center mb-2 step",
|
|
2362
2345
|
{
|
|
2363
|
-
inactive:
|
|
2364
|
-
"bg-primary text-white":
|
|
2365
|
-
"bg-brand text-white":
|
|
2366
|
-
"bg-secondary text-white":
|
|
2367
|
-
"bg-success text-white":
|
|
2368
|
-
"bg-warning text-white":
|
|
2369
|
-
"bg-danger text-white":
|
|
2370
|
-
"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"
|
|
2371
2354
|
}
|
|
2372
2355
|
]
|
|
2373
2356
|
}),
|
|
2374
|
-
label: (
|
|
2357
|
+
label: (p) => ({
|
|
2375
2358
|
class: [
|
|
2376
2359
|
"h5",
|
|
2377
2360
|
{
|
|
2378
|
-
"border-bottom border-2 border-primary":
|
|
2379
|
-
"border-bottom border-2 border-brand":
|
|
2380
|
-
"border-bottom border-2 border-secondary":
|
|
2381
|
-
"border-bottom border-2 border-success":
|
|
2382
|
-
"border-bottom border-2 border-warning":
|
|
2383
|
-
"border-bottom border-2 border-danger":
|
|
2384
|
-
"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"
|
|
2385
2368
|
}
|
|
2386
2369
|
]
|
|
2387
2370
|
})
|
|
2388
2371
|
}));
|
|
2389
|
-
return (
|
|
2390
|
-
const s = R, T =
|
|
2391
|
-
return i(), y("div",
|
|
2392
|
-
c("div",
|
|
2372
|
+
return (p, v) => {
|
|
2373
|
+
const s = R, T = Pe, C = Me;
|
|
2374
|
+
return i(), y("div", Zt, [
|
|
2375
|
+
c("div", Jt, [
|
|
2393
2376
|
b(s, {
|
|
2394
2377
|
severity: o.severity,
|
|
2395
2378
|
disabled: r.value,
|
|
@@ -2397,8 +2380,8 @@ const bt = { key: 0 }, ft = {
|
|
|
2397
2380
|
class: "rounded-circle py-2 me-4",
|
|
2398
2381
|
"data-cy": "back-button"
|
|
2399
2382
|
}, {
|
|
2400
|
-
default:
|
|
2401
|
-
b(
|
|
2383
|
+
default: g(() => [
|
|
2384
|
+
b(m(V), {
|
|
2402
2385
|
icon: "bi:chevron-left",
|
|
2403
2386
|
class: "mb-1"
|
|
2404
2387
|
})
|
|
@@ -2409,41 +2392,41 @@ const bt = { key: 0 }, ft = {
|
|
|
2409
2392
|
"active-step": l.value,
|
|
2410
2393
|
"onUpdate:activeStep": v[0] || (v[0] = (M) => l.value = M),
|
|
2411
2394
|
model: o.model,
|
|
2412
|
-
pt:
|
|
2395
|
+
pt: d.value,
|
|
2413
2396
|
readonly: !1
|
|
2414
2397
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2415
2398
|
]),
|
|
2416
|
-
b(
|
|
2417
|
-
(i(!0), y(
|
|
2399
|
+
b(C, { class: "m-4" }),
|
|
2400
|
+
(i(!0), y(L, null, Y(o.model, (M, P) => (i(), y("div", {
|
|
2418
2401
|
key: P,
|
|
2419
2402
|
class: "w-100"
|
|
2420
2403
|
}, [
|
|
2421
|
-
P === l.value ? $(
|
|
2404
|
+
P === l.value ? $(p.$slots, M.key ?? M.label, {
|
|
2422
2405
|
key: 0,
|
|
2423
|
-
nextStep:
|
|
2406
|
+
nextStep: u,
|
|
2424
2407
|
previousStep: n
|
|
2425
2408
|
}, () => [
|
|
2426
|
-
b(
|
|
2409
|
+
b(le, {
|
|
2427
2410
|
severity: "info",
|
|
2428
2411
|
"data-cy": "alert"
|
|
2429
2412
|
}, {
|
|
2430
|
-
default:
|
|
2413
|
+
default: g(() => [
|
|
2431
2414
|
O(" Please add Slot Content for the key " + h(M.key ?? M.label) + " ", 1),
|
|
2432
2415
|
b(s, {
|
|
2433
2416
|
severity: "primary",
|
|
2434
2417
|
label: "Next",
|
|
2435
|
-
onClick:
|
|
2418
|
+
onClick: u,
|
|
2436
2419
|
class: "ms-2"
|
|
2437
2420
|
})
|
|
2438
2421
|
]),
|
|
2439
2422
|
_: 2
|
|
2440
2423
|
}, 1024)
|
|
2441
|
-
]) :
|
|
2424
|
+
]) : S("", !0)
|
|
2442
2425
|
]))), 128))
|
|
2443
2426
|
]);
|
|
2444
2427
|
};
|
|
2445
2428
|
}
|
|
2446
|
-
}),
|
|
2429
|
+
}), Xt = { class: "p-4 text-wrap w-100" }, Qt = { class: "p-4 text-wrap w-100" }, Sl = /* @__PURE__ */ F({
|
|
2447
2430
|
__name: "ForgeTile",
|
|
2448
2431
|
props: {
|
|
2449
2432
|
severity: { default: "primary" },
|
|
@@ -2454,16 +2437,16 @@ const bt = { key: 0 }, ft = {
|
|
|
2454
2437
|
setup(e) {
|
|
2455
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" : ""}`);
|
|
2456
2439
|
return (l, n) => {
|
|
2457
|
-
const
|
|
2458
|
-
return t.clickable ? (i(), w(
|
|
2440
|
+
const u = R;
|
|
2441
|
+
return t.clickable ? (i(), w(u, {
|
|
2459
2442
|
key: 0,
|
|
2460
2443
|
class: B(["d-flex w-100 p-0 text-body", a.value]),
|
|
2461
2444
|
severity: t.severity,
|
|
2462
2445
|
unstyled: "",
|
|
2463
2446
|
"data-cy": "button-tile"
|
|
2464
2447
|
}, {
|
|
2465
|
-
default:
|
|
2466
|
-
c("div",
|
|
2448
|
+
default: g(() => [
|
|
2449
|
+
c("div", Xt, [
|
|
2467
2450
|
$(l.$slots, "default", {}, () => [
|
|
2468
2451
|
O("Tile Content")
|
|
2469
2452
|
])
|
|
@@ -2475,7 +2458,7 @@ const bt = { key: 0 }, ft = {
|
|
|
2475
2458
|
class: B(["d-flex w-100", o.value]),
|
|
2476
2459
|
"data-cy": "tile"
|
|
2477
2460
|
}, [
|
|
2478
|
-
c("div",
|
|
2461
|
+
c("div", Qt, [
|
|
2479
2462
|
$(l.$slots, "default", {}, () => [
|
|
2480
2463
|
O("Tile Content")
|
|
2481
2464
|
])
|
|
@@ -2484,16 +2467,16 @@ const bt = { key: 0 }, ft = {
|
|
|
2484
2467
|
};
|
|
2485
2468
|
}
|
|
2486
2469
|
});
|
|
2487
|
-
function
|
|
2470
|
+
function X(e, t) {
|
|
2488
2471
|
return e > 1 ? `${t}s` : t;
|
|
2489
2472
|
}
|
|
2490
|
-
const
|
|
2473
|
+
const ea = {
|
|
2491
2474
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2492
2475
|
"data-cy": "pagination-header"
|
|
2493
|
-
},
|
|
2476
|
+
}, ta = { class: "ms-2" }, aa = { key: 0 }, la = /* @__PURE__ */ c("span", { class: "mx-2" }, "|", -1), oa = {
|
|
2494
2477
|
class: "w-auto",
|
|
2495
2478
|
"data-cy": "total"
|
|
2496
|
-
},
|
|
2479
|
+
}, na = /* @__PURE__ */ F({
|
|
2497
2480
|
__name: "ForgePaginationHeader",
|
|
2498
2481
|
props: {
|
|
2499
2482
|
total: {},
|
|
@@ -2502,28 +2485,28 @@ const Qt = {
|
|
|
2502
2485
|
},
|
|
2503
2486
|
emits: ["update:perPage"],
|
|
2504
2487
|
setup(e, { emit: t }) {
|
|
2505
|
-
const a = t, o = e, l = (
|
|
2506
|
-
a("update:perPage",
|
|
2488
|
+
const a = t, o = e, l = (u) => {
|
|
2489
|
+
a("update:perPage", u.value);
|
|
2507
2490
|
}, n = x(() => {
|
|
2508
|
-
const
|
|
2509
|
-
return `${
|
|
2491
|
+
const u = Math.ceil(o.total / o.perPage);
|
|
2492
|
+
return `${u} ${X(u, "page")}`;
|
|
2510
2493
|
});
|
|
2511
|
-
return (
|
|
2494
|
+
return (u, r) => (i(), y("div", ea, [
|
|
2512
2495
|
O(" Number of results per page "),
|
|
2513
|
-
c("div",
|
|
2514
|
-
b(
|
|
2496
|
+
c("div", ta, [
|
|
2497
|
+
b(m(ae), {
|
|
2515
2498
|
options: o.pageSizes,
|
|
2516
2499
|
"model-value": o.perPage,
|
|
2517
|
-
onChange: r[0] || (r[0] = (
|
|
2500
|
+
onChange: r[0] || (r[0] = (d) => l(d))
|
|
2518
2501
|
}, null, 8, ["options", "model-value"])
|
|
2519
2502
|
]),
|
|
2520
|
-
o.total ? (i(), y("div",
|
|
2521
|
-
|
|
2522
|
-
c("span",
|
|
2523
|
-
])) :
|
|
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)
|
|
2524
2507
|
]));
|
|
2525
2508
|
}
|
|
2526
|
-
}),
|
|
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({
|
|
2527
2510
|
__name: "ForgeTable",
|
|
2528
2511
|
props: {
|
|
2529
2512
|
value: {},
|
|
@@ -2604,16 +2587,16 @@ const Qt = {
|
|
|
2604
2587
|
},
|
|
2605
2588
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
2606
2589
|
setup(e, { emit: t }) {
|
|
2607
|
-
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({
|
|
2608
2591
|
filters: o.filters,
|
|
2609
|
-
perPage:
|
|
2592
|
+
perPage: u.value,
|
|
2610
2593
|
page: 0,
|
|
2611
2594
|
sortDirection: "None",
|
|
2612
2595
|
sortField: "",
|
|
2613
2596
|
total: o.totalRecords ?? o.value.length
|
|
2614
|
-
}),
|
|
2615
|
-
const
|
|
2616
|
-
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")}`;
|
|
2617
2600
|
}), v = x(() => ({
|
|
2618
2601
|
thead: () => ({
|
|
2619
2602
|
class: [
|
|
@@ -2640,69 +2623,69 @@ const Qt = {
|
|
|
2640
2623
|
if (o.clearAll)
|
|
2641
2624
|
o.clearAll();
|
|
2642
2625
|
else
|
|
2643
|
-
for (const
|
|
2644
|
-
typeof o.filters[
|
|
2626
|
+
for (const f in o.filters)
|
|
2627
|
+
typeof o.filters[f] == "string" ? o.filters[f] = "" : o.filters[f].value = null;
|
|
2645
2628
|
M(o.filters);
|
|
2646
2629
|
}, T = () => {
|
|
2647
2630
|
l.value.exportCSV();
|
|
2648
|
-
},
|
|
2631
|
+
}, C = (f) => {
|
|
2649
2632
|
var k;
|
|
2650
|
-
r.value.sortDirection =
|
|
2651
|
-
}, M = (
|
|
2652
|
-
r.value.filters =
|
|
2653
|
-
}, P = (
|
|
2654
|
-
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);
|
|
2655
2638
|
}, z = () => {
|
|
2656
|
-
r.value.perPage =
|
|
2639
|
+
r.value.perPage = u.value, a("update:tableContext", r.value);
|
|
2657
2640
|
};
|
|
2658
|
-
return
|
|
2659
|
-
r.value.filters =
|
|
2660
|
-
}, { deep: !0 }),
|
|
2661
|
-
c("span",
|
|
2662
|
-
$(
|
|
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")
|
|
2663
2646
|
]),
|
|
2664
|
-
b(
|
|
2647
|
+
b(m(Ie), _({
|
|
2665
2648
|
class: ["w-100", `${o.severity ? `forge-table-${o.severity}` : ""}`]
|
|
2666
|
-
}, { ...o, ...
|
|
2649
|
+
}, { ...o, ...f.$attrs }, {
|
|
2667
2650
|
pt: v.value,
|
|
2668
|
-
rows:
|
|
2669
|
-
"total-records":
|
|
2651
|
+
rows: u.value,
|
|
2652
|
+
"total-records": d.value,
|
|
2670
2653
|
"filter-display": o.filters ? "row" : void 0,
|
|
2671
2654
|
ref_key: "forgeTable",
|
|
2672
2655
|
ref: l,
|
|
2673
2656
|
"data-cy": "table",
|
|
2674
2657
|
"onUpdate:filters": M,
|
|
2675
|
-
onSort:
|
|
2658
|
+
onSort: C,
|
|
2676
2659
|
onPage: P
|
|
2677
|
-
}),
|
|
2678
|
-
header:
|
|
2660
|
+
}), te({
|
|
2661
|
+
header: g(() => [
|
|
2679
2662
|
c("div", {
|
|
2680
2663
|
class: B(o.loading ? "opacity-50" : "")
|
|
2681
2664
|
}, [
|
|
2682
|
-
c("div",
|
|
2683
|
-
c("div",
|
|
2684
|
-
|
|
2685
|
-
b(
|
|
2686
|
-
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,
|
|
2687
2670
|
"page-sizes": n.value,
|
|
2688
|
-
"per-page":
|
|
2671
|
+
"per-page": u.value,
|
|
2689
2672
|
"onUpdate:perPage": [
|
|
2690
|
-
k[0] || (k[0] = (G) =>
|
|
2673
|
+
k[0] || (k[0] = (G) => u.value = G),
|
|
2691
2674
|
z
|
|
2692
2675
|
]
|
|
2693
2676
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2694
|
-
])) :
|
|
2677
|
+
])) : S("", !0)
|
|
2695
2678
|
]),
|
|
2696
|
-
c("div",
|
|
2697
|
-
|
|
2679
|
+
c("div", ca, [
|
|
2680
|
+
f.showClearButton ? (i(), w(m(R), {
|
|
2698
2681
|
key: 0,
|
|
2699
2682
|
outlined: "",
|
|
2700
|
-
class: B(
|
|
2683
|
+
class: B(f.showExporterButton ? "me-2" : ""),
|
|
2701
2684
|
onClick: s,
|
|
2702
2685
|
"data-cy": "clear-all"
|
|
2703
2686
|
}, {
|
|
2704
|
-
default:
|
|
2705
|
-
b(
|
|
2687
|
+
default: g(() => [
|
|
2688
|
+
b(m(V), {
|
|
2706
2689
|
icon: "bi:funnel-fill",
|
|
2707
2690
|
width: "24",
|
|
2708
2691
|
height: "24"
|
|
@@ -2710,15 +2693,15 @@ const Qt = {
|
|
|
2710
2693
|
O(" Clear ")
|
|
2711
2694
|
]),
|
|
2712
2695
|
_: 1
|
|
2713
|
-
}, 8, ["class"])) :
|
|
2714
|
-
|
|
2696
|
+
}, 8, ["class"])) : S("", !0),
|
|
2697
|
+
f.showExporterButton ? (i(), w(m(R), {
|
|
2715
2698
|
key: 1,
|
|
2716
2699
|
outlined: "",
|
|
2717
2700
|
onClick: T,
|
|
2718
2701
|
"data-cy": "exporter"
|
|
2719
2702
|
}, {
|
|
2720
|
-
default:
|
|
2721
|
-
b(
|
|
2703
|
+
default: g(() => [
|
|
2704
|
+
b(m(V), {
|
|
2722
2705
|
icon: "typcn:export",
|
|
2723
2706
|
width: "24",
|
|
2724
2707
|
height: "24"
|
|
@@ -2726,34 +2709,34 @@ const Qt = {
|
|
|
2726
2709
|
O(" Export ")
|
|
2727
2710
|
]),
|
|
2728
2711
|
_: 1
|
|
2729
|
-
})) :
|
|
2712
|
+
})) : S("", !0)
|
|
2730
2713
|
])
|
|
2731
2714
|
])
|
|
2732
2715
|
], 2)
|
|
2733
2716
|
]),
|
|
2734
|
-
default:
|
|
2735
|
-
$(
|
|
2717
|
+
default: g(() => [
|
|
2718
|
+
$(f.$slots, "default")
|
|
2736
2719
|
]),
|
|
2737
2720
|
_: 2
|
|
2738
2721
|
}, [
|
|
2739
|
-
|
|
2722
|
+
Y(f.$slots, (G, Z) => ({
|
|
2740
2723
|
name: Z,
|
|
2741
|
-
fn:
|
|
2742
|
-
$(
|
|
2724
|
+
fn: g((oe) => [
|
|
2725
|
+
$(f.$slots, Z, Q(ee(oe || {})))
|
|
2743
2726
|
])
|
|
2744
2727
|
})),
|
|
2745
|
-
|
|
2728
|
+
f.legacyPaginationFooter ? {
|
|
2746
2729
|
name: "paginatorstart",
|
|
2747
|
-
fn:
|
|
2730
|
+
fn: g(() => [
|
|
2748
2731
|
c("span", {
|
|
2749
2732
|
class: B(["d-flex", o.loading ? "opacity-50" : ""]),
|
|
2750
2733
|
"data-cy": "legacy-page-size"
|
|
2751
2734
|
}, [
|
|
2752
|
-
|
|
2753
|
-
b(
|
|
2735
|
+
ma,
|
|
2736
|
+
b(m(ae), {
|
|
2754
2737
|
options: n.value,
|
|
2755
|
-
modelValue:
|
|
2756
|
-
"onUpdate:modelValue": k[1] || (k[1] = (G) =>
|
|
2738
|
+
modelValue: u.value,
|
|
2739
|
+
"onUpdate:modelValue": k[1] || (k[1] = (G) => u.value = G),
|
|
2757
2740
|
class: "ms-2",
|
|
2758
2741
|
onClick: z
|
|
2759
2742
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -2761,20 +2744,20 @@ const Qt = {
|
|
|
2761
2744
|
]),
|
|
2762
2745
|
key: "0"
|
|
2763
2746
|
} : void 0,
|
|
2764
|
-
|
|
2747
|
+
f.legacyPaginationFooter ? {
|
|
2765
2748
|
name: "paginatorend",
|
|
2766
|
-
fn:
|
|
2749
|
+
fn: g(() => [
|
|
2767
2750
|
c("span", {
|
|
2768
2751
|
"data-cy": "legacy-total",
|
|
2769
2752
|
class: B(o.loading ? "opacity-50" : "")
|
|
2770
|
-
}, h(
|
|
2753
|
+
}, h(d.value) + " " + h(m(X)(d.value, "result")) + " across " + h(p.value), 3)
|
|
2771
2754
|
]),
|
|
2772
2755
|
key: "1"
|
|
2773
2756
|
} : void 0
|
|
2774
2757
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
2775
2758
|
]));
|
|
2776
2759
|
}
|
|
2777
|
-
}),
|
|
2760
|
+
}), pa = { class: "d-flex position-relative" }, va = { class: "d-flex w-100" }, ya = { class: "d-flex w-100" }, Cl = /* @__PURE__ */ F({
|
|
2778
2761
|
__name: "ForgeFilterHeader",
|
|
2779
2762
|
props: /* @__PURE__ */ E({
|
|
2780
2763
|
dataType: {},
|
|
@@ -2789,56 +2772,56 @@ const Qt = {
|
|
|
2789
2772
|
}),
|
|
2790
2773
|
emits: ["update:modelValue"],
|
|
2791
2774
|
setup(e) {
|
|
2792
|
-
const t =
|
|
2775
|
+
const t = A(e, "modelValue"), a = (l, n) => {
|
|
2793
2776
|
if (!l || Array.isArray(l) && l.length === 0)
|
|
2794
2777
|
return n;
|
|
2795
|
-
const
|
|
2796
|
-
var
|
|
2797
|
-
const
|
|
2778
|
+
const u = (r) => {
|
|
2779
|
+
var p;
|
|
2780
|
+
const d = (p = e.dropdownOptions) == null ? void 0 : p.find(
|
|
2798
2781
|
(v) => e.optionValue ? v[e.optionValue] === r : Object.keys(v).every((s) => r.hasOwnProperty(s) && v[s] === r[s])
|
|
2799
2782
|
);
|
|
2800
|
-
return e.optionLabel ?
|
|
2783
|
+
return e.optionLabel ? d[e.optionLabel] : d;
|
|
2801
2784
|
};
|
|
2802
|
-
return Array.isArray(l) ? l.map(
|
|
2785
|
+
return Array.isArray(l) ? l.map(u).join(", ") : u(l);
|
|
2803
2786
|
}, o = () => {
|
|
2804
2787
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
2805
2788
|
};
|
|
2806
2789
|
return (l, n) => {
|
|
2807
|
-
const
|
|
2808
|
-
return i(), y("div",
|
|
2809
|
-
l.dataType === "numeric" ? (i(), w(
|
|
2790
|
+
const u = ue, r = R;
|
|
2791
|
+
return i(), y("div", pa, [
|
|
2792
|
+
l.dataType === "numeric" ? (i(), w(u, _({
|
|
2810
2793
|
key: 0,
|
|
2811
2794
|
modelValue: t.value,
|
|
2812
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2813
|
-
}, 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, _({
|
|
2814
2797
|
key: 1,
|
|
2815
2798
|
modelValue: t.value,
|
|
2816
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
2799
|
+
"onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
|
|
2817
2800
|
}, l.$attrs, {
|
|
2818
2801
|
"show-icon": !1,
|
|
2819
2802
|
"show-on-focus": !0
|
|
2820
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (i(), w(
|
|
2803
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (i(), w(m(ae), _({
|
|
2821
2804
|
key: 2,
|
|
2822
2805
|
modelValue: t.value,
|
|
2823
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
2806
|
+
"onUpdate:modelValue": n[2] || (n[2] = (d) => t.value = d)
|
|
2824
2807
|
}, l.$attrs, {
|
|
2825
2808
|
options: l.dropdownOptions,
|
|
2826
2809
|
"option-value": l.optionValue,
|
|
2827
2810
|
"option-label": l.optionLabel
|
|
2828
2811
|
}), {
|
|
2829
|
-
value:
|
|
2830
|
-
c("div",
|
|
2812
|
+
value: g(({ value: d, placeholder: p }) => [
|
|
2813
|
+
c("div", va, [
|
|
2831
2814
|
c("span", {
|
|
2832
|
-
class: B({ "filter-placeholder":
|
|
2833
|
-
}, h(a(
|
|
2815
|
+
class: B({ "filter-placeholder": d === null })
|
|
2816
|
+
}, h(a(d, p)), 3),
|
|
2834
2817
|
l.showClearButton && t.value !== null ? (i(), w(r, {
|
|
2835
2818
|
key: 0,
|
|
2836
|
-
onClick:
|
|
2819
|
+
onClick: q(o, ["prevent"]),
|
|
2837
2820
|
size: "small",
|
|
2838
2821
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2839
2822
|
}, {
|
|
2840
|
-
default:
|
|
2841
|
-
b(
|
|
2823
|
+
default: g(() => [
|
|
2824
|
+
b(m(V), {
|
|
2842
2825
|
icon: "bi:x",
|
|
2843
2826
|
width: "1rem",
|
|
2844
2827
|
height: "1rem",
|
|
@@ -2846,14 +2829,14 @@ const Qt = {
|
|
|
2846
2829
|
})
|
|
2847
2830
|
]),
|
|
2848
2831
|
_: 1
|
|
2849
|
-
})) :
|
|
2832
|
+
})) : S("", !0)
|
|
2850
2833
|
])
|
|
2851
2834
|
]),
|
|
2852
2835
|
_: 1
|
|
2853
|
-
}, 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), _({
|
|
2854
2837
|
key: 3,
|
|
2855
2838
|
modelValue: t.value,
|
|
2856
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
2839
|
+
"onUpdate:modelValue": n[3] || (n[3] = (d) => t.value = d)
|
|
2857
2840
|
}, l.$attrs, {
|
|
2858
2841
|
options: l.dropdownOptions,
|
|
2859
2842
|
showToggleAll: !1,
|
|
@@ -2861,19 +2844,19 @@ const Qt = {
|
|
|
2861
2844
|
"option-value": l.optionValue,
|
|
2862
2845
|
filter: ""
|
|
2863
2846
|
}), {
|
|
2864
|
-
value:
|
|
2865
|
-
c("div",
|
|
2847
|
+
value: g(({ value: d, placeholder: p }) => [
|
|
2848
|
+
c("div", ya, [
|
|
2866
2849
|
c("span", {
|
|
2867
|
-
class: B({ "filter-placeholder": (
|
|
2868
|
-
}, h(a(
|
|
2869
|
-
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, {
|
|
2870
2853
|
key: 0,
|
|
2871
|
-
onClick:
|
|
2854
|
+
onClick: q(o, ["prevent"]),
|
|
2872
2855
|
size: "small",
|
|
2873
2856
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2874
2857
|
}, {
|
|
2875
|
-
default:
|
|
2876
|
-
b(
|
|
2858
|
+
default: g(() => [
|
|
2859
|
+
b(m(V), {
|
|
2877
2860
|
icon: "bi:x",
|
|
2878
2861
|
width: "1rem",
|
|
2879
2862
|
height: "1rem",
|
|
@@ -2881,23 +2864,23 @@ const Qt = {
|
|
|
2881
2864
|
})
|
|
2882
2865
|
]),
|
|
2883
2866
|
_: 1
|
|
2884
|
-
})) :
|
|
2867
|
+
})) : S("", !0)
|
|
2885
2868
|
])
|
|
2886
2869
|
]),
|
|
2887
2870
|
_: 1
|
|
2888
|
-
}, 16, ["modelValue", "options", "option-label", "option-value"])) : (i(), w(
|
|
2871
|
+
}, 16, ["modelValue", "options", "option-label", "option-value"])) : (i(), w(m(ie), _({
|
|
2889
2872
|
key: 4,
|
|
2890
2873
|
modelValue: t.value,
|
|
2891
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
2874
|
+
"onUpdate:modelValue": n[4] || (n[4] = (d) => t.value = d)
|
|
2892
2875
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
2893
2876
|
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (i(), w(r, {
|
|
2894
2877
|
key: 5,
|
|
2895
|
-
onClick:
|
|
2878
|
+
onClick: q(o, ["prevent"]),
|
|
2896
2879
|
size: "small",
|
|
2897
2880
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
2898
2881
|
}, {
|
|
2899
|
-
default:
|
|
2900
|
-
b(
|
|
2882
|
+
default: g(() => [
|
|
2883
|
+
b(m(V), {
|
|
2901
2884
|
icon: "bi:x",
|
|
2902
2885
|
width: "1rem",
|
|
2903
2886
|
height: "1rem",
|
|
@@ -2905,27 +2888,27 @@ const Qt = {
|
|
|
2905
2888
|
})
|
|
2906
2889
|
]),
|
|
2907
2890
|
_: 1
|
|
2908
|
-
})) :
|
|
2891
|
+
})) : S("", !0)
|
|
2909
2892
|
]);
|
|
2910
2893
|
};
|
|
2911
2894
|
}
|
|
2912
2895
|
});
|
|
2913
|
-
function
|
|
2896
|
+
function ye(e, t, a, o) {
|
|
2914
2897
|
const l = t.flatMap((n) => n.file);
|
|
2915
2898
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2916
|
-
const
|
|
2899
|
+
const u = l.findIndex((d) => d.name === n.name);
|
|
2917
2900
|
let r = "Not Uploaded";
|
|
2918
|
-
|
|
2901
|
+
u === -1 ? ((!a.includes(n.type) || !(n.size <= o)) && (r = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2919
2902
|
file: n,
|
|
2920
2903
|
status: r,
|
|
2921
2904
|
blobFileName: null
|
|
2922
|
-
})) : t[
|
|
2905
|
+
})) : t[u].status = "Duplicate";
|
|
2923
2906
|
}), t;
|
|
2924
2907
|
}
|
|
2925
|
-
async function
|
|
2908
|
+
async function ba(e, t) {
|
|
2926
2909
|
if (e === "Uploaded" && t !== null)
|
|
2927
2910
|
try {
|
|
2928
|
-
await new
|
|
2911
|
+
await new ce(t).delete();
|
|
2929
2912
|
} catch (a) {
|
|
2930
2913
|
if (a !== "BlobNotFound") {
|
|
2931
2914
|
e = "DeleteFileFailed";
|
|
@@ -2933,25 +2916,25 @@ async function ya(e, t) {
|
|
|
2933
2916
|
}
|
|
2934
2917
|
}
|
|
2935
2918
|
}
|
|
2936
|
-
function
|
|
2919
|
+
function re(e, t = !0, a = 1) {
|
|
2937
2920
|
const o = t ? 1e3 : 1024;
|
|
2938
2921
|
if (Math.abs(e) < o)
|
|
2939
2922
|
return e + " B";
|
|
2940
2923
|
const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
2941
2924
|
let n = -1;
|
|
2942
|
-
const
|
|
2925
|
+
const u = 10 ** a;
|
|
2943
2926
|
do
|
|
2944
2927
|
e /= o, ++n;
|
|
2945
|
-
while (Math.round(Math.abs(e) *
|
|
2928
|
+
while (Math.round(Math.abs(e) * u) / u >= o && n < l.length - 1);
|
|
2946
2929
|
return e.toFixed(a) + " " + l[n];
|
|
2947
2930
|
}
|
|
2948
|
-
function
|
|
2931
|
+
function fa(e) {
|
|
2949
2932
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
2950
2933
|
}
|
|
2951
|
-
function
|
|
2934
|
+
function ga(e) {
|
|
2952
2935
|
return URL.createObjectURL(e);
|
|
2953
2936
|
}
|
|
2954
|
-
const
|
|
2937
|
+
const ha = { class: "d-flex justify-content-between" }, wa = ["accept", "disabled", "multiple"], xa = /* @__PURE__ */ F({
|
|
2955
2938
|
__name: "UploadButton",
|
|
2956
2939
|
props: /* @__PURE__ */ E({
|
|
2957
2940
|
acceptedFileTypes: {},
|
|
@@ -2963,10 +2946,10 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
2963
2946
|
}),
|
|
2964
2947
|
emits: ["update:modelValue"],
|
|
2965
2948
|
setup(e) {
|
|
2966
|
-
const t =
|
|
2967
|
-
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);
|
|
2968
2951
|
};
|
|
2969
|
-
return (l, n) => (i(), y("div",
|
|
2952
|
+
return (l, n) => (i(), y("div", ha, [
|
|
2970
2953
|
$(l.$slots, "message"),
|
|
2971
2954
|
c("div", null, [
|
|
2972
2955
|
c("input", {
|
|
@@ -2976,15 +2959,15 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
2976
2959
|
accept: l.acceptedFileTypes.join(", "),
|
|
2977
2960
|
disabled: a.value,
|
|
2978
2961
|
multiple: l.maxFileInput > 1,
|
|
2979
|
-
onInput: n[0] || (n[0] = (
|
|
2980
|
-
}, null, 40,
|
|
2962
|
+
onInput: n[0] || (n[0] = (u) => o([...u.target.files]))
|
|
2963
|
+
}, null, 40, wa),
|
|
2981
2964
|
c("label", {
|
|
2982
2965
|
class: B([{ disabled: a.value }, "btn btn-primary"]),
|
|
2983
2966
|
id: "file-input-button",
|
|
2984
2967
|
for: "file-input"
|
|
2985
2968
|
}, [
|
|
2986
2969
|
$(l.$slots, "button-content", {}, () => [
|
|
2987
|
-
b(
|
|
2970
|
+
b(m(V), {
|
|
2988
2971
|
icon: "bi:upload",
|
|
2989
2972
|
class: "me-2",
|
|
2990
2973
|
height: "20px",
|
|
@@ -2998,17 +2981,17 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
2998
2981
|
class: "ms-auto",
|
|
2999
2982
|
key: l.acceptedFileTypes.length,
|
|
3000
2983
|
id: "accepted-file-types"
|
|
3001
|
-
}, "Accepted File Types: " + h(l.acceptedFileTypes.map((
|
|
2984
|
+
}, "Accepted File Types: " + h(l.acceptedFileTypes.map((u) => u.split("/").pop()).join(", ")), 1)) : S("", !0)
|
|
3002
2985
|
]));
|
|
3003
2986
|
}
|
|
3004
|
-
}),
|
|
2987
|
+
}), ka = {
|
|
3005
2988
|
key: 0,
|
|
3006
2989
|
class: "py-4 px-3",
|
|
3007
2990
|
id: "placeholder-message"
|
|
3008
|
-
},
|
|
2991
|
+
}, $a = {
|
|
3009
2992
|
key: 1,
|
|
3010
2993
|
class: "d-flex flex-column"
|
|
3011
|
-
},
|
|
2994
|
+
}, Ba = /* @__PURE__ */ F({
|
|
3012
2995
|
__name: "DragDropArea",
|
|
3013
2996
|
props: /* @__PURE__ */ E({
|
|
3014
2997
|
maxFileInput: {},
|
|
@@ -3020,30 +3003,30 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3020
3003
|
}),
|
|
3021
3004
|
emits: ["update:modelValue"],
|
|
3022
3005
|
setup(e) {
|
|
3023
|
-
const t =
|
|
3024
|
-
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);
|
|
3025
3008
|
};
|
|
3026
|
-
return (n,
|
|
3009
|
+
return (n, u) => (i(), y("div", {
|
|
3027
3010
|
id: "drag-drop-area",
|
|
3028
3011
|
class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
3029
|
-
onDragleave:
|
|
3030
|
-
onDragover:
|
|
3031
|
-
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"])
|
|
3032
3015
|
}, [
|
|
3033
|
-
t.value.length === 0 ? (i(), y("div",
|
|
3034
|
-
b(
|
|
3016
|
+
t.value.length === 0 ? (i(), y("div", ka, [
|
|
3017
|
+
b(m(V), {
|
|
3035
3018
|
icon: "bi:upload",
|
|
3036
3019
|
class: "me-2",
|
|
3037
3020
|
height: "20px",
|
|
3038
3021
|
width: "20px"
|
|
3039
3022
|
}),
|
|
3040
3023
|
O(" Drag and drop files here ")
|
|
3041
|
-
])) : (i(), y("div",
|
|
3024
|
+
])) : (i(), y("div", $a, [
|
|
3042
3025
|
$(n.$slots, "default")
|
|
3043
3026
|
]))
|
|
3044
3027
|
], 34));
|
|
3045
3028
|
}
|
|
3046
|
-
}),
|
|
3029
|
+
}), Fa = { class: "d-flex align-items-center me-2" }, _a = /* @__PURE__ */ F({
|
|
3047
3030
|
__name: "UploadStatus",
|
|
3048
3031
|
props: {
|
|
3049
3032
|
fileSize: {},
|
|
@@ -3057,7 +3040,7 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3057
3040
|
case "InvalidFileType":
|
|
3058
3041
|
return "Upload Failed: File type is not accepted.";
|
|
3059
3042
|
case "InvalidFileSize":
|
|
3060
|
-
return `Upload Failed: File size exceeds the ${
|
|
3043
|
+
return `Upload Failed: File size exceeds the ${re(e.maxFileSize)} limit.`;
|
|
3061
3044
|
case "Aborted":
|
|
3062
3045
|
return "Upload Failed: User cancelled.";
|
|
3063
3046
|
case "DeleteFileFailed":
|
|
@@ -3068,41 +3051,41 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3068
3051
|
return "Upload Failed: Connection error, please try again.";
|
|
3069
3052
|
}
|
|
3070
3053
|
});
|
|
3071
|
-
return (o, l) => (i(), y("div",
|
|
3072
|
-
o.uploadStatus === "Uploading" ? (i(), w(
|
|
3054
|
+
return (o, l) => (i(), y("div", Fa, [
|
|
3055
|
+
o.uploadStatus === "Uploading" ? (i(), w(Kt, {
|
|
3073
3056
|
key: 0,
|
|
3074
3057
|
pixelWidth: 200,
|
|
3075
3058
|
animate: "",
|
|
3076
3059
|
striped: ""
|
|
3077
3060
|
}, {
|
|
3078
|
-
default:
|
|
3061
|
+
default: g(() => [
|
|
3079
3062
|
O(h((o.bytesUploaded / o.fileSize * 100).toFixed(0)) + "%", 1)
|
|
3080
3063
|
]),
|
|
3081
3064
|
_: 1
|
|
3082
|
-
})) :
|
|
3083
|
-
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, {
|
|
3084
3067
|
key: 1,
|
|
3085
3068
|
id: "upload-status-alert",
|
|
3086
3069
|
severity: t.value,
|
|
3087
3070
|
class: "mb-0 w-75 ms-auto"
|
|
3088
3071
|
}, {
|
|
3089
|
-
default:
|
|
3072
|
+
default: g(() => [
|
|
3090
3073
|
O(h(a.value), 1)
|
|
3091
3074
|
]),
|
|
3092
3075
|
_: 1
|
|
3093
|
-
}, 8, ["severity"])) :
|
|
3076
|
+
}, 8, ["severity"])) : S("", !0)
|
|
3094
3077
|
]));
|
|
3095
3078
|
}
|
|
3096
|
-
}),
|
|
3079
|
+
}), Sa = ["data-cy"], Va = { class: "ms-3 d-flex flex-column" }, Ca = {
|
|
3097
3080
|
key: 1,
|
|
3098
3081
|
id: "file-name"
|
|
3099
|
-
},
|
|
3082
|
+
}, Ta = {
|
|
3100
3083
|
class: "text-black-50",
|
|
3101
3084
|
id: "file-type"
|
|
3102
|
-
},
|
|
3085
|
+
}, Ma = {
|
|
3103
3086
|
class: "text-black-50",
|
|
3104
3087
|
id: "file-size"
|
|
3105
|
-
},
|
|
3088
|
+
}, Pa = { class: "ms-auto my-auto d-flex" }, Ia = /* @__PURE__ */ F({
|
|
3106
3089
|
__name: "FileInfo",
|
|
3107
3090
|
props: /* @__PURE__ */ E({
|
|
3108
3091
|
editableFileName: { type: Boolean },
|
|
@@ -3121,14 +3104,14 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3121
3104
|
}),
|
|
3122
3105
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
3123
3106
|
setup(e, { emit: t }) {
|
|
3124
|
-
const a =
|
|
3125
|
-
a.value = new File([a.value],
|
|
3126
|
-
},
|
|
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 () => {
|
|
3127
3110
|
if (!v.value || !s.value) {
|
|
3128
3111
|
l.value = v.value ? "InvalidFileSize" : "InvalidFileType";
|
|
3129
3112
|
return;
|
|
3130
3113
|
}
|
|
3131
|
-
l.value = "Preparing",
|
|
3114
|
+
l.value = "Preparing", p.value = new AbortController();
|
|
3132
3115
|
const [P, z] = await e.getFileUrlAction(a.value.name);
|
|
3133
3116
|
if (!P) {
|
|
3134
3117
|
l.value = "Failed";
|
|
@@ -3136,40 +3119,40 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3136
3119
|
}
|
|
3137
3120
|
try {
|
|
3138
3121
|
l.value = "Uploading";
|
|
3139
|
-
const
|
|
3140
|
-
abortSignal:
|
|
3141
|
-
onProgress: (G) =>
|
|
3122
|
+
const f = new ce(P), k = {
|
|
3123
|
+
abortSignal: p.value.signal,
|
|
3124
|
+
onProgress: (G) => d.value = G.loadedBytes,
|
|
3142
3125
|
tags: { temp: "true" }
|
|
3143
3126
|
};
|
|
3144
|
-
await
|
|
3145
|
-
} catch (
|
|
3146
|
-
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") {
|
|
3147
3130
|
l.value = "Aborted";
|
|
3148
3131
|
return;
|
|
3149
3132
|
}
|
|
3150
3133
|
l.value = "Failed";
|
|
3151
3134
|
}
|
|
3152
3135
|
}, M = async () => {
|
|
3153
|
-
await
|
|
3136
|
+
await ba(l.value, r.value), n("deleted", a.value);
|
|
3154
3137
|
};
|
|
3155
|
-
return
|
|
3156
|
-
e.autoUploadToBlob &&
|
|
3138
|
+
return ne(() => {
|
|
3139
|
+
e.autoUploadToBlob && C();
|
|
3157
3140
|
}), (P, z) => {
|
|
3158
|
-
const
|
|
3141
|
+
const f = R;
|
|
3159
3142
|
return i(), y("div", {
|
|
3160
3143
|
class: "py-4 px-3 d-flex",
|
|
3161
3144
|
"data-cy": `file-info-${a.value.name}`
|
|
3162
3145
|
}, [
|
|
3163
3146
|
c("div", null, [
|
|
3164
|
-
|
|
3147
|
+
m(fa)(a.value.type) ? (i(), w(m(Oe), {
|
|
3165
3148
|
key: 0,
|
|
3166
3149
|
id: "thumbnail-image",
|
|
3167
3150
|
"image-class": "image-file-thumbnail border",
|
|
3168
|
-
src:
|
|
3151
|
+
src: m(ga)(a.value),
|
|
3169
3152
|
alt: a.value.name,
|
|
3170
3153
|
width: "75px",
|
|
3171
3154
|
preview: ""
|
|
3172
|
-
}, null, 8, ["src", "alt"])) : (i(), w(
|
|
3155
|
+
}, null, 8, ["src", "alt"])) : (i(), w(m(V), {
|
|
3173
3156
|
key: 1,
|
|
3174
3157
|
id: "file-earmark",
|
|
3175
3158
|
icon: "bi:file-earmark",
|
|
@@ -3177,76 +3160,76 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3177
3160
|
width: "75px"
|
|
3178
3161
|
}))
|
|
3179
3162
|
]),
|
|
3180
|
-
c("div",
|
|
3163
|
+
c("div", Va, [
|
|
3181
3164
|
c("div", null, [
|
|
3182
|
-
P.editableFileName ? (i(), w(
|
|
3165
|
+
P.editableFileName ? (i(), w($t, {
|
|
3183
3166
|
key: 0,
|
|
3184
3167
|
id: "edit-file-name",
|
|
3185
|
-
modelValue:
|
|
3186
|
-
"onUpdate:modelValue": z[0] || (z[0] = (k) =>
|
|
3168
|
+
modelValue: u.value,
|
|
3169
|
+
"onUpdate:modelValue": z[0] || (z[0] = (k) => u.value = k),
|
|
3187
3170
|
rules: P.customFileNameRules,
|
|
3188
3171
|
name: a.value.name,
|
|
3189
3172
|
"complete-action": T
|
|
3190
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span",
|
|
3173
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span", Ca, h(a.value.name), 1))
|
|
3191
3174
|
]),
|
|
3192
|
-
c("span",
|
|
3193
|
-
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)
|
|
3194
3177
|
]),
|
|
3195
|
-
c("div",
|
|
3196
|
-
(i(), w(
|
|
3178
|
+
c("div", Pa, [
|
|
3179
|
+
(i(), w(_a, {
|
|
3197
3180
|
key: l.value,
|
|
3198
3181
|
"file-size": a.value.size,
|
|
3199
3182
|
"upload-status": l.value,
|
|
3200
|
-
"bytes-uploaded":
|
|
3183
|
+
"bytes-uploaded": d.value,
|
|
3201
3184
|
"max-file-size": P.maxFileSize
|
|
3202
3185
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
3203
|
-
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, {
|
|
3204
3187
|
key: 0,
|
|
3205
3188
|
link: "",
|
|
3206
|
-
onClick:
|
|
3189
|
+
onClick: C
|
|
3207
3190
|
}, {
|
|
3208
|
-
default:
|
|
3209
|
-
b(
|
|
3191
|
+
default: g(() => [
|
|
3192
|
+
b(m(V), {
|
|
3210
3193
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
3211
3194
|
}, null, 8, ["icon"])
|
|
3212
3195
|
]),
|
|
3213
3196
|
_: 1
|
|
3214
|
-
})) :
|
|
3215
|
-
l.value === "Uploading" ? (i(), w(
|
|
3197
|
+
})) : S("", !0),
|
|
3198
|
+
l.value === "Uploading" ? (i(), w(f, {
|
|
3216
3199
|
key: 1,
|
|
3217
3200
|
link: "",
|
|
3218
|
-
onClick: z[1] || (z[1] = (k) =>
|
|
3201
|
+
onClick: z[1] || (z[1] = (k) => p.value.value.abort())
|
|
3219
3202
|
}, {
|
|
3220
|
-
default:
|
|
3221
|
-
b(
|
|
3203
|
+
default: g(() => [
|
|
3204
|
+
b(m(V), { icon: "bi:x-circle-fill" })
|
|
3222
3205
|
]),
|
|
3223
3206
|
_: 1
|
|
3224
|
-
})) : (i(), w(
|
|
3207
|
+
})) : (i(), w(f, {
|
|
3225
3208
|
key: 2,
|
|
3226
3209
|
link: "",
|
|
3227
3210
|
onClick: M,
|
|
3228
3211
|
id: "delete-button"
|
|
3229
3212
|
}, {
|
|
3230
|
-
default:
|
|
3231
|
-
b(
|
|
3213
|
+
default: g(() => [
|
|
3214
|
+
b(m(V), { icon: "bi:trash" })
|
|
3232
3215
|
]),
|
|
3233
3216
|
_: 1
|
|
3234
3217
|
}))
|
|
3235
3218
|
])
|
|
3236
|
-
], 8,
|
|
3219
|
+
], 8, Sa);
|
|
3237
3220
|
};
|
|
3238
3221
|
}
|
|
3239
|
-
}),
|
|
3222
|
+
}), za = { class: "d-flex justify-content-end mt-1" }, Oa = { id: "max-file-size" }, Da = /* @__PURE__ */ F({
|
|
3240
3223
|
__name: "MaxFileSize",
|
|
3241
3224
|
props: {
|
|
3242
3225
|
maxFileSize: {}
|
|
3243
3226
|
},
|
|
3244
3227
|
setup(e) {
|
|
3245
|
-
return (t, a) => (i(), y("div",
|
|
3246
|
-
c("div",
|
|
3228
|
+
return (t, a) => (i(), y("div", za, [
|
|
3229
|
+
c("div", Oa, "Max file size: " + h(m(re)(t.maxFileSize)), 1)
|
|
3247
3230
|
]));
|
|
3248
3231
|
}
|
|
3249
|
-
}),
|
|
3232
|
+
}), Ua = { "data-cy": "file-uploader" }, Aa = { key: 0 }, Tl = /* @__PURE__ */ F({
|
|
3250
3233
|
__name: "ForgeFileUploader",
|
|
3251
3234
|
props: /* @__PURE__ */ E({
|
|
3252
3235
|
acceptedFileTypes: {},
|
|
@@ -3263,72 +3246,72 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
|
|
|
3263
3246
|
}),
|
|
3264
3247
|
emits: ["update:modelValue"],
|
|
3265
3248
|
setup(e) {
|
|
3266
|
-
const t =
|
|
3249
|
+
const t = A(e, "modelValue"), a = e, o = (l) => {
|
|
3267
3250
|
t.value = t.value.filter((n) => n.file != l);
|
|
3268
3251
|
};
|
|
3269
|
-
return (l, n) => (i(), y("div",
|
|
3270
|
-
b(
|
|
3252
|
+
return (l, n) => (i(), y("div", Ua, [
|
|
3253
|
+
b(xa, _(a, {
|
|
3271
3254
|
modelValue: t.value,
|
|
3272
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3255
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
|
|
3273
3256
|
}), null, 16, ["modelValue"]),
|
|
3274
|
-
l.showDragDropArea ? (i(), y("div",
|
|
3275
|
-
b(
|
|
3257
|
+
l.showDragDropArea ? (i(), y("div", Aa, [
|
|
3258
|
+
b(Ba, {
|
|
3276
3259
|
"max-file-input": a.maxFileInput,
|
|
3277
3260
|
"max-file-size": a.maxFileSize,
|
|
3278
3261
|
"accepted-file-types": a.acceptedFileTypes,
|
|
3279
3262
|
modelValue: t.value,
|
|
3280
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
3263
|
+
"onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
|
|
3281
3264
|
}, {
|
|
3282
|
-
default:
|
|
3283
|
-
(i(!0), y(
|
|
3284
|
-
(i(), w(
|
|
3285
|
-
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,
|
|
3286
3269
|
class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
3287
3270
|
file: t.value[r].file,
|
|
3288
|
-
"onUpdate:file": (
|
|
3271
|
+
"onUpdate:file": (d) => t.value[r].file = d,
|
|
3289
3272
|
"blob-file-name": t.value[r].blobFileName,
|
|
3290
|
-
"onUpdate:blobFileName": (
|
|
3273
|
+
"onUpdate:blobFileName": (d) => t.value[r].blobFileName = d,
|
|
3291
3274
|
"upload-status": t.value[r].status,
|
|
3292
|
-
"onUpdate:uploadStatus": (
|
|
3275
|
+
"onUpdate:uploadStatus": (d) => t.value[r].status = d,
|
|
3293
3276
|
ref_for: !0
|
|
3294
3277
|
}, a, { onDeleted: o }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
3295
3278
|
]))), 256))
|
|
3296
3279
|
]),
|
|
3297
3280
|
_: 1
|
|
3298
3281
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
3299
|
-
b(
|
|
3282
|
+
b(Da, {
|
|
3300
3283
|
"max-file-size": a.maxFileSize
|
|
3301
3284
|
}, null, 8, ["max-file-size"])
|
|
3302
|
-
])) :
|
|
3285
|
+
])) : S("", !0)
|
|
3303
3286
|
]));
|
|
3304
3287
|
}
|
|
3305
3288
|
});
|
|
3306
3289
|
export {
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
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
|
|
3334
3317
|
};
|