@3squared/forge-ui-3 2.20.0 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/forge-ui-3.css +2 -2
- package/dist/esm/forge-ui-3.js +1214 -1037
- package/dist/index.d.ts +2 -1
- package/dist/src/components/ForgeDatepicker.vue.d.ts +2 -2
- package/dist/src/components/ForgeFormField.vue.d.ts +2 -2
- package/dist/src/components/ForgeInlineEditor.vue.d.ts +1 -1
- package/dist/src/components/ForgeModal.vue.d.ts +1 -1
- package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +1 -1
- package/dist/src/components/ForgePickList.vue.d.ts +16 -0
- package/dist/src/components/ForgeSelectButton.vue.d.ts +1 -1
- package/dist/src/components/ForgeStatWidget.vue.d.ts +1 -1
- package/dist/src/passthroughs/Column.pt.d.ts +3 -1
- package/dist/src/passthroughs/Listbox.pt.d.ts +23 -0
- package/dist/src/passthroughs/PickList.pt.d.ts +6 -0
- package/dist/tests/component/pick-list/pick-list.cy.d.ts +1 -0
- package/package.json +14 -14
- package/src/styles/main.scss +5 -1
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { Icon as
|
|
1
|
+
import $e from "primevue/message";
|
|
2
|
+
import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as f, renderSlot as F, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as M, createElementBlock as b, Fragment as U, mergeProps as _, renderList as L, mergeModels as E, useModel as N, computed as j, withDirectives as K, createTextVNode as V, toDisplayString as $, vShow as X, createSlots as ie, onMounted as ne, withKeys as le, isRef as Fe, normalizeStyle as Se, withModifiers as Q, watch as W, h as Ce, useTemplateRef as Te } from "vue";
|
|
3
|
+
import { Icon as I } from "@iconify/vue";
|
|
4
4
|
import q from "primevue/button";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useField as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { vOnClickOutside as
|
|
5
|
+
import ze from "primevue/toast";
|
|
6
|
+
import Pe from "primevue/autocomplete";
|
|
7
|
+
import _e from "primevue/checkbox";
|
|
8
|
+
import { useField as se } from "vee-validate";
|
|
9
|
+
import je from "primevue/progressspinner";
|
|
10
|
+
import Me from "primevue/dialog";
|
|
11
|
+
import ae from "primevue/inputtext";
|
|
12
|
+
import { vOnClickOutside as Ie } from "@vueuse/components";
|
|
13
13
|
import Ve from "primevue/menubar";
|
|
14
14
|
import de from "primevue/multiselect";
|
|
15
15
|
import De from "primevue/datepicker";
|
|
16
|
-
import
|
|
16
|
+
import oe from "primevue/select";
|
|
17
17
|
import Oe from "primevue/inputmask";
|
|
18
|
-
import
|
|
18
|
+
import Ae from "primevue/textarea";
|
|
19
19
|
import fe from "primevue/inputnumber";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
20
|
+
import Ne from "primevue/chip";
|
|
21
|
+
import Ue from "primevue/progressbar";
|
|
22
|
+
import Le from "primevue/step";
|
|
23
|
+
import Ee from "primevue/stepper";
|
|
24
|
+
import qe from "primevue/steplist";
|
|
25
25
|
import Re from "primevue/steppanel";
|
|
26
26
|
import He from "primevue/steppanels";
|
|
27
27
|
import We from "primevue/datatable";
|
|
@@ -32,7 +32,8 @@ import Ye from "primevue/image";
|
|
|
32
32
|
import Je from "primevue/panel";
|
|
33
33
|
import { ToggleButton as Ke } from "primevue";
|
|
34
34
|
import Ze from "primevue/confirmpopup";
|
|
35
|
-
|
|
35
|
+
import Xe from "primevue/picklist";
|
|
36
|
+
const Qe = {
|
|
36
37
|
autoComplete: {
|
|
37
38
|
root: ({ props: e }) => ({
|
|
38
39
|
class: [
|
|
@@ -61,7 +62,7 @@ const Xe = {
|
|
|
61
62
|
}),
|
|
62
63
|
emptyMessage: "mx-3 my-2"
|
|
63
64
|
}
|
|
64
|
-
},
|
|
65
|
+
}, et = {
|
|
65
66
|
button: {
|
|
66
67
|
root: ({ props: e }) => ({
|
|
67
68
|
class: [
|
|
@@ -171,7 +172,7 @@ const Xe = {
|
|
|
171
172
|
})
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
|
-
},
|
|
175
|
+
}, tt = {
|
|
175
176
|
checkbox: {
|
|
176
177
|
root: () => ({
|
|
177
178
|
class: ["form-check"]
|
|
@@ -186,7 +187,7 @@ const Xe = {
|
|
|
186
187
|
]
|
|
187
188
|
})
|
|
188
189
|
}
|
|
189
|
-
},
|
|
190
|
+
}, at = {
|
|
190
191
|
select: {
|
|
191
192
|
root: ({ props: e }) => ({
|
|
192
193
|
class: [
|
|
@@ -236,18 +237,20 @@ const Xe = {
|
|
|
236
237
|
]
|
|
237
238
|
})
|
|
238
239
|
}
|
|
239
|
-
},
|
|
240
|
+
}, it = {
|
|
240
241
|
column: {
|
|
241
|
-
pcSortBadge:
|
|
242
|
+
pcSortBadge: {
|
|
243
|
+
root: "ms-2 my-auto cursor-pointer"
|
|
244
|
+
},
|
|
242
245
|
headerCell: (e) => {
|
|
243
|
-
var t, a, i,
|
|
246
|
+
var t, a, i, o, l, n;
|
|
244
247
|
return {
|
|
245
248
|
class: [
|
|
246
249
|
"align-top",
|
|
247
250
|
{
|
|
248
251
|
"cursor-move": (t = e.props) == null ? void 0 : t.reorderableColumns,
|
|
249
|
-
"position-sticky": ((a = e.column) == null ? void 0 : a.context.frozen) !== void 0 || ((i = e.column) == null ? void 0 : i.context.frozen) || ((
|
|
250
|
-
"overflow-hidden position-relative bg-clip-padding": (
|
|
252
|
+
"position-sticky": ((a = e.column) == null ? void 0 : a.context.frozen) !== void 0 || ((i = e.column) == null ? void 0 : i.context.frozen) || ((o = e.column) == null ? void 0 : o.context.frozen) === "",
|
|
253
|
+
"overflow-hidden position-relative bg-clip-padding": (l = e.column) == null ? void 0 : l.context.resizable,
|
|
251
254
|
"align-bottom": ((n = e.column.props) == null ? void 0 : n.rowspan) > 1
|
|
252
255
|
}
|
|
253
256
|
]
|
|
@@ -352,7 +355,7 @@ const Xe = {
|
|
|
352
355
|
]
|
|
353
356
|
})
|
|
354
357
|
}
|
|
355
|
-
},
|
|
358
|
+
}, ot = {
|
|
356
359
|
inputtext: {
|
|
357
360
|
root: (e) => {
|
|
358
361
|
var t, a;
|
|
@@ -375,12 +378,12 @@ const Xe = {
|
|
|
375
378
|
]
|
|
376
379
|
})
|
|
377
380
|
}
|
|
378
|
-
},
|
|
381
|
+
}, nt = {
|
|
379
382
|
toggleSwitch: {
|
|
380
383
|
root: "form-check form-switch",
|
|
381
384
|
input: "form-check-input"
|
|
382
385
|
}
|
|
383
|
-
},
|
|
386
|
+
}, st = {
|
|
384
387
|
tag: {
|
|
385
388
|
root: ({ props: e }) => ({
|
|
386
389
|
class: [
|
|
@@ -401,7 +404,7 @@ const Xe = {
|
|
|
401
404
|
]
|
|
402
405
|
})
|
|
403
406
|
}
|
|
404
|
-
},
|
|
407
|
+
}, rt = {
|
|
405
408
|
textarea: {
|
|
406
409
|
root: () => ({
|
|
407
410
|
class: [
|
|
@@ -409,13 +412,13 @@ const Xe = {
|
|
|
409
412
|
]
|
|
410
413
|
})
|
|
411
414
|
}
|
|
412
|
-
},
|
|
415
|
+
}, dt = {
|
|
413
416
|
chip: {
|
|
414
417
|
root: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 p-1",
|
|
415
418
|
label: "px-2 fs-6 fw-400",
|
|
416
419
|
removeIcon: "ms-auto my-auto"
|
|
417
420
|
}
|
|
418
|
-
},
|
|
421
|
+
}, pt = {
|
|
419
422
|
dialog: {
|
|
420
423
|
root: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
|
|
421
424
|
class: ["modal modal-dialog modal-content h-auto m-0 modal-sm"]
|
|
@@ -474,7 +477,7 @@ const Xe = {
|
|
|
474
477
|
]
|
|
475
478
|
})
|
|
476
479
|
}
|
|
477
|
-
},
|
|
480
|
+
}, ct = {
|
|
478
481
|
popover: {
|
|
479
482
|
root: (e) => ({
|
|
480
483
|
class: [
|
|
@@ -488,7 +491,7 @@ const Xe = {
|
|
|
488
491
|
content: "d-flex position-relative",
|
|
489
492
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
490
493
|
}
|
|
491
|
-
},
|
|
494
|
+
}, ut = {
|
|
492
495
|
message: {
|
|
493
496
|
root: ({ props: e }) => ({
|
|
494
497
|
class: [
|
|
@@ -518,7 +521,7 @@ const Xe = {
|
|
|
518
521
|
class: ["px-0 ms-2 btn d-flex"]
|
|
519
522
|
})
|
|
520
523
|
}
|
|
521
|
-
},
|
|
524
|
+
}, mt = {
|
|
522
525
|
// More PT options defined in ForgeStepper.
|
|
523
526
|
stepList: {
|
|
524
527
|
root: "d-flex mb-2 w-100"
|
|
@@ -546,7 +549,7 @@ const Xe = {
|
|
|
546
549
|
}),
|
|
547
550
|
separator: "border border-1 separator"
|
|
548
551
|
}
|
|
549
|
-
},
|
|
552
|
+
}, vt = {
|
|
550
553
|
tabList: {
|
|
551
554
|
root: () => ({
|
|
552
555
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -571,7 +574,7 @@ const Xe = {
|
|
|
571
574
|
class: ["p-2"]
|
|
572
575
|
})
|
|
573
576
|
}
|
|
574
|
-
},
|
|
577
|
+
}, ft = {
|
|
575
578
|
// More PassThrough options defined in ForgeDatepicker.
|
|
576
579
|
datepicker: {
|
|
577
580
|
root: "d-inline-flex relative w-100",
|
|
@@ -672,7 +675,7 @@ const Xe = {
|
|
|
672
675
|
pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
|
|
673
676
|
pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
|
|
674
677
|
}
|
|
675
|
-
},
|
|
678
|
+
}, gt = {
|
|
676
679
|
multiselect: {
|
|
677
680
|
root: ({ props: e }) => ({
|
|
678
681
|
class: [
|
|
@@ -700,7 +703,7 @@ const Xe = {
|
|
|
700
703
|
class: "d-none"
|
|
701
704
|
})
|
|
702
705
|
}
|
|
703
|
-
},
|
|
706
|
+
}, bt = {
|
|
704
707
|
// More PassThrough options in component file.
|
|
705
708
|
progressbar: {
|
|
706
709
|
root: () => ({
|
|
@@ -710,7 +713,7 @@ const Xe = {
|
|
|
710
713
|
class: ["text-white m-1"]
|
|
711
714
|
})
|
|
712
715
|
}
|
|
713
|
-
},
|
|
716
|
+
}, yt = {
|
|
714
717
|
panel: {
|
|
715
718
|
root: "card w-100",
|
|
716
719
|
header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
@@ -723,7 +726,7 @@ const Xe = {
|
|
|
723
726
|
},
|
|
724
727
|
contentContainer: "mt-2 mx-4 mb-4"
|
|
725
728
|
}
|
|
726
|
-
},
|
|
729
|
+
}, xt = {
|
|
727
730
|
// More PT options can be found in the ForgeTable file.
|
|
728
731
|
dataTable: {
|
|
729
732
|
root: "position-relative",
|
|
@@ -754,7 +757,7 @@ const Xe = {
|
|
|
754
757
|
mask: () => ({
|
|
755
758
|
class: "table-overlay table-spinner"
|
|
756
759
|
}),
|
|
757
|
-
rowGroupHeaderCell: "
|
|
760
|
+
rowGroupHeaderCell: "border",
|
|
758
761
|
rowGroupHeader: "border-top border-bottom",
|
|
759
762
|
rowToggleButton: "btn",
|
|
760
763
|
pcPaginator: {
|
|
@@ -797,7 +800,7 @@ const Xe = {
|
|
|
797
800
|
]
|
|
798
801
|
})
|
|
799
802
|
}
|
|
800
|
-
},
|
|
803
|
+
}, ht = {
|
|
801
804
|
badge: {
|
|
802
805
|
root: ({ props: e }) => ({
|
|
803
806
|
class: [
|
|
@@ -819,7 +822,7 @@ const Xe = {
|
|
|
819
822
|
]
|
|
820
823
|
})
|
|
821
824
|
}
|
|
822
|
-
},
|
|
825
|
+
}, wt = {
|
|
823
826
|
// More PassThrough options in component file.
|
|
824
827
|
menubar: {
|
|
825
828
|
rootList: ({ instance: e }) => ({
|
|
@@ -900,7 +903,7 @@ const Xe = {
|
|
|
900
903
|
]
|
|
901
904
|
})
|
|
902
905
|
}
|
|
903
|
-
},
|
|
906
|
+
}, kt = {
|
|
904
907
|
tooltip: {
|
|
905
908
|
root: ({ context: e }) => ({
|
|
906
909
|
class: [
|
|
@@ -922,7 +925,7 @@ const Xe = {
|
|
|
922
925
|
class: ["tooltip-inner"]
|
|
923
926
|
}
|
|
924
927
|
}
|
|
925
|
-
},
|
|
928
|
+
}, Bt = {
|
|
926
929
|
selectButton: {
|
|
927
930
|
root: () => ({
|
|
928
931
|
class: ["btn-group"]
|
|
@@ -999,7 +1002,7 @@ const Xe = {
|
|
|
999
1002
|
]
|
|
1000
1003
|
})
|
|
1001
1004
|
}
|
|
1002
|
-
},
|
|
1005
|
+
}, St = {
|
|
1003
1006
|
card: {
|
|
1004
1007
|
root: () => ({
|
|
1005
1008
|
class: ["card"]
|
|
@@ -1023,11 +1026,11 @@ const Xe = {
|
|
|
1023
1026
|
class: ["card-header"]
|
|
1024
1027
|
})
|
|
1025
1028
|
}
|
|
1026
|
-
},
|
|
1029
|
+
}, Ct = {
|
|
1027
1030
|
divider: {
|
|
1028
1031
|
root: "border-bottom w-100 m-1"
|
|
1029
1032
|
}
|
|
1030
|
-
},
|
|
1033
|
+
}, Tt = {
|
|
1031
1034
|
image: {
|
|
1032
1035
|
root: "position-relative d-inline-block",
|
|
1033
1036
|
previewMask: "preview-button",
|
|
@@ -1061,7 +1064,7 @@ const Xe = {
|
|
|
1061
1064
|
class: ["ps-1"]
|
|
1062
1065
|
}),
|
|
1063
1066
|
messageIcon: ({ props: e }) => {
|
|
1064
|
-
var t, a, i,
|
|
1067
|
+
var t, a, i, o, l;
|
|
1065
1068
|
return {
|
|
1066
1069
|
class: [
|
|
1067
1070
|
"toast-icon",
|
|
@@ -1069,14 +1072,14 @@ const Xe = {
|
|
|
1069
1072
|
"text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
|
|
1070
1073
|
"text-success": ((a = e.message) == null ? void 0 : a.severity) === "success",
|
|
1071
1074
|
"text-success-alternate": ((i = e.message) == null ? void 0 : i.severity) === "success-alternate",
|
|
1072
|
-
"text-danger": ((
|
|
1073
|
-
"text-warning": ((
|
|
1075
|
+
"text-danger": ((o = e.message) == null ? void 0 : o.severity) === "error",
|
|
1076
|
+
"text-warning": ((l = e.message) == null ? void 0 : l.severity) === "warn"
|
|
1074
1077
|
}
|
|
1075
1078
|
]
|
|
1076
1079
|
};
|
|
1077
1080
|
}
|
|
1078
1081
|
}
|
|
1079
|
-
},
|
|
1082
|
+
}, Pt = {
|
|
1080
1083
|
tree: {
|
|
1081
1084
|
node: "m-1",
|
|
1082
1085
|
nodeToggleButton: ({ context: e }) => ({
|
|
@@ -1182,7 +1185,7 @@ const Xe = {
|
|
|
1182
1185
|
]
|
|
1183
1186
|
})
|
|
1184
1187
|
}
|
|
1185
|
-
},
|
|
1188
|
+
}, Mt = {
|
|
1186
1189
|
accordionPanel: {
|
|
1187
1190
|
root: "card my-2"
|
|
1188
1191
|
},
|
|
@@ -1200,7 +1203,7 @@ const Xe = {
|
|
|
1200
1203
|
accordionContent: {
|
|
1201
1204
|
root: "mt-2 mx-4 mb-4"
|
|
1202
1205
|
}
|
|
1203
|
-
},
|
|
1206
|
+
}, It = {
|
|
1204
1207
|
// More PT options can be found in the ForgeTable file.
|
|
1205
1208
|
treetable: {
|
|
1206
1209
|
root: "position-relative",
|
|
@@ -1221,46 +1224,104 @@ const Xe = {
|
|
|
1221
1224
|
class: "table-overlay table-spinner"
|
|
1222
1225
|
})
|
|
1223
1226
|
}
|
|
1224
|
-
},
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
+
}, Vt = {
|
|
1228
|
+
picklist: {
|
|
1229
|
+
root: " d-flex gap-3",
|
|
1230
|
+
pcMoveAllToSourceButton: { root: "btn btn-sm btn-outline-primary focus-ring " },
|
|
1231
|
+
pcMoveAllToTargetButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
|
|
1232
|
+
pcMoveToTargetButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
|
|
1233
|
+
pcMoveToSourceButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
|
|
1234
|
+
pcSourceMoveBottomButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
|
|
1235
|
+
pcSourceMoveDownButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
|
|
1236
|
+
pcSourceMoveUpButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
|
|
1237
|
+
pcSourceMoveTopButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
|
|
1238
|
+
pcTargetMoveBottomButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
|
|
1239
|
+
pcTargetMoveDownButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
|
|
1240
|
+
pcTargetMoveTopButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
|
|
1241
|
+
pcTargetMoveUpButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
|
|
1242
|
+
sourceControls: "d-flex flex-column gap-1",
|
|
1243
|
+
transferControls: "d-flex flex-column gap-1",
|
|
1244
|
+
targetControls: "d-flex flex-column gap-1",
|
|
1245
|
+
pcListbox: {
|
|
1246
|
+
root: "",
|
|
1247
|
+
list: "list-unstyled list-group list-group-flush",
|
|
1248
|
+
option: ({ context: e }) => ({
|
|
1249
|
+
class: [
|
|
1250
|
+
"list-group-item d-flex cursor-pointer ",
|
|
1251
|
+
{
|
|
1252
|
+
disabled: e.disabled,
|
|
1253
|
+
active: e.selected
|
|
1254
|
+
}
|
|
1255
|
+
]
|
|
1256
|
+
}),
|
|
1257
|
+
listContainer: "overflow-y-auto border rounded ",
|
|
1258
|
+
emptyMessage: "px-3 py-2"
|
|
1259
|
+
},
|
|
1260
|
+
sourceListContainer: " h-100 flex-1",
|
|
1261
|
+
targetListContainer: "h-100 flex-1"
|
|
1262
|
+
},
|
|
1263
|
+
listbox: {}
|
|
1264
|
+
}, Dt = {
|
|
1265
|
+
listbox: {
|
|
1266
|
+
root: "border rounded",
|
|
1267
|
+
list: "list-unstyled list-group list-group-flush",
|
|
1268
|
+
option: ({ context: e }) => ({
|
|
1269
|
+
class: [
|
|
1270
|
+
"list-group-item d-flex cursor-pointer align-items-center gap-1",
|
|
1271
|
+
{
|
|
1272
|
+
disabled: e.disabled,
|
|
1273
|
+
active: e.selected
|
|
1274
|
+
}
|
|
1275
|
+
]
|
|
1276
|
+
}),
|
|
1277
|
+
listContainer: "overflow-y-auto",
|
|
1278
|
+
emptyMessage: "px-3 py-2",
|
|
1279
|
+
pcFilterContainer: { root: "d-flex w-100 cursor-pointer" },
|
|
1280
|
+
filterIcon: "d-none",
|
|
1281
|
+
pcFilter: { root: "form-control form-control-sm mx-2 mt-2 mb-1" }
|
|
1282
|
+
}
|
|
1283
|
+
}, lo = {
|
|
1227
1284
|
...Qe,
|
|
1228
|
-
...
|
|
1285
|
+
...ht,
|
|
1229
1286
|
...et,
|
|
1230
|
-
...rt,
|
|
1231
|
-
...at,
|
|
1232
|
-
...vt,
|
|
1233
|
-
...dt,
|
|
1234
1287
|
...St,
|
|
1235
1288
|
...tt,
|
|
1236
|
-
...
|
|
1289
|
+
...dt,
|
|
1237
1290
|
...it,
|
|
1238
|
-
...lt,
|
|
1239
|
-
...ot,
|
|
1240
|
-
...ct,
|
|
1241
1291
|
...ft,
|
|
1242
|
-
...ht,
|
|
1243
1292
|
...pt,
|
|
1293
|
+
...Ct,
|
|
1294
|
+
...at,
|
|
1295
|
+
...Tt,
|
|
1296
|
+
...ot,
|
|
1297
|
+
...lt,
|
|
1298
|
+
...nt,
|
|
1299
|
+
...ut,
|
|
1244
1300
|
...gt,
|
|
1245
|
-
...
|
|
1301
|
+
...wt,
|
|
1302
|
+
...ct,
|
|
1246
1303
|
...bt,
|
|
1247
|
-
...
|
|
1248
|
-
...$t,
|
|
1249
|
-
...ut,
|
|
1304
|
+
...Ft,
|
|
1250
1305
|
...yt,
|
|
1251
|
-
...
|
|
1306
|
+
...Bt,
|
|
1307
|
+
...$t,
|
|
1252
1308
|
...mt,
|
|
1253
|
-
...
|
|
1309
|
+
...xt,
|
|
1254
1310
|
...st,
|
|
1311
|
+
...vt,
|
|
1312
|
+
...zt,
|
|
1313
|
+
...rt,
|
|
1255
1314
|
...jt,
|
|
1256
1315
|
..._t,
|
|
1257
|
-
...Tt,
|
|
1258
|
-
...It,
|
|
1259
1316
|
...Pt,
|
|
1317
|
+
...Mt,
|
|
1318
|
+
...It,
|
|
1319
|
+
...Vt,
|
|
1320
|
+
...Dt,
|
|
1260
1321
|
directives: {
|
|
1261
|
-
...
|
|
1322
|
+
...kt
|
|
1262
1323
|
}
|
|
1263
|
-
},
|
|
1324
|
+
}, re = /* @__PURE__ */ z({
|
|
1264
1325
|
__name: "ForgeAlert",
|
|
1265
1326
|
props: {
|
|
1266
1327
|
severity: { default: "primary" },
|
|
@@ -1280,32 +1341,32 @@ const Xe = {
|
|
|
1280
1341
|
setup(e) {
|
|
1281
1342
|
const t = e;
|
|
1282
1343
|
return (a, i) => {
|
|
1283
|
-
const
|
|
1284
|
-
return d(),
|
|
1285
|
-
icon:
|
|
1344
|
+
const o = $e;
|
|
1345
|
+
return d(), x(o, G(Y({ ...a.$attrs, ...t })), {
|
|
1346
|
+
icon: f(() => [
|
|
1286
1347
|
m("div", {
|
|
1287
|
-
class:
|
|
1348
|
+
class: P(t.icon ? "me-2 pe-1" : "")
|
|
1288
1349
|
}, [
|
|
1289
|
-
t.icon ? (d(),
|
|
1350
|
+
t.icon ? (d(), x(c(I), {
|
|
1290
1351
|
key: 0,
|
|
1291
1352
|
"data-cy": "message-icon",
|
|
1292
1353
|
icon: t.icon,
|
|
1293
|
-
class:
|
|
1354
|
+
class: P(`text-${t.severity}`),
|
|
1294
1355
|
height: 35
|
|
1295
|
-
}, null, 8, ["icon", "class"])) :
|
|
1356
|
+
}, null, 8, ["icon", "class"])) : T("", !0)
|
|
1296
1357
|
], 2)
|
|
1297
1358
|
]),
|
|
1298
|
-
closeicon:
|
|
1299
|
-
|
|
1359
|
+
closeicon: f(() => [
|
|
1360
|
+
k(c(I), { icon: "bi:x" })
|
|
1300
1361
|
]),
|
|
1301
|
-
default:
|
|
1362
|
+
default: f(() => [
|
|
1302
1363
|
F(a.$slots, "default")
|
|
1303
1364
|
]),
|
|
1304
1365
|
_: 3
|
|
1305
1366
|
}, 16);
|
|
1306
1367
|
};
|
|
1307
1368
|
}
|
|
1308
|
-
}),
|
|
1369
|
+
}), no = /* @__PURE__ */ z({
|
|
1309
1370
|
__name: "ForgeActionButton",
|
|
1310
1371
|
props: {
|
|
1311
1372
|
action: {},
|
|
@@ -1314,40 +1375,40 @@ const Xe = {
|
|
|
1314
1375
|
params: { default: Array }
|
|
1315
1376
|
},
|
|
1316
1377
|
setup(e) {
|
|
1317
|
-
const t =
|
|
1378
|
+
const t = M(!1), a = e, i = async () => {
|
|
1318
1379
|
t.value = !0;
|
|
1319
1380
|
try {
|
|
1320
1381
|
await a.action.apply(this, a.params);
|
|
1321
|
-
} catch (
|
|
1322
|
-
await a.errorAction.apply(this, a.errorParams ? [...a.errorParams,
|
|
1382
|
+
} catch (o) {
|
|
1383
|
+
await a.errorAction.apply(this, a.errorParams ? [...a.errorParams, o] : [o]);
|
|
1323
1384
|
}
|
|
1324
1385
|
t.value = !1;
|
|
1325
1386
|
};
|
|
1326
|
-
return (
|
|
1387
|
+
return (o, l) => {
|
|
1327
1388
|
const n = q;
|
|
1328
|
-
return d(),
|
|
1329
|
-
|
|
1389
|
+
return d(), b(U, null, [
|
|
1390
|
+
k(n, _({ ...a, ...o.$attrs }, {
|
|
1330
1391
|
loading: t.value,
|
|
1331
1392
|
disabled: t.value || a.disabled,
|
|
1332
1393
|
onClick: i
|
|
1333
1394
|
}), null, 16, ["loading", "disabled"]),
|
|
1334
|
-
|
|
1395
|
+
k(c(ze))
|
|
1335
1396
|
], 64);
|
|
1336
1397
|
};
|
|
1337
1398
|
}
|
|
1338
|
-
}),
|
|
1399
|
+
}), so = /* @__PURE__ */ z({
|
|
1339
1400
|
__name: "ForgeAutoComplete",
|
|
1340
1401
|
setup(e) {
|
|
1341
|
-
return (t, a) => (d(),
|
|
1342
|
-
default:
|
|
1343
|
-
(d(!0),
|
|
1402
|
+
return (t, a) => (d(), x(c(Pe), _({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1403
|
+
default: f(() => [
|
|
1404
|
+
(d(!0), b(U, null, L(t.$slots, (i, o) => F(t.$slots, o, { slot: o })), 256))
|
|
1344
1405
|
]),
|
|
1345
1406
|
_: 3
|
|
1346
1407
|
}, 16));
|
|
1347
1408
|
}
|
|
1348
|
-
}),
|
|
1409
|
+
}), Ot = { class: "d-flex flex-column" }, At = ["for"], ye = /* @__PURE__ */ z({
|
|
1349
1410
|
__name: "ForgeCheckbox",
|
|
1350
|
-
props: /* @__PURE__ */
|
|
1411
|
+
props: /* @__PURE__ */ E({
|
|
1351
1412
|
label: { default: "" },
|
|
1352
1413
|
value: {},
|
|
1353
1414
|
modelValue: {},
|
|
@@ -1380,59 +1441,59 @@ const Xe = {
|
|
|
1380
1441
|
}),
|
|
1381
1442
|
emits: ["update:modelValue"],
|
|
1382
1443
|
setup(e) {
|
|
1383
|
-
const t = e, a = N(e, "modelValue"), { handleChange: i, errors:
|
|
1444
|
+
const t = e, a = N(e, "modelValue"), { handleChange: i, errors: o, errorMessage: l } = se(
|
|
1384
1445
|
() => t.name ?? "",
|
|
1385
1446
|
void 0,
|
|
1386
1447
|
{
|
|
1387
1448
|
type: "checkbox",
|
|
1388
1449
|
checkedValue: a.value
|
|
1389
1450
|
}
|
|
1390
|
-
), n = (p,
|
|
1391
|
-
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(
|
|
1392
|
-
}, s =
|
|
1393
|
-
return (p,
|
|
1394
|
-
const
|
|
1395
|
-
return d(),
|
|
1451
|
+
), n = (p, u) => {
|
|
1452
|
+
(t.disabled || t.readonly) && p.preventDefault(), t.name ? i(u) : a.value = u;
|
|
1453
|
+
}, s = j(() => o.value.length > 0);
|
|
1454
|
+
return (p, u) => {
|
|
1455
|
+
const h = _e;
|
|
1456
|
+
return d(), b("div", Ot, [
|
|
1396
1457
|
m("div", _({
|
|
1397
1458
|
class: "d-flex",
|
|
1398
1459
|
"data-cy": "checkbox-container",
|
|
1399
|
-
onClick:
|
|
1460
|
+
onClick: u[2] || (u[2] = (r) => n(r, a.value))
|
|
1400
1461
|
}, { ...p.$attrs }), [
|
|
1401
|
-
|
|
1462
|
+
k(h, _({ ...t }, {
|
|
1402
1463
|
binary: "",
|
|
1403
1464
|
modelValue: a.value,
|
|
1404
|
-
"onUpdate:modelValue":
|
|
1465
|
+
"onUpdate:modelValue": u[0] || (u[0] = (r) => a.value = r),
|
|
1405
1466
|
"input-id": t.name,
|
|
1406
1467
|
"input-class": { "is-invalid": s.value },
|
|
1407
1468
|
class: t.disabled || t.readonly ? "" : "cursor-pointer"
|
|
1408
1469
|
}), null, 16, ["modelValue", "input-id", "input-class", "class"]),
|
|
1409
1470
|
m("label", {
|
|
1410
1471
|
for: t.name,
|
|
1411
|
-
onClick:
|
|
1412
|
-
class:
|
|
1472
|
+
onClick: u[1] || (u[1] = (r) => n(r, !a.value)),
|
|
1473
|
+
class: P([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1413
1474
|
}, [
|
|
1414
1475
|
F(p.$slots, "default", {}, () => [
|
|
1415
|
-
|
|
1476
|
+
V($(t.label), 1)
|
|
1416
1477
|
])
|
|
1417
|
-
], 10,
|
|
1478
|
+
], 10, At)
|
|
1418
1479
|
], 16),
|
|
1419
|
-
|
|
1480
|
+
K(m("small", {
|
|
1420
1481
|
"data-cy": "error",
|
|
1421
1482
|
class: "text-invalid"
|
|
1422
|
-
},
|
|
1483
|
+
}, $(c(l)), 513), [
|
|
1423
1484
|
[X, s.value]
|
|
1424
1485
|
])
|
|
1425
1486
|
]);
|
|
1426
1487
|
};
|
|
1427
1488
|
}
|
|
1428
|
-
}), pe = /* @__PURE__ */
|
|
1489
|
+
}), pe = /* @__PURE__ */ z({
|
|
1429
1490
|
__name: "ForgeLoader",
|
|
1430
1491
|
props: {
|
|
1431
1492
|
severity: { default: "primary" },
|
|
1432
1493
|
inLine: { type: Boolean, default: !1 }
|
|
1433
1494
|
},
|
|
1434
1495
|
setup(e) {
|
|
1435
|
-
const t = e, a =
|
|
1496
|
+
const t = e, a = j(() => ({
|
|
1436
1497
|
spin: () => ({
|
|
1437
1498
|
class: [
|
|
1438
1499
|
"spinner-border",
|
|
@@ -1442,20 +1503,20 @@ const Xe = {
|
|
|
1442
1503
|
]
|
|
1443
1504
|
})
|
|
1444
1505
|
}));
|
|
1445
|
-
return (i,
|
|
1446
|
-
const
|
|
1447
|
-
return d(),
|
|
1448
|
-
class:
|
|
1506
|
+
return (i, o) => {
|
|
1507
|
+
const l = je;
|
|
1508
|
+
return d(), b("div", {
|
|
1509
|
+
class: P(i.inLine ? "" : "forge-loader")
|
|
1449
1510
|
}, [
|
|
1450
|
-
|
|
1511
|
+
k(l, {
|
|
1451
1512
|
"animation-duration": ".75",
|
|
1452
|
-
class:
|
|
1513
|
+
class: P(`text-${t.severity === void 0 ? "primary" : t.severity}`),
|
|
1453
1514
|
pt: a.value
|
|
1454
1515
|
}, null, 8, ["class", "pt"])
|
|
1455
1516
|
], 2);
|
|
1456
1517
|
};
|
|
1457
1518
|
}
|
|
1458
|
-
}),
|
|
1519
|
+
}), Nt = ["href", "target"], ro = /* @__PURE__ */ z({
|
|
1459
1520
|
__name: "ForgeLink",
|
|
1460
1521
|
props: {
|
|
1461
1522
|
url: {},
|
|
@@ -1473,7 +1534,7 @@ const Xe = {
|
|
|
1473
1534
|
iconName: {}
|
|
1474
1535
|
},
|
|
1475
1536
|
setup(e) {
|
|
1476
|
-
const t =
|
|
1537
|
+
const t = j(() => ({
|
|
1477
1538
|
[`link-${e.severity}`]: e.severity,
|
|
1478
1539
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1479
1540
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1482,32 +1543,32 @@ const Xe = {
|
|
|
1482
1543
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1483
1544
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1484
1545
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1485
|
-
})), a =
|
|
1546
|
+
})), a = j(() => ({
|
|
1486
1547
|
"order-2": e.positionIconEnd,
|
|
1487
1548
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1488
1549
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
1489
1550
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1490
1551
|
"me-0": e.animateIconOnHover
|
|
1491
1552
|
}));
|
|
1492
|
-
return (i,
|
|
1553
|
+
return (i, o) => (d(), b("a", {
|
|
1493
1554
|
id: "link",
|
|
1494
|
-
class:
|
|
1555
|
+
class: P(["cursor-pointer d-flex text-break", t.value]),
|
|
1495
1556
|
href: i.url,
|
|
1496
1557
|
target: i.target
|
|
1497
1558
|
}, [
|
|
1498
1559
|
F(i.$slots, "default", {}, () => [
|
|
1499
|
-
i.iconName ? (d(),
|
|
1560
|
+
i.iconName ? (d(), x(c(I), {
|
|
1500
1561
|
key: 0,
|
|
1501
1562
|
id: "link-icon",
|
|
1502
1563
|
icon: i.iconName,
|
|
1503
|
-
class:
|
|
1504
|
-
}, null, 8, ["icon", "class"])) :
|
|
1505
|
-
|
|
1564
|
+
class: P(["bi my-auto", a.value])
|
|
1565
|
+
}, null, 8, ["icon", "class"])) : T("", !0),
|
|
1566
|
+
V(" " + $(i.label), 1)
|
|
1506
1567
|
])
|
|
1507
|
-
], 10,
|
|
1568
|
+
], 10, Nt));
|
|
1508
1569
|
}
|
|
1509
1570
|
});
|
|
1510
|
-
function
|
|
1571
|
+
function Ut(e) {
|
|
1511
1572
|
const t = {
|
|
1512
1573
|
errorMessage: "",
|
|
1513
1574
|
errorDetails: []
|
|
@@ -1518,22 +1579,22 @@ function Ot(e) {
|
|
|
1518
1579
|
}
|
|
1519
1580
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1520
1581
|
}
|
|
1521
|
-
function
|
|
1582
|
+
function po(e, t) {
|
|
1522
1583
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1523
1584
|
}
|
|
1524
|
-
function
|
|
1585
|
+
function co(e, t, a) {
|
|
1525
1586
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1526
1587
|
}
|
|
1527
|
-
const
|
|
1588
|
+
const Lt = {
|
|
1528
1589
|
key: 0,
|
|
1529
1590
|
class: "sticky-top py-3 error-bg",
|
|
1530
1591
|
"data-cy": "error-wrapper"
|
|
1531
|
-
},
|
|
1592
|
+
}, Et = { key: 0 }, qt = {
|
|
1532
1593
|
class: "d-flex w-100",
|
|
1533
1594
|
"data-cy": "footer"
|
|
1534
|
-
},
|
|
1595
|
+
}, uo = /* @__PURE__ */ z({
|
|
1535
1596
|
__name: "ForgeModal",
|
|
1536
|
-
props: /* @__PURE__ */
|
|
1597
|
+
props: /* @__PURE__ */ E({
|
|
1537
1598
|
cancelText: { default: "Cancel" },
|
|
1538
1599
|
submitText: { default: "Submit" },
|
|
1539
1600
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1593,7 +1654,7 @@ const Nt = {
|
|
|
1593
1654
|
}),
|
|
1594
1655
|
emits: ["update:visible", "update:error"],
|
|
1595
1656
|
setup(e, { expose: t }) {
|
|
1596
|
-
const a = N(e, "visible"), i =
|
|
1657
|
+
const a = N(e, "visible"), i = M(!1), o = e, l = M(!1), n = N(e, "error"), s = () => {
|
|
1597
1658
|
n.value = {
|
|
1598
1659
|
hasError: !1,
|
|
1599
1660
|
header: "",
|
|
@@ -1605,60 +1666,60 @@ const Nt = {
|
|
|
1605
1666
|
});
|
|
1606
1667
|
const p = () => {
|
|
1607
1668
|
i.value = !1;
|
|
1608
|
-
},
|
|
1669
|
+
}, u = () => {
|
|
1609
1670
|
i.value = !0;
|
|
1610
|
-
},
|
|
1611
|
-
|
|
1671
|
+
}, h = () => {
|
|
1672
|
+
o.resetErrorOnClose && s(), a.value = !1;
|
|
1612
1673
|
}, r = async () => {
|
|
1613
|
-
if (
|
|
1614
|
-
|
|
1674
|
+
if (o.onConfirm) {
|
|
1675
|
+
l.value = !0, n.value.hasError = !1;
|
|
1615
1676
|
try {
|
|
1616
|
-
const
|
|
1617
|
-
(
|
|
1618
|
-
} catch (
|
|
1677
|
+
const g = await o.onConfirm();
|
|
1678
|
+
(g || g == null) && h();
|
|
1679
|
+
} catch (g) {
|
|
1619
1680
|
n.value.hasError = !0;
|
|
1620
|
-
const
|
|
1621
|
-
n.value.header =
|
|
1681
|
+
const C = Ut(g);
|
|
1682
|
+
n.value.header = C.errorMessage, n.value.message = C.errorDetails;
|
|
1622
1683
|
}
|
|
1623
|
-
|
|
1684
|
+
l.value = !1;
|
|
1624
1685
|
}
|
|
1625
|
-
},
|
|
1686
|
+
}, w = j(() => ({
|
|
1626
1687
|
root: [
|
|
1627
1688
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1628
1689
|
{
|
|
1629
1690
|
"mw-100 vh-100 vw-100 top-0 start-0": i.value,
|
|
1630
|
-
"modal-sm":
|
|
1631
|
-
"modal-lg":
|
|
1632
|
-
"modal-xl":
|
|
1691
|
+
"modal-sm": o.size === "sm",
|
|
1692
|
+
"modal-lg": o.size === "lg",
|
|
1693
|
+
"modal-xl": o.size === "xl"
|
|
1633
1694
|
}
|
|
1634
1695
|
],
|
|
1635
1696
|
content: [
|
|
1636
1697
|
"modal-body overflow-y-auto",
|
|
1637
1698
|
{
|
|
1638
|
-
[`${
|
|
1639
|
-
[`${
|
|
1699
|
+
[`${o.maxHeight}`]: o.maxHeight && !i.value,
|
|
1700
|
+
[`${o.minHeight}`]: o.minHeight && !i.value,
|
|
1640
1701
|
"pt-0": n.value.hasError
|
|
1641
1702
|
}
|
|
1642
1703
|
]
|
|
1643
1704
|
}));
|
|
1644
|
-
return (
|
|
1645
|
-
const
|
|
1646
|
-
return d(),
|
|
1647
|
-
onMaximize:
|
|
1705
|
+
return (g, C) => {
|
|
1706
|
+
const S = q, A = Me;
|
|
1707
|
+
return d(), x(A, _(o, {
|
|
1708
|
+
onMaximize: u,
|
|
1648
1709
|
onUnmaximize: p,
|
|
1649
|
-
pt:
|
|
1650
|
-
}),
|
|
1651
|
-
closeicon:
|
|
1652
|
-
|
|
1710
|
+
pt: w.value
|
|
1711
|
+
}), ie({
|
|
1712
|
+
closeicon: f(() => [
|
|
1713
|
+
k(c(I), {
|
|
1653
1714
|
"data-cy": "close-icon",
|
|
1654
1715
|
icon: "bi:x-lg",
|
|
1655
1716
|
width: "18",
|
|
1656
1717
|
height: "18",
|
|
1657
|
-
onClick:
|
|
1718
|
+
onClick: h
|
|
1658
1719
|
})
|
|
1659
1720
|
]),
|
|
1660
|
-
maximizeicon:
|
|
1661
|
-
|
|
1721
|
+
maximizeicon: f(() => [
|
|
1722
|
+
k(c(I), {
|
|
1662
1723
|
"data-cy": "maximisable-icon",
|
|
1663
1724
|
icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1664
1725
|
width: "16",
|
|
@@ -1667,52 +1728,52 @@ const Nt = {
|
|
|
1667
1728
|
]),
|
|
1668
1729
|
_: 2
|
|
1669
1730
|
}, [
|
|
1670
|
-
|
|
1671
|
-
name:
|
|
1672
|
-
fn:
|
|
1673
|
-
|
|
1674
|
-
n.value.hasError ? (d(),
|
|
1675
|
-
|
|
1731
|
+
L(g.$slots, (v, B) => ({
|
|
1732
|
+
name: B,
|
|
1733
|
+
fn: f((D) => [
|
|
1734
|
+
B == "default" ? (d(), b(U, { key: 0 }, [
|
|
1735
|
+
n.value.hasError ? (d(), b("div", Lt, [
|
|
1736
|
+
k(re, {
|
|
1676
1737
|
severity: "danger",
|
|
1677
1738
|
"data-cy": "error",
|
|
1678
1739
|
class: "mb-0"
|
|
1679
1740
|
}, {
|
|
1680
|
-
default:
|
|
1741
|
+
default: f(() => [
|
|
1681
1742
|
m("p", {
|
|
1682
|
-
class:
|
|
1683
|
-
},
|
|
1684
|
-
n.value.message.length > 0 ? (d(),
|
|
1685
|
-
(d(!0),
|
|
1686
|
-
])) :
|
|
1743
|
+
class: P(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1744
|
+
}, $(n.value.header), 3),
|
|
1745
|
+
n.value.message.length > 0 ? (d(), b("ul", Et, [
|
|
1746
|
+
(d(!0), b(U, null, L(n.value.message, (y) => (d(), b("li", { key: y }, $(y), 1))), 128))
|
|
1747
|
+
])) : T("", !0)
|
|
1687
1748
|
]),
|
|
1688
1749
|
_: 1
|
|
1689
1750
|
})
|
|
1690
|
-
])) :
|
|
1691
|
-
], 64)) :
|
|
1692
|
-
F(
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
]) :
|
|
1751
|
+
])) : T("", !0)
|
|
1752
|
+
], 64)) : T("", !0),
|
|
1753
|
+
F(g.$slots, B, G(Y(D || {}))),
|
|
1754
|
+
l.value ? F(g.$slots, "loader", { key: 1 }, () => [
|
|
1755
|
+
k(pe, { "data-cy": "loader" })
|
|
1756
|
+
]) : T("", !0)
|
|
1696
1757
|
])
|
|
1697
1758
|
})),
|
|
1698
|
-
|
|
1759
|
+
g.showFooter ? {
|
|
1699
1760
|
name: "footer",
|
|
1700
|
-
fn:
|
|
1701
|
-
m("div",
|
|
1702
|
-
|
|
1703
|
-
label:
|
|
1704
|
-
class:
|
|
1761
|
+
fn: f(() => [
|
|
1762
|
+
m("div", qt, [
|
|
1763
|
+
k(S, {
|
|
1764
|
+
label: g.cancelText,
|
|
1765
|
+
class: P(o.cancelClass),
|
|
1705
1766
|
outlined: "",
|
|
1706
|
-
onClick:
|
|
1767
|
+
onClick: h,
|
|
1707
1768
|
id: "cancel-button",
|
|
1708
|
-
type:
|
|
1769
|
+
type: o.cancelButtonType
|
|
1709
1770
|
}, null, 8, ["label", "class", "type"]),
|
|
1710
|
-
|
|
1711
|
-
label:
|
|
1712
|
-
class:
|
|
1771
|
+
k(S, {
|
|
1772
|
+
label: g.submitText,
|
|
1773
|
+
class: P([o.submitClass, "ms-auto"]),
|
|
1713
1774
|
onClick: r,
|
|
1714
1775
|
id: "submit-button",
|
|
1715
|
-
type:
|
|
1776
|
+
type: o.submitButtonType
|
|
1716
1777
|
}, null, 8, ["label", "class", "type"])
|
|
1717
1778
|
])
|
|
1718
1779
|
]),
|
|
@@ -1721,9 +1782,9 @@ const Nt = {
|
|
|
1721
1782
|
]), 1040, ["pt"]);
|
|
1722
1783
|
};
|
|
1723
1784
|
}
|
|
1724
|
-
}),
|
|
1785
|
+
}), Rt = ["id"], Ht = { key: 0 }, Wt = { key: 0 }, Gt = { class: "d-flex justify-content-between align-items-center position-relative" }, Yt = { key: 1 }, Jt = { "data-cy": "readonly-value" }, Kt = /* @__PURE__ */ z({
|
|
1725
1786
|
__name: "ForgeInlineEditor",
|
|
1726
|
-
props: /* @__PURE__ */
|
|
1787
|
+
props: /* @__PURE__ */ E({
|
|
1727
1788
|
name: { default: "" },
|
|
1728
1789
|
completeAction: {},
|
|
1729
1790
|
errorAction: {},
|
|
@@ -1736,11 +1797,11 @@ const Nt = {
|
|
|
1736
1797
|
}),
|
|
1737
1798
|
emits: ["update:modelValue"],
|
|
1738
1799
|
setup(e) {
|
|
1739
|
-
const t = e, a = N(e, "modelValue"), i =
|
|
1740
|
-
var
|
|
1741
|
-
i.value = !i.value, (
|
|
1800
|
+
const t = e, a = N(e, "modelValue"), i = M(!1), o = M(), l = () => {
|
|
1801
|
+
var g;
|
|
1802
|
+
i.value = !i.value, (g = o.value) == null || g.focus();
|
|
1742
1803
|
}, n = async () => {
|
|
1743
|
-
if (
|
|
1804
|
+
if (w.value)
|
|
1744
1805
|
return !1;
|
|
1745
1806
|
if (a.value = r.value, t.completeAction)
|
|
1746
1807
|
try {
|
|
@@ -1754,46 +1815,46 @@ const Nt = {
|
|
|
1754
1815
|
i.value = !i.value;
|
|
1755
1816
|
}, p = () => {
|
|
1756
1817
|
r.value = null;
|
|
1757
|
-
}, { errorMessage:
|
|
1818
|
+
}, { errorMessage: u, errors: h, value: r } = se(() => t.name, void 0, {
|
|
1758
1819
|
initialValue: a.value
|
|
1759
1820
|
});
|
|
1760
|
-
|
|
1821
|
+
ne(() => {
|
|
1761
1822
|
r.value = a.value;
|
|
1762
1823
|
});
|
|
1763
|
-
const
|
|
1764
|
-
return (
|
|
1765
|
-
const
|
|
1766
|
-
return d(),
|
|
1824
|
+
const w = j(() => h.value.length > 0);
|
|
1825
|
+
return (g, C) => {
|
|
1826
|
+
const S = ae, A = q;
|
|
1827
|
+
return d(), b("div", {
|
|
1767
1828
|
id: t.name
|
|
1768
1829
|
}, [
|
|
1769
|
-
|
|
1770
|
-
F(
|
|
1771
|
-
m("span",
|
|
1830
|
+
g.readonly ? (d(), b("div", Yt, [
|
|
1831
|
+
F(g.$slots, "default", {}, () => [
|
|
1832
|
+
m("span", Jt, $(c(r)), 1)
|
|
1772
1833
|
])
|
|
1773
|
-
])) : (d(),
|
|
1774
|
-
i.value ? (d(),
|
|
1775
|
-
|
|
1776
|
-
F(
|
|
1777
|
-
class:
|
|
1834
|
+
])) : (d(), b("div", Ht, [
|
|
1835
|
+
i.value ? (d(), b("div", Wt, [
|
|
1836
|
+
K((d(), b("div", Gt, [
|
|
1837
|
+
F(g.$slots, "editor", {
|
|
1838
|
+
class: P({ "is-invalid": w.value }),
|
|
1778
1839
|
editFinished: n,
|
|
1779
1840
|
cancel: s,
|
|
1780
|
-
val:
|
|
1841
|
+
val: c(r)
|
|
1781
1842
|
}, () => [
|
|
1782
|
-
|
|
1783
|
-
modelValue:
|
|
1784
|
-
"onUpdate:modelValue":
|
|
1843
|
+
k(S, {
|
|
1844
|
+
modelValue: c(r),
|
|
1845
|
+
"onUpdate:modelValue": C[0] || (C[0] = (v) => Fe(r) ? r.value = v : null),
|
|
1785
1846
|
modelModifiers: { trim: !0 },
|
|
1786
1847
|
"data-cy": "input",
|
|
1787
1848
|
ref_key: "input",
|
|
1788
|
-
ref:
|
|
1789
|
-
class:
|
|
1849
|
+
ref: o,
|
|
1850
|
+
class: P({ "is-invalid": w.value }),
|
|
1790
1851
|
onKeydown: [
|
|
1791
1852
|
le(n, ["enter"]),
|
|
1792
1853
|
le(s, ["esc"])
|
|
1793
1854
|
]
|
|
1794
1855
|
}, null, 8, ["modelValue", "class"])
|
|
1795
1856
|
]),
|
|
1796
|
-
|
|
1857
|
+
k(c(I), {
|
|
1797
1858
|
icon: "bi:x-circle",
|
|
1798
1859
|
class: "mx-2 cursor-pointer",
|
|
1799
1860
|
onClick: p,
|
|
@@ -1801,46 +1862,46 @@ const Nt = {
|
|
|
1801
1862
|
"data-cy": "clear-icon"
|
|
1802
1863
|
})
|
|
1803
1864
|
])), [
|
|
1804
|
-
[
|
|
1865
|
+
[c(Ie), n]
|
|
1805
1866
|
])
|
|
1806
|
-
])) : (d(),
|
|
1867
|
+
])) : (d(), b("div", {
|
|
1807
1868
|
key: 1,
|
|
1808
1869
|
class: "d-flex text-muted",
|
|
1809
|
-
onClick:
|
|
1810
|
-
onFocus:
|
|
1870
|
+
onClick: l,
|
|
1871
|
+
onFocus: l
|
|
1811
1872
|
}, [
|
|
1812
|
-
F(
|
|
1873
|
+
F(g.$slots, "default", {}, () => [
|
|
1813
1874
|
m("div", {
|
|
1814
|
-
class:
|
|
1875
|
+
class: P(["pe-2 cursor-pointer", { "text-invalid": w.value }]),
|
|
1815
1876
|
"data-cy": "value"
|
|
1816
|
-
},
|
|
1877
|
+
}, $(c(r) ? c(r) : "Click to edit"), 3)
|
|
1817
1878
|
]),
|
|
1818
|
-
|
|
1879
|
+
k(A, {
|
|
1819
1880
|
link: "",
|
|
1820
1881
|
class: "p-0 m-0"
|
|
1821
1882
|
}, {
|
|
1822
|
-
default:
|
|
1823
|
-
|
|
1883
|
+
default: f(() => [
|
|
1884
|
+
k(c(I), {
|
|
1824
1885
|
icon: "bi:pencil",
|
|
1825
|
-
class:
|
|
1886
|
+
class: P(w.value ? "text-invalid" : "text-muted"),
|
|
1826
1887
|
"data-cy": "edit-icon",
|
|
1827
|
-
onKeydown: le(
|
|
1888
|
+
onKeydown: le(l, ["enter"])
|
|
1828
1889
|
}, null, 8, ["class"])
|
|
1829
1890
|
]),
|
|
1830
1891
|
_: 1
|
|
1831
1892
|
})
|
|
1832
1893
|
], 32))
|
|
1833
1894
|
])),
|
|
1834
|
-
|
|
1895
|
+
K(m("small", {
|
|
1835
1896
|
"data-cy": "error",
|
|
1836
1897
|
class: "text-invalid"
|
|
1837
|
-
},
|
|
1838
|
-
[X,
|
|
1898
|
+
}, $(c(u)), 513), [
|
|
1899
|
+
[X, w.value]
|
|
1839
1900
|
])
|
|
1840
|
-
], 8,
|
|
1901
|
+
], 8, Rt);
|
|
1841
1902
|
};
|
|
1842
1903
|
}
|
|
1843
|
-
}),
|
|
1904
|
+
}), Zt = ["href"], mo = /* @__PURE__ */ z({
|
|
1844
1905
|
__name: "ForgeNavbar",
|
|
1845
1906
|
props: {
|
|
1846
1907
|
severity: { default: "light" },
|
|
@@ -1857,7 +1918,7 @@ const Nt = {
|
|
|
1857
1918
|
unstyled: { type: Boolean }
|
|
1858
1919
|
},
|
|
1859
1920
|
setup(e) {
|
|
1860
|
-
const t = e, a =
|
|
1921
|
+
const t = e, a = j(() => ({
|
|
1861
1922
|
root: () => ({
|
|
1862
1923
|
class: [
|
|
1863
1924
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1885,26 +1946,26 @@ const Nt = {
|
|
|
1885
1946
|
]
|
|
1886
1947
|
})
|
|
1887
1948
|
}));
|
|
1888
|
-
return (i,
|
|
1949
|
+
return (i, o) => (d(), x(c(Ve), _({ ...t, ...i.$attrs }, {
|
|
1889
1950
|
pt: a.value,
|
|
1890
1951
|
"data-cy": "navbar"
|
|
1891
|
-
}),
|
|
1892
|
-
start:
|
|
1952
|
+
}), ie({
|
|
1953
|
+
start: f(() => [
|
|
1893
1954
|
m("a", {
|
|
1894
1955
|
href: i.logoUrl,
|
|
1895
1956
|
class: "navbar-brand ms-3",
|
|
1896
1957
|
"data-cy": "logo"
|
|
1897
1958
|
}, [
|
|
1898
1959
|
F(i.$slots, "logo", {}, () => [
|
|
1899
|
-
|
|
1960
|
+
o[0] || (o[0] = V(" Logo "))
|
|
1900
1961
|
])
|
|
1901
|
-
], 8,
|
|
1962
|
+
], 8, Zt)
|
|
1902
1963
|
]),
|
|
1903
|
-
buttonicon:
|
|
1964
|
+
buttonicon: f(() => [
|
|
1904
1965
|
F(i.$slots, "buttonIcon", {}, () => [
|
|
1905
|
-
|
|
1966
|
+
k(c(I), {
|
|
1906
1967
|
icon: "bi:list",
|
|
1907
|
-
class:
|
|
1968
|
+
class: P(t.severity === "light" ? "text-black" : "text-white"),
|
|
1908
1969
|
height: "24",
|
|
1909
1970
|
"data-cy": "burger-icon"
|
|
1910
1971
|
}, null, 8, ["class"])
|
|
@@ -1912,24 +1973,24 @@ const Nt = {
|
|
|
1912
1973
|
]),
|
|
1913
1974
|
_: 2
|
|
1914
1975
|
}, [
|
|
1915
|
-
|
|
1976
|
+
L(i.$slots, (l, n) => ({
|
|
1916
1977
|
name: n,
|
|
1917
|
-
fn:
|
|
1918
|
-
F(i.$slots, n,
|
|
1978
|
+
fn: f((s) => [
|
|
1979
|
+
F(i.$slots, n, G(Y(s)))
|
|
1919
1980
|
])
|
|
1920
1981
|
}))
|
|
1921
1982
|
]), 1040, ["pt"]));
|
|
1922
1983
|
}
|
|
1923
|
-
}),
|
|
1984
|
+
}), Xt = { class: "border alternating-item-list" }, Qt = {
|
|
1924
1985
|
key: 0,
|
|
1925
1986
|
class: "p-2 border-top border-bottom",
|
|
1926
1987
|
"data-cy": "title"
|
|
1927
|
-
},
|
|
1988
|
+
}, ea = { class: "d-inline-block" }, ta = {
|
|
1928
1989
|
key: 1,
|
|
1929
1990
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1930
|
-
},
|
|
1991
|
+
}, aa = /* @__PURE__ */ z({
|
|
1931
1992
|
__name: "ForgeMultiSelectPreview",
|
|
1932
|
-
props: /* @__PURE__ */
|
|
1993
|
+
props: /* @__PURE__ */ E({
|
|
1933
1994
|
title: { default: "Selected Items" },
|
|
1934
1995
|
orientation: { default: "row" },
|
|
1935
1996
|
height: { default: "200px" },
|
|
@@ -1943,98 +2004,98 @@ const Nt = {
|
|
|
1943
2004
|
}),
|
|
1944
2005
|
emits: ["update:modelValue"],
|
|
1945
2006
|
setup(e) {
|
|
1946
|
-
const t = e, a = N(e, "modelValue"), i = (
|
|
1947
|
-
a.value = a.value.filter((
|
|
2007
|
+
const t = e, a = N(e, "modelValue"), i = (o) => {
|
|
2008
|
+
a.value = a.value.filter((l) => l.id !== o);
|
|
1948
2009
|
};
|
|
1949
|
-
return (
|
|
2010
|
+
return (o, l) => {
|
|
1950
2011
|
const n = de, s = q;
|
|
1951
|
-
return d(),
|
|
1952
|
-
class:
|
|
2012
|
+
return d(), b("div", {
|
|
2013
|
+
class: P(o.orientation === "column" ? "row" : ""),
|
|
1953
2014
|
"data-cy": "multiselect-preview"
|
|
1954
2015
|
}, [
|
|
1955
2016
|
m("div", {
|
|
1956
|
-
class:
|
|
2017
|
+
class: P(o.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1957
2018
|
"data-cy": "multiselect-container"
|
|
1958
2019
|
}, [
|
|
1959
|
-
|
|
2020
|
+
k(n, _({
|
|
1960
2021
|
modelValue: a.value,
|
|
1961
|
-
"onUpdate:modelValue":
|
|
1962
|
-
}, { ...
|
|
2022
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => a.value = p)
|
|
2023
|
+
}, { ...o.$attrs }, {
|
|
1963
2024
|
options: t.options ?? [],
|
|
1964
2025
|
optionLabel: "label",
|
|
1965
|
-
placeholder:
|
|
2026
|
+
placeholder: o.multiselectPlaceholder,
|
|
1966
2027
|
"data-cy": "multiselect"
|
|
1967
2028
|
}), {
|
|
1968
|
-
default:
|
|
1969
|
-
(d(!0),
|
|
2029
|
+
default: f(() => [
|
|
2030
|
+
(d(!0), b(U, null, L(o.$slots, (p, u) => F(o.$slots, u, { slot: u })), 256))
|
|
1970
2031
|
]),
|
|
1971
2032
|
_: 3
|
|
1972
2033
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1973
|
-
F(
|
|
2034
|
+
F(o.$slots, "after-multi-select")
|
|
1974
2035
|
], 2),
|
|
1975
2036
|
m("div", {
|
|
1976
|
-
class:
|
|
2037
|
+
class: P(o.orientation === "row" ? "col-12" : "col"),
|
|
1977
2038
|
"data-cy": "options-preview"
|
|
1978
2039
|
}, [
|
|
1979
2040
|
m("div", {
|
|
1980
|
-
style: Se({ height:
|
|
2041
|
+
style: Se({ height: o.height }),
|
|
1981
2042
|
class: "overflow-auto"
|
|
1982
2043
|
}, [
|
|
1983
|
-
m("div",
|
|
1984
|
-
|
|
1985
|
-
(d(!0),
|
|
2044
|
+
m("div", Xt, [
|
|
2045
|
+
o.title ? (d(), b("div", Qt, $(o.title), 1)) : T("", !0),
|
|
2046
|
+
(d(!0), b(U, null, L(a.value, (p) => (d(), b("div", {
|
|
1986
2047
|
key: p.id,
|
|
1987
2048
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1988
2049
|
}, [
|
|
1989
|
-
F(
|
|
1990
|
-
m("span",
|
|
2050
|
+
F(o.$slots, "list-item", { item: p }, () => [
|
|
2051
|
+
m("span", ea, $(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1991
2052
|
]),
|
|
1992
|
-
|
|
2053
|
+
o.canRemoveItemFromPreview ? (d(), x(s, {
|
|
1993
2054
|
key: 0,
|
|
1994
2055
|
link: "",
|
|
1995
2056
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1996
|
-
onClick: (
|
|
2057
|
+
onClick: (u) => i(p.id)
|
|
1997
2058
|
}, {
|
|
1998
|
-
default:
|
|
1999
|
-
|
|
2059
|
+
default: f(() => [
|
|
2060
|
+
k(c(I), {
|
|
2000
2061
|
icon: "bi:x",
|
|
2001
2062
|
class: "close-icon",
|
|
2002
2063
|
"data-cy": `close-icon-${p.id}`
|
|
2003
2064
|
}, null, 8, ["data-cy"])
|
|
2004
2065
|
]),
|
|
2005
2066
|
_: 2
|
|
2006
|
-
}, 1032, ["onClick"])) :
|
|
2067
|
+
}, 1032, ["onClick"])) : T("", !0)
|
|
2007
2068
|
]))), 128)),
|
|
2008
|
-
a.value == null || a.value.length == 0 ? (d(),
|
|
2069
|
+
a.value == null || a.value.length == 0 ? (d(), b("div", ta, $(t.optionsPreviewEmptyText), 1)) : T("", !0)
|
|
2009
2070
|
])
|
|
2010
2071
|
], 4)
|
|
2011
2072
|
], 2)
|
|
2012
2073
|
], 2);
|
|
2013
2074
|
};
|
|
2014
2075
|
}
|
|
2015
|
-
}),
|
|
2076
|
+
}), ia = { class: "d-flex justify-content-between pb-2" }, oa = {
|
|
2016
2077
|
"data-cy": "title",
|
|
2017
2078
|
class: "my-auto"
|
|
2018
|
-
},
|
|
2079
|
+
}, la = {
|
|
2019
2080
|
"data-cy": "slot",
|
|
2020
2081
|
class: "d-flex align-items-center"
|
|
2021
|
-
},
|
|
2082
|
+
}, vo = /* @__PURE__ */ z({
|
|
2022
2083
|
__name: "ForgePageHeader",
|
|
2023
2084
|
props: {
|
|
2024
2085
|
title: {}
|
|
2025
2086
|
},
|
|
2026
2087
|
setup(e) {
|
|
2027
2088
|
const t = e;
|
|
2028
|
-
return (a, i) => (d(),
|
|
2029
|
-
m("h3",
|
|
2030
|
-
m("div",
|
|
2089
|
+
return (a, i) => (d(), b("div", ia, [
|
|
2090
|
+
m("h3", oa, $(t.title), 1),
|
|
2091
|
+
m("div", la, [
|
|
2031
2092
|
F(a.$slots, "default")
|
|
2032
2093
|
])
|
|
2033
2094
|
]));
|
|
2034
2095
|
}
|
|
2035
|
-
}),
|
|
2096
|
+
}), na = { class: "d-flex" }, sa = { "data-cy": "before-slot" }, ra = { class: "position-relative w-100" }, da = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ z({
|
|
2036
2097
|
__name: "ForgeDatepicker",
|
|
2037
|
-
props: /* @__PURE__ */
|
|
2098
|
+
props: /* @__PURE__ */ E({
|
|
2038
2099
|
severity: { default: "primary" },
|
|
2039
2100
|
modelValue: {},
|
|
2040
2101
|
defaultValue: {},
|
|
@@ -2107,12 +2168,12 @@ const Nt = {
|
|
|
2107
2168
|
}),
|
|
2108
2169
|
emits: ["update:modelValue"],
|
|
2109
2170
|
setup(e) {
|
|
2110
|
-
const t = e, a = N(e, "modelValue"), { errors: i, errorMessage:
|
|
2171
|
+
const t = e, a = N(e, "modelValue"), { errors: i, errorMessage: o, handleChange: l, handleBlur: n, setValue: s } = se(() => t.name, void 0, {
|
|
2111
2172
|
initialValue: a.value
|
|
2112
2173
|
}), p = () => {
|
|
2113
2174
|
s(null), a.value = null;
|
|
2114
|
-
},
|
|
2115
|
-
day: ({ context: r, props:
|
|
2175
|
+
}, u = j(() => i.value.length > 0), h = j(() => ({
|
|
2176
|
+
day: ({ context: r, props: w, attrs: g }) => ({
|
|
2116
2177
|
class: [
|
|
2117
2178
|
"d-flex justify-content-center align-items-center",
|
|
2118
2179
|
{
|
|
@@ -2127,19 +2188,19 @@ const Nt = {
|
|
|
2127
2188
|
//This is used to show which dates should be shows as 'disabled'. The first part of logic is used to only (due to prime vue passing
|
|
2128
2189
|
//disabled for otherMonth dates) show the disabled styling for current calendar dates. The second part of logic is used to set the
|
|
2129
2190
|
//disabled state for dates out of the min/max date range, as they would also come through the context as disabled dates without knowing why
|
|
2130
|
-
"text-grey-300": r.disabled && !r.otherMonth ||
|
|
2131
|
-
"fw-500": r.disabled && !r.otherMonth ||
|
|
2191
|
+
"text-grey-300": r.disabled && !r.otherMonth || w.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < w.minDate || w.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > w.maxDate,
|
|
2192
|
+
"fw-500": r.disabled && !r.otherMonth || w.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < w.minDate || w.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > w.maxDate
|
|
2132
2193
|
},
|
|
2133
2194
|
// Severities
|
|
2134
2195
|
{
|
|
2135
|
-
"date-primary":
|
|
2136
|
-
"date-brand":
|
|
2137
|
-
"date-secondary":
|
|
2138
|
-
"date-success":
|
|
2139
|
-
"date-success-alternate":
|
|
2140
|
-
"date-warning":
|
|
2141
|
-
"date-danger":
|
|
2142
|
-
"date-info":
|
|
2196
|
+
"date-primary": g.severity === void 0 || g.severity === "primary",
|
|
2197
|
+
"date-brand": g.severity === "brand",
|
|
2198
|
+
"date-secondary": g.severity === "secondary",
|
|
2199
|
+
"date-success": g.severity === "success",
|
|
2200
|
+
"date-success-alternate": g.severity === "success-alternate",
|
|
2201
|
+
"date-warning": g.severity === "warning",
|
|
2202
|
+
"date-danger": g.severity === "danger",
|
|
2203
|
+
"date-info": g.severity === "info"
|
|
2143
2204
|
}
|
|
2144
2205
|
]
|
|
2145
2206
|
}),
|
|
@@ -2216,66 +2277,66 @@ const Nt = {
|
|
|
2216
2277
|
]
|
|
2217
2278
|
})
|
|
2218
2279
|
}));
|
|
2219
|
-
return (r,
|
|
2220
|
-
const
|
|
2221
|
-
return d(),
|
|
2222
|
-
m("div",
|
|
2223
|
-
m("span",
|
|
2280
|
+
return (r, w) => {
|
|
2281
|
+
const g = De;
|
|
2282
|
+
return d(), b(U, null, [
|
|
2283
|
+
m("div", na, [
|
|
2284
|
+
m("span", sa, [
|
|
2224
2285
|
F(r.$slots, "before")
|
|
2225
2286
|
]),
|
|
2226
|
-
m("div",
|
|
2227
|
-
|
|
2228
|
-
pt:
|
|
2287
|
+
m("div", ra, [
|
|
2288
|
+
k(g, _({ ...t, ...r.$attrs }, {
|
|
2289
|
+
pt: h.value,
|
|
2229
2290
|
modelValue: a.value,
|
|
2230
2291
|
"onUpdate:modelValue": [
|
|
2231
|
-
|
|
2232
|
-
|
|
2292
|
+
w[0] || (w[0] = (C) => a.value = C),
|
|
2293
|
+
c(l)
|
|
2233
2294
|
],
|
|
2234
|
-
onBlur:
|
|
2235
|
-
"input-class": { "text-truncate": !0, "datepicker-invalid":
|
|
2295
|
+
onBlur: w[1] || (w[1] = () => c(n)),
|
|
2296
|
+
"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) }
|
|
2236
2297
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
2237
|
-
|
|
2298
|
+
K(k(c(I), {
|
|
2238
2299
|
"data-cy": "icon",
|
|
2239
2300
|
icon: "bi:calendar4",
|
|
2240
|
-
class:
|
|
2301
|
+
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"}`])
|
|
2241
2302
|
}, null, 8, ["class"]), [
|
|
2242
2303
|
[X, t.showIcon && !t.inline]
|
|
2243
2304
|
]),
|
|
2244
|
-
|
|
2305
|
+
K(k(c(I), {
|
|
2245
2306
|
"data-cy": "icon",
|
|
2246
2307
|
icon: "bi:x",
|
|
2247
2308
|
onClick: p,
|
|
2248
|
-
class:
|
|
2309
|
+
class: P(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
2249
2310
|
}, null, 8, ["class"]), [
|
|
2250
2311
|
[X, t.modelValue && !t.inline]
|
|
2251
2312
|
])
|
|
2252
2313
|
]),
|
|
2253
|
-
m("span",
|
|
2314
|
+
m("span", da, [
|
|
2254
2315
|
F(r.$slots, "after")
|
|
2255
2316
|
])
|
|
2256
2317
|
]),
|
|
2257
|
-
|
|
2318
|
+
K(m("small", {
|
|
2258
2319
|
"data-cy": "error",
|
|
2259
2320
|
class: "text-invalid"
|
|
2260
|
-
},
|
|
2261
|
-
[X,
|
|
2321
|
+
}, $(c(o)), 513), [
|
|
2322
|
+
[X, u.value]
|
|
2262
2323
|
])
|
|
2263
2324
|
], 64);
|
|
2264
2325
|
};
|
|
2265
2326
|
}
|
|
2266
|
-
}),
|
|
2327
|
+
}), fo = /* @__PURE__ */ z({
|
|
2267
2328
|
__name: "ForgeRemainingCharacters",
|
|
2268
2329
|
props: {
|
|
2269
2330
|
maxCount: { default: 300 },
|
|
2270
2331
|
currentCount: {}
|
|
2271
2332
|
},
|
|
2272
2333
|
setup(e) {
|
|
2273
|
-
const t = e, a =
|
|
2274
|
-
return (i,
|
|
2275
|
-
class:
|
|
2276
|
-
}, "Remaining characters: " +
|
|
2334
|
+
const t = e, a = j(() => t.maxCount - t.currentCount);
|
|
2335
|
+
return (i, o) => (d(), b("div", {
|
|
2336
|
+
class: P(a.value < 0 ? "text-danger" : "")
|
|
2337
|
+
}, "Remaining characters: " + $(a.value), 3));
|
|
2277
2338
|
}
|
|
2278
|
-
}),
|
|
2339
|
+
}), pa = { class: "d-flex justify-content-between" }, go = /* @__PURE__ */ z({
|
|
2279
2340
|
__name: "ForgeForm",
|
|
2280
2341
|
props: {
|
|
2281
2342
|
onSubmit: {},
|
|
@@ -2287,96 +2348,96 @@ const Nt = {
|
|
|
2287
2348
|
hideCancel: { type: Boolean, default: !1 }
|
|
2288
2349
|
},
|
|
2289
2350
|
setup(e) {
|
|
2290
|
-
const t = e, a =
|
|
2351
|
+
const t = e, a = M(!1), i = M({
|
|
2291
2352
|
hasError: !1,
|
|
2292
2353
|
message: ""
|
|
2293
2354
|
});
|
|
2294
|
-
async function
|
|
2355
|
+
async function o() {
|
|
2295
2356
|
a.value = !0, i.value.hasError = !1;
|
|
2296
2357
|
try {
|
|
2297
2358
|
await t.onSubmit();
|
|
2298
|
-
} catch (
|
|
2299
|
-
i.value.hasError = !0,
|
|
2359
|
+
} catch (l) {
|
|
2360
|
+
i.value.hasError = !0, l.message && (i.value.message = l.message);
|
|
2300
2361
|
}
|
|
2301
2362
|
a.value = !1;
|
|
2302
2363
|
}
|
|
2303
|
-
return (
|
|
2364
|
+
return (l, n) => {
|
|
2304
2365
|
const s = q;
|
|
2305
|
-
return d(),
|
|
2366
|
+
return d(), b("form", _(l.$attrs, {
|
|
2306
2367
|
novalidate: "",
|
|
2307
2368
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2308
|
-
onSubmit: Q(
|
|
2369
|
+
onSubmit: Q(o, ["prevent"])
|
|
2309
2370
|
}), [
|
|
2310
|
-
|
|
2311
|
-
F(
|
|
2371
|
+
l.hideTitle ? T("", !0) : (d(), b(U, { key: 0 }, [
|
|
2372
|
+
F(l.$slots, "title", {}, () => [
|
|
2312
2373
|
m("h3", {
|
|
2313
|
-
class:
|
|
2374
|
+
class: P(l.titleClass),
|
|
2314
2375
|
"data-cy": "form-title"
|
|
2315
|
-
},
|
|
2376
|
+
}, $(l.title), 3)
|
|
2316
2377
|
]),
|
|
2317
2378
|
n[1] || (n[1] = m("hr", null, null, -1))
|
|
2318
2379
|
], 64)),
|
|
2319
|
-
i.value.hasError ? (d(),
|
|
2380
|
+
i.value.hasError ? (d(), x(re, {
|
|
2320
2381
|
key: 1,
|
|
2321
2382
|
severity: "danger",
|
|
2322
2383
|
"data-cy": "error"
|
|
2323
2384
|
}, {
|
|
2324
|
-
default:
|
|
2325
|
-
F(
|
|
2385
|
+
default: f(() => [
|
|
2386
|
+
F(l.$slots, "error", {
|
|
2326
2387
|
error: i.value.message
|
|
2327
2388
|
}, () => [
|
|
2328
|
-
|
|
2389
|
+
V($(i.value.message), 1)
|
|
2329
2390
|
])
|
|
2330
2391
|
]),
|
|
2331
2392
|
_: 3
|
|
2332
|
-
})) :
|
|
2333
|
-
F(
|
|
2334
|
-
m("div",
|
|
2335
|
-
F(
|
|
2336
|
-
|
|
2393
|
+
})) : T("", !0),
|
|
2394
|
+
F(l.$slots, "default"),
|
|
2395
|
+
m("div", pa, [
|
|
2396
|
+
F(l.$slots, "cancel", {}, () => [
|
|
2397
|
+
l.hideCancel ? T("", !0) : (d(), x(s, {
|
|
2337
2398
|
key: 0,
|
|
2338
2399
|
"data-cy": "cancel-btn",
|
|
2339
2400
|
type: "reset",
|
|
2340
2401
|
severity: "secondary",
|
|
2341
2402
|
outlined: "",
|
|
2342
|
-
onClick: n[0] || (n[0] = (p) =>
|
|
2403
|
+
onClick: n[0] || (n[0] = (p) => l.$emit("cancel"))
|
|
2343
2404
|
}, {
|
|
2344
|
-
default:
|
|
2345
|
-
|
|
2405
|
+
default: f(() => [
|
|
2406
|
+
V($(l.cancelText), 1)
|
|
2346
2407
|
]),
|
|
2347
2408
|
_: 1
|
|
2348
2409
|
}))
|
|
2349
2410
|
]),
|
|
2350
|
-
F(
|
|
2351
|
-
|
|
2411
|
+
F(l.$slots, "submit", { submit: o }, () => [
|
|
2412
|
+
k(s, {
|
|
2352
2413
|
"data-cy": "submit-btn",
|
|
2353
2414
|
type: "submit",
|
|
2354
2415
|
severity: "primary",
|
|
2355
2416
|
class: "ms-auto"
|
|
2356
2417
|
}, {
|
|
2357
|
-
default:
|
|
2358
|
-
|
|
2418
|
+
default: f(() => [
|
|
2419
|
+
V($(l.submitText), 1)
|
|
2359
2420
|
]),
|
|
2360
2421
|
_: 1
|
|
2361
2422
|
})
|
|
2362
2423
|
])
|
|
2363
2424
|
]),
|
|
2364
|
-
a.value ? (d(),
|
|
2425
|
+
a.value ? (d(), x(pe, {
|
|
2365
2426
|
key: 2,
|
|
2366
2427
|
"data-cy": "loading-spinner"
|
|
2367
|
-
})) :
|
|
2428
|
+
})) : T("", !0)
|
|
2368
2429
|
], 16);
|
|
2369
2430
|
};
|
|
2370
2431
|
}
|
|
2371
|
-
}),
|
|
2432
|
+
}), ca = {
|
|
2372
2433
|
key: 1,
|
|
2373
2434
|
class: "d-flex flex-column w-100"
|
|
2374
|
-
},
|
|
2435
|
+
}, ua = ["for"], ma = {
|
|
2375
2436
|
key: 0,
|
|
2376
2437
|
class: "text-danger fw-600"
|
|
2377
|
-
},
|
|
2438
|
+
}, bo = /* @__PURE__ */ z({
|
|
2378
2439
|
__name: "ForgeFormField",
|
|
2379
|
-
props: /* @__PURE__ */
|
|
2440
|
+
props: /* @__PURE__ */ E({
|
|
2380
2441
|
name: {},
|
|
2381
2442
|
fieldLabelPosition: { default: "top" },
|
|
2382
2443
|
fieldLabel: {},
|
|
@@ -2391,106 +2452,106 @@ const Nt = {
|
|
|
2391
2452
|
}),
|
|
2392
2453
|
emits: ["update:modelValue"],
|
|
2393
2454
|
setup(e) {
|
|
2394
|
-
const t = N(e, "modelValue"), a = e, i = (
|
|
2395
|
-
a.type == "number" ? s(
|
|
2396
|
-
}, { errors:
|
|
2455
|
+
const t = N(e, "modelValue"), a = e, i = (h) => {
|
|
2456
|
+
a.type == "number" ? s(h.value) : s(h);
|
|
2457
|
+
}, { errors: o, value: l, errorMessage: n, handleChange: s, handleBlur: p } = se(() => a.name, void 0, {
|
|
2397
2458
|
initialValue: t.value
|
|
2398
|
-
}),
|
|
2399
|
-
return
|
|
2400
|
-
t.value =
|
|
2401
|
-
}, { immediate: !0 }), (
|
|
2402
|
-
const
|
|
2403
|
-
return a.type === "checkbox" ? (d(),
|
|
2459
|
+
}), u = j(() => o.value.length > 0);
|
|
2460
|
+
return W(() => l.value, (h) => {
|
|
2461
|
+
t.value = h;
|
|
2462
|
+
}, { immediate: !0 }), (h, r) => {
|
|
2463
|
+
const w = Ae, g = Oe, C = ae, S = oe, A = de, v = xe;
|
|
2464
|
+
return a.type === "checkbox" ? (d(), x(ye, _({
|
|
2404
2465
|
key: 0,
|
|
2405
2466
|
id: a.name,
|
|
2406
2467
|
label: a.fieldLabel
|
|
2407
|
-
},
|
|
2468
|
+
}, h.$attrs, {
|
|
2408
2469
|
name: a.name,
|
|
2409
2470
|
modelValue: t.value,
|
|
2410
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2411
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(),
|
|
2471
|
+
"onUpdate:modelValue": r[0] || (r[0] = (B) => t.value = B)
|
|
2472
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div", ca, [
|
|
2412
2473
|
m("div", {
|
|
2413
2474
|
"data-cy": "input-wrapper",
|
|
2414
|
-
class:
|
|
2475
|
+
class: P(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2415
2476
|
}, [
|
|
2416
2477
|
m("label", {
|
|
2417
2478
|
for: a.name,
|
|
2418
|
-
class:
|
|
2479
|
+
class: P(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2419
2480
|
}, [
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
], 10,
|
|
2423
|
-
F(
|
|
2424
|
-
a.type === "number" ? (d(),
|
|
2481
|
+
V($(a.fieldLabel) + " ", 1),
|
|
2482
|
+
h.required ? (d(), b("span", ma, "*")) : T("", !0)
|
|
2483
|
+
], 10, ua),
|
|
2484
|
+
F(h.$slots, "default", G(Y({ modelValue: t.value, updateModel: c(s), hasErrors: u.value })), () => [
|
|
2485
|
+
a.type === "number" ? (d(), x(c(fe), _({
|
|
2425
2486
|
key: 0,
|
|
2426
2487
|
id: a.name
|
|
2427
|
-
},
|
|
2488
|
+
}, h.$attrs, {
|
|
2428
2489
|
placeholder: a.placeholder,
|
|
2429
|
-
"input-class": { "is-invalid":
|
|
2430
|
-
class: { "is-invalid":
|
|
2490
|
+
"input-class": { "is-invalid": u.value },
|
|
2491
|
+
class: { "is-invalid": u.value },
|
|
2431
2492
|
onInput: i,
|
|
2432
2493
|
modelValue: t.value,
|
|
2433
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
2434
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(),
|
|
2494
|
+
"onUpdate:modelValue": r[1] || (r[1] = (B) => t.value = B)
|
|
2495
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), x(w, _({
|
|
2435
2496
|
key: 1,
|
|
2436
2497
|
id: a.name
|
|
2437
|
-
},
|
|
2498
|
+
}, h.$attrs, {
|
|
2438
2499
|
placeholder: a.placeholder,
|
|
2439
|
-
class: { "is-invalid":
|
|
2500
|
+
class: { "is-invalid": u.value },
|
|
2440
2501
|
modelValue: t.value,
|
|
2441
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
2502
|
+
"onUpdate:modelValue": r[2] || (r[2] = (B) => t.value = B),
|
|
2442
2503
|
onInput: i,
|
|
2443
|
-
onBlur:
|
|
2444
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(),
|
|
2504
|
+
onBlur: c(p)
|
|
2505
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), x(g, _({
|
|
2445
2506
|
key: 2,
|
|
2446
2507
|
id: a.name
|
|
2447
|
-
},
|
|
2508
|
+
}, h.$attrs, {
|
|
2448
2509
|
placeholder: a.placeholder,
|
|
2449
2510
|
mask: a.mask,
|
|
2450
|
-
class: { "is-invalid":
|
|
2511
|
+
class: { "is-invalid": u.value },
|
|
2451
2512
|
modelValue: t.value,
|
|
2452
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
2513
|
+
"onUpdate:modelValue": r[3] || (r[3] = (B) => t.value = B),
|
|
2453
2514
|
onComplete: i,
|
|
2454
|
-
onBlur:
|
|
2455
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(),
|
|
2515
|
+
onBlur: c(p)
|
|
2516
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(C, _({
|
|
2456
2517
|
key: 3,
|
|
2457
2518
|
id: a.name
|
|
2458
|
-
},
|
|
2519
|
+
}, h.$attrs, {
|
|
2459
2520
|
placeholder: a.placeholder,
|
|
2460
|
-
class: { "is-invalid":
|
|
2521
|
+
class: { "is-invalid": u.value },
|
|
2461
2522
|
modelValue: t.value,
|
|
2462
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
|
2523
|
+
"onUpdate:modelValue": r[4] || (r[4] = (B) => t.value = B),
|
|
2463
2524
|
onInput: i,
|
|
2464
|
-
onBlur:
|
|
2465
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(),
|
|
2525
|
+
onBlur: c(p)
|
|
2526
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(S, _({ key: 4 }, { ...a, ...h.$attrs }, {
|
|
2466
2527
|
modelValue: t.value,
|
|
2467
|
-
"onUpdate:modelValue": r[5] || (r[5] = (
|
|
2468
|
-
class: { "is-invalid":
|
|
2469
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(),
|
|
2528
|
+
"onUpdate:modelValue": r[5] || (r[5] = (B) => t.value = B),
|
|
2529
|
+
class: { "is-invalid": u.value }
|
|
2530
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), x(A, _({ key: 5 }, { ...a, ...h.$attrs }, {
|
|
2470
2531
|
modelValue: t.value,
|
|
2471
|
-
"onUpdate:modelValue": r[6] || (r[6] = (
|
|
2472
|
-
class: { "is-invalid":
|
|
2473
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(),
|
|
2532
|
+
"onUpdate:modelValue": r[6] || (r[6] = (B) => t.value = B),
|
|
2533
|
+
class: { "is-invalid": u.value }
|
|
2534
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(aa, _({ key: 6 }, { ...a, ...h.$attrs }, {
|
|
2474
2535
|
modelValue: t.value,
|
|
2475
|
-
"onUpdate:modelValue": r[7] || (r[7] = (
|
|
2476
|
-
class: { "is-invalid":
|
|
2477
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(),
|
|
2536
|
+
"onUpdate:modelValue": r[7] || (r[7] = (B) => t.value = B),
|
|
2537
|
+
class: { "is-invalid": u.value }
|
|
2538
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), x(v, _({ key: 7 }, { ...a, ...h.$attrs }, {
|
|
2478
2539
|
modelValue: t.value,
|
|
2479
|
-
"onUpdate:modelValue": r[8] || (r[8] = (
|
|
2480
|
-
class: { "is-invalid":
|
|
2481
|
-
}), null, 16, ["modelValue", "class"])) :
|
|
2540
|
+
"onUpdate:modelValue": r[8] || (r[8] = (B) => t.value = B),
|
|
2541
|
+
class: { "is-invalid": u.value }
|
|
2542
|
+
}), null, 16, ["modelValue", "class"])) : T("", !0)
|
|
2482
2543
|
])
|
|
2483
2544
|
], 2),
|
|
2484
|
-
|
|
2545
|
+
K(m("small", {
|
|
2485
2546
|
"data-cy": "error",
|
|
2486
2547
|
class: "invalid-feedback"
|
|
2487
|
-
},
|
|
2488
|
-
[X,
|
|
2548
|
+
}, $(c(n)), 513), [
|
|
2549
|
+
[X, u.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2489
2550
|
])
|
|
2490
2551
|
]));
|
|
2491
2552
|
};
|
|
2492
2553
|
}
|
|
2493
|
-
}),
|
|
2554
|
+
}), yo = /* @__PURE__ */ z({
|
|
2494
2555
|
__name: "ForgeChip",
|
|
2495
2556
|
props: {
|
|
2496
2557
|
chipSeverity: { default: "primary" },
|
|
@@ -2506,7 +2567,7 @@ const Nt = {
|
|
|
2506
2567
|
unstyled: { type: Boolean }
|
|
2507
2568
|
},
|
|
2508
2569
|
setup(e) {
|
|
2509
|
-
const t = e, a =
|
|
2570
|
+
const t = e, a = j(() => ({
|
|
2510
2571
|
root: [
|
|
2511
2572
|
"badge d-inline-flex align-items-center border me-1 p-1",
|
|
2512
2573
|
{
|
|
@@ -2524,17 +2585,17 @@ const Nt = {
|
|
|
2524
2585
|
}
|
|
2525
2586
|
]
|
|
2526
2587
|
}));
|
|
2527
|
-
return (i,
|
|
2528
|
-
const
|
|
2529
|
-
return d(),
|
|
2530
|
-
default:
|
|
2531
|
-
(d(!0),
|
|
2588
|
+
return (i, o) => {
|
|
2589
|
+
const l = Ne;
|
|
2590
|
+
return d(), x(l, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2591
|
+
default: f(() => [
|
|
2592
|
+
(d(!0), b(U, null, L(i.$slots, (n, s) => F(i.$slots, s, { slot: s })), 256))
|
|
2532
2593
|
]),
|
|
2533
2594
|
_: 3
|
|
2534
2595
|
}, 16, ["pt"]);
|
|
2535
2596
|
};
|
|
2536
2597
|
}
|
|
2537
|
-
}),
|
|
2598
|
+
}), xo = /* @__PURE__ */ z({
|
|
2538
2599
|
__name: "ForgeProgressBar",
|
|
2539
2600
|
props: {
|
|
2540
2601
|
severity: { default: "primary" },
|
|
@@ -2550,7 +2611,7 @@ const Nt = {
|
|
|
2550
2611
|
unstyled: { type: Boolean }
|
|
2551
2612
|
},
|
|
2552
2613
|
setup(e) {
|
|
2553
|
-
const t = e, a =
|
|
2614
|
+
const t = e, a = j(() => t.striped ? "progress-bar-striped" : null), i = j(() => t.animate ? "progress-bar-animated" : null), o = j(() => {
|
|
2554
2615
|
switch (t.severity) {
|
|
2555
2616
|
case "brand":
|
|
2556
2617
|
return "bg-brand";
|
|
@@ -2571,18 +2632,18 @@ const Nt = {
|
|
|
2571
2632
|
default:
|
|
2572
2633
|
return "bg-primary";
|
|
2573
2634
|
}
|
|
2574
|
-
}),
|
|
2635
|
+
}), l = j(() => ({
|
|
2575
2636
|
root: {
|
|
2576
2637
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2577
2638
|
},
|
|
2578
2639
|
value: {
|
|
2579
|
-
class: [
|
|
2640
|
+
class: [o.value, a.value, i.value, "progress-bar"]
|
|
2580
2641
|
}
|
|
2581
2642
|
}));
|
|
2582
2643
|
return (n, s) => {
|
|
2583
|
-
const p =
|
|
2584
|
-
return d(),
|
|
2585
|
-
default:
|
|
2644
|
+
const p = Ue;
|
|
2645
|
+
return d(), x(p, _({ ...n.$attrs, ...t }, { pt: l.value }), {
|
|
2646
|
+
default: f(() => [
|
|
2586
2647
|
F(n.$slots, "default")
|
|
2587
2648
|
]),
|
|
2588
2649
|
_: 3
|
|
@@ -2590,7 +2651,7 @@ const Nt = {
|
|
|
2590
2651
|
};
|
|
2591
2652
|
}
|
|
2592
2653
|
});
|
|
2593
|
-
var
|
|
2654
|
+
var va = /* @__PURE__ */ z({
|
|
2594
2655
|
name: "VueDrawingCanvas",
|
|
2595
2656
|
props: {
|
|
2596
2657
|
strokeType: {
|
|
@@ -2757,8 +2818,8 @@ var ca = /* @__PURE__ */ C({
|
|
|
2757
2818
|
getCoordinates(e) {
|
|
2758
2819
|
let t, a;
|
|
2759
2820
|
if (e.touches && e.touches.length > 0) {
|
|
2760
|
-
let
|
|
2761
|
-
t = e.touches[0].clientX -
|
|
2821
|
+
let o = document.querySelector("#" + this.canvasId).getBoundingClientRect();
|
|
2822
|
+
t = e.touches[0].clientX - o.left, a = e.touches[0].clientY - o.top;
|
|
2762
2823
|
} else
|
|
2763
2824
|
t = e.offsetX, a = e.offsetY;
|
|
2764
2825
|
return {
|
|
@@ -2837,13 +2898,13 @@ var ca = /* @__PURE__ */ C({
|
|
|
2837
2898
|
}];
|
|
2838
2899
|
break;
|
|
2839
2900
|
case "circle":
|
|
2840
|
-
let
|
|
2901
|
+
let o = this.strokes.from.x - t.x < 0 ? (this.strokes.from.x - t.x) * -1 : this.strokes.from.x - t.x;
|
|
2841
2902
|
this.guides = [{
|
|
2842
|
-
x: this.strokes.from.x > t.x ? this.strokes.from.x -
|
|
2903
|
+
x: this.strokes.from.x > t.x ? this.strokes.from.x - o : this.strokes.from.x + o,
|
|
2843
2904
|
y: this.strokes.from.y
|
|
2844
2905
|
}, {
|
|
2845
|
-
x:
|
|
2846
|
-
y:
|
|
2906
|
+
x: o,
|
|
2907
|
+
y: o
|
|
2847
2908
|
}];
|
|
2848
2909
|
break;
|
|
2849
2910
|
}
|
|
@@ -2901,15 +2962,15 @@ var ca = /* @__PURE__ */ C({
|
|
|
2901
2962
|
e && this.save();
|
|
2902
2963
|
});
|
|
2903
2964
|
},
|
|
2904
|
-
wrapText(e, t, a, i,
|
|
2965
|
+
wrapText(e, t, a, i, o, l) {
|
|
2905
2966
|
const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
|
|
2906
|
-
var p = t.split(n).filter((
|
|
2907
|
-
for (let
|
|
2908
|
-
for (var
|
|
2909
|
-
var
|
|
2910
|
-
|
|
2967
|
+
var p = t.split(n).filter((S) => S.length > 0);
|
|
2968
|
+
for (let S = 0; S < p.length; S++) {
|
|
2969
|
+
for (var u = p[S].split(s).filter((A) => A.length > 0), h = "", r = 0; r < u.length; r++) {
|
|
2970
|
+
var w = h + u[r] + " ", g = e.measureText(w), C = g.width;
|
|
2971
|
+
C > 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;
|
|
2911
2972
|
}
|
|
2912
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2973
|
+
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;
|
|
2913
2974
|
}
|
|
2914
2975
|
},
|
|
2915
2976
|
save() {
|
|
@@ -2918,31 +2979,31 @@ var ca = /* @__PURE__ */ C({
|
|
|
2918
2979
|
let t = document.createElement("canvas"), a = t.getContext("2d");
|
|
2919
2980
|
a && (t.width = Number(this.width), t.height = Number(this.height), a.drawImage(e, 0, 0, Number(this.width), Number(this.height)), this.drawWatermark(t, a, this.watermark));
|
|
2920
2981
|
} else {
|
|
2921
|
-
let t = document.createElement("canvas"), a = t.getContext("2d"), i = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
2922
|
-
if (t.width = Number(i), t.height = Number(
|
|
2923
|
-
return a.drawImage(e, 0, 0, Number(i), Number(
|
|
2982
|
+
let t = document.createElement("canvas"), a = t.getContext("2d"), i = this.outputWidth === void 0 ? this.width : this.outputWidth, o = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2983
|
+
if (t.width = Number(i), t.height = Number(o), a)
|
|
2984
|
+
return a.drawImage(e, 0, 0, Number(i), Number(o)), this.$emit("update:image", t.toDataURL("image/" + this.saveAs, 1)), t.toDataURL("image/" + this.saveAs, 1);
|
|
2924
2985
|
}
|
|
2925
2986
|
},
|
|
2926
2987
|
drawWatermark(e, t, a) {
|
|
2927
2988
|
if (a.type === "Image") {
|
|
2928
|
-
let i = a.imageStyle ? a.imageStyle.width ? a.imageStyle.width : Number(this.width) : Number(this.width),
|
|
2929
|
-
const
|
|
2930
|
-
|
|
2931
|
-
a && t && t.drawImage(
|
|
2932
|
-
let n = document.createElement("canvas"), s = n.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
2933
|
-
if (n.width = Number(p), n.height = Number(
|
|
2934
|
-
return s.drawImage(e, 0, 0, Number(p), Number(
|
|
2989
|
+
let i = a.imageStyle ? a.imageStyle.width ? a.imageStyle.width : Number(this.width) : Number(this.width), o = a.imageStyle ? a.imageStyle.height ? a.imageStyle.height : Number(this.height) : Number(this.height);
|
|
2990
|
+
const l = new Image();
|
|
2991
|
+
l.src = a.source, l.onload = () => {
|
|
2992
|
+
a && t && t.drawImage(l, a.x, a.y, Number(i), Number(o));
|
|
2993
|
+
let n = document.createElement("canvas"), s = n.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, u = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2994
|
+
if (n.width = Number(p), n.height = Number(u), s)
|
|
2995
|
+
return s.drawImage(e, 0, 0, Number(p), Number(u)), this.$emit("update:image", n.toDataURL("image/" + this.saveAs, 1)), n.toDataURL("image/" + this.saveAs, 1);
|
|
2935
2996
|
};
|
|
2936
2997
|
} else if (a.type === "Text") {
|
|
2937
|
-
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif",
|
|
2938
|
-
if (t.font = i, t.textAlign =
|
|
2939
|
-
let r,
|
|
2940
|
-
a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ?
|
|
2998
|
+
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", o = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", l = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", n = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
|
|
2999
|
+
if (t.font = i, t.textAlign = o, t.textBaseline = l, a.fontStyle && a.fontStyle.rotate) {
|
|
3000
|
+
let r, w;
|
|
3001
|
+
a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ? w = a.y + Math.floor(a.fontStyle.lineHeight / 2) : w = a.y, t.translate(r, w), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(r * -1, w * -1);
|
|
2941
3002
|
}
|
|
2942
3003
|
a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = n, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
|
|
2943
|
-
let s = document.createElement("canvas"), p = s.getContext("2d"),
|
|
2944
|
-
if (s.width = Number(
|
|
2945
|
-
return p.drawImage(e, 0, 0, Number(
|
|
3004
|
+
let s = document.createElement("canvas"), p = s.getContext("2d"), u = this.outputWidth === void 0 ? this.width : this.outputWidth, h = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
3005
|
+
if (s.width = Number(u), s.height = Number(h), p)
|
|
3006
|
+
return p.drawImage(e, 0, 0, Number(u), Number(h)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
|
|
2946
3007
|
}
|
|
2947
3008
|
},
|
|
2948
3009
|
isEmpty() {
|
|
@@ -2980,7 +3041,7 @@ var ca = /* @__PURE__ */ C({
|
|
|
2980
3041
|
});
|
|
2981
3042
|
}
|
|
2982
3043
|
});
|
|
2983
|
-
const
|
|
3044
|
+
const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1 gap-1" }, ho = /* @__PURE__ */ z({
|
|
2984
3045
|
__name: "ForgeScratchpad",
|
|
2985
3046
|
props: {
|
|
2986
3047
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2993,85 +3054,85 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
2993
3054
|
},
|
|
2994
3055
|
emits: ["save"],
|
|
2995
3056
|
setup(e, { emit: t }) {
|
|
2996
|
-
const a = e, i = t,
|
|
2997
|
-
|
|
3057
|
+
const a = e, i = t, o = Te("drawingCanvas"), l = M(), n = () => {
|
|
3058
|
+
o == null || o.value.reset();
|
|
2998
3059
|
}, s = () => {
|
|
2999
|
-
|
|
3060
|
+
o == null || o.value.redo();
|
|
3000
3061
|
}, p = () => {
|
|
3001
|
-
|
|
3002
|
-
},
|
|
3003
|
-
i("save",
|
|
3062
|
+
o == null || o.value.undo();
|
|
3063
|
+
}, u = () => {
|
|
3064
|
+
i("save", o.value.isEmpty());
|
|
3004
3065
|
};
|
|
3005
|
-
return (
|
|
3006
|
-
const
|
|
3007
|
-
return d(),
|
|
3008
|
-
|
|
3066
|
+
return (h, r) => {
|
|
3067
|
+
const w = q;
|
|
3068
|
+
return d(), b("div", fa, [
|
|
3069
|
+
k(c(va), _({
|
|
3009
3070
|
ref_key: "drawingCanvas",
|
|
3010
|
-
ref:
|
|
3011
|
-
image:
|
|
3012
|
-
"onUpdate:image": r[0] || (r[0] = (
|
|
3071
|
+
ref: o,
|
|
3072
|
+
image: l.value,
|
|
3073
|
+
"onUpdate:image": r[0] || (r[0] = (g) => l.value = g),
|
|
3013
3074
|
"data-cy": "drawing-canvas",
|
|
3014
3075
|
class: "border canvas"
|
|
3015
|
-
}, { ...
|
|
3016
|
-
height:
|
|
3017
|
-
width:
|
|
3018
|
-
style: `height: ${
|
|
3019
|
-
"line-join":
|
|
3076
|
+
}, { ...h.$attrs }, {
|
|
3077
|
+
height: h.height,
|
|
3078
|
+
width: h.width,
|
|
3079
|
+
style: `height: ${h.height}px; width: ${h.width}px`,
|
|
3080
|
+
"line-join": h.lineJoin
|
|
3020
3081
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
3021
|
-
m("div",
|
|
3022
|
-
a.showUndo ? (d(),
|
|
3082
|
+
m("div", ga, [
|
|
3083
|
+
a.showUndo ? (d(), x(w, {
|
|
3023
3084
|
key: 0,
|
|
3024
3085
|
onClick: p,
|
|
3025
3086
|
outlined: "",
|
|
3026
3087
|
"data-cy": "undo-button"
|
|
3027
3088
|
}, {
|
|
3028
|
-
default:
|
|
3029
|
-
|
|
3089
|
+
default: f(() => r[1] || (r[1] = [
|
|
3090
|
+
V("Undo")
|
|
3030
3091
|
])),
|
|
3031
3092
|
_: 1,
|
|
3032
3093
|
__: [1]
|
|
3033
|
-
})) :
|
|
3034
|
-
a.showRedo ? (d(),
|
|
3094
|
+
})) : T("", !0),
|
|
3095
|
+
a.showRedo ? (d(), x(w, {
|
|
3035
3096
|
key: 1,
|
|
3036
3097
|
onClick: s,
|
|
3037
3098
|
outlined: "",
|
|
3038
3099
|
"data-cy": "redo-button"
|
|
3039
3100
|
}, {
|
|
3040
|
-
default:
|
|
3041
|
-
|
|
3101
|
+
default: f(() => r[2] || (r[2] = [
|
|
3102
|
+
V("Redo")
|
|
3042
3103
|
])),
|
|
3043
3104
|
_: 1,
|
|
3044
3105
|
__: [2]
|
|
3045
|
-
})) :
|
|
3046
|
-
a.showClear ? (d(),
|
|
3106
|
+
})) : T("", !0),
|
|
3107
|
+
a.showClear ? (d(), x(w, {
|
|
3047
3108
|
key: 2,
|
|
3048
3109
|
onClick: n,
|
|
3049
3110
|
outlined: "",
|
|
3050
3111
|
"data-cy": "clear-button"
|
|
3051
3112
|
}, {
|
|
3052
|
-
default:
|
|
3053
|
-
|
|
3113
|
+
default: f(() => r[3] || (r[3] = [
|
|
3114
|
+
V("Clear")
|
|
3054
3115
|
])),
|
|
3055
3116
|
_: 1,
|
|
3056
3117
|
__: [3]
|
|
3057
|
-
})) :
|
|
3058
|
-
a.showSave ? (d(),
|
|
3118
|
+
})) : T("", !0),
|
|
3119
|
+
a.showSave ? (d(), x(w, {
|
|
3059
3120
|
key: 3,
|
|
3060
|
-
onClick:
|
|
3121
|
+
onClick: u,
|
|
3061
3122
|
class: "ms-auto",
|
|
3062
3123
|
"data-cy": "save-button"
|
|
3063
3124
|
}, {
|
|
3064
|
-
default:
|
|
3065
|
-
|
|
3125
|
+
default: f(() => r[4] || (r[4] = [
|
|
3126
|
+
V("Save")
|
|
3066
3127
|
])),
|
|
3067
3128
|
_: 1,
|
|
3068
3129
|
__: [4]
|
|
3069
|
-
})) :
|
|
3130
|
+
})) : T("", !0)
|
|
3070
3131
|
])
|
|
3071
3132
|
]);
|
|
3072
3133
|
};
|
|
3073
3134
|
}
|
|
3074
|
-
}),
|
|
3135
|
+
}), ba = { class: "value text-white w-100 text-center" }, wo = /* @__PURE__ */ z({
|
|
3075
3136
|
__name: "ForgeStatWidget",
|
|
3076
3137
|
props: {
|
|
3077
3138
|
size: { default: "md" },
|
|
@@ -3079,15 +3140,15 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3079
3140
|
},
|
|
3080
3141
|
setup(e) {
|
|
3081
3142
|
const t = e;
|
|
3082
|
-
return (a, i) => (d(),
|
|
3143
|
+
return (a, i) => (d(), b("div", _(a.$attrs, {
|
|
3083
3144
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
3084
3145
|
}), [
|
|
3085
|
-
m("span",
|
|
3146
|
+
m("span", ba, [
|
|
3086
3147
|
F(a.$slots, "default")
|
|
3087
3148
|
])
|
|
3088
3149
|
], 16));
|
|
3089
3150
|
}
|
|
3090
|
-
}),
|
|
3151
|
+
}), ya = { key: 0 }, ko = /* @__PURE__ */ z({
|
|
3091
3152
|
__name: "ForgeStepper",
|
|
3092
3153
|
props: {
|
|
3093
3154
|
currentStep: { default: 1 },
|
|
@@ -3105,7 +3166,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3105
3166
|
unstyled: { type: Boolean }
|
|
3106
3167
|
},
|
|
3107
3168
|
setup(e) {
|
|
3108
|
-
const t = e, a =
|
|
3169
|
+
const t = e, a = j(() => ({
|
|
3109
3170
|
header: {
|
|
3110
3171
|
class: [
|
|
3111
3172
|
"p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
|
|
@@ -3134,32 +3195,31 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3134
3195
|
]
|
|
3135
3196
|
})
|
|
3136
3197
|
}));
|
|
3137
|
-
return (i,
|
|
3138
|
-
default:
|
|
3139
|
-
|
|
3140
|
-
default:
|
|
3141
|
-
(d(!0),
|
|
3142
|
-
key:
|
|
3143
|
-
value:
|
|
3144
|
-
disabled:
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
i.showStepLabel ? (d(), f("div", fa, B(o.label), 1)) : z("", !0)
|
|
3198
|
+
return (i, o) => (d(), x(c(Ee), { value: i.currentStep }, {
|
|
3199
|
+
default: f(() => [
|
|
3200
|
+
k(c(qe), null, {
|
|
3201
|
+
default: f(() => [
|
|
3202
|
+
(d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Le), _({
|
|
3203
|
+
key: l.value,
|
|
3204
|
+
value: l.value,
|
|
3205
|
+
disabled: l.disabled
|
|
3206
|
+
}, { ref_for: !0 }, { ...i.$attrs }, { pt: a.value }), {
|
|
3207
|
+
default: f(() => [
|
|
3208
|
+
i.showStepLabel ? (d(), b("div", ya, $(l.label), 1)) : T("", !0)
|
|
3149
3209
|
]),
|
|
3150
3210
|
_: 2
|
|
3151
3211
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
3152
3212
|
]),
|
|
3153
3213
|
_: 1
|
|
3154
3214
|
}),
|
|
3155
|
-
|
|
3156
|
-
default:
|
|
3157
|
-
(d(!0),
|
|
3158
|
-
key:
|
|
3159
|
-
value:
|
|
3215
|
+
k(c(He), null, {
|
|
3216
|
+
default: f(() => [
|
|
3217
|
+
(d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Re), {
|
|
3218
|
+
key: l.value,
|
|
3219
|
+
value: l.value
|
|
3160
3220
|
}, {
|
|
3161
|
-
default:
|
|
3162
|
-
F(i.$slots, "step" +
|
|
3221
|
+
default: f(() => [
|
|
3222
|
+
F(i.$slots, "step" + l.value)
|
|
3163
3223
|
]),
|
|
3164
3224
|
_: 2
|
|
3165
3225
|
}, 1032, ["value"]))), 128))
|
|
@@ -3170,7 +3230,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3170
3230
|
_: 3
|
|
3171
3231
|
}, 8, ["value"]));
|
|
3172
3232
|
}
|
|
3173
|
-
}),
|
|
3233
|
+
}), xa = { class: "p-4 text-wrap w-100" }, ha = { class: "p-4 text-wrap w-100" }, Bo = /* @__PURE__ */ z({
|
|
3174
3234
|
__name: "ForgeTile",
|
|
3175
3235
|
props: {
|
|
3176
3236
|
severity: { default: "primary" },
|
|
@@ -3179,32 +3239,32 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3179
3239
|
selected: { type: Boolean, default: !1 }
|
|
3180
3240
|
},
|
|
3181
3241
|
setup(e) {
|
|
3182
|
-
const t = e, a =
|
|
3183
|
-
return (
|
|
3242
|
+
const t = e, a = j(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = j(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
3243
|
+
return (o, l) => {
|
|
3184
3244
|
const n = q;
|
|
3185
|
-
return t.clickable ? (d(),
|
|
3245
|
+
return t.clickable ? (d(), x(n, {
|
|
3186
3246
|
key: 0,
|
|
3187
|
-
class:
|
|
3247
|
+
class: P(["d-flex w-100 p-0 text-body", a.value]),
|
|
3188
3248
|
severity: t.severity,
|
|
3189
3249
|
unstyled: "",
|
|
3190
3250
|
"data-cy": "button-tile"
|
|
3191
3251
|
}, {
|
|
3192
|
-
default:
|
|
3193
|
-
m("div",
|
|
3194
|
-
F(
|
|
3195
|
-
|
|
3252
|
+
default: f(() => [
|
|
3253
|
+
m("div", xa, [
|
|
3254
|
+
F(o.$slots, "default", {}, () => [
|
|
3255
|
+
l[0] || (l[0] = V("Tile Content"))
|
|
3196
3256
|
])
|
|
3197
3257
|
])
|
|
3198
3258
|
]),
|
|
3199
3259
|
_: 3
|
|
3200
|
-
}, 8, ["severity", "class"])) : (d(),
|
|
3260
|
+
}, 8, ["severity", "class"])) : (d(), b("div", {
|
|
3201
3261
|
key: 1,
|
|
3202
|
-
class:
|
|
3262
|
+
class: P(["d-flex w-100", i.value]),
|
|
3203
3263
|
"data-cy": "tile"
|
|
3204
3264
|
}, [
|
|
3205
|
-
m("div",
|
|
3206
|
-
F(
|
|
3207
|
-
|
|
3265
|
+
m("div", ha, [
|
|
3266
|
+
F(o.$slots, "default", {}, () => [
|
|
3267
|
+
l[1] || (l[1] = V("Tile Content"))
|
|
3208
3268
|
])
|
|
3209
3269
|
])
|
|
3210
3270
|
], 2));
|
|
@@ -3214,13 +3274,13 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
|
|
|
3214
3274
|
function ee(e, t) {
|
|
3215
3275
|
return e > 1 ? `${t}s` : t;
|
|
3216
3276
|
}
|
|
3217
|
-
const
|
|
3277
|
+
const wa = {
|
|
3218
3278
|
class: "d-flex justify-content-start align-items-baseline",
|
|
3219
3279
|
"data-cy": "pagination-header"
|
|
3220
|
-
},
|
|
3280
|
+
}, ka = { class: "ms-2" }, Ba = { key: 0 }, $a = {
|
|
3221
3281
|
class: "w-auto",
|
|
3222
3282
|
"data-cy": "total"
|
|
3223
|
-
}, he = /* @__PURE__ */
|
|
3283
|
+
}, he = /* @__PURE__ */ z({
|
|
3224
3284
|
__name: "ForgePaginationHeader",
|
|
3225
3285
|
props: {
|
|
3226
3286
|
total: {},
|
|
@@ -3229,33 +3289,33 @@ const ya = {
|
|
|
3229
3289
|
},
|
|
3230
3290
|
emits: ["update:perPage"],
|
|
3231
3291
|
setup(e, { emit: t }) {
|
|
3232
|
-
const a = t, i = e,
|
|
3292
|
+
const a = t, i = e, o = (n) => {
|
|
3233
3293
|
a("update:perPage", n.value);
|
|
3234
|
-
},
|
|
3294
|
+
}, l = j(() => {
|
|
3235
3295
|
const n = Math.ceil(i.total / i.perPage);
|
|
3236
3296
|
return `${n} ${ee(n, "page")}`;
|
|
3237
3297
|
});
|
|
3238
|
-
return (n, s) => (d(),
|
|
3239
|
-
s[2] || (s[2] =
|
|
3240
|
-
m("div",
|
|
3241
|
-
|
|
3298
|
+
return (n, s) => (d(), b("div", wa, [
|
|
3299
|
+
s[2] || (s[2] = V(" Number of results per page ")),
|
|
3300
|
+
m("div", ka, [
|
|
3301
|
+
k(c(oe), {
|
|
3242
3302
|
options: i.pageSizes,
|
|
3243
3303
|
"model-value": i.perPage,
|
|
3244
3304
|
class: "page-size",
|
|
3245
|
-
onChange: s[0] || (s[0] = (p) =>
|
|
3305
|
+
onChange: s[0] || (s[0] = (p) => o(p)),
|
|
3246
3306
|
"data-cy": "pagination-page-size-select"
|
|
3247
3307
|
}, null, 8, ["options", "model-value"])
|
|
3248
3308
|
]),
|
|
3249
|
-
i.total ? (d(),
|
|
3309
|
+
i.total ? (d(), b("div", Ba, [
|
|
3250
3310
|
s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
3251
|
-
m("span",
|
|
3252
|
-
])) :
|
|
3311
|
+
m("span", $a, $(i.total) + " " + $(c(ee)(i.total, "result")) + " across " + $(l.value), 1)
|
|
3312
|
+
])) : T("", !0)
|
|
3253
3313
|
]));
|
|
3254
3314
|
}
|
|
3255
|
-
}),
|
|
3315
|
+
}), Fa = { class: "position-relative" }, Sa = { "data-cy": "above-table-slot" }, Ca = { class: "d-flex w-100" }, Ta = {
|
|
3256
3316
|
class: "mx-auto",
|
|
3257
3317
|
"data-cy": "empty-message"
|
|
3258
|
-
},
|
|
3318
|
+
}, za = { class: "d-flex" }, Pa = { class: "d-flex align-items-end mb-2" }, _a = { key: 0 }, ja = { class: "ms-auto" }, $o = /* @__PURE__ */ z({
|
|
3259
3319
|
__name: "ForgeTable",
|
|
3260
3320
|
props: {
|
|
3261
3321
|
value: {},
|
|
@@ -3342,7 +3402,7 @@ const ya = {
|
|
|
3342
3402
|
},
|
|
3343
3403
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3344
3404
|
setup(e, { emit: t }) {
|
|
3345
|
-
const a = t, i = e,
|
|
3405
|
+
const a = t, i = e, o = M(), l = M([5, 10, 20, 50, 100]), n = M(i.perPage ?? 10), s = M({
|
|
3346
3406
|
filters: i.filters,
|
|
3347
3407
|
perPage: n.value,
|
|
3348
3408
|
page: 0,
|
|
@@ -3350,13 +3410,13 @@ const ya = {
|
|
|
3350
3410
|
sortField: "",
|
|
3351
3411
|
total: i.totalRecords ?? i.value.length
|
|
3352
3412
|
});
|
|
3353
|
-
|
|
3354
|
-
|
|
3413
|
+
W(() => i.perPage, (v) => {
|
|
3414
|
+
v && (n.value = v, s.value.perPage = v);
|
|
3355
3415
|
});
|
|
3356
|
-
const p =
|
|
3357
|
-
const
|
|
3358
|
-
return `${
|
|
3359
|
-
}),
|
|
3416
|
+
const p = j(() => i.totalRecords ?? i.value.length), u = j(() => {
|
|
3417
|
+
const v = Math.ceil(p.value / n.value);
|
|
3418
|
+
return `${v} ${ee(v, "page")}`;
|
|
3419
|
+
}), h = j(() => ({
|
|
3360
3420
|
thead: () => ({
|
|
3361
3421
|
class: [
|
|
3362
3422
|
{
|
|
@@ -3383,153 +3443,153 @@ const ya = {
|
|
|
3383
3443
|
if (i.clearAll)
|
|
3384
3444
|
i.clearAll();
|
|
3385
3445
|
else
|
|
3386
|
-
for (const
|
|
3387
|
-
typeof i.filters[
|
|
3388
|
-
|
|
3389
|
-
},
|
|
3390
|
-
|
|
3391
|
-
},
|
|
3392
|
-
var
|
|
3393
|
-
s.value.sortDirection =
|
|
3394
|
-
},
|
|
3395
|
-
s.value.filters =
|
|
3396
|
-
},
|
|
3397
|
-
s.value.page =
|
|
3398
|
-
},
|
|
3446
|
+
for (const v in i.filters)
|
|
3447
|
+
typeof i.filters[v] == "string" ? i.filters[v] = "" : i.filters[v].value = null;
|
|
3448
|
+
C(i.filters);
|
|
3449
|
+
}, w = () => {
|
|
3450
|
+
o.value.exportCSV();
|
|
3451
|
+
}, g = (v) => {
|
|
3452
|
+
var B;
|
|
3453
|
+
s.value.sortDirection = v.sortOrder === 1 ? "Asc" : v.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((B = v.sortField) == null ? void 0 : B.toString()) ?? "", a("update:tableContext", s.value), a("sort", v);
|
|
3454
|
+
}, C = (v) => {
|
|
3455
|
+
s.value.filters = v, a("update:tableContext", s.value), a("update:filters", v);
|
|
3456
|
+
}, S = (v) => {
|
|
3457
|
+
s.value.page = v.page, a("update:tableContext", s.value), a("page", v);
|
|
3458
|
+
}, A = () => {
|
|
3399
3459
|
s.value.perPage = n.value, a("update:tableContext", s.value);
|
|
3400
3460
|
};
|
|
3401
|
-
return
|
|
3402
|
-
s.value.filters =
|
|
3403
|
-
}, { deep: !0 }),
|
|
3404
|
-
m("span",
|
|
3405
|
-
F(
|
|
3461
|
+
return W(() => i.filters, (v) => {
|
|
3462
|
+
s.value.filters = v, a("update:tableContext", s.value);
|
|
3463
|
+
}, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (v, B) => (d(), b("div", Fa, [
|
|
3464
|
+
m("span", Sa, [
|
|
3465
|
+
F(v.$slots, "above-table")
|
|
3406
3466
|
]),
|
|
3407
|
-
|
|
3467
|
+
k(c(We), _({
|
|
3408
3468
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3409
|
-
}, { ...i, ...
|
|
3410
|
-
pt:
|
|
3469
|
+
}, { ...i, ...v.$attrs }, {
|
|
3470
|
+
pt: h.value,
|
|
3411
3471
|
rows: n.value,
|
|
3412
3472
|
"total-records": p.value,
|
|
3413
3473
|
"filter-display": i.filters ? "row" : void 0,
|
|
3414
3474
|
ref_key: "forgeTable",
|
|
3415
|
-
ref:
|
|
3475
|
+
ref: o,
|
|
3416
3476
|
"data-cy": "table",
|
|
3417
|
-
"onUpdate:filters":
|
|
3418
|
-
onSort:
|
|
3419
|
-
onPage:
|
|
3477
|
+
"onUpdate:filters": C,
|
|
3478
|
+
onSort: g,
|
|
3479
|
+
onPage: S,
|
|
3420
3480
|
showHeaders: ""
|
|
3421
|
-
}),
|
|
3422
|
-
empty:
|
|
3423
|
-
m("div",
|
|
3424
|
-
m("h5",
|
|
3481
|
+
}), ie({
|
|
3482
|
+
empty: f(() => [
|
|
3483
|
+
m("div", Ca, [
|
|
3484
|
+
m("h5", Ta, $(v.emptyMessage ?? "No items Found."), 1)
|
|
3425
3485
|
])
|
|
3426
3486
|
]),
|
|
3427
|
-
header:
|
|
3487
|
+
header: f(() => [
|
|
3428
3488
|
m("div", {
|
|
3429
|
-
class:
|
|
3489
|
+
class: P(i.loading ? "opacity-50" : "")
|
|
3430
3490
|
}, [
|
|
3431
|
-
m("div",
|
|
3432
|
-
m("div",
|
|
3433
|
-
|
|
3434
|
-
|
|
3491
|
+
m("div", za, [
|
|
3492
|
+
m("div", Pa, [
|
|
3493
|
+
v.paginator && !v.legacyPaginationFooter ? (d(), b("span", _a, [
|
|
3494
|
+
k(he, {
|
|
3435
3495
|
total: p.value,
|
|
3436
|
-
"page-sizes":
|
|
3496
|
+
"page-sizes": l.value,
|
|
3437
3497
|
"per-page": n.value,
|
|
3438
3498
|
"onUpdate:perPage": [
|
|
3439
|
-
|
|
3440
|
-
|
|
3499
|
+
B[0] || (B[0] = (D) => n.value = D),
|
|
3500
|
+
A
|
|
3441
3501
|
]
|
|
3442
3502
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3443
|
-
])) :
|
|
3503
|
+
])) : T("", !0)
|
|
3444
3504
|
]),
|
|
3445
|
-
m("div",
|
|
3446
|
-
|
|
3505
|
+
m("div", ja, [
|
|
3506
|
+
v.showClearButton ? (d(), x(c(q), {
|
|
3447
3507
|
key: 0,
|
|
3448
3508
|
outlined: "",
|
|
3449
|
-
class:
|
|
3509
|
+
class: P(v.showExporterButton ? "me-2" : ""),
|
|
3450
3510
|
onClick: r,
|
|
3451
3511
|
"data-cy": "clear-all"
|
|
3452
3512
|
}, {
|
|
3453
|
-
default:
|
|
3454
|
-
|
|
3513
|
+
default: f(() => [
|
|
3514
|
+
k(c(I), {
|
|
3455
3515
|
icon: "bi:funnel-fill",
|
|
3456
3516
|
width: "24",
|
|
3457
3517
|
height: "24"
|
|
3458
3518
|
}),
|
|
3459
|
-
|
|
3519
|
+
B[2] || (B[2] = V(" Clear "))
|
|
3460
3520
|
]),
|
|
3461
3521
|
_: 1,
|
|
3462
3522
|
__: [2]
|
|
3463
|
-
}, 8, ["class"])) :
|
|
3464
|
-
|
|
3523
|
+
}, 8, ["class"])) : T("", !0),
|
|
3524
|
+
v.showExporterButton ? (d(), x(c(q), {
|
|
3465
3525
|
key: 1,
|
|
3466
3526
|
outlined: "",
|
|
3467
|
-
onClick:
|
|
3527
|
+
onClick: w,
|
|
3468
3528
|
"data-cy": "exporter"
|
|
3469
3529
|
}, {
|
|
3470
|
-
default:
|
|
3471
|
-
|
|
3530
|
+
default: f(() => [
|
|
3531
|
+
k(c(I), {
|
|
3472
3532
|
icon: "typcn:export",
|
|
3473
3533
|
width: "24",
|
|
3474
3534
|
height: "24"
|
|
3475
3535
|
}),
|
|
3476
|
-
|
|
3536
|
+
B[3] || (B[3] = V(" Export "))
|
|
3477
3537
|
]),
|
|
3478
3538
|
_: 1,
|
|
3479
3539
|
__: [3]
|
|
3480
|
-
})) :
|
|
3481
|
-
F(
|
|
3540
|
+
})) : T("", !0),
|
|
3541
|
+
F(v.$slots, "column-customiser")
|
|
3482
3542
|
])
|
|
3483
3543
|
])
|
|
3484
3544
|
], 2)
|
|
3485
3545
|
]),
|
|
3486
|
-
default:
|
|
3487
|
-
F(
|
|
3546
|
+
default: f(() => [
|
|
3547
|
+
F(v.$slots, "default")
|
|
3488
3548
|
]),
|
|
3489
3549
|
_: 2
|
|
3490
3550
|
}, [
|
|
3491
|
-
|
|
3492
|
-
name:
|
|
3493
|
-
fn:
|
|
3494
|
-
F(
|
|
3551
|
+
L(v.$slots, (D, y) => ({
|
|
3552
|
+
name: y,
|
|
3553
|
+
fn: f((O) => [
|
|
3554
|
+
F(v.$slots, y, G(Y(O || {})))
|
|
3495
3555
|
])
|
|
3496
3556
|
})),
|
|
3497
|
-
|
|
3557
|
+
v.legacyPaginationFooter ? {
|
|
3498
3558
|
name: "paginatorstart",
|
|
3499
|
-
fn:
|
|
3559
|
+
fn: f(() => [
|
|
3500
3560
|
m("span", {
|
|
3501
|
-
class:
|
|
3561
|
+
class: P(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3502
3562
|
"data-cy": "legacy-page-size"
|
|
3503
3563
|
}, [
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
options:
|
|
3564
|
+
B[4] || (B[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3565
|
+
k(c(oe), {
|
|
3566
|
+
options: l.value,
|
|
3507
3567
|
modelValue: n.value,
|
|
3508
|
-
"onUpdate:modelValue":
|
|
3568
|
+
"onUpdate:modelValue": B[1] || (B[1] = (D) => n.value = D),
|
|
3509
3569
|
class: "ms-2",
|
|
3510
|
-
onClick:
|
|
3570
|
+
onClick: A
|
|
3511
3571
|
}, null, 8, ["options", "modelValue"])
|
|
3512
3572
|
], 2)
|
|
3513
3573
|
]),
|
|
3514
3574
|
key: "0"
|
|
3515
3575
|
} : void 0,
|
|
3516
|
-
|
|
3576
|
+
v.legacyPaginationFooter ? {
|
|
3517
3577
|
name: "paginatorend",
|
|
3518
|
-
fn:
|
|
3578
|
+
fn: f(() => [
|
|
3519
3579
|
m("span", {
|
|
3520
3580
|
"data-cy": "legacy-total",
|
|
3521
|
-
class:
|
|
3522
|
-
},
|
|
3581
|
+
class: P(i.loading ? "opacity-50" : "")
|
|
3582
|
+
}, $(p.value) + " " + $(c(ee)(p.value, "result")) + " across " + $(u.value), 3)
|
|
3523
3583
|
]),
|
|
3524
3584
|
key: "1"
|
|
3525
3585
|
} : void 0
|
|
3526
3586
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3527
3587
|
]));
|
|
3528
3588
|
}
|
|
3529
|
-
}),
|
|
3589
|
+
}), Ma = { class: "position-relative" }, Ia = { "data-cy": "above-table-slot" }, Va = { class: "d-flex w-100" }, Da = {
|
|
3530
3590
|
class: "mx-auto",
|
|
3531
3591
|
"data-cy": "empty-message"
|
|
3532
|
-
},
|
|
3592
|
+
}, Oa = { class: "d-flex" }, Aa = { class: "d-flex align-items-end mb-2" }, Na = { key: 0 }, Ua = { class: "ms-auto" }, Fo = /* @__PURE__ */ z({
|
|
3533
3593
|
__name: "ForgeTreeTable",
|
|
3534
3594
|
props: {
|
|
3535
3595
|
stripedRows: { type: Boolean, default: !1 },
|
|
@@ -3590,28 +3650,28 @@ const ya = {
|
|
|
3590
3650
|
},
|
|
3591
3651
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3592
3652
|
setup(e, { emit: t }) {
|
|
3593
|
-
const a = e, i = t,
|
|
3653
|
+
const a = e, i = t, o = M([5, 10, 20, 50, 100]), l = M(10), n = M(0), s = M(0), p = M({
|
|
3594
3654
|
filters: a.filters,
|
|
3595
|
-
perPage:
|
|
3655
|
+
perPage: l.value,
|
|
3596
3656
|
page: 0,
|
|
3597
3657
|
sortDirection: "None",
|
|
3598
3658
|
sortField: "",
|
|
3599
3659
|
total: a.totalRecords ?? a.value.length
|
|
3600
|
-
}),
|
|
3601
|
-
const
|
|
3602
|
-
return `${
|
|
3603
|
-
}), r =
|
|
3660
|
+
}), u = j(() => a.totalRecords ?? a.value.length), h = j(() => {
|
|
3661
|
+
const y = Math.ceil(u.value / l.value);
|
|
3662
|
+
return `${y} ${ee(y, "page")}`;
|
|
3663
|
+
}), r = j(() => ({
|
|
3604
3664
|
root: "position-relative",
|
|
3605
|
-
table: (
|
|
3665
|
+
table: (y) => ({
|
|
3606
3666
|
class: [
|
|
3607
3667
|
"table position-relative",
|
|
3608
3668
|
{
|
|
3609
|
-
"table-striped":
|
|
3610
|
-
"table-hover":
|
|
3611
|
-
"table-bordered":
|
|
3612
|
-
"table-sm":
|
|
3613
|
-
"table-lg":
|
|
3614
|
-
"opacity-50":
|
|
3669
|
+
"table-striped": y.attrs.stripedRows,
|
|
3670
|
+
"table-hover": y.props.rowHover,
|
|
3671
|
+
"table-bordered": y.props.showGridlines,
|
|
3672
|
+
"table-sm": y.props.size === "small",
|
|
3673
|
+
"table-lg": y.props.size === "large",
|
|
3674
|
+
"opacity-50": y.props.loading
|
|
3615
3675
|
}
|
|
3616
3676
|
]
|
|
3617
3677
|
}),
|
|
@@ -3629,184 +3689,184 @@ const ya = {
|
|
|
3629
3689
|
}
|
|
3630
3690
|
]
|
|
3631
3691
|
}),
|
|
3632
|
-
row: ({ instance:
|
|
3692
|
+
row: ({ instance: y }) => [
|
|
3633
3693
|
{
|
|
3634
|
-
"parent-node":
|
|
3694
|
+
"parent-node": y.node.hasOwnProperty("children")
|
|
3635
3695
|
}
|
|
3636
3696
|
]
|
|
3637
3697
|
}));
|
|
3638
|
-
|
|
3639
|
-
|
|
3698
|
+
W(() => a.parentExpanderFullRow, (y) => {
|
|
3699
|
+
y ? w() : g();
|
|
3640
3700
|
});
|
|
3641
|
-
const
|
|
3701
|
+
const w = () => {
|
|
3642
3702
|
a.parentExpanderFullRow && setTimeout(
|
|
3643
3703
|
() => {
|
|
3644
|
-
const
|
|
3704
|
+
const y = Array.from(
|
|
3645
3705
|
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3646
3706
|
);
|
|
3647
3707
|
Array.from(
|
|
3648
3708
|
document.querySelectorAll(".parent-node td")
|
|
3649
|
-
).forEach((
|
|
3650
|
-
|
|
3651
|
-
}),
|
|
3652
|
-
|
|
3709
|
+
).forEach((R) => {
|
|
3710
|
+
R.classList.add("d-none");
|
|
3711
|
+
}), y.forEach((R) => {
|
|
3712
|
+
R.setAttribute("colspan", a.totalColumns.toString()), R.classList.remove("d-none");
|
|
3653
3713
|
});
|
|
3654
3714
|
},
|
|
3655
3715
|
0
|
|
3656
3716
|
);
|
|
3657
|
-
},
|
|
3717
|
+
}, g = () => {
|
|
3658
3718
|
setTimeout(
|
|
3659
3719
|
() => {
|
|
3660
|
-
const
|
|
3720
|
+
const y = Array.from(
|
|
3661
3721
|
document.querySelectorAll(".parent-node td.expander-cell")
|
|
3662
|
-
),
|
|
3722
|
+
), O = Array.from(
|
|
3663
3723
|
document.querySelectorAll(".parent-node td")
|
|
3664
3724
|
);
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
}),
|
|
3668
|
-
|
|
3725
|
+
y.forEach((R) => {
|
|
3726
|
+
R.removeAttribute("colspan");
|
|
3727
|
+
}), O.forEach((R) => {
|
|
3728
|
+
R.classList.remove("d-none");
|
|
3669
3729
|
});
|
|
3670
3730
|
},
|
|
3671
3731
|
0
|
|
3672
3732
|
);
|
|
3673
|
-
},
|
|
3733
|
+
}, C = () => {
|
|
3674
3734
|
if (a.clearAll)
|
|
3675
3735
|
a.clearAll();
|
|
3676
3736
|
else
|
|
3677
|
-
for (const
|
|
3678
|
-
typeof a.filters[
|
|
3679
|
-
|
|
3680
|
-
},
|
|
3681
|
-
var
|
|
3682
|
-
p.value.sortDirection =
|
|
3683
|
-
},
|
|
3684
|
-
p.value.filters =
|
|
3685
|
-
},
|
|
3686
|
-
p.value.page = s.value =
|
|
3687
|
-
},
|
|
3688
|
-
p.value.perPage =
|
|
3737
|
+
for (const y in a.filters)
|
|
3738
|
+
typeof a.filters[y] == "string" ? a.filters[y] = "" : a.filters[y].value = null;
|
|
3739
|
+
A(a.filters);
|
|
3740
|
+
}, S = (y) => {
|
|
3741
|
+
var O;
|
|
3742
|
+
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();
|
|
3743
|
+
}, A = (y) => {
|
|
3744
|
+
p.value.filters = y, i("update:tableContext", p.value), i("update:filters", y), w();
|
|
3745
|
+
}, v = (y) => {
|
|
3746
|
+
p.value.page = s.value = y.page, D(), i("update:tableContext", p.value), i("page", y), w();
|
|
3747
|
+
}, B = () => {
|
|
3748
|
+
p.value.perPage = l.value, s.value = 0, p.value.page = s.value = Math.floor(n.value / l.value), D(), i("update:tableContext", p.value), w();
|
|
3689
3749
|
};
|
|
3690
|
-
|
|
3691
|
-
p.value.filters =
|
|
3692
|
-
}, { deep: !0 }),
|
|
3693
|
-
|
|
3694
|
-
}),
|
|
3695
|
-
|
|
3750
|
+
W(() => a.filters, (y) => {
|
|
3751
|
+
p.value.filters = y, i("update:tableContext", p.value);
|
|
3752
|
+
}, { deep: !0 }), W(() => a.value, () => {
|
|
3753
|
+
w();
|
|
3754
|
+
}), ne(() => {
|
|
3755
|
+
w(), i("update:tableContext", p.value);
|
|
3696
3756
|
});
|
|
3697
|
-
const
|
|
3698
|
-
n.value = s.value *
|
|
3757
|
+
const D = () => {
|
|
3758
|
+
n.value = s.value * l.value;
|
|
3699
3759
|
};
|
|
3700
|
-
return (
|
|
3701
|
-
m("span",
|
|
3702
|
-
F(
|
|
3760
|
+
return (y, O) => (d(), b("div", Ma, [
|
|
3761
|
+
m("span", Ia, [
|
|
3762
|
+
F(y.$slots, "above-table")
|
|
3703
3763
|
]),
|
|
3704
|
-
|
|
3764
|
+
k(c(Ge), _({
|
|
3705
3765
|
class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
|
|
3706
|
-
}, { ...a, ...
|
|
3766
|
+
}, { ...a, ...y.$attrs }, {
|
|
3707
3767
|
pt: r.value,
|
|
3708
3768
|
"filter-display": a.filters ? "row" : void 0,
|
|
3709
|
-
rows:
|
|
3769
|
+
rows: y.paginator ? l.value : void 0,
|
|
3710
3770
|
"data-cy": "tree-table",
|
|
3711
|
-
"onUpdate:filters":
|
|
3712
|
-
onSort:
|
|
3713
|
-
onPage:
|
|
3714
|
-
onNodeExpand:
|
|
3771
|
+
"onUpdate:filters": A,
|
|
3772
|
+
onSort: S,
|
|
3773
|
+
onPage: v,
|
|
3774
|
+
onNodeExpand: O[2] || (O[2] = () => w()),
|
|
3715
3775
|
showHeaders: "",
|
|
3716
3776
|
first: n.value
|
|
3717
|
-
}),
|
|
3718
|
-
empty:
|
|
3719
|
-
m("div",
|
|
3720
|
-
m("h5",
|
|
3777
|
+
}), ie({
|
|
3778
|
+
empty: f(() => [
|
|
3779
|
+
m("div", Va, [
|
|
3780
|
+
m("h5", Da, $(y.emptyMessage ?? "No items Found."), 1)
|
|
3721
3781
|
])
|
|
3722
3782
|
]),
|
|
3723
|
-
header:
|
|
3783
|
+
header: f(() => [
|
|
3724
3784
|
m("div", {
|
|
3725
|
-
class:
|
|
3785
|
+
class: P(a.loading ? "opacity-50" : "")
|
|
3726
3786
|
}, [
|
|
3727
|
-
m("div",
|
|
3728
|
-
m("div",
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
total:
|
|
3732
|
-
"page-sizes":
|
|
3733
|
-
"per-page":
|
|
3787
|
+
m("div", Oa, [
|
|
3788
|
+
m("div", Aa, [
|
|
3789
|
+
y.paginator && !y.legacyPaginationFooter ? (d(), b("span", Na, [
|
|
3790
|
+
k(he, {
|
|
3791
|
+
total: u.value,
|
|
3792
|
+
"page-sizes": o.value,
|
|
3793
|
+
"per-page": l.value,
|
|
3734
3794
|
"onUpdate:perPage": [
|
|
3735
|
-
|
|
3736
|
-
|
|
3795
|
+
O[0] || (O[0] = (R) => l.value = R),
|
|
3796
|
+
B
|
|
3737
3797
|
]
|
|
3738
3798
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3739
|
-
])) :
|
|
3799
|
+
])) : T("", !0)
|
|
3740
3800
|
]),
|
|
3741
|
-
m("div",
|
|
3742
|
-
|
|
3801
|
+
m("div", Ua, [
|
|
3802
|
+
y.showClearButton ? (d(), x(c(q), {
|
|
3743
3803
|
key: 0,
|
|
3744
3804
|
outlined: "",
|
|
3745
|
-
onClick:
|
|
3805
|
+
onClick: C,
|
|
3746
3806
|
"data-cy": "clear-all"
|
|
3747
3807
|
}, {
|
|
3748
|
-
default:
|
|
3749
|
-
|
|
3808
|
+
default: f(() => [
|
|
3809
|
+
k(c(I), {
|
|
3750
3810
|
icon: "bi:funnel-fill",
|
|
3751
3811
|
width: "24",
|
|
3752
3812
|
height: "24"
|
|
3753
3813
|
}),
|
|
3754
|
-
|
|
3814
|
+
O[3] || (O[3] = V(" Clear "))
|
|
3755
3815
|
]),
|
|
3756
3816
|
_: 1,
|
|
3757
3817
|
__: [3]
|
|
3758
|
-
})) :
|
|
3759
|
-
F(
|
|
3818
|
+
})) : T("", !0),
|
|
3819
|
+
F(y.$slots, "column-customiser")
|
|
3760
3820
|
])
|
|
3761
3821
|
])
|
|
3762
3822
|
], 2)
|
|
3763
3823
|
]),
|
|
3764
|
-
default:
|
|
3765
|
-
F(
|
|
3824
|
+
default: f(() => [
|
|
3825
|
+
F(y.$slots, "default")
|
|
3766
3826
|
]),
|
|
3767
3827
|
_: 2
|
|
3768
3828
|
}, [
|
|
3769
|
-
|
|
3829
|
+
L(y.$slots, (R, ve) => ({
|
|
3770
3830
|
name: ve,
|
|
3771
|
-
fn:
|
|
3772
|
-
F(
|
|
3831
|
+
fn: f((Be) => [
|
|
3832
|
+
F(y.$slots, ve, G(Y(Be || {})))
|
|
3773
3833
|
])
|
|
3774
3834
|
})),
|
|
3775
|
-
|
|
3835
|
+
y.legacyPaginationFooter ? {
|
|
3776
3836
|
name: "paginatorstart",
|
|
3777
|
-
fn:
|
|
3837
|
+
fn: f(() => [
|
|
3778
3838
|
m("span", {
|
|
3779
|
-
class:
|
|
3839
|
+
class: P(["d-flex", a.loading ? "opacity-50" : ""]),
|
|
3780
3840
|
"data-cy": "legacy-page-size"
|
|
3781
3841
|
}, [
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
options:
|
|
3785
|
-
modelValue:
|
|
3786
|
-
"onUpdate:modelValue":
|
|
3842
|
+
O[4] || (O[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3843
|
+
k(c(oe), {
|
|
3844
|
+
options: o.value,
|
|
3845
|
+
modelValue: l.value,
|
|
3846
|
+
"onUpdate:modelValue": O[1] || (O[1] = (R) => l.value = R),
|
|
3787
3847
|
class: "ms-2",
|
|
3788
|
-
onClick:
|
|
3848
|
+
onClick: B
|
|
3789
3849
|
}, null, 8, ["options", "modelValue"])
|
|
3790
3850
|
], 2)
|
|
3791
3851
|
]),
|
|
3792
3852
|
key: "0"
|
|
3793
3853
|
} : void 0,
|
|
3794
|
-
|
|
3854
|
+
y.legacyPaginationFooter ? {
|
|
3795
3855
|
name: "paginatorend",
|
|
3796
|
-
fn:
|
|
3856
|
+
fn: f(() => [
|
|
3797
3857
|
m("span", {
|
|
3798
3858
|
"data-cy": "legacy-total",
|
|
3799
|
-
class:
|
|
3800
|
-
},
|
|
3859
|
+
class: P(a.loading ? "opacity-50" : "")
|
|
3860
|
+
}, $(u.value) + " " + $(c(ee)(u.value, "result")) + " across " + $(h.value), 3)
|
|
3801
3861
|
]),
|
|
3802
3862
|
key: "1"
|
|
3803
3863
|
} : void 0
|
|
3804
3864
|
]), 1040, ["class", "pt", "filter-display", "rows", "first"])
|
|
3805
3865
|
]));
|
|
3806
3866
|
}
|
|
3807
|
-
}),
|
|
3867
|
+
}), La = { class: "d-flex position-relative" }, Ea = { class: "d-flex w-100" }, So = /* @__PURE__ */ z({
|
|
3808
3868
|
__name: "ForgeFilterHeader",
|
|
3809
|
-
props: /* @__PURE__ */
|
|
3869
|
+
props: /* @__PURE__ */ E({
|
|
3810
3870
|
dataType: {},
|
|
3811
3871
|
dropdownOptions: {},
|
|
3812
3872
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -3819,57 +3879,57 @@ const ya = {
|
|
|
3819
3879
|
}),
|
|
3820
3880
|
emits: ["update:modelValue"],
|
|
3821
3881
|
setup(e) {
|
|
3822
|
-
const t = N(e, "modelValue"), a = (
|
|
3823
|
-
if (!
|
|
3824
|
-
return
|
|
3882
|
+
const t = N(e, "modelValue"), a = (o, l) => {
|
|
3883
|
+
if (!o || Array.isArray(o) && o.length === 0)
|
|
3884
|
+
return l;
|
|
3825
3885
|
const n = (s) => {
|
|
3826
|
-
var
|
|
3827
|
-
const p = (
|
|
3828
|
-
(
|
|
3886
|
+
var u;
|
|
3887
|
+
const p = (u = e.dropdownOptions) == null ? void 0 : u.find(
|
|
3888
|
+
(h) => e.optionValue ? h[e.optionValue] === s : Object.keys(h).every((r) => s.hasOwnProperty(r) && h[r] === s[r])
|
|
3829
3889
|
);
|
|
3830
3890
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3831
3891
|
};
|
|
3832
|
-
return Array.isArray(
|
|
3892
|
+
return Array.isArray(o) ? o.map(n).join(", ") : n(o);
|
|
3833
3893
|
}, i = () => {
|
|
3834
3894
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3835
3895
|
};
|
|
3836
|
-
return (
|
|
3896
|
+
return (o, l) => {
|
|
3837
3897
|
const n = fe, s = q;
|
|
3838
|
-
return d(),
|
|
3839
|
-
|
|
3898
|
+
return d(), b("div", La, [
|
|
3899
|
+
o.dataType === "numeric" ? (d(), x(n, _({
|
|
3840
3900
|
key: 0,
|
|
3841
3901
|
modelValue: t.value,
|
|
3842
|
-
"onUpdate:modelValue":
|
|
3902
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => t.value = p),
|
|
3843
3903
|
modelModifiers: { trim: !0 }
|
|
3844
|
-
},
|
|
3904
|
+
}, o.$attrs), null, 16, ["modelValue"])) : o.dataType === "date" ? (d(), x(xe, _({
|
|
3845
3905
|
key: 1,
|
|
3846
3906
|
modelValue: t.value,
|
|
3847
|
-
"onUpdate:modelValue":
|
|
3848
|
-
},
|
|
3907
|
+
"onUpdate:modelValue": l[1] || (l[1] = (p) => t.value = p)
|
|
3908
|
+
}, o.$attrs, {
|
|
3849
3909
|
"show-icon": !1,
|
|
3850
3910
|
"show-on-focus": !0
|
|
3851
|
-
}), null, 16, ["modelValue"])) :
|
|
3911
|
+
}), null, 16, ["modelValue"])) : o.dataType === "select" ? (d(), x(c(oe), _({
|
|
3852
3912
|
key: 2,
|
|
3853
3913
|
modelValue: t.value,
|
|
3854
|
-
"onUpdate:modelValue":
|
|
3855
|
-
},
|
|
3856
|
-
options:
|
|
3857
|
-
"option-value":
|
|
3858
|
-
"option-label":
|
|
3914
|
+
"onUpdate:modelValue": l[2] || (l[2] = (p) => t.value = p)
|
|
3915
|
+
}, o.$attrs, {
|
|
3916
|
+
options: o.dropdownOptions,
|
|
3917
|
+
"option-value": o.optionValue,
|
|
3918
|
+
"option-label": o.optionLabel
|
|
3859
3919
|
}), {
|
|
3860
|
-
value:
|
|
3861
|
-
m("div",
|
|
3920
|
+
value: f(({ value: p, placeholder: u }) => [
|
|
3921
|
+
m("div", Ea, [
|
|
3862
3922
|
m("span", {
|
|
3863
|
-
class:
|
|
3864
|
-
},
|
|
3865
|
-
|
|
3923
|
+
class: P({ "filter-placeholder": p === null })
|
|
3924
|
+
}, $(a(p, u)), 3),
|
|
3925
|
+
o.showClearButton && t.value !== null ? (d(), x(s, {
|
|
3866
3926
|
key: 0,
|
|
3867
3927
|
onClick: Q(i, ["prevent"]),
|
|
3868
3928
|
size: "small",
|
|
3869
3929
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3870
3930
|
}, {
|
|
3871
|
-
default:
|
|
3872
|
-
|
|
3931
|
+
default: f(() => [
|
|
3932
|
+
k(c(I), {
|
|
3873
3933
|
icon: "bi:x",
|
|
3874
3934
|
width: "1rem",
|
|
3875
3935
|
height: "1rem",
|
|
@@ -3877,34 +3937,34 @@ const ya = {
|
|
|
3877
3937
|
})
|
|
3878
3938
|
]),
|
|
3879
3939
|
_: 1
|
|
3880
|
-
})) :
|
|
3940
|
+
})) : T("", !0)
|
|
3881
3941
|
])
|
|
3882
3942
|
]),
|
|
3883
3943
|
_: 1
|
|
3884
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) :
|
|
3944
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : o.dataType === "multiselect" ? (d(), x(c(de), _({
|
|
3885
3945
|
key: 3,
|
|
3886
3946
|
modelValue: t.value,
|
|
3887
|
-
"onUpdate:modelValue":
|
|
3888
|
-
},
|
|
3889
|
-
options:
|
|
3947
|
+
"onUpdate:modelValue": l[3] || (l[3] = (p) => t.value = p)
|
|
3948
|
+
}, o.$attrs, {
|
|
3949
|
+
options: o.dropdownOptions,
|
|
3890
3950
|
showToggleAll: !1,
|
|
3891
|
-
"option-label":
|
|
3892
|
-
"option-value":
|
|
3951
|
+
"option-label": o.optionLabel,
|
|
3952
|
+
"option-value": o.optionValue,
|
|
3893
3953
|
filter: ""
|
|
3894
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(),
|
|
3954
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), x(c(ae), _({
|
|
3895
3955
|
key: 4,
|
|
3896
3956
|
modelValue: t.value,
|
|
3897
|
-
"onUpdate:modelValue":
|
|
3957
|
+
"onUpdate:modelValue": l[4] || (l[4] = (p) => t.value = p),
|
|
3898
3958
|
modelModifiers: { trim: !0 }
|
|
3899
|
-
},
|
|
3900
|
-
|
|
3959
|
+
}, o.$attrs), null, 16, ["modelValue"])),
|
|
3960
|
+
o.showClearButton && t.value !== null && o.dataType !== "select" && o.dataType !== "multiselect" && o.dataType !== "date" ? (d(), x(s, {
|
|
3901
3961
|
key: 5,
|
|
3902
3962
|
onClick: Q(i, ["prevent"]),
|
|
3903
3963
|
size: "small",
|
|
3904
3964
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3905
3965
|
}, {
|
|
3906
|
-
default:
|
|
3907
|
-
|
|
3966
|
+
default: f(() => [
|
|
3967
|
+
k(c(I), {
|
|
3908
3968
|
icon: "bi:x",
|
|
3909
3969
|
width: "1rem",
|
|
3910
3970
|
height: "1rem",
|
|
@@ -3912,7 +3972,7 @@ const ya = {
|
|
|
3912
3972
|
})
|
|
3913
3973
|
]),
|
|
3914
3974
|
_: 1
|
|
3915
|
-
})) :
|
|
3975
|
+
})) : T("", !0)
|
|
3916
3976
|
]);
|
|
3917
3977
|
};
|
|
3918
3978
|
}
|
|
@@ -5002,25 +5062,25 @@ var H = function(e, t, a, i) {
|
|
|
5002
5062
|
if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
5003
5063
|
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5004
5064
|
return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
|
|
5005
|
-
}, Z, te,
|
|
5065
|
+
}, Z, te, J;
|
|
5006
5066
|
class we {
|
|
5007
5067
|
constructor(...t) {
|
|
5008
|
-
Z.set(this, /* @__PURE__ */ new Map()), te.set(this, /* @__PURE__ */ new Map()),
|
|
5068
|
+
Z.set(this, /* @__PURE__ */ new Map()), te.set(this, /* @__PURE__ */ new Map()), J.set(this, /* @__PURE__ */ new Map());
|
|
5009
5069
|
for (const a of t)
|
|
5010
5070
|
this.define(a);
|
|
5011
5071
|
}
|
|
5012
5072
|
define(t, a = !1) {
|
|
5013
|
-
for (let [i,
|
|
5014
|
-
i = i.toLowerCase(),
|
|
5015
|
-
const
|
|
5073
|
+
for (let [i, o] of Object.entries(t)) {
|
|
5074
|
+
i = i.toLowerCase(), o = o.map((s) => s.toLowerCase()), H(this, J, "f").has(i) || H(this, J, "f").set(i, /* @__PURE__ */ new Set());
|
|
5075
|
+
const l = H(this, J, "f").get(i);
|
|
5016
5076
|
let n = !0;
|
|
5017
|
-
for (let s of
|
|
5077
|
+
for (let s of o) {
|
|
5018
5078
|
const p = s.startsWith("*");
|
|
5019
|
-
if (s = p ? s.slice(1) : s,
|
|
5079
|
+
if (s = p ? s.slice(1) : s, l == null || l.add(s), n && H(this, te, "f").set(i, s), n = !1, p)
|
|
5020
5080
|
continue;
|
|
5021
|
-
const
|
|
5022
|
-
if (
|
|
5023
|
-
throw new Error(`"${i} -> ${s}" conflicts with "${
|
|
5081
|
+
const u = H(this, Z, "f").get(s);
|
|
5082
|
+
if (u && u != i && !a)
|
|
5083
|
+
throw new Error(`"${i} -> ${s}" conflicts with "${u} -> ${s}". Pass \`force=true\` to override this definition.`);
|
|
5024
5084
|
H(this, Z, "f").set(s, i);
|
|
5025
5085
|
}
|
|
5026
5086
|
}
|
|
@@ -5029,21 +5089,21 @@ class we {
|
|
|
5029
5089
|
getType(t) {
|
|
5030
5090
|
if (typeof t != "string")
|
|
5031
5091
|
return null;
|
|
5032
|
-
const a = t.replace(/^.*[/\\]/s, "").toLowerCase(), i = a.replace(/^.*\./s, "").toLowerCase(),
|
|
5033
|
-
return !(i.length < a.length - 1) &&
|
|
5092
|
+
const a = t.replace(/^.*[/\\]/s, "").toLowerCase(), i = a.replace(/^.*\./s, "").toLowerCase(), o = a.length < t.length;
|
|
5093
|
+
return !(i.length < a.length - 1) && o ? null : H(this, Z, "f").get(i) ?? null;
|
|
5034
5094
|
}
|
|
5035
5095
|
getExtension(t) {
|
|
5036
5096
|
var a;
|
|
5037
5097
|
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && H(this, te, "f").get(t.trim().toLowerCase())) ?? null);
|
|
5038
5098
|
}
|
|
5039
5099
|
getAllExtensions(t) {
|
|
5040
|
-
return typeof t != "string" ? null : H(this,
|
|
5100
|
+
return typeof t != "string" ? null : H(this, J, "f").get(t.toLowerCase()) ?? null;
|
|
5041
5101
|
}
|
|
5042
5102
|
_freeze() {
|
|
5043
5103
|
this.define = () => {
|
|
5044
5104
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
5045
5105
|
}, Object.freeze(this);
|
|
5046
|
-
for (const t of H(this,
|
|
5106
|
+
for (const t of H(this, J, "f").values())
|
|
5047
5107
|
Object.freeze(t);
|
|
5048
5108
|
return this;
|
|
5049
5109
|
}
|
|
@@ -5054,21 +5114,21 @@ class we {
|
|
|
5054
5114
|
};
|
|
5055
5115
|
}
|
|
5056
5116
|
}
|
|
5057
|
-
Z = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(),
|
|
5058
|
-
const
|
|
5117
|
+
Z = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
|
|
5118
|
+
const qa = new we(ue, ce)._freeze();
|
|
5059
5119
|
function ke(e, t, a, i) {
|
|
5060
|
-
const
|
|
5061
|
-
return t = t.map((
|
|
5062
|
-
const n =
|
|
5120
|
+
const o = t.flatMap((l) => l.file);
|
|
5121
|
+
return t = t.map((l) => ({ ...l, status: l.status == "Duplicate" ? "Not Uploaded" : l.status })), e.forEach((l) => {
|
|
5122
|
+
const n = o.findIndex((p) => p.name === l.name);
|
|
5063
5123
|
let s = "Not Uploaded";
|
|
5064
|
-
n === -1 ? ((!a.includes(
|
|
5065
|
-
file:
|
|
5124
|
+
n === -1 ? ((!a.includes(l.type) || !(l.size <= i)) && (s = a.includes(l.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
5125
|
+
file: l,
|
|
5066
5126
|
status: s,
|
|
5067
5127
|
blobFileName: null
|
|
5068
5128
|
})) : t[n].status = "Duplicate";
|
|
5069
5129
|
}), t;
|
|
5070
5130
|
}
|
|
5071
|
-
async function
|
|
5131
|
+
async function Ra(e, t) {
|
|
5072
5132
|
if (e === "Uploaded" && t !== null)
|
|
5073
5133
|
try {
|
|
5074
5134
|
await new ge(t).delete();
|
|
@@ -5083,30 +5143,30 @@ function me(e, t = !0, a = 1) {
|
|
|
5083
5143
|
const i = t ? 1e3 : 1024;
|
|
5084
5144
|
if (Math.abs(e) < i)
|
|
5085
5145
|
return e + " B";
|
|
5086
|
-
const
|
|
5087
|
-
let
|
|
5146
|
+
const o = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
5147
|
+
let l = -1;
|
|
5088
5148
|
const n = 10 ** a;
|
|
5089
5149
|
do
|
|
5090
|
-
e /= i, ++
|
|
5091
|
-
while (Math.round(Math.abs(e) * n) / n >= i &&
|
|
5092
|
-
return e.toFixed(a) + " " + l
|
|
5150
|
+
e /= i, ++l;
|
|
5151
|
+
while (Math.round(Math.abs(e) * n) / n >= i && l < o.length - 1);
|
|
5152
|
+
return e.toFixed(a) + " " + o[l];
|
|
5093
5153
|
}
|
|
5094
|
-
function
|
|
5154
|
+
function Ha(e) {
|
|
5095
5155
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
5096
5156
|
}
|
|
5097
|
-
function
|
|
5157
|
+
function Wa(e) {
|
|
5098
5158
|
return URL.createObjectURL(e);
|
|
5099
5159
|
}
|
|
5100
|
-
function
|
|
5160
|
+
function Ga() {
|
|
5101
5161
|
const e = new we(ue, ce);
|
|
5102
5162
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
5103
5163
|
}
|
|
5104
|
-
const
|
|
5164
|
+
const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disabled", "multiple"], Ka = {
|
|
5105
5165
|
class: "text-break accepted-file-types-container",
|
|
5106
5166
|
id: "accepted-file-types-overlay"
|
|
5107
|
-
},
|
|
5167
|
+
}, Za = /* @__PURE__ */ z({
|
|
5108
5168
|
__name: "UploadButton",
|
|
5109
|
-
props: /* @__PURE__ */
|
|
5169
|
+
props: /* @__PURE__ */ E({
|
|
5110
5170
|
acceptedFileTypes: {},
|
|
5111
5171
|
maxFileInput: {},
|
|
5112
5172
|
showDragDropArea: { type: Boolean }
|
|
@@ -5116,12 +5176,12 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5116
5176
|
}),
|
|
5117
5177
|
emits: ["update:modelValue"],
|
|
5118
5178
|
setup(e) {
|
|
5119
|
-
const t = N(e, "modelValue"), a =
|
|
5179
|
+
const t = N(e, "modelValue"), a = M(), i = (n) => a.value.toggle(n), o = j(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
5120
5180
|
t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
|
|
5121
5181
|
};
|
|
5122
5182
|
return (n, s) => {
|
|
5123
5183
|
const p = q;
|
|
5124
|
-
return d(),
|
|
5184
|
+
return d(), b("div", Ya, [
|
|
5125
5185
|
F(n.$slots, "message"),
|
|
5126
5186
|
m("div", null, [
|
|
5127
5187
|
m("input", {
|
|
@@ -5129,61 +5189,61 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5129
5189
|
type: "file",
|
|
5130
5190
|
class: "d-none",
|
|
5131
5191
|
accept: n.acceptedFileTypes.join(", "),
|
|
5132
|
-
disabled:
|
|
5192
|
+
disabled: o.value,
|
|
5133
5193
|
multiple: n.maxFileInput > 1,
|
|
5134
|
-
onInput: s[0] || (s[0] = (
|
|
5135
|
-
}, null, 40,
|
|
5194
|
+
onInput: s[0] || (s[0] = (u) => l([...u.target.files]))
|
|
5195
|
+
}, null, 40, Ja),
|
|
5136
5196
|
m("label", {
|
|
5137
|
-
class:
|
|
5197
|
+
class: P([{ disabled: o.value }, "btn btn-primary"]),
|
|
5138
5198
|
id: "file-input-button",
|
|
5139
5199
|
for: "file-input"
|
|
5140
5200
|
}, [
|
|
5141
5201
|
F(n.$slots, "button-content", {}, () => [
|
|
5142
|
-
|
|
5202
|
+
k(c(I), {
|
|
5143
5203
|
icon: "bi:upload",
|
|
5144
5204
|
class: "me-2",
|
|
5145
5205
|
height: "20px",
|
|
5146
5206
|
width: "20px"
|
|
5147
5207
|
}),
|
|
5148
|
-
s[1] || (s[1] =
|
|
5208
|
+
s[1] || (s[1] = V(" Browse your computer "))
|
|
5149
5209
|
])
|
|
5150
5210
|
], 2)
|
|
5151
5211
|
]),
|
|
5152
|
-
n.showDragDropArea ? (d(),
|
|
5212
|
+
n.showDragDropArea ? (d(), x(p, {
|
|
5153
5213
|
link: "",
|
|
5154
5214
|
class: "ms-auto",
|
|
5155
5215
|
key: n.acceptedFileTypes.length,
|
|
5156
5216
|
id: "accepted-file-types",
|
|
5157
5217
|
onClick: i
|
|
5158
5218
|
}, {
|
|
5159
|
-
default:
|
|
5160
|
-
|
|
5219
|
+
default: f(() => s[2] || (s[2] = [
|
|
5220
|
+
V("Accepted File Types")
|
|
5161
5221
|
])),
|
|
5162
5222
|
_: 1,
|
|
5163
5223
|
__: [2]
|
|
5164
|
-
})) :
|
|
5165
|
-
|
|
5224
|
+
})) : T("", !0),
|
|
5225
|
+
k(c(be), {
|
|
5166
5226
|
ref_key: "acceptedFilesOverlay",
|
|
5167
5227
|
ref: a
|
|
5168
5228
|
}, {
|
|
5169
|
-
default:
|
|
5170
|
-
m("div",
|
|
5229
|
+
default: f(() => [
|
|
5230
|
+
m("div", Ka, $(n.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
5171
5231
|
]),
|
|
5172
5232
|
_: 1
|
|
5173
5233
|
}, 512)
|
|
5174
5234
|
]);
|
|
5175
5235
|
};
|
|
5176
5236
|
}
|
|
5177
|
-
}),
|
|
5237
|
+
}), Xa = {
|
|
5178
5238
|
key: 0,
|
|
5179
5239
|
class: "py-4 px-3",
|
|
5180
5240
|
id: "placeholder-message"
|
|
5181
|
-
},
|
|
5241
|
+
}, Qa = {
|
|
5182
5242
|
key: 1,
|
|
5183
5243
|
class: "d-flex flex-column"
|
|
5184
|
-
},
|
|
5244
|
+
}, ei = /* @__PURE__ */ z({
|
|
5185
5245
|
__name: "DragDropArea",
|
|
5186
|
-
props: /* @__PURE__ */
|
|
5246
|
+
props: /* @__PURE__ */ E({
|
|
5187
5247
|
maxFileInput: {},
|
|
5188
5248
|
maxFileSize: {},
|
|
5189
5249
|
acceptedFileTypes: {}
|
|
@@ -5193,30 +5253,30 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5193
5253
|
}),
|
|
5194
5254
|
emits: ["update:modelValue"],
|
|
5195
5255
|
setup(e) {
|
|
5196
|
-
const t = N(e, "modelValue"), a =
|
|
5197
|
-
a.value = !1,
|
|
5256
|
+
const t = N(e, "modelValue"), a = M(!1), i = j(() => e.maxFileInput <= t.value.length), o = (l) => {
|
|
5257
|
+
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);
|
|
5198
5258
|
};
|
|
5199
|
-
return (
|
|
5259
|
+
return (l, n) => (d(), b("div", {
|
|
5200
5260
|
id: "drag-drop-area",
|
|
5201
|
-
class:
|
|
5261
|
+
class: P(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
5202
5262
|
onDragleave: n[0] || (n[0] = Q((s) => a.value = !1, ["prevent"])),
|
|
5203
5263
|
onDragover: n[1] || (n[1] = Q((s) => a.value = !0, ["prevent"])),
|
|
5204
|
-
onDrop: Q(
|
|
5264
|
+
onDrop: Q(o, ["prevent"])
|
|
5205
5265
|
}, [
|
|
5206
|
-
t.value.length === 0 ? (d(),
|
|
5207
|
-
|
|
5266
|
+
t.value.length === 0 ? (d(), b("div", Xa, [
|
|
5267
|
+
k(c(I), {
|
|
5208
5268
|
icon: "bi:upload",
|
|
5209
5269
|
class: "me-2",
|
|
5210
5270
|
height: "20px",
|
|
5211
5271
|
width: "20px"
|
|
5212
5272
|
}),
|
|
5213
|
-
n[2] || (n[2] =
|
|
5214
|
-
])) : (d(),
|
|
5215
|
-
F(
|
|
5273
|
+
n[2] || (n[2] = V(" Drag and drop files here "))
|
|
5274
|
+
])) : (d(), b("div", Qa, [
|
|
5275
|
+
F(l.$slots, "default")
|
|
5216
5276
|
]))
|
|
5217
5277
|
], 34));
|
|
5218
5278
|
}
|
|
5219
|
-
}),
|
|
5279
|
+
}), ti = { class: "d-flex align-items-center me-2" }, ai = /* @__PURE__ */ z({
|
|
5220
5280
|
__name: "UploadStatus",
|
|
5221
5281
|
props: {
|
|
5222
5282
|
fileSize: {},
|
|
@@ -5225,7 +5285,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5225
5285
|
uploadStatus: {}
|
|
5226
5286
|
},
|
|
5227
5287
|
setup(e) {
|
|
5228
|
-
const t = e, a =
|
|
5288
|
+
const t = e, a = j(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = j(() => {
|
|
5229
5289
|
switch (t.uploadStatus) {
|
|
5230
5290
|
case "InvalidFileType":
|
|
5231
5291
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -5241,39 +5301,39 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5241
5301
|
return "Upload Failed: Connection error, please try again.";
|
|
5242
5302
|
}
|
|
5243
5303
|
});
|
|
5244
|
-
return (
|
|
5304
|
+
return (o, l) => {
|
|
5245
5305
|
const n = pe;
|
|
5246
|
-
return d(),
|
|
5247
|
-
t.uploadStatus === "Uploading" ? (d(),
|
|
5306
|
+
return d(), b("div", ti, [
|
|
5307
|
+
t.uploadStatus === "Uploading" ? (d(), x(n, {
|
|
5248
5308
|
key: 0,
|
|
5249
5309
|
"in-line": ""
|
|
5250
|
-
})) :
|
|
5251
|
-
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(),
|
|
5310
|
+
})) : T("", !0),
|
|
5311
|
+
t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), x(re, {
|
|
5252
5312
|
key: 1,
|
|
5253
5313
|
id: "upload-status-alert",
|
|
5254
5314
|
severity: a.value,
|
|
5255
5315
|
class: "mb-0 w-75 ms-auto"
|
|
5256
5316
|
}, {
|
|
5257
|
-
default:
|
|
5258
|
-
|
|
5317
|
+
default: f(() => [
|
|
5318
|
+
V($(i.value), 1)
|
|
5259
5319
|
]),
|
|
5260
5320
|
_: 1
|
|
5261
|
-
}, 8, ["severity"])) :
|
|
5321
|
+
}, 8, ["severity"])) : T("", !0)
|
|
5262
5322
|
]);
|
|
5263
5323
|
};
|
|
5264
5324
|
}
|
|
5265
|
-
}),
|
|
5325
|
+
}), ii = ["data-cy"], oi = { class: "ms-3 d-flex flex-column" }, li = {
|
|
5266
5326
|
key: 1,
|
|
5267
5327
|
id: "file-name"
|
|
5268
|
-
},
|
|
5328
|
+
}, ni = {
|
|
5269
5329
|
class: "text-black-50",
|
|
5270
5330
|
id: "file-type"
|
|
5271
|
-
},
|
|
5331
|
+
}, si = {
|
|
5272
5332
|
class: "text-black-50",
|
|
5273
5333
|
id: "file-size"
|
|
5274
|
-
},
|
|
5334
|
+
}, ri = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, di = /* @__PURE__ */ z({
|
|
5275
5335
|
__name: "FileInfo",
|
|
5276
|
-
props: /* @__PURE__ */
|
|
5336
|
+
props: /* @__PURE__ */ E({
|
|
5277
5337
|
editableFileName: { type: Boolean },
|
|
5278
5338
|
acceptedFileTypes: {},
|
|
5279
5339
|
maxFileSize: {},
|
|
@@ -5288,64 +5348,64 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5288
5348
|
uploadStatus: { required: !0 },
|
|
5289
5349
|
uploadStatusModifiers: {}
|
|
5290
5350
|
}),
|
|
5291
|
-
emits: /* @__PURE__ */
|
|
5351
|
+
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
5292
5352
|
setup(e, { emit: t }) {
|
|
5293
|
-
const a = N(e, "file"), i = N(e, "blobFileName"),
|
|
5294
|
-
n.value != null && (
|
|
5295
|
-
},
|
|
5296
|
-
let
|
|
5297
|
-
|
|
5298
|
-
},
|
|
5299
|
-
if (!
|
|
5300
|
-
|
|
5353
|
+
const a = N(e, "file"), i = N(e, "blobFileName"), o = N(e, "uploadStatus"), l = t, n = M(a.value.name), s = M(""), p = M(0), u = M(), h = j(() => e.acceptedFileTypes.some(({ fileType: v }) => v === a.value.type)), r = j(() => a.value.size <= e.maxFileSize), w = j(() => a.value.type ? a.value.type : Ga().getType(a.value.name)), g = () => {
|
|
5354
|
+
n.value != null && (C(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
5355
|
+
}, C = () => {
|
|
5356
|
+
let v = n.value.split("."), B = qa.getExtension(w.value), D = n.value.split(".").pop();
|
|
5357
|
+
v.length === 1 ? D && D.length > 0 && (n.value = [n.value, B].join(".")) : v.length > 1 && D !== B && (n.value = n.value.replace(D, B));
|
|
5358
|
+
}, S = async () => {
|
|
5359
|
+
if (!h.value || !r.value) {
|
|
5360
|
+
o.value = h.value ? "InvalidFileSize" : "InvalidFileType";
|
|
5301
5361
|
return;
|
|
5302
5362
|
}
|
|
5303
|
-
|
|
5304
|
-
const [
|
|
5305
|
-
if (!
|
|
5306
|
-
|
|
5363
|
+
o.value = "Preparing", u.value = new AbortController();
|
|
5364
|
+
const [v, B] = await e.getFileUrlAction(a.value.name);
|
|
5365
|
+
if (!v) {
|
|
5366
|
+
o.value = "Failed";
|
|
5307
5367
|
return;
|
|
5308
5368
|
}
|
|
5309
5369
|
try {
|
|
5310
|
-
|
|
5311
|
-
const
|
|
5312
|
-
abortSignal:
|
|
5313
|
-
onProgress: (
|
|
5370
|
+
o.value = "Uploading";
|
|
5371
|
+
const D = new ge(v), y = {
|
|
5372
|
+
abortSignal: u.value.signal,
|
|
5373
|
+
onProgress: (O) => p.value = O.loadedBytes,
|
|
5314
5374
|
blobHTTPHeaders: {
|
|
5315
|
-
blobContentType:
|
|
5375
|
+
blobContentType: w.value,
|
|
5316
5376
|
blobContentDisposition: `attachment; filename="${a.value.name}"`
|
|
5317
5377
|
},
|
|
5318
5378
|
tags: { temp: "true" }
|
|
5319
5379
|
};
|
|
5320
|
-
await
|
|
5321
|
-
} catch (
|
|
5322
|
-
if (
|
|
5323
|
-
|
|
5380
|
+
await D.uploadData(a.value, y), s.value = v, o.value = "Uploaded", i.value = B;
|
|
5381
|
+
} catch (D) {
|
|
5382
|
+
if (D.name === "AbortError") {
|
|
5383
|
+
o.value = "Aborted";
|
|
5324
5384
|
return;
|
|
5325
5385
|
}
|
|
5326
|
-
|
|
5386
|
+
o.value = "Failed";
|
|
5327
5387
|
}
|
|
5328
|
-
},
|
|
5329
|
-
await
|
|
5388
|
+
}, A = async () => {
|
|
5389
|
+
await Ra(o.value, s.value), l("deleted", a.value);
|
|
5330
5390
|
};
|
|
5331
|
-
return
|
|
5332
|
-
e.autoUploadToBlob &&
|
|
5333
|
-
}), (
|
|
5334
|
-
const
|
|
5335
|
-
return d(),
|
|
5391
|
+
return ne(() => {
|
|
5392
|
+
e.autoUploadToBlob && o.value != "Uploaded" && S();
|
|
5393
|
+
}), (v, B) => {
|
|
5394
|
+
const D = q;
|
|
5395
|
+
return d(), b("div", {
|
|
5336
5396
|
class: "py-4 px-3 d-flex",
|
|
5337
5397
|
"data-cy": `file-info-${a.value.name}`
|
|
5338
5398
|
}, [
|
|
5339
5399
|
m("div", null, [
|
|
5340
|
-
|
|
5400
|
+
c(Ha)(a.value.type) ? (d(), x(c(Ye), {
|
|
5341
5401
|
key: 0,
|
|
5342
5402
|
id: "thumbnail-image",
|
|
5343
5403
|
"image-class": "image-file-thumbnail border",
|
|
5344
|
-
src:
|
|
5404
|
+
src: c(Wa)(a.value),
|
|
5345
5405
|
alt: a.value.name,
|
|
5346
5406
|
width: "75px",
|
|
5347
5407
|
preview: ""
|
|
5348
|
-
}, null, 8, ["src", "alt"])) : (d(),
|
|
5408
|
+
}, null, 8, ["src", "alt"])) : (d(), x(c(I), {
|
|
5349
5409
|
key: 1,
|
|
5350
5410
|
id: "file-earmark",
|
|
5351
5411
|
icon: "bi:file-earmark",
|
|
@@ -5353,80 +5413,80 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5353
5413
|
width: "75px"
|
|
5354
5414
|
}))
|
|
5355
5415
|
]),
|
|
5356
|
-
m("div",
|
|
5416
|
+
m("div", oi, [
|
|
5357
5417
|
m("div", null, [
|
|
5358
|
-
|
|
5418
|
+
v.editableFileName ? (d(), x(Kt, {
|
|
5359
5419
|
key: 0,
|
|
5360
5420
|
id: "edit-file-name",
|
|
5361
5421
|
modelValue: n.value,
|
|
5362
|
-
"onUpdate:modelValue":
|
|
5363
|
-
rules:
|
|
5422
|
+
"onUpdate:modelValue": B[0] || (B[0] = (y) => n.value = y),
|
|
5423
|
+
rules: v.customFileNameRules,
|
|
5364
5424
|
name: a.value.name,
|
|
5365
|
-
"complete-action":
|
|
5366
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(),
|
|
5425
|
+
"complete-action": g
|
|
5426
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", li, $(n.value), 1))
|
|
5367
5427
|
]),
|
|
5368
|
-
m("span",
|
|
5369
|
-
m("span",
|
|
5428
|
+
m("span", ni, "File type: " + $(a.value.type.split("/").pop()), 1),
|
|
5429
|
+
m("span", si, "File size: " + $(c(me)(a.value.size)), 1)
|
|
5370
5430
|
]),
|
|
5371
|
-
m("div",
|
|
5372
|
-
(d(),
|
|
5373
|
-
key:
|
|
5431
|
+
m("div", ri, [
|
|
5432
|
+
(d(), x(ai, {
|
|
5433
|
+
key: o.value,
|
|
5374
5434
|
"file-size": a.value.size,
|
|
5375
|
-
"upload-status":
|
|
5435
|
+
"upload-status": o.value,
|
|
5376
5436
|
"bytes-uploaded": p.value,
|
|
5377
|
-
"max-file-size":
|
|
5437
|
+
"max-file-size": v.maxFileSize
|
|
5378
5438
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
5379
|
-
|
|
5439
|
+
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (d(), x(D, {
|
|
5380
5440
|
key: 0,
|
|
5381
5441
|
link: "",
|
|
5382
|
-
onClick:
|
|
5442
|
+
onClick: S
|
|
5383
5443
|
}, {
|
|
5384
|
-
default:
|
|
5385
|
-
|
|
5386
|
-
icon:
|
|
5444
|
+
default: f(() => [
|
|
5445
|
+
k(c(I), {
|
|
5446
|
+
icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
5387
5447
|
}, null, 8, ["icon"])
|
|
5388
5448
|
]),
|
|
5389
5449
|
_: 1
|
|
5390
|
-
})) :
|
|
5391
|
-
|
|
5450
|
+
})) : T("", !0),
|
|
5451
|
+
o.value === "Uploading" ? (d(), x(D, {
|
|
5392
5452
|
key: 1,
|
|
5393
5453
|
link: "",
|
|
5394
|
-
onClick:
|
|
5454
|
+
onClick: B[1] || (B[1] = (y) => u.value.abort())
|
|
5395
5455
|
}, {
|
|
5396
|
-
default:
|
|
5397
|
-
|
|
5456
|
+
default: f(() => [
|
|
5457
|
+
k(c(I), { icon: "bi:x-circle-fill" })
|
|
5398
5458
|
]),
|
|
5399
5459
|
_: 1
|
|
5400
|
-
})) : (d(),
|
|
5460
|
+
})) : (d(), x(D, {
|
|
5401
5461
|
key: 2,
|
|
5402
5462
|
link: "",
|
|
5403
|
-
onClick:
|
|
5463
|
+
onClick: A,
|
|
5404
5464
|
id: "delete-button"
|
|
5405
5465
|
}, {
|
|
5406
|
-
default:
|
|
5407
|
-
|
|
5466
|
+
default: f(() => [
|
|
5467
|
+
k(c(I), { icon: "bi:trash" })
|
|
5408
5468
|
]),
|
|
5409
5469
|
_: 1
|
|
5410
5470
|
}))
|
|
5411
5471
|
])
|
|
5412
|
-
], 8,
|
|
5472
|
+
], 8, ii);
|
|
5413
5473
|
};
|
|
5414
5474
|
}
|
|
5415
|
-
}),
|
|
5475
|
+
}), pi = { class: "d-flex justify-content-end mt-1 gap-1" }, ci = { id: "max-file-size" }, ui = { id: "max-file-input" }, mi = /* @__PURE__ */ z({
|
|
5416
5476
|
__name: "FileInputInfo",
|
|
5417
5477
|
props: {
|
|
5418
5478
|
maxFileSize: {},
|
|
5419
5479
|
maxFileInput: {}
|
|
5420
5480
|
},
|
|
5421
5481
|
setup(e) {
|
|
5422
|
-
return (t, a) => (d(),
|
|
5423
|
-
m("div",
|
|
5424
|
-
m("div",
|
|
5482
|
+
return (t, a) => (d(), b("div", pi, [
|
|
5483
|
+
m("div", ci, "Max file size: " + $(c(me)(t.maxFileSize)), 1),
|
|
5484
|
+
m("div", ui, "| Max file count: " + $(t.maxFileInput), 1)
|
|
5425
5485
|
]));
|
|
5426
5486
|
}
|
|
5427
|
-
}),
|
|
5487
|
+
}), vi = { "data-cy": "file-uploader" }, fi = { key: 1 }, Co = /* @__PURE__ */ z({
|
|
5428
5488
|
__name: "ForgeFileUploader",
|
|
5429
|
-
props: /* @__PURE__ */
|
|
5489
|
+
props: /* @__PURE__ */ E({
|
|
5430
5490
|
acceptedFileTypes: {},
|
|
5431
5491
|
maxFileSize: {},
|
|
5432
5492
|
getFileUrlAction: {},
|
|
@@ -5443,38 +5503,38 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5443
5503
|
emits: ["update:modelValue"],
|
|
5444
5504
|
setup(e) {
|
|
5445
5505
|
const t = N(e, "modelValue");
|
|
5446
|
-
|
|
5447
|
-
|
|
5506
|
+
W(t, (o, l) => {
|
|
5507
|
+
o.length > a.maxFileInput && (o.length = a.maxFileInput);
|
|
5448
5508
|
}, { deep: 2 });
|
|
5449
|
-
const a = e, i = (
|
|
5450
|
-
t.value = t.value.filter((
|
|
5509
|
+
const a = e, i = (o) => {
|
|
5510
|
+
t.value = t.value.filter((l) => l.file != o);
|
|
5451
5511
|
};
|
|
5452
|
-
return (
|
|
5453
|
-
t.value.length ==
|
|
5512
|
+
return (o, l) => (d(), b("div", vi, [
|
|
5513
|
+
t.value.length == o.maxFileInput && a.maxFileWarning != null ? (d(), x(re, {
|
|
5454
5514
|
key: 0,
|
|
5455
5515
|
id: "max-files-alert",
|
|
5456
5516
|
severity: "danger"
|
|
5457
5517
|
}, {
|
|
5458
|
-
default:
|
|
5459
|
-
|
|
5518
|
+
default: f(() => [
|
|
5519
|
+
V($(o.maxFileWarning), 1)
|
|
5460
5520
|
]),
|
|
5461
5521
|
_: 1
|
|
5462
|
-
})) :
|
|
5463
|
-
|
|
5522
|
+
})) : T("", !0),
|
|
5523
|
+
k(Za, _(a, {
|
|
5464
5524
|
modelValue: t.value,
|
|
5465
|
-
"onUpdate:modelValue":
|
|
5525
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n)
|
|
5466
5526
|
}), null, 16, ["modelValue"]),
|
|
5467
|
-
|
|
5468
|
-
|
|
5527
|
+
o.showDragDropArea ? (d(), b("div", fi, [
|
|
5528
|
+
k(ei, {
|
|
5469
5529
|
"max-file-input": a.maxFileInput,
|
|
5470
5530
|
"max-file-size": a.maxFileSize,
|
|
5471
5531
|
"accepted-file-types": a.acceptedFileTypes,
|
|
5472
5532
|
modelValue: t.value,
|
|
5473
|
-
"onUpdate:modelValue":
|
|
5533
|
+
"onUpdate:modelValue": l[1] || (l[1] = (n) => t.value = n)
|
|
5474
5534
|
}, {
|
|
5475
|
-
default:
|
|
5476
|
-
(d(!0),
|
|
5477
|
-
(d(),
|
|
5535
|
+
default: f(() => [
|
|
5536
|
+
(d(!0), b(U, null, L(t.value, ({ file: n }, s) => (d(), b("div", null, [
|
|
5537
|
+
(d(), x(di, _({
|
|
5478
5538
|
key: n.name,
|
|
5479
5539
|
class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
5480
5540
|
file: t.value[s].file,
|
|
@@ -5482,21 +5542,20 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5482
5542
|
"blob-file-name": t.value[s].blobFileName,
|
|
5483
5543
|
"onUpdate:blobFileName": (p) => t.value[s].blobFileName = p,
|
|
5484
5544
|
"upload-status": t.value[s].status,
|
|
5485
|
-
"onUpdate:uploadStatus": (p) => t.value[s].status = p
|
|
5486
|
-
|
|
5487
|
-
}, a, { onDeleted: i }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
5545
|
+
"onUpdate:uploadStatus": (p) => t.value[s].status = p
|
|
5546
|
+
}, { ref_for: !0 }, a, { onDeleted: i }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
5488
5547
|
]))), 256))
|
|
5489
5548
|
]),
|
|
5490
5549
|
_: 1
|
|
5491
5550
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
5492
|
-
|
|
5551
|
+
k(mi, {
|
|
5493
5552
|
"max-file-size": a.maxFileSize,
|
|
5494
|
-
"max-file-input":
|
|
5553
|
+
"max-file-input": o.maxFileInput
|
|
5495
5554
|
}, null, 8, ["max-file-size", "max-file-input"])
|
|
5496
|
-
])) :
|
|
5555
|
+
])) : T("", !0)
|
|
5497
5556
|
]));
|
|
5498
5557
|
}
|
|
5499
|
-
}),
|
|
5558
|
+
}), gi = { class: "d-flex" }, bi = { class: "me-3" }, yi = { class: "ms-2" }, xi = { class: "d-flex flex-column w-100" }, To = /* @__PURE__ */ z({
|
|
5500
5559
|
__name: "ForgeColumnCustomiser",
|
|
5501
5560
|
props: {
|
|
5502
5561
|
modelValue: { required: !0 },
|
|
@@ -5504,22 +5563,22 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5504
5563
|
},
|
|
5505
5564
|
emits: ["update:modelValue"],
|
|
5506
5565
|
setup(e) {
|
|
5507
|
-
const t = N(e, "modelValue"), a =
|
|
5508
|
-
a.value.toggle(
|
|
5566
|
+
const t = N(e, "modelValue"), a = M(), i = M(!1), o = (l) => {
|
|
5567
|
+
a.value.toggle(l);
|
|
5509
5568
|
};
|
|
5510
|
-
return (
|
|
5511
|
-
|
|
5512
|
-
onClick:
|
|
5569
|
+
return (l, n) => (d(), b(U, null, [
|
|
5570
|
+
k(c(q), {
|
|
5571
|
+
onClick: o,
|
|
5513
5572
|
class: "ms-2"
|
|
5514
5573
|
}, {
|
|
5515
|
-
default:
|
|
5516
|
-
m("div",
|
|
5517
|
-
m("div",
|
|
5518
|
-
|
|
5574
|
+
default: f(() => [
|
|
5575
|
+
m("div", gi, [
|
|
5576
|
+
m("div", bi, [
|
|
5577
|
+
k(c(I), { icon: "bi:layout-three-columns" })
|
|
5519
5578
|
]),
|
|
5520
|
-
|
|
5521
|
-
m("div",
|
|
5522
|
-
|
|
5579
|
+
V(" Columns (" + $(t.value.filter((s) => s.selected).length ?? 0) + "/" + $(t.value.length ?? 0) + ") ", 1),
|
|
5580
|
+
m("div", yi, [
|
|
5581
|
+
k(c(I), {
|
|
5523
5582
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
5524
5583
|
}, null, 8, ["icon"])
|
|
5525
5584
|
])
|
|
@@ -5527,27 +5586,27 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5527
5586
|
]),
|
|
5528
5587
|
_: 1
|
|
5529
5588
|
}),
|
|
5530
|
-
|
|
5589
|
+
k(c(be), {
|
|
5531
5590
|
ref_key: "columnCustomiserPanel",
|
|
5532
5591
|
ref: a,
|
|
5533
5592
|
class: "column-customiser",
|
|
5534
5593
|
onHide: n[0] || (n[0] = () => i.value = !1),
|
|
5535
5594
|
onShow: n[1] || (n[1] = () => i.value = !0)
|
|
5536
5595
|
}, {
|
|
5537
|
-
default:
|
|
5538
|
-
m("div",
|
|
5539
|
-
(d(!0),
|
|
5540
|
-
class:
|
|
5596
|
+
default: f(() => [
|
|
5597
|
+
m("div", xi, [
|
|
5598
|
+
(d(!0), b(U, null, L(t.value, (s, p) => (d(), b("div", {
|
|
5599
|
+
class: P(["d-flex cursor-pointer", {
|
|
5541
5600
|
"border-top": p !== 0,
|
|
5542
5601
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
5543
5602
|
"pt-1": t.value.length - 1 === p,
|
|
5544
5603
|
"pb-1": p === 0
|
|
5545
5604
|
}])
|
|
5546
5605
|
}, [
|
|
5547
|
-
|
|
5606
|
+
k(ye, {
|
|
5548
5607
|
id: s.field,
|
|
5549
5608
|
modelValue: s.selected,
|
|
5550
|
-
"onUpdate:modelValue": (
|
|
5609
|
+
"onUpdate:modelValue": (u) => s.selected = u,
|
|
5551
5610
|
binary: "",
|
|
5552
5611
|
class: "cursor-pointer",
|
|
5553
5612
|
label: s.header
|
|
@@ -5559,19 +5618,19 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5559
5618
|
}, 512)
|
|
5560
5619
|
], 64));
|
|
5561
5620
|
}
|
|
5562
|
-
}),
|
|
5621
|
+
}), zo = /* @__PURE__ */ z({
|
|
5563
5622
|
__name: "ForgePanel",
|
|
5564
5623
|
setup(e) {
|
|
5565
5624
|
return (t, a) => {
|
|
5566
5625
|
const i = Je;
|
|
5567
|
-
return d(),
|
|
5568
|
-
toggleicon:
|
|
5569
|
-
|
|
5626
|
+
return d(), x(i, G(Y({ ...t.$attrs })), ie({
|
|
5627
|
+
toggleicon: f(({ collapsed: o }) => [
|
|
5628
|
+
o ? (d(), x(c(I), {
|
|
5570
5629
|
key: 0,
|
|
5571
5630
|
"data-cy": "message-icon",
|
|
5572
5631
|
icon: "bi:chevron-down"
|
|
5573
|
-
})) :
|
|
5574
|
-
|
|
5632
|
+
})) : T("", !0),
|
|
5633
|
+
o ? T("", !0) : (d(), x(c(I), {
|
|
5575
5634
|
key: 1,
|
|
5576
5635
|
"data-cy": "message-icon",
|
|
5577
5636
|
icon: "bi:chevron-up"
|
|
@@ -5579,22 +5638,22 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5579
5638
|
]),
|
|
5580
5639
|
_: 2
|
|
5581
5640
|
}, [
|
|
5582
|
-
|
|
5583
|
-
name:
|
|
5584
|
-
fn:
|
|
5585
|
-
F(t.$slots,
|
|
5641
|
+
L(t.$slots, (o, l) => ({
|
|
5642
|
+
name: l,
|
|
5643
|
+
fn: f((n) => [
|
|
5644
|
+
F(t.$slots, l, G(Y(n)))
|
|
5586
5645
|
])
|
|
5587
5646
|
}))
|
|
5588
5647
|
]), 1040);
|
|
5589
5648
|
};
|
|
5590
5649
|
}
|
|
5591
|
-
}),
|
|
5650
|
+
}), hi = /* @__PURE__ */ z({
|
|
5592
5651
|
__name: "ForgeToggleButton",
|
|
5593
5652
|
props: {
|
|
5594
5653
|
severity: { default: "primary" }
|
|
5595
5654
|
},
|
|
5596
5655
|
setup(e) {
|
|
5597
|
-
const t = e, a =
|
|
5656
|
+
const t = e, a = j(() => ({
|
|
5598
5657
|
root: (i) => ({
|
|
5599
5658
|
class: [
|
|
5600
5659
|
"btn",
|
|
@@ -5615,17 +5674,17 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5615
5674
|
]
|
|
5616
5675
|
})
|
|
5617
5676
|
}));
|
|
5618
|
-
return (i,
|
|
5677
|
+
return (i, o) => (d(), x(c(Ke), _({ ...i.$attrs, ...t }, {
|
|
5619
5678
|
severity: t.severity,
|
|
5620
5679
|
pt: a.value
|
|
5621
5680
|
}), null, 16, ["severity", "pt"]));
|
|
5622
5681
|
}
|
|
5623
|
-
}),
|
|
5682
|
+
}), wi = {
|
|
5624
5683
|
class: "btn-group",
|
|
5625
5684
|
"data-cy": "forge-select-button"
|
|
5626
|
-
},
|
|
5685
|
+
}, Po = /* @__PURE__ */ z({
|
|
5627
5686
|
__name: "ForgeSelectButton",
|
|
5628
|
-
props: /* @__PURE__ */
|
|
5687
|
+
props: /* @__PURE__ */ E({
|
|
5629
5688
|
options: {},
|
|
5630
5689
|
multiple: { type: Boolean, default: !0 },
|
|
5631
5690
|
allowEmpty: { type: Boolean, default: !1 },
|
|
@@ -5636,41 +5695,41 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5636
5695
|
}),
|
|
5637
5696
|
emits: ["update:modelValue"],
|
|
5638
5697
|
setup(e) {
|
|
5639
|
-
const t = e, a = N(e, "modelValue"), i = (
|
|
5698
|
+
const t = e, a = N(e, "modelValue"), i = (l) => {
|
|
5640
5699
|
var n;
|
|
5641
|
-
return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(
|
|
5642
|
-
},
|
|
5700
|
+
return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(l.value) : a.value === l.value;
|
|
5701
|
+
}, o = (l) => {
|
|
5643
5702
|
var n;
|
|
5644
|
-
if (!
|
|
5703
|
+
if (!l.disabled)
|
|
5645
5704
|
if (t.multiple) {
|
|
5646
5705
|
let s = (n = a.value) != null && n.length ? [...a.value] : [];
|
|
5647
|
-
if (s.length >= 1 && s.includes(
|
|
5706
|
+
if (s.length >= 1 && s.includes(l.value)) {
|
|
5648
5707
|
if (!t.allowEmpty && s.length === 1) return;
|
|
5649
|
-
s = s.length > 1 ? s.filter((
|
|
5708
|
+
s = s.length > 1 ? s.filter((u) => u !== l.value) : [];
|
|
5650
5709
|
} else
|
|
5651
|
-
s.push(
|
|
5710
|
+
s.push(l.value);
|
|
5652
5711
|
a.value = s;
|
|
5653
5712
|
} else
|
|
5654
|
-
a.value = a.value ===
|
|
5713
|
+
a.value = a.value === l.value && t.allowEmpty ? null : l.value;
|
|
5655
5714
|
};
|
|
5656
|
-
return (
|
|
5657
|
-
(d(!0),
|
|
5715
|
+
return (l, n) => (d(), b("div", wi, [
|
|
5716
|
+
(d(!0), b(U, null, L(l.options, (s, p) => (d(), x(hi, {
|
|
5658
5717
|
key: p,
|
|
5659
5718
|
onLabel: s.label,
|
|
5660
5719
|
offLabel: s.label,
|
|
5661
5720
|
severity: s.severity,
|
|
5662
|
-
onChange: (
|
|
5721
|
+
onChange: (u) => o(s),
|
|
5663
5722
|
defaultValue: i(s),
|
|
5664
5723
|
disabled: s.disabled,
|
|
5665
5724
|
"data-cy": `toggle-button-${s.value}`,
|
|
5666
|
-
invalid:
|
|
5725
|
+
invalid: l.invalid
|
|
5667
5726
|
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
|
|
5668
5727
|
]));
|
|
5669
5728
|
}
|
|
5670
|
-
}),
|
|
5729
|
+
}), _o = /* @__PURE__ */ z({
|
|
5671
5730
|
__name: "ForgeConfirmPopup",
|
|
5672
5731
|
setup(e) {
|
|
5673
|
-
const t =
|
|
5732
|
+
const t = j(() => ({
|
|
5674
5733
|
root: [
|
|
5675
5734
|
"card w-fit-content position-absolute"
|
|
5676
5735
|
],
|
|
@@ -5681,14 +5740,131 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5681
5740
|
pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
|
|
5682
5741
|
pcAcceptButton: { root: "btn btn-primary btn-sm" }
|
|
5683
5742
|
}));
|
|
5684
|
-
return (a, i) => (d(),
|
|
5685
|
-
default:
|
|
5686
|
-
(d(!0),
|
|
5743
|
+
return (a, i) => (d(), x(c(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
|
|
5744
|
+
default: f(() => [
|
|
5745
|
+
(d(!0), b(U, null, L(a.$slots, (o, l) => F(a.$slots, l, { slot: l })), 256))
|
|
5687
5746
|
]),
|
|
5688
5747
|
_: 3
|
|
5689
5748
|
}, 16, ["pt"]));
|
|
5690
5749
|
}
|
|
5691
|
-
}),
|
|
5750
|
+
}), ki = {
|
|
5751
|
+
key: 0,
|
|
5752
|
+
class: "mb-1"
|
|
5753
|
+
}, Bi = {
|
|
5754
|
+
key: 0,
|
|
5755
|
+
class: "mb-1"
|
|
5756
|
+
}, jo = /* @__PURE__ */ z({
|
|
5757
|
+
__name: "ForgePickList",
|
|
5758
|
+
props: /* @__PURE__ */ E({
|
|
5759
|
+
filterBy: {},
|
|
5760
|
+
sourceTitle: {},
|
|
5761
|
+
targetTitle: {},
|
|
5762
|
+
modelValue: {},
|
|
5763
|
+
selection: {},
|
|
5764
|
+
dataKey: {},
|
|
5765
|
+
metaKeySelection: { type: Boolean },
|
|
5766
|
+
autoOptionFocus: { type: Boolean },
|
|
5767
|
+
focusOnHover: { type: Boolean },
|
|
5768
|
+
listStyle: {},
|
|
5769
|
+
responsive: { type: Boolean },
|
|
5770
|
+
breakpoint: {},
|
|
5771
|
+
scrollHeight: {},
|
|
5772
|
+
striped: { type: Boolean },
|
|
5773
|
+
showSourceControls: { type: Boolean },
|
|
5774
|
+
showTargetControls: { type: Boolean },
|
|
5775
|
+
buttonProps: {},
|
|
5776
|
+
moveUpButtonProps: {},
|
|
5777
|
+
moveTopButtonProps: {},
|
|
5778
|
+
moveDownButtonProps: {},
|
|
5779
|
+
moveBottomButtonProps: {},
|
|
5780
|
+
moveToTargetProps: {},
|
|
5781
|
+
moveAllToTargetProps: {},
|
|
5782
|
+
moveToSourceProps: {},
|
|
5783
|
+
moveAllToSourceProps: {},
|
|
5784
|
+
tabindex: {},
|
|
5785
|
+
dt: {},
|
|
5786
|
+
pt: {},
|
|
5787
|
+
ptOptions: {},
|
|
5788
|
+
unstyled: { type: Boolean }
|
|
5789
|
+
}, {
|
|
5790
|
+
modelValue: {},
|
|
5791
|
+
modelModifiers: {}
|
|
5792
|
+
}),
|
|
5793
|
+
emits: ["update:modelValue"],
|
|
5794
|
+
setup(e) {
|
|
5795
|
+
const t = e, a = N(e, "modelValue"), i = M([]), o = M([]), l = M(null), n = M(null), s = (g) => {
|
|
5796
|
+
const { items: C } = g;
|
|
5797
|
+
i.value = [...i.value, ...C], o.value = o.value.filter((S) => !C.includes(S));
|
|
5798
|
+
}, p = (g) => {
|
|
5799
|
+
const { items: C } = g;
|
|
5800
|
+
o.value = [...o.value, ...C], i.value = i.value.filter((S) => !C.includes(S));
|
|
5801
|
+
}, u = () => {
|
|
5802
|
+
o.value = i.value, i.value = [];
|
|
5803
|
+
}, h = () => {
|
|
5804
|
+
i.value = o.value, o.value = [];
|
|
5805
|
+
}, r = () => {
|
|
5806
|
+
var S;
|
|
5807
|
+
const g = t.filterBy, C = l.value ? (S = a.value[0]) == null ? void 0 : S.filter((A) => {
|
|
5808
|
+
var v;
|
|
5809
|
+
return A[g].toLowerCase().includes((v = l.value) == null ? void 0 : v.toLowerCase());
|
|
5810
|
+
}) : o.value;
|
|
5811
|
+
a.value = [C, a.value[1] ?? []];
|
|
5812
|
+
}, w = () => {
|
|
5813
|
+
var S;
|
|
5814
|
+
const g = t.filterBy, C = n.value ? (S = a.value[1]) == null ? void 0 : S.filter((A) => {
|
|
5815
|
+
var v;
|
|
5816
|
+
return A[g].toLowerCase().includes((v = n.value) == null ? void 0 : v.toLowerCase());
|
|
5817
|
+
}) : i.value;
|
|
5818
|
+
a.value = [a.value[0] ?? [], C];
|
|
5819
|
+
};
|
|
5820
|
+
return W(
|
|
5821
|
+
() => a.value,
|
|
5822
|
+
(g) => {
|
|
5823
|
+
g && (i.value = g[1] ?? [], o.value = g[0] ?? [], a.value = [o.value, i.value]);
|
|
5824
|
+
},
|
|
5825
|
+
{ once: !0 }
|
|
5826
|
+
), (g, C) => (d(), x(c(Xe), _({
|
|
5827
|
+
modelValue: a.value,
|
|
5828
|
+
"onUpdate:modelValue": C[2] || (C[2] = (S) => a.value = S)
|
|
5829
|
+
}, { ...g.$attrs, ...t }, {
|
|
5830
|
+
onMoveAllToSource: u,
|
|
5831
|
+
onMoveAllToTarget: h,
|
|
5832
|
+
onMoveToTarget: C[3] || (C[3] = (S) => s(S)),
|
|
5833
|
+
onMoveToSource: C[4] || (C[4] = (S) => p(S))
|
|
5834
|
+
}), {
|
|
5835
|
+
sourceheader: f(() => [
|
|
5836
|
+
g.sourceTitle ? (d(), b("div", ki, $(g.sourceTitle), 1)) : T("", !0),
|
|
5837
|
+
k(c(ae), {
|
|
5838
|
+
modelValue: l.value,
|
|
5839
|
+
"onUpdate:modelValue": [
|
|
5840
|
+
C[0] || (C[0] = (S) => l.value = S),
|
|
5841
|
+
r
|
|
5842
|
+
],
|
|
5843
|
+
class: "mb-2",
|
|
5844
|
+
placeholder: "Search",
|
|
5845
|
+
"data-cy": "source-search"
|
|
5846
|
+
}, null, 8, ["modelValue"])
|
|
5847
|
+
]),
|
|
5848
|
+
targetheader: f(() => [
|
|
5849
|
+
g.targetTitle ? (d(), b("div", Bi, $(g.targetTitle), 1)) : T("", !0),
|
|
5850
|
+
k(c(ae), {
|
|
5851
|
+
modelValue: n.value,
|
|
5852
|
+
"onUpdate:modelValue": [
|
|
5853
|
+
C[1] || (C[1] = (S) => n.value = S),
|
|
5854
|
+
w
|
|
5855
|
+
],
|
|
5856
|
+
class: "mb-2",
|
|
5857
|
+
placeholder: "Search",
|
|
5858
|
+
"data-cy": "target-search"
|
|
5859
|
+
}, null, 8, ["modelValue"])
|
|
5860
|
+
]),
|
|
5861
|
+
option: f(({ option: S }) => [
|
|
5862
|
+
V($(S[g.filterBy]), 1)
|
|
5863
|
+
]),
|
|
5864
|
+
_: 1
|
|
5865
|
+
}, 16, ["modelValue"]));
|
|
5866
|
+
}
|
|
5867
|
+
}), Mo = () => ({
|
|
5692
5868
|
type: "component",
|
|
5693
5869
|
resolve: (e) => {
|
|
5694
5870
|
if (e.startsWith("Forge"))
|
|
@@ -5699,39 +5875,40 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
|
|
|
5699
5875
|
}
|
|
5700
5876
|
});
|
|
5701
5877
|
export {
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5878
|
+
lo as Bootstrap_PT,
|
|
5879
|
+
no as ForgeActionButton,
|
|
5880
|
+
re as ForgeAlert,
|
|
5881
|
+
so as ForgeAutoComplete,
|
|
5706
5882
|
ye as ForgeCheckbox,
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5883
|
+
yo as ForgeChip,
|
|
5884
|
+
To as ForgeColumnCustomiser,
|
|
5885
|
+
_o as ForgeConfirmPopup,
|
|
5710
5886
|
xe as ForgeDatepicker,
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5887
|
+
Co as ForgeFileUploader,
|
|
5888
|
+
So as ForgeFilterHeader,
|
|
5889
|
+
go as ForgeForm,
|
|
5890
|
+
bo as ForgeFormField,
|
|
5891
|
+
Kt as ForgeInlineEditor,
|
|
5892
|
+
ro as ForgeLink,
|
|
5717
5893
|
pe as ForgeLoader,
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5894
|
+
uo as ForgeModal,
|
|
5895
|
+
aa as ForgeMultiSelectPreview,
|
|
5896
|
+
mo as ForgeNavbar,
|
|
5897
|
+
vo as ForgePageHeader,
|
|
5898
|
+
zo as ForgePanel,
|
|
5899
|
+
jo as ForgePickList,
|
|
5900
|
+
xo as ForgeProgressBar,
|
|
5901
|
+
fo as ForgeRemainingCharacters,
|
|
5902
|
+
Mo as ForgeResolver,
|
|
5903
|
+
ho as ForgeScratchpad,
|
|
5904
|
+
Po as ForgeSelectButton,
|
|
5905
|
+
wo as ForgeStatWidget,
|
|
5906
|
+
ko as ForgeStepper,
|
|
5907
|
+
$o as ForgeTable,
|
|
5908
|
+
Bo as ForgeTile,
|
|
5909
|
+
hi as ForgeToggleButton,
|
|
5910
|
+
Fo as ForgeTreeTable,
|
|
5911
|
+
co as convertToMultiSelectOption,
|
|
5912
|
+
po as enumToMultiSelectList,
|
|
5913
|
+
Ut as parseError
|
|
5737
5914
|
};
|