@3squared/forge-ui-3 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import he from "primevue/message";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { Icon as
|
|
2
|
+
import { defineComponent as B, openBlock as d, createBlock as f, normalizeProps as K, guardReactiveProps as Z, withCtx as g, createElementVNode as m, normalizeClass as F, unref as c, createCommentVNode as C, createVNode as y, renderSlot as k, ref as I, createElementBlock as b, Fragment as N, mergeProps as S, renderList as q, mergeModels as E, useModel as D, computed as z, createTextVNode as _, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
|
|
3
|
+
import { Icon as T } from "@iconify/vue";
|
|
4
4
|
import U from "primevue/button";
|
|
5
|
-
import
|
|
5
|
+
import Be from "primevue/toast";
|
|
6
6
|
import Se from "primevue/autocomplete";
|
|
7
7
|
import Ce from "primevue/checkbox";
|
|
8
8
|
import { useField as ee } from "vee-validate";
|
|
@@ -12,9 +12,9 @@ import ne from "primevue/inputtext";
|
|
|
12
12
|
import { vOnClickOutside as je } from "@vueuse/components";
|
|
13
13
|
import Ie from "primevue/menubar";
|
|
14
14
|
import oe from "primevue/multiselect";
|
|
15
|
-
import
|
|
15
|
+
import _e from "primevue/datepicker";
|
|
16
16
|
import te from "primevue/select";
|
|
17
|
-
import
|
|
17
|
+
import Pe from "primevue/inputmask";
|
|
18
18
|
import Ve from "primevue/textarea";
|
|
19
19
|
import ue from "primevue/inputnumber";
|
|
20
20
|
import Me from "primevue/chip";
|
|
@@ -28,7 +28,8 @@ import Ee from "primevue/datatable";
|
|
|
28
28
|
import { BlockBlobClient as me } from "@azure/storage-blob";
|
|
29
29
|
import ve from "primevue/popover";
|
|
30
30
|
import Le from "primevue/image";
|
|
31
|
-
|
|
31
|
+
import Re from "primevue/panel";
|
|
32
|
+
const He = {
|
|
32
33
|
autoComplete: {
|
|
33
34
|
root: ({ props: e }) => ({
|
|
34
35
|
class: [
|
|
@@ -57,7 +58,7 @@ const Re = {
|
|
|
57
58
|
}),
|
|
58
59
|
emptyMessage: "mx-3 my-2"
|
|
59
60
|
}
|
|
60
|
-
},
|
|
61
|
+
}, We = {
|
|
61
62
|
button: {
|
|
62
63
|
root: ({ props: e }) => ({
|
|
63
64
|
class: [
|
|
@@ -158,7 +159,7 @@ const Re = {
|
|
|
158
159
|
})
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
|
-
},
|
|
162
|
+
}, Ye = {
|
|
162
163
|
checkbox: {
|
|
163
164
|
root: () => ({
|
|
164
165
|
class: ["form-check"]
|
|
@@ -174,7 +175,7 @@ const Re = {
|
|
|
174
175
|
]
|
|
175
176
|
})
|
|
176
177
|
}
|
|
177
|
-
},
|
|
178
|
+
}, Ge = {
|
|
178
179
|
select: {
|
|
179
180
|
root: ({ props: e }) => ({
|
|
180
181
|
class: [
|
|
@@ -184,7 +185,7 @@ const Re = {
|
|
|
184
185
|
}
|
|
185
186
|
]
|
|
186
187
|
}),
|
|
187
|
-
dropdown: (
|
|
188
|
+
dropdown: () => ({
|
|
188
189
|
class: [
|
|
189
190
|
"d-none my-auto filter-trigger"
|
|
190
191
|
]
|
|
@@ -204,10 +205,12 @@ const Re = {
|
|
|
204
205
|
overlay: "dropdown-menu overflow-y-auto show",
|
|
205
206
|
header: "p-2 w-100",
|
|
206
207
|
pcFilter: "form-control w-100",
|
|
207
|
-
pcFilterIconContainer: {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
pcFilterIconContainer: {
|
|
209
|
+
root: {
|
|
210
|
+
class: ["position-absolute bottom-0 end-0 me-3"],
|
|
211
|
+
style: "top: 8%;"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
211
214
|
clearIcon: "ms-auto my-auto",
|
|
212
215
|
loadingIcon: "spinner-border spinner-border-sm border-0",
|
|
213
216
|
optionGroupLabel: "ps-2 fw-bold",
|
|
@@ -222,7 +225,7 @@ const Re = {
|
|
|
222
225
|
]
|
|
223
226
|
})
|
|
224
227
|
}
|
|
225
|
-
},
|
|
228
|
+
}, Je = {
|
|
226
229
|
column: {
|
|
227
230
|
pcSortBadge: "ms-2 my-auto cursor-pointer",
|
|
228
231
|
headerCell: (e) => {
|
|
@@ -325,7 +328,7 @@ const Re = {
|
|
|
325
328
|
]
|
|
326
329
|
})
|
|
327
330
|
}
|
|
328
|
-
},
|
|
331
|
+
}, Ke = {
|
|
329
332
|
inputtext: {
|
|
330
333
|
root: (e) => {
|
|
331
334
|
var t, a;
|
|
@@ -340,7 +343,7 @@ const Re = {
|
|
|
340
343
|
};
|
|
341
344
|
}
|
|
342
345
|
}
|
|
343
|
-
},
|
|
346
|
+
}, Ze = {
|
|
344
347
|
inputmask: {
|
|
345
348
|
root: () => ({
|
|
346
349
|
class: [
|
|
@@ -348,12 +351,12 @@ const Re = {
|
|
|
348
351
|
]
|
|
349
352
|
})
|
|
350
353
|
}
|
|
351
|
-
},
|
|
354
|
+
}, Xe = {
|
|
352
355
|
toggleSwitch: {
|
|
353
356
|
root: "form-check form-switch",
|
|
354
357
|
input: "form-check-input"
|
|
355
358
|
}
|
|
356
|
-
},
|
|
359
|
+
}, Qe = {
|
|
357
360
|
tag: {
|
|
358
361
|
root: ({ props: e }) => ({
|
|
359
362
|
class: [
|
|
@@ -373,7 +376,7 @@ const Re = {
|
|
|
373
376
|
]
|
|
374
377
|
})
|
|
375
378
|
}
|
|
376
|
-
},
|
|
379
|
+
}, et = {
|
|
377
380
|
textarea: {
|
|
378
381
|
root: () => ({
|
|
379
382
|
class: [
|
|
@@ -381,13 +384,13 @@ const Re = {
|
|
|
381
384
|
]
|
|
382
385
|
})
|
|
383
386
|
}
|
|
384
|
-
},
|
|
387
|
+
}, tt = {
|
|
385
388
|
chip: {
|
|
386
389
|
root: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 p-1",
|
|
387
390
|
label: "px-2 fs-6 fw-400",
|
|
388
391
|
removeIcon: "ms-auto my-auto"
|
|
389
392
|
}
|
|
390
|
-
},
|
|
393
|
+
}, at = {
|
|
391
394
|
dialog: {
|
|
392
395
|
root: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
|
|
393
396
|
class: ["modal modal-dialog modal-content h-auto m-0 modal-sm"]
|
|
@@ -446,7 +449,7 @@ const Re = {
|
|
|
446
449
|
]
|
|
447
450
|
})
|
|
448
451
|
}
|
|
449
|
-
},
|
|
452
|
+
}, it = {
|
|
450
453
|
popover: {
|
|
451
454
|
root: (e) => ({
|
|
452
455
|
class: [
|
|
@@ -460,7 +463,7 @@ const Re = {
|
|
|
460
463
|
content: "d-flex position-relative",
|
|
461
464
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
462
465
|
}
|
|
463
|
-
},
|
|
466
|
+
}, lt = {
|
|
464
467
|
message: {
|
|
465
468
|
root: ({ props: e }) => ({
|
|
466
469
|
class: [
|
|
@@ -489,7 +492,7 @@ const Re = {
|
|
|
489
492
|
class: ["px-0 ms-2 btn d-flex"]
|
|
490
493
|
})
|
|
491
494
|
}
|
|
492
|
-
},
|
|
495
|
+
}, nt = {
|
|
493
496
|
// More PT options defined in ForgeStepper.
|
|
494
497
|
stepList: {
|
|
495
498
|
root: "d-flex mb-2 w-100"
|
|
@@ -517,7 +520,7 @@ const Re = {
|
|
|
517
520
|
}),
|
|
518
521
|
separator: "border border-1 separator"
|
|
519
522
|
}
|
|
520
|
-
},
|
|
523
|
+
}, ot = {
|
|
521
524
|
tabList: {
|
|
522
525
|
root: () => ({
|
|
523
526
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -542,7 +545,7 @@ const Re = {
|
|
|
542
545
|
class: ["p-2"]
|
|
543
546
|
})
|
|
544
547
|
}
|
|
545
|
-
},
|
|
548
|
+
}, st = {
|
|
546
549
|
// More PassThrough options defined in ForgeDatepicker.
|
|
547
550
|
datepicker: {
|
|
548
551
|
root: "d-inline-flex relative w-100",
|
|
@@ -617,7 +620,7 @@ const Re = {
|
|
|
617
620
|
pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
|
|
618
621
|
pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
|
|
619
622
|
}
|
|
620
|
-
},
|
|
623
|
+
}, rt = {
|
|
621
624
|
multiselect: {
|
|
622
625
|
root: ({ props: e }) => ({
|
|
623
626
|
class: [
|
|
@@ -645,7 +648,7 @@ const Re = {
|
|
|
645
648
|
class: "d-none"
|
|
646
649
|
})
|
|
647
650
|
}
|
|
648
|
-
},
|
|
651
|
+
}, dt = {
|
|
649
652
|
// More PassThrough options in component file.
|
|
650
653
|
progressbar: {
|
|
651
654
|
root: () => ({
|
|
@@ -655,14 +658,20 @@ const Re = {
|
|
|
655
658
|
class: ["text-white m-1"]
|
|
656
659
|
})
|
|
657
660
|
}
|
|
658
|
-
},
|
|
661
|
+
}, pt = {
|
|
659
662
|
panel: {
|
|
660
663
|
root: "card w-100",
|
|
661
|
-
header: "d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
662
|
-
pcToggleButton:
|
|
664
|
+
header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
665
|
+
pcToggleButton: {
|
|
666
|
+
root: {
|
|
667
|
+
class: [
|
|
668
|
+
"btn"
|
|
669
|
+
]
|
|
670
|
+
}
|
|
671
|
+
},
|
|
663
672
|
contentContainer: "mt-2 mx-4 mb-4"
|
|
664
673
|
}
|
|
665
|
-
},
|
|
674
|
+
}, ct = {
|
|
666
675
|
// More PT options can be found in the ForgeTable file.
|
|
667
676
|
dataTable: {
|
|
668
677
|
root: "position-relative",
|
|
@@ -725,7 +734,7 @@ const Re = {
|
|
|
725
734
|
]
|
|
726
735
|
})
|
|
727
736
|
}
|
|
728
|
-
},
|
|
737
|
+
}, ut = {
|
|
729
738
|
badge: {
|
|
730
739
|
root: ({ props: e }) => ({
|
|
731
740
|
class: [
|
|
@@ -746,7 +755,7 @@ const Re = {
|
|
|
746
755
|
]
|
|
747
756
|
})
|
|
748
757
|
}
|
|
749
|
-
},
|
|
758
|
+
}, mt = {
|
|
750
759
|
// More PassThrough options in component file.
|
|
751
760
|
menubar: {
|
|
752
761
|
rootList: ({ instance: e }) => ({
|
|
@@ -827,7 +836,7 @@ const Re = {
|
|
|
827
836
|
]
|
|
828
837
|
})
|
|
829
838
|
}
|
|
830
|
-
},
|
|
839
|
+
}, vt = {
|
|
831
840
|
tooltip: {
|
|
832
841
|
root: ({ context: e }) => ({
|
|
833
842
|
class: [
|
|
@@ -849,7 +858,7 @@ const Re = {
|
|
|
849
858
|
class: ["tooltip-inner"]
|
|
850
859
|
}
|
|
851
860
|
}
|
|
852
|
-
},
|
|
861
|
+
}, ft = {
|
|
853
862
|
selectButton: {
|
|
854
863
|
root: () => ({
|
|
855
864
|
class: ["btn-group"]
|
|
@@ -866,7 +875,7 @@ const Re = {
|
|
|
866
875
|
]
|
|
867
876
|
})
|
|
868
877
|
}
|
|
869
|
-
},
|
|
878
|
+
}, gt = {
|
|
870
879
|
splitbutton: {
|
|
871
880
|
root: () => ({
|
|
872
881
|
class: ["btn-group"]
|
|
@@ -902,7 +911,7 @@ const Re = {
|
|
|
902
911
|
separator: "border-bottom w-100"
|
|
903
912
|
}
|
|
904
913
|
}
|
|
905
|
-
},
|
|
914
|
+
}, bt = {
|
|
906
915
|
progressspinner: {
|
|
907
916
|
spin: () => ({
|
|
908
917
|
class: [
|
|
@@ -910,7 +919,7 @@ const Re = {
|
|
|
910
919
|
]
|
|
911
920
|
})
|
|
912
921
|
}
|
|
913
|
-
},
|
|
922
|
+
}, xt = {
|
|
914
923
|
card: {
|
|
915
924
|
root: () => ({
|
|
916
925
|
class: ["card"]
|
|
@@ -934,11 +943,11 @@ const Re = {
|
|
|
934
943
|
class: ["card-header"]
|
|
935
944
|
})
|
|
936
945
|
}
|
|
937
|
-
},
|
|
946
|
+
}, yt = {
|
|
938
947
|
divider: {
|
|
939
948
|
root: "border-bottom w-100 m-1"
|
|
940
949
|
}
|
|
941
|
-
},
|
|
950
|
+
}, ht = {
|
|
942
951
|
image: {
|
|
943
952
|
root: "position-relative d-inline-block",
|
|
944
953
|
previewMask: "preview-button",
|
|
@@ -951,7 +960,7 @@ const Re = {
|
|
|
951
960
|
zoominbutton: "btn text-white",
|
|
952
961
|
closebutton: "btn text-white"
|
|
953
962
|
}
|
|
954
|
-
},
|
|
963
|
+
}, wt = {
|
|
955
964
|
toast: {
|
|
956
965
|
message: () => ({
|
|
957
966
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -986,7 +995,7 @@ const Re = {
|
|
|
986
995
|
};
|
|
987
996
|
}
|
|
988
997
|
}
|
|
989
|
-
},
|
|
998
|
+
}, kt = {
|
|
990
999
|
fieldset: {
|
|
991
1000
|
root: () => ({
|
|
992
1001
|
class: [
|
|
@@ -1012,42 +1021,42 @@ const Re = {
|
|
|
1012
1021
|
]
|
|
1013
1022
|
})
|
|
1014
1023
|
}
|
|
1015
|
-
},
|
|
1016
|
-
...Re,
|
|
1017
|
-
...ct,
|
|
1024
|
+
}, Ti = {
|
|
1018
1025
|
...He,
|
|
1019
|
-
...
|
|
1026
|
+
...ut,
|
|
1020
1027
|
...We,
|
|
1021
|
-
...et,
|
|
1022
|
-
...Ge,
|
|
1023
|
-
...ot,
|
|
1024
|
-
...tt,
|
|
1025
1028
|
...xt,
|
|
1026
1029
|
...Ye,
|
|
1027
|
-
...
|
|
1030
|
+
...tt,
|
|
1028
1031
|
...Je,
|
|
1029
|
-
...Ke,
|
|
1030
|
-
...Ze,
|
|
1031
|
-
...it,
|
|
1032
1032
|
...st,
|
|
1033
|
-
...ut,
|
|
1034
1033
|
...at,
|
|
1034
|
+
...yt,
|
|
1035
|
+
...Ge,
|
|
1036
|
+
...ht,
|
|
1037
|
+
...Ke,
|
|
1038
|
+
...Ze,
|
|
1039
|
+
...Xe,
|
|
1040
|
+
...lt,
|
|
1035
1041
|
...rt,
|
|
1036
|
-
...
|
|
1042
|
+
...mt,
|
|
1043
|
+
...it,
|
|
1037
1044
|
...dt,
|
|
1038
|
-
...
|
|
1039
|
-
...ft,
|
|
1040
|
-
...lt,
|
|
1045
|
+
...bt,
|
|
1041
1046
|
...pt,
|
|
1042
|
-
...
|
|
1047
|
+
...ft,
|
|
1048
|
+
...gt,
|
|
1043
1049
|
...nt,
|
|
1044
|
-
...
|
|
1050
|
+
...ct,
|
|
1045
1051
|
...Qe,
|
|
1052
|
+
...ot,
|
|
1046
1053
|
...wt,
|
|
1054
|
+
...et,
|
|
1055
|
+
...kt,
|
|
1047
1056
|
directives: {
|
|
1048
|
-
...
|
|
1057
|
+
...vt
|
|
1049
1058
|
}
|
|
1050
|
-
}, se = /* @__PURE__ */
|
|
1059
|
+
}, se = /* @__PURE__ */ B({
|
|
1051
1060
|
__name: "ForgeAlert",
|
|
1052
1061
|
props: {
|
|
1053
1062
|
severity: { default: "primary" },
|
|
@@ -1068,22 +1077,22 @@ const Re = {
|
|
|
1068
1077
|
const t = e;
|
|
1069
1078
|
return (a, i) => {
|
|
1070
1079
|
const l = he;
|
|
1071
|
-
return d(),
|
|
1080
|
+
return d(), f(l, K(Z({ ...a.$attrs, ...t })), {
|
|
1072
1081
|
icon: g(() => [
|
|
1073
1082
|
m("div", {
|
|
1074
|
-
class:
|
|
1083
|
+
class: F(t.icon ? "me-2 pe-1" : "")
|
|
1075
1084
|
}, [
|
|
1076
|
-
t.icon ? (d(),
|
|
1085
|
+
t.icon ? (d(), f(c(T), {
|
|
1077
1086
|
key: 0,
|
|
1078
1087
|
"data-cy": "message-icon",
|
|
1079
1088
|
icon: t.icon,
|
|
1080
|
-
class:
|
|
1089
|
+
class: F(`text-${t.severity}`),
|
|
1081
1090
|
height: 35
|
|
1082
1091
|
}, null, 8, ["icon", "class"])) : C("", !0)
|
|
1083
1092
|
], 2)
|
|
1084
1093
|
]),
|
|
1085
1094
|
closeicon: g(() => [
|
|
1086
|
-
y(c(
|
|
1095
|
+
y(c(T), { icon: "bi:x" })
|
|
1087
1096
|
]),
|
|
1088
1097
|
default: g(() => [
|
|
1089
1098
|
k(a.$slots, "default")
|
|
@@ -1092,7 +1101,7 @@ const Re = {
|
|
|
1092
1101
|
}, 16);
|
|
1093
1102
|
};
|
|
1094
1103
|
}
|
|
1095
|
-
}),
|
|
1104
|
+
}), ji = /* @__PURE__ */ B({
|
|
1096
1105
|
__name: "ForgeActionButton",
|
|
1097
1106
|
props: {
|
|
1098
1107
|
action: {},
|
|
@@ -1112,27 +1121,27 @@ const Re = {
|
|
|
1112
1121
|
};
|
|
1113
1122
|
return (l, n) => {
|
|
1114
1123
|
const s = U;
|
|
1115
|
-
return d(),
|
|
1124
|
+
return d(), b(N, null, [
|
|
1116
1125
|
y(s, S({ ...a, ...l.$attrs }, {
|
|
1117
1126
|
loading: t.value,
|
|
1118
1127
|
disabled: t.value || a.disabled,
|
|
1119
1128
|
onClick: i
|
|
1120
1129
|
}), null, 16, ["loading", "disabled"]),
|
|
1121
|
-
y(c(
|
|
1130
|
+
y(c(Be))
|
|
1122
1131
|
], 64);
|
|
1123
1132
|
};
|
|
1124
1133
|
}
|
|
1125
|
-
}),
|
|
1134
|
+
}), Ii = /* @__PURE__ */ B({
|
|
1126
1135
|
__name: "ForgeAutoComplete",
|
|
1127
1136
|
setup(e) {
|
|
1128
|
-
return (t, a) => (d(),
|
|
1137
|
+
return (t, a) => (d(), f(c(Se), S({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1129
1138
|
default: g(() => [
|
|
1130
|
-
(d(!0),
|
|
1139
|
+
(d(!0), b(N, null, q(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
|
|
1131
1140
|
]),
|
|
1132
1141
|
_: 3
|
|
1133
1142
|
}, 16));
|
|
1134
1143
|
}
|
|
1135
|
-
}),
|
|
1144
|
+
}), $t = { class: "d-flex flex-column" }, Ft = ["for"], fe = /* @__PURE__ */ B({
|
|
1136
1145
|
__name: "ForgeCheckbox",
|
|
1137
1146
|
props: /* @__PURE__ */ E({
|
|
1138
1147
|
label: { default: "" },
|
|
@@ -1179,7 +1188,7 @@ const Re = {
|
|
|
1179
1188
|
}, r = z(() => l.value.length > 0);
|
|
1180
1189
|
return (p, u) => {
|
|
1181
1190
|
const x = Ce;
|
|
1182
|
-
return d(),
|
|
1191
|
+
return d(), b("div", $t, [
|
|
1183
1192
|
m("div", S({
|
|
1184
1193
|
class: "d-flex",
|
|
1185
1194
|
"data-cy": "checkbox-container",
|
|
@@ -1196,12 +1205,12 @@ const Re = {
|
|
|
1196
1205
|
m("label", {
|
|
1197
1206
|
for: t.name,
|
|
1198
1207
|
onClick: u[1] || (u[1] = (o) => s(!a.value)),
|
|
1199
|
-
class:
|
|
1208
|
+
class: F([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${r.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1200
1209
|
}, [
|
|
1201
1210
|
k(p.$slots, "default", {}, () => [
|
|
1202
|
-
|
|
1211
|
+
_(w(t.label), 1)
|
|
1203
1212
|
])
|
|
1204
|
-
], 10,
|
|
1213
|
+
], 10, Ft)
|
|
1205
1214
|
], 16),
|
|
1206
1215
|
H(m("small", {
|
|
1207
1216
|
"data-cy": "error",
|
|
@@ -1212,7 +1221,7 @@ const Re = {
|
|
|
1212
1221
|
]);
|
|
1213
1222
|
};
|
|
1214
1223
|
}
|
|
1215
|
-
}), Bt = { class: "forge-loader" }, ge = /* @__PURE__ */
|
|
1224
|
+
}), Bt = { class: "forge-loader" }, ge = /* @__PURE__ */ B({
|
|
1216
1225
|
__name: "ForgeLoader",
|
|
1217
1226
|
props: {
|
|
1218
1227
|
severity: { default: "primary" }
|
|
@@ -1221,15 +1230,15 @@ const Re = {
|
|
|
1221
1230
|
const t = e;
|
|
1222
1231
|
return (a, i) => {
|
|
1223
1232
|
const l = ze;
|
|
1224
|
-
return d(),
|
|
1233
|
+
return d(), b("div", Bt, [
|
|
1225
1234
|
y(l, {
|
|
1226
1235
|
"animation-duration": ".75",
|
|
1227
|
-
class:
|
|
1236
|
+
class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1228
1237
|
}, null, 8, ["class"])
|
|
1229
1238
|
]);
|
|
1230
1239
|
};
|
|
1231
1240
|
}
|
|
1232
|
-
}),
|
|
1241
|
+
}), St = ["href", "target"], _i = /* @__PURE__ */ B({
|
|
1233
1242
|
__name: "ForgeLink",
|
|
1234
1243
|
props: {
|
|
1235
1244
|
url: {},
|
|
@@ -1263,25 +1272,25 @@ const Re = {
|
|
|
1263
1272
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1264
1273
|
"me-0": e.animateIconOnHover
|
|
1265
1274
|
}));
|
|
1266
|
-
return (i, l) => (d(),
|
|
1275
|
+
return (i, l) => (d(), b("a", {
|
|
1267
1276
|
id: "link",
|
|
1268
|
-
class:
|
|
1277
|
+
class: F(["cursor-pointer d-flex text-break", t.value]),
|
|
1269
1278
|
href: i.url,
|
|
1270
1279
|
target: i.target
|
|
1271
1280
|
}, [
|
|
1272
1281
|
k(i.$slots, "default", {}, () => [
|
|
1273
|
-
i.iconName ? (d(),
|
|
1282
|
+
i.iconName ? (d(), f(c(T), {
|
|
1274
1283
|
key: 0,
|
|
1275
1284
|
id: "link-icon",
|
|
1276
1285
|
icon: i.iconName,
|
|
1277
|
-
class:
|
|
1286
|
+
class: F(["bi my-auto", a.value])
|
|
1278
1287
|
}, null, 8, ["icon", "class"])) : C("", !0),
|
|
1279
|
-
|
|
1288
|
+
_(" " + w(i.label), 1)
|
|
1280
1289
|
])
|
|
1281
|
-
], 10,
|
|
1290
|
+
], 10, St));
|
|
1282
1291
|
}
|
|
1283
1292
|
});
|
|
1284
|
-
function
|
|
1293
|
+
function Ct(e) {
|
|
1285
1294
|
const t = {
|
|
1286
1295
|
errorMessage: "",
|
|
1287
1296
|
errorDetails: []
|
|
@@ -1292,16 +1301,16 @@ function St(e) {
|
|
|
1292
1301
|
}
|
|
1293
1302
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1294
1303
|
}
|
|
1295
|
-
function
|
|
1304
|
+
function Pi(e, t) {
|
|
1296
1305
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1297
1306
|
}
|
|
1298
|
-
function
|
|
1307
|
+
function Vi(e, t, a) {
|
|
1299
1308
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1300
1309
|
}
|
|
1301
|
-
const
|
|
1310
|
+
const zt = { key: 0 }, Tt = {
|
|
1302
1311
|
class: "d-flex w-100",
|
|
1303
1312
|
"data-cy": "footer"
|
|
1304
|
-
},
|
|
1313
|
+
}, Mi = /* @__PURE__ */ B({
|
|
1305
1314
|
__name: "ForgeModal",
|
|
1306
1315
|
props: /* @__PURE__ */ E({
|
|
1307
1316
|
cancelText: { default: "Cancel" },
|
|
@@ -1369,7 +1378,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
1369
1378
|
(o || o == null) && p();
|
|
1370
1379
|
} catch (o) {
|
|
1371
1380
|
n.value.hasError = !0;
|
|
1372
|
-
const $ =
|
|
1381
|
+
const $ = Ct(o);
|
|
1373
1382
|
n.value.header = $.errorMessage, n.value.message = $.errorDetails;
|
|
1374
1383
|
}
|
|
1375
1384
|
l.value = !1;
|
|
@@ -1386,14 +1395,14 @@ const Ct = { key: 0 }, zt = {
|
|
|
1386
1395
|
]
|
|
1387
1396
|
}));
|
|
1388
1397
|
return (o, $) => {
|
|
1389
|
-
const
|
|
1390
|
-
return d(),
|
|
1398
|
+
const j = U, V = Te;
|
|
1399
|
+
return d(), f(V, S(i, {
|
|
1391
1400
|
onMaximize: r,
|
|
1392
1401
|
onUnmaximize: s,
|
|
1393
1402
|
pt: x.value
|
|
1394
1403
|
}), ie({
|
|
1395
1404
|
closeicon: g(() => [
|
|
1396
|
-
y(c(
|
|
1405
|
+
y(c(T), {
|
|
1397
1406
|
"data-cy": "close-icon",
|
|
1398
1407
|
icon: "bi:x-lg",
|
|
1399
1408
|
width: "18",
|
|
@@ -1402,7 +1411,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
1402
1411
|
})
|
|
1403
1412
|
]),
|
|
1404
1413
|
maximizeicon: g(() => [
|
|
1405
|
-
y(c(
|
|
1414
|
+
y(c(T), {
|
|
1406
1415
|
"data-cy": "maximisable-icon",
|
|
1407
1416
|
icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1408
1417
|
width: "16",
|
|
@@ -1414,22 +1423,22 @@ const Ct = { key: 0 }, zt = {
|
|
|
1414
1423
|
q(o.$slots, (M, O) => ({
|
|
1415
1424
|
name: O,
|
|
1416
1425
|
fn: g((v) => [
|
|
1417
|
-
n.value.hasError ? (d(),
|
|
1426
|
+
n.value.hasError ? (d(), f(se, {
|
|
1418
1427
|
key: 0,
|
|
1419
1428
|
severity: "danger",
|
|
1420
1429
|
"data-cy": "error"
|
|
1421
1430
|
}, {
|
|
1422
1431
|
default: g(() => [
|
|
1423
1432
|
m("p", {
|
|
1424
|
-
class:
|
|
1433
|
+
class: F(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1425
1434
|
}, w(n.value.header), 3),
|
|
1426
|
-
n.value.message.length > 0 ? (d(),
|
|
1427
|
-
(d(!0),
|
|
1435
|
+
n.value.message.length > 0 ? (d(), b("ul", zt, [
|
|
1436
|
+
(d(!0), b(N, null, q(n.value.message, (h) => (d(), b("li", { key: h }, w(h), 1))), 128))
|
|
1428
1437
|
])) : C("", !0)
|
|
1429
1438
|
]),
|
|
1430
1439
|
_: 1
|
|
1431
1440
|
})) : C("", !0),
|
|
1432
|
-
k(o.$slots, O,
|
|
1441
|
+
k(o.$slots, O, K(Z(v || {}))),
|
|
1433
1442
|
l.value ? k(o.$slots, "loader", { key: 1 }, () => [
|
|
1434
1443
|
y(ge, { "data-cy": "loader" })
|
|
1435
1444
|
]) : C("", !0)
|
|
@@ -1438,18 +1447,18 @@ const Ct = { key: 0 }, zt = {
|
|
|
1438
1447
|
o.showFooter ? {
|
|
1439
1448
|
name: "footer",
|
|
1440
1449
|
fn: g(() => [
|
|
1441
|
-
m("div",
|
|
1442
|
-
y(
|
|
1450
|
+
m("div", Tt, [
|
|
1451
|
+
y(j, {
|
|
1443
1452
|
label: o.cancelText,
|
|
1444
|
-
class:
|
|
1453
|
+
class: F(i.cancelClass),
|
|
1445
1454
|
outlined: "",
|
|
1446
1455
|
onClick: p,
|
|
1447
1456
|
id: "cancel-button",
|
|
1448
1457
|
type: i.cancelButtonType
|
|
1449
1458
|
}, null, 8, ["label", "class", "type"]),
|
|
1450
|
-
y(
|
|
1459
|
+
y(j, {
|
|
1451
1460
|
label: o.submitText,
|
|
1452
|
-
class:
|
|
1461
|
+
class: F([i.submitClass, "ms-auto"]),
|
|
1453
1462
|
onClick: u,
|
|
1454
1463
|
id: "submit-button",
|
|
1455
1464
|
type: i.submitButtonType
|
|
@@ -1461,7 +1470,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
1461
1470
|
]), 1040, ["pt"]);
|
|
1462
1471
|
};
|
|
1463
1472
|
}
|
|
1464
|
-
}),
|
|
1473
|
+
}), jt = ["id"], It = { key: 0 }, _t = { key: 0 }, Pt = { class: "d-flex justify-content-between align-items-center position-relative" }, Vt = { key: 1 }, Mt = { "data-cy": "readonly-value" }, Dt = /* @__PURE__ */ B({
|
|
1465
1474
|
__name: "ForgeInlineEditor",
|
|
1466
1475
|
props: /* @__PURE__ */ E({
|
|
1467
1476
|
name: { default: "" },
|
|
@@ -1477,8 +1486,8 @@ const Ct = { key: 0 }, zt = {
|
|
|
1477
1486
|
emits: ["update:modelValue"],
|
|
1478
1487
|
setup(e) {
|
|
1479
1488
|
const t = e, a = D(e, "modelValue"), i = I(!1), l = I(), n = () => {
|
|
1480
|
-
var
|
|
1481
|
-
i.value = !i.value, (
|
|
1489
|
+
var j;
|
|
1490
|
+
i.value = !i.value, (j = l.value) == null || j.focus();
|
|
1482
1491
|
}, s = async () => {
|
|
1483
1492
|
if ($.value)
|
|
1484
1493
|
return !1;
|
|
@@ -1501,20 +1510,20 @@ const Ct = { key: 0 }, zt = {
|
|
|
1501
1510
|
o.value = a.value;
|
|
1502
1511
|
});
|
|
1503
1512
|
const $ = z(() => x.value.length > 0);
|
|
1504
|
-
return (
|
|
1513
|
+
return (j, V) => {
|
|
1505
1514
|
const M = ne, O = U;
|
|
1506
|
-
return d(),
|
|
1515
|
+
return d(), b("div", {
|
|
1507
1516
|
id: t.name
|
|
1508
1517
|
}, [
|
|
1509
|
-
|
|
1510
|
-
k(
|
|
1511
|
-
m("span",
|
|
1518
|
+
j.readonly ? (d(), b("div", Vt, [
|
|
1519
|
+
k(j.$slots, "default", {}, () => [
|
|
1520
|
+
m("span", Mt, w(c(o)), 1)
|
|
1512
1521
|
])
|
|
1513
|
-
])) : (d(),
|
|
1514
|
-
i.value ? (d(),
|
|
1515
|
-
H((d(),
|
|
1516
|
-
k(
|
|
1517
|
-
class:
|
|
1522
|
+
])) : (d(), b("div", It, [
|
|
1523
|
+
i.value ? (d(), b("div", _t, [
|
|
1524
|
+
H((d(), b("div", Pt, [
|
|
1525
|
+
k(j.$slots, "editor", {
|
|
1526
|
+
class: F({ "is-invalid": $.value }),
|
|
1518
1527
|
editFinished: s,
|
|
1519
1528
|
cancel: r,
|
|
1520
1529
|
val: c(o)
|
|
@@ -1526,32 +1535,32 @@ const Ct = { key: 0 }, zt = {
|
|
|
1526
1535
|
"data-cy": "input",
|
|
1527
1536
|
ref_key: "input",
|
|
1528
1537
|
ref: l,
|
|
1529
|
-
class:
|
|
1538
|
+
class: F({ "is-invalid": $.value }),
|
|
1530
1539
|
onKeydown: [
|
|
1531
|
-
|
|
1532
|
-
|
|
1540
|
+
X(s, ["enter"]),
|
|
1541
|
+
X(r, ["esc"])
|
|
1533
1542
|
]
|
|
1534
1543
|
}, null, 8, ["modelValue", "class"])
|
|
1535
1544
|
]),
|
|
1536
|
-
y(c(
|
|
1545
|
+
y(c(T), {
|
|
1537
1546
|
icon: "bi:x-circle",
|
|
1538
1547
|
class: "mx-2 cursor-pointer",
|
|
1539
1548
|
onClick: p,
|
|
1540
|
-
onKeydown:
|
|
1549
|
+
onKeydown: X(p, ["enter"]),
|
|
1541
1550
|
"data-cy": "clear-icon"
|
|
1542
1551
|
})
|
|
1543
1552
|
])), [
|
|
1544
1553
|
[c(je), s]
|
|
1545
1554
|
])
|
|
1546
|
-
])) : (d(),
|
|
1555
|
+
])) : (d(), b("div", {
|
|
1547
1556
|
key: 1,
|
|
1548
1557
|
class: "d-flex text-muted",
|
|
1549
1558
|
onClick: n,
|
|
1550
1559
|
onFocus: n
|
|
1551
1560
|
}, [
|
|
1552
|
-
k(
|
|
1561
|
+
k(j.$slots, "default", {}, () => [
|
|
1553
1562
|
m("div", {
|
|
1554
|
-
class:
|
|
1563
|
+
class: F(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
|
|
1555
1564
|
"data-cy": "value"
|
|
1556
1565
|
}, w(c(o) ? c(o) : "Click to edit"), 3)
|
|
1557
1566
|
]),
|
|
@@ -1560,11 +1569,11 @@ const Ct = { key: 0 }, zt = {
|
|
|
1560
1569
|
class: "p-0 m-0"
|
|
1561
1570
|
}, {
|
|
1562
1571
|
default: g(() => [
|
|
1563
|
-
y(c(
|
|
1572
|
+
y(c(T), {
|
|
1564
1573
|
icon: "bi:pencil",
|
|
1565
|
-
class:
|
|
1574
|
+
class: F($.value ? "text-invalid" : "text-muted"),
|
|
1566
1575
|
"data-cy": "edit-icon",
|
|
1567
|
-
onKeydown:
|
|
1576
|
+
onKeydown: X(n, ["enter"])
|
|
1568
1577
|
}, null, 8, ["class"])
|
|
1569
1578
|
]),
|
|
1570
1579
|
_: 1
|
|
@@ -1577,10 +1586,10 @@ const Ct = { key: 0 }, zt = {
|
|
|
1577
1586
|
}, w(c(u)), 513), [
|
|
1578
1587
|
[Y, $.value]
|
|
1579
1588
|
])
|
|
1580
|
-
], 8,
|
|
1589
|
+
], 8, jt);
|
|
1581
1590
|
};
|
|
1582
1591
|
}
|
|
1583
|
-
}),
|
|
1592
|
+
}), Ot = ["href"], Di = /* @__PURE__ */ B({
|
|
1584
1593
|
__name: "ForgeNavbar",
|
|
1585
1594
|
props: {
|
|
1586
1595
|
severity: { default: "light" },
|
|
@@ -1624,7 +1633,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
1624
1633
|
]
|
|
1625
1634
|
})
|
|
1626
1635
|
}));
|
|
1627
|
-
return (i, l) => (d(),
|
|
1636
|
+
return (i, l) => (d(), f(c(Ie), S({ ...t, ...i.$attrs }, {
|
|
1628
1637
|
pt: a.value,
|
|
1629
1638
|
"data-cy": "navbar"
|
|
1630
1639
|
}), ie({
|
|
@@ -1635,15 +1644,15 @@ const Ct = { key: 0 }, zt = {
|
|
|
1635
1644
|
"data-cy": "logo"
|
|
1636
1645
|
}, [
|
|
1637
1646
|
k(i.$slots, "logo", {}, () => [
|
|
1638
|
-
l[0] || (l[0] =
|
|
1647
|
+
l[0] || (l[0] = _(" Logo "))
|
|
1639
1648
|
])
|
|
1640
|
-
], 8,
|
|
1649
|
+
], 8, Ot)
|
|
1641
1650
|
]),
|
|
1642
1651
|
buttonicon: g(() => [
|
|
1643
1652
|
k(i.$slots, "buttonIcon", {}, () => [
|
|
1644
|
-
y(c(
|
|
1653
|
+
y(c(T), {
|
|
1645
1654
|
icon: "bi:list",
|
|
1646
|
-
class:
|
|
1655
|
+
class: F(t.severity === "light" ? "text-black" : "text-white"),
|
|
1647
1656
|
height: "24",
|
|
1648
1657
|
"data-cy": "burger-icon"
|
|
1649
1658
|
}, null, 8, ["class"])
|
|
@@ -1654,19 +1663,19 @@ const Ct = { key: 0 }, zt = {
|
|
|
1654
1663
|
q(i.$slots, (n, s) => ({
|
|
1655
1664
|
name: s,
|
|
1656
1665
|
fn: g((r) => [
|
|
1657
|
-
k(i.$slots, s,
|
|
1666
|
+
k(i.$slots, s, K(Z(r)))
|
|
1658
1667
|
])
|
|
1659
1668
|
}))
|
|
1660
1669
|
]), 1040, ["pt"]));
|
|
1661
1670
|
}
|
|
1662
|
-
}),
|
|
1671
|
+
}), Nt = { class: "border alternating-item-list" }, Ut = {
|
|
1663
1672
|
key: 0,
|
|
1664
1673
|
class: "p-2 border-top border-bottom",
|
|
1665
1674
|
"data-cy": "title"
|
|
1666
|
-
},
|
|
1675
|
+
}, At = { class: "d-inline-block" }, qt = {
|
|
1667
1676
|
key: 1,
|
|
1668
1677
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1669
|
-
},
|
|
1678
|
+
}, Et = /* @__PURE__ */ B({
|
|
1670
1679
|
__name: "ForgeMultiSelectPreview",
|
|
1671
1680
|
props: /* @__PURE__ */ E({
|
|
1672
1681
|
title: { default: "Selected Items" },
|
|
@@ -1687,12 +1696,12 @@ const Ct = { key: 0 }, zt = {
|
|
|
1687
1696
|
};
|
|
1688
1697
|
return (l, n) => {
|
|
1689
1698
|
const s = oe, r = U;
|
|
1690
|
-
return d(),
|
|
1691
|
-
class:
|
|
1699
|
+
return d(), b("div", {
|
|
1700
|
+
class: F(l.orientation === "column" ? "row" : ""),
|
|
1692
1701
|
"data-cy": "multiselect-preview"
|
|
1693
1702
|
}, [
|
|
1694
1703
|
m("div", {
|
|
1695
|
-
class:
|
|
1704
|
+
class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1696
1705
|
"data-cy": "multiselect-container"
|
|
1697
1706
|
}, [
|
|
1698
1707
|
y(s, S({
|
|
@@ -1705,37 +1714,37 @@ const Ct = { key: 0 }, zt = {
|
|
|
1705
1714
|
"data-cy": "multiselect"
|
|
1706
1715
|
}), {
|
|
1707
1716
|
default: g(() => [
|
|
1708
|
-
(d(!0),
|
|
1717
|
+
(d(!0), b(N, null, q(l.$slots, (p, u) => k(l.$slots, u, { slot: u })), 256))
|
|
1709
1718
|
]),
|
|
1710
1719
|
_: 3
|
|
1711
1720
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1712
1721
|
k(l.$slots, "after-multi-select")
|
|
1713
1722
|
], 2),
|
|
1714
1723
|
m("div", {
|
|
1715
|
-
class:
|
|
1724
|
+
class: F(l.orientation === "row" ? "col-12" : "col"),
|
|
1716
1725
|
"data-cy": "options-preview"
|
|
1717
1726
|
}, [
|
|
1718
1727
|
m("div", {
|
|
1719
1728
|
style: ke({ height: l.height }),
|
|
1720
1729
|
class: "overflow-auto"
|
|
1721
1730
|
}, [
|
|
1722
|
-
m("div",
|
|
1723
|
-
l.title ? (d(),
|
|
1724
|
-
(d(!0),
|
|
1731
|
+
m("div", Nt, [
|
|
1732
|
+
l.title ? (d(), b("div", Ut, w(l.title), 1)) : C("", !0),
|
|
1733
|
+
(d(!0), b(N, null, q(a.value, (p) => (d(), b("div", {
|
|
1725
1734
|
key: p.id,
|
|
1726
1735
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1727
1736
|
}, [
|
|
1728
1737
|
k(l.$slots, "list-item", { item: p }, () => [
|
|
1729
|
-
m("span",
|
|
1738
|
+
m("span", At, w(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1730
1739
|
]),
|
|
1731
|
-
l.canRemoveItemFromPreview ? (d(),
|
|
1740
|
+
l.canRemoveItemFromPreview ? (d(), f(r, {
|
|
1732
1741
|
key: 0,
|
|
1733
1742
|
link: "",
|
|
1734
1743
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1735
1744
|
onClick: (u) => i(p.id)
|
|
1736
1745
|
}, {
|
|
1737
1746
|
default: g(() => [
|
|
1738
|
-
y(c(
|
|
1747
|
+
y(c(T), {
|
|
1739
1748
|
icon: "bi:x",
|
|
1740
1749
|
class: "close-icon",
|
|
1741
1750
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -1744,34 +1753,34 @@ const Ct = { key: 0 }, zt = {
|
|
|
1744
1753
|
_: 2
|
|
1745
1754
|
}, 1032, ["onClick"])) : C("", !0)
|
|
1746
1755
|
]))), 128)),
|
|
1747
|
-
a.value == null || a.value.length == 0 ? (d(),
|
|
1756
|
+
a.value == null || a.value.length == 0 ? (d(), b("div", qt, w(t.optionsPreviewEmptyText), 1)) : C("", !0)
|
|
1748
1757
|
])
|
|
1749
1758
|
], 4)
|
|
1750
1759
|
], 2)
|
|
1751
1760
|
], 2);
|
|
1752
1761
|
};
|
|
1753
1762
|
}
|
|
1754
|
-
}),
|
|
1763
|
+
}), Lt = { class: "d-flex justify-content-between pb-2" }, Rt = {
|
|
1755
1764
|
"data-cy": "title",
|
|
1756
1765
|
class: "my-auto"
|
|
1757
|
-
},
|
|
1766
|
+
}, Ht = {
|
|
1758
1767
|
"data-cy": "slot",
|
|
1759
1768
|
class: "d-flex align-items-center"
|
|
1760
|
-
},
|
|
1769
|
+
}, Oi = /* @__PURE__ */ B({
|
|
1761
1770
|
__name: "ForgePageHeader",
|
|
1762
1771
|
props: {
|
|
1763
1772
|
title: {}
|
|
1764
1773
|
},
|
|
1765
1774
|
setup(e) {
|
|
1766
1775
|
const t = e;
|
|
1767
|
-
return (a, i) => (d(),
|
|
1768
|
-
m("h3",
|
|
1769
|
-
m("div",
|
|
1776
|
+
return (a, i) => (d(), b("div", Lt, [
|
|
1777
|
+
m("h3", Rt, w(t.title), 1),
|
|
1778
|
+
m("div", Ht, [
|
|
1770
1779
|
k(a.$slots, "default")
|
|
1771
1780
|
])
|
|
1772
1781
|
]));
|
|
1773
1782
|
}
|
|
1774
|
-
}),
|
|
1783
|
+
}), Wt = { class: "d-flex" }, Yt = { "data-cy": "before-slot" }, Gt = { class: "position-relative w-100" }, Jt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ B({
|
|
1775
1784
|
__name: "ForgeDatepicker",
|
|
1776
1785
|
props: /* @__PURE__ */ E({
|
|
1777
1786
|
severity: { default: "primary" },
|
|
@@ -1943,14 +1952,14 @@ const Ct = { key: 0 }, zt = {
|
|
|
1943
1952
|
})
|
|
1944
1953
|
}));
|
|
1945
1954
|
return (o, $) => {
|
|
1946
|
-
const
|
|
1947
|
-
return d(),
|
|
1948
|
-
m("div",
|
|
1949
|
-
m("span",
|
|
1955
|
+
const j = _e;
|
|
1956
|
+
return d(), b(N, null, [
|
|
1957
|
+
m("div", Wt, [
|
|
1958
|
+
m("span", Yt, [
|
|
1950
1959
|
k(o.$slots, "before")
|
|
1951
1960
|
]),
|
|
1952
|
-
m("div",
|
|
1953
|
-
y(
|
|
1961
|
+
m("div", Gt, [
|
|
1962
|
+
y(j, S({ ...t, ...o.$attrs }, {
|
|
1954
1963
|
pt: x.value,
|
|
1955
1964
|
modelValue: a.value,
|
|
1956
1965
|
"onUpdate:modelValue": [
|
|
@@ -1960,23 +1969,23 @@ const Ct = { key: 0 }, zt = {
|
|
|
1960
1969
|
onBlur: $[1] || ($[1] = () => c(s)),
|
|
1961
1970
|
"input-class": { "datepicker-invalid": u.value }
|
|
1962
1971
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
1963
|
-
H(y(c(
|
|
1972
|
+
H(y(c(T), {
|
|
1964
1973
|
"data-cy": "icon",
|
|
1965
1974
|
icon: "bi:calendar4",
|
|
1966
|
-
class:
|
|
1975
|
+
class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${u.value ? "text-danger-dark" : "text-muted"}`])
|
|
1967
1976
|
}, null, 8, ["class"]), [
|
|
1968
1977
|
[Y, t.showIcon]
|
|
1969
1978
|
]),
|
|
1970
|
-
H(y(c(
|
|
1979
|
+
H(y(c(T), {
|
|
1971
1980
|
"data-cy": "icon",
|
|
1972
1981
|
icon: "bi:x",
|
|
1973
1982
|
onClick: p,
|
|
1974
|
-
class:
|
|
1983
|
+
class: F(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
1975
1984
|
}, null, 8, ["class"]), [
|
|
1976
1985
|
[Y, t.modelValue]
|
|
1977
1986
|
])
|
|
1978
1987
|
]),
|
|
1979
|
-
m("span",
|
|
1988
|
+
m("span", Jt, [
|
|
1980
1989
|
k(o.$slots, "after")
|
|
1981
1990
|
])
|
|
1982
1991
|
]),
|
|
@@ -1989,7 +1998,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
1989
1998
|
], 64);
|
|
1990
1999
|
};
|
|
1991
2000
|
}
|
|
1992
|
-
}),
|
|
2001
|
+
}), Ni = /* @__PURE__ */ B({
|
|
1993
2002
|
__name: "ForgeRemainingCharacters",
|
|
1994
2003
|
props: {
|
|
1995
2004
|
maxCount: { default: 300 },
|
|
@@ -1997,11 +2006,11 @@ const Ct = { key: 0 }, zt = {
|
|
|
1997
2006
|
},
|
|
1998
2007
|
setup(e) {
|
|
1999
2008
|
const t = e, a = z(() => t.maxCount - t.currentCount);
|
|
2000
|
-
return (i, l) => (d(),
|
|
2001
|
-
class:
|
|
2009
|
+
return (i, l) => (d(), b("div", {
|
|
2010
|
+
class: F(a.value < 0 ? "text-danger" : "")
|
|
2002
2011
|
}, "Remaining characters: " + w(a.value), 3));
|
|
2003
2012
|
}
|
|
2004
|
-
}),
|
|
2013
|
+
}), Kt = { class: "d-flex justify-content-between" }, Ui = /* @__PURE__ */ B({
|
|
2005
2014
|
__name: "ForgeForm",
|
|
2006
2015
|
props: {
|
|
2007
2016
|
onSubmit: {},
|
|
@@ -2028,21 +2037,21 @@ const Ct = { key: 0 }, zt = {
|
|
|
2028
2037
|
}
|
|
2029
2038
|
return (n, s) => {
|
|
2030
2039
|
const r = U;
|
|
2031
|
-
return d(),
|
|
2040
|
+
return d(), b("form", S(n.$attrs, {
|
|
2032
2041
|
novalidate: "",
|
|
2033
2042
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2034
2043
|
onSubmit: G(l, ["prevent"])
|
|
2035
2044
|
}), [
|
|
2036
|
-
n.hideTitle ? C("", !0) : (d(),
|
|
2045
|
+
n.hideTitle ? C("", !0) : (d(), b(N, { key: 0 }, [
|
|
2037
2046
|
k(n.$slots, "title", {}, () => [
|
|
2038
2047
|
m("h3", {
|
|
2039
|
-
class:
|
|
2048
|
+
class: F(n.titleClass),
|
|
2040
2049
|
"data-cy": "form-title"
|
|
2041
2050
|
}, w(n.title), 3)
|
|
2042
2051
|
]),
|
|
2043
2052
|
s[1] || (s[1] = m("hr", null, null, -1))
|
|
2044
2053
|
], 64)),
|
|
2045
|
-
i.value.hasError ? (d(),
|
|
2054
|
+
i.value.hasError ? (d(), f(se, {
|
|
2046
2055
|
key: 1,
|
|
2047
2056
|
severity: "danger",
|
|
2048
2057
|
"data-cy": "error"
|
|
@@ -2051,15 +2060,15 @@ const Ct = { key: 0 }, zt = {
|
|
|
2051
2060
|
k(n.$slots, "error", {
|
|
2052
2061
|
error: i.value.message
|
|
2053
2062
|
}, () => [
|
|
2054
|
-
|
|
2063
|
+
_(w(i.value.message), 1)
|
|
2055
2064
|
])
|
|
2056
2065
|
]),
|
|
2057
2066
|
_: 3
|
|
2058
2067
|
})) : C("", !0),
|
|
2059
2068
|
k(n.$slots, "default"),
|
|
2060
|
-
m("div",
|
|
2069
|
+
m("div", Kt, [
|
|
2061
2070
|
k(n.$slots, "cancel", {}, () => [
|
|
2062
|
-
n.hideCancel ? C("", !0) : (d(),
|
|
2071
|
+
n.hideCancel ? C("", !0) : (d(), f(r, {
|
|
2063
2072
|
key: 0,
|
|
2064
2073
|
"data-cy": "cancel-btn",
|
|
2065
2074
|
type: "reset",
|
|
@@ -2068,7 +2077,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2068
2077
|
onClick: s[0] || (s[0] = (p) => n.$emit("cancel"))
|
|
2069
2078
|
}, {
|
|
2070
2079
|
default: g(() => [
|
|
2071
|
-
|
|
2080
|
+
_(w(n.cancelText), 1)
|
|
2072
2081
|
]),
|
|
2073
2082
|
_: 1
|
|
2074
2083
|
}))
|
|
@@ -2081,23 +2090,23 @@ const Ct = { key: 0 }, zt = {
|
|
|
2081
2090
|
class: "ms-auto"
|
|
2082
2091
|
}, {
|
|
2083
2092
|
default: g(() => [
|
|
2084
|
-
|
|
2093
|
+
_(w(n.submitText), 1)
|
|
2085
2094
|
]),
|
|
2086
2095
|
_: 1
|
|
2087
2096
|
})
|
|
2088
2097
|
])
|
|
2089
2098
|
]),
|
|
2090
|
-
a.value ? (d(),
|
|
2099
|
+
a.value ? (d(), f(ge, {
|
|
2091
2100
|
key: 2,
|
|
2092
2101
|
"data-cy": "loading-spinner"
|
|
2093
2102
|
})) : C("", !0)
|
|
2094
2103
|
], 16);
|
|
2095
2104
|
};
|
|
2096
2105
|
}
|
|
2097
|
-
}),
|
|
2106
|
+
}), Zt = {
|
|
2098
2107
|
key: 1,
|
|
2099
2108
|
class: "d-flex flex-column w-100"
|
|
2100
|
-
},
|
|
2109
|
+
}, Xt = ["for"], Ai = /* @__PURE__ */ B({
|
|
2101
2110
|
__name: "ForgeFormField",
|
|
2102
2111
|
props: /* @__PURE__ */ E({
|
|
2103
2112
|
name: {},
|
|
@@ -2121,8 +2130,8 @@ const Ct = { key: 0 }, zt = {
|
|
|
2121
2130
|
return ce(() => n.value, (x) => {
|
|
2122
2131
|
t.value = x;
|
|
2123
2132
|
}, { immediate: !0 }), (x, o) => {
|
|
2124
|
-
const $ = Ve,
|
|
2125
|
-
return a.type === "checkbox" ? (d(),
|
|
2133
|
+
const $ = Ve, j = Pe, V = ne, M = te, O = oe, v = be;
|
|
2134
|
+
return a.type === "checkbox" ? (d(), f(fe, S({
|
|
2126
2135
|
key: 0,
|
|
2127
2136
|
id: a.name,
|
|
2128
2137
|
label: a.fieldLabel
|
|
@@ -2130,16 +2139,16 @@ const Ct = { key: 0 }, zt = {
|
|
|
2130
2139
|
name: a.name,
|
|
2131
2140
|
modelValue: t.value,
|
|
2132
2141
|
"onUpdate:modelValue": o[0] || (o[0] = (h) => t.value = h)
|
|
2133
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(),
|
|
2142
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div", Zt, [
|
|
2134
2143
|
m("div", {
|
|
2135
2144
|
"data-cy": "input-wrapper",
|
|
2136
|
-
class:
|
|
2145
|
+
class: F(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2137
2146
|
}, [
|
|
2138
2147
|
m("label", {
|
|
2139
2148
|
for: a.name,
|
|
2140
|
-
class:
|
|
2141
|
-
}, w(a.fieldLabel), 11,
|
|
2142
|
-
a.type === "number" ? (d(),
|
|
2149
|
+
class: F(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2150
|
+
}, w(a.fieldLabel), 11, Xt),
|
|
2151
|
+
a.type === "number" ? (d(), f(c(ue), S({
|
|
2143
2152
|
key: 0,
|
|
2144
2153
|
id: a.name
|
|
2145
2154
|
}, x.$attrs, {
|
|
@@ -2149,7 +2158,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2149
2158
|
modelValue: t.value,
|
|
2150
2159
|
"onUpdate:modelValue": o[1] || (o[1] = (h) => t.value = h),
|
|
2151
2160
|
onInput: i
|
|
2152
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(),
|
|
2161
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), f($, S({
|
|
2153
2162
|
key: 1,
|
|
2154
2163
|
id: a.name
|
|
2155
2164
|
}, x.$attrs, {
|
|
@@ -2159,7 +2168,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2159
2168
|
"onUpdate:modelValue": o[2] || (o[2] = (h) => t.value = h),
|
|
2160
2169
|
onInput: i,
|
|
2161
2170
|
onBlur: c(p)
|
|
2162
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(),
|
|
2171
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), f(j, S({
|
|
2163
2172
|
key: 2,
|
|
2164
2173
|
id: a.name
|
|
2165
2174
|
}, x.$attrs, {
|
|
@@ -2170,7 +2179,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2170
2179
|
"onUpdate:modelValue": o[3] || (o[3] = (h) => t.value = h),
|
|
2171
2180
|
onComplete: i,
|
|
2172
2181
|
onBlur: c(p)
|
|
2173
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(),
|
|
2182
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), f(V, S({
|
|
2174
2183
|
key: 3,
|
|
2175
2184
|
id: a.name
|
|
2176
2185
|
}, x.$attrs, {
|
|
@@ -2180,19 +2189,19 @@ const Ct = { key: 0 }, zt = {
|
|
|
2180
2189
|
"onUpdate:modelValue": o[4] || (o[4] = (h) => t.value = h),
|
|
2181
2190
|
onInput: i,
|
|
2182
2191
|
onBlur: c(p)
|
|
2183
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(),
|
|
2192
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), f(M, S({ key: 4 }, { ...a, ...x.$attrs }, {
|
|
2184
2193
|
modelValue: t.value,
|
|
2185
2194
|
"onUpdate:modelValue": o[5] || (o[5] = (h) => t.value = h),
|
|
2186
2195
|
class: { "is-invalid": u.value }
|
|
2187
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(),
|
|
2196
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), f(O, S({ key: 5 }, { ...a, ...x.$attrs }, {
|
|
2188
2197
|
modelValue: t.value,
|
|
2189
2198
|
"onUpdate:modelValue": o[6] || (o[6] = (h) => t.value = h),
|
|
2190
2199
|
class: { "is-invalid": u.value }
|
|
2191
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(),
|
|
2200
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), f(Et, S({ key: 6 }, { ...a, ...x.$attrs }, {
|
|
2192
2201
|
modelValue: t.value,
|
|
2193
2202
|
"onUpdate:modelValue": o[7] || (o[7] = (h) => t.value = h),
|
|
2194
2203
|
class: { "is-invalid": u.value }
|
|
2195
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(),
|
|
2204
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), f(v, S({ key: 7 }, { ...a, ...x.$attrs }, {
|
|
2196
2205
|
modelValue: t.value,
|
|
2197
2206
|
"onUpdate:modelValue": o[8] || (o[8] = (h) => t.value = h),
|
|
2198
2207
|
class: { "is-invalid": u.value }
|
|
@@ -2207,7 +2216,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2207
2216
|
]));
|
|
2208
2217
|
};
|
|
2209
2218
|
}
|
|
2210
|
-
}),
|
|
2219
|
+
}), qi = /* @__PURE__ */ B({
|
|
2211
2220
|
__name: "ForgeChip",
|
|
2212
2221
|
props: {
|
|
2213
2222
|
chipSeverity: { default: "primary" },
|
|
@@ -2242,15 +2251,15 @@ const Ct = { key: 0 }, zt = {
|
|
|
2242
2251
|
}));
|
|
2243
2252
|
return (i, l) => {
|
|
2244
2253
|
const n = Me;
|
|
2245
|
-
return d(),
|
|
2254
|
+
return d(), f(n, S({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2246
2255
|
default: g(() => [
|
|
2247
|
-
(d(!0),
|
|
2256
|
+
(d(!0), b(N, null, q(i.$slots, (s, r) => k(i.$slots, r, { slot: r })), 256))
|
|
2248
2257
|
]),
|
|
2249
2258
|
_: 3
|
|
2250
2259
|
}, 16, ["pt"]);
|
|
2251
2260
|
};
|
|
2252
2261
|
}
|
|
2253
|
-
}),
|
|
2262
|
+
}), Qt = /* @__PURE__ */ B({
|
|
2254
2263
|
__name: "ForgeProgressBar",
|
|
2255
2264
|
props: {
|
|
2256
2265
|
severity: { default: "primary" },
|
|
@@ -2295,7 +2304,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2295
2304
|
}));
|
|
2296
2305
|
return (s, r) => {
|
|
2297
2306
|
const p = De;
|
|
2298
|
-
return d(),
|
|
2307
|
+
return d(), f(p, S({ ...s.$attrs, ...t }, { pt: n.value }), {
|
|
2299
2308
|
default: g(() => [
|
|
2300
2309
|
k(s.$slots, "default")
|
|
2301
2310
|
]),
|
|
@@ -2304,7 +2313,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2304
2313
|
};
|
|
2305
2314
|
}
|
|
2306
2315
|
});
|
|
2307
|
-
var
|
|
2316
|
+
var ea = /* @__PURE__ */ B({
|
|
2308
2317
|
name: "VueDrawingCanvas",
|
|
2309
2318
|
props: {
|
|
2310
2319
|
strokeType: {
|
|
@@ -2620,7 +2629,7 @@ var Qt = /* @__PURE__ */ F({
|
|
|
2620
2629
|
var p = t.split(s).filter((M) => M.length > 0);
|
|
2621
2630
|
for (let M = 0; M < p.length; M++) {
|
|
2622
2631
|
for (var u = p[M].split(r).filter((O) => O.length > 0), x = "", o = 0; o < u.length; o++) {
|
|
2623
|
-
var $ = x + u[o] + " ",
|
|
2632
|
+
var $ = x + u[o] + " ", j = e.measureText($), V = j.width;
|
|
2624
2633
|
V > l && o > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), x = u[o] + " ", i += n) : x = $;
|
|
2625
2634
|
}
|
|
2626
2635
|
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), i += u.length > 0 ? n : 0;
|
|
@@ -2694,7 +2703,7 @@ var Qt = /* @__PURE__ */ F({
|
|
|
2694
2703
|
});
|
|
2695
2704
|
}
|
|
2696
2705
|
});
|
|
2697
|
-
const
|
|
2706
|
+
const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1 gap-1" }, Ei = /* @__PURE__ */ B({
|
|
2698
2707
|
__name: "ForgeScratchpad",
|
|
2699
2708
|
props: {
|
|
2700
2709
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2706,7 +2715,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2706
2715
|
},
|
|
2707
2716
|
emits: ["save"],
|
|
2708
2717
|
setup(e, { emit: t }) {
|
|
2709
|
-
const a = e, i = t, l =
|
|
2718
|
+
const a = e, i = t, l = Fe("drawingCanvas"), n = I(), s = () => {
|
|
2710
2719
|
l == null || l.value.reset();
|
|
2711
2720
|
}, r = () => {
|
|
2712
2721
|
l == null || l.value.redo();
|
|
@@ -2717,12 +2726,12 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2717
2726
|
};
|
|
2718
2727
|
return (x, o) => {
|
|
2719
2728
|
const $ = U;
|
|
2720
|
-
return d(),
|
|
2721
|
-
y(c(
|
|
2729
|
+
return d(), b("div", ta, [
|
|
2730
|
+
y(c(ea), S({
|
|
2722
2731
|
ref_key: "drawingCanvas",
|
|
2723
2732
|
ref: l,
|
|
2724
2733
|
image: n.value,
|
|
2725
|
-
"onUpdate:image": o[0] || (o[0] = (
|
|
2734
|
+
"onUpdate:image": o[0] || (o[0] = (j) => n.value = j),
|
|
2726
2735
|
"data-cy": "drawing-canvas",
|
|
2727
2736
|
class: "border canvas"
|
|
2728
2737
|
}, { ...x.$attrs }, {
|
|
@@ -2730,48 +2739,48 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2730
2739
|
width: x.width,
|
|
2731
2740
|
style: `height: ${x.height}px; width: ${x.width}px`
|
|
2732
2741
|
}), null, 16, ["image", "height", "width", "style"]),
|
|
2733
|
-
m("div",
|
|
2734
|
-
a.showUndo ? (d(),
|
|
2742
|
+
m("div", aa, [
|
|
2743
|
+
a.showUndo ? (d(), f($, {
|
|
2735
2744
|
key: 0,
|
|
2736
2745
|
onClick: p,
|
|
2737
2746
|
outlined: "",
|
|
2738
2747
|
"data-cy": "undo-button"
|
|
2739
2748
|
}, {
|
|
2740
2749
|
default: g(() => o[1] || (o[1] = [
|
|
2741
|
-
|
|
2750
|
+
_("Undo")
|
|
2742
2751
|
])),
|
|
2743
2752
|
_: 1
|
|
2744
2753
|
})) : C("", !0),
|
|
2745
|
-
a.showRedo ? (d(),
|
|
2754
|
+
a.showRedo ? (d(), f($, {
|
|
2746
2755
|
key: 1,
|
|
2747
2756
|
onClick: r,
|
|
2748
2757
|
outlined: "",
|
|
2749
2758
|
"data-cy": "redo-button"
|
|
2750
2759
|
}, {
|
|
2751
2760
|
default: g(() => o[2] || (o[2] = [
|
|
2752
|
-
|
|
2761
|
+
_("Redo")
|
|
2753
2762
|
])),
|
|
2754
2763
|
_: 1
|
|
2755
2764
|
})) : C("", !0),
|
|
2756
|
-
a.showClear ? (d(),
|
|
2765
|
+
a.showClear ? (d(), f($, {
|
|
2757
2766
|
key: 2,
|
|
2758
2767
|
onClick: s,
|
|
2759
2768
|
outlined: "",
|
|
2760
2769
|
"data-cy": "clear-button"
|
|
2761
2770
|
}, {
|
|
2762
2771
|
default: g(() => o[3] || (o[3] = [
|
|
2763
|
-
|
|
2772
|
+
_("Clear")
|
|
2764
2773
|
])),
|
|
2765
2774
|
_: 1
|
|
2766
2775
|
})) : C("", !0),
|
|
2767
|
-
a.showSave ? (d(),
|
|
2776
|
+
a.showSave ? (d(), f($, {
|
|
2768
2777
|
key: 3,
|
|
2769
2778
|
onClick: u,
|
|
2770
2779
|
class: "ms-auto",
|
|
2771
2780
|
"data-cy": "save-button"
|
|
2772
2781
|
}, {
|
|
2773
2782
|
default: g(() => o[4] || (o[4] = [
|
|
2774
|
-
|
|
2783
|
+
_("Save")
|
|
2775
2784
|
])),
|
|
2776
2785
|
_: 1
|
|
2777
2786
|
})) : C("", !0)
|
|
@@ -2779,7 +2788,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2779
2788
|
]);
|
|
2780
2789
|
};
|
|
2781
2790
|
}
|
|
2782
|
-
}),
|
|
2791
|
+
}), ia = { class: "value text-white w-100 text-center" }, Li = /* @__PURE__ */ B({
|
|
2783
2792
|
__name: "ForgeStatWidget",
|
|
2784
2793
|
props: {
|
|
2785
2794
|
size: { default: "md" },
|
|
@@ -2787,15 +2796,15 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2787
2796
|
},
|
|
2788
2797
|
setup(e) {
|
|
2789
2798
|
const t = e;
|
|
2790
|
-
return (a, i) => (d(),
|
|
2799
|
+
return (a, i) => (d(), b("div", S(a.$attrs, {
|
|
2791
2800
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2792
2801
|
}), [
|
|
2793
|
-
m("span",
|
|
2802
|
+
m("span", ia, [
|
|
2794
2803
|
k(a.$slots, "default")
|
|
2795
2804
|
])
|
|
2796
2805
|
], 16));
|
|
2797
2806
|
}
|
|
2798
|
-
}),
|
|
2807
|
+
}), la = { key: 0 }, Ri = /* @__PURE__ */ B({
|
|
2799
2808
|
__name: "ForgeStepper",
|
|
2800
2809
|
props: {
|
|
2801
2810
|
currentStep: { default: 1 },
|
|
@@ -2842,18 +2851,18 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2842
2851
|
]
|
|
2843
2852
|
})
|
|
2844
2853
|
}));
|
|
2845
|
-
return (i, l) => (d(),
|
|
2854
|
+
return (i, l) => (d(), f(c(Ne), { value: i.currentStep }, {
|
|
2846
2855
|
default: g(() => [
|
|
2847
2856
|
y(c(Ue), null, {
|
|
2848
2857
|
default: g(() => [
|
|
2849
|
-
(d(!0),
|
|
2858
|
+
(d(!0), b(N, null, q(i.steps, (n) => (d(), f(c(Oe), S({
|
|
2850
2859
|
key: n.value,
|
|
2851
2860
|
value: n.value,
|
|
2852
2861
|
disabled: n.disabled,
|
|
2853
2862
|
ref_for: !0
|
|
2854
2863
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
2855
2864
|
default: g(() => [
|
|
2856
|
-
i.showStepLabel ? (d(),
|
|
2865
|
+
i.showStepLabel ? (d(), b("div", la, w(n.label), 1)) : C("", !0)
|
|
2857
2866
|
]),
|
|
2858
2867
|
_: 2
|
|
2859
2868
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -2862,7 +2871,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2862
2871
|
}),
|
|
2863
2872
|
y(c(qe), null, {
|
|
2864
2873
|
default: g(() => [
|
|
2865
|
-
(d(!0),
|
|
2874
|
+
(d(!0), b(N, null, q(i.steps, (n) => (d(), f(c(Ae), {
|
|
2866
2875
|
key: n.value,
|
|
2867
2876
|
value: n.value
|
|
2868
2877
|
}, {
|
|
@@ -2878,7 +2887,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2878
2887
|
_: 3
|
|
2879
2888
|
}, 8, ["value"]));
|
|
2880
2889
|
}
|
|
2881
|
-
}),
|
|
2890
|
+
}), na = { class: "p-4 text-wrap w-100" }, oa = { class: "p-4 text-wrap w-100" }, Hi = /* @__PURE__ */ B({
|
|
2882
2891
|
__name: "ForgeTile",
|
|
2883
2892
|
props: {
|
|
2884
2893
|
severity: { default: "primary" },
|
|
@@ -2890,45 +2899,45 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2890
2899
|
const t = e, a = z(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = z(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
2891
2900
|
return (l, n) => {
|
|
2892
2901
|
const s = U;
|
|
2893
|
-
return t.clickable ? (d(),
|
|
2902
|
+
return t.clickable ? (d(), f(s, {
|
|
2894
2903
|
key: 0,
|
|
2895
|
-
class:
|
|
2904
|
+
class: F(["d-flex w-100 p-0 text-body", a.value]),
|
|
2896
2905
|
severity: t.severity,
|
|
2897
2906
|
unstyled: "",
|
|
2898
2907
|
"data-cy": "button-tile"
|
|
2899
2908
|
}, {
|
|
2900
2909
|
default: g(() => [
|
|
2901
|
-
m("div",
|
|
2910
|
+
m("div", na, [
|
|
2902
2911
|
k(l.$slots, "default", {}, () => [
|
|
2903
|
-
n[0] || (n[0] =
|
|
2912
|
+
n[0] || (n[0] = _("Tile Content"))
|
|
2904
2913
|
])
|
|
2905
2914
|
])
|
|
2906
2915
|
]),
|
|
2907
2916
|
_: 3
|
|
2908
|
-
}, 8, ["severity", "class"])) : (d(),
|
|
2917
|
+
}, 8, ["severity", "class"])) : (d(), b("div", {
|
|
2909
2918
|
key: 1,
|
|
2910
|
-
class:
|
|
2919
|
+
class: F(["d-flex w-100", i.value]),
|
|
2911
2920
|
"data-cy": "tile"
|
|
2912
2921
|
}, [
|
|
2913
|
-
m("div",
|
|
2922
|
+
m("div", oa, [
|
|
2914
2923
|
k(l.$slots, "default", {}, () => [
|
|
2915
|
-
n[1] || (n[1] =
|
|
2924
|
+
n[1] || (n[1] = _("Tile Content"))
|
|
2916
2925
|
])
|
|
2917
2926
|
])
|
|
2918
2927
|
], 2));
|
|
2919
2928
|
};
|
|
2920
2929
|
}
|
|
2921
2930
|
});
|
|
2922
|
-
function
|
|
2931
|
+
function Q(e, t) {
|
|
2923
2932
|
return e > 1 ? `${t}s` : t;
|
|
2924
2933
|
}
|
|
2925
|
-
const
|
|
2934
|
+
const sa = {
|
|
2926
2935
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2927
2936
|
"data-cy": "pagination-header"
|
|
2928
|
-
},
|
|
2937
|
+
}, ra = { class: "ms-2" }, da = { key: 0 }, pa = {
|
|
2929
2938
|
class: "w-auto",
|
|
2930
2939
|
"data-cy": "total"
|
|
2931
|
-
},
|
|
2940
|
+
}, ca = /* @__PURE__ */ B({
|
|
2932
2941
|
__name: "ForgePaginationHeader",
|
|
2933
2942
|
props: {
|
|
2934
2943
|
total: {},
|
|
@@ -2941,11 +2950,11 @@ const oa = {
|
|
|
2941
2950
|
a("update:perPage", s.value);
|
|
2942
2951
|
}, n = z(() => {
|
|
2943
2952
|
const s = Math.ceil(i.total / i.perPage);
|
|
2944
|
-
return `${s} ${
|
|
2953
|
+
return `${s} ${Q(s, "page")}`;
|
|
2945
2954
|
});
|
|
2946
|
-
return (s, r) => (d(),
|
|
2947
|
-
r[2] || (r[2] =
|
|
2948
|
-
m("div",
|
|
2955
|
+
return (s, r) => (d(), b("div", sa, [
|
|
2956
|
+
r[2] || (r[2] = _(" Number of results per page ")),
|
|
2957
|
+
m("div", ra, [
|
|
2949
2958
|
y(c(te), {
|
|
2950
2959
|
options: i.pageSizes,
|
|
2951
2960
|
"model-value": i.perPage,
|
|
@@ -2953,16 +2962,16 @@ const oa = {
|
|
|
2953
2962
|
onChange: r[0] || (r[0] = (p) => l(p))
|
|
2954
2963
|
}, null, 8, ["options", "model-value"])
|
|
2955
2964
|
]),
|
|
2956
|
-
i.total ? (d(),
|
|
2965
|
+
i.total ? (d(), b("div", da, [
|
|
2957
2966
|
r[1] || (r[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
2958
|
-
m("span",
|
|
2967
|
+
m("span", pa, w(i.total) + " " + w(c(Q)(i.total, "result")) + " across " + w(n.value), 1)
|
|
2959
2968
|
])) : C("", !0)
|
|
2960
2969
|
]));
|
|
2961
2970
|
}
|
|
2962
|
-
}),
|
|
2971
|
+
}), ua = { class: "position-relative" }, ma = { "data-cy": "above-table-slot" }, va = { class: "d-flex w-100" }, fa = {
|
|
2963
2972
|
class: "mx-auto",
|
|
2964
2973
|
"data-cy": "empty-message"
|
|
2965
|
-
},
|
|
2974
|
+
}, ga = { class: "d-flex" }, ba = { class: "d-flex align-items-end mb-2" }, xa = { key: 0 }, ya = { class: "ms-auto" }, Wi = /* @__PURE__ */ B({
|
|
2966
2975
|
__name: "ForgeTable",
|
|
2967
2976
|
props: {
|
|
2968
2977
|
value: {},
|
|
@@ -3057,7 +3066,7 @@ const oa = {
|
|
|
3057
3066
|
total: i.totalRecords ?? i.value.length
|
|
3058
3067
|
}), p = z(() => i.totalRecords ?? i.value.length), u = z(() => {
|
|
3059
3068
|
const v = Math.ceil(p.value / s.value);
|
|
3060
|
-
return `${v} ${
|
|
3069
|
+
return `${v} ${Q(v, "page")}`;
|
|
3061
3070
|
}), x = z(() => ({
|
|
3062
3071
|
thead: () => ({
|
|
3063
3072
|
class: [
|
|
@@ -3089,7 +3098,7 @@ const oa = {
|
|
|
3089
3098
|
V(i.filters);
|
|
3090
3099
|
}, $ = () => {
|
|
3091
3100
|
l.value.exportCSV();
|
|
3092
|
-
},
|
|
3101
|
+
}, j = (v) => {
|
|
3093
3102
|
var h;
|
|
3094
3103
|
r.value.sortDirection = v.sortOrder === 1 ? "Asc" : v.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((h = v.sortField) == null ? void 0 : h.toString()) ?? "", a("update:tableContext", r.value), a("sort", v);
|
|
3095
3104
|
}, V = (v) => {
|
|
@@ -3101,8 +3110,8 @@ const oa = {
|
|
|
3101
3110
|
};
|
|
3102
3111
|
return ce(() => i.filters, (v) => {
|
|
3103
3112
|
r.value.filters = v, a("update:tableContext", r.value);
|
|
3104
|
-
}, { deep: !0 }), le(() => a("update:tableContext", r.value)), (v, h) => (d(),
|
|
3105
|
-
m("span",
|
|
3113
|
+
}, { deep: !0 }), le(() => a("update:tableContext", r.value)), (v, h) => (d(), b("div", ua, [
|
|
3114
|
+
m("span", ma, [
|
|
3106
3115
|
k(v.$slots, "above-table")
|
|
3107
3116
|
]),
|
|
3108
3117
|
y(c(Ee), S({
|
|
@@ -3116,64 +3125,64 @@ const oa = {
|
|
|
3116
3125
|
ref: l,
|
|
3117
3126
|
"data-cy": "table",
|
|
3118
3127
|
"onUpdate:filters": V,
|
|
3119
|
-
onSort:
|
|
3128
|
+
onSort: j,
|
|
3120
3129
|
onPage: M,
|
|
3121
3130
|
showHeaders: ""
|
|
3122
3131
|
}), ie({
|
|
3123
3132
|
empty: g(() => [
|
|
3124
|
-
m("div",
|
|
3125
|
-
m("h5",
|
|
3133
|
+
m("div", va, [
|
|
3134
|
+
m("h5", fa, w(v.emptyMessage ?? "No items Found."), 1)
|
|
3126
3135
|
])
|
|
3127
3136
|
]),
|
|
3128
3137
|
header: g(() => [
|
|
3129
3138
|
m("div", {
|
|
3130
|
-
class:
|
|
3139
|
+
class: F(i.loading ? "opacity-50" : "")
|
|
3131
3140
|
}, [
|
|
3132
|
-
m("div",
|
|
3133
|
-
m("div",
|
|
3134
|
-
v.paginator && !v.legacyPaginationFooter ? (d(),
|
|
3135
|
-
y(
|
|
3141
|
+
m("div", ga, [
|
|
3142
|
+
m("div", ba, [
|
|
3143
|
+
v.paginator && !v.legacyPaginationFooter ? (d(), b("span", xa, [
|
|
3144
|
+
y(ca, {
|
|
3136
3145
|
total: p.value,
|
|
3137
3146
|
"page-sizes": n.value,
|
|
3138
3147
|
"per-page": s.value,
|
|
3139
3148
|
"onUpdate:perPage": [
|
|
3140
|
-
h[0] || (h[0] = (
|
|
3149
|
+
h[0] || (h[0] = (P) => s.value = P),
|
|
3141
3150
|
O
|
|
3142
3151
|
]
|
|
3143
3152
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3144
3153
|
])) : C("", !0)
|
|
3145
3154
|
]),
|
|
3146
|
-
m("div",
|
|
3147
|
-
v.showClearButton ? (d(),
|
|
3155
|
+
m("div", ya, [
|
|
3156
|
+
v.showClearButton ? (d(), f(c(U), {
|
|
3148
3157
|
key: 0,
|
|
3149
3158
|
outlined: "",
|
|
3150
|
-
class:
|
|
3159
|
+
class: F(v.showExporterButton ? "me-2" : ""),
|
|
3151
3160
|
onClick: o,
|
|
3152
3161
|
"data-cy": "clear-all"
|
|
3153
3162
|
}, {
|
|
3154
3163
|
default: g(() => [
|
|
3155
|
-
y(c(
|
|
3164
|
+
y(c(T), {
|
|
3156
3165
|
icon: "bi:funnel-fill",
|
|
3157
3166
|
width: "24",
|
|
3158
3167
|
height: "24"
|
|
3159
3168
|
}),
|
|
3160
|
-
h[2] || (h[2] =
|
|
3169
|
+
h[2] || (h[2] = _(" Clear "))
|
|
3161
3170
|
]),
|
|
3162
3171
|
_: 1
|
|
3163
3172
|
}, 8, ["class"])) : C("", !0),
|
|
3164
|
-
v.showExporterButton ? (d(),
|
|
3173
|
+
v.showExporterButton ? (d(), f(c(U), {
|
|
3165
3174
|
key: 1,
|
|
3166
3175
|
outlined: "",
|
|
3167
3176
|
onClick: $,
|
|
3168
3177
|
"data-cy": "exporter"
|
|
3169
3178
|
}, {
|
|
3170
3179
|
default: g(() => [
|
|
3171
|
-
y(c(
|
|
3180
|
+
y(c(T), {
|
|
3172
3181
|
icon: "typcn:export",
|
|
3173
3182
|
width: "24",
|
|
3174
3183
|
height: "24"
|
|
3175
3184
|
}),
|
|
3176
|
-
h[3] || (h[3] =
|
|
3185
|
+
h[3] || (h[3] = _(" Export "))
|
|
3177
3186
|
]),
|
|
3178
3187
|
_: 1
|
|
3179
3188
|
})) : C("", !0),
|
|
@@ -3187,24 +3196,24 @@ const oa = {
|
|
|
3187
3196
|
]),
|
|
3188
3197
|
_: 2
|
|
3189
3198
|
}, [
|
|
3190
|
-
q(v.$slots, (
|
|
3199
|
+
q(v.$slots, (P, L) => ({
|
|
3191
3200
|
name: L,
|
|
3192
3201
|
fn: g((ae) => [
|
|
3193
|
-
k(v.$slots, L,
|
|
3202
|
+
k(v.$slots, L, K(Z(ae || {})))
|
|
3194
3203
|
])
|
|
3195
3204
|
})),
|
|
3196
3205
|
v.legacyPaginationFooter ? {
|
|
3197
3206
|
name: "paginatorstart",
|
|
3198
3207
|
fn: g(() => [
|
|
3199
3208
|
m("span", {
|
|
3200
|
-
class:
|
|
3209
|
+
class: F(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3201
3210
|
"data-cy": "legacy-page-size"
|
|
3202
3211
|
}, [
|
|
3203
3212
|
h[4] || (h[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3204
3213
|
y(c(te), {
|
|
3205
3214
|
options: n.value,
|
|
3206
3215
|
modelValue: s.value,
|
|
3207
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
3216
|
+
"onUpdate:modelValue": h[1] || (h[1] = (P) => s.value = P),
|
|
3208
3217
|
class: "ms-2",
|
|
3209
3218
|
onClick: O
|
|
3210
3219
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -3217,15 +3226,15 @@ const oa = {
|
|
|
3217
3226
|
fn: g(() => [
|
|
3218
3227
|
m("span", {
|
|
3219
3228
|
"data-cy": "legacy-total",
|
|
3220
|
-
class:
|
|
3221
|
-
}, w(p.value) + " " + w(c(
|
|
3229
|
+
class: F(i.loading ? "opacity-50" : "")
|
|
3230
|
+
}, w(p.value) + " " + w(c(Q)(p.value, "result")) + " across " + w(u.value), 3)
|
|
3222
3231
|
]),
|
|
3223
3232
|
key: "1"
|
|
3224
3233
|
} : void 0
|
|
3225
3234
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3226
3235
|
]));
|
|
3227
3236
|
}
|
|
3228
|
-
}),
|
|
3237
|
+
}), ha = { class: "d-flex position-relative" }, wa = { class: "d-flex w-100" }, Yi = /* @__PURE__ */ B({
|
|
3229
3238
|
__name: "ForgeFilterHeader",
|
|
3230
3239
|
props: /* @__PURE__ */ E({
|
|
3231
3240
|
dataType: {},
|
|
@@ -3256,19 +3265,19 @@ const oa = {
|
|
|
3256
3265
|
};
|
|
3257
3266
|
return (l, n) => {
|
|
3258
3267
|
const s = ue, r = U;
|
|
3259
|
-
return d(),
|
|
3260
|
-
l.dataType === "numeric" ? (d(),
|
|
3268
|
+
return d(), b("div", ha, [
|
|
3269
|
+
l.dataType === "numeric" ? (d(), f(s, S({
|
|
3261
3270
|
key: 0,
|
|
3262
3271
|
modelValue: t.value,
|
|
3263
3272
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p)
|
|
3264
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(),
|
|
3273
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), f(be, S({
|
|
3265
3274
|
key: 1,
|
|
3266
3275
|
modelValue: t.value,
|
|
3267
3276
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3268
3277
|
}, l.$attrs, {
|
|
3269
3278
|
"show-icon": !1,
|
|
3270
3279
|
"show-on-focus": !0
|
|
3271
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(),
|
|
3280
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), f(c(te), S({
|
|
3272
3281
|
key: 2,
|
|
3273
3282
|
modelValue: t.value,
|
|
3274
3283
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
@@ -3278,18 +3287,18 @@ const oa = {
|
|
|
3278
3287
|
"option-label": l.optionLabel
|
|
3279
3288
|
}), {
|
|
3280
3289
|
value: g(({ value: p, placeholder: u }) => [
|
|
3281
|
-
m("div",
|
|
3290
|
+
m("div", wa, [
|
|
3282
3291
|
m("span", {
|
|
3283
|
-
class:
|
|
3292
|
+
class: F({ "filter-placeholder": p === null })
|
|
3284
3293
|
}, w(a(p, u)), 3),
|
|
3285
|
-
l.showClearButton && t.value !== null ? (d(),
|
|
3294
|
+
l.showClearButton && t.value !== null ? (d(), f(r, {
|
|
3286
3295
|
key: 0,
|
|
3287
3296
|
onClick: G(i, ["prevent"]),
|
|
3288
3297
|
size: "small",
|
|
3289
3298
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3290
3299
|
}, {
|
|
3291
3300
|
default: g(() => [
|
|
3292
|
-
y(c(
|
|
3301
|
+
y(c(T), {
|
|
3293
3302
|
icon: "bi:x",
|
|
3294
3303
|
width: "1rem",
|
|
3295
3304
|
height: "1rem",
|
|
@@ -3301,7 +3310,7 @@ const oa = {
|
|
|
3301
3310
|
])
|
|
3302
3311
|
]),
|
|
3303
3312
|
_: 1
|
|
3304
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(),
|
|
3313
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), f(c(oe), S({
|
|
3305
3314
|
key: 3,
|
|
3306
3315
|
modelValue: t.value,
|
|
3307
3316
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
@@ -3311,19 +3320,19 @@ const oa = {
|
|
|
3311
3320
|
"option-label": l.optionLabel,
|
|
3312
3321
|
"option-value": l.optionValue,
|
|
3313
3322
|
filter: ""
|
|
3314
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(),
|
|
3323
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), f(c(ne), S({
|
|
3315
3324
|
key: 4,
|
|
3316
3325
|
modelValue: t.value,
|
|
3317
3326
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p)
|
|
3318
3327
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3319
|
-
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(),
|
|
3328
|
+
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), f(r, {
|
|
3320
3329
|
key: 5,
|
|
3321
3330
|
onClick: G(i, ["prevent"]),
|
|
3322
3331
|
size: "small",
|
|
3323
3332
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3324
3333
|
}, {
|
|
3325
3334
|
default: g(() => [
|
|
3326
|
-
y(c(
|
|
3335
|
+
y(c(T), {
|
|
3327
3336
|
icon: "bi:x",
|
|
3328
3337
|
width: "1rem",
|
|
3329
3338
|
height: "1rem",
|
|
@@ -4445,7 +4454,7 @@ class xe {
|
|
|
4445
4454
|
}
|
|
4446
4455
|
}
|
|
4447
4456
|
W = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
|
|
4448
|
-
const
|
|
4457
|
+
const ka = new xe(de, re)._freeze();
|
|
4449
4458
|
function ye(e, t, a, i) {
|
|
4450
4459
|
const l = t.flatMap((n) => n.file);
|
|
4451
4460
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
@@ -4458,7 +4467,7 @@ function ye(e, t, a, i) {
|
|
|
4458
4467
|
})) : t[s].status = "Duplicate";
|
|
4459
4468
|
}), t;
|
|
4460
4469
|
}
|
|
4461
|
-
async function
|
|
4470
|
+
async function $a(e, t) {
|
|
4462
4471
|
if (e === "Uploaded" && t !== null)
|
|
4463
4472
|
try {
|
|
4464
4473
|
await new me(t).delete();
|
|
@@ -4481,20 +4490,20 @@ function pe(e, t = !0, a = 1) {
|
|
|
4481
4490
|
while (Math.round(Math.abs(e) * s) / s >= i && n < l.length - 1);
|
|
4482
4491
|
return e.toFixed(a) + " " + l[n];
|
|
4483
4492
|
}
|
|
4484
|
-
function
|
|
4493
|
+
function Fa(e) {
|
|
4485
4494
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
4486
4495
|
}
|
|
4487
4496
|
function Ba(e) {
|
|
4488
4497
|
return URL.createObjectURL(e);
|
|
4489
4498
|
}
|
|
4490
|
-
function
|
|
4499
|
+
function Sa() {
|
|
4491
4500
|
const e = new xe(de, re);
|
|
4492
4501
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
4493
4502
|
}
|
|
4494
|
-
const
|
|
4503
|
+
const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disabled", "multiple"], Ta = {
|
|
4495
4504
|
class: "text-break accepted-file-types-container",
|
|
4496
4505
|
id: "accepted-file-types-overlay"
|
|
4497
|
-
},
|
|
4506
|
+
}, ja = /* @__PURE__ */ B({
|
|
4498
4507
|
__name: "UploadButton",
|
|
4499
4508
|
props: /* @__PURE__ */ E({
|
|
4500
4509
|
acceptedFileTypes: {},
|
|
@@ -4511,7 +4520,7 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4511
4520
|
};
|
|
4512
4521
|
return (s, r) => {
|
|
4513
4522
|
const p = U;
|
|
4514
|
-
return d(),
|
|
4523
|
+
return d(), b("div", Ca, [
|
|
4515
4524
|
k(s.$slots, "message"),
|
|
4516
4525
|
m("div", null, [
|
|
4517
4526
|
m("input", {
|
|
@@ -4522,24 +4531,24 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4522
4531
|
disabled: l.value,
|
|
4523
4532
|
multiple: s.maxFileInput > 1,
|
|
4524
4533
|
onInput: r[0] || (r[0] = (u) => n([...u.target.files]))
|
|
4525
|
-
}, null, 40,
|
|
4534
|
+
}, null, 40, za),
|
|
4526
4535
|
m("label", {
|
|
4527
|
-
class:
|
|
4536
|
+
class: F([{ disabled: l.value }, "btn btn-primary"]),
|
|
4528
4537
|
id: "file-input-button",
|
|
4529
4538
|
for: "file-input"
|
|
4530
4539
|
}, [
|
|
4531
4540
|
k(s.$slots, "button-content", {}, () => [
|
|
4532
|
-
y(c(
|
|
4541
|
+
y(c(T), {
|
|
4533
4542
|
icon: "bi:upload",
|
|
4534
4543
|
class: "me-2",
|
|
4535
4544
|
height: "20px",
|
|
4536
4545
|
width: "20px"
|
|
4537
4546
|
}),
|
|
4538
|
-
r[1] || (r[1] =
|
|
4547
|
+
r[1] || (r[1] = _(" Browse your computer "))
|
|
4539
4548
|
])
|
|
4540
4549
|
], 2)
|
|
4541
4550
|
]),
|
|
4542
|
-
s.showDragDropArea ? (d(),
|
|
4551
|
+
s.showDragDropArea ? (d(), f(p, {
|
|
4543
4552
|
link: "",
|
|
4544
4553
|
class: "ms-auto",
|
|
4545
4554
|
key: s.acceptedFileTypes.length,
|
|
@@ -4547,7 +4556,7 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4547
4556
|
onClick: i
|
|
4548
4557
|
}, {
|
|
4549
4558
|
default: g(() => r[2] || (r[2] = [
|
|
4550
|
-
|
|
4559
|
+
_("Accepted File Types")
|
|
4551
4560
|
])),
|
|
4552
4561
|
_: 1
|
|
4553
4562
|
})) : C("", !0),
|
|
@@ -4556,21 +4565,21 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4556
4565
|
ref: a
|
|
4557
4566
|
}, {
|
|
4558
4567
|
default: g(() => [
|
|
4559
|
-
m("div",
|
|
4568
|
+
m("div", Ta, w(s.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
4560
4569
|
]),
|
|
4561
4570
|
_: 1
|
|
4562
4571
|
}, 512)
|
|
4563
4572
|
]);
|
|
4564
4573
|
};
|
|
4565
4574
|
}
|
|
4566
|
-
}),
|
|
4575
|
+
}), Ia = {
|
|
4567
4576
|
key: 0,
|
|
4568
4577
|
class: "py-4 px-3",
|
|
4569
4578
|
id: "placeholder-message"
|
|
4570
|
-
},
|
|
4579
|
+
}, _a = {
|
|
4571
4580
|
key: 1,
|
|
4572
4581
|
class: "d-flex flex-column"
|
|
4573
|
-
}, Pa = /* @__PURE__ */
|
|
4582
|
+
}, Pa = /* @__PURE__ */ B({
|
|
4574
4583
|
__name: "DragDropArea",
|
|
4575
4584
|
props: /* @__PURE__ */ E({
|
|
4576
4585
|
maxFileInput: {},
|
|
@@ -4585,27 +4594,27 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4585
4594
|
const t = D(e, "modelValue"), a = I(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
4586
4595
|
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = ye([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
4587
4596
|
};
|
|
4588
|
-
return (n, s) => (d(),
|
|
4597
|
+
return (n, s) => (d(), b("div", {
|
|
4589
4598
|
id: "drag-drop-area",
|
|
4590
|
-
class:
|
|
4599
|
+
class: F(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
4591
4600
|
onDragleave: s[0] || (s[0] = G((r) => a.value = !1, ["prevent"])),
|
|
4592
4601
|
onDragover: s[1] || (s[1] = G((r) => a.value = !0, ["prevent"])),
|
|
4593
4602
|
onDrop: G(l, ["prevent"])
|
|
4594
4603
|
}, [
|
|
4595
|
-
t.value.length === 0 ? (d(),
|
|
4596
|
-
y(c(
|
|
4604
|
+
t.value.length === 0 ? (d(), b("div", Ia, [
|
|
4605
|
+
y(c(T), {
|
|
4597
4606
|
icon: "bi:upload",
|
|
4598
4607
|
class: "me-2",
|
|
4599
4608
|
height: "20px",
|
|
4600
4609
|
width: "20px"
|
|
4601
4610
|
}),
|
|
4602
|
-
s[2] || (s[2] =
|
|
4603
|
-
])) : (d(),
|
|
4611
|
+
s[2] || (s[2] = _(" Drag and drop files here "))
|
|
4612
|
+
])) : (d(), b("div", _a, [
|
|
4604
4613
|
k(n.$slots, "default")
|
|
4605
4614
|
]))
|
|
4606
4615
|
], 34));
|
|
4607
4616
|
}
|
|
4608
|
-
}),
|
|
4617
|
+
}), Va = { class: "d-flex align-items-center me-2" }, Ma = /* @__PURE__ */ B({
|
|
4609
4618
|
__name: "UploadStatus",
|
|
4610
4619
|
props: {
|
|
4611
4620
|
fileSize: {},
|
|
@@ -4630,41 +4639,41 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4630
4639
|
return "Upload Failed: Connection error, please try again.";
|
|
4631
4640
|
}
|
|
4632
4641
|
});
|
|
4633
|
-
return (i, l) => (d(),
|
|
4634
|
-
i.uploadStatus === "Uploading" ? (d(),
|
|
4642
|
+
return (i, l) => (d(), b("div", Va, [
|
|
4643
|
+
i.uploadStatus === "Uploading" ? (d(), f(Qt, {
|
|
4635
4644
|
key: 0,
|
|
4636
4645
|
pixelWidth: 200,
|
|
4637
4646
|
animate: "",
|
|
4638
4647
|
striped: ""
|
|
4639
4648
|
}, {
|
|
4640
4649
|
default: g(() => [
|
|
4641
|
-
|
|
4650
|
+
_(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
|
|
4642
4651
|
]),
|
|
4643
4652
|
_: 1
|
|
4644
4653
|
})) : C("", !0),
|
|
4645
|
-
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(),
|
|
4654
|
+
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(), f(se, {
|
|
4646
4655
|
key: 1,
|
|
4647
4656
|
id: "upload-status-alert",
|
|
4648
4657
|
severity: t.value,
|
|
4649
4658
|
class: "mb-0 w-75 ms-auto"
|
|
4650
4659
|
}, {
|
|
4651
4660
|
default: g(() => [
|
|
4652
|
-
|
|
4661
|
+
_(w(a.value), 1)
|
|
4653
4662
|
]),
|
|
4654
4663
|
_: 1
|
|
4655
4664
|
}, 8, ["severity"])) : C("", !0)
|
|
4656
4665
|
]));
|
|
4657
4666
|
}
|
|
4658
|
-
}),
|
|
4667
|
+
}), Da = ["data-cy"], Oa = { class: "ms-3 d-flex flex-column" }, Na = {
|
|
4659
4668
|
key: 1,
|
|
4660
4669
|
id: "file-name"
|
|
4661
|
-
},
|
|
4670
|
+
}, Ua = {
|
|
4662
4671
|
class: "text-black-50",
|
|
4663
4672
|
id: "file-type"
|
|
4664
|
-
},
|
|
4673
|
+
}, Aa = {
|
|
4665
4674
|
class: "text-black-50",
|
|
4666
4675
|
id: "file-size"
|
|
4667
|
-
},
|
|
4676
|
+
}, qa = { class: "ms-auto my-auto d-flex" }, Ea = /* @__PURE__ */ B({
|
|
4668
4677
|
__name: "FileInfo",
|
|
4669
4678
|
props: /* @__PURE__ */ E({
|
|
4670
4679
|
editableFileName: { type: Boolean },
|
|
@@ -4683,11 +4692,11 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4683
4692
|
}),
|
|
4684
4693
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
4685
4694
|
setup(e, { emit: t }) {
|
|
4686
|
-
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, s = I(a.value.name), r = I(""), p = I(0), u = I(), x = z(() => e.acceptedFileTypes.some(({ fileType: v }) => v === a.value.type)), o = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type :
|
|
4695
|
+
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, s = I(a.value.name), r = I(""), p = I(0), u = I(), x = z(() => e.acceptedFileTypes.some(({ fileType: v }) => v === a.value.type)), o = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : Sa().getType(a.value.name)), j = () => {
|
|
4687
4696
|
s.value != null && (V(), a.value = new File([a.value], s.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
4688
4697
|
}, V = () => {
|
|
4689
|
-
let v = s.value.split("."), h =
|
|
4690
|
-
v.length === 1 ?
|
|
4698
|
+
let v = s.value.split("."), h = ka.getExtension($.value), P = s.value.split(".").pop();
|
|
4699
|
+
v.length === 1 ? P && P.length > 0 && (s.value = [s.value, h].join(".")) : v.length > 1 && P !== h && (s.value = s.value.replace(P, h));
|
|
4691
4700
|
}, M = async () => {
|
|
4692
4701
|
if (!x.value || !o.value) {
|
|
4693
4702
|
l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
|
|
@@ -4701,7 +4710,7 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4701
4710
|
}
|
|
4702
4711
|
try {
|
|
4703
4712
|
l.value = "Uploading";
|
|
4704
|
-
const
|
|
4713
|
+
const P = new me(v), L = {
|
|
4705
4714
|
abortSignal: u.value.signal,
|
|
4706
4715
|
onProgress: (ae) => p.value = ae.loadedBytes,
|
|
4707
4716
|
blobHTTPHeaders: {
|
|
@@ -4710,27 +4719,27 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4710
4719
|
},
|
|
4711
4720
|
tags: { temp: "true" }
|
|
4712
4721
|
};
|
|
4713
|
-
await
|
|
4714
|
-
} catch (
|
|
4715
|
-
if (
|
|
4722
|
+
await P.uploadData(a.value, L), r.value = v, l.value = "Uploaded", i.value = h;
|
|
4723
|
+
} catch (P) {
|
|
4724
|
+
if (P.name === "AbortError") {
|
|
4716
4725
|
l.value = "Aborted";
|
|
4717
4726
|
return;
|
|
4718
4727
|
}
|
|
4719
4728
|
l.value = "Failed";
|
|
4720
4729
|
}
|
|
4721
4730
|
}, O = async () => {
|
|
4722
|
-
await
|
|
4731
|
+
await $a(l.value, r.value), n("deleted", a.value);
|
|
4723
4732
|
};
|
|
4724
4733
|
return le(() => {
|
|
4725
4734
|
e.autoUploadToBlob && M();
|
|
4726
4735
|
}), (v, h) => {
|
|
4727
|
-
const
|
|
4728
|
-
return d(),
|
|
4736
|
+
const P = U;
|
|
4737
|
+
return d(), b("div", {
|
|
4729
4738
|
class: "py-4 px-3 d-flex",
|
|
4730
4739
|
"data-cy": `file-info-${a.value.name}`
|
|
4731
4740
|
}, [
|
|
4732
4741
|
m("div", null, [
|
|
4733
|
-
c(
|
|
4742
|
+
c(Fa)(a.value.type) ? (d(), f(c(Le), {
|
|
4734
4743
|
key: 0,
|
|
4735
4744
|
id: "thumbnail-image",
|
|
4736
4745
|
"image-class": "image-file-thumbnail border",
|
|
@@ -4738,7 +4747,7 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4738
4747
|
alt: a.value.name,
|
|
4739
4748
|
width: "75px",
|
|
4740
4749
|
preview: ""
|
|
4741
|
-
}, null, 8, ["src", "alt"])) : (d(),
|
|
4750
|
+
}, null, 8, ["src", "alt"])) : (d(), f(c(T), {
|
|
4742
4751
|
key: 1,
|
|
4743
4752
|
id: "file-earmark",
|
|
4744
4753
|
icon: "bi:file-earmark",
|
|
@@ -4746,76 +4755,76 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4746
4755
|
width: "75px"
|
|
4747
4756
|
}))
|
|
4748
4757
|
]),
|
|
4749
|
-
m("div",
|
|
4758
|
+
m("div", Oa, [
|
|
4750
4759
|
m("div", null, [
|
|
4751
|
-
v.editableFileName ? (d(),
|
|
4760
|
+
v.editableFileName ? (d(), f(Dt, {
|
|
4752
4761
|
key: 0,
|
|
4753
4762
|
id: "edit-file-name",
|
|
4754
4763
|
modelValue: s.value,
|
|
4755
4764
|
"onUpdate:modelValue": h[0] || (h[0] = (L) => s.value = L),
|
|
4756
4765
|
rules: v.customFileNameRules,
|
|
4757
4766
|
name: a.value.name,
|
|
4758
|
-
"complete-action":
|
|
4759
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(),
|
|
4767
|
+
"complete-action": j
|
|
4768
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", Na, w(s.value), 1))
|
|
4760
4769
|
]),
|
|
4761
|
-
m("span",
|
|
4762
|
-
m("span",
|
|
4770
|
+
m("span", Ua, "File type: " + w(a.value.type.split("/").pop()), 1),
|
|
4771
|
+
m("span", Aa, "File size: " + w(c(pe)(a.value.size)), 1)
|
|
4763
4772
|
]),
|
|
4764
|
-
m("div",
|
|
4765
|
-
(d(),
|
|
4773
|
+
m("div", qa, [
|
|
4774
|
+
(d(), f(Ma, {
|
|
4766
4775
|
key: l.value,
|
|
4767
4776
|
"file-size": a.value.size,
|
|
4768
4777
|
"upload-status": l.value,
|
|
4769
4778
|
"bytes-uploaded": p.value,
|
|
4770
4779
|
"max-file-size": v.maxFileSize
|
|
4771
4780
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
4772
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(),
|
|
4781
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), f(P, {
|
|
4773
4782
|
key: 0,
|
|
4774
4783
|
link: "",
|
|
4775
4784
|
onClick: M
|
|
4776
4785
|
}, {
|
|
4777
4786
|
default: g(() => [
|
|
4778
|
-
y(c(
|
|
4787
|
+
y(c(T), {
|
|
4779
4788
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
4780
4789
|
}, null, 8, ["icon"])
|
|
4781
4790
|
]),
|
|
4782
4791
|
_: 1
|
|
4783
4792
|
})) : C("", !0),
|
|
4784
|
-
l.value === "Uploading" ? (d(),
|
|
4793
|
+
l.value === "Uploading" ? (d(), f(P, {
|
|
4785
4794
|
key: 1,
|
|
4786
4795
|
link: "",
|
|
4787
4796
|
onClick: h[1] || (h[1] = (L) => u.value.value.abort())
|
|
4788
4797
|
}, {
|
|
4789
4798
|
default: g(() => [
|
|
4790
|
-
y(c(
|
|
4799
|
+
y(c(T), { icon: "bi:x-circle-fill" })
|
|
4791
4800
|
]),
|
|
4792
4801
|
_: 1
|
|
4793
|
-
})) : (d(),
|
|
4802
|
+
})) : (d(), f(P, {
|
|
4794
4803
|
key: 2,
|
|
4795
4804
|
link: "",
|
|
4796
4805
|
onClick: O,
|
|
4797
4806
|
id: "delete-button"
|
|
4798
4807
|
}, {
|
|
4799
4808
|
default: g(() => [
|
|
4800
|
-
y(c(
|
|
4809
|
+
y(c(T), { icon: "bi:trash" })
|
|
4801
4810
|
]),
|
|
4802
4811
|
_: 1
|
|
4803
4812
|
}))
|
|
4804
4813
|
])
|
|
4805
|
-
], 8,
|
|
4814
|
+
], 8, Da);
|
|
4806
4815
|
};
|
|
4807
4816
|
}
|
|
4808
|
-
}),
|
|
4817
|
+
}), La = { class: "d-flex justify-content-end mt-1" }, Ra = { id: "max-file-size" }, Ha = /* @__PURE__ */ B({
|
|
4809
4818
|
__name: "MaxFileSize",
|
|
4810
4819
|
props: {
|
|
4811
4820
|
maxFileSize: {}
|
|
4812
4821
|
},
|
|
4813
4822
|
setup(e) {
|
|
4814
|
-
return (t, a) => (d(),
|
|
4815
|
-
m("div",
|
|
4823
|
+
return (t, a) => (d(), b("div", La, [
|
|
4824
|
+
m("div", Ra, "Max file size: " + w(c(pe)(t.maxFileSize)), 1)
|
|
4816
4825
|
]));
|
|
4817
4826
|
}
|
|
4818
|
-
}),
|
|
4827
|
+
}), Wa = { "data-cy": "file-uploader" }, Ya = { key: 0 }, Gi = /* @__PURE__ */ B({
|
|
4819
4828
|
__name: "ForgeFileUploader",
|
|
4820
4829
|
props: /* @__PURE__ */ E({
|
|
4821
4830
|
acceptedFileTypes: {},
|
|
@@ -4835,12 +4844,12 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4835
4844
|
const t = D(e, "modelValue"), a = e, i = (l) => {
|
|
4836
4845
|
t.value = t.value.filter((n) => n.file != l);
|
|
4837
4846
|
};
|
|
4838
|
-
return (l, n) => (d(),
|
|
4839
|
-
y(
|
|
4847
|
+
return (l, n) => (d(), b("div", Wa, [
|
|
4848
|
+
y(ja, S(a, {
|
|
4840
4849
|
modelValue: t.value,
|
|
4841
4850
|
"onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s)
|
|
4842
4851
|
}), null, 16, ["modelValue"]),
|
|
4843
|
-
l.showDragDropArea ? (d(),
|
|
4852
|
+
l.showDragDropArea ? (d(), b("div", Ya, [
|
|
4844
4853
|
y(Pa, {
|
|
4845
4854
|
"max-file-input": a.maxFileInput,
|
|
4846
4855
|
"max-file-size": a.maxFileSize,
|
|
@@ -4849,8 +4858,8 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4849
4858
|
"onUpdate:modelValue": n[1] || (n[1] = (s) => t.value = s)
|
|
4850
4859
|
}, {
|
|
4851
4860
|
default: g(() => [
|
|
4852
|
-
(d(!0),
|
|
4853
|
-
(d(),
|
|
4861
|
+
(d(!0), b(N, null, q(t.value, ({ file: s }, r) => (d(), b("span", null, [
|
|
4862
|
+
(d(), f(Ea, S({
|
|
4854
4863
|
key: s.name,
|
|
4855
4864
|
class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
4856
4865
|
file: t.value[r].file,
|
|
@@ -4865,13 +4874,13 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4865
4874
|
]),
|
|
4866
4875
|
_: 1
|
|
4867
4876
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
4868
|
-
y(
|
|
4877
|
+
y(Ha, {
|
|
4869
4878
|
"max-file-size": a.maxFileSize
|
|
4870
4879
|
}, null, 8, ["max-file-size"])
|
|
4871
4880
|
])) : C("", !0)
|
|
4872
4881
|
]));
|
|
4873
4882
|
}
|
|
4874
|
-
}),
|
|
4883
|
+
}), Ga = { class: "d-flex" }, Ja = { class: "me-3" }, Ka = { class: "ms-2" }, Za = { class: "d-flex flex-column w-100" }, Ji = /* @__PURE__ */ B({
|
|
4875
4884
|
__name: "ForgeColumnCustomiser",
|
|
4876
4885
|
props: {
|
|
4877
4886
|
modelValue: { required: !0 },
|
|
@@ -4882,19 +4891,19 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4882
4891
|
const t = D(e, "modelValue"), a = I(), i = I(!1), l = (n) => {
|
|
4883
4892
|
a.value.toggle(n);
|
|
4884
4893
|
};
|
|
4885
|
-
return (n, s) => (d(),
|
|
4894
|
+
return (n, s) => (d(), b(N, null, [
|
|
4886
4895
|
y(c(U), {
|
|
4887
4896
|
onClick: l,
|
|
4888
4897
|
class: "ms-2"
|
|
4889
4898
|
}, {
|
|
4890
4899
|
default: g(() => [
|
|
4891
|
-
m("div",
|
|
4892
|
-
m("div", Ga, [
|
|
4893
|
-
y(c(j), { icon: "bi:layout-three-columns" })
|
|
4894
|
-
]),
|
|
4895
|
-
P(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
|
|
4900
|
+
m("div", Ga, [
|
|
4896
4901
|
m("div", Ja, [
|
|
4897
|
-
y(c(
|
|
4902
|
+
y(c(T), { icon: "bi:layout-three-columns" })
|
|
4903
|
+
]),
|
|
4904
|
+
_(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
|
|
4905
|
+
m("div", Ka, [
|
|
4906
|
+
y(c(T), {
|
|
4898
4907
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
4899
4908
|
}, null, 8, ["icon"])
|
|
4900
4909
|
])
|
|
@@ -4910,9 +4919,9 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4910
4919
|
onShow: s[1] || (s[1] = () => i.value = !0)
|
|
4911
4920
|
}, {
|
|
4912
4921
|
default: g(() => [
|
|
4913
|
-
m("div",
|
|
4914
|
-
(d(!0),
|
|
4915
|
-
class:
|
|
4922
|
+
m("div", Za, [
|
|
4923
|
+
(d(!0), b(N, null, q(t.value, (r, p) => (d(), b("div", {
|
|
4924
|
+
class: F(["d-flex cursor-pointer", {
|
|
4916
4925
|
"border-top": p !== 0,
|
|
4917
4926
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
4918
4927
|
"pt-1": t.value.length - 1 === p,
|
|
@@ -4934,35 +4943,61 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4934
4943
|
}, 512)
|
|
4935
4944
|
], 64));
|
|
4936
4945
|
}
|
|
4946
|
+
}), Ki = /* @__PURE__ */ B({
|
|
4947
|
+
__name: "ForgePanel",
|
|
4948
|
+
setup(e) {
|
|
4949
|
+
return (t, a) => {
|
|
4950
|
+
const i = Re;
|
|
4951
|
+
return d(), f(i, K(Z({ ...t.$attrs })), {
|
|
4952
|
+
toggleicon: g(({ collapsed: l }) => [
|
|
4953
|
+
l ? (d(), f(c(T), {
|
|
4954
|
+
key: 0,
|
|
4955
|
+
"data-cy": "message-icon",
|
|
4956
|
+
icon: "bi:chevron-down"
|
|
4957
|
+
})) : C("", !0),
|
|
4958
|
+
l ? C("", !0) : (d(), f(c(T), {
|
|
4959
|
+
key: 1,
|
|
4960
|
+
"data-cy": "message-icon",
|
|
4961
|
+
icon: "bi:chevron-up"
|
|
4962
|
+
}))
|
|
4963
|
+
]),
|
|
4964
|
+
default: g(() => [
|
|
4965
|
+
k(t.$slots, "default")
|
|
4966
|
+
]),
|
|
4967
|
+
_: 3
|
|
4968
|
+
}, 16);
|
|
4969
|
+
};
|
|
4970
|
+
}
|
|
4937
4971
|
});
|
|
4938
4972
|
export {
|
|
4939
|
-
|
|
4940
|
-
|
|
4973
|
+
Ti as Bootstrap_PT,
|
|
4974
|
+
ji as ForgeActionButton,
|
|
4941
4975
|
se as ForgeAlert,
|
|
4942
|
-
|
|
4976
|
+
Ii as ForgeAutoComplete,
|
|
4943
4977
|
fe as ForgeCheckbox,
|
|
4944
|
-
|
|
4945
|
-
|
|
4978
|
+
qi as ForgeChip,
|
|
4979
|
+
Ji as ForgeColumnCustomiser,
|
|
4946
4980
|
be as ForgeDatepicker,
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4981
|
+
Gi as ForgeFileUploader,
|
|
4982
|
+
Yi as ForgeFilterHeader,
|
|
4983
|
+
Ui as ForgeForm,
|
|
4984
|
+
Ai as ForgeFormField,
|
|
4985
|
+
Dt as ForgeInlineEditor,
|
|
4986
|
+
_i as ForgeLink,
|
|
4953
4987
|
ge as ForgeLoader,
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
Ri as
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4988
|
+
Mi as ForgeModal,
|
|
4989
|
+
Et as ForgeMultiSelectPreview,
|
|
4990
|
+
Di as ForgeNavbar,
|
|
4991
|
+
Oi as ForgePageHeader,
|
|
4992
|
+
Ki as ForgePanel,
|
|
4993
|
+
Qt as ForgeProgressBar,
|
|
4994
|
+
Ni as ForgeRemainingCharacters,
|
|
4995
|
+
Ei as ForgeScratchpad,
|
|
4996
|
+
Li as ForgeStatWidget,
|
|
4997
|
+
Ri as ForgeStepper,
|
|
4998
|
+
Wi as ForgeTable,
|
|
4999
|
+
Hi as ForgeTile,
|
|
5000
|
+
Vi as convertToMultiSelectOption,
|
|
5001
|
+
Pi as enumToMultiSelectList,
|
|
5002
|
+
Ct as parseError
|
|
4968
5003
|
};
|