@3squared/forge-ui-3 2.23.0 → 2.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as g, renderSlot as C, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as
|
|
3
|
-
import { Icon as
|
|
1
|
+
import Fe from "primevue/message";
|
|
2
|
+
import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as g, renderSlot as C, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as I, createElementBlock as b, Fragment as N, mergeProps as j, renderList as U, mergeModels as E, useModel as L, computed as M, withDirectives as K, createTextVNode as V, toDisplayString as $, vShow as X, createSlots as ie, onMounted as ne, withKeys as le, isRef as Se, normalizeStyle as Ce, withModifiers as Q, watch as W, h as Te, useTemplateRef as ze } from "vue";
|
|
3
|
+
import { Icon as _ } from "@iconify/vue";
|
|
4
4
|
import q from "primevue/button";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import Pe from "primevue/toast";
|
|
6
|
+
import je from "primevue/autocomplete";
|
|
7
|
+
import Me from "primevue/checkbox";
|
|
8
8
|
import { useField as se } from "vee-validate";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import Ie from "primevue/progressspinner";
|
|
10
|
+
import _e from "primevue/dialog";
|
|
11
11
|
import ae from "primevue/inputtext";
|
|
12
|
-
import { vOnClickOutside as
|
|
13
|
-
import
|
|
12
|
+
import { vOnClickOutside as Ve } from "@vueuse/components";
|
|
13
|
+
import De from "primevue/menubar";
|
|
14
14
|
import de from "primevue/multiselect";
|
|
15
|
-
import
|
|
15
|
+
import Oe from "primevue/datepicker";
|
|
16
16
|
import oe from "primevue/select";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
17
|
+
import Ae from "primevue/inputmask";
|
|
18
|
+
import Le from "primevue/textarea";
|
|
19
19
|
import fe from "primevue/inputnumber";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
20
|
+
import Ne from "primevue/chip";
|
|
21
|
+
import Ue from "primevue/progressbar";
|
|
22
|
+
import Ee from "primevue/step";
|
|
23
|
+
import qe from "primevue/stepper";
|
|
24
|
+
import Re from "primevue/steplist";
|
|
25
|
+
import He from "primevue/steppanel";
|
|
26
|
+
import We from "primevue/steppanels";
|
|
27
|
+
import Ge from "primevue/datatable";
|
|
28
|
+
import Ye from "primevue/treetable";
|
|
29
29
|
import { BlockBlobClient as ge } from "@azure/storage-blob";
|
|
30
30
|
import be from "primevue/popover";
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import { ToggleButton as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
const
|
|
31
|
+
import Je from "primevue/image";
|
|
32
|
+
import Ke from "primevue/panel";
|
|
33
|
+
import { ToggleButton as Ze } from "primevue";
|
|
34
|
+
import Xe from "primevue/confirmpopup";
|
|
35
|
+
import Qe from "primevue/picklist";
|
|
36
|
+
const et = {
|
|
37
37
|
autoComplete: {
|
|
38
38
|
root: ({ props: e }) => ({
|
|
39
39
|
class: [
|
|
@@ -62,7 +62,7 @@ const Qe = {
|
|
|
62
62
|
}),
|
|
63
63
|
emptyMessage: "mx-3 my-2"
|
|
64
64
|
}
|
|
65
|
-
},
|
|
65
|
+
}, tt = {
|
|
66
66
|
button: {
|
|
67
67
|
root: ({ props: e }) => ({
|
|
68
68
|
class: [
|
|
@@ -172,7 +172,7 @@ const Qe = {
|
|
|
172
172
|
})
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
},
|
|
175
|
+
}, at = {
|
|
176
176
|
checkbox: {
|
|
177
177
|
root: () => ({
|
|
178
178
|
class: ["form-check"]
|
|
@@ -187,7 +187,7 @@ const Qe = {
|
|
|
187
187
|
]
|
|
188
188
|
})
|
|
189
189
|
}
|
|
190
|
-
},
|
|
190
|
+
}, it = {
|
|
191
191
|
select: {
|
|
192
192
|
root: ({ props: e }) => ({
|
|
193
193
|
class: [
|
|
@@ -238,7 +238,7 @@ const Qe = {
|
|
|
238
238
|
]
|
|
239
239
|
})
|
|
240
240
|
}
|
|
241
|
-
},
|
|
241
|
+
}, ot = {
|
|
242
242
|
column: {
|
|
243
243
|
pcSortBadge: (e) => ({
|
|
244
244
|
root: {
|
|
@@ -364,7 +364,7 @@ const Qe = {
|
|
|
364
364
|
]
|
|
365
365
|
})
|
|
366
366
|
}
|
|
367
|
-
},
|
|
367
|
+
}, lt = {
|
|
368
368
|
inputtext: {
|
|
369
369
|
root: (e) => {
|
|
370
370
|
var t, a;
|
|
@@ -379,7 +379,7 @@ const Qe = {
|
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
},
|
|
382
|
+
}, nt = {
|
|
383
383
|
inputmask: {
|
|
384
384
|
root: () => ({
|
|
385
385
|
class: [
|
|
@@ -387,12 +387,12 @@ const Qe = {
|
|
|
387
387
|
]
|
|
388
388
|
})
|
|
389
389
|
}
|
|
390
|
-
},
|
|
390
|
+
}, st = {
|
|
391
391
|
toggleSwitch: {
|
|
392
392
|
root: "form-check form-switch",
|
|
393
393
|
input: "form-check-input"
|
|
394
394
|
}
|
|
395
|
-
},
|
|
395
|
+
}, rt = {
|
|
396
396
|
tag: {
|
|
397
397
|
root: ({ props: e }) => ({
|
|
398
398
|
class: [
|
|
@@ -413,7 +413,7 @@ const Qe = {
|
|
|
413
413
|
]
|
|
414
414
|
})
|
|
415
415
|
}
|
|
416
|
-
},
|
|
416
|
+
}, dt = {
|
|
417
417
|
textarea: {
|
|
418
418
|
root: () => ({
|
|
419
419
|
class: [
|
|
@@ -421,13 +421,13 @@ const Qe = {
|
|
|
421
421
|
]
|
|
422
422
|
})
|
|
423
423
|
}
|
|
424
|
-
},
|
|
424
|
+
}, pt = {
|
|
425
425
|
chip: {
|
|
426
426
|
root: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 p-1",
|
|
427
427
|
label: "px-2 fs-6 fw-400",
|
|
428
428
|
removeIcon: "ms-auto my-auto"
|
|
429
429
|
}
|
|
430
|
-
},
|
|
430
|
+
}, ct = {
|
|
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 Qe = {
|
|
|
486
486
|
]
|
|
487
487
|
})
|
|
488
488
|
}
|
|
489
|
-
},
|
|
489
|
+
}, ut = {
|
|
490
490
|
popover: {
|
|
491
491
|
root: (e) => ({
|
|
492
492
|
class: [
|
|
@@ -500,7 +500,7 @@ const Qe = {
|
|
|
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
|
+
}, mt = {
|
|
504
504
|
message: {
|
|
505
505
|
root: ({ props: e }) => ({
|
|
506
506
|
class: [
|
|
@@ -530,7 +530,7 @@ const Qe = {
|
|
|
530
530
|
class: ["px-0 ms-2 btn d-flex"]
|
|
531
531
|
})
|
|
532
532
|
}
|
|
533
|
-
},
|
|
533
|
+
}, vt = {
|
|
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 Qe = {
|
|
|
558
558
|
}),
|
|
559
559
|
separator: "border border-1 separator"
|
|
560
560
|
}
|
|
561
|
-
},
|
|
561
|
+
}, ft = {
|
|
562
562
|
tabList: {
|
|
563
563
|
root: () => ({
|
|
564
564
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -583,7 +583,7 @@ const Qe = {
|
|
|
583
583
|
class: ["p-2"]
|
|
584
584
|
})
|
|
585
585
|
}
|
|
586
|
-
},
|
|
586
|
+
}, gt = {
|
|
587
587
|
// More PassThrough options defined in ForgeDatepicker.
|
|
588
588
|
datepicker: {
|
|
589
589
|
root: "d-flex flex-1 relative",
|
|
@@ -684,7 +684,7 @@ const Qe = {
|
|
|
684
684
|
pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
|
|
685
685
|
pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
|
|
686
686
|
}
|
|
687
|
-
},
|
|
687
|
+
}, bt = {
|
|
688
688
|
multiselect: {
|
|
689
689
|
root: ({ props: e }) => ({
|
|
690
690
|
class: [
|
|
@@ -712,7 +712,7 @@ const Qe = {
|
|
|
712
712
|
class: "d-none"
|
|
713
713
|
})
|
|
714
714
|
}
|
|
715
|
-
},
|
|
715
|
+
}, yt = {
|
|
716
716
|
// More PassThrough options in component file.
|
|
717
717
|
progressbar: {
|
|
718
718
|
root: () => ({
|
|
@@ -722,7 +722,7 @@ const Qe = {
|
|
|
722
722
|
class: ["text-white m-1"]
|
|
723
723
|
})
|
|
724
724
|
}
|
|
725
|
-
},
|
|
725
|
+
}, xt = {
|
|
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 Qe = {
|
|
|
735
735
|
},
|
|
736
736
|
contentContainer: "mt-2 mx-4 mb-4"
|
|
737
737
|
}
|
|
738
|
-
},
|
|
738
|
+
}, ht = {
|
|
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 Qe = {
|
|
|
808
808
|
]
|
|
809
809
|
})
|
|
810
810
|
}
|
|
811
|
-
},
|
|
811
|
+
}, wt = {
|
|
812
812
|
badge: {
|
|
813
813
|
root: ({ props: e }) => ({
|
|
814
814
|
class: [
|
|
@@ -830,7 +830,7 @@ const Qe = {
|
|
|
830
830
|
]
|
|
831
831
|
})
|
|
832
832
|
}
|
|
833
|
-
},
|
|
833
|
+
}, kt = {
|
|
834
834
|
// More PassThrough options in component file.
|
|
835
835
|
menubar: {
|
|
836
836
|
rootList: ({ instance: e }) => ({
|
|
@@ -911,7 +911,7 @@ const Qe = {
|
|
|
911
911
|
]
|
|
912
912
|
})
|
|
913
913
|
}
|
|
914
|
-
},
|
|
914
|
+
}, Bt = {
|
|
915
915
|
tooltip: {
|
|
916
916
|
root: ({ context: e }) => ({
|
|
917
917
|
class: [
|
|
@@ -933,7 +933,7 @@ const Qe = {
|
|
|
933
933
|
class: ["tooltip-inner"]
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
|
-
},
|
|
936
|
+
}, $t = {
|
|
937
937
|
selectButton: {
|
|
938
938
|
root: () => ({
|
|
939
939
|
class: ["btn-group"]
|
|
@@ -951,7 +951,7 @@ const Qe = {
|
|
|
951
951
|
]
|
|
952
952
|
})
|
|
953
953
|
}
|
|
954
|
-
},
|
|
954
|
+
}, Ft = {
|
|
955
955
|
splitbutton: {
|
|
956
956
|
root: () => ({
|
|
957
957
|
class: ["btn-group"]
|
|
@@ -1010,7 +1010,7 @@ const Qe = {
|
|
|
1010
1010
|
]
|
|
1011
1011
|
})
|
|
1012
1012
|
}
|
|
1013
|
-
},
|
|
1013
|
+
}, Ct = {
|
|
1014
1014
|
card: {
|
|
1015
1015
|
root: () => ({
|
|
1016
1016
|
class: ["card"]
|
|
@@ -1034,11 +1034,11 @@ const Qe = {
|
|
|
1034
1034
|
class: ["card-header"]
|
|
1035
1035
|
})
|
|
1036
1036
|
}
|
|
1037
|
-
},
|
|
1037
|
+
}, Tt = {
|
|
1038
1038
|
divider: {
|
|
1039
1039
|
root: "border-bottom w-100 m-1"
|
|
1040
1040
|
}
|
|
1041
|
-
},
|
|
1041
|
+
}, zt = {
|
|
1042
1042
|
image: {
|
|
1043
1043
|
root: "position-relative d-inline-block",
|
|
1044
1044
|
previewMask: "preview-button",
|
|
@@ -1051,7 +1051,7 @@ const Qe = {
|
|
|
1051
1051
|
zoominbutton: "btn text-white",
|
|
1052
1052
|
closebutton: "btn text-white"
|
|
1053
1053
|
}
|
|
1054
|
-
},
|
|
1054
|
+
}, Pt = {
|
|
1055
1055
|
toast: {
|
|
1056
1056
|
message: () => ({
|
|
1057
1057
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -1087,7 +1087,7 @@ const Qe = {
|
|
|
1087
1087
|
};
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
},
|
|
1090
|
+
}, jt = {
|
|
1091
1091
|
tree: {
|
|
1092
1092
|
node: "m-1",
|
|
1093
1093
|
nodeToggleButton: ({ context: e }) => ({
|
|
@@ -1119,7 +1119,7 @@ const Qe = {
|
|
|
1119
1119
|
pcFilterContainer: { root: "dropdown-item" },
|
|
1120
1120
|
filterIcon: "d-none"
|
|
1121
1121
|
}
|
|
1122
|
-
},
|
|
1122
|
+
}, Mt = {
|
|
1123
1123
|
treeSelect: {
|
|
1124
1124
|
root: ({ props: e }) => ({
|
|
1125
1125
|
class: [
|
|
@@ -1167,7 +1167,7 @@ const Qe = {
|
|
|
1167
1167
|
filterIcon: "d-none"
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
|
-
},
|
|
1170
|
+
}, It = {
|
|
1171
1171
|
fieldset: {
|
|
1172
1172
|
root: () => ({
|
|
1173
1173
|
class: [
|
|
@@ -1193,7 +1193,7 @@ const Qe = {
|
|
|
1193
1193
|
]
|
|
1194
1194
|
})
|
|
1195
1195
|
}
|
|
1196
|
-
},
|
|
1196
|
+
}, _t = {
|
|
1197
1197
|
accordionPanel: {
|
|
1198
1198
|
root: "card my-2"
|
|
1199
1199
|
},
|
|
@@ -1210,7 +1210,7 @@ const Qe = {
|
|
|
1210
1210
|
accordionContent: {
|
|
1211
1211
|
root: "mt-2 mx-4 mb-4"
|
|
1212
1212
|
}
|
|
1213
|
-
},
|
|
1213
|
+
}, Vt = {
|
|
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 Qe = {
|
|
|
1231
1231
|
class: "table-overlay table-spinner"
|
|
1232
1232
|
})
|
|
1233
1233
|
}
|
|
1234
|
-
},
|
|
1234
|
+
}, Dt = {
|
|
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 Qe = {
|
|
|
1267
1267
|
sourceListContainer: " h-100 flex-1",
|
|
1268
1268
|
targetListContainer: "h-100 flex-1"
|
|
1269
1269
|
}
|
|
1270
|
-
},
|
|
1270
|
+
}, Ot = {
|
|
1271
1271
|
listbox: {
|
|
1272
1272
|
root: "border rounded",
|
|
1273
1273
|
list: "list-unstyled list-group list-group-flush",
|
|
@@ -1286,7 +1286,7 @@ const Qe = {
|
|
|
1286
1286
|
filterIcon: "d-none",
|
|
1287
1287
|
pcFilter: { root: "form-control form-control-sm mx-2 mt-2 mb-1" }
|
|
1288
1288
|
}
|
|
1289
|
-
},
|
|
1289
|
+
}, At = {
|
|
1290
1290
|
drawer: {
|
|
1291
1291
|
root: ({ props: e }) => ({
|
|
1292
1292
|
class: [
|
|
@@ -1312,47 +1312,47 @@ const Qe = {
|
|
|
1312
1312
|
]
|
|
1313
1313
|
})
|
|
1314
1314
|
}
|
|
1315
|
-
},
|
|
1316
|
-
...Qe,
|
|
1317
|
-
...ht,
|
|
1315
|
+
}, ro = {
|
|
1318
1316
|
...et,
|
|
1319
|
-
...
|
|
1317
|
+
...wt,
|
|
1320
1318
|
...tt,
|
|
1321
|
-
...dt,
|
|
1322
|
-
...it,
|
|
1323
|
-
...ft,
|
|
1324
|
-
...pt,
|
|
1325
1319
|
...Ct,
|
|
1326
1320
|
...at,
|
|
1327
|
-
...
|
|
1321
|
+
...pt,
|
|
1328
1322
|
...ot,
|
|
1329
|
-
...lt,
|
|
1330
|
-
...nt,
|
|
1331
|
-
...ut,
|
|
1332
1323
|
...gt,
|
|
1333
|
-
...wt,
|
|
1334
1324
|
...ct,
|
|
1325
|
+
...Tt,
|
|
1326
|
+
...it,
|
|
1327
|
+
...zt,
|
|
1328
|
+
...lt,
|
|
1329
|
+
...nt,
|
|
1330
|
+
...st,
|
|
1331
|
+
...mt,
|
|
1335
1332
|
...bt,
|
|
1336
|
-
...
|
|
1333
|
+
...kt,
|
|
1334
|
+
...ut,
|
|
1337
1335
|
...yt,
|
|
1338
|
-
...
|
|
1339
|
-
...$t,
|
|
1340
|
-
...mt,
|
|
1336
|
+
...St,
|
|
1341
1337
|
...xt,
|
|
1342
|
-
|
|
1338
|
+
...$t,
|
|
1339
|
+
...Ft,
|
|
1343
1340
|
...vt,
|
|
1344
|
-
...
|
|
1341
|
+
...ht,
|
|
1345
1342
|
...rt,
|
|
1346
|
-
...
|
|
1347
|
-
...jt,
|
|
1343
|
+
...ft,
|
|
1348
1344
|
...Pt,
|
|
1349
|
-
...
|
|
1345
|
+
...dt,
|
|
1350
1346
|
...It,
|
|
1347
|
+
...Mt,
|
|
1348
|
+
...jt,
|
|
1349
|
+
..._t,
|
|
1351
1350
|
...Vt,
|
|
1352
1351
|
...Dt,
|
|
1353
1352
|
...Ot,
|
|
1353
|
+
...At,
|
|
1354
1354
|
directives: {
|
|
1355
|
-
...
|
|
1355
|
+
...Bt
|
|
1356
1356
|
}
|
|
1357
1357
|
}, re = /* @__PURE__ */ z({
|
|
1358
1358
|
__name: "ForgeAlert",
|
|
@@ -1374,13 +1374,13 @@ const Qe = {
|
|
|
1374
1374
|
setup(e) {
|
|
1375
1375
|
const t = e;
|
|
1376
1376
|
return (a, i) => {
|
|
1377
|
-
const o =
|
|
1377
|
+
const o = Fe;
|
|
1378
1378
|
return d(), x(o, G(Y({ ...a.$attrs, ...t })), {
|
|
1379
1379
|
icon: g(() => [
|
|
1380
1380
|
m("div", {
|
|
1381
1381
|
class: P(t.icon ? "me-2 pe-1" : "")
|
|
1382
1382
|
}, [
|
|
1383
|
-
t.icon ? (d(), x(c(
|
|
1383
|
+
t.icon ? (d(), x(c(_), {
|
|
1384
1384
|
key: 0,
|
|
1385
1385
|
"data-cy": "message-icon",
|
|
1386
1386
|
icon: t.icon,
|
|
@@ -1390,7 +1390,7 @@ const Qe = {
|
|
|
1390
1390
|
], 2)
|
|
1391
1391
|
]),
|
|
1392
1392
|
closeicon: g(() => [
|
|
1393
|
-
k(c(
|
|
1393
|
+
k(c(_), { icon: "bi:x" })
|
|
1394
1394
|
]),
|
|
1395
1395
|
default: g(() => [
|
|
1396
1396
|
C(a.$slots, "default")
|
|
@@ -1399,7 +1399,7 @@ const Qe = {
|
|
|
1399
1399
|
}, 16);
|
|
1400
1400
|
};
|
|
1401
1401
|
}
|
|
1402
|
-
}),
|
|
1402
|
+
}), po = /* @__PURE__ */ z({
|
|
1403
1403
|
__name: "ForgeActionButton",
|
|
1404
1404
|
props: {
|
|
1405
1405
|
action: {},
|
|
@@ -1408,7 +1408,7 @@ const Qe = {
|
|
|
1408
1408
|
params: { default: Array }
|
|
1409
1409
|
},
|
|
1410
1410
|
setup(e) {
|
|
1411
|
-
const t =
|
|
1411
|
+
const t = I(!1), a = e, i = async () => {
|
|
1412
1412
|
t.value = !0;
|
|
1413
1413
|
try {
|
|
1414
1414
|
await a.action.apply(this, a.params);
|
|
@@ -1425,21 +1425,21 @@ const Qe = {
|
|
|
1425
1425
|
disabled: t.value || a.disabled,
|
|
1426
1426
|
onClick: i
|
|
1427
1427
|
}), null, 16, ["loading", "disabled"]),
|
|
1428
|
-
k(c(
|
|
1428
|
+
k(c(Pe))
|
|
1429
1429
|
], 64);
|
|
1430
1430
|
};
|
|
1431
1431
|
}
|
|
1432
|
-
}),
|
|
1432
|
+
}), co = /* @__PURE__ */ z({
|
|
1433
1433
|
__name: "ForgeAutoComplete",
|
|
1434
1434
|
setup(e) {
|
|
1435
|
-
return (t, a) => (d(), x(c(
|
|
1435
|
+
return (t, a) => (d(), x(c(je), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1436
1436
|
default: g(() => [
|
|
1437
1437
|
(d(!0), b(N, null, U(t.$slots, (i, o) => C(t.$slots, o, { slot: o })), 256))
|
|
1438
1438
|
]),
|
|
1439
1439
|
_: 3
|
|
1440
1440
|
}, 16));
|
|
1441
1441
|
}
|
|
1442
|
-
}),
|
|
1442
|
+
}), Lt = { class: "d-flex flex-column" }, Nt = ["for"], ye = /* @__PURE__ */ z({
|
|
1443
1443
|
__name: "ForgeCheckbox",
|
|
1444
1444
|
props: /* @__PURE__ */ E({
|
|
1445
1445
|
label: { default: "" },
|
|
@@ -1483,10 +1483,10 @@ const Qe = {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
), n = (p, u) => {
|
|
1485
1485
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(u) : a.value = u;
|
|
1486
|
-
}, s =
|
|
1486
|
+
}, s = M(() => o.value.length > 0);
|
|
1487
1487
|
return (p, u) => {
|
|
1488
|
-
const h =
|
|
1489
|
-
return d(), b("div",
|
|
1488
|
+
const h = Me;
|
|
1489
|
+
return d(), b("div", Lt, [
|
|
1490
1490
|
m("div", j({
|
|
1491
1491
|
class: "d-flex",
|
|
1492
1492
|
"data-cy": "checkbox-container",
|
|
@@ -1508,7 +1508,7 @@ const Qe = {
|
|
|
1508
1508
|
C(p.$slots, "default", {}, () => [
|
|
1509
1509
|
V($(t.label), 1)
|
|
1510
1510
|
])
|
|
1511
|
-
], 10,
|
|
1511
|
+
], 10, Nt)
|
|
1512
1512
|
], 16),
|
|
1513
1513
|
K(m("small", {
|
|
1514
1514
|
"data-cy": "error",
|
|
@@ -1526,7 +1526,7 @@ const Qe = {
|
|
|
1526
1526
|
inLine: { type: Boolean, default: !1 }
|
|
1527
1527
|
},
|
|
1528
1528
|
setup(e) {
|
|
1529
|
-
const t = e, a =
|
|
1529
|
+
const t = e, a = M(() => ({
|
|
1530
1530
|
spin: () => ({
|
|
1531
1531
|
class: [
|
|
1532
1532
|
"spinner-border",
|
|
@@ -1537,7 +1537,7 @@ const Qe = {
|
|
|
1537
1537
|
})
|
|
1538
1538
|
}));
|
|
1539
1539
|
return (i, o) => {
|
|
1540
|
-
const l =
|
|
1540
|
+
const l = Ie;
|
|
1541
1541
|
return d(), b("div", {
|
|
1542
1542
|
class: P(i.inLine ? "" : "forge-loader")
|
|
1543
1543
|
}, [
|
|
@@ -1549,7 +1549,7 @@ const Qe = {
|
|
|
1549
1549
|
], 2);
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
1552
|
-
}),
|
|
1552
|
+
}), Ut = ["href", "target"], uo = /* @__PURE__ */ z({
|
|
1553
1553
|
__name: "ForgeLink",
|
|
1554
1554
|
props: {
|
|
1555
1555
|
url: {},
|
|
@@ -1567,7 +1567,7 @@ const Qe = {
|
|
|
1567
1567
|
iconName: {}
|
|
1568
1568
|
},
|
|
1569
1569
|
setup(e) {
|
|
1570
|
-
const t =
|
|
1570
|
+
const t = M(() => ({
|
|
1571
1571
|
[`link-${e.severity}`]: e.severity,
|
|
1572
1572
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1573
1573
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1576,7 +1576,7 @@ const Qe = {
|
|
|
1576
1576
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1577
1577
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1578
1578
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1579
|
-
})), a =
|
|
1579
|
+
})), a = M(() => ({
|
|
1580
1580
|
"order-2": e.positionIconEnd,
|
|
1581
1581
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1582
1582
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
@@ -1590,7 +1590,7 @@ const Qe = {
|
|
|
1590
1590
|
target: i.target
|
|
1591
1591
|
}, [
|
|
1592
1592
|
C(i.$slots, "default", {}, () => [
|
|
1593
|
-
i.iconName ? (d(), x(c(
|
|
1593
|
+
i.iconName ? (d(), x(c(_), {
|
|
1594
1594
|
key: 0,
|
|
1595
1595
|
id: "link-icon",
|
|
1596
1596
|
icon: i.iconName,
|
|
@@ -1598,10 +1598,10 @@ const Qe = {
|
|
|
1598
1598
|
}, null, 8, ["icon", "class"])) : T("", !0),
|
|
1599
1599
|
V(" " + $(i.label), 1)
|
|
1600
1600
|
])
|
|
1601
|
-
], 10,
|
|
1601
|
+
], 10, Ut));
|
|
1602
1602
|
}
|
|
1603
1603
|
});
|
|
1604
|
-
function
|
|
1604
|
+
function Et(e) {
|
|
1605
1605
|
const t = {
|
|
1606
1606
|
errorMessage: "",
|
|
1607
1607
|
errorDetails: []
|
|
@@ -1612,20 +1612,20 @@ function Ut(e) {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function mo(e, t) {
|
|
1616
1616
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function vo(e, t, a) {
|
|
1619
1619
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1620
1620
|
}
|
|
1621
|
-
const
|
|
1621
|
+
const qt = {
|
|
1622
1622
|
key: 0,
|
|
1623
1623
|
class: "sticky-top py-3 error-bg",
|
|
1624
1624
|
"data-cy": "error-wrapper"
|
|
1625
|
-
},
|
|
1625
|
+
}, Rt = { key: 0 }, Ht = {
|
|
1626
1626
|
class: "d-flex w-100",
|
|
1627
1627
|
"data-cy": "footer"
|
|
1628
|
-
},
|
|
1628
|
+
}, fo = /* @__PURE__ */ z({
|
|
1629
1629
|
__name: "ForgeModal",
|
|
1630
1630
|
props: /* @__PURE__ */ E({
|
|
1631
1631
|
cancelText: { default: "Cancel" },
|
|
@@ -1687,7 +1687,7 @@ const Et = {
|
|
|
1687
1687
|
}),
|
|
1688
1688
|
emits: ["update:visible", "update:error"],
|
|
1689
1689
|
setup(e, { expose: t }) {
|
|
1690
|
-
const a = L(e, "visible"), i =
|
|
1690
|
+
const a = L(e, "visible"), i = I(!1), o = e, l = I(!1), n = L(e, "error"), s = () => {
|
|
1691
1691
|
n.value = {
|
|
1692
1692
|
hasError: !1,
|
|
1693
1693
|
header: "",
|
|
@@ -1711,12 +1711,12 @@ const Et = {
|
|
|
1711
1711
|
(v || v == null) && h();
|
|
1712
1712
|
} catch (v) {
|
|
1713
1713
|
n.value.hasError = !0;
|
|
1714
|
-
const
|
|
1715
|
-
n.value.header =
|
|
1714
|
+
const S = Et(v);
|
|
1715
|
+
n.value.header = S.errorMessage, n.value.message = S.errorDetails;
|
|
1716
1716
|
}
|
|
1717
1717
|
l.value = !1;
|
|
1718
1718
|
}
|
|
1719
|
-
}, w =
|
|
1719
|
+
}, w = M(() => ({
|
|
1720
1720
|
root: [
|
|
1721
1721
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1722
1722
|
{
|
|
@@ -1735,15 +1735,15 @@ const Et = {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
]
|
|
1737
1737
|
}));
|
|
1738
|
-
return (v,
|
|
1739
|
-
const
|
|
1738
|
+
return (v, S) => {
|
|
1739
|
+
const F = q, A = _e;
|
|
1740
1740
|
return d(), x(A, j(o, {
|
|
1741
1741
|
onMaximize: u,
|
|
1742
1742
|
onUnmaximize: p,
|
|
1743
1743
|
pt: w.value
|
|
1744
1744
|
}), ie({
|
|
1745
1745
|
closeicon: g(() => [
|
|
1746
|
-
k(c(
|
|
1746
|
+
k(c(_), {
|
|
1747
1747
|
"data-cy": "close-icon",
|
|
1748
1748
|
icon: "bi:x-lg",
|
|
1749
1749
|
width: "18",
|
|
@@ -1752,7 +1752,7 @@ const Et = {
|
|
|
1752
1752
|
})
|
|
1753
1753
|
]),
|
|
1754
1754
|
maximizeicon: g(() => [
|
|
1755
|
-
k(c(
|
|
1755
|
+
k(c(_), {
|
|
1756
1756
|
"data-cy": "maximisable-icon",
|
|
1757
1757
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1758
1758
|
width: "16",
|
|
@@ -1765,7 +1765,7 @@ const Et = {
|
|
|
1765
1765
|
name: B,
|
|
1766
1766
|
fn: g((D) => [
|
|
1767
1767
|
B == "default" ? (d(), b(N, { key: 0 }, [
|
|
1768
|
-
n.value.hasError ? (d(), b("div",
|
|
1768
|
+
n.value.hasError ? (d(), b("div", qt, [
|
|
1769
1769
|
k(re, {
|
|
1770
1770
|
severity: "danger",
|
|
1771
1771
|
"data-cy": "error",
|
|
@@ -1775,7 +1775,7 @@ const Et = {
|
|
|
1775
1775
|
m("p", {
|
|
1776
1776
|
class: P(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1777
1777
|
}, $(n.value.header), 3),
|
|
1778
|
-
n.value.message.length > 0 ? (d(), b("ul",
|
|
1778
|
+
n.value.message.length > 0 ? (d(), b("ul", Rt, [
|
|
1779
1779
|
(d(!0), b(N, null, U(n.value.message, (y) => (d(), b("li", { key: y }, $(y), 1))), 128))
|
|
1780
1780
|
])) : T("", !0)
|
|
1781
1781
|
]),
|
|
@@ -1792,8 +1792,8 @@ const Et = {
|
|
|
1792
1792
|
v.showFooter ? {
|
|
1793
1793
|
name: "footer",
|
|
1794
1794
|
fn: g(() => [
|
|
1795
|
-
m("div",
|
|
1796
|
-
k(
|
|
1795
|
+
m("div", Ht, [
|
|
1796
|
+
k(F, {
|
|
1797
1797
|
label: v.cancelText,
|
|
1798
1798
|
class: P(o.cancelClass),
|
|
1799
1799
|
outlined: "",
|
|
@@ -1801,7 +1801,7 @@ const Et = {
|
|
|
1801
1801
|
id: "cancel-button",
|
|
1802
1802
|
type: o.cancelButtonType
|
|
1803
1803
|
}, null, 8, ["label", "class", "type"]),
|
|
1804
|
-
k(
|
|
1804
|
+
k(F, {
|
|
1805
1805
|
label: v.submitText,
|
|
1806
1806
|
class: P([o.submitClass, "ms-auto"]),
|
|
1807
1807
|
onClick: r,
|
|
@@ -1815,7 +1815,7 @@ const Et = {
|
|
|
1815
1815
|
]), 1040, ["pt"]);
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
|
-
}),
|
|
1818
|
+
}), Wt = ["id"], Gt = { key: 0 }, Yt = { key: 0 }, Jt = { class: "d-flex justify-content-between align-items-center position-relative" }, Kt = { key: 1 }, Zt = { "data-cy": "readonly-value" }, Xt = /* @__PURE__ */ z({
|
|
1819
1819
|
__name: "ForgeInlineEditor",
|
|
1820
1820
|
props: /* @__PURE__ */ E({
|
|
1821
1821
|
name: { default: "" },
|
|
@@ -1830,7 +1830,7 @@ const Et = {
|
|
|
1830
1830
|
}),
|
|
1831
1831
|
emits: ["update:modelValue"],
|
|
1832
1832
|
setup(e) {
|
|
1833
|
-
const t = e, a = L(e, "modelValue"), i =
|
|
1833
|
+
const t = e, a = L(e, "modelValue"), i = I(!1), o = I(), l = () => {
|
|
1834
1834
|
var v;
|
|
1835
1835
|
i.value = !i.value, (v = o.value) == null || v.focus();
|
|
1836
1836
|
}, n = async () => {
|
|
@@ -1854,28 +1854,28 @@ const Et = {
|
|
|
1854
1854
|
ne(() => {
|
|
1855
1855
|
r.value = a.value;
|
|
1856
1856
|
});
|
|
1857
|
-
const w =
|
|
1858
|
-
return (v,
|
|
1859
|
-
const
|
|
1857
|
+
const w = M(() => h.value.length > 0);
|
|
1858
|
+
return (v, S) => {
|
|
1859
|
+
const F = ae, A = q;
|
|
1860
1860
|
return d(), b("div", {
|
|
1861
1861
|
id: t.name
|
|
1862
1862
|
}, [
|
|
1863
|
-
v.readonly ? (d(), b("div",
|
|
1863
|
+
v.readonly ? (d(), b("div", Kt, [
|
|
1864
1864
|
C(v.$slots, "default", {}, () => [
|
|
1865
|
-
m("span",
|
|
1865
|
+
m("span", Zt, $(c(r)), 1)
|
|
1866
1866
|
])
|
|
1867
|
-
])) : (d(), b("div",
|
|
1868
|
-
i.value ? (d(), b("div",
|
|
1869
|
-
K((d(), b("div",
|
|
1867
|
+
])) : (d(), b("div", Gt, [
|
|
1868
|
+
i.value ? (d(), b("div", Yt, [
|
|
1869
|
+
K((d(), b("div", Jt, [
|
|
1870
1870
|
C(v.$slots, "editor", {
|
|
1871
1871
|
class: P({ "is-invalid": w.value }),
|
|
1872
1872
|
editFinished: n,
|
|
1873
1873
|
cancel: s,
|
|
1874
1874
|
val: c(r)
|
|
1875
1875
|
}, () => [
|
|
1876
|
-
k(
|
|
1876
|
+
k(F, {
|
|
1877
1877
|
modelValue: c(r),
|
|
1878
|
-
"onUpdate:modelValue":
|
|
1878
|
+
"onUpdate:modelValue": S[0] || (S[0] = (f) => Se(r) ? r.value = f : null),
|
|
1879
1879
|
modelModifiers: { trim: !0 },
|
|
1880
1880
|
"data-cy": "input",
|
|
1881
1881
|
ref_key: "input",
|
|
@@ -1887,7 +1887,7 @@ const Et = {
|
|
|
1887
1887
|
]
|
|
1888
1888
|
}, null, 8, ["modelValue", "class"])
|
|
1889
1889
|
]),
|
|
1890
|
-
k(c(
|
|
1890
|
+
k(c(_), {
|
|
1891
1891
|
icon: "bi:x-circle",
|
|
1892
1892
|
class: "mx-2 cursor-pointer",
|
|
1893
1893
|
onClick: p,
|
|
@@ -1895,7 +1895,7 @@ const Et = {
|
|
|
1895
1895
|
"data-cy": "clear-icon"
|
|
1896
1896
|
})
|
|
1897
1897
|
])), [
|
|
1898
|
-
[c(
|
|
1898
|
+
[c(Ve), n]
|
|
1899
1899
|
])
|
|
1900
1900
|
])) : (d(), b("div", {
|
|
1901
1901
|
key: 1,
|
|
@@ -1914,7 +1914,7 @@ const Et = {
|
|
|
1914
1914
|
class: "p-0 m-0"
|
|
1915
1915
|
}, {
|
|
1916
1916
|
default: g(() => [
|
|
1917
|
-
k(c(
|
|
1917
|
+
k(c(_), {
|
|
1918
1918
|
icon: "bi:pencil",
|
|
1919
1919
|
class: P(w.value ? "text-invalid" : "text-muted"),
|
|
1920
1920
|
"data-cy": "edit-icon",
|
|
@@ -1931,10 +1931,10 @@ const Et = {
|
|
|
1931
1931
|
}, $(c(u)), 513), [
|
|
1932
1932
|
[X, w.value]
|
|
1933
1933
|
])
|
|
1934
|
-
], 8,
|
|
1934
|
+
], 8, Wt);
|
|
1935
1935
|
};
|
|
1936
1936
|
}
|
|
1937
|
-
}),
|
|
1937
|
+
}), Qt = ["href"], go = /* @__PURE__ */ z({
|
|
1938
1938
|
__name: "ForgeNavbar",
|
|
1939
1939
|
props: {
|
|
1940
1940
|
severity: { default: "light" },
|
|
@@ -1951,7 +1951,7 @@ const Et = {
|
|
|
1951
1951
|
unstyled: { type: Boolean }
|
|
1952
1952
|
},
|
|
1953
1953
|
setup(e) {
|
|
1954
|
-
const t = e, a =
|
|
1954
|
+
const t = e, a = M(() => ({
|
|
1955
1955
|
root: () => ({
|
|
1956
1956
|
class: [
|
|
1957
1957
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1979,7 +1979,7 @@ const Et = {
|
|
|
1979
1979
|
]
|
|
1980
1980
|
})
|
|
1981
1981
|
}));
|
|
1982
|
-
return (i, o) => (d(), x(c(
|
|
1982
|
+
return (i, o) => (d(), x(c(De), j({ ...t, ...i.$attrs }, {
|
|
1983
1983
|
pt: a.value,
|
|
1984
1984
|
"data-cy": "navbar"
|
|
1985
1985
|
}), ie({
|
|
@@ -1992,11 +1992,11 @@ const Et = {
|
|
|
1992
1992
|
C(i.$slots, "logo", {}, () => [
|
|
1993
1993
|
o[0] || (o[0] = V(" Logo ", -1))
|
|
1994
1994
|
])
|
|
1995
|
-
], 8,
|
|
1995
|
+
], 8, Qt)
|
|
1996
1996
|
]),
|
|
1997
1997
|
buttonicon: g(() => [
|
|
1998
1998
|
C(i.$slots, "buttonIcon", {}, () => [
|
|
1999
|
-
k(c(
|
|
1999
|
+
k(c(_), {
|
|
2000
2000
|
icon: "bi:list",
|
|
2001
2001
|
class: P(t.severity === "light" ? "text-black" : "text-white"),
|
|
2002
2002
|
height: "24",
|
|
@@ -2014,14 +2014,14 @@ const Et = {
|
|
|
2014
2014
|
}))
|
|
2015
2015
|
]), 1040, ["pt"]));
|
|
2016
2016
|
}
|
|
2017
|
-
}),
|
|
2017
|
+
}), ea = { class: "border alternating-item-list" }, ta = {
|
|
2018
2018
|
key: 0,
|
|
2019
2019
|
class: "p-2 border-top border-bottom",
|
|
2020
2020
|
"data-cy": "title"
|
|
2021
|
-
},
|
|
2021
|
+
}, aa = { class: "d-inline-block" }, ia = {
|
|
2022
2022
|
key: 1,
|
|
2023
2023
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
2024
|
-
},
|
|
2024
|
+
}, oa = /* @__PURE__ */ z({
|
|
2025
2025
|
__name: "ForgeMultiSelectPreview",
|
|
2026
2026
|
props: /* @__PURE__ */ E({
|
|
2027
2027
|
title: { default: "Selected Items" },
|
|
@@ -2071,17 +2071,17 @@ const Et = {
|
|
|
2071
2071
|
"data-cy": "options-preview"
|
|
2072
2072
|
}, [
|
|
2073
2073
|
m("div", {
|
|
2074
|
-
style:
|
|
2074
|
+
style: Ce({ height: o.height }),
|
|
2075
2075
|
class: "overflow-auto"
|
|
2076
2076
|
}, [
|
|
2077
|
-
m("div",
|
|
2078
|
-
o.title ? (d(), b("div",
|
|
2077
|
+
m("div", ea, [
|
|
2078
|
+
o.title ? (d(), b("div", ta, $(o.title), 1)) : T("", !0),
|
|
2079
2079
|
(d(!0), b(N, null, U(a.value, (p) => (d(), b("div", {
|
|
2080
2080
|
key: p.id,
|
|
2081
2081
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
2082
2082
|
}, [
|
|
2083
2083
|
C(o.$slots, "list-item", { item: p }, () => [
|
|
2084
|
-
m("span",
|
|
2084
|
+
m("span", aa, $(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
2085
2085
|
]),
|
|
2086
2086
|
o.canRemoveItemFromPreview ? (d(), x(s, {
|
|
2087
2087
|
key: 0,
|
|
@@ -2090,7 +2090,7 @@ const Et = {
|
|
|
2090
2090
|
onClick: (u) => i(p.id)
|
|
2091
2091
|
}, {
|
|
2092
2092
|
default: g(() => [
|
|
2093
|
-
k(c(
|
|
2093
|
+
k(c(_), {
|
|
2094
2094
|
icon: "bi:x",
|
|
2095
2095
|
class: "close-icon",
|
|
2096
2096
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -2099,34 +2099,34 @@ const Et = {
|
|
|
2099
2099
|
_: 2
|
|
2100
2100
|
}, 1032, ["onClick"])) : T("", !0)
|
|
2101
2101
|
]))), 128)),
|
|
2102
|
-
a.value == null || a.value.length == 0 ? (d(), b("div",
|
|
2102
|
+
a.value == null || a.value.length == 0 ? (d(), b("div", ia, $(t.optionsPreviewEmptyText), 1)) : T("", !0)
|
|
2103
2103
|
])
|
|
2104
2104
|
], 4)
|
|
2105
2105
|
], 2)
|
|
2106
2106
|
], 2);
|
|
2107
2107
|
};
|
|
2108
2108
|
}
|
|
2109
|
-
}),
|
|
2109
|
+
}), la = { class: "d-flex justify-content-between pb-2" }, na = {
|
|
2110
2110
|
"data-cy": "title",
|
|
2111
2111
|
class: "my-auto"
|
|
2112
|
-
},
|
|
2112
|
+
}, sa = {
|
|
2113
2113
|
"data-cy": "slot",
|
|
2114
2114
|
class: "d-flex align-items-center"
|
|
2115
|
-
},
|
|
2115
|
+
}, bo = /* @__PURE__ */ z({
|
|
2116
2116
|
__name: "ForgePageHeader",
|
|
2117
2117
|
props: {
|
|
2118
2118
|
title: {}
|
|
2119
2119
|
},
|
|
2120
2120
|
setup(e) {
|
|
2121
2121
|
const t = e;
|
|
2122
|
-
return (a, i) => (d(), b("div",
|
|
2123
|
-
m("h3",
|
|
2124
|
-
m("div",
|
|
2122
|
+
return (a, i) => (d(), b("div", la, [
|
|
2123
|
+
m("h3", na, $(t.title), 1),
|
|
2124
|
+
m("div", sa, [
|
|
2125
2125
|
C(a.$slots, "default")
|
|
2126
2126
|
])
|
|
2127
2127
|
]));
|
|
2128
2128
|
}
|
|
2129
|
-
}),
|
|
2129
|
+
}), ra = { class: "d-flex flex-1" }, da = { "data-cy": "before-slot" }, pa = { class: "position-relative d-flex flex-1" }, ca = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ z({
|
|
2130
2130
|
__name: "ForgeDatepicker",
|
|
2131
2131
|
props: /* @__PURE__ */ E({
|
|
2132
2132
|
severity: { default: "primary" },
|
|
@@ -2205,7 +2205,7 @@ const Et = {
|
|
|
2205
2205
|
initialValue: a.value
|
|
2206
2206
|
}), p = () => {
|
|
2207
2207
|
s(null), a.value = null;
|
|
2208
|
-
}, u =
|
|
2208
|
+
}, u = M(() => i.value.length > 0), h = M(() => ({
|
|
2209
2209
|
day: ({ context: r, props: w, attrs: v }) => ({
|
|
2210
2210
|
class: [
|
|
2211
2211
|
"d-flex justify-content-center align-items-center",
|
|
@@ -2311,31 +2311,31 @@ const Et = {
|
|
|
2311
2311
|
})
|
|
2312
2312
|
}));
|
|
2313
2313
|
return (r, w) => {
|
|
2314
|
-
const v =
|
|
2314
|
+
const v = Oe;
|
|
2315
2315
|
return d(), b(N, null, [
|
|
2316
|
-
m("div",
|
|
2317
|
-
m("span",
|
|
2316
|
+
m("div", ra, [
|
|
2317
|
+
m("span", da, [
|
|
2318
2318
|
C(r.$slots, "before")
|
|
2319
2319
|
]),
|
|
2320
|
-
m("div",
|
|
2320
|
+
m("div", pa, [
|
|
2321
2321
|
k(v, j({ ...t, ...r.$attrs }, {
|
|
2322
2322
|
pt: h.value,
|
|
2323
2323
|
modelValue: a.value,
|
|
2324
2324
|
"onUpdate:modelValue": [
|
|
2325
|
-
w[0] || (w[0] = (
|
|
2325
|
+
w[0] || (w[0] = (S) => a.value = S),
|
|
2326
2326
|
c(l)
|
|
2327
2327
|
],
|
|
2328
2328
|
onBlur: w[1] || (w[1] = () => c(n)),
|
|
2329
2329
|
"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) }
|
|
2330
2330
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2331
|
-
K(k(c(
|
|
2331
|
+
K(k(c(_), {
|
|
2332
2332
|
"data-cy": "icon",
|
|
2333
2333
|
icon: "bi:calendar4",
|
|
2334
2334
|
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"}`])
|
|
2335
2335
|
}, null, 8, ["class"]), [
|
|
2336
2336
|
[X, t.showIcon && !t.inline]
|
|
2337
2337
|
]),
|
|
2338
|
-
K(k(c(
|
|
2338
|
+
K(k(c(_), {
|
|
2339
2339
|
"data-cy": "icon",
|
|
2340
2340
|
icon: "bi:x",
|
|
2341
2341
|
onClick: p,
|
|
@@ -2344,7 +2344,7 @@ const Et = {
|
|
|
2344
2344
|
[X, t.modelValue && !t.inline && !r.readonly]
|
|
2345
2345
|
])
|
|
2346
2346
|
]),
|
|
2347
|
-
m("span",
|
|
2347
|
+
m("span", ca, [
|
|
2348
2348
|
C(r.$slots, "after")
|
|
2349
2349
|
])
|
|
2350
2350
|
]),
|
|
@@ -2357,19 +2357,19 @@ const Et = {
|
|
|
2357
2357
|
], 64);
|
|
2358
2358
|
};
|
|
2359
2359
|
}
|
|
2360
|
-
}),
|
|
2360
|
+
}), yo = /* @__PURE__ */ z({
|
|
2361
2361
|
__name: "ForgeRemainingCharacters",
|
|
2362
2362
|
props: {
|
|
2363
2363
|
maxCount: { default: 300 },
|
|
2364
2364
|
currentCount: {}
|
|
2365
2365
|
},
|
|
2366
2366
|
setup(e) {
|
|
2367
|
-
const t = e, a =
|
|
2367
|
+
const t = e, a = M(() => t.maxCount - t.currentCount);
|
|
2368
2368
|
return (i, o) => (d(), b("div", {
|
|
2369
2369
|
class: P(a.value < 0 ? "text-danger" : "")
|
|
2370
2370
|
}, "Remaining characters: " + $(a.value), 3));
|
|
2371
2371
|
}
|
|
2372
|
-
}),
|
|
2372
|
+
}), ua = { class: "d-flex justify-content-between" }, xo = /* @__PURE__ */ z({
|
|
2373
2373
|
__name: "ForgeForm",
|
|
2374
2374
|
props: {
|
|
2375
2375
|
onSubmit: {},
|
|
@@ -2381,7 +2381,7 @@ const Et = {
|
|
|
2381
2381
|
hideCancel: { type: Boolean, default: !1 }
|
|
2382
2382
|
},
|
|
2383
2383
|
setup(e) {
|
|
2384
|
-
const t = e, a =
|
|
2384
|
+
const t = e, a = I(!1), i = I({
|
|
2385
2385
|
hasError: !1,
|
|
2386
2386
|
message: ""
|
|
2387
2387
|
});
|
|
@@ -2425,7 +2425,7 @@ const Et = {
|
|
|
2425
2425
|
_: 3
|
|
2426
2426
|
})) : T("", !0),
|
|
2427
2427
|
C(l.$slots, "default"),
|
|
2428
|
-
m("div",
|
|
2428
|
+
m("div", ua, [
|
|
2429
2429
|
C(l.$slots, "cancel", {}, () => [
|
|
2430
2430
|
l.hideCancel ? T("", !0) : (d(), x(s, {
|
|
2431
2431
|
key: 0,
|
|
@@ -2462,16 +2462,16 @@ const Et = {
|
|
|
2462
2462
|
], 16);
|
|
2463
2463
|
};
|
|
2464
2464
|
}
|
|
2465
|
-
}),
|
|
2465
|
+
}), ma = {
|
|
2466
2466
|
key: 1,
|
|
2467
2467
|
class: "d-flex flex-column w-100"
|
|
2468
|
-
},
|
|
2468
|
+
}, va = ["for"], fa = {
|
|
2469
2469
|
key: 0,
|
|
2470
2470
|
class: "text-danger fw-600"
|
|
2471
|
-
},
|
|
2471
|
+
}, ga = {
|
|
2472
2472
|
class: "flex--1",
|
|
2473
2473
|
style: { flex: "1 0 auto" }
|
|
2474
|
-
},
|
|
2474
|
+
}, ho = /* @__PURE__ */ z({
|
|
2475
2475
|
__name: "ForgeFormField",
|
|
2476
2476
|
props: /* @__PURE__ */ E({
|
|
2477
2477
|
name: {},
|
|
@@ -2492,11 +2492,11 @@ const Et = {
|
|
|
2492
2492
|
a.type == "number" ? s(h.value) : s(h);
|
|
2493
2493
|
}, { errors: o, value: l, errorMessage: n, handleChange: s, handleBlur: p } = se(() => a.name, void 0, {
|
|
2494
2494
|
initialValue: t.value
|
|
2495
|
-
}), u =
|
|
2495
|
+
}), u = M(() => o.value.length > 0);
|
|
2496
2496
|
return W(() => l.value, (h) => {
|
|
2497
2497
|
t.value = h;
|
|
2498
2498
|
}, { immediate: !0 }), (h, r) => {
|
|
2499
|
-
const w =
|
|
2499
|
+
const w = Le, v = Ae, S = ae, F = oe, A = de, f = xe;
|
|
2500
2500
|
return a.type === "checkbox" ? (d(), x(ye, j({
|
|
2501
2501
|
key: 0,
|
|
2502
2502
|
id: a.name,
|
|
@@ -2505,7 +2505,7 @@ const Et = {
|
|
|
2505
2505
|
name: a.name,
|
|
2506
2506
|
modelValue: t.value,
|
|
2507
2507
|
"onUpdate:modelValue": r[0] || (r[0] = (B) => t.value = B)
|
|
2508
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div",
|
|
2508
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div", ma, [
|
|
2509
2509
|
m("div", {
|
|
2510
2510
|
"data-cy": "input-wrapper",
|
|
2511
2511
|
class: P(["d-flex flex--1", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2515,9 +2515,9 @@ const Et = {
|
|
|
2515
2515
|
class: P(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2516
2516
|
}, [
|
|
2517
2517
|
V($(a.fieldLabel) + " ", 1),
|
|
2518
|
-
h.required ? (d(), b("span",
|
|
2519
|
-
], 10,
|
|
2520
|
-
m("div",
|
|
2518
|
+
h.required ? (d(), b("span", fa, "*")) : T("", !0)
|
|
2519
|
+
], 10, va),
|
|
2520
|
+
m("div", ga, [
|
|
2521
2521
|
C(h.$slots, "default", G(Y({ modelValue: t.value, updateModel: c(s), hasErrors: u.value })), () => [
|
|
2522
2522
|
a.type === "number" ? (d(), x(c(fe), j({
|
|
2523
2523
|
key: 0,
|
|
@@ -2550,7 +2550,7 @@ const Et = {
|
|
|
2550
2550
|
"onUpdate:modelValue": r[3] || (r[3] = (B) => t.value = B),
|
|
2551
2551
|
onComplete: i,
|
|
2552
2552
|
onBlur: c(p)
|
|
2553
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(
|
|
2553
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(S, j({
|
|
2554
2554
|
key: 3,
|
|
2555
2555
|
id: a.name
|
|
2556
2556
|
}, h.$attrs, {
|
|
@@ -2560,7 +2560,7 @@ const Et = {
|
|
|
2560
2560
|
"onUpdate:modelValue": r[4] || (r[4] = (B) => t.value = B),
|
|
2561
2561
|
onInput: i,
|
|
2562
2562
|
onBlur: c(p)
|
|
2563
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(
|
|
2563
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(F, j({ key: 4 }, { ...a, ...h.$attrs }, {
|
|
2564
2564
|
modelValue: t.value,
|
|
2565
2565
|
"onUpdate:modelValue": r[5] || (r[5] = (B) => t.value = B),
|
|
2566
2566
|
class: { "is-invalid": u.value }
|
|
@@ -2568,7 +2568,7 @@ const Et = {
|
|
|
2568
2568
|
modelValue: t.value,
|
|
2569
2569
|
"onUpdate:modelValue": r[6] || (r[6] = (B) => t.value = B),
|
|
2570
2570
|
class: { "is-invalid": u.value }
|
|
2571
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(
|
|
2571
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(oa, j({ key: 6 }, { ...a, ...h.$attrs }, {
|
|
2572
2572
|
modelValue: t.value,
|
|
2573
2573
|
"onUpdate:modelValue": r[7] || (r[7] = (B) => t.value = B),
|
|
2574
2574
|
class: { "is-invalid": u.value }
|
|
@@ -2589,7 +2589,7 @@ const Et = {
|
|
|
2589
2589
|
]));
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
|
-
}),
|
|
2592
|
+
}), wo = /* @__PURE__ */ z({
|
|
2593
2593
|
__name: "ForgeChip",
|
|
2594
2594
|
props: {
|
|
2595
2595
|
chipSeverity: { default: "primary" },
|
|
@@ -2605,7 +2605,7 @@ const Et = {
|
|
|
2605
2605
|
unstyled: { type: Boolean }
|
|
2606
2606
|
},
|
|
2607
2607
|
setup(e) {
|
|
2608
|
-
const t = e, a =
|
|
2608
|
+
const t = e, a = M(() => ({
|
|
2609
2609
|
root: [
|
|
2610
2610
|
"badge d-inline-flex align-items-center border me-1 p-1",
|
|
2611
2611
|
{
|
|
@@ -2624,7 +2624,7 @@ const Et = {
|
|
|
2624
2624
|
]
|
|
2625
2625
|
}));
|
|
2626
2626
|
return (i, o) => {
|
|
2627
|
-
const l =
|
|
2627
|
+
const l = Ne;
|
|
2628
2628
|
return d(), x(l, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2629
2629
|
default: g(() => [
|
|
2630
2630
|
(d(!0), b(N, null, U(i.$slots, (n, s) => C(i.$slots, s, { slot: s })), 256))
|
|
@@ -2633,7 +2633,7 @@ const Et = {
|
|
|
2633
2633
|
}, 16, ["pt"]);
|
|
2634
2634
|
};
|
|
2635
2635
|
}
|
|
2636
|
-
}),
|
|
2636
|
+
}), ko = /* @__PURE__ */ z({
|
|
2637
2637
|
__name: "ForgeProgressBar",
|
|
2638
2638
|
props: {
|
|
2639
2639
|
severity: { default: "primary" },
|
|
@@ -2649,7 +2649,7 @@ const Et = {
|
|
|
2649
2649
|
unstyled: { type: Boolean }
|
|
2650
2650
|
},
|
|
2651
2651
|
setup(e) {
|
|
2652
|
-
const t = e, a =
|
|
2652
|
+
const t = e, a = M(() => t.striped ? "progress-bar-striped" : null), i = M(() => t.animate ? "progress-bar-animated" : null), o = M(() => {
|
|
2653
2653
|
switch (t.severity) {
|
|
2654
2654
|
case "brand":
|
|
2655
2655
|
return "bg-brand";
|
|
@@ -2670,7 +2670,7 @@ const Et = {
|
|
|
2670
2670
|
default:
|
|
2671
2671
|
return "bg-primary";
|
|
2672
2672
|
}
|
|
2673
|
-
}), l =
|
|
2673
|
+
}), l = M(() => ({
|
|
2674
2674
|
root: {
|
|
2675
2675
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2676
2676
|
},
|
|
@@ -2679,7 +2679,7 @@ const Et = {
|
|
|
2679
2679
|
}
|
|
2680
2680
|
}));
|
|
2681
2681
|
return (n, s) => {
|
|
2682
|
-
const p =
|
|
2682
|
+
const p = Ue;
|
|
2683
2683
|
return d(), x(p, j({ ...n.$attrs, ...t }, { pt: l.value }), {
|
|
2684
2684
|
default: g(() => [
|
|
2685
2685
|
C(n.$slots, "default")
|
|
@@ -2689,7 +2689,7 @@ const Et = {
|
|
|
2689
2689
|
};
|
|
2690
2690
|
}
|
|
2691
2691
|
});
|
|
2692
|
-
var
|
|
2692
|
+
var ba = /* @__PURE__ */ z({
|
|
2693
2693
|
name: "VueDrawingCanvas",
|
|
2694
2694
|
props: {
|
|
2695
2695
|
strokeType: {
|
|
@@ -3002,11 +3002,11 @@ var ga = /* @__PURE__ */ z({
|
|
|
3002
3002
|
},
|
|
3003
3003
|
wrapText(e, t, a, i, o, l) {
|
|
3004
3004
|
const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
3005
|
-
var p = t.split(n).filter((
|
|
3006
|
-
for (let
|
|
3007
|
-
for (var u = p[
|
|
3008
|
-
var w = h + u[r] + " ", v = e.measureText(w),
|
|
3009
|
-
|
|
3005
|
+
var p = t.split(n).filter((F) => F.length > 0);
|
|
3006
|
+
for (let F = 0; F < p.length; F++) {
|
|
3007
|
+
for (var u = p[F].split(s).filter((A) => A.length > 0), h = "", r = 0; r < u.length; r++) {
|
|
3008
|
+
var w = h + u[r] + " ", v = e.measureText(w), S = v.width;
|
|
3009
|
+
S > o && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(h, a, i) : e.fillText(h, a, i), h = u[r] + " ", i += l) : h = w;
|
|
3010
3010
|
}
|
|
3011
3011
|
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(h, a, i) : e.fillText(h, a, i), i += u.length > 0 ? l : 0;
|
|
3012
3012
|
}
|
|
@@ -3052,7 +3052,7 @@ var ga = /* @__PURE__ */ z({
|
|
|
3052
3052
|
}
|
|
3053
3053
|
},
|
|
3054
3054
|
render() {
|
|
3055
|
-
return
|
|
3055
|
+
return Te("canvas", {
|
|
3056
3056
|
id: this.canvasId,
|
|
3057
3057
|
height: Number(this.height),
|
|
3058
3058
|
width: Number(this.width),
|
|
@@ -3079,7 +3079,7 @@ var ga = /* @__PURE__ */ z({
|
|
|
3079
3079
|
});
|
|
3080
3080
|
}
|
|
3081
3081
|
});
|
|
3082
|
-
const
|
|
3082
|
+
const ya = { class: "d-flex flex-column" }, xa = { class: "d-flex flex-row mt-1 gap-1" }, Bo = /* @__PURE__ */ z({
|
|
3083
3083
|
__name: "ForgeScratchpad",
|
|
3084
3084
|
props: {
|
|
3085
3085
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -3092,7 +3092,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3092
3092
|
},
|
|
3093
3093
|
emits: ["save"],
|
|
3094
3094
|
setup(e, { emit: t }) {
|
|
3095
|
-
const a = e, i = t, o =
|
|
3095
|
+
const a = e, i = t, o = ze("drawingCanvas"), l = I(), n = () => {
|
|
3096
3096
|
o == null || o.value.reset();
|
|
3097
3097
|
}, s = () => {
|
|
3098
3098
|
o == null || o.value.redo();
|
|
@@ -3103,8 +3103,8 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3103
3103
|
};
|
|
3104
3104
|
return (h, r) => {
|
|
3105
3105
|
const w = q;
|
|
3106
|
-
return d(), b("div",
|
|
3107
|
-
k(c(
|
|
3106
|
+
return d(), b("div", ya, [
|
|
3107
|
+
k(c(ba), j({
|
|
3108
3108
|
ref_key: "drawingCanvas",
|
|
3109
3109
|
ref: o,
|
|
3110
3110
|
image: l.value,
|
|
@@ -3117,18 +3117,17 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3117
3117
|
style: `height: ${h.height}px; width: ${h.width}px`,
|
|
3118
3118
|
"line-join": h.lineJoin
|
|
3119
3119
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
3120
|
-
m("div",
|
|
3120
|
+
m("div", xa, [
|
|
3121
3121
|
a.showUndo ? (d(), x(w, {
|
|
3122
3122
|
key: 0,
|
|
3123
3123
|
onClick: p,
|
|
3124
3124
|
outlined: "",
|
|
3125
3125
|
"data-cy": "undo-button"
|
|
3126
3126
|
}, {
|
|
3127
|
-
default: g(() => r[1] || (r[1] = [
|
|
3127
|
+
default: g(() => [...r[1] || (r[1] = [
|
|
3128
3128
|
V("Undo", -1)
|
|
3129
|
-
])),
|
|
3130
|
-
_: 1
|
|
3131
|
-
__: [1]
|
|
3129
|
+
])]),
|
|
3130
|
+
_: 1
|
|
3132
3131
|
})) : T("", !0),
|
|
3133
3132
|
a.showRedo ? (d(), x(w, {
|
|
3134
3133
|
key: 1,
|
|
@@ -3136,11 +3135,10 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3136
3135
|
outlined: "",
|
|
3137
3136
|
"data-cy": "redo-button"
|
|
3138
3137
|
}, {
|
|
3139
|
-
default: g(() => r[2] || (r[2] = [
|
|
3138
|
+
default: g(() => [...r[2] || (r[2] = [
|
|
3140
3139
|
V("Redo", -1)
|
|
3141
|
-
])),
|
|
3142
|
-
_: 1
|
|
3143
|
-
__: [2]
|
|
3140
|
+
])]),
|
|
3141
|
+
_: 1
|
|
3144
3142
|
})) : T("", !0),
|
|
3145
3143
|
a.showClear ? (d(), x(w, {
|
|
3146
3144
|
key: 2,
|
|
@@ -3148,11 +3146,10 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3148
3146
|
outlined: "",
|
|
3149
3147
|
"data-cy": "clear-button"
|
|
3150
3148
|
}, {
|
|
3151
|
-
default: g(() => r[3] || (r[3] = [
|
|
3149
|
+
default: g(() => [...r[3] || (r[3] = [
|
|
3152
3150
|
V("Clear", -1)
|
|
3153
|
-
])),
|
|
3154
|
-
_: 1
|
|
3155
|
-
__: [3]
|
|
3151
|
+
])]),
|
|
3152
|
+
_: 1
|
|
3156
3153
|
})) : T("", !0),
|
|
3157
3154
|
a.showSave ? (d(), x(w, {
|
|
3158
3155
|
key: 3,
|
|
@@ -3160,17 +3157,16 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3160
3157
|
class: "ms-auto",
|
|
3161
3158
|
"data-cy": "save-button"
|
|
3162
3159
|
}, {
|
|
3163
|
-
default: g(() => r[4] || (r[4] = [
|
|
3160
|
+
default: g(() => [...r[4] || (r[4] = [
|
|
3164
3161
|
V("Save", -1)
|
|
3165
|
-
])),
|
|
3166
|
-
_: 1
|
|
3167
|
-
__: [4]
|
|
3162
|
+
])]),
|
|
3163
|
+
_: 1
|
|
3168
3164
|
})) : T("", !0)
|
|
3169
3165
|
])
|
|
3170
3166
|
]);
|
|
3171
3167
|
};
|
|
3172
3168
|
}
|
|
3173
|
-
}),
|
|
3169
|
+
}), ha = { class: "value text-white w-100 text-center" }, $o = /* @__PURE__ */ z({
|
|
3174
3170
|
__name: "ForgeStatWidget",
|
|
3175
3171
|
props: {
|
|
3176
3172
|
size: { default: "md" },
|
|
@@ -3181,12 +3177,12 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3181
3177
|
return (a, i) => (d(), b("div", j(a.$attrs, {
|
|
3182
3178
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3183
3179
|
}), [
|
|
3184
|
-
m("span",
|
|
3180
|
+
m("span", ha, [
|
|
3185
3181
|
C(a.$slots, "default")
|
|
3186
3182
|
])
|
|
3187
3183
|
], 16));
|
|
3188
3184
|
}
|
|
3189
|
-
}),
|
|
3185
|
+
}), wa = { key: 0 }, Fo = /* @__PURE__ */ z({
|
|
3190
3186
|
__name: "ForgeStepper",
|
|
3191
3187
|
props: {
|
|
3192
3188
|
currentStep: { default: 1 },
|
|
@@ -3204,7 +3200,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3204
3200
|
unstyled: { type: Boolean }
|
|
3205
3201
|
},
|
|
3206
3202
|
setup(e) {
|
|
3207
|
-
const t = e, a =
|
|
3203
|
+
const t = e, a = M(() => ({
|
|
3208
3204
|
header: {
|
|
3209
3205
|
class: [
|
|
3210
3206
|
"p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
|
|
@@ -3233,26 +3229,26 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3233
3229
|
]
|
|
3234
3230
|
})
|
|
3235
3231
|
}));
|
|
3236
|
-
return (i, o) => (d(), x(c(
|
|
3232
|
+
return (i, o) => (d(), x(c(qe), { value: i.currentStep }, {
|
|
3237
3233
|
default: g(() => [
|
|
3238
|
-
k(c(
|
|
3234
|
+
k(c(Re), null, {
|
|
3239
3235
|
default: g(() => [
|
|
3240
|
-
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(
|
|
3236
|
+
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(Ee), j({
|
|
3241
3237
|
key: l.value,
|
|
3242
3238
|
value: l.value,
|
|
3243
3239
|
disabled: l.disabled
|
|
3244
3240
|
}, { ref_for: !0 }, { ...i.$attrs }, { pt: a.value }), {
|
|
3245
3241
|
default: g(() => [
|
|
3246
|
-
i.showStepLabel ? (d(), b("div",
|
|
3242
|
+
i.showStepLabel ? (d(), b("div", wa, $(l.label), 1)) : T("", !0)
|
|
3247
3243
|
]),
|
|
3248
3244
|
_: 2
|
|
3249
3245
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
3250
3246
|
]),
|
|
3251
3247
|
_: 1
|
|
3252
3248
|
}),
|
|
3253
|
-
k(c(
|
|
3249
|
+
k(c(We), null, {
|
|
3254
3250
|
default: g(() => [
|
|
3255
|
-
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(
|
|
3251
|
+
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(He), {
|
|
3256
3252
|
key: l.value,
|
|
3257
3253
|
value: l.value
|
|
3258
3254
|
}, {
|
|
@@ -3268,7 +3264,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3268
3264
|
_: 3
|
|
3269
3265
|
}, 8, ["value"]));
|
|
3270
3266
|
}
|
|
3271
|
-
}),
|
|
3267
|
+
}), ka = { class: "p-4 text-wrap w-100" }, Ba = { class: "p-4 text-wrap w-100" }, So = /* @__PURE__ */ z({
|
|
3272
3268
|
__name: "ForgeTile",
|
|
3273
3269
|
props: {
|
|
3274
3270
|
severity: { default: "primary" },
|
|
@@ -3277,7 +3273,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3277
3273
|
selected: { type: Boolean, default: !1 }
|
|
3278
3274
|
},
|
|
3279
3275
|
setup(e) {
|
|
3280
|
-
const t = e, a =
|
|
3276
|
+
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" : ""}`);
|
|
3281
3277
|
return (o, l) => {
|
|
3282
3278
|
const n = q;
|
|
3283
3279
|
return t.clickable ? (d(), x(n, {
|
|
@@ -3288,7 +3284,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3288
3284
|
"data-cy": "button-tile"
|
|
3289
3285
|
}, {
|
|
3290
3286
|
default: g(() => [
|
|
3291
|
-
m("div",
|
|
3287
|
+
m("div", ka, [
|
|
3292
3288
|
C(o.$slots, "default", {}, () => [
|
|
3293
3289
|
l[0] || (l[0] = V("Tile Content", -1))
|
|
3294
3290
|
])
|
|
@@ -3300,7 +3296,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3300
3296
|
class: P(["d-flex w-100", i.value]),
|
|
3301
3297
|
"data-cy": "tile"
|
|
3302
3298
|
}, [
|
|
3303
|
-
m("div",
|
|
3299
|
+
m("div", Ba, [
|
|
3304
3300
|
C(o.$slots, "default", {}, () => [
|
|
3305
3301
|
l[1] || (l[1] = V("Tile Content", -1))
|
|
3306
3302
|
])
|
|
@@ -3312,10 +3308,10 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3312
3308
|
function ee(e, t) {
|
|
3313
3309
|
return e > 1 ? `${t}s` : t;
|
|
3314
3310
|
}
|
|
3315
|
-
const
|
|
3311
|
+
const $a = {
|
|
3316
3312
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3317
3313
|
"data-cy": "pagination-header"
|
|
3318
|
-
},
|
|
3314
|
+
}, Fa = { class: "ms-2" }, Sa = { key: 0 }, Ca = {
|
|
3319
3315
|
class: "w-auto",
|
|
3320
3316
|
"data-cy": "total"
|
|
3321
3317
|
}, he = /* @__PURE__ */ z({
|
|
@@ -3329,13 +3325,13 @@ const Ba = {
|
|
|
3329
3325
|
setup(e, { emit: t }) {
|
|
3330
3326
|
const a = t, i = e, o = (n) => {
|
|
3331
3327
|
a("update:perPage", n.value);
|
|
3332
|
-
}, l =
|
|
3328
|
+
}, l = M(() => {
|
|
3333
3329
|
const n = Math.ceil(i.total / i.perPage);
|
|
3334
3330
|
return `${n} ${ee(n, "page")}`;
|
|
3335
3331
|
});
|
|
3336
|
-
return (n, s) => (d(), b("div",
|
|
3332
|
+
return (n, s) => (d(), b("div", $a, [
|
|
3337
3333
|
s[2] || (s[2] = V(" Number of results per page ", -1)),
|
|
3338
|
-
m("div",
|
|
3334
|
+
m("div", Fa, [
|
|
3339
3335
|
k(c(oe), {
|
|
3340
3336
|
options: i.pageSizes,
|
|
3341
3337
|
"model-value": i.perPage,
|
|
@@ -3346,14 +3342,14 @@ const Ba = {
|
|
|
3346
3342
|
]),
|
|
3347
3343
|
i.total ? (d(), b("div", Sa, [
|
|
3348
3344
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3349
|
-
m("span",
|
|
3345
|
+
m("span", Ca, $(i.total) + " " + $(c(ee)(i.total, "result")) + " across " + $(l.value), 1)
|
|
3350
3346
|
])) : T("", !0)
|
|
3351
3347
|
]));
|
|
3352
3348
|
}
|
|
3353
|
-
}),
|
|
3349
|
+
}), Ta = { class: "position-relative" }, za = { "data-cy": "above-table-slot" }, Pa = { class: "d-flex w-100" }, ja = {
|
|
3354
3350
|
class: "mx-auto",
|
|
3355
3351
|
"data-cy": "empty-message"
|
|
3356
|
-
},
|
|
3352
|
+
}, Ma = { class: "d-flex" }, Ia = { class: "d-flex align-items-end mb-2" }, _a = { key: 0 }, Va = { class: "ms-auto" }, Co = /* @__PURE__ */ z({
|
|
3357
3353
|
__name: "ForgeTable",
|
|
3358
3354
|
props: {
|
|
3359
3355
|
value: {},
|
|
@@ -3440,7 +3436,7 @@ const Ba = {
|
|
|
3440
3436
|
},
|
|
3441
3437
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3442
3438
|
setup(e, { emit: t }) {
|
|
3443
|
-
const a = t, i = e, o =
|
|
3439
|
+
const a = t, i = e, o = I(), l = I([5, 10, 20, 50, 100]), n = I(i.perPage ?? 10), s = I({
|
|
3444
3440
|
filters: i.filters,
|
|
3445
3441
|
perPage: n.value,
|
|
3446
3442
|
page: 0,
|
|
@@ -3451,10 +3447,10 @@ const Ba = {
|
|
|
3451
3447
|
W(() => i.perPage, (f) => {
|
|
3452
3448
|
f && (n.value = f, s.value.perPage = f);
|
|
3453
3449
|
});
|
|
3454
|
-
const p =
|
|
3450
|
+
const p = M(() => i.totalRecords ?? i.value.length), u = M(() => {
|
|
3455
3451
|
const f = Math.ceil(p.value / n.value);
|
|
3456
3452
|
return `${f} ${ee(f, "page")}`;
|
|
3457
|
-
}), h =
|
|
3453
|
+
}), h = M(() => ({
|
|
3458
3454
|
thead: () => ({
|
|
3459
3455
|
class: [
|
|
3460
3456
|
{
|
|
@@ -3483,26 +3479,26 @@ const Ba = {
|
|
|
3483
3479
|
else
|
|
3484
3480
|
for (const f in i.filters)
|
|
3485
3481
|
typeof i.filters[f] == "string" ? i.filters[f] = "" : i.filters[f].value = null;
|
|
3486
|
-
|
|
3482
|
+
S(i.filters);
|
|
3487
3483
|
}, w = () => {
|
|
3488
3484
|
o.value.exportCSV();
|
|
3489
3485
|
}, v = (f) => {
|
|
3490
3486
|
var B;
|
|
3491
3487
|
s.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((B = f.sortField) == null ? void 0 : B.toString()) ?? "", a("update:tableContext", s.value), a("sort", f);
|
|
3492
|
-
}, F = (f) => {
|
|
3493
|
-
s.value.filters = f, a("update:tableContext", s.value), a("update:filters", f);
|
|
3494
3488
|
}, S = (f) => {
|
|
3489
|
+
s.value.filters = f, a("update:tableContext", s.value), a("update:filters", f);
|
|
3490
|
+
}, F = (f) => {
|
|
3495
3491
|
s.value.page = f.page, a("update:tableContext", s.value), a("page", f);
|
|
3496
3492
|
}, A = () => {
|
|
3497
3493
|
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3498
3494
|
};
|
|
3499
3495
|
return W(() => i.filters, (f) => {
|
|
3500
3496
|
s.value.filters = f, a("update:tableContext", s.value);
|
|
3501
|
-
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (f, B) => (d(), b("div",
|
|
3502
|
-
m("span",
|
|
3497
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (f, B) => (d(), b("div", Ta, [
|
|
3498
|
+
m("span", za, [
|
|
3503
3499
|
C(f.$slots, "above-table")
|
|
3504
3500
|
]),
|
|
3505
|
-
k(c(
|
|
3501
|
+
k(c(Ge), j({
|
|
3506
3502
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3507
3503
|
}, { ...i, ...f.$attrs }, {
|
|
3508
3504
|
pt: h.value,
|
|
@@ -3512,23 +3508,23 @@ const Ba = {
|
|
|
3512
3508
|
ref_key: "forgeTable",
|
|
3513
3509
|
ref: o,
|
|
3514
3510
|
"data-cy": "table",
|
|
3515
|
-
"onUpdate:filters":
|
|
3511
|
+
"onUpdate:filters": S,
|
|
3516
3512
|
onSort: v,
|
|
3517
|
-
onPage:
|
|
3513
|
+
onPage: F,
|
|
3518
3514
|
showHeaders: ""
|
|
3519
3515
|
}), ie({
|
|
3520
3516
|
empty: g(() => [
|
|
3521
|
-
m("div",
|
|
3522
|
-
m("h5",
|
|
3517
|
+
m("div", Pa, [
|
|
3518
|
+
m("h5", ja, $(f.emptyMessage ?? "No items Found."), 1)
|
|
3523
3519
|
])
|
|
3524
3520
|
]),
|
|
3525
3521
|
header: g(() => [
|
|
3526
3522
|
m("div", {
|
|
3527
3523
|
class: P(i.loading ? "opacity-50" : "")
|
|
3528
3524
|
}, [
|
|
3529
|
-
m("div",
|
|
3530
|
-
m("div",
|
|
3531
|
-
f.paginator && !f.legacyPaginationFooter ? (d(), b("span",
|
|
3525
|
+
m("div", Ma, [
|
|
3526
|
+
m("div", Ia, [
|
|
3527
|
+
f.paginator && !f.legacyPaginationFooter ? (d(), b("span", _a, [
|
|
3532
3528
|
k(he, {
|
|
3533
3529
|
total: p.value,
|
|
3534
3530
|
"page-sizes": l.value,
|
|
@@ -3540,7 +3536,7 @@ const Ba = {
|
|
|
3540
3536
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3541
3537
|
])) : T("", !0)
|
|
3542
3538
|
]),
|
|
3543
|
-
m("div",
|
|
3539
|
+
m("div", Va, [
|
|
3544
3540
|
f.showClearButton ? (d(), x(c(q), {
|
|
3545
3541
|
key: 0,
|
|
3546
3542
|
outlined: "",
|
|
@@ -3549,15 +3545,14 @@ const Ba = {
|
|
|
3549
3545
|
"data-cy": "clear-all"
|
|
3550
3546
|
}, {
|
|
3551
3547
|
default: g(() => [
|
|
3552
|
-
k(c(
|
|
3548
|
+
k(c(_), {
|
|
3553
3549
|
icon: "bi:funnel-fill",
|
|
3554
3550
|
width: "24",
|
|
3555
3551
|
height: "24"
|
|
3556
3552
|
}),
|
|
3557
3553
|
B[2] || (B[2] = V(" Clear ", -1))
|
|
3558
3554
|
]),
|
|
3559
|
-
_: 1
|
|
3560
|
-
__: [2]
|
|
3555
|
+
_: 1
|
|
3561
3556
|
}, 8, ["class"])) : T("", !0),
|
|
3562
3557
|
f.showExporterButton ? (d(), x(c(q), {
|
|
3563
3558
|
key: 1,
|
|
@@ -3566,15 +3561,14 @@ const Ba = {
|
|
|
3566
3561
|
"data-cy": "exporter"
|
|
3567
3562
|
}, {
|
|
3568
3563
|
default: g(() => [
|
|
3569
|
-
k(c(
|
|
3564
|
+
k(c(_), {
|
|
3570
3565
|
icon: "typcn:export",
|
|
3571
3566
|
width: "24",
|
|
3572
3567
|
height: "24"
|
|
3573
3568
|
}),
|
|
3574
3569
|
B[3] || (B[3] = V(" Export ", -1))
|
|
3575
3570
|
]),
|
|
3576
|
-
_: 1
|
|
3577
|
-
__: [3]
|
|
3571
|
+
_: 1
|
|
3578
3572
|
})) : T("", !0),
|
|
3579
3573
|
C(f.$slots, "column-customiser")
|
|
3580
3574
|
])
|
|
@@ -3624,10 +3618,10 @@ const Ba = {
|
|
|
3624
3618
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3625
3619
|
]));
|
|
3626
3620
|
}
|
|
3627
|
-
}),
|
|
3621
|
+
}), Da = { class: "position-relative" }, Oa = { "data-cy": "above-table-slot" }, Aa = { class: "d-flex w-100" }, La = {
|
|
3628
3622
|
class: "mx-auto",
|
|
3629
3623
|
"data-cy": "empty-message"
|
|
3630
|
-
},
|
|
3624
|
+
}, Na = { class: "d-flex" }, Ua = { class: "d-flex align-items-end mb-2" }, Ea = { key: 0 }, qa = { class: "ms-auto" }, To = /* @__PURE__ */ z({
|
|
3631
3625
|
__name: "ForgeTreeTable",
|
|
3632
3626
|
props: {
|
|
3633
3627
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3688,17 +3682,17 @@ const Ba = {
|
|
|
3688
3682
|
},
|
|
3689
3683
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3690
3684
|
setup(e, { emit: t }) {
|
|
3691
|
-
const a = e, i = t, o =
|
|
3685
|
+
const a = e, i = t, o = I([5, 10, 20, 50, 100]), l = I(10), n = I(0), s = I(0), p = I({
|
|
3692
3686
|
filters: a.filters,
|
|
3693
3687
|
perPage: l.value,
|
|
3694
3688
|
page: 0,
|
|
3695
3689
|
sortDirection: "None",
|
|
3696
3690
|
sortField: "",
|
|
3697
3691
|
total: a.totalRecords ?? a.value.length
|
|
3698
|
-
}), u =
|
|
3692
|
+
}), u = M(() => a.totalRecords ?? a.value.length), h = M(() => {
|
|
3699
3693
|
const y = Math.ceil(u.value / l.value);
|
|
3700
3694
|
return `${y} ${ee(y, "page")}`;
|
|
3701
|
-
}), r =
|
|
3695
|
+
}), r = M(() => ({
|
|
3702
3696
|
root: "position-relative",
|
|
3703
3697
|
table: (y) => ({
|
|
3704
3698
|
class: [
|
|
@@ -3768,14 +3762,14 @@ const Ba = {
|
|
|
3768
3762
|
},
|
|
3769
3763
|
0
|
|
3770
3764
|
);
|
|
3771
|
-
},
|
|
3765
|
+
}, S = () => {
|
|
3772
3766
|
if (a.clearAll)
|
|
3773
3767
|
a.clearAll();
|
|
3774
3768
|
else
|
|
3775
3769
|
for (const y in a.filters)
|
|
3776
3770
|
typeof a.filters[y] == "string" ? a.filters[y] = "" : a.filters[y].value = null;
|
|
3777
3771
|
A(a.filters);
|
|
3778
|
-
},
|
|
3772
|
+
}, F = (y) => {
|
|
3779
3773
|
var O;
|
|
3780
3774
|
p.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((O = y.sortField) == null ? void 0 : O.toString()) ?? "", i("update:tableContext", p.value), i("sort", y), w();
|
|
3781
3775
|
}, A = (y) => {
|
|
@@ -3795,11 +3789,11 @@ const Ba = {
|
|
|
3795
3789
|
const D = () => {
|
|
3796
3790
|
n.value = s.value * l.value;
|
|
3797
3791
|
};
|
|
3798
|
-
return (y, O) => (d(), b("div",
|
|
3799
|
-
m("span",
|
|
3792
|
+
return (y, O) => (d(), b("div", Da, [
|
|
3793
|
+
m("span", Oa, [
|
|
3800
3794
|
C(y.$slots, "above-table")
|
|
3801
3795
|
]),
|
|
3802
|
-
k(c(
|
|
3796
|
+
k(c(Ye), j({
|
|
3803
3797
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3804
3798
|
}, { ...a, ...y.$attrs }, {
|
|
3805
3799
|
pt: r.value,
|
|
@@ -3807,24 +3801,24 @@ const Ba = {
|
|
|
3807
3801
|
rows: y.paginator ? l.value : void 0,
|
|
3808
3802
|
"data-cy": "tree-table",
|
|
3809
3803
|
"onUpdate:filters": A,
|
|
3810
|
-
onSort:
|
|
3804
|
+
onSort: F,
|
|
3811
3805
|
onPage: f,
|
|
3812
3806
|
onNodeExpand: O[2] || (O[2] = () => w()),
|
|
3813
3807
|
showHeaders: "",
|
|
3814
3808
|
first: n.value
|
|
3815
3809
|
}), ie({
|
|
3816
3810
|
empty: g(() => [
|
|
3817
|
-
m("div",
|
|
3818
|
-
m("h5",
|
|
3811
|
+
m("div", Aa, [
|
|
3812
|
+
m("h5", La, $(y.emptyMessage ?? "No items Found."), 1)
|
|
3819
3813
|
])
|
|
3820
3814
|
]),
|
|
3821
3815
|
header: g(() => [
|
|
3822
3816
|
m("div", {
|
|
3823
3817
|
class: P(a.loading ? "opacity-50" : "")
|
|
3824
3818
|
}, [
|
|
3825
|
-
m("div",
|
|
3826
|
-
m("div",
|
|
3827
|
-
y.paginator && !y.legacyPaginationFooter ? (d(), b("span",
|
|
3819
|
+
m("div", Na, [
|
|
3820
|
+
m("div", Ua, [
|
|
3821
|
+
y.paginator && !y.legacyPaginationFooter ? (d(), b("span", Ea, [
|
|
3828
3822
|
k(he, {
|
|
3829
3823
|
total: u.value,
|
|
3830
3824
|
"page-sizes": o.value,
|
|
@@ -3836,23 +3830,22 @@ const Ba = {
|
|
|
3836
3830
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3837
3831
|
])) : T("", !0)
|
|
3838
3832
|
]),
|
|
3839
|
-
m("div",
|
|
3833
|
+
m("div", qa, [
|
|
3840
3834
|
y.showClearButton ? (d(), x(c(q), {
|
|
3841
3835
|
key: 0,
|
|
3842
3836
|
outlined: "",
|
|
3843
|
-
onClick:
|
|
3837
|
+
onClick: S,
|
|
3844
3838
|
"data-cy": "clear-all"
|
|
3845
3839
|
}, {
|
|
3846
3840
|
default: g(() => [
|
|
3847
|
-
k(c(
|
|
3841
|
+
k(c(_), {
|
|
3848
3842
|
icon: "bi:funnel-fill",
|
|
3849
3843
|
width: "24",
|
|
3850
3844
|
height: "24"
|
|
3851
3845
|
}),
|
|
3852
3846
|
O[3] || (O[3] = V(" Clear ", -1))
|
|
3853
3847
|
]),
|
|
3854
|
-
_: 1
|
|
3855
|
-
__: [3]
|
|
3848
|
+
_: 1
|
|
3856
3849
|
})) : T("", !0),
|
|
3857
3850
|
C(y.$slots, "column-customiser")
|
|
3858
3851
|
])
|
|
@@ -3866,8 +3859,8 @@ const Ba = {
|
|
|
3866
3859
|
}, [
|
|
3867
3860
|
U(y.$slots, (R, ve) => ({
|
|
3868
3861
|
name: ve,
|
|
3869
|
-
fn: g((
|
|
3870
|
-
C(y.$slots, ve, G(Y(
|
|
3862
|
+
fn: g(($e) => [
|
|
3863
|
+
C(y.$slots, ve, G(Y($e || {})))
|
|
3871
3864
|
])
|
|
3872
3865
|
})),
|
|
3873
3866
|
y.legacyPaginationFooter ? {
|
|
@@ -3902,7 +3895,7 @@ const Ba = {
|
|
|
3902
3895
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3903
3896
|
]));
|
|
3904
3897
|
}
|
|
3905
|
-
}),
|
|
3898
|
+
}), Ra = { class: "d-flex position-relative" }, Ha = { class: "d-flex w-100" }, zo = /* @__PURE__ */ z({
|
|
3906
3899
|
__name: "ForgeFilterHeader",
|
|
3907
3900
|
props: /* @__PURE__ */ E({
|
|
3908
3901
|
dataType: {},
|
|
@@ -3933,7 +3926,7 @@ const Ba = {
|
|
|
3933
3926
|
};
|
|
3934
3927
|
return (o, l) => {
|
|
3935
3928
|
const n = fe, s = q;
|
|
3936
|
-
return d(), b("div",
|
|
3929
|
+
return d(), b("div", Ra, [
|
|
3937
3930
|
o.dataType === "numeric" ? (d(), x(n, j({
|
|
3938
3931
|
key: 0,
|
|
3939
3932
|
modelValue: t.value,
|
|
@@ -3956,7 +3949,7 @@ const Ba = {
|
|
|
3956
3949
|
"option-label": o.optionLabel
|
|
3957
3950
|
}), {
|
|
3958
3951
|
value: g(({ value: p, placeholder: u }) => [
|
|
3959
|
-
m("div",
|
|
3952
|
+
m("div", Ha, [
|
|
3960
3953
|
m("span", {
|
|
3961
3954
|
class: P({ "filter-placeholder": p === null })
|
|
3962
3955
|
}, $(a(p, u)), 3),
|
|
@@ -3967,7 +3960,7 @@ const Ba = {
|
|
|
3967
3960
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3968
3961
|
}, {
|
|
3969
3962
|
default: g(() => [
|
|
3970
|
-
k(c(
|
|
3963
|
+
k(c(_), {
|
|
3971
3964
|
icon: "bi:x",
|
|
3972
3965
|
width: "1rem",
|
|
3973
3966
|
height: "1rem",
|
|
@@ -4002,7 +3995,7 @@ const Ba = {
|
|
|
4002
3995
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
4003
3996
|
}, {
|
|
4004
3997
|
default: g(() => [
|
|
4005
|
-
k(c(
|
|
3998
|
+
k(c(_), {
|
|
4006
3999
|
icon: "bi:x",
|
|
4007
4000
|
width: "1rem",
|
|
4008
4001
|
height: "1rem",
|
|
@@ -5153,20 +5146,24 @@ class we {
|
|
|
5153
5146
|
}
|
|
5154
5147
|
}
|
|
5155
5148
|
Z = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
|
|
5156
|
-
const
|
|
5149
|
+
const Wa = new we(ue, ce)._freeze();
|
|
5157
5150
|
function ke(e, t, a, i) {
|
|
5158
5151
|
const o = t.flatMap((l) => l.file);
|
|
5159
5152
|
return t = t.map((l) => ({ ...l, status: l.status == "Duplicate" ? "Not Uploaded" : l.status })), e.forEach((l) => {
|
|
5160
5153
|
const n = o.findIndex((p) => p.name === l.name);
|
|
5161
5154
|
let s = "Not Uploaded";
|
|
5162
|
-
n === -1
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5155
|
+
if (n === -1) {
|
|
5156
|
+
const p = Ka(l);
|
|
5157
|
+
!p || !a.includes(p) ? s = "InvalidFileType" : l.size <= i || (s = "InvalidFileSize"), t.unshift({
|
|
5158
|
+
file: l,
|
|
5159
|
+
status: s,
|
|
5160
|
+
blobFileName: null
|
|
5161
|
+
});
|
|
5162
|
+
} else
|
|
5163
|
+
t[n].status = "Duplicate";
|
|
5167
5164
|
}), t;
|
|
5168
5165
|
}
|
|
5169
|
-
async function
|
|
5166
|
+
async function Ga(e, t) {
|
|
5170
5167
|
if (e === "Uploaded" && t !== null)
|
|
5171
5168
|
try {
|
|
5172
5169
|
await new ge(t).delete();
|
|
@@ -5189,20 +5186,23 @@ function me(e, t = !0, a = 1) {
|
|
|
5189
5186
|
while (Math.round(Math.abs(e) * n) / n >= i && l < o.length - 1);
|
|
5190
5187
|
return e.toFixed(a) + " " + o[l];
|
|
5191
5188
|
}
|
|
5192
|
-
function
|
|
5189
|
+
function Ya(e) {
|
|
5193
5190
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
5194
5191
|
}
|
|
5195
|
-
function
|
|
5192
|
+
function Ja(e) {
|
|
5196
5193
|
return URL.createObjectURL(e);
|
|
5197
5194
|
}
|
|
5198
|
-
function
|
|
5195
|
+
function Ka(e) {
|
|
5196
|
+
return e.type ? e.type : Be().getType(e.name);
|
|
5197
|
+
}
|
|
5198
|
+
function Be() {
|
|
5199
5199
|
const e = new we(ue, ce);
|
|
5200
5200
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
5201
5201
|
}
|
|
5202
|
-
const
|
|
5202
|
+
const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disabled", "multiple"], Qa = {
|
|
5203
5203
|
class: "text-break accepted-file-types-container",
|
|
5204
5204
|
id: "accepted-file-types-overlay"
|
|
5205
|
-
},
|
|
5205
|
+
}, ei = /* @__PURE__ */ z({
|
|
5206
5206
|
__name: "UploadButton",
|
|
5207
5207
|
props: /* @__PURE__ */ E({
|
|
5208
5208
|
acceptedFileTypes: {},
|
|
@@ -5215,12 +5215,12 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5215
5215
|
}),
|
|
5216
5216
|
emits: ["update:modelValue"],
|
|
5217
5217
|
setup(e) {
|
|
5218
|
-
const t = L(e, "modelValue"), a =
|
|
5218
|
+
const t = L(e, "modelValue"), a = I(), i = (n) => a.value.toggle(n), o = M(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5219
5219
|
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
5220
5220
|
};
|
|
5221
5221
|
return (n, s) => {
|
|
5222
5222
|
const p = q;
|
|
5223
|
-
return d(), b("div",
|
|
5223
|
+
return d(), b("div", Za, [
|
|
5224
5224
|
C(n.$slots, "message"),
|
|
5225
5225
|
m("div", null, [
|
|
5226
5226
|
m("input", {
|
|
@@ -5231,14 +5231,14 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5231
5231
|
disabled: o.value,
|
|
5232
5232
|
multiple: n.maxFileInput > 1,
|
|
5233
5233
|
onInput: s[0] || (s[0] = (u) => l([...u.target.files]))
|
|
5234
|
-
}, null, 40,
|
|
5234
|
+
}, null, 40, Xa),
|
|
5235
5235
|
m("label", {
|
|
5236
5236
|
class: P([{ disabled: o.value }, "btn btn-primary"]),
|
|
5237
5237
|
id: "file-input-button",
|
|
5238
5238
|
for: "file-input"
|
|
5239
5239
|
}, [
|
|
5240
5240
|
C(n.$slots, "button-content", {}, () => [
|
|
5241
|
-
k(c(
|
|
5241
|
+
k(c(_), {
|
|
5242
5242
|
icon: "bi:upload",
|
|
5243
5243
|
class: "me-2",
|
|
5244
5244
|
height: "20px",
|
|
@@ -5255,32 +5255,31 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5255
5255
|
id: "accepted-file-types",
|
|
5256
5256
|
onClick: i
|
|
5257
5257
|
}, {
|
|
5258
|
-
default: g(() => s[2] || (s[2] = [
|
|
5258
|
+
default: g(() => [...s[2] || (s[2] = [
|
|
5259
5259
|
V("Accepted File Types", -1)
|
|
5260
|
-
])),
|
|
5261
|
-
_: 1
|
|
5262
|
-
__: [2]
|
|
5260
|
+
])]),
|
|
5261
|
+
_: 1
|
|
5263
5262
|
})) : T("", !0),
|
|
5264
5263
|
k(c(be), {
|
|
5265
5264
|
ref_key: "acceptedFilesOverlay",
|
|
5266
5265
|
ref: a
|
|
5267
5266
|
}, {
|
|
5268
5267
|
default: g(() => [
|
|
5269
|
-
m("div",
|
|
5268
|
+
m("div", Qa, $(n.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
5270
5269
|
]),
|
|
5271
5270
|
_: 1
|
|
5272
5271
|
}, 512)
|
|
5273
5272
|
]);
|
|
5274
5273
|
};
|
|
5275
5274
|
}
|
|
5276
|
-
}),
|
|
5275
|
+
}), ti = {
|
|
5277
5276
|
key: 0,
|
|
5278
5277
|
class: "py-4 px-3",
|
|
5279
5278
|
id: "placeholder-message"
|
|
5280
|
-
},
|
|
5279
|
+
}, ai = {
|
|
5281
5280
|
key: 1,
|
|
5282
5281
|
class: "d-flex flex-column"
|
|
5283
|
-
},
|
|
5282
|
+
}, ii = /* @__PURE__ */ z({
|
|
5284
5283
|
__name: "DragDropArea",
|
|
5285
5284
|
props: /* @__PURE__ */ E({
|
|
5286
5285
|
maxFileInput: {},
|
|
@@ -5292,7 +5291,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5292
5291
|
}),
|
|
5293
5292
|
emits: ["update:modelValue"],
|
|
5294
5293
|
setup(e) {
|
|
5295
|
-
const t = L(e, "modelValue"), a =
|
|
5294
|
+
const t = L(e, "modelValue"), a = I(!1), i = M(() => e.maxFileInput <= t.value.length), o = (l) => {
|
|
5296
5295
|
a.value = !1, l.dataTransfer.files.length > e.maxFileInput || i.value ? l.preventDefault() : t.value = ke([...l.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
|
|
5297
5296
|
};
|
|
5298
5297
|
return (l, n) => (d(), b("div", {
|
|
@@ -5302,20 +5301,20 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5302
5301
|
onDragover: n[1] || (n[1] = Q((s) => a.value = !0, ["prevent"])),
|
|
5303
5302
|
onDrop: Q(o, ["prevent"])
|
|
5304
5303
|
}, [
|
|
5305
|
-
t.value.length === 0 ? (d(), b("div",
|
|
5306
|
-
k(c(
|
|
5304
|
+
t.value.length === 0 ? (d(), b("div", ti, [
|
|
5305
|
+
k(c(_), {
|
|
5307
5306
|
icon: "bi:upload",
|
|
5308
5307
|
class: "me-2",
|
|
5309
5308
|
height: "20px",
|
|
5310
5309
|
width: "20px"
|
|
5311
5310
|
}),
|
|
5312
5311
|
n[2] || (n[2] = V(" Drag and drop files here ", -1))
|
|
5313
|
-
])) : (d(), b("div",
|
|
5312
|
+
])) : (d(), b("div", ai, [
|
|
5314
5313
|
C(l.$slots, "default")
|
|
5315
5314
|
]))
|
|
5316
5315
|
], 34));
|
|
5317
5316
|
}
|
|
5318
|
-
}),
|
|
5317
|
+
}), oi = { class: "d-flex align-items-center me-2" }, li = /* @__PURE__ */ z({
|
|
5319
5318
|
__name: "UploadStatus",
|
|
5320
5319
|
props: {
|
|
5321
5320
|
fileSize: {},
|
|
@@ -5324,7 +5323,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5324
5323
|
uploadStatus: {}
|
|
5325
5324
|
},
|
|
5326
5325
|
setup(e) {
|
|
5327
|
-
const t = e, a =
|
|
5326
|
+
const t = e, a = M(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = M(() => {
|
|
5328
5327
|
switch (t.uploadStatus) {
|
|
5329
5328
|
case "InvalidFileType":
|
|
5330
5329
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -5342,7 +5341,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5342
5341
|
});
|
|
5343
5342
|
return (o, l) => {
|
|
5344
5343
|
const n = pe;
|
|
5345
|
-
return d(), b("div",
|
|
5344
|
+
return d(), b("div", oi, [
|
|
5346
5345
|
t.uploadStatus === "Uploading" ? (d(), x(n, {
|
|
5347
5346
|
key: 0,
|
|
5348
5347
|
"in-line": ""
|
|
@@ -5361,16 +5360,16 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5361
5360
|
]);
|
|
5362
5361
|
};
|
|
5363
5362
|
}
|
|
5364
|
-
}),
|
|
5363
|
+
}), ni = ["data-cy"], si = { class: "ms-3 d-flex flex-column" }, ri = {
|
|
5365
5364
|
key: 1,
|
|
5366
5365
|
id: "file-name"
|
|
5367
|
-
},
|
|
5366
|
+
}, di = {
|
|
5368
5367
|
class: "text-black-50",
|
|
5369
5368
|
id: "file-type"
|
|
5370
|
-
},
|
|
5369
|
+
}, pi = {
|
|
5371
5370
|
class: "text-black-50",
|
|
5372
5371
|
id: "file-size"
|
|
5373
|
-
},
|
|
5372
|
+
}, ci = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, ui = /* @__PURE__ */ z({
|
|
5374
5373
|
__name: "FileInfo",
|
|
5375
5374
|
props: /* @__PURE__ */ E({
|
|
5376
5375
|
editableFileName: { type: Boolean },
|
|
@@ -5389,12 +5388,12 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5389
5388
|
}),
|
|
5390
5389
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5391
5390
|
setup(e, { emit: t }) {
|
|
5392
|
-
const a = L(e, "file"), i = L(e, "blobFileName"), o = L(e, "uploadStatus"), l = t, n =
|
|
5393
|
-
n.value != null && (
|
|
5394
|
-
},
|
|
5395
|
-
let f = n.value.split("."), B =
|
|
5391
|
+
const a = L(e, "file"), i = L(e, "blobFileName"), o = L(e, "uploadStatus"), l = t, n = I(a.value.name), s = I(""), p = I(0), u = I(), h = M(() => e.acceptedFileTypes.some(({ fileType: f }) => f === a.value.type)), r = M(() => a.value.size <= e.maxFileSize), w = M(() => a.value.type ? a.value.type : Be().getType(a.value.name)), v = () => {
|
|
5392
|
+
n.value != null && (S(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5393
|
+
}, S = () => {
|
|
5394
|
+
let f = n.value.split("."), B = Wa.getExtension(w.value), D = n.value.split(".").pop();
|
|
5396
5395
|
f.length === 1 ? D && D.length > 0 && (n.value = [n.value, B].join(".")) : f.length > 1 && D !== B && (n.value = n.value.replace(D, B));
|
|
5397
|
-
},
|
|
5396
|
+
}, F = async () => {
|
|
5398
5397
|
if (!h.value || !r.value) {
|
|
5399
5398
|
o.value = h.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5400
5399
|
return;
|
|
@@ -5425,10 +5424,10 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5425
5424
|
o.value = "Failed";
|
|
5426
5425
|
}
|
|
5427
5426
|
}, A = async () => {
|
|
5428
|
-
await
|
|
5427
|
+
await Ga(o.value, s.value), l("deleted", a.value);
|
|
5429
5428
|
};
|
|
5430
5429
|
return ne(() => {
|
|
5431
|
-
e.autoUploadToBlob && o.value != "Uploaded" &&
|
|
5430
|
+
e.autoUploadToBlob && o.value != "Uploaded" && F();
|
|
5432
5431
|
}), (f, B) => {
|
|
5433
5432
|
const D = q;
|
|
5434
5433
|
return d(), b("div", {
|
|
@@ -5436,15 +5435,15 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5436
5435
|
"data-cy": `file-info-${a.value.name}`
|
|
5437
5436
|
}, [
|
|
5438
5437
|
m("div", null, [
|
|
5439
|
-
c(
|
|
5438
|
+
c(Ya)(a.value.type) ? (d(), x(c(Je), {
|
|
5440
5439
|
key: 0,
|
|
5441
5440
|
id: "thumbnail-image",
|
|
5442
5441
|
"image-class": "image-file-thumbnail border",
|
|
5443
|
-
src: c(
|
|
5442
|
+
src: c(Ja)(a.value),
|
|
5444
5443
|
alt: a.value.name,
|
|
5445
5444
|
width: "75px",
|
|
5446
5445
|
preview: ""
|
|
5447
|
-
}, null, 8, ["src", "alt"])) : (d(), x(c(
|
|
5446
|
+
}, null, 8, ["src", "alt"])) : (d(), x(c(_), {
|
|
5448
5447
|
key: 1,
|
|
5449
5448
|
id: "file-earmark",
|
|
5450
5449
|
icon: "bi:file-earmark",
|
|
@@ -5452,9 +5451,9 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5452
5451
|
width: "75px"
|
|
5453
5452
|
}))
|
|
5454
5453
|
]),
|
|
5455
|
-
m("div",
|
|
5454
|
+
m("div", si, [
|
|
5456
5455
|
m("div", null, [
|
|
5457
|
-
f.editableFileName ? (d(), x(
|
|
5456
|
+
f.editableFileName ? (d(), x(Xt, {
|
|
5458
5457
|
key: 0,
|
|
5459
5458
|
id: "edit-file-name",
|
|
5460
5459
|
modelValue: n.value,
|
|
@@ -5462,13 +5461,13 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5462
5461
|
rules: f.customFileNameRules,
|
|
5463
5462
|
name: a.value.name,
|
|
5464
5463
|
"complete-action": v
|
|
5465
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span",
|
|
5464
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", ri, $(n.value), 1))
|
|
5466
5465
|
]),
|
|
5467
|
-
m("span",
|
|
5468
|
-
m("span",
|
|
5466
|
+
m("span", di, "File type: " + $(a.value.type.split("/").pop()), 1),
|
|
5467
|
+
m("span", pi, "File size: " + $(c(me)(a.value.size)), 1)
|
|
5469
5468
|
]),
|
|
5470
|
-
m("div",
|
|
5471
|
-
(d(), x(
|
|
5469
|
+
m("div", ci, [
|
|
5470
|
+
(d(), x(li, {
|
|
5472
5471
|
key: o.value,
|
|
5473
5472
|
"file-size": a.value.size,
|
|
5474
5473
|
"upload-status": o.value,
|
|
@@ -5478,10 +5477,10 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5478
5477
|
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (d(), x(D, {
|
|
5479
5478
|
key: 0,
|
|
5480
5479
|
link: "",
|
|
5481
|
-
onClick:
|
|
5480
|
+
onClick: F
|
|
5482
5481
|
}, {
|
|
5483
5482
|
default: g(() => [
|
|
5484
|
-
k(c(
|
|
5483
|
+
k(c(_), {
|
|
5485
5484
|
icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5486
5485
|
}, null, 8, ["icon"])
|
|
5487
5486
|
]),
|
|
@@ -5493,7 +5492,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5493
5492
|
onClick: B[1] || (B[1] = (y) => u.value.abort())
|
|
5494
5493
|
}, {
|
|
5495
5494
|
default: g(() => [
|
|
5496
|
-
k(c(
|
|
5495
|
+
k(c(_), { icon: "bi:x-circle-fill" })
|
|
5497
5496
|
]),
|
|
5498
5497
|
_: 1
|
|
5499
5498
|
})) : (d(), x(D, {
|
|
@@ -5503,27 +5502,27 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5503
5502
|
id: "delete-button"
|
|
5504
5503
|
}, {
|
|
5505
5504
|
default: g(() => [
|
|
5506
|
-
k(c(
|
|
5505
|
+
k(c(_), { icon: "bi:trash" })
|
|
5507
5506
|
]),
|
|
5508
5507
|
_: 1
|
|
5509
5508
|
}))
|
|
5510
5509
|
])
|
|
5511
|
-
], 8,
|
|
5510
|
+
], 8, ni);
|
|
5512
5511
|
};
|
|
5513
5512
|
}
|
|
5514
|
-
}),
|
|
5513
|
+
}), mi = { class: "d-flex justify-content-end mt-1 gap-1" }, vi = { id: "max-file-size" }, fi = { id: "max-file-input" }, gi = /* @__PURE__ */ z({
|
|
5515
5514
|
__name: "FileInputInfo",
|
|
5516
5515
|
props: {
|
|
5517
5516
|
maxFileSize: {},
|
|
5518
5517
|
maxFileInput: {}
|
|
5519
5518
|
},
|
|
5520
5519
|
setup(e) {
|
|
5521
|
-
return (t, a) => (d(), b("div",
|
|
5522
|
-
m("div",
|
|
5523
|
-
m("div",
|
|
5520
|
+
return (t, a) => (d(), b("div", mi, [
|
|
5521
|
+
m("div", vi, "Max file size: " + $(c(me)(t.maxFileSize)), 1),
|
|
5522
|
+
m("div", fi, "| Max file count: " + $(t.maxFileInput), 1)
|
|
5524
5523
|
]));
|
|
5525
5524
|
}
|
|
5526
|
-
}),
|
|
5525
|
+
}), bi = { "data-cy": "file-uploader" }, yi = { key: 1 }, Po = /* @__PURE__ */ z({
|
|
5527
5526
|
__name: "ForgeFileUploader",
|
|
5528
5527
|
props: /* @__PURE__ */ E({
|
|
5529
5528
|
acceptedFileTypes: {},
|
|
@@ -5548,7 +5547,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5548
5547
|
const a = e, i = (o) => {
|
|
5549
5548
|
t.value = t.value.filter((l) => l.file != o);
|
|
5550
5549
|
};
|
|
5551
|
-
return (o, l) => (d(), b("div",
|
|
5550
|
+
return (o, l) => (d(), b("div", bi, [
|
|
5552
5551
|
t.value.length == o.maxFileInput && a.maxFileWarning != null ? (d(), x(re, {
|
|
5553
5552
|
key: 0,
|
|
5554
5553
|
id: "max-files-alert",
|
|
@@ -5559,12 +5558,12 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5559
5558
|
]),
|
|
5560
5559
|
_: 1
|
|
5561
5560
|
})) : T("", !0),
|
|
5562
|
-
k(
|
|
5561
|
+
k(ei, j(a, {
|
|
5563
5562
|
modelValue: t.value,
|
|
5564
5563
|
"onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n)
|
|
5565
5564
|
}), null, 16, ["modelValue"]),
|
|
5566
|
-
o.showDragDropArea ? (d(), b("div",
|
|
5567
|
-
k(
|
|
5565
|
+
o.showDragDropArea ? (d(), b("div", yi, [
|
|
5566
|
+
k(ii, {
|
|
5568
5567
|
"max-file-input": a.maxFileInput,
|
|
5569
5568
|
"max-file-size": a.maxFileSize,
|
|
5570
5569
|
"accepted-file-types": a.acceptedFileTypes,
|
|
@@ -5573,7 +5572,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5573
5572
|
}, {
|
|
5574
5573
|
default: g(() => [
|
|
5575
5574
|
(d(!0), b(N, null, U(t.value, ({ file: n }, s) => (d(), b("div", null, [
|
|
5576
|
-
(d(), x(
|
|
5575
|
+
(d(), x(ui, j({
|
|
5577
5576
|
key: n.name,
|
|
5578
5577
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5579
5578
|
file: t.value[s].file,
|
|
@@ -5587,14 +5586,14 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5587
5586
|
]),
|
|
5588
5587
|
_: 1
|
|
5589
5588
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5590
|
-
k(
|
|
5589
|
+
k(gi, {
|
|
5591
5590
|
"max-file-size": a.maxFileSize,
|
|
5592
5591
|
"max-file-input": o.maxFileInput
|
|
5593
5592
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5594
5593
|
])) : T("", !0)
|
|
5595
5594
|
]));
|
|
5596
5595
|
}
|
|
5597
|
-
}),
|
|
5596
|
+
}), xi = { class: "d-flex" }, hi = { class: "me-3" }, wi = { class: "ms-2" }, ki = { class: "d-flex flex-column w-100" }, jo = /* @__PURE__ */ z({
|
|
5598
5597
|
__name: "ForgeColumnCustomiser",
|
|
5599
5598
|
props: {
|
|
5600
5599
|
modelValue: { required: !0 },
|
|
@@ -5602,7 +5601,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5602
5601
|
},
|
|
5603
5602
|
emits: ["update:modelValue"],
|
|
5604
5603
|
setup(e) {
|
|
5605
|
-
const t = L(e, "modelValue"), a =
|
|
5604
|
+
const t = L(e, "modelValue"), a = I(), i = I(!1), o = (l) => {
|
|
5606
5605
|
a.value.toggle(l);
|
|
5607
5606
|
};
|
|
5608
5607
|
return (l, n) => (d(), b(N, null, [
|
|
@@ -5611,13 +5610,13 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5611
5610
|
class: "ms-2"
|
|
5612
5611
|
}, {
|
|
5613
5612
|
default: g(() => [
|
|
5614
|
-
m("div",
|
|
5615
|
-
m("div",
|
|
5616
|
-
k(c(
|
|
5613
|
+
m("div", xi, [
|
|
5614
|
+
m("div", hi, [
|
|
5615
|
+
k(c(_), { icon: "bi:layout-three-columns" })
|
|
5617
5616
|
]),
|
|
5618
5617
|
V(" Columns (" + $(t.value.filter((s) => s.selected).length ?? 0) + "/" + $(t.value.length ?? 0) + ") ", 1),
|
|
5619
|
-
m("div",
|
|
5620
|
-
k(c(
|
|
5618
|
+
m("div", wi, [
|
|
5619
|
+
k(c(_), {
|
|
5621
5620
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5622
5621
|
}, null, 8, ["icon"])
|
|
5623
5622
|
])
|
|
@@ -5633,7 +5632,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5633
5632
|
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5634
5633
|
}, {
|
|
5635
5634
|
default: g(() => [
|
|
5636
|
-
m("div",
|
|
5635
|
+
m("div", ki, [
|
|
5637
5636
|
(d(!0), b(N, null, U(t.value, (s, p) => (d(), b("div", {
|
|
5638
5637
|
class: P(["d-flex cursor-pointer", {
|
|
5639
5638
|
"border-top": p !== 0,
|
|
@@ -5657,19 +5656,19 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5657
5656
|
}, 512)
|
|
5658
5657
|
], 64));
|
|
5659
5658
|
}
|
|
5660
|
-
}),
|
|
5659
|
+
}), Mo = /* @__PURE__ */ z({
|
|
5661
5660
|
__name: "ForgePanel",
|
|
5662
5661
|
setup(e) {
|
|
5663
5662
|
return (t, a) => {
|
|
5664
|
-
const i =
|
|
5663
|
+
const i = Ke;
|
|
5665
5664
|
return d(), x(i, G(Y({ ...t.$attrs })), ie({
|
|
5666
5665
|
toggleicon: g(({ collapsed: o }) => [
|
|
5667
|
-
o ? (d(), x(c(
|
|
5666
|
+
o ? (d(), x(c(_), {
|
|
5668
5667
|
key: 0,
|
|
5669
5668
|
"data-cy": "message-icon",
|
|
5670
5669
|
icon: "bi:chevron-down"
|
|
5671
5670
|
})) : T("", !0),
|
|
5672
|
-
o ? T("", !0) : (d(), x(c(
|
|
5671
|
+
o ? T("", !0) : (d(), x(c(_), {
|
|
5673
5672
|
key: 1,
|
|
5674
5673
|
"data-cy": "message-icon",
|
|
5675
5674
|
icon: "bi:chevron-up"
|
|
@@ -5686,13 +5685,13 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5686
5685
|
]), 1040);
|
|
5687
5686
|
};
|
|
5688
5687
|
}
|
|
5689
|
-
}),
|
|
5688
|
+
}), Bi = /* @__PURE__ */ z({
|
|
5690
5689
|
__name: "ForgeToggleButton",
|
|
5691
5690
|
props: {
|
|
5692
5691
|
severity: { default: "primary" }
|
|
5693
5692
|
},
|
|
5694
5693
|
setup(e) {
|
|
5695
|
-
const t = e, a =
|
|
5694
|
+
const t = e, a = M(() => ({
|
|
5696
5695
|
root: (i) => ({
|
|
5697
5696
|
class: [
|
|
5698
5697
|
"btn",
|
|
@@ -5713,15 +5712,15 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5713
5712
|
]
|
|
5714
5713
|
})
|
|
5715
5714
|
}));
|
|
5716
|
-
return (i, o) => (d(), x(c(
|
|
5715
|
+
return (i, o) => (d(), x(c(Ze), j({ ...i.$attrs, ...t }, {
|
|
5717
5716
|
severity: t.severity,
|
|
5718
5717
|
pt: a.value
|
|
5719
5718
|
}), null, 16, ["severity", "pt"]));
|
|
5720
5719
|
}
|
|
5721
|
-
}),
|
|
5720
|
+
}), $i = {
|
|
5722
5721
|
class: "btn-group",
|
|
5723
5722
|
"data-cy": "forge-select-button"
|
|
5724
|
-
},
|
|
5723
|
+
}, Io = /* @__PURE__ */ z({
|
|
5725
5724
|
__name: "ForgeSelectButton",
|
|
5726
5725
|
props: /* @__PURE__ */ E({
|
|
5727
5726
|
options: {},
|
|
@@ -5751,8 +5750,8 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5751
5750
|
} else
|
|
5752
5751
|
a.value = a.value === l.value && t.allowEmpty ? null : l.value;
|
|
5753
5752
|
};
|
|
5754
|
-
return (l, n) => (d(), b("div",
|
|
5755
|
-
(d(!0), b(N, null, U(l.options, (s, p) => (d(), x(
|
|
5753
|
+
return (l, n) => (d(), b("div", $i, [
|
|
5754
|
+
(d(!0), b(N, null, U(l.options, (s, p) => (d(), x(Bi, {
|
|
5756
5755
|
key: p,
|
|
5757
5756
|
onLabel: s.label,
|
|
5758
5757
|
offLabel: s.label,
|
|
@@ -5765,10 +5764,10 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5765
5764
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5766
5765
|
]));
|
|
5767
5766
|
}
|
|
5768
|
-
}),
|
|
5767
|
+
}), _o = /* @__PURE__ */ z({
|
|
5769
5768
|
__name: "ForgeConfirmPopup",
|
|
5770
5769
|
setup(e) {
|
|
5771
|
-
const t =
|
|
5770
|
+
const t = M(() => ({
|
|
5772
5771
|
root: [
|
|
5773
5772
|
"card w-fit-content position-absolute"
|
|
5774
5773
|
],
|
|
@@ -5779,20 +5778,20 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5779
5778
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5780
5779
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5781
5780
|
}));
|
|
5782
|
-
return (a, i) => (d(), x(c(
|
|
5781
|
+
return (a, i) => (d(), x(c(Xe), j({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5783
5782
|
default: g(() => [
|
|
5784
5783
|
(d(!0), b(N, null, U(a.$slots, (o, l) => C(a.$slots, l, { slot: l })), 256))
|
|
5785
5784
|
]),
|
|
5786
5785
|
_: 3
|
|
5787
5786
|
}, 16, ["pt"]));
|
|
5788
5787
|
}
|
|
5789
|
-
}),
|
|
5788
|
+
}), Fi = {
|
|
5790
5789
|
key: 0,
|
|
5791
5790
|
class: "mb-1"
|
|
5792
5791
|
}, Si = {
|
|
5793
5792
|
key: 0,
|
|
5794
5793
|
class: "mb-1"
|
|
5795
|
-
},
|
|
5794
|
+
}, Vo = /* @__PURE__ */ z({
|
|
5796
5795
|
__name: "ForgePickList",
|
|
5797
5796
|
props: /* @__PURE__ */ E({
|
|
5798
5797
|
filterBy: {},
|
|
@@ -5835,12 +5834,12 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5835
5834
|
}),
|
|
5836
5835
|
emits: ["update:modelValue", "update:targetList", "update:sourceList"],
|
|
5837
5836
|
setup(e) {
|
|
5838
|
-
const t = e, a = L(e, "modelValue"), i = L(e, "targetList"), o = L(e, "sourceList"), l =
|
|
5839
|
-
const { items:
|
|
5840
|
-
i.value.push(...
|
|
5837
|
+
const t = e, a = L(e, "modelValue"), i = L(e, "targetList"), o = L(e, "sourceList"), l = I(null), n = I(null), s = (v) => {
|
|
5838
|
+
const { items: S } = v;
|
|
5839
|
+
i.value.push(...S), o.value = o.value.filter((F) => !S.includes(F));
|
|
5841
5840
|
}, p = (v) => {
|
|
5842
|
-
const { items:
|
|
5843
|
-
o.value.push(...
|
|
5841
|
+
const { items: S } = v;
|
|
5842
|
+
o.value.push(...S), i.value = i.value.filter((F) => !S.includes(F));
|
|
5844
5843
|
}, u = () => {
|
|
5845
5844
|
o.value = [.../* @__PURE__ */ new Set([...o.value, ...a.value[1]])], i.value = i.value.filter((v) => !a.value[1].includes(v));
|
|
5846
5845
|
}, h = () => {
|
|
@@ -5852,42 +5851,42 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5852
5851
|
w();
|
|
5853
5852
|
});
|
|
5854
5853
|
const r = () => {
|
|
5855
|
-
var
|
|
5856
|
-
const v = t.filterBy,
|
|
5854
|
+
var F;
|
|
5855
|
+
const v = t.filterBy, S = l.value ? o.value.filter((A) => {
|
|
5857
5856
|
var f;
|
|
5858
5857
|
return A[v].toLowerCase().includes((f = l.value) == null ? void 0 : f.toLowerCase());
|
|
5859
5858
|
}) : [...o.value];
|
|
5860
|
-
(
|
|
5859
|
+
(F = a.value) == null || F.splice(0, 1, S);
|
|
5861
5860
|
}, w = () => {
|
|
5862
|
-
var
|
|
5863
|
-
const v = t.filterBy,
|
|
5861
|
+
var F;
|
|
5862
|
+
const v = t.filterBy, S = n.value ? i.value.filter((A) => {
|
|
5864
5863
|
var f;
|
|
5865
5864
|
return A[v].toLowerCase().includes((f = n.value) == null ? void 0 : f.toLowerCase());
|
|
5866
5865
|
}) : [...i.value];
|
|
5867
|
-
(
|
|
5866
|
+
(F = a.value) == null || F.splice(1, 1, S);
|
|
5868
5867
|
};
|
|
5869
5868
|
return W(
|
|
5870
5869
|
() => a.value,
|
|
5871
5870
|
(v) => {
|
|
5872
|
-
var
|
|
5873
|
-
v && (i.value = v[1].length > 0 ? [...v[1]] : [], o.value = v[0].length > 0 ? [...v[0]] : [], (
|
|
5871
|
+
var S, F;
|
|
5872
|
+
v && (i.value = v[1].length > 0 ? [...v[1]] : [], o.value = v[0].length > 0 ? [...v[0]] : [], (S = a.value) == null || S.splice(0, 1, o.value), (F = a.value) == null || F.splice(1, 1, i.value));
|
|
5874
5873
|
},
|
|
5875
5874
|
{ once: !0 }
|
|
5876
|
-
), (v,
|
|
5875
|
+
), (v, S) => (d(), x(c(Qe), j({
|
|
5877
5876
|
modelValue: a.value,
|
|
5878
|
-
"onUpdate:modelValue":
|
|
5877
|
+
"onUpdate:modelValue": S[2] || (S[2] = (F) => a.value = F)
|
|
5879
5878
|
}, { ...v.$attrs, ...t }, {
|
|
5880
5879
|
onMoveAllToSource: u,
|
|
5881
5880
|
onMoveAllToTarget: h,
|
|
5882
|
-
onMoveToTarget:
|
|
5883
|
-
onMoveToSource:
|
|
5881
|
+
onMoveToTarget: S[3] || (S[3] = (F) => s(F)),
|
|
5882
|
+
onMoveToSource: S[4] || (S[4] = (F) => p(F))
|
|
5884
5883
|
}), {
|
|
5885
5884
|
sourceheader: g(() => [
|
|
5886
|
-
v.sourceTitle ? (d(), b("div",
|
|
5885
|
+
v.sourceTitle ? (d(), b("div", Fi, $(v.sourceTitle), 1)) : T("", !0),
|
|
5887
5886
|
k(c(ae), {
|
|
5888
5887
|
modelValue: l.value,
|
|
5889
5888
|
"onUpdate:modelValue": [
|
|
5890
|
-
|
|
5889
|
+
S[0] || (S[0] = (F) => l.value = F),
|
|
5891
5890
|
r
|
|
5892
5891
|
],
|
|
5893
5892
|
class: "mb-2",
|
|
@@ -5900,7 +5899,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5900
5899
|
k(c(ae), {
|
|
5901
5900
|
modelValue: n.value,
|
|
5902
5901
|
"onUpdate:modelValue": [
|
|
5903
|
-
|
|
5902
|
+
S[1] || (S[1] = (F) => n.value = F),
|
|
5904
5903
|
w
|
|
5905
5904
|
],
|
|
5906
5905
|
class: "mb-2",
|
|
@@ -5908,13 +5907,13 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5908
5907
|
"data-cy": "target-search"
|
|
5909
5908
|
}, null, 8, ["modelValue"])
|
|
5910
5909
|
]),
|
|
5911
|
-
option: g(({ option:
|
|
5912
|
-
V($(
|
|
5910
|
+
option: g(({ option: F }) => [
|
|
5911
|
+
V($(F[v.filterBy]), 1)
|
|
5913
5912
|
]),
|
|
5914
5913
|
_: 1
|
|
5915
5914
|
}, 16, ["modelValue"]));
|
|
5916
5915
|
}
|
|
5917
|
-
}),
|
|
5916
|
+
}), Do = () => ({
|
|
5918
5917
|
type: "component",
|
|
5919
5918
|
resolve: (e) => {
|
|
5920
5919
|
if (e.startsWith("Forge"))
|
|
@@ -5925,40 +5924,40 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5925
5924
|
}
|
|
5926
5925
|
});
|
|
5927
5926
|
export {
|
|
5928
|
-
|
|
5929
|
-
|
|
5927
|
+
ro as Bootstrap_PT,
|
|
5928
|
+
po as ForgeActionButton,
|
|
5930
5929
|
re as ForgeAlert,
|
|
5931
|
-
|
|
5930
|
+
co as ForgeAutoComplete,
|
|
5932
5931
|
ye as ForgeCheckbox,
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5932
|
+
wo as ForgeChip,
|
|
5933
|
+
jo as ForgeColumnCustomiser,
|
|
5934
|
+
_o as ForgeConfirmPopup,
|
|
5936
5935
|
xe as ForgeDatepicker,
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5936
|
+
Po as ForgeFileUploader,
|
|
5937
|
+
zo as ForgeFilterHeader,
|
|
5938
|
+
xo as ForgeForm,
|
|
5939
|
+
ho as ForgeFormField,
|
|
5940
|
+
Xt as ForgeInlineEditor,
|
|
5941
|
+
uo as ForgeLink,
|
|
5943
5942
|
pe as ForgeLoader,
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5943
|
+
fo as ForgeModal,
|
|
5944
|
+
oa as ForgeMultiSelectPreview,
|
|
5945
|
+
go as ForgeNavbar,
|
|
5946
|
+
bo as ForgePageHeader,
|
|
5947
|
+
Mo as ForgePanel,
|
|
5948
|
+
Vo as ForgePickList,
|
|
5949
|
+
ko as ForgeProgressBar,
|
|
5950
|
+
yo as ForgeRemainingCharacters,
|
|
5951
|
+
Do as ForgeResolver,
|
|
5952
|
+
Bo as ForgeScratchpad,
|
|
5953
|
+
Io as ForgeSelectButton,
|
|
5954
|
+
$o as ForgeStatWidget,
|
|
5955
|
+
Fo as ForgeStepper,
|
|
5956
|
+
Co as ForgeTable,
|
|
5958
5957
|
So as ForgeTile,
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5958
|
+
Bi as ForgeToggleButton,
|
|
5959
|
+
To as ForgeTreeTable,
|
|
5960
|
+
vo as convertToMultiSelectOption,
|
|
5961
|
+
mo as enumToMultiSelectList,
|
|
5962
|
+
Et as parseError
|
|
5964
5963
|
};
|