@3squared/forge-ui-3 2.24.0 → 2.25.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,39 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as z, createBlock as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import
|
|
1
|
+
import Se from "primevue/message";
|
|
2
|
+
import { defineComponent as z, createBlock as y, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as v, renderSlot as C, createVNode as h, unref as p, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as I, createElementBlock as g, Fragment as E, mergeProps as j, renderList as q, mergeModels as _, useModel as N, computed as M, withDirectives as K, createTextVNode as O, toDisplayString as B, vShow as X, createSlots as le, onMounted as se, withKeys as ne, isRef as Fe, normalizeStyle as Ce, withModifiers as Q, watch as W, h as Te, useTemplateRef as ze } from "vue";
|
|
3
|
+
import { Icon as V } from "@iconify/vue";
|
|
4
|
+
import R from "primevue/button";
|
|
5
5
|
import Pe from "primevue/toast";
|
|
6
6
|
import je from "primevue/autocomplete";
|
|
7
7
|
import Me from "primevue/checkbox";
|
|
8
|
-
import { useField as
|
|
8
|
+
import { useField as re } from "vee-validate";
|
|
9
9
|
import Ie from "primevue/progressspinner";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { vOnClickOutside as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
10
|
+
import Ve from "primevue/dialog";
|
|
11
|
+
import ie from "primevue/inputtext";
|
|
12
|
+
import { vOnClickOutside as De } from "@vueuse/components";
|
|
13
|
+
import Oe from "primevue/menubar";
|
|
14
|
+
import ue from "primevue/multiselect";
|
|
15
|
+
import Ae from "primevue/datepicker";
|
|
16
16
|
import oe from "primevue/select";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
17
|
+
import Le from "primevue/inputmask";
|
|
18
|
+
import Ne from "primevue/textarea";
|
|
19
|
+
import be from "primevue/inputnumber";
|
|
20
|
+
import Ue from "primevue/chip";
|
|
21
|
+
import Ee from "primevue/progressbar";
|
|
22
|
+
import qe from "primevue/step";
|
|
23
|
+
import _e from "primevue/stepper";
|
|
24
24
|
import Re from "primevue/steplist";
|
|
25
25
|
import He from "primevue/steppanel";
|
|
26
26
|
import We from "primevue/steppanels";
|
|
27
27
|
import Ge from "primevue/datatable";
|
|
28
28
|
import Ye from "primevue/treetable";
|
|
29
|
-
import { BlockBlobClient as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import { ToggleButton as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
const
|
|
29
|
+
import { BlockBlobClient as pe, newPipeline as Je } from "@azure/storage-blob";
|
|
30
|
+
import ye from "primevue/popover";
|
|
31
|
+
import Ke from "primevue/image";
|
|
32
|
+
import Ze from "primevue/panel";
|
|
33
|
+
import { ToggleButton as Xe } from "primevue";
|
|
34
|
+
import Qe from "primevue/confirmpopup";
|
|
35
|
+
import et from "primevue/picklist";
|
|
36
|
+
const tt = {
|
|
37
37
|
autoComplete: {
|
|
38
38
|
root: ({ props: e }) => ({
|
|
39
39
|
class: [
|
|
@@ -62,7 +62,7 @@ const et = {
|
|
|
62
62
|
}),
|
|
63
63
|
emptyMessage: "mx-3 my-2"
|
|
64
64
|
}
|
|
65
|
-
},
|
|
65
|
+
}, at = {
|
|
66
66
|
button: {
|
|
67
67
|
root: ({ props: e }) => ({
|
|
68
68
|
class: [
|
|
@@ -172,7 +172,7 @@ const et = {
|
|
|
172
172
|
})
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
},
|
|
175
|
+
}, it = {
|
|
176
176
|
checkbox: {
|
|
177
177
|
root: () => ({
|
|
178
178
|
class: ["form-check"]
|
|
@@ -187,7 +187,7 @@ const et = {
|
|
|
187
187
|
]
|
|
188
188
|
})
|
|
189
189
|
}
|
|
190
|
-
},
|
|
190
|
+
}, lt = {
|
|
191
191
|
select: {
|
|
192
192
|
root: ({ props: e }) => ({
|
|
193
193
|
class: [
|
|
@@ -252,14 +252,14 @@ const et = {
|
|
|
252
252
|
}
|
|
253
253
|
}),
|
|
254
254
|
headerCell: (e) => {
|
|
255
|
-
var t, a, i,
|
|
255
|
+
var t, a, i, l, o, n;
|
|
256
256
|
return {
|
|
257
257
|
class: [
|
|
258
258
|
"align-top",
|
|
259
259
|
{
|
|
260
260
|
"cursor-move": (t = e.props) == null ? void 0 : t.reorderableColumns,
|
|
261
|
-
"position-sticky": ((a = e.column) == null ? void 0 : a.context.frozen) !== void 0 || ((i = e.column) == null ? void 0 : i.context.frozen) || ((
|
|
262
|
-
"overflow-hidden position-relative bg-clip-padding": (
|
|
261
|
+
"position-sticky": ((a = e.column) == null ? void 0 : a.context.frozen) !== void 0 || ((i = e.column) == null ? void 0 : i.context.frozen) || ((l = e.column) == null ? void 0 : l.context.frozen) === "",
|
|
262
|
+
"overflow-hidden position-relative bg-clip-padding": (o = e.column) == null ? void 0 : o.context.resizable,
|
|
263
263
|
"align-bottom": ((n = e.column.props) == null ? void 0 : n.rowspan) > 1
|
|
264
264
|
}
|
|
265
265
|
]
|
|
@@ -364,7 +364,7 @@ const et = {
|
|
|
364
364
|
]
|
|
365
365
|
})
|
|
366
366
|
}
|
|
367
|
-
},
|
|
367
|
+
}, nt = {
|
|
368
368
|
inputtext: {
|
|
369
369
|
root: (e) => {
|
|
370
370
|
var t, a;
|
|
@@ -379,7 +379,7 @@ const et = {
|
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
},
|
|
382
|
+
}, st = {
|
|
383
383
|
inputmask: {
|
|
384
384
|
root: () => ({
|
|
385
385
|
class: [
|
|
@@ -387,12 +387,12 @@ const et = {
|
|
|
387
387
|
]
|
|
388
388
|
})
|
|
389
389
|
}
|
|
390
|
-
},
|
|
390
|
+
}, rt = {
|
|
391
391
|
toggleSwitch: {
|
|
392
392
|
root: "form-check form-switch",
|
|
393
393
|
input: "form-check-input"
|
|
394
394
|
}
|
|
395
|
-
},
|
|
395
|
+
}, dt = {
|
|
396
396
|
tag: {
|
|
397
397
|
root: ({ props: e }) => ({
|
|
398
398
|
class: [
|
|
@@ -413,7 +413,7 @@ const et = {
|
|
|
413
413
|
]
|
|
414
414
|
})
|
|
415
415
|
}
|
|
416
|
-
},
|
|
416
|
+
}, ct = {
|
|
417
417
|
textarea: {
|
|
418
418
|
root: () => ({
|
|
419
419
|
class: [
|
|
@@ -427,7 +427,7 @@ const et = {
|
|
|
427
427
|
label: "px-2 fs-6 fw-400",
|
|
428
428
|
removeIcon: "ms-auto my-auto"
|
|
429
429
|
}
|
|
430
|
-
},
|
|
430
|
+
}, ut = {
|
|
431
431
|
dialog: {
|
|
432
432
|
root: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
|
|
433
433
|
class: ["modal modal-dialog modal-content h-auto m-0"]
|
|
@@ -486,7 +486,7 @@ const et = {
|
|
|
486
486
|
]
|
|
487
487
|
})
|
|
488
488
|
}
|
|
489
|
-
},
|
|
489
|
+
}, mt = {
|
|
490
490
|
popover: {
|
|
491
491
|
root: (e) => ({
|
|
492
492
|
class: [
|
|
@@ -500,7 +500,7 @@ const et = {
|
|
|
500
500
|
content: "d-flex position-relative",
|
|
501
501
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
502
502
|
}
|
|
503
|
-
},
|
|
503
|
+
}, vt = {
|
|
504
504
|
message: {
|
|
505
505
|
root: ({ props: e }) => ({
|
|
506
506
|
class: [
|
|
@@ -530,7 +530,7 @@ const et = {
|
|
|
530
530
|
class: ["px-0 ms-2 btn d-flex"]
|
|
531
531
|
})
|
|
532
532
|
}
|
|
533
|
-
},
|
|
533
|
+
}, ft = {
|
|
534
534
|
// More PT options defined in ForgeStepper.
|
|
535
535
|
stepList: {
|
|
536
536
|
root: "d-flex mb-2 w-100"
|
|
@@ -558,7 +558,7 @@ const et = {
|
|
|
558
558
|
}),
|
|
559
559
|
separator: "border border-1 separator"
|
|
560
560
|
}
|
|
561
|
-
},
|
|
561
|
+
}, gt = {
|
|
562
562
|
tabList: {
|
|
563
563
|
root: () => ({
|
|
564
564
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -583,7 +583,7 @@ const et = {
|
|
|
583
583
|
class: ["p-2"]
|
|
584
584
|
})
|
|
585
585
|
}
|
|
586
|
-
},
|
|
586
|
+
}, bt = {
|
|
587
587
|
// More PassThrough options defined in ForgeDatepicker.
|
|
588
588
|
datepicker: {
|
|
589
589
|
root: "d-flex flex-1 relative",
|
|
@@ -684,7 +684,7 @@ const et = {
|
|
|
684
684
|
pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
|
|
685
685
|
pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
|
|
686
686
|
}
|
|
687
|
-
},
|
|
687
|
+
}, yt = {
|
|
688
688
|
multiselect: {
|
|
689
689
|
root: ({ props: e }) => ({
|
|
690
690
|
class: [
|
|
@@ -712,7 +712,7 @@ const et = {
|
|
|
712
712
|
class: "d-none"
|
|
713
713
|
})
|
|
714
714
|
}
|
|
715
|
-
},
|
|
715
|
+
}, xt = {
|
|
716
716
|
// More PassThrough options in component file.
|
|
717
717
|
progressbar: {
|
|
718
718
|
root: () => ({
|
|
@@ -722,7 +722,7 @@ const et = {
|
|
|
722
722
|
class: ["text-white m-1"]
|
|
723
723
|
})
|
|
724
724
|
}
|
|
725
|
-
},
|
|
725
|
+
}, ht = {
|
|
726
726
|
panel: {
|
|
727
727
|
root: "card w-100",
|
|
728
728
|
header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
@@ -735,7 +735,7 @@ const et = {
|
|
|
735
735
|
},
|
|
736
736
|
contentContainer: "mt-2 mx-4 mb-4"
|
|
737
737
|
}
|
|
738
|
-
},
|
|
738
|
+
}, wt = {
|
|
739
739
|
// More PT options can be found in the ForgeTable file.
|
|
740
740
|
dataTable: {
|
|
741
741
|
root: "position-relative",
|
|
@@ -808,7 +808,7 @@ const et = {
|
|
|
808
808
|
]
|
|
809
809
|
})
|
|
810
810
|
}
|
|
811
|
-
},
|
|
811
|
+
}, kt = {
|
|
812
812
|
badge: {
|
|
813
813
|
root: ({ props: e }) => ({
|
|
814
814
|
class: [
|
|
@@ -830,7 +830,7 @@ const et = {
|
|
|
830
830
|
]
|
|
831
831
|
})
|
|
832
832
|
}
|
|
833
|
-
},
|
|
833
|
+
}, Bt = {
|
|
834
834
|
// More PassThrough options in component file.
|
|
835
835
|
menubar: {
|
|
836
836
|
rootList: ({ instance: e }) => ({
|
|
@@ -911,7 +911,7 @@ const et = {
|
|
|
911
911
|
]
|
|
912
912
|
})
|
|
913
913
|
}
|
|
914
|
-
},
|
|
914
|
+
}, $t = {
|
|
915
915
|
tooltip: {
|
|
916
916
|
root: ({ context: e }) => ({
|
|
917
917
|
class: [
|
|
@@ -933,7 +933,7 @@ const et = {
|
|
|
933
933
|
class: ["tooltip-inner"]
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
|
-
},
|
|
936
|
+
}, St = {
|
|
937
937
|
selectButton: {
|
|
938
938
|
root: () => ({
|
|
939
939
|
class: ["btn-group"]
|
|
@@ -1002,7 +1002,7 @@ const et = {
|
|
|
1002
1002
|
separator: "border-bottom"
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
|
-
},
|
|
1005
|
+
}, Ct = {
|
|
1006
1006
|
progressspinner: {
|
|
1007
1007
|
spin: () => ({
|
|
1008
1008
|
class: [
|
|
@@ -1010,7 +1010,7 @@ const et = {
|
|
|
1010
1010
|
]
|
|
1011
1011
|
})
|
|
1012
1012
|
}
|
|
1013
|
-
},
|
|
1013
|
+
}, Tt = {
|
|
1014
1014
|
card: {
|
|
1015
1015
|
root: () => ({
|
|
1016
1016
|
class: ["card"]
|
|
@@ -1034,11 +1034,11 @@ const et = {
|
|
|
1034
1034
|
class: ["card-header"]
|
|
1035
1035
|
})
|
|
1036
1036
|
}
|
|
1037
|
-
},
|
|
1037
|
+
}, zt = {
|
|
1038
1038
|
divider: {
|
|
1039
1039
|
root: "border-bottom w-100 m-1"
|
|
1040
1040
|
}
|
|
1041
|
-
},
|
|
1041
|
+
}, Pt = {
|
|
1042
1042
|
image: {
|
|
1043
1043
|
root: "position-relative d-inline-block",
|
|
1044
1044
|
previewMask: "preview-button",
|
|
@@ -1051,7 +1051,7 @@ const et = {
|
|
|
1051
1051
|
zoominbutton: "btn text-white",
|
|
1052
1052
|
closebutton: "btn text-white"
|
|
1053
1053
|
}
|
|
1054
|
-
},
|
|
1054
|
+
}, jt = {
|
|
1055
1055
|
toast: {
|
|
1056
1056
|
message: () => ({
|
|
1057
1057
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -1072,7 +1072,7 @@ const et = {
|
|
|
1072
1072
|
class: ["ps-1"]
|
|
1073
1073
|
}),
|
|
1074
1074
|
messageIcon: ({ props: e }) => {
|
|
1075
|
-
var t, a, i,
|
|
1075
|
+
var t, a, i, l, o;
|
|
1076
1076
|
return {
|
|
1077
1077
|
class: [
|
|
1078
1078
|
"toast-icon",
|
|
@@ -1080,14 +1080,14 @@ const et = {
|
|
|
1080
1080
|
"text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
|
|
1081
1081
|
"text-success": ((a = e.message) == null ? void 0 : a.severity) === "success",
|
|
1082
1082
|
"text-success-alternate": ((i = e.message) == null ? void 0 : i.severity) === "success-alternate",
|
|
1083
|
-
"text-danger": ((
|
|
1084
|
-
"text-warning": ((
|
|
1083
|
+
"text-danger": ((l = e.message) == null ? void 0 : l.severity) === "error",
|
|
1084
|
+
"text-warning": ((o = e.message) == null ? void 0 : o.severity) === "warn"
|
|
1085
1085
|
}
|
|
1086
1086
|
]
|
|
1087
1087
|
};
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
},
|
|
1090
|
+
}, Mt = {
|
|
1091
1091
|
tree: {
|
|
1092
1092
|
node: "m-1",
|
|
1093
1093
|
nodeToggleButton: ({ context: e }) => ({
|
|
@@ -1119,7 +1119,7 @@ const et = {
|
|
|
1119
1119
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1120
1120
|
filterIcon: "d-none"
|
|
1121
1121
|
}
|
|
1122
|
-
},
|
|
1122
|
+
}, It = {
|
|
1123
1123
|
treeSelect: {
|
|
1124
1124
|
root: ({ props: e }) => ({
|
|
1125
1125
|
class: [
|
|
@@ -1167,7 +1167,7 @@ const et = {
|
|
|
1167
1167
|
filterIcon: "d-none"
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
|
-
},
|
|
1170
|
+
}, Vt = {
|
|
1171
1171
|
fieldset: {
|
|
1172
1172
|
root: () => ({
|
|
1173
1173
|
class: [
|
|
@@ -1193,7 +1193,7 @@ const et = {
|
|
|
1193
1193
|
]
|
|
1194
1194
|
})
|
|
1195
1195
|
}
|
|
1196
|
-
},
|
|
1196
|
+
}, Dt = {
|
|
1197
1197
|
accordionPanel: {
|
|
1198
1198
|
root: "card my-2"
|
|
1199
1199
|
},
|
|
@@ -1210,7 +1210,7 @@ const et = {
|
|
|
1210
1210
|
accordionContent: {
|
|
1211
1211
|
root: "mt-2 mx-4 mb-4"
|
|
1212
1212
|
}
|
|
1213
|
-
},
|
|
1213
|
+
}, Ot = {
|
|
1214
1214
|
// More PT options can be found in the ForgeTable file.
|
|
1215
1215
|
treetable: {
|
|
1216
1216
|
root: "position-relative",
|
|
@@ -1231,7 +1231,7 @@ const et = {
|
|
|
1231
1231
|
class: "table-overlay table-spinner"
|
|
1232
1232
|
})
|
|
1233
1233
|
}
|
|
1234
|
-
},
|
|
1234
|
+
}, At = {
|
|
1235
1235
|
picklist: {
|
|
1236
1236
|
root: " d-flex gap-3",
|
|
1237
1237
|
pcMoveAllToSourceButton: { root: "btn btn-sm btn-outline-primary focus-ring " },
|
|
@@ -1267,7 +1267,7 @@ const et = {
|
|
|
1267
1267
|
sourceListContainer: " h-100 flex-1",
|
|
1268
1268
|
targetListContainer: "h-100 flex-1"
|
|
1269
1269
|
}
|
|
1270
|
-
},
|
|
1270
|
+
}, Lt = {
|
|
1271
1271
|
listbox: {
|
|
1272
1272
|
root: "border rounded",
|
|
1273
1273
|
list: "list-unstyled list-group list-group-flush",
|
|
@@ -1286,7 +1286,7 @@ const et = {
|
|
|
1286
1286
|
filterIcon: "d-none",
|
|
1287
1287
|
pcFilter: { root: "form-control form-control-sm mx-2 mt-2 mb-1" }
|
|
1288
1288
|
}
|
|
1289
|
-
},
|
|
1289
|
+
}, Nt = {
|
|
1290
1290
|
drawer: {
|
|
1291
1291
|
root: ({ props: e }) => ({
|
|
1292
1292
|
class: [
|
|
@@ -1312,49 +1312,49 @@ const et = {
|
|
|
1312
1312
|
]
|
|
1313
1313
|
})
|
|
1314
1314
|
}
|
|
1315
|
-
},
|
|
1316
|
-
...et,
|
|
1317
|
-
...wt,
|
|
1315
|
+
}, dl = {
|
|
1318
1316
|
...tt,
|
|
1319
|
-
...
|
|
1317
|
+
...kt,
|
|
1320
1318
|
...at,
|
|
1321
|
-
...pt,
|
|
1322
|
-
...ot,
|
|
1323
|
-
...gt,
|
|
1324
|
-
...ct,
|
|
1325
1319
|
...Tt,
|
|
1326
1320
|
...it,
|
|
1321
|
+
...pt,
|
|
1322
|
+
...ot,
|
|
1323
|
+
...bt,
|
|
1324
|
+
...ut,
|
|
1327
1325
|
...zt,
|
|
1328
1326
|
...lt,
|
|
1327
|
+
...Pt,
|
|
1329
1328
|
...nt,
|
|
1330
1329
|
...st,
|
|
1331
|
-
...
|
|
1332
|
-
...
|
|
1333
|
-
...kt,
|
|
1334
|
-
...ut,
|
|
1330
|
+
...rt,
|
|
1331
|
+
...vt,
|
|
1335
1332
|
...yt,
|
|
1336
|
-
...
|
|
1333
|
+
...Bt,
|
|
1334
|
+
...mt,
|
|
1337
1335
|
...xt,
|
|
1338
|
-
|
|
1339
|
-
...Ft,
|
|
1340
|
-
...vt,
|
|
1336
|
+
...Ct,
|
|
1341
1337
|
...ht,
|
|
1342
|
-
...
|
|
1338
|
+
...St,
|
|
1339
|
+
...Ft,
|
|
1343
1340
|
...ft,
|
|
1344
|
-
...
|
|
1341
|
+
...wt,
|
|
1345
1342
|
...dt,
|
|
1346
|
-
...
|
|
1347
|
-
...Mt,
|
|
1343
|
+
...gt,
|
|
1348
1344
|
...jt,
|
|
1349
|
-
...
|
|
1345
|
+
...ct,
|
|
1350
1346
|
...Vt,
|
|
1347
|
+
...It,
|
|
1348
|
+
...Mt,
|
|
1351
1349
|
...Dt,
|
|
1352
1350
|
...Ot,
|
|
1353
1351
|
...At,
|
|
1352
|
+
...Lt,
|
|
1353
|
+
...Nt,
|
|
1354
1354
|
directives: {
|
|
1355
|
-
|
|
1355
|
+
...$t
|
|
1356
1356
|
}
|
|
1357
|
-
},
|
|
1357
|
+
}, de = /* @__PURE__ */ z({
|
|
1358
1358
|
__name: "ForgeAlert",
|
|
1359
1359
|
props: {
|
|
1360
1360
|
severity: { default: "primary" },
|
|
@@ -1374,13 +1374,13 @@ const et = {
|
|
|
1374
1374
|
setup(e) {
|
|
1375
1375
|
const t = e;
|
|
1376
1376
|
return (a, i) => {
|
|
1377
|
-
const
|
|
1378
|
-
return d(),
|
|
1379
|
-
icon:
|
|
1377
|
+
const l = Se;
|
|
1378
|
+
return d(), y(l, G(Y({ ...a.$attrs, ...t })), {
|
|
1379
|
+
icon: v(() => [
|
|
1380
1380
|
m("div", {
|
|
1381
1381
|
class: P(t.icon ? "me-2 pe-1" : "")
|
|
1382
1382
|
}, [
|
|
1383
|
-
t.icon ? (d(),
|
|
1383
|
+
t.icon ? (d(), y(p(V), {
|
|
1384
1384
|
key: 0,
|
|
1385
1385
|
"data-cy": "message-icon",
|
|
1386
1386
|
icon: t.icon,
|
|
@@ -1389,17 +1389,17 @@ const et = {
|
|
|
1389
1389
|
}, null, 8, ["icon", "class"])) : T("", !0)
|
|
1390
1390
|
], 2)
|
|
1391
1391
|
]),
|
|
1392
|
-
closeicon:
|
|
1393
|
-
|
|
1392
|
+
closeicon: v(() => [
|
|
1393
|
+
h(p(V), { icon: "bi:x" })
|
|
1394
1394
|
]),
|
|
1395
|
-
default:
|
|
1395
|
+
default: v(() => [
|
|
1396
1396
|
C(a.$slots, "default")
|
|
1397
1397
|
]),
|
|
1398
1398
|
_: 3
|
|
1399
1399
|
}, 16);
|
|
1400
1400
|
};
|
|
1401
1401
|
}
|
|
1402
|
-
}),
|
|
1402
|
+
}), cl = /* @__PURE__ */ z({
|
|
1403
1403
|
__name: "ForgeActionButton",
|
|
1404
1404
|
props: {
|
|
1405
1405
|
action: {},
|
|
@@ -1412,36 +1412,36 @@ const et = {
|
|
|
1412
1412
|
t.value = !0;
|
|
1413
1413
|
try {
|
|
1414
1414
|
await a.action.apply(this, a.params);
|
|
1415
|
-
} catch (
|
|
1416
|
-
await a.errorAction.apply(this, a.errorParams ? [...a.errorParams,
|
|
1415
|
+
} catch (l) {
|
|
1416
|
+
await a.errorAction.apply(this, a.errorParams ? [...a.errorParams, l] : [l]);
|
|
1417
1417
|
}
|
|
1418
1418
|
t.value = !1;
|
|
1419
1419
|
};
|
|
1420
|
-
return (
|
|
1421
|
-
const n =
|
|
1422
|
-
return d(),
|
|
1423
|
-
|
|
1420
|
+
return (l, o) => {
|
|
1421
|
+
const n = R;
|
|
1422
|
+
return d(), g(E, null, [
|
|
1423
|
+
h(n, j({ ...a, ...l.$attrs }, {
|
|
1424
1424
|
loading: t.value,
|
|
1425
1425
|
disabled: t.value || a.disabled,
|
|
1426
1426
|
onClick: i
|
|
1427
1427
|
}), null, 16, ["loading", "disabled"]),
|
|
1428
|
-
|
|
1428
|
+
h(p(Pe))
|
|
1429
1429
|
], 64);
|
|
1430
1430
|
};
|
|
1431
1431
|
}
|
|
1432
|
-
}),
|
|
1432
|
+
}), pl = /* @__PURE__ */ z({
|
|
1433
1433
|
__name: "ForgeAutoComplete",
|
|
1434
1434
|
setup(e) {
|
|
1435
|
-
return (t, a) => (d(),
|
|
1436
|
-
default:
|
|
1437
|
-
(d(!0),
|
|
1435
|
+
return (t, a) => (d(), y(p(je), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1436
|
+
default: v(() => [
|
|
1437
|
+
(d(!0), g(E, null, q(t.$slots, (i, l) => C(t.$slots, l, { slot: l })), 256))
|
|
1438
1438
|
]),
|
|
1439
1439
|
_: 3
|
|
1440
1440
|
}, 16));
|
|
1441
1441
|
}
|
|
1442
|
-
}),
|
|
1442
|
+
}), Ut = { class: "d-flex flex-column" }, Et = ["for"], xe = /* @__PURE__ */ z({
|
|
1443
1443
|
__name: "ForgeCheckbox",
|
|
1444
|
-
props: /* @__PURE__ */
|
|
1444
|
+
props: /* @__PURE__ */ _({
|
|
1445
1445
|
label: { default: "" },
|
|
1446
1446
|
value: {},
|
|
1447
1447
|
modelValue: {},
|
|
@@ -1474,25 +1474,25 @@ const et = {
|
|
|
1474
1474
|
}),
|
|
1475
1475
|
emits: ["update:modelValue"],
|
|
1476
1476
|
setup(e) {
|
|
1477
|
-
const t = e, a =
|
|
1477
|
+
const t = e, a = N(e, "modelValue"), { handleChange: i, errors: l, errorMessage: o } = re(
|
|
1478
1478
|
() => t.name ?? "",
|
|
1479
1479
|
void 0,
|
|
1480
1480
|
{
|
|
1481
1481
|
type: "checkbox",
|
|
1482
1482
|
checkedValue: a.value
|
|
1483
1483
|
}
|
|
1484
|
-
), n = (
|
|
1485
|
-
(t.disabled || t.readonly) &&
|
|
1486
|
-
}, s = M(() =>
|
|
1487
|
-
return (
|
|
1488
|
-
const
|
|
1489
|
-
return d(),
|
|
1484
|
+
), n = (c, u) => {
|
|
1485
|
+
(t.disabled || t.readonly) && c.preventDefault(), t.name ? i(u) : a.value = u;
|
|
1486
|
+
}, s = M(() => l.value.length > 0);
|
|
1487
|
+
return (c, u) => {
|
|
1488
|
+
const w = Me;
|
|
1489
|
+
return d(), g("div", Ut, [
|
|
1490
1490
|
m("div", j({
|
|
1491
1491
|
class: "d-flex",
|
|
1492
1492
|
"data-cy": "checkbox-container",
|
|
1493
1493
|
onClick: u[2] || (u[2] = (r) => n(r, a.value))
|
|
1494
|
-
}, { ...
|
|
1495
|
-
|
|
1494
|
+
}, { ...c.$attrs }), [
|
|
1495
|
+
h(w, j({ ...t }, {
|
|
1496
1496
|
binary: "",
|
|
1497
1497
|
modelValue: a.value,
|
|
1498
1498
|
"onUpdate:modelValue": u[0] || (u[0] = (r) => a.value = r),
|
|
@@ -1505,21 +1505,21 @@ const et = {
|
|
|
1505
1505
|
onClick: u[1] || (u[1] = (r) => n(r, !a.value)),
|
|
1506
1506
|
class: P([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1507
1507
|
}, [
|
|
1508
|
-
C(
|
|
1509
|
-
|
|
1508
|
+
C(c.$slots, "default", {}, () => [
|
|
1509
|
+
O(B(t.label), 1)
|
|
1510
1510
|
])
|
|
1511
|
-
], 10,
|
|
1511
|
+
], 10, Et)
|
|
1512
1512
|
], 16),
|
|
1513
1513
|
K(m("small", {
|
|
1514
1514
|
"data-cy": "error",
|
|
1515
1515
|
class: "text-invalid"
|
|
1516
|
-
},
|
|
1516
|
+
}, B(p(o)), 513), [
|
|
1517
1517
|
[X, s.value]
|
|
1518
1518
|
])
|
|
1519
1519
|
]);
|
|
1520
1520
|
};
|
|
1521
1521
|
}
|
|
1522
|
-
}),
|
|
1522
|
+
}), me = /* @__PURE__ */ z({
|
|
1523
1523
|
__name: "ForgeLoader",
|
|
1524
1524
|
props: {
|
|
1525
1525
|
severity: { default: "primary" },
|
|
@@ -1536,12 +1536,12 @@ const et = {
|
|
|
1536
1536
|
]
|
|
1537
1537
|
})
|
|
1538
1538
|
}));
|
|
1539
|
-
return (i,
|
|
1540
|
-
const
|
|
1541
|
-
return d(),
|
|
1542
|
-
class: P(
|
|
1539
|
+
return (i, l) => {
|
|
1540
|
+
const o = Ie;
|
|
1541
|
+
return d(), g("div", {
|
|
1542
|
+
class: P(e.inLine ? "" : "forge-loader")
|
|
1543
1543
|
}, [
|
|
1544
|
-
|
|
1544
|
+
h(o, {
|
|
1545
1545
|
"animation-duration": ".75",
|
|
1546
1546
|
class: P(`text-${t.severity === void 0 ? "primary" : t.severity}`),
|
|
1547
1547
|
pt: a.value
|
|
@@ -1549,7 +1549,7 @@ const et = {
|
|
|
1549
1549
|
], 2);
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
1552
|
-
}),
|
|
1552
|
+
}), qt = ["href", "target"], ul = /* @__PURE__ */ z({
|
|
1553
1553
|
__name: "ForgeLink",
|
|
1554
1554
|
props: {
|
|
1555
1555
|
url: {},
|
|
@@ -1583,25 +1583,25 @@ const et = {
|
|
|
1583
1583
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1584
1584
|
"me-0": e.animateIconOnHover
|
|
1585
1585
|
}));
|
|
1586
|
-
return (i,
|
|
1586
|
+
return (i, l) => (d(), g("a", {
|
|
1587
1587
|
id: "link",
|
|
1588
1588
|
class: P(["cursor-pointer d-flex text-break", t.value]),
|
|
1589
|
-
href:
|
|
1590
|
-
target:
|
|
1589
|
+
href: e.url,
|
|
1590
|
+
target: e.target
|
|
1591
1591
|
}, [
|
|
1592
1592
|
C(i.$slots, "default", {}, () => [
|
|
1593
|
-
|
|
1593
|
+
e.iconName ? (d(), y(p(V), {
|
|
1594
1594
|
key: 0,
|
|
1595
1595
|
id: "link-icon",
|
|
1596
|
-
icon:
|
|
1596
|
+
icon: e.iconName,
|
|
1597
1597
|
class: P(["bi my-auto", a.value])
|
|
1598
1598
|
}, null, 8, ["icon", "class"])) : T("", !0),
|
|
1599
|
-
|
|
1599
|
+
O(" " + B(e.label), 1)
|
|
1600
1600
|
])
|
|
1601
|
-
], 10,
|
|
1601
|
+
], 10, qt));
|
|
1602
1602
|
}
|
|
1603
1603
|
});
|
|
1604
|
-
function
|
|
1604
|
+
function _t(e) {
|
|
1605
1605
|
const t = {
|
|
1606
1606
|
errorMessage: "",
|
|
1607
1607
|
errorDetails: []
|
|
@@ -1612,22 +1612,22 @@ function Et(e) {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function ml(e, t) {
|
|
1616
1616
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function vl(e, t, a) {
|
|
1619
1619
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1620
1620
|
}
|
|
1621
|
-
const
|
|
1621
|
+
const Rt = {
|
|
1622
1622
|
key: 0,
|
|
1623
1623
|
class: "sticky-top py-3 error-bg",
|
|
1624
1624
|
"data-cy": "error-wrapper"
|
|
1625
|
-
},
|
|
1625
|
+
}, Ht = { key: 0 }, Wt = {
|
|
1626
1626
|
class: "d-flex w-100",
|
|
1627
1627
|
"data-cy": "footer"
|
|
1628
|
-
},
|
|
1628
|
+
}, fl = /* @__PURE__ */ z({
|
|
1629
1629
|
__name: "ForgeModal",
|
|
1630
|
-
props: /* @__PURE__ */
|
|
1630
|
+
props: /* @__PURE__ */ _({
|
|
1631
1631
|
cancelText: { default: "Cancel" },
|
|
1632
1632
|
submitText: { default: "Submit" },
|
|
1633
1633
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1688,7 +1688,7 @@ const qt = {
|
|
|
1688
1688
|
}),
|
|
1689
1689
|
emits: ["update:visible", "update:error"],
|
|
1690
1690
|
setup(e, { expose: t }) {
|
|
1691
|
-
const a =
|
|
1691
|
+
const a = N(e, "visible"), i = I(!1), l = e, o = I(!1), n = N(e, "error"), s = () => {
|
|
1692
1692
|
n.value = {
|
|
1693
1693
|
hasError: !1,
|
|
1694
1694
|
header: "",
|
|
@@ -1698,62 +1698,62 @@ const qt = {
|
|
|
1698
1698
|
t({
|
|
1699
1699
|
resetError: s
|
|
1700
1700
|
});
|
|
1701
|
-
const
|
|
1701
|
+
const c = () => {
|
|
1702
1702
|
i.value = !1;
|
|
1703
1703
|
}, u = () => {
|
|
1704
1704
|
i.value = !0;
|
|
1705
|
-
},
|
|
1706
|
-
|
|
1705
|
+
}, w = () => {
|
|
1706
|
+
l.resetErrorOnClose && s(), a.value = !1;
|
|
1707
1707
|
}, r = async () => {
|
|
1708
|
-
if (
|
|
1709
|
-
|
|
1708
|
+
if (l.onConfirm) {
|
|
1709
|
+
o.value = !0, n.value.hasError = !1;
|
|
1710
1710
|
try {
|
|
1711
|
-
const
|
|
1712
|
-
(
|
|
1713
|
-
} catch (
|
|
1711
|
+
const b = await l.onConfirm();
|
|
1712
|
+
(b || b == null) && w();
|
|
1713
|
+
} catch (b) {
|
|
1714
1714
|
n.value.hasError = !0;
|
|
1715
|
-
const S =
|
|
1715
|
+
const S = _t(b);
|
|
1716
1716
|
n.value.header = S.errorMessage, n.value.message = S.errorDetails;
|
|
1717
1717
|
}
|
|
1718
|
-
|
|
1718
|
+
o.value = !1;
|
|
1719
1719
|
}
|
|
1720
|
-
},
|
|
1720
|
+
}, x = M(() => ({
|
|
1721
1721
|
root: [
|
|
1722
1722
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1723
1723
|
{
|
|
1724
1724
|
"mw-100 vh-100 vw-100 top-0 start-0": i.value,
|
|
1725
|
-
"modal-sm":
|
|
1726
|
-
"modal-lg":
|
|
1727
|
-
"modal-xl":
|
|
1725
|
+
"modal-sm": l.size === "sm",
|
|
1726
|
+
"modal-lg": l.size === "lg",
|
|
1727
|
+
"modal-xl": l.size === "xl"
|
|
1728
1728
|
}
|
|
1729
1729
|
],
|
|
1730
1730
|
content: [
|
|
1731
1731
|
"modal-body overflow-y-auto",
|
|
1732
1732
|
{
|
|
1733
|
-
[`${
|
|
1734
|
-
[`${
|
|
1733
|
+
[`${l.maxHeight}`]: l.maxHeight && !i.value,
|
|
1734
|
+
[`${l.minHeight}`]: l.minHeight && !i.value,
|
|
1735
1735
|
"pt-0": n.value.hasError
|
|
1736
1736
|
}
|
|
1737
1737
|
]
|
|
1738
1738
|
}));
|
|
1739
|
-
return (
|
|
1740
|
-
const F =
|
|
1741
|
-
return d(),
|
|
1739
|
+
return (b, S) => {
|
|
1740
|
+
const F = R, L = Ve;
|
|
1741
|
+
return d(), y(L, j(l, {
|
|
1742
1742
|
onMaximize: u,
|
|
1743
|
-
onUnmaximize:
|
|
1744
|
-
pt:
|
|
1745
|
-
}),
|
|
1746
|
-
closeicon:
|
|
1747
|
-
|
|
1743
|
+
onUnmaximize: c,
|
|
1744
|
+
pt: x.value
|
|
1745
|
+
}), le({
|
|
1746
|
+
closeicon: v(() => [
|
|
1747
|
+
h(p(V), {
|
|
1748
1748
|
"data-cy": "close-icon",
|
|
1749
1749
|
icon: "bi:x-lg",
|
|
1750
1750
|
width: "18",
|
|
1751
1751
|
height: "18",
|
|
1752
|
-
onClick:
|
|
1752
|
+
onClick: w
|
|
1753
1753
|
})
|
|
1754
1754
|
]),
|
|
1755
|
-
maximizeicon:
|
|
1756
|
-
|
|
1755
|
+
maximizeicon: v(() => [
|
|
1756
|
+
h(p(V), {
|
|
1757
1757
|
"data-cy": "maximisable-icon",
|
|
1758
1758
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1759
1759
|
width: "16",
|
|
@@ -1762,52 +1762,52 @@ const qt = {
|
|
|
1762
1762
|
]),
|
|
1763
1763
|
_: 2
|
|
1764
1764
|
}, [
|
|
1765
|
-
|
|
1766
|
-
name:
|
|
1767
|
-
fn:
|
|
1768
|
-
|
|
1769
|
-
n.value.hasError && !
|
|
1770
|
-
|
|
1765
|
+
q(b.$slots, ($, k) => ({
|
|
1766
|
+
name: k,
|
|
1767
|
+
fn: v((A) => [
|
|
1768
|
+
k == "default" ? (d(), g(E, { key: 0 }, [
|
|
1769
|
+
n.value.hasError && !e.hideErrorBanner ? (d(), g("div", Rt, [
|
|
1770
|
+
h(de, {
|
|
1771
1771
|
severity: "danger",
|
|
1772
1772
|
"data-cy": "error",
|
|
1773
1773
|
class: "mb-0"
|
|
1774
1774
|
}, {
|
|
1775
|
-
default:
|
|
1775
|
+
default: v(() => [
|
|
1776
1776
|
m("p", {
|
|
1777
1777
|
class: P(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1778
|
-
},
|
|
1779
|
-
n.value.message.length > 0 ? (d(),
|
|
1780
|
-
(d(!0),
|
|
1778
|
+
}, B(n.value.header), 3),
|
|
1779
|
+
n.value.message.length > 0 ? (d(), g("ul", Ht, [
|
|
1780
|
+
(d(!0), g(E, null, q(n.value.message, (f) => (d(), g("li", { key: f }, B(f), 1))), 128))
|
|
1781
1781
|
])) : T("", !0)
|
|
1782
1782
|
]),
|
|
1783
1783
|
_: 1
|
|
1784
1784
|
})
|
|
1785
1785
|
])) : T("", !0)
|
|
1786
1786
|
], 64)) : T("", !0),
|
|
1787
|
-
C(
|
|
1788
|
-
|
|
1789
|
-
|
|
1787
|
+
C(b.$slots, k, G(Y(A || {}))),
|
|
1788
|
+
o.value ? C(b.$slots, "loader", { key: 1 }, () => [
|
|
1789
|
+
h(me, { "data-cy": "loader" })
|
|
1790
1790
|
]) : T("", !0)
|
|
1791
1791
|
])
|
|
1792
1792
|
})),
|
|
1793
|
-
|
|
1793
|
+
e.showFooter ? {
|
|
1794
1794
|
name: "footer",
|
|
1795
|
-
fn:
|
|
1796
|
-
m("div",
|
|
1797
|
-
|
|
1798
|
-
label:
|
|
1799
|
-
class: P(
|
|
1795
|
+
fn: v(() => [
|
|
1796
|
+
m("div", Wt, [
|
|
1797
|
+
h(F, {
|
|
1798
|
+
label: e.cancelText,
|
|
1799
|
+
class: P(l.cancelClass),
|
|
1800
1800
|
outlined: "",
|
|
1801
|
-
onClick:
|
|
1801
|
+
onClick: w,
|
|
1802
1802
|
id: "cancel-button",
|
|
1803
|
-
type:
|
|
1803
|
+
type: l.cancelButtonType
|
|
1804
1804
|
}, null, 8, ["label", "class", "type"]),
|
|
1805
|
-
|
|
1806
|
-
label:
|
|
1807
|
-
class: P([
|
|
1805
|
+
h(F, {
|
|
1806
|
+
label: e.submitText,
|
|
1807
|
+
class: P([l.submitClass, "ms-auto"]),
|
|
1808
1808
|
onClick: r,
|
|
1809
1809
|
id: "submit-button",
|
|
1810
|
-
type:
|
|
1810
|
+
type: l.submitButtonType
|
|
1811
1811
|
}, null, 8, ["label", "class", "type"])
|
|
1812
1812
|
])
|
|
1813
1813
|
]),
|
|
@@ -1816,9 +1816,9 @@ const qt = {
|
|
|
1816
1816
|
]), 1040, ["pt"]);
|
|
1817
1817
|
};
|
|
1818
1818
|
}
|
|
1819
|
-
}),
|
|
1819
|
+
}), Gt = ["id"], Yt = { key: 0 }, Jt = { key: 0 }, Kt = { class: "d-flex justify-content-between align-items-center position-relative" }, Zt = { key: 1 }, Xt = { "data-cy": "readonly-value" }, Qt = /* @__PURE__ */ z({
|
|
1820
1820
|
__name: "ForgeInlineEditor",
|
|
1821
|
-
props: /* @__PURE__ */
|
|
1821
|
+
props: /* @__PURE__ */ _({
|
|
1822
1822
|
name: { default: "" },
|
|
1823
1823
|
completeAction: {},
|
|
1824
1824
|
errorAction: {},
|
|
@@ -1831,11 +1831,11 @@ const qt = {
|
|
|
1831
1831
|
}),
|
|
1832
1832
|
emits: ["update:modelValue"],
|
|
1833
1833
|
setup(e) {
|
|
1834
|
-
const t = e, a =
|
|
1835
|
-
var
|
|
1836
|
-
i.value = !i.value, (
|
|
1834
|
+
const t = e, a = N(e, "modelValue"), i = I(!1), l = I(), o = () => {
|
|
1835
|
+
var b;
|
|
1836
|
+
i.value = !i.value, (b = l.value) == null || b.focus();
|
|
1837
1837
|
}, n = async () => {
|
|
1838
|
-
if (
|
|
1838
|
+
if (x.value)
|
|
1839
1839
|
return !1;
|
|
1840
1840
|
if (a.value = r.value, t.completeAction)
|
|
1841
1841
|
try {
|
|
@@ -1847,79 +1847,79 @@ const qt = {
|
|
|
1847
1847
|
i.value = !i.value;
|
|
1848
1848
|
}, s = () => {
|
|
1849
1849
|
i.value = !i.value;
|
|
1850
|
-
},
|
|
1850
|
+
}, c = () => {
|
|
1851
1851
|
r.value = null;
|
|
1852
|
-
}, { errorMessage: u, errors:
|
|
1852
|
+
}, { errorMessage: u, errors: w, value: r } = re(() => t.name, void 0, {
|
|
1853
1853
|
initialValue: a.value
|
|
1854
1854
|
});
|
|
1855
|
-
|
|
1855
|
+
se(() => {
|
|
1856
1856
|
r.value = a.value;
|
|
1857
1857
|
});
|
|
1858
|
-
const
|
|
1859
|
-
return (
|
|
1860
|
-
const F =
|
|
1861
|
-
return d(),
|
|
1858
|
+
const x = M(() => w.value.length > 0);
|
|
1859
|
+
return (b, S) => {
|
|
1860
|
+
const F = ie, L = R;
|
|
1861
|
+
return d(), g("div", {
|
|
1862
1862
|
id: t.name
|
|
1863
1863
|
}, [
|
|
1864
|
-
|
|
1865
|
-
C(
|
|
1866
|
-
m("span",
|
|
1864
|
+
e.readonly ? (d(), g("div", Zt, [
|
|
1865
|
+
C(b.$slots, "default", {}, () => [
|
|
1866
|
+
m("span", Xt, B(p(r)), 1)
|
|
1867
1867
|
])
|
|
1868
|
-
])) : (d(),
|
|
1869
|
-
i.value ? (d(),
|
|
1870
|
-
K((d(),
|
|
1871
|
-
C(
|
|
1872
|
-
class: P({ "is-invalid":
|
|
1868
|
+
])) : (d(), g("div", Yt, [
|
|
1869
|
+
i.value ? (d(), g("div", Jt, [
|
|
1870
|
+
K((d(), g("div", Kt, [
|
|
1871
|
+
C(b.$slots, "editor", {
|
|
1872
|
+
class: P({ "is-invalid": x.value }),
|
|
1873
1873
|
editFinished: n,
|
|
1874
1874
|
cancel: s,
|
|
1875
|
-
val:
|
|
1875
|
+
val: p(r)
|
|
1876
1876
|
}, () => [
|
|
1877
|
-
|
|
1878
|
-
modelValue:
|
|
1879
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
1877
|
+
h(F, {
|
|
1878
|
+
modelValue: p(r),
|
|
1879
|
+
"onUpdate:modelValue": S[0] || (S[0] = ($) => Fe(r) ? r.value = $ : null),
|
|
1880
1880
|
modelModifiers: { trim: !0 },
|
|
1881
1881
|
"data-cy": "input",
|
|
1882
1882
|
ref_key: "input",
|
|
1883
|
-
ref:
|
|
1884
|
-
class: P({ "is-invalid":
|
|
1883
|
+
ref: l,
|
|
1884
|
+
class: P({ "is-invalid": x.value }),
|
|
1885
1885
|
onKeydown: [
|
|
1886
|
-
|
|
1887
|
-
|
|
1886
|
+
ne(n, ["enter"]),
|
|
1887
|
+
ne(s, ["esc"])
|
|
1888
1888
|
]
|
|
1889
1889
|
}, null, 8, ["modelValue", "class"])
|
|
1890
1890
|
]),
|
|
1891
|
-
|
|
1891
|
+
h(p(V), {
|
|
1892
1892
|
icon: "bi:x-circle",
|
|
1893
1893
|
class: "mx-2 cursor-pointer",
|
|
1894
|
-
onClick:
|
|
1895
|
-
onKeydown:
|
|
1894
|
+
onClick: c,
|
|
1895
|
+
onKeydown: ne(c, ["enter"]),
|
|
1896
1896
|
"data-cy": "clear-icon"
|
|
1897
1897
|
})
|
|
1898
1898
|
])), [
|
|
1899
|
-
[
|
|
1899
|
+
[p(De), n]
|
|
1900
1900
|
])
|
|
1901
|
-
])) : (d(),
|
|
1901
|
+
])) : (d(), g("div", {
|
|
1902
1902
|
key: 1,
|
|
1903
1903
|
class: "d-flex text-muted",
|
|
1904
|
-
onClick:
|
|
1905
|
-
onFocus:
|
|
1904
|
+
onClick: o,
|
|
1905
|
+
onFocus: o
|
|
1906
1906
|
}, [
|
|
1907
|
-
C(
|
|
1907
|
+
C(b.$slots, "default", {}, () => [
|
|
1908
1908
|
m("div", {
|
|
1909
|
-
class: P(["pe-2 cursor-pointer", { "text-invalid":
|
|
1909
|
+
class: P(["pe-2 cursor-pointer", { "text-invalid": x.value }]),
|
|
1910
1910
|
"data-cy": "value"
|
|
1911
|
-
},
|
|
1911
|
+
}, B(p(r) ? p(r) : "Click to edit"), 3)
|
|
1912
1912
|
]),
|
|
1913
|
-
|
|
1913
|
+
h(L, {
|
|
1914
1914
|
link: "",
|
|
1915
1915
|
class: "p-0 m-0"
|
|
1916
1916
|
}, {
|
|
1917
|
-
default:
|
|
1918
|
-
|
|
1917
|
+
default: v(() => [
|
|
1918
|
+
h(p(V), {
|
|
1919
1919
|
icon: "bi:pencil",
|
|
1920
|
-
class: P(
|
|
1920
|
+
class: P(x.value ? "text-invalid" : "text-muted"),
|
|
1921
1921
|
"data-cy": "edit-icon",
|
|
1922
|
-
onKeydown:
|
|
1922
|
+
onKeydown: ne(o, ["enter"])
|
|
1923
1923
|
}, null, 8, ["class"])
|
|
1924
1924
|
]),
|
|
1925
1925
|
_: 1
|
|
@@ -1929,13 +1929,13 @@ const qt = {
|
|
|
1929
1929
|
K(m("small", {
|
|
1930
1930
|
"data-cy": "error",
|
|
1931
1931
|
class: "text-invalid"
|
|
1932
|
-
},
|
|
1933
|
-
[X,
|
|
1932
|
+
}, B(p(u)), 513), [
|
|
1933
|
+
[X, x.value]
|
|
1934
1934
|
])
|
|
1935
|
-
], 8,
|
|
1935
|
+
], 8, Gt);
|
|
1936
1936
|
};
|
|
1937
1937
|
}
|
|
1938
|
-
}),
|
|
1938
|
+
}), ea = ["href"], gl = /* @__PURE__ */ z({
|
|
1939
1939
|
__name: "ForgeNavbar",
|
|
1940
1940
|
props: {
|
|
1941
1941
|
severity: { default: "light" },
|
|
@@ -1980,24 +1980,24 @@ const qt = {
|
|
|
1980
1980
|
]
|
|
1981
1981
|
})
|
|
1982
1982
|
}));
|
|
1983
|
-
return (i,
|
|
1983
|
+
return (i, l) => (d(), y(p(Oe), j({ ...t, ...i.$attrs }, {
|
|
1984
1984
|
pt: a.value,
|
|
1985
1985
|
"data-cy": "navbar"
|
|
1986
|
-
}),
|
|
1987
|
-
start:
|
|
1986
|
+
}), le({
|
|
1987
|
+
start: v(() => [
|
|
1988
1988
|
m("a", {
|
|
1989
|
-
href:
|
|
1989
|
+
href: e.logoUrl,
|
|
1990
1990
|
class: "navbar-brand ms-3",
|
|
1991
1991
|
"data-cy": "logo"
|
|
1992
1992
|
}, [
|
|
1993
1993
|
C(i.$slots, "logo", {}, () => [
|
|
1994
|
-
|
|
1994
|
+
l[0] || (l[0] = O(" Logo ", -1))
|
|
1995
1995
|
])
|
|
1996
|
-
], 8,
|
|
1996
|
+
], 8, ea)
|
|
1997
1997
|
]),
|
|
1998
|
-
buttonicon:
|
|
1998
|
+
buttonicon: v(() => [
|
|
1999
1999
|
C(i.$slots, "buttonIcon", {}, () => [
|
|
2000
|
-
|
|
2000
|
+
h(p(V), {
|
|
2001
2001
|
icon: "bi:list",
|
|
2002
2002
|
class: P(t.severity === "light" ? "text-black" : "text-white"),
|
|
2003
2003
|
height: "24",
|
|
@@ -2007,24 +2007,24 @@ const qt = {
|
|
|
2007
2007
|
]),
|
|
2008
2008
|
_: 2
|
|
2009
2009
|
}, [
|
|
2010
|
-
|
|
2010
|
+
q(i.$slots, (o, n) => ({
|
|
2011
2011
|
name: n,
|
|
2012
|
-
fn:
|
|
2012
|
+
fn: v((s) => [
|
|
2013
2013
|
C(i.$slots, n, G(Y(s)))
|
|
2014
2014
|
])
|
|
2015
2015
|
}))
|
|
2016
2016
|
]), 1040, ["pt"]));
|
|
2017
2017
|
}
|
|
2018
|
-
}),
|
|
2018
|
+
}), ta = { class: "border alternating-item-list" }, aa = {
|
|
2019
2019
|
key: 0,
|
|
2020
2020
|
class: "p-2 border-top border-bottom",
|
|
2021
2021
|
"data-cy": "title"
|
|
2022
|
-
},
|
|
2022
|
+
}, ia = { class: "d-inline-block" }, la = {
|
|
2023
2023
|
key: 1,
|
|
2024
2024
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
2025
2025
|
}, oa = /* @__PURE__ */ z({
|
|
2026
2026
|
__name: "ForgeMultiSelectPreview",
|
|
2027
|
-
props: /* @__PURE__ */
|
|
2027
|
+
props: /* @__PURE__ */ _({
|
|
2028
2028
|
title: { default: "Selected Items" },
|
|
2029
2029
|
orientation: { default: "row" },
|
|
2030
2030
|
height: { default: "200px" },
|
|
@@ -2038,98 +2038,98 @@ const qt = {
|
|
|
2038
2038
|
}),
|
|
2039
2039
|
emits: ["update:modelValue"],
|
|
2040
2040
|
setup(e) {
|
|
2041
|
-
const t = e, a =
|
|
2042
|
-
a.value = a.value.filter((
|
|
2041
|
+
const t = e, a = N(e, "modelValue"), i = (l) => {
|
|
2042
|
+
a.value = a.value.filter((o) => o.id !== l);
|
|
2043
2043
|
};
|
|
2044
|
-
return (
|
|
2045
|
-
const n =
|
|
2046
|
-
return d(),
|
|
2047
|
-
class: P(
|
|
2044
|
+
return (l, o) => {
|
|
2045
|
+
const n = ue, s = R;
|
|
2046
|
+
return d(), g("div", {
|
|
2047
|
+
class: P(e.orientation === "column" ? "row" : "flex-1"),
|
|
2048
2048
|
"data-cy": "multiselect-preview"
|
|
2049
2049
|
}, [
|
|
2050
2050
|
m("div", {
|
|
2051
|
-
class: P(
|
|
2051
|
+
class: P(e.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
2052
2052
|
"data-cy": "multiselect-container"
|
|
2053
2053
|
}, [
|
|
2054
|
-
|
|
2054
|
+
h(n, j({
|
|
2055
2055
|
modelValue: a.value,
|
|
2056
|
-
"onUpdate:modelValue":
|
|
2057
|
-
}, { ...
|
|
2056
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => a.value = c)
|
|
2057
|
+
}, { ...l.$attrs }, {
|
|
2058
2058
|
options: t.options ?? [],
|
|
2059
2059
|
optionLabel: "label",
|
|
2060
|
-
placeholder:
|
|
2060
|
+
placeholder: e.multiselectPlaceholder,
|
|
2061
2061
|
"data-cy": "multiselect"
|
|
2062
2062
|
}), {
|
|
2063
|
-
default:
|
|
2064
|
-
(d(!0),
|
|
2063
|
+
default: v(() => [
|
|
2064
|
+
(d(!0), g(E, null, q(l.$slots, (c, u) => C(l.$slots, u, { slot: u })), 256))
|
|
2065
2065
|
]),
|
|
2066
2066
|
_: 3
|
|
2067
2067
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
2068
|
-
C(
|
|
2068
|
+
C(l.$slots, "after-multi-select")
|
|
2069
2069
|
], 2),
|
|
2070
2070
|
m("div", {
|
|
2071
|
-
class: P(
|
|
2071
|
+
class: P(e.orientation === "row" ? "col-12" : "col"),
|
|
2072
2072
|
"data-cy": "options-preview"
|
|
2073
2073
|
}, [
|
|
2074
2074
|
m("div", {
|
|
2075
|
-
style: Ce({ height:
|
|
2075
|
+
style: Ce({ height: e.height }),
|
|
2076
2076
|
class: "overflow-auto"
|
|
2077
2077
|
}, [
|
|
2078
|
-
m("div",
|
|
2079
|
-
|
|
2080
|
-
(d(!0),
|
|
2081
|
-
key:
|
|
2078
|
+
m("div", ta, [
|
|
2079
|
+
e.title ? (d(), g("div", aa, B(e.title), 1)) : T("", !0),
|
|
2080
|
+
(d(!0), g(E, null, q(a.value, (c) => (d(), g("div", {
|
|
2081
|
+
key: c.id,
|
|
2082
2082
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
2083
2083
|
}, [
|
|
2084
|
-
C(
|
|
2085
|
-
m("span",
|
|
2084
|
+
C(l.$slots, "list-item", { item: c }, () => [
|
|
2085
|
+
m("span", ia, B(c.shortLabel ? c.shortLabel : c.label), 1)
|
|
2086
2086
|
]),
|
|
2087
|
-
|
|
2087
|
+
e.canRemoveItemFromPreview ? (d(), y(s, {
|
|
2088
2088
|
key: 0,
|
|
2089
2089
|
link: "",
|
|
2090
2090
|
class: "m-0 p-0 d-flex align-items-center",
|
|
2091
|
-
onClick: (u) => i(
|
|
2091
|
+
onClick: (u) => i(c.id)
|
|
2092
2092
|
}, {
|
|
2093
|
-
default:
|
|
2094
|
-
|
|
2093
|
+
default: v(() => [
|
|
2094
|
+
h(p(V), {
|
|
2095
2095
|
icon: "bi:x",
|
|
2096
2096
|
class: "close-icon",
|
|
2097
|
-
"data-cy": `close-icon-${
|
|
2097
|
+
"data-cy": `close-icon-${c.id}`
|
|
2098
2098
|
}, null, 8, ["data-cy"])
|
|
2099
2099
|
]),
|
|
2100
2100
|
_: 2
|
|
2101
2101
|
}, 1032, ["onClick"])) : T("", !0)
|
|
2102
2102
|
]))), 128)),
|
|
2103
|
-
a.value == null || a.value.length == 0 ? (d(),
|
|
2103
|
+
a.value == null || a.value.length == 0 ? (d(), g("div", la, B(t.optionsPreviewEmptyText), 1)) : T("", !0)
|
|
2104
2104
|
])
|
|
2105
2105
|
], 4)
|
|
2106
2106
|
], 2)
|
|
2107
2107
|
], 2);
|
|
2108
2108
|
};
|
|
2109
2109
|
}
|
|
2110
|
-
}),
|
|
2110
|
+
}), na = { class: "d-flex justify-content-between pb-2" }, sa = {
|
|
2111
2111
|
"data-cy": "title",
|
|
2112
2112
|
class: "my-auto"
|
|
2113
|
-
},
|
|
2113
|
+
}, ra = {
|
|
2114
2114
|
"data-cy": "slot",
|
|
2115
2115
|
class: "d-flex align-items-center"
|
|
2116
|
-
},
|
|
2116
|
+
}, bl = /* @__PURE__ */ z({
|
|
2117
2117
|
__name: "ForgePageHeader",
|
|
2118
2118
|
props: {
|
|
2119
2119
|
title: {}
|
|
2120
2120
|
},
|
|
2121
2121
|
setup(e) {
|
|
2122
2122
|
const t = e;
|
|
2123
|
-
return (a, i) => (d(),
|
|
2124
|
-
m("h3",
|
|
2125
|
-
m("div",
|
|
2123
|
+
return (a, i) => (d(), g("div", na, [
|
|
2124
|
+
m("h3", sa, B(t.title), 1),
|
|
2125
|
+
m("div", ra, [
|
|
2126
2126
|
C(a.$slots, "default")
|
|
2127
2127
|
])
|
|
2128
2128
|
]));
|
|
2129
2129
|
}
|
|
2130
|
-
}),
|
|
2130
|
+
}), da = { class: "d-flex flex-1" }, ca = { "data-cy": "before-slot" }, pa = { class: "position-relative d-flex flex-1" }, ua = { "data-cy": "after-slot" }, he = /* @__PURE__ */ z({
|
|
2131
2131
|
__name: "ForgeDatepicker",
|
|
2132
|
-
props: /* @__PURE__ */
|
|
2132
|
+
props: /* @__PURE__ */ _({
|
|
2133
2133
|
severity: { default: "primary" },
|
|
2134
2134
|
modelValue: {},
|
|
2135
2135
|
defaultValue: {},
|
|
@@ -2178,6 +2178,7 @@ const qt = {
|
|
|
2178
2178
|
variant: {},
|
|
2179
2179
|
readonly: { type: Boolean },
|
|
2180
2180
|
placeholder: {},
|
|
2181
|
+
required: { type: Boolean },
|
|
2181
2182
|
appendTo: { default: "body" },
|
|
2182
2183
|
inputId: {},
|
|
2183
2184
|
inputStyle: {},
|
|
@@ -2202,12 +2203,12 @@ const qt = {
|
|
|
2202
2203
|
}),
|
|
2203
2204
|
emits: ["update:modelValue"],
|
|
2204
2205
|
setup(e) {
|
|
2205
|
-
const t = e, a =
|
|
2206
|
+
const t = e, a = N(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: n, setValue: s } = re(() => t.name, void 0, {
|
|
2206
2207
|
initialValue: a.value
|
|
2207
|
-
}),
|
|
2208
|
+
}), c = () => {
|
|
2208
2209
|
s(null), a.value = null;
|
|
2209
|
-
}, u = M(() => i.value.length > 0),
|
|
2210
|
-
day: ({ context: r, props:
|
|
2210
|
+
}, u = M(() => i.value.length > 0), w = M(() => ({
|
|
2211
|
+
day: ({ context: r, props: x, attrs: b }) => ({
|
|
2211
2212
|
class: [
|
|
2212
2213
|
"d-flex justify-content-center align-items-center",
|
|
2213
2214
|
{
|
|
@@ -2222,19 +2223,19 @@ const qt = {
|
|
|
2222
2223
|
//This is used to show which dates should be shows as 'disabled'. The first part of logic is used to only (due to prime vue passing
|
|
2223
2224
|
//disabled for otherMonth dates) show the disabled styling for current calendar dates. The second part of logic is used to set the
|
|
2224
2225
|
//disabled state for dates out of the min/max date range, as they would also come through the context as disabled dates without knowing why
|
|
2225
|
-
"text-grey-300": r.disabled && !r.otherMonth ||
|
|
2226
|
-
"fw-500": r.disabled && !r.otherMonth ||
|
|
2226
|
+
"text-grey-300": r.disabled && !r.otherMonth || x.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < x.minDate || x.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > x.maxDate,
|
|
2227
|
+
"fw-500": r.disabled && !r.otherMonth || x.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < x.minDate || x.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > x.maxDate
|
|
2227
2228
|
},
|
|
2228
2229
|
// Severities
|
|
2229
2230
|
{
|
|
2230
|
-
"date-primary":
|
|
2231
|
-
"date-brand":
|
|
2232
|
-
"date-secondary":
|
|
2233
|
-
"date-success":
|
|
2234
|
-
"date-success-alternate":
|
|
2235
|
-
"date-warning":
|
|
2236
|
-
"date-danger":
|
|
2237
|
-
"date-info":
|
|
2231
|
+
"date-primary": b.severity === void 0 || b.severity === "primary",
|
|
2232
|
+
"date-brand": b.severity === "brand",
|
|
2233
|
+
"date-secondary": b.severity === "secondary",
|
|
2234
|
+
"date-success": b.severity === "success",
|
|
2235
|
+
"date-success-alternate": b.severity === "success-alternate",
|
|
2236
|
+
"date-warning": b.severity === "warning",
|
|
2237
|
+
"date-danger": b.severity === "danger",
|
|
2238
|
+
"date-info": b.severity === "info"
|
|
2238
2239
|
}
|
|
2239
2240
|
]
|
|
2240
2241
|
}),
|
|
@@ -2311,54 +2312,54 @@ const qt = {
|
|
|
2311
2312
|
]
|
|
2312
2313
|
})
|
|
2313
2314
|
}));
|
|
2314
|
-
return (r,
|
|
2315
|
-
const
|
|
2316
|
-
return d(),
|
|
2317
|
-
m("div",
|
|
2318
|
-
m("span",
|
|
2315
|
+
return (r, x) => {
|
|
2316
|
+
const b = Ae;
|
|
2317
|
+
return d(), g(E, null, [
|
|
2318
|
+
m("div", da, [
|
|
2319
|
+
m("span", ca, [
|
|
2319
2320
|
C(r.$slots, "before")
|
|
2320
2321
|
]),
|
|
2321
2322
|
m("div", pa, [
|
|
2322
|
-
|
|
2323
|
-
pt:
|
|
2323
|
+
h(b, j({ ...t, ...r.$attrs }, {
|
|
2324
|
+
pt: w.value,
|
|
2324
2325
|
modelValue: a.value,
|
|
2325
2326
|
"onUpdate:modelValue": [
|
|
2326
|
-
|
|
2327
|
-
|
|
2327
|
+
x[0] || (x[0] = (S) => a.value = S),
|
|
2328
|
+
p(o)
|
|
2328
2329
|
],
|
|
2329
|
-
onBlur:
|
|
2330
|
+
onBlur: x[1] || (x[1] = () => p(n)),
|
|
2330
2331
|
"input-class": { "text-truncate": !0, "datepicker-invalid": u.value, "pe-5": t.showIcon && t.modelValue, "pe-4": (t.showIcon || t.modelValue) && !(t.showIcon && t.modelValue) }
|
|
2331
2332
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2332
|
-
K(
|
|
2333
|
+
K(h(p(V), {
|
|
2333
2334
|
"data-cy": "icon",
|
|
2334
2335
|
icon: "bi:calendar4",
|
|
2335
2336
|
class: P(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white pe-none", `${u.value ? "text-danger-dark" : "text-muted"}`])
|
|
2336
2337
|
}, null, 8, ["class"]), [
|
|
2337
2338
|
[X, t.showIcon && !t.inline]
|
|
2338
2339
|
]),
|
|
2339
|
-
K(
|
|
2340
|
+
K(h(p(V), {
|
|
2340
2341
|
"data-cy": "icon",
|
|
2341
2342
|
icon: "bi:x",
|
|
2342
|
-
onClick:
|
|
2343
|
+
onClick: c,
|
|
2343
2344
|
class: P(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2344
2345
|
}, null, 8, ["class"]), [
|
|
2345
|
-
[X, t.modelValue && !t.inline && !
|
|
2346
|
+
[X, t.modelValue && !t.inline && !e.readonly]
|
|
2346
2347
|
])
|
|
2347
2348
|
]),
|
|
2348
|
-
m("span",
|
|
2349
|
+
m("span", ua, [
|
|
2349
2350
|
C(r.$slots, "after")
|
|
2350
2351
|
])
|
|
2351
2352
|
]),
|
|
2352
2353
|
K(m("small", {
|
|
2353
2354
|
"data-cy": "error",
|
|
2354
2355
|
class: "text-invalid"
|
|
2355
|
-
},
|
|
2356
|
+
}, B(p(l)), 513), [
|
|
2356
2357
|
[X, u.value]
|
|
2357
2358
|
])
|
|
2358
2359
|
], 64);
|
|
2359
2360
|
};
|
|
2360
2361
|
}
|
|
2361
|
-
}),
|
|
2362
|
+
}), yl = /* @__PURE__ */ z({
|
|
2362
2363
|
__name: "ForgeRemainingCharacters",
|
|
2363
2364
|
props: {
|
|
2364
2365
|
maxCount: { default: 300 },
|
|
@@ -2366,11 +2367,11 @@ const qt = {
|
|
|
2366
2367
|
},
|
|
2367
2368
|
setup(e) {
|
|
2368
2369
|
const t = e, a = M(() => t.maxCount - t.currentCount);
|
|
2369
|
-
return (i,
|
|
2370
|
+
return (i, l) => (d(), g("div", {
|
|
2370
2371
|
class: P(a.value < 0 ? "text-danger" : "")
|
|
2371
|
-
}, "Remaining characters: " +
|
|
2372
|
+
}, "Remaining characters: " + B(a.value), 3));
|
|
2372
2373
|
}
|
|
2373
|
-
}),
|
|
2374
|
+
}), ma = { class: "d-flex justify-content-between" }, xl = /* @__PURE__ */ z({
|
|
2374
2375
|
__name: "ForgeForm",
|
|
2375
2376
|
props: {
|
|
2376
2377
|
onSubmit: {},
|
|
@@ -2386,95 +2387,95 @@ const qt = {
|
|
|
2386
2387
|
hasError: !1,
|
|
2387
2388
|
message: ""
|
|
2388
2389
|
});
|
|
2389
|
-
async function
|
|
2390
|
+
async function l() {
|
|
2390
2391
|
a.value = !0, i.value.hasError = !1;
|
|
2391
2392
|
try {
|
|
2392
2393
|
await t.onSubmit();
|
|
2393
|
-
} catch (
|
|
2394
|
-
i.value.hasError = !0,
|
|
2394
|
+
} catch (o) {
|
|
2395
|
+
i.value.hasError = !0, o.message && (i.value.message = o.message);
|
|
2395
2396
|
}
|
|
2396
2397
|
a.value = !1;
|
|
2397
2398
|
}
|
|
2398
|
-
return (
|
|
2399
|
-
const s =
|
|
2400
|
-
return d(),
|
|
2399
|
+
return (o, n) => {
|
|
2400
|
+
const s = R;
|
|
2401
|
+
return d(), g("form", j(o.$attrs, {
|
|
2401
2402
|
novalidate: "",
|
|
2402
2403
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2403
|
-
onSubmit: Q(
|
|
2404
|
+
onSubmit: Q(l, ["prevent"])
|
|
2404
2405
|
}), [
|
|
2405
|
-
|
|
2406
|
-
C(
|
|
2406
|
+
e.hideTitle ? T("", !0) : (d(), g(E, { key: 0 }, [
|
|
2407
|
+
C(o.$slots, "title", {}, () => [
|
|
2407
2408
|
m("h3", {
|
|
2408
|
-
class: P(
|
|
2409
|
+
class: P(e.titleClass),
|
|
2409
2410
|
"data-cy": "form-title"
|
|
2410
|
-
},
|
|
2411
|
+
}, B(e.title), 3)
|
|
2411
2412
|
]),
|
|
2412
2413
|
n[1] || (n[1] = m("hr", null, null, -1))
|
|
2413
2414
|
], 64)),
|
|
2414
|
-
i.value.hasError ? (d(),
|
|
2415
|
+
i.value.hasError ? (d(), y(de, {
|
|
2415
2416
|
key: 1,
|
|
2416
2417
|
severity: "danger",
|
|
2417
2418
|
"data-cy": "error"
|
|
2418
2419
|
}, {
|
|
2419
|
-
default:
|
|
2420
|
-
C(
|
|
2420
|
+
default: v(() => [
|
|
2421
|
+
C(o.$slots, "error", {
|
|
2421
2422
|
error: i.value.message
|
|
2422
2423
|
}, () => [
|
|
2423
|
-
|
|
2424
|
+
O(B(i.value.message), 1)
|
|
2424
2425
|
])
|
|
2425
2426
|
]),
|
|
2426
2427
|
_: 3
|
|
2427
2428
|
})) : T("", !0),
|
|
2428
|
-
C(
|
|
2429
|
-
m("div",
|
|
2430
|
-
C(
|
|
2431
|
-
|
|
2429
|
+
C(o.$slots, "default"),
|
|
2430
|
+
m("div", ma, [
|
|
2431
|
+
C(o.$slots, "cancel", {}, () => [
|
|
2432
|
+
e.hideCancel ? T("", !0) : (d(), y(s, {
|
|
2432
2433
|
key: 0,
|
|
2433
2434
|
"data-cy": "cancel-btn",
|
|
2434
2435
|
type: "reset",
|
|
2435
2436
|
severity: "secondary",
|
|
2436
2437
|
outlined: "",
|
|
2437
|
-
onClick: n[0] || (n[0] = (
|
|
2438
|
+
onClick: n[0] || (n[0] = (c) => o.$emit("cancel"))
|
|
2438
2439
|
}, {
|
|
2439
|
-
default:
|
|
2440
|
-
|
|
2440
|
+
default: v(() => [
|
|
2441
|
+
O(B(e.cancelText), 1)
|
|
2441
2442
|
]),
|
|
2442
2443
|
_: 1
|
|
2443
2444
|
}))
|
|
2444
2445
|
]),
|
|
2445
|
-
C(
|
|
2446
|
-
|
|
2446
|
+
C(o.$slots, "submit", { submit: l }, () => [
|
|
2447
|
+
h(s, {
|
|
2447
2448
|
"data-cy": "submit-btn",
|
|
2448
2449
|
type: "submit",
|
|
2449
2450
|
severity: "primary",
|
|
2450
2451
|
class: "ms-auto"
|
|
2451
2452
|
}, {
|
|
2452
|
-
default:
|
|
2453
|
-
|
|
2453
|
+
default: v(() => [
|
|
2454
|
+
O(B(e.submitText), 1)
|
|
2454
2455
|
]),
|
|
2455
2456
|
_: 1
|
|
2456
2457
|
})
|
|
2457
2458
|
])
|
|
2458
2459
|
]),
|
|
2459
|
-
a.value ? (d(),
|
|
2460
|
+
a.value ? (d(), y(me, {
|
|
2460
2461
|
key: 2,
|
|
2461
2462
|
"data-cy": "loading-spinner"
|
|
2462
2463
|
})) : T("", !0)
|
|
2463
2464
|
], 16);
|
|
2464
2465
|
};
|
|
2465
2466
|
}
|
|
2466
|
-
}),
|
|
2467
|
+
}), va = {
|
|
2467
2468
|
key: 1,
|
|
2468
2469
|
class: "d-flex flex-column w-100"
|
|
2469
|
-
},
|
|
2470
|
+
}, fa = ["for"], ga = {
|
|
2470
2471
|
key: 0,
|
|
2471
2472
|
class: "text-danger fw-600"
|
|
2472
|
-
},
|
|
2473
|
+
}, ba = {
|
|
2473
2474
|
class: "flex--1",
|
|
2474
2475
|
style: { flex: "1 0 auto" }
|
|
2475
|
-
},
|
|
2476
|
+
}, hl = /* @__PURE__ */ z({
|
|
2476
2477
|
__name: "ForgeFormField",
|
|
2477
|
-
props: /* @__PURE__ */
|
|
2478
|
+
props: /* @__PURE__ */ _({
|
|
2478
2479
|
name: {},
|
|
2479
2480
|
fieldLabelPosition: { default: "top" },
|
|
2480
2481
|
fieldLabel: {},
|
|
@@ -2489,24 +2490,24 @@ const qt = {
|
|
|
2489
2490
|
}),
|
|
2490
2491
|
emits: ["update:modelValue"],
|
|
2491
2492
|
setup(e) {
|
|
2492
|
-
const t =
|
|
2493
|
-
a.type == "number" ? s(
|
|
2494
|
-
}, { errors:
|
|
2493
|
+
const t = N(e, "modelValue"), a = e, i = (w) => {
|
|
2494
|
+
a.type == "number" ? s(w.value) : s(w);
|
|
2495
|
+
}, { errors: l, value: o, errorMessage: n, handleChange: s, handleBlur: c } = re(() => a.name, void 0, {
|
|
2495
2496
|
initialValue: t.value
|
|
2496
|
-
}), u = M(() =>
|
|
2497
|
-
return W(() =>
|
|
2498
|
-
t.value =
|
|
2499
|
-
}, { immediate: !0 }), (
|
|
2500
|
-
const
|
|
2501
|
-
return a.type === "checkbox" ? (d(),
|
|
2497
|
+
}), u = M(() => l.value.length > 0);
|
|
2498
|
+
return W(() => o.value, (w) => {
|
|
2499
|
+
t.value = w;
|
|
2500
|
+
}, { immediate: !0 }), (w, r) => {
|
|
2501
|
+
const x = Ne, b = Le, S = ie, F = oe, L = ue, $ = he;
|
|
2502
|
+
return a.type === "checkbox" ? (d(), y(xe, j({
|
|
2502
2503
|
key: 0,
|
|
2503
2504
|
id: a.name,
|
|
2504
2505
|
label: a.fieldLabel
|
|
2505
|
-
},
|
|
2506
|
+
}, w.$attrs, {
|
|
2506
2507
|
name: a.name,
|
|
2507
2508
|
modelValue: t.value,
|
|
2508
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2509
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(),
|
|
2509
|
+
"onUpdate:modelValue": r[0] || (r[0] = (k) => t.value = k)
|
|
2510
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), g("div", va, [
|
|
2510
2511
|
m("div", {
|
|
2511
2512
|
"data-cy": "input-wrapper",
|
|
2512
2513
|
class: P(["d-flex flex--1", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2515,74 +2516,74 @@ const qt = {
|
|
|
2515
2516
|
for: a.name,
|
|
2516
2517
|
class: P(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2517
2518
|
}, [
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
], 10,
|
|
2521
|
-
m("div",
|
|
2522
|
-
C(
|
|
2523
|
-
a.type === "number" ? (d(),
|
|
2519
|
+
O(B(a.fieldLabel) + " ", 1),
|
|
2520
|
+
e.required ? (d(), g("span", ga, "*")) : T("", !0)
|
|
2521
|
+
], 10, fa),
|
|
2522
|
+
m("div", ba, [
|
|
2523
|
+
C(w.$slots, "default", G(Y({ modelValue: t.value, updateModel: p(s), hasErrors: u.value })), () => [
|
|
2524
|
+
a.type === "number" ? (d(), y(p(be), j({
|
|
2524
2525
|
key: 0,
|
|
2525
2526
|
id: a.name
|
|
2526
|
-
},
|
|
2527
|
+
}, w.$attrs, {
|
|
2527
2528
|
class: ["flex-1", { "is-invalid": u.value }],
|
|
2528
2529
|
placeholder: a.placeholder,
|
|
2529
2530
|
"input-class": { "is-invalid": u.value },
|
|
2530
2531
|
onInput: i,
|
|
2531
2532
|
modelValue: t.value,
|
|
2532
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
2533
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), x
|
|
2533
|
+
"onUpdate:modelValue": r[1] || (r[1] = (k) => t.value = k)
|
|
2534
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), y(x, j({
|
|
2534
2535
|
key: 1,
|
|
2535
2536
|
id: a.name
|
|
2536
|
-
},
|
|
2537
|
+
}, w.$attrs, {
|
|
2537
2538
|
class: ["w-100", { "is-invalid": u.value }],
|
|
2538
2539
|
placeholder: a.placeholder,
|
|
2539
2540
|
modelValue: t.value,
|
|
2540
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
2541
|
+
"onUpdate:modelValue": r[2] || (r[2] = (k) => t.value = k),
|
|
2541
2542
|
onInput: i,
|
|
2542
|
-
onBlur: c
|
|
2543
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(),
|
|
2543
|
+
onBlur: p(c)
|
|
2544
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), y(b, j({
|
|
2544
2545
|
key: 2,
|
|
2545
2546
|
id: a.name
|
|
2546
|
-
},
|
|
2547
|
+
}, w.$attrs, {
|
|
2547
2548
|
class: ["flex-1", { "is-invalid": u.value }],
|
|
2548
2549
|
placeholder: a.placeholder,
|
|
2549
2550
|
mask: a.mask,
|
|
2550
2551
|
modelValue: t.value,
|
|
2551
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
2552
|
+
"onUpdate:modelValue": r[3] || (r[3] = (k) => t.value = k),
|
|
2552
2553
|
onComplete: i,
|
|
2553
|
-
onBlur: c
|
|
2554
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(),
|
|
2554
|
+
onBlur: p(c)
|
|
2555
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), y(S, j({
|
|
2555
2556
|
key: 3,
|
|
2556
2557
|
id: a.name
|
|
2557
|
-
},
|
|
2558
|
+
}, w.$attrs, {
|
|
2558
2559
|
class: ["flex-1", { "is-invalid": u.value }],
|
|
2559
2560
|
placeholder: a.placeholder,
|
|
2560
2561
|
modelValue: t.value,
|
|
2561
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
|
2562
|
+
"onUpdate:modelValue": r[4] || (r[4] = (k) => t.value = k),
|
|
2562
2563
|
onInput: i,
|
|
2563
|
-
onBlur: c
|
|
2564
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(),
|
|
2564
|
+
onBlur: p(c)
|
|
2565
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), y(F, j({ key: 4 }, { ...a, ...w.$attrs }, {
|
|
2565
2566
|
modelValue: t.value,
|
|
2566
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
|
2567
|
+
"onUpdate:modelValue": r[5] || (r[5] = (k) => t.value = k),
|
|
2567
2568
|
class: { "is-invalid": u.value }
|
|
2568
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(),
|
|
2569
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), y(L, j({ key: 5 }, { ...a, ...w.$attrs }, {
|
|
2569
2570
|
modelValue: t.value,
|
|
2570
|
-
"onUpdate:modelValue": r[6] || (r[6] = (
|
|
2571
|
+
"onUpdate:modelValue": r[6] || (r[6] = (k) => t.value = k),
|
|
2571
2572
|
class: { "is-invalid": u.value }
|
|
2572
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(),
|
|
2573
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), y(oa, j({ key: 6 }, { ...a, ...w.$attrs }, {
|
|
2573
2574
|
modelValue: t.value,
|
|
2574
|
-
"onUpdate:modelValue": r[7] || (r[7] = (
|
|
2575
|
+
"onUpdate:modelValue": r[7] || (r[7] = (k) => t.value = k),
|
|
2575
2576
|
class: { "is-invalid": u.value }
|
|
2576
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(),
|
|
2577
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), y($, j({ key: 7 }, { ...a, ...w.$attrs }, {
|
|
2577
2578
|
modelValue: t.value,
|
|
2578
|
-
"onUpdate:modelValue": r[8] || (r[8] = (
|
|
2579
|
+
"onUpdate:modelValue": r[8] || (r[8] = (k) => t.value = k),
|
|
2579
2580
|
class: { "is-invalid": u.value }
|
|
2580
2581
|
}), null, 16, ["modelValue", "class"])) : T("", !0)
|
|
2581
2582
|
]),
|
|
2582
2583
|
K(m("small", {
|
|
2583
2584
|
"data-cy": "error",
|
|
2584
2585
|
class: "invalid-feedback"
|
|
2585
|
-
},
|
|
2586
|
+
}, B(p(n)), 513), [
|
|
2586
2587
|
[X, u.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2587
2588
|
])
|
|
2588
2589
|
])
|
|
@@ -2590,7 +2591,7 @@ const qt = {
|
|
|
2590
2591
|
]));
|
|
2591
2592
|
};
|
|
2592
2593
|
}
|
|
2593
|
-
}),
|
|
2594
|
+
}), wl = /* @__PURE__ */ z({
|
|
2594
2595
|
__name: "ForgeChip",
|
|
2595
2596
|
props: {
|
|
2596
2597
|
chipSeverity: { default: "primary" },
|
|
@@ -2624,17 +2625,17 @@ const qt = {
|
|
|
2624
2625
|
}
|
|
2625
2626
|
]
|
|
2626
2627
|
}));
|
|
2627
|
-
return (i,
|
|
2628
|
-
const
|
|
2629
|
-
return d(),
|
|
2630
|
-
default:
|
|
2631
|
-
(d(!0),
|
|
2628
|
+
return (i, l) => {
|
|
2629
|
+
const o = Ue;
|
|
2630
|
+
return d(), y(o, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2631
|
+
default: v(() => [
|
|
2632
|
+
(d(!0), g(E, null, q(i.$slots, (n, s) => C(i.$slots, s, { slot: s })), 256))
|
|
2632
2633
|
]),
|
|
2633
2634
|
_: 3
|
|
2634
2635
|
}, 16, ["pt"]);
|
|
2635
2636
|
};
|
|
2636
2637
|
}
|
|
2637
|
-
}),
|
|
2638
|
+
}), kl = /* @__PURE__ */ z({
|
|
2638
2639
|
__name: "ForgeProgressBar",
|
|
2639
2640
|
props: {
|
|
2640
2641
|
severity: { default: "primary" },
|
|
@@ -2650,7 +2651,7 @@ const qt = {
|
|
|
2650
2651
|
unstyled: { type: Boolean }
|
|
2651
2652
|
},
|
|
2652
2653
|
setup(e) {
|
|
2653
|
-
const t = e, a = M(() => t.striped ? "progress-bar-striped" : null), i = M(() => t.animate ? "progress-bar-animated" : null),
|
|
2654
|
+
const t = e, a = M(() => t.striped ? "progress-bar-striped" : null), i = M(() => t.animate ? "progress-bar-animated" : null), l = M(() => {
|
|
2654
2655
|
switch (t.severity) {
|
|
2655
2656
|
case "brand":
|
|
2656
2657
|
return "bg-brand";
|
|
@@ -2671,18 +2672,18 @@ const qt = {
|
|
|
2671
2672
|
default:
|
|
2672
2673
|
return "bg-primary";
|
|
2673
2674
|
}
|
|
2674
|
-
}),
|
|
2675
|
+
}), o = M(() => ({
|
|
2675
2676
|
root: {
|
|
2676
2677
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2677
2678
|
},
|
|
2678
2679
|
value: {
|
|
2679
|
-
class: [
|
|
2680
|
+
class: [l.value, a.value, i.value, "progress-bar"]
|
|
2680
2681
|
}
|
|
2681
2682
|
}));
|
|
2682
2683
|
return (n, s) => {
|
|
2683
|
-
const
|
|
2684
|
-
return d(),
|
|
2685
|
-
default:
|
|
2684
|
+
const c = Ee;
|
|
2685
|
+
return d(), y(c, j({ ...n.$attrs, ...t }, { pt: o.value }), {
|
|
2686
|
+
default: v(() => [
|
|
2686
2687
|
C(n.$slots, "default")
|
|
2687
2688
|
]),
|
|
2688
2689
|
_: 3
|
|
@@ -2690,7 +2691,7 @@ const qt = {
|
|
|
2690
2691
|
};
|
|
2691
2692
|
}
|
|
2692
2693
|
});
|
|
2693
|
-
var
|
|
2694
|
+
var ya = /* @__PURE__ */ z({
|
|
2694
2695
|
name: "VueDrawingCanvas",
|
|
2695
2696
|
props: {
|
|
2696
2697
|
strokeType: {
|
|
@@ -2857,8 +2858,8 @@ var ba = /* @__PURE__ */ z({
|
|
|
2857
2858
|
getCoordinates(e) {
|
|
2858
2859
|
let t, a;
|
|
2859
2860
|
if (e.touches && e.touches.length > 0) {
|
|
2860
|
-
let
|
|
2861
|
-
t = e.touches[0].clientX -
|
|
2861
|
+
let l = document.querySelector("#" + this.canvasId).getBoundingClientRect();
|
|
2862
|
+
t = e.touches[0].clientX - l.left, a = e.touches[0].clientY - l.top;
|
|
2862
2863
|
} else
|
|
2863
2864
|
t = e.offsetX, a = e.offsetY;
|
|
2864
2865
|
return {
|
|
@@ -2937,13 +2938,13 @@ var ba = /* @__PURE__ */ z({
|
|
|
2937
2938
|
}];
|
|
2938
2939
|
break;
|
|
2939
2940
|
case "circle":
|
|
2940
|
-
let
|
|
2941
|
+
let l = this.strokes.from.x - t.x < 0 ? (this.strokes.from.x - t.x) * -1 : this.strokes.from.x - t.x;
|
|
2941
2942
|
this.guides = [{
|
|
2942
|
-
x: this.strokes.from.x > t.x ? this.strokes.from.x -
|
|
2943
|
+
x: this.strokes.from.x > t.x ? this.strokes.from.x - l : this.strokes.from.x + l,
|
|
2943
2944
|
y: this.strokes.from.y
|
|
2944
2945
|
}, {
|
|
2945
|
-
x:
|
|
2946
|
-
y:
|
|
2946
|
+
x: l,
|
|
2947
|
+
y: l
|
|
2947
2948
|
}];
|
|
2948
2949
|
break;
|
|
2949
2950
|
}
|
|
@@ -3001,15 +3002,15 @@ var ba = /* @__PURE__ */ z({
|
|
|
3001
3002
|
e && this.save();
|
|
3002
3003
|
});
|
|
3003
3004
|
},
|
|
3004
|
-
wrapText(e, t, a, i,
|
|
3005
|
+
wrapText(e, t, a, i, l, o) {
|
|
3005
3006
|
const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
3006
|
-
var
|
|
3007
|
-
for (let F = 0; F <
|
|
3008
|
-
for (var u =
|
|
3009
|
-
var
|
|
3010
|
-
S >
|
|
3007
|
+
var c = t.split(n).filter((F) => F.length > 0);
|
|
3008
|
+
for (let F = 0; F < c.length; F++) {
|
|
3009
|
+
for (var u = c[F].split(s).filter((L) => L.length > 0), w = "", r = 0; r < u.length; r++) {
|
|
3010
|
+
var x = w + u[r] + " ", b = e.measureText(x), S = b.width;
|
|
3011
|
+
S > l && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(w, a, i) : e.fillText(w, a, i), w = u[r] + " ", i += o) : w = x;
|
|
3011
3012
|
}
|
|
3012
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
3013
|
+
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(w, a, i) : e.fillText(w, a, i), i += u.length > 0 ? o : 0;
|
|
3013
3014
|
}
|
|
3014
3015
|
},
|
|
3015
3016
|
save() {
|
|
@@ -3018,31 +3019,31 @@ var ba = /* @__PURE__ */ z({
|
|
|
3018
3019
|
let t = document.createElement("canvas"), a = t.getContext("2d");
|
|
3019
3020
|
a && (t.width = Number(this.width), t.height = Number(this.height), a.drawImage(e, 0, 0, Number(this.width), Number(this.height)), this.drawWatermark(t, a, this.watermark));
|
|
3020
3021
|
} else {
|
|
3021
|
-
let t = document.createElement("canvas"), a = t.getContext("2d"), i = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
3022
|
-
if (t.width = Number(i), t.height = Number(
|
|
3023
|
-
return a.drawImage(e, 0, 0, Number(i), Number(
|
|
3022
|
+
let t = document.createElement("canvas"), a = t.getContext("2d"), i = this.outputWidth === void 0 ? this.width : this.outputWidth, l = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
3023
|
+
if (t.width = Number(i), t.height = Number(l), a)
|
|
3024
|
+
return a.drawImage(e, 0, 0, Number(i), Number(l)), this.$emit("update:image", t.toDataURL("image/" + this.saveAs, 1)), t.toDataURL("image/" + this.saveAs, 1);
|
|
3024
3025
|
}
|
|
3025
3026
|
},
|
|
3026
3027
|
drawWatermark(e, t, a) {
|
|
3027
3028
|
if (a.type === "Image") {
|
|
3028
|
-
let i = a.imageStyle ? a.imageStyle.width ? a.imageStyle.width : Number(this.width) : Number(this.width),
|
|
3029
|
-
const
|
|
3030
|
-
|
|
3031
|
-
a && t && t.drawImage(
|
|
3032
|
-
let n = document.createElement("canvas"), s = n.getContext("2d"),
|
|
3033
|
-
if (n.width = Number(
|
|
3034
|
-
return s.drawImage(e, 0, 0, Number(
|
|
3029
|
+
let i = a.imageStyle ? a.imageStyle.width ? a.imageStyle.width : Number(this.width) : Number(this.width), l = a.imageStyle ? a.imageStyle.height ? a.imageStyle.height : Number(this.height) : Number(this.height);
|
|
3030
|
+
const o = new Image();
|
|
3031
|
+
o.src = a.source, o.onload = () => {
|
|
3032
|
+
a && t && t.drawImage(o, a.x, a.y, Number(i), Number(l));
|
|
3033
|
+
let n = document.createElement("canvas"), s = n.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, u = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
3034
|
+
if (n.width = Number(c), n.height = Number(u), s)
|
|
3035
|
+
return s.drawImage(e, 0, 0, Number(c), Number(u)), this.$emit("update:image", n.toDataURL("image/" + this.saveAs, 1)), n.toDataURL("image/" + this.saveAs, 1);
|
|
3035
3036
|
};
|
|
3036
3037
|
} else if (a.type === "Text") {
|
|
3037
|
-
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif",
|
|
3038
|
-
if (t.font = i, t.textAlign =
|
|
3039
|
-
let r,
|
|
3040
|
-
a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ?
|
|
3038
|
+
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", o = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", n = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
|
|
3039
|
+
if (t.font = i, t.textAlign = l, t.textBaseline = o, a.fontStyle && a.fontStyle.rotate) {
|
|
3040
|
+
let r, x;
|
|
3041
|
+
a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ? x = a.y + Math.floor(a.fontStyle.lineHeight / 2) : x = a.y, t.translate(r, x), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(r * -1, x * -1);
|
|
3041
3042
|
}
|
|
3042
3043
|
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 = n, 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));
|
|
3043
|
-
let s = document.createElement("canvas"),
|
|
3044
|
-
if (s.width = Number(u), s.height = Number(
|
|
3045
|
-
return
|
|
3044
|
+
let s = document.createElement("canvas"), c = s.getContext("2d"), u = this.outputWidth === void 0 ? this.width : this.outputWidth, w = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
3045
|
+
if (s.width = Number(u), s.height = Number(w), c)
|
|
3046
|
+
return c.drawImage(e, 0, 0, Number(u), Number(w)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
|
|
3046
3047
|
}
|
|
3047
3048
|
},
|
|
3048
3049
|
isEmpty() {
|
|
@@ -3080,7 +3081,7 @@ var ba = /* @__PURE__ */ z({
|
|
|
3080
3081
|
});
|
|
3081
3082
|
}
|
|
3082
3083
|
});
|
|
3083
|
-
const
|
|
3084
|
+
const xa = { class: "d-flex flex-column" }, ha = { class: "d-flex flex-row mt-1 gap-1" }, Bl = /* @__PURE__ */ z({
|
|
3084
3085
|
__name: "ForgeScratchpad",
|
|
3085
3086
|
props: {
|
|
3086
3087
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -3093,73 +3094,73 @@ const ya = { class: "d-flex flex-column" }, xa = { class: "d-flex flex-row mt-1
|
|
|
3093
3094
|
},
|
|
3094
3095
|
emits: ["save"],
|
|
3095
3096
|
setup(e, { emit: t }) {
|
|
3096
|
-
const a = e, i = t,
|
|
3097
|
-
|
|
3097
|
+
const a = e, i = t, l = ze("drawingCanvas"), o = I(), n = () => {
|
|
3098
|
+
l == null || l.value.reset();
|
|
3098
3099
|
}, s = () => {
|
|
3099
|
-
|
|
3100
|
-
},
|
|
3101
|
-
|
|
3100
|
+
l == null || l.value.redo();
|
|
3101
|
+
}, c = () => {
|
|
3102
|
+
l == null || l.value.undo();
|
|
3102
3103
|
}, u = () => {
|
|
3103
|
-
i("save",
|
|
3104
|
+
i("save", l.value.isEmpty());
|
|
3104
3105
|
};
|
|
3105
|
-
return (
|
|
3106
|
-
const
|
|
3107
|
-
return d(),
|
|
3108
|
-
|
|
3106
|
+
return (w, r) => {
|
|
3107
|
+
const x = R;
|
|
3108
|
+
return d(), g("div", xa, [
|
|
3109
|
+
h(p(ya), j({
|
|
3109
3110
|
ref_key: "drawingCanvas",
|
|
3110
|
-
ref:
|
|
3111
|
-
image:
|
|
3112
|
-
"onUpdate:image": r[0] || (r[0] = (
|
|
3111
|
+
ref: l,
|
|
3112
|
+
image: o.value,
|
|
3113
|
+
"onUpdate:image": r[0] || (r[0] = (b) => o.value = b),
|
|
3113
3114
|
"data-cy": "drawing-canvas",
|
|
3114
3115
|
class: "border canvas"
|
|
3115
|
-
}, { ...
|
|
3116
|
-
height:
|
|
3117
|
-
width:
|
|
3118
|
-
style: `height: ${
|
|
3119
|
-
"line-join":
|
|
3116
|
+
}, { ...w.$attrs }, {
|
|
3117
|
+
height: e.height,
|
|
3118
|
+
width: e.width,
|
|
3119
|
+
style: `height: ${e.height}px; width: ${e.width}px`,
|
|
3120
|
+
"line-join": e.lineJoin
|
|
3120
3121
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
3121
|
-
m("div",
|
|
3122
|
-
a.showUndo ? (d(), x
|
|
3122
|
+
m("div", ha, [
|
|
3123
|
+
a.showUndo ? (d(), y(x, {
|
|
3123
3124
|
key: 0,
|
|
3124
|
-
onClick:
|
|
3125
|
+
onClick: c,
|
|
3125
3126
|
outlined: "",
|
|
3126
3127
|
"data-cy": "undo-button"
|
|
3127
3128
|
}, {
|
|
3128
|
-
default:
|
|
3129
|
-
|
|
3129
|
+
default: v(() => [...r[1] || (r[1] = [
|
|
3130
|
+
O("Undo", -1)
|
|
3130
3131
|
])]),
|
|
3131
3132
|
_: 1
|
|
3132
3133
|
})) : T("", !0),
|
|
3133
|
-
a.showRedo ? (d(), x
|
|
3134
|
+
a.showRedo ? (d(), y(x, {
|
|
3134
3135
|
key: 1,
|
|
3135
3136
|
onClick: s,
|
|
3136
3137
|
outlined: "",
|
|
3137
3138
|
"data-cy": "redo-button"
|
|
3138
3139
|
}, {
|
|
3139
|
-
default:
|
|
3140
|
-
|
|
3140
|
+
default: v(() => [...r[2] || (r[2] = [
|
|
3141
|
+
O("Redo", -1)
|
|
3141
3142
|
])]),
|
|
3142
3143
|
_: 1
|
|
3143
3144
|
})) : T("", !0),
|
|
3144
|
-
a.showClear ? (d(), x
|
|
3145
|
+
a.showClear ? (d(), y(x, {
|
|
3145
3146
|
key: 2,
|
|
3146
3147
|
onClick: n,
|
|
3147
3148
|
outlined: "",
|
|
3148
3149
|
"data-cy": "clear-button"
|
|
3149
3150
|
}, {
|
|
3150
|
-
default:
|
|
3151
|
-
|
|
3151
|
+
default: v(() => [...r[3] || (r[3] = [
|
|
3152
|
+
O("Clear", -1)
|
|
3152
3153
|
])]),
|
|
3153
3154
|
_: 1
|
|
3154
3155
|
})) : T("", !0),
|
|
3155
|
-
a.showSave ? (d(), x
|
|
3156
|
+
a.showSave ? (d(), y(x, {
|
|
3156
3157
|
key: 3,
|
|
3157
3158
|
onClick: u,
|
|
3158
3159
|
class: "ms-auto",
|
|
3159
3160
|
"data-cy": "save-button"
|
|
3160
3161
|
}, {
|
|
3161
|
-
default:
|
|
3162
|
-
|
|
3162
|
+
default: v(() => [...r[4] || (r[4] = [
|
|
3163
|
+
O("Save", -1)
|
|
3163
3164
|
])]),
|
|
3164
3165
|
_: 1
|
|
3165
3166
|
})) : T("", !0)
|
|
@@ -3167,7 +3168,7 @@ const ya = { class: "d-flex flex-column" }, xa = { class: "d-flex flex-row mt-1
|
|
|
3167
3168
|
]);
|
|
3168
3169
|
};
|
|
3169
3170
|
}
|
|
3170
|
-
}),
|
|
3171
|
+
}), wa = { class: "value text-white w-100 text-center" }, $l = /* @__PURE__ */ z({
|
|
3171
3172
|
__name: "ForgeStatWidget",
|
|
3172
3173
|
props: {
|
|
3173
3174
|
size: { default: "md" },
|
|
@@ -3175,15 +3176,15 @@ const ya = { class: "d-flex flex-column" }, xa = { class: "d-flex flex-row mt-1
|
|
|
3175
3176
|
},
|
|
3176
3177
|
setup(e) {
|
|
3177
3178
|
const t = e;
|
|
3178
|
-
return (a, i) => (d(),
|
|
3179
|
+
return (a, i) => (d(), g("div", j(a.$attrs, {
|
|
3179
3180
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3180
3181
|
}), [
|
|
3181
|
-
m("span",
|
|
3182
|
+
m("span", wa, [
|
|
3182
3183
|
C(a.$slots, "default")
|
|
3183
3184
|
])
|
|
3184
3185
|
], 16));
|
|
3185
3186
|
}
|
|
3186
|
-
}),
|
|
3187
|
+
}), ka = { key: 0 }, Sl = /* @__PURE__ */ z({
|
|
3187
3188
|
__name: "ForgeStepper",
|
|
3188
3189
|
props: {
|
|
3189
3190
|
currentStep: { default: 1 },
|
|
@@ -3230,31 +3231,31 @@ const ya = { class: "d-flex flex-column" }, xa = { class: "d-flex flex-row mt-1
|
|
|
3230
3231
|
]
|
|
3231
3232
|
})
|
|
3232
3233
|
}));
|
|
3233
|
-
return (i,
|
|
3234
|
-
default:
|
|
3235
|
-
|
|
3236
|
-
default:
|
|
3237
|
-
(d(!0),
|
|
3238
|
-
key:
|
|
3239
|
-
value:
|
|
3240
|
-
disabled:
|
|
3234
|
+
return (i, l) => (d(), y(p(_e), { value: e.currentStep }, {
|
|
3235
|
+
default: v(() => [
|
|
3236
|
+
h(p(Re), null, {
|
|
3237
|
+
default: v(() => [
|
|
3238
|
+
(d(!0), g(E, null, q(e.steps, (o) => (d(), y(p(qe), j({
|
|
3239
|
+
key: o.value,
|
|
3240
|
+
value: o.value,
|
|
3241
|
+
disabled: o.disabled
|
|
3241
3242
|
}, { ref_for: !0 }, { ...i.$attrs }, { pt: a.value }), {
|
|
3242
|
-
default:
|
|
3243
|
-
|
|
3243
|
+
default: v(() => [
|
|
3244
|
+
e.showStepLabel ? (d(), g("div", ka, B(o.label), 1)) : T("", !0)
|
|
3244
3245
|
]),
|
|
3245
3246
|
_: 2
|
|
3246
3247
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
3247
3248
|
]),
|
|
3248
3249
|
_: 1
|
|
3249
3250
|
}),
|
|
3250
|
-
|
|
3251
|
-
default:
|
|
3252
|
-
(d(!0),
|
|
3253
|
-
key:
|
|
3254
|
-
value:
|
|
3251
|
+
h(p(We), null, {
|
|
3252
|
+
default: v(() => [
|
|
3253
|
+
(d(!0), g(E, null, q(e.steps, (o) => (d(), y(p(He), {
|
|
3254
|
+
key: o.value,
|
|
3255
|
+
value: o.value
|
|
3255
3256
|
}, {
|
|
3256
|
-
default:
|
|
3257
|
-
C(i.$slots, "step" +
|
|
3257
|
+
default: v(() => [
|
|
3258
|
+
C(i.$slots, "step" + o.value)
|
|
3258
3259
|
]),
|
|
3259
3260
|
_: 2
|
|
3260
3261
|
}, 1032, ["value"]))), 128))
|
|
@@ -3265,7 +3266,7 @@ const ya = { class: "d-flex flex-column" }, xa = { class: "d-flex flex-row mt-1
|
|
|
3265
3266
|
_: 3
|
|
3266
3267
|
}, 8, ["value"]));
|
|
3267
3268
|
}
|
|
3268
|
-
}),
|
|
3269
|
+
}), Ba = { class: "p-4 text-wrap w-100" }, $a = { class: "p-4 text-wrap w-100" }, Fl = /* @__PURE__ */ z({
|
|
3269
3270
|
__name: "ForgeTile",
|
|
3270
3271
|
props: {
|
|
3271
3272
|
severity: { default: "primary" },
|
|
@@ -3275,31 +3276,31 @@ const ya = { class: "d-flex flex-column" }, xa = { class: "d-flex flex-row mt-1
|
|
|
3275
3276
|
},
|
|
3276
3277
|
setup(e) {
|
|
3277
3278
|
const t = e, a = M(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = M(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
3278
|
-
return (
|
|
3279
|
-
const n =
|
|
3280
|
-
return t.clickable ? (d(),
|
|
3279
|
+
return (l, o) => {
|
|
3280
|
+
const n = R;
|
|
3281
|
+
return t.clickable ? (d(), y(n, {
|
|
3281
3282
|
key: 0,
|
|
3282
3283
|
class: P(["d-flex w-100 p-0 text-body", a.value]),
|
|
3283
3284
|
severity: t.severity,
|
|
3284
3285
|
unstyled: "",
|
|
3285
3286
|
"data-cy": "button-tile"
|
|
3286
3287
|
}, {
|
|
3287
|
-
default:
|
|
3288
|
-
m("div",
|
|
3289
|
-
C(
|
|
3290
|
-
|
|
3288
|
+
default: v(() => [
|
|
3289
|
+
m("div", Ba, [
|
|
3290
|
+
C(l.$slots, "default", {}, () => [
|
|
3291
|
+
o[0] || (o[0] = O("Tile Content", -1))
|
|
3291
3292
|
])
|
|
3292
3293
|
])
|
|
3293
3294
|
]),
|
|
3294
3295
|
_: 3
|
|
3295
|
-
}, 8, ["severity", "class"])) : (d(),
|
|
3296
|
+
}, 8, ["severity", "class"])) : (d(), g("div", {
|
|
3296
3297
|
key: 1,
|
|
3297
3298
|
class: P(["d-flex w-100", i.value]),
|
|
3298
3299
|
"data-cy": "tile"
|
|
3299
3300
|
}, [
|
|
3300
|
-
m("div",
|
|
3301
|
-
C(
|
|
3302
|
-
|
|
3301
|
+
m("div", $a, [
|
|
3302
|
+
C(l.$slots, "default", {}, () => [
|
|
3303
|
+
o[1] || (o[1] = O("Tile Content", -1))
|
|
3303
3304
|
])
|
|
3304
3305
|
])
|
|
3305
3306
|
], 2));
|
|
@@ -3309,13 +3310,13 @@ const ya = { class: "d-flex flex-column" }, xa = { class: "d-flex flex-row mt-1
|
|
|
3309
3310
|
function ee(e, t) {
|
|
3310
3311
|
return e > 1 ? `${t}s` : t;
|
|
3311
3312
|
}
|
|
3312
|
-
const
|
|
3313
|
+
const Sa = {
|
|
3313
3314
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3314
3315
|
"data-cy": "pagination-header"
|
|
3315
|
-
}, Fa = { class: "ms-2" },
|
|
3316
|
+
}, Fa = { class: "ms-2" }, Ca = { key: 0 }, Ta = {
|
|
3316
3317
|
class: "w-auto",
|
|
3317
3318
|
"data-cy": "total"
|
|
3318
|
-
},
|
|
3319
|
+
}, we = /* @__PURE__ */ z({
|
|
3319
3320
|
__name: "ForgePaginationHeader",
|
|
3320
3321
|
props: {
|
|
3321
3322
|
total: {},
|
|
@@ -3324,33 +3325,33 @@ const $a = {
|
|
|
3324
3325
|
},
|
|
3325
3326
|
emits: ["update:perPage"],
|
|
3326
3327
|
setup(e, { emit: t }) {
|
|
3327
|
-
const a = t, i = e,
|
|
3328
|
+
const a = t, i = e, l = (n) => {
|
|
3328
3329
|
a("update:perPage", n.value);
|
|
3329
|
-
},
|
|
3330
|
+
}, o = M(() => {
|
|
3330
3331
|
const n = Math.ceil(i.total / i.perPage);
|
|
3331
3332
|
return `${n} ${ee(n, "page")}`;
|
|
3332
3333
|
});
|
|
3333
|
-
return (n, s) => (d(),
|
|
3334
|
-
s[2] || (s[2] =
|
|
3334
|
+
return (n, s) => (d(), g("div", Sa, [
|
|
3335
|
+
s[2] || (s[2] = O(" Number of results per page ", -1)),
|
|
3335
3336
|
m("div", Fa, [
|
|
3336
|
-
|
|
3337
|
+
h(p(oe), {
|
|
3337
3338
|
options: i.pageSizes,
|
|
3338
3339
|
"model-value": i.perPage,
|
|
3339
3340
|
class: "page-size",
|
|
3340
|
-
onChange: s[0] || (s[0] = (
|
|
3341
|
+
onChange: s[0] || (s[0] = (c) => l(c)),
|
|
3341
3342
|
"data-cy": "pagination-page-size-select"
|
|
3342
3343
|
}, null, 8, ["options", "model-value"])
|
|
3343
3344
|
]),
|
|
3344
|
-
i.total ? (d(),
|
|
3345
|
+
i.total ? (d(), g("div", Ca, [
|
|
3345
3346
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3346
|
-
m("span",
|
|
3347
|
+
m("span", Ta, B(i.total) + " " + B(p(ee)(i.total, "result")) + " across " + B(o.value), 1)
|
|
3347
3348
|
])) : T("", !0)
|
|
3348
3349
|
]));
|
|
3349
3350
|
}
|
|
3350
|
-
}),
|
|
3351
|
+
}), za = { class: "position-relative" }, Pa = { "data-cy": "above-table-slot" }, ja = { class: "d-flex w-100" }, Ma = {
|
|
3351
3352
|
class: "mx-auto",
|
|
3352
3353
|
"data-cy": "empty-message"
|
|
3353
|
-
},
|
|
3354
|
+
}, Ia = { class: "d-flex" }, Va = { class: "d-flex align-items-end mb-2" }, Da = { key: 0 }, Oa = { class: "ms-auto" }, Cl = /* @__PURE__ */ z({
|
|
3354
3355
|
__name: "ForgeTable",
|
|
3355
3356
|
props: {
|
|
3356
3357
|
value: {},
|
|
@@ -3437,7 +3438,7 @@ const $a = {
|
|
|
3437
3438
|
},
|
|
3438
3439
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3439
3440
|
setup(e, { emit: t }) {
|
|
3440
|
-
const a = t, i = e,
|
|
3441
|
+
const a = t, i = e, l = I(), o = I([5, 10, 20, 50, 100]), n = I(i.perPage ?? 10), s = I({
|
|
3441
3442
|
filters: i.filters,
|
|
3442
3443
|
perPage: n.value,
|
|
3443
3444
|
page: 0,
|
|
@@ -3445,13 +3446,13 @@ const $a = {
|
|
|
3445
3446
|
sortField: "",
|
|
3446
3447
|
total: i.totalRecords ?? i.value.length
|
|
3447
3448
|
});
|
|
3448
|
-
W(() => i.perPage, (
|
|
3449
|
-
|
|
3449
|
+
W(() => i.perPage, ($) => {
|
|
3450
|
+
$ && (n.value = $, s.value.perPage = $);
|
|
3450
3451
|
});
|
|
3451
|
-
const
|
|
3452
|
-
const
|
|
3453
|
-
return `${
|
|
3454
|
-
}),
|
|
3452
|
+
const c = M(() => i.totalRecords ?? i.value.length), u = M(() => {
|
|
3453
|
+
const $ = Math.ceil(c.value / n.value);
|
|
3454
|
+
return `${$} ${ee($, "page")}`;
|
|
3455
|
+
}), w = M(() => ({
|
|
3455
3456
|
thead: () => ({
|
|
3456
3457
|
class: [
|
|
3457
3458
|
{
|
|
@@ -3478,151 +3479,151 @@ const $a = {
|
|
|
3478
3479
|
if (i.clearAll)
|
|
3479
3480
|
i.clearAll();
|
|
3480
3481
|
else
|
|
3481
|
-
for (const
|
|
3482
|
-
typeof i.filters[
|
|
3482
|
+
for (const $ in i.filters)
|
|
3483
|
+
typeof i.filters[$] == "string" ? i.filters[$] = "" : i.filters[$].value = null;
|
|
3483
3484
|
S(i.filters);
|
|
3484
|
-
},
|
|
3485
|
-
|
|
3486
|
-
},
|
|
3487
|
-
var
|
|
3488
|
-
s.value.sortDirection =
|
|
3489
|
-
}, S = (
|
|
3490
|
-
s.value.filters =
|
|
3491
|
-
}, F = (
|
|
3492
|
-
s.value.page =
|
|
3493
|
-
},
|
|
3485
|
+
}, x = () => {
|
|
3486
|
+
l.value.exportCSV();
|
|
3487
|
+
}, b = ($) => {
|
|
3488
|
+
var k;
|
|
3489
|
+
s.value.sortDirection = $.sortOrder === 1 ? "Asc" : $.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((k = $.sortField) == null ? void 0 : k.toString()) ?? "", a("update:tableContext", s.value), a("sort", $);
|
|
3490
|
+
}, S = ($) => {
|
|
3491
|
+
s.value.filters = $, a("update:tableContext", s.value), a("update:filters", $);
|
|
3492
|
+
}, F = ($) => {
|
|
3493
|
+
s.value.page = $.page, a("update:tableContext", s.value), a("page", $);
|
|
3494
|
+
}, L = () => {
|
|
3494
3495
|
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3495
3496
|
};
|
|
3496
|
-
return W(() => i.filters, (
|
|
3497
|
-
s.value.filters =
|
|
3498
|
-
}, { deep: !0 }),
|
|
3499
|
-
m("span",
|
|
3500
|
-
C(
|
|
3497
|
+
return W(() => i.filters, ($) => {
|
|
3498
|
+
s.value.filters = $, a("update:tableContext", s.value);
|
|
3499
|
+
}, { deep: !0 }), se(() => a("update:tableContext", s.value)), ($, k) => (d(), g("div", za, [
|
|
3500
|
+
m("span", Pa, [
|
|
3501
|
+
C($.$slots, "above-table")
|
|
3501
3502
|
]),
|
|
3502
|
-
|
|
3503
|
+
h(p(Ge), j({
|
|
3503
3504
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3504
|
-
}, { ...i,
|
|
3505
|
-
pt:
|
|
3505
|
+
}, { ...i, ...$.$attrs }, {
|
|
3506
|
+
pt: w.value,
|
|
3506
3507
|
rows: n.value,
|
|
3507
|
-
"total-records":
|
|
3508
|
+
"total-records": c.value,
|
|
3508
3509
|
"filter-display": i.filters ? "row" : void 0,
|
|
3509
3510
|
ref_key: "forgeTable",
|
|
3510
|
-
ref:
|
|
3511
|
+
ref: l,
|
|
3511
3512
|
"data-cy": "table",
|
|
3512
3513
|
"onUpdate:filters": S,
|
|
3513
|
-
onSort:
|
|
3514
|
+
onSort: b,
|
|
3514
3515
|
onPage: F,
|
|
3515
3516
|
showHeaders: ""
|
|
3516
|
-
}),
|
|
3517
|
-
empty:
|
|
3518
|
-
m("div",
|
|
3519
|
-
m("h5",
|
|
3517
|
+
}), le({
|
|
3518
|
+
empty: v(() => [
|
|
3519
|
+
m("div", ja, [
|
|
3520
|
+
m("h5", Ma, B(e.emptyMessage ?? "No items Found."), 1)
|
|
3520
3521
|
])
|
|
3521
3522
|
]),
|
|
3522
|
-
header:
|
|
3523
|
+
header: v(() => [
|
|
3523
3524
|
m("div", {
|
|
3524
3525
|
class: P(i.loading ? "opacity-50" : "")
|
|
3525
3526
|
}, [
|
|
3526
|
-
m("div",
|
|
3527
|
-
m("div",
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
total:
|
|
3531
|
-
"page-sizes":
|
|
3527
|
+
m("div", Ia, [
|
|
3528
|
+
m("div", Va, [
|
|
3529
|
+
e.paginator && !e.legacyPaginationFooter ? (d(), g("span", Da, [
|
|
3530
|
+
h(we, {
|
|
3531
|
+
total: c.value,
|
|
3532
|
+
"page-sizes": o.value,
|
|
3532
3533
|
"per-page": n.value,
|
|
3533
3534
|
"onUpdate:perPage": [
|
|
3534
|
-
|
|
3535
|
-
|
|
3535
|
+
k[0] || (k[0] = (A) => n.value = A),
|
|
3536
|
+
L
|
|
3536
3537
|
]
|
|
3537
3538
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3538
3539
|
])) : T("", !0)
|
|
3539
3540
|
]),
|
|
3540
|
-
m("div",
|
|
3541
|
-
|
|
3541
|
+
m("div", Oa, [
|
|
3542
|
+
e.showClearButton ? (d(), y(p(R), {
|
|
3542
3543
|
key: 0,
|
|
3543
3544
|
outlined: "",
|
|
3544
|
-
class: P(
|
|
3545
|
+
class: P(e.showExporterButton ? "me-2" : ""),
|
|
3545
3546
|
onClick: r,
|
|
3546
3547
|
"data-cy": "clear-all"
|
|
3547
3548
|
}, {
|
|
3548
|
-
default:
|
|
3549
|
-
|
|
3549
|
+
default: v(() => [
|
|
3550
|
+
h(p(V), {
|
|
3550
3551
|
icon: "bi:funnel-fill",
|
|
3551
3552
|
width: "24",
|
|
3552
3553
|
height: "24"
|
|
3553
3554
|
}),
|
|
3554
|
-
|
|
3555
|
+
k[2] || (k[2] = O(" Clear ", -1))
|
|
3555
3556
|
]),
|
|
3556
3557
|
_: 1
|
|
3557
3558
|
}, 8, ["class"])) : T("", !0),
|
|
3558
|
-
|
|
3559
|
+
e.showExporterButton ? (d(), y(p(R), {
|
|
3559
3560
|
key: 1,
|
|
3560
3561
|
outlined: "",
|
|
3561
|
-
onClick:
|
|
3562
|
+
onClick: x,
|
|
3562
3563
|
"data-cy": "exporter"
|
|
3563
3564
|
}, {
|
|
3564
|
-
default:
|
|
3565
|
-
|
|
3565
|
+
default: v(() => [
|
|
3566
|
+
h(p(V), {
|
|
3566
3567
|
icon: "typcn:export",
|
|
3567
3568
|
width: "24",
|
|
3568
3569
|
height: "24"
|
|
3569
3570
|
}),
|
|
3570
|
-
|
|
3571
|
+
k[3] || (k[3] = O(" Export ", -1))
|
|
3571
3572
|
]),
|
|
3572
3573
|
_: 1
|
|
3573
3574
|
})) : T("", !0),
|
|
3574
|
-
C(
|
|
3575
|
+
C($.$slots, "column-customiser")
|
|
3575
3576
|
])
|
|
3576
3577
|
])
|
|
3577
3578
|
], 2)
|
|
3578
3579
|
]),
|
|
3579
|
-
default:
|
|
3580
|
-
C(
|
|
3580
|
+
default: v(() => [
|
|
3581
|
+
C($.$slots, "default")
|
|
3581
3582
|
]),
|
|
3582
3583
|
_: 2
|
|
3583
3584
|
}, [
|
|
3584
|
-
|
|
3585
|
-
name:
|
|
3586
|
-
fn:
|
|
3587
|
-
C(
|
|
3585
|
+
q($.$slots, (A, f) => ({
|
|
3586
|
+
name: f,
|
|
3587
|
+
fn: v((D) => [
|
|
3588
|
+
C($.$slots, f, G(Y(D || {})))
|
|
3588
3589
|
])
|
|
3589
3590
|
})),
|
|
3590
|
-
|
|
3591
|
+
e.legacyPaginationFooter ? {
|
|
3591
3592
|
name: "paginatorstart",
|
|
3592
|
-
fn:
|
|
3593
|
+
fn: v(() => [
|
|
3593
3594
|
m("span", {
|
|
3594
3595
|
class: P(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3595
3596
|
"data-cy": "legacy-page-size"
|
|
3596
3597
|
}, [
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
options:
|
|
3598
|
+
k[4] || (k[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3599
|
+
h(p(oe), {
|
|
3600
|
+
options: o.value,
|
|
3600
3601
|
modelValue: n.value,
|
|
3601
|
-
"onUpdate:modelValue":
|
|
3602
|
+
"onUpdate:modelValue": k[1] || (k[1] = (A) => n.value = A),
|
|
3602
3603
|
class: "ms-2",
|
|
3603
|
-
onClick:
|
|
3604
|
+
onClick: L
|
|
3604
3605
|
}, null, 8, ["options", "modelValue"])
|
|
3605
3606
|
], 2)
|
|
3606
3607
|
]),
|
|
3607
3608
|
key: "0"
|
|
3608
3609
|
} : void 0,
|
|
3609
|
-
|
|
3610
|
+
e.legacyPaginationFooter ? {
|
|
3610
3611
|
name: "paginatorend",
|
|
3611
|
-
fn:
|
|
3612
|
+
fn: v(() => [
|
|
3612
3613
|
m("span", {
|
|
3613
3614
|
"data-cy": "legacy-total",
|
|
3614
3615
|
class: P(i.loading ? "opacity-50" : "")
|
|
3615
|
-
},
|
|
3616
|
+
}, B(c.value) + " " + B(p(ee)(c.value, "result")) + " across " + B(u.value), 3)
|
|
3616
3617
|
]),
|
|
3617
3618
|
key: "1"
|
|
3618
3619
|
} : void 0
|
|
3619
3620
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3620
3621
|
]));
|
|
3621
3622
|
}
|
|
3622
|
-
}),
|
|
3623
|
+
}), Aa = { class: "position-relative" }, La = { "data-cy": "above-table-slot" }, Na = { class: "d-flex w-100" }, Ua = {
|
|
3623
3624
|
class: "mx-auto",
|
|
3624
3625
|
"data-cy": "empty-message"
|
|
3625
|
-
},
|
|
3626
|
+
}, Ea = { class: "d-flex" }, qa = { class: "d-flex align-items-end mb-2" }, _a = { key: 0 }, Ra = { class: "ms-auto" }, Tl = /* @__PURE__ */ z({
|
|
3626
3627
|
__name: "ForgeTreeTable",
|
|
3627
3628
|
props: {
|
|
3628
3629
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3683,28 +3684,28 @@ const $a = {
|
|
|
3683
3684
|
},
|
|
3684
3685
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3685
3686
|
setup(e, { emit: t }) {
|
|
3686
|
-
const a = e, i = t,
|
|
3687
|
+
const a = e, i = t, l = I([5, 10, 20, 50, 100]), o = I(10), n = I(0), s = I(0), c = I({
|
|
3687
3688
|
filters: a.filters,
|
|
3688
|
-
perPage:
|
|
3689
|
+
perPage: o.value,
|
|
3689
3690
|
page: 0,
|
|
3690
3691
|
sortDirection: "None",
|
|
3691
3692
|
sortField: "",
|
|
3692
3693
|
total: a.totalRecords ?? a.value.length
|
|
3693
|
-
}), u = M(() => a.totalRecords ?? a.value.length),
|
|
3694
|
-
const
|
|
3695
|
-
return `${
|
|
3694
|
+
}), u = M(() => a.totalRecords ?? a.value.length), w = M(() => {
|
|
3695
|
+
const f = Math.ceil(u.value / o.value);
|
|
3696
|
+
return `${f} ${ee(f, "page")}`;
|
|
3696
3697
|
}), r = M(() => ({
|
|
3697
3698
|
root: "position-relative",
|
|
3698
|
-
table: (
|
|
3699
|
+
table: (f) => ({
|
|
3699
3700
|
class: [
|
|
3700
3701
|
"table position-relative",
|
|
3701
3702
|
{
|
|
3702
|
-
"table-striped":
|
|
3703
|
-
"table-hover":
|
|
3704
|
-
"table-bordered":
|
|
3705
|
-
"table-sm":
|
|
3706
|
-
"table-lg":
|
|
3707
|
-
"opacity-50":
|
|
3703
|
+
"table-striped": f.attrs.stripedRows,
|
|
3704
|
+
"table-hover": f.props.rowHover,
|
|
3705
|
+
"table-bordered": f.props.showGridlines,
|
|
3706
|
+
"table-sm": f.props.size === "small",
|
|
3707
|
+
"table-lg": f.props.size === "large",
|
|
3708
|
+
"opacity-50": f.props.loading
|
|
3708
3709
|
}
|
|
3709
3710
|
]
|
|
3710
3711
|
}),
|
|
@@ -3722,43 +3723,43 @@ const $a = {
|
|
|
3722
3723
|
}
|
|
3723
3724
|
]
|
|
3724
3725
|
}),
|
|
3725
|
-
row: ({ instance:
|
|
3726
|
+
row: ({ instance: f }) => [
|
|
3726
3727
|
{
|
|
3727
|
-
"parent-node":
|
|
3728
|
+
"parent-node": f.node.hasOwnProperty("children")
|
|
3728
3729
|
}
|
|
3729
3730
|
]
|
|
3730
3731
|
}));
|
|
3731
|
-
W(() => a.parentExpanderFullRow, (
|
|
3732
|
-
|
|
3732
|
+
W(() => a.parentExpanderFullRow, (f) => {
|
|
3733
|
+
f ? x() : b();
|
|
3733
3734
|
});
|
|
3734
|
-
const
|
|
3735
|
+
const x = () => {
|
|
3735
3736
|
a.parentExpanderFullRow && setTimeout(
|
|
3736
3737
|
() => {
|
|
3737
|
-
const
|
|
3738
|
+
const f = Array.from(
|
|
3738
3739
|
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3739
3740
|
);
|
|
3740
3741
|
Array.from(
|
|
3741
3742
|
document.querySelectorAll(".parent-node td")
|
|
3742
|
-
).forEach((
|
|
3743
|
-
|
|
3744
|
-
}),
|
|
3745
|
-
|
|
3743
|
+
).forEach((U) => {
|
|
3744
|
+
U.classList.add("d-none");
|
|
3745
|
+
}), f.forEach((U) => {
|
|
3746
|
+
U.setAttribute("colspan", a.totalColumns.toString()), U.classList.remove("d-none");
|
|
3746
3747
|
});
|
|
3747
3748
|
},
|
|
3748
3749
|
0
|
|
3749
3750
|
);
|
|
3750
|
-
},
|
|
3751
|
+
}, b = () => {
|
|
3751
3752
|
setTimeout(
|
|
3752
3753
|
() => {
|
|
3753
|
-
const
|
|
3754
|
+
const f = Array.from(
|
|
3754
3755
|
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3755
|
-
),
|
|
3756
|
+
), D = Array.from(
|
|
3756
3757
|
document.querySelectorAll(".parent-node td")
|
|
3757
3758
|
);
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
}),
|
|
3761
|
-
|
|
3759
|
+
f.forEach((U) => {
|
|
3760
|
+
U.removeAttribute("colspan");
|
|
3761
|
+
}), D.forEach((U) => {
|
|
3762
|
+
U.classList.remove("d-none");
|
|
3762
3763
|
});
|
|
3763
3764
|
},
|
|
3764
3765
|
0
|
|
@@ -3767,138 +3768,138 @@ const $a = {
|
|
|
3767
3768
|
if (a.clearAll)
|
|
3768
3769
|
a.clearAll();
|
|
3769
3770
|
else
|
|
3770
|
-
for (const
|
|
3771
|
-
typeof a.filters[
|
|
3772
|
-
|
|
3773
|
-
}, F = (
|
|
3774
|
-
var
|
|
3775
|
-
|
|
3776
|
-
},
|
|
3777
|
-
|
|
3778
|
-
},
|
|
3779
|
-
|
|
3780
|
-
},
|
|
3781
|
-
|
|
3771
|
+
for (const f in a.filters)
|
|
3772
|
+
typeof a.filters[f] == "string" ? a.filters[f] = "" : a.filters[f].value = null;
|
|
3773
|
+
L(a.filters);
|
|
3774
|
+
}, F = (f) => {
|
|
3775
|
+
var D;
|
|
3776
|
+
c.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", c.value.sortField = ((D = f.sortField) == null ? void 0 : D.toString()) ?? "", i("update:tableContext", c.value), i("sort", f), x();
|
|
3777
|
+
}, L = (f) => {
|
|
3778
|
+
c.value.filters = f, i("update:tableContext", c.value), i("update:filters", f), x();
|
|
3779
|
+
}, $ = (f) => {
|
|
3780
|
+
c.value.page = s.value = f.page, A(), i("update:tableContext", c.value), i("page", f), x();
|
|
3781
|
+
}, k = () => {
|
|
3782
|
+
c.value.perPage = o.value, s.value = 0, c.value.page = s.value = Math.floor(n.value / o.value), A(), i("update:tableContext", c.value), x();
|
|
3782
3783
|
};
|
|
3783
|
-
W(() => a.filters, (
|
|
3784
|
-
|
|
3784
|
+
W(() => a.filters, (f) => {
|
|
3785
|
+
c.value.filters = f, i("update:tableContext", c.value);
|
|
3785
3786
|
}, { deep: !0 }), W(() => a.value, () => {
|
|
3786
|
-
|
|
3787
|
-
}),
|
|
3788
|
-
|
|
3787
|
+
x();
|
|
3788
|
+
}), se(() => {
|
|
3789
|
+
x(), i("update:tableContext", c.value);
|
|
3789
3790
|
});
|
|
3790
|
-
const
|
|
3791
|
-
n.value = s.value *
|
|
3791
|
+
const A = () => {
|
|
3792
|
+
n.value = s.value * o.value;
|
|
3792
3793
|
};
|
|
3793
|
-
return (
|
|
3794
|
-
m("span",
|
|
3795
|
-
C(
|
|
3794
|
+
return (f, D) => (d(), g("div", Aa, [
|
|
3795
|
+
m("span", La, [
|
|
3796
|
+
C(f.$slots, "above-table")
|
|
3796
3797
|
]),
|
|
3797
|
-
|
|
3798
|
+
h(p(Ye), j({
|
|
3798
3799
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3799
|
-
}, { ...a, ...
|
|
3800
|
+
}, { ...a, ...f.$attrs }, {
|
|
3800
3801
|
pt: r.value,
|
|
3801
3802
|
"filter-display": a.filters ? "row" : void 0,
|
|
3802
|
-
rows:
|
|
3803
|
+
rows: e.paginator ? o.value : void 0,
|
|
3803
3804
|
"data-cy": "tree-table",
|
|
3804
|
-
"onUpdate:filters":
|
|
3805
|
+
"onUpdate:filters": L,
|
|
3805
3806
|
onSort: F,
|
|
3806
|
-
onPage:
|
|
3807
|
-
onNodeExpand:
|
|
3807
|
+
onPage: $,
|
|
3808
|
+
onNodeExpand: D[2] || (D[2] = () => x()),
|
|
3808
3809
|
showHeaders: "",
|
|
3809
3810
|
first: n.value
|
|
3810
|
-
}),
|
|
3811
|
-
empty:
|
|
3812
|
-
m("div",
|
|
3813
|
-
m("h5",
|
|
3811
|
+
}), le({
|
|
3812
|
+
empty: v(() => [
|
|
3813
|
+
m("div", Na, [
|
|
3814
|
+
m("h5", Ua, B(e.emptyMessage ?? "No items Found."), 1)
|
|
3814
3815
|
])
|
|
3815
3816
|
]),
|
|
3816
|
-
header:
|
|
3817
|
+
header: v(() => [
|
|
3817
3818
|
m("div", {
|
|
3818
3819
|
class: P(a.loading ? "opacity-50" : "")
|
|
3819
3820
|
}, [
|
|
3820
|
-
m("div",
|
|
3821
|
-
m("div",
|
|
3822
|
-
|
|
3823
|
-
|
|
3821
|
+
m("div", Ea, [
|
|
3822
|
+
m("div", qa, [
|
|
3823
|
+
e.paginator && !e.legacyPaginationFooter ? (d(), g("span", _a, [
|
|
3824
|
+
h(we, {
|
|
3824
3825
|
total: u.value,
|
|
3825
|
-
"page-sizes":
|
|
3826
|
-
"per-page":
|
|
3826
|
+
"page-sizes": l.value,
|
|
3827
|
+
"per-page": o.value,
|
|
3827
3828
|
"onUpdate:perPage": [
|
|
3828
|
-
|
|
3829
|
-
|
|
3829
|
+
D[0] || (D[0] = (U) => o.value = U),
|
|
3830
|
+
k
|
|
3830
3831
|
]
|
|
3831
3832
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3832
3833
|
])) : T("", !0)
|
|
3833
3834
|
]),
|
|
3834
|
-
m("div",
|
|
3835
|
-
|
|
3835
|
+
m("div", Ra, [
|
|
3836
|
+
e.showClearButton ? (d(), y(p(R), {
|
|
3836
3837
|
key: 0,
|
|
3837
3838
|
outlined: "",
|
|
3838
3839
|
onClick: S,
|
|
3839
3840
|
"data-cy": "clear-all"
|
|
3840
3841
|
}, {
|
|
3841
|
-
default:
|
|
3842
|
-
|
|
3842
|
+
default: v(() => [
|
|
3843
|
+
h(p(V), {
|
|
3843
3844
|
icon: "bi:funnel-fill",
|
|
3844
3845
|
width: "24",
|
|
3845
3846
|
height: "24"
|
|
3846
3847
|
}),
|
|
3847
|
-
|
|
3848
|
+
D[3] || (D[3] = O(" Clear ", -1))
|
|
3848
3849
|
]),
|
|
3849
3850
|
_: 1
|
|
3850
3851
|
})) : T("", !0),
|
|
3851
|
-
C(
|
|
3852
|
+
C(f.$slots, "column-customiser")
|
|
3852
3853
|
])
|
|
3853
3854
|
])
|
|
3854
3855
|
], 2)
|
|
3855
3856
|
]),
|
|
3856
|
-
default:
|
|
3857
|
-
C(
|
|
3857
|
+
default: v(() => [
|
|
3858
|
+
C(f.$slots, "default")
|
|
3858
3859
|
]),
|
|
3859
3860
|
_: 2
|
|
3860
3861
|
}, [
|
|
3861
|
-
|
|
3862
|
-
name:
|
|
3863
|
-
fn:
|
|
3864
|
-
C(
|
|
3862
|
+
q(f.$slots, (U, te) => ({
|
|
3863
|
+
name: te,
|
|
3864
|
+
fn: v((ce) => [
|
|
3865
|
+
C(f.$slots, te, G(Y(ce || {})))
|
|
3865
3866
|
])
|
|
3866
3867
|
})),
|
|
3867
|
-
|
|
3868
|
+
e.legacyPaginationFooter ? {
|
|
3868
3869
|
name: "paginatorstart",
|
|
3869
|
-
fn:
|
|
3870
|
+
fn: v(() => [
|
|
3870
3871
|
m("span", {
|
|
3871
3872
|
class: P(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
3872
3873
|
"data-cy": "legacy-page-size"
|
|
3873
3874
|
}, [
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
options:
|
|
3877
|
-
modelValue:
|
|
3878
|
-
"onUpdate:modelValue":
|
|
3875
|
+
D[4] || (D[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3876
|
+
h(p(oe), {
|
|
3877
|
+
options: l.value,
|
|
3878
|
+
modelValue: o.value,
|
|
3879
|
+
"onUpdate:modelValue": D[1] || (D[1] = (U) => o.value = U),
|
|
3879
3880
|
class: "ms-2",
|
|
3880
|
-
onClick:
|
|
3881
|
+
onClick: k
|
|
3881
3882
|
}, null, 8, ["options", "modelValue"])
|
|
3882
3883
|
], 2)
|
|
3883
3884
|
]),
|
|
3884
3885
|
key: "0"
|
|
3885
3886
|
} : void 0,
|
|
3886
|
-
|
|
3887
|
+
e.legacyPaginationFooter ? {
|
|
3887
3888
|
name: "paginatorend",
|
|
3888
|
-
fn:
|
|
3889
|
+
fn: v(() => [
|
|
3889
3890
|
m("span", {
|
|
3890
3891
|
"data-cy": "legacy-total",
|
|
3891
3892
|
class: P(a.loading ? "opacity-50" : "")
|
|
3892
|
-
},
|
|
3893
|
+
}, B(u.value) + " " + B(p(ee)(u.value, "result")) + " across " + B(w.value), 3)
|
|
3893
3894
|
]),
|
|
3894
3895
|
key: "1"
|
|
3895
3896
|
} : void 0
|
|
3896
3897
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3897
3898
|
]));
|
|
3898
3899
|
}
|
|
3899
|
-
}),
|
|
3900
|
+
}), Ha = { class: "d-flex position-relative" }, Wa = { class: "d-flex w-100" }, zl = /* @__PURE__ */ z({
|
|
3900
3901
|
__name: "ForgeFilterHeader",
|
|
3901
|
-
props: /* @__PURE__ */
|
|
3902
|
+
props: /* @__PURE__ */ _({
|
|
3902
3903
|
dataType: {},
|
|
3903
3904
|
dropdownOptions: {},
|
|
3904
3905
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -3911,57 +3912,57 @@ const $a = {
|
|
|
3911
3912
|
}),
|
|
3912
3913
|
emits: ["update:modelValue"],
|
|
3913
3914
|
setup(e) {
|
|
3914
|
-
const t =
|
|
3915
|
-
if (!
|
|
3916
|
-
return
|
|
3915
|
+
const t = N(e, "modelValue"), a = (l, o) => {
|
|
3916
|
+
if (!l && typeof l != "boolean" || Array.isArray(l) && l.length === 0)
|
|
3917
|
+
return o;
|
|
3917
3918
|
const n = (s) => {
|
|
3918
3919
|
var u;
|
|
3919
|
-
const
|
|
3920
|
-
(
|
|
3920
|
+
const c = (u = e.dropdownOptions) == null ? void 0 : u.find(
|
|
3921
|
+
(w) => e.optionValue ? w[e.optionValue] === s : Object.keys(w).every((r) => s.hasOwnProperty(r) && w[r] === s[r])
|
|
3921
3922
|
);
|
|
3922
|
-
return e.optionLabel ?
|
|
3923
|
+
return e.optionLabel ? c[e.optionLabel] : c;
|
|
3923
3924
|
};
|
|
3924
|
-
return Array.isArray(
|
|
3925
|
+
return Array.isArray(l) ? l.map(n).join(", ") : n(l);
|
|
3925
3926
|
}, i = () => {
|
|
3926
3927
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3927
3928
|
};
|
|
3928
|
-
return (
|
|
3929
|
-
const n =
|
|
3930
|
-
return d(),
|
|
3931
|
-
|
|
3929
|
+
return (l, o) => {
|
|
3930
|
+
const n = be, s = R;
|
|
3931
|
+
return d(), g("div", Ha, [
|
|
3932
|
+
e.dataType === "numeric" ? (d(), y(n, j({
|
|
3932
3933
|
key: 0,
|
|
3933
3934
|
modelValue: t.value,
|
|
3934
|
-
"onUpdate:modelValue":
|
|
3935
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => t.value = c),
|
|
3935
3936
|
modelModifiers: { trim: !0 }
|
|
3936
|
-
},
|
|
3937
|
+
}, l.$attrs), null, 16, ["modelValue"])) : e.dataType === "date" ? (d(), y(he, j({
|
|
3937
3938
|
key: 1,
|
|
3938
3939
|
modelValue: t.value,
|
|
3939
|
-
"onUpdate:modelValue":
|
|
3940
|
-
},
|
|
3940
|
+
"onUpdate:modelValue": o[1] || (o[1] = (c) => t.value = c)
|
|
3941
|
+
}, l.$attrs, {
|
|
3941
3942
|
"show-icon": !1,
|
|
3942
3943
|
"show-on-focus": !0
|
|
3943
|
-
}), null, 16, ["modelValue"])) :
|
|
3944
|
+
}), null, 16, ["modelValue"])) : e.dataType === "select" ? (d(), y(p(oe), j({
|
|
3944
3945
|
key: 2,
|
|
3945
3946
|
modelValue: t.value,
|
|
3946
|
-
"onUpdate:modelValue":
|
|
3947
|
-
},
|
|
3948
|
-
options:
|
|
3949
|
-
"option-value":
|
|
3950
|
-
"option-label":
|
|
3947
|
+
"onUpdate:modelValue": o[2] || (o[2] = (c) => t.value = c)
|
|
3948
|
+
}, l.$attrs, {
|
|
3949
|
+
options: e.dropdownOptions,
|
|
3950
|
+
"option-value": e.optionValue,
|
|
3951
|
+
"option-label": e.optionLabel
|
|
3951
3952
|
}), {
|
|
3952
|
-
value:
|
|
3953
|
-
m("div",
|
|
3953
|
+
value: v(({ value: c, placeholder: u }) => [
|
|
3954
|
+
m("div", Wa, [
|
|
3954
3955
|
m("span", {
|
|
3955
|
-
class: P({ "filter-placeholder":
|
|
3956
|
-
},
|
|
3957
|
-
|
|
3956
|
+
class: P({ "filter-placeholder": c === null })
|
|
3957
|
+
}, B(a(c, u)), 3),
|
|
3958
|
+
e.showClearButton && t.value !== null ? (d(), y(s, {
|
|
3958
3959
|
key: 0,
|
|
3959
3960
|
onClick: Q(i, ["stop"]),
|
|
3960
3961
|
size: "small",
|
|
3961
3962
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3962
3963
|
}, {
|
|
3963
|
-
default:
|
|
3964
|
-
|
|
3964
|
+
default: v(() => [
|
|
3965
|
+
h(p(V), {
|
|
3965
3966
|
icon: "bi:x",
|
|
3966
3967
|
width: "1rem",
|
|
3967
3968
|
height: "1rem",
|
|
@@ -3973,30 +3974,30 @@ const $a = {
|
|
|
3973
3974
|
])
|
|
3974
3975
|
]),
|
|
3975
3976
|
_: 1
|
|
3976
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) :
|
|
3977
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : e.dataType === "multiselect" ? (d(), y(p(ue), j({
|
|
3977
3978
|
key: 3,
|
|
3978
3979
|
modelValue: t.value,
|
|
3979
|
-
"onUpdate:modelValue":
|
|
3980
|
-
},
|
|
3981
|
-
options:
|
|
3980
|
+
"onUpdate:modelValue": o[3] || (o[3] = (c) => t.value = c)
|
|
3981
|
+
}, l.$attrs, {
|
|
3982
|
+
options: e.dropdownOptions,
|
|
3982
3983
|
showToggleAll: !1,
|
|
3983
|
-
"option-label":
|
|
3984
|
-
"option-value":
|
|
3984
|
+
"option-label": e.optionLabel,
|
|
3985
|
+
"option-value": e.optionValue,
|
|
3985
3986
|
filter: ""
|
|
3986
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(),
|
|
3987
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), y(p(ie), j({
|
|
3987
3988
|
key: 4,
|
|
3988
3989
|
modelValue: t.value,
|
|
3989
|
-
"onUpdate:modelValue":
|
|
3990
|
+
"onUpdate:modelValue": o[4] || (o[4] = (c) => t.value = c),
|
|
3990
3991
|
modelModifiers: { trim: !0 }
|
|
3991
|
-
},
|
|
3992
|
-
|
|
3992
|
+
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3993
|
+
e.showClearButton && t.value !== null && e.dataType !== "select" && e.dataType !== "multiselect" && e.dataType !== "date" && t.value != "" ? (d(), y(s, {
|
|
3993
3994
|
key: 5,
|
|
3994
3995
|
onClick: Q(i, ["prevent"]),
|
|
3995
3996
|
size: "small",
|
|
3996
3997
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3997
3998
|
}, {
|
|
3998
|
-
default:
|
|
3999
|
-
|
|
3999
|
+
default: v(() => [
|
|
4000
|
+
h(p(V), {
|
|
4000
4001
|
icon: "bi:x",
|
|
4001
4002
|
width: "1rem",
|
|
4002
4003
|
height: "1rem",
|
|
@@ -4008,7 +4009,7 @@ const $a = {
|
|
|
4008
4009
|
]);
|
|
4009
4010
|
};
|
|
4010
4011
|
}
|
|
4011
|
-
}),
|
|
4012
|
+
}), ve = {
|
|
4012
4013
|
"application/prs.cww": ["cww"],
|
|
4013
4014
|
"application/prs.xsf+xml": ["xsf"],
|
|
4014
4015
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -4724,8 +4725,8 @@ const $a = {
|
|
|
4724
4725
|
"video/x-smv": ["smv"],
|
|
4725
4726
|
"x-conference/x-cooltalk": ["ice"]
|
|
4726
4727
|
};
|
|
4727
|
-
Object.freeze(
|
|
4728
|
-
const
|
|
4728
|
+
Object.freeze(ve);
|
|
4729
|
+
const fe = {
|
|
4729
4730
|
"application/andrew-inset": ["ez"],
|
|
4730
4731
|
"application/appinstaller": ["appinstaller"],
|
|
4731
4732
|
"application/applixware": ["aw"],
|
|
@@ -5089,26 +5090,26 @@ const ue = {
|
|
|
5089
5090
|
"video/quicktime": ["qt", "mov"],
|
|
5090
5091
|
"video/webm": ["webm"]
|
|
5091
5092
|
};
|
|
5092
|
-
Object.freeze(
|
|
5093
|
+
Object.freeze(fe);
|
|
5093
5094
|
var H = function(e, t, a, i) {
|
|
5094
5095
|
if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
5095
5096
|
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");
|
|
5096
5097
|
return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
|
|
5097
|
-
}, Z,
|
|
5098
|
-
class
|
|
5098
|
+
}, Z, ae, J;
|
|
5099
|
+
class ke {
|
|
5099
5100
|
constructor(...t) {
|
|
5100
|
-
Z.set(this, /* @__PURE__ */ new Map()),
|
|
5101
|
+
Z.set(this, /* @__PURE__ */ new Map()), ae.set(this, /* @__PURE__ */ new Map()), J.set(this, /* @__PURE__ */ new Map());
|
|
5101
5102
|
for (const a of t)
|
|
5102
5103
|
this.define(a);
|
|
5103
5104
|
}
|
|
5104
5105
|
define(t, a = !1) {
|
|
5105
|
-
for (let [i,
|
|
5106
|
-
i = i.toLowerCase(),
|
|
5107
|
-
const
|
|
5106
|
+
for (let [i, l] of Object.entries(t)) {
|
|
5107
|
+
i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), H(this, J, "f").has(i) || H(this, J, "f").set(i, /* @__PURE__ */ new Set());
|
|
5108
|
+
const o = H(this, J, "f").get(i);
|
|
5108
5109
|
let n = !0;
|
|
5109
|
-
for (let s of
|
|
5110
|
-
const
|
|
5111
|
-
if (s =
|
|
5110
|
+
for (let s of l) {
|
|
5111
|
+
const c = s.startsWith("*");
|
|
5112
|
+
if (s = c ? s.slice(1) : s, o == null || o.add(s), n && H(this, ae, "f").set(i, s), n = !1, c)
|
|
5112
5113
|
continue;
|
|
5113
5114
|
const u = H(this, Z, "f").get(s);
|
|
5114
5115
|
if (u && u != i && !a)
|
|
@@ -5121,12 +5122,12 @@ class we {
|
|
|
5121
5122
|
getType(t) {
|
|
5122
5123
|
if (typeof t != "string")
|
|
5123
5124
|
return null;
|
|
5124
|
-
const a = t.replace(/^.*[/\\]/s, "").toLowerCase(), i = a.replace(/^.*\./s, "").toLowerCase(),
|
|
5125
|
-
return !(i.length < a.length - 1) &&
|
|
5125
|
+
const a = t.replace(/^.*[/\\]/s, "").toLowerCase(), i = a.replace(/^.*\./s, "").toLowerCase(), l = a.length < t.length;
|
|
5126
|
+
return !(i.length < a.length - 1) && l ? null : H(this, Z, "f").get(i) ?? null;
|
|
5126
5127
|
}
|
|
5127
5128
|
getExtension(t) {
|
|
5128
5129
|
var a;
|
|
5129
|
-
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && H(this,
|
|
5130
|
+
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && H(this, ae, "f").get(t.trim().toLowerCase())) ?? null);
|
|
5130
5131
|
}
|
|
5131
5132
|
getAllExtensions(t) {
|
|
5132
5133
|
return typeof t != "string" ? null : H(this, J, "f").get(t.toLowerCase()) ?? null;
|
|
@@ -5142,21 +5143,21 @@ class we {
|
|
|
5142
5143
|
_getTestState() {
|
|
5143
5144
|
return {
|
|
5144
5145
|
types: H(this, Z, "f"),
|
|
5145
|
-
extensions: H(this,
|
|
5146
|
+
extensions: H(this, ae, "f")
|
|
5146
5147
|
};
|
|
5147
5148
|
}
|
|
5148
5149
|
}
|
|
5149
|
-
Z = /* @__PURE__ */ new WeakMap(),
|
|
5150
|
-
const
|
|
5151
|
-
function
|
|
5152
|
-
const
|
|
5153
|
-
return t = t.map((
|
|
5154
|
-
const n =
|
|
5150
|
+
Z = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
|
|
5151
|
+
const Ga = new ke(fe, ve)._freeze();
|
|
5152
|
+
function Be(e, t, a, i) {
|
|
5153
|
+
const l = t.flatMap((o) => o.file);
|
|
5154
|
+
return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
|
|
5155
|
+
const n = l.findIndex((c) => c.name === o.name);
|
|
5155
5156
|
let s = "Not Uploaded";
|
|
5156
5157
|
if (n === -1) {
|
|
5157
|
-
const
|
|
5158
|
-
!
|
|
5159
|
-
file:
|
|
5158
|
+
const c = Za(o);
|
|
5159
|
+
!c || !a.includes(c) ? s = "InvalidFileType" : o.size <= i || (s = "InvalidFileSize"), t.unshift({
|
|
5160
|
+
file: o,
|
|
5160
5161
|
status: s,
|
|
5161
5162
|
blobFileName: null
|
|
5162
5163
|
});
|
|
@@ -5164,10 +5165,10 @@ function ke(e, t, a, i) {
|
|
|
5164
5165
|
t[n].status = "Duplicate";
|
|
5165
5166
|
}), t;
|
|
5166
5167
|
}
|
|
5167
|
-
async function
|
|
5168
|
+
async function Ya(e, t) {
|
|
5168
5169
|
if (e === "Uploaded" && t !== null)
|
|
5169
5170
|
try {
|
|
5170
|
-
await new
|
|
5171
|
+
await new pe(t).delete();
|
|
5171
5172
|
} catch (a) {
|
|
5172
5173
|
if (a !== "BlobNotFound") {
|
|
5173
5174
|
e = "DeleteFileFailed";
|
|
@@ -5175,37 +5176,37 @@ async function Ga(e, t) {
|
|
|
5175
5176
|
}
|
|
5176
5177
|
}
|
|
5177
5178
|
}
|
|
5178
|
-
function
|
|
5179
|
+
function ge(e, t = !0, a = 1) {
|
|
5179
5180
|
const i = t ? 1e3 : 1024;
|
|
5180
5181
|
if (Math.abs(e) < i)
|
|
5181
5182
|
return e + " B";
|
|
5182
|
-
const
|
|
5183
|
-
let
|
|
5183
|
+
const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
5184
|
+
let o = -1;
|
|
5184
5185
|
const n = 10 ** a;
|
|
5185
5186
|
do
|
|
5186
|
-
e /= i, ++
|
|
5187
|
-
while (Math.round(Math.abs(e) * n) / n >= i &&
|
|
5188
|
-
return e.toFixed(a) + " " + o
|
|
5187
|
+
e /= i, ++o;
|
|
5188
|
+
while (Math.round(Math.abs(e) * n) / n >= i && o < l.length - 1);
|
|
5189
|
+
return e.toFixed(a) + " " + l[o];
|
|
5189
5190
|
}
|
|
5190
|
-
function
|
|
5191
|
+
function Ja(e) {
|
|
5191
5192
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
5192
5193
|
}
|
|
5193
|
-
function
|
|
5194
|
+
function Ka(e) {
|
|
5194
5195
|
return URL.createObjectURL(e);
|
|
5195
5196
|
}
|
|
5196
|
-
function
|
|
5197
|
-
return e.type ? e.type :
|
|
5197
|
+
function Za(e) {
|
|
5198
|
+
return e.type ? e.type : $e().getType(e.name);
|
|
5198
5199
|
}
|
|
5199
|
-
function
|
|
5200
|
-
const e = new
|
|
5200
|
+
function $e() {
|
|
5201
|
+
const e = new ke(fe, ve);
|
|
5201
5202
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
5202
5203
|
}
|
|
5203
|
-
const
|
|
5204
|
+
const Xa = { class: "d-flex justify-content-between" }, Qa = ["accept", "disabled", "multiple"], ei = {
|
|
5204
5205
|
class: "text-break accepted-file-types-container",
|
|
5205
5206
|
id: "accepted-file-types-overlay"
|
|
5206
|
-
},
|
|
5207
|
+
}, ti = /* @__PURE__ */ z({
|
|
5207
5208
|
__name: "UploadButton",
|
|
5208
|
-
props: /* @__PURE__ */
|
|
5209
|
+
props: /* @__PURE__ */ _({
|
|
5209
5210
|
acceptedFileTypes: {},
|
|
5210
5211
|
maxFileInput: {},
|
|
5211
5212
|
maxFileSize: {},
|
|
@@ -5216,73 +5217,73 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5216
5217
|
}),
|
|
5217
5218
|
emits: ["update:modelValue"],
|
|
5218
5219
|
setup(e) {
|
|
5219
|
-
const t =
|
|
5220
|
-
t.value =
|
|
5220
|
+
const t = N(e, "modelValue"), a = I(), i = (n) => a.value.toggle(n), l = M(() => e.maxFileInput <= t.value.length), o = (n) => {
|
|
5221
|
+
t.value = Be(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
5221
5222
|
};
|
|
5222
5223
|
return (n, s) => {
|
|
5223
|
-
const
|
|
5224
|
-
return d(),
|
|
5224
|
+
const c = R;
|
|
5225
|
+
return d(), g("div", Xa, [
|
|
5225
5226
|
C(n.$slots, "message"),
|
|
5226
5227
|
m("div", null, [
|
|
5227
5228
|
m("input", {
|
|
5228
5229
|
id: "file-input",
|
|
5229
5230
|
type: "file",
|
|
5230
5231
|
class: "d-none",
|
|
5231
|
-
accept:
|
|
5232
|
-
disabled:
|
|
5233
|
-
multiple:
|
|
5234
|
-
onInput: s[0] || (s[0] = (u) =>
|
|
5235
|
-
}, null, 40,
|
|
5232
|
+
accept: e.acceptedFileTypes.join(", "),
|
|
5233
|
+
disabled: l.value,
|
|
5234
|
+
multiple: e.maxFileInput > 1,
|
|
5235
|
+
onInput: s[0] || (s[0] = (u) => o([...u.target.files]))
|
|
5236
|
+
}, null, 40, Qa),
|
|
5236
5237
|
m("label", {
|
|
5237
|
-
class: P([{ disabled:
|
|
5238
|
+
class: P([{ disabled: l.value }, "btn btn-primary"]),
|
|
5238
5239
|
id: "file-input-button",
|
|
5239
5240
|
for: "file-input"
|
|
5240
5241
|
}, [
|
|
5241
5242
|
C(n.$slots, "button-content", {}, () => [
|
|
5242
|
-
|
|
5243
|
+
h(p(V), {
|
|
5243
5244
|
icon: "bi:upload",
|
|
5244
5245
|
class: "me-2",
|
|
5245
5246
|
height: "20px",
|
|
5246
5247
|
width: "20px"
|
|
5247
5248
|
}),
|
|
5248
|
-
s[1] || (s[1] =
|
|
5249
|
+
s[1] || (s[1] = O(" Browse your computer ", -1))
|
|
5249
5250
|
])
|
|
5250
5251
|
], 2)
|
|
5251
5252
|
]),
|
|
5252
|
-
|
|
5253
|
+
e.showDragDropArea ? (d(), y(c, {
|
|
5253
5254
|
link: "",
|
|
5254
5255
|
class: "ms-auto",
|
|
5255
|
-
key:
|
|
5256
|
+
key: e.acceptedFileTypes.length,
|
|
5256
5257
|
id: "accepted-file-types",
|
|
5257
5258
|
onClick: i
|
|
5258
5259
|
}, {
|
|
5259
|
-
default:
|
|
5260
|
-
|
|
5260
|
+
default: v(() => [...s[2] || (s[2] = [
|
|
5261
|
+
O("Accepted File Types", -1)
|
|
5261
5262
|
])]),
|
|
5262
5263
|
_: 1
|
|
5263
5264
|
})) : T("", !0),
|
|
5264
|
-
|
|
5265
|
+
h(p(ye), {
|
|
5265
5266
|
ref_key: "acceptedFilesOverlay",
|
|
5266
5267
|
ref: a
|
|
5267
5268
|
}, {
|
|
5268
|
-
default:
|
|
5269
|
-
m("div",
|
|
5269
|
+
default: v(() => [
|
|
5270
|
+
m("div", ei, B(e.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
5270
5271
|
]),
|
|
5271
5272
|
_: 1
|
|
5272
5273
|
}, 512)
|
|
5273
5274
|
]);
|
|
5274
5275
|
};
|
|
5275
5276
|
}
|
|
5276
|
-
}),
|
|
5277
|
+
}), ai = {
|
|
5277
5278
|
key: 0,
|
|
5278
5279
|
class: "py-4 px-3",
|
|
5279
5280
|
id: "placeholder-message"
|
|
5280
|
-
},
|
|
5281
|
+
}, ii = {
|
|
5281
5282
|
key: 1,
|
|
5282
5283
|
class: "d-flex flex-column"
|
|
5283
|
-
},
|
|
5284
|
+
}, li = /* @__PURE__ */ z({
|
|
5284
5285
|
__name: "DragDropArea",
|
|
5285
|
-
props: /* @__PURE__ */
|
|
5286
|
+
props: /* @__PURE__ */ _({
|
|
5286
5287
|
maxFileInput: {},
|
|
5287
5288
|
maxFileSize: {},
|
|
5288
5289
|
acceptedFileTypes: {}
|
|
@@ -5292,30 +5293,30 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5292
5293
|
}),
|
|
5293
5294
|
emits: ["update:modelValue"],
|
|
5294
5295
|
setup(e) {
|
|
5295
|
-
const t =
|
|
5296
|
-
a.value = !1,
|
|
5296
|
+
const t = N(e, "modelValue"), a = I(!1), i = M(() => e.maxFileInput <= t.value.length), l = (o) => {
|
|
5297
|
+
a.value = !1, o.dataTransfer.files.length > e.maxFileInput || i.value ? o.preventDefault() : t.value = Be([...o.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
|
|
5297
5298
|
};
|
|
5298
|
-
return (
|
|
5299
|
+
return (o, n) => (d(), g("div", {
|
|
5299
5300
|
id: "drag-drop-area",
|
|
5300
5301
|
class: P(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
5301
5302
|
onDragleave: n[0] || (n[0] = Q((s) => a.value = !1, ["prevent"])),
|
|
5302
5303
|
onDragover: n[1] || (n[1] = Q((s) => a.value = !0, ["prevent"])),
|
|
5303
|
-
onDrop: Q(
|
|
5304
|
+
onDrop: Q(l, ["prevent"])
|
|
5304
5305
|
}, [
|
|
5305
|
-
t.value.length === 0 ? (d(),
|
|
5306
|
-
|
|
5306
|
+
t.value.length === 0 ? (d(), g("div", ai, [
|
|
5307
|
+
h(p(V), {
|
|
5307
5308
|
icon: "bi:upload",
|
|
5308
5309
|
class: "me-2",
|
|
5309
5310
|
height: "20px",
|
|
5310
5311
|
width: "20px"
|
|
5311
5312
|
}),
|
|
5312
|
-
n[2] || (n[2] =
|
|
5313
|
-
])) : (d(),
|
|
5314
|
-
C(
|
|
5313
|
+
n[2] || (n[2] = O(" Drag and drop files here ", -1))
|
|
5314
|
+
])) : (d(), g("div", ii, [
|
|
5315
|
+
C(o.$slots, "default")
|
|
5315
5316
|
]))
|
|
5316
5317
|
], 34));
|
|
5317
5318
|
}
|
|
5318
|
-
}), oi = { class: "d-flex align-items-center me-2" },
|
|
5319
|
+
}), oi = { class: "d-flex align-items-center me-2" }, ni = /* @__PURE__ */ z({
|
|
5319
5320
|
__name: "UploadStatus",
|
|
5320
5321
|
props: {
|
|
5321
5322
|
fileSize: {},
|
|
@@ -5329,7 +5330,7 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5329
5330
|
case "InvalidFileType":
|
|
5330
5331
|
return "Upload Failed: File type is not accepted.";
|
|
5331
5332
|
case "InvalidFileSize":
|
|
5332
|
-
return `Upload Failed: File size exceeds the ${
|
|
5333
|
+
return `Upload Failed: File size exceeds the ${ge(t.maxFileSize)} limit.`;
|
|
5333
5334
|
case "Aborted":
|
|
5334
5335
|
return "Upload Failed: User cancelled.";
|
|
5335
5336
|
case "DeleteFileFailed":
|
|
@@ -5340,45 +5341,46 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5340
5341
|
return "Upload Failed: Connection error, please try again.";
|
|
5341
5342
|
}
|
|
5342
5343
|
});
|
|
5343
|
-
return (
|
|
5344
|
-
const n =
|
|
5345
|
-
return d(),
|
|
5346
|
-
t.uploadStatus === "Uploading" ? (d(),
|
|
5344
|
+
return (l, o) => {
|
|
5345
|
+
const n = me;
|
|
5346
|
+
return d(), g("div", oi, [
|
|
5347
|
+
t.uploadStatus === "Uploading" ? (d(), y(n, {
|
|
5347
5348
|
key: 0,
|
|
5348
5349
|
"in-line": ""
|
|
5349
5350
|
})) : T("", !0),
|
|
5350
|
-
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(),
|
|
5351
|
+
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), y(de, {
|
|
5351
5352
|
key: 1,
|
|
5352
5353
|
id: "upload-status-alert",
|
|
5353
5354
|
severity: a.value,
|
|
5354
5355
|
class: "mb-0 w-75 ms-auto"
|
|
5355
5356
|
}, {
|
|
5356
|
-
default:
|
|
5357
|
-
|
|
5357
|
+
default: v(() => [
|
|
5358
|
+
O(B(i.value), 1)
|
|
5358
5359
|
]),
|
|
5359
5360
|
_: 1
|
|
5360
5361
|
}, 8, ["severity"])) : T("", !0)
|
|
5361
5362
|
]);
|
|
5362
5363
|
};
|
|
5363
5364
|
}
|
|
5364
|
-
}),
|
|
5365
|
+
}), si = ["data-cy"], ri = { class: "ms-3 d-flex flex-column" }, di = {
|
|
5365
5366
|
key: 1,
|
|
5366
5367
|
id: "file-name"
|
|
5367
|
-
},
|
|
5368
|
+
}, ci = {
|
|
5368
5369
|
class: "text-black-50",
|
|
5369
5370
|
id: "file-type"
|
|
5370
5371
|
}, pi = {
|
|
5371
5372
|
class: "text-black-50",
|
|
5372
5373
|
id: "file-size"
|
|
5373
|
-
},
|
|
5374
|
+
}, ui = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, mi = /* @__PURE__ */ z({
|
|
5374
5375
|
__name: "FileInfo",
|
|
5375
|
-
props: /* @__PURE__ */
|
|
5376
|
+
props: /* @__PURE__ */ _({
|
|
5376
5377
|
editableFileName: { type: Boolean },
|
|
5377
5378
|
acceptedFileTypes: {},
|
|
5378
5379
|
maxFileSize: {},
|
|
5379
5380
|
getFileUrlAction: { type: Function },
|
|
5380
5381
|
customFileNameRules: {},
|
|
5381
|
-
autoUploadToBlob: { type: Boolean }
|
|
5382
|
+
autoUploadToBlob: { type: Boolean },
|
|
5383
|
+
storageServiceVersionOverride: {}
|
|
5382
5384
|
}, {
|
|
5383
5385
|
file: { required: !0 },
|
|
5384
5386
|
fileModifiers: {},
|
|
@@ -5387,64 +5389,80 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5387
5389
|
uploadStatus: { required: !0 },
|
|
5388
5390
|
uploadStatusModifiers: {}
|
|
5389
5391
|
}),
|
|
5390
|
-
emits: /* @__PURE__ */
|
|
5392
|
+
emits: /* @__PURE__ */ _(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5391
5393
|
setup(e, { emit: t }) {
|
|
5392
|
-
const a =
|
|
5394
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), o = t, n = I(a.value.name), s = I(""), c = I(0), u = I(), w = M(() => e.acceptedFileTypes.some(({ fileType: k }) => k === a.value.type)), r = M(() => a.value.size <= e.maxFileSize), x = M(() => a.value.type ? a.value.type : $e().getType(a.value.name)), b = () => {
|
|
5393
5395
|
n.value != null && (S(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5394
5396
|
}, S = () => {
|
|
5395
|
-
let
|
|
5396
|
-
|
|
5397
|
-
}, F =
|
|
5398
|
-
|
|
5399
|
-
|
|
5397
|
+
let k = n.value.split("."), A = Ga.getExtension(x.value), f = n.value.split(".").pop();
|
|
5398
|
+
k.length === 1 ? f && f.length > 0 && (n.value = [n.value, A].join(".")) : k.length > 1 && f !== A && (n.value = n.value.replace(f, A));
|
|
5399
|
+
}, F = (k, A) => {
|
|
5400
|
+
let f = {};
|
|
5401
|
+
if (A) {
|
|
5402
|
+
f = {
|
|
5403
|
+
// 👇 this is where additional policies go
|
|
5404
|
+
additionalPolicies: [
|
|
5405
|
+
{ policy: {
|
|
5406
|
+
name: "forceVersionPolicy",
|
|
5407
|
+
sendRequest: async (te, ce) => (te.headers.set("x-ms-version", A), ce(te))
|
|
5408
|
+
}, position: "perRetry" }
|
|
5409
|
+
]
|
|
5410
|
+
};
|
|
5411
|
+
const U = Je(void 0, f);
|
|
5412
|
+
return new pe(k, U);
|
|
5413
|
+
}
|
|
5414
|
+
return new pe(k);
|
|
5415
|
+
}, L = async () => {
|
|
5416
|
+
if (!w.value || !r.value) {
|
|
5417
|
+
l.value = w.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5400
5418
|
return;
|
|
5401
5419
|
}
|
|
5402
|
-
|
|
5403
|
-
const [
|
|
5404
|
-
if (!
|
|
5405
|
-
|
|
5420
|
+
l.value = "Preparing", u.value = new AbortController();
|
|
5421
|
+
const [k, A] = await e.getFileUrlAction(a.value.name);
|
|
5422
|
+
if (!k) {
|
|
5423
|
+
l.value = "Failed";
|
|
5406
5424
|
return;
|
|
5407
5425
|
}
|
|
5408
5426
|
try {
|
|
5409
|
-
|
|
5410
|
-
const
|
|
5427
|
+
l.value = "Uploading";
|
|
5428
|
+
const f = F(k, e.storageServiceVersionOverride), D = {
|
|
5411
5429
|
abortSignal: u.value.signal,
|
|
5412
|
-
onProgress: (
|
|
5430
|
+
onProgress: (U) => c.value = U.loadedBytes,
|
|
5413
5431
|
blobHTTPHeaders: {
|
|
5414
|
-
blobContentType:
|
|
5432
|
+
blobContentType: x.value,
|
|
5415
5433
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
5416
5434
|
},
|
|
5417
5435
|
tags: { temp: "true" }
|
|
5418
5436
|
};
|
|
5419
|
-
await
|
|
5420
|
-
} catch (
|
|
5421
|
-
if (
|
|
5422
|
-
|
|
5437
|
+
await f.uploadData(a.value, D), s.value = k, l.value = "Uploaded", i.value = A;
|
|
5438
|
+
} catch (f) {
|
|
5439
|
+
if (f.name === "AbortError") {
|
|
5440
|
+
l.value = "Aborted";
|
|
5423
5441
|
return;
|
|
5424
5442
|
}
|
|
5425
|
-
|
|
5443
|
+
l.value = "Failed";
|
|
5426
5444
|
}
|
|
5427
|
-
},
|
|
5428
|
-
await
|
|
5445
|
+
}, $ = async () => {
|
|
5446
|
+
await Ya(l.value, s.value), o("deleted", a.value);
|
|
5429
5447
|
};
|
|
5430
|
-
return
|
|
5431
|
-
e.autoUploadToBlob &&
|
|
5432
|
-
}), (
|
|
5433
|
-
const
|
|
5434
|
-
return d(),
|
|
5448
|
+
return se(() => {
|
|
5449
|
+
e.autoUploadToBlob && l.value != "Uploaded" && L();
|
|
5450
|
+
}), (k, A) => {
|
|
5451
|
+
const f = R;
|
|
5452
|
+
return d(), g("div", {
|
|
5435
5453
|
class: "py-4 px-3 d-flex",
|
|
5436
5454
|
"data-cy": `file-info-${a.value.name}`
|
|
5437
5455
|
}, [
|
|
5438
5456
|
m("div", null, [
|
|
5439
|
-
|
|
5457
|
+
p(Ja)(a.value.type) ? (d(), y(p(Ke), {
|
|
5440
5458
|
key: 0,
|
|
5441
5459
|
id: "thumbnail-image",
|
|
5442
5460
|
"image-class": "image-file-thumbnail border",
|
|
5443
|
-
src:
|
|
5461
|
+
src: p(Ka)(a.value),
|
|
5444
5462
|
alt: a.value.name,
|
|
5445
5463
|
width: "75px",
|
|
5446
5464
|
preview: ""
|
|
5447
|
-
}, null, 8, ["src", "alt"])) : (d(),
|
|
5465
|
+
}, null, 8, ["src", "alt"])) : (d(), y(p(V), {
|
|
5448
5466
|
key: 1,
|
|
5449
5467
|
id: "file-earmark",
|
|
5450
5468
|
icon: "bi:file-earmark",
|
|
@@ -5452,80 +5470,80 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5452
5470
|
width: "75px"
|
|
5453
5471
|
}))
|
|
5454
5472
|
]),
|
|
5455
|
-
m("div",
|
|
5473
|
+
m("div", ri, [
|
|
5456
5474
|
m("div", null, [
|
|
5457
|
-
|
|
5475
|
+
e.editableFileName ? (d(), y(Qt, {
|
|
5458
5476
|
key: 0,
|
|
5459
5477
|
id: "edit-file-name",
|
|
5460
5478
|
modelValue: n.value,
|
|
5461
|
-
"onUpdate:modelValue":
|
|
5462
|
-
rules:
|
|
5479
|
+
"onUpdate:modelValue": A[0] || (A[0] = (D) => n.value = D),
|
|
5480
|
+
rules: e.customFileNameRules,
|
|
5463
5481
|
name: a.value.name,
|
|
5464
|
-
"complete-action":
|
|
5465
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(),
|
|
5482
|
+
"complete-action": b
|
|
5483
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), g("span", di, B(n.value), 1))
|
|
5466
5484
|
]),
|
|
5467
|
-
m("span",
|
|
5468
|
-
m("span", pi, "File size: " +
|
|
5485
|
+
m("span", ci, "File type: " + B(a.value.type.split("/").pop()), 1),
|
|
5486
|
+
m("span", pi, "File size: " + B(p(ge)(a.value.size)), 1)
|
|
5469
5487
|
]),
|
|
5470
|
-
m("div",
|
|
5471
|
-
(d(),
|
|
5472
|
-
key:
|
|
5488
|
+
m("div", ui, [
|
|
5489
|
+
(d(), y(ni, {
|
|
5490
|
+
key: l.value,
|
|
5473
5491
|
"file-size": a.value.size,
|
|
5474
|
-
"upload-status":
|
|
5475
|
-
"bytes-uploaded":
|
|
5476
|
-
"max-file-size":
|
|
5492
|
+
"upload-status": l.value,
|
|
5493
|
+
"bytes-uploaded": c.value,
|
|
5494
|
+
"max-file-size": e.maxFileSize
|
|
5477
5495
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
5478
|
-
|
|
5496
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), y(f, {
|
|
5479
5497
|
key: 0,
|
|
5480
5498
|
link: "",
|
|
5481
|
-
onClick:
|
|
5499
|
+
onClick: L
|
|
5482
5500
|
}, {
|
|
5483
|
-
default:
|
|
5484
|
-
|
|
5485
|
-
icon:
|
|
5501
|
+
default: v(() => [
|
|
5502
|
+
h(p(V), {
|
|
5503
|
+
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5486
5504
|
}, null, 8, ["icon"])
|
|
5487
5505
|
]),
|
|
5488
5506
|
_: 1
|
|
5489
5507
|
})) : T("", !0),
|
|
5490
|
-
|
|
5508
|
+
l.value === "Uploading" ? (d(), y(f, {
|
|
5491
5509
|
key: 1,
|
|
5492
5510
|
link: "",
|
|
5493
|
-
onClick:
|
|
5511
|
+
onClick: A[1] || (A[1] = (D) => u.value.abort())
|
|
5494
5512
|
}, {
|
|
5495
|
-
default:
|
|
5496
|
-
|
|
5513
|
+
default: v(() => [
|
|
5514
|
+
h(p(V), { icon: "bi:x-circle-fill" })
|
|
5497
5515
|
]),
|
|
5498
5516
|
_: 1
|
|
5499
|
-
})) : (d(),
|
|
5517
|
+
})) : (d(), y(f, {
|
|
5500
5518
|
key: 2,
|
|
5501
5519
|
link: "",
|
|
5502
|
-
onClick:
|
|
5520
|
+
onClick: $,
|
|
5503
5521
|
id: "delete-button"
|
|
5504
5522
|
}, {
|
|
5505
|
-
default:
|
|
5506
|
-
|
|
5523
|
+
default: v(() => [
|
|
5524
|
+
h(p(V), { icon: "bi:trash" })
|
|
5507
5525
|
]),
|
|
5508
5526
|
_: 1
|
|
5509
5527
|
}))
|
|
5510
5528
|
])
|
|
5511
|
-
], 8,
|
|
5529
|
+
], 8, si);
|
|
5512
5530
|
};
|
|
5513
5531
|
}
|
|
5514
|
-
}),
|
|
5532
|
+
}), vi = { class: "d-flex justify-content-end mt-1 gap-1" }, fi = { id: "max-file-size" }, gi = { id: "max-file-input" }, bi = /* @__PURE__ */ z({
|
|
5515
5533
|
__name: "FileInputInfo",
|
|
5516
5534
|
props: {
|
|
5517
5535
|
maxFileSize: {},
|
|
5518
5536
|
maxFileInput: {}
|
|
5519
5537
|
},
|
|
5520
5538
|
setup(e) {
|
|
5521
|
-
return (t, a) => (d(),
|
|
5522
|
-
m("div",
|
|
5523
|
-
m("div",
|
|
5539
|
+
return (t, a) => (d(), g("div", vi, [
|
|
5540
|
+
m("div", fi, "Max file size: " + B(p(ge)(e.maxFileSize)), 1),
|
|
5541
|
+
m("div", gi, "| Max file count: " + B(e.maxFileInput), 1)
|
|
5524
5542
|
]));
|
|
5525
5543
|
}
|
|
5526
|
-
}),
|
|
5544
|
+
}), yi = { "data-cy": "file-uploader" }, xi = { key: 1 }, Pl = /* @__PURE__ */ z({
|
|
5527
5545
|
__name: "ForgeFileUploader",
|
|
5528
|
-
props: /* @__PURE__ */
|
|
5546
|
+
props: /* @__PURE__ */ _({
|
|
5529
5547
|
acceptedFileTypes: {},
|
|
5530
5548
|
maxFileSize: {},
|
|
5531
5549
|
getFileUrlAction: {},
|
|
@@ -5534,67 +5552,68 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5534
5552
|
maxFileInput: { default: 3 },
|
|
5535
5553
|
editableFileName: { type: Boolean, default: !1 },
|
|
5536
5554
|
autoUploadToBlob: { type: Boolean, default: !0 },
|
|
5537
|
-
maxFileWarning: { default: "Maximum number of files reached." }
|
|
5555
|
+
maxFileWarning: { default: "Maximum number of files reached." },
|
|
5556
|
+
storageServiceVersionOverride: {}
|
|
5538
5557
|
}, {
|
|
5539
5558
|
modelValue: { default: [] },
|
|
5540
5559
|
modelModifiers: {}
|
|
5541
5560
|
}),
|
|
5542
5561
|
emits: ["update:modelValue"],
|
|
5543
5562
|
setup(e) {
|
|
5544
|
-
const t =
|
|
5545
|
-
W(t, (
|
|
5546
|
-
|
|
5563
|
+
const t = N(e, "modelValue");
|
|
5564
|
+
W(t, (l, o) => {
|
|
5565
|
+
l.length > a.maxFileInput && (l.length = a.maxFileInput);
|
|
5547
5566
|
}, { deep: 2 });
|
|
5548
|
-
const a = e, i = (
|
|
5549
|
-
t.value = t.value.filter((
|
|
5567
|
+
const a = e, i = (l) => {
|
|
5568
|
+
t.value = t.value.filter((o) => o.file != l);
|
|
5550
5569
|
};
|
|
5551
|
-
return (
|
|
5552
|
-
t.value.length ==
|
|
5570
|
+
return (l, o) => (d(), g("div", yi, [
|
|
5571
|
+
t.value.length == e.maxFileInput && a.maxFileWarning != null ? (d(), y(de, {
|
|
5553
5572
|
key: 0,
|
|
5554
5573
|
id: "max-files-alert",
|
|
5555
5574
|
severity: "danger"
|
|
5556
5575
|
}, {
|
|
5557
|
-
default:
|
|
5558
|
-
|
|
5576
|
+
default: v(() => [
|
|
5577
|
+
O(B(e.maxFileWarning), 1)
|
|
5559
5578
|
]),
|
|
5560
5579
|
_: 1
|
|
5561
5580
|
})) : T("", !0),
|
|
5562
|
-
|
|
5581
|
+
h(ti, j(a, {
|
|
5563
5582
|
modelValue: t.value,
|
|
5564
|
-
"onUpdate:modelValue":
|
|
5583
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => t.value = n)
|
|
5565
5584
|
}), null, 16, ["modelValue"]),
|
|
5566
|
-
|
|
5567
|
-
|
|
5585
|
+
e.showDragDropArea ? (d(), g("div", xi, [
|
|
5586
|
+
h(li, {
|
|
5568
5587
|
"max-file-input": a.maxFileInput,
|
|
5569
5588
|
"max-file-size": a.maxFileSize,
|
|
5570
5589
|
"accepted-file-types": a.acceptedFileTypes,
|
|
5571
5590
|
modelValue: t.value,
|
|
5572
|
-
"onUpdate:modelValue":
|
|
5591
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => t.value = n)
|
|
5573
5592
|
}, {
|
|
5574
|
-
default:
|
|
5575
|
-
(d(!0),
|
|
5576
|
-
(d(),
|
|
5593
|
+
default: v(() => [
|
|
5594
|
+
(d(!0), g(E, null, q(t.value, ({ file: n }, s) => (d(), g("div", null, [
|
|
5595
|
+
(d(), y(mi, j({
|
|
5577
5596
|
key: n.name,
|
|
5578
5597
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5579
5598
|
file: t.value[s].file,
|
|
5580
|
-
"onUpdate:file": (
|
|
5599
|
+
"onUpdate:file": (c) => t.value[s].file = c,
|
|
5581
5600
|
"blob-file-name": t.value[s].blobFileName,
|
|
5582
|
-
"onUpdate:blobFileName": (
|
|
5601
|
+
"onUpdate:blobFileName": (c) => t.value[s].blobFileName = c,
|
|
5583
5602
|
"upload-status": t.value[s].status,
|
|
5584
|
-
"onUpdate:uploadStatus": (
|
|
5603
|
+
"onUpdate:uploadStatus": (c) => t.value[s].status = c
|
|
5585
5604
|
}, { ref_for: !0 }, a, { onDeleted: i }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
5586
5605
|
]))), 256))
|
|
5587
5606
|
]),
|
|
5588
5607
|
_: 1
|
|
5589
5608
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5590
|
-
|
|
5609
|
+
h(bi, {
|
|
5591
5610
|
"max-file-size": a.maxFileSize,
|
|
5592
|
-
"max-file-input":
|
|
5611
|
+
"max-file-input": e.maxFileInput
|
|
5593
5612
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5594
5613
|
])) : T("", !0)
|
|
5595
5614
|
]));
|
|
5596
5615
|
}
|
|
5597
|
-
}),
|
|
5616
|
+
}), hi = { class: "d-flex" }, wi = { class: "me-3" }, ki = { class: "ms-2" }, Bi = { class: "d-flex flex-column w-100" }, jl = /* @__PURE__ */ z({
|
|
5598
5617
|
__name: "ForgeColumnCustomiser",
|
|
5599
5618
|
props: {
|
|
5600
5619
|
modelValue: { required: !0 },
|
|
@@ -5602,22 +5621,22 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5602
5621
|
},
|
|
5603
5622
|
emits: ["update:modelValue"],
|
|
5604
5623
|
setup(e) {
|
|
5605
|
-
const t =
|
|
5606
|
-
a.value.toggle(
|
|
5624
|
+
const t = N(e, "modelValue"), a = I(), i = I(!1), l = (o) => {
|
|
5625
|
+
a.value.toggle(o);
|
|
5607
5626
|
};
|
|
5608
|
-
return (
|
|
5609
|
-
|
|
5610
|
-
onClick:
|
|
5627
|
+
return (o, n) => (d(), g(E, null, [
|
|
5628
|
+
h(p(R), {
|
|
5629
|
+
onClick: l,
|
|
5611
5630
|
class: "ms-2"
|
|
5612
5631
|
}, {
|
|
5613
|
-
default:
|
|
5614
|
-
m("div",
|
|
5615
|
-
m("div", hi, [
|
|
5616
|
-
k(c(_), { icon: "bi:layout-three-columns" })
|
|
5617
|
-
]),
|
|
5618
|
-
V(" Columns (" + $(t.value.filter((s) => s.selected).length ?? 0) + "/" + $(t.value.length ?? 0) + ") ", 1),
|
|
5632
|
+
default: v(() => [
|
|
5633
|
+
m("div", hi, [
|
|
5619
5634
|
m("div", wi, [
|
|
5620
|
-
|
|
5635
|
+
h(p(V), { icon: "bi:layout-three-columns" })
|
|
5636
|
+
]),
|
|
5637
|
+
O(" Columns (" + B(t.value.filter((s) => s.selected).length ?? 0) + "/" + B(t.value.length ?? 0) + ") ", 1),
|
|
5638
|
+
m("div", ki, [
|
|
5639
|
+
h(p(V), {
|
|
5621
5640
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5622
5641
|
}, null, 8, ["icon"])
|
|
5623
5642
|
])
|
|
@@ -5625,24 +5644,24 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5625
5644
|
]),
|
|
5626
5645
|
_: 1
|
|
5627
5646
|
}),
|
|
5628
|
-
|
|
5647
|
+
h(p(ye), {
|
|
5629
5648
|
ref_key: "columnCustomiserPanel",
|
|
5630
5649
|
ref: a,
|
|
5631
5650
|
class: "column-customiser",
|
|
5632
5651
|
onHide: n[0] || (n[0] = () => i.value = !1),
|
|
5633
5652
|
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5634
5653
|
}, {
|
|
5635
|
-
default:
|
|
5636
|
-
m("div",
|
|
5637
|
-
(d(!0),
|
|
5654
|
+
default: v(() => [
|
|
5655
|
+
m("div", Bi, [
|
|
5656
|
+
(d(!0), g(E, null, q(t.value, (s, c) => (d(), g("div", {
|
|
5638
5657
|
class: P(["d-flex cursor-pointer", {
|
|
5639
|
-
"border-top":
|
|
5640
|
-
"py-1":
|
|
5641
|
-
"pt-1": t.value.length - 1 ===
|
|
5642
|
-
"pb-1":
|
|
5658
|
+
"border-top": c !== 0,
|
|
5659
|
+
"py-1": c !== 0 && t.value.length - 1 !== c,
|
|
5660
|
+
"pt-1": t.value.length - 1 === c,
|
|
5661
|
+
"pb-1": c === 0
|
|
5643
5662
|
}])
|
|
5644
5663
|
}, [
|
|
5645
|
-
|
|
5664
|
+
h(xe, {
|
|
5646
5665
|
id: s.field,
|
|
5647
5666
|
modelValue: s.selected,
|
|
5648
5667
|
"onUpdate:modelValue": (u) => s.selected = u,
|
|
@@ -5657,19 +5676,19 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5657
5676
|
}, 512)
|
|
5658
5677
|
], 64));
|
|
5659
5678
|
}
|
|
5660
|
-
}),
|
|
5679
|
+
}), Ml = /* @__PURE__ */ z({
|
|
5661
5680
|
__name: "ForgePanel",
|
|
5662
5681
|
setup(e) {
|
|
5663
5682
|
return (t, a) => {
|
|
5664
|
-
const i =
|
|
5665
|
-
return d(),
|
|
5666
|
-
toggleicon:
|
|
5667
|
-
|
|
5683
|
+
const i = Ze;
|
|
5684
|
+
return d(), y(i, G(Y({ ...t.$attrs })), le({
|
|
5685
|
+
toggleicon: v(({ collapsed: l }) => [
|
|
5686
|
+
l ? (d(), y(p(V), {
|
|
5668
5687
|
key: 0,
|
|
5669
5688
|
"data-cy": "message-icon",
|
|
5670
5689
|
icon: "bi:chevron-down"
|
|
5671
5690
|
})) : T("", !0),
|
|
5672
|
-
|
|
5691
|
+
l ? T("", !0) : (d(), y(p(V), {
|
|
5673
5692
|
key: 1,
|
|
5674
5693
|
"data-cy": "message-icon",
|
|
5675
5694
|
icon: "bi:chevron-up"
|
|
@@ -5677,16 +5696,16 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5677
5696
|
]),
|
|
5678
5697
|
_: 2
|
|
5679
5698
|
}, [
|
|
5680
|
-
|
|
5681
|
-
name:
|
|
5682
|
-
fn:
|
|
5683
|
-
C(t.$slots,
|
|
5699
|
+
q(t.$slots, (l, o) => ({
|
|
5700
|
+
name: o,
|
|
5701
|
+
fn: v((n) => [
|
|
5702
|
+
C(t.$slots, o, G(Y(n)))
|
|
5684
5703
|
])
|
|
5685
5704
|
}))
|
|
5686
5705
|
]), 1040);
|
|
5687
5706
|
};
|
|
5688
5707
|
}
|
|
5689
|
-
}),
|
|
5708
|
+
}), $i = /* @__PURE__ */ z({
|
|
5690
5709
|
__name: "ForgeToggleButton",
|
|
5691
5710
|
props: {
|
|
5692
5711
|
severity: { default: "primary" }
|
|
@@ -5713,17 +5732,17 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5713
5732
|
]
|
|
5714
5733
|
})
|
|
5715
5734
|
}));
|
|
5716
|
-
return (i,
|
|
5735
|
+
return (i, l) => (d(), y(p(Xe), j({ ...i.$attrs, ...t }, {
|
|
5717
5736
|
severity: t.severity,
|
|
5718
5737
|
pt: a.value
|
|
5719
5738
|
}), null, 16, ["severity", "pt"]));
|
|
5720
5739
|
}
|
|
5721
|
-
}),
|
|
5740
|
+
}), Si = {
|
|
5722
5741
|
class: "btn-group",
|
|
5723
5742
|
"data-cy": "forge-select-button"
|
|
5724
|
-
},
|
|
5743
|
+
}, Il = /* @__PURE__ */ z({
|
|
5725
5744
|
__name: "ForgeSelectButton",
|
|
5726
|
-
props: /* @__PURE__ */
|
|
5745
|
+
props: /* @__PURE__ */ _({
|
|
5727
5746
|
options: {},
|
|
5728
5747
|
multiple: { type: Boolean, default: !0 },
|
|
5729
5748
|
allowEmpty: { type: Boolean, default: !1 },
|
|
@@ -5734,38 +5753,38 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5734
5753
|
}),
|
|
5735
5754
|
emits: ["update:modelValue"],
|
|
5736
5755
|
setup(e) {
|
|
5737
|
-
const t = e, a =
|
|
5756
|
+
const t = e, a = N(e, "modelValue"), i = (o) => {
|
|
5738
5757
|
var n;
|
|
5739
|
-
return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(
|
|
5740
|
-
},
|
|
5758
|
+
return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(o.value) : a.value === o.value;
|
|
5759
|
+
}, l = (o) => {
|
|
5741
5760
|
var n;
|
|
5742
|
-
if (!
|
|
5761
|
+
if (!o.disabled)
|
|
5743
5762
|
if (t.multiple) {
|
|
5744
5763
|
let s = (n = a.value) != null && n.length ? [...a.value] : [];
|
|
5745
|
-
if (s.length >= 1 && s.includes(
|
|
5764
|
+
if (s.length >= 1 && s.includes(o.value)) {
|
|
5746
5765
|
if (!t.allowEmpty && s.length === 1) return;
|
|
5747
|
-
s = s.length > 1 ? s.filter((u) => u !==
|
|
5766
|
+
s = s.length > 1 ? s.filter((u) => u !== o.value) : [];
|
|
5748
5767
|
} else
|
|
5749
|
-
s.push(
|
|
5768
|
+
s.push(o.value);
|
|
5750
5769
|
a.value = s;
|
|
5751
5770
|
} else
|
|
5752
|
-
a.value = a.value ===
|
|
5771
|
+
a.value = a.value === o.value && t.allowEmpty ? null : o.value;
|
|
5753
5772
|
};
|
|
5754
|
-
return (
|
|
5755
|
-
(d(!0),
|
|
5756
|
-
key:
|
|
5773
|
+
return (o, n) => (d(), g("div", Si, [
|
|
5774
|
+
(d(!0), g(E, null, q(e.options, (s, c) => (d(), y($i, {
|
|
5775
|
+
key: c,
|
|
5757
5776
|
onLabel: s.label,
|
|
5758
5777
|
offLabel: s.label,
|
|
5759
5778
|
severity: s.severity,
|
|
5760
|
-
onChange: (u) =>
|
|
5779
|
+
onChange: (u) => l(s),
|
|
5761
5780
|
defaultValue: i(s),
|
|
5762
5781
|
disabled: s.disabled,
|
|
5763
5782
|
"data-cy": `toggle-button-${s.value}`,
|
|
5764
|
-
invalid:
|
|
5783
|
+
invalid: e.invalid
|
|
5765
5784
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5766
5785
|
]));
|
|
5767
5786
|
}
|
|
5768
|
-
}),
|
|
5787
|
+
}), Vl = /* @__PURE__ */ z({
|
|
5769
5788
|
__name: "ForgeConfirmPopup",
|
|
5770
5789
|
setup(e) {
|
|
5771
5790
|
const t = M(() => ({
|
|
@@ -5779,9 +5798,9 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5779
5798
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5780
5799
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5781
5800
|
}));
|
|
5782
|
-
return (a, i) => (d(),
|
|
5783
|
-
default:
|
|
5784
|
-
(d(!0),
|
|
5801
|
+
return (a, i) => (d(), y(p(Qe), j({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5802
|
+
default: v(() => [
|
|
5803
|
+
(d(!0), g(E, null, q(a.$slots, (l, o) => C(a.$slots, o, { slot: o })), 256))
|
|
5785
5804
|
]),
|
|
5786
5805
|
_: 3
|
|
5787
5806
|
}, 16, ["pt"]));
|
|
@@ -5789,12 +5808,12 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5789
5808
|
}), Fi = {
|
|
5790
5809
|
key: 0,
|
|
5791
5810
|
class: "mb-1"
|
|
5792
|
-
},
|
|
5811
|
+
}, Ci = {
|
|
5793
5812
|
key: 0,
|
|
5794
5813
|
class: "mb-1"
|
|
5795
|
-
},
|
|
5814
|
+
}, Dl = /* @__PURE__ */ z({
|
|
5796
5815
|
__name: "ForgePickList",
|
|
5797
|
-
props: /* @__PURE__ */
|
|
5816
|
+
props: /* @__PURE__ */ _({
|
|
5798
5817
|
filterBy: {},
|
|
5799
5818
|
sourceTitle: {},
|
|
5800
5819
|
targetTitle: {},
|
|
@@ -5835,59 +5854,59 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5835
5854
|
}),
|
|
5836
5855
|
emits: ["update:modelValue", "update:targetList", "update:sourceList"],
|
|
5837
5856
|
setup(e) {
|
|
5838
|
-
const t = e, a =
|
|
5839
|
-
const { items: S } =
|
|
5840
|
-
i.value.push(...S),
|
|
5841
|
-
},
|
|
5842
|
-
const { items: S } =
|
|
5843
|
-
|
|
5857
|
+
const t = e, a = N(e, "modelValue"), i = N(e, "targetList"), l = N(e, "sourceList"), o = I(null), n = I(null), s = (b) => {
|
|
5858
|
+
const { items: S } = b;
|
|
5859
|
+
i.value.push(...S), l.value = l.value.filter((F) => !S.includes(F));
|
|
5860
|
+
}, c = (b) => {
|
|
5861
|
+
const { items: S } = b;
|
|
5862
|
+
l.value.push(...S), i.value = i.value.filter((F) => !S.includes(F));
|
|
5844
5863
|
}, u = () => {
|
|
5845
|
-
|
|
5846
|
-
},
|
|
5847
|
-
i.value = [.../* @__PURE__ */ new Set([...i.value, ...a.value[0]])],
|
|
5864
|
+
l.value = [.../* @__PURE__ */ new Set([...l.value, ...a.value[1]])], i.value = i.value.filter((b) => !a.value[1].includes(b));
|
|
5865
|
+
}, w = () => {
|
|
5866
|
+
i.value = [.../* @__PURE__ */ new Set([...i.value, ...a.value[0]])], l.value = l.value.filter((b) => !a.value[0].includes(b));
|
|
5848
5867
|
};
|
|
5849
|
-
W(
|
|
5868
|
+
W(l, async () => {
|
|
5850
5869
|
r();
|
|
5851
5870
|
}), W(i, async () => {
|
|
5852
|
-
|
|
5871
|
+
x();
|
|
5853
5872
|
});
|
|
5854
5873
|
const r = () => {
|
|
5855
5874
|
var F;
|
|
5856
|
-
const
|
|
5857
|
-
var
|
|
5858
|
-
return
|
|
5859
|
-
}) : [...
|
|
5875
|
+
const b = t.filterBy, S = o.value ? l.value.filter((L) => {
|
|
5876
|
+
var $;
|
|
5877
|
+
return L[b].toLowerCase().includes(($ = o.value) == null ? void 0 : $.toLowerCase());
|
|
5878
|
+
}) : [...l.value];
|
|
5860
5879
|
(F = a.value) == null || F.splice(0, 1, S);
|
|
5861
|
-
},
|
|
5880
|
+
}, x = () => {
|
|
5862
5881
|
var F;
|
|
5863
|
-
const
|
|
5864
|
-
var
|
|
5865
|
-
return
|
|
5882
|
+
const b = t.filterBy, S = n.value ? i.value.filter((L) => {
|
|
5883
|
+
var $;
|
|
5884
|
+
return L[b].toLowerCase().includes(($ = n.value) == null ? void 0 : $.toLowerCase());
|
|
5866
5885
|
}) : [...i.value];
|
|
5867
5886
|
(F = a.value) == null || F.splice(1, 1, S);
|
|
5868
5887
|
};
|
|
5869
5888
|
return W(
|
|
5870
5889
|
() => a.value,
|
|
5871
|
-
(
|
|
5890
|
+
(b) => {
|
|
5872
5891
|
var S, F;
|
|
5873
|
-
|
|
5892
|
+
b && (i.value = b[1].length > 0 ? [...b[1]] : [], l.value = b[0].length > 0 ? [...b[0]] : [], (S = a.value) == null || S.splice(0, 1, l.value), (F = a.value) == null || F.splice(1, 1, i.value));
|
|
5874
5893
|
},
|
|
5875
5894
|
{ once: !0 }
|
|
5876
|
-
), (
|
|
5895
|
+
), (b, S) => (d(), y(p(et), j({
|
|
5877
5896
|
modelValue: a.value,
|
|
5878
5897
|
"onUpdate:modelValue": S[2] || (S[2] = (F) => a.value = F)
|
|
5879
|
-
}, { ...
|
|
5898
|
+
}, { ...b.$attrs, ...t }, {
|
|
5880
5899
|
onMoveAllToSource: u,
|
|
5881
|
-
onMoveAllToTarget:
|
|
5900
|
+
onMoveAllToTarget: w,
|
|
5882
5901
|
onMoveToTarget: S[3] || (S[3] = (F) => s(F)),
|
|
5883
|
-
onMoveToSource: S[4] || (S[4] = (F) =>
|
|
5902
|
+
onMoveToSource: S[4] || (S[4] = (F) => c(F))
|
|
5884
5903
|
}), {
|
|
5885
|
-
sourceheader:
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
modelValue:
|
|
5904
|
+
sourceheader: v(() => [
|
|
5905
|
+
e.sourceTitle ? (d(), g("div", Fi, B(e.sourceTitle), 1)) : T("", !0),
|
|
5906
|
+
h(p(ie), {
|
|
5907
|
+
modelValue: o.value,
|
|
5889
5908
|
"onUpdate:modelValue": [
|
|
5890
|
-
S[0] || (S[0] = (F) =>
|
|
5909
|
+
S[0] || (S[0] = (F) => o.value = F),
|
|
5891
5910
|
r
|
|
5892
5911
|
],
|
|
5893
5912
|
class: "mb-2",
|
|
@@ -5895,26 +5914,26 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5895
5914
|
"data-cy": "source-search"
|
|
5896
5915
|
}, null, 8, ["modelValue"])
|
|
5897
5916
|
]),
|
|
5898
|
-
targetheader:
|
|
5899
|
-
|
|
5900
|
-
|
|
5917
|
+
targetheader: v(() => [
|
|
5918
|
+
e.targetTitle ? (d(), g("div", Ci, B(e.targetTitle), 1)) : T("", !0),
|
|
5919
|
+
h(p(ie), {
|
|
5901
5920
|
modelValue: n.value,
|
|
5902
5921
|
"onUpdate:modelValue": [
|
|
5903
5922
|
S[1] || (S[1] = (F) => n.value = F),
|
|
5904
|
-
|
|
5923
|
+
x
|
|
5905
5924
|
],
|
|
5906
5925
|
class: "mb-2",
|
|
5907
5926
|
placeholder: "Search",
|
|
5908
5927
|
"data-cy": "target-search"
|
|
5909
5928
|
}, null, 8, ["modelValue"])
|
|
5910
5929
|
]),
|
|
5911
|
-
option:
|
|
5912
|
-
|
|
5930
|
+
option: v(({ option: F }) => [
|
|
5931
|
+
O(B(F[e.filterBy]), 1)
|
|
5913
5932
|
]),
|
|
5914
5933
|
_: 1
|
|
5915
5934
|
}, 16, ["modelValue"]));
|
|
5916
5935
|
}
|
|
5917
|
-
}),
|
|
5936
|
+
}), Ol = () => ({
|
|
5918
5937
|
type: "component",
|
|
5919
5938
|
resolve: (e) => {
|
|
5920
5939
|
if (e.startsWith("Forge"))
|
|
@@ -5925,40 +5944,40 @@ const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disable
|
|
|
5925
5944
|
}
|
|
5926
5945
|
});
|
|
5927
5946
|
export {
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5947
|
+
dl as Bootstrap_PT,
|
|
5948
|
+
cl as ForgeActionButton,
|
|
5949
|
+
de as ForgeAlert,
|
|
5950
|
+
pl as ForgeAutoComplete,
|
|
5951
|
+
xe as ForgeCheckbox,
|
|
5952
|
+
wl as ForgeChip,
|
|
5953
|
+
jl as ForgeColumnCustomiser,
|
|
5954
|
+
Vl as ForgeConfirmPopup,
|
|
5955
|
+
he as ForgeDatepicker,
|
|
5956
|
+
Pl as ForgeFileUploader,
|
|
5957
|
+
zl as ForgeFilterHeader,
|
|
5958
|
+
xl as ForgeForm,
|
|
5959
|
+
hl as ForgeFormField,
|
|
5960
|
+
Qt as ForgeInlineEditor,
|
|
5961
|
+
ul as ForgeLink,
|
|
5962
|
+
me as ForgeLoader,
|
|
5963
|
+
fl as ForgeModal,
|
|
5945
5964
|
oa as ForgeMultiSelectPreview,
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
$
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5965
|
+
gl as ForgeNavbar,
|
|
5966
|
+
bl as ForgePageHeader,
|
|
5967
|
+
Ml as ForgePanel,
|
|
5968
|
+
Dl as ForgePickList,
|
|
5969
|
+
kl as ForgeProgressBar,
|
|
5970
|
+
yl as ForgeRemainingCharacters,
|
|
5971
|
+
Ol as ForgeResolver,
|
|
5972
|
+
Bl as ForgeScratchpad,
|
|
5973
|
+
Il as ForgeSelectButton,
|
|
5974
|
+
$l as ForgeStatWidget,
|
|
5975
|
+
Sl as ForgeStepper,
|
|
5976
|
+
Cl as ForgeTable,
|
|
5977
|
+
Fl as ForgeTile,
|
|
5978
|
+
$i as ForgeToggleButton,
|
|
5979
|
+
Tl as ForgeTreeTable,
|
|
5980
|
+
vl as convertToMultiSelectOption,
|
|
5981
|
+
ml as enumToMultiSelectList,
|
|
5982
|
+
_t as parseError
|
|
5964
5983
|
};
|