@3squared/forge-ui-3 2.14.2 → 2.16.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,13 +1,13 @@
|
|
|
1
1
|
import Be from "primevue/message";
|
|
2
|
-
import { defineComponent as S, openBlock as
|
|
3
|
-
import { Icon as
|
|
2
|
+
import { defineComponent as S, openBlock as r, createBlock as y, normalizeProps as W, guardReactiveProps as G, withCtx as f, createElementVNode as m, normalizeClass as F, unref as u, createCommentVNode as C, createVNode as h, renderSlot as k, ref as j, createElementBlock as v, Fragment as A, mergeProps as P, renderList as E, mergeModels as R, useModel as N, computed as z, createTextVNode as M, toDisplayString as B, withDirectives as J, vShow as Z, createSlots as ae, onMounted as ne, isRef as Fe, withKeys as le, normalizeStyle as Se, withModifiers as X, watch as Q, h as Ce, useTemplateRef as ze } from "vue";
|
|
3
|
+
import { Icon as _ } from "@iconify/vue";
|
|
4
4
|
import q from "primevue/button";
|
|
5
5
|
import Te from "primevue/toast";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import Pe from "primevue/autocomplete";
|
|
7
|
+
import _e from "primevue/checkbox";
|
|
8
8
|
import { useField as oe } from "vee-validate";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import je from "primevue/progressspinner";
|
|
10
|
+
import Ie from "primevue/dialog";
|
|
11
11
|
import se from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as Me } from "@vueuse/components";
|
|
13
13
|
import Ve from "primevue/menubar";
|
|
@@ -31,7 +31,8 @@ import be from "primevue/popover";
|
|
|
31
31
|
import Ye from "primevue/image";
|
|
32
32
|
import Je from "primevue/panel";
|
|
33
33
|
import { ToggleButton as Ke } from "primevue";
|
|
34
|
-
|
|
34
|
+
import Ze from "primevue/confirmpopup";
|
|
35
|
+
const Xe = {
|
|
35
36
|
autoComplete: {
|
|
36
37
|
root: ({ props: e }) => ({
|
|
37
38
|
class: [
|
|
@@ -60,7 +61,7 @@ const Ze = {
|
|
|
60
61
|
}),
|
|
61
62
|
emptyMessage: "mx-3 my-2"
|
|
62
63
|
}
|
|
63
|
-
},
|
|
64
|
+
}, Qe = {
|
|
64
65
|
button: {
|
|
65
66
|
root: ({ props: e }) => ({
|
|
66
67
|
class: [
|
|
@@ -170,7 +171,7 @@ const Ze = {
|
|
|
170
171
|
})
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
|
-
},
|
|
174
|
+
}, et = {
|
|
174
175
|
checkbox: {
|
|
175
176
|
root: () => ({
|
|
176
177
|
class: ["form-check"]
|
|
@@ -185,7 +186,7 @@ const Ze = {
|
|
|
185
186
|
]
|
|
186
187
|
})
|
|
187
188
|
}
|
|
188
|
-
},
|
|
189
|
+
}, tt = {
|
|
189
190
|
select: {
|
|
190
191
|
root: ({ props: e }) => ({
|
|
191
192
|
class: [
|
|
@@ -228,14 +229,14 @@ const Ze = {
|
|
|
228
229
|
filterIcon: "d-none",
|
|
229
230
|
label: ({ instance: e }) => ({
|
|
230
231
|
class: [
|
|
231
|
-
"w-100",
|
|
232
|
+
"w-100 ellipsis-overflow",
|
|
232
233
|
{
|
|
233
234
|
"filter-placeholder": e.modelValue === void 0
|
|
234
235
|
}
|
|
235
236
|
]
|
|
236
237
|
})
|
|
237
238
|
}
|
|
238
|
-
},
|
|
239
|
+
}, at = {
|
|
239
240
|
column: {
|
|
240
241
|
pcSortBadge: "ms-2 my-auto cursor-pointer",
|
|
241
242
|
headerCell: (e) => {
|
|
@@ -340,7 +341,7 @@ const Ze = {
|
|
|
340
341
|
]
|
|
341
342
|
})
|
|
342
343
|
}
|
|
343
|
-
},
|
|
344
|
+
}, it = {
|
|
344
345
|
inputtext: {
|
|
345
346
|
root: (e) => {
|
|
346
347
|
var t, a;
|
|
@@ -355,7 +356,7 @@ const Ze = {
|
|
|
355
356
|
};
|
|
356
357
|
}
|
|
357
358
|
}
|
|
358
|
-
},
|
|
359
|
+
}, lt = {
|
|
359
360
|
inputmask: {
|
|
360
361
|
root: () => ({
|
|
361
362
|
class: [
|
|
@@ -363,12 +364,12 @@ const Ze = {
|
|
|
363
364
|
]
|
|
364
365
|
})
|
|
365
366
|
}
|
|
366
|
-
},
|
|
367
|
+
}, nt = {
|
|
367
368
|
toggleSwitch: {
|
|
368
369
|
root: "form-check form-switch",
|
|
369
370
|
input: "form-check-input"
|
|
370
371
|
}
|
|
371
|
-
},
|
|
372
|
+
}, ot = {
|
|
372
373
|
tag: {
|
|
373
374
|
root: ({ props: e }) => ({
|
|
374
375
|
class: [
|
|
@@ -389,7 +390,7 @@ const Ze = {
|
|
|
389
390
|
]
|
|
390
391
|
})
|
|
391
392
|
}
|
|
392
|
-
},
|
|
393
|
+
}, st = {
|
|
393
394
|
textarea: {
|
|
394
395
|
root: () => ({
|
|
395
396
|
class: [
|
|
@@ -397,13 +398,13 @@ const Ze = {
|
|
|
397
398
|
]
|
|
398
399
|
})
|
|
399
400
|
}
|
|
400
|
-
},
|
|
401
|
+
}, rt = {
|
|
401
402
|
chip: {
|
|
402
403
|
root: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 p-1",
|
|
403
404
|
label: "px-2 fs-6 fw-400",
|
|
404
405
|
removeIcon: "ms-auto my-auto"
|
|
405
406
|
}
|
|
406
|
-
},
|
|
407
|
+
}, dt = {
|
|
407
408
|
dialog: {
|
|
408
409
|
root: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
|
|
409
410
|
class: ["modal modal-dialog modal-content h-auto m-0 modal-sm"]
|
|
@@ -462,7 +463,7 @@ const Ze = {
|
|
|
462
463
|
]
|
|
463
464
|
})
|
|
464
465
|
}
|
|
465
|
-
},
|
|
466
|
+
}, pt = {
|
|
466
467
|
popover: {
|
|
467
468
|
root: (e) => ({
|
|
468
469
|
class: [
|
|
@@ -476,7 +477,7 @@ const Ze = {
|
|
|
476
477
|
content: "d-flex position-relative",
|
|
477
478
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
478
479
|
}
|
|
479
|
-
},
|
|
480
|
+
}, ct = {
|
|
480
481
|
message: {
|
|
481
482
|
root: ({ props: e }) => ({
|
|
482
483
|
class: [
|
|
@@ -506,7 +507,7 @@ const Ze = {
|
|
|
506
507
|
class: ["px-0 ms-2 btn d-flex"]
|
|
507
508
|
})
|
|
508
509
|
}
|
|
509
|
-
},
|
|
510
|
+
}, ut = {
|
|
510
511
|
// More PT options defined in ForgeStepper.
|
|
511
512
|
stepList: {
|
|
512
513
|
root: "d-flex mb-2 w-100"
|
|
@@ -534,7 +535,7 @@ const Ze = {
|
|
|
534
535
|
}),
|
|
535
536
|
separator: "border border-1 separator"
|
|
536
537
|
}
|
|
537
|
-
},
|
|
538
|
+
}, mt = {
|
|
538
539
|
tabList: {
|
|
539
540
|
root: () => ({
|
|
540
541
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -559,7 +560,7 @@ const Ze = {
|
|
|
559
560
|
class: ["p-2"]
|
|
560
561
|
})
|
|
561
562
|
}
|
|
562
|
-
},
|
|
563
|
+
}, vt = {
|
|
563
564
|
// More PassThrough options defined in ForgeDatepicker.
|
|
564
565
|
datepicker: {
|
|
565
566
|
root: "d-inline-flex relative w-100",
|
|
@@ -634,7 +635,7 @@ const Ze = {
|
|
|
634
635
|
pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
|
|
635
636
|
pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
|
|
636
637
|
}
|
|
637
|
-
},
|
|
638
|
+
}, ft = {
|
|
638
639
|
multiselect: {
|
|
639
640
|
root: ({ props: e }) => ({
|
|
640
641
|
class: [
|
|
@@ -662,7 +663,7 @@ const Ze = {
|
|
|
662
663
|
class: "d-none"
|
|
663
664
|
})
|
|
664
665
|
}
|
|
665
|
-
},
|
|
666
|
+
}, gt = {
|
|
666
667
|
// More PassThrough options in component file.
|
|
667
668
|
progressbar: {
|
|
668
669
|
root: () => ({
|
|
@@ -672,7 +673,7 @@ const Ze = {
|
|
|
672
673
|
class: ["text-white m-1"]
|
|
673
674
|
})
|
|
674
675
|
}
|
|
675
|
-
},
|
|
676
|
+
}, bt = {
|
|
676
677
|
panel: {
|
|
677
678
|
root: "card w-100",
|
|
678
679
|
header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
@@ -685,7 +686,7 @@ const Ze = {
|
|
|
685
686
|
},
|
|
686
687
|
contentContainer: "mt-2 mx-4 mb-4"
|
|
687
688
|
}
|
|
688
|
-
},
|
|
689
|
+
}, yt = {
|
|
689
690
|
// More PT options can be found in the ForgeTable file.
|
|
690
691
|
dataTable: {
|
|
691
692
|
root: "position-relative",
|
|
@@ -759,7 +760,7 @@ const Ze = {
|
|
|
759
760
|
]
|
|
760
761
|
})
|
|
761
762
|
}
|
|
762
|
-
},
|
|
763
|
+
}, xt = {
|
|
763
764
|
badge: {
|
|
764
765
|
root: ({ props: e }) => ({
|
|
765
766
|
class: [
|
|
@@ -781,7 +782,7 @@ const Ze = {
|
|
|
781
782
|
]
|
|
782
783
|
})
|
|
783
784
|
}
|
|
784
|
-
},
|
|
785
|
+
}, ht = {
|
|
785
786
|
// More PassThrough options in component file.
|
|
786
787
|
menubar: {
|
|
787
788
|
rootList: ({ instance: e }) => ({
|
|
@@ -862,7 +863,7 @@ const Ze = {
|
|
|
862
863
|
]
|
|
863
864
|
})
|
|
864
865
|
}
|
|
865
|
-
},
|
|
866
|
+
}, wt = {
|
|
866
867
|
tooltip: {
|
|
867
868
|
root: ({ context: e }) => ({
|
|
868
869
|
class: [
|
|
@@ -884,7 +885,7 @@ const Ze = {
|
|
|
884
885
|
class: ["tooltip-inner"]
|
|
885
886
|
}
|
|
886
887
|
}
|
|
887
|
-
},
|
|
888
|
+
}, kt = {
|
|
888
889
|
selectButton: {
|
|
889
890
|
root: () => ({
|
|
890
891
|
class: ["btn-group"]
|
|
@@ -902,7 +903,7 @@ const Ze = {
|
|
|
902
903
|
]
|
|
903
904
|
})
|
|
904
905
|
}
|
|
905
|
-
},
|
|
906
|
+
}, $t = {
|
|
906
907
|
splitbutton: {
|
|
907
908
|
root: () => ({
|
|
908
909
|
class: ["btn-group"]
|
|
@@ -948,7 +949,7 @@ const Ze = {
|
|
|
948
949
|
separator: "border-bottom"
|
|
949
950
|
}
|
|
950
951
|
}
|
|
951
|
-
},
|
|
952
|
+
}, Bt = {
|
|
952
953
|
progressspinner: {
|
|
953
954
|
spin: () => ({
|
|
954
955
|
class: [
|
|
@@ -956,7 +957,7 @@ const Ze = {
|
|
|
956
957
|
]
|
|
957
958
|
})
|
|
958
959
|
}
|
|
959
|
-
},
|
|
960
|
+
}, Ft = {
|
|
960
961
|
card: {
|
|
961
962
|
root: () => ({
|
|
962
963
|
class: ["card"]
|
|
@@ -980,11 +981,11 @@ const Ze = {
|
|
|
980
981
|
class: ["card-header"]
|
|
981
982
|
})
|
|
982
983
|
}
|
|
983
|
-
},
|
|
984
|
+
}, St = {
|
|
984
985
|
divider: {
|
|
985
986
|
root: "border-bottom w-100 m-1"
|
|
986
987
|
}
|
|
987
|
-
},
|
|
988
|
+
}, Ct = {
|
|
988
989
|
image: {
|
|
989
990
|
root: "position-relative d-inline-block",
|
|
990
991
|
previewMask: "preview-button",
|
|
@@ -997,7 +998,7 @@ const Ze = {
|
|
|
997
998
|
zoominbutton: "btn text-white",
|
|
998
999
|
closebutton: "btn text-white"
|
|
999
1000
|
}
|
|
1000
|
-
},
|
|
1001
|
+
}, zt = {
|
|
1001
1002
|
toast: {
|
|
1002
1003
|
message: () => ({
|
|
1003
1004
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -1033,7 +1034,7 @@ const Ze = {
|
|
|
1033
1034
|
};
|
|
1034
1035
|
}
|
|
1035
1036
|
}
|
|
1036
|
-
},
|
|
1037
|
+
}, Tt = {
|
|
1037
1038
|
tree: {
|
|
1038
1039
|
node: "m-1",
|
|
1039
1040
|
nodeToggleButton: ({ context: e }) => ({
|
|
@@ -1065,7 +1066,7 @@ const Ze = {
|
|
|
1065
1066
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1066
1067
|
filterIcon: "d-none"
|
|
1067
1068
|
}
|
|
1068
|
-
},
|
|
1069
|
+
}, Pt = {
|
|
1069
1070
|
treeSelect: {
|
|
1070
1071
|
root: ({ props: e }) => ({
|
|
1071
1072
|
class: [
|
|
@@ -1077,8 +1078,8 @@ const Ze = {
|
|
|
1077
1078
|
}),
|
|
1078
1079
|
dropdown: "d-none",
|
|
1079
1080
|
panel: "dropdown-menu overflow-y-auto show",
|
|
1080
|
-
labelContainer: "w-100 me-2",
|
|
1081
|
-
label: "w-100 d-flex
|
|
1081
|
+
labelContainer: "w-100 me-2 d-flex ellipsis-overflow",
|
|
1082
|
+
label: ({ props: e }) => ({ class: ["w-100 ellipsis-overflow", { "d-flex": e.display == "chip" }] }),
|
|
1082
1083
|
clearIcon: "ms-auto my-auto",
|
|
1083
1084
|
header: "p-2 w-100",
|
|
1084
1085
|
pcTree: {
|
|
@@ -1087,7 +1088,7 @@ const Ze = {
|
|
|
1087
1088
|
class: [
|
|
1088
1089
|
"btn py-0 px-1",
|
|
1089
1090
|
{
|
|
1090
|
-
|
|
1091
|
+
"d-none": e.leaf
|
|
1091
1092
|
}
|
|
1092
1093
|
]
|
|
1093
1094
|
}),
|
|
@@ -1113,7 +1114,7 @@ const Ze = {
|
|
|
1113
1114
|
filterIcon: "d-none"
|
|
1114
1115
|
}
|
|
1115
1116
|
}
|
|
1116
|
-
},
|
|
1117
|
+
}, _t = {
|
|
1117
1118
|
fieldset: {
|
|
1118
1119
|
root: () => ({
|
|
1119
1120
|
class: [
|
|
@@ -1139,7 +1140,7 @@ const Ze = {
|
|
|
1139
1140
|
]
|
|
1140
1141
|
})
|
|
1141
1142
|
}
|
|
1142
|
-
},
|
|
1143
|
+
}, jt = {
|
|
1143
1144
|
accordionPanel: {
|
|
1144
1145
|
root: "card my-2"
|
|
1145
1146
|
},
|
|
@@ -1157,7 +1158,7 @@ const Ze = {
|
|
|
1157
1158
|
accordionContent: {
|
|
1158
1159
|
root: "mt-2 mx-4 mb-4"
|
|
1159
1160
|
}
|
|
1160
|
-
},
|
|
1161
|
+
}, It = {
|
|
1161
1162
|
// More PT options can be found in the ForgeTable file.
|
|
1162
1163
|
treetable: {
|
|
1163
1164
|
root: "position-relative",
|
|
@@ -1178,44 +1179,44 @@ const Ze = {
|
|
|
1178
1179
|
class: "table-overlay table-spinner"
|
|
1179
1180
|
})
|
|
1180
1181
|
}
|
|
1181
|
-
},
|
|
1182
|
-
...Ze,
|
|
1183
|
-
...yt,
|
|
1182
|
+
}, Ki = {
|
|
1184
1183
|
...Xe,
|
|
1185
|
-
...
|
|
1184
|
+
...xt,
|
|
1186
1185
|
...Qe,
|
|
1187
|
-
...st,
|
|
1188
|
-
...tt,
|
|
1189
|
-
...mt,
|
|
1190
|
-
...rt,
|
|
1191
1186
|
...Ft,
|
|
1192
1187
|
...et,
|
|
1193
|
-
...
|
|
1188
|
+
...rt,
|
|
1194
1189
|
...at,
|
|
1195
|
-
...it,
|
|
1196
|
-
...lt,
|
|
1197
|
-
...pt,
|
|
1198
1190
|
...vt,
|
|
1199
|
-
...xt,
|
|
1200
1191
|
...dt,
|
|
1192
|
+
...St,
|
|
1193
|
+
...tt,
|
|
1194
|
+
...Ct,
|
|
1195
|
+
...it,
|
|
1196
|
+
...lt,
|
|
1197
|
+
...nt,
|
|
1198
|
+
...ct,
|
|
1201
1199
|
...ft,
|
|
1202
|
-
|
|
1200
|
+
...ht,
|
|
1201
|
+
...pt,
|
|
1203
1202
|
...gt,
|
|
1204
|
-
...
|
|
1205
|
-
...kt,
|
|
1206
|
-
...ct,
|
|
1203
|
+
...Bt,
|
|
1207
1204
|
...bt,
|
|
1208
|
-
...
|
|
1205
|
+
...kt,
|
|
1206
|
+
...$t,
|
|
1209
1207
|
...ut,
|
|
1210
|
-
...
|
|
1208
|
+
...yt,
|
|
1211
1209
|
...ot,
|
|
1212
|
-
...
|
|
1213
|
-
...Tt,
|
|
1210
|
+
...mt,
|
|
1214
1211
|
...zt,
|
|
1215
|
-
...
|
|
1212
|
+
...st,
|
|
1213
|
+
..._t,
|
|
1216
1214
|
...Pt,
|
|
1215
|
+
...Tt,
|
|
1216
|
+
...jt,
|
|
1217
|
+
...It,
|
|
1217
1218
|
directives: {
|
|
1218
|
-
...
|
|
1219
|
+
...wt
|
|
1219
1220
|
}
|
|
1220
1221
|
}, de = /* @__PURE__ */ S({
|
|
1221
1222
|
__name: "ForgeAlert",
|
|
@@ -1238,12 +1239,12 @@ const Ze = {
|
|
|
1238
1239
|
const t = e;
|
|
1239
1240
|
return (a, i) => {
|
|
1240
1241
|
const l = Be;
|
|
1241
|
-
return
|
|
1242
|
-
icon:
|
|
1242
|
+
return r(), y(l, W(G({ ...a.$attrs, ...t })), {
|
|
1243
|
+
icon: f(() => [
|
|
1243
1244
|
m("div", {
|
|
1244
1245
|
class: F(t.icon ? "me-2 pe-1" : "")
|
|
1245
1246
|
}, [
|
|
1246
|
-
t.icon ? (
|
|
1247
|
+
t.icon ? (r(), y(u(_), {
|
|
1247
1248
|
key: 0,
|
|
1248
1249
|
"data-cy": "message-icon",
|
|
1249
1250
|
icon: t.icon,
|
|
@@ -1252,17 +1253,17 @@ const Ze = {
|
|
|
1252
1253
|
}, null, 8, ["icon", "class"])) : C("", !0)
|
|
1253
1254
|
], 2)
|
|
1254
1255
|
]),
|
|
1255
|
-
closeicon:
|
|
1256
|
-
h(u(
|
|
1256
|
+
closeicon: f(() => [
|
|
1257
|
+
h(u(_), { icon: "bi:x" })
|
|
1257
1258
|
]),
|
|
1258
|
-
default:
|
|
1259
|
-
|
|
1259
|
+
default: f(() => [
|
|
1260
|
+
k(a.$slots, "default")
|
|
1260
1261
|
]),
|
|
1261
1262
|
_: 3
|
|
1262
1263
|
}, 16);
|
|
1263
1264
|
};
|
|
1264
1265
|
}
|
|
1265
|
-
}),
|
|
1266
|
+
}), Zi = /* @__PURE__ */ S({
|
|
1266
1267
|
__name: "ForgeActionButton",
|
|
1267
1268
|
props: {
|
|
1268
1269
|
action: {},
|
|
@@ -1271,7 +1272,7 @@ const Ze = {
|
|
|
1271
1272
|
params: { default: Array }
|
|
1272
1273
|
},
|
|
1273
1274
|
setup(e) {
|
|
1274
|
-
const t =
|
|
1275
|
+
const t = j(!1), a = e, i = async () => {
|
|
1275
1276
|
t.value = !0;
|
|
1276
1277
|
try {
|
|
1277
1278
|
await a.action.apply(this, a.params);
|
|
@@ -1282,8 +1283,8 @@ const Ze = {
|
|
|
1282
1283
|
};
|
|
1283
1284
|
return (l, n) => {
|
|
1284
1285
|
const o = q;
|
|
1285
|
-
return
|
|
1286
|
-
h(o,
|
|
1286
|
+
return r(), v(A, null, [
|
|
1287
|
+
h(o, P({ ...a, ...l.$attrs }, {
|
|
1287
1288
|
loading: t.value,
|
|
1288
1289
|
disabled: t.value || a.disabled,
|
|
1289
1290
|
onClick: i
|
|
@@ -1292,17 +1293,17 @@ const Ze = {
|
|
|
1292
1293
|
], 64);
|
|
1293
1294
|
};
|
|
1294
1295
|
}
|
|
1295
|
-
}),
|
|
1296
|
+
}), Xi = /* @__PURE__ */ S({
|
|
1296
1297
|
__name: "ForgeAutoComplete",
|
|
1297
1298
|
setup(e) {
|
|
1298
|
-
return (t, a) => (
|
|
1299
|
-
default:
|
|
1300
|
-
(
|
|
1299
|
+
return (t, a) => (r(), y(u(Pe), P({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1300
|
+
default: f(() => [
|
|
1301
|
+
(r(!0), v(A, null, E(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
|
|
1301
1302
|
]),
|
|
1302
1303
|
_: 3
|
|
1303
1304
|
}, 16));
|
|
1304
1305
|
}
|
|
1305
|
-
}),
|
|
1306
|
+
}), Mt = { class: "d-flex flex-column" }, Vt = ["for"], ye = /* @__PURE__ */ S({
|
|
1306
1307
|
__name: "ForgeCheckbox",
|
|
1307
1308
|
props: /* @__PURE__ */ R({
|
|
1308
1309
|
label: { default: "" },
|
|
@@ -1346,32 +1347,32 @@ const Ze = {
|
|
|
1346
1347
|
}
|
|
1347
1348
|
), o = (p, c) => {
|
|
1348
1349
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
|
|
1349
|
-
}, s =
|
|
1350
|
+
}, s = z(() => l.value.length > 0);
|
|
1350
1351
|
return (p, c) => {
|
|
1351
|
-
const
|
|
1352
|
-
return
|
|
1353
|
-
m("div",
|
|
1352
|
+
const x = _e;
|
|
1353
|
+
return r(), v("div", Mt, [
|
|
1354
|
+
m("div", P({
|
|
1354
1355
|
class: "d-flex",
|
|
1355
1356
|
"data-cy": "checkbox-container",
|
|
1356
|
-
onClick: c[2] || (c[2] = (
|
|
1357
|
+
onClick: c[2] || (c[2] = (d) => o(d, a.value))
|
|
1357
1358
|
}, { ...p.$attrs }), [
|
|
1358
|
-
h(
|
|
1359
|
+
h(x, P({ ...t }, {
|
|
1359
1360
|
binary: "",
|
|
1360
1361
|
modelValue: a.value,
|
|
1361
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1362
|
+
"onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d),
|
|
1362
1363
|
"input-id": t.name,
|
|
1363
1364
|
"input-class": { "is-invalid": s.value },
|
|
1364
1365
|
class: t.disabled || t.readonly ? "" : "cursor-pointer"
|
|
1365
1366
|
}), null, 16, ["modelValue", "input-id", "input-class", "class"]),
|
|
1366
1367
|
m("label", {
|
|
1367
1368
|
for: t.name,
|
|
1368
|
-
onClick: c[1] || (c[1] = (
|
|
1369
|
+
onClick: c[1] || (c[1] = (d) => o(d, !a.value)),
|
|
1369
1370
|
class: F([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1370
1371
|
}, [
|
|
1371
|
-
|
|
1372
|
+
k(p.$slots, "default", {}, () => [
|
|
1372
1373
|
M(B(t.label), 1)
|
|
1373
1374
|
])
|
|
1374
|
-
], 10,
|
|
1375
|
+
], 10, Vt)
|
|
1375
1376
|
], 16),
|
|
1376
1377
|
J(m("small", {
|
|
1377
1378
|
"data-cy": "error",
|
|
@@ -1389,7 +1390,7 @@ const Ze = {
|
|
|
1389
1390
|
inLine: { type: Boolean, default: !1 }
|
|
1390
1391
|
},
|
|
1391
1392
|
setup(e) {
|
|
1392
|
-
const t = e, a =
|
|
1393
|
+
const t = e, a = z(() => ({
|
|
1393
1394
|
spin: () => ({
|
|
1394
1395
|
class: [
|
|
1395
1396
|
"spinner-border",
|
|
@@ -1400,8 +1401,8 @@ const Ze = {
|
|
|
1400
1401
|
})
|
|
1401
1402
|
}));
|
|
1402
1403
|
return (i, l) => {
|
|
1403
|
-
const n =
|
|
1404
|
-
return
|
|
1404
|
+
const n = je;
|
|
1405
|
+
return r(), v("div", {
|
|
1405
1406
|
class: F(i.inLine ? "" : "forge-loader")
|
|
1406
1407
|
}, [
|
|
1407
1408
|
h(n, {
|
|
@@ -1412,7 +1413,7 @@ const Ze = {
|
|
|
1412
1413
|
], 2);
|
|
1413
1414
|
};
|
|
1414
1415
|
}
|
|
1415
|
-
}),
|
|
1416
|
+
}), Dt = ["href", "target"], Qi = /* @__PURE__ */ S({
|
|
1416
1417
|
__name: "ForgeLink",
|
|
1417
1418
|
props: {
|
|
1418
1419
|
url: {},
|
|
@@ -1430,7 +1431,7 @@ const Ze = {
|
|
|
1430
1431
|
iconName: {}
|
|
1431
1432
|
},
|
|
1432
1433
|
setup(e) {
|
|
1433
|
-
const t =
|
|
1434
|
+
const t = z(() => ({
|
|
1434
1435
|
[`link-${e.severity}`]: e.severity,
|
|
1435
1436
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1436
1437
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1439,21 +1440,21 @@ const Ze = {
|
|
|
1439
1440
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1440
1441
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1441
1442
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1442
|
-
})), a =
|
|
1443
|
+
})), a = z(() => ({
|
|
1443
1444
|
"order-2": e.positionIconEnd,
|
|
1444
1445
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1445
1446
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
1446
1447
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1447
1448
|
"me-0": e.animateIconOnHover
|
|
1448
1449
|
}));
|
|
1449
|
-
return (i, l) => (
|
|
1450
|
+
return (i, l) => (r(), v("a", {
|
|
1450
1451
|
id: "link",
|
|
1451
1452
|
class: F(["cursor-pointer d-flex text-break", t.value]),
|
|
1452
1453
|
href: i.url,
|
|
1453
1454
|
target: i.target
|
|
1454
1455
|
}, [
|
|
1455
|
-
|
|
1456
|
-
i.iconName ? (
|
|
1456
|
+
k(i.$slots, "default", {}, () => [
|
|
1457
|
+
i.iconName ? (r(), y(u(_), {
|
|
1457
1458
|
key: 0,
|
|
1458
1459
|
id: "link-icon",
|
|
1459
1460
|
icon: i.iconName,
|
|
@@ -1461,10 +1462,10 @@ const Ze = {
|
|
|
1461
1462
|
}, null, 8, ["icon", "class"])) : C("", !0),
|
|
1462
1463
|
M(" " + B(i.label), 1)
|
|
1463
1464
|
])
|
|
1464
|
-
], 10,
|
|
1465
|
+
], 10, Dt));
|
|
1465
1466
|
}
|
|
1466
1467
|
});
|
|
1467
|
-
function
|
|
1468
|
+
function Ot(e) {
|
|
1468
1469
|
const t = {
|
|
1469
1470
|
errorMessage: "",
|
|
1470
1471
|
errorDetails: []
|
|
@@ -1475,16 +1476,16 @@ function Dt(e) {
|
|
|
1475
1476
|
}
|
|
1476
1477
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1477
1478
|
}
|
|
1478
|
-
function
|
|
1479
|
+
function el(e, t) {
|
|
1479
1480
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1480
1481
|
}
|
|
1481
|
-
function
|
|
1482
|
+
function tl(e, t, a) {
|
|
1482
1483
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1483
1484
|
}
|
|
1484
|
-
const
|
|
1485
|
+
const Nt = { key: 0 }, At = {
|
|
1485
1486
|
class: "d-flex w-100",
|
|
1486
1487
|
"data-cy": "footer"
|
|
1487
|
-
},
|
|
1488
|
+
}, al = /* @__PURE__ */ S({
|
|
1488
1489
|
__name: "ForgeModal",
|
|
1489
1490
|
props: /* @__PURE__ */ R({
|
|
1490
1491
|
cancelText: { default: "Cancel" },
|
|
@@ -1545,7 +1546,7 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1545
1546
|
}),
|
|
1546
1547
|
emits: ["update:visible", "update:error"],
|
|
1547
1548
|
setup(e, { expose: t }) {
|
|
1548
|
-
const a = N(e, "visible"), i =
|
|
1549
|
+
const a = N(e, "visible"), i = j(!1), l = e, n = j(!1), o = N(e, "error"), s = () => {
|
|
1549
1550
|
o.value = {
|
|
1550
1551
|
hasError: !1,
|
|
1551
1552
|
header: "",
|
|
@@ -1559,22 +1560,22 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1559
1560
|
i.value = !1;
|
|
1560
1561
|
}, c = () => {
|
|
1561
1562
|
i.value = !0;
|
|
1562
|
-
},
|
|
1563
|
+
}, x = () => {
|
|
1563
1564
|
l.resetErrorOnClose && s(), a.value = !1;
|
|
1564
|
-
},
|
|
1565
|
+
}, d = async () => {
|
|
1565
1566
|
if (l.onConfirm) {
|
|
1566
1567
|
n.value = !0, o.value.hasError = !1;
|
|
1567
1568
|
try {
|
|
1568
|
-
const
|
|
1569
|
-
(
|
|
1570
|
-
} catch (
|
|
1569
|
+
const T = await l.onConfirm();
|
|
1570
|
+
(T || T == null) && x();
|
|
1571
|
+
} catch (T) {
|
|
1571
1572
|
o.value.hasError = !0;
|
|
1572
|
-
const D =
|
|
1573
|
+
const D = Ot(T);
|
|
1573
1574
|
o.value.header = D.errorMessage, o.value.message = D.errorDetails;
|
|
1574
1575
|
}
|
|
1575
1576
|
n.value = !1;
|
|
1576
1577
|
}
|
|
1577
|
-
},
|
|
1578
|
+
}, $ = z(() => ({
|
|
1578
1579
|
root: [
|
|
1579
1580
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1580
1581
|
{
|
|
@@ -1591,24 +1592,24 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1591
1592
|
}
|
|
1592
1593
|
]
|
|
1593
1594
|
}));
|
|
1594
|
-
return (
|
|
1595
|
-
const O = q,
|
|
1596
|
-
return
|
|
1595
|
+
return (T, D) => {
|
|
1596
|
+
const O = q, U = Ie;
|
|
1597
|
+
return r(), y(U, P(l, {
|
|
1597
1598
|
onMaximize: c,
|
|
1598
1599
|
onUnmaximize: p,
|
|
1599
|
-
pt:
|
|
1600
|
+
pt: $.value
|
|
1600
1601
|
}), ae({
|
|
1601
|
-
closeicon:
|
|
1602
|
-
h(u(
|
|
1602
|
+
closeicon: f(() => [
|
|
1603
|
+
h(u(_), {
|
|
1603
1604
|
"data-cy": "close-icon",
|
|
1604
1605
|
icon: "bi:x-lg",
|
|
1605
1606
|
width: "18",
|
|
1606
1607
|
height: "18",
|
|
1607
|
-
onClick:
|
|
1608
|
+
onClick: x
|
|
1608
1609
|
})
|
|
1609
1610
|
]),
|
|
1610
|
-
maximizeicon:
|
|
1611
|
-
h(u(
|
|
1611
|
+
maximizeicon: f(() => [
|
|
1612
|
+
h(u(_), {
|
|
1612
1613
|
"data-cy": "maximisable-icon",
|
|
1613
1614
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1614
1615
|
width: "16",
|
|
@@ -1617,48 +1618,48 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1617
1618
|
]),
|
|
1618
1619
|
_: 2
|
|
1619
1620
|
}, [
|
|
1620
|
-
|
|
1621
|
+
E(T.$slots, (g, w) => ({
|
|
1621
1622
|
name: w,
|
|
1622
|
-
fn:
|
|
1623
|
-
w !== "footer" ? (
|
|
1624
|
-
o.value.hasError ? (
|
|
1623
|
+
fn: f((I) => [
|
|
1624
|
+
w !== "footer" ? (r(), v(A, { key: 0 }, [
|
|
1625
|
+
o.value.hasError ? (r(), y(de, {
|
|
1625
1626
|
key: 0,
|
|
1626
1627
|
severity: "danger",
|
|
1627
1628
|
"data-cy": "error"
|
|
1628
1629
|
}, {
|
|
1629
|
-
default:
|
|
1630
|
+
default: f(() => [
|
|
1630
1631
|
m("p", {
|
|
1631
1632
|
class: F(o.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1632
1633
|
}, B(o.value.header), 3),
|
|
1633
|
-
o.value.message.length > 0 ? (
|
|
1634
|
-
(
|
|
1634
|
+
o.value.message.length > 0 ? (r(), v("ul", Nt, [
|
|
1635
|
+
(r(!0), v(A, null, E(o.value.message, (b) => (r(), v("li", { key: b }, B(b), 1))), 128))
|
|
1635
1636
|
])) : C("", !0)
|
|
1636
1637
|
]),
|
|
1637
1638
|
_: 1
|
|
1638
1639
|
})) : C("", !0)
|
|
1639
1640
|
], 64)) : C("", !0),
|
|
1640
|
-
|
|
1641
|
-
n.value ?
|
|
1641
|
+
k(T.$slots, w, W(G(I || {}))),
|
|
1642
|
+
n.value ? k(T.$slots, "loader", { key: 1 }, () => [
|
|
1642
1643
|
h(pe, { "data-cy": "loader" })
|
|
1643
1644
|
]) : C("", !0)
|
|
1644
1645
|
])
|
|
1645
1646
|
})),
|
|
1646
|
-
|
|
1647
|
+
T.showFooter ? {
|
|
1647
1648
|
name: "footer",
|
|
1648
|
-
fn:
|
|
1649
|
-
m("div",
|
|
1649
|
+
fn: f(() => [
|
|
1650
|
+
m("div", At, [
|
|
1650
1651
|
h(O, {
|
|
1651
|
-
label:
|
|
1652
|
+
label: T.cancelText,
|
|
1652
1653
|
class: F(l.cancelClass),
|
|
1653
1654
|
outlined: "",
|
|
1654
|
-
onClick:
|
|
1655
|
+
onClick: x,
|
|
1655
1656
|
id: "cancel-button",
|
|
1656
1657
|
type: l.cancelButtonType
|
|
1657
1658
|
}, null, 8, ["label", "class", "type"]),
|
|
1658
1659
|
h(O, {
|
|
1659
|
-
label:
|
|
1660
|
+
label: T.submitText,
|
|
1660
1661
|
class: F([l.submitClass, "ms-auto"]),
|
|
1661
|
-
onClick:
|
|
1662
|
+
onClick: d,
|
|
1662
1663
|
id: "submit-button",
|
|
1663
1664
|
type: l.submitButtonType
|
|
1664
1665
|
}, null, 8, ["label", "class", "type"])
|
|
@@ -1669,7 +1670,7 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1669
1670
|
]), 1040, ["pt"]);
|
|
1670
1671
|
};
|
|
1671
1672
|
}
|
|
1672
|
-
}),
|
|
1673
|
+
}), Et = ["id"], Ut = { key: 0 }, qt = { key: 0 }, Lt = { class: "d-flex justify-content-between align-items-center position-relative" }, Rt = { key: 1 }, Ht = { "data-cy": "readonly-value" }, Wt = /* @__PURE__ */ S({
|
|
1673
1674
|
__name: "ForgeInlineEditor",
|
|
1674
1675
|
props: /* @__PURE__ */ R({
|
|
1675
1676
|
name: { default: "" },
|
|
@@ -1684,13 +1685,13 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1684
1685
|
}),
|
|
1685
1686
|
emits: ["update:modelValue"],
|
|
1686
1687
|
setup(e) {
|
|
1687
|
-
const t = e, a = N(e, "modelValue"), i =
|
|
1688
|
-
var
|
|
1689
|
-
i.value = !i.value, (
|
|
1688
|
+
const t = e, a = N(e, "modelValue"), i = j(!1), l = j(), n = () => {
|
|
1689
|
+
var T;
|
|
1690
|
+
i.value = !i.value, (T = l.value) == null || T.focus();
|
|
1690
1691
|
}, o = async () => {
|
|
1691
|
-
if (
|
|
1692
|
+
if ($.value)
|
|
1692
1693
|
return !1;
|
|
1693
|
-
if (a.value =
|
|
1694
|
+
if (a.value = d.value, t.completeAction)
|
|
1694
1695
|
try {
|
|
1695
1696
|
await t.completeAction.apply(this, t.params), i.value = !i.value;
|
|
1696
1697
|
} catch {
|
|
@@ -1701,47 +1702,47 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1701
1702
|
}, s = () => {
|
|
1702
1703
|
i.value = !i.value;
|
|
1703
1704
|
}, p = () => {
|
|
1704
|
-
|
|
1705
|
-
}, { errorMessage: c, errors:
|
|
1705
|
+
d.value = null;
|
|
1706
|
+
}, { errorMessage: c, errors: x, value: d } = oe(() => t.name, void 0, {
|
|
1706
1707
|
initialValue: a.value
|
|
1707
1708
|
});
|
|
1708
1709
|
ne(() => {
|
|
1709
|
-
|
|
1710
|
+
d.value = a.value;
|
|
1710
1711
|
});
|
|
1711
|
-
const
|
|
1712
|
-
return (
|
|
1713
|
-
const O = se,
|
|
1714
|
-
return
|
|
1712
|
+
const $ = z(() => x.value.length > 0);
|
|
1713
|
+
return (T, D) => {
|
|
1714
|
+
const O = se, U = q;
|
|
1715
|
+
return r(), v("div", {
|
|
1715
1716
|
id: t.name
|
|
1716
1717
|
}, [
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
m("span",
|
|
1718
|
+
T.readonly ? (r(), v("div", Rt, [
|
|
1719
|
+
k(T.$slots, "default", {}, () => [
|
|
1720
|
+
m("span", Ht, B(u(d)), 1)
|
|
1720
1721
|
])
|
|
1721
|
-
])) : (
|
|
1722
|
-
i.value ? (
|
|
1723
|
-
J((
|
|
1724
|
-
|
|
1725
|
-
class: F({ "is-invalid":
|
|
1722
|
+
])) : (r(), v("div", Ut, [
|
|
1723
|
+
i.value ? (r(), v("div", qt, [
|
|
1724
|
+
J((r(), v("div", Lt, [
|
|
1725
|
+
k(T.$slots, "editor", {
|
|
1726
|
+
class: F({ "is-invalid": $.value }),
|
|
1726
1727
|
editFinished: o,
|
|
1727
1728
|
cancel: s,
|
|
1728
|
-
val: u(
|
|
1729
|
+
val: u(d)
|
|
1729
1730
|
}, () => [
|
|
1730
1731
|
h(O, {
|
|
1731
|
-
modelValue: u(
|
|
1732
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
1732
|
+
modelValue: u(d),
|
|
1733
|
+
"onUpdate:modelValue": D[0] || (D[0] = (g) => Fe(d) ? d.value = g : null),
|
|
1733
1734
|
modelModifiers: { trim: !0 },
|
|
1734
1735
|
"data-cy": "input",
|
|
1735
1736
|
ref_key: "input",
|
|
1736
1737
|
ref: l,
|
|
1737
|
-
class: F({ "is-invalid":
|
|
1738
|
+
class: F({ "is-invalid": $.value }),
|
|
1738
1739
|
onKeydown: [
|
|
1739
1740
|
le(o, ["enter"]),
|
|
1740
1741
|
le(s, ["esc"])
|
|
1741
1742
|
]
|
|
1742
1743
|
}, null, 8, ["modelValue", "class"])
|
|
1743
1744
|
]),
|
|
1744
|
-
h(u(
|
|
1745
|
+
h(u(_), {
|
|
1745
1746
|
icon: "bi:x-circle",
|
|
1746
1747
|
class: "mx-2 cursor-pointer",
|
|
1747
1748
|
onClick: p,
|
|
@@ -1751,26 +1752,26 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1751
1752
|
])), [
|
|
1752
1753
|
[u(Me), o]
|
|
1753
1754
|
])
|
|
1754
|
-
])) : (
|
|
1755
|
+
])) : (r(), v("div", {
|
|
1755
1756
|
key: 1,
|
|
1756
1757
|
class: "d-flex text-muted",
|
|
1757
1758
|
onClick: n,
|
|
1758
1759
|
onFocus: n
|
|
1759
1760
|
}, [
|
|
1760
|
-
|
|
1761
|
+
k(T.$slots, "default", {}, () => [
|
|
1761
1762
|
m("div", {
|
|
1762
|
-
class: F(["pe-2 cursor-pointer", { "text-invalid":
|
|
1763
|
+
class: F(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
|
|
1763
1764
|
"data-cy": "value"
|
|
1764
|
-
}, B(u(
|
|
1765
|
+
}, B(u(d) ? u(d) : "Click to edit"), 3)
|
|
1765
1766
|
]),
|
|
1766
|
-
h(
|
|
1767
|
+
h(U, {
|
|
1767
1768
|
link: "",
|
|
1768
1769
|
class: "p-0 m-0"
|
|
1769
1770
|
}, {
|
|
1770
|
-
default:
|
|
1771
|
-
h(u(
|
|
1771
|
+
default: f(() => [
|
|
1772
|
+
h(u(_), {
|
|
1772
1773
|
icon: "bi:pencil",
|
|
1773
|
-
class: F(
|
|
1774
|
+
class: F($.value ? "text-invalid" : "text-muted"),
|
|
1774
1775
|
"data-cy": "edit-icon",
|
|
1775
1776
|
onKeydown: le(n, ["enter"])
|
|
1776
1777
|
}, null, 8, ["class"])
|
|
@@ -1783,12 +1784,12 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1783
1784
|
"data-cy": "error",
|
|
1784
1785
|
class: "text-invalid"
|
|
1785
1786
|
}, B(u(c)), 513), [
|
|
1786
|
-
[Z,
|
|
1787
|
+
[Z, $.value]
|
|
1787
1788
|
])
|
|
1788
|
-
], 8,
|
|
1789
|
+
], 8, Et);
|
|
1789
1790
|
};
|
|
1790
1791
|
}
|
|
1791
|
-
}),
|
|
1792
|
+
}), Gt = ["href"], il = /* @__PURE__ */ S({
|
|
1792
1793
|
__name: "ForgeNavbar",
|
|
1793
1794
|
props: {
|
|
1794
1795
|
severity: { default: "light" },
|
|
@@ -1805,7 +1806,7 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1805
1806
|
unstyled: { type: Boolean }
|
|
1806
1807
|
},
|
|
1807
1808
|
setup(e) {
|
|
1808
|
-
const t = e, a =
|
|
1809
|
+
const t = e, a = z(() => ({
|
|
1809
1810
|
root: () => ({
|
|
1810
1811
|
class: [
|
|
1811
1812
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1833,24 +1834,24 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1833
1834
|
]
|
|
1834
1835
|
})
|
|
1835
1836
|
}));
|
|
1836
|
-
return (i, l) => (
|
|
1837
|
+
return (i, l) => (r(), y(u(Ve), P({ ...t, ...i.$attrs }, {
|
|
1837
1838
|
pt: a.value,
|
|
1838
1839
|
"data-cy": "navbar"
|
|
1839
1840
|
}), ae({
|
|
1840
|
-
start:
|
|
1841
|
+
start: f(() => [
|
|
1841
1842
|
m("a", {
|
|
1842
1843
|
href: i.logoUrl,
|
|
1843
1844
|
class: "navbar-brand ms-3",
|
|
1844
1845
|
"data-cy": "logo"
|
|
1845
1846
|
}, [
|
|
1846
|
-
|
|
1847
|
+
k(i.$slots, "logo", {}, () => [
|
|
1847
1848
|
l[0] || (l[0] = M(" Logo "))
|
|
1848
1849
|
])
|
|
1849
|
-
], 8,
|
|
1850
|
+
], 8, Gt)
|
|
1850
1851
|
]),
|
|
1851
|
-
buttonicon:
|
|
1852
|
-
|
|
1853
|
-
h(u(
|
|
1852
|
+
buttonicon: f(() => [
|
|
1853
|
+
k(i.$slots, "buttonIcon", {}, () => [
|
|
1854
|
+
h(u(_), {
|
|
1854
1855
|
icon: "bi:list",
|
|
1855
1856
|
class: F(t.severity === "light" ? "text-black" : "text-white"),
|
|
1856
1857
|
height: "24",
|
|
@@ -1860,22 +1861,22 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1860
1861
|
]),
|
|
1861
1862
|
_: 2
|
|
1862
1863
|
}, [
|
|
1863
|
-
|
|
1864
|
+
E(i.$slots, (n, o) => ({
|
|
1864
1865
|
name: o,
|
|
1865
|
-
fn:
|
|
1866
|
-
|
|
1866
|
+
fn: f((s) => [
|
|
1867
|
+
k(i.$slots, o, W(G(s)))
|
|
1867
1868
|
])
|
|
1868
1869
|
}))
|
|
1869
1870
|
]), 1040, ["pt"]));
|
|
1870
1871
|
}
|
|
1871
|
-
}),
|
|
1872
|
+
}), Yt = { class: "border alternating-item-list" }, Jt = {
|
|
1872
1873
|
key: 0,
|
|
1873
1874
|
class: "p-2 border-top border-bottom",
|
|
1874
1875
|
"data-cy": "title"
|
|
1875
|
-
},
|
|
1876
|
+
}, Kt = { class: "d-inline-block" }, Zt = {
|
|
1876
1877
|
key: 1,
|
|
1877
1878
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1878
|
-
},
|
|
1879
|
+
}, Xt = /* @__PURE__ */ S({
|
|
1879
1880
|
__name: "ForgeMultiSelectPreview",
|
|
1880
1881
|
props: /* @__PURE__ */ R({
|
|
1881
1882
|
title: { default: "Selected Items" },
|
|
@@ -1896,7 +1897,7 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1896
1897
|
};
|
|
1897
1898
|
return (l, n) => {
|
|
1898
1899
|
const o = re, s = q;
|
|
1899
|
-
return
|
|
1900
|
+
return r(), v("div", {
|
|
1900
1901
|
class: F(l.orientation === "column" ? "row" : ""),
|
|
1901
1902
|
"data-cy": "multiselect-preview"
|
|
1902
1903
|
}, [
|
|
@@ -1904,7 +1905,7 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1904
1905
|
class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1905
1906
|
"data-cy": "multiselect-container"
|
|
1906
1907
|
}, [
|
|
1907
|
-
h(o,
|
|
1908
|
+
h(o, P({
|
|
1908
1909
|
modelValue: a.value,
|
|
1909
1910
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
|
|
1910
1911
|
}, { ...l.$attrs }, {
|
|
@@ -1913,12 +1914,12 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1913
1914
|
placeholder: l.multiselectPlaceholder,
|
|
1914
1915
|
"data-cy": "multiselect"
|
|
1915
1916
|
}), {
|
|
1916
|
-
default:
|
|
1917
|
-
(
|
|
1917
|
+
default: f(() => [
|
|
1918
|
+
(r(!0), v(A, null, E(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
|
|
1918
1919
|
]),
|
|
1919
1920
|
_: 3
|
|
1920
1921
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1921
|
-
|
|
1922
|
+
k(l.$slots, "after-multi-select")
|
|
1922
1923
|
], 2),
|
|
1923
1924
|
m("div", {
|
|
1924
1925
|
class: F(l.orientation === "row" ? "col-12" : "col"),
|
|
@@ -1928,23 +1929,23 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1928
1929
|
style: Se({ height: l.height }),
|
|
1929
1930
|
class: "overflow-auto"
|
|
1930
1931
|
}, [
|
|
1931
|
-
m("div",
|
|
1932
|
-
l.title ? (
|
|
1933
|
-
(
|
|
1932
|
+
m("div", Yt, [
|
|
1933
|
+
l.title ? (r(), v("div", Jt, B(l.title), 1)) : C("", !0),
|
|
1934
|
+
(r(!0), v(A, null, E(a.value, (p) => (r(), v("div", {
|
|
1934
1935
|
key: p.id,
|
|
1935
1936
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1936
1937
|
}, [
|
|
1937
|
-
|
|
1938
|
-
m("span",
|
|
1938
|
+
k(l.$slots, "list-item", { item: p }, () => [
|
|
1939
|
+
m("span", Kt, B(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1939
1940
|
]),
|
|
1940
|
-
l.canRemoveItemFromPreview ? (
|
|
1941
|
+
l.canRemoveItemFromPreview ? (r(), y(s, {
|
|
1941
1942
|
key: 0,
|
|
1942
1943
|
link: "",
|
|
1943
1944
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1944
1945
|
onClick: (c) => i(p.id)
|
|
1945
1946
|
}, {
|
|
1946
|
-
default:
|
|
1947
|
-
h(u(
|
|
1947
|
+
default: f(() => [
|
|
1948
|
+
h(u(_), {
|
|
1948
1949
|
icon: "bi:x",
|
|
1949
1950
|
class: "close-icon",
|
|
1950
1951
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -1953,34 +1954,34 @@ const Ot = { key: 0 }, Nt = {
|
|
|
1953
1954
|
_: 2
|
|
1954
1955
|
}, 1032, ["onClick"])) : C("", !0)
|
|
1955
1956
|
]))), 128)),
|
|
1956
|
-
a.value == null || a.value.length == 0 ? (
|
|
1957
|
+
a.value == null || a.value.length == 0 ? (r(), v("div", Zt, B(t.optionsPreviewEmptyText), 1)) : C("", !0)
|
|
1957
1958
|
])
|
|
1958
1959
|
], 4)
|
|
1959
1960
|
], 2)
|
|
1960
1961
|
], 2);
|
|
1961
1962
|
};
|
|
1962
1963
|
}
|
|
1963
|
-
}),
|
|
1964
|
+
}), Qt = { class: "d-flex justify-content-between pb-2" }, ea = {
|
|
1964
1965
|
"data-cy": "title",
|
|
1965
1966
|
class: "my-auto"
|
|
1966
|
-
},
|
|
1967
|
+
}, ta = {
|
|
1967
1968
|
"data-cy": "slot",
|
|
1968
1969
|
class: "d-flex align-items-center"
|
|
1969
|
-
},
|
|
1970
|
+
}, ll = /* @__PURE__ */ S({
|
|
1970
1971
|
__name: "ForgePageHeader",
|
|
1971
1972
|
props: {
|
|
1972
1973
|
title: {}
|
|
1973
1974
|
},
|
|
1974
1975
|
setup(e) {
|
|
1975
1976
|
const t = e;
|
|
1976
|
-
return (a, i) => (
|
|
1977
|
-
m("h3",
|
|
1978
|
-
m("div",
|
|
1979
|
-
|
|
1977
|
+
return (a, i) => (r(), v("div", Qt, [
|
|
1978
|
+
m("h3", ea, B(t.title), 1),
|
|
1979
|
+
m("div", ta, [
|
|
1980
|
+
k(a.$slots, "default")
|
|
1980
1981
|
])
|
|
1981
1982
|
]));
|
|
1982
1983
|
}
|
|
1983
|
-
}),
|
|
1984
|
+
}), aa = { class: "d-flex" }, ia = { "data-cy": "before-slot" }, la = { class: "position-relative w-100" }, na = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ S({
|
|
1984
1985
|
__name: "ForgeDatepicker",
|
|
1985
1986
|
props: /* @__PURE__ */ R({
|
|
1986
1987
|
severity: { default: "primary" },
|
|
@@ -2059,34 +2060,34 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2059
2060
|
initialValue: a.value
|
|
2060
2061
|
}), p = () => {
|
|
2061
2062
|
s(null), a.value = null;
|
|
2062
|
-
}, c =
|
|
2063
|
-
dayCell: ({ context:
|
|
2063
|
+
}, c = z(() => i.value.length > 0), x = z(() => ({
|
|
2064
|
+
dayCell: ({ context: d }) => ({
|
|
2064
2065
|
class: [
|
|
2065
2066
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
2066
2067
|
{
|
|
2067
|
-
"cursor-pointer": !
|
|
2068
|
-
"pe-none":
|
|
2069
|
-
"text-white":
|
|
2068
|
+
"cursor-pointer": !d.disabled,
|
|
2069
|
+
"pe-none": d.disabled,
|
|
2070
|
+
"text-white": d.selected
|
|
2070
2071
|
},
|
|
2071
2072
|
// Severities
|
|
2072
2073
|
{
|
|
2073
|
-
selected:
|
|
2074
|
-
"text-primary": !
|
|
2075
|
-
"text-brand": !
|
|
2076
|
-
"text-secondary": !
|
|
2077
|
-
"text-success": !
|
|
2078
|
-
"text-success-alternate": !
|
|
2079
|
-
"text-warning": !
|
|
2080
|
-
"text-danger": !
|
|
2081
|
-
"text-info": !
|
|
2074
|
+
selected: d.selected && !d.disabled,
|
|
2075
|
+
"text-primary": !d.selected && d.today && (t.severity === void 0 || t.severity === "primary"),
|
|
2076
|
+
"text-brand": !d.selected && d.today && t.severity === "brand",
|
|
2077
|
+
"text-secondary": !d.selected && d.today && t.severity === "secondary",
|
|
2078
|
+
"text-success": !d.selected && d.today && t.severity === "success",
|
|
2079
|
+
"text-success-alternate": !d.selected && d.today && t.severity === "success-alternate",
|
|
2080
|
+
"text-warning": !d.selected && d.today && t.severity === "warning",
|
|
2081
|
+
"text-danger": !d.selected && d.today && t.severity === "danger",
|
|
2082
|
+
"text-info": !d.selected && d.today && t.severity === "info"
|
|
2082
2083
|
}
|
|
2083
2084
|
]
|
|
2084
2085
|
}),
|
|
2085
|
-
dayLabel: ({ context:
|
|
2086
|
+
dayLabel: ({ context: d }) => ({
|
|
2086
2087
|
class: [
|
|
2087
2088
|
// Disabled States
|
|
2088
2089
|
{
|
|
2089
|
-
"text-muted":
|
|
2090
|
+
"text-muted": d.disabled
|
|
2090
2091
|
}
|
|
2091
2092
|
]
|
|
2092
2093
|
}),
|
|
@@ -2124,63 +2125,63 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2124
2125
|
]
|
|
2125
2126
|
})
|
|
2126
2127
|
},
|
|
2127
|
-
year: ({ context:
|
|
2128
|
+
year: ({ context: d }) => ({
|
|
2128
2129
|
class: [
|
|
2129
2130
|
"col-3 text-center cursor-pointer py-2",
|
|
2130
2131
|
{
|
|
2131
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2132
|
-
"text-brand": t.severity === "brand" &&
|
|
2133
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2134
|
-
"text-success": t.severity === "success" &&
|
|
2135
|
-
"text-success-alternate": t.severity === "success-alternate" &&
|
|
2136
|
-
"text-warning": t.severity === "warning" &&
|
|
2137
|
-
"text-danger": t.severity === "danger" &&
|
|
2138
|
-
"text-info": t.severity === "info" &&
|
|
2132
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2133
|
+
"text-brand": t.severity === "brand" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2134
|
+
"text-secondary": t.severity === "secondary" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2135
|
+
"text-success": t.severity === "success" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2136
|
+
"text-success-alternate": t.severity === "success-alternate" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2137
|
+
"text-warning": t.severity === "warning" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2138
|
+
"text-danger": t.severity === "danger" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2139
|
+
"text-info": t.severity === "info" && d.year.value === (/* @__PURE__ */ new Date()).getFullYear()
|
|
2139
2140
|
}
|
|
2140
2141
|
]
|
|
2141
2142
|
}),
|
|
2142
|
-
month: ({ context:
|
|
2143
|
+
month: ({ context: d }) => ({
|
|
2143
2144
|
class: [
|
|
2144
2145
|
"col-3 text-center cursor-pointer py-2",
|
|
2145
2146
|
{
|
|
2146
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
2147
|
-
"text-brand": t.severity === "brand" &&
|
|
2148
|
-
"text-secondary": t.severity === "secondary" &&
|
|
2149
|
-
"text-success": t.severity === "success" &&
|
|
2150
|
-
"text-success-alternate": t.severity === "success-alternate" &&
|
|
2151
|
-
"text-warning": t.severity === "warning" &&
|
|
2152
|
-
"text-danger": t.severity === "danger" &&
|
|
2153
|
-
"text-info": t.severity === "info" &&
|
|
2147
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2148
|
+
"text-brand": t.severity === "brand" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2149
|
+
"text-secondary": t.severity === "secondary" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2150
|
+
"text-success": t.severity === "success" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2151
|
+
"text-success-alternate": t.severity === "success-alternate" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2152
|
+
"text-warning": t.severity === "warning" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2153
|
+
"text-danger": t.severity === "danger" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2154
|
+
"text-info": t.severity === "info" && d.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
|
|
2154
2155
|
}
|
|
2155
2156
|
]
|
|
2156
2157
|
})
|
|
2157
2158
|
}));
|
|
2158
|
-
return (
|
|
2159
|
-
const
|
|
2160
|
-
return
|
|
2161
|
-
m("div",
|
|
2162
|
-
m("span",
|
|
2163
|
-
|
|
2159
|
+
return (d, $) => {
|
|
2160
|
+
const T = De;
|
|
2161
|
+
return r(), v(A, null, [
|
|
2162
|
+
m("div", aa, [
|
|
2163
|
+
m("span", ia, [
|
|
2164
|
+
k(d.$slots, "before")
|
|
2164
2165
|
]),
|
|
2165
|
-
m("div",
|
|
2166
|
-
h(
|
|
2167
|
-
pt:
|
|
2166
|
+
m("div", la, [
|
|
2167
|
+
h(T, P({ ...t, ...d.$attrs }, {
|
|
2168
|
+
pt: x.value,
|
|
2168
2169
|
modelValue: a.value,
|
|
2169
2170
|
"onUpdate:modelValue": [
|
|
2170
|
-
|
|
2171
|
+
$[0] || ($[0] = (D) => a.value = D),
|
|
2171
2172
|
u(n)
|
|
2172
2173
|
],
|
|
2173
|
-
onBlur:
|
|
2174
|
+
onBlur: $[1] || ($[1] = () => u(o)),
|
|
2174
2175
|
"input-class": { "datepicker-invalid": c.value }
|
|
2175
2176
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2176
|
-
J(h(u(
|
|
2177
|
+
J(h(u(_), {
|
|
2177
2178
|
"data-cy": "icon",
|
|
2178
2179
|
icon: "bi:calendar4",
|
|
2179
2180
|
class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
2180
2181
|
}, null, 8, ["class"]), [
|
|
2181
2182
|
[Z, t.showIcon]
|
|
2182
2183
|
]),
|
|
2183
|
-
J(h(u(
|
|
2184
|
+
J(h(u(_), {
|
|
2184
2185
|
"data-cy": "icon",
|
|
2185
2186
|
icon: "bi:x",
|
|
2186
2187
|
onClick: p,
|
|
@@ -2189,8 +2190,8 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2189
2190
|
[Z, t.modelValue]
|
|
2190
2191
|
])
|
|
2191
2192
|
]),
|
|
2192
|
-
m("span",
|
|
2193
|
-
|
|
2193
|
+
m("span", na, [
|
|
2194
|
+
k(d.$slots, "after")
|
|
2194
2195
|
])
|
|
2195
2196
|
]),
|
|
2196
2197
|
J(m("small", {
|
|
@@ -2202,19 +2203,19 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2202
2203
|
], 64);
|
|
2203
2204
|
};
|
|
2204
2205
|
}
|
|
2205
|
-
}),
|
|
2206
|
+
}), nl = /* @__PURE__ */ S({
|
|
2206
2207
|
__name: "ForgeRemainingCharacters",
|
|
2207
2208
|
props: {
|
|
2208
2209
|
maxCount: { default: 300 },
|
|
2209
2210
|
currentCount: {}
|
|
2210
2211
|
},
|
|
2211
2212
|
setup(e) {
|
|
2212
|
-
const t = e, a =
|
|
2213
|
-
return (i, l) => (
|
|
2213
|
+
const t = e, a = z(() => t.maxCount - t.currentCount);
|
|
2214
|
+
return (i, l) => (r(), v("div", {
|
|
2214
2215
|
class: F(a.value < 0 ? "text-danger" : "")
|
|
2215
2216
|
}, "Remaining characters: " + B(a.value), 3));
|
|
2216
2217
|
}
|
|
2217
|
-
}),
|
|
2218
|
+
}), oa = { class: "d-flex justify-content-between" }, ol = /* @__PURE__ */ S({
|
|
2218
2219
|
__name: "ForgeForm",
|
|
2219
2220
|
props: {
|
|
2220
2221
|
onSubmit: {},
|
|
@@ -2226,7 +2227,7 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2226
2227
|
hideCancel: { type: Boolean, default: !1 }
|
|
2227
2228
|
},
|
|
2228
2229
|
setup(e) {
|
|
2229
|
-
const t = e, a =
|
|
2230
|
+
const t = e, a = j(!1), i = j({
|
|
2230
2231
|
hasError: !1,
|
|
2231
2232
|
message: ""
|
|
2232
2233
|
});
|
|
@@ -2241,13 +2242,13 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2241
2242
|
}
|
|
2242
2243
|
return (n, o) => {
|
|
2243
2244
|
const s = q;
|
|
2244
|
-
return
|
|
2245
|
+
return r(), v("form", P(n.$attrs, {
|
|
2245
2246
|
novalidate: "",
|
|
2246
2247
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2247
2248
|
onSubmit: X(l, ["prevent"])
|
|
2248
2249
|
}), [
|
|
2249
|
-
n.hideTitle ? C("", !0) : (
|
|
2250
|
-
|
|
2250
|
+
n.hideTitle ? C("", !0) : (r(), v(A, { key: 0 }, [
|
|
2251
|
+
k(n.$slots, "title", {}, () => [
|
|
2251
2252
|
m("h3", {
|
|
2252
2253
|
class: F(n.titleClass),
|
|
2253
2254
|
"data-cy": "form-title"
|
|
@@ -2255,13 +2256,13 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2255
2256
|
]),
|
|
2256
2257
|
o[1] || (o[1] = m("hr", null, null, -1))
|
|
2257
2258
|
], 64)),
|
|
2258
|
-
i.value.hasError ? (
|
|
2259
|
+
i.value.hasError ? (r(), y(de, {
|
|
2259
2260
|
key: 1,
|
|
2260
2261
|
severity: "danger",
|
|
2261
2262
|
"data-cy": "error"
|
|
2262
2263
|
}, {
|
|
2263
|
-
default:
|
|
2264
|
-
|
|
2264
|
+
default: f(() => [
|
|
2265
|
+
k(n.$slots, "error", {
|
|
2265
2266
|
error: i.value.message
|
|
2266
2267
|
}, () => [
|
|
2267
2268
|
M(B(i.value.message), 1)
|
|
@@ -2269,10 +2270,10 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2269
2270
|
]),
|
|
2270
2271
|
_: 3
|
|
2271
2272
|
})) : C("", !0),
|
|
2272
|
-
|
|
2273
|
-
m("div",
|
|
2274
|
-
|
|
2275
|
-
n.hideCancel ? C("", !0) : (
|
|
2273
|
+
k(n.$slots, "default"),
|
|
2274
|
+
m("div", oa, [
|
|
2275
|
+
k(n.$slots, "cancel", {}, () => [
|
|
2276
|
+
n.hideCancel ? C("", !0) : (r(), y(s, {
|
|
2276
2277
|
key: 0,
|
|
2277
2278
|
"data-cy": "cancel-btn",
|
|
2278
2279
|
type: "reset",
|
|
@@ -2280,40 +2281,40 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2280
2281
|
outlined: "",
|
|
2281
2282
|
onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
|
|
2282
2283
|
}, {
|
|
2283
|
-
default:
|
|
2284
|
+
default: f(() => [
|
|
2284
2285
|
M(B(n.cancelText), 1)
|
|
2285
2286
|
]),
|
|
2286
2287
|
_: 1
|
|
2287
2288
|
}))
|
|
2288
2289
|
]),
|
|
2289
|
-
|
|
2290
|
+
k(n.$slots, "submit", { submit: l }, () => [
|
|
2290
2291
|
h(s, {
|
|
2291
2292
|
"data-cy": "submit-btn",
|
|
2292
2293
|
type: "submit",
|
|
2293
2294
|
severity: "primary",
|
|
2294
2295
|
class: "ms-auto"
|
|
2295
2296
|
}, {
|
|
2296
|
-
default:
|
|
2297
|
+
default: f(() => [
|
|
2297
2298
|
M(B(n.submitText), 1)
|
|
2298
2299
|
]),
|
|
2299
2300
|
_: 1
|
|
2300
2301
|
})
|
|
2301
2302
|
])
|
|
2302
2303
|
]),
|
|
2303
|
-
a.value ? (
|
|
2304
|
+
a.value ? (r(), y(pe, {
|
|
2304
2305
|
key: 2,
|
|
2305
2306
|
"data-cy": "loading-spinner"
|
|
2306
2307
|
})) : C("", !0)
|
|
2307
2308
|
], 16);
|
|
2308
2309
|
};
|
|
2309
2310
|
}
|
|
2310
|
-
}),
|
|
2311
|
+
}), sa = {
|
|
2311
2312
|
key: 1,
|
|
2312
2313
|
class: "d-flex flex-column w-100"
|
|
2313
|
-
},
|
|
2314
|
+
}, ra = ["for"], da = {
|
|
2314
2315
|
key: 0,
|
|
2315
2316
|
class: "text-danger fw-600"
|
|
2316
|
-
},
|
|
2317
|
+
}, sl = /* @__PURE__ */ S({
|
|
2317
2318
|
__name: "ForgeFormField",
|
|
2318
2319
|
props: /* @__PURE__ */ R({
|
|
2319
2320
|
name: {},
|
|
@@ -2330,24 +2331,24 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2330
2331
|
}),
|
|
2331
2332
|
emits: ["update:modelValue"],
|
|
2332
2333
|
setup(e) {
|
|
2333
|
-
const t = N(e, "modelValue"), a = e, i = (
|
|
2334
|
-
a.type == "number" ? s(
|
|
2334
|
+
const t = N(e, "modelValue"), a = e, i = (x) => {
|
|
2335
|
+
a.type == "number" ? s(x.value) : s(x);
|
|
2335
2336
|
}, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } = oe(() => a.name, void 0, {
|
|
2336
2337
|
initialValue: t.value
|
|
2337
|
-
}), c =
|
|
2338
|
-
return
|
|
2339
|
-
t.value =
|
|
2340
|
-
}, { immediate: !0 }), (
|
|
2341
|
-
const
|
|
2342
|
-
return a.type === "checkbox" ? (
|
|
2338
|
+
}), c = z(() => l.value.length > 0);
|
|
2339
|
+
return Q(() => n.value, (x) => {
|
|
2340
|
+
t.value = x;
|
|
2341
|
+
}, { immediate: !0 }), (x, d) => {
|
|
2342
|
+
const $ = Ne, T = Oe, D = se, O = ie, U = re, g = xe;
|
|
2343
|
+
return a.type === "checkbox" ? (r(), y(ye, P({
|
|
2343
2344
|
key: 0,
|
|
2344
2345
|
id: a.name,
|
|
2345
2346
|
label: a.fieldLabel
|
|
2346
|
-
},
|
|
2347
|
+
}, x.$attrs, {
|
|
2347
2348
|
name: a.name,
|
|
2348
2349
|
modelValue: t.value,
|
|
2349
|
-
"onUpdate:modelValue":
|
|
2350
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (
|
|
2350
|
+
"onUpdate:modelValue": d[0] || (d[0] = (w) => t.value = w)
|
|
2351
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(), v("div", sa, [
|
|
2351
2352
|
m("div", {
|
|
2352
2353
|
"data-cy": "input-wrapper",
|
|
2353
2354
|
class: F(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2357,65 +2358,65 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2357
2358
|
class: F(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2358
2359
|
}, [
|
|
2359
2360
|
M(B(a.fieldLabel) + " ", 1),
|
|
2360
|
-
|
|
2361
|
-
], 10,
|
|
2362
|
-
|
|
2363
|
-
a.type === "number" ? (
|
|
2361
|
+
x.required ? (r(), v("span", da, "*")) : C("", !0)
|
|
2362
|
+
], 10, ra),
|
|
2363
|
+
k(x.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
|
|
2364
|
+
a.type === "number" ? (r(), y(u(fe), P({
|
|
2364
2365
|
key: 0,
|
|
2365
2366
|
id: a.name
|
|
2366
|
-
},
|
|
2367
|
+
}, x.$attrs, {
|
|
2367
2368
|
placeholder: a.placeholder,
|
|
2368
2369
|
"input-class": { "is-invalid": c.value },
|
|
2369
2370
|
class: { "is-invalid": c.value },
|
|
2370
2371
|
onInput: i,
|
|
2371
2372
|
modelValue: t.value,
|
|
2372
|
-
"onUpdate:modelValue":
|
|
2373
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (
|
|
2373
|
+
"onUpdate:modelValue": d[1] || (d[1] = (w) => t.value = w)
|
|
2374
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), y($, P({
|
|
2374
2375
|
key: 1,
|
|
2375
2376
|
id: a.name
|
|
2376
|
-
},
|
|
2377
|
+
}, x.$attrs, {
|
|
2377
2378
|
placeholder: a.placeholder,
|
|
2378
2379
|
class: { "is-invalid": c.value },
|
|
2379
2380
|
modelValue: t.value,
|
|
2380
|
-
"onUpdate:modelValue":
|
|
2381
|
+
"onUpdate:modelValue": d[2] || (d[2] = (w) => t.value = w),
|
|
2381
2382
|
onInput: i,
|
|
2382
2383
|
onBlur: u(p)
|
|
2383
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (
|
|
2384
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), y(T, P({
|
|
2384
2385
|
key: 2,
|
|
2385
2386
|
id: a.name
|
|
2386
|
-
},
|
|
2387
|
+
}, x.$attrs, {
|
|
2387
2388
|
placeholder: a.placeholder,
|
|
2388
2389
|
mask: a.mask,
|
|
2389
2390
|
class: { "is-invalid": c.value },
|
|
2390
2391
|
modelValue: t.value,
|
|
2391
|
-
"onUpdate:modelValue":
|
|
2392
|
+
"onUpdate:modelValue": d[3] || (d[3] = (w) => t.value = w),
|
|
2392
2393
|
onComplete: i,
|
|
2393
2394
|
onBlur: u(p)
|
|
2394
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (
|
|
2395
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), y(D, P({
|
|
2395
2396
|
key: 3,
|
|
2396
2397
|
id: a.name
|
|
2397
|
-
},
|
|
2398
|
+
}, x.$attrs, {
|
|
2398
2399
|
placeholder: a.placeholder,
|
|
2399
2400
|
class: { "is-invalid": c.value },
|
|
2400
2401
|
modelValue: t.value,
|
|
2401
|
-
"onUpdate:modelValue":
|
|
2402
|
+
"onUpdate:modelValue": d[4] || (d[4] = (w) => t.value = w),
|
|
2402
2403
|
onInput: i,
|
|
2403
2404
|
onBlur: u(p)
|
|
2404
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (
|
|
2405
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), y(O, P({ key: 4 }, { ...a, ...x.$attrs }, {
|
|
2405
2406
|
modelValue: t.value,
|
|
2406
|
-
"onUpdate:modelValue":
|
|
2407
|
+
"onUpdate:modelValue": d[5] || (d[5] = (w) => t.value = w),
|
|
2407
2408
|
class: { "is-invalid": c.value }
|
|
2408
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (
|
|
2409
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), y(U, P({ key: 5 }, { ...a, ...x.$attrs }, {
|
|
2409
2410
|
modelValue: t.value,
|
|
2410
|
-
"onUpdate:modelValue":
|
|
2411
|
+
"onUpdate:modelValue": d[6] || (d[6] = (w) => t.value = w),
|
|
2411
2412
|
class: { "is-invalid": c.value }
|
|
2412
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (
|
|
2413
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), y(Xt, P({ key: 6 }, { ...a, ...x.$attrs }, {
|
|
2413
2414
|
modelValue: t.value,
|
|
2414
|
-
"onUpdate:modelValue":
|
|
2415
|
+
"onUpdate:modelValue": d[7] || (d[7] = (w) => t.value = w),
|
|
2415
2416
|
class: { "is-invalid": c.value }
|
|
2416
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (
|
|
2417
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), y(g, P({ key: 7 }, { ...a, ...x.$attrs }, {
|
|
2417
2418
|
modelValue: t.value,
|
|
2418
|
-
"onUpdate:modelValue":
|
|
2419
|
+
"onUpdate:modelValue": d[8] || (d[8] = (w) => t.value = w),
|
|
2419
2420
|
class: { "is-invalid": c.value }
|
|
2420
2421
|
}), null, 16, ["modelValue", "class"])) : C("", !0)
|
|
2421
2422
|
])
|
|
@@ -2429,7 +2430,7 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2429
2430
|
]));
|
|
2430
2431
|
};
|
|
2431
2432
|
}
|
|
2432
|
-
}),
|
|
2433
|
+
}), rl = /* @__PURE__ */ S({
|
|
2433
2434
|
__name: "ForgeChip",
|
|
2434
2435
|
props: {
|
|
2435
2436
|
chipSeverity: { default: "primary" },
|
|
@@ -2445,7 +2446,7 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2445
2446
|
unstyled: { type: Boolean }
|
|
2446
2447
|
},
|
|
2447
2448
|
setup(e) {
|
|
2448
|
-
const t = e, a =
|
|
2449
|
+
const t = e, a = z(() => ({
|
|
2449
2450
|
root: [
|
|
2450
2451
|
"badge d-inline-flex align-items-center border me-1 p-1",
|
|
2451
2452
|
{
|
|
@@ -2465,15 +2466,15 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2465
2466
|
}));
|
|
2466
2467
|
return (i, l) => {
|
|
2467
2468
|
const n = Ae;
|
|
2468
|
-
return
|
|
2469
|
-
default:
|
|
2470
|
-
(
|
|
2469
|
+
return r(), y(n, P({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2470
|
+
default: f(() => [
|
|
2471
|
+
(r(!0), v(A, null, E(i.$slots, (o, s) => k(i.$slots, s, { slot: s })), 256))
|
|
2471
2472
|
]),
|
|
2472
2473
|
_: 3
|
|
2473
2474
|
}, 16, ["pt"]);
|
|
2474
2475
|
};
|
|
2475
2476
|
}
|
|
2476
|
-
}),
|
|
2477
|
+
}), dl = /* @__PURE__ */ S({
|
|
2477
2478
|
__name: "ForgeProgressBar",
|
|
2478
2479
|
props: {
|
|
2479
2480
|
severity: { default: "primary" },
|
|
@@ -2489,7 +2490,7 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2489
2490
|
unstyled: { type: Boolean }
|
|
2490
2491
|
},
|
|
2491
2492
|
setup(e) {
|
|
2492
|
-
const t = e, a =
|
|
2493
|
+
const t = e, a = z(() => t.striped ? "progress-bar-striped" : null), i = z(() => t.animate ? "progress-bar-animated" : null), l = z(() => {
|
|
2493
2494
|
switch (t.severity) {
|
|
2494
2495
|
case "brand":
|
|
2495
2496
|
return "bg-brand";
|
|
@@ -2510,7 +2511,7 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2510
2511
|
default:
|
|
2511
2512
|
return "bg-primary";
|
|
2512
2513
|
}
|
|
2513
|
-
}), n =
|
|
2514
|
+
}), n = z(() => ({
|
|
2514
2515
|
root: {
|
|
2515
2516
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2516
2517
|
},
|
|
@@ -2520,16 +2521,16 @@ const Ot = { key: 0 }, Nt = {
|
|
|
2520
2521
|
}));
|
|
2521
2522
|
return (o, s) => {
|
|
2522
2523
|
const p = Ee;
|
|
2523
|
-
return
|
|
2524
|
-
default:
|
|
2525
|
-
|
|
2524
|
+
return r(), y(p, P({ ...o.$attrs, ...t }, { pt: n.value }), {
|
|
2525
|
+
default: f(() => [
|
|
2526
|
+
k(o.$slots, "default")
|
|
2526
2527
|
]),
|
|
2527
2528
|
_: 3
|
|
2528
2529
|
}, 16, ["pt"]);
|
|
2529
2530
|
};
|
|
2530
2531
|
}
|
|
2531
2532
|
});
|
|
2532
|
-
var
|
|
2533
|
+
var pa = /* @__PURE__ */ S({
|
|
2533
2534
|
name: "VueDrawingCanvas",
|
|
2534
2535
|
props: {
|
|
2535
2536
|
strokeType: {
|
|
@@ -2844,11 +2845,11 @@ var da = /* @__PURE__ */ S({
|
|
|
2844
2845
|
const o = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2845
2846
|
var p = t.split(o).filter((O) => O.length > 0);
|
|
2846
2847
|
for (let O = 0; O < p.length; O++) {
|
|
2847
|
-
for (var c = p[O].split(s).filter((
|
|
2848
|
-
var
|
|
2849
|
-
D > l &&
|
|
2848
|
+
for (var c = p[O].split(s).filter((U) => U.length > 0), x = "", d = 0; d < c.length; d++) {
|
|
2849
|
+
var $ = x + c[d] + " ", T = e.measureText($), D = T.width;
|
|
2850
|
+
D > l && d > 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 = c[d] + " ", i += n) : x = $;
|
|
2850
2851
|
}
|
|
2851
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2852
|
+
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 += c.length > 0 ? n : 0;
|
|
2852
2853
|
}
|
|
2853
2854
|
},
|
|
2854
2855
|
save() {
|
|
@@ -2875,13 +2876,13 @@ var da = /* @__PURE__ */ S({
|
|
|
2875
2876
|
} else if (a.type === "Text") {
|
|
2876
2877
|
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", o = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
|
|
2877
2878
|
if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
|
|
2878
|
-
let
|
|
2879
|
-
a.fontStyle && a.fontStyle.width ?
|
|
2879
|
+
let d, $;
|
|
2880
|
+
a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(d, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(d * -1, $ * -1);
|
|
2880
2881
|
}
|
|
2881
2882
|
a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = o, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
|
|
2882
|
-
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
2883
|
-
if (s.width = Number(c), s.height = Number(
|
|
2884
|
-
return p.drawImage(e, 0, 0, Number(c), Number(
|
|
2883
|
+
let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, x = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2884
|
+
if (s.width = Number(c), s.height = Number(x), p)
|
|
2885
|
+
return p.drawImage(e, 0, 0, Number(c), Number(x)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
|
|
2885
2886
|
}
|
|
2886
2887
|
},
|
|
2887
2888
|
isEmpty() {
|
|
@@ -2919,7 +2920,7 @@ var da = /* @__PURE__ */ S({
|
|
|
2919
2920
|
});
|
|
2920
2921
|
}
|
|
2921
2922
|
});
|
|
2922
|
-
const
|
|
2923
|
+
const ca = { class: "d-flex flex-column" }, ua = { class: "d-flex flex-row mt-1 gap-1" }, pl = /* @__PURE__ */ S({
|
|
2923
2924
|
__name: "ForgeScratchpad",
|
|
2924
2925
|
props: {
|
|
2925
2926
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2932,7 +2933,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
|
|
|
2932
2933
|
},
|
|
2933
2934
|
emits: ["save"],
|
|
2934
2935
|
setup(e, { emit: t }) {
|
|
2935
|
-
const a = e, i = t, l = ze("drawingCanvas"), n =
|
|
2936
|
+
const a = e, i = t, l = ze("drawingCanvas"), n = j(), o = () => {
|
|
2936
2937
|
l == null || l.value.reset();
|
|
2937
2938
|
}, s = () => {
|
|
2938
2939
|
l == null || l.value.redo();
|
|
@@ -2941,63 +2942,63 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
|
|
|
2941
2942
|
}, c = () => {
|
|
2942
2943
|
i("save", l.value.isEmpty());
|
|
2943
2944
|
};
|
|
2944
|
-
return (
|
|
2945
|
-
const
|
|
2946
|
-
return
|
|
2947
|
-
h(u(
|
|
2945
|
+
return (x, d) => {
|
|
2946
|
+
const $ = q;
|
|
2947
|
+
return r(), v("div", ca, [
|
|
2948
|
+
h(u(pa), P({
|
|
2948
2949
|
ref_key: "drawingCanvas",
|
|
2949
2950
|
ref: l,
|
|
2950
2951
|
image: n.value,
|
|
2951
|
-
"onUpdate:image":
|
|
2952
|
+
"onUpdate:image": d[0] || (d[0] = (T) => n.value = T),
|
|
2952
2953
|
"data-cy": "drawing-canvas",
|
|
2953
2954
|
class: "border canvas"
|
|
2954
|
-
}, { ...
|
|
2955
|
-
height:
|
|
2956
|
-
width:
|
|
2957
|
-
style: `height: ${
|
|
2958
|
-
"line-join":
|
|
2955
|
+
}, { ...x.$attrs }, {
|
|
2956
|
+
height: x.height,
|
|
2957
|
+
width: x.width,
|
|
2958
|
+
style: `height: ${x.height}px; width: ${x.width}px`,
|
|
2959
|
+
"line-join": x.lineJoin
|
|
2959
2960
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2960
|
-
m("div",
|
|
2961
|
-
a.showUndo ? (
|
|
2961
|
+
m("div", ua, [
|
|
2962
|
+
a.showUndo ? (r(), y($, {
|
|
2962
2963
|
key: 0,
|
|
2963
2964
|
onClick: p,
|
|
2964
2965
|
outlined: "",
|
|
2965
2966
|
"data-cy": "undo-button"
|
|
2966
2967
|
}, {
|
|
2967
|
-
default:
|
|
2968
|
+
default: f(() => d[1] || (d[1] = [
|
|
2968
2969
|
M("Undo")
|
|
2969
2970
|
])),
|
|
2970
2971
|
_: 1
|
|
2971
2972
|
})) : C("", !0),
|
|
2972
|
-
a.showRedo ? (
|
|
2973
|
+
a.showRedo ? (r(), y($, {
|
|
2973
2974
|
key: 1,
|
|
2974
2975
|
onClick: s,
|
|
2975
2976
|
outlined: "",
|
|
2976
2977
|
"data-cy": "redo-button"
|
|
2977
2978
|
}, {
|
|
2978
|
-
default:
|
|
2979
|
+
default: f(() => d[2] || (d[2] = [
|
|
2979
2980
|
M("Redo")
|
|
2980
2981
|
])),
|
|
2981
2982
|
_: 1
|
|
2982
2983
|
})) : C("", !0),
|
|
2983
|
-
a.showClear ? (
|
|
2984
|
+
a.showClear ? (r(), y($, {
|
|
2984
2985
|
key: 2,
|
|
2985
2986
|
onClick: o,
|
|
2986
2987
|
outlined: "",
|
|
2987
2988
|
"data-cy": "clear-button"
|
|
2988
2989
|
}, {
|
|
2989
|
-
default:
|
|
2990
|
+
default: f(() => d[3] || (d[3] = [
|
|
2990
2991
|
M("Clear")
|
|
2991
2992
|
])),
|
|
2992
2993
|
_: 1
|
|
2993
2994
|
})) : C("", !0),
|
|
2994
|
-
a.showSave ? (
|
|
2995
|
+
a.showSave ? (r(), y($, {
|
|
2995
2996
|
key: 3,
|
|
2996
2997
|
onClick: c,
|
|
2997
2998
|
class: "ms-auto",
|
|
2998
2999
|
"data-cy": "save-button"
|
|
2999
3000
|
}, {
|
|
3000
|
-
default:
|
|
3001
|
+
default: f(() => d[4] || (d[4] = [
|
|
3001
3002
|
M("Save")
|
|
3002
3003
|
])),
|
|
3003
3004
|
_: 1
|
|
@@ -3006,7 +3007,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
|
|
|
3006
3007
|
]);
|
|
3007
3008
|
};
|
|
3008
3009
|
}
|
|
3009
|
-
}),
|
|
3010
|
+
}), ma = { class: "value text-white w-100 text-center" }, cl = /* @__PURE__ */ S({
|
|
3010
3011
|
__name: "ForgeStatWidget",
|
|
3011
3012
|
props: {
|
|
3012
3013
|
size: { default: "md" },
|
|
@@ -3014,15 +3015,15 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
|
|
|
3014
3015
|
},
|
|
3015
3016
|
setup(e) {
|
|
3016
3017
|
const t = e;
|
|
3017
|
-
return (a, i) => (
|
|
3018
|
+
return (a, i) => (r(), v("div", P(a.$attrs, {
|
|
3018
3019
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3019
3020
|
}), [
|
|
3020
|
-
m("span",
|
|
3021
|
-
|
|
3021
|
+
m("span", ma, [
|
|
3022
|
+
k(a.$slots, "default")
|
|
3022
3023
|
])
|
|
3023
3024
|
], 16));
|
|
3024
3025
|
}
|
|
3025
|
-
}),
|
|
3026
|
+
}), va = { key: 0 }, ul = /* @__PURE__ */ S({
|
|
3026
3027
|
__name: "ForgeStepper",
|
|
3027
3028
|
props: {
|
|
3028
3029
|
currentStep: { default: 1 },
|
|
@@ -3040,7 +3041,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
|
|
|
3040
3041
|
unstyled: { type: Boolean }
|
|
3041
3042
|
},
|
|
3042
3043
|
setup(e) {
|
|
3043
|
-
const t = e, a =
|
|
3044
|
+
const t = e, a = z(() => ({
|
|
3044
3045
|
header: {
|
|
3045
3046
|
class: [
|
|
3046
3047
|
"p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
|
|
@@ -3069,18 +3070,18 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
|
|
|
3069
3070
|
]
|
|
3070
3071
|
})
|
|
3071
3072
|
}));
|
|
3072
|
-
return (i, l) => (
|
|
3073
|
-
default:
|
|
3073
|
+
return (i, l) => (r(), y(u(qe), { value: i.currentStep }, {
|
|
3074
|
+
default: f(() => [
|
|
3074
3075
|
h(u(Le), null, {
|
|
3075
|
-
default:
|
|
3076
|
-
(
|
|
3076
|
+
default: f(() => [
|
|
3077
|
+
(r(!0), v(A, null, E(i.steps, (n) => (r(), y(u(Ue), P({
|
|
3077
3078
|
key: n.value,
|
|
3078
3079
|
value: n.value,
|
|
3079
3080
|
disabled: n.disabled,
|
|
3080
3081
|
ref_for: !0
|
|
3081
3082
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
3082
|
-
default:
|
|
3083
|
-
i.showStepLabel ? (
|
|
3083
|
+
default: f(() => [
|
|
3084
|
+
i.showStepLabel ? (r(), v("div", va, B(n.label), 1)) : C("", !0)
|
|
3084
3085
|
]),
|
|
3085
3086
|
_: 2
|
|
3086
3087
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -3088,13 +3089,13 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
|
|
|
3088
3089
|
_: 1
|
|
3089
3090
|
}),
|
|
3090
3091
|
h(u(He), null, {
|
|
3091
|
-
default:
|
|
3092
|
-
(
|
|
3092
|
+
default: f(() => [
|
|
3093
|
+
(r(!0), v(A, null, E(i.steps, (n) => (r(), y(u(Re), {
|
|
3093
3094
|
key: n.value,
|
|
3094
3095
|
value: n.value
|
|
3095
3096
|
}, {
|
|
3096
|
-
default:
|
|
3097
|
-
|
|
3097
|
+
default: f(() => [
|
|
3098
|
+
k(i.$slots, "step" + n.value)
|
|
3098
3099
|
]),
|
|
3099
3100
|
_: 2
|
|
3100
3101
|
}, 1032, ["value"]))), 128))
|
|
@@ -3105,7 +3106,7 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
|
|
|
3105
3106
|
_: 3
|
|
3106
3107
|
}, 8, ["value"]));
|
|
3107
3108
|
}
|
|
3108
|
-
}),
|
|
3109
|
+
}), fa = { class: "p-4 text-wrap w-100" }, ga = { class: "p-4 text-wrap w-100" }, ml = /* @__PURE__ */ S({
|
|
3109
3110
|
__name: "ForgeTile",
|
|
3110
3111
|
props: {
|
|
3111
3112
|
severity: { default: "primary" },
|
|
@@ -3114,31 +3115,31 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
|
|
|
3114
3115
|
selected: { type: Boolean, default: !1 }
|
|
3115
3116
|
},
|
|
3116
3117
|
setup(e) {
|
|
3117
|
-
const t = e, a =
|
|
3118
|
+
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" : ""}`);
|
|
3118
3119
|
return (l, n) => {
|
|
3119
3120
|
const o = q;
|
|
3120
|
-
return t.clickable ? (
|
|
3121
|
+
return t.clickable ? (r(), y(o, {
|
|
3121
3122
|
key: 0,
|
|
3122
3123
|
class: F(["d-flex w-100 p-0 text-body", a.value]),
|
|
3123
3124
|
severity: t.severity,
|
|
3124
3125
|
unstyled: "",
|
|
3125
3126
|
"data-cy": "button-tile"
|
|
3126
3127
|
}, {
|
|
3127
|
-
default:
|
|
3128
|
-
m("div",
|
|
3129
|
-
|
|
3128
|
+
default: f(() => [
|
|
3129
|
+
m("div", fa, [
|
|
3130
|
+
k(l.$slots, "default", {}, () => [
|
|
3130
3131
|
n[0] || (n[0] = M("Tile Content"))
|
|
3131
3132
|
])
|
|
3132
3133
|
])
|
|
3133
3134
|
]),
|
|
3134
3135
|
_: 3
|
|
3135
|
-
}, 8, ["severity", "class"])) : (
|
|
3136
|
+
}, 8, ["severity", "class"])) : (r(), v("div", {
|
|
3136
3137
|
key: 1,
|
|
3137
3138
|
class: F(["d-flex w-100", i.value]),
|
|
3138
3139
|
"data-cy": "tile"
|
|
3139
3140
|
}, [
|
|
3140
|
-
m("div",
|
|
3141
|
-
|
|
3141
|
+
m("div", ga, [
|
|
3142
|
+
k(l.$slots, "default", {}, () => [
|
|
3142
3143
|
n[1] || (n[1] = M("Tile Content"))
|
|
3143
3144
|
])
|
|
3144
3145
|
])
|
|
@@ -3146,13 +3147,13 @@ const pa = { class: "d-flex flex-column" }, ca = { class: "d-flex flex-row mt-1
|
|
|
3146
3147
|
};
|
|
3147
3148
|
}
|
|
3148
3149
|
});
|
|
3149
|
-
function
|
|
3150
|
+
function ee(e, t) {
|
|
3150
3151
|
return e > 1 ? `${t}s` : t;
|
|
3151
3152
|
}
|
|
3152
|
-
const
|
|
3153
|
+
const ba = {
|
|
3153
3154
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3154
3155
|
"data-cy": "pagination-header"
|
|
3155
|
-
},
|
|
3156
|
+
}, ya = { class: "ms-2" }, xa = { key: 0 }, ha = {
|
|
3156
3157
|
class: "w-auto",
|
|
3157
3158
|
"data-cy": "total"
|
|
3158
3159
|
}, he = /* @__PURE__ */ S({
|
|
@@ -3166,30 +3167,31 @@ const ga = {
|
|
|
3166
3167
|
setup(e, { emit: t }) {
|
|
3167
3168
|
const a = t, i = e, l = (o) => {
|
|
3168
3169
|
a("update:perPage", o.value);
|
|
3169
|
-
}, n =
|
|
3170
|
+
}, n = z(() => {
|
|
3170
3171
|
const o = Math.ceil(i.total / i.perPage);
|
|
3171
|
-
return `${o} ${
|
|
3172
|
+
return `${o} ${ee(o, "page")}`;
|
|
3172
3173
|
});
|
|
3173
|
-
return (o, s) => (
|
|
3174
|
+
return (o, s) => (r(), v("div", ba, [
|
|
3174
3175
|
s[2] || (s[2] = M(" Number of results per page ")),
|
|
3175
|
-
m("div",
|
|
3176
|
+
m("div", ya, [
|
|
3176
3177
|
h(u(ie), {
|
|
3177
3178
|
options: i.pageSizes,
|
|
3178
3179
|
"model-value": i.perPage,
|
|
3179
3180
|
class: "page-size",
|
|
3180
|
-
onChange: s[0] || (s[0] = (p) => l(p))
|
|
3181
|
+
onChange: s[0] || (s[0] = (p) => l(p)),
|
|
3182
|
+
"data-cy": "pagination-page-size-select"
|
|
3181
3183
|
}, null, 8, ["options", "model-value"])
|
|
3182
3184
|
]),
|
|
3183
|
-
i.total ? (
|
|
3185
|
+
i.total ? (r(), v("div", xa, [
|
|
3184
3186
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3185
|
-
m("span",
|
|
3187
|
+
m("span", ha, B(i.total) + " " + B(u(ee)(i.total, "result")) + " across " + B(n.value), 1)
|
|
3186
3188
|
])) : C("", !0)
|
|
3187
3189
|
]));
|
|
3188
3190
|
}
|
|
3189
|
-
}),
|
|
3191
|
+
}), wa = { class: "position-relative" }, ka = { "data-cy": "above-table-slot" }, $a = { class: "d-flex w-100" }, Ba = {
|
|
3190
3192
|
class: "mx-auto",
|
|
3191
3193
|
"data-cy": "empty-message"
|
|
3192
|
-
},
|
|
3194
|
+
}, Fa = { class: "d-flex" }, Sa = { class: "d-flex align-items-end mb-2" }, Ca = { key: 0 }, za = { class: "ms-auto" }, vl = /* @__PURE__ */ S({
|
|
3193
3195
|
__name: "ForgeTable",
|
|
3194
3196
|
props: {
|
|
3195
3197
|
value: {},
|
|
@@ -3200,6 +3202,7 @@ const ga = {
|
|
|
3200
3202
|
severity: {},
|
|
3201
3203
|
clearAll: {},
|
|
3202
3204
|
emptyMessage: {},
|
|
3205
|
+
perPage: {},
|
|
3203
3206
|
dataKey: {},
|
|
3204
3207
|
rows: {},
|
|
3205
3208
|
first: {},
|
|
@@ -3275,17 +3278,21 @@ const ga = {
|
|
|
3275
3278
|
},
|
|
3276
3279
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3277
3280
|
setup(e, { emit: t }) {
|
|
3278
|
-
const a = t, i = e, l =
|
|
3281
|
+
const a = t, i = e, l = j(), n = j([5, 10, 20, 50, 100]), o = j(i.perPage ?? 10), s = j({
|
|
3279
3282
|
filters: i.filters,
|
|
3280
3283
|
perPage: o.value,
|
|
3281
3284
|
page: 0,
|
|
3282
3285
|
sortDirection: "None",
|
|
3283
3286
|
sortField: "",
|
|
3284
3287
|
total: i.totalRecords ?? i.value.length
|
|
3285
|
-
})
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
})
|
|
3288
|
+
});
|
|
3289
|
+
Q(() => i.perPage, (g) => {
|
|
3290
|
+
g && (o.value = g, s.value.perPage = g);
|
|
3291
|
+
});
|
|
3292
|
+
const p = z(() => i.totalRecords ?? i.value.length), c = z(() => {
|
|
3293
|
+
const g = Math.ceil(p.value / o.value);
|
|
3294
|
+
return `${g} ${ee(g, "page")}`;
|
|
3295
|
+
}), x = z(() => ({
|
|
3289
3296
|
thead: () => ({
|
|
3290
3297
|
class: [
|
|
3291
3298
|
{
|
|
@@ -3308,35 +3315,35 @@ const ga = {
|
|
|
3308
3315
|
}
|
|
3309
3316
|
]
|
|
3310
3317
|
})
|
|
3311
|
-
})),
|
|
3318
|
+
})), d = () => {
|
|
3312
3319
|
if (i.clearAll)
|
|
3313
3320
|
i.clearAll();
|
|
3314
3321
|
else
|
|
3315
|
-
for (const
|
|
3316
|
-
typeof i.filters[
|
|
3322
|
+
for (const g in i.filters)
|
|
3323
|
+
typeof i.filters[g] == "string" ? i.filters[g] = "" : i.filters[g].value = null;
|
|
3317
3324
|
D(i.filters);
|
|
3318
|
-
},
|
|
3325
|
+
}, $ = () => {
|
|
3319
3326
|
l.value.exportCSV();
|
|
3320
|
-
},
|
|
3327
|
+
}, T = (g) => {
|
|
3321
3328
|
var w;
|
|
3322
|
-
s.value.sortDirection =
|
|
3323
|
-
}, D = (
|
|
3324
|
-
s.value.filters =
|
|
3325
|
-
}, O = (
|
|
3326
|
-
s.value.page =
|
|
3327
|
-
},
|
|
3329
|
+
s.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((w = g.sortField) == null ? void 0 : w.toString()) ?? "", a("update:tableContext", s.value), a("sort", g);
|
|
3330
|
+
}, D = (g) => {
|
|
3331
|
+
s.value.filters = g, a("update:tableContext", s.value), a("update:filters", g);
|
|
3332
|
+
}, O = (g) => {
|
|
3333
|
+
s.value.page = g.page, a("update:tableContext", s.value), a("page", g);
|
|
3334
|
+
}, U = () => {
|
|
3328
3335
|
s.value.perPage = o.value, a("update:tableContext", s.value);
|
|
3329
3336
|
};
|
|
3330
|
-
return
|
|
3331
|
-
s.value.filters =
|
|
3332
|
-
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (
|
|
3333
|
-
m("span",
|
|
3334
|
-
|
|
3337
|
+
return Q(() => i.filters, (g) => {
|
|
3338
|
+
s.value.filters = g, a("update:tableContext", s.value);
|
|
3339
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (g, w) => (r(), v("div", wa, [
|
|
3340
|
+
m("span", ka, [
|
|
3341
|
+
k(g.$slots, "above-table")
|
|
3335
3342
|
]),
|
|
3336
|
-
h(u(We),
|
|
3343
|
+
h(u(We), P({
|
|
3337
3344
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3338
|
-
}, { ...i, ...
|
|
3339
|
-
pt:
|
|
3345
|
+
}, { ...i, ...g.$attrs }, {
|
|
3346
|
+
pt: x.value,
|
|
3340
3347
|
rows: o.value,
|
|
3341
3348
|
"total-records": p.value,
|
|
3342
3349
|
"filter-display": i.filters ? "row" : void 0,
|
|
@@ -3344,43 +3351,43 @@ const ga = {
|
|
|
3344
3351
|
ref: l,
|
|
3345
3352
|
"data-cy": "table",
|
|
3346
3353
|
"onUpdate:filters": D,
|
|
3347
|
-
onSort:
|
|
3354
|
+
onSort: T,
|
|
3348
3355
|
onPage: O,
|
|
3349
3356
|
showHeaders: ""
|
|
3350
3357
|
}), ae({
|
|
3351
|
-
empty:
|
|
3352
|
-
m("div",
|
|
3353
|
-
m("h5",
|
|
3358
|
+
empty: f(() => [
|
|
3359
|
+
m("div", $a, [
|
|
3360
|
+
m("h5", Ba, B(g.emptyMessage ?? "No items Found."), 1)
|
|
3354
3361
|
])
|
|
3355
3362
|
]),
|
|
3356
|
-
header:
|
|
3363
|
+
header: f(() => [
|
|
3357
3364
|
m("div", {
|
|
3358
3365
|
class: F(i.loading ? "opacity-50" : "")
|
|
3359
3366
|
}, [
|
|
3360
|
-
m("div",
|
|
3361
|
-
m("div",
|
|
3362
|
-
|
|
3367
|
+
m("div", Fa, [
|
|
3368
|
+
m("div", Sa, [
|
|
3369
|
+
g.paginator && !g.legacyPaginationFooter ? (r(), v("span", Ca, [
|
|
3363
3370
|
h(he, {
|
|
3364
3371
|
total: p.value,
|
|
3365
3372
|
"page-sizes": n.value,
|
|
3366
3373
|
"per-page": o.value,
|
|
3367
3374
|
"onUpdate:perPage": [
|
|
3368
|
-
w[0] || (w[0] = (
|
|
3369
|
-
|
|
3375
|
+
w[0] || (w[0] = (I) => o.value = I),
|
|
3376
|
+
U
|
|
3370
3377
|
]
|
|
3371
3378
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3372
3379
|
])) : C("", !0)
|
|
3373
3380
|
]),
|
|
3374
|
-
m("div",
|
|
3375
|
-
|
|
3381
|
+
m("div", za, [
|
|
3382
|
+
g.showClearButton ? (r(), y(u(q), {
|
|
3376
3383
|
key: 0,
|
|
3377
3384
|
outlined: "",
|
|
3378
|
-
class: F(
|
|
3379
|
-
onClick:
|
|
3385
|
+
class: F(g.showExporterButton ? "me-2" : ""),
|
|
3386
|
+
onClick: d,
|
|
3380
3387
|
"data-cy": "clear-all"
|
|
3381
3388
|
}, {
|
|
3382
|
-
default:
|
|
3383
|
-
h(u(
|
|
3389
|
+
default: f(() => [
|
|
3390
|
+
h(u(_), {
|
|
3384
3391
|
icon: "bi:funnel-fill",
|
|
3385
3392
|
width: "24",
|
|
3386
3393
|
height: "24"
|
|
@@ -3389,14 +3396,14 @@ const ga = {
|
|
|
3389
3396
|
]),
|
|
3390
3397
|
_: 1
|
|
3391
3398
|
}, 8, ["class"])) : C("", !0),
|
|
3392
|
-
|
|
3399
|
+
g.showExporterButton ? (r(), y(u(q), {
|
|
3393
3400
|
key: 1,
|
|
3394
3401
|
outlined: "",
|
|
3395
|
-
onClick:
|
|
3402
|
+
onClick: $,
|
|
3396
3403
|
"data-cy": "exporter"
|
|
3397
3404
|
}, {
|
|
3398
|
-
default:
|
|
3399
|
-
h(u(
|
|
3405
|
+
default: f(() => [
|
|
3406
|
+
h(u(_), {
|
|
3400
3407
|
icon: "typcn:export",
|
|
3401
3408
|
width: "24",
|
|
3402
3409
|
height: "24"
|
|
@@ -3405,25 +3412,25 @@ const ga = {
|
|
|
3405
3412
|
]),
|
|
3406
3413
|
_: 1
|
|
3407
3414
|
})) : C("", !0),
|
|
3408
|
-
|
|
3415
|
+
k(g.$slots, "column-customiser")
|
|
3409
3416
|
])
|
|
3410
3417
|
])
|
|
3411
3418
|
], 2)
|
|
3412
3419
|
]),
|
|
3413
|
-
default:
|
|
3414
|
-
|
|
3420
|
+
default: f(() => [
|
|
3421
|
+
k(g.$slots, "default")
|
|
3415
3422
|
]),
|
|
3416
3423
|
_: 2
|
|
3417
3424
|
}, [
|
|
3418
|
-
|
|
3419
|
-
name:
|
|
3420
|
-
fn:
|
|
3421
|
-
|
|
3425
|
+
E(g.$slots, (I, b) => ({
|
|
3426
|
+
name: b,
|
|
3427
|
+
fn: f((V) => [
|
|
3428
|
+
k(g.$slots, b, W(G(V || {})))
|
|
3422
3429
|
])
|
|
3423
3430
|
})),
|
|
3424
|
-
|
|
3431
|
+
g.legacyPaginationFooter ? {
|
|
3425
3432
|
name: "paginatorstart",
|
|
3426
|
-
fn:
|
|
3433
|
+
fn: f(() => [
|
|
3427
3434
|
m("span", {
|
|
3428
3435
|
class: F(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3429
3436
|
"data-cy": "legacy-page-size"
|
|
@@ -3432,28 +3439,28 @@ const ga = {
|
|
|
3432
3439
|
h(u(ie), {
|
|
3433
3440
|
options: n.value,
|
|
3434
3441
|
modelValue: o.value,
|
|
3435
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
3442
|
+
"onUpdate:modelValue": w[1] || (w[1] = (I) => o.value = I),
|
|
3436
3443
|
class: "ms-2",
|
|
3437
|
-
onClick:
|
|
3444
|
+
onClick: U
|
|
3438
3445
|
}, null, 8, ["options", "modelValue"])
|
|
3439
3446
|
], 2)
|
|
3440
3447
|
]),
|
|
3441
3448
|
key: "0"
|
|
3442
3449
|
} : void 0,
|
|
3443
|
-
|
|
3450
|
+
g.legacyPaginationFooter ? {
|
|
3444
3451
|
name: "paginatorend",
|
|
3445
|
-
fn:
|
|
3452
|
+
fn: f(() => [
|
|
3446
3453
|
m("span", {
|
|
3447
3454
|
"data-cy": "legacy-total",
|
|
3448
3455
|
class: F(i.loading ? "opacity-50" : "")
|
|
3449
|
-
}, B(p.value) + " " + B(u(
|
|
3456
|
+
}, B(p.value) + " " + B(u(ee)(p.value, "result")) + " across " + B(c.value), 3)
|
|
3450
3457
|
]),
|
|
3451
3458
|
key: "1"
|
|
3452
3459
|
} : void 0
|
|
3453
3460
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3454
3461
|
]));
|
|
3455
3462
|
}
|
|
3456
|
-
}),
|
|
3463
|
+
}), Ta = { class: "position-relative" }, Pa = { "data-cy": "above-table-slot" }, _a = { class: "d-flex" }, ja = { class: "d-flex align-items-end mb-2" }, Ia = { key: 0 }, Ma = { class: "ms-auto" }, fl = /* @__PURE__ */ S({
|
|
3457
3464
|
__name: "ForgeTreeTable",
|
|
3458
3465
|
props: {
|
|
3459
3466
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3514,28 +3521,28 @@ const ga = {
|
|
|
3514
3521
|
},
|
|
3515
3522
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3516
3523
|
setup(e, { emit: t }) {
|
|
3517
|
-
const a = e, i = t, l =
|
|
3524
|
+
const a = e, i = t, l = j([5, 10, 20, 50, 100]), n = j(10), o = j(0), s = j(0), p = j({
|
|
3518
3525
|
filters: a.filters,
|
|
3519
3526
|
perPage: n.value,
|
|
3520
3527
|
page: 0,
|
|
3521
3528
|
sortDirection: "None",
|
|
3522
3529
|
sortField: "",
|
|
3523
3530
|
total: a.totalRecords ?? a.value.length
|
|
3524
|
-
}), c =
|
|
3525
|
-
const
|
|
3526
|
-
return `${
|
|
3527
|
-
}),
|
|
3531
|
+
}), c = z(() => a.totalRecords ?? a.value.length), x = z(() => {
|
|
3532
|
+
const b = Math.ceil(c.value / n.value);
|
|
3533
|
+
return `${b} ${ee(b, "page")}`;
|
|
3534
|
+
}), d = z(() => ({
|
|
3528
3535
|
root: "position-relative",
|
|
3529
|
-
table: (
|
|
3536
|
+
table: (b) => ({
|
|
3530
3537
|
class: [
|
|
3531
3538
|
"table position-relative",
|
|
3532
3539
|
{
|
|
3533
|
-
"table-striped":
|
|
3534
|
-
"table-hover":
|
|
3535
|
-
"table-bordered":
|
|
3536
|
-
"table-sm":
|
|
3537
|
-
"table-lg":
|
|
3538
|
-
"opacity-50":
|
|
3540
|
+
"table-striped": b.attrs.stripedRows,
|
|
3541
|
+
"table-hover": b.props.rowHover,
|
|
3542
|
+
"table-bordered": b.props.showGridlines,
|
|
3543
|
+
"table-sm": b.props.size === "small",
|
|
3544
|
+
"table-lg": b.props.size === "large",
|
|
3545
|
+
"opacity-50": b.props.loading
|
|
3539
3546
|
}
|
|
3540
3547
|
]
|
|
3541
3548
|
}),
|
|
@@ -3553,40 +3560,40 @@ const ga = {
|
|
|
3553
3560
|
}
|
|
3554
3561
|
]
|
|
3555
3562
|
}),
|
|
3556
|
-
row: ({ instance:
|
|
3563
|
+
row: ({ instance: b }) => [
|
|
3557
3564
|
{
|
|
3558
|
-
"parent-node":
|
|
3565
|
+
"parent-node": b.node.hasOwnProperty("children")
|
|
3559
3566
|
}
|
|
3560
3567
|
]
|
|
3561
3568
|
}));
|
|
3562
|
-
|
|
3563
|
-
|
|
3569
|
+
Q(() => a.parentExpanderFullRow, (b) => {
|
|
3570
|
+
b ? $() : T();
|
|
3564
3571
|
});
|
|
3565
|
-
const
|
|
3572
|
+
const $ = () => {
|
|
3566
3573
|
a.parentExpanderFullRow && setTimeout(
|
|
3567
3574
|
() => {
|
|
3568
|
-
const
|
|
3575
|
+
const b = Array.from(
|
|
3569
3576
|
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3570
3577
|
);
|
|
3571
3578
|
Array.from(
|
|
3572
3579
|
document.querySelectorAll(".parent-node td")
|
|
3573
3580
|
).forEach((L) => {
|
|
3574
3581
|
L.classList.add("d-none");
|
|
3575
|
-
}),
|
|
3582
|
+
}), b.forEach((L) => {
|
|
3576
3583
|
L.setAttribute("colspan", a.totalColumns.toString()), L.classList.remove("d-none");
|
|
3577
3584
|
});
|
|
3578
3585
|
},
|
|
3579
3586
|
0
|
|
3580
3587
|
);
|
|
3581
|
-
},
|
|
3588
|
+
}, T = () => {
|
|
3582
3589
|
setTimeout(
|
|
3583
3590
|
() => {
|
|
3584
|
-
const
|
|
3591
|
+
const b = Array.from(
|
|
3585
3592
|
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3586
3593
|
), V = Array.from(
|
|
3587
3594
|
document.querySelectorAll(".parent-node td")
|
|
3588
3595
|
);
|
|
3589
|
-
|
|
3596
|
+
b.forEach((L) => {
|
|
3590
3597
|
L.removeAttribute("colspan");
|
|
3591
3598
|
}), V.forEach((L) => {
|
|
3592
3599
|
L.classList.remove("d-none");
|
|
@@ -3598,54 +3605,54 @@ const ga = {
|
|
|
3598
3605
|
if (a.clearAll)
|
|
3599
3606
|
a.clearAll();
|
|
3600
3607
|
else
|
|
3601
|
-
for (const
|
|
3602
|
-
typeof a.filters[
|
|
3603
|
-
|
|
3604
|
-
}, O = (
|
|
3608
|
+
for (const b in a.filters)
|
|
3609
|
+
typeof a.filters[b] == "string" ? a.filters[b] = "" : a.filters[b].value = null;
|
|
3610
|
+
U(a.filters);
|
|
3611
|
+
}, O = (b) => {
|
|
3605
3612
|
var V;
|
|
3606
|
-
p.value.sortDirection =
|
|
3607
|
-
},
|
|
3608
|
-
p.value.filters =
|
|
3609
|
-
},
|
|
3610
|
-
p.value.page = s.value =
|
|
3613
|
+
p.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = b.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", b), $();
|
|
3614
|
+
}, U = (b) => {
|
|
3615
|
+
p.value.filters = b, i("update:tableContext", p.value), i("update:filters", b), $();
|
|
3616
|
+
}, g = (b) => {
|
|
3617
|
+
p.value.page = s.value = b.page, I(), i("update:tableContext", p.value), i("page", b), $();
|
|
3611
3618
|
}, w = () => {
|
|
3612
|
-
p.value.perPage = n.value, s.value = 0, p.value.page = s.value = Math.floor(o.value / n.value),
|
|
3619
|
+
p.value.perPage = n.value, s.value = 0, p.value.page = s.value = Math.floor(o.value / n.value), I(), i("update:tableContext", p.value), $();
|
|
3613
3620
|
};
|
|
3614
|
-
|
|
3615
|
-
p.value.filters =
|
|
3616
|
-
}, { deep: !0 }),
|
|
3617
|
-
|
|
3621
|
+
Q(() => a.filters, (b) => {
|
|
3622
|
+
p.value.filters = b, i("update:tableContext", p.value);
|
|
3623
|
+
}, { deep: !0 }), Q(() => a.value, () => {
|
|
3624
|
+
$();
|
|
3618
3625
|
}), ne(() => {
|
|
3619
|
-
|
|
3626
|
+
$(), i("update:tableContext", p.value);
|
|
3620
3627
|
});
|
|
3621
|
-
const
|
|
3628
|
+
const I = () => {
|
|
3622
3629
|
o.value = s.value * n.value;
|
|
3623
3630
|
};
|
|
3624
|
-
return (
|
|
3625
|
-
m("span",
|
|
3626
|
-
|
|
3631
|
+
return (b, V) => (r(), v("div", Ta, [
|
|
3632
|
+
m("span", Pa, [
|
|
3633
|
+
k(b.$slots, "above-table")
|
|
3627
3634
|
]),
|
|
3628
|
-
h(u(Ge),
|
|
3635
|
+
h(u(Ge), P({
|
|
3629
3636
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3630
|
-
}, { ...a, ...
|
|
3631
|
-
pt:
|
|
3637
|
+
}, { ...a, ...b.$attrs }, {
|
|
3638
|
+
pt: d.value,
|
|
3632
3639
|
"filter-display": a.filters ? "row" : void 0,
|
|
3633
|
-
rows:
|
|
3640
|
+
rows: b.paginator ? n.value : void 0,
|
|
3634
3641
|
"data-cy": "tree-table",
|
|
3635
|
-
"onUpdate:filters":
|
|
3642
|
+
"onUpdate:filters": U,
|
|
3636
3643
|
onSort: O,
|
|
3637
|
-
onPage:
|
|
3638
|
-
onNodeExpand: V[2] || (V[2] = () =>
|
|
3644
|
+
onPage: g,
|
|
3645
|
+
onNodeExpand: V[2] || (V[2] = () => $()),
|
|
3639
3646
|
showHeaders: "",
|
|
3640
3647
|
first: o.value
|
|
3641
3648
|
}), ae({
|
|
3642
|
-
header:
|
|
3649
|
+
header: f(() => [
|
|
3643
3650
|
m("div", {
|
|
3644
3651
|
class: F(a.loading ? "opacity-50" : "")
|
|
3645
3652
|
}, [
|
|
3646
|
-
m("div",
|
|
3647
|
-
m("div",
|
|
3648
|
-
|
|
3653
|
+
m("div", _a, [
|
|
3654
|
+
m("div", ja, [
|
|
3655
|
+
b.paginator && !b.legacyPaginationFooter ? (r(), v("span", Ia, [
|
|
3649
3656
|
h(he, {
|
|
3650
3657
|
total: c.value,
|
|
3651
3658
|
"page-sizes": l.value,
|
|
@@ -3657,15 +3664,15 @@ const ga = {
|
|
|
3657
3664
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3658
3665
|
])) : C("", !0)
|
|
3659
3666
|
]),
|
|
3660
|
-
m("div",
|
|
3661
|
-
|
|
3667
|
+
m("div", Ma, [
|
|
3668
|
+
b.showClearButton ? (r(), y(u(q), {
|
|
3662
3669
|
key: 0,
|
|
3663
3670
|
outlined: "",
|
|
3664
3671
|
onClick: D,
|
|
3665
3672
|
"data-cy": "clear-all"
|
|
3666
3673
|
}, {
|
|
3667
|
-
default:
|
|
3668
|
-
h(u(
|
|
3674
|
+
default: f(() => [
|
|
3675
|
+
h(u(_), {
|
|
3669
3676
|
icon: "bi:funnel-fill",
|
|
3670
3677
|
width: "24",
|
|
3671
3678
|
height: "24"
|
|
@@ -3674,25 +3681,25 @@ const ga = {
|
|
|
3674
3681
|
]),
|
|
3675
3682
|
_: 1
|
|
3676
3683
|
})) : C("", !0),
|
|
3677
|
-
|
|
3684
|
+
k(b.$slots, "column-customiser")
|
|
3678
3685
|
])
|
|
3679
3686
|
])
|
|
3680
3687
|
], 2)
|
|
3681
3688
|
]),
|
|
3682
|
-
default:
|
|
3683
|
-
|
|
3689
|
+
default: f(() => [
|
|
3690
|
+
k(b.$slots, "default")
|
|
3684
3691
|
]),
|
|
3685
3692
|
_: 2
|
|
3686
3693
|
}, [
|
|
3687
|
-
|
|
3694
|
+
E(b.$slots, (L, ve) => ({
|
|
3688
3695
|
name: ve,
|
|
3689
|
-
fn:
|
|
3690
|
-
|
|
3696
|
+
fn: f(($e) => [
|
|
3697
|
+
k(b.$slots, ve, W(G($e || {})))
|
|
3691
3698
|
])
|
|
3692
3699
|
})),
|
|
3693
|
-
|
|
3700
|
+
b.legacyPaginationFooter ? {
|
|
3694
3701
|
name: "paginatorstart",
|
|
3695
|
-
fn:
|
|
3702
|
+
fn: f(() => [
|
|
3696
3703
|
m("span", {
|
|
3697
3704
|
class: F(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
3698
3705
|
"data-cy": "legacy-page-size"
|
|
@@ -3709,20 +3716,20 @@ const ga = {
|
|
|
3709
3716
|
]),
|
|
3710
3717
|
key: "0"
|
|
3711
3718
|
} : void 0,
|
|
3712
|
-
|
|
3719
|
+
b.legacyPaginationFooter ? {
|
|
3713
3720
|
name: "paginatorend",
|
|
3714
|
-
fn:
|
|
3721
|
+
fn: f(() => [
|
|
3715
3722
|
m("span", {
|
|
3716
3723
|
"data-cy": "legacy-total",
|
|
3717
3724
|
class: F(a.loading ? "opacity-50" : "")
|
|
3718
|
-
}, B(c.value) + " " + B(u(
|
|
3725
|
+
}, B(c.value) + " " + B(u(ee)(c.value, "result")) + " across " + B(x.value), 3)
|
|
3719
3726
|
]),
|
|
3720
3727
|
key: "1"
|
|
3721
3728
|
} : void 0
|
|
3722
3729
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3723
3730
|
]));
|
|
3724
3731
|
}
|
|
3725
|
-
}),
|
|
3732
|
+
}), Va = { class: "d-flex position-relative" }, Da = { class: "d-flex w-100" }, gl = /* @__PURE__ */ S({
|
|
3726
3733
|
__name: "ForgeFilterHeader",
|
|
3727
3734
|
props: /* @__PURE__ */ R({
|
|
3728
3735
|
dataType: {},
|
|
@@ -3743,7 +3750,7 @@ const ga = {
|
|
|
3743
3750
|
const o = (s) => {
|
|
3744
3751
|
var c;
|
|
3745
3752
|
const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
|
|
3746
|
-
(
|
|
3753
|
+
(x) => e.optionValue ? x[e.optionValue] === s : Object.keys(x).every((d) => s.hasOwnProperty(d) && x[d] === s[d])
|
|
3747
3754
|
);
|
|
3748
3755
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3749
3756
|
};
|
|
@@ -3753,20 +3760,20 @@ const ga = {
|
|
|
3753
3760
|
};
|
|
3754
3761
|
return (l, n) => {
|
|
3755
3762
|
const o = fe, s = q;
|
|
3756
|
-
return
|
|
3757
|
-
l.dataType === "numeric" ? (
|
|
3763
|
+
return r(), v("div", Va, [
|
|
3764
|
+
l.dataType === "numeric" ? (r(), y(o, P({
|
|
3758
3765
|
key: 0,
|
|
3759
3766
|
modelValue: t.value,
|
|
3760
3767
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
|
|
3761
3768
|
modelModifiers: { trim: !0 }
|
|
3762
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (
|
|
3769
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), y(xe, P({
|
|
3763
3770
|
key: 1,
|
|
3764
3771
|
modelValue: t.value,
|
|
3765
3772
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3766
3773
|
}, l.$attrs, {
|
|
3767
3774
|
"show-icon": !1,
|
|
3768
3775
|
"show-on-focus": !0
|
|
3769
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (
|
|
3776
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), y(u(ie), P({
|
|
3770
3777
|
key: 2,
|
|
3771
3778
|
modelValue: t.value,
|
|
3772
3779
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
@@ -3775,19 +3782,19 @@ const ga = {
|
|
|
3775
3782
|
"option-value": l.optionValue,
|
|
3776
3783
|
"option-label": l.optionLabel
|
|
3777
3784
|
}), {
|
|
3778
|
-
value:
|
|
3779
|
-
m("div",
|
|
3785
|
+
value: f(({ value: p, placeholder: c }) => [
|
|
3786
|
+
m("div", Da, [
|
|
3780
3787
|
m("span", {
|
|
3781
3788
|
class: F({ "filter-placeholder": p === null })
|
|
3782
3789
|
}, B(a(p, c)), 3),
|
|
3783
|
-
l.showClearButton && t.value !== null ? (
|
|
3790
|
+
l.showClearButton && t.value !== null ? (r(), y(s, {
|
|
3784
3791
|
key: 0,
|
|
3785
3792
|
onClick: X(i, ["prevent"]),
|
|
3786
3793
|
size: "small",
|
|
3787
3794
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3788
3795
|
}, {
|
|
3789
|
-
default:
|
|
3790
|
-
h(u(
|
|
3796
|
+
default: f(() => [
|
|
3797
|
+
h(u(_), {
|
|
3791
3798
|
icon: "bi:x",
|
|
3792
3799
|
width: "1rem",
|
|
3793
3800
|
height: "1rem",
|
|
@@ -3799,7 +3806,7 @@ const ga = {
|
|
|
3799
3806
|
])
|
|
3800
3807
|
]),
|
|
3801
3808
|
_: 1
|
|
3802
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (
|
|
3809
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), y(u(re), P({
|
|
3803
3810
|
key: 3,
|
|
3804
3811
|
modelValue: t.value,
|
|
3805
3812
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
@@ -3809,20 +3816,20 @@ const ga = {
|
|
|
3809
3816
|
"option-label": l.optionLabel,
|
|
3810
3817
|
"option-value": l.optionValue,
|
|
3811
3818
|
filter: ""
|
|
3812
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (
|
|
3819
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), y(u(se), P({
|
|
3813
3820
|
key: 4,
|
|
3814
3821
|
modelValue: t.value,
|
|
3815
3822
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
|
|
3816
3823
|
modelModifiers: { trim: !0 }
|
|
3817
3824
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3818
|
-
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (
|
|
3825
|
+
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(), y(s, {
|
|
3819
3826
|
key: 5,
|
|
3820
3827
|
onClick: X(i, ["prevent"]),
|
|
3821
3828
|
size: "small",
|
|
3822
3829
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3823
3830
|
}, {
|
|
3824
|
-
default:
|
|
3825
|
-
h(u(
|
|
3831
|
+
default: f(() => [
|
|
3832
|
+
h(u(_), {
|
|
3826
3833
|
icon: "bi:x",
|
|
3827
3834
|
width: "1rem",
|
|
3828
3835
|
height: "1rem",
|
|
@@ -4891,10 +4898,10 @@ var H = function(e, t, a, i) {
|
|
|
4891
4898
|
if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
4892
4899
|
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4893
4900
|
return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
|
|
4894
|
-
}, K,
|
|
4901
|
+
}, K, te, Y;
|
|
4895
4902
|
class we {
|
|
4896
4903
|
constructor(...t) {
|
|
4897
|
-
K.set(this, /* @__PURE__ */ new Map()),
|
|
4904
|
+
K.set(this, /* @__PURE__ */ new Map()), te.set(this, /* @__PURE__ */ new Map()), Y.set(this, /* @__PURE__ */ new Map());
|
|
4898
4905
|
for (const a of t)
|
|
4899
4906
|
this.define(a);
|
|
4900
4907
|
}
|
|
@@ -4905,7 +4912,7 @@ class we {
|
|
|
4905
4912
|
let o = !0;
|
|
4906
4913
|
for (let s of l) {
|
|
4907
4914
|
const p = s.startsWith("*");
|
|
4908
|
-
if (s = p ? s.slice(1) : s, n == null || n.add(s), o && H(this,
|
|
4915
|
+
if (s = p ? s.slice(1) : s, n == null || n.add(s), o && H(this, te, "f").set(i, s), o = !1, p)
|
|
4909
4916
|
continue;
|
|
4910
4917
|
const c = H(this, K, "f").get(s);
|
|
4911
4918
|
if (c && c != i && !a)
|
|
@@ -4923,7 +4930,7 @@ class we {
|
|
|
4923
4930
|
}
|
|
4924
4931
|
getExtension(t) {
|
|
4925
4932
|
var a;
|
|
4926
|
-
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && H(this,
|
|
4933
|
+
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && H(this, te, "f").get(t.trim().toLowerCase())) ?? null);
|
|
4927
4934
|
}
|
|
4928
4935
|
getAllExtensions(t) {
|
|
4929
4936
|
return typeof t != "string" ? null : H(this, Y, "f").get(t.toLowerCase()) ?? null;
|
|
@@ -4939,12 +4946,12 @@ class we {
|
|
|
4939
4946
|
_getTestState() {
|
|
4940
4947
|
return {
|
|
4941
4948
|
types: H(this, K, "f"),
|
|
4942
|
-
extensions: H(this,
|
|
4949
|
+
extensions: H(this, te, "f")
|
|
4943
4950
|
};
|
|
4944
4951
|
}
|
|
4945
4952
|
}
|
|
4946
|
-
K = /* @__PURE__ */ new WeakMap(),
|
|
4947
|
-
const
|
|
4953
|
+
K = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
|
|
4954
|
+
const Oa = new we(ue, ce)._freeze();
|
|
4948
4955
|
function ke(e, t, a, i) {
|
|
4949
4956
|
const l = t.flatMap((n) => n.file);
|
|
4950
4957
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
@@ -4957,7 +4964,7 @@ function ke(e, t, a, i) {
|
|
|
4957
4964
|
})) : t[o].status = "Duplicate";
|
|
4958
4965
|
}), t;
|
|
4959
4966
|
}
|
|
4960
|
-
async function
|
|
4967
|
+
async function Na(e, t) {
|
|
4961
4968
|
if (e === "Uploaded" && t !== null)
|
|
4962
4969
|
try {
|
|
4963
4970
|
await new ge(t).delete();
|
|
@@ -4980,20 +4987,20 @@ function me(e, t = !0, a = 1) {
|
|
|
4980
4987
|
while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
|
|
4981
4988
|
return e.toFixed(a) + " " + l[n];
|
|
4982
4989
|
}
|
|
4983
|
-
function
|
|
4990
|
+
function Aa(e) {
|
|
4984
4991
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
4985
4992
|
}
|
|
4986
|
-
function
|
|
4993
|
+
function Ea(e) {
|
|
4987
4994
|
return URL.createObjectURL(e);
|
|
4988
4995
|
}
|
|
4989
|
-
function
|
|
4996
|
+
function Ua() {
|
|
4990
4997
|
const e = new we(ue, ce);
|
|
4991
4998
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
4992
4999
|
}
|
|
4993
|
-
const
|
|
5000
|
+
const qa = { class: "d-flex justify-content-between" }, La = ["accept", "disabled", "multiple"], Ra = {
|
|
4994
5001
|
class: "text-break accepted-file-types-container",
|
|
4995
5002
|
id: "accepted-file-types-overlay"
|
|
4996
|
-
},
|
|
5003
|
+
}, Ha = /* @__PURE__ */ S({
|
|
4997
5004
|
__name: "UploadButton",
|
|
4998
5005
|
props: /* @__PURE__ */ R({
|
|
4999
5006
|
acceptedFileTypes: {},
|
|
@@ -5005,13 +5012,13 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5005
5012
|
}),
|
|
5006
5013
|
emits: ["update:modelValue"],
|
|
5007
5014
|
setup(e) {
|
|
5008
|
-
const t = N(e, "modelValue"), a =
|
|
5015
|
+
const t = N(e, "modelValue"), a = j(), i = (o) => a.value.toggle(o), l = z(() => e.maxFileInput <= t.value.length), n = (o) => {
|
|
5009
5016
|
t.value = ke(o, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
5010
5017
|
};
|
|
5011
5018
|
return (o, s) => {
|
|
5012
5019
|
const p = q;
|
|
5013
|
-
return
|
|
5014
|
-
|
|
5020
|
+
return r(), v("div", qa, [
|
|
5021
|
+
k(o.$slots, "message"),
|
|
5015
5022
|
m("div", null, [
|
|
5016
5023
|
m("input", {
|
|
5017
5024
|
id: "file-input",
|
|
@@ -5021,14 +5028,14 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5021
5028
|
disabled: l.value,
|
|
5022
5029
|
multiple: o.maxFileInput > 1,
|
|
5023
5030
|
onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
|
|
5024
|
-
}, null, 40,
|
|
5031
|
+
}, null, 40, La),
|
|
5025
5032
|
m("label", {
|
|
5026
5033
|
class: F([{ disabled: l.value }, "btn btn-primary"]),
|
|
5027
5034
|
id: "file-input-button",
|
|
5028
5035
|
for: "file-input"
|
|
5029
5036
|
}, [
|
|
5030
|
-
|
|
5031
|
-
h(u(
|
|
5037
|
+
k(o.$slots, "button-content", {}, () => [
|
|
5038
|
+
h(u(_), {
|
|
5032
5039
|
icon: "bi:upload",
|
|
5033
5040
|
class: "me-2",
|
|
5034
5041
|
height: "20px",
|
|
@@ -5038,14 +5045,14 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5038
5045
|
])
|
|
5039
5046
|
], 2)
|
|
5040
5047
|
]),
|
|
5041
|
-
o.showDragDropArea ? (
|
|
5048
|
+
o.showDragDropArea ? (r(), y(p, {
|
|
5042
5049
|
link: "",
|
|
5043
5050
|
class: "ms-auto",
|
|
5044
5051
|
key: o.acceptedFileTypes.length,
|
|
5045
5052
|
id: "accepted-file-types",
|
|
5046
5053
|
onClick: i
|
|
5047
5054
|
}, {
|
|
5048
|
-
default:
|
|
5055
|
+
default: f(() => s[2] || (s[2] = [
|
|
5049
5056
|
M("Accepted File Types")
|
|
5050
5057
|
])),
|
|
5051
5058
|
_: 1
|
|
@@ -5054,22 +5061,22 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5054
5061
|
ref_key: "acceptedFilesOverlay",
|
|
5055
5062
|
ref: a
|
|
5056
5063
|
}, {
|
|
5057
|
-
default:
|
|
5058
|
-
m("div",
|
|
5064
|
+
default: f(() => [
|
|
5065
|
+
m("div", Ra, B(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
5059
5066
|
]),
|
|
5060
5067
|
_: 1
|
|
5061
5068
|
}, 512)
|
|
5062
5069
|
]);
|
|
5063
5070
|
};
|
|
5064
5071
|
}
|
|
5065
|
-
}),
|
|
5072
|
+
}), Wa = {
|
|
5066
5073
|
key: 0,
|
|
5067
5074
|
class: "py-4 px-3",
|
|
5068
5075
|
id: "placeholder-message"
|
|
5069
|
-
},
|
|
5076
|
+
}, Ga = {
|
|
5070
5077
|
key: 1,
|
|
5071
5078
|
class: "d-flex flex-column"
|
|
5072
|
-
},
|
|
5079
|
+
}, Ya = /* @__PURE__ */ S({
|
|
5073
5080
|
__name: "DragDropArea",
|
|
5074
5081
|
props: /* @__PURE__ */ R({
|
|
5075
5082
|
maxFileInput: {},
|
|
@@ -5081,30 +5088,30 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5081
5088
|
}),
|
|
5082
5089
|
emits: ["update:modelValue"],
|
|
5083
5090
|
setup(e) {
|
|
5084
|
-
const t = N(e, "modelValue"), a =
|
|
5091
|
+
const t = N(e, "modelValue"), a = j(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5085
5092
|
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = ke([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((o) => o.fileType), e.maxFileSize);
|
|
5086
5093
|
};
|
|
5087
|
-
return (n, o) => (
|
|
5094
|
+
return (n, o) => (r(), v("div", {
|
|
5088
5095
|
id: "drag-drop-area",
|
|
5089
5096
|
class: F(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
5090
5097
|
onDragleave: o[0] || (o[0] = X((s) => a.value = !1, ["prevent"])),
|
|
5091
5098
|
onDragover: o[1] || (o[1] = X((s) => a.value = !0, ["prevent"])),
|
|
5092
5099
|
onDrop: X(l, ["prevent"])
|
|
5093
5100
|
}, [
|
|
5094
|
-
t.value.length === 0 ? (
|
|
5095
|
-
h(u(
|
|
5101
|
+
t.value.length === 0 ? (r(), v("div", Wa, [
|
|
5102
|
+
h(u(_), {
|
|
5096
5103
|
icon: "bi:upload",
|
|
5097
5104
|
class: "me-2",
|
|
5098
5105
|
height: "20px",
|
|
5099
5106
|
width: "20px"
|
|
5100
5107
|
}),
|
|
5101
5108
|
o[2] || (o[2] = M(" Drag and drop files here "))
|
|
5102
|
-
])) : (
|
|
5103
|
-
|
|
5109
|
+
])) : (r(), v("div", Ga, [
|
|
5110
|
+
k(n.$slots, "default")
|
|
5104
5111
|
]))
|
|
5105
5112
|
], 34));
|
|
5106
5113
|
}
|
|
5107
|
-
}),
|
|
5114
|
+
}), Ja = { class: "d-flex align-items-center me-2" }, Ka = /* @__PURE__ */ S({
|
|
5108
5115
|
__name: "UploadStatus",
|
|
5109
5116
|
props: {
|
|
5110
5117
|
fileSize: {},
|
|
@@ -5113,7 +5120,7 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5113
5120
|
uploadStatus: {}
|
|
5114
5121
|
},
|
|
5115
5122
|
setup(e) {
|
|
5116
|
-
const t = e, a =
|
|
5123
|
+
const t = e, a = z(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = z(() => {
|
|
5117
5124
|
switch (t.uploadStatus) {
|
|
5118
5125
|
case "InvalidFileType":
|
|
5119
5126
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -5131,15 +5138,15 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5131
5138
|
});
|
|
5132
5139
|
return (l, n) => {
|
|
5133
5140
|
const o = pe;
|
|
5134
|
-
return
|
|
5135
|
-
t.uploadStatus === "Uploading" ? (
|
|
5136
|
-
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (
|
|
5141
|
+
return r(), v("div", Ja, [
|
|
5142
|
+
t.uploadStatus === "Uploading" ? (r(), y(o, { key: 0 })) : C("", !0),
|
|
5143
|
+
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (r(), y(de, {
|
|
5137
5144
|
key: 1,
|
|
5138
5145
|
id: "upload-status-alert",
|
|
5139
5146
|
severity: a.value,
|
|
5140
5147
|
class: "mb-0 w-75 ms-auto"
|
|
5141
5148
|
}, {
|
|
5142
|
-
default:
|
|
5149
|
+
default: f(() => [
|
|
5143
5150
|
M(B(i.value), 1)
|
|
5144
5151
|
]),
|
|
5145
5152
|
_: 1
|
|
@@ -5147,16 +5154,16 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5147
5154
|
]);
|
|
5148
5155
|
};
|
|
5149
5156
|
}
|
|
5150
|
-
}),
|
|
5157
|
+
}), Za = ["data-cy"], Xa = { class: "ms-3 d-flex flex-column" }, Qa = {
|
|
5151
5158
|
key: 1,
|
|
5152
5159
|
id: "file-name"
|
|
5153
|
-
},
|
|
5160
|
+
}, ei = {
|
|
5154
5161
|
class: "text-black-50",
|
|
5155
5162
|
id: "file-type"
|
|
5156
|
-
},
|
|
5163
|
+
}, ti = {
|
|
5157
5164
|
class: "text-black-50",
|
|
5158
5165
|
id: "file-size"
|
|
5159
|
-
},
|
|
5166
|
+
}, ai = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, ii = /* @__PURE__ */ S({
|
|
5160
5167
|
__name: "FileInfo",
|
|
5161
5168
|
props: /* @__PURE__ */ R({
|
|
5162
5169
|
editableFileName: { type: Boolean },
|
|
@@ -5175,62 +5182,62 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5175
5182
|
}),
|
|
5176
5183
|
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5177
5184
|
setup(e, { emit: t }) {
|
|
5178
|
-
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o =
|
|
5185
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), n = t, o = j(a.value.name), s = j(""), p = j(0), c = j(), x = z(() => e.acceptedFileTypes.some(({ fileType: g }) => g === a.value.type)), d = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : Ua().getType(a.value.name)), T = () => {
|
|
5179
5186
|
o.value != null && (D(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5180
5187
|
}, D = () => {
|
|
5181
|
-
let
|
|
5182
|
-
|
|
5188
|
+
let g = o.value.split("."), w = Oa.getExtension($.value), I = o.value.split(".").pop();
|
|
5189
|
+
g.length === 1 ? I && I.length > 0 && (o.value = [o.value, w].join(".")) : g.length > 1 && I !== w && (o.value = o.value.replace(I, w));
|
|
5183
5190
|
}, O = async () => {
|
|
5184
|
-
if (!
|
|
5185
|
-
l.value =
|
|
5191
|
+
if (!x.value || !d.value) {
|
|
5192
|
+
l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5186
5193
|
return;
|
|
5187
5194
|
}
|
|
5188
5195
|
l.value = "Preparing", c.value = new AbortController();
|
|
5189
|
-
const [
|
|
5190
|
-
if (!
|
|
5196
|
+
const [g, w] = await e.getFileUrlAction(a.value.name);
|
|
5197
|
+
if (!g) {
|
|
5191
5198
|
l.value = "Failed";
|
|
5192
5199
|
return;
|
|
5193
5200
|
}
|
|
5194
5201
|
try {
|
|
5195
5202
|
l.value = "Uploading";
|
|
5196
|
-
const
|
|
5203
|
+
const I = new ge(g), b = {
|
|
5197
5204
|
abortSignal: c.value.signal,
|
|
5198
5205
|
onProgress: (V) => p.value = V.loadedBytes,
|
|
5199
5206
|
blobHTTPHeaders: {
|
|
5200
|
-
blobContentType:
|
|
5207
|
+
blobContentType: $.value,
|
|
5201
5208
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
5202
5209
|
},
|
|
5203
5210
|
tags: { temp: "true" }
|
|
5204
5211
|
};
|
|
5205
|
-
await
|
|
5206
|
-
} catch (
|
|
5207
|
-
if (
|
|
5212
|
+
await I.uploadData(a.value, b), s.value = g, l.value = "Uploaded", i.value = w;
|
|
5213
|
+
} catch (I) {
|
|
5214
|
+
if (I.name === "AbortError") {
|
|
5208
5215
|
l.value = "Aborted";
|
|
5209
5216
|
return;
|
|
5210
5217
|
}
|
|
5211
5218
|
l.value = "Failed";
|
|
5212
5219
|
}
|
|
5213
|
-
},
|
|
5214
|
-
await
|
|
5220
|
+
}, U = async () => {
|
|
5221
|
+
await Na(l.value, s.value), n("deleted", a.value);
|
|
5215
5222
|
};
|
|
5216
5223
|
return ne(() => {
|
|
5217
5224
|
e.autoUploadToBlob && l.value != "Uploaded" && O();
|
|
5218
|
-
}), (
|
|
5219
|
-
const
|
|
5220
|
-
return
|
|
5225
|
+
}), (g, w) => {
|
|
5226
|
+
const I = q;
|
|
5227
|
+
return r(), v("div", {
|
|
5221
5228
|
class: "py-4 px-3 d-flex",
|
|
5222
5229
|
"data-cy": `file-info-${a.value.name}`
|
|
5223
5230
|
}, [
|
|
5224
5231
|
m("div", null, [
|
|
5225
|
-
u(
|
|
5232
|
+
u(Aa)(a.value.type) ? (r(), y(u(Ye), {
|
|
5226
5233
|
key: 0,
|
|
5227
5234
|
id: "thumbnail-image",
|
|
5228
5235
|
"image-class": "image-file-thumbnail border",
|
|
5229
|
-
src: u(
|
|
5236
|
+
src: u(Ea)(a.value),
|
|
5230
5237
|
alt: a.value.name,
|
|
5231
5238
|
width: "75px",
|
|
5232
5239
|
preview: ""
|
|
5233
|
-
}, null, 8, ["src", "alt"])) : (
|
|
5240
|
+
}, null, 8, ["src", "alt"])) : (r(), y(u(_), {
|
|
5234
5241
|
key: 1,
|
|
5235
5242
|
id: "file-earmark",
|
|
5236
5243
|
icon: "bi:file-earmark",
|
|
@@ -5238,78 +5245,78 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5238
5245
|
width: "75px"
|
|
5239
5246
|
}))
|
|
5240
5247
|
]),
|
|
5241
|
-
m("div",
|
|
5248
|
+
m("div", Xa, [
|
|
5242
5249
|
m("div", null, [
|
|
5243
|
-
|
|
5250
|
+
g.editableFileName ? (r(), y(Wt, {
|
|
5244
5251
|
key: 0,
|
|
5245
5252
|
id: "edit-file-name",
|
|
5246
5253
|
modelValue: o.value,
|
|
5247
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
5248
|
-
rules:
|
|
5254
|
+
"onUpdate:modelValue": w[0] || (w[0] = (b) => o.value = b),
|
|
5255
|
+
rules: g.customFileNameRules,
|
|
5249
5256
|
name: a.value.name,
|
|
5250
|
-
"complete-action":
|
|
5251
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (
|
|
5257
|
+
"complete-action": T
|
|
5258
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", Qa, B(o.value), 1))
|
|
5252
5259
|
]),
|
|
5253
|
-
m("span",
|
|
5254
|
-
m("span",
|
|
5260
|
+
m("span", ei, "File type: " + B(a.value.type.split("/").pop()), 1),
|
|
5261
|
+
m("span", ti, "File size: " + B(u(me)(a.value.size)), 1)
|
|
5255
5262
|
]),
|
|
5256
|
-
m("div",
|
|
5257
|
-
(
|
|
5263
|
+
m("div", ai, [
|
|
5264
|
+
(r(), y(Ka, {
|
|
5258
5265
|
key: l.value,
|
|
5259
5266
|
"file-size": a.value.size,
|
|
5260
5267
|
"upload-status": l.value,
|
|
5261
5268
|
"bytes-uploaded": p.value,
|
|
5262
|
-
"max-file-size":
|
|
5269
|
+
"max-file-size": g.maxFileSize
|
|
5263
5270
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
5264
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (
|
|
5271
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (r(), y(I, {
|
|
5265
5272
|
key: 0,
|
|
5266
5273
|
link: "",
|
|
5267
5274
|
onClick: O
|
|
5268
5275
|
}, {
|
|
5269
|
-
default:
|
|
5270
|
-
h(u(
|
|
5276
|
+
default: f(() => [
|
|
5277
|
+
h(u(_), {
|
|
5271
5278
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5272
5279
|
}, null, 8, ["icon"])
|
|
5273
5280
|
]),
|
|
5274
5281
|
_: 1
|
|
5275
5282
|
})) : C("", !0),
|
|
5276
|
-
l.value === "Uploading" ? (
|
|
5283
|
+
l.value === "Uploading" ? (r(), y(I, {
|
|
5277
5284
|
key: 1,
|
|
5278
5285
|
link: "",
|
|
5279
|
-
onClick: w[1] || (w[1] = (
|
|
5286
|
+
onClick: w[1] || (w[1] = (b) => c.value.abort())
|
|
5280
5287
|
}, {
|
|
5281
|
-
default:
|
|
5282
|
-
h(u(
|
|
5288
|
+
default: f(() => [
|
|
5289
|
+
h(u(_), { icon: "bi:x-circle-fill" })
|
|
5283
5290
|
]),
|
|
5284
5291
|
_: 1
|
|
5285
|
-
})) : (
|
|
5292
|
+
})) : (r(), y(I, {
|
|
5286
5293
|
key: 2,
|
|
5287
5294
|
link: "",
|
|
5288
|
-
onClick:
|
|
5295
|
+
onClick: U,
|
|
5289
5296
|
id: "delete-button"
|
|
5290
5297
|
}, {
|
|
5291
|
-
default:
|
|
5292
|
-
h(u(
|
|
5298
|
+
default: f(() => [
|
|
5299
|
+
h(u(_), { icon: "bi:trash" })
|
|
5293
5300
|
]),
|
|
5294
5301
|
_: 1
|
|
5295
5302
|
}))
|
|
5296
5303
|
])
|
|
5297
|
-
], 8,
|
|
5304
|
+
], 8, Za);
|
|
5298
5305
|
};
|
|
5299
5306
|
}
|
|
5300
|
-
}),
|
|
5307
|
+
}), li = { class: "d-flex justify-content-end mt-1 gap-1" }, ni = { id: "max-file-size" }, oi = { id: "max-file-input" }, si = /* @__PURE__ */ S({
|
|
5301
5308
|
__name: "FileInputInfo",
|
|
5302
5309
|
props: {
|
|
5303
5310
|
maxFileSize: {},
|
|
5304
5311
|
maxFileInput: {}
|
|
5305
5312
|
},
|
|
5306
5313
|
setup(e) {
|
|
5307
|
-
return (t, a) => (
|
|
5308
|
-
m("div",
|
|
5309
|
-
m("div",
|
|
5314
|
+
return (t, a) => (r(), v("div", li, [
|
|
5315
|
+
m("div", ni, "Max file size: " + B(u(me)(t.maxFileSize)), 1),
|
|
5316
|
+
m("div", oi, "| Max file count: " + B(t.maxFileInput), 1)
|
|
5310
5317
|
]));
|
|
5311
5318
|
}
|
|
5312
|
-
}),
|
|
5319
|
+
}), ri = { "data-cy": "file-uploader" }, di = { key: 0 }, bl = /* @__PURE__ */ S({
|
|
5313
5320
|
__name: "ForgeFileUploader",
|
|
5314
5321
|
props: /* @__PURE__ */ R({
|
|
5315
5322
|
acceptedFileTypes: {},
|
|
@@ -5329,22 +5336,22 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5329
5336
|
const t = N(e, "modelValue"), a = e, i = (l) => {
|
|
5330
5337
|
t.value = t.value.filter((n) => n.file != l);
|
|
5331
5338
|
};
|
|
5332
|
-
return (l, n) => (
|
|
5333
|
-
h(
|
|
5339
|
+
return (l, n) => (r(), v("div", ri, [
|
|
5340
|
+
h(Ha, P(a, {
|
|
5334
5341
|
modelValue: t.value,
|
|
5335
5342
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
|
|
5336
5343
|
}), null, 16, ["modelValue"]),
|
|
5337
|
-
l.showDragDropArea ? (
|
|
5338
|
-
h(
|
|
5344
|
+
l.showDragDropArea ? (r(), v("div", di, [
|
|
5345
|
+
h(Ya, {
|
|
5339
5346
|
"max-file-input": a.maxFileInput,
|
|
5340
5347
|
"max-file-size": a.maxFileSize,
|
|
5341
5348
|
"accepted-file-types": a.acceptedFileTypes,
|
|
5342
5349
|
modelValue: t.value,
|
|
5343
5350
|
"onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
|
|
5344
5351
|
}, {
|
|
5345
|
-
default:
|
|
5346
|
-
(
|
|
5347
|
-
(
|
|
5352
|
+
default: f(() => [
|
|
5353
|
+
(r(!0), v(A, null, E(t.value, ({ file: o }, s) => (r(), v("div", null, [
|
|
5354
|
+
(r(), y(ii, P({
|
|
5348
5355
|
key: o.name,
|
|
5349
5356
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5350
5357
|
file: t.value[s].file,
|
|
@@ -5359,14 +5366,14 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5359
5366
|
]),
|
|
5360
5367
|
_: 1
|
|
5361
5368
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5362
|
-
h(
|
|
5369
|
+
h(si, {
|
|
5363
5370
|
"max-file-size": a.maxFileSize,
|
|
5364
5371
|
"max-file-input": l.maxFileInput
|
|
5365
5372
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5366
5373
|
])) : C("", !0)
|
|
5367
5374
|
]));
|
|
5368
5375
|
}
|
|
5369
|
-
}),
|
|
5376
|
+
}), pi = { class: "d-flex" }, ci = { class: "me-3" }, ui = { class: "ms-2" }, mi = { class: "d-flex flex-column w-100" }, yl = /* @__PURE__ */ S({
|
|
5370
5377
|
__name: "ForgeColumnCustomiser",
|
|
5371
5378
|
props: {
|
|
5372
5379
|
modelValue: { required: !0 },
|
|
@@ -5374,22 +5381,22 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5374
5381
|
},
|
|
5375
5382
|
emits: ["update:modelValue"],
|
|
5376
5383
|
setup(e) {
|
|
5377
|
-
const t = N(e, "modelValue"), a =
|
|
5384
|
+
const t = N(e, "modelValue"), a = j(), i = j(!1), l = (n) => {
|
|
5378
5385
|
a.value.toggle(n);
|
|
5379
5386
|
};
|
|
5380
|
-
return (n, o) => (
|
|
5387
|
+
return (n, o) => (r(), v(A, null, [
|
|
5381
5388
|
h(u(q), {
|
|
5382
5389
|
onClick: l,
|
|
5383
5390
|
class: "ms-2"
|
|
5384
5391
|
}, {
|
|
5385
|
-
default:
|
|
5386
|
-
m("div",
|
|
5387
|
-
m("div",
|
|
5388
|
-
h(u(
|
|
5392
|
+
default: f(() => [
|
|
5393
|
+
m("div", pi, [
|
|
5394
|
+
m("div", ci, [
|
|
5395
|
+
h(u(_), { icon: "bi:layout-three-columns" })
|
|
5389
5396
|
]),
|
|
5390
5397
|
M(" Columns (" + B(t.value.filter((s) => s.selected).length ?? 0) + "/" + B(t.value.length ?? 0) + ") ", 1),
|
|
5391
|
-
m("div",
|
|
5392
|
-
h(u(
|
|
5398
|
+
m("div", ui, [
|
|
5399
|
+
h(u(_), {
|
|
5393
5400
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5394
5401
|
}, null, 8, ["icon"])
|
|
5395
5402
|
])
|
|
@@ -5404,9 +5411,9 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5404
5411
|
onHide: o[0] || (o[0] = () => i.value = !1),
|
|
5405
5412
|
onShow: o[1] || (o[1] = () => i.value = !0)
|
|
5406
5413
|
}, {
|
|
5407
|
-
default:
|
|
5408
|
-
m("div",
|
|
5409
|
-
(
|
|
5414
|
+
default: f(() => [
|
|
5415
|
+
m("div", mi, [
|
|
5416
|
+
(r(!0), v(A, null, E(t.value, (s, p) => (r(), v("div", {
|
|
5410
5417
|
class: F(["d-flex cursor-pointer", {
|
|
5411
5418
|
"border-top": p !== 0,
|
|
5412
5419
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
@@ -5429,19 +5436,19 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5429
5436
|
}, 512)
|
|
5430
5437
|
], 64));
|
|
5431
5438
|
}
|
|
5432
|
-
}),
|
|
5439
|
+
}), xl = /* @__PURE__ */ S({
|
|
5433
5440
|
__name: "ForgePanel",
|
|
5434
5441
|
setup(e) {
|
|
5435
5442
|
return (t, a) => {
|
|
5436
5443
|
const i = Je;
|
|
5437
|
-
return
|
|
5438
|
-
toggleicon:
|
|
5439
|
-
l ? (
|
|
5444
|
+
return r(), y(i, W(G({ ...t.$attrs })), ae({
|
|
5445
|
+
toggleicon: f(({ collapsed: l }) => [
|
|
5446
|
+
l ? (r(), y(u(_), {
|
|
5440
5447
|
key: 0,
|
|
5441
5448
|
"data-cy": "message-icon",
|
|
5442
5449
|
icon: "bi:chevron-down"
|
|
5443
5450
|
})) : C("", !0),
|
|
5444
|
-
l ? C("", !0) : (
|
|
5451
|
+
l ? C("", !0) : (r(), y(u(_), {
|
|
5445
5452
|
key: 1,
|
|
5446
5453
|
"data-cy": "message-icon",
|
|
5447
5454
|
icon: "bi:chevron-up"
|
|
@@ -5449,22 +5456,22 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5449
5456
|
]),
|
|
5450
5457
|
_: 2
|
|
5451
5458
|
}, [
|
|
5452
|
-
|
|
5459
|
+
E(t.$slots, (l, n) => ({
|
|
5453
5460
|
name: n,
|
|
5454
|
-
fn:
|
|
5455
|
-
|
|
5461
|
+
fn: f((o) => [
|
|
5462
|
+
k(t.$slots, n, W(G(o)))
|
|
5456
5463
|
])
|
|
5457
5464
|
}))
|
|
5458
5465
|
]), 1040);
|
|
5459
5466
|
};
|
|
5460
5467
|
}
|
|
5461
|
-
}),
|
|
5468
|
+
}), vi = /* @__PURE__ */ S({
|
|
5462
5469
|
__name: "ForgeToggleButton",
|
|
5463
5470
|
props: {
|
|
5464
5471
|
severity: { default: "primary" }
|
|
5465
5472
|
},
|
|
5466
5473
|
setup(e) {
|
|
5467
|
-
const t = e, a =
|
|
5474
|
+
const t = e, a = z(() => ({
|
|
5468
5475
|
root: (i) => ({
|
|
5469
5476
|
class: [
|
|
5470
5477
|
"btn",
|
|
@@ -5485,15 +5492,15 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5485
5492
|
]
|
|
5486
5493
|
})
|
|
5487
5494
|
}));
|
|
5488
|
-
return (i, l) => (
|
|
5495
|
+
return (i, l) => (r(), y(u(Ke), P({ ...i.$attrs, ...t }, {
|
|
5489
5496
|
severity: t.severity,
|
|
5490
5497
|
pt: a.value
|
|
5491
5498
|
}), null, 16, ["severity", "pt"]));
|
|
5492
5499
|
}
|
|
5493
|
-
}),
|
|
5500
|
+
}), fi = {
|
|
5494
5501
|
class: "btn-group",
|
|
5495
5502
|
"data-cy": "forge-select-button"
|
|
5496
|
-
},
|
|
5503
|
+
}, hl = /* @__PURE__ */ S({
|
|
5497
5504
|
__name: "ForgeSelectButton",
|
|
5498
5505
|
props: /* @__PURE__ */ R({
|
|
5499
5506
|
options: {},
|
|
@@ -5523,8 +5530,8 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5523
5530
|
} else
|
|
5524
5531
|
a.value = a.value === n.value && t.allowEmpty ? null : n.value;
|
|
5525
5532
|
};
|
|
5526
|
-
return (n, o) => (
|
|
5527
|
-
(
|
|
5533
|
+
return (n, o) => (r(), v("div", fi, [
|
|
5534
|
+
(r(!0), v(A, null, E(n.options, (s, p) => (r(), y(vi, {
|
|
5528
5535
|
key: p,
|
|
5529
5536
|
onLabel: s.label,
|
|
5530
5537
|
offLabel: s.label,
|
|
@@ -5537,7 +5544,28 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5537
5544
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5538
5545
|
]));
|
|
5539
5546
|
}
|
|
5540
|
-
}),
|
|
5547
|
+
}), wl = /* @__PURE__ */ S({
|
|
5548
|
+
__name: "ForgeConfirmPopup",
|
|
5549
|
+
setup(e) {
|
|
5550
|
+
const t = z(() => ({
|
|
5551
|
+
root: [
|
|
5552
|
+
"card w-fit-content position-absolute"
|
|
5553
|
+
],
|
|
5554
|
+
footer: () => ({
|
|
5555
|
+
class: ["modal-footer gap-1 p-2"]
|
|
5556
|
+
}),
|
|
5557
|
+
content: "pt-2 px-2",
|
|
5558
|
+
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5559
|
+
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5560
|
+
}));
|
|
5561
|
+
return (a, i) => (r(), y(u(Ze), P({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5562
|
+
default: f(() => [
|
|
5563
|
+
(r(!0), v(A, null, E(a.$slots, (l, n) => k(a.$slots, n, { slot: n })), 256))
|
|
5564
|
+
]),
|
|
5565
|
+
_: 3
|
|
5566
|
+
}, 16, ["pt"]));
|
|
5567
|
+
}
|
|
5568
|
+
}), kl = () => ({
|
|
5541
5569
|
type: "component",
|
|
5542
5570
|
resolve: (e) => {
|
|
5543
5571
|
if (e.startsWith("Forge"))
|
|
@@ -5548,38 +5576,39 @@ const Ua = { class: "d-flex justify-content-between" }, qa = ["accept", "disable
|
|
|
5548
5576
|
}
|
|
5549
5577
|
});
|
|
5550
5578
|
export {
|
|
5551
|
-
|
|
5552
|
-
|
|
5579
|
+
Ki as Bootstrap_PT,
|
|
5580
|
+
Zi as ForgeActionButton,
|
|
5553
5581
|
de as ForgeAlert,
|
|
5554
|
-
|
|
5582
|
+
Xi as ForgeAutoComplete,
|
|
5555
5583
|
ye as ForgeCheckbox,
|
|
5556
|
-
|
|
5557
|
-
|
|
5584
|
+
rl as ForgeChip,
|
|
5585
|
+
yl as ForgeColumnCustomiser,
|
|
5586
|
+
wl as ForgeConfirmPopup,
|
|
5558
5587
|
xe as ForgeDatepicker,
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5588
|
+
bl as ForgeFileUploader,
|
|
5589
|
+
gl as ForgeFilterHeader,
|
|
5590
|
+
ol as ForgeForm,
|
|
5591
|
+
sl as ForgeFormField,
|
|
5592
|
+
Wt as ForgeInlineEditor,
|
|
5593
|
+
Qi as ForgeLink,
|
|
5565
5594
|
pe as ForgeLoader,
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5595
|
+
al as ForgeModal,
|
|
5596
|
+
Xt as ForgeMultiSelectPreview,
|
|
5597
|
+
il as ForgeNavbar,
|
|
5598
|
+
ll as ForgePageHeader,
|
|
5599
|
+
xl as ForgePanel,
|
|
5600
|
+
dl as ForgeProgressBar,
|
|
5601
|
+
nl as ForgeRemainingCharacters,
|
|
5602
|
+
kl as ForgeResolver,
|
|
5603
|
+
pl as ForgeScratchpad,
|
|
5604
|
+
hl as ForgeSelectButton,
|
|
5605
|
+
cl as ForgeStatWidget,
|
|
5606
|
+
ul as ForgeStepper,
|
|
5607
|
+
vl as ForgeTable,
|
|
5608
|
+
ml as ForgeTile,
|
|
5609
|
+
vi as ForgeToggleButton,
|
|
5610
|
+
fl as ForgeTreeTable,
|
|
5611
|
+
tl as convertToMultiSelectOption,
|
|
5612
|
+
el as enumToMultiSelectList,
|
|
5613
|
+
Ot as parseError
|
|
5585
5614
|
};
|