@3squared/forge-ui-3 2.22.0 → 2.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as g, renderSlot as C, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as
|
|
3
|
-
import { Icon as
|
|
1
|
+
import Fe from "primevue/message";
|
|
2
|
+
import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as g, renderSlot as C, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as I, createElementBlock as b, Fragment as N, mergeProps as j, renderList as U, mergeModels as E, useModel as L, computed as M, withDirectives as K, createTextVNode as V, toDisplayString as $, vShow as X, createSlots as ie, onMounted as ne, withKeys as le, isRef as Se, normalizeStyle as Ce, withModifiers as Q, watch as W, h as Te, useTemplateRef as ze } from "vue";
|
|
3
|
+
import { Icon as _ } from "@iconify/vue";
|
|
4
4
|
import q from "primevue/button";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import Pe from "primevue/toast";
|
|
6
|
+
import je from "primevue/autocomplete";
|
|
7
|
+
import Me from "primevue/checkbox";
|
|
8
8
|
import { useField as se } from "vee-validate";
|
|
9
|
-
import
|
|
9
|
+
import Ie from "primevue/progressspinner";
|
|
10
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: {
|
|
@@ -246,7 +246,7 @@ const Qe = {
|
|
|
246
246
|
"ms-2 my-auto cursor-pointer",
|
|
247
247
|
{
|
|
248
248
|
// Remove the badge, if one of the (2) sort columns is the row grouping, as it looks like only one column is sortable. Will show numbers if not only 2 sort values
|
|
249
|
-
"d-none": e.parent.state.
|
|
249
|
+
"d-none": e.parent.state.d_multiSortMeta != null && e.parent.state.d_multiSortMeta.length == 2 && e.parent.state.d_multiSortMeta.some((t) => t.field == e.parent.props.groupRowsBy)
|
|
250
250
|
}
|
|
251
251
|
]
|
|
252
252
|
}
|
|
@@ -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,16 +421,16 @@ 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
|
-
class: ["modal modal-dialog modal-content h-auto m-0
|
|
433
|
+
class: ["modal modal-dialog modal-content h-auto m-0"]
|
|
434
434
|
} : {},
|
|
435
435
|
header: () => ({
|
|
436
436
|
class: ["modal-header"]
|
|
@@ -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: [
|
|
@@ -1199,7 +1199,6 @@ const Qe = {
|
|
|
1199
1199
|
},
|
|
1200
1200
|
accordionHeader: {
|
|
1201
1201
|
root: "border-0 bg-transparent fw-400 w-100 d-flex flex-row justify-content-between align-content-center ps-4 pe-3 py-2 my-2",
|
|
1202
|
-
//header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
1203
1202
|
pcToggleButton: {
|
|
1204
1203
|
root: {
|
|
1205
1204
|
class: [
|
|
@@ -1211,7 +1210,7 @@ const Qe = {
|
|
|
1211
1210
|
accordionContent: {
|
|
1212
1211
|
root: "mt-2 mx-4 mb-4"
|
|
1213
1212
|
}
|
|
1214
|
-
},
|
|
1213
|
+
}, Vt = {
|
|
1215
1214
|
// More PT options can be found in the ForgeTable file.
|
|
1216
1215
|
treetable: {
|
|
1217
1216
|
root: "position-relative",
|
|
@@ -1232,7 +1231,7 @@ const Qe = {
|
|
|
1232
1231
|
class: "table-overlay table-spinner"
|
|
1233
1232
|
})
|
|
1234
1233
|
}
|
|
1235
|
-
},
|
|
1234
|
+
}, Dt = {
|
|
1236
1235
|
picklist: {
|
|
1237
1236
|
root: " d-flex gap-3",
|
|
1238
1237
|
pcMoveAllToSourceButton: { root: "btn btn-sm btn-outline-primary focus-ring " },
|
|
@@ -1268,7 +1267,7 @@ const Qe = {
|
|
|
1268
1267
|
sourceListContainer: " h-100 flex-1",
|
|
1269
1268
|
targetListContainer: "h-100 flex-1"
|
|
1270
1269
|
}
|
|
1271
|
-
},
|
|
1270
|
+
}, Ot = {
|
|
1272
1271
|
listbox: {
|
|
1273
1272
|
root: "border rounded",
|
|
1274
1273
|
list: "list-unstyled list-group list-group-flush",
|
|
@@ -1287,7 +1286,7 @@ const Qe = {
|
|
|
1287
1286
|
filterIcon: "d-none",
|
|
1288
1287
|
pcFilter: { root: "form-control form-control-sm mx-2 mt-2 mb-1" }
|
|
1289
1288
|
}
|
|
1290
|
-
},
|
|
1289
|
+
}, At = {
|
|
1291
1290
|
drawer: {
|
|
1292
1291
|
root: ({ props: e }) => ({
|
|
1293
1292
|
class: [
|
|
@@ -1313,47 +1312,47 @@ const Qe = {
|
|
|
1313
1312
|
]
|
|
1314
1313
|
})
|
|
1315
1314
|
}
|
|
1316
|
-
},
|
|
1317
|
-
...Qe,
|
|
1318
|
-
...ht,
|
|
1315
|
+
}, ro = {
|
|
1319
1316
|
...et,
|
|
1320
|
-
...
|
|
1317
|
+
...wt,
|
|
1321
1318
|
...tt,
|
|
1322
|
-
...dt,
|
|
1323
|
-
...it,
|
|
1324
|
-
...ft,
|
|
1325
|
-
...pt,
|
|
1326
1319
|
...Ct,
|
|
1327
1320
|
...at,
|
|
1328
|
-
...
|
|
1321
|
+
...pt,
|
|
1329
1322
|
...ot,
|
|
1330
|
-
...lt,
|
|
1331
|
-
...nt,
|
|
1332
|
-
...ut,
|
|
1333
1323
|
...gt,
|
|
1334
|
-
...wt,
|
|
1335
1324
|
...ct,
|
|
1325
|
+
...Tt,
|
|
1326
|
+
...it,
|
|
1327
|
+
...zt,
|
|
1328
|
+
...lt,
|
|
1329
|
+
...nt,
|
|
1330
|
+
...st,
|
|
1331
|
+
...mt,
|
|
1336
1332
|
...bt,
|
|
1337
|
-
...
|
|
1333
|
+
...kt,
|
|
1334
|
+
...ut,
|
|
1338
1335
|
...yt,
|
|
1339
|
-
...
|
|
1340
|
-
...$t,
|
|
1341
|
-
...mt,
|
|
1336
|
+
...St,
|
|
1342
1337
|
...xt,
|
|
1343
|
-
|
|
1338
|
+
...$t,
|
|
1339
|
+
...Ft,
|
|
1344
1340
|
...vt,
|
|
1345
|
-
...
|
|
1341
|
+
...ht,
|
|
1346
1342
|
...rt,
|
|
1343
|
+
...ft,
|
|
1344
|
+
...Pt,
|
|
1345
|
+
...dt,
|
|
1346
|
+
...It,
|
|
1347
1347
|
...Mt,
|
|
1348
1348
|
...jt,
|
|
1349
|
-
...Pt,
|
|
1350
1349
|
..._t,
|
|
1351
|
-
...It,
|
|
1352
1350
|
...Vt,
|
|
1353
1351
|
...Dt,
|
|
1354
1352
|
...Ot,
|
|
1353
|
+
...At,
|
|
1355
1354
|
directives: {
|
|
1356
|
-
...
|
|
1355
|
+
...Bt
|
|
1357
1356
|
}
|
|
1358
1357
|
}, re = /* @__PURE__ */ z({
|
|
1359
1358
|
__name: "ForgeAlert",
|
|
@@ -1375,13 +1374,13 @@ const Qe = {
|
|
|
1375
1374
|
setup(e) {
|
|
1376
1375
|
const t = e;
|
|
1377
1376
|
return (a, i) => {
|
|
1378
|
-
const o =
|
|
1377
|
+
const o = Fe;
|
|
1379
1378
|
return d(), x(o, G(Y({ ...a.$attrs, ...t })), {
|
|
1380
1379
|
icon: g(() => [
|
|
1381
1380
|
m("div", {
|
|
1382
1381
|
class: P(t.icon ? "me-2 pe-1" : "")
|
|
1383
1382
|
}, [
|
|
1384
|
-
t.icon ? (d(), x(c(
|
|
1383
|
+
t.icon ? (d(), x(c(_), {
|
|
1385
1384
|
key: 0,
|
|
1386
1385
|
"data-cy": "message-icon",
|
|
1387
1386
|
icon: t.icon,
|
|
@@ -1391,7 +1390,7 @@ const Qe = {
|
|
|
1391
1390
|
], 2)
|
|
1392
1391
|
]),
|
|
1393
1392
|
closeicon: g(() => [
|
|
1394
|
-
k(c(
|
|
1393
|
+
k(c(_), { icon: "bi:x" })
|
|
1395
1394
|
]),
|
|
1396
1395
|
default: g(() => [
|
|
1397
1396
|
C(a.$slots, "default")
|
|
@@ -1400,7 +1399,7 @@ const Qe = {
|
|
|
1400
1399
|
}, 16);
|
|
1401
1400
|
};
|
|
1402
1401
|
}
|
|
1403
|
-
}),
|
|
1402
|
+
}), po = /* @__PURE__ */ z({
|
|
1404
1403
|
__name: "ForgeActionButton",
|
|
1405
1404
|
props: {
|
|
1406
1405
|
action: {},
|
|
@@ -1409,7 +1408,7 @@ const Qe = {
|
|
|
1409
1408
|
params: { default: Array }
|
|
1410
1409
|
},
|
|
1411
1410
|
setup(e) {
|
|
1412
|
-
const t =
|
|
1411
|
+
const t = I(!1), a = e, i = async () => {
|
|
1413
1412
|
t.value = !0;
|
|
1414
1413
|
try {
|
|
1415
1414
|
await a.action.apply(this, a.params);
|
|
@@ -1426,21 +1425,21 @@ const Qe = {
|
|
|
1426
1425
|
disabled: t.value || a.disabled,
|
|
1427
1426
|
onClick: i
|
|
1428
1427
|
}), null, 16, ["loading", "disabled"]),
|
|
1429
|
-
k(c(
|
|
1428
|
+
k(c(Pe))
|
|
1430
1429
|
], 64);
|
|
1431
1430
|
};
|
|
1432
1431
|
}
|
|
1433
|
-
}),
|
|
1432
|
+
}), co = /* @__PURE__ */ z({
|
|
1434
1433
|
__name: "ForgeAutoComplete",
|
|
1435
1434
|
setup(e) {
|
|
1436
|
-
return (t, a) => (d(), x(c(
|
|
1435
|
+
return (t, a) => (d(), x(c(je), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1437
1436
|
default: g(() => [
|
|
1438
1437
|
(d(!0), b(N, null, U(t.$slots, (i, o) => C(t.$slots, o, { slot: o })), 256))
|
|
1439
1438
|
]),
|
|
1440
1439
|
_: 3
|
|
1441
1440
|
}, 16));
|
|
1442
1441
|
}
|
|
1443
|
-
}),
|
|
1442
|
+
}), Lt = { class: "d-flex flex-column" }, Nt = ["for"], ye = /* @__PURE__ */ z({
|
|
1444
1443
|
__name: "ForgeCheckbox",
|
|
1445
1444
|
props: /* @__PURE__ */ E({
|
|
1446
1445
|
label: { default: "" },
|
|
@@ -1486,8 +1485,8 @@ const Qe = {
|
|
|
1486
1485
|
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(u) : a.value = u;
|
|
1487
1486
|
}, s = M(() => o.value.length > 0);
|
|
1488
1487
|
return (p, u) => {
|
|
1489
|
-
const h =
|
|
1490
|
-
return d(), b("div",
|
|
1488
|
+
const h = Me;
|
|
1489
|
+
return d(), b("div", Lt, [
|
|
1491
1490
|
m("div", j({
|
|
1492
1491
|
class: "d-flex",
|
|
1493
1492
|
"data-cy": "checkbox-container",
|
|
@@ -1509,7 +1508,7 @@ const Qe = {
|
|
|
1509
1508
|
C(p.$slots, "default", {}, () => [
|
|
1510
1509
|
V($(t.label), 1)
|
|
1511
1510
|
])
|
|
1512
|
-
], 10,
|
|
1511
|
+
], 10, Nt)
|
|
1513
1512
|
], 16),
|
|
1514
1513
|
K(m("small", {
|
|
1515
1514
|
"data-cy": "error",
|
|
@@ -1538,7 +1537,7 @@ const Qe = {
|
|
|
1538
1537
|
})
|
|
1539
1538
|
}));
|
|
1540
1539
|
return (i, o) => {
|
|
1541
|
-
const l =
|
|
1540
|
+
const l = Ie;
|
|
1542
1541
|
return d(), b("div", {
|
|
1543
1542
|
class: P(i.inLine ? "" : "forge-loader")
|
|
1544
1543
|
}, [
|
|
@@ -1550,7 +1549,7 @@ const Qe = {
|
|
|
1550
1549
|
], 2);
|
|
1551
1550
|
};
|
|
1552
1551
|
}
|
|
1553
|
-
}),
|
|
1552
|
+
}), Ut = ["href", "target"], uo = /* @__PURE__ */ z({
|
|
1554
1553
|
__name: "ForgeLink",
|
|
1555
1554
|
props: {
|
|
1556
1555
|
url: {},
|
|
@@ -1591,7 +1590,7 @@ const Qe = {
|
|
|
1591
1590
|
target: i.target
|
|
1592
1591
|
}, [
|
|
1593
1592
|
C(i.$slots, "default", {}, () => [
|
|
1594
|
-
i.iconName ? (d(), x(c(
|
|
1593
|
+
i.iconName ? (d(), x(c(_), {
|
|
1595
1594
|
key: 0,
|
|
1596
1595
|
id: "link-icon",
|
|
1597
1596
|
icon: i.iconName,
|
|
@@ -1599,10 +1598,10 @@ const Qe = {
|
|
|
1599
1598
|
}, null, 8, ["icon", "class"])) : T("", !0),
|
|
1600
1599
|
V(" " + $(i.label), 1)
|
|
1601
1600
|
])
|
|
1602
|
-
], 10,
|
|
1601
|
+
], 10, Ut));
|
|
1603
1602
|
}
|
|
1604
1603
|
});
|
|
1605
|
-
function
|
|
1604
|
+
function Et(e) {
|
|
1606
1605
|
const t = {
|
|
1607
1606
|
errorMessage: "",
|
|
1608
1607
|
errorDetails: []
|
|
@@ -1613,20 +1612,20 @@ function Ut(e) {
|
|
|
1613
1612
|
}
|
|
1614
1613
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1615
1614
|
}
|
|
1616
|
-
function
|
|
1615
|
+
function mo(e, t) {
|
|
1617
1616
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1618
1617
|
}
|
|
1619
|
-
function
|
|
1618
|
+
function vo(e, t, a) {
|
|
1620
1619
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1621
1620
|
}
|
|
1622
|
-
const
|
|
1621
|
+
const qt = {
|
|
1623
1622
|
key: 0,
|
|
1624
1623
|
class: "sticky-top py-3 error-bg",
|
|
1625
1624
|
"data-cy": "error-wrapper"
|
|
1626
|
-
},
|
|
1625
|
+
}, Rt = { key: 0 }, Ht = {
|
|
1627
1626
|
class: "d-flex w-100",
|
|
1628
1627
|
"data-cy": "footer"
|
|
1629
|
-
},
|
|
1628
|
+
}, fo = /* @__PURE__ */ z({
|
|
1630
1629
|
__name: "ForgeModal",
|
|
1631
1630
|
props: /* @__PURE__ */ E({
|
|
1632
1631
|
cancelText: { default: "Cancel" },
|
|
@@ -1688,7 +1687,7 @@ const Et = {
|
|
|
1688
1687
|
}),
|
|
1689
1688
|
emits: ["update:visible", "update:error"],
|
|
1690
1689
|
setup(e, { expose: t }) {
|
|
1691
|
-
const a = L(e, "visible"), i =
|
|
1690
|
+
const a = L(e, "visible"), i = I(!1), o = e, l = I(!1), n = L(e, "error"), s = () => {
|
|
1692
1691
|
n.value = {
|
|
1693
1692
|
hasError: !1,
|
|
1694
1693
|
header: "",
|
|
@@ -1712,8 +1711,8 @@ const Et = {
|
|
|
1712
1711
|
(v || v == null) && h();
|
|
1713
1712
|
} catch (v) {
|
|
1714
1713
|
n.value.hasError = !0;
|
|
1715
|
-
const
|
|
1716
|
-
n.value.header =
|
|
1714
|
+
const S = Et(v);
|
|
1715
|
+
n.value.header = S.errorMessage, n.value.message = S.errorDetails;
|
|
1717
1716
|
}
|
|
1718
1717
|
l.value = !1;
|
|
1719
1718
|
}
|
|
@@ -1736,15 +1735,15 @@ const Et = {
|
|
|
1736
1735
|
}
|
|
1737
1736
|
]
|
|
1738
1737
|
}));
|
|
1739
|
-
return (v,
|
|
1740
|
-
const
|
|
1738
|
+
return (v, S) => {
|
|
1739
|
+
const F = q, A = _e;
|
|
1741
1740
|
return d(), x(A, j(o, {
|
|
1742
1741
|
onMaximize: u,
|
|
1743
1742
|
onUnmaximize: p,
|
|
1744
1743
|
pt: w.value
|
|
1745
1744
|
}), ie({
|
|
1746
1745
|
closeicon: g(() => [
|
|
1747
|
-
k(c(
|
|
1746
|
+
k(c(_), {
|
|
1748
1747
|
"data-cy": "close-icon",
|
|
1749
1748
|
icon: "bi:x-lg",
|
|
1750
1749
|
width: "18",
|
|
@@ -1753,7 +1752,7 @@ const Et = {
|
|
|
1753
1752
|
})
|
|
1754
1753
|
]),
|
|
1755
1754
|
maximizeicon: g(() => [
|
|
1756
|
-
k(c(
|
|
1755
|
+
k(c(_), {
|
|
1757
1756
|
"data-cy": "maximisable-icon",
|
|
1758
1757
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1759
1758
|
width: "16",
|
|
@@ -1766,7 +1765,7 @@ const Et = {
|
|
|
1766
1765
|
name: B,
|
|
1767
1766
|
fn: g((D) => [
|
|
1768
1767
|
B == "default" ? (d(), b(N, { key: 0 }, [
|
|
1769
|
-
n.value.hasError ? (d(), b("div",
|
|
1768
|
+
n.value.hasError ? (d(), b("div", qt, [
|
|
1770
1769
|
k(re, {
|
|
1771
1770
|
severity: "danger",
|
|
1772
1771
|
"data-cy": "error",
|
|
@@ -1776,7 +1775,7 @@ const Et = {
|
|
|
1776
1775
|
m("p", {
|
|
1777
1776
|
class: P(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1778
1777
|
}, $(n.value.header), 3),
|
|
1779
|
-
n.value.message.length > 0 ? (d(), b("ul",
|
|
1778
|
+
n.value.message.length > 0 ? (d(), b("ul", Rt, [
|
|
1780
1779
|
(d(!0), b(N, null, U(n.value.message, (y) => (d(), b("li", { key: y }, $(y), 1))), 128))
|
|
1781
1780
|
])) : T("", !0)
|
|
1782
1781
|
]),
|
|
@@ -1793,8 +1792,8 @@ const Et = {
|
|
|
1793
1792
|
v.showFooter ? {
|
|
1794
1793
|
name: "footer",
|
|
1795
1794
|
fn: g(() => [
|
|
1796
|
-
m("div",
|
|
1797
|
-
k(
|
|
1795
|
+
m("div", Ht, [
|
|
1796
|
+
k(F, {
|
|
1798
1797
|
label: v.cancelText,
|
|
1799
1798
|
class: P(o.cancelClass),
|
|
1800
1799
|
outlined: "",
|
|
@@ -1802,7 +1801,7 @@ const Et = {
|
|
|
1802
1801
|
id: "cancel-button",
|
|
1803
1802
|
type: o.cancelButtonType
|
|
1804
1803
|
}, null, 8, ["label", "class", "type"]),
|
|
1805
|
-
k(
|
|
1804
|
+
k(F, {
|
|
1806
1805
|
label: v.submitText,
|
|
1807
1806
|
class: P([o.submitClass, "ms-auto"]),
|
|
1808
1807
|
onClick: r,
|
|
@@ -1816,7 +1815,7 @@ const Et = {
|
|
|
1816
1815
|
]), 1040, ["pt"]);
|
|
1817
1816
|
};
|
|
1818
1817
|
}
|
|
1819
|
-
}),
|
|
1818
|
+
}), Wt = ["id"], Gt = { key: 0 }, Yt = { key: 0 }, Jt = { class: "d-flex justify-content-between align-items-center position-relative" }, Kt = { key: 1 }, Zt = { "data-cy": "readonly-value" }, Xt = /* @__PURE__ */ z({
|
|
1820
1819
|
__name: "ForgeInlineEditor",
|
|
1821
1820
|
props: /* @__PURE__ */ E({
|
|
1822
1821
|
name: { default: "" },
|
|
@@ -1831,7 +1830,7 @@ const Et = {
|
|
|
1831
1830
|
}),
|
|
1832
1831
|
emits: ["update:modelValue"],
|
|
1833
1832
|
setup(e) {
|
|
1834
|
-
const t = e, a = L(e, "modelValue"), i =
|
|
1833
|
+
const t = e, a = L(e, "modelValue"), i = I(!1), o = I(), l = () => {
|
|
1835
1834
|
var v;
|
|
1836
1835
|
i.value = !i.value, (v = o.value) == null || v.focus();
|
|
1837
1836
|
}, n = async () => {
|
|
@@ -1856,27 +1855,27 @@ const Et = {
|
|
|
1856
1855
|
r.value = a.value;
|
|
1857
1856
|
});
|
|
1858
1857
|
const w = M(() => h.value.length > 0);
|
|
1859
|
-
return (v,
|
|
1860
|
-
const
|
|
1858
|
+
return (v, S) => {
|
|
1859
|
+
const F = ae, A = q;
|
|
1861
1860
|
return d(), b("div", {
|
|
1862
1861
|
id: t.name
|
|
1863
1862
|
}, [
|
|
1864
|
-
v.readonly ? (d(), b("div",
|
|
1863
|
+
v.readonly ? (d(), b("div", Kt, [
|
|
1865
1864
|
C(v.$slots, "default", {}, () => [
|
|
1866
|
-
m("span",
|
|
1865
|
+
m("span", Zt, $(c(r)), 1)
|
|
1867
1866
|
])
|
|
1868
|
-
])) : (d(), b("div",
|
|
1869
|
-
i.value ? (d(), b("div",
|
|
1870
|
-
K((d(), b("div",
|
|
1867
|
+
])) : (d(), b("div", Gt, [
|
|
1868
|
+
i.value ? (d(), b("div", Yt, [
|
|
1869
|
+
K((d(), b("div", Jt, [
|
|
1871
1870
|
C(v.$slots, "editor", {
|
|
1872
1871
|
class: P({ "is-invalid": w.value }),
|
|
1873
1872
|
editFinished: n,
|
|
1874
1873
|
cancel: s,
|
|
1875
1874
|
val: c(r)
|
|
1876
1875
|
}, () => [
|
|
1877
|
-
k(
|
|
1876
|
+
k(F, {
|
|
1878
1877
|
modelValue: c(r),
|
|
1879
|
-
"onUpdate:modelValue":
|
|
1878
|
+
"onUpdate:modelValue": S[0] || (S[0] = (f) => Se(r) ? r.value = f : null),
|
|
1880
1879
|
modelModifiers: { trim: !0 },
|
|
1881
1880
|
"data-cy": "input",
|
|
1882
1881
|
ref_key: "input",
|
|
@@ -1888,7 +1887,7 @@ const Et = {
|
|
|
1888
1887
|
]
|
|
1889
1888
|
}, null, 8, ["modelValue", "class"])
|
|
1890
1889
|
]),
|
|
1891
|
-
k(c(
|
|
1890
|
+
k(c(_), {
|
|
1892
1891
|
icon: "bi:x-circle",
|
|
1893
1892
|
class: "mx-2 cursor-pointer",
|
|
1894
1893
|
onClick: p,
|
|
@@ -1896,7 +1895,7 @@ const Et = {
|
|
|
1896
1895
|
"data-cy": "clear-icon"
|
|
1897
1896
|
})
|
|
1898
1897
|
])), [
|
|
1899
|
-
[c(
|
|
1898
|
+
[c(Ve), n]
|
|
1900
1899
|
])
|
|
1901
1900
|
])) : (d(), b("div", {
|
|
1902
1901
|
key: 1,
|
|
@@ -1915,7 +1914,7 @@ const Et = {
|
|
|
1915
1914
|
class: "p-0 m-0"
|
|
1916
1915
|
}, {
|
|
1917
1916
|
default: g(() => [
|
|
1918
|
-
k(c(
|
|
1917
|
+
k(c(_), {
|
|
1919
1918
|
icon: "bi:pencil",
|
|
1920
1919
|
class: P(w.value ? "text-invalid" : "text-muted"),
|
|
1921
1920
|
"data-cy": "edit-icon",
|
|
@@ -1932,10 +1931,10 @@ const Et = {
|
|
|
1932
1931
|
}, $(c(u)), 513), [
|
|
1933
1932
|
[X, w.value]
|
|
1934
1933
|
])
|
|
1935
|
-
], 8,
|
|
1934
|
+
], 8, Wt);
|
|
1936
1935
|
};
|
|
1937
1936
|
}
|
|
1938
|
-
}),
|
|
1937
|
+
}), Qt = ["href"], go = /* @__PURE__ */ z({
|
|
1939
1938
|
__name: "ForgeNavbar",
|
|
1940
1939
|
props: {
|
|
1941
1940
|
severity: { default: "light" },
|
|
@@ -1980,7 +1979,7 @@ const Et = {
|
|
|
1980
1979
|
]
|
|
1981
1980
|
})
|
|
1982
1981
|
}));
|
|
1983
|
-
return (i, o) => (d(), x(c(
|
|
1982
|
+
return (i, o) => (d(), x(c(De), j({ ...t, ...i.$attrs }, {
|
|
1984
1983
|
pt: a.value,
|
|
1985
1984
|
"data-cy": "navbar"
|
|
1986
1985
|
}), ie({
|
|
@@ -1991,13 +1990,13 @@ const Et = {
|
|
|
1991
1990
|
"data-cy": "logo"
|
|
1992
1991
|
}, [
|
|
1993
1992
|
C(i.$slots, "logo", {}, () => [
|
|
1994
|
-
o[0] || (o[0] = V(" Logo "))
|
|
1993
|
+
o[0] || (o[0] = V(" Logo ", -1))
|
|
1995
1994
|
])
|
|
1996
|
-
], 8,
|
|
1995
|
+
], 8, Qt)
|
|
1997
1996
|
]),
|
|
1998
1997
|
buttonicon: g(() => [
|
|
1999
1998
|
C(i.$slots, "buttonIcon", {}, () => [
|
|
2000
|
-
k(c(
|
|
1999
|
+
k(c(_), {
|
|
2001
2000
|
icon: "bi:list",
|
|
2002
2001
|
class: P(t.severity === "light" ? "text-black" : "text-white"),
|
|
2003
2002
|
height: "24",
|
|
@@ -2015,14 +2014,14 @@ const Et = {
|
|
|
2015
2014
|
}))
|
|
2016
2015
|
]), 1040, ["pt"]));
|
|
2017
2016
|
}
|
|
2018
|
-
}),
|
|
2017
|
+
}), ea = { class: "border alternating-item-list" }, ta = {
|
|
2019
2018
|
key: 0,
|
|
2020
2019
|
class: "p-2 border-top border-bottom",
|
|
2021
2020
|
"data-cy": "title"
|
|
2022
|
-
},
|
|
2021
|
+
}, aa = { class: "d-inline-block" }, ia = {
|
|
2023
2022
|
key: 1,
|
|
2024
2023
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
2025
|
-
},
|
|
2024
|
+
}, oa = /* @__PURE__ */ z({
|
|
2026
2025
|
__name: "ForgeMultiSelectPreview",
|
|
2027
2026
|
props: /* @__PURE__ */ E({
|
|
2028
2027
|
title: { default: "Selected Items" },
|
|
@@ -2072,17 +2071,17 @@ const Et = {
|
|
|
2072
2071
|
"data-cy": "options-preview"
|
|
2073
2072
|
}, [
|
|
2074
2073
|
m("div", {
|
|
2075
|
-
style:
|
|
2074
|
+
style: Ce({ height: o.height }),
|
|
2076
2075
|
class: "overflow-auto"
|
|
2077
2076
|
}, [
|
|
2078
|
-
m("div",
|
|
2079
|
-
o.title ? (d(), b("div",
|
|
2077
|
+
m("div", ea, [
|
|
2078
|
+
o.title ? (d(), b("div", ta, $(o.title), 1)) : T("", !0),
|
|
2080
2079
|
(d(!0), b(N, null, U(a.value, (p) => (d(), b("div", {
|
|
2081
2080
|
key: p.id,
|
|
2082
2081
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
2083
2082
|
}, [
|
|
2084
2083
|
C(o.$slots, "list-item", { item: p }, () => [
|
|
2085
|
-
m("span",
|
|
2084
|
+
m("span", aa, $(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
2086
2085
|
]),
|
|
2087
2086
|
o.canRemoveItemFromPreview ? (d(), x(s, {
|
|
2088
2087
|
key: 0,
|
|
@@ -2091,7 +2090,7 @@ const Et = {
|
|
|
2091
2090
|
onClick: (u) => i(p.id)
|
|
2092
2091
|
}, {
|
|
2093
2092
|
default: g(() => [
|
|
2094
|
-
k(c(
|
|
2093
|
+
k(c(_), {
|
|
2095
2094
|
icon: "bi:x",
|
|
2096
2095
|
class: "close-icon",
|
|
2097
2096
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -2100,34 +2099,34 @@ const Et = {
|
|
|
2100
2099
|
_: 2
|
|
2101
2100
|
}, 1032, ["onClick"])) : T("", !0)
|
|
2102
2101
|
]))), 128)),
|
|
2103
|
-
a.value == null || a.value.length == 0 ? (d(), b("div",
|
|
2102
|
+
a.value == null || a.value.length == 0 ? (d(), b("div", ia, $(t.optionsPreviewEmptyText), 1)) : T("", !0)
|
|
2104
2103
|
])
|
|
2105
2104
|
], 4)
|
|
2106
2105
|
], 2)
|
|
2107
2106
|
], 2);
|
|
2108
2107
|
};
|
|
2109
2108
|
}
|
|
2110
|
-
}),
|
|
2109
|
+
}), la = { class: "d-flex justify-content-between pb-2" }, na = {
|
|
2111
2110
|
"data-cy": "title",
|
|
2112
2111
|
class: "my-auto"
|
|
2113
|
-
},
|
|
2112
|
+
}, sa = {
|
|
2114
2113
|
"data-cy": "slot",
|
|
2115
2114
|
class: "d-flex align-items-center"
|
|
2116
|
-
},
|
|
2115
|
+
}, bo = /* @__PURE__ */ z({
|
|
2117
2116
|
__name: "ForgePageHeader",
|
|
2118
2117
|
props: {
|
|
2119
2118
|
title: {}
|
|
2120
2119
|
},
|
|
2121
2120
|
setup(e) {
|
|
2122
2121
|
const t = e;
|
|
2123
|
-
return (a, i) => (d(), b("div",
|
|
2124
|
-
m("h3",
|
|
2125
|
-
m("div",
|
|
2122
|
+
return (a, i) => (d(), b("div", la, [
|
|
2123
|
+
m("h3", na, $(t.title), 1),
|
|
2124
|
+
m("div", sa, [
|
|
2126
2125
|
C(a.$slots, "default")
|
|
2127
2126
|
])
|
|
2128
2127
|
]));
|
|
2129
2128
|
}
|
|
2130
|
-
}),
|
|
2129
|
+
}), ra = { class: "d-flex flex-1" }, da = { "data-cy": "before-slot" }, pa = { class: "position-relative d-flex flex-1" }, ca = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ z({
|
|
2131
2130
|
__name: "ForgeDatepicker",
|
|
2132
2131
|
props: /* @__PURE__ */ E({
|
|
2133
2132
|
severity: { default: "primary" },
|
|
@@ -2312,31 +2311,31 @@ const Et = {
|
|
|
2312
2311
|
})
|
|
2313
2312
|
}));
|
|
2314
2313
|
return (r, w) => {
|
|
2315
|
-
const v =
|
|
2314
|
+
const v = Oe;
|
|
2316
2315
|
return d(), b(N, null, [
|
|
2317
|
-
m("div",
|
|
2318
|
-
m("span",
|
|
2316
|
+
m("div", ra, [
|
|
2317
|
+
m("span", da, [
|
|
2319
2318
|
C(r.$slots, "before")
|
|
2320
2319
|
]),
|
|
2321
|
-
m("div",
|
|
2320
|
+
m("div", pa, [
|
|
2322
2321
|
k(v, j({ ...t, ...r.$attrs }, {
|
|
2323
2322
|
pt: h.value,
|
|
2324
2323
|
modelValue: a.value,
|
|
2325
2324
|
"onUpdate:modelValue": [
|
|
2326
|
-
w[0] || (w[0] = (
|
|
2325
|
+
w[0] || (w[0] = (S) => a.value = S),
|
|
2327
2326
|
c(l)
|
|
2328
2327
|
],
|
|
2329
2328
|
onBlur: w[1] || (w[1] = () => c(n)),
|
|
2330
2329
|
"input-class": { "text-truncate": !0, "datepicker-invalid": u.value, "pe-5": t.showIcon && t.modelValue, "pe-4": (t.showIcon || t.modelValue) && !(t.showIcon && t.modelValue) }
|
|
2331
2330
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2332
|
-
K(k(c(
|
|
2331
|
+
K(k(c(_), {
|
|
2333
2332
|
"data-cy": "icon",
|
|
2334
2333
|
icon: "bi:calendar4",
|
|
2335
2334
|
class: P(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white pe-none", `${u.value ? "text-danger-dark" : "text-muted"}`])
|
|
2336
2335
|
}, null, 8, ["class"]), [
|
|
2337
2336
|
[X, t.showIcon && !t.inline]
|
|
2338
2337
|
]),
|
|
2339
|
-
K(k(c(
|
|
2338
|
+
K(k(c(_), {
|
|
2340
2339
|
"data-cy": "icon",
|
|
2341
2340
|
icon: "bi:x",
|
|
2342
2341
|
onClick: p,
|
|
@@ -2345,7 +2344,7 @@ const Et = {
|
|
|
2345
2344
|
[X, t.modelValue && !t.inline && !r.readonly]
|
|
2346
2345
|
])
|
|
2347
2346
|
]),
|
|
2348
|
-
m("span",
|
|
2347
|
+
m("span", ca, [
|
|
2349
2348
|
C(r.$slots, "after")
|
|
2350
2349
|
])
|
|
2351
2350
|
]),
|
|
@@ -2358,7 +2357,7 @@ const Et = {
|
|
|
2358
2357
|
], 64);
|
|
2359
2358
|
};
|
|
2360
2359
|
}
|
|
2361
|
-
}),
|
|
2360
|
+
}), yo = /* @__PURE__ */ z({
|
|
2362
2361
|
__name: "ForgeRemainingCharacters",
|
|
2363
2362
|
props: {
|
|
2364
2363
|
maxCount: { default: 300 },
|
|
@@ -2370,7 +2369,7 @@ const Et = {
|
|
|
2370
2369
|
class: P(a.value < 0 ? "text-danger" : "")
|
|
2371
2370
|
}, "Remaining characters: " + $(a.value), 3));
|
|
2372
2371
|
}
|
|
2373
|
-
}),
|
|
2372
|
+
}), ua = { class: "d-flex justify-content-between" }, xo = /* @__PURE__ */ z({
|
|
2374
2373
|
__name: "ForgeForm",
|
|
2375
2374
|
props: {
|
|
2376
2375
|
onSubmit: {},
|
|
@@ -2382,7 +2381,7 @@ const Et = {
|
|
|
2382
2381
|
hideCancel: { type: Boolean, default: !1 }
|
|
2383
2382
|
},
|
|
2384
2383
|
setup(e) {
|
|
2385
|
-
const t = e, a =
|
|
2384
|
+
const t = e, a = I(!1), i = I({
|
|
2386
2385
|
hasError: !1,
|
|
2387
2386
|
message: ""
|
|
2388
2387
|
});
|
|
@@ -2426,7 +2425,7 @@ const Et = {
|
|
|
2426
2425
|
_: 3
|
|
2427
2426
|
})) : T("", !0),
|
|
2428
2427
|
C(l.$slots, "default"),
|
|
2429
|
-
m("div",
|
|
2428
|
+
m("div", ua, [
|
|
2430
2429
|
C(l.$slots, "cancel", {}, () => [
|
|
2431
2430
|
l.hideCancel ? T("", !0) : (d(), x(s, {
|
|
2432
2431
|
key: 0,
|
|
@@ -2463,13 +2462,16 @@ const Et = {
|
|
|
2463
2462
|
], 16);
|
|
2464
2463
|
};
|
|
2465
2464
|
}
|
|
2466
|
-
}),
|
|
2465
|
+
}), ma = {
|
|
2467
2466
|
key: 1,
|
|
2468
2467
|
class: "d-flex flex-column w-100"
|
|
2469
|
-
},
|
|
2468
|
+
}, va = ["for"], fa = {
|
|
2470
2469
|
key: 0,
|
|
2471
2470
|
class: "text-danger fw-600"
|
|
2472
|
-
},
|
|
2471
|
+
}, ga = {
|
|
2472
|
+
class: "flex--1",
|
|
2473
|
+
style: { flex: "1 0 auto" }
|
|
2474
|
+
}, ho = /* @__PURE__ */ z({
|
|
2473
2475
|
__name: "ForgeFormField",
|
|
2474
2476
|
props: /* @__PURE__ */ E({
|
|
2475
2477
|
name: {},
|
|
@@ -2494,7 +2496,7 @@ const Et = {
|
|
|
2494
2496
|
return W(() => l.value, (h) => {
|
|
2495
2497
|
t.value = h;
|
|
2496
2498
|
}, { immediate: !0 }), (h, r) => {
|
|
2497
|
-
const w =
|
|
2499
|
+
const w = Le, v = Ae, S = ae, F = oe, A = de, f = xe;
|
|
2498
2500
|
return a.type === "checkbox" ? (d(), x(ye, j({
|
|
2499
2501
|
key: 0,
|
|
2500
2502
|
id: a.name,
|
|
@@ -2503,89 +2505,91 @@ const Et = {
|
|
|
2503
2505
|
name: a.name,
|
|
2504
2506
|
modelValue: t.value,
|
|
2505
2507
|
"onUpdate:modelValue": r[0] || (r[0] = (B) => t.value = B)
|
|
2506
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div",
|
|
2508
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div", ma, [
|
|
2507
2509
|
m("div", {
|
|
2508
2510
|
"data-cy": "input-wrapper",
|
|
2509
|
-
class: P(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2511
|
+
class: P(["d-flex flex--1", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2510
2512
|
}, [
|
|
2511
2513
|
m("label", {
|
|
2512
2514
|
for: a.name,
|
|
2513
2515
|
class: P(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2514
2516
|
}, [
|
|
2515
2517
|
V($(a.fieldLabel) + " ", 1),
|
|
2516
|
-
h.required ? (d(), b("span",
|
|
2517
|
-
], 10,
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
modelValue:
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
modelValue:
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
modelValue:
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
modelValue:
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2518
|
+
h.required ? (d(), b("span", fa, "*")) : T("", !0)
|
|
2519
|
+
], 10, va),
|
|
2520
|
+
m("div", ga, [
|
|
2521
|
+
C(h.$slots, "default", G(Y({ modelValue: t.value, updateModel: c(s), hasErrors: u.value })), () => [
|
|
2522
|
+
a.type === "number" ? (d(), x(c(fe), j({
|
|
2523
|
+
key: 0,
|
|
2524
|
+
id: a.name
|
|
2525
|
+
}, h.$attrs, {
|
|
2526
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2527
|
+
placeholder: a.placeholder,
|
|
2528
|
+
"input-class": { "is-invalid": u.value },
|
|
2529
|
+
onInput: i,
|
|
2530
|
+
modelValue: t.value,
|
|
2531
|
+
"onUpdate:modelValue": r[1] || (r[1] = (B) => t.value = B)
|
|
2532
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), x(w, j({
|
|
2533
|
+
key: 1,
|
|
2534
|
+
id: a.name
|
|
2535
|
+
}, h.$attrs, {
|
|
2536
|
+
class: ["w-100", { "is-invalid": u.value }],
|
|
2537
|
+
placeholder: a.placeholder,
|
|
2538
|
+
modelValue: t.value,
|
|
2539
|
+
"onUpdate:modelValue": r[2] || (r[2] = (B) => t.value = B),
|
|
2540
|
+
onInput: i,
|
|
2541
|
+
onBlur: c(p)
|
|
2542
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), x(v, j({
|
|
2543
|
+
key: 2,
|
|
2544
|
+
id: a.name
|
|
2545
|
+
}, h.$attrs, {
|
|
2546
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2547
|
+
placeholder: a.placeholder,
|
|
2548
|
+
mask: a.mask,
|
|
2549
|
+
modelValue: t.value,
|
|
2550
|
+
"onUpdate:modelValue": r[3] || (r[3] = (B) => t.value = B),
|
|
2551
|
+
onComplete: i,
|
|
2552
|
+
onBlur: c(p)
|
|
2553
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(S, j({
|
|
2554
|
+
key: 3,
|
|
2555
|
+
id: a.name
|
|
2556
|
+
}, h.$attrs, {
|
|
2557
|
+
class: ["flex-1", { "is-invalid": u.value }],
|
|
2558
|
+
placeholder: a.placeholder,
|
|
2559
|
+
modelValue: t.value,
|
|
2560
|
+
"onUpdate:modelValue": r[4] || (r[4] = (B) => t.value = B),
|
|
2561
|
+
onInput: i,
|
|
2562
|
+
onBlur: c(p)
|
|
2563
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(F, j({ key: 4 }, { ...a, ...h.$attrs }, {
|
|
2564
|
+
modelValue: t.value,
|
|
2565
|
+
"onUpdate:modelValue": r[5] || (r[5] = (B) => t.value = B),
|
|
2566
|
+
class: { "is-invalid": u.value }
|
|
2567
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), x(A, j({ key: 5 }, { ...a, ...h.$attrs }, {
|
|
2568
|
+
modelValue: t.value,
|
|
2569
|
+
"onUpdate:modelValue": r[6] || (r[6] = (B) => t.value = B),
|
|
2570
|
+
class: { "is-invalid": u.value }
|
|
2571
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(oa, j({ key: 6 }, { ...a, ...h.$attrs }, {
|
|
2572
|
+
modelValue: t.value,
|
|
2573
|
+
"onUpdate:modelValue": r[7] || (r[7] = (B) => t.value = B),
|
|
2574
|
+
class: { "is-invalid": u.value }
|
|
2575
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), x(f, j({ key: 7 }, { ...a, ...h.$attrs }, {
|
|
2576
|
+
modelValue: t.value,
|
|
2577
|
+
"onUpdate:modelValue": r[8] || (r[8] = (B) => t.value = B),
|
|
2578
|
+
class: { "is-invalid": u.value }
|
|
2579
|
+
}), null, 16, ["modelValue", "class"])) : T("", !0)
|
|
2580
|
+
]),
|
|
2581
|
+
K(m("small", {
|
|
2582
|
+
"data-cy": "error",
|
|
2583
|
+
class: "invalid-feedback"
|
|
2584
|
+
}, $(c(n)), 513), [
|
|
2585
|
+
[X, u.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2586
|
+
])
|
|
2577
2587
|
])
|
|
2578
|
-
], 2)
|
|
2579
|
-
K(m("small", {
|
|
2580
|
-
"data-cy": "error",
|
|
2581
|
-
class: "invalid-feedback"
|
|
2582
|
-
}, $(c(n)), 513), [
|
|
2583
|
-
[X, u.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2584
|
-
])
|
|
2588
|
+
], 2)
|
|
2585
2589
|
]));
|
|
2586
2590
|
};
|
|
2587
2591
|
}
|
|
2588
|
-
}),
|
|
2592
|
+
}), wo = /* @__PURE__ */ z({
|
|
2589
2593
|
__name: "ForgeChip",
|
|
2590
2594
|
props: {
|
|
2591
2595
|
chipSeverity: { default: "primary" },
|
|
@@ -2620,7 +2624,7 @@ const Et = {
|
|
|
2620
2624
|
]
|
|
2621
2625
|
}));
|
|
2622
2626
|
return (i, o) => {
|
|
2623
|
-
const l =
|
|
2627
|
+
const l = Ne;
|
|
2624
2628
|
return d(), x(l, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2625
2629
|
default: g(() => [
|
|
2626
2630
|
(d(!0), b(N, null, U(i.$slots, (n, s) => C(i.$slots, s, { slot: s })), 256))
|
|
@@ -2629,7 +2633,7 @@ const Et = {
|
|
|
2629
2633
|
}, 16, ["pt"]);
|
|
2630
2634
|
};
|
|
2631
2635
|
}
|
|
2632
|
-
}),
|
|
2636
|
+
}), ko = /* @__PURE__ */ z({
|
|
2633
2637
|
__name: "ForgeProgressBar",
|
|
2634
2638
|
props: {
|
|
2635
2639
|
severity: { default: "primary" },
|
|
@@ -2675,7 +2679,7 @@ const Et = {
|
|
|
2675
2679
|
}
|
|
2676
2680
|
}));
|
|
2677
2681
|
return (n, s) => {
|
|
2678
|
-
const p =
|
|
2682
|
+
const p = Ue;
|
|
2679
2683
|
return d(), x(p, j({ ...n.$attrs, ...t }, { pt: l.value }), {
|
|
2680
2684
|
default: g(() => [
|
|
2681
2685
|
C(n.$slots, "default")
|
|
@@ -2685,7 +2689,7 @@ const Et = {
|
|
|
2685
2689
|
};
|
|
2686
2690
|
}
|
|
2687
2691
|
});
|
|
2688
|
-
var
|
|
2692
|
+
var ba = /* @__PURE__ */ z({
|
|
2689
2693
|
name: "VueDrawingCanvas",
|
|
2690
2694
|
props: {
|
|
2691
2695
|
strokeType: {
|
|
@@ -2998,11 +3002,11 @@ var fa = /* @__PURE__ */ z({
|
|
|
2998
3002
|
},
|
|
2999
3003
|
wrapText(e, t, a, i, o, l) {
|
|
3000
3004
|
const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
3001
|
-
var p = t.split(n).filter((
|
|
3002
|
-
for (let
|
|
3003
|
-
for (var u = p[
|
|
3004
|
-
var w = h + u[r] + " ", v = e.measureText(w),
|
|
3005
|
-
|
|
3005
|
+
var p = t.split(n).filter((F) => F.length > 0);
|
|
3006
|
+
for (let F = 0; F < p.length; F++) {
|
|
3007
|
+
for (var u = p[F].split(s).filter((A) => A.length > 0), h = "", r = 0; r < u.length; r++) {
|
|
3008
|
+
var w = h + u[r] + " ", v = e.measureText(w), S = v.width;
|
|
3009
|
+
S > o && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(h, a, i) : e.fillText(h, a, i), h = u[r] + " ", i += l) : h = w;
|
|
3006
3010
|
}
|
|
3007
3011
|
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(h, a, i) : e.fillText(h, a, i), i += u.length > 0 ? l : 0;
|
|
3008
3012
|
}
|
|
@@ -3048,7 +3052,7 @@ var fa = /* @__PURE__ */ z({
|
|
|
3048
3052
|
}
|
|
3049
3053
|
},
|
|
3050
3054
|
render() {
|
|
3051
|
-
return
|
|
3055
|
+
return Te("canvas", {
|
|
3052
3056
|
id: this.canvasId,
|
|
3053
3057
|
height: Number(this.height),
|
|
3054
3058
|
width: Number(this.width),
|
|
@@ -3075,7 +3079,7 @@ var fa = /* @__PURE__ */ z({
|
|
|
3075
3079
|
});
|
|
3076
3080
|
}
|
|
3077
3081
|
});
|
|
3078
|
-
const
|
|
3082
|
+
const ya = { class: "d-flex flex-column" }, xa = { class: "d-flex flex-row mt-1 gap-1" }, Bo = /* @__PURE__ */ z({
|
|
3079
3083
|
__name: "ForgeScratchpad",
|
|
3080
3084
|
props: {
|
|
3081
3085
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -3088,7 +3092,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3088
3092
|
},
|
|
3089
3093
|
emits: ["save"],
|
|
3090
3094
|
setup(e, { emit: t }) {
|
|
3091
|
-
const a = e, i = t, o =
|
|
3095
|
+
const a = e, i = t, o = ze("drawingCanvas"), l = I(), n = () => {
|
|
3092
3096
|
o == null || o.value.reset();
|
|
3093
3097
|
}, s = () => {
|
|
3094
3098
|
o == null || o.value.redo();
|
|
@@ -3099,8 +3103,8 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3099
3103
|
};
|
|
3100
3104
|
return (h, r) => {
|
|
3101
3105
|
const w = q;
|
|
3102
|
-
return d(), b("div",
|
|
3103
|
-
k(c(
|
|
3106
|
+
return d(), b("div", ya, [
|
|
3107
|
+
k(c(ba), j({
|
|
3104
3108
|
ref_key: "drawingCanvas",
|
|
3105
3109
|
ref: o,
|
|
3106
3110
|
image: l.value,
|
|
@@ -3113,18 +3117,17 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3113
3117
|
style: `height: ${h.height}px; width: ${h.width}px`,
|
|
3114
3118
|
"line-join": h.lineJoin
|
|
3115
3119
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
3116
|
-
m("div",
|
|
3120
|
+
m("div", xa, [
|
|
3117
3121
|
a.showUndo ? (d(), x(w, {
|
|
3118
3122
|
key: 0,
|
|
3119
3123
|
onClick: p,
|
|
3120
3124
|
outlined: "",
|
|
3121
3125
|
"data-cy": "undo-button"
|
|
3122
3126
|
}, {
|
|
3123
|
-
default: g(() => r[1] || (r[1] = [
|
|
3124
|
-
V("Undo")
|
|
3125
|
-
])),
|
|
3126
|
-
_: 1
|
|
3127
|
-
__: [1]
|
|
3127
|
+
default: g(() => [...r[1] || (r[1] = [
|
|
3128
|
+
V("Undo", -1)
|
|
3129
|
+
])]),
|
|
3130
|
+
_: 1
|
|
3128
3131
|
})) : T("", !0),
|
|
3129
3132
|
a.showRedo ? (d(), x(w, {
|
|
3130
3133
|
key: 1,
|
|
@@ -3132,11 +3135,10 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3132
3135
|
outlined: "",
|
|
3133
3136
|
"data-cy": "redo-button"
|
|
3134
3137
|
}, {
|
|
3135
|
-
default: g(() => r[2] || (r[2] = [
|
|
3136
|
-
V("Redo")
|
|
3137
|
-
])),
|
|
3138
|
-
_: 1
|
|
3139
|
-
__: [2]
|
|
3138
|
+
default: g(() => [...r[2] || (r[2] = [
|
|
3139
|
+
V("Redo", -1)
|
|
3140
|
+
])]),
|
|
3141
|
+
_: 1
|
|
3140
3142
|
})) : T("", !0),
|
|
3141
3143
|
a.showClear ? (d(), x(w, {
|
|
3142
3144
|
key: 2,
|
|
@@ -3144,11 +3146,10 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3144
3146
|
outlined: "",
|
|
3145
3147
|
"data-cy": "clear-button"
|
|
3146
3148
|
}, {
|
|
3147
|
-
default: g(() => r[3] || (r[3] = [
|
|
3148
|
-
V("Clear")
|
|
3149
|
-
])),
|
|
3150
|
-
_: 1
|
|
3151
|
-
__: [3]
|
|
3149
|
+
default: g(() => [...r[3] || (r[3] = [
|
|
3150
|
+
V("Clear", -1)
|
|
3151
|
+
])]),
|
|
3152
|
+
_: 1
|
|
3152
3153
|
})) : T("", !0),
|
|
3153
3154
|
a.showSave ? (d(), x(w, {
|
|
3154
3155
|
key: 3,
|
|
@@ -3156,17 +3157,16 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3156
3157
|
class: "ms-auto",
|
|
3157
3158
|
"data-cy": "save-button"
|
|
3158
3159
|
}, {
|
|
3159
|
-
default: g(() => r[4] || (r[4] = [
|
|
3160
|
-
V("Save")
|
|
3161
|
-
])),
|
|
3162
|
-
_: 1
|
|
3163
|
-
__: [4]
|
|
3160
|
+
default: g(() => [...r[4] || (r[4] = [
|
|
3161
|
+
V("Save", -1)
|
|
3162
|
+
])]),
|
|
3163
|
+
_: 1
|
|
3164
3164
|
})) : T("", !0)
|
|
3165
3165
|
])
|
|
3166
3166
|
]);
|
|
3167
3167
|
};
|
|
3168
3168
|
}
|
|
3169
|
-
}),
|
|
3169
|
+
}), ha = { class: "value text-white w-100 text-center" }, $o = /* @__PURE__ */ z({
|
|
3170
3170
|
__name: "ForgeStatWidget",
|
|
3171
3171
|
props: {
|
|
3172
3172
|
size: { default: "md" },
|
|
@@ -3177,12 +3177,12 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3177
3177
|
return (a, i) => (d(), b("div", j(a.$attrs, {
|
|
3178
3178
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3179
3179
|
}), [
|
|
3180
|
-
m("span",
|
|
3180
|
+
m("span", ha, [
|
|
3181
3181
|
C(a.$slots, "default")
|
|
3182
3182
|
])
|
|
3183
3183
|
], 16));
|
|
3184
3184
|
}
|
|
3185
|
-
}),
|
|
3185
|
+
}), wa = { key: 0 }, Fo = /* @__PURE__ */ z({
|
|
3186
3186
|
__name: "ForgeStepper",
|
|
3187
3187
|
props: {
|
|
3188
3188
|
currentStep: { default: 1 },
|
|
@@ -3229,26 +3229,26 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3229
3229
|
]
|
|
3230
3230
|
})
|
|
3231
3231
|
}));
|
|
3232
|
-
return (i, o) => (d(), x(c(
|
|
3232
|
+
return (i, o) => (d(), x(c(qe), { value: i.currentStep }, {
|
|
3233
3233
|
default: g(() => [
|
|
3234
|
-
k(c(
|
|
3234
|
+
k(c(Re), null, {
|
|
3235
3235
|
default: g(() => [
|
|
3236
|
-
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(
|
|
3236
|
+
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(Ee), j({
|
|
3237
3237
|
key: l.value,
|
|
3238
3238
|
value: l.value,
|
|
3239
3239
|
disabled: l.disabled
|
|
3240
3240
|
}, { ref_for: !0 }, { ...i.$attrs }, { pt: a.value }), {
|
|
3241
3241
|
default: g(() => [
|
|
3242
|
-
i.showStepLabel ? (d(), b("div",
|
|
3242
|
+
i.showStepLabel ? (d(), b("div", wa, $(l.label), 1)) : T("", !0)
|
|
3243
3243
|
]),
|
|
3244
3244
|
_: 2
|
|
3245
3245
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
3246
3246
|
]),
|
|
3247
3247
|
_: 1
|
|
3248
3248
|
}),
|
|
3249
|
-
k(c(
|
|
3249
|
+
k(c(We), null, {
|
|
3250
3250
|
default: g(() => [
|
|
3251
|
-
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(
|
|
3251
|
+
(d(!0), b(N, null, U(i.steps, (l) => (d(), x(c(He), {
|
|
3252
3252
|
key: l.value,
|
|
3253
3253
|
value: l.value
|
|
3254
3254
|
}, {
|
|
@@ -3264,7 +3264,7 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3264
3264
|
_: 3
|
|
3265
3265
|
}, 8, ["value"]));
|
|
3266
3266
|
}
|
|
3267
|
-
}),
|
|
3267
|
+
}), ka = { class: "p-4 text-wrap w-100" }, Ba = { class: "p-4 text-wrap w-100" }, So = /* @__PURE__ */ z({
|
|
3268
3268
|
__name: "ForgeTile",
|
|
3269
3269
|
props: {
|
|
3270
3270
|
severity: { default: "primary" },
|
|
@@ -3284,9 +3284,9 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3284
3284
|
"data-cy": "button-tile"
|
|
3285
3285
|
}, {
|
|
3286
3286
|
default: g(() => [
|
|
3287
|
-
m("div",
|
|
3287
|
+
m("div", ka, [
|
|
3288
3288
|
C(o.$slots, "default", {}, () => [
|
|
3289
|
-
l[0] || (l[0] = V("Tile Content"))
|
|
3289
|
+
l[0] || (l[0] = V("Tile Content", -1))
|
|
3290
3290
|
])
|
|
3291
3291
|
])
|
|
3292
3292
|
]),
|
|
@@ -3296,9 +3296,9 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3296
3296
|
class: P(["d-flex w-100", i.value]),
|
|
3297
3297
|
"data-cy": "tile"
|
|
3298
3298
|
}, [
|
|
3299
|
-
m("div",
|
|
3299
|
+
m("div", Ba, [
|
|
3300
3300
|
C(o.$slots, "default", {}, () => [
|
|
3301
|
-
l[1] || (l[1] = V("Tile Content"))
|
|
3301
|
+
l[1] || (l[1] = V("Tile Content", -1))
|
|
3302
3302
|
])
|
|
3303
3303
|
])
|
|
3304
3304
|
], 2));
|
|
@@ -3308,10 +3308,10 @@ const ga = { class: "d-flex flex-column" }, ba = { class: "d-flex flex-row mt-1
|
|
|
3308
3308
|
function ee(e, t) {
|
|
3309
3309
|
return e > 1 ? `${t}s` : t;
|
|
3310
3310
|
}
|
|
3311
|
-
const
|
|
3311
|
+
const $a = {
|
|
3312
3312
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3313
3313
|
"data-cy": "pagination-header"
|
|
3314
|
-
},
|
|
3314
|
+
}, Fa = { class: "ms-2" }, Sa = { key: 0 }, Ca = {
|
|
3315
3315
|
class: "w-auto",
|
|
3316
3316
|
"data-cy": "total"
|
|
3317
3317
|
}, he = /* @__PURE__ */ z({
|
|
@@ -3329,9 +3329,9 @@ const ka = {
|
|
|
3329
3329
|
const n = Math.ceil(i.total / i.perPage);
|
|
3330
3330
|
return `${n} ${ee(n, "page")}`;
|
|
3331
3331
|
});
|
|
3332
|
-
return (n, s) => (d(), b("div",
|
|
3333
|
-
s[2] || (s[2] = V(" Number of results per page ")),
|
|
3334
|
-
m("div",
|
|
3332
|
+
return (n, s) => (d(), b("div", $a, [
|
|
3333
|
+
s[2] || (s[2] = V(" Number of results per page ", -1)),
|
|
3334
|
+
m("div", Fa, [
|
|
3335
3335
|
k(c(oe), {
|
|
3336
3336
|
options: i.pageSizes,
|
|
3337
3337
|
"model-value": i.perPage,
|
|
@@ -3340,16 +3340,16 @@ const ka = {
|
|
|
3340
3340
|
"data-cy": "pagination-page-size-select"
|
|
3341
3341
|
}, null, 8, ["options", "model-value"])
|
|
3342
3342
|
]),
|
|
3343
|
-
i.total ? (d(), b("div",
|
|
3343
|
+
i.total ? (d(), b("div", Sa, [
|
|
3344
3344
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3345
|
-
m("span",
|
|
3345
|
+
m("span", Ca, $(i.total) + " " + $(c(ee)(i.total, "result")) + " across " + $(l.value), 1)
|
|
3346
3346
|
])) : T("", !0)
|
|
3347
3347
|
]));
|
|
3348
3348
|
}
|
|
3349
|
-
}),
|
|
3349
|
+
}), Ta = { class: "position-relative" }, za = { "data-cy": "above-table-slot" }, Pa = { class: "d-flex w-100" }, ja = {
|
|
3350
3350
|
class: "mx-auto",
|
|
3351
3351
|
"data-cy": "empty-message"
|
|
3352
|
-
},
|
|
3352
|
+
}, Ma = { class: "d-flex" }, Ia = { class: "d-flex align-items-end mb-2" }, _a = { key: 0 }, Va = { class: "ms-auto" }, Co = /* @__PURE__ */ z({
|
|
3353
3353
|
__name: "ForgeTable",
|
|
3354
3354
|
props: {
|
|
3355
3355
|
value: {},
|
|
@@ -3436,7 +3436,7 @@ const ka = {
|
|
|
3436
3436
|
},
|
|
3437
3437
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3438
3438
|
setup(e, { emit: t }) {
|
|
3439
|
-
const a = t, i = e, o =
|
|
3439
|
+
const a = t, i = e, o = I(), l = I([5, 10, 20, 50, 100]), n = I(i.perPage ?? 10), s = I({
|
|
3440
3440
|
filters: i.filters,
|
|
3441
3441
|
perPage: n.value,
|
|
3442
3442
|
page: 0,
|
|
@@ -3479,26 +3479,26 @@ const ka = {
|
|
|
3479
3479
|
else
|
|
3480
3480
|
for (const f in i.filters)
|
|
3481
3481
|
typeof i.filters[f] == "string" ? i.filters[f] = "" : i.filters[f].value = null;
|
|
3482
|
-
|
|
3482
|
+
S(i.filters);
|
|
3483
3483
|
}, w = () => {
|
|
3484
3484
|
o.value.exportCSV();
|
|
3485
3485
|
}, v = (f) => {
|
|
3486
3486
|
var B;
|
|
3487
3487
|
s.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((B = f.sortField) == null ? void 0 : B.toString()) ?? "", a("update:tableContext", s.value), a("sort", f);
|
|
3488
|
-
}, F = (f) => {
|
|
3489
|
-
s.value.filters = f, a("update:tableContext", s.value), a("update:filters", f);
|
|
3490
3488
|
}, S = (f) => {
|
|
3489
|
+
s.value.filters = f, a("update:tableContext", s.value), a("update:filters", f);
|
|
3490
|
+
}, F = (f) => {
|
|
3491
3491
|
s.value.page = f.page, a("update:tableContext", s.value), a("page", f);
|
|
3492
3492
|
}, A = () => {
|
|
3493
3493
|
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3494
3494
|
};
|
|
3495
3495
|
return W(() => i.filters, (f) => {
|
|
3496
3496
|
s.value.filters = f, a("update:tableContext", s.value);
|
|
3497
|
-
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (f, B) => (d(), b("div",
|
|
3498
|
-
m("span",
|
|
3497
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (f, B) => (d(), b("div", Ta, [
|
|
3498
|
+
m("span", za, [
|
|
3499
3499
|
C(f.$slots, "above-table")
|
|
3500
3500
|
]),
|
|
3501
|
-
k(c(
|
|
3501
|
+
k(c(Ge), j({
|
|
3502
3502
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3503
3503
|
}, { ...i, ...f.$attrs }, {
|
|
3504
3504
|
pt: h.value,
|
|
@@ -3508,23 +3508,23 @@ const ka = {
|
|
|
3508
3508
|
ref_key: "forgeTable",
|
|
3509
3509
|
ref: o,
|
|
3510
3510
|
"data-cy": "table",
|
|
3511
|
-
"onUpdate:filters":
|
|
3511
|
+
"onUpdate:filters": S,
|
|
3512
3512
|
onSort: v,
|
|
3513
|
-
onPage:
|
|
3513
|
+
onPage: F,
|
|
3514
3514
|
showHeaders: ""
|
|
3515
3515
|
}), ie({
|
|
3516
3516
|
empty: g(() => [
|
|
3517
|
-
m("div",
|
|
3518
|
-
m("h5",
|
|
3517
|
+
m("div", Pa, [
|
|
3518
|
+
m("h5", ja, $(f.emptyMessage ?? "No items Found."), 1)
|
|
3519
3519
|
])
|
|
3520
3520
|
]),
|
|
3521
3521
|
header: g(() => [
|
|
3522
3522
|
m("div", {
|
|
3523
3523
|
class: P(i.loading ? "opacity-50" : "")
|
|
3524
3524
|
}, [
|
|
3525
|
-
m("div",
|
|
3526
|
-
m("div",
|
|
3527
|
-
f.paginator && !f.legacyPaginationFooter ? (d(), b("span",
|
|
3525
|
+
m("div", Ma, [
|
|
3526
|
+
m("div", Ia, [
|
|
3527
|
+
f.paginator && !f.legacyPaginationFooter ? (d(), b("span", _a, [
|
|
3528
3528
|
k(he, {
|
|
3529
3529
|
total: p.value,
|
|
3530
3530
|
"page-sizes": l.value,
|
|
@@ -3536,7 +3536,7 @@ const ka = {
|
|
|
3536
3536
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3537
3537
|
])) : T("", !0)
|
|
3538
3538
|
]),
|
|
3539
|
-
m("div",
|
|
3539
|
+
m("div", Va, [
|
|
3540
3540
|
f.showClearButton ? (d(), x(c(q), {
|
|
3541
3541
|
key: 0,
|
|
3542
3542
|
outlined: "",
|
|
@@ -3545,15 +3545,14 @@ const ka = {
|
|
|
3545
3545
|
"data-cy": "clear-all"
|
|
3546
3546
|
}, {
|
|
3547
3547
|
default: g(() => [
|
|
3548
|
-
k(c(
|
|
3548
|
+
k(c(_), {
|
|
3549
3549
|
icon: "bi:funnel-fill",
|
|
3550
3550
|
width: "24",
|
|
3551
3551
|
height: "24"
|
|
3552
3552
|
}),
|
|
3553
|
-
B[2] || (B[2] = V(" Clear "))
|
|
3553
|
+
B[2] || (B[2] = V(" Clear ", -1))
|
|
3554
3554
|
]),
|
|
3555
|
-
_: 1
|
|
3556
|
-
__: [2]
|
|
3555
|
+
_: 1
|
|
3557
3556
|
}, 8, ["class"])) : T("", !0),
|
|
3558
3557
|
f.showExporterButton ? (d(), x(c(q), {
|
|
3559
3558
|
key: 1,
|
|
@@ -3562,15 +3561,14 @@ const ka = {
|
|
|
3562
3561
|
"data-cy": "exporter"
|
|
3563
3562
|
}, {
|
|
3564
3563
|
default: g(() => [
|
|
3565
|
-
k(c(
|
|
3564
|
+
k(c(_), {
|
|
3566
3565
|
icon: "typcn:export",
|
|
3567
3566
|
width: "24",
|
|
3568
3567
|
height: "24"
|
|
3569
3568
|
}),
|
|
3570
|
-
B[3] || (B[3] = V(" Export "))
|
|
3569
|
+
B[3] || (B[3] = V(" Export ", -1))
|
|
3571
3570
|
]),
|
|
3572
|
-
_: 1
|
|
3573
|
-
__: [3]
|
|
3571
|
+
_: 1
|
|
3574
3572
|
})) : T("", !0),
|
|
3575
3573
|
C(f.$slots, "column-customiser")
|
|
3576
3574
|
])
|
|
@@ -3620,10 +3618,10 @@ const ka = {
|
|
|
3620
3618
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3621
3619
|
]));
|
|
3622
3620
|
}
|
|
3623
|
-
}),
|
|
3621
|
+
}), Da = { class: "position-relative" }, Oa = { "data-cy": "above-table-slot" }, Aa = { class: "d-flex w-100" }, La = {
|
|
3624
3622
|
class: "mx-auto",
|
|
3625
3623
|
"data-cy": "empty-message"
|
|
3626
|
-
},
|
|
3624
|
+
}, Na = { class: "d-flex" }, Ua = { class: "d-flex align-items-end mb-2" }, Ea = { key: 0 }, qa = { class: "ms-auto" }, To = /* @__PURE__ */ z({
|
|
3627
3625
|
__name: "ForgeTreeTable",
|
|
3628
3626
|
props: {
|
|
3629
3627
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3684,7 +3682,7 @@ const ka = {
|
|
|
3684
3682
|
},
|
|
3685
3683
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3686
3684
|
setup(e, { emit: t }) {
|
|
3687
|
-
const a = e, i = t, o =
|
|
3685
|
+
const a = e, i = t, o = I([5, 10, 20, 50, 100]), l = I(10), n = I(0), s = I(0), p = I({
|
|
3688
3686
|
filters: a.filters,
|
|
3689
3687
|
perPage: l.value,
|
|
3690
3688
|
page: 0,
|
|
@@ -3764,14 +3762,14 @@ const ka = {
|
|
|
3764
3762
|
},
|
|
3765
3763
|
0
|
|
3766
3764
|
);
|
|
3767
|
-
},
|
|
3765
|
+
}, S = () => {
|
|
3768
3766
|
if (a.clearAll)
|
|
3769
3767
|
a.clearAll();
|
|
3770
3768
|
else
|
|
3771
3769
|
for (const y in a.filters)
|
|
3772
3770
|
typeof a.filters[y] == "string" ? a.filters[y] = "" : a.filters[y].value = null;
|
|
3773
3771
|
A(a.filters);
|
|
3774
|
-
},
|
|
3772
|
+
}, F = (y) => {
|
|
3775
3773
|
var O;
|
|
3776
3774
|
p.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((O = y.sortField) == null ? void 0 : O.toString()) ?? "", i("update:tableContext", p.value), i("sort", y), w();
|
|
3777
3775
|
}, A = (y) => {
|
|
@@ -3791,11 +3789,11 @@ const ka = {
|
|
|
3791
3789
|
const D = () => {
|
|
3792
3790
|
n.value = s.value * l.value;
|
|
3793
3791
|
};
|
|
3794
|
-
return (y, O) => (d(), b("div",
|
|
3795
|
-
m("span",
|
|
3792
|
+
return (y, O) => (d(), b("div", Da, [
|
|
3793
|
+
m("span", Oa, [
|
|
3796
3794
|
C(y.$slots, "above-table")
|
|
3797
3795
|
]),
|
|
3798
|
-
k(c(
|
|
3796
|
+
k(c(Ye), j({
|
|
3799
3797
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3800
3798
|
}, { ...a, ...y.$attrs }, {
|
|
3801
3799
|
pt: r.value,
|
|
@@ -3803,24 +3801,24 @@ const ka = {
|
|
|
3803
3801
|
rows: y.paginator ? l.value : void 0,
|
|
3804
3802
|
"data-cy": "tree-table",
|
|
3805
3803
|
"onUpdate:filters": A,
|
|
3806
|
-
onSort:
|
|
3804
|
+
onSort: F,
|
|
3807
3805
|
onPage: f,
|
|
3808
3806
|
onNodeExpand: O[2] || (O[2] = () => w()),
|
|
3809
3807
|
showHeaders: "",
|
|
3810
3808
|
first: n.value
|
|
3811
3809
|
}), ie({
|
|
3812
3810
|
empty: g(() => [
|
|
3813
|
-
m("div",
|
|
3814
|
-
m("h5",
|
|
3811
|
+
m("div", Aa, [
|
|
3812
|
+
m("h5", La, $(y.emptyMessage ?? "No items Found."), 1)
|
|
3815
3813
|
])
|
|
3816
3814
|
]),
|
|
3817
3815
|
header: g(() => [
|
|
3818
3816
|
m("div", {
|
|
3819
3817
|
class: P(a.loading ? "opacity-50" : "")
|
|
3820
3818
|
}, [
|
|
3821
|
-
m("div",
|
|
3822
|
-
m("div",
|
|
3823
|
-
y.paginator && !y.legacyPaginationFooter ? (d(), b("span",
|
|
3819
|
+
m("div", Na, [
|
|
3820
|
+
m("div", Ua, [
|
|
3821
|
+
y.paginator && !y.legacyPaginationFooter ? (d(), b("span", Ea, [
|
|
3824
3822
|
k(he, {
|
|
3825
3823
|
total: u.value,
|
|
3826
3824
|
"page-sizes": o.value,
|
|
@@ -3832,23 +3830,22 @@ const ka = {
|
|
|
3832
3830
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3833
3831
|
])) : T("", !0)
|
|
3834
3832
|
]),
|
|
3835
|
-
m("div",
|
|
3833
|
+
m("div", qa, [
|
|
3836
3834
|
y.showClearButton ? (d(), x(c(q), {
|
|
3837
3835
|
key: 0,
|
|
3838
3836
|
outlined: "",
|
|
3839
|
-
onClick:
|
|
3837
|
+
onClick: S,
|
|
3840
3838
|
"data-cy": "clear-all"
|
|
3841
3839
|
}, {
|
|
3842
3840
|
default: g(() => [
|
|
3843
|
-
k(c(
|
|
3841
|
+
k(c(_), {
|
|
3844
3842
|
icon: "bi:funnel-fill",
|
|
3845
3843
|
width: "24",
|
|
3846
3844
|
height: "24"
|
|
3847
3845
|
}),
|
|
3848
|
-
O[3] || (O[3] = V(" Clear "))
|
|
3846
|
+
O[3] || (O[3] = V(" Clear ", -1))
|
|
3849
3847
|
]),
|
|
3850
|
-
_: 1
|
|
3851
|
-
__: [3]
|
|
3848
|
+
_: 1
|
|
3852
3849
|
})) : T("", !0),
|
|
3853
3850
|
C(y.$slots, "column-customiser")
|
|
3854
3851
|
])
|
|
@@ -3862,8 +3859,8 @@ const ka = {
|
|
|
3862
3859
|
}, [
|
|
3863
3860
|
U(y.$slots, (R, ve) => ({
|
|
3864
3861
|
name: ve,
|
|
3865
|
-
fn: g((
|
|
3866
|
-
C(y.$slots, ve, G(Y(
|
|
3862
|
+
fn: g(($e) => [
|
|
3863
|
+
C(y.$slots, ve, G(Y($e || {})))
|
|
3867
3864
|
])
|
|
3868
3865
|
})),
|
|
3869
3866
|
y.legacyPaginationFooter ? {
|
|
@@ -3898,7 +3895,7 @@ const ka = {
|
|
|
3898
3895
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3899
3896
|
]));
|
|
3900
3897
|
}
|
|
3901
|
-
}),
|
|
3898
|
+
}), Ra = { class: "d-flex position-relative" }, Ha = { class: "d-flex w-100" }, zo = /* @__PURE__ */ z({
|
|
3902
3899
|
__name: "ForgeFilterHeader",
|
|
3903
3900
|
props: /* @__PURE__ */ E({
|
|
3904
3901
|
dataType: {},
|
|
@@ -3929,7 +3926,7 @@ const ka = {
|
|
|
3929
3926
|
};
|
|
3930
3927
|
return (o, l) => {
|
|
3931
3928
|
const n = fe, s = q;
|
|
3932
|
-
return d(), b("div",
|
|
3929
|
+
return d(), b("div", Ra, [
|
|
3933
3930
|
o.dataType === "numeric" ? (d(), x(n, j({
|
|
3934
3931
|
key: 0,
|
|
3935
3932
|
modelValue: t.value,
|
|
@@ -3952,7 +3949,7 @@ const ka = {
|
|
|
3952
3949
|
"option-label": o.optionLabel
|
|
3953
3950
|
}), {
|
|
3954
3951
|
value: g(({ value: p, placeholder: u }) => [
|
|
3955
|
-
m("div",
|
|
3952
|
+
m("div", Ha, [
|
|
3956
3953
|
m("span", {
|
|
3957
3954
|
class: P({ "filter-placeholder": p === null })
|
|
3958
3955
|
}, $(a(p, u)), 3),
|
|
@@ -3963,7 +3960,7 @@ const ka = {
|
|
|
3963
3960
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3964
3961
|
}, {
|
|
3965
3962
|
default: g(() => [
|
|
3966
|
-
k(c(
|
|
3963
|
+
k(c(_), {
|
|
3967
3964
|
icon: "bi:x",
|
|
3968
3965
|
width: "1rem",
|
|
3969
3966
|
height: "1rem",
|
|
@@ -3998,7 +3995,7 @@ const ka = {
|
|
|
3998
3995
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3999
3996
|
}, {
|
|
4000
3997
|
default: g(() => [
|
|
4001
|
-
k(c(
|
|
3998
|
+
k(c(_), {
|
|
4002
3999
|
icon: "bi:x",
|
|
4003
4000
|
width: "1rem",
|
|
4004
4001
|
height: "1rem",
|
|
@@ -5149,20 +5146,24 @@ class we {
|
|
|
5149
5146
|
}
|
|
5150
5147
|
}
|
|
5151
5148
|
Z = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
|
|
5152
|
-
const
|
|
5149
|
+
const Wa = new we(ue, ce)._freeze();
|
|
5153
5150
|
function ke(e, t, a, i) {
|
|
5154
5151
|
const o = t.flatMap((l) => l.file);
|
|
5155
5152
|
return t = t.map((l) => ({ ...l, status: l.status == "Duplicate" ? "Not Uploaded" : l.status })), e.forEach((l) => {
|
|
5156
5153
|
const n = o.findIndex((p) => p.name === l.name);
|
|
5157
5154
|
let s = "Not Uploaded";
|
|
5158
|
-
n === -1
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5155
|
+
if (n === -1) {
|
|
5156
|
+
const p = Ka(l);
|
|
5157
|
+
!p || !a.includes(p) ? s = "InvalidFileType" : l.size <= i || (s = "InvalidFileSize"), t.unshift({
|
|
5158
|
+
file: l,
|
|
5159
|
+
status: s,
|
|
5160
|
+
blobFileName: null
|
|
5161
|
+
});
|
|
5162
|
+
} else
|
|
5163
|
+
t[n].status = "Duplicate";
|
|
5163
5164
|
}), t;
|
|
5164
5165
|
}
|
|
5165
|
-
async function
|
|
5166
|
+
async function Ga(e, t) {
|
|
5166
5167
|
if (e === "Uploaded" && t !== null)
|
|
5167
5168
|
try {
|
|
5168
5169
|
await new ge(t).delete();
|
|
@@ -5185,20 +5186,23 @@ function me(e, t = !0, a = 1) {
|
|
|
5185
5186
|
while (Math.round(Math.abs(e) * n) / n >= i && l < o.length - 1);
|
|
5186
5187
|
return e.toFixed(a) + " " + o[l];
|
|
5187
5188
|
}
|
|
5188
|
-
function
|
|
5189
|
+
function Ya(e) {
|
|
5189
5190
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
5190
5191
|
}
|
|
5191
|
-
function
|
|
5192
|
+
function Ja(e) {
|
|
5192
5193
|
return URL.createObjectURL(e);
|
|
5193
5194
|
}
|
|
5194
|
-
function
|
|
5195
|
+
function Ka(e) {
|
|
5196
|
+
return e.type ? e.type : Be().getType(e.name);
|
|
5197
|
+
}
|
|
5198
|
+
function Be() {
|
|
5195
5199
|
const e = new we(ue, ce);
|
|
5196
5200
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
5197
5201
|
}
|
|
5198
|
-
const
|
|
5202
|
+
const Za = { class: "d-flex justify-content-between" }, Xa = ["accept", "disabled", "multiple"], Qa = {
|
|
5199
5203
|
class: "text-break accepted-file-types-container",
|
|
5200
5204
|
id: "accepted-file-types-overlay"
|
|
5201
|
-
},
|
|
5205
|
+
}, ei = /* @__PURE__ */ z({
|
|
5202
5206
|
__name: "UploadButton",
|
|
5203
5207
|
props: /* @__PURE__ */ E({
|
|
5204
5208
|
acceptedFileTypes: {},
|
|
@@ -5211,12 +5215,12 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5211
5215
|
}),
|
|
5212
5216
|
emits: ["update:modelValue"],
|
|
5213
5217
|
setup(e) {
|
|
5214
|
-
const t = L(e, "modelValue"), a =
|
|
5218
|
+
const t = L(e, "modelValue"), a = I(), i = (n) => a.value.toggle(n), o = M(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5215
5219
|
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
5216
5220
|
};
|
|
5217
5221
|
return (n, s) => {
|
|
5218
5222
|
const p = q;
|
|
5219
|
-
return d(), b("div",
|
|
5223
|
+
return d(), b("div", Za, [
|
|
5220
5224
|
C(n.$slots, "message"),
|
|
5221
5225
|
m("div", null, [
|
|
5222
5226
|
m("input", {
|
|
@@ -5227,20 +5231,20 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5227
5231
|
disabled: o.value,
|
|
5228
5232
|
multiple: n.maxFileInput > 1,
|
|
5229
5233
|
onInput: s[0] || (s[0] = (u) => l([...u.target.files]))
|
|
5230
|
-
}, null, 40,
|
|
5234
|
+
}, null, 40, Xa),
|
|
5231
5235
|
m("label", {
|
|
5232
5236
|
class: P([{ disabled: o.value }, "btn btn-primary"]),
|
|
5233
5237
|
id: "file-input-button",
|
|
5234
5238
|
for: "file-input"
|
|
5235
5239
|
}, [
|
|
5236
5240
|
C(n.$slots, "button-content", {}, () => [
|
|
5237
|
-
k(c(
|
|
5241
|
+
k(c(_), {
|
|
5238
5242
|
icon: "bi:upload",
|
|
5239
5243
|
class: "me-2",
|
|
5240
5244
|
height: "20px",
|
|
5241
5245
|
width: "20px"
|
|
5242
5246
|
}),
|
|
5243
|
-
s[1] || (s[1] = V(" Browse your computer "))
|
|
5247
|
+
s[1] || (s[1] = V(" Browse your computer ", -1))
|
|
5244
5248
|
])
|
|
5245
5249
|
], 2)
|
|
5246
5250
|
]),
|
|
@@ -5251,32 +5255,31 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5251
5255
|
id: "accepted-file-types",
|
|
5252
5256
|
onClick: i
|
|
5253
5257
|
}, {
|
|
5254
|
-
default: g(() => s[2] || (s[2] = [
|
|
5255
|
-
V("Accepted File Types")
|
|
5256
|
-
])),
|
|
5257
|
-
_: 1
|
|
5258
|
-
__: [2]
|
|
5258
|
+
default: g(() => [...s[2] || (s[2] = [
|
|
5259
|
+
V("Accepted File Types", -1)
|
|
5260
|
+
])]),
|
|
5261
|
+
_: 1
|
|
5259
5262
|
})) : T("", !0),
|
|
5260
5263
|
k(c(be), {
|
|
5261
5264
|
ref_key: "acceptedFilesOverlay",
|
|
5262
5265
|
ref: a
|
|
5263
5266
|
}, {
|
|
5264
5267
|
default: g(() => [
|
|
5265
|
-
m("div",
|
|
5268
|
+
m("div", Qa, $(n.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
5266
5269
|
]),
|
|
5267
5270
|
_: 1
|
|
5268
5271
|
}, 512)
|
|
5269
5272
|
]);
|
|
5270
5273
|
};
|
|
5271
5274
|
}
|
|
5272
|
-
}),
|
|
5275
|
+
}), ti = {
|
|
5273
5276
|
key: 0,
|
|
5274
5277
|
class: "py-4 px-3",
|
|
5275
5278
|
id: "placeholder-message"
|
|
5276
|
-
},
|
|
5279
|
+
}, ai = {
|
|
5277
5280
|
key: 1,
|
|
5278
5281
|
class: "d-flex flex-column"
|
|
5279
|
-
},
|
|
5282
|
+
}, ii = /* @__PURE__ */ z({
|
|
5280
5283
|
__name: "DragDropArea",
|
|
5281
5284
|
props: /* @__PURE__ */ E({
|
|
5282
5285
|
maxFileInput: {},
|
|
@@ -5288,7 +5291,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5288
5291
|
}),
|
|
5289
5292
|
emits: ["update:modelValue"],
|
|
5290
5293
|
setup(e) {
|
|
5291
|
-
const t = L(e, "modelValue"), a =
|
|
5294
|
+
const t = L(e, "modelValue"), a = I(!1), i = M(() => e.maxFileInput <= t.value.length), o = (l) => {
|
|
5292
5295
|
a.value = !1, l.dataTransfer.files.length > e.maxFileInput || i.value ? l.preventDefault() : t.value = ke([...l.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
|
|
5293
5296
|
};
|
|
5294
5297
|
return (l, n) => (d(), b("div", {
|
|
@@ -5298,20 +5301,20 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5298
5301
|
onDragover: n[1] || (n[1] = Q((s) => a.value = !0, ["prevent"])),
|
|
5299
5302
|
onDrop: Q(o, ["prevent"])
|
|
5300
5303
|
}, [
|
|
5301
|
-
t.value.length === 0 ? (d(), b("div",
|
|
5302
|
-
k(c(
|
|
5304
|
+
t.value.length === 0 ? (d(), b("div", ti, [
|
|
5305
|
+
k(c(_), {
|
|
5303
5306
|
icon: "bi:upload",
|
|
5304
5307
|
class: "me-2",
|
|
5305
5308
|
height: "20px",
|
|
5306
5309
|
width: "20px"
|
|
5307
5310
|
}),
|
|
5308
|
-
n[2] || (n[2] = V(" Drag and drop files here "))
|
|
5309
|
-
])) : (d(), b("div",
|
|
5311
|
+
n[2] || (n[2] = V(" Drag and drop files here ", -1))
|
|
5312
|
+
])) : (d(), b("div", ai, [
|
|
5310
5313
|
C(l.$slots, "default")
|
|
5311
5314
|
]))
|
|
5312
5315
|
], 34));
|
|
5313
5316
|
}
|
|
5314
|
-
}),
|
|
5317
|
+
}), oi = { class: "d-flex align-items-center me-2" }, li = /* @__PURE__ */ z({
|
|
5315
5318
|
__name: "UploadStatus",
|
|
5316
5319
|
props: {
|
|
5317
5320
|
fileSize: {},
|
|
@@ -5338,7 +5341,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5338
5341
|
});
|
|
5339
5342
|
return (o, l) => {
|
|
5340
5343
|
const n = pe;
|
|
5341
|
-
return d(), b("div",
|
|
5344
|
+
return d(), b("div", oi, [
|
|
5342
5345
|
t.uploadStatus === "Uploading" ? (d(), x(n, {
|
|
5343
5346
|
key: 0,
|
|
5344
5347
|
"in-line": ""
|
|
@@ -5357,16 +5360,16 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5357
5360
|
]);
|
|
5358
5361
|
};
|
|
5359
5362
|
}
|
|
5360
|
-
}),
|
|
5363
|
+
}), ni = ["data-cy"], si = { class: "ms-3 d-flex flex-column" }, ri = {
|
|
5361
5364
|
key: 1,
|
|
5362
5365
|
id: "file-name"
|
|
5363
|
-
},
|
|
5366
|
+
}, di = {
|
|
5364
5367
|
class: "text-black-50",
|
|
5365
5368
|
id: "file-type"
|
|
5366
|
-
},
|
|
5369
|
+
}, pi = {
|
|
5367
5370
|
class: "text-black-50",
|
|
5368
5371
|
id: "file-size"
|
|
5369
|
-
},
|
|
5372
|
+
}, ci = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, ui = /* @__PURE__ */ z({
|
|
5370
5373
|
__name: "FileInfo",
|
|
5371
5374
|
props: /* @__PURE__ */ E({
|
|
5372
5375
|
editableFileName: { type: Boolean },
|
|
@@ -5385,12 +5388,12 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5385
5388
|
}),
|
|
5386
5389
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5387
5390
|
setup(e, { emit: t }) {
|
|
5388
|
-
const a = L(e, "file"), i = L(e, "blobFileName"), o = L(e, "uploadStatus"), l = t, n =
|
|
5389
|
-
n.value != null && (
|
|
5390
|
-
},
|
|
5391
|
-
let f = n.value.split("."), B =
|
|
5391
|
+
const a = L(e, "file"), i = L(e, "blobFileName"), o = L(e, "uploadStatus"), l = t, n = I(a.value.name), s = I(""), p = I(0), u = I(), h = M(() => e.acceptedFileTypes.some(({ fileType: f }) => f === a.value.type)), r = M(() => a.value.size <= e.maxFileSize), w = M(() => a.value.type ? a.value.type : Be().getType(a.value.name)), v = () => {
|
|
5392
|
+
n.value != null && (S(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5393
|
+
}, S = () => {
|
|
5394
|
+
let f = n.value.split("."), B = Wa.getExtension(w.value), D = n.value.split(".").pop();
|
|
5392
5395
|
f.length === 1 ? D && D.length > 0 && (n.value = [n.value, B].join(".")) : f.length > 1 && D !== B && (n.value = n.value.replace(D, B));
|
|
5393
|
-
},
|
|
5396
|
+
}, F = async () => {
|
|
5394
5397
|
if (!h.value || !r.value) {
|
|
5395
5398
|
o.value = h.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5396
5399
|
return;
|
|
@@ -5421,10 +5424,10 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5421
5424
|
o.value = "Failed";
|
|
5422
5425
|
}
|
|
5423
5426
|
}, A = async () => {
|
|
5424
|
-
await
|
|
5427
|
+
await Ga(o.value, s.value), l("deleted", a.value);
|
|
5425
5428
|
};
|
|
5426
5429
|
return ne(() => {
|
|
5427
|
-
e.autoUploadToBlob && o.value != "Uploaded" &&
|
|
5430
|
+
e.autoUploadToBlob && o.value != "Uploaded" && F();
|
|
5428
5431
|
}), (f, B) => {
|
|
5429
5432
|
const D = q;
|
|
5430
5433
|
return d(), b("div", {
|
|
@@ -5432,15 +5435,15 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5432
5435
|
"data-cy": `file-info-${a.value.name}`
|
|
5433
5436
|
}, [
|
|
5434
5437
|
m("div", null, [
|
|
5435
|
-
c(
|
|
5438
|
+
c(Ya)(a.value.type) ? (d(), x(c(Je), {
|
|
5436
5439
|
key: 0,
|
|
5437
5440
|
id: "thumbnail-image",
|
|
5438
5441
|
"image-class": "image-file-thumbnail border",
|
|
5439
|
-
src: c(
|
|
5442
|
+
src: c(Ja)(a.value),
|
|
5440
5443
|
alt: a.value.name,
|
|
5441
5444
|
width: "75px",
|
|
5442
5445
|
preview: ""
|
|
5443
|
-
}, null, 8, ["src", "alt"])) : (d(), x(c(
|
|
5446
|
+
}, null, 8, ["src", "alt"])) : (d(), x(c(_), {
|
|
5444
5447
|
key: 1,
|
|
5445
5448
|
id: "file-earmark",
|
|
5446
5449
|
icon: "bi:file-earmark",
|
|
@@ -5448,9 +5451,9 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5448
5451
|
width: "75px"
|
|
5449
5452
|
}))
|
|
5450
5453
|
]),
|
|
5451
|
-
m("div",
|
|
5454
|
+
m("div", si, [
|
|
5452
5455
|
m("div", null, [
|
|
5453
|
-
f.editableFileName ? (d(), x(
|
|
5456
|
+
f.editableFileName ? (d(), x(Xt, {
|
|
5454
5457
|
key: 0,
|
|
5455
5458
|
id: "edit-file-name",
|
|
5456
5459
|
modelValue: n.value,
|
|
@@ -5458,13 +5461,13 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5458
5461
|
rules: f.customFileNameRules,
|
|
5459
5462
|
name: a.value.name,
|
|
5460
5463
|
"complete-action": v
|
|
5461
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span",
|
|
5464
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", ri, $(n.value), 1))
|
|
5462
5465
|
]),
|
|
5463
|
-
m("span",
|
|
5464
|
-
m("span",
|
|
5466
|
+
m("span", di, "File type: " + $(a.value.type.split("/").pop()), 1),
|
|
5467
|
+
m("span", pi, "File size: " + $(c(me)(a.value.size)), 1)
|
|
5465
5468
|
]),
|
|
5466
|
-
m("div",
|
|
5467
|
-
(d(), x(
|
|
5469
|
+
m("div", ci, [
|
|
5470
|
+
(d(), x(li, {
|
|
5468
5471
|
key: o.value,
|
|
5469
5472
|
"file-size": a.value.size,
|
|
5470
5473
|
"upload-status": o.value,
|
|
@@ -5474,10 +5477,10 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5474
5477
|
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (d(), x(D, {
|
|
5475
5478
|
key: 0,
|
|
5476
5479
|
link: "",
|
|
5477
|
-
onClick:
|
|
5480
|
+
onClick: F
|
|
5478
5481
|
}, {
|
|
5479
5482
|
default: g(() => [
|
|
5480
|
-
k(c(
|
|
5483
|
+
k(c(_), {
|
|
5481
5484
|
icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5482
5485
|
}, null, 8, ["icon"])
|
|
5483
5486
|
]),
|
|
@@ -5489,7 +5492,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5489
5492
|
onClick: B[1] || (B[1] = (y) => u.value.abort())
|
|
5490
5493
|
}, {
|
|
5491
5494
|
default: g(() => [
|
|
5492
|
-
k(c(
|
|
5495
|
+
k(c(_), { icon: "bi:x-circle-fill" })
|
|
5493
5496
|
]),
|
|
5494
5497
|
_: 1
|
|
5495
5498
|
})) : (d(), x(D, {
|
|
@@ -5499,27 +5502,27 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5499
5502
|
id: "delete-button"
|
|
5500
5503
|
}, {
|
|
5501
5504
|
default: g(() => [
|
|
5502
|
-
k(c(
|
|
5505
|
+
k(c(_), { icon: "bi:trash" })
|
|
5503
5506
|
]),
|
|
5504
5507
|
_: 1
|
|
5505
5508
|
}))
|
|
5506
5509
|
])
|
|
5507
|
-
], 8,
|
|
5510
|
+
], 8, ni);
|
|
5508
5511
|
};
|
|
5509
5512
|
}
|
|
5510
|
-
}),
|
|
5513
|
+
}), mi = { class: "d-flex justify-content-end mt-1 gap-1" }, vi = { id: "max-file-size" }, fi = { id: "max-file-input" }, gi = /* @__PURE__ */ z({
|
|
5511
5514
|
__name: "FileInputInfo",
|
|
5512
5515
|
props: {
|
|
5513
5516
|
maxFileSize: {},
|
|
5514
5517
|
maxFileInput: {}
|
|
5515
5518
|
},
|
|
5516
5519
|
setup(e) {
|
|
5517
|
-
return (t, a) => (d(), b("div",
|
|
5518
|
-
m("div",
|
|
5519
|
-
m("div",
|
|
5520
|
+
return (t, a) => (d(), b("div", mi, [
|
|
5521
|
+
m("div", vi, "Max file size: " + $(c(me)(t.maxFileSize)), 1),
|
|
5522
|
+
m("div", fi, "| Max file count: " + $(t.maxFileInput), 1)
|
|
5520
5523
|
]));
|
|
5521
5524
|
}
|
|
5522
|
-
}),
|
|
5525
|
+
}), bi = { "data-cy": "file-uploader" }, yi = { key: 1 }, Po = /* @__PURE__ */ z({
|
|
5523
5526
|
__name: "ForgeFileUploader",
|
|
5524
5527
|
props: /* @__PURE__ */ E({
|
|
5525
5528
|
acceptedFileTypes: {},
|
|
@@ -5544,7 +5547,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5544
5547
|
const a = e, i = (o) => {
|
|
5545
5548
|
t.value = t.value.filter((l) => l.file != o);
|
|
5546
5549
|
};
|
|
5547
|
-
return (o, l) => (d(), b("div",
|
|
5550
|
+
return (o, l) => (d(), b("div", bi, [
|
|
5548
5551
|
t.value.length == o.maxFileInput && a.maxFileWarning != null ? (d(), x(re, {
|
|
5549
5552
|
key: 0,
|
|
5550
5553
|
id: "max-files-alert",
|
|
@@ -5555,12 +5558,12 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5555
5558
|
]),
|
|
5556
5559
|
_: 1
|
|
5557
5560
|
})) : T("", !0),
|
|
5558
|
-
k(
|
|
5561
|
+
k(ei, j(a, {
|
|
5559
5562
|
modelValue: t.value,
|
|
5560
5563
|
"onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n)
|
|
5561
5564
|
}), null, 16, ["modelValue"]),
|
|
5562
|
-
o.showDragDropArea ? (d(), b("div",
|
|
5563
|
-
k(
|
|
5565
|
+
o.showDragDropArea ? (d(), b("div", yi, [
|
|
5566
|
+
k(ii, {
|
|
5564
5567
|
"max-file-input": a.maxFileInput,
|
|
5565
5568
|
"max-file-size": a.maxFileSize,
|
|
5566
5569
|
"accepted-file-types": a.acceptedFileTypes,
|
|
@@ -5569,7 +5572,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5569
5572
|
}, {
|
|
5570
5573
|
default: g(() => [
|
|
5571
5574
|
(d(!0), b(N, null, U(t.value, ({ file: n }, s) => (d(), b("div", null, [
|
|
5572
|
-
(d(), x(
|
|
5575
|
+
(d(), x(ui, j({
|
|
5573
5576
|
key: n.name,
|
|
5574
5577
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5575
5578
|
file: t.value[s].file,
|
|
@@ -5583,14 +5586,14 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5583
5586
|
]),
|
|
5584
5587
|
_: 1
|
|
5585
5588
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5586
|
-
k(
|
|
5589
|
+
k(gi, {
|
|
5587
5590
|
"max-file-size": a.maxFileSize,
|
|
5588
5591
|
"max-file-input": o.maxFileInput
|
|
5589
5592
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5590
5593
|
])) : T("", !0)
|
|
5591
5594
|
]));
|
|
5592
5595
|
}
|
|
5593
|
-
}),
|
|
5596
|
+
}), xi = { class: "d-flex" }, hi = { class: "me-3" }, wi = { class: "ms-2" }, ki = { class: "d-flex flex-column w-100" }, jo = /* @__PURE__ */ z({
|
|
5594
5597
|
__name: "ForgeColumnCustomiser",
|
|
5595
5598
|
props: {
|
|
5596
5599
|
modelValue: { required: !0 },
|
|
@@ -5598,7 +5601,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5598
5601
|
},
|
|
5599
5602
|
emits: ["update:modelValue"],
|
|
5600
5603
|
setup(e) {
|
|
5601
|
-
const t = L(e, "modelValue"), a =
|
|
5604
|
+
const t = L(e, "modelValue"), a = I(), i = I(!1), o = (l) => {
|
|
5602
5605
|
a.value.toggle(l);
|
|
5603
5606
|
};
|
|
5604
5607
|
return (l, n) => (d(), b(N, null, [
|
|
@@ -5607,13 +5610,13 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5607
5610
|
class: "ms-2"
|
|
5608
5611
|
}, {
|
|
5609
5612
|
default: g(() => [
|
|
5610
|
-
m("div",
|
|
5611
|
-
m("div",
|
|
5612
|
-
k(c(
|
|
5613
|
+
m("div", xi, [
|
|
5614
|
+
m("div", hi, [
|
|
5615
|
+
k(c(_), { icon: "bi:layout-three-columns" })
|
|
5613
5616
|
]),
|
|
5614
5617
|
V(" Columns (" + $(t.value.filter((s) => s.selected).length ?? 0) + "/" + $(t.value.length ?? 0) + ") ", 1),
|
|
5615
|
-
m("div",
|
|
5616
|
-
k(c(
|
|
5618
|
+
m("div", wi, [
|
|
5619
|
+
k(c(_), {
|
|
5617
5620
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5618
5621
|
}, null, 8, ["icon"])
|
|
5619
5622
|
])
|
|
@@ -5629,7 +5632,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5629
5632
|
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5630
5633
|
}, {
|
|
5631
5634
|
default: g(() => [
|
|
5632
|
-
m("div",
|
|
5635
|
+
m("div", ki, [
|
|
5633
5636
|
(d(!0), b(N, null, U(t.value, (s, p) => (d(), b("div", {
|
|
5634
5637
|
class: P(["d-flex cursor-pointer", {
|
|
5635
5638
|
"border-top": p !== 0,
|
|
@@ -5653,19 +5656,19 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5653
5656
|
}, 512)
|
|
5654
5657
|
], 64));
|
|
5655
5658
|
}
|
|
5656
|
-
}),
|
|
5659
|
+
}), Mo = /* @__PURE__ */ z({
|
|
5657
5660
|
__name: "ForgePanel",
|
|
5658
5661
|
setup(e) {
|
|
5659
5662
|
return (t, a) => {
|
|
5660
|
-
const i =
|
|
5663
|
+
const i = Ke;
|
|
5661
5664
|
return d(), x(i, G(Y({ ...t.$attrs })), ie({
|
|
5662
5665
|
toggleicon: g(({ collapsed: o }) => [
|
|
5663
|
-
o ? (d(), x(c(
|
|
5666
|
+
o ? (d(), x(c(_), {
|
|
5664
5667
|
key: 0,
|
|
5665
5668
|
"data-cy": "message-icon",
|
|
5666
5669
|
icon: "bi:chevron-down"
|
|
5667
5670
|
})) : T("", !0),
|
|
5668
|
-
o ? T("", !0) : (d(), x(c(
|
|
5671
|
+
o ? T("", !0) : (d(), x(c(_), {
|
|
5669
5672
|
key: 1,
|
|
5670
5673
|
"data-cy": "message-icon",
|
|
5671
5674
|
icon: "bi:chevron-up"
|
|
@@ -5682,7 +5685,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5682
5685
|
]), 1040);
|
|
5683
5686
|
};
|
|
5684
5687
|
}
|
|
5685
|
-
}),
|
|
5688
|
+
}), Bi = /* @__PURE__ */ z({
|
|
5686
5689
|
__name: "ForgeToggleButton",
|
|
5687
5690
|
props: {
|
|
5688
5691
|
severity: { default: "primary" }
|
|
@@ -5709,15 +5712,15 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5709
5712
|
]
|
|
5710
5713
|
})
|
|
5711
5714
|
}));
|
|
5712
|
-
return (i, o) => (d(), x(c(
|
|
5715
|
+
return (i, o) => (d(), x(c(Ze), j({ ...i.$attrs, ...t }, {
|
|
5713
5716
|
severity: t.severity,
|
|
5714
5717
|
pt: a.value
|
|
5715
5718
|
}), null, 16, ["severity", "pt"]));
|
|
5716
5719
|
}
|
|
5717
|
-
}),
|
|
5720
|
+
}), $i = {
|
|
5718
5721
|
class: "btn-group",
|
|
5719
5722
|
"data-cy": "forge-select-button"
|
|
5720
|
-
},
|
|
5723
|
+
}, Io = /* @__PURE__ */ z({
|
|
5721
5724
|
__name: "ForgeSelectButton",
|
|
5722
5725
|
props: /* @__PURE__ */ E({
|
|
5723
5726
|
options: {},
|
|
@@ -5747,8 +5750,8 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5747
5750
|
} else
|
|
5748
5751
|
a.value = a.value === l.value && t.allowEmpty ? null : l.value;
|
|
5749
5752
|
};
|
|
5750
|
-
return (l, n) => (d(), b("div",
|
|
5751
|
-
(d(!0), b(N, null, U(l.options, (s, p) => (d(), x(
|
|
5753
|
+
return (l, n) => (d(), b("div", $i, [
|
|
5754
|
+
(d(!0), b(N, null, U(l.options, (s, p) => (d(), x(Bi, {
|
|
5752
5755
|
key: p,
|
|
5753
5756
|
onLabel: s.label,
|
|
5754
5757
|
offLabel: s.label,
|
|
@@ -5761,7 +5764,7 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5761
5764
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5762
5765
|
]));
|
|
5763
5766
|
}
|
|
5764
|
-
}),
|
|
5767
|
+
}), _o = /* @__PURE__ */ z({
|
|
5765
5768
|
__name: "ForgeConfirmPopup",
|
|
5766
5769
|
setup(e) {
|
|
5767
5770
|
const t = M(() => ({
|
|
@@ -5775,20 +5778,20 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5775
5778
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5776
5779
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5777
5780
|
}));
|
|
5778
|
-
return (a, i) => (d(), x(c(
|
|
5781
|
+
return (a, i) => (d(), x(c(Xe), j({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5779
5782
|
default: g(() => [
|
|
5780
5783
|
(d(!0), b(N, null, U(a.$slots, (o, l) => C(a.$slots, l, { slot: l })), 256))
|
|
5781
5784
|
]),
|
|
5782
5785
|
_: 3
|
|
5783
5786
|
}, 16, ["pt"]));
|
|
5784
5787
|
}
|
|
5785
|
-
}),
|
|
5788
|
+
}), Fi = {
|
|
5786
5789
|
key: 0,
|
|
5787
5790
|
class: "mb-1"
|
|
5788
|
-
},
|
|
5791
|
+
}, Si = {
|
|
5789
5792
|
key: 0,
|
|
5790
5793
|
class: "mb-1"
|
|
5791
|
-
},
|
|
5794
|
+
}, Vo = /* @__PURE__ */ z({
|
|
5792
5795
|
__name: "ForgePickList",
|
|
5793
5796
|
props: /* @__PURE__ */ E({
|
|
5794
5797
|
filterBy: {},
|
|
@@ -5831,12 +5834,12 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5831
5834
|
}),
|
|
5832
5835
|
emits: ["update:modelValue", "update:targetList", "update:sourceList"],
|
|
5833
5836
|
setup(e) {
|
|
5834
|
-
const t = e, a = L(e, "modelValue"), i = L(e, "targetList"), o = L(e, "sourceList"), l =
|
|
5835
|
-
const { items:
|
|
5836
|
-
i.value.push(...
|
|
5837
|
+
const t = e, a = L(e, "modelValue"), i = L(e, "targetList"), o = L(e, "sourceList"), l = I(null), n = I(null), s = (v) => {
|
|
5838
|
+
const { items: S } = v;
|
|
5839
|
+
i.value.push(...S), o.value = o.value.filter((F) => !S.includes(F));
|
|
5837
5840
|
}, p = (v) => {
|
|
5838
|
-
const { items:
|
|
5839
|
-
o.value.push(...
|
|
5841
|
+
const { items: S } = v;
|
|
5842
|
+
o.value.push(...S), i.value = i.value.filter((F) => !S.includes(F));
|
|
5840
5843
|
}, u = () => {
|
|
5841
5844
|
o.value = [.../* @__PURE__ */ new Set([...o.value, ...a.value[1]])], i.value = i.value.filter((v) => !a.value[1].includes(v));
|
|
5842
5845
|
}, h = () => {
|
|
@@ -5848,42 +5851,42 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5848
5851
|
w();
|
|
5849
5852
|
});
|
|
5850
5853
|
const r = () => {
|
|
5851
|
-
var
|
|
5852
|
-
const v = t.filterBy,
|
|
5854
|
+
var F;
|
|
5855
|
+
const v = t.filterBy, S = l.value ? o.value.filter((A) => {
|
|
5853
5856
|
var f;
|
|
5854
5857
|
return A[v].toLowerCase().includes((f = l.value) == null ? void 0 : f.toLowerCase());
|
|
5855
5858
|
}) : [...o.value];
|
|
5856
|
-
(
|
|
5859
|
+
(F = a.value) == null || F.splice(0, 1, S);
|
|
5857
5860
|
}, w = () => {
|
|
5858
|
-
var
|
|
5859
|
-
const v = t.filterBy,
|
|
5861
|
+
var F;
|
|
5862
|
+
const v = t.filterBy, S = n.value ? i.value.filter((A) => {
|
|
5860
5863
|
var f;
|
|
5861
5864
|
return A[v].toLowerCase().includes((f = n.value) == null ? void 0 : f.toLowerCase());
|
|
5862
5865
|
}) : [...i.value];
|
|
5863
|
-
(
|
|
5866
|
+
(F = a.value) == null || F.splice(1, 1, S);
|
|
5864
5867
|
};
|
|
5865
5868
|
return W(
|
|
5866
5869
|
() => a.value,
|
|
5867
5870
|
(v) => {
|
|
5868
|
-
var
|
|
5869
|
-
v && (i.value = v[1].length > 0 ? [...v[1]] : [], o.value = v[0].length > 0 ? [...v[0]] : [], (
|
|
5871
|
+
var S, F;
|
|
5872
|
+
v && (i.value = v[1].length > 0 ? [...v[1]] : [], o.value = v[0].length > 0 ? [...v[0]] : [], (S = a.value) == null || S.splice(0, 1, o.value), (F = a.value) == null || F.splice(1, 1, i.value));
|
|
5870
5873
|
},
|
|
5871
5874
|
{ once: !0 }
|
|
5872
|
-
), (v,
|
|
5875
|
+
), (v, S) => (d(), x(c(Qe), j({
|
|
5873
5876
|
modelValue: a.value,
|
|
5874
|
-
"onUpdate:modelValue":
|
|
5877
|
+
"onUpdate:modelValue": S[2] || (S[2] = (F) => a.value = F)
|
|
5875
5878
|
}, { ...v.$attrs, ...t }, {
|
|
5876
5879
|
onMoveAllToSource: u,
|
|
5877
5880
|
onMoveAllToTarget: h,
|
|
5878
|
-
onMoveToTarget:
|
|
5879
|
-
onMoveToSource:
|
|
5881
|
+
onMoveToTarget: S[3] || (S[3] = (F) => s(F)),
|
|
5882
|
+
onMoveToSource: S[4] || (S[4] = (F) => p(F))
|
|
5880
5883
|
}), {
|
|
5881
5884
|
sourceheader: g(() => [
|
|
5882
|
-
v.sourceTitle ? (d(), b("div",
|
|
5885
|
+
v.sourceTitle ? (d(), b("div", Fi, $(v.sourceTitle), 1)) : T("", !0),
|
|
5883
5886
|
k(c(ae), {
|
|
5884
5887
|
modelValue: l.value,
|
|
5885
5888
|
"onUpdate:modelValue": [
|
|
5886
|
-
|
|
5889
|
+
S[0] || (S[0] = (F) => l.value = F),
|
|
5887
5890
|
r
|
|
5888
5891
|
],
|
|
5889
5892
|
class: "mb-2",
|
|
@@ -5892,11 +5895,11 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5892
5895
|
}, null, 8, ["modelValue"])
|
|
5893
5896
|
]),
|
|
5894
5897
|
targetheader: g(() => [
|
|
5895
|
-
v.targetTitle ? (d(), b("div",
|
|
5898
|
+
v.targetTitle ? (d(), b("div", Si, $(v.targetTitle), 1)) : T("", !0),
|
|
5896
5899
|
k(c(ae), {
|
|
5897
5900
|
modelValue: n.value,
|
|
5898
5901
|
"onUpdate:modelValue": [
|
|
5899
|
-
|
|
5902
|
+
S[1] || (S[1] = (F) => n.value = F),
|
|
5900
5903
|
w
|
|
5901
5904
|
],
|
|
5902
5905
|
class: "mb-2",
|
|
@@ -5904,13 +5907,13 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5904
5907
|
"data-cy": "target-search"
|
|
5905
5908
|
}, null, 8, ["modelValue"])
|
|
5906
5909
|
]),
|
|
5907
|
-
option: g(({ option:
|
|
5908
|
-
V($(
|
|
5910
|
+
option: g(({ option: F }) => [
|
|
5911
|
+
V($(F[v.filterBy]), 1)
|
|
5909
5912
|
]),
|
|
5910
5913
|
_: 1
|
|
5911
5914
|
}, 16, ["modelValue"]));
|
|
5912
5915
|
}
|
|
5913
|
-
}),
|
|
5916
|
+
}), Do = () => ({
|
|
5914
5917
|
type: "component",
|
|
5915
5918
|
resolve: (e) => {
|
|
5916
5919
|
if (e.startsWith("Forge"))
|
|
@@ -5921,40 +5924,40 @@ const Ja = { class: "d-flex justify-content-between" }, Ka = ["accept", "disable
|
|
|
5921
5924
|
}
|
|
5922
5925
|
});
|
|
5923
5926
|
export {
|
|
5924
|
-
|
|
5925
|
-
|
|
5927
|
+
ro as Bootstrap_PT,
|
|
5928
|
+
po as ForgeActionButton,
|
|
5926
5929
|
re as ForgeAlert,
|
|
5927
|
-
|
|
5930
|
+
co as ForgeAutoComplete,
|
|
5928
5931
|
ye as ForgeCheckbox,
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
+
wo as ForgeChip,
|
|
5933
|
+
jo as ForgeColumnCustomiser,
|
|
5934
|
+
_o as ForgeConfirmPopup,
|
|
5932
5935
|
xe as ForgeDatepicker,
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5936
|
+
Po as ForgeFileUploader,
|
|
5937
|
+
zo as ForgeFilterHeader,
|
|
5938
|
+
xo as ForgeForm,
|
|
5939
|
+
ho as ForgeFormField,
|
|
5940
|
+
Xt as ForgeInlineEditor,
|
|
5941
|
+
uo as ForgeLink,
|
|
5939
5942
|
pe as ForgeLoader,
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5943
|
+
fo as ForgeModal,
|
|
5944
|
+
oa as ForgeMultiSelectPreview,
|
|
5945
|
+
go as ForgeNavbar,
|
|
5946
|
+
bo as ForgePageHeader,
|
|
5947
|
+
Mo as ForgePanel,
|
|
5948
|
+
Vo as ForgePickList,
|
|
5949
|
+
ko as ForgeProgressBar,
|
|
5950
|
+
yo as ForgeRemainingCharacters,
|
|
5951
|
+
Do as ForgeResolver,
|
|
5952
|
+
Bo as ForgeScratchpad,
|
|
5953
|
+
Io as ForgeSelectButton,
|
|
5954
|
+
$o as ForgeStatWidget,
|
|
5955
|
+
Fo as ForgeStepper,
|
|
5956
|
+
Co as ForgeTable,
|
|
5957
|
+
So as ForgeTile,
|
|
5958
|
+
Bi as ForgeToggleButton,
|
|
5959
|
+
To as ForgeTreeTable,
|
|
5960
|
+
vo as convertToMultiSelectOption,
|
|
5961
|
+
mo as enumToMultiSelectList,
|
|
5962
|
+
Et as parseError
|
|
5960
5963
|
};
|