@3squared/forge-ui-3 2.23.0 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as z, createBlock as 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" },
|
|
@@ -1640,6 +1640,7 @@ const Et = {
|
|
|
1640
1640
|
resetErrorOnClose: { type: Boolean, default: !0 },
|
|
1641
1641
|
maxHeight: {},
|
|
1642
1642
|
minHeight: {},
|
|
1643
|
+
hideErrorBanner: { type: Boolean, default: !1 },
|
|
1643
1644
|
header: { default: "Header" },
|
|
1644
1645
|
footer: {},
|
|
1645
1646
|
visible: { type: Boolean },
|
|
@@ -1687,7 +1688,7 @@ const Et = {
|
|
|
1687
1688
|
}),
|
|
1688
1689
|
emits: ["update:visible", "update:error"],
|
|
1689
1690
|
setup(e, { expose: t }) {
|
|
1690
|
-
const a = L(e, "visible"), i =
|
|
1691
|
+
const a = L(e, "visible"), i = I(!1), o = e, l = I(!1), n = L(e, "error"), s = () => {
|
|
1691
1692
|
n.value = {
|
|
1692
1693
|
hasError: !1,
|
|
1693
1694
|
header: "",
|
|
@@ -1711,12 +1712,12 @@ const Et = {
|
|
|
1711
1712
|
(v || v == null) && h();
|
|
1712
1713
|
} catch (v) {
|
|
1713
1714
|
n.value.hasError = !0;
|
|
1714
|
-
const
|
|
1715
|
-
n.value.header =
|
|
1715
|
+
const S = Et(v);
|
|
1716
|
+
n.value.header = S.errorMessage, n.value.message = S.errorDetails;
|
|
1716
1717
|
}
|
|
1717
1718
|
l.value = !1;
|
|
1718
1719
|
}
|
|
1719
|
-
}, w =
|
|
1720
|
+
}, w = M(() => ({
|
|
1720
1721
|
root: [
|
|
1721
1722
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1722
1723
|
{
|
|
@@ -1735,15 +1736,15 @@ const Et = {
|
|
|
1735
1736
|
}
|
|
1736
1737
|
]
|
|
1737
1738
|
}));
|
|
1738
|
-
return (v,
|
|
1739
|
-
const
|
|
1739
|
+
return (v, S) => {
|
|
1740
|
+
const F = q, A = _e;
|
|
1740
1741
|
return d(), x(A, j(o, {
|
|
1741
1742
|
onMaximize: u,
|
|
1742
1743
|
onUnmaximize: p,
|
|
1743
1744
|
pt: w.value
|
|
1744
1745
|
}), ie({
|
|
1745
1746
|
closeicon: g(() => [
|
|
1746
|
-
k(c(
|
|
1747
|
+
k(c(_), {
|
|
1747
1748
|
"data-cy": "close-icon",
|
|
1748
1749
|
icon: "bi:x-lg",
|
|
1749
1750
|
width: "18",
|
|
@@ -1752,7 +1753,7 @@ const Et = {
|
|
|
1752
1753
|
})
|
|
1753
1754
|
]),
|
|
1754
1755
|
maximizeicon: g(() => [
|
|
1755
|
-
k(c(
|
|
1756
|
+
k(c(_), {
|
|
1756
1757
|
"data-cy": "maximisable-icon",
|
|
1757
1758
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1758
1759
|
width: "16",
|
|
@@ -1765,7 +1766,7 @@ const Et = {
|
|
|
1765
1766
|
name: B,
|
|
1766
1767
|
fn: g((D) => [
|
|
1767
1768
|
B == "default" ? (d(), b(N, { key: 0 }, [
|
|
1768
|
-
n.value.hasError ? (d(), b("div",
|
|
1769
|
+
n.value.hasError && !v.hideErrorBanner ? (d(), b("div", qt, [
|
|
1769
1770
|
k(re, {
|
|
1770
1771
|
severity: "danger",
|
|
1771
1772
|
"data-cy": "error",
|
|
@@ -1775,7 +1776,7 @@ const Et = {
|
|
|
1775
1776
|
m("p", {
|
|
1776
1777
|
class: P(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1777
1778
|
}, $(n.value.header), 3),
|
|
1778
|
-
n.value.message.length > 0 ? (d(), b("ul",
|
|
1779
|
+
n.value.message.length > 0 ? (d(), b("ul", Rt, [
|
|
1779
1780
|
(d(!0), b(N, null, U(n.value.message, (y) => (d(), b("li", { key: y }, $(y), 1))), 128))
|
|
1780
1781
|
])) : T("", !0)
|
|
1781
1782
|
]),
|
|
@@ -1792,8 +1793,8 @@ const Et = {
|
|
|
1792
1793
|
v.showFooter ? {
|
|
1793
1794
|
name: "footer",
|
|
1794
1795
|
fn: g(() => [
|
|
1795
|
-
m("div",
|
|
1796
|
-
k(
|
|
1796
|
+
m("div", Ht, [
|
|
1797
|
+
k(F, {
|
|
1797
1798
|
label: v.cancelText,
|
|
1798
1799
|
class: P(o.cancelClass),
|
|
1799
1800
|
outlined: "",
|
|
@@ -1801,7 +1802,7 @@ const Et = {
|
|
|
1801
1802
|
id: "cancel-button",
|
|
1802
1803
|
type: o.cancelButtonType
|
|
1803
1804
|
}, null, 8, ["label", "class", "type"]),
|
|
1804
|
-
k(
|
|
1805
|
+
k(F, {
|
|
1805
1806
|
label: v.submitText,
|
|
1806
1807
|
class: P([o.submitClass, "ms-auto"]),
|
|
1807
1808
|
onClick: r,
|
|
@@ -1815,7 +1816,7 @@ const Et = {
|
|
|
1815
1816
|
]), 1040, ["pt"]);
|
|
1816
1817
|
};
|
|
1817
1818
|
}
|
|
1818
|
-
}),
|
|
1819
|
+
}), 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
1820
|
__name: "ForgeInlineEditor",
|
|
1820
1821
|
props: /* @__PURE__ */ E({
|
|
1821
1822
|
name: { default: "" },
|
|
@@ -1830,7 +1831,7 @@ const Et = {
|
|
|
1830
1831
|
}),
|
|
1831
1832
|
emits: ["update:modelValue"],
|
|
1832
1833
|
setup(e) {
|
|
1833
|
-
const t = e, a = L(e, "modelValue"), i =
|
|
1834
|
+
const t = e, a = L(e, "modelValue"), i = I(!1), o = I(), l = () => {
|
|
1834
1835
|
var v;
|
|
1835
1836
|
i.value = !i.value, (v = o.value) == null || v.focus();
|
|
1836
1837
|
}, n = async () => {
|
|
@@ -1854,28 +1855,28 @@ const Et = {
|
|
|
1854
1855
|
ne(() => {
|
|
1855
1856
|
r.value = a.value;
|
|
1856
1857
|
});
|
|
1857
|
-
const w =
|
|
1858
|
-
return (v,
|
|
1859
|
-
const
|
|
1858
|
+
const w = M(() => h.value.length > 0);
|
|
1859
|
+
return (v, S) => {
|
|
1860
|
+
const F = ae, A = q;
|
|
1860
1861
|
return d(), b("div", {
|
|
1861
1862
|
id: t.name
|
|
1862
1863
|
}, [
|
|
1863
|
-
v.readonly ? (d(), b("div",
|
|
1864
|
+
v.readonly ? (d(), b("div", Kt, [
|
|
1864
1865
|
C(v.$slots, "default", {}, () => [
|
|
1865
|
-
m("span",
|
|
1866
|
+
m("span", Zt, $(c(r)), 1)
|
|
1866
1867
|
])
|
|
1867
|
-
])) : (d(), b("div",
|
|
1868
|
-
i.value ? (d(), b("div",
|
|
1869
|
-
K((d(), b("div",
|
|
1868
|
+
])) : (d(), b("div", Gt, [
|
|
1869
|
+
i.value ? (d(), b("div", Yt, [
|
|
1870
|
+
K((d(), b("div", Jt, [
|
|
1870
1871
|
C(v.$slots, "editor", {
|
|
1871
1872
|
class: P({ "is-invalid": w.value }),
|
|
1872
1873
|
editFinished: n,
|
|
1873
1874
|
cancel: s,
|
|
1874
1875
|
val: c(r)
|
|
1875
1876
|
}, () => [
|
|
1876
|
-
k(
|
|
1877
|
+
k(F, {
|
|
1877
1878
|
modelValue: c(r),
|
|
1878
|
-
"onUpdate:modelValue":
|
|
1879
|
+
"onUpdate:modelValue": S[0] || (S[0] = (f) => Se(r) ? r.value = f : null),
|
|
1879
1880
|
modelModifiers: { trim: !0 },
|
|
1880
1881
|
"data-cy": "input",
|
|
1881
1882
|
ref_key: "input",
|
|
@@ -1887,7 +1888,7 @@ const Et = {
|
|
|
1887
1888
|
]
|
|
1888
1889
|
}, null, 8, ["modelValue", "class"])
|
|
1889
1890
|
]),
|
|
1890
|
-
k(c(
|
|
1891
|
+
k(c(_), {
|
|
1891
1892
|
icon: "bi:x-circle",
|
|
1892
1893
|
class: "mx-2 cursor-pointer",
|
|
1893
1894
|
onClick: p,
|
|
@@ -1895,7 +1896,7 @@ const Et = {
|
|
|
1895
1896
|
"data-cy": "clear-icon"
|
|
1896
1897
|
})
|
|
1897
1898
|
])), [
|
|
1898
|
-
[c(
|
|
1899
|
+
[c(Ve), n]
|
|
1899
1900
|
])
|
|
1900
1901
|
])) : (d(), b("div", {
|
|
1901
1902
|
key: 1,
|
|
@@ -1914,7 +1915,7 @@ const Et = {
|
|
|
1914
1915
|
class: "p-0 m-0"
|
|
1915
1916
|
}, {
|
|
1916
1917
|
default: g(() => [
|
|
1917
|
-
k(c(
|
|
1918
|
+
k(c(_), {
|
|
1918
1919
|
icon: "bi:pencil",
|
|
1919
1920
|
class: P(w.value ? "text-invalid" : "text-muted"),
|
|
1920
1921
|
"data-cy": "edit-icon",
|
|
@@ -1931,10 +1932,10 @@ const Et = {
|
|
|
1931
1932
|
}, $(c(u)), 513), [
|
|
1932
1933
|
[X, w.value]
|
|
1933
1934
|
])
|
|
1934
|
-
], 8,
|
|
1935
|
+
], 8, Wt);
|
|
1935
1936
|
};
|
|
1936
1937
|
}
|
|
1937
|
-
}),
|
|
1938
|
+
}), Qt = ["href"], go = /* @__PURE__ */ z({
|
|
1938
1939
|
__name: "ForgeNavbar",
|
|
1939
1940
|
props: {
|
|
1940
1941
|
severity: { default: "light" },
|
|
@@ -1951,7 +1952,7 @@ const Et = {
|
|
|
1951
1952
|
unstyled: { type: Boolean }
|
|
1952
1953
|
},
|
|
1953
1954
|
setup(e) {
|
|
1954
|
-
const t = e, a =
|
|
1955
|
+
const t = e, a = M(() => ({
|
|
1955
1956
|
root: () => ({
|
|
1956
1957
|
class: [
|
|
1957
1958
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1979,7 +1980,7 @@ const Et = {
|
|
|
1979
1980
|
]
|
|
1980
1981
|
})
|
|
1981
1982
|
}));
|
|
1982
|
-
return (i, o) => (d(), x(c(
|
|
1983
|
+
return (i, o) => (d(), x(c(De), j({ ...t, ...i.$attrs }, {
|
|
1983
1984
|
pt: a.value,
|
|
1984
1985
|
"data-cy": "navbar"
|
|
1985
1986
|
}), ie({
|
|
@@ -1992,11 +1993,11 @@ const Et = {
|
|
|
1992
1993
|
C(i.$slots, "logo", {}, () => [
|
|
1993
1994
|
o[0] || (o[0] = V(" Logo ", -1))
|
|
1994
1995
|
])
|
|
1995
|
-
], 8,
|
|
1996
|
+
], 8, Qt)
|
|
1996
1997
|
]),
|
|
1997
1998
|
buttonicon: g(() => [
|
|
1998
1999
|
C(i.$slots, "buttonIcon", {}, () => [
|
|
1999
|
-
k(c(
|
|
2000
|
+
k(c(_), {
|
|
2000
2001
|
icon: "bi:list",
|
|
2001
2002
|
class: P(t.severity === "light" ? "text-black" : "text-white"),
|
|
2002
2003
|
height: "24",
|
|
@@ -2014,14 +2015,14 @@ const Et = {
|
|
|
2014
2015
|
}))
|
|
2015
2016
|
]), 1040, ["pt"]));
|
|
2016
2017
|
}
|
|
2017
|
-
}),
|
|
2018
|
+
}), ea = { class: "border alternating-item-list" }, ta = {
|
|
2018
2019
|
key: 0,
|
|
2019
2020
|
class: "p-2 border-top border-bottom",
|
|
2020
2021
|
"data-cy": "title"
|
|
2021
|
-
},
|
|
2022
|
+
}, aa = { class: "d-inline-block" }, ia = {
|
|
2022
2023
|
key: 1,
|
|
2023
2024
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
2024
|
-
},
|
|
2025
|
+
}, oa = /* @__PURE__ */ z({
|
|
2025
2026
|
__name: "ForgeMultiSelectPreview",
|
|
2026
2027
|
props: /* @__PURE__ */ E({
|
|
2027
2028
|
title: { default: "Selected Items" },
|
|
@@ -2071,17 +2072,17 @@ const Et = {
|
|
|
2071
2072
|
"data-cy": "options-preview"
|
|
2072
2073
|
}, [
|
|
2073
2074
|
m("div", {
|
|
2074
|
-
style:
|
|
2075
|
+
style: Ce({ height: o.height }),
|
|
2075
2076
|
class: "overflow-auto"
|
|
2076
2077
|
}, [
|
|
2077
|
-
m("div",
|
|
2078
|
-
o.title ? (d(), b("div",
|
|
2078
|
+
m("div", ea, [
|
|
2079
|
+
o.title ? (d(), b("div", ta, $(o.title), 1)) : T("", !0),
|
|
2079
2080
|
(d(!0), b(N, null, U(a.value, (p) => (d(), b("div", {
|
|
2080
2081
|
key: p.id,
|
|
2081
2082
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
2082
2083
|
}, [
|
|
2083
2084
|
C(o.$slots, "list-item", { item: p }, () => [
|
|
2084
|
-
m("span",
|
|
2085
|
+
m("span", aa, $(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
2085
2086
|
]),
|
|
2086
2087
|
o.canRemoveItemFromPreview ? (d(), x(s, {
|
|
2087
2088
|
key: 0,
|
|
@@ -2090,7 +2091,7 @@ const Et = {
|
|
|
2090
2091
|
onClick: (u) => i(p.id)
|
|
2091
2092
|
}, {
|
|
2092
2093
|
default: g(() => [
|
|
2093
|
-
k(c(
|
|
2094
|
+
k(c(_), {
|
|
2094
2095
|
icon: "bi:x",
|
|
2095
2096
|
class: "close-icon",
|
|
2096
2097
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -2099,34 +2100,34 @@ const Et = {
|
|
|
2099
2100
|
_: 2
|
|
2100
2101
|
}, 1032, ["onClick"])) : T("", !0)
|
|
2101
2102
|
]))), 128)),
|
|
2102
|
-
a.value == null || a.value.length == 0 ? (d(), b("div",
|
|
2103
|
+
a.value == null || a.value.length == 0 ? (d(), b("div", ia, $(t.optionsPreviewEmptyText), 1)) : T("", !0)
|
|
2103
2104
|
])
|
|
2104
2105
|
], 4)
|
|
2105
2106
|
], 2)
|
|
2106
2107
|
], 2);
|
|
2107
2108
|
};
|
|
2108
2109
|
}
|
|
2109
|
-
}),
|
|
2110
|
+
}), la = { class: "d-flex justify-content-between pb-2" }, na = {
|
|
2110
2111
|
"data-cy": "title",
|
|
2111
2112
|
class: "my-auto"
|
|
2112
|
-
},
|
|
2113
|
+
}, sa = {
|
|
2113
2114
|
"data-cy": "slot",
|
|
2114
2115
|
class: "d-flex align-items-center"
|
|
2115
|
-
},
|
|
2116
|
+
}, bo = /* @__PURE__ */ z({
|
|
2116
2117
|
__name: "ForgePageHeader",
|
|
2117
2118
|
props: {
|
|
2118
2119
|
title: {}
|
|
2119
2120
|
},
|
|
2120
2121
|
setup(e) {
|
|
2121
2122
|
const t = e;
|
|
2122
|
-
return (a, i) => (d(), b("div",
|
|
2123
|
-
m("h3",
|
|
2124
|
-
m("div",
|
|
2123
|
+
return (a, i) => (d(), b("div", la, [
|
|
2124
|
+
m("h3", na, $(t.title), 1),
|
|
2125
|
+
m("div", sa, [
|
|
2125
2126
|
C(a.$slots, "default")
|
|
2126
2127
|
])
|
|
2127
2128
|
]));
|
|
2128
2129
|
}
|
|
2129
|
-
}),
|
|
2130
|
+
}), 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
2131
|
__name: "ForgeDatepicker",
|
|
2131
2132
|
props: /* @__PURE__ */ E({
|
|
2132
2133
|
severity: { default: "primary" },
|
|
@@ -2205,7 +2206,7 @@ const Et = {
|
|
|
2205
2206
|
initialValue: a.value
|
|
2206
2207
|
}), p = () => {
|
|
2207
2208
|
s(null), a.value = null;
|
|
2208
|
-
}, u =
|
|
2209
|
+
}, u = M(() => i.value.length > 0), h = M(() => ({
|
|
2209
2210
|
day: ({ context: r, props: w, attrs: v }) => ({
|
|
2210
2211
|
class: [
|
|
2211
2212
|
"d-flex justify-content-center align-items-center",
|
|
@@ -2311,31 +2312,31 @@ const Et = {
|
|
|
2311
2312
|
})
|
|
2312
2313
|
}));
|
|
2313
2314
|
return (r, w) => {
|
|
2314
|
-
const v =
|
|
2315
|
+
const v = Oe;
|
|
2315
2316
|
return d(), b(N, null, [
|
|
2316
|
-
m("div",
|
|
2317
|
-
m("span",
|
|
2317
|
+
m("div", ra, [
|
|
2318
|
+
m("span", da, [
|
|
2318
2319
|
C(r.$slots, "before")
|
|
2319
2320
|
]),
|
|
2320
|
-
m("div",
|
|
2321
|
+
m("div", pa, [
|
|
2321
2322
|
k(v, j({ ...t, ...r.$attrs }, {
|
|
2322
2323
|
pt: h.value,
|
|
2323
2324
|
modelValue: a.value,
|
|
2324
2325
|
"onUpdate:modelValue": [
|
|
2325
|
-
w[0] || (w[0] = (
|
|
2326
|
+
w[0] || (w[0] = (S) => a.value = S),
|
|
2326
2327
|
c(l)
|
|
2327
2328
|
],
|
|
2328
2329
|
onBlur: w[1] || (w[1] = () => c(n)),
|
|
2329
2330
|
"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
2331
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2331
|
-
K(k(c(
|
|
2332
|
+
K(k(c(_), {
|
|
2332
2333
|
"data-cy": "icon",
|
|
2333
2334
|
icon: "bi:calendar4",
|
|
2334
2335
|
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
2336
|
}, null, 8, ["class"]), [
|
|
2336
2337
|
[X, t.showIcon && !t.inline]
|
|
2337
2338
|
]),
|
|
2338
|
-
K(k(c(
|
|
2339
|
+
K(k(c(_), {
|
|
2339
2340
|
"data-cy": "icon",
|
|
2340
2341
|
icon: "bi:x",
|
|
2341
2342
|
onClick: p,
|
|
@@ -2344,7 +2345,7 @@ const Et = {
|
|
|
2344
2345
|
[X, t.modelValue && !t.inline && !r.readonly]
|
|
2345
2346
|
])
|
|
2346
2347
|
]),
|
|
2347
|
-
m("span",
|
|
2348
|
+
m("span", ca, [
|
|
2348
2349
|
C(r.$slots, "after")
|
|
2349
2350
|
])
|
|
2350
2351
|
]),
|
|
@@ -2357,19 +2358,19 @@ const Et = {
|
|
|
2357
2358
|
], 64);
|
|
2358
2359
|
};
|
|
2359
2360
|
}
|
|
2360
|
-
}),
|
|
2361
|
+
}), yo = /* @__PURE__ */ z({
|
|
2361
2362
|
__name: "ForgeRemainingCharacters",
|
|
2362
2363
|
props: {
|
|
2363
2364
|
maxCount: { default: 300 },
|
|
2364
2365
|
currentCount: {}
|
|
2365
2366
|
},
|
|
2366
2367
|
setup(e) {
|
|
2367
|
-
const t = e, a =
|
|
2368
|
+
const t = e, a = M(() => t.maxCount - t.currentCount);
|
|
2368
2369
|
return (i, o) => (d(), b("div", {
|
|
2369
2370
|
class: P(a.value < 0 ? "text-danger" : "")
|
|
2370
2371
|
}, "Remaining characters: " + $(a.value), 3));
|
|
2371
2372
|
}
|
|
2372
|
-
}),
|
|
2373
|
+
}), ua = { class: "d-flex justify-content-between" }, xo = /* @__PURE__ */ z({
|
|
2373
2374
|
__name: "ForgeForm",
|
|
2374
2375
|
props: {
|
|
2375
2376
|
onSubmit: {},
|
|
@@ -2381,7 +2382,7 @@ const Et = {
|
|
|
2381
2382
|
hideCancel: { type: Boolean, default: !1 }
|
|
2382
2383
|
},
|
|
2383
2384
|
setup(e) {
|
|
2384
|
-
const t = e, a =
|
|
2385
|
+
const t = e, a = I(!1), i = I({
|
|
2385
2386
|
hasError: !1,
|
|
2386
2387
|
message: ""
|
|
2387
2388
|
});
|
|
@@ -2425,7 +2426,7 @@ const Et = {
|
|
|
2425
2426
|
_: 3
|
|
2426
2427
|
})) : T("", !0),
|
|
2427
2428
|
C(l.$slots, "default"),
|
|
2428
|
-
m("div",
|
|
2429
|
+
m("div", ua, [
|
|
2429
2430
|
C(l.$slots, "cancel", {}, () => [
|
|
2430
2431
|
l.hideCancel ? T("", !0) : (d(), x(s, {
|
|
2431
2432
|
key: 0,
|
|
@@ -2462,16 +2463,16 @@ const Et = {
|
|
|
2462
2463
|
], 16);
|
|
2463
2464
|
};
|
|
2464
2465
|
}
|
|
2465
|
-
}),
|
|
2466
|
+
}), ma = {
|
|
2466
2467
|
key: 1,
|
|
2467
2468
|
class: "d-flex flex-column w-100"
|
|
2468
|
-
},
|
|
2469
|
+
}, va = ["for"], fa = {
|
|
2469
2470
|
key: 0,
|
|
2470
2471
|
class: "text-danger fw-600"
|
|
2471
|
-
},
|
|
2472
|
+
}, ga = {
|
|
2472
2473
|
class: "flex--1",
|
|
2473
2474
|
style: { flex: "1 0 auto" }
|
|
2474
|
-
},
|
|
2475
|
+
}, ho = /* @__PURE__ */ z({
|
|
2475
2476
|
__name: "ForgeFormField",
|
|
2476
2477
|
props: /* @__PURE__ */ E({
|
|
2477
2478
|
name: {},
|
|
@@ -2492,11 +2493,11 @@ const Et = {
|
|
|
2492
2493
|
a.type == "number" ? s(h.value) : s(h);
|
|
2493
2494
|
}, { errors: o, value: l, errorMessage: n, handleChange: s, handleBlur: p } = se(() => a.name, void 0, {
|
|
2494
2495
|
initialValue: t.value
|
|
2495
|
-
}), u =
|
|
2496
|
+
}), u = M(() => o.value.length > 0);
|
|
2496
2497
|
return W(() => l.value, (h) => {
|
|
2497
2498
|
t.value = h;
|
|
2498
2499
|
}, { immediate: !0 }), (h, r) => {
|
|
2499
|
-
const w =
|
|
2500
|
+
const w = Le, v = Ae, S = ae, F = oe, A = de, f = xe;
|
|
2500
2501
|
return a.type === "checkbox" ? (d(), x(ye, j({
|
|
2501
2502
|
key: 0,
|
|
2502
2503
|
id: a.name,
|
|
@@ -2505,7 +2506,7 @@ const Et = {
|
|
|
2505
2506
|
name: a.name,
|
|
2506
2507
|
modelValue: t.value,
|
|
2507
2508
|
"onUpdate:modelValue": r[0] || (r[0] = (B) => t.value = B)
|
|
2508
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div",
|
|
2509
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div", ma, [
|
|
2509
2510
|
m("div", {
|
|
2510
2511
|
"data-cy": "input-wrapper",
|
|
2511
2512
|
class: P(["d-flex flex--1", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2515,9 +2516,9 @@ const Et = {
|
|
|
2515
2516
|
class: P(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2516
2517
|
}, [
|
|
2517
2518
|
V($(a.fieldLabel) + " ", 1),
|
|
2518
|
-
h.required ? (d(), b("span",
|
|
2519
|
-
], 10,
|
|
2520
|
-
m("div",
|
|
2519
|
+
h.required ? (d(), b("span", fa, "*")) : T("", !0)
|
|
2520
|
+
], 10, va),
|
|
2521
|
+
m("div", ga, [
|
|
2521
2522
|
C(h.$slots, "default", G(Y({ modelValue: t.value, updateModel: c(s), hasErrors: u.value })), () => [
|
|
2522
2523
|
a.type === "number" ? (d(), x(c(fe), j({
|
|
2523
2524
|
key: 0,
|
|
@@ -2550,7 +2551,7 @@ const Et = {
|
|
|
2550
2551
|
"onUpdate:modelValue": r[3] || (r[3] = (B) => t.value = B),
|
|
2551
2552
|
onComplete: i,
|
|
2552
2553
|
onBlur: c(p)
|
|
2553
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(
|
|
2554
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(S, j({
|
|
2554
2555
|
key: 3,
|
|
2555
2556
|
id: a.name
|
|
2556
2557
|
}, h.$attrs, {
|
|
@@ -2560,7 +2561,7 @@ const Et = {
|
|
|
2560
2561
|
"onUpdate:modelValue": r[4] || (r[4] = (B) => t.value = B),
|
|
2561
2562
|
onInput: i,
|
|
2562
2563
|
onBlur: c(p)
|
|
2563
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(
|
|
2564
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(F, j({ key: 4 }, { ...a, ...h.$attrs }, {
|
|
2564
2565
|
modelValue: t.value,
|
|
2565
2566
|
"onUpdate:modelValue": r[5] || (r[5] = (B) => t.value = B),
|
|
2566
2567
|
class: { "is-invalid": u.value }
|
|
@@ -2568,7 +2569,7 @@ const Et = {
|
|
|
2568
2569
|
modelValue: t.value,
|
|
2569
2570
|
"onUpdate:modelValue": r[6] || (r[6] = (B) => t.value = B),
|
|
2570
2571
|
class: { "is-invalid": u.value }
|
|
2571
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(
|
|
2572
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(oa, j({ key: 6 }, { ...a, ...h.$attrs }, {
|
|
2572
2573
|
modelValue: t.value,
|
|
2573
2574
|
"onUpdate:modelValue": r[7] || (r[7] = (B) => t.value = B),
|
|
2574
2575
|
class: { "is-invalid": u.value }
|
|
@@ -2589,7 +2590,7 @@ const Et = {
|
|
|
2589
2590
|
]));
|
|
2590
2591
|
};
|
|
2591
2592
|
}
|
|
2592
|
-
}),
|
|
2593
|
+
}), wo = /* @__PURE__ */ z({
|
|
2593
2594
|
__name: "ForgeChip",
|
|
2594
2595
|
props: {
|
|
2595
2596
|
chipSeverity: { default: "primary" },
|
|
@@ -2605,7 +2606,7 @@ const Et = {
|
|
|
2605
2606
|
unstyled: { type: Boolean }
|
|
2606
2607
|
},
|
|
2607
2608
|
setup(e) {
|
|
2608
|
-
const t = e, a =
|
|
2609
|
+
const t = e, a = M(() => ({
|
|
2609
2610
|
root: [
|
|
2610
2611
|
"badge d-inline-flex align-items-center border me-1 p-1",
|
|
2611
2612
|
{
|
|
@@ -2624,7 +2625,7 @@ const Et = {
|
|
|
2624
2625
|
]
|
|
2625
2626
|
}));
|
|
2626
2627
|
return (i, o) => {
|
|
2627
|
-
const l =
|
|
2628
|
+
const l = Ne;
|
|
2628
2629
|
return d(), x(l, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2629
2630
|
default: g(() => [
|
|
2630
2631
|
(d(!0), b(N, null, U(i.$slots, (n, s) => C(i.$slots, s, { slot: s })), 256))
|
|
@@ -2633,7 +2634,7 @@ const Et = {
|
|
|
2633
2634
|
}, 16, ["pt"]);
|
|
2634
2635
|
};
|
|
2635
2636
|
}
|
|
2636
|
-
}),
|
|
2637
|
+
}), ko = /* @__PURE__ */ z({
|
|
2637
2638
|
__name: "ForgeProgressBar",
|
|
2638
2639
|
props: {
|
|
2639
2640
|
severity: { default: "primary" },
|
|
@@ -2649,7 +2650,7 @@ const Et = {
|
|
|
2649
2650
|
unstyled: { type: Boolean }
|
|
2650
2651
|
},
|
|
2651
2652
|
setup(e) {
|
|
2652
|
-
const t = e, a =
|
|
2653
|
+
const t = e, a = M(() => t.striped ? "progress-bar-striped" : null), i = M(() => t.animate ? "progress-bar-animated" : null), o = M(() => {
|
|
2653
2654
|
switch (t.severity) {
|
|
2654
2655
|
case "brand":
|
|
2655
2656
|
return "bg-brand";
|
|
@@ -2670,7 +2671,7 @@ const Et = {
|
|
|
2670
2671
|
default:
|
|
2671
2672
|
return "bg-primary";
|
|
2672
2673
|
}
|
|
2673
|
-
}), l =
|
|
2674
|
+
}), l = M(() => ({
|
|
2674
2675
|
root: {
|
|
2675
2676
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2676
2677
|
},
|
|
@@ -2679,7 +2680,7 @@ const Et = {
|
|
|
2679
2680
|
}
|
|
2680
2681
|
}));
|
|
2681
2682
|
return (n, s) => {
|
|
2682
|
-
const p =
|
|
2683
|
+
const p = Ue;
|
|
2683
2684
|
return d(), x(p, j({ ...n.$attrs, ...t }, { pt: l.value }), {
|
|
2684
2685
|
default: g(() => [
|
|
2685
2686
|
C(n.$slots, "default")
|
|
@@ -2689,7 +2690,7 @@ const Et = {
|
|
|
2689
2690
|
};
|
|
2690
2691
|
}
|
|
2691
2692
|
});
|
|
2692
|
-
var
|
|
2693
|
+
var ba = /* @__PURE__ */ z({
|
|
2693
2694
|
name: "VueDrawingCanvas",
|
|
2694
2695
|
props: {
|
|
2695
2696
|
strokeType: {
|
|
@@ -3002,11 +3003,11 @@ var ga = /* @__PURE__ */ z({
|
|
|
3002
3003
|
},
|
|
3003
3004
|
wrapText(e, t, a, i, o, l) {
|
|
3004
3005
|
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
|
-
|
|
3006
|
+
var p = t.split(n).filter((F) => F.length > 0);
|
|
3007
|
+
for (let F = 0; F < p.length; F++) {
|
|
3008
|
+
for (var u = p[F].split(s).filter((A) => A.length > 0), h = "", r = 0; r < u.length; r++) {
|
|
3009
|
+
var w = h + u[r] + " ", v = e.measureText(w), S = v.width;
|
|
3010
|
+
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
3011
|
}
|
|
3011
3012
|
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
3013
|
}
|
|
@@ -3052,7 +3053,7 @@ var ga = /* @__PURE__ */ z({
|
|
|
3052
3053
|
}
|
|
3053
3054
|
},
|
|
3054
3055
|
render() {
|
|
3055
|
-
return
|
|
3056
|
+
return Te("canvas", {
|
|
3056
3057
|
id: this.canvasId,
|
|
3057
3058
|
height: Number(this.height),
|
|
3058
3059
|
width: Number(this.width),
|
|
@@ -3079,7 +3080,7 @@ var ga = /* @__PURE__ */ z({
|
|
|
3079
3080
|
});
|
|
3080
3081
|
}
|
|
3081
3082
|
});
|
|
3082
|
-
const
|
|
3083
|
+
const ya = { class: "d-flex flex-column" }, xa = { class: "d-flex flex-row mt-1 gap-1" }, Bo = /* @__PURE__ */ z({
|
|
3083
3084
|
__name: "ForgeScratchpad",
|
|
3084
3085
|
props: {
|
|
3085
3086
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -3092,7 +3093,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3092
3093
|
},
|
|
3093
3094
|
emits: ["save"],
|
|
3094
3095
|
setup(e, { emit: t }) {
|
|
3095
|
-
const a = e, i = t, o =
|
|
3096
|
+
const a = e, i = t, o = ze("drawingCanvas"), l = I(), n = () => {
|
|
3096
3097
|
o == null || o.value.reset();
|
|
3097
3098
|
}, s = () => {
|
|
3098
3099
|
o == null || o.value.redo();
|
|
@@ -3103,8 +3104,8 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3103
3104
|
};
|
|
3104
3105
|
return (h, r) => {
|
|
3105
3106
|
const w = q;
|
|
3106
|
-
return d(), b("div",
|
|
3107
|
-
k(c(
|
|
3107
|
+
return d(), b("div", ya, [
|
|
3108
|
+
k(c(ba), j({
|
|
3108
3109
|
ref_key: "drawingCanvas",
|
|
3109
3110
|
ref: o,
|
|
3110
3111
|
image: l.value,
|
|
@@ -3117,18 +3118,17 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3117
3118
|
style: `height: ${h.height}px; width: ${h.width}px`,
|
|
3118
3119
|
"line-join": h.lineJoin
|
|
3119
3120
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
3120
|
-
m("div",
|
|
3121
|
+
m("div", xa, [
|
|
3121
3122
|
a.showUndo ? (d(), x(w, {
|
|
3122
3123
|
key: 0,
|
|
3123
3124
|
onClick: p,
|
|
3124
3125
|
outlined: "",
|
|
3125
3126
|
"data-cy": "undo-button"
|
|
3126
3127
|
}, {
|
|
3127
|
-
default: g(() => r[1] || (r[1] = [
|
|
3128
|
+
default: g(() => [...r[1] || (r[1] = [
|
|
3128
3129
|
V("Undo", -1)
|
|
3129
|
-
])),
|
|
3130
|
-
_: 1
|
|
3131
|
-
__: [1]
|
|
3130
|
+
])]),
|
|
3131
|
+
_: 1
|
|
3132
3132
|
})) : T("", !0),
|
|
3133
3133
|
a.showRedo ? (d(), x(w, {
|
|
3134
3134
|
key: 1,
|
|
@@ -3136,11 +3136,10 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3136
3136
|
outlined: "",
|
|
3137
3137
|
"data-cy": "redo-button"
|
|
3138
3138
|
}, {
|
|
3139
|
-
default: g(() => r[2] || (r[2] = [
|
|
3139
|
+
default: g(() => [...r[2] || (r[2] = [
|
|
3140
3140
|
V("Redo", -1)
|
|
3141
|
-
])),
|
|
3142
|
-
_: 1
|
|
3143
|
-
__: [2]
|
|
3141
|
+
])]),
|
|
3142
|
+
_: 1
|
|
3144
3143
|
})) : T("", !0),
|
|
3145
3144
|
a.showClear ? (d(), x(w, {
|
|
3146
3145
|
key: 2,
|
|
@@ -3148,11 +3147,10 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3148
3147
|
outlined: "",
|
|
3149
3148
|
"data-cy": "clear-button"
|
|
3150
3149
|
}, {
|
|
3151
|
-
default: g(() => r[3] || (r[3] = [
|
|
3150
|
+
default: g(() => [...r[3] || (r[3] = [
|
|
3152
3151
|
V("Clear", -1)
|
|
3153
|
-
])),
|
|
3154
|
-
_: 1
|
|
3155
|
-
__: [3]
|
|
3152
|
+
])]),
|
|
3153
|
+
_: 1
|
|
3156
3154
|
})) : T("", !0),
|
|
3157
3155
|
a.showSave ? (d(), x(w, {
|
|
3158
3156
|
key: 3,
|
|
@@ -3160,17 +3158,16 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3160
3158
|
class: "ms-auto",
|
|
3161
3159
|
"data-cy": "save-button"
|
|
3162
3160
|
}, {
|
|
3163
|
-
default: g(() => r[4] || (r[4] = [
|
|
3161
|
+
default: g(() => [...r[4] || (r[4] = [
|
|
3164
3162
|
V("Save", -1)
|
|
3165
|
-
])),
|
|
3166
|
-
_: 1
|
|
3167
|
-
__: [4]
|
|
3163
|
+
])]),
|
|
3164
|
+
_: 1
|
|
3168
3165
|
})) : T("", !0)
|
|
3169
3166
|
])
|
|
3170
3167
|
]);
|
|
3171
3168
|
};
|
|
3172
3169
|
}
|
|
3173
|
-
}),
|
|
3170
|
+
}), ha = { class: "value text-white w-100 text-center" }, $o = /* @__PURE__ */ z({
|
|
3174
3171
|
__name: "ForgeStatWidget",
|
|
3175
3172
|
props: {
|
|
3176
3173
|
size: { default: "md" },
|
|
@@ -3181,12 +3178,12 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3181
3178
|
return (a, i) => (d(), b("div", j(a.$attrs, {
|
|
3182
3179
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3183
3180
|
}), [
|
|
3184
|
-
m("span",
|
|
3181
|
+
m("span", ha, [
|
|
3185
3182
|
C(a.$slots, "default")
|
|
3186
3183
|
])
|
|
3187
3184
|
], 16));
|
|
3188
3185
|
}
|
|
3189
|
-
}),
|
|
3186
|
+
}), wa = { key: 0 }, Fo = /* @__PURE__ */ z({
|
|
3190
3187
|
__name: "ForgeStepper",
|
|
3191
3188
|
props: {
|
|
3192
3189
|
currentStep: { default: 1 },
|
|
@@ -3204,7 +3201,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3204
3201
|
unstyled: { type: Boolean }
|
|
3205
3202
|
},
|
|
3206
3203
|
setup(e) {
|
|
3207
|
-
const t = e, a =
|
|
3204
|
+
const t = e, a = M(() => ({
|
|
3208
3205
|
header: {
|
|
3209
3206
|
class: [
|
|
3210
3207
|
"p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
|
|
@@ -3233,26 +3230,26 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3233
3230
|
]
|
|
3234
3231
|
})
|
|
3235
3232
|
}));
|
|
3236
|
-
return (i, o) => (d(), x(c(
|
|
3233
|
+
return (i, o) => (d(), x(c(qe), { value: i.currentStep }, {
|
|
3237
3234
|
default: g(() => [
|
|
3238
|
-
k(c(
|
|
3235
|
+
k(c(Re), null, {
|
|
3239
3236
|
default: g(() => [
|
|
3240
|
-
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(
|
|
3237
|
+
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(Ee), j({
|
|
3241
3238
|
key: l.value,
|
|
3242
3239
|
value: l.value,
|
|
3243
3240
|
disabled: l.disabled
|
|
3244
3241
|
}, { ref_for: !0 }, { ...i.$attrs }, { pt: a.value }), {
|
|
3245
3242
|
default: g(() => [
|
|
3246
|
-
i.showStepLabel ? (d(), b("div",
|
|
3243
|
+
i.showStepLabel ? (d(), b("div", wa, $(l.label), 1)) : T("", !0)
|
|
3247
3244
|
]),
|
|
3248
3245
|
_: 2
|
|
3249
3246
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
3250
3247
|
]),
|
|
3251
3248
|
_: 1
|
|
3252
3249
|
}),
|
|
3253
|
-
k(c(
|
|
3250
|
+
k(c(We), null, {
|
|
3254
3251
|
default: g(() => [
|
|
3255
|
-
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(
|
|
3252
|
+
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(He), {
|
|
3256
3253
|
key: l.value,
|
|
3257
3254
|
value: l.value
|
|
3258
3255
|
}, {
|
|
@@ -3268,7 +3265,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3268
3265
|
_: 3
|
|
3269
3266
|
}, 8, ["value"]));
|
|
3270
3267
|
}
|
|
3271
|
-
}),
|
|
3268
|
+
}), ka = { class: "p-4 text-wrap w-100" }, Ba = { class: "p-4 text-wrap w-100" }, So = /* @__PURE__ */ z({
|
|
3272
3269
|
__name: "ForgeTile",
|
|
3273
3270
|
props: {
|
|
3274
3271
|
severity: { default: "primary" },
|
|
@@ -3277,7 +3274,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3277
3274
|
selected: { type: Boolean, default: !1 }
|
|
3278
3275
|
},
|
|
3279
3276
|
setup(e) {
|
|
3280
|
-
const t = e, a =
|
|
3277
|
+
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
3278
|
return (o, l) => {
|
|
3282
3279
|
const n = q;
|
|
3283
3280
|
return t.clickable ? (d(), x(n, {
|
|
@@ -3288,7 +3285,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3288
3285
|
"data-cy": "button-tile"
|
|
3289
3286
|
}, {
|
|
3290
3287
|
default: g(() => [
|
|
3291
|
-
m("div",
|
|
3288
|
+
m("div", ka, [
|
|
3292
3289
|
C(o.$slots, "default", {}, () => [
|
|
3293
3290
|
l[0] || (l[0] = V("Tile Content", -1))
|
|
3294
3291
|
])
|
|
@@ -3300,7 +3297,7 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3300
3297
|
class: P(["d-flex w-100", i.value]),
|
|
3301
3298
|
"data-cy": "tile"
|
|
3302
3299
|
}, [
|
|
3303
|
-
m("div",
|
|
3300
|
+
m("div", Ba, [
|
|
3304
3301
|
C(o.$slots, "default", {}, () => [
|
|
3305
3302
|
l[1] || (l[1] = V("Tile Content", -1))
|
|
3306
3303
|
])
|
|
@@ -3312,10 +3309,10 @@ const ba = { class: "d-flex flex-column" }, ya = { class: "d-flex flex-row mt-1
|
|
|
3312
3309
|
function ee(e, t) {
|
|
3313
3310
|
return e > 1 ? `${t}s` : t;
|
|
3314
3311
|
}
|
|
3315
|
-
const
|
|
3312
|
+
const $a = {
|
|
3316
3313
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3317
3314
|
"data-cy": "pagination-header"
|
|
3318
|
-
},
|
|
3315
|
+
}, Fa = { class: "ms-2" }, Sa = { key: 0 }, Ca = {
|
|
3319
3316
|
class: "w-auto",
|
|
3320
3317
|
"data-cy": "total"
|
|
3321
3318
|
}, he = /* @__PURE__ */ z({
|
|
@@ -3329,13 +3326,13 @@ const Ba = {
|
|
|
3329
3326
|
setup(e, { emit: t }) {
|
|
3330
3327
|
const a = t, i = e, o = (n) => {
|
|
3331
3328
|
a("update:perPage", n.value);
|
|
3332
|
-
}, l =
|
|
3329
|
+
}, l = M(() => {
|
|
3333
3330
|
const n = Math.ceil(i.total / i.perPage);
|
|
3334
3331
|
return `${n} ${ee(n, "page")}`;
|
|
3335
3332
|
});
|
|
3336
|
-
return (n, s) => (d(), b("div",
|
|
3333
|
+
return (n, s) => (d(), b("div", $a, [
|
|
3337
3334
|
s[2] || (s[2] = V(" Number of results per page ", -1)),
|
|
3338
|
-
m("div",
|
|
3335
|
+
m("div", Fa, [
|
|
3339
3336
|
k(c(oe), {
|
|
3340
3337
|
options: i.pageSizes,
|
|
3341
3338
|
"model-value": i.perPage,
|
|
@@ -3346,14 +3343,14 @@ const Ba = {
|
|
|
3346
3343
|
]),
|
|
3347
3344
|
i.total ? (d(), b("div", Sa, [
|
|
3348
3345
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3349
|
-
m("span",
|
|
3346
|
+
m("span", Ca, $(i.total) + " " + $(c(ee)(i.total, "result")) + " across " + $(l.value), 1)
|
|
3350
3347
|
])) : T("", !0)
|
|
3351
3348
|
]));
|
|
3352
3349
|
}
|
|
3353
|
-
}),
|
|
3350
|
+
}), Ta = { class: "position-relative" }, za = { "data-cy": "above-table-slot" }, Pa = { class: "d-flex w-100" }, ja = {
|
|
3354
3351
|
class: "mx-auto",
|
|
3355
3352
|
"data-cy": "empty-message"
|
|
3356
|
-
},
|
|
3353
|
+
}, Ma = { class: "d-flex" }, Ia = { class: "d-flex align-items-end mb-2" }, _a = { key: 0 }, Va = { class: "ms-auto" }, Co = /* @__PURE__ */ z({
|
|
3357
3354
|
__name: "ForgeTable",
|
|
3358
3355
|
props: {
|
|
3359
3356
|
value: {},
|
|
@@ -3440,7 +3437,7 @@ const Ba = {
|
|
|
3440
3437
|
},
|
|
3441
3438
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3442
3439
|
setup(e, { emit: t }) {
|
|
3443
|
-
const a = t, i = e, o =
|
|
3440
|
+
const a = t, i = e, o = I(), l = I([5, 10, 20, 50, 100]), n = I(i.perPage ?? 10), s = I({
|
|
3444
3441
|
filters: i.filters,
|
|
3445
3442
|
perPage: n.value,
|
|
3446
3443
|
page: 0,
|
|
@@ -3451,10 +3448,10 @@ const Ba = {
|
|
|
3451
3448
|
W(() => i.perPage, (f) => {
|
|
3452
3449
|
f && (n.value = f, s.value.perPage = f);
|
|
3453
3450
|
});
|
|
3454
|
-
const p =
|
|
3451
|
+
const p = M(() => i.totalRecords ?? i.value.length), u = M(() => {
|
|
3455
3452
|
const f = Math.ceil(p.value / n.value);
|
|
3456
3453
|
return `${f} ${ee(f, "page")}`;
|
|
3457
|
-
}), h =
|
|
3454
|
+
}), h = M(() => ({
|
|
3458
3455
|
thead: () => ({
|
|
3459
3456
|
class: [
|
|
3460
3457
|
{
|
|
@@ -3483,26 +3480,26 @@ const Ba = {
|
|
|
3483
3480
|
else
|
|
3484
3481
|
for (const f in i.filters)
|
|
3485
3482
|
typeof i.filters[f] == "string" ? i.filters[f] = "" : i.filters[f].value = null;
|
|
3486
|
-
|
|
3483
|
+
S(i.filters);
|
|
3487
3484
|
}, w = () => {
|
|
3488
3485
|
o.value.exportCSV();
|
|
3489
3486
|
}, v = (f) => {
|
|
3490
3487
|
var B;
|
|
3491
3488
|
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
3489
|
}, S = (f) => {
|
|
3490
|
+
s.value.filters = f, a("update:tableContext", s.value), a("update:filters", f);
|
|
3491
|
+
}, F = (f) => {
|
|
3495
3492
|
s.value.page = f.page, a("update:tableContext", s.value), a("page", f);
|
|
3496
3493
|
}, A = () => {
|
|
3497
3494
|
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3498
3495
|
};
|
|
3499
3496
|
return W(() => i.filters, (f) => {
|
|
3500
3497
|
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",
|
|
3498
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (f, B) => (d(), b("div", Ta, [
|
|
3499
|
+
m("span", za, [
|
|
3503
3500
|
C(f.$slots, "above-table")
|
|
3504
3501
|
]),
|
|
3505
|
-
k(c(
|
|
3502
|
+
k(c(Ge), j({
|
|
3506
3503
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3507
3504
|
}, { ...i, ...f.$attrs }, {
|
|
3508
3505
|
pt: h.value,
|
|
@@ -3512,23 +3509,23 @@ const Ba = {
|
|
|
3512
3509
|
ref_key: "forgeTable",
|
|
3513
3510
|
ref: o,
|
|
3514
3511
|
"data-cy": "table",
|
|
3515
|
-
"onUpdate:filters":
|
|
3512
|
+
"onUpdate:filters": S,
|
|
3516
3513
|
onSort: v,
|
|
3517
|
-
onPage:
|
|
3514
|
+
onPage: F,
|
|
3518
3515
|
showHeaders: ""
|
|
3519
3516
|
}), ie({
|
|
3520
3517
|
empty: g(() => [
|
|
3521
|
-
m("div",
|
|
3522
|
-
m("h5",
|
|
3518
|
+
m("div", Pa, [
|
|
3519
|
+
m("h5", ja, $(f.emptyMessage ?? "No items Found."), 1)
|
|
3523
3520
|
])
|
|
3524
3521
|
]),
|
|
3525
3522
|
header: g(() => [
|
|
3526
3523
|
m("div", {
|
|
3527
3524
|
class: P(i.loading ? "opacity-50" : "")
|
|
3528
3525
|
}, [
|
|
3529
|
-
m("div",
|
|
3530
|
-
m("div",
|
|
3531
|
-
f.paginator && !f.legacyPaginationFooter ? (d(), b("span",
|
|
3526
|
+
m("div", Ma, [
|
|
3527
|
+
m("div", Ia, [
|
|
3528
|
+
f.paginator && !f.legacyPaginationFooter ? (d(), b("span", _a, [
|
|
3532
3529
|
k(he, {
|
|
3533
3530
|
total: p.value,
|
|
3534
3531
|
"page-sizes": l.value,
|
|
@@ -3540,7 +3537,7 @@ const Ba = {
|
|
|
3540
3537
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3541
3538
|
])) : T("", !0)
|
|
3542
3539
|
]),
|
|
3543
|
-
m("div",
|
|
3540
|
+
m("div", Va, [
|
|
3544
3541
|
f.showClearButton ? (d(), x(c(q), {
|
|
3545
3542
|
key: 0,
|
|
3546
3543
|
outlined: "",
|
|
@@ -3549,15 +3546,14 @@ const Ba = {
|
|
|
3549
3546
|
"data-cy": "clear-all"
|
|
3550
3547
|
}, {
|
|
3551
3548
|
default: g(() => [
|
|
3552
|
-
k(c(
|
|
3549
|
+
k(c(_), {
|
|
3553
3550
|
icon: "bi:funnel-fill",
|
|
3554
3551
|
width: "24",
|
|
3555
3552
|
height: "24"
|
|
3556
3553
|
}),
|
|
3557
3554
|
B[2] || (B[2] = V(" Clear ", -1))
|
|
3558
3555
|
]),
|
|
3559
|
-
_: 1
|
|
3560
|
-
__: [2]
|
|
3556
|
+
_: 1
|
|
3561
3557
|
}, 8, ["class"])) : T("", !0),
|
|
3562
3558
|
f.showExporterButton ? (d(), x(c(q), {
|
|
3563
3559
|
key: 1,
|
|
@@ -3566,15 +3562,14 @@ const Ba = {
|
|
|
3566
3562
|
"data-cy": "exporter"
|
|
3567
3563
|
}, {
|
|
3568
3564
|
default: g(() => [
|
|
3569
|
-
k(c(
|
|
3565
|
+
k(c(_), {
|
|
3570
3566
|
icon: "typcn:export",
|
|
3571
3567
|
width: "24",
|
|
3572
3568
|
height: "24"
|
|
3573
3569
|
}),
|
|
3574
3570
|
B[3] || (B[3] = V(" Export ", -1))
|
|
3575
3571
|
]),
|
|
3576
|
-
_: 1
|
|
3577
|
-
__: [3]
|
|
3572
|
+
_: 1
|
|
3578
3573
|
})) : T("", !0),
|
|
3579
3574
|
C(f.$slots, "column-customiser")
|
|
3580
3575
|
])
|
|
@@ -3624,10 +3619,10 @@ const Ba = {
|
|
|
3624
3619
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3625
3620
|
]));
|
|
3626
3621
|
}
|
|
3627
|
-
}),
|
|
3622
|
+
}), Da = { class: "position-relative" }, Oa = { "data-cy": "above-table-slot" }, Aa = { class: "d-flex w-100" }, La = {
|
|
3628
3623
|
class: "mx-auto",
|
|
3629
3624
|
"data-cy": "empty-message"
|
|
3630
|
-
},
|
|
3625
|
+
}, Na = { class: "d-flex" }, Ua = { class: "d-flex align-items-end mb-2" }, Ea = { key: 0 }, qa = { class: "ms-auto" }, To = /* @__PURE__ */ z({
|
|
3631
3626
|
__name: "ForgeTreeTable",
|
|
3632
3627
|
props: {
|
|
3633
3628
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3688,17 +3683,17 @@ const Ba = {
|
|
|
3688
3683
|
},
|
|
3689
3684
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3690
3685
|
setup(e, { emit: t }) {
|
|
3691
|
-
const a = e, i = t, o =
|
|
3686
|
+
const a = e, i = t, o = I([5, 10, 20, 50, 100]), l = I(10), n = I(0), s = I(0), p = I({
|
|
3692
3687
|
filters: a.filters,
|
|
3693
3688
|
perPage: l.value,
|
|
3694
3689
|
page: 0,
|
|
3695
3690
|
sortDirection: "None",
|
|
3696
3691
|
sortField: "",
|
|
3697
3692
|
total: a.totalRecords ?? a.value.length
|
|
3698
|
-
}), u =
|
|
3693
|
+
}), u = M(() => a.totalRecords ?? a.value.length), h = M(() => {
|
|
3699
3694
|
const y = Math.ceil(u.value / l.value);
|
|
3700
3695
|
return `${y} ${ee(y, "page")}`;
|
|
3701
|
-
}), r =
|
|
3696
|
+
}), r = M(() => ({
|
|
3702
3697
|
root: "position-relative",
|
|
3703
3698
|
table: (y) => ({
|
|
3704
3699
|
class: [
|
|
@@ -3768,14 +3763,14 @@ const Ba = {
|
|
|
3768
3763
|
},
|
|
3769
3764
|
0
|
|
3770
3765
|
);
|
|
3771
|
-
},
|
|
3766
|
+
}, S = () => {
|
|
3772
3767
|
if (a.clearAll)
|
|
3773
3768
|
a.clearAll();
|
|
3774
3769
|
else
|
|
3775
3770
|
for (const y in a.filters)
|
|
3776
3771
|
typeof a.filters[y] == "string" ? a.filters[y] = "" : a.filters[y].value = null;
|
|
3777
3772
|
A(a.filters);
|
|
3778
|
-
},
|
|
3773
|
+
}, F = (y) => {
|
|
3779
3774
|
var O;
|
|
3780
3775
|
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
3776
|
}, A = (y) => {
|
|
@@ -3795,11 +3790,11 @@ const Ba = {
|
|
|
3795
3790
|
const D = () => {
|
|
3796
3791
|
n.value = s.value * l.value;
|
|
3797
3792
|
};
|
|
3798
|
-
return (y, O) => (d(), b("div",
|
|
3799
|
-
m("span",
|
|
3793
|
+
return (y, O) => (d(), b("div", Da, [
|
|
3794
|
+
m("span", Oa, [
|
|
3800
3795
|
C(y.$slots, "above-table")
|
|
3801
3796
|
]),
|
|
3802
|
-
k(c(
|
|
3797
|
+
k(c(Ye), j({
|
|
3803
3798
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3804
3799
|
}, { ...a, ...y.$attrs }, {
|
|
3805
3800
|
pt: r.value,
|
|
@@ -3807,24 +3802,24 @@ const Ba = {
|
|
|
3807
3802
|
rows: y.paginator ? l.value : void 0,
|
|
3808
3803
|
"data-cy": "tree-table",
|
|
3809
3804
|
"onUpdate:filters": A,
|
|
3810
|
-
onSort:
|
|
3805
|
+
onSort: F,
|
|
3811
3806
|
onPage: f,
|
|
3812
3807
|
onNodeExpand: O[2] || (O[2] = () => w()),
|
|
3813
3808
|
showHeaders: "",
|
|
3814
3809
|
first: n.value
|
|
3815
3810
|
}), ie({
|
|
3816
3811
|
empty: g(() => [
|
|
3817
|
-
m("div",
|
|
3818
|
-
m("h5",
|
|
3812
|
+
m("div", Aa, [
|
|
3813
|
+
m("h5", La, $(y.emptyMessage ?? "No items Found."), 1)
|
|
3819
3814
|
])
|
|
3820
3815
|
]),
|
|
3821
3816
|
header: g(() => [
|
|
3822
3817
|
m("div", {
|
|
3823
3818
|
class: P(a.loading ? "opacity-50" : "")
|
|
3824
3819
|
}, [
|
|
3825
|
-
m("div",
|
|
3826
|
-
m("div",
|
|
3827
|
-
y.paginator && !y.legacyPaginationFooter ? (d(), b("span",
|
|
3820
|
+
m("div", Na, [
|
|
3821
|
+
m("div", Ua, [
|
|
3822
|
+
y.paginator && !y.legacyPaginationFooter ? (d(), b("span", Ea, [
|
|
3828
3823
|
k(he, {
|
|
3829
3824
|
total: u.value,
|
|
3830
3825
|
"page-sizes": o.value,
|
|
@@ -3836,23 +3831,22 @@ const Ba = {
|
|
|
3836
3831
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3837
3832
|
])) : T("", !0)
|
|
3838
3833
|
]),
|
|
3839
|
-
m("div",
|
|
3834
|
+
m("div", qa, [
|
|
3840
3835
|
y.showClearButton ? (d(), x(c(q), {
|
|
3841
3836
|
key: 0,
|
|
3842
3837
|
outlined: "",
|
|
3843
|
-
onClick:
|
|
3838
|
+
onClick: S,
|
|
3844
3839
|
"data-cy": "clear-all"
|
|
3845
3840
|
}, {
|
|
3846
3841
|
default: g(() => [
|
|
3847
|
-
k(c(
|
|
3842
|
+
k(c(_), {
|
|
3848
3843
|
icon: "bi:funnel-fill",
|
|
3849
3844
|
width: "24",
|
|
3850
3845
|
height: "24"
|
|
3851
3846
|
}),
|
|
3852
3847
|
O[3] || (O[3] = V(" Clear ", -1))
|
|
3853
3848
|
]),
|
|
3854
|
-
_: 1
|
|
3855
|
-
__: [3]
|
|
3849
|
+
_: 1
|
|
3856
3850
|
})) : T("", !0),
|
|
3857
3851
|
C(y.$slots, "column-customiser")
|
|
3858
3852
|
])
|
|
@@ -3866,8 +3860,8 @@ const Ba = {
|
|
|
3866
3860
|
}, [
|
|
3867
3861
|
U(y.$slots, (R, ve) => ({
|
|
3868
3862
|
name: ve,
|
|
3869
|
-
fn: g((
|
|
3870
|
-
C(y.$slots, ve, G(Y(
|
|
3863
|
+
fn: g(($e) => [
|
|
3864
|
+
C(y.$slots, ve, G(Y($e || {})))
|
|
3871
3865
|
])
|
|
3872
3866
|
})),
|
|
3873
3867
|
y.legacyPaginationFooter ? {
|
|
@@ -3902,7 +3896,7 @@ const Ba = {
|
|
|
3902
3896
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3903
3897
|
]));
|
|
3904
3898
|
}
|
|
3905
|
-
}),
|
|
3899
|
+
}), Ra = { class: "d-flex position-relative" }, Ha = { class: "d-flex w-100" }, zo = /* @__PURE__ */ z({
|
|
3906
3900
|
__name: "ForgeFilterHeader",
|
|
3907
3901
|
props: /* @__PURE__ */ E({
|
|
3908
3902
|
dataType: {},
|
|
@@ -3933,7 +3927,7 @@ const Ba = {
|
|
|
3933
3927
|
};
|
|
3934
3928
|
return (o, l) => {
|
|
3935
3929
|
const n = fe, s = q;
|
|
3936
|
-
return d(), b("div",
|
|
3930
|
+
return d(), b("div", Ra, [
|
|
3937
3931
|
o.dataType === "numeric" ? (d(), x(n, j({
|
|
3938
3932
|
key: 0,
|
|
3939
3933
|
modelValue: t.value,
|
|
@@ -3956,7 +3950,7 @@ const Ba = {
|
|
|
3956
3950
|
"option-label": o.optionLabel
|
|
3957
3951
|
}), {
|
|
3958
3952
|
value: g(({ value: p, placeholder: u }) => [
|
|
3959
|
-
m("div",
|
|
3953
|
+
m("div", Ha, [
|
|
3960
3954
|
m("span", {
|
|
3961
3955
|
class: P({ "filter-placeholder": p === null })
|
|
3962
3956
|
}, $(a(p, u)), 3),
|
|
@@ -3967,7 +3961,7 @@ const Ba = {
|
|
|
3967
3961
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3968
3962
|
}, {
|
|
3969
3963
|
default: g(() => [
|
|
3970
|
-
k(c(
|
|
3964
|
+
k(c(_), {
|
|
3971
3965
|
icon: "bi:x",
|
|
3972
3966
|
width: "1rem",
|
|
3973
3967
|
height: "1rem",
|
|
@@ -4002,7 +3996,7 @@ const Ba = {
|
|
|
4002
3996
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
4003
3997
|
}, {
|
|
4004
3998
|
default: g(() => [
|
|
4005
|
-
k(c(
|
|
3999
|
+
k(c(_), {
|
|
4006
4000
|
icon: "bi:x",
|
|
4007
4001
|
width: "1rem",
|
|
4008
4002
|
height: "1rem",
|
|
@@ -5153,20 +5147,24 @@ class we {
|
|
|
5153
5147
|
}
|
|
5154
5148
|
}
|
|
5155
5149
|
Z = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
|
|
5156
|
-
const
|
|
5150
|
+
const Wa = new we(ue, ce)._freeze();
|
|
5157
5151
|
function ke(e, t, a, i) {
|
|
5158
5152
|
const o = t.flatMap((l) => l.file);
|
|
5159
5153
|
return t = t.map((l) => ({ ...l, status: l.status == "Duplicate" ? "Not Uploaded" : l.status })), e.forEach((l) => {
|
|
5160
5154
|
const n = o.findIndex((p) => p.name === l.name);
|
|
5161
5155
|
let s = "Not Uploaded";
|
|
5162
|
-
n === -1
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5156
|
+
if (n === -1) {
|
|
5157
|
+
const p = Ka(l);
|
|
5158
|
+
!p || !a.includes(p) ? s = "InvalidFileType" : l.size <= i || (s = "InvalidFileSize"), t.unshift({
|
|
5159
|
+
file: l,
|
|
5160
|
+
status: s,
|
|
5161
|
+
blobFileName: null
|
|
5162
|
+
});
|
|
5163
|
+
} else
|
|
5164
|
+
t[n].status = "Duplicate";
|
|
5167
5165
|
}), t;
|
|
5168
5166
|
}
|
|
5169
|
-
async function
|
|
5167
|
+
async function Ga(e, t) {
|
|
5170
5168
|
if (e === "Uploaded" && t !== null)
|
|
5171
5169
|
try {
|
|
5172
5170
|
await new ge(t).delete();
|
|
@@ -5189,20 +5187,23 @@ function me(e, t = !0, a = 1) {
|
|
|
5189
5187
|
while (Math.round(Math.abs(e) * n) / n >= i && l < o.length - 1);
|
|
5190
5188
|
return e.toFixed(a) + " " + o[l];
|
|
5191
5189
|
}
|
|
5192
|
-
function
|
|
5190
|
+
function Ya(e) {
|
|
5193
5191
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
5194
5192
|
}
|
|
5195
|
-
function
|
|
5193
|
+
function Ja(e) {
|
|
5196
5194
|
return URL.createObjectURL(e);
|
|
5197
5195
|
}
|
|
5198
|
-
function
|
|
5196
|
+
function Ka(e) {
|
|
5197
|
+
return e.type ? e.type : Be().getType(e.name);
|
|
5198
|
+
}
|
|
5199
|
+
function Be() {
|
|
5199
5200
|
const e = new we(ue, ce);
|
|
5200
5201
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
5201
5202
|
}
|
|
5202
|
-
const
|
|
5203
|
+
const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disabled", "multiple"], Qa = {
|
|
5203
5204
|
class: "text-break accepted-file-types-container",
|
|
5204
5205
|
id: "accepted-file-types-overlay"
|
|
5205
|
-
},
|
|
5206
|
+
}, ei = /* @__PURE__ */ z({
|
|
5206
5207
|
__name: "UploadButton",
|
|
5207
5208
|
props: /* @__PURE__ */ E({
|
|
5208
5209
|
acceptedFileTypes: {},
|
|
@@ -5215,12 +5216,12 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5215
5216
|
}),
|
|
5216
5217
|
emits: ["update:modelValue"],
|
|
5217
5218
|
setup(e) {
|
|
5218
|
-
const t = L(e, "modelValue"), a =
|
|
5219
|
+
const t = L(e, "modelValue"), a = I(), i = (n) => a.value.toggle(n), o = M(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5219
5220
|
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
5220
5221
|
};
|
|
5221
5222
|
return (n, s) => {
|
|
5222
5223
|
const p = q;
|
|
5223
|
-
return d(), b("div",
|
|
5224
|
+
return d(), b("div", Za, [
|
|
5224
5225
|
C(n.$slots, "message"),
|
|
5225
5226
|
m("div", null, [
|
|
5226
5227
|
m("input", {
|
|
@@ -5231,14 +5232,14 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5231
5232
|
disabled: o.value,
|
|
5232
5233
|
multiple: n.maxFileInput > 1,
|
|
5233
5234
|
onInput: s[0] || (s[0] = (u) => l([...u.target.files]))
|
|
5234
|
-
}, null, 40,
|
|
5235
|
+
}, null, 40, Xa),
|
|
5235
5236
|
m("label", {
|
|
5236
5237
|
class: P([{ disabled: o.value }, "btn btn-primary"]),
|
|
5237
5238
|
id: "file-input-button",
|
|
5238
5239
|
for: "file-input"
|
|
5239
5240
|
}, [
|
|
5240
5241
|
C(n.$slots, "button-content", {}, () => [
|
|
5241
|
-
k(c(
|
|
5242
|
+
k(c(_), {
|
|
5242
5243
|
icon: "bi:upload",
|
|
5243
5244
|
class: "me-2",
|
|
5244
5245
|
height: "20px",
|
|
@@ -5255,32 +5256,31 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5255
5256
|
id: "accepted-file-types",
|
|
5256
5257
|
onClick: i
|
|
5257
5258
|
}, {
|
|
5258
|
-
default: g(() => s[2] || (s[2] = [
|
|
5259
|
+
default: g(() => [...s[2] || (s[2] = [
|
|
5259
5260
|
V("Accepted File Types", -1)
|
|
5260
|
-
])),
|
|
5261
|
-
_: 1
|
|
5262
|
-
__: [2]
|
|
5261
|
+
])]),
|
|
5262
|
+
_: 1
|
|
5263
5263
|
})) : T("", !0),
|
|
5264
5264
|
k(c(be), {
|
|
5265
5265
|
ref_key: "acceptedFilesOverlay",
|
|
5266
5266
|
ref: a
|
|
5267
5267
|
}, {
|
|
5268
5268
|
default: g(() => [
|
|
5269
|
-
m("div",
|
|
5269
|
+
m("div", Qa, $(n.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
5270
5270
|
]),
|
|
5271
5271
|
_: 1
|
|
5272
5272
|
}, 512)
|
|
5273
5273
|
]);
|
|
5274
5274
|
};
|
|
5275
5275
|
}
|
|
5276
|
-
}),
|
|
5276
|
+
}), ti = {
|
|
5277
5277
|
key: 0,
|
|
5278
5278
|
class: "py-4 px-3",
|
|
5279
5279
|
id: "placeholder-message"
|
|
5280
|
-
},
|
|
5280
|
+
}, ai = {
|
|
5281
5281
|
key: 1,
|
|
5282
5282
|
class: "d-flex flex-column"
|
|
5283
|
-
},
|
|
5283
|
+
}, ii = /* @__PURE__ */ z({
|
|
5284
5284
|
__name: "DragDropArea",
|
|
5285
5285
|
props: /* @__PURE__ */ E({
|
|
5286
5286
|
maxFileInput: {},
|
|
@@ -5292,7 +5292,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5292
5292
|
}),
|
|
5293
5293
|
emits: ["update:modelValue"],
|
|
5294
5294
|
setup(e) {
|
|
5295
|
-
const t = L(e, "modelValue"), a =
|
|
5295
|
+
const t = L(e, "modelValue"), a = I(!1), i = M(() => e.maxFileInput <= t.value.length), o = (l) => {
|
|
5296
5296
|
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
5297
|
};
|
|
5298
5298
|
return (l, n) => (d(), b("div", {
|
|
@@ -5302,20 +5302,20 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5302
5302
|
onDragover: n[1] || (n[1] = Q((s) => a.value = !0, ["prevent"])),
|
|
5303
5303
|
onDrop: Q(o, ["prevent"])
|
|
5304
5304
|
}, [
|
|
5305
|
-
t.value.length === 0 ? (d(), b("div",
|
|
5306
|
-
k(c(
|
|
5305
|
+
t.value.length === 0 ? (d(), b("div", ti, [
|
|
5306
|
+
k(c(_), {
|
|
5307
5307
|
icon: "bi:upload",
|
|
5308
5308
|
class: "me-2",
|
|
5309
5309
|
height: "20px",
|
|
5310
5310
|
width: "20px"
|
|
5311
5311
|
}),
|
|
5312
5312
|
n[2] || (n[2] = V(" Drag and drop files here ", -1))
|
|
5313
|
-
])) : (d(), b("div",
|
|
5313
|
+
])) : (d(), b("div", ai, [
|
|
5314
5314
|
C(l.$slots, "default")
|
|
5315
5315
|
]))
|
|
5316
5316
|
], 34));
|
|
5317
5317
|
}
|
|
5318
|
-
}),
|
|
5318
|
+
}), oi = { class: "d-flex align-items-center me-2" }, li = /* @__PURE__ */ z({
|
|
5319
5319
|
__name: "UploadStatus",
|
|
5320
5320
|
props: {
|
|
5321
5321
|
fileSize: {},
|
|
@@ -5324,7 +5324,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5324
5324
|
uploadStatus: {}
|
|
5325
5325
|
},
|
|
5326
5326
|
setup(e) {
|
|
5327
|
-
const t = e, a =
|
|
5327
|
+
const t = e, a = M(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = M(() => {
|
|
5328
5328
|
switch (t.uploadStatus) {
|
|
5329
5329
|
case "InvalidFileType":
|
|
5330
5330
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -5342,7 +5342,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5342
5342
|
});
|
|
5343
5343
|
return (o, l) => {
|
|
5344
5344
|
const n = pe;
|
|
5345
|
-
return d(), b("div",
|
|
5345
|
+
return d(), b("div", oi, [
|
|
5346
5346
|
t.uploadStatus === "Uploading" ? (d(), x(n, {
|
|
5347
5347
|
key: 0,
|
|
5348
5348
|
"in-line": ""
|
|
@@ -5361,16 +5361,16 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5361
5361
|
]);
|
|
5362
5362
|
};
|
|
5363
5363
|
}
|
|
5364
|
-
}),
|
|
5364
|
+
}), ni = ["data-cy"], si = { class: "ms-3 d-flex flex-column" }, ri = {
|
|
5365
5365
|
key: 1,
|
|
5366
5366
|
id: "file-name"
|
|
5367
|
-
},
|
|
5367
|
+
}, di = {
|
|
5368
5368
|
class: "text-black-50",
|
|
5369
5369
|
id: "file-type"
|
|
5370
|
-
},
|
|
5370
|
+
}, pi = {
|
|
5371
5371
|
class: "text-black-50",
|
|
5372
5372
|
id: "file-size"
|
|
5373
|
-
},
|
|
5373
|
+
}, ci = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, ui = /* @__PURE__ */ z({
|
|
5374
5374
|
__name: "FileInfo",
|
|
5375
5375
|
props: /* @__PURE__ */ E({
|
|
5376
5376
|
editableFileName: { type: Boolean },
|
|
@@ -5389,12 +5389,12 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5389
5389
|
}),
|
|
5390
5390
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5391
5391
|
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 =
|
|
5392
|
+
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 = () => {
|
|
5393
|
+
n.value != null && (S(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5394
|
+
}, S = () => {
|
|
5395
|
+
let f = n.value.split("."), B = Wa.getExtension(w.value), D = n.value.split(".").pop();
|
|
5396
5396
|
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
|
-
},
|
|
5397
|
+
}, F = async () => {
|
|
5398
5398
|
if (!h.value || !r.value) {
|
|
5399
5399
|
o.value = h.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5400
5400
|
return;
|
|
@@ -5425,10 +5425,10 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5425
5425
|
o.value = "Failed";
|
|
5426
5426
|
}
|
|
5427
5427
|
}, A = async () => {
|
|
5428
|
-
await
|
|
5428
|
+
await Ga(o.value, s.value), l("deleted", a.value);
|
|
5429
5429
|
};
|
|
5430
5430
|
return ne(() => {
|
|
5431
|
-
e.autoUploadToBlob && o.value != "Uploaded" &&
|
|
5431
|
+
e.autoUploadToBlob && o.value != "Uploaded" && F();
|
|
5432
5432
|
}), (f, B) => {
|
|
5433
5433
|
const D = q;
|
|
5434
5434
|
return d(), b("div", {
|
|
@@ -5436,15 +5436,15 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5436
5436
|
"data-cy": `file-info-${a.value.name}`
|
|
5437
5437
|
}, [
|
|
5438
5438
|
m("div", null, [
|
|
5439
|
-
c(
|
|
5439
|
+
c(Ya)(a.value.type) ? (d(), x(c(Je), {
|
|
5440
5440
|
key: 0,
|
|
5441
5441
|
id: "thumbnail-image",
|
|
5442
5442
|
"image-class": "image-file-thumbnail border",
|
|
5443
|
-
src: c(
|
|
5443
|
+
src: c(Ja)(a.value),
|
|
5444
5444
|
alt: a.value.name,
|
|
5445
5445
|
width: "75px",
|
|
5446
5446
|
preview: ""
|
|
5447
|
-
}, null, 8, ["src", "alt"])) : (d(), x(c(
|
|
5447
|
+
}, null, 8, ["src", "alt"])) : (d(), x(c(_), {
|
|
5448
5448
|
key: 1,
|
|
5449
5449
|
id: "file-earmark",
|
|
5450
5450
|
icon: "bi:file-earmark",
|
|
@@ -5452,9 +5452,9 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5452
5452
|
width: "75px"
|
|
5453
5453
|
}))
|
|
5454
5454
|
]),
|
|
5455
|
-
m("div",
|
|
5455
|
+
m("div", si, [
|
|
5456
5456
|
m("div", null, [
|
|
5457
|
-
f.editableFileName ? (d(), x(
|
|
5457
|
+
f.editableFileName ? (d(), x(Xt, {
|
|
5458
5458
|
key: 0,
|
|
5459
5459
|
id: "edit-file-name",
|
|
5460
5460
|
modelValue: n.value,
|
|
@@ -5462,13 +5462,13 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5462
5462
|
rules: f.customFileNameRules,
|
|
5463
5463
|
name: a.value.name,
|
|
5464
5464
|
"complete-action": v
|
|
5465
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span",
|
|
5465
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", ri, $(n.value), 1))
|
|
5466
5466
|
]),
|
|
5467
|
-
m("span",
|
|
5468
|
-
m("span",
|
|
5467
|
+
m("span", di, "File type: " + $(a.value.type.split("/").pop()), 1),
|
|
5468
|
+
m("span", pi, "File size: " + $(c(me)(a.value.size)), 1)
|
|
5469
5469
|
]),
|
|
5470
|
-
m("div",
|
|
5471
|
-
(d(), x(
|
|
5470
|
+
m("div", ci, [
|
|
5471
|
+
(d(), x(li, {
|
|
5472
5472
|
key: o.value,
|
|
5473
5473
|
"file-size": a.value.size,
|
|
5474
5474
|
"upload-status": o.value,
|
|
@@ -5478,10 +5478,10 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5478
5478
|
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (d(), x(D, {
|
|
5479
5479
|
key: 0,
|
|
5480
5480
|
link: "",
|
|
5481
|
-
onClick:
|
|
5481
|
+
onClick: F
|
|
5482
5482
|
}, {
|
|
5483
5483
|
default: g(() => [
|
|
5484
|
-
k(c(
|
|
5484
|
+
k(c(_), {
|
|
5485
5485
|
icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5486
5486
|
}, null, 8, ["icon"])
|
|
5487
5487
|
]),
|
|
@@ -5493,7 +5493,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5493
5493
|
onClick: B[1] || (B[1] = (y) => u.value.abort())
|
|
5494
5494
|
}, {
|
|
5495
5495
|
default: g(() => [
|
|
5496
|
-
k(c(
|
|
5496
|
+
k(c(_), { icon: "bi:x-circle-fill" })
|
|
5497
5497
|
]),
|
|
5498
5498
|
_: 1
|
|
5499
5499
|
})) : (d(), x(D, {
|
|
@@ -5503,27 +5503,27 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5503
5503
|
id: "delete-button"
|
|
5504
5504
|
}, {
|
|
5505
5505
|
default: g(() => [
|
|
5506
|
-
k(c(
|
|
5506
|
+
k(c(_), { icon: "bi:trash" })
|
|
5507
5507
|
]),
|
|
5508
5508
|
_: 1
|
|
5509
5509
|
}))
|
|
5510
5510
|
])
|
|
5511
|
-
], 8,
|
|
5511
|
+
], 8, ni);
|
|
5512
5512
|
};
|
|
5513
5513
|
}
|
|
5514
|
-
}),
|
|
5514
|
+
}), 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
5515
|
__name: "FileInputInfo",
|
|
5516
5516
|
props: {
|
|
5517
5517
|
maxFileSize: {},
|
|
5518
5518
|
maxFileInput: {}
|
|
5519
5519
|
},
|
|
5520
5520
|
setup(e) {
|
|
5521
|
-
return (t, a) => (d(), b("div",
|
|
5522
|
-
m("div",
|
|
5523
|
-
m("div",
|
|
5521
|
+
return (t, a) => (d(), b("div", mi, [
|
|
5522
|
+
m("div", vi, "Max file size: " + $(c(me)(t.maxFileSize)), 1),
|
|
5523
|
+
m("div", fi, "| Max file count: " + $(t.maxFileInput), 1)
|
|
5524
5524
|
]));
|
|
5525
5525
|
}
|
|
5526
|
-
}),
|
|
5526
|
+
}), bi = { "data-cy": "file-uploader" }, yi = { key: 1 }, Po = /* @__PURE__ */ z({
|
|
5527
5527
|
__name: "ForgeFileUploader",
|
|
5528
5528
|
props: /* @__PURE__ */ E({
|
|
5529
5529
|
acceptedFileTypes: {},
|
|
@@ -5548,7 +5548,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5548
5548
|
const a = e, i = (o) => {
|
|
5549
5549
|
t.value = t.value.filter((l) => l.file != o);
|
|
5550
5550
|
};
|
|
5551
|
-
return (o, l) => (d(), b("div",
|
|
5551
|
+
return (o, l) => (d(), b("div", bi, [
|
|
5552
5552
|
t.value.length == o.maxFileInput && a.maxFileWarning != null ? (d(), x(re, {
|
|
5553
5553
|
key: 0,
|
|
5554
5554
|
id: "max-files-alert",
|
|
@@ -5559,12 +5559,12 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5559
5559
|
]),
|
|
5560
5560
|
_: 1
|
|
5561
5561
|
})) : T("", !0),
|
|
5562
|
-
k(
|
|
5562
|
+
k(ei, j(a, {
|
|
5563
5563
|
modelValue: t.value,
|
|
5564
5564
|
"onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n)
|
|
5565
5565
|
}), null, 16, ["modelValue"]),
|
|
5566
|
-
o.showDragDropArea ? (d(), b("div",
|
|
5567
|
-
k(
|
|
5566
|
+
o.showDragDropArea ? (d(), b("div", yi, [
|
|
5567
|
+
k(ii, {
|
|
5568
5568
|
"max-file-input": a.maxFileInput,
|
|
5569
5569
|
"max-file-size": a.maxFileSize,
|
|
5570
5570
|
"accepted-file-types": a.acceptedFileTypes,
|
|
@@ -5573,7 +5573,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5573
5573
|
}, {
|
|
5574
5574
|
default: g(() => [
|
|
5575
5575
|
(d(!0), b(N, null, U(t.value, ({ file: n }, s) => (d(), b("div", null, [
|
|
5576
|
-
(d(), x(
|
|
5576
|
+
(d(), x(ui, j({
|
|
5577
5577
|
key: n.name,
|
|
5578
5578
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5579
5579
|
file: t.value[s].file,
|
|
@@ -5587,14 +5587,14 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5587
5587
|
]),
|
|
5588
5588
|
_: 1
|
|
5589
5589
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5590
|
-
k(
|
|
5590
|
+
k(gi, {
|
|
5591
5591
|
"max-file-size": a.maxFileSize,
|
|
5592
5592
|
"max-file-input": o.maxFileInput
|
|
5593
5593
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5594
5594
|
])) : T("", !0)
|
|
5595
5595
|
]));
|
|
5596
5596
|
}
|
|
5597
|
-
}),
|
|
5597
|
+
}), xi = { class: "d-flex" }, hi = { class: "me-3" }, wi = { class: "ms-2" }, ki = { class: "d-flex flex-column w-100" }, jo = /* @__PURE__ */ z({
|
|
5598
5598
|
__name: "ForgeColumnCustomiser",
|
|
5599
5599
|
props: {
|
|
5600
5600
|
modelValue: { required: !0 },
|
|
@@ -5602,7 +5602,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5602
5602
|
},
|
|
5603
5603
|
emits: ["update:modelValue"],
|
|
5604
5604
|
setup(e) {
|
|
5605
|
-
const t = L(e, "modelValue"), a =
|
|
5605
|
+
const t = L(e, "modelValue"), a = I(), i = I(!1), o = (l) => {
|
|
5606
5606
|
a.value.toggle(l);
|
|
5607
5607
|
};
|
|
5608
5608
|
return (l, n) => (d(), b(N, null, [
|
|
@@ -5611,13 +5611,13 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5611
5611
|
class: "ms-2"
|
|
5612
5612
|
}, {
|
|
5613
5613
|
default: g(() => [
|
|
5614
|
-
m("div",
|
|
5615
|
-
m("div",
|
|
5616
|
-
k(c(
|
|
5614
|
+
m("div", xi, [
|
|
5615
|
+
m("div", hi, [
|
|
5616
|
+
k(c(_), { icon: "bi:layout-three-columns" })
|
|
5617
5617
|
]),
|
|
5618
5618
|
V(" Columns (" + $(t.value.filter((s) => s.selected).length ?? 0) + "/" + $(t.value.length ?? 0) + ") ", 1),
|
|
5619
|
-
m("div",
|
|
5620
|
-
k(c(
|
|
5619
|
+
m("div", wi, [
|
|
5620
|
+
k(c(_), {
|
|
5621
5621
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5622
5622
|
}, null, 8, ["icon"])
|
|
5623
5623
|
])
|
|
@@ -5633,7 +5633,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5633
5633
|
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5634
5634
|
}, {
|
|
5635
5635
|
default: g(() => [
|
|
5636
|
-
m("div",
|
|
5636
|
+
m("div", ki, [
|
|
5637
5637
|
(d(!0), b(N, null, U(t.value, (s, p) => (d(), b("div", {
|
|
5638
5638
|
class: P(["d-flex cursor-pointer", {
|
|
5639
5639
|
"border-top": p !== 0,
|
|
@@ -5657,19 +5657,19 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5657
5657
|
}, 512)
|
|
5658
5658
|
], 64));
|
|
5659
5659
|
}
|
|
5660
|
-
}),
|
|
5660
|
+
}), Mo = /* @__PURE__ */ z({
|
|
5661
5661
|
__name: "ForgePanel",
|
|
5662
5662
|
setup(e) {
|
|
5663
5663
|
return (t, a) => {
|
|
5664
|
-
const i =
|
|
5664
|
+
const i = Ke;
|
|
5665
5665
|
return d(), x(i, G(Y({ ...t.$attrs })), ie({
|
|
5666
5666
|
toggleicon: g(({ collapsed: o }) => [
|
|
5667
|
-
o ? (d(), x(c(
|
|
5667
|
+
o ? (d(), x(c(_), {
|
|
5668
5668
|
key: 0,
|
|
5669
5669
|
"data-cy": "message-icon",
|
|
5670
5670
|
icon: "bi:chevron-down"
|
|
5671
5671
|
})) : T("", !0),
|
|
5672
|
-
o ? T("", !0) : (d(), x(c(
|
|
5672
|
+
o ? T("", !0) : (d(), x(c(_), {
|
|
5673
5673
|
key: 1,
|
|
5674
5674
|
"data-cy": "message-icon",
|
|
5675
5675
|
icon: "bi:chevron-up"
|
|
@@ -5686,13 +5686,13 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5686
5686
|
]), 1040);
|
|
5687
5687
|
};
|
|
5688
5688
|
}
|
|
5689
|
-
}),
|
|
5689
|
+
}), Bi = /* @__PURE__ */ z({
|
|
5690
5690
|
__name: "ForgeToggleButton",
|
|
5691
5691
|
props: {
|
|
5692
5692
|
severity: { default: "primary" }
|
|
5693
5693
|
},
|
|
5694
5694
|
setup(e) {
|
|
5695
|
-
const t = e, a =
|
|
5695
|
+
const t = e, a = M(() => ({
|
|
5696
5696
|
root: (i) => ({
|
|
5697
5697
|
class: [
|
|
5698
5698
|
"btn",
|
|
@@ -5713,15 +5713,15 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5713
5713
|
]
|
|
5714
5714
|
})
|
|
5715
5715
|
}));
|
|
5716
|
-
return (i, o) => (d(), x(c(
|
|
5716
|
+
return (i, o) => (d(), x(c(Ze), j({ ...i.$attrs, ...t }, {
|
|
5717
5717
|
severity: t.severity,
|
|
5718
5718
|
pt: a.value
|
|
5719
5719
|
}), null, 16, ["severity", "pt"]));
|
|
5720
5720
|
}
|
|
5721
|
-
}),
|
|
5721
|
+
}), $i = {
|
|
5722
5722
|
class: "btn-group",
|
|
5723
5723
|
"data-cy": "forge-select-button"
|
|
5724
|
-
},
|
|
5724
|
+
}, Io = /* @__PURE__ */ z({
|
|
5725
5725
|
__name: "ForgeSelectButton",
|
|
5726
5726
|
props: /* @__PURE__ */ E({
|
|
5727
5727
|
options: {},
|
|
@@ -5751,8 +5751,8 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5751
5751
|
} else
|
|
5752
5752
|
a.value = a.value === l.value && t.allowEmpty ? null : l.value;
|
|
5753
5753
|
};
|
|
5754
|
-
return (l, n) => (d(), b("div",
|
|
5755
|
-
(d(!0), b(N, null, U(l.options, (s, p) => (d(), x(
|
|
5754
|
+
return (l, n) => (d(), b("div", $i, [
|
|
5755
|
+
(d(!0), b(N, null, U(l.options, (s, p) => (d(), x(Bi, {
|
|
5756
5756
|
key: p,
|
|
5757
5757
|
onLabel: s.label,
|
|
5758
5758
|
offLabel: s.label,
|
|
@@ -5765,10 +5765,10 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5765
5765
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5766
5766
|
]));
|
|
5767
5767
|
}
|
|
5768
|
-
}),
|
|
5768
|
+
}), _o = /* @__PURE__ */ z({
|
|
5769
5769
|
__name: "ForgeConfirmPopup",
|
|
5770
5770
|
setup(e) {
|
|
5771
|
-
const t =
|
|
5771
|
+
const t = M(() => ({
|
|
5772
5772
|
root: [
|
|
5773
5773
|
"card w-fit-content position-absolute"
|
|
5774
5774
|
],
|
|
@@ -5779,20 +5779,20 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5779
5779
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5780
5780
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5781
5781
|
}));
|
|
5782
|
-
return (a, i) => (d(), x(c(
|
|
5782
|
+
return (a, i) => (d(), x(c(Xe), j({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5783
5783
|
default: g(() => [
|
|
5784
5784
|
(d(!0), b(N, null, U(a.$slots, (o, l) => C(a.$slots, l, { slot: l })), 256))
|
|
5785
5785
|
]),
|
|
5786
5786
|
_: 3
|
|
5787
5787
|
}, 16, ["pt"]));
|
|
5788
5788
|
}
|
|
5789
|
-
}),
|
|
5789
|
+
}), Fi = {
|
|
5790
5790
|
key: 0,
|
|
5791
5791
|
class: "mb-1"
|
|
5792
5792
|
}, Si = {
|
|
5793
5793
|
key: 0,
|
|
5794
5794
|
class: "mb-1"
|
|
5795
|
-
},
|
|
5795
|
+
}, Vo = /* @__PURE__ */ z({
|
|
5796
5796
|
__name: "ForgePickList",
|
|
5797
5797
|
props: /* @__PURE__ */ E({
|
|
5798
5798
|
filterBy: {},
|
|
@@ -5835,12 +5835,12 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5835
5835
|
}),
|
|
5836
5836
|
emits: ["update:modelValue", "update:targetList", "update:sourceList"],
|
|
5837
5837
|
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(...
|
|
5838
|
+
const t = e, a = L(e, "modelValue"), i = L(e, "targetList"), o = L(e, "sourceList"), l = I(null), n = I(null), s = (v) => {
|
|
5839
|
+
const { items: S } = v;
|
|
5840
|
+
i.value.push(...S), o.value = o.value.filter((F) => !S.includes(F));
|
|
5841
5841
|
}, p = (v) => {
|
|
5842
|
-
const { items:
|
|
5843
|
-
o.value.push(...
|
|
5842
|
+
const { items: S } = v;
|
|
5843
|
+
o.value.push(...S), i.value = i.value.filter((F) => !S.includes(F));
|
|
5844
5844
|
}, u = () => {
|
|
5845
5845
|
o.value = [.../* @__PURE__ */ new Set([...o.value, ...a.value[1]])], i.value = i.value.filter((v) => !a.value[1].includes(v));
|
|
5846
5846
|
}, h = () => {
|
|
@@ -5852,42 +5852,42 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5852
5852
|
w();
|
|
5853
5853
|
});
|
|
5854
5854
|
const r = () => {
|
|
5855
|
-
var
|
|
5856
|
-
const v = t.filterBy,
|
|
5855
|
+
var F;
|
|
5856
|
+
const v = t.filterBy, S = l.value ? o.value.filter((A) => {
|
|
5857
5857
|
var f;
|
|
5858
5858
|
return A[v].toLowerCase().includes((f = l.value) == null ? void 0 : f.toLowerCase());
|
|
5859
5859
|
}) : [...o.value];
|
|
5860
|
-
(
|
|
5860
|
+
(F = a.value) == null || F.splice(0, 1, S);
|
|
5861
5861
|
}, w = () => {
|
|
5862
|
-
var
|
|
5863
|
-
const v = t.filterBy,
|
|
5862
|
+
var F;
|
|
5863
|
+
const v = t.filterBy, S = n.value ? i.value.filter((A) => {
|
|
5864
5864
|
var f;
|
|
5865
5865
|
return A[v].toLowerCase().includes((f = n.value) == null ? void 0 : f.toLowerCase());
|
|
5866
5866
|
}) : [...i.value];
|
|
5867
|
-
(
|
|
5867
|
+
(F = a.value) == null || F.splice(1, 1, S);
|
|
5868
5868
|
};
|
|
5869
5869
|
return W(
|
|
5870
5870
|
() => a.value,
|
|
5871
5871
|
(v) => {
|
|
5872
|
-
var
|
|
5873
|
-
v && (i.value = v[1].length > 0 ? [...v[1]] : [], o.value = v[0].length > 0 ? [...v[0]] : [], (
|
|
5872
|
+
var S, F;
|
|
5873
|
+
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
5874
|
},
|
|
5875
5875
|
{ once: !0 }
|
|
5876
|
-
), (v,
|
|
5876
|
+
), (v, S) => (d(), x(c(Qe), j({
|
|
5877
5877
|
modelValue: a.value,
|
|
5878
|
-
"onUpdate:modelValue":
|
|
5878
|
+
"onUpdate:modelValue": S[2] || (S[2] = (F) => a.value = F)
|
|
5879
5879
|
}, { ...v.$attrs, ...t }, {
|
|
5880
5880
|
onMoveAllToSource: u,
|
|
5881
5881
|
onMoveAllToTarget: h,
|
|
5882
|
-
onMoveToTarget:
|
|
5883
|
-
onMoveToSource:
|
|
5882
|
+
onMoveToTarget: S[3] || (S[3] = (F) => s(F)),
|
|
5883
|
+
onMoveToSource: S[4] || (S[4] = (F) => p(F))
|
|
5884
5884
|
}), {
|
|
5885
5885
|
sourceheader: g(() => [
|
|
5886
|
-
v.sourceTitle ? (d(), b("div",
|
|
5886
|
+
v.sourceTitle ? (d(), b("div", Fi, $(v.sourceTitle), 1)) : T("", !0),
|
|
5887
5887
|
k(c(ae), {
|
|
5888
5888
|
modelValue: l.value,
|
|
5889
5889
|
"onUpdate:modelValue": [
|
|
5890
|
-
|
|
5890
|
+
S[0] || (S[0] = (F) => l.value = F),
|
|
5891
5891
|
r
|
|
5892
5892
|
],
|
|
5893
5893
|
class: "mb-2",
|
|
@@ -5900,7 +5900,7 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5900
5900
|
k(c(ae), {
|
|
5901
5901
|
modelValue: n.value,
|
|
5902
5902
|
"onUpdate:modelValue": [
|
|
5903
|
-
|
|
5903
|
+
S[1] || (S[1] = (F) => n.value = F),
|
|
5904
5904
|
w
|
|
5905
5905
|
],
|
|
5906
5906
|
class: "mb-2",
|
|
@@ -5908,13 +5908,13 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5908
5908
|
"data-cy": "target-search"
|
|
5909
5909
|
}, null, 8, ["modelValue"])
|
|
5910
5910
|
]),
|
|
5911
|
-
option: g(({ option:
|
|
5912
|
-
V($(
|
|
5911
|
+
option: g(({ option: F }) => [
|
|
5912
|
+
V($(F[v.filterBy]), 1)
|
|
5913
5913
|
]),
|
|
5914
5914
|
_: 1
|
|
5915
5915
|
}, 16, ["modelValue"]));
|
|
5916
5916
|
}
|
|
5917
|
-
}),
|
|
5917
|
+
}), Do = () => ({
|
|
5918
5918
|
type: "component",
|
|
5919
5919
|
resolve: (e) => {
|
|
5920
5920
|
if (e.startsWith("Forge"))
|
|
@@ -5925,40 +5925,40 @@ const Ka = { class: "d-flex justify-content-between" }, Za = ["accept", "disable
|
|
|
5925
5925
|
}
|
|
5926
5926
|
});
|
|
5927
5927
|
export {
|
|
5928
|
-
|
|
5929
|
-
|
|
5928
|
+
ro as Bootstrap_PT,
|
|
5929
|
+
po as ForgeActionButton,
|
|
5930
5930
|
re as ForgeAlert,
|
|
5931
|
-
|
|
5931
|
+
co as ForgeAutoComplete,
|
|
5932
5932
|
ye as ForgeCheckbox,
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5933
|
+
wo as ForgeChip,
|
|
5934
|
+
jo as ForgeColumnCustomiser,
|
|
5935
|
+
_o as ForgeConfirmPopup,
|
|
5936
5936
|
xe as ForgeDatepicker,
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5937
|
+
Po as ForgeFileUploader,
|
|
5938
|
+
zo as ForgeFilterHeader,
|
|
5939
|
+
xo as ForgeForm,
|
|
5940
|
+
ho as ForgeFormField,
|
|
5941
|
+
Xt as ForgeInlineEditor,
|
|
5942
|
+
uo as ForgeLink,
|
|
5943
5943
|
pe as ForgeLoader,
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5944
|
+
fo as ForgeModal,
|
|
5945
|
+
oa as ForgeMultiSelectPreview,
|
|
5946
|
+
go as ForgeNavbar,
|
|
5947
|
+
bo as ForgePageHeader,
|
|
5948
|
+
Mo as ForgePanel,
|
|
5949
|
+
Vo as ForgePickList,
|
|
5950
|
+
ko as ForgeProgressBar,
|
|
5951
|
+
yo as ForgeRemainingCharacters,
|
|
5952
|
+
Do as ForgeResolver,
|
|
5953
|
+
Bo as ForgeScratchpad,
|
|
5954
|
+
Io as ForgeSelectButton,
|
|
5955
|
+
$o as ForgeStatWidget,
|
|
5956
|
+
Fo as ForgeStepper,
|
|
5957
|
+
Co as ForgeTable,
|
|
5958
5958
|
So as ForgeTile,
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5959
|
+
Bi as ForgeToggleButton,
|
|
5960
|
+
To as ForgeTreeTable,
|
|
5961
|
+
vo as convertToMultiSelectOption,
|
|
5962
|
+
mo as enumToMultiSelectList,
|
|
5963
|
+
Et as parseError
|
|
5964
5964
|
};
|