@3squared/forge-ui-3 2.5.2 → 2.7.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 +1 -1
- package/dist/esm/forge-ui-3.js +857 -688
- package/dist/index.d.ts +3 -1
- package/dist/src/components/ForgeChip.vue.d.ts +1 -1
- package/dist/src/components/ForgeDatepicker.vue.d.ts +1 -1
- package/dist/src/components/ForgeLoader.vue.d.ts +1 -1
- package/dist/src/components/ForgeNavbar.vue.d.ts +1 -1
- package/dist/src/components/ForgeSelectButton.vue.d.ts +20 -0
- package/dist/src/components/ForgeStepper.vue.d.ts +1 -1
- package/dist/src/components/ForgeToggleButton.vue.d.ts +8 -0
- package/dist/src/passthroughs/Accordion.pt.d.ts +17 -0
- package/dist/src/passthroughs/SelectButton.pt.d.ts +2 -3
- package/dist/src/passthroughs/Tree.pt.d.ts +5 -0
- package/dist/src/passthroughs/TreeSelect.pt.d.ts +5 -0
- package/dist/src/types/forge-types.d.ts +8 -1
- package/dist/tests/component/tab/tab.cy.d.ts +1 -0
- package/dist/tests/component/tree/tree.cy.d.ts +1 -0
- package/dist/tests/component/tree-select/tree-select.cy.d.ts +1 -0
- package/package.json +8 -8
- package/src/styles/components/_button.scss +12 -0
- package/src/types/forge-types.ts +9 -1
- /package/dist/tests/component/{tab-view/tab.cy.d.ts → forge-toggle-button/forge-select-button.cy.d.ts} +0 -0
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import he from "primevue/message";
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as F, openBlock as d, createBlock as v, normalizeProps as K, guardReactiveProps as Z, withCtx as b, createElementVNode as m, normalizeClass as B, unref as c, createCommentVNode as C, createVNode as x, renderSlot as k, ref as _, createElementBlock as f, Fragment as O, mergeProps as S, renderList as A, mergeModels as N, useModel as D, computed as z, createTextVNode as I, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
|
|
3
3
|
import { Icon as T } from "@iconify/vue";
|
|
4
|
-
import
|
|
4
|
+
import q from "primevue/button";
|
|
5
5
|
import Be from "primevue/toast";
|
|
6
6
|
import Se from "primevue/autocomplete";
|
|
7
7
|
import Ce from "primevue/checkbox";
|
|
@@ -10,9 +10,9 @@ import ze from "primevue/progressspinner";
|
|
|
10
10
|
import Te from "primevue/dialog";
|
|
11
11
|
import ne from "primevue/inputtext";
|
|
12
12
|
import { vOnClickOutside as je } from "@vueuse/components";
|
|
13
|
-
import
|
|
13
|
+
import _e from "primevue/menubar";
|
|
14
14
|
import oe from "primevue/multiselect";
|
|
15
|
-
import
|
|
15
|
+
import Ie from "primevue/datepicker";
|
|
16
16
|
import te from "primevue/select";
|
|
17
17
|
import Pe from "primevue/inputmask";
|
|
18
18
|
import Ve from "primevue/textarea";
|
|
@@ -29,7 +29,8 @@ import { BlockBlobClient as me } from "@azure/storage-blob";
|
|
|
29
29
|
import ve from "primevue/popover";
|
|
30
30
|
import Le from "primevue/image";
|
|
31
31
|
import Re from "primevue/panel";
|
|
32
|
-
|
|
32
|
+
import { ToggleButton as He } from "primevue";
|
|
33
|
+
const We = {
|
|
33
34
|
autoComplete: {
|
|
34
35
|
root: ({ props: e }) => ({
|
|
35
36
|
class: [
|
|
@@ -58,7 +59,7 @@ const He = {
|
|
|
58
59
|
}),
|
|
59
60
|
emptyMessage: "mx-3 my-2"
|
|
60
61
|
}
|
|
61
|
-
},
|
|
62
|
+
}, Ye = {
|
|
62
63
|
button: {
|
|
63
64
|
root: ({ props: e }) => ({
|
|
64
65
|
class: [
|
|
@@ -159,7 +160,7 @@ const He = {
|
|
|
159
160
|
})
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
|
-
},
|
|
163
|
+
}, Ge = {
|
|
163
164
|
checkbox: {
|
|
164
165
|
root: () => ({
|
|
165
166
|
class: ["form-check"]
|
|
@@ -175,7 +176,7 @@ const He = {
|
|
|
175
176
|
]
|
|
176
177
|
})
|
|
177
178
|
}
|
|
178
|
-
},
|
|
179
|
+
}, Je = {
|
|
179
180
|
select: {
|
|
180
181
|
root: ({ props: e }) => ({
|
|
181
182
|
class: [
|
|
@@ -225,7 +226,7 @@ const He = {
|
|
|
225
226
|
]
|
|
226
227
|
})
|
|
227
228
|
}
|
|
228
|
-
},
|
|
229
|
+
}, Ke = {
|
|
229
230
|
column: {
|
|
230
231
|
pcSortBadge: "ms-2 my-auto cursor-pointer",
|
|
231
232
|
headerCell: (e) => {
|
|
@@ -328,7 +329,7 @@ const He = {
|
|
|
328
329
|
]
|
|
329
330
|
})
|
|
330
331
|
}
|
|
331
|
-
},
|
|
332
|
+
}, Ze = {
|
|
332
333
|
inputtext: {
|
|
333
334
|
root: (e) => {
|
|
334
335
|
var t, a;
|
|
@@ -343,7 +344,7 @@ const He = {
|
|
|
343
344
|
};
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
|
-
},
|
|
347
|
+
}, Xe = {
|
|
347
348
|
inputmask: {
|
|
348
349
|
root: () => ({
|
|
349
350
|
class: [
|
|
@@ -351,12 +352,12 @@ const He = {
|
|
|
351
352
|
]
|
|
352
353
|
})
|
|
353
354
|
}
|
|
354
|
-
},
|
|
355
|
+
}, Qe = {
|
|
355
356
|
toggleSwitch: {
|
|
356
357
|
root: "form-check form-switch",
|
|
357
358
|
input: "form-check-input"
|
|
358
359
|
}
|
|
359
|
-
},
|
|
360
|
+
}, et = {
|
|
360
361
|
tag: {
|
|
361
362
|
root: ({ props: e }) => ({
|
|
362
363
|
class: [
|
|
@@ -376,7 +377,7 @@ const He = {
|
|
|
376
377
|
]
|
|
377
378
|
})
|
|
378
379
|
}
|
|
379
|
-
},
|
|
380
|
+
}, tt = {
|
|
380
381
|
textarea: {
|
|
381
382
|
root: () => ({
|
|
382
383
|
class: [
|
|
@@ -384,13 +385,13 @@ const He = {
|
|
|
384
385
|
]
|
|
385
386
|
})
|
|
386
387
|
}
|
|
387
|
-
},
|
|
388
|
+
}, at = {
|
|
388
389
|
chip: {
|
|
389
390
|
root: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 p-1",
|
|
390
391
|
label: "px-2 fs-6 fw-400",
|
|
391
392
|
removeIcon: "ms-auto my-auto"
|
|
392
393
|
}
|
|
393
|
-
},
|
|
394
|
+
}, it = {
|
|
394
395
|
dialog: {
|
|
395
396
|
root: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
|
|
396
397
|
class: ["modal modal-dialog modal-content h-auto m-0 modal-sm"]
|
|
@@ -449,7 +450,7 @@ const He = {
|
|
|
449
450
|
]
|
|
450
451
|
})
|
|
451
452
|
}
|
|
452
|
-
},
|
|
453
|
+
}, lt = {
|
|
453
454
|
popover: {
|
|
454
455
|
root: (e) => ({
|
|
455
456
|
class: [
|
|
@@ -463,7 +464,7 @@ const He = {
|
|
|
463
464
|
content: "d-flex position-relative",
|
|
464
465
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
465
466
|
}
|
|
466
|
-
},
|
|
467
|
+
}, nt = {
|
|
467
468
|
message: {
|
|
468
469
|
root: ({ props: e }) => ({
|
|
469
470
|
class: [
|
|
@@ -492,7 +493,7 @@ const He = {
|
|
|
492
493
|
class: ["px-0 ms-2 btn d-flex"]
|
|
493
494
|
})
|
|
494
495
|
}
|
|
495
|
-
},
|
|
496
|
+
}, ot = {
|
|
496
497
|
// More PT options defined in ForgeStepper.
|
|
497
498
|
stepList: {
|
|
498
499
|
root: "d-flex mb-2 w-100"
|
|
@@ -520,7 +521,7 @@ const He = {
|
|
|
520
521
|
}),
|
|
521
522
|
separator: "border border-1 separator"
|
|
522
523
|
}
|
|
523
|
-
},
|
|
524
|
+
}, st = {
|
|
524
525
|
tabList: {
|
|
525
526
|
root: () => ({
|
|
526
527
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -545,7 +546,7 @@ const He = {
|
|
|
545
546
|
class: ["p-2"]
|
|
546
547
|
})
|
|
547
548
|
}
|
|
548
|
-
},
|
|
549
|
+
}, rt = {
|
|
549
550
|
// More PassThrough options defined in ForgeDatepicker.
|
|
550
551
|
datepicker: {
|
|
551
552
|
root: "d-inline-flex relative w-100",
|
|
@@ -620,7 +621,7 @@ const He = {
|
|
|
620
621
|
pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
|
|
621
622
|
pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
|
|
622
623
|
}
|
|
623
|
-
},
|
|
624
|
+
}, dt = {
|
|
624
625
|
multiselect: {
|
|
625
626
|
root: ({ props: e }) => ({
|
|
626
627
|
class: [
|
|
@@ -648,7 +649,7 @@ const He = {
|
|
|
648
649
|
class: "d-none"
|
|
649
650
|
})
|
|
650
651
|
}
|
|
651
|
-
},
|
|
652
|
+
}, pt = {
|
|
652
653
|
// More PassThrough options in component file.
|
|
653
654
|
progressbar: {
|
|
654
655
|
root: () => ({
|
|
@@ -658,7 +659,7 @@ const He = {
|
|
|
658
659
|
class: ["text-white m-1"]
|
|
659
660
|
})
|
|
660
661
|
}
|
|
661
|
-
},
|
|
662
|
+
}, ct = {
|
|
662
663
|
panel: {
|
|
663
664
|
root: "card w-100",
|
|
664
665
|
header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
@@ -671,7 +672,7 @@ const He = {
|
|
|
671
672
|
},
|
|
672
673
|
contentContainer: "mt-2 mx-4 mb-4"
|
|
673
674
|
}
|
|
674
|
-
},
|
|
675
|
+
}, ut = {
|
|
675
676
|
// More PT options can be found in the ForgeTable file.
|
|
676
677
|
dataTable: {
|
|
677
678
|
root: "position-relative",
|
|
@@ -745,7 +746,7 @@ const He = {
|
|
|
745
746
|
]
|
|
746
747
|
})
|
|
747
748
|
}
|
|
748
|
-
},
|
|
749
|
+
}, mt = {
|
|
749
750
|
badge: {
|
|
750
751
|
root: ({ props: e }) => ({
|
|
751
752
|
class: [
|
|
@@ -766,7 +767,7 @@ const He = {
|
|
|
766
767
|
]
|
|
767
768
|
})
|
|
768
769
|
}
|
|
769
|
-
},
|
|
770
|
+
}, vt = {
|
|
770
771
|
// More PassThrough options in component file.
|
|
771
772
|
menubar: {
|
|
772
773
|
rootList: ({ instance: e }) => ({
|
|
@@ -847,7 +848,7 @@ const He = {
|
|
|
847
848
|
]
|
|
848
849
|
})
|
|
849
850
|
}
|
|
850
|
-
},
|
|
851
|
+
}, ft = {
|
|
851
852
|
tooltip: {
|
|
852
853
|
root: ({ context: e }) => ({
|
|
853
854
|
class: [
|
|
@@ -869,24 +870,24 @@ const He = {
|
|
|
869
870
|
class: ["tooltip-inner"]
|
|
870
871
|
}
|
|
871
872
|
}
|
|
872
|
-
},
|
|
873
|
+
}, gt = {
|
|
873
874
|
selectButton: {
|
|
874
875
|
root: () => ({
|
|
875
876
|
class: ["btn-group"]
|
|
876
877
|
})
|
|
877
878
|
},
|
|
878
879
|
toggleButton: {
|
|
879
|
-
root: (
|
|
880
|
+
root: (e) => ({
|
|
880
881
|
class: [
|
|
881
882
|
"btn",
|
|
882
883
|
{
|
|
883
|
-
"btn-primary": e.active,
|
|
884
|
-
"btn-outline-primary": !e.active
|
|
884
|
+
"btn-primary": e.context.active,
|
|
885
|
+
"btn-outline-primary": !e.context.active
|
|
885
886
|
}
|
|
886
887
|
]
|
|
887
888
|
})
|
|
888
889
|
}
|
|
889
|
-
},
|
|
890
|
+
}, bt = {
|
|
890
891
|
splitbutton: {
|
|
891
892
|
root: () => ({
|
|
892
893
|
class: ["btn-group"]
|
|
@@ -922,7 +923,7 @@ const He = {
|
|
|
922
923
|
separator: "border-bottom w-100"
|
|
923
924
|
}
|
|
924
925
|
}
|
|
925
|
-
},
|
|
926
|
+
}, yt = {
|
|
926
927
|
progressspinner: {
|
|
927
928
|
spin: () => ({
|
|
928
929
|
class: [
|
|
@@ -954,11 +955,11 @@ const He = {
|
|
|
954
955
|
class: ["card-header"]
|
|
955
956
|
})
|
|
956
957
|
}
|
|
957
|
-
},
|
|
958
|
+
}, ht = {
|
|
958
959
|
divider: {
|
|
959
960
|
root: "border-bottom w-100 m-1"
|
|
960
961
|
}
|
|
961
|
-
},
|
|
962
|
+
}, wt = {
|
|
962
963
|
image: {
|
|
963
964
|
root: "position-relative d-inline-block",
|
|
964
965
|
previewMask: "preview-button",
|
|
@@ -971,7 +972,7 @@ const He = {
|
|
|
971
972
|
zoominbutton: "btn text-white",
|
|
972
973
|
closebutton: "btn text-white"
|
|
973
974
|
}
|
|
974
|
-
},
|
|
975
|
+
}, kt = {
|
|
975
976
|
toast: {
|
|
976
977
|
message: () => ({
|
|
977
978
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -1006,7 +1007,87 @@ const He = {
|
|
|
1006
1007
|
};
|
|
1007
1008
|
}
|
|
1008
1009
|
}
|
|
1009
|
-
},
|
|
1010
|
+
}, $t = {
|
|
1011
|
+
tree: {
|
|
1012
|
+
node: "m-1",
|
|
1013
|
+
nodeToggleButton: ({ context: e }) => ({
|
|
1014
|
+
class: [
|
|
1015
|
+
"btn py-0 px-1",
|
|
1016
|
+
{
|
|
1017
|
+
invisible: e.leaf
|
|
1018
|
+
}
|
|
1019
|
+
]
|
|
1020
|
+
}),
|
|
1021
|
+
rootChildren: "d-flex flex-column m-0 list-unstyled",
|
|
1022
|
+
nodeChildren: "list-unstyled ps-3 me-1",
|
|
1023
|
+
nodeContent: ({ context: e }) => ({
|
|
1024
|
+
class: [
|
|
1025
|
+
"dropdown-item d-flex text-wrap align-items-center mb-1",
|
|
1026
|
+
{
|
|
1027
|
+
"cursor-pointer": e.node.selectable || e.node.selectable == null,
|
|
1028
|
+
"bg-primary-subtle border border-primary rounded-2": e.selected
|
|
1029
|
+
}
|
|
1030
|
+
]
|
|
1031
|
+
}),
|
|
1032
|
+
pcFilterIconContainer: {
|
|
1033
|
+
root: {
|
|
1034
|
+
class: ["position-absolute bottom-0 end-0 me-3"],
|
|
1035
|
+
style: "top: 8%;"
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
pcFilterInput: { root: "d-flex cursor-pointer form-control form-control-sm w-100" },
|
|
1039
|
+
pcFilterContainer: { root: "dropdown-item" },
|
|
1040
|
+
filterIcon: "d-none"
|
|
1041
|
+
}
|
|
1042
|
+
}, Ft = {
|
|
1043
|
+
treeSelect: {
|
|
1044
|
+
root: ({ props: e }) => ({
|
|
1045
|
+
class: [
|
|
1046
|
+
"form-select d-flex cursor-pointer position-relative",
|
|
1047
|
+
{
|
|
1048
|
+
disabled: e.disabled
|
|
1049
|
+
}
|
|
1050
|
+
]
|
|
1051
|
+
}),
|
|
1052
|
+
dropdown: "d-none",
|
|
1053
|
+
panel: "dropdown-menu overflow-y-auto show",
|
|
1054
|
+
labelContainer: "w-100 me-2",
|
|
1055
|
+
label: "w-100 d-flex ellipsis-overflow",
|
|
1056
|
+
clearIcon: "ms-auto my-auto",
|
|
1057
|
+
header: "p-2 w-100",
|
|
1058
|
+
pcTree: {
|
|
1059
|
+
node: "mx-1",
|
|
1060
|
+
nodeToggleButton: ({ context: e }) => ({
|
|
1061
|
+
class: [
|
|
1062
|
+
"btn py-0 px-1",
|
|
1063
|
+
{
|
|
1064
|
+
invisible: e.leaf
|
|
1065
|
+
}
|
|
1066
|
+
]
|
|
1067
|
+
}),
|
|
1068
|
+
rootChildren: "d-flex flex-column m-0 list-unstyled",
|
|
1069
|
+
nodeChildren: "list-unstyled ps-3 mb-1 me-1",
|
|
1070
|
+
nodeContent: ({ context: e }) => ({
|
|
1071
|
+
class: [
|
|
1072
|
+
"dropdown-item d-flex text-wrap align-items-center mb-1",
|
|
1073
|
+
{
|
|
1074
|
+
"cursor-pointer": e.node.selectable || e.node.selectable == null,
|
|
1075
|
+
"bg-primary-subtle border border-primary rounded-2": e.selected
|
|
1076
|
+
}
|
|
1077
|
+
]
|
|
1078
|
+
}),
|
|
1079
|
+
pcFilterIconContainer: {
|
|
1080
|
+
root: {
|
|
1081
|
+
class: ["position-absolute bottom-0 end-0 me-3"],
|
|
1082
|
+
style: "top: 8%;"
|
|
1083
|
+
}
|
|
1084
|
+
},
|
|
1085
|
+
pcFilterInput: { root: "d-flex cursor-pointer form-control form-control-sm w-100" },
|
|
1086
|
+
pcFilterContainer: { root: "dropdown-item" },
|
|
1087
|
+
filterIcon: "d-none"
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
}, Bt = {
|
|
1010
1091
|
fieldset: {
|
|
1011
1092
|
root: () => ({
|
|
1012
1093
|
class: [
|
|
@@ -1032,42 +1113,63 @@ const He = {
|
|
|
1032
1113
|
]
|
|
1033
1114
|
})
|
|
1034
1115
|
}
|
|
1035
|
-
},
|
|
1036
|
-
|
|
1037
|
-
|
|
1116
|
+
}, St = {
|
|
1117
|
+
accordionPanel: {
|
|
1118
|
+
root: "card my-2"
|
|
1119
|
+
},
|
|
1120
|
+
accordionHeader: {
|
|
1121
|
+
root: "border-0 bg-transparent fw-400 w-100 d-flex flex-row justify-content-between align-content-center ps-4 pe-3 py-2 my-2",
|
|
1122
|
+
//header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
1123
|
+
pcToggleButton: {
|
|
1124
|
+
root: {
|
|
1125
|
+
class: [
|
|
1126
|
+
"btn"
|
|
1127
|
+
]
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
accordionContent: {
|
|
1132
|
+
root: "mt-2 mx-4 mb-4"
|
|
1133
|
+
}
|
|
1134
|
+
}, Di = {
|
|
1038
1135
|
...We,
|
|
1039
|
-
...
|
|
1136
|
+
...mt,
|
|
1040
1137
|
...Ye,
|
|
1041
|
-
...
|
|
1042
|
-
...Je,
|
|
1043
|
-
...st,
|
|
1044
|
-
...at,
|
|
1045
|
-
...yt,
|
|
1138
|
+
...xt,
|
|
1046
1139
|
...Ge,
|
|
1047
|
-
...
|
|
1140
|
+
...at,
|
|
1048
1141
|
...Ke,
|
|
1049
|
-
...Ze,
|
|
1050
|
-
...Xe,
|
|
1051
|
-
...lt,
|
|
1052
1142
|
...rt,
|
|
1053
|
-
...mt,
|
|
1054
1143
|
...it,
|
|
1144
|
+
...ht,
|
|
1145
|
+
...Je,
|
|
1146
|
+
...wt,
|
|
1147
|
+
...Ze,
|
|
1148
|
+
...Xe,
|
|
1149
|
+
...Qe,
|
|
1150
|
+
...nt,
|
|
1055
1151
|
...dt,
|
|
1056
|
-
...
|
|
1152
|
+
...vt,
|
|
1153
|
+
...lt,
|
|
1057
1154
|
...pt,
|
|
1058
|
-
...
|
|
1059
|
-
...gt,
|
|
1060
|
-
...nt,
|
|
1155
|
+
...yt,
|
|
1061
1156
|
...ct,
|
|
1062
|
-
...
|
|
1157
|
+
...gt,
|
|
1158
|
+
...bt,
|
|
1063
1159
|
...ot,
|
|
1064
|
-
...
|
|
1160
|
+
...ut,
|
|
1065
1161
|
...et,
|
|
1162
|
+
...st,
|
|
1066
1163
|
...kt,
|
|
1164
|
+
...tt,
|
|
1165
|
+
...Bt,
|
|
1166
|
+
...Ft,
|
|
1167
|
+
...$t,
|
|
1168
|
+
...St,
|
|
1067
1169
|
directives: {
|
|
1068
|
-
...
|
|
1170
|
+
...ft
|
|
1069
1171
|
}
|
|
1070
|
-
}, se = /* @__PURE__ */
|
|
1172
|
+
}, se = /* @__PURE__ */ F({
|
|
1071
1173
|
__name: "ForgeAlert",
|
|
1072
1174
|
props: {
|
|
1073
1175
|
severity: { default: "primary" },
|
|
@@ -1088,31 +1190,31 @@ const He = {
|
|
|
1088
1190
|
const t = e;
|
|
1089
1191
|
return (a, i) => {
|
|
1090
1192
|
const l = he;
|
|
1091
|
-
return d(),
|
|
1092
|
-
icon:
|
|
1193
|
+
return d(), v(l, K(Z({ ...a.$attrs, ...t })), {
|
|
1194
|
+
icon: b(() => [
|
|
1093
1195
|
m("div", {
|
|
1094
|
-
class:
|
|
1196
|
+
class: B(t.icon ? "me-2 pe-1" : "")
|
|
1095
1197
|
}, [
|
|
1096
|
-
t.icon ? (d(),
|
|
1198
|
+
t.icon ? (d(), v(c(T), {
|
|
1097
1199
|
key: 0,
|
|
1098
1200
|
"data-cy": "message-icon",
|
|
1099
1201
|
icon: t.icon,
|
|
1100
|
-
class:
|
|
1202
|
+
class: B(`text-${t.severity}`),
|
|
1101
1203
|
height: 35
|
|
1102
1204
|
}, null, 8, ["icon", "class"])) : C("", !0)
|
|
1103
1205
|
], 2)
|
|
1104
1206
|
]),
|
|
1105
|
-
closeicon:
|
|
1106
|
-
|
|
1207
|
+
closeicon: b(() => [
|
|
1208
|
+
x(c(T), { icon: "bi:x" })
|
|
1107
1209
|
]),
|
|
1108
|
-
default:
|
|
1210
|
+
default: b(() => [
|
|
1109
1211
|
k(a.$slots, "default")
|
|
1110
1212
|
]),
|
|
1111
1213
|
_: 3
|
|
1112
1214
|
}, 16);
|
|
1113
1215
|
};
|
|
1114
1216
|
}
|
|
1115
|
-
}),
|
|
1217
|
+
}), Oi = /* @__PURE__ */ F({
|
|
1116
1218
|
__name: "ForgeActionButton",
|
|
1117
1219
|
props: {
|
|
1118
1220
|
action: {},
|
|
@@ -1121,7 +1223,7 @@ const He = {
|
|
|
1121
1223
|
params: { default: Array }
|
|
1122
1224
|
},
|
|
1123
1225
|
setup(e) {
|
|
1124
|
-
const t =
|
|
1226
|
+
const t = _(!1), a = e, i = async () => {
|
|
1125
1227
|
t.value = !0;
|
|
1126
1228
|
try {
|
|
1127
1229
|
await a.action.apply(this, a.params);
|
|
@@ -1131,30 +1233,30 @@ const He = {
|
|
|
1131
1233
|
t.value = !1;
|
|
1132
1234
|
};
|
|
1133
1235
|
return (l, n) => {
|
|
1134
|
-
const
|
|
1135
|
-
return d(),
|
|
1136
|
-
|
|
1236
|
+
const o = q;
|
|
1237
|
+
return d(), f(O, null, [
|
|
1238
|
+
x(o, S({ ...a, ...l.$attrs }, {
|
|
1137
1239
|
loading: t.value,
|
|
1138
1240
|
disabled: t.value || a.disabled,
|
|
1139
1241
|
onClick: i
|
|
1140
1242
|
}), null, 16, ["loading", "disabled"]),
|
|
1141
|
-
|
|
1243
|
+
x(c(Be))
|
|
1142
1244
|
], 64);
|
|
1143
1245
|
};
|
|
1144
1246
|
}
|
|
1145
|
-
}),
|
|
1247
|
+
}), Ni = /* @__PURE__ */ F({
|
|
1146
1248
|
__name: "ForgeAutoComplete",
|
|
1147
1249
|
setup(e) {
|
|
1148
|
-
return (t, a) => (d(),
|
|
1149
|
-
default:
|
|
1150
|
-
(d(!0),
|
|
1250
|
+
return (t, a) => (d(), v(c(Se), S({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1251
|
+
default: b(() => [
|
|
1252
|
+
(d(!0), f(O, null, A(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
|
|
1151
1253
|
]),
|
|
1152
1254
|
_: 3
|
|
1153
1255
|
}, 16));
|
|
1154
1256
|
}
|
|
1155
|
-
}),
|
|
1257
|
+
}), Ct = { class: "d-flex flex-column" }, zt = ["for"], fe = /* @__PURE__ */ F({
|
|
1156
1258
|
__name: "ForgeCheckbox",
|
|
1157
|
-
props: /* @__PURE__ */
|
|
1259
|
+
props: /* @__PURE__ */ N({
|
|
1158
1260
|
label: { default: "" },
|
|
1159
1261
|
value: {},
|
|
1160
1262
|
modelValue: {},
|
|
@@ -1194,34 +1296,34 @@ const He = {
|
|
|
1194
1296
|
type: "checkbox",
|
|
1195
1297
|
checkedValue: a.value
|
|
1196
1298
|
}
|
|
1197
|
-
),
|
|
1299
|
+
), o = (p) => {
|
|
1198
1300
|
t.name ? i(p) : a.value = p;
|
|
1199
1301
|
}, r = z(() => l.value.length > 0);
|
|
1200
1302
|
return (p, u) => {
|
|
1201
|
-
const
|
|
1202
|
-
return d(),
|
|
1303
|
+
const y = Ce;
|
|
1304
|
+
return d(), f("div", Ct, [
|
|
1203
1305
|
m("div", S({
|
|
1204
1306
|
class: "d-flex",
|
|
1205
1307
|
"data-cy": "checkbox-container",
|
|
1206
|
-
onClick: u[2] || (u[2] = (
|
|
1308
|
+
onClick: u[2] || (u[2] = (s) => o(a.value))
|
|
1207
1309
|
}, { ...p.$attrs }), [
|
|
1208
|
-
y
|
|
1310
|
+
x(y, S({ ...t }, {
|
|
1209
1311
|
binary: "",
|
|
1210
1312
|
modelValue: a.value,
|
|
1211
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1313
|
+
"onUpdate:modelValue": u[0] || (u[0] = (s) => a.value = s),
|
|
1212
1314
|
"input-id": t.name,
|
|
1213
1315
|
"input-class": { "is-invalid": r.value },
|
|
1214
1316
|
class: t.disabled ? "" : "cursor-pointer"
|
|
1215
1317
|
}), null, 16, ["modelValue", "input-id", "input-class", "class"]),
|
|
1216
1318
|
m("label", {
|
|
1217
1319
|
for: t.name,
|
|
1218
|
-
onClick: u[1] || (u[1] = (
|
|
1219
|
-
class:
|
|
1320
|
+
onClick: u[1] || (u[1] = (s) => o(!a.value)),
|
|
1321
|
+
class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${r.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1220
1322
|
}, [
|
|
1221
1323
|
k(p.$slots, "default", {}, () => [
|
|
1222
|
-
|
|
1324
|
+
I(w(t.label), 1)
|
|
1223
1325
|
])
|
|
1224
|
-
], 10,
|
|
1326
|
+
], 10, zt)
|
|
1225
1327
|
], 16),
|
|
1226
1328
|
H(m("small", {
|
|
1227
1329
|
"data-cy": "error",
|
|
@@ -1232,7 +1334,7 @@ const He = {
|
|
|
1232
1334
|
]);
|
|
1233
1335
|
};
|
|
1234
1336
|
}
|
|
1235
|
-
}),
|
|
1337
|
+
}), Tt = { class: "forge-loader" }, ge = /* @__PURE__ */ F({
|
|
1236
1338
|
__name: "ForgeLoader",
|
|
1237
1339
|
props: {
|
|
1238
1340
|
severity: { default: "primary" }
|
|
@@ -1241,15 +1343,15 @@ const He = {
|
|
|
1241
1343
|
const t = e;
|
|
1242
1344
|
return (a, i) => {
|
|
1243
1345
|
const l = ze;
|
|
1244
|
-
return d(),
|
|
1245
|
-
|
|
1346
|
+
return d(), f("div", Tt, [
|
|
1347
|
+
x(l, {
|
|
1246
1348
|
"animation-duration": ".75",
|
|
1247
|
-
class:
|
|
1349
|
+
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1248
1350
|
}, null, 8, ["class"])
|
|
1249
1351
|
]);
|
|
1250
1352
|
};
|
|
1251
1353
|
}
|
|
1252
|
-
}),
|
|
1354
|
+
}), jt = ["href", "target"], Ui = /* @__PURE__ */ F({
|
|
1253
1355
|
__name: "ForgeLink",
|
|
1254
1356
|
props: {
|
|
1255
1357
|
url: {},
|
|
@@ -1283,25 +1385,25 @@ const He = {
|
|
|
1283
1385
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1284
1386
|
"me-0": e.animateIconOnHover
|
|
1285
1387
|
}));
|
|
1286
|
-
return (i, l) => (d(),
|
|
1388
|
+
return (i, l) => (d(), f("a", {
|
|
1287
1389
|
id: "link",
|
|
1288
|
-
class:
|
|
1390
|
+
class: B(["cursor-pointer d-flex text-break", t.value]),
|
|
1289
1391
|
href: i.url,
|
|
1290
1392
|
target: i.target
|
|
1291
1393
|
}, [
|
|
1292
1394
|
k(i.$slots, "default", {}, () => [
|
|
1293
|
-
i.iconName ? (d(),
|
|
1395
|
+
i.iconName ? (d(), v(c(T), {
|
|
1294
1396
|
key: 0,
|
|
1295
1397
|
id: "link-icon",
|
|
1296
1398
|
icon: i.iconName,
|
|
1297
|
-
class:
|
|
1399
|
+
class: B(["bi my-auto", a.value])
|
|
1298
1400
|
}, null, 8, ["icon", "class"])) : C("", !0),
|
|
1299
|
-
|
|
1401
|
+
I(" " + w(i.label), 1)
|
|
1300
1402
|
])
|
|
1301
|
-
], 10,
|
|
1403
|
+
], 10, jt));
|
|
1302
1404
|
}
|
|
1303
1405
|
});
|
|
1304
|
-
function
|
|
1406
|
+
function _t(e) {
|
|
1305
1407
|
const t = {
|
|
1306
1408
|
errorMessage: "",
|
|
1307
1409
|
errorDetails: []
|
|
@@ -1312,18 +1414,18 @@ function Ct(e) {
|
|
|
1312
1414
|
}
|
|
1313
1415
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1314
1416
|
}
|
|
1315
|
-
function
|
|
1417
|
+
function Ai(e, t) {
|
|
1316
1418
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1317
1419
|
}
|
|
1318
|
-
function
|
|
1420
|
+
function qi(e, t, a) {
|
|
1319
1421
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1320
1422
|
}
|
|
1321
|
-
const
|
|
1423
|
+
const It = { key: 0 }, Pt = {
|
|
1322
1424
|
class: "d-flex w-100",
|
|
1323
1425
|
"data-cy": "footer"
|
|
1324
|
-
},
|
|
1426
|
+
}, Ei = /* @__PURE__ */ F({
|
|
1325
1427
|
__name: "ForgeModal",
|
|
1326
|
-
props: /* @__PURE__ */
|
|
1428
|
+
props: /* @__PURE__ */ N({
|
|
1327
1429
|
cancelText: { default: "Cancel" },
|
|
1328
1430
|
submitText: { default: "Submit" },
|
|
1329
1431
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1371,11 +1473,11 @@ const zt = { key: 0 }, Tt = {
|
|
|
1371
1473
|
}),
|
|
1372
1474
|
emits: ["update:visible"],
|
|
1373
1475
|
setup(e) {
|
|
1374
|
-
const t = D(e, "visible"), a =
|
|
1476
|
+
const t = D(e, "visible"), a = _(!1), i = e, l = _(!1), n = _({
|
|
1375
1477
|
hasError: !1,
|
|
1376
1478
|
header: "",
|
|
1377
1479
|
message: []
|
|
1378
|
-
}),
|
|
1480
|
+
}), o = () => {
|
|
1379
1481
|
a.value = !1;
|
|
1380
1482
|
}, r = () => {
|
|
1381
1483
|
a.value = !0;
|
|
@@ -1385,16 +1487,16 @@ const zt = { key: 0 }, Tt = {
|
|
|
1385
1487
|
if (i.onConfirm) {
|
|
1386
1488
|
l.value = !0, n.value.hasError = !1;
|
|
1387
1489
|
try {
|
|
1388
|
-
const
|
|
1389
|
-
(
|
|
1390
|
-
} catch (
|
|
1490
|
+
const s = await i.onConfirm();
|
|
1491
|
+
(s || s == null) && p();
|
|
1492
|
+
} catch (s) {
|
|
1391
1493
|
n.value.hasError = !0;
|
|
1392
|
-
const $ =
|
|
1494
|
+
const $ = _t(s);
|
|
1393
1495
|
n.value.header = $.errorMessage, n.value.message = $.errorDetails;
|
|
1394
1496
|
}
|
|
1395
1497
|
l.value = !1;
|
|
1396
1498
|
}
|
|
1397
|
-
},
|
|
1499
|
+
}, y = z(() => ({
|
|
1398
1500
|
root: [
|
|
1399
1501
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1400
1502
|
{
|
|
@@ -1405,15 +1507,15 @@ const zt = { key: 0 }, Tt = {
|
|
|
1405
1507
|
}
|
|
1406
1508
|
]
|
|
1407
1509
|
}));
|
|
1408
|
-
return (
|
|
1409
|
-
const j =
|
|
1410
|
-
return d(),
|
|
1510
|
+
return (s, $) => {
|
|
1511
|
+
const j = q, V = Te;
|
|
1512
|
+
return d(), v(V, S(i, {
|
|
1411
1513
|
onMaximize: r,
|
|
1412
|
-
onUnmaximize:
|
|
1413
|
-
pt:
|
|
1514
|
+
onUnmaximize: o,
|
|
1515
|
+
pt: y.value
|
|
1414
1516
|
}), ie({
|
|
1415
|
-
closeicon:
|
|
1416
|
-
|
|
1517
|
+
closeicon: b(() => [
|
|
1518
|
+
x(c(T), {
|
|
1417
1519
|
"data-cy": "close-icon",
|
|
1418
1520
|
icon: "bi:x-lg",
|
|
1419
1521
|
width: "18",
|
|
@@ -1421,8 +1523,8 @@ const zt = { key: 0 }, Tt = {
|
|
|
1421
1523
|
onClick: p
|
|
1422
1524
|
})
|
|
1423
1525
|
]),
|
|
1424
|
-
maximizeicon:
|
|
1425
|
-
|
|
1526
|
+
maximizeicon: b(() => [
|
|
1527
|
+
x(c(T), {
|
|
1426
1528
|
"data-cy": "maximisable-icon",
|
|
1427
1529
|
icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1428
1530
|
width: "16",
|
|
@@ -1431,45 +1533,45 @@ const zt = { key: 0 }, Tt = {
|
|
|
1431
1533
|
]),
|
|
1432
1534
|
_: 2
|
|
1433
1535
|
}, [
|
|
1434
|
-
|
|
1435
|
-
name:
|
|
1436
|
-
fn:
|
|
1437
|
-
n.value.hasError ? (d(),
|
|
1536
|
+
A(s.$slots, (M, U) => ({
|
|
1537
|
+
name: U,
|
|
1538
|
+
fn: b((g) => [
|
|
1539
|
+
n.value.hasError ? (d(), v(se, {
|
|
1438
1540
|
key: 0,
|
|
1439
1541
|
severity: "danger",
|
|
1440
1542
|
"data-cy": "error"
|
|
1441
1543
|
}, {
|
|
1442
|
-
default:
|
|
1544
|
+
default: b(() => [
|
|
1443
1545
|
m("p", {
|
|
1444
|
-
class:
|
|
1546
|
+
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1445
1547
|
}, w(n.value.header), 3),
|
|
1446
|
-
n.value.message.length > 0 ? (d(),
|
|
1447
|
-
(d(!0),
|
|
1548
|
+
n.value.message.length > 0 ? (d(), f("ul", It, [
|
|
1549
|
+
(d(!0), f(O, null, A(n.value.message, (h) => (d(), f("li", { key: h }, w(h), 1))), 128))
|
|
1448
1550
|
])) : C("", !0)
|
|
1449
1551
|
]),
|
|
1450
1552
|
_: 1
|
|
1451
1553
|
})) : C("", !0),
|
|
1452
|
-
k(
|
|
1453
|
-
l.value ? k(
|
|
1454
|
-
|
|
1554
|
+
k(s.$slots, U, K(Z(g || {}))),
|
|
1555
|
+
l.value ? k(s.$slots, "loader", { key: 1 }, () => [
|
|
1556
|
+
x(ge, { "data-cy": "loader" })
|
|
1455
1557
|
]) : C("", !0)
|
|
1456
1558
|
])
|
|
1457
1559
|
})),
|
|
1458
|
-
|
|
1560
|
+
s.showFooter ? {
|
|
1459
1561
|
name: "footer",
|
|
1460
|
-
fn:
|
|
1461
|
-
m("div",
|
|
1462
|
-
|
|
1463
|
-
label:
|
|
1464
|
-
class:
|
|
1562
|
+
fn: b(() => [
|
|
1563
|
+
m("div", Pt, [
|
|
1564
|
+
x(j, {
|
|
1565
|
+
label: s.cancelText,
|
|
1566
|
+
class: B(i.cancelClass),
|
|
1465
1567
|
outlined: "",
|
|
1466
1568
|
onClick: p,
|
|
1467
1569
|
id: "cancel-button",
|
|
1468
1570
|
type: i.cancelButtonType
|
|
1469
1571
|
}, null, 8, ["label", "class", "type"]),
|
|
1470
|
-
|
|
1471
|
-
label:
|
|
1472
|
-
class:
|
|
1572
|
+
x(j, {
|
|
1573
|
+
label: s.submitText,
|
|
1574
|
+
class: B([i.submitClass, "ms-auto"]),
|
|
1473
1575
|
onClick: u,
|
|
1474
1576
|
id: "submit-button",
|
|
1475
1577
|
type: i.submitButtonType
|
|
@@ -1481,9 +1583,9 @@ const zt = { key: 0 }, Tt = {
|
|
|
1481
1583
|
]), 1040, ["pt"]);
|
|
1482
1584
|
};
|
|
1483
1585
|
}
|
|
1484
|
-
}),
|
|
1586
|
+
}), Vt = ["id"], Mt = { key: 0 }, Dt = { key: 0 }, Ot = { class: "d-flex justify-content-between align-items-center position-relative" }, Nt = { key: 1 }, Ut = { "data-cy": "readonly-value" }, At = /* @__PURE__ */ F({
|
|
1485
1587
|
__name: "ForgeInlineEditor",
|
|
1486
|
-
props: /* @__PURE__ */
|
|
1588
|
+
props: /* @__PURE__ */ N({
|
|
1487
1589
|
name: { default: "" },
|
|
1488
1590
|
completeAction: {},
|
|
1489
1591
|
errorAction: {},
|
|
@@ -1496,13 +1598,13 @@ const zt = { key: 0 }, Tt = {
|
|
|
1496
1598
|
}),
|
|
1497
1599
|
emits: ["update:modelValue"],
|
|
1498
1600
|
setup(e) {
|
|
1499
|
-
const t = e, a = D(e, "modelValue"), i =
|
|
1601
|
+
const t = e, a = D(e, "modelValue"), i = _(!1), l = _(), n = () => {
|
|
1500
1602
|
var j;
|
|
1501
1603
|
i.value = !i.value, (j = l.value) == null || j.focus();
|
|
1502
|
-
},
|
|
1604
|
+
}, o = async () => {
|
|
1503
1605
|
if ($.value)
|
|
1504
1606
|
return !1;
|
|
1505
|
-
if (a.value =
|
|
1607
|
+
if (a.value = s.value, t.completeAction)
|
|
1506
1608
|
try {
|
|
1507
1609
|
await t.completeAction.apply(this, t.params), i.value = !i.value;
|
|
1508
1610
|
} catch {
|
|
@@ -1513,47 +1615,47 @@ const zt = { key: 0 }, Tt = {
|
|
|
1513
1615
|
}, r = () => {
|
|
1514
1616
|
i.value = !i.value;
|
|
1515
1617
|
}, p = () => {
|
|
1516
|
-
|
|
1517
|
-
}, { errorMessage: u, errors:
|
|
1618
|
+
s.value = null;
|
|
1619
|
+
}, { errorMessage: u, errors: y, value: s } = ee(() => t.name, void 0, {
|
|
1518
1620
|
initialValue: a.value
|
|
1519
1621
|
});
|
|
1520
1622
|
le(() => {
|
|
1521
|
-
|
|
1623
|
+
s.value = a.value;
|
|
1522
1624
|
});
|
|
1523
|
-
const $ = z(() =>
|
|
1625
|
+
const $ = z(() => y.value.length > 0);
|
|
1524
1626
|
return (j, V) => {
|
|
1525
|
-
const M = ne,
|
|
1526
|
-
return d(),
|
|
1627
|
+
const M = ne, U = q;
|
|
1628
|
+
return d(), f("div", {
|
|
1527
1629
|
id: t.name
|
|
1528
1630
|
}, [
|
|
1529
|
-
j.readonly ? (d(),
|
|
1631
|
+
j.readonly ? (d(), f("div", Nt, [
|
|
1530
1632
|
k(j.$slots, "default", {}, () => [
|
|
1531
|
-
m("span",
|
|
1633
|
+
m("span", Ut, w(c(s)), 1)
|
|
1532
1634
|
])
|
|
1533
|
-
])) : (d(),
|
|
1534
|
-
i.value ? (d(),
|
|
1535
|
-
H((d(),
|
|
1635
|
+
])) : (d(), f("div", Mt, [
|
|
1636
|
+
i.value ? (d(), f("div", Dt, [
|
|
1637
|
+
H((d(), f("div", Ot, [
|
|
1536
1638
|
k(j.$slots, "editor", {
|
|
1537
|
-
class:
|
|
1538
|
-
editFinished:
|
|
1639
|
+
class: B({ "is-invalid": $.value }),
|
|
1640
|
+
editFinished: o,
|
|
1539
1641
|
cancel: r,
|
|
1540
|
-
val: c(
|
|
1642
|
+
val: c(s)
|
|
1541
1643
|
}, () => [
|
|
1542
|
-
|
|
1543
|
-
modelValue: c(
|
|
1544
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
1644
|
+
x(M, {
|
|
1645
|
+
modelValue: c(s),
|
|
1646
|
+
"onUpdate:modelValue": V[0] || (V[0] = (g) => we(s) ? s.value = g : null),
|
|
1545
1647
|
modelModifiers: { trim: !0 },
|
|
1546
1648
|
"data-cy": "input",
|
|
1547
1649
|
ref_key: "input",
|
|
1548
1650
|
ref: l,
|
|
1549
|
-
class:
|
|
1651
|
+
class: B({ "is-invalid": $.value }),
|
|
1550
1652
|
onKeydown: [
|
|
1551
|
-
X(
|
|
1653
|
+
X(o, ["enter"]),
|
|
1552
1654
|
X(r, ["esc"])
|
|
1553
1655
|
]
|
|
1554
1656
|
}, null, 8, ["modelValue", "class"])
|
|
1555
1657
|
]),
|
|
1556
|
-
|
|
1658
|
+
x(c(T), {
|
|
1557
1659
|
icon: "bi:x-circle",
|
|
1558
1660
|
class: "mx-2 cursor-pointer",
|
|
1559
1661
|
onClick: p,
|
|
@@ -1561,9 +1663,9 @@ const zt = { key: 0 }, Tt = {
|
|
|
1561
1663
|
"data-cy": "clear-icon"
|
|
1562
1664
|
})
|
|
1563
1665
|
])), [
|
|
1564
|
-
[c(je),
|
|
1666
|
+
[c(je), o]
|
|
1565
1667
|
])
|
|
1566
|
-
])) : (d(),
|
|
1668
|
+
])) : (d(), f("div", {
|
|
1567
1669
|
key: 1,
|
|
1568
1670
|
class: "d-flex text-muted",
|
|
1569
1671
|
onClick: n,
|
|
@@ -1571,18 +1673,18 @@ const zt = { key: 0 }, Tt = {
|
|
|
1571
1673
|
}, [
|
|
1572
1674
|
k(j.$slots, "default", {}, () => [
|
|
1573
1675
|
m("div", {
|
|
1574
|
-
class:
|
|
1676
|
+
class: B(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
|
|
1575
1677
|
"data-cy": "value"
|
|
1576
|
-
}, w(c(
|
|
1678
|
+
}, w(c(s) ? c(s) : "Click to edit"), 3)
|
|
1577
1679
|
]),
|
|
1578
|
-
|
|
1680
|
+
x(U, {
|
|
1579
1681
|
link: "",
|
|
1580
1682
|
class: "p-0 m-0"
|
|
1581
1683
|
}, {
|
|
1582
|
-
default:
|
|
1583
|
-
|
|
1684
|
+
default: b(() => [
|
|
1685
|
+
x(c(T), {
|
|
1584
1686
|
icon: "bi:pencil",
|
|
1585
|
-
class:
|
|
1687
|
+
class: B($.value ? "text-invalid" : "text-muted"),
|
|
1586
1688
|
"data-cy": "edit-icon",
|
|
1587
1689
|
onKeydown: X(n, ["enter"])
|
|
1588
1690
|
}, null, 8, ["class"])
|
|
@@ -1597,10 +1699,10 @@ const zt = { key: 0 }, Tt = {
|
|
|
1597
1699
|
}, w(c(u)), 513), [
|
|
1598
1700
|
[Y, $.value]
|
|
1599
1701
|
])
|
|
1600
|
-
], 8,
|
|
1702
|
+
], 8, Vt);
|
|
1601
1703
|
};
|
|
1602
1704
|
}
|
|
1603
|
-
}),
|
|
1705
|
+
}), qt = ["href"], Li = /* @__PURE__ */ F({
|
|
1604
1706
|
__name: "ForgeNavbar",
|
|
1605
1707
|
props: {
|
|
1606
1708
|
severity: { default: "light" },
|
|
@@ -1644,26 +1746,26 @@ const zt = { key: 0 }, Tt = {
|
|
|
1644
1746
|
]
|
|
1645
1747
|
})
|
|
1646
1748
|
}));
|
|
1647
|
-
return (i, l) => (d(),
|
|
1749
|
+
return (i, l) => (d(), v(c(_e), S({ ...t, ...i.$attrs }, {
|
|
1648
1750
|
pt: a.value,
|
|
1649
1751
|
"data-cy": "navbar"
|
|
1650
1752
|
}), ie({
|
|
1651
|
-
start:
|
|
1753
|
+
start: b(() => [
|
|
1652
1754
|
m("a", {
|
|
1653
1755
|
href: i.logoUrl,
|
|
1654
1756
|
class: "navbar-brand ms-3",
|
|
1655
1757
|
"data-cy": "logo"
|
|
1656
1758
|
}, [
|
|
1657
1759
|
k(i.$slots, "logo", {}, () => [
|
|
1658
|
-
l[0] || (l[0] =
|
|
1760
|
+
l[0] || (l[0] = I(" Logo "))
|
|
1659
1761
|
])
|
|
1660
|
-
], 8,
|
|
1762
|
+
], 8, qt)
|
|
1661
1763
|
]),
|
|
1662
|
-
buttonicon:
|
|
1764
|
+
buttonicon: b(() => [
|
|
1663
1765
|
k(i.$slots, "buttonIcon", {}, () => [
|
|
1664
|
-
|
|
1766
|
+
x(c(T), {
|
|
1665
1767
|
icon: "bi:list",
|
|
1666
|
-
class:
|
|
1768
|
+
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1667
1769
|
height: "24",
|
|
1668
1770
|
"data-cy": "burger-icon"
|
|
1669
1771
|
}, null, 8, ["class"])
|
|
@@ -1671,24 +1773,24 @@ const zt = { key: 0 }, Tt = {
|
|
|
1671
1773
|
]),
|
|
1672
1774
|
_: 2
|
|
1673
1775
|
}, [
|
|
1674
|
-
|
|
1675
|
-
name:
|
|
1676
|
-
fn:
|
|
1677
|
-
k(i.$slots,
|
|
1776
|
+
A(i.$slots, (n, o) => ({
|
|
1777
|
+
name: o,
|
|
1778
|
+
fn: b((r) => [
|
|
1779
|
+
k(i.$slots, o, K(Z(r)))
|
|
1678
1780
|
])
|
|
1679
1781
|
}))
|
|
1680
1782
|
]), 1040, ["pt"]));
|
|
1681
1783
|
}
|
|
1682
|
-
}),
|
|
1784
|
+
}), Et = { class: "border alternating-item-list" }, Lt = {
|
|
1683
1785
|
key: 0,
|
|
1684
1786
|
class: "p-2 border-top border-bottom",
|
|
1685
1787
|
"data-cy": "title"
|
|
1686
|
-
},
|
|
1788
|
+
}, Rt = { class: "d-inline-block" }, Ht = {
|
|
1687
1789
|
key: 1,
|
|
1688
1790
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1689
|
-
},
|
|
1791
|
+
}, Wt = /* @__PURE__ */ F({
|
|
1690
1792
|
__name: "ForgeMultiSelectPreview",
|
|
1691
|
-
props: /* @__PURE__ */
|
|
1793
|
+
props: /* @__PURE__ */ N({
|
|
1692
1794
|
title: { default: "Selected Items" },
|
|
1693
1795
|
orientation: { default: "row" },
|
|
1694
1796
|
height: { default: "200px" },
|
|
@@ -1706,16 +1808,16 @@ const zt = { key: 0 }, Tt = {
|
|
|
1706
1808
|
a.value = a.value.filter((n) => n.id !== l);
|
|
1707
1809
|
};
|
|
1708
1810
|
return (l, n) => {
|
|
1709
|
-
const
|
|
1710
|
-
return d(),
|
|
1711
|
-
class:
|
|
1811
|
+
const o = oe, r = q;
|
|
1812
|
+
return d(), f("div", {
|
|
1813
|
+
class: B(l.orientation === "column" ? "row" : ""),
|
|
1712
1814
|
"data-cy": "multiselect-preview"
|
|
1713
1815
|
}, [
|
|
1714
1816
|
m("div", {
|
|
1715
|
-
class:
|
|
1817
|
+
class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1716
1818
|
"data-cy": "multiselect-container"
|
|
1717
1819
|
}, [
|
|
1718
|
-
|
|
1820
|
+
x(o, S({
|
|
1719
1821
|
modelValue: a.value,
|
|
1720
1822
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
|
|
1721
1823
|
}, { ...l.$attrs }, {
|
|
@@ -1724,38 +1826,38 @@ const zt = { key: 0 }, Tt = {
|
|
|
1724
1826
|
placeholder: l.multiselectPlaceholder,
|
|
1725
1827
|
"data-cy": "multiselect"
|
|
1726
1828
|
}), {
|
|
1727
|
-
default:
|
|
1728
|
-
(d(!0),
|
|
1829
|
+
default: b(() => [
|
|
1830
|
+
(d(!0), f(O, null, A(l.$slots, (p, u) => k(l.$slots, u, { slot: u })), 256))
|
|
1729
1831
|
]),
|
|
1730
1832
|
_: 3
|
|
1731
1833
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1732
1834
|
k(l.$slots, "after-multi-select")
|
|
1733
1835
|
], 2),
|
|
1734
1836
|
m("div", {
|
|
1735
|
-
class:
|
|
1837
|
+
class: B(l.orientation === "row" ? "col-12" : "col"),
|
|
1736
1838
|
"data-cy": "options-preview"
|
|
1737
1839
|
}, [
|
|
1738
1840
|
m("div", {
|
|
1739
1841
|
style: ke({ height: l.height }),
|
|
1740
1842
|
class: "overflow-auto"
|
|
1741
1843
|
}, [
|
|
1742
|
-
m("div",
|
|
1743
|
-
l.title ? (d(),
|
|
1744
|
-
(d(!0),
|
|
1844
|
+
m("div", Et, [
|
|
1845
|
+
l.title ? (d(), f("div", Lt, w(l.title), 1)) : C("", !0),
|
|
1846
|
+
(d(!0), f(O, null, A(a.value, (p) => (d(), f("div", {
|
|
1745
1847
|
key: p.id,
|
|
1746
1848
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1747
1849
|
}, [
|
|
1748
1850
|
k(l.$slots, "list-item", { item: p }, () => [
|
|
1749
|
-
m("span",
|
|
1851
|
+
m("span", Rt, w(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1750
1852
|
]),
|
|
1751
|
-
l.canRemoveItemFromPreview ? (d(),
|
|
1853
|
+
l.canRemoveItemFromPreview ? (d(), v(r, {
|
|
1752
1854
|
key: 0,
|
|
1753
1855
|
link: "",
|
|
1754
1856
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1755
1857
|
onClick: (u) => i(p.id)
|
|
1756
1858
|
}, {
|
|
1757
|
-
default:
|
|
1758
|
-
|
|
1859
|
+
default: b(() => [
|
|
1860
|
+
x(c(T), {
|
|
1759
1861
|
icon: "bi:x",
|
|
1760
1862
|
class: "close-icon",
|
|
1761
1863
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -1764,36 +1866,36 @@ const zt = { key: 0 }, Tt = {
|
|
|
1764
1866
|
_: 2
|
|
1765
1867
|
}, 1032, ["onClick"])) : C("", !0)
|
|
1766
1868
|
]))), 128)),
|
|
1767
|
-
a.value == null || a.value.length == 0 ? (d(),
|
|
1869
|
+
a.value == null || a.value.length == 0 ? (d(), f("div", Ht, w(t.optionsPreviewEmptyText), 1)) : C("", !0)
|
|
1768
1870
|
])
|
|
1769
1871
|
], 4)
|
|
1770
1872
|
], 2)
|
|
1771
1873
|
], 2);
|
|
1772
1874
|
};
|
|
1773
1875
|
}
|
|
1774
|
-
}),
|
|
1876
|
+
}), Yt = { class: "d-flex justify-content-between pb-2" }, Gt = {
|
|
1775
1877
|
"data-cy": "title",
|
|
1776
1878
|
class: "my-auto"
|
|
1777
|
-
},
|
|
1879
|
+
}, Jt = {
|
|
1778
1880
|
"data-cy": "slot",
|
|
1779
1881
|
class: "d-flex align-items-center"
|
|
1780
|
-
},
|
|
1882
|
+
}, Ri = /* @__PURE__ */ F({
|
|
1781
1883
|
__name: "ForgePageHeader",
|
|
1782
1884
|
props: {
|
|
1783
1885
|
title: {}
|
|
1784
1886
|
},
|
|
1785
1887
|
setup(e) {
|
|
1786
1888
|
const t = e;
|
|
1787
|
-
return (a, i) => (d(),
|
|
1788
|
-
m("h3",
|
|
1789
|
-
m("div",
|
|
1889
|
+
return (a, i) => (d(), f("div", Yt, [
|
|
1890
|
+
m("h3", Gt, w(t.title), 1),
|
|
1891
|
+
m("div", Jt, [
|
|
1790
1892
|
k(a.$slots, "default")
|
|
1791
1893
|
])
|
|
1792
1894
|
]));
|
|
1793
1895
|
}
|
|
1794
|
-
}),
|
|
1896
|
+
}), Kt = { class: "d-flex" }, Zt = { "data-cy": "before-slot" }, Xt = { class: "position-relative w-100" }, Qt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ F({
|
|
1795
1897
|
__name: "ForgeDatepicker",
|
|
1796
|
-
props: /* @__PURE__ */
|
|
1898
|
+
props: /* @__PURE__ */ N({
|
|
1797
1899
|
severity: { default: "primary" },
|
|
1798
1900
|
modelValue: {},
|
|
1799
1901
|
defaultValue: {},
|
|
@@ -1867,37 +1969,37 @@ const zt = { key: 0 }, Tt = {
|
|
|
1867
1969
|
}),
|
|
1868
1970
|
emits: ["update:modelValue"],
|
|
1869
1971
|
setup(e) {
|
|
1870
|
-
const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur:
|
|
1972
|
+
const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur: o, setValue: r } = ee(() => t.name, void 0, {
|
|
1871
1973
|
initialValue: a.value
|
|
1872
1974
|
}), p = () => {
|
|
1873
1975
|
r(null), a.value = null;
|
|
1874
|
-
}, u = z(() => i.value.length > 0),
|
|
1875
|
-
dayCell: ({ context:
|
|
1976
|
+
}, u = z(() => i.value.length > 0), y = z(() => ({
|
|
1977
|
+
dayCell: ({ context: s }) => ({
|
|
1876
1978
|
class: [
|
|
1877
1979
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
1878
1980
|
{
|
|
1879
|
-
"cursor-pointer": !
|
|
1880
|
-
"pe-none":
|
|
1881
|
-
"text-white":
|
|
1981
|
+
"cursor-pointer": !s.disabled,
|
|
1982
|
+
"pe-none": s.disabled,
|
|
1983
|
+
"text-white": s.selected
|
|
1882
1984
|
},
|
|
1883
1985
|
// Severities
|
|
1884
1986
|
{
|
|
1885
|
-
selected:
|
|
1886
|
-
"text-primary": !
|
|
1887
|
-
"text-brand": !
|
|
1888
|
-
"text-secondary": !
|
|
1889
|
-
"text-success": !
|
|
1890
|
-
"text-warning": !
|
|
1891
|
-
"text-danger": !
|
|
1892
|
-
"text-info": !
|
|
1987
|
+
selected: s.selected && !s.disabled,
|
|
1988
|
+
"text-primary": !s.selected && s.today && (t.severity === void 0 || t.severity === "primary"),
|
|
1989
|
+
"text-brand": !s.selected && s.today && t.severity === "brand",
|
|
1990
|
+
"text-secondary": !s.selected && s.today && t.severity === "secondary",
|
|
1991
|
+
"text-success": !s.selected && s.today && t.severity === "success",
|
|
1992
|
+
"text-warning": !s.selected && s.today && t.severity === "warning",
|
|
1993
|
+
"text-danger": !s.selected && s.today && t.severity === "danger",
|
|
1994
|
+
"text-info": !s.selected && s.today && t.severity === "info"
|
|
1893
1995
|
}
|
|
1894
1996
|
]
|
|
1895
1997
|
}),
|
|
1896
|
-
dayLabel: ({ context:
|
|
1998
|
+
dayLabel: ({ context: s }) => ({
|
|
1897
1999
|
class: [
|
|
1898
2000
|
// Disabled States
|
|
1899
2001
|
{
|
|
1900
|
-
"text-muted":
|
|
2002
|
+
"text-muted": s.disabled
|
|
1901
2003
|
}
|
|
1902
2004
|
]
|
|
1903
2005
|
}),
|
|
@@ -1933,71 +2035,71 @@ const zt = { key: 0 }, Tt = {
|
|
|
1933
2035
|
]
|
|
1934
2036
|
})
|
|
1935
2037
|
},
|
|
1936
|
-
year: ({ context:
|
|
2038
|
+
year: ({ context: s }) => ({
|
|
1937
2039
|
class: [
|
|
1938
2040
|
"col-3 text-center cursor-pointer py-2",
|
|
1939
2041
|
{
|
|
1940
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
1941
|
-
"text-brand": t.severity === "brand" &&
|
|
1942
|
-
"text-secondary": t.severity === "secondary" &&
|
|
1943
|
-
"text-success": t.severity === "success" &&
|
|
1944
|
-
"text-warning": t.severity === "warning" &&
|
|
1945
|
-
"text-danger": t.severity === "danger" &&
|
|
1946
|
-
"text-info": t.severity === "info" &&
|
|
2042
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2043
|
+
"text-brand": t.severity === "brand" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2044
|
+
"text-secondary": t.severity === "secondary" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2045
|
+
"text-success": t.severity === "success" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2046
|
+
"text-warning": t.severity === "warning" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2047
|
+
"text-danger": t.severity === "danger" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
2048
|
+
"text-info": t.severity === "info" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear()
|
|
1947
2049
|
}
|
|
1948
2050
|
]
|
|
1949
2051
|
}),
|
|
1950
|
-
month: ({ context:
|
|
2052
|
+
month: ({ context: s }) => ({
|
|
1951
2053
|
class: [
|
|
1952
2054
|
"col-3 text-center cursor-pointer py-2",
|
|
1953
2055
|
{
|
|
1954
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
1955
|
-
"text-brand": t.severity === "brand" &&
|
|
1956
|
-
"text-secondary": t.severity === "secondary" &&
|
|
1957
|
-
"text-success": t.severity === "success" &&
|
|
1958
|
-
"text-warning": t.severity === "warning" &&
|
|
1959
|
-
"text-danger": t.severity === "danger" &&
|
|
1960
|
-
"text-info": t.severity === "info" &&
|
|
2056
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2057
|
+
"text-brand": t.severity === "brand" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2058
|
+
"text-secondary": t.severity === "secondary" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2059
|
+
"text-success": t.severity === "success" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2060
|
+
"text-warning": t.severity === "warning" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2061
|
+
"text-danger": t.severity === "danger" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
2062
|
+
"text-info": t.severity === "info" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
|
|
1961
2063
|
}
|
|
1962
2064
|
]
|
|
1963
2065
|
})
|
|
1964
2066
|
}));
|
|
1965
|
-
return (
|
|
1966
|
-
const j =
|
|
1967
|
-
return d(),
|
|
1968
|
-
m("div",
|
|
1969
|
-
m("span",
|
|
1970
|
-
k(
|
|
2067
|
+
return (s, $) => {
|
|
2068
|
+
const j = Ie;
|
|
2069
|
+
return d(), f(O, null, [
|
|
2070
|
+
m("div", Kt, [
|
|
2071
|
+
m("span", Zt, [
|
|
2072
|
+
k(s.$slots, "before")
|
|
1971
2073
|
]),
|
|
1972
|
-
m("div",
|
|
1973
|
-
|
|
1974
|
-
pt:
|
|
2074
|
+
m("div", Xt, [
|
|
2075
|
+
x(j, S({ ...t, ...s.$attrs }, {
|
|
2076
|
+
pt: y.value,
|
|
1975
2077
|
modelValue: a.value,
|
|
1976
2078
|
"onUpdate:modelValue": [
|
|
1977
2079
|
$[0] || ($[0] = (V) => a.value = V),
|
|
1978
2080
|
c(n)
|
|
1979
2081
|
],
|
|
1980
|
-
onBlur: $[1] || ($[1] = () => c(
|
|
2082
|
+
onBlur: $[1] || ($[1] = () => c(o)),
|
|
1981
2083
|
"input-class": { "datepicker-invalid": u.value }
|
|
1982
2084
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
1983
|
-
H(
|
|
2085
|
+
H(x(c(T), {
|
|
1984
2086
|
"data-cy": "icon",
|
|
1985
2087
|
icon: "bi:calendar4",
|
|
1986
|
-
class:
|
|
2088
|
+
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${u.value ? "text-danger-dark" : "text-muted"}`])
|
|
1987
2089
|
}, null, 8, ["class"]), [
|
|
1988
2090
|
[Y, t.showIcon]
|
|
1989
2091
|
]),
|
|
1990
|
-
H(
|
|
2092
|
+
H(x(c(T), {
|
|
1991
2093
|
"data-cy": "icon",
|
|
1992
2094
|
icon: "bi:x",
|
|
1993
2095
|
onClick: p,
|
|
1994
|
-
class:
|
|
2096
|
+
class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
1995
2097
|
}, null, 8, ["class"]), [
|
|
1996
2098
|
[Y, t.modelValue]
|
|
1997
2099
|
])
|
|
1998
2100
|
]),
|
|
1999
|
-
m("span",
|
|
2000
|
-
k(
|
|
2101
|
+
m("span", Qt, [
|
|
2102
|
+
k(s.$slots, "after")
|
|
2001
2103
|
])
|
|
2002
2104
|
]),
|
|
2003
2105
|
H(m("small", {
|
|
@@ -2009,7 +2111,7 @@ const zt = { key: 0 }, Tt = {
|
|
|
2009
2111
|
], 64);
|
|
2010
2112
|
};
|
|
2011
2113
|
}
|
|
2012
|
-
}),
|
|
2114
|
+
}), Hi = /* @__PURE__ */ F({
|
|
2013
2115
|
__name: "ForgeRemainingCharacters",
|
|
2014
2116
|
props: {
|
|
2015
2117
|
maxCount: { default: 300 },
|
|
@@ -2017,11 +2119,11 @@ const zt = { key: 0 }, Tt = {
|
|
|
2017
2119
|
},
|
|
2018
2120
|
setup(e) {
|
|
2019
2121
|
const t = e, a = z(() => t.maxCount - t.currentCount);
|
|
2020
|
-
return (i, l) => (d(),
|
|
2021
|
-
class:
|
|
2122
|
+
return (i, l) => (d(), f("div", {
|
|
2123
|
+
class: B(a.value < 0 ? "text-danger" : "")
|
|
2022
2124
|
}, "Remaining characters: " + w(a.value), 3));
|
|
2023
2125
|
}
|
|
2024
|
-
}),
|
|
2126
|
+
}), ea = { class: "d-flex justify-content-between" }, Wi = /* @__PURE__ */ F({
|
|
2025
2127
|
__name: "ForgeForm",
|
|
2026
2128
|
props: {
|
|
2027
2129
|
onSubmit: {},
|
|
@@ -2033,7 +2135,7 @@ const zt = { key: 0 }, Tt = {
|
|
|
2033
2135
|
hideCancel: { type: Boolean, default: !1 }
|
|
2034
2136
|
},
|
|
2035
2137
|
setup(e) {
|
|
2036
|
-
const t = e, a =
|
|
2138
|
+
const t = e, a = _(!1), i = _({
|
|
2037
2139
|
hasError: !1,
|
|
2038
2140
|
message: ""
|
|
2039
2141
|
});
|
|
@@ -2046,80 +2148,80 @@ const zt = { key: 0 }, Tt = {
|
|
|
2046
2148
|
}
|
|
2047
2149
|
a.value = !1;
|
|
2048
2150
|
}
|
|
2049
|
-
return (n,
|
|
2050
|
-
const r =
|
|
2051
|
-
return d(),
|
|
2151
|
+
return (n, o) => {
|
|
2152
|
+
const r = q;
|
|
2153
|
+
return d(), f("form", S(n.$attrs, {
|
|
2052
2154
|
novalidate: "",
|
|
2053
2155
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2054
2156
|
onSubmit: G(l, ["prevent"])
|
|
2055
2157
|
}), [
|
|
2056
|
-
n.hideTitle ? C("", !0) : (d(),
|
|
2158
|
+
n.hideTitle ? C("", !0) : (d(), f(O, { key: 0 }, [
|
|
2057
2159
|
k(n.$slots, "title", {}, () => [
|
|
2058
2160
|
m("h3", {
|
|
2059
|
-
class:
|
|
2161
|
+
class: B(n.titleClass),
|
|
2060
2162
|
"data-cy": "form-title"
|
|
2061
2163
|
}, w(n.title), 3)
|
|
2062
2164
|
]),
|
|
2063
|
-
|
|
2165
|
+
o[1] || (o[1] = m("hr", null, null, -1))
|
|
2064
2166
|
], 64)),
|
|
2065
|
-
i.value.hasError ? (d(),
|
|
2167
|
+
i.value.hasError ? (d(), v(se, {
|
|
2066
2168
|
key: 1,
|
|
2067
2169
|
severity: "danger",
|
|
2068
2170
|
"data-cy": "error"
|
|
2069
2171
|
}, {
|
|
2070
|
-
default:
|
|
2172
|
+
default: b(() => [
|
|
2071
2173
|
k(n.$slots, "error", {
|
|
2072
2174
|
error: i.value.message
|
|
2073
2175
|
}, () => [
|
|
2074
|
-
|
|
2176
|
+
I(w(i.value.message), 1)
|
|
2075
2177
|
])
|
|
2076
2178
|
]),
|
|
2077
2179
|
_: 3
|
|
2078
2180
|
})) : C("", !0),
|
|
2079
2181
|
k(n.$slots, "default"),
|
|
2080
|
-
m("div",
|
|
2182
|
+
m("div", ea, [
|
|
2081
2183
|
k(n.$slots, "cancel", {}, () => [
|
|
2082
|
-
n.hideCancel ? C("", !0) : (d(),
|
|
2184
|
+
n.hideCancel ? C("", !0) : (d(), v(r, {
|
|
2083
2185
|
key: 0,
|
|
2084
2186
|
"data-cy": "cancel-btn",
|
|
2085
2187
|
type: "reset",
|
|
2086
2188
|
severity: "secondary",
|
|
2087
2189
|
outlined: "",
|
|
2088
|
-
onClick:
|
|
2190
|
+
onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
|
|
2089
2191
|
}, {
|
|
2090
|
-
default:
|
|
2091
|
-
|
|
2192
|
+
default: b(() => [
|
|
2193
|
+
I(w(n.cancelText), 1)
|
|
2092
2194
|
]),
|
|
2093
2195
|
_: 1
|
|
2094
2196
|
}))
|
|
2095
2197
|
]),
|
|
2096
2198
|
k(n.$slots, "submit", { submit: l }, () => [
|
|
2097
|
-
|
|
2199
|
+
x(r, {
|
|
2098
2200
|
"data-cy": "submit-btn",
|
|
2099
2201
|
type: "submit",
|
|
2100
2202
|
severity: "primary",
|
|
2101
2203
|
class: "ms-auto"
|
|
2102
2204
|
}, {
|
|
2103
|
-
default:
|
|
2104
|
-
|
|
2205
|
+
default: b(() => [
|
|
2206
|
+
I(w(n.submitText), 1)
|
|
2105
2207
|
]),
|
|
2106
2208
|
_: 1
|
|
2107
2209
|
})
|
|
2108
2210
|
])
|
|
2109
2211
|
]),
|
|
2110
|
-
a.value ? (d(),
|
|
2212
|
+
a.value ? (d(), v(ge, {
|
|
2111
2213
|
key: 2,
|
|
2112
2214
|
"data-cy": "loading-spinner"
|
|
2113
2215
|
})) : C("", !0)
|
|
2114
2216
|
], 16);
|
|
2115
2217
|
};
|
|
2116
2218
|
}
|
|
2117
|
-
}),
|
|
2219
|
+
}), ta = {
|
|
2118
2220
|
key: 1,
|
|
2119
2221
|
class: "d-flex flex-column w-100"
|
|
2120
|
-
},
|
|
2222
|
+
}, aa = ["for"], Yi = /* @__PURE__ */ F({
|
|
2121
2223
|
__name: "ForgeFormField",
|
|
2122
|
-
props: /* @__PURE__ */
|
|
2224
|
+
props: /* @__PURE__ */ N({
|
|
2123
2225
|
name: {},
|
|
2124
2226
|
fieldLabelPosition: { default: "top" },
|
|
2125
2227
|
fieldLabel: {},
|
|
@@ -2133,101 +2235,101 @@ const zt = { key: 0 }, Tt = {
|
|
|
2133
2235
|
}),
|
|
2134
2236
|
emits: ["update:modelValue"],
|
|
2135
2237
|
setup(e) {
|
|
2136
|
-
const t = D(e, "modelValue"), a = e, i = (
|
|
2137
|
-
a.type == "number" ? r(
|
|
2138
|
-
}, { errors: l, value: n, errorMessage:
|
|
2238
|
+
const t = D(e, "modelValue"), a = e, i = (y) => {
|
|
2239
|
+
a.type == "number" ? r(y.value) : r(y);
|
|
2240
|
+
}, { errors: l, value: n, errorMessage: o, handleChange: r, handleBlur: p } = ee(() => a.name, void 0, {
|
|
2139
2241
|
initialValue: t.value
|
|
2140
2242
|
}), u = z(() => l.value.length > 0);
|
|
2141
|
-
return ce(() => n.value, (
|
|
2142
|
-
t.value =
|
|
2143
|
-
}, { immediate: !0 }), (
|
|
2144
|
-
const $ = Ve, j = Pe, V = ne, M = te,
|
|
2145
|
-
return a.type === "checkbox" ? (d(),
|
|
2243
|
+
return ce(() => n.value, (y) => {
|
|
2244
|
+
t.value = y;
|
|
2245
|
+
}, { immediate: !0 }), (y, s) => {
|
|
2246
|
+
const $ = Ve, j = Pe, V = ne, M = te, U = oe, g = be;
|
|
2247
|
+
return a.type === "checkbox" ? (d(), v(fe, S({
|
|
2146
2248
|
key: 0,
|
|
2147
2249
|
id: a.name,
|
|
2148
2250
|
label: a.fieldLabel
|
|
2149
|
-
},
|
|
2251
|
+
}, y.$attrs, {
|
|
2150
2252
|
name: a.name,
|
|
2151
2253
|
modelValue: t.value,
|
|
2152
|
-
"onUpdate:modelValue":
|
|
2153
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(),
|
|
2254
|
+
"onUpdate:modelValue": s[0] || (s[0] = (h) => t.value = h)
|
|
2255
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), f("div", ta, [
|
|
2154
2256
|
m("div", {
|
|
2155
2257
|
"data-cy": "input-wrapper",
|
|
2156
|
-
class:
|
|
2258
|
+
class: B(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2157
2259
|
}, [
|
|
2158
2260
|
m("label", {
|
|
2159
2261
|
for: a.name,
|
|
2160
|
-
class:
|
|
2161
|
-
}, w(a.fieldLabel), 11,
|
|
2162
|
-
a.type === "number" ? (d(),
|
|
2262
|
+
class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2263
|
+
}, w(a.fieldLabel), 11, aa),
|
|
2264
|
+
a.type === "number" ? (d(), v(c(ue), S({
|
|
2163
2265
|
key: 0,
|
|
2164
2266
|
id: a.name
|
|
2165
|
-
},
|
|
2267
|
+
}, y.$attrs, {
|
|
2166
2268
|
placeholder: a.placeholder,
|
|
2167
2269
|
"input-class": { "is-invalid": u.value },
|
|
2168
2270
|
class: { "is-invalid": u.value },
|
|
2169
2271
|
modelValue: t.value,
|
|
2170
|
-
"onUpdate:modelValue":
|
|
2272
|
+
"onUpdate:modelValue": s[1] || (s[1] = (h) => t.value = h),
|
|
2171
2273
|
onInput: i
|
|
2172
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(),
|
|
2274
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), v($, S({
|
|
2173
2275
|
key: 1,
|
|
2174
2276
|
id: a.name
|
|
2175
|
-
},
|
|
2277
|
+
}, y.$attrs, {
|
|
2176
2278
|
placeholder: a.placeholder,
|
|
2177
2279
|
class: { "is-invalid": u.value },
|
|
2178
2280
|
modelValue: t.value,
|
|
2179
|
-
"onUpdate:modelValue":
|
|
2281
|
+
"onUpdate:modelValue": s[2] || (s[2] = (h) => t.value = h),
|
|
2180
2282
|
onInput: i,
|
|
2181
2283
|
onBlur: c(p)
|
|
2182
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(),
|
|
2284
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), v(j, S({
|
|
2183
2285
|
key: 2,
|
|
2184
2286
|
id: a.name
|
|
2185
|
-
},
|
|
2287
|
+
}, y.$attrs, {
|
|
2186
2288
|
placeholder: a.placeholder,
|
|
2187
2289
|
mask: a.mask,
|
|
2188
2290
|
class: { "is-invalid": u.value },
|
|
2189
2291
|
modelValue: t.value,
|
|
2190
|
-
"onUpdate:modelValue":
|
|
2292
|
+
"onUpdate:modelValue": s[3] || (s[3] = (h) => t.value = h),
|
|
2191
2293
|
onComplete: i,
|
|
2192
2294
|
onBlur: c(p)
|
|
2193
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(),
|
|
2295
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), v(V, S({
|
|
2194
2296
|
key: 3,
|
|
2195
2297
|
id: a.name
|
|
2196
|
-
},
|
|
2298
|
+
}, y.$attrs, {
|
|
2197
2299
|
placeholder: a.placeholder,
|
|
2198
2300
|
class: { "is-invalid": u.value },
|
|
2199
2301
|
modelValue: t.value,
|
|
2200
|
-
"onUpdate:modelValue":
|
|
2302
|
+
"onUpdate:modelValue": s[4] || (s[4] = (h) => t.value = h),
|
|
2201
2303
|
onInput: i,
|
|
2202
2304
|
onBlur: c(p)
|
|
2203
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(),
|
|
2305
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), v(M, S({ key: 4 }, { ...a, ...y.$attrs }, {
|
|
2204
2306
|
modelValue: t.value,
|
|
2205
|
-
"onUpdate:modelValue":
|
|
2307
|
+
"onUpdate:modelValue": s[5] || (s[5] = (h) => t.value = h),
|
|
2206
2308
|
class: { "is-invalid": u.value }
|
|
2207
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(),
|
|
2309
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), v(U, S({ key: 5 }, { ...a, ...y.$attrs }, {
|
|
2208
2310
|
modelValue: t.value,
|
|
2209
|
-
"onUpdate:modelValue":
|
|
2311
|
+
"onUpdate:modelValue": s[6] || (s[6] = (h) => t.value = h),
|
|
2210
2312
|
class: { "is-invalid": u.value }
|
|
2211
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(),
|
|
2313
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), v(Wt, S({ key: 6 }, { ...a, ...y.$attrs }, {
|
|
2212
2314
|
modelValue: t.value,
|
|
2213
|
-
"onUpdate:modelValue":
|
|
2315
|
+
"onUpdate:modelValue": s[7] || (s[7] = (h) => t.value = h),
|
|
2214
2316
|
class: { "is-invalid": u.value }
|
|
2215
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(),
|
|
2317
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), v(g, S({ key: 7 }, { ...a, ...y.$attrs }, {
|
|
2216
2318
|
modelValue: t.value,
|
|
2217
|
-
"onUpdate:modelValue":
|
|
2319
|
+
"onUpdate:modelValue": s[8] || (s[8] = (h) => t.value = h),
|
|
2218
2320
|
class: { "is-invalid": u.value }
|
|
2219
2321
|
}), null, 16, ["modelValue", "class"])) : C("", !0)
|
|
2220
2322
|
], 2),
|
|
2221
2323
|
H(m("small", {
|
|
2222
2324
|
"data-cy": "error",
|
|
2223
2325
|
class: "invalid-feedback"
|
|
2224
|
-
}, w(c(
|
|
2326
|
+
}, w(c(o)), 513), [
|
|
2225
2327
|
[Y, u.value && a.type !== "multiselect" && a.type !== "datepicker"]
|
|
2226
2328
|
])
|
|
2227
2329
|
]));
|
|
2228
2330
|
};
|
|
2229
2331
|
}
|
|
2230
|
-
}),
|
|
2332
|
+
}), Gi = /* @__PURE__ */ F({
|
|
2231
2333
|
__name: "ForgeChip",
|
|
2232
2334
|
props: {
|
|
2233
2335
|
chipSeverity: { default: "primary" },
|
|
@@ -2262,15 +2364,15 @@ const zt = { key: 0 }, Tt = {
|
|
|
2262
2364
|
}));
|
|
2263
2365
|
return (i, l) => {
|
|
2264
2366
|
const n = Me;
|
|
2265
|
-
return d(),
|
|
2266
|
-
default:
|
|
2267
|
-
(d(!0),
|
|
2367
|
+
return d(), v(n, S({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2368
|
+
default: b(() => [
|
|
2369
|
+
(d(!0), f(O, null, A(i.$slots, (o, r) => k(i.$slots, r, { slot: r })), 256))
|
|
2268
2370
|
]),
|
|
2269
2371
|
_: 3
|
|
2270
2372
|
}, 16, ["pt"]);
|
|
2271
2373
|
};
|
|
2272
2374
|
}
|
|
2273
|
-
}),
|
|
2375
|
+
}), ia = /* @__PURE__ */ F({
|
|
2274
2376
|
__name: "ForgeProgressBar",
|
|
2275
2377
|
props: {
|
|
2276
2378
|
severity: { default: "primary" },
|
|
@@ -2313,18 +2415,18 @@ const zt = { key: 0 }, Tt = {
|
|
|
2313
2415
|
class: [l.value, a.value, i.value, "progress-bar"]
|
|
2314
2416
|
}
|
|
2315
2417
|
}));
|
|
2316
|
-
return (
|
|
2418
|
+
return (o, r) => {
|
|
2317
2419
|
const p = De;
|
|
2318
|
-
return d(),
|
|
2319
|
-
default:
|
|
2320
|
-
k(
|
|
2420
|
+
return d(), v(p, S({ ...o.$attrs, ...t }, { pt: n.value }), {
|
|
2421
|
+
default: b(() => [
|
|
2422
|
+
k(o.$slots, "default")
|
|
2321
2423
|
]),
|
|
2322
2424
|
_: 3
|
|
2323
2425
|
}, 16, ["pt"]);
|
|
2324
2426
|
};
|
|
2325
2427
|
}
|
|
2326
2428
|
});
|
|
2327
|
-
var
|
|
2429
|
+
var la = /* @__PURE__ */ F({
|
|
2328
2430
|
name: "VueDrawingCanvas",
|
|
2329
2431
|
props: {
|
|
2330
2432
|
strokeType: {
|
|
@@ -2636,14 +2738,14 @@ var ea = /* @__PURE__ */ B({
|
|
|
2636
2738
|
});
|
|
2637
2739
|
},
|
|
2638
2740
|
wrapText(e, t, a, i, l, n) {
|
|
2639
|
-
const
|
|
2640
|
-
var p = t.split(
|
|
2741
|
+
const o = /(\r\n|\n\r|\n|\r)+/g, r = /\s+/g;
|
|
2742
|
+
var p = t.split(o).filter((M) => M.length > 0);
|
|
2641
2743
|
for (let M = 0; M < p.length; M++) {
|
|
2642
|
-
for (var u = p[M].split(r).filter((
|
|
2643
|
-
var $ =
|
|
2644
|
-
V > l &&
|
|
2744
|
+
for (var u = p[M].split(r).filter((U) => U.length > 0), y = "", s = 0; s < u.length; s++) {
|
|
2745
|
+
var $ = y + u[s] + " ", j = e.measureText($), V = j.width;
|
|
2746
|
+
V > l && s > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), y = u[s] + " ", i += n) : y = $;
|
|
2645
2747
|
}
|
|
2646
|
-
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(
|
|
2748
|
+
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), i += u.length > 0 ? n : 0;
|
|
2647
2749
|
}
|
|
2648
2750
|
},
|
|
2649
2751
|
save() {
|
|
@@ -2663,20 +2765,20 @@ var ea = /* @__PURE__ */ B({
|
|
|
2663
2765
|
const n = new Image();
|
|
2664
2766
|
n.src = a.source, n.onload = () => {
|
|
2665
2767
|
a && t && t.drawImage(n, a.x, a.y, Number(i), Number(l));
|
|
2666
|
-
let
|
|
2667
|
-
if (
|
|
2668
|
-
return r.drawImage(e, 0, 0, Number(p), Number(u)), this.$emit("update:image",
|
|
2768
|
+
let o = document.createElement("canvas"), r = o.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, u = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2769
|
+
if (o.width = Number(p), o.height = Number(u), r)
|
|
2770
|
+
return r.drawImage(e, 0, 0, Number(p), Number(u)), this.$emit("update:image", o.toDataURL("image/" + this.saveAs, 1)), o.toDataURL("image/" + this.saveAs, 1);
|
|
2669
2771
|
};
|
|
2670
2772
|
} else if (a.type === "Text") {
|
|
2671
|
-
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic",
|
|
2773
|
+
let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", o = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
|
|
2672
2774
|
if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
|
|
2673
|
-
let
|
|
2674
|
-
a.fontStyle && a.fontStyle.width ?
|
|
2775
|
+
let s, $;
|
|
2776
|
+
a.fontStyle && a.fontStyle.width ? s = a.x + Math.floor(a.fontStyle.width / 2) : s = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(s, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(s * -1, $ * -1);
|
|
2675
2777
|
}
|
|
2676
|
-
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 =
|
|
2677
|
-
let r = document.createElement("canvas"), p = r.getContext("2d"), u = this.outputWidth === void 0 ? this.width : this.outputWidth,
|
|
2678
|
-
if (r.width = Number(u), r.height = Number(
|
|
2679
|
-
return p.drawImage(e, 0, 0, Number(u), Number(
|
|
2778
|
+
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 = o, 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));
|
|
2779
|
+
let r = document.createElement("canvas"), p = r.getContext("2d"), u = this.outputWidth === void 0 ? this.width : this.outputWidth, y = this.outputHeight === void 0 ? this.height : this.outputHeight;
|
|
2780
|
+
if (r.width = Number(u), r.height = Number(y), p)
|
|
2781
|
+
return p.drawImage(e, 0, 0, Number(u), Number(y)), this.$emit("update:image", r.toDataURL("image/" + this.saveAs, 1)), r.toDataURL("image/" + this.saveAs, 1);
|
|
2680
2782
|
}
|
|
2681
2783
|
},
|
|
2682
2784
|
isEmpty() {
|
|
@@ -2714,7 +2816,7 @@ var ea = /* @__PURE__ */ B({
|
|
|
2714
2816
|
});
|
|
2715
2817
|
}
|
|
2716
2818
|
});
|
|
2717
|
-
const
|
|
2819
|
+
const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1 gap-1" }, Ji = /* @__PURE__ */ F({
|
|
2718
2820
|
__name: "ForgeScratchpad",
|
|
2719
2821
|
props: {
|
|
2720
2822
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2727,7 +2829,7 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
|
|
|
2727
2829
|
},
|
|
2728
2830
|
emits: ["save"],
|
|
2729
2831
|
setup(e, { emit: t }) {
|
|
2730
|
-
const a = e, i = t, l = Fe("drawingCanvas"), n =
|
|
2832
|
+
const a = e, i = t, l = Fe("drawingCanvas"), n = _(), o = () => {
|
|
2731
2833
|
l == null || l.value.reset();
|
|
2732
2834
|
}, r = () => {
|
|
2733
2835
|
l == null || l.value.redo();
|
|
@@ -2736,64 +2838,64 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
|
|
|
2736
2838
|
}, u = () => {
|
|
2737
2839
|
i("save", l.value.isEmpty());
|
|
2738
2840
|
};
|
|
2739
|
-
return (
|
|
2740
|
-
const $ =
|
|
2741
|
-
return d(),
|
|
2742
|
-
|
|
2841
|
+
return (y, s) => {
|
|
2842
|
+
const $ = q;
|
|
2843
|
+
return d(), f("div", na, [
|
|
2844
|
+
x(c(la), S({
|
|
2743
2845
|
ref_key: "drawingCanvas",
|
|
2744
2846
|
ref: l,
|
|
2745
2847
|
image: n.value,
|
|
2746
|
-
"onUpdate:image":
|
|
2848
|
+
"onUpdate:image": s[0] || (s[0] = (j) => n.value = j),
|
|
2747
2849
|
"data-cy": "drawing-canvas",
|
|
2748
2850
|
class: "border canvas"
|
|
2749
|
-
}, { ...
|
|
2750
|
-
height:
|
|
2751
|
-
width:
|
|
2752
|
-
style: `height: ${
|
|
2753
|
-
"line-join":
|
|
2851
|
+
}, { ...y.$attrs }, {
|
|
2852
|
+
height: y.height,
|
|
2853
|
+
width: y.width,
|
|
2854
|
+
style: `height: ${y.height}px; width: ${y.width}px`,
|
|
2855
|
+
"line-join": y.lineJoin
|
|
2754
2856
|
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2755
|
-
m("div",
|
|
2756
|
-
a.showUndo ? (d(),
|
|
2857
|
+
m("div", oa, [
|
|
2858
|
+
a.showUndo ? (d(), v($, {
|
|
2757
2859
|
key: 0,
|
|
2758
2860
|
onClick: p,
|
|
2759
2861
|
outlined: "",
|
|
2760
2862
|
"data-cy": "undo-button"
|
|
2761
2863
|
}, {
|
|
2762
|
-
default:
|
|
2763
|
-
|
|
2864
|
+
default: b(() => s[1] || (s[1] = [
|
|
2865
|
+
I("Undo")
|
|
2764
2866
|
])),
|
|
2765
2867
|
_: 1
|
|
2766
2868
|
})) : C("", !0),
|
|
2767
|
-
a.showRedo ? (d(),
|
|
2869
|
+
a.showRedo ? (d(), v($, {
|
|
2768
2870
|
key: 1,
|
|
2769
2871
|
onClick: r,
|
|
2770
2872
|
outlined: "",
|
|
2771
2873
|
"data-cy": "redo-button"
|
|
2772
2874
|
}, {
|
|
2773
|
-
default:
|
|
2774
|
-
|
|
2875
|
+
default: b(() => s[2] || (s[2] = [
|
|
2876
|
+
I("Redo")
|
|
2775
2877
|
])),
|
|
2776
2878
|
_: 1
|
|
2777
2879
|
})) : C("", !0),
|
|
2778
|
-
a.showClear ? (d(),
|
|
2880
|
+
a.showClear ? (d(), v($, {
|
|
2779
2881
|
key: 2,
|
|
2780
|
-
onClick:
|
|
2882
|
+
onClick: o,
|
|
2781
2883
|
outlined: "",
|
|
2782
2884
|
"data-cy": "clear-button"
|
|
2783
2885
|
}, {
|
|
2784
|
-
default:
|
|
2785
|
-
|
|
2886
|
+
default: b(() => s[3] || (s[3] = [
|
|
2887
|
+
I("Clear")
|
|
2786
2888
|
])),
|
|
2787
2889
|
_: 1
|
|
2788
2890
|
})) : C("", !0),
|
|
2789
|
-
a.showSave ? (d(),
|
|
2891
|
+
a.showSave ? (d(), v($, {
|
|
2790
2892
|
key: 3,
|
|
2791
2893
|
onClick: u,
|
|
2792
2894
|
class: "ms-auto",
|
|
2793
2895
|
"data-cy": "save-button"
|
|
2794
2896
|
}, {
|
|
2795
|
-
default:
|
|
2796
|
-
|
|
2897
|
+
default: b(() => s[4] || (s[4] = [
|
|
2898
|
+
I("Save")
|
|
2797
2899
|
])),
|
|
2798
2900
|
_: 1
|
|
2799
2901
|
})) : C("", !0)
|
|
@@ -2801,7 +2903,7 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
|
|
|
2801
2903
|
]);
|
|
2802
2904
|
};
|
|
2803
2905
|
}
|
|
2804
|
-
}),
|
|
2906
|
+
}), sa = { class: "value text-white w-100 text-center" }, Ki = /* @__PURE__ */ F({
|
|
2805
2907
|
__name: "ForgeStatWidget",
|
|
2806
2908
|
props: {
|
|
2807
2909
|
size: { default: "md" },
|
|
@@ -2809,15 +2911,15 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
|
|
|
2809
2911
|
},
|
|
2810
2912
|
setup(e) {
|
|
2811
2913
|
const t = e;
|
|
2812
|
-
return (a, i) => (d(),
|
|
2914
|
+
return (a, i) => (d(), f("div", S(a.$attrs, {
|
|
2813
2915
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2814
2916
|
}), [
|
|
2815
|
-
m("span",
|
|
2917
|
+
m("span", sa, [
|
|
2816
2918
|
k(a.$slots, "default")
|
|
2817
2919
|
])
|
|
2818
2920
|
], 16));
|
|
2819
2921
|
}
|
|
2820
|
-
}),
|
|
2922
|
+
}), ra = { key: 0 }, Zi = /* @__PURE__ */ F({
|
|
2821
2923
|
__name: "ForgeStepper",
|
|
2822
2924
|
props: {
|
|
2823
2925
|
currentStep: { default: 1 },
|
|
@@ -2864,31 +2966,31 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
|
|
|
2864
2966
|
]
|
|
2865
2967
|
})
|
|
2866
2968
|
}));
|
|
2867
|
-
return (i, l) => (d(),
|
|
2868
|
-
default:
|
|
2869
|
-
|
|
2870
|
-
default:
|
|
2871
|
-
(d(!0),
|
|
2969
|
+
return (i, l) => (d(), v(c(Ne), { value: i.currentStep }, {
|
|
2970
|
+
default: b(() => [
|
|
2971
|
+
x(c(Ue), null, {
|
|
2972
|
+
default: b(() => [
|
|
2973
|
+
(d(!0), f(O, null, A(i.steps, (n) => (d(), v(c(Oe), S({
|
|
2872
2974
|
key: n.value,
|
|
2873
2975
|
value: n.value,
|
|
2874
2976
|
disabled: n.disabled,
|
|
2875
2977
|
ref_for: !0
|
|
2876
2978
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
2877
|
-
default:
|
|
2878
|
-
i.showStepLabel ? (d(),
|
|
2979
|
+
default: b(() => [
|
|
2980
|
+
i.showStepLabel ? (d(), f("div", ra, w(n.label), 1)) : C("", !0)
|
|
2879
2981
|
]),
|
|
2880
2982
|
_: 2
|
|
2881
2983
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
2882
2984
|
]),
|
|
2883
2985
|
_: 1
|
|
2884
2986
|
}),
|
|
2885
|
-
|
|
2886
|
-
default:
|
|
2887
|
-
(d(!0),
|
|
2987
|
+
x(c(qe), null, {
|
|
2988
|
+
default: b(() => [
|
|
2989
|
+
(d(!0), f(O, null, A(i.steps, (n) => (d(), v(c(Ae), {
|
|
2888
2990
|
key: n.value,
|
|
2889
2991
|
value: n.value
|
|
2890
2992
|
}, {
|
|
2891
|
-
default:
|
|
2993
|
+
default: b(() => [
|
|
2892
2994
|
k(i.$slots, "step" + n.value)
|
|
2893
2995
|
]),
|
|
2894
2996
|
_: 2
|
|
@@ -2900,7 +3002,7 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
|
|
|
2900
3002
|
_: 3
|
|
2901
3003
|
}, 8, ["value"]));
|
|
2902
3004
|
}
|
|
2903
|
-
}),
|
|
3005
|
+
}), da = { class: "p-4 text-wrap w-100" }, pa = { class: "p-4 text-wrap w-100" }, Xi = /* @__PURE__ */ F({
|
|
2904
3006
|
__name: "ForgeTile",
|
|
2905
3007
|
props: {
|
|
2906
3008
|
severity: { default: "primary" },
|
|
@@ -2911,30 +3013,30 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
|
|
|
2911
3013
|
setup(e) {
|
|
2912
3014
|
const t = e, a = z(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = z(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
2913
3015
|
return (l, n) => {
|
|
2914
|
-
const
|
|
2915
|
-
return t.clickable ? (d(),
|
|
3016
|
+
const o = q;
|
|
3017
|
+
return t.clickable ? (d(), v(o, {
|
|
2916
3018
|
key: 0,
|
|
2917
|
-
class:
|
|
3019
|
+
class: B(["d-flex w-100 p-0 text-body", a.value]),
|
|
2918
3020
|
severity: t.severity,
|
|
2919
3021
|
unstyled: "",
|
|
2920
3022
|
"data-cy": "button-tile"
|
|
2921
3023
|
}, {
|
|
2922
|
-
default:
|
|
2923
|
-
m("div",
|
|
3024
|
+
default: b(() => [
|
|
3025
|
+
m("div", da, [
|
|
2924
3026
|
k(l.$slots, "default", {}, () => [
|
|
2925
|
-
n[0] || (n[0] =
|
|
3027
|
+
n[0] || (n[0] = I("Tile Content"))
|
|
2926
3028
|
])
|
|
2927
3029
|
])
|
|
2928
3030
|
]),
|
|
2929
3031
|
_: 3
|
|
2930
|
-
}, 8, ["severity", "class"])) : (d(),
|
|
3032
|
+
}, 8, ["severity", "class"])) : (d(), f("div", {
|
|
2931
3033
|
key: 1,
|
|
2932
|
-
class:
|
|
3034
|
+
class: B(["d-flex w-100", i.value]),
|
|
2933
3035
|
"data-cy": "tile"
|
|
2934
3036
|
}, [
|
|
2935
|
-
m("div",
|
|
3037
|
+
m("div", pa, [
|
|
2936
3038
|
k(l.$slots, "default", {}, () => [
|
|
2937
|
-
n[1] || (n[1] =
|
|
3039
|
+
n[1] || (n[1] = I("Tile Content"))
|
|
2938
3040
|
])
|
|
2939
3041
|
])
|
|
2940
3042
|
], 2));
|
|
@@ -2944,13 +3046,13 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
|
|
|
2944
3046
|
function Q(e, t) {
|
|
2945
3047
|
return e > 1 ? `${t}s` : t;
|
|
2946
3048
|
}
|
|
2947
|
-
const
|
|
3049
|
+
const ca = {
|
|
2948
3050
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2949
3051
|
"data-cy": "pagination-header"
|
|
2950
|
-
},
|
|
3052
|
+
}, ua = { class: "ms-2" }, ma = { key: 0 }, va = {
|
|
2951
3053
|
class: "w-auto",
|
|
2952
3054
|
"data-cy": "total"
|
|
2953
|
-
},
|
|
3055
|
+
}, fa = /* @__PURE__ */ F({
|
|
2954
3056
|
__name: "ForgePaginationHeader",
|
|
2955
3057
|
props: {
|
|
2956
3058
|
total: {},
|
|
@@ -2959,32 +3061,32 @@ const sa = {
|
|
|
2959
3061
|
},
|
|
2960
3062
|
emits: ["update:perPage"],
|
|
2961
3063
|
setup(e, { emit: t }) {
|
|
2962
|
-
const a = t, i = e, l = (
|
|
2963
|
-
a("update:perPage",
|
|
3064
|
+
const a = t, i = e, l = (o) => {
|
|
3065
|
+
a("update:perPage", o.value);
|
|
2964
3066
|
}, n = z(() => {
|
|
2965
|
-
const
|
|
2966
|
-
return `${
|
|
3067
|
+
const o = Math.ceil(i.total / i.perPage);
|
|
3068
|
+
return `${o} ${Q(o, "page")}`;
|
|
2967
3069
|
});
|
|
2968
|
-
return (
|
|
2969
|
-
r[2] || (r[2] =
|
|
2970
|
-
m("div",
|
|
2971
|
-
|
|
3070
|
+
return (o, r) => (d(), f("div", ca, [
|
|
3071
|
+
r[2] || (r[2] = I(" Number of results per page ")),
|
|
3072
|
+
m("div", ua, [
|
|
3073
|
+
x(c(te), {
|
|
2972
3074
|
options: i.pageSizes,
|
|
2973
3075
|
"model-value": i.perPage,
|
|
2974
3076
|
class: "page-size",
|
|
2975
3077
|
onChange: r[0] || (r[0] = (p) => l(p))
|
|
2976
3078
|
}, null, 8, ["options", "model-value"])
|
|
2977
3079
|
]),
|
|
2978
|
-
i.total ? (d(),
|
|
3080
|
+
i.total ? (d(), f("div", ma, [
|
|
2979
3081
|
r[1] || (r[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
2980
|
-
m("span",
|
|
3082
|
+
m("span", va, w(i.total) + " " + w(c(Q)(i.total, "result")) + " across " + w(n.value), 1)
|
|
2981
3083
|
])) : C("", !0)
|
|
2982
3084
|
]));
|
|
2983
3085
|
}
|
|
2984
|
-
}),
|
|
3086
|
+
}), ga = { class: "position-relative" }, ba = { "data-cy": "above-table-slot" }, ya = { class: "d-flex w-100" }, xa = {
|
|
2985
3087
|
class: "mx-auto",
|
|
2986
3088
|
"data-cy": "empty-message"
|
|
2987
|
-
},
|
|
3089
|
+
}, ha = { class: "d-flex" }, wa = { class: "d-flex align-items-end mb-2" }, ka = { key: 0 }, $a = { class: "ms-auto" }, Qi = /* @__PURE__ */ F({
|
|
2988
3090
|
__name: "ForgeTable",
|
|
2989
3091
|
props: {
|
|
2990
3092
|
value: {},
|
|
@@ -3070,17 +3172,17 @@ const sa = {
|
|
|
3070
3172
|
},
|
|
3071
3173
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
3072
3174
|
setup(e, { emit: t }) {
|
|
3073
|
-
const a = t, i = e, l =
|
|
3175
|
+
const a = t, i = e, l = _(), n = _([5, 10, 20, 50, 100]), o = _(10), r = _({
|
|
3074
3176
|
filters: i.filters,
|
|
3075
|
-
perPage:
|
|
3177
|
+
perPage: o.value,
|
|
3076
3178
|
page: 0,
|
|
3077
3179
|
sortDirection: "None",
|
|
3078
3180
|
sortField: "",
|
|
3079
3181
|
total: i.totalRecords ?? i.value.length
|
|
3080
3182
|
}), p = z(() => i.totalRecords ?? i.value.length), u = z(() => {
|
|
3081
|
-
const
|
|
3082
|
-
return `${
|
|
3083
|
-
}),
|
|
3183
|
+
const g = Math.ceil(p.value / o.value);
|
|
3184
|
+
return `${g} ${Q(g, "page")}`;
|
|
3185
|
+
}), y = z(() => ({
|
|
3084
3186
|
thead: () => ({
|
|
3085
3187
|
class: [
|
|
3086
3188
|
{
|
|
@@ -3102,36 +3204,36 @@ const sa = {
|
|
|
3102
3204
|
}
|
|
3103
3205
|
]
|
|
3104
3206
|
})
|
|
3105
|
-
})),
|
|
3207
|
+
})), s = () => {
|
|
3106
3208
|
if (i.clearAll)
|
|
3107
3209
|
i.clearAll();
|
|
3108
3210
|
else
|
|
3109
|
-
for (const
|
|
3110
|
-
typeof i.filters[
|
|
3211
|
+
for (const g in i.filters)
|
|
3212
|
+
typeof i.filters[g] == "string" ? i.filters[g] = "" : i.filters[g].value = null;
|
|
3111
3213
|
V(i.filters);
|
|
3112
3214
|
}, $ = () => {
|
|
3113
3215
|
l.value.exportCSV();
|
|
3114
|
-
}, j = (
|
|
3216
|
+
}, j = (g) => {
|
|
3115
3217
|
var h;
|
|
3116
|
-
r.value.sortDirection =
|
|
3117
|
-
}, V = (
|
|
3118
|
-
r.value.filters =
|
|
3119
|
-
}, M = (
|
|
3120
|
-
r.value.page =
|
|
3121
|
-
},
|
|
3122
|
-
r.value.perPage =
|
|
3218
|
+
r.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((h = g.sortField) == null ? void 0 : h.toString()) ?? "", a("update:tableContext", r.value), a("sort", g);
|
|
3219
|
+
}, V = (g) => {
|
|
3220
|
+
r.value.filters = g, a("update:tableContext", r.value), a("update:filters", g);
|
|
3221
|
+
}, M = (g) => {
|
|
3222
|
+
r.value.page = g.page, a("update:tableContext", r.value), a("page", g);
|
|
3223
|
+
}, U = () => {
|
|
3224
|
+
r.value.perPage = o.value, a("update:tableContext", r.value);
|
|
3123
3225
|
};
|
|
3124
|
-
return ce(() => i.filters, (
|
|
3125
|
-
r.value.filters =
|
|
3126
|
-
}, { deep: !0 }), le(() => a("update:tableContext", r.value)), (
|
|
3127
|
-
m("span",
|
|
3128
|
-
k(
|
|
3226
|
+
return ce(() => i.filters, (g) => {
|
|
3227
|
+
r.value.filters = g, a("update:tableContext", r.value);
|
|
3228
|
+
}, { deep: !0 }), le(() => a("update:tableContext", r.value)), (g, h) => (d(), f("div", ga, [
|
|
3229
|
+
m("span", ba, [
|
|
3230
|
+
k(g.$slots, "above-table")
|
|
3129
3231
|
]),
|
|
3130
|
-
|
|
3232
|
+
x(c(Ee), S({
|
|
3131
3233
|
class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
|
|
3132
|
-
}, { ...i, ...
|
|
3133
|
-
pt:
|
|
3134
|
-
rows:
|
|
3234
|
+
}, { ...i, ...g.$attrs }, {
|
|
3235
|
+
pt: y.value,
|
|
3236
|
+
rows: o.value,
|
|
3135
3237
|
"total-records": p.value,
|
|
3136
3238
|
"filter-display": i.filters ? "row" : void 0,
|
|
3137
3239
|
ref_key: "forgeTable",
|
|
@@ -3142,104 +3244,104 @@ const sa = {
|
|
|
3142
3244
|
onPage: M,
|
|
3143
3245
|
showHeaders: ""
|
|
3144
3246
|
}), ie({
|
|
3145
|
-
empty:
|
|
3146
|
-
m("div",
|
|
3147
|
-
m("h5",
|
|
3247
|
+
empty: b(() => [
|
|
3248
|
+
m("div", ya, [
|
|
3249
|
+
m("h5", xa, w(g.emptyMessage ?? "No items Found."), 1)
|
|
3148
3250
|
])
|
|
3149
3251
|
]),
|
|
3150
|
-
header:
|
|
3252
|
+
header: b(() => [
|
|
3151
3253
|
m("div", {
|
|
3152
|
-
class:
|
|
3254
|
+
class: B(i.loading ? "opacity-50" : "")
|
|
3153
3255
|
}, [
|
|
3154
|
-
m("div",
|
|
3155
|
-
m("div",
|
|
3156
|
-
|
|
3157
|
-
|
|
3256
|
+
m("div", ha, [
|
|
3257
|
+
m("div", wa, [
|
|
3258
|
+
g.paginator && !g.legacyPaginationFooter ? (d(), f("span", ka, [
|
|
3259
|
+
x(fa, {
|
|
3158
3260
|
total: p.value,
|
|
3159
3261
|
"page-sizes": n.value,
|
|
3160
|
-
"per-page":
|
|
3262
|
+
"per-page": o.value,
|
|
3161
3263
|
"onUpdate:perPage": [
|
|
3162
|
-
h[0] || (h[0] = (P) =>
|
|
3163
|
-
|
|
3264
|
+
h[0] || (h[0] = (P) => o.value = P),
|
|
3265
|
+
U
|
|
3164
3266
|
]
|
|
3165
3267
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3166
3268
|
])) : C("", !0)
|
|
3167
3269
|
]),
|
|
3168
|
-
m("div",
|
|
3169
|
-
|
|
3270
|
+
m("div", $a, [
|
|
3271
|
+
g.showClearButton ? (d(), v(c(q), {
|
|
3170
3272
|
key: 0,
|
|
3171
3273
|
outlined: "",
|
|
3172
|
-
class:
|
|
3173
|
-
onClick:
|
|
3274
|
+
class: B(g.showExporterButton ? "me-2" : ""),
|
|
3275
|
+
onClick: s,
|
|
3174
3276
|
"data-cy": "clear-all"
|
|
3175
3277
|
}, {
|
|
3176
|
-
default:
|
|
3177
|
-
|
|
3278
|
+
default: b(() => [
|
|
3279
|
+
x(c(T), {
|
|
3178
3280
|
icon: "bi:funnel-fill",
|
|
3179
3281
|
width: "24",
|
|
3180
3282
|
height: "24"
|
|
3181
3283
|
}),
|
|
3182
|
-
h[2] || (h[2] =
|
|
3284
|
+
h[2] || (h[2] = I(" Clear "))
|
|
3183
3285
|
]),
|
|
3184
3286
|
_: 1
|
|
3185
3287
|
}, 8, ["class"])) : C("", !0),
|
|
3186
|
-
|
|
3288
|
+
g.showExporterButton ? (d(), v(c(q), {
|
|
3187
3289
|
key: 1,
|
|
3188
3290
|
outlined: "",
|
|
3189
3291
|
onClick: $,
|
|
3190
3292
|
"data-cy": "exporter"
|
|
3191
3293
|
}, {
|
|
3192
|
-
default:
|
|
3193
|
-
|
|
3294
|
+
default: b(() => [
|
|
3295
|
+
x(c(T), {
|
|
3194
3296
|
icon: "typcn:export",
|
|
3195
3297
|
width: "24",
|
|
3196
3298
|
height: "24"
|
|
3197
3299
|
}),
|
|
3198
|
-
h[3] || (h[3] =
|
|
3300
|
+
h[3] || (h[3] = I(" Export "))
|
|
3199
3301
|
]),
|
|
3200
3302
|
_: 1
|
|
3201
3303
|
})) : C("", !0),
|
|
3202
|
-
k(
|
|
3304
|
+
k(g.$slots, "column-customiser")
|
|
3203
3305
|
])
|
|
3204
3306
|
])
|
|
3205
3307
|
], 2)
|
|
3206
3308
|
]),
|
|
3207
|
-
default:
|
|
3208
|
-
k(
|
|
3309
|
+
default: b(() => [
|
|
3310
|
+
k(g.$slots, "default")
|
|
3209
3311
|
]),
|
|
3210
3312
|
_: 2
|
|
3211
3313
|
}, [
|
|
3212
|
-
|
|
3314
|
+
A(g.$slots, (P, L) => ({
|
|
3213
3315
|
name: L,
|
|
3214
|
-
fn:
|
|
3215
|
-
k(
|
|
3316
|
+
fn: b((ae) => [
|
|
3317
|
+
k(g.$slots, L, K(Z(ae || {})))
|
|
3216
3318
|
])
|
|
3217
3319
|
})),
|
|
3218
|
-
|
|
3320
|
+
g.legacyPaginationFooter ? {
|
|
3219
3321
|
name: "paginatorstart",
|
|
3220
|
-
fn:
|
|
3322
|
+
fn: b(() => [
|
|
3221
3323
|
m("span", {
|
|
3222
|
-
class:
|
|
3324
|
+
class: B(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3223
3325
|
"data-cy": "legacy-page-size"
|
|
3224
3326
|
}, [
|
|
3225
3327
|
h[4] || (h[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3226
|
-
|
|
3328
|
+
x(c(te), {
|
|
3227
3329
|
options: n.value,
|
|
3228
|
-
modelValue:
|
|
3229
|
-
"onUpdate:modelValue": h[1] || (h[1] = (P) =>
|
|
3330
|
+
modelValue: o.value,
|
|
3331
|
+
"onUpdate:modelValue": h[1] || (h[1] = (P) => o.value = P),
|
|
3230
3332
|
class: "ms-2",
|
|
3231
|
-
onClick:
|
|
3333
|
+
onClick: U
|
|
3232
3334
|
}, null, 8, ["options", "modelValue"])
|
|
3233
3335
|
], 2)
|
|
3234
3336
|
]),
|
|
3235
3337
|
key: "0"
|
|
3236
3338
|
} : void 0,
|
|
3237
|
-
|
|
3339
|
+
g.legacyPaginationFooter ? {
|
|
3238
3340
|
name: "paginatorend",
|
|
3239
|
-
fn:
|
|
3341
|
+
fn: b(() => [
|
|
3240
3342
|
m("span", {
|
|
3241
3343
|
"data-cy": "legacy-total",
|
|
3242
|
-
class:
|
|
3344
|
+
class: B(i.loading ? "opacity-50" : "")
|
|
3243
3345
|
}, w(p.value) + " " + w(c(Q)(p.value, "result")) + " across " + w(u.value), 3)
|
|
3244
3346
|
]),
|
|
3245
3347
|
key: "1"
|
|
@@ -3247,9 +3349,9 @@ const sa = {
|
|
|
3247
3349
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3248
3350
|
]));
|
|
3249
3351
|
}
|
|
3250
|
-
}),
|
|
3352
|
+
}), Fa = { class: "d-flex position-relative" }, Ba = { class: "d-flex w-100" }, el = /* @__PURE__ */ F({
|
|
3251
3353
|
__name: "ForgeFilterHeader",
|
|
3252
|
-
props: /* @__PURE__ */
|
|
3354
|
+
props: /* @__PURE__ */ N({
|
|
3253
3355
|
dataType: {},
|
|
3254
3356
|
dropdownOptions: {},
|
|
3255
3357
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -3265,32 +3367,32 @@ const sa = {
|
|
|
3265
3367
|
const t = D(e, "modelValue"), a = (l, n) => {
|
|
3266
3368
|
if (!l || Array.isArray(l) && l.length === 0)
|
|
3267
3369
|
return n;
|
|
3268
|
-
const
|
|
3370
|
+
const o = (r) => {
|
|
3269
3371
|
var u;
|
|
3270
3372
|
const p = (u = e.dropdownOptions) == null ? void 0 : u.find(
|
|
3271
|
-
(
|
|
3373
|
+
(y) => e.optionValue ? y[e.optionValue] === r : Object.keys(y).every((s) => r.hasOwnProperty(s) && y[s] === r[s])
|
|
3272
3374
|
);
|
|
3273
3375
|
return e.optionLabel ? p[e.optionLabel] : p;
|
|
3274
3376
|
};
|
|
3275
|
-
return Array.isArray(l) ? l.map(
|
|
3377
|
+
return Array.isArray(l) ? l.map(o).join(", ") : o(l);
|
|
3276
3378
|
}, i = () => {
|
|
3277
3379
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
3278
3380
|
};
|
|
3279
3381
|
return (l, n) => {
|
|
3280
|
-
const
|
|
3281
|
-
return d(),
|
|
3282
|
-
l.dataType === "numeric" ? (d(),
|
|
3382
|
+
const o = ue, r = q;
|
|
3383
|
+
return d(), f("div", Fa, [
|
|
3384
|
+
l.dataType === "numeric" ? (d(), v(o, S({
|
|
3283
3385
|
key: 0,
|
|
3284
3386
|
modelValue: t.value,
|
|
3285
3387
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p)
|
|
3286
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(),
|
|
3388
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), v(be, S({
|
|
3287
3389
|
key: 1,
|
|
3288
3390
|
modelValue: t.value,
|
|
3289
3391
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3290
3392
|
}, l.$attrs, {
|
|
3291
3393
|
"show-icon": !1,
|
|
3292
3394
|
"show-on-focus": !0
|
|
3293
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(),
|
|
3395
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), v(c(te), S({
|
|
3294
3396
|
key: 2,
|
|
3295
3397
|
modelValue: t.value,
|
|
3296
3398
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
@@ -3299,19 +3401,19 @@ const sa = {
|
|
|
3299
3401
|
"option-value": l.optionValue,
|
|
3300
3402
|
"option-label": l.optionLabel
|
|
3301
3403
|
}), {
|
|
3302
|
-
value:
|
|
3303
|
-
m("div",
|
|
3404
|
+
value: b(({ value: p, placeholder: u }) => [
|
|
3405
|
+
m("div", Ba, [
|
|
3304
3406
|
m("span", {
|
|
3305
|
-
class:
|
|
3407
|
+
class: B({ "filter-placeholder": p === null })
|
|
3306
3408
|
}, w(a(p, u)), 3),
|
|
3307
|
-
l.showClearButton && t.value !== null ? (d(),
|
|
3409
|
+
l.showClearButton && t.value !== null ? (d(), v(r, {
|
|
3308
3410
|
key: 0,
|
|
3309
3411
|
onClick: G(i, ["prevent"]),
|
|
3310
3412
|
size: "small",
|
|
3311
3413
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3312
3414
|
}, {
|
|
3313
|
-
default:
|
|
3314
|
-
|
|
3415
|
+
default: b(() => [
|
|
3416
|
+
x(c(T), {
|
|
3315
3417
|
icon: "bi:x",
|
|
3316
3418
|
width: "1rem",
|
|
3317
3419
|
height: "1rem",
|
|
@@ -3323,7 +3425,7 @@ const sa = {
|
|
|
3323
3425
|
])
|
|
3324
3426
|
]),
|
|
3325
3427
|
_: 1
|
|
3326
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(),
|
|
3428
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), v(c(oe), S({
|
|
3327
3429
|
key: 3,
|
|
3328
3430
|
modelValue: t.value,
|
|
3329
3431
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
@@ -3333,19 +3435,19 @@ const sa = {
|
|
|
3333
3435
|
"option-label": l.optionLabel,
|
|
3334
3436
|
"option-value": l.optionValue,
|
|
3335
3437
|
filter: ""
|
|
3336
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(),
|
|
3438
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), v(c(ne), S({
|
|
3337
3439
|
key: 4,
|
|
3338
3440
|
modelValue: t.value,
|
|
3339
3441
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p)
|
|
3340
3442
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3341
|
-
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(),
|
|
3443
|
+
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), v(r, {
|
|
3342
3444
|
key: 5,
|
|
3343
3445
|
onClick: G(i, ["prevent"]),
|
|
3344
3446
|
size: "small",
|
|
3345
3447
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3346
3448
|
}, {
|
|
3347
|
-
default:
|
|
3348
|
-
|
|
3449
|
+
default: b(() => [
|
|
3450
|
+
x(c(T), {
|
|
3349
3451
|
icon: "bi:x",
|
|
3350
3452
|
width: "1rem",
|
|
3351
3453
|
height: "1rem",
|
|
@@ -4410,12 +4512,12 @@ const de = {
|
|
|
4410
4512
|
"video/webm": ["webm"]
|
|
4411
4513
|
};
|
|
4412
4514
|
Object.freeze(de);
|
|
4413
|
-
var
|
|
4515
|
+
var E = function(e, t, a, i) {
|
|
4414
4516
|
if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
4415
4517
|
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");
|
|
4416
4518
|
return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
|
|
4417
4519
|
}, W, J, R;
|
|
4418
|
-
class
|
|
4520
|
+
class ye {
|
|
4419
4521
|
constructor(...t) {
|
|
4420
4522
|
W.set(this, /* @__PURE__ */ new Map()), J.set(this, /* @__PURE__ */ new Map()), R.set(this, /* @__PURE__ */ new Map());
|
|
4421
4523
|
for (const a of t)
|
|
@@ -4423,17 +4525,17 @@ class xe {
|
|
|
4423
4525
|
}
|
|
4424
4526
|
define(t, a = !1) {
|
|
4425
4527
|
for (let [i, l] of Object.entries(t)) {
|
|
4426
|
-
i = i.toLowerCase(), l = l.map((r) => r.toLowerCase()),
|
|
4427
|
-
const n =
|
|
4428
|
-
let
|
|
4528
|
+
i = i.toLowerCase(), l = l.map((r) => r.toLowerCase()), E(this, R, "f").has(i) || E(this, R, "f").set(i, /* @__PURE__ */ new Set());
|
|
4529
|
+
const n = E(this, R, "f").get(i);
|
|
4530
|
+
let o = !0;
|
|
4429
4531
|
for (let r of l) {
|
|
4430
4532
|
const p = r.startsWith("*");
|
|
4431
|
-
if (r = p ? r.slice(1) : r, n == null || n.add(r),
|
|
4533
|
+
if (r = p ? r.slice(1) : r, n == null || n.add(r), o && E(this, J, "f").set(i, r), o = !1, p)
|
|
4432
4534
|
continue;
|
|
4433
|
-
const u =
|
|
4535
|
+
const u = E(this, W, "f").get(r);
|
|
4434
4536
|
if (u && u != i && !a)
|
|
4435
4537
|
throw new Error(`"${i} -> ${r}" conflicts with "${u} -> ${r}". Pass \`force=true\` to override this definition.`);
|
|
4436
|
-
|
|
4538
|
+
E(this, W, "f").set(r, i);
|
|
4437
4539
|
}
|
|
4438
4540
|
}
|
|
4439
4541
|
return this;
|
|
@@ -4442,45 +4544,45 @@ class xe {
|
|
|
4442
4544
|
if (typeof t != "string")
|
|
4443
4545
|
return null;
|
|
4444
4546
|
const a = t.replace(/^.*[/\\]/, "").toLowerCase(), i = a.replace(/^.*\./, "").toLowerCase(), l = a.length < t.length;
|
|
4445
|
-
return !(i.length < a.length - 1) && l ? null :
|
|
4547
|
+
return !(i.length < a.length - 1) && l ? null : E(this, W, "f").get(i) ?? null;
|
|
4446
4548
|
}
|
|
4447
4549
|
getExtension(t) {
|
|
4448
4550
|
var a;
|
|
4449
|
-
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t &&
|
|
4551
|
+
return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && E(this, J, "f").get(t.trim().toLowerCase())) ?? null);
|
|
4450
4552
|
}
|
|
4451
4553
|
getAllExtensions(t) {
|
|
4452
|
-
return typeof t != "string" ? null :
|
|
4554
|
+
return typeof t != "string" ? null : E(this, R, "f").get(t.toLowerCase()) ?? null;
|
|
4453
4555
|
}
|
|
4454
4556
|
_freeze() {
|
|
4455
4557
|
this.define = () => {
|
|
4456
4558
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
4457
4559
|
}, Object.freeze(this);
|
|
4458
|
-
for (const t of
|
|
4560
|
+
for (const t of E(this, R, "f").values())
|
|
4459
4561
|
Object.freeze(t);
|
|
4460
4562
|
return this;
|
|
4461
4563
|
}
|
|
4462
4564
|
_getTestState() {
|
|
4463
4565
|
return {
|
|
4464
|
-
types:
|
|
4465
|
-
extensions:
|
|
4566
|
+
types: E(this, W, "f"),
|
|
4567
|
+
extensions: E(this, J, "f")
|
|
4466
4568
|
};
|
|
4467
4569
|
}
|
|
4468
4570
|
}
|
|
4469
4571
|
W = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
|
|
4470
|
-
const
|
|
4471
|
-
function
|
|
4572
|
+
const Sa = new ye(de, re)._freeze();
|
|
4573
|
+
function xe(e, t, a, i) {
|
|
4472
4574
|
const l = t.flatMap((n) => n.file);
|
|
4473
4575
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
4474
|
-
const
|
|
4576
|
+
const o = l.findIndex((p) => p.name === n.name);
|
|
4475
4577
|
let r = "Not Uploaded";
|
|
4476
|
-
|
|
4578
|
+
o === -1 ? ((!a.includes(n.type) || !(n.size <= i)) && (r = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
4477
4579
|
file: n,
|
|
4478
4580
|
status: r,
|
|
4479
4581
|
blobFileName: null
|
|
4480
|
-
})) : t[
|
|
4582
|
+
})) : t[o].status = "Duplicate";
|
|
4481
4583
|
}), t;
|
|
4482
4584
|
}
|
|
4483
|
-
async function
|
|
4585
|
+
async function Ca(e, t) {
|
|
4484
4586
|
if (e === "Uploaded" && t !== null)
|
|
4485
4587
|
try {
|
|
4486
4588
|
await new me(t).delete();
|
|
@@ -4497,28 +4599,28 @@ function pe(e, t = !0, a = 1) {
|
|
|
4497
4599
|
return e + " B";
|
|
4498
4600
|
const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
4499
4601
|
let n = -1;
|
|
4500
|
-
const
|
|
4602
|
+
const o = 10 ** a;
|
|
4501
4603
|
do
|
|
4502
4604
|
e /= i, ++n;
|
|
4503
|
-
while (Math.round(Math.abs(e) *
|
|
4605
|
+
while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
|
|
4504
4606
|
return e.toFixed(a) + " " + l[n];
|
|
4505
4607
|
}
|
|
4506
|
-
function
|
|
4608
|
+
function za(e) {
|
|
4507
4609
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
4508
4610
|
}
|
|
4509
|
-
function
|
|
4611
|
+
function Ta(e) {
|
|
4510
4612
|
return URL.createObjectURL(e);
|
|
4511
4613
|
}
|
|
4512
|
-
function
|
|
4513
|
-
const e = new
|
|
4614
|
+
function ja() {
|
|
4615
|
+
const e = new ye(de, re);
|
|
4514
4616
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
4515
4617
|
}
|
|
4516
|
-
const
|
|
4618
|
+
const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disabled", "multiple"], Pa = {
|
|
4517
4619
|
class: "text-break accepted-file-types-container",
|
|
4518
4620
|
id: "accepted-file-types-overlay"
|
|
4519
|
-
},
|
|
4621
|
+
}, Va = /* @__PURE__ */ F({
|
|
4520
4622
|
__name: "UploadButton",
|
|
4521
|
-
props: /* @__PURE__ */
|
|
4623
|
+
props: /* @__PURE__ */ N({
|
|
4522
4624
|
acceptedFileTypes: {},
|
|
4523
4625
|
maxFileInput: {},
|
|
4524
4626
|
showDragDropArea: { type: Boolean }
|
|
@@ -4528,73 +4630,73 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4528
4630
|
}),
|
|
4529
4631
|
emits: ["update:modelValue"],
|
|
4530
4632
|
setup(e) {
|
|
4531
|
-
const t = D(e, "modelValue"), a =
|
|
4532
|
-
t.value =
|
|
4633
|
+
const t = D(e, "modelValue"), a = _(), i = (o) => a.value.toggle(o), l = z(() => e.maxFileInput <= t.value.length), n = (o) => {
|
|
4634
|
+
t.value = xe(o, t.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileInput);
|
|
4533
4635
|
};
|
|
4534
|
-
return (
|
|
4535
|
-
const p =
|
|
4536
|
-
return d(),
|
|
4537
|
-
k(
|
|
4636
|
+
return (o, r) => {
|
|
4637
|
+
const p = q;
|
|
4638
|
+
return d(), f("div", _a, [
|
|
4639
|
+
k(o.$slots, "message"),
|
|
4538
4640
|
m("div", null, [
|
|
4539
4641
|
m("input", {
|
|
4540
4642
|
id: "file-input",
|
|
4541
4643
|
type: "file",
|
|
4542
4644
|
class: "d-none",
|
|
4543
|
-
accept:
|
|
4645
|
+
accept: o.acceptedFileTypes.join(", "),
|
|
4544
4646
|
disabled: l.value,
|
|
4545
|
-
multiple:
|
|
4647
|
+
multiple: o.maxFileInput > 1,
|
|
4546
4648
|
onInput: r[0] || (r[0] = (u) => n([...u.target.files]))
|
|
4547
|
-
}, null, 40,
|
|
4649
|
+
}, null, 40, Ia),
|
|
4548
4650
|
m("label", {
|
|
4549
|
-
class:
|
|
4651
|
+
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
4550
4652
|
id: "file-input-button",
|
|
4551
4653
|
for: "file-input"
|
|
4552
4654
|
}, [
|
|
4553
|
-
k(
|
|
4554
|
-
|
|
4655
|
+
k(o.$slots, "button-content", {}, () => [
|
|
4656
|
+
x(c(T), {
|
|
4555
4657
|
icon: "bi:upload",
|
|
4556
4658
|
class: "me-2",
|
|
4557
4659
|
height: "20px",
|
|
4558
4660
|
width: "20px"
|
|
4559
4661
|
}),
|
|
4560
|
-
r[1] || (r[1] =
|
|
4662
|
+
r[1] || (r[1] = I(" Browse your computer "))
|
|
4561
4663
|
])
|
|
4562
4664
|
], 2)
|
|
4563
4665
|
]),
|
|
4564
|
-
|
|
4666
|
+
o.showDragDropArea ? (d(), v(p, {
|
|
4565
4667
|
link: "",
|
|
4566
4668
|
class: "ms-auto",
|
|
4567
|
-
key:
|
|
4669
|
+
key: o.acceptedFileTypes.length,
|
|
4568
4670
|
id: "accepted-file-types",
|
|
4569
4671
|
onClick: i
|
|
4570
4672
|
}, {
|
|
4571
|
-
default:
|
|
4572
|
-
|
|
4673
|
+
default: b(() => r[2] || (r[2] = [
|
|
4674
|
+
I("Accepted File Types")
|
|
4573
4675
|
])),
|
|
4574
4676
|
_: 1
|
|
4575
4677
|
})) : C("", !0),
|
|
4576
|
-
|
|
4678
|
+
x(c(ve), {
|
|
4577
4679
|
ref_key: "acceptedFilesOverlay",
|
|
4578
4680
|
ref: a
|
|
4579
4681
|
}, {
|
|
4580
|
-
default:
|
|
4581
|
-
m("div",
|
|
4682
|
+
default: b(() => [
|
|
4683
|
+
m("div", Pa, w(o.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
4582
4684
|
]),
|
|
4583
4685
|
_: 1
|
|
4584
4686
|
}, 512)
|
|
4585
4687
|
]);
|
|
4586
4688
|
};
|
|
4587
4689
|
}
|
|
4588
|
-
}),
|
|
4690
|
+
}), Ma = {
|
|
4589
4691
|
key: 0,
|
|
4590
4692
|
class: "py-4 px-3",
|
|
4591
4693
|
id: "placeholder-message"
|
|
4592
|
-
},
|
|
4694
|
+
}, Da = {
|
|
4593
4695
|
key: 1,
|
|
4594
4696
|
class: "d-flex flex-column"
|
|
4595
|
-
},
|
|
4697
|
+
}, Oa = /* @__PURE__ */ F({
|
|
4596
4698
|
__name: "DragDropArea",
|
|
4597
|
-
props: /* @__PURE__ */
|
|
4699
|
+
props: /* @__PURE__ */ N({
|
|
4598
4700
|
maxFileInput: {},
|
|
4599
4701
|
maxFileSize: {},
|
|
4600
4702
|
acceptedFileTypes: {}
|
|
@@ -4604,30 +4706,30 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4604
4706
|
}),
|
|
4605
4707
|
emits: ["update:modelValue"],
|
|
4606
4708
|
setup(e) {
|
|
4607
|
-
const t = D(e, "modelValue"), a =
|
|
4608
|
-
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value =
|
|
4709
|
+
const t = D(e, "modelValue"), a = _(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
4710
|
+
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = xe([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((o) => o.fileType), e.maxFileSize);
|
|
4609
4711
|
};
|
|
4610
|
-
return (n,
|
|
4712
|
+
return (n, o) => (d(), f("div", {
|
|
4611
4713
|
id: "drag-drop-area",
|
|
4612
|
-
class:
|
|
4613
|
-
onDragleave:
|
|
4614
|
-
onDragover:
|
|
4714
|
+
class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
4715
|
+
onDragleave: o[0] || (o[0] = G((r) => a.value = !1, ["prevent"])),
|
|
4716
|
+
onDragover: o[1] || (o[1] = G((r) => a.value = !0, ["prevent"])),
|
|
4615
4717
|
onDrop: G(l, ["prevent"])
|
|
4616
4718
|
}, [
|
|
4617
|
-
t.value.length === 0 ? (d(),
|
|
4618
|
-
|
|
4719
|
+
t.value.length === 0 ? (d(), f("div", Ma, [
|
|
4720
|
+
x(c(T), {
|
|
4619
4721
|
icon: "bi:upload",
|
|
4620
4722
|
class: "me-2",
|
|
4621
4723
|
height: "20px",
|
|
4622
4724
|
width: "20px"
|
|
4623
4725
|
}),
|
|
4624
|
-
|
|
4625
|
-
])) : (d(),
|
|
4726
|
+
o[2] || (o[2] = I(" Drag and drop files here "))
|
|
4727
|
+
])) : (d(), f("div", Da, [
|
|
4626
4728
|
k(n.$slots, "default")
|
|
4627
4729
|
]))
|
|
4628
4730
|
], 34));
|
|
4629
4731
|
}
|
|
4630
|
-
}),
|
|
4732
|
+
}), Na = { class: "d-flex align-items-center me-2" }, Ua = /* @__PURE__ */ F({
|
|
4631
4733
|
__name: "UploadStatus",
|
|
4632
4734
|
props: {
|
|
4633
4735
|
fileSize: {},
|
|
@@ -4652,43 +4754,43 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4652
4754
|
return "Upload Failed: Connection error, please try again.";
|
|
4653
4755
|
}
|
|
4654
4756
|
});
|
|
4655
|
-
return (i, l) => (d(),
|
|
4656
|
-
i.uploadStatus === "Uploading" ? (d(),
|
|
4757
|
+
return (i, l) => (d(), f("div", Na, [
|
|
4758
|
+
i.uploadStatus === "Uploading" ? (d(), v(ia, {
|
|
4657
4759
|
key: 0,
|
|
4658
4760
|
pixelWidth: 200,
|
|
4659
4761
|
animate: "",
|
|
4660
4762
|
striped: ""
|
|
4661
4763
|
}, {
|
|
4662
|
-
default:
|
|
4663
|
-
|
|
4764
|
+
default: b(() => [
|
|
4765
|
+
I(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
|
|
4664
4766
|
]),
|
|
4665
4767
|
_: 1
|
|
4666
4768
|
})) : C("", !0),
|
|
4667
|
-
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(),
|
|
4769
|
+
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(), v(se, {
|
|
4668
4770
|
key: 1,
|
|
4669
4771
|
id: "upload-status-alert",
|
|
4670
4772
|
severity: t.value,
|
|
4671
4773
|
class: "mb-0 w-75 ms-auto"
|
|
4672
4774
|
}, {
|
|
4673
|
-
default:
|
|
4674
|
-
|
|
4775
|
+
default: b(() => [
|
|
4776
|
+
I(w(a.value), 1)
|
|
4675
4777
|
]),
|
|
4676
4778
|
_: 1
|
|
4677
4779
|
}, 8, ["severity"])) : C("", !0)
|
|
4678
4780
|
]));
|
|
4679
4781
|
}
|
|
4680
|
-
}),
|
|
4782
|
+
}), Aa = ["data-cy"], qa = { class: "ms-3 d-flex flex-column" }, Ea = {
|
|
4681
4783
|
key: 1,
|
|
4682
4784
|
id: "file-name"
|
|
4683
|
-
},
|
|
4785
|
+
}, La = {
|
|
4684
4786
|
class: "text-black-50",
|
|
4685
4787
|
id: "file-type"
|
|
4686
|
-
},
|
|
4788
|
+
}, Ra = {
|
|
4687
4789
|
class: "text-black-50",
|
|
4688
4790
|
id: "file-size"
|
|
4689
|
-
},
|
|
4791
|
+
}, Ha = { class: "ms-auto my-auto d-flex" }, Wa = /* @__PURE__ */ F({
|
|
4690
4792
|
__name: "FileInfo",
|
|
4691
|
-
props: /* @__PURE__ */
|
|
4793
|
+
props: /* @__PURE__ */ N({
|
|
4692
4794
|
editableFileName: { type: Boolean },
|
|
4693
4795
|
acceptedFileTypes: {},
|
|
4694
4796
|
maxFileSize: {},
|
|
@@ -4703,27 +4805,27 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4703
4805
|
uploadStatus: { required: !0 },
|
|
4704
4806
|
uploadStatusModifiers: {}
|
|
4705
4807
|
}),
|
|
4706
|
-
emits: /* @__PURE__ */
|
|
4808
|
+
emits: /* @__PURE__ */ N(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
4707
4809
|
setup(e, { emit: t }) {
|
|
4708
|
-
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t,
|
|
4709
|
-
|
|
4810
|
+
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = _(a.value.name), r = _(""), p = _(0), u = _(), y = z(() => e.acceptedFileTypes.some(({ fileType: g }) => g === a.value.type)), s = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : ja().getType(a.value.name)), j = () => {
|
|
4811
|
+
o.value != null && (V(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
4710
4812
|
}, V = () => {
|
|
4711
|
-
let
|
|
4712
|
-
|
|
4813
|
+
let g = o.value.split("."), h = Sa.getExtension($.value), P = o.value.split(".").pop();
|
|
4814
|
+
g.length === 1 ? P && P.length > 0 && (o.value = [o.value, h].join(".")) : g.length > 1 && P !== h && (o.value = o.value.replace(P, h));
|
|
4713
4815
|
}, M = async () => {
|
|
4714
|
-
if (!
|
|
4715
|
-
l.value =
|
|
4816
|
+
if (!y.value || !s.value) {
|
|
4817
|
+
l.value = y.value ? "InvalidFileSize" : "InvalidFileType";
|
|
4716
4818
|
return;
|
|
4717
4819
|
}
|
|
4718
4820
|
l.value = "Preparing", u.value = new AbortController();
|
|
4719
|
-
const [
|
|
4720
|
-
if (!
|
|
4821
|
+
const [g, h] = await e.getFileUrlAction(a.value.name);
|
|
4822
|
+
if (!g) {
|
|
4721
4823
|
l.value = "Failed";
|
|
4722
4824
|
return;
|
|
4723
4825
|
}
|
|
4724
4826
|
try {
|
|
4725
4827
|
l.value = "Uploading";
|
|
4726
|
-
const P = new me(
|
|
4828
|
+
const P = new me(g), L = {
|
|
4727
4829
|
abortSignal: u.value.signal,
|
|
4728
4830
|
onProgress: (ae) => p.value = ae.loadedBytes,
|
|
4729
4831
|
blobHTTPHeaders: {
|
|
@@ -4732,7 +4834,7 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4732
4834
|
},
|
|
4733
4835
|
tags: { temp: "true" }
|
|
4734
4836
|
};
|
|
4735
|
-
await P.uploadData(a.value, L), r.value =
|
|
4837
|
+
await P.uploadData(a.value, L), r.value = g, l.value = "Uploaded", i.value = h;
|
|
4736
4838
|
} catch (P) {
|
|
4737
4839
|
if (P.name === "AbortError") {
|
|
4738
4840
|
l.value = "Aborted";
|
|
@@ -4740,27 +4842,27 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4740
4842
|
}
|
|
4741
4843
|
l.value = "Failed";
|
|
4742
4844
|
}
|
|
4743
|
-
},
|
|
4744
|
-
await
|
|
4845
|
+
}, U = async () => {
|
|
4846
|
+
await Ca(l.value, r.value), n("deleted", a.value);
|
|
4745
4847
|
};
|
|
4746
4848
|
return le(() => {
|
|
4747
4849
|
e.autoUploadToBlob && M();
|
|
4748
|
-
}), (
|
|
4749
|
-
const P =
|
|
4750
|
-
return d(),
|
|
4850
|
+
}), (g, h) => {
|
|
4851
|
+
const P = q;
|
|
4852
|
+
return d(), f("div", {
|
|
4751
4853
|
class: "py-4 px-3 d-flex",
|
|
4752
4854
|
"data-cy": `file-info-${a.value.name}`
|
|
4753
4855
|
}, [
|
|
4754
4856
|
m("div", null, [
|
|
4755
|
-
c(
|
|
4857
|
+
c(za)(a.value.type) ? (d(), v(c(Le), {
|
|
4756
4858
|
key: 0,
|
|
4757
4859
|
id: "thumbnail-image",
|
|
4758
4860
|
"image-class": "image-file-thumbnail border",
|
|
4759
|
-
src: c(
|
|
4861
|
+
src: c(Ta)(a.value),
|
|
4760
4862
|
alt: a.value.name,
|
|
4761
4863
|
width: "75px",
|
|
4762
4864
|
preview: ""
|
|
4763
|
-
}, null, 8, ["src", "alt"])) : (d(),
|
|
4865
|
+
}, null, 8, ["src", "alt"])) : (d(), v(c(T), {
|
|
4764
4866
|
key: 1,
|
|
4765
4867
|
id: "file-earmark",
|
|
4766
4868
|
icon: "bi:file-earmark",
|
|
@@ -4768,78 +4870,78 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4768
4870
|
width: "75px"
|
|
4769
4871
|
}))
|
|
4770
4872
|
]),
|
|
4771
|
-
m("div",
|
|
4873
|
+
m("div", qa, [
|
|
4772
4874
|
m("div", null, [
|
|
4773
|
-
|
|
4875
|
+
g.editableFileName ? (d(), v(At, {
|
|
4774
4876
|
key: 0,
|
|
4775
4877
|
id: "edit-file-name",
|
|
4776
|
-
modelValue:
|
|
4777
|
-
"onUpdate:modelValue": h[0] || (h[0] = (L) =>
|
|
4778
|
-
rules:
|
|
4878
|
+
modelValue: o.value,
|
|
4879
|
+
"onUpdate:modelValue": h[0] || (h[0] = (L) => o.value = L),
|
|
4880
|
+
rules: g.customFileNameRules,
|
|
4779
4881
|
name: a.value.name,
|
|
4780
4882
|
"complete-action": j
|
|
4781
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(),
|
|
4883
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), f("span", Ea, w(o.value), 1))
|
|
4782
4884
|
]),
|
|
4783
|
-
m("span",
|
|
4784
|
-
m("span",
|
|
4885
|
+
m("span", La, "File type: " + w(a.value.type.split("/").pop()), 1),
|
|
4886
|
+
m("span", Ra, "File size: " + w(c(pe)(a.value.size)), 1)
|
|
4785
4887
|
]),
|
|
4786
|
-
m("div",
|
|
4787
|
-
(d(),
|
|
4888
|
+
m("div", Ha, [
|
|
4889
|
+
(d(), v(Ua, {
|
|
4788
4890
|
key: l.value,
|
|
4789
4891
|
"file-size": a.value.size,
|
|
4790
4892
|
"upload-status": l.value,
|
|
4791
4893
|
"bytes-uploaded": p.value,
|
|
4792
|
-
"max-file-size":
|
|
4894
|
+
"max-file-size": g.maxFileSize
|
|
4793
4895
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
4794
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(),
|
|
4896
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), v(P, {
|
|
4795
4897
|
key: 0,
|
|
4796
4898
|
link: "",
|
|
4797
4899
|
onClick: M
|
|
4798
4900
|
}, {
|
|
4799
|
-
default:
|
|
4800
|
-
|
|
4901
|
+
default: b(() => [
|
|
4902
|
+
x(c(T), {
|
|
4801
4903
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
4802
4904
|
}, null, 8, ["icon"])
|
|
4803
4905
|
]),
|
|
4804
4906
|
_: 1
|
|
4805
4907
|
})) : C("", !0),
|
|
4806
|
-
l.value === "Uploading" ? (d(),
|
|
4908
|
+
l.value === "Uploading" ? (d(), v(P, {
|
|
4807
4909
|
key: 1,
|
|
4808
4910
|
link: "",
|
|
4809
4911
|
onClick: h[1] || (h[1] = (L) => u.value.value.abort())
|
|
4810
4912
|
}, {
|
|
4811
|
-
default:
|
|
4812
|
-
|
|
4913
|
+
default: b(() => [
|
|
4914
|
+
x(c(T), { icon: "bi:x-circle-fill" })
|
|
4813
4915
|
]),
|
|
4814
4916
|
_: 1
|
|
4815
|
-
})) : (d(),
|
|
4917
|
+
})) : (d(), v(P, {
|
|
4816
4918
|
key: 2,
|
|
4817
4919
|
link: "",
|
|
4818
|
-
onClick:
|
|
4920
|
+
onClick: U,
|
|
4819
4921
|
id: "delete-button"
|
|
4820
4922
|
}, {
|
|
4821
|
-
default:
|
|
4822
|
-
|
|
4923
|
+
default: b(() => [
|
|
4924
|
+
x(c(T), { icon: "bi:trash" })
|
|
4823
4925
|
]),
|
|
4824
4926
|
_: 1
|
|
4825
4927
|
}))
|
|
4826
4928
|
])
|
|
4827
|
-
], 8,
|
|
4929
|
+
], 8, Aa);
|
|
4828
4930
|
};
|
|
4829
4931
|
}
|
|
4830
|
-
}),
|
|
4932
|
+
}), Ya = { class: "d-flex justify-content-end mt-1" }, Ga = { id: "max-file-size" }, Ja = /* @__PURE__ */ F({
|
|
4831
4933
|
__name: "MaxFileSize",
|
|
4832
4934
|
props: {
|
|
4833
4935
|
maxFileSize: {}
|
|
4834
4936
|
},
|
|
4835
4937
|
setup(e) {
|
|
4836
|
-
return (t, a) => (d(),
|
|
4837
|
-
m("div",
|
|
4938
|
+
return (t, a) => (d(), f("div", Ya, [
|
|
4939
|
+
m("div", Ga, "Max file size: " + w(c(pe)(t.maxFileSize)), 1)
|
|
4838
4940
|
]));
|
|
4839
4941
|
}
|
|
4840
|
-
}),
|
|
4942
|
+
}), Ka = { "data-cy": "file-uploader" }, Za = { key: 0 }, tl = /* @__PURE__ */ F({
|
|
4841
4943
|
__name: "ForgeFileUploader",
|
|
4842
|
-
props: /* @__PURE__ */
|
|
4944
|
+
props: /* @__PURE__ */ N({
|
|
4843
4945
|
acceptedFileTypes: {},
|
|
4844
4946
|
maxFileSize: {},
|
|
4845
4947
|
getFileUrlAction: {},
|
|
@@ -4857,23 +4959,23 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4857
4959
|
const t = D(e, "modelValue"), a = e, i = (l) => {
|
|
4858
4960
|
t.value = t.value.filter((n) => n.file != l);
|
|
4859
4961
|
};
|
|
4860
|
-
return (l, n) => (d(),
|
|
4861
|
-
|
|
4962
|
+
return (l, n) => (d(), f("div", Ka, [
|
|
4963
|
+
x(Va, S(a, {
|
|
4862
4964
|
modelValue: t.value,
|
|
4863
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
4965
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
|
|
4864
4966
|
}), null, 16, ["modelValue"]),
|
|
4865
|
-
l.showDragDropArea ? (d(),
|
|
4866
|
-
|
|
4967
|
+
l.showDragDropArea ? (d(), f("div", Za, [
|
|
4968
|
+
x(Oa, {
|
|
4867
4969
|
"max-file-input": a.maxFileInput,
|
|
4868
4970
|
"max-file-size": a.maxFileSize,
|
|
4869
4971
|
"accepted-file-types": a.acceptedFileTypes,
|
|
4870
4972
|
modelValue: t.value,
|
|
4871
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
4973
|
+
"onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
|
|
4872
4974
|
}, {
|
|
4873
|
-
default:
|
|
4874
|
-
(d(!0),
|
|
4875
|
-
(d(),
|
|
4876
|
-
key:
|
|
4975
|
+
default: b(() => [
|
|
4976
|
+
(d(!0), f(O, null, A(t.value, ({ file: o }, r) => (d(), f("span", null, [
|
|
4977
|
+
(d(), v(Wa, S({
|
|
4978
|
+
key: o.name,
|
|
4877
4979
|
class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
4878
4980
|
file: t.value[r].file,
|
|
4879
4981
|
"onUpdate:file": (p) => t.value[r].file = p,
|
|
@@ -4887,13 +4989,13 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4887
4989
|
]),
|
|
4888
4990
|
_: 1
|
|
4889
4991
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
4890
|
-
|
|
4992
|
+
x(Ja, {
|
|
4891
4993
|
"max-file-size": a.maxFileSize
|
|
4892
4994
|
}, null, 8, ["max-file-size"])
|
|
4893
4995
|
])) : C("", !0)
|
|
4894
4996
|
]));
|
|
4895
4997
|
}
|
|
4896
|
-
}),
|
|
4998
|
+
}), Xa = { class: "d-flex" }, Qa = { class: "me-3" }, ei = { class: "ms-2" }, ti = { class: "d-flex flex-column w-100" }, al = /* @__PURE__ */ F({
|
|
4897
4999
|
__name: "ForgeColumnCustomiser",
|
|
4898
5000
|
props: {
|
|
4899
5001
|
modelValue: { required: !0 },
|
|
@@ -4901,22 +5003,22 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4901
5003
|
},
|
|
4902
5004
|
emits: ["update:modelValue"],
|
|
4903
5005
|
setup(e) {
|
|
4904
|
-
const t = D(e, "modelValue"), a =
|
|
5006
|
+
const t = D(e, "modelValue"), a = _(), i = _(!1), l = (n) => {
|
|
4905
5007
|
a.value.toggle(n);
|
|
4906
5008
|
};
|
|
4907
|
-
return (n,
|
|
4908
|
-
|
|
5009
|
+
return (n, o) => (d(), f(O, null, [
|
|
5010
|
+
x(c(q), {
|
|
4909
5011
|
onClick: l,
|
|
4910
5012
|
class: "ms-2"
|
|
4911
5013
|
}, {
|
|
4912
|
-
default:
|
|
4913
|
-
m("div",
|
|
4914
|
-
m("div",
|
|
4915
|
-
|
|
5014
|
+
default: b(() => [
|
|
5015
|
+
m("div", Xa, [
|
|
5016
|
+
m("div", Qa, [
|
|
5017
|
+
x(c(T), { icon: "bi:layout-three-columns" })
|
|
4916
5018
|
]),
|
|
4917
|
-
|
|
4918
|
-
m("div",
|
|
4919
|
-
|
|
5019
|
+
I(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
|
|
5020
|
+
m("div", ei, [
|
|
5021
|
+
x(c(T), {
|
|
4920
5022
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
4921
5023
|
}, null, 8, ["icon"])
|
|
4922
5024
|
])
|
|
@@ -4924,24 +5026,24 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4924
5026
|
]),
|
|
4925
5027
|
_: 1
|
|
4926
5028
|
}),
|
|
4927
|
-
|
|
5029
|
+
x(c(ve), {
|
|
4928
5030
|
ref_key: "columnCustomiserPanel",
|
|
4929
5031
|
ref: a,
|
|
4930
5032
|
class: "column-customiser",
|
|
4931
|
-
onHide:
|
|
4932
|
-
onShow:
|
|
5033
|
+
onHide: o[0] || (o[0] = () => i.value = !1),
|
|
5034
|
+
onShow: o[1] || (o[1] = () => i.value = !0)
|
|
4933
5035
|
}, {
|
|
4934
|
-
default:
|
|
4935
|
-
m("div",
|
|
4936
|
-
(d(!0),
|
|
4937
|
-
class:
|
|
5036
|
+
default: b(() => [
|
|
5037
|
+
m("div", ti, [
|
|
5038
|
+
(d(!0), f(O, null, A(t.value, (r, p) => (d(), f("div", {
|
|
5039
|
+
class: B(["d-flex cursor-pointer", {
|
|
4938
5040
|
"border-top": p !== 0,
|
|
4939
5041
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
4940
5042
|
"pt-1": t.value.length - 1 === p,
|
|
4941
5043
|
"pb-1": p === 0
|
|
4942
5044
|
}])
|
|
4943
5045
|
}, [
|
|
4944
|
-
|
|
5046
|
+
x(fe, {
|
|
4945
5047
|
id: r.field,
|
|
4946
5048
|
modelValue: r.selected,
|
|
4947
5049
|
"onUpdate:modelValue": (u) => r.selected = u,
|
|
@@ -4956,61 +5058,128 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
|
|
|
4956
5058
|
}, 512)
|
|
4957
5059
|
], 64));
|
|
4958
5060
|
}
|
|
4959
|
-
}),
|
|
5061
|
+
}), il = /* @__PURE__ */ F({
|
|
4960
5062
|
__name: "ForgePanel",
|
|
4961
5063
|
setup(e) {
|
|
4962
5064
|
return (t, a) => {
|
|
4963
5065
|
const i = Re;
|
|
4964
|
-
return d(),
|
|
4965
|
-
toggleicon:
|
|
4966
|
-
l ? (d(),
|
|
5066
|
+
return d(), v(i, K(Z({ ...t.$attrs })), {
|
|
5067
|
+
toggleicon: b(({ collapsed: l }) => [
|
|
5068
|
+
l ? (d(), v(c(T), {
|
|
4967
5069
|
key: 0,
|
|
4968
5070
|
"data-cy": "message-icon",
|
|
4969
5071
|
icon: "bi:chevron-down"
|
|
4970
5072
|
})) : C("", !0),
|
|
4971
|
-
l ? C("", !0) : (d(),
|
|
5073
|
+
l ? C("", !0) : (d(), v(c(T), {
|
|
4972
5074
|
key: 1,
|
|
4973
5075
|
"data-cy": "message-icon",
|
|
4974
5076
|
icon: "bi:chevron-up"
|
|
4975
5077
|
}))
|
|
4976
5078
|
]),
|
|
4977
|
-
default:
|
|
5079
|
+
default: b(() => [
|
|
4978
5080
|
k(t.$slots, "default")
|
|
4979
5081
|
]),
|
|
4980
5082
|
_: 3
|
|
4981
5083
|
}, 16);
|
|
4982
5084
|
};
|
|
4983
5085
|
}
|
|
5086
|
+
}), ai = /* @__PURE__ */ F({
|
|
5087
|
+
__name: "ForgeToggleButton",
|
|
5088
|
+
props: {
|
|
5089
|
+
severity: { default: "primary" }
|
|
5090
|
+
},
|
|
5091
|
+
setup(e) {
|
|
5092
|
+
const t = e, a = z(() => ({
|
|
5093
|
+
root: (i) => ({
|
|
5094
|
+
class: [
|
|
5095
|
+
"btn",
|
|
5096
|
+
{
|
|
5097
|
+
[`focus-ring focus-ring-${t.severity} btn-${t.severity}-subtle border border-2 border-${t.severity} fw-500 text-${t.severity}`]: i.context.active,
|
|
5098
|
+
[`border text-${t.severity} select-btn-${t.severity}`]: !i.context.active,
|
|
5099
|
+
"btn-secondary-subtle": i.context.disabled
|
|
5100
|
+
}
|
|
5101
|
+
]
|
|
5102
|
+
}),
|
|
5103
|
+
label: (i) => ({
|
|
5104
|
+
class: [
|
|
5105
|
+
{
|
|
5106
|
+
"fw-500": i.context.active,
|
|
5107
|
+
"text-secondary": i.context.disabled
|
|
5108
|
+
}
|
|
5109
|
+
]
|
|
5110
|
+
})
|
|
5111
|
+
}));
|
|
5112
|
+
return (i, l) => (d(), v(c(He), S({ ...i.$attrs, ...t }, {
|
|
5113
|
+
severity: t.severity,
|
|
5114
|
+
pt: a.value
|
|
5115
|
+
}), null, 16, ["severity", "pt"]));
|
|
5116
|
+
}
|
|
5117
|
+
}), ii = {
|
|
5118
|
+
class: "btn-group",
|
|
5119
|
+
"data-cy": "forge-select-button"
|
|
5120
|
+
}, ll = /* @__PURE__ */ F({
|
|
5121
|
+
__name: "ForgeSelectButton",
|
|
5122
|
+
props: /* @__PURE__ */ N({
|
|
5123
|
+
multiple: { type: Boolean, default: !1 },
|
|
5124
|
+
allowEmpty: { type: Boolean, default: !0 }
|
|
5125
|
+
}, {
|
|
5126
|
+
modelValue: { required: !0 },
|
|
5127
|
+
modelModifiers: {}
|
|
5128
|
+
}),
|
|
5129
|
+
emits: /* @__PURE__ */ N(["change"], ["update:modelValue"]),
|
|
5130
|
+
setup(e, { emit: t }) {
|
|
5131
|
+
const a = e, i = t, l = D(e, "modelValue"), n = (o) => {
|
|
5132
|
+
if (o.disabled) return;
|
|
5133
|
+
const r = o.selected && l.value.filter((p) => o.value != p.value && p.selected).length < 1;
|
|
5134
|
+
!a.allowEmpty && r || (a.multiple || l.value.forEach((p) => {
|
|
5135
|
+
p.value != o.value && (p.selected = !1);
|
|
5136
|
+
}), o.selected = !o.selected, i("change", o));
|
|
5137
|
+
};
|
|
5138
|
+
return (o, r) => (d(), f("div", ii, [
|
|
5139
|
+
(d(!0), f(O, null, A(l.value, (p, u) => (d(), v(ai, {
|
|
5140
|
+
onLabel: p.label,
|
|
5141
|
+
offLabel: p.label,
|
|
5142
|
+
severity: p.severity,
|
|
5143
|
+
key: u,
|
|
5144
|
+
onChange: (y) => n(p),
|
|
5145
|
+
defaultValue: p.selected,
|
|
5146
|
+
disabled: p.disabled,
|
|
5147
|
+
"data-cy": `toggle-button-${p.value}`
|
|
5148
|
+
}, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy"]))), 128))
|
|
5149
|
+
]));
|
|
5150
|
+
}
|
|
4984
5151
|
});
|
|
4985
5152
|
export {
|
|
4986
|
-
|
|
4987
|
-
|
|
5153
|
+
Di as Bootstrap_PT,
|
|
5154
|
+
Oi as ForgeActionButton,
|
|
4988
5155
|
se as ForgeAlert,
|
|
4989
|
-
|
|
5156
|
+
Ni as ForgeAutoComplete,
|
|
4990
5157
|
fe as ForgeCheckbox,
|
|
4991
|
-
|
|
4992
|
-
|
|
5158
|
+
Gi as ForgeChip,
|
|
5159
|
+
al as ForgeColumnCustomiser,
|
|
4993
5160
|
be as ForgeDatepicker,
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5161
|
+
tl as ForgeFileUploader,
|
|
5162
|
+
el as ForgeFilterHeader,
|
|
5163
|
+
Wi as ForgeForm,
|
|
5164
|
+
Yi as ForgeFormField,
|
|
5165
|
+
At as ForgeInlineEditor,
|
|
5166
|
+
Ui as ForgeLink,
|
|
5000
5167
|
ge as ForgeLoader,
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5168
|
+
Ei as ForgeModal,
|
|
5169
|
+
Wt as ForgeMultiSelectPreview,
|
|
5170
|
+
Li as ForgeNavbar,
|
|
5171
|
+
Ri as ForgePageHeader,
|
|
5172
|
+
il as ForgePanel,
|
|
5173
|
+
ia as ForgeProgressBar,
|
|
5174
|
+
Hi as ForgeRemainingCharacters,
|
|
5175
|
+
Ji as ForgeScratchpad,
|
|
5176
|
+
ll as ForgeSelectButton,
|
|
5177
|
+
Ki as ForgeStatWidget,
|
|
5178
|
+
Zi as ForgeStepper,
|
|
5179
|
+
Qi as ForgeTable,
|
|
5180
|
+
Xi as ForgeTile,
|
|
5181
|
+
ai as ForgeToggleButton,
|
|
5182
|
+
qi as convertToMultiSelectOption,
|
|
5183
|
+
Ai as enumToMultiSelectList,
|
|
5184
|
+
_t as parseError
|
|
5016
5185
|
};
|