@3squared/forge-ui-3 2.4.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/forge-ui-3.js +454 -406
- package/dist/esm/style.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/src/components/ForgePanel.vue.d.ts +17 -0
- package/dist/src/passthroughs/Dropdown.pt.d.ts +1 -1
- package/dist/src/passthroughs/Table.pt.d.ts +7 -0
- package/package.json +5 -5
- package/src/styles/components/_table.scss +6 -0
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import he from "primevue/message";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { Icon as
|
|
2
|
+
import { defineComponent as B, openBlock as d, createBlock as f, normalizeProps as K, guardReactiveProps as Z, withCtx as g, createElementVNode as m, normalizeClass as F, unref as c, createCommentVNode as C, createVNode as y, renderSlot as k, ref as I, createElementBlock as b, Fragment as N, mergeProps as S, renderList as q, mergeModels as E, useModel as D, computed as z, createTextVNode as _, 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
|
+
import { Icon as T } from "@iconify/vue";
|
|
4
4
|
import U from "primevue/button";
|
|
5
|
-
import
|
|
5
|
+
import Be from "primevue/toast";
|
|
6
6
|
import Se from "primevue/autocomplete";
|
|
7
7
|
import Ce from "primevue/checkbox";
|
|
8
8
|
import { useField as ee } from "vee-validate";
|
|
@@ -12,9 +12,9 @@ import ne from "primevue/inputtext";
|
|
|
12
12
|
import { vOnClickOutside as je } from "@vueuse/components";
|
|
13
13
|
import Ie from "primevue/menubar";
|
|
14
14
|
import oe from "primevue/multiselect";
|
|
15
|
-
import
|
|
15
|
+
import _e from "primevue/datepicker";
|
|
16
16
|
import te from "primevue/select";
|
|
17
|
-
import
|
|
17
|
+
import Pe from "primevue/inputmask";
|
|
18
18
|
import Ve from "primevue/textarea";
|
|
19
19
|
import ue from "primevue/inputnumber";
|
|
20
20
|
import Me from "primevue/chip";
|
|
@@ -28,7 +28,8 @@ import Ee from "primevue/datatable";
|
|
|
28
28
|
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
|
+
const He = {
|
|
32
33
|
autoComplete: {
|
|
33
34
|
root: ({ props: e }) => ({
|
|
34
35
|
class: [
|
|
@@ -57,7 +58,7 @@ const Re = {
|
|
|
57
58
|
}),
|
|
58
59
|
emptyMessage: "mx-3 my-2"
|
|
59
60
|
}
|
|
60
|
-
},
|
|
61
|
+
}, We = {
|
|
61
62
|
button: {
|
|
62
63
|
root: ({ props: e }) => ({
|
|
63
64
|
class: [
|
|
@@ -158,7 +159,7 @@ const Re = {
|
|
|
158
159
|
})
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
|
-
},
|
|
162
|
+
}, Ye = {
|
|
162
163
|
checkbox: {
|
|
163
164
|
root: () => ({
|
|
164
165
|
class: ["form-check"]
|
|
@@ -174,7 +175,7 @@ const Re = {
|
|
|
174
175
|
]
|
|
175
176
|
})
|
|
176
177
|
}
|
|
177
|
-
},
|
|
178
|
+
}, Ge = {
|
|
178
179
|
select: {
|
|
179
180
|
root: ({ props: e }) => ({
|
|
180
181
|
class: [
|
|
@@ -184,7 +185,7 @@ const Re = {
|
|
|
184
185
|
}
|
|
185
186
|
]
|
|
186
187
|
}),
|
|
187
|
-
dropdown: (
|
|
188
|
+
dropdown: () => ({
|
|
188
189
|
class: [
|
|
189
190
|
"d-none my-auto filter-trigger"
|
|
190
191
|
]
|
|
@@ -204,10 +205,12 @@ const Re = {
|
|
|
204
205
|
overlay: "dropdown-menu overflow-y-auto show",
|
|
205
206
|
header: "p-2 w-100",
|
|
206
207
|
pcFilter: "form-control w-100",
|
|
207
|
-
pcFilterIconContainer: {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
pcFilterIconContainer: {
|
|
209
|
+
root: {
|
|
210
|
+
class: ["position-absolute bottom-0 end-0 me-3"],
|
|
211
|
+
style: "top: 8%;"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
211
214
|
clearIcon: "ms-auto my-auto",
|
|
212
215
|
loadingIcon: "spinner-border spinner-border-sm border-0",
|
|
213
216
|
optionGroupLabel: "ps-2 fw-bold",
|
|
@@ -222,7 +225,7 @@ const Re = {
|
|
|
222
225
|
]
|
|
223
226
|
})
|
|
224
227
|
}
|
|
225
|
-
},
|
|
228
|
+
}, Je = {
|
|
226
229
|
column: {
|
|
227
230
|
pcSortBadge: "ms-2 my-auto cursor-pointer",
|
|
228
231
|
headerCell: (e) => {
|
|
@@ -325,7 +328,7 @@ const Re = {
|
|
|
325
328
|
]
|
|
326
329
|
})
|
|
327
330
|
}
|
|
328
|
-
},
|
|
331
|
+
}, Ke = {
|
|
329
332
|
inputtext: {
|
|
330
333
|
root: (e) => {
|
|
331
334
|
var t, a;
|
|
@@ -340,7 +343,7 @@ const Re = {
|
|
|
340
343
|
};
|
|
341
344
|
}
|
|
342
345
|
}
|
|
343
|
-
},
|
|
346
|
+
}, Ze = {
|
|
344
347
|
inputmask: {
|
|
345
348
|
root: () => ({
|
|
346
349
|
class: [
|
|
@@ -348,12 +351,12 @@ const Re = {
|
|
|
348
351
|
]
|
|
349
352
|
})
|
|
350
353
|
}
|
|
351
|
-
},
|
|
354
|
+
}, Xe = {
|
|
352
355
|
toggleSwitch: {
|
|
353
356
|
root: "form-check form-switch",
|
|
354
357
|
input: "form-check-input"
|
|
355
358
|
}
|
|
356
|
-
},
|
|
359
|
+
}, Qe = {
|
|
357
360
|
tag: {
|
|
358
361
|
root: ({ props: e }) => ({
|
|
359
362
|
class: [
|
|
@@ -373,7 +376,7 @@ const Re = {
|
|
|
373
376
|
]
|
|
374
377
|
})
|
|
375
378
|
}
|
|
376
|
-
},
|
|
379
|
+
}, et = {
|
|
377
380
|
textarea: {
|
|
378
381
|
root: () => ({
|
|
379
382
|
class: [
|
|
@@ -381,13 +384,13 @@ const Re = {
|
|
|
381
384
|
]
|
|
382
385
|
})
|
|
383
386
|
}
|
|
384
|
-
},
|
|
387
|
+
}, tt = {
|
|
385
388
|
chip: {
|
|
386
389
|
root: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 p-1",
|
|
387
390
|
label: "px-2 fs-6 fw-400",
|
|
388
391
|
removeIcon: "ms-auto my-auto"
|
|
389
392
|
}
|
|
390
|
-
},
|
|
393
|
+
}, at = {
|
|
391
394
|
dialog: {
|
|
392
395
|
root: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
|
|
393
396
|
class: ["modal modal-dialog modal-content h-auto m-0 modal-sm"]
|
|
@@ -446,7 +449,7 @@ const Re = {
|
|
|
446
449
|
]
|
|
447
450
|
})
|
|
448
451
|
}
|
|
449
|
-
},
|
|
452
|
+
}, it = {
|
|
450
453
|
popover: {
|
|
451
454
|
root: (e) => ({
|
|
452
455
|
class: [
|
|
@@ -460,7 +463,7 @@ const Re = {
|
|
|
460
463
|
content: "d-flex position-relative",
|
|
461
464
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
462
465
|
}
|
|
463
|
-
},
|
|
466
|
+
}, lt = {
|
|
464
467
|
message: {
|
|
465
468
|
root: ({ props: e }) => ({
|
|
466
469
|
class: [
|
|
@@ -489,7 +492,7 @@ const Re = {
|
|
|
489
492
|
class: ["px-0 ms-2 btn d-flex"]
|
|
490
493
|
})
|
|
491
494
|
}
|
|
492
|
-
},
|
|
495
|
+
}, nt = {
|
|
493
496
|
// More PT options defined in ForgeStepper.
|
|
494
497
|
stepList: {
|
|
495
498
|
root: "d-flex mb-2 w-100"
|
|
@@ -517,7 +520,7 @@ const Re = {
|
|
|
517
520
|
}),
|
|
518
521
|
separator: "border border-1 separator"
|
|
519
522
|
}
|
|
520
|
-
},
|
|
523
|
+
}, ot = {
|
|
521
524
|
tabList: {
|
|
522
525
|
root: () => ({
|
|
523
526
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -542,7 +545,7 @@ const Re = {
|
|
|
542
545
|
class: ["p-2"]
|
|
543
546
|
})
|
|
544
547
|
}
|
|
545
|
-
},
|
|
548
|
+
}, st = {
|
|
546
549
|
// More PassThrough options defined in ForgeDatepicker.
|
|
547
550
|
datepicker: {
|
|
548
551
|
root: "d-inline-flex relative w-100",
|
|
@@ -617,7 +620,7 @@ const Re = {
|
|
|
617
620
|
pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
|
|
618
621
|
pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
|
|
619
622
|
}
|
|
620
|
-
},
|
|
623
|
+
}, rt = {
|
|
621
624
|
multiselect: {
|
|
622
625
|
root: ({ props: e }) => ({
|
|
623
626
|
class: [
|
|
@@ -645,7 +648,7 @@ const Re = {
|
|
|
645
648
|
class: "d-none"
|
|
646
649
|
})
|
|
647
650
|
}
|
|
648
|
-
},
|
|
651
|
+
}, dt = {
|
|
649
652
|
// More PassThrough options in component file.
|
|
650
653
|
progressbar: {
|
|
651
654
|
root: () => ({
|
|
@@ -655,14 +658,20 @@ const Re = {
|
|
|
655
658
|
class: ["text-white m-1"]
|
|
656
659
|
})
|
|
657
660
|
}
|
|
658
|
-
},
|
|
661
|
+
}, pt = {
|
|
659
662
|
panel: {
|
|
660
663
|
root: "card w-100",
|
|
661
|
-
header: "d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
662
|
-
pcToggleButton:
|
|
664
|
+
header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
|
|
665
|
+
pcToggleButton: {
|
|
666
|
+
root: {
|
|
667
|
+
class: [
|
|
668
|
+
"btn"
|
|
669
|
+
]
|
|
670
|
+
}
|
|
671
|
+
},
|
|
663
672
|
contentContainer: "mt-2 mx-4 mb-4"
|
|
664
673
|
}
|
|
665
|
-
},
|
|
674
|
+
}, ct = {
|
|
666
675
|
// More PT options can be found in the ForgeTable file.
|
|
667
676
|
dataTable: {
|
|
668
677
|
root: "position-relative",
|
|
@@ -695,7 +704,18 @@ const Re = {
|
|
|
695
704
|
}),
|
|
696
705
|
rowGroupHeaderCell: "d-inline-flex align-items-center border border-0",
|
|
697
706
|
rowGroupHeader: "border-top border-bottom",
|
|
698
|
-
rowToggleButton: "btn"
|
|
707
|
+
rowToggleButton: "btn",
|
|
708
|
+
pcPaginator: {
|
|
709
|
+
//remove paginator if there are initially no values
|
|
710
|
+
paginatorContainer: (e) => {
|
|
711
|
+
var t;
|
|
712
|
+
return {
|
|
713
|
+
class: {
|
|
714
|
+
"d-none": ((t = e.parent.props.value) == null ? void 0 : t.length) == 0
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
}
|
|
699
719
|
},
|
|
700
720
|
paginator: {
|
|
701
721
|
root: (e) => {
|
|
@@ -725,7 +745,7 @@ const Re = {
|
|
|
725
745
|
]
|
|
726
746
|
})
|
|
727
747
|
}
|
|
728
|
-
},
|
|
748
|
+
}, ut = {
|
|
729
749
|
badge: {
|
|
730
750
|
root: ({ props: e }) => ({
|
|
731
751
|
class: [
|
|
@@ -746,7 +766,7 @@ const Re = {
|
|
|
746
766
|
]
|
|
747
767
|
})
|
|
748
768
|
}
|
|
749
|
-
},
|
|
769
|
+
}, mt = {
|
|
750
770
|
// More PassThrough options in component file.
|
|
751
771
|
menubar: {
|
|
752
772
|
rootList: ({ instance: e }) => ({
|
|
@@ -827,7 +847,7 @@ const Re = {
|
|
|
827
847
|
]
|
|
828
848
|
})
|
|
829
849
|
}
|
|
830
|
-
},
|
|
850
|
+
}, vt = {
|
|
831
851
|
tooltip: {
|
|
832
852
|
root: ({ context: e }) => ({
|
|
833
853
|
class: [
|
|
@@ -849,7 +869,7 @@ const Re = {
|
|
|
849
869
|
class: ["tooltip-inner"]
|
|
850
870
|
}
|
|
851
871
|
}
|
|
852
|
-
},
|
|
872
|
+
}, ft = {
|
|
853
873
|
selectButton: {
|
|
854
874
|
root: () => ({
|
|
855
875
|
class: ["btn-group"]
|
|
@@ -866,7 +886,7 @@ const Re = {
|
|
|
866
886
|
]
|
|
867
887
|
})
|
|
868
888
|
}
|
|
869
|
-
},
|
|
889
|
+
}, gt = {
|
|
870
890
|
splitbutton: {
|
|
871
891
|
root: () => ({
|
|
872
892
|
class: ["btn-group"]
|
|
@@ -902,7 +922,7 @@ const Re = {
|
|
|
902
922
|
separator: "border-bottom w-100"
|
|
903
923
|
}
|
|
904
924
|
}
|
|
905
|
-
},
|
|
925
|
+
}, bt = {
|
|
906
926
|
progressspinner: {
|
|
907
927
|
spin: () => ({
|
|
908
928
|
class: [
|
|
@@ -910,7 +930,7 @@ const Re = {
|
|
|
910
930
|
]
|
|
911
931
|
})
|
|
912
932
|
}
|
|
913
|
-
},
|
|
933
|
+
}, xt = {
|
|
914
934
|
card: {
|
|
915
935
|
root: () => ({
|
|
916
936
|
class: ["card"]
|
|
@@ -934,11 +954,11 @@ const Re = {
|
|
|
934
954
|
class: ["card-header"]
|
|
935
955
|
})
|
|
936
956
|
}
|
|
937
|
-
},
|
|
957
|
+
}, yt = {
|
|
938
958
|
divider: {
|
|
939
959
|
root: "border-bottom w-100 m-1"
|
|
940
960
|
}
|
|
941
|
-
},
|
|
961
|
+
}, ht = {
|
|
942
962
|
image: {
|
|
943
963
|
root: "position-relative d-inline-block",
|
|
944
964
|
previewMask: "preview-button",
|
|
@@ -951,7 +971,7 @@ const Re = {
|
|
|
951
971
|
zoominbutton: "btn text-white",
|
|
952
972
|
closebutton: "btn text-white"
|
|
953
973
|
}
|
|
954
|
-
},
|
|
974
|
+
}, wt = {
|
|
955
975
|
toast: {
|
|
956
976
|
message: () => ({
|
|
957
977
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -986,7 +1006,7 @@ const Re = {
|
|
|
986
1006
|
};
|
|
987
1007
|
}
|
|
988
1008
|
}
|
|
989
|
-
},
|
|
1009
|
+
}, kt = {
|
|
990
1010
|
fieldset: {
|
|
991
1011
|
root: () => ({
|
|
992
1012
|
class: [
|
|
@@ -1012,42 +1032,42 @@ const Re = {
|
|
|
1012
1032
|
]
|
|
1013
1033
|
})
|
|
1014
1034
|
}
|
|
1015
|
-
},
|
|
1016
|
-
...Re,
|
|
1017
|
-
...ct,
|
|
1035
|
+
}, Ti = {
|
|
1018
1036
|
...He,
|
|
1019
|
-
...
|
|
1037
|
+
...ut,
|
|
1020
1038
|
...We,
|
|
1021
|
-
...et,
|
|
1022
|
-
...Ge,
|
|
1023
|
-
...ot,
|
|
1024
|
-
...tt,
|
|
1025
1039
|
...xt,
|
|
1026
1040
|
...Ye,
|
|
1027
|
-
...
|
|
1041
|
+
...tt,
|
|
1028
1042
|
...Je,
|
|
1029
|
-
...Ke,
|
|
1030
|
-
...Ze,
|
|
1031
|
-
...it,
|
|
1032
1043
|
...st,
|
|
1033
|
-
...ut,
|
|
1034
1044
|
...at,
|
|
1045
|
+
...yt,
|
|
1046
|
+
...Ge,
|
|
1047
|
+
...ht,
|
|
1048
|
+
...Ke,
|
|
1049
|
+
...Ze,
|
|
1050
|
+
...Xe,
|
|
1051
|
+
...lt,
|
|
1035
1052
|
...rt,
|
|
1036
|
-
...
|
|
1053
|
+
...mt,
|
|
1054
|
+
...it,
|
|
1037
1055
|
...dt,
|
|
1038
|
-
...
|
|
1039
|
-
...ft,
|
|
1040
|
-
...lt,
|
|
1056
|
+
...bt,
|
|
1041
1057
|
...pt,
|
|
1042
|
-
...
|
|
1058
|
+
...ft,
|
|
1059
|
+
...gt,
|
|
1043
1060
|
...nt,
|
|
1044
|
-
...
|
|
1061
|
+
...ct,
|
|
1045
1062
|
...Qe,
|
|
1063
|
+
...ot,
|
|
1046
1064
|
...wt,
|
|
1065
|
+
...et,
|
|
1066
|
+
...kt,
|
|
1047
1067
|
directives: {
|
|
1048
|
-
...
|
|
1068
|
+
...vt
|
|
1049
1069
|
}
|
|
1050
|
-
}, se = /* @__PURE__ */
|
|
1070
|
+
}, se = /* @__PURE__ */ B({
|
|
1051
1071
|
__name: "ForgeAlert",
|
|
1052
1072
|
props: {
|
|
1053
1073
|
severity: { default: "primary" },
|
|
@@ -1068,22 +1088,22 @@ const Re = {
|
|
|
1068
1088
|
const t = e;
|
|
1069
1089
|
return (a, i) => {
|
|
1070
1090
|
const l = he;
|
|
1071
|
-
return d(),
|
|
1091
|
+
return d(), f(l, K(Z({ ...a.$attrs, ...t })), {
|
|
1072
1092
|
icon: g(() => [
|
|
1073
1093
|
m("div", {
|
|
1074
|
-
class:
|
|
1094
|
+
class: F(t.icon ? "me-2 pe-1" : "")
|
|
1075
1095
|
}, [
|
|
1076
|
-
t.icon ? (d(),
|
|
1096
|
+
t.icon ? (d(), f(c(T), {
|
|
1077
1097
|
key: 0,
|
|
1078
1098
|
"data-cy": "message-icon",
|
|
1079
1099
|
icon: t.icon,
|
|
1080
|
-
class:
|
|
1100
|
+
class: F(`text-${t.severity}`),
|
|
1081
1101
|
height: 35
|
|
1082
1102
|
}, null, 8, ["icon", "class"])) : C("", !0)
|
|
1083
1103
|
], 2)
|
|
1084
1104
|
]),
|
|
1085
1105
|
closeicon: g(() => [
|
|
1086
|
-
y(c(
|
|
1106
|
+
y(c(T), { icon: "bi:x" })
|
|
1087
1107
|
]),
|
|
1088
1108
|
default: g(() => [
|
|
1089
1109
|
k(a.$slots, "default")
|
|
@@ -1092,7 +1112,7 @@ const Re = {
|
|
|
1092
1112
|
}, 16);
|
|
1093
1113
|
};
|
|
1094
1114
|
}
|
|
1095
|
-
}),
|
|
1115
|
+
}), ji = /* @__PURE__ */ B({
|
|
1096
1116
|
__name: "ForgeActionButton",
|
|
1097
1117
|
props: {
|
|
1098
1118
|
action: {},
|
|
@@ -1112,27 +1132,27 @@ const Re = {
|
|
|
1112
1132
|
};
|
|
1113
1133
|
return (l, n) => {
|
|
1114
1134
|
const s = U;
|
|
1115
|
-
return d(),
|
|
1135
|
+
return d(), b(N, null, [
|
|
1116
1136
|
y(s, S({ ...a, ...l.$attrs }, {
|
|
1117
1137
|
loading: t.value,
|
|
1118
1138
|
disabled: t.value || a.disabled,
|
|
1119
1139
|
onClick: i
|
|
1120
1140
|
}), null, 16, ["loading", "disabled"]),
|
|
1121
|
-
y(c(
|
|
1141
|
+
y(c(Be))
|
|
1122
1142
|
], 64);
|
|
1123
1143
|
};
|
|
1124
1144
|
}
|
|
1125
|
-
}),
|
|
1145
|
+
}), Ii = /* @__PURE__ */ B({
|
|
1126
1146
|
__name: "ForgeAutoComplete",
|
|
1127
1147
|
setup(e) {
|
|
1128
|
-
return (t, a) => (d(),
|
|
1148
|
+
return (t, a) => (d(), f(c(Se), S({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
|
|
1129
1149
|
default: g(() => [
|
|
1130
|
-
(d(!0),
|
|
1150
|
+
(d(!0), b(N, null, q(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
|
|
1131
1151
|
]),
|
|
1132
1152
|
_: 3
|
|
1133
1153
|
}, 16));
|
|
1134
1154
|
}
|
|
1135
|
-
}),
|
|
1155
|
+
}), $t = { class: "d-flex flex-column" }, Ft = ["for"], fe = /* @__PURE__ */ B({
|
|
1136
1156
|
__name: "ForgeCheckbox",
|
|
1137
1157
|
props: /* @__PURE__ */ E({
|
|
1138
1158
|
label: { default: "" },
|
|
@@ -1179,7 +1199,7 @@ const Re = {
|
|
|
1179
1199
|
}, r = z(() => l.value.length > 0);
|
|
1180
1200
|
return (p, u) => {
|
|
1181
1201
|
const x = Ce;
|
|
1182
|
-
return d(),
|
|
1202
|
+
return d(), b("div", $t, [
|
|
1183
1203
|
m("div", S({
|
|
1184
1204
|
class: "d-flex",
|
|
1185
1205
|
"data-cy": "checkbox-container",
|
|
@@ -1196,12 +1216,12 @@ const Re = {
|
|
|
1196
1216
|
m("label", {
|
|
1197
1217
|
for: t.name,
|
|
1198
1218
|
onClick: u[1] || (u[1] = (o) => s(!a.value)),
|
|
1199
|
-
class:
|
|
1219
|
+
class: F([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${r.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1200
1220
|
}, [
|
|
1201
1221
|
k(p.$slots, "default", {}, () => [
|
|
1202
|
-
|
|
1222
|
+
_(w(t.label), 1)
|
|
1203
1223
|
])
|
|
1204
|
-
], 10,
|
|
1224
|
+
], 10, Ft)
|
|
1205
1225
|
], 16),
|
|
1206
1226
|
H(m("small", {
|
|
1207
1227
|
"data-cy": "error",
|
|
@@ -1212,7 +1232,7 @@ const Re = {
|
|
|
1212
1232
|
]);
|
|
1213
1233
|
};
|
|
1214
1234
|
}
|
|
1215
|
-
}), Bt = { class: "forge-loader" }, ge = /* @__PURE__ */
|
|
1235
|
+
}), Bt = { class: "forge-loader" }, ge = /* @__PURE__ */ B({
|
|
1216
1236
|
__name: "ForgeLoader",
|
|
1217
1237
|
props: {
|
|
1218
1238
|
severity: { default: "primary" }
|
|
@@ -1221,15 +1241,15 @@ const Re = {
|
|
|
1221
1241
|
const t = e;
|
|
1222
1242
|
return (a, i) => {
|
|
1223
1243
|
const l = ze;
|
|
1224
|
-
return d(),
|
|
1244
|
+
return d(), b("div", Bt, [
|
|
1225
1245
|
y(l, {
|
|
1226
1246
|
"animation-duration": ".75",
|
|
1227
|
-
class:
|
|
1247
|
+
class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1228
1248
|
}, null, 8, ["class"])
|
|
1229
1249
|
]);
|
|
1230
1250
|
};
|
|
1231
1251
|
}
|
|
1232
|
-
}),
|
|
1252
|
+
}), St = ["href", "target"], _i = /* @__PURE__ */ B({
|
|
1233
1253
|
__name: "ForgeLink",
|
|
1234
1254
|
props: {
|
|
1235
1255
|
url: {},
|
|
@@ -1263,25 +1283,25 @@ const Re = {
|
|
|
1263
1283
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1264
1284
|
"me-0": e.animateIconOnHover
|
|
1265
1285
|
}));
|
|
1266
|
-
return (i, l) => (d(),
|
|
1286
|
+
return (i, l) => (d(), b("a", {
|
|
1267
1287
|
id: "link",
|
|
1268
|
-
class:
|
|
1288
|
+
class: F(["cursor-pointer d-flex text-break", t.value]),
|
|
1269
1289
|
href: i.url,
|
|
1270
1290
|
target: i.target
|
|
1271
1291
|
}, [
|
|
1272
1292
|
k(i.$slots, "default", {}, () => [
|
|
1273
|
-
i.iconName ? (d(),
|
|
1293
|
+
i.iconName ? (d(), f(c(T), {
|
|
1274
1294
|
key: 0,
|
|
1275
1295
|
id: "link-icon",
|
|
1276
1296
|
icon: i.iconName,
|
|
1277
|
-
class:
|
|
1297
|
+
class: F(["bi my-auto", a.value])
|
|
1278
1298
|
}, null, 8, ["icon", "class"])) : C("", !0),
|
|
1279
|
-
|
|
1299
|
+
_(" " + w(i.label), 1)
|
|
1280
1300
|
])
|
|
1281
|
-
], 10,
|
|
1301
|
+
], 10, St));
|
|
1282
1302
|
}
|
|
1283
1303
|
});
|
|
1284
|
-
function
|
|
1304
|
+
function Ct(e) {
|
|
1285
1305
|
const t = {
|
|
1286
1306
|
errorMessage: "",
|
|
1287
1307
|
errorDetails: []
|
|
@@ -1292,16 +1312,16 @@ function St(e) {
|
|
|
1292
1312
|
}
|
|
1293
1313
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1294
1314
|
}
|
|
1295
|
-
function
|
|
1315
|
+
function Pi(e, t) {
|
|
1296
1316
|
return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
|
|
1297
1317
|
}
|
|
1298
|
-
function
|
|
1318
|
+
function Vi(e, t, a) {
|
|
1299
1319
|
return { id: e, label: t ?? e.toString(), shortLabel: a };
|
|
1300
1320
|
}
|
|
1301
|
-
const
|
|
1321
|
+
const zt = { key: 0 }, Tt = {
|
|
1302
1322
|
class: "d-flex w-100",
|
|
1303
1323
|
"data-cy": "footer"
|
|
1304
|
-
},
|
|
1324
|
+
}, Mi = /* @__PURE__ */ B({
|
|
1305
1325
|
__name: "ForgeModal",
|
|
1306
1326
|
props: /* @__PURE__ */ E({
|
|
1307
1327
|
cancelText: { default: "Cancel" },
|
|
@@ -1369,7 +1389,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
1369
1389
|
(o || o == null) && p();
|
|
1370
1390
|
} catch (o) {
|
|
1371
1391
|
n.value.hasError = !0;
|
|
1372
|
-
const $ =
|
|
1392
|
+
const $ = Ct(o);
|
|
1373
1393
|
n.value.header = $.errorMessage, n.value.message = $.errorDetails;
|
|
1374
1394
|
}
|
|
1375
1395
|
l.value = !1;
|
|
@@ -1386,14 +1406,14 @@ const Ct = { key: 0 }, zt = {
|
|
|
1386
1406
|
]
|
|
1387
1407
|
}));
|
|
1388
1408
|
return (o, $) => {
|
|
1389
|
-
const
|
|
1390
|
-
return d(),
|
|
1409
|
+
const j = U, V = Te;
|
|
1410
|
+
return d(), f(V, S(i, {
|
|
1391
1411
|
onMaximize: r,
|
|
1392
1412
|
onUnmaximize: s,
|
|
1393
1413
|
pt: x.value
|
|
1394
1414
|
}), ie({
|
|
1395
1415
|
closeicon: g(() => [
|
|
1396
|
-
y(c(
|
|
1416
|
+
y(c(T), {
|
|
1397
1417
|
"data-cy": "close-icon",
|
|
1398
1418
|
icon: "bi:x-lg",
|
|
1399
1419
|
width: "18",
|
|
@@ -1402,7 +1422,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
1402
1422
|
})
|
|
1403
1423
|
]),
|
|
1404
1424
|
maximizeicon: g(() => [
|
|
1405
|
-
y(c(
|
|
1425
|
+
y(c(T), {
|
|
1406
1426
|
"data-cy": "maximisable-icon",
|
|
1407
1427
|
icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1408
1428
|
width: "16",
|
|
@@ -1414,22 +1434,22 @@ const Ct = { key: 0 }, zt = {
|
|
|
1414
1434
|
q(o.$slots, (M, O) => ({
|
|
1415
1435
|
name: O,
|
|
1416
1436
|
fn: g((v) => [
|
|
1417
|
-
n.value.hasError ? (d(),
|
|
1437
|
+
n.value.hasError ? (d(), f(se, {
|
|
1418
1438
|
key: 0,
|
|
1419
1439
|
severity: "danger",
|
|
1420
1440
|
"data-cy": "error"
|
|
1421
1441
|
}, {
|
|
1422
1442
|
default: g(() => [
|
|
1423
1443
|
m("p", {
|
|
1424
|
-
class:
|
|
1444
|
+
class: F(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1425
1445
|
}, w(n.value.header), 3),
|
|
1426
|
-
n.value.message.length > 0 ? (d(),
|
|
1427
|
-
(d(!0),
|
|
1446
|
+
n.value.message.length > 0 ? (d(), b("ul", zt, [
|
|
1447
|
+
(d(!0), b(N, null, q(n.value.message, (h) => (d(), b("li", { key: h }, w(h), 1))), 128))
|
|
1428
1448
|
])) : C("", !0)
|
|
1429
1449
|
]),
|
|
1430
1450
|
_: 1
|
|
1431
1451
|
})) : C("", !0),
|
|
1432
|
-
k(o.$slots, O,
|
|
1452
|
+
k(o.$slots, O, K(Z(v || {}))),
|
|
1433
1453
|
l.value ? k(o.$slots, "loader", { key: 1 }, () => [
|
|
1434
1454
|
y(ge, { "data-cy": "loader" })
|
|
1435
1455
|
]) : C("", !0)
|
|
@@ -1438,18 +1458,18 @@ const Ct = { key: 0 }, zt = {
|
|
|
1438
1458
|
o.showFooter ? {
|
|
1439
1459
|
name: "footer",
|
|
1440
1460
|
fn: g(() => [
|
|
1441
|
-
m("div",
|
|
1442
|
-
y(
|
|
1461
|
+
m("div", Tt, [
|
|
1462
|
+
y(j, {
|
|
1443
1463
|
label: o.cancelText,
|
|
1444
|
-
class:
|
|
1464
|
+
class: F(i.cancelClass),
|
|
1445
1465
|
outlined: "",
|
|
1446
1466
|
onClick: p,
|
|
1447
1467
|
id: "cancel-button",
|
|
1448
1468
|
type: i.cancelButtonType
|
|
1449
1469
|
}, null, 8, ["label", "class", "type"]),
|
|
1450
|
-
y(
|
|
1470
|
+
y(j, {
|
|
1451
1471
|
label: o.submitText,
|
|
1452
|
-
class:
|
|
1472
|
+
class: F([i.submitClass, "ms-auto"]),
|
|
1453
1473
|
onClick: u,
|
|
1454
1474
|
id: "submit-button",
|
|
1455
1475
|
type: i.submitButtonType
|
|
@@ -1461,7 +1481,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
1461
1481
|
]), 1040, ["pt"]);
|
|
1462
1482
|
};
|
|
1463
1483
|
}
|
|
1464
|
-
}),
|
|
1484
|
+
}), jt = ["id"], It = { key: 0 }, _t = { key: 0 }, Pt = { class: "d-flex justify-content-between align-items-center position-relative" }, Vt = { key: 1 }, Mt = { "data-cy": "readonly-value" }, Dt = /* @__PURE__ */ B({
|
|
1465
1485
|
__name: "ForgeInlineEditor",
|
|
1466
1486
|
props: /* @__PURE__ */ E({
|
|
1467
1487
|
name: { default: "" },
|
|
@@ -1477,8 +1497,8 @@ const Ct = { key: 0 }, zt = {
|
|
|
1477
1497
|
emits: ["update:modelValue"],
|
|
1478
1498
|
setup(e) {
|
|
1479
1499
|
const t = e, a = D(e, "modelValue"), i = I(!1), l = I(), n = () => {
|
|
1480
|
-
var
|
|
1481
|
-
i.value = !i.value, (
|
|
1500
|
+
var j;
|
|
1501
|
+
i.value = !i.value, (j = l.value) == null || j.focus();
|
|
1482
1502
|
}, s = async () => {
|
|
1483
1503
|
if ($.value)
|
|
1484
1504
|
return !1;
|
|
@@ -1501,20 +1521,20 @@ const Ct = { key: 0 }, zt = {
|
|
|
1501
1521
|
o.value = a.value;
|
|
1502
1522
|
});
|
|
1503
1523
|
const $ = z(() => x.value.length > 0);
|
|
1504
|
-
return (
|
|
1524
|
+
return (j, V) => {
|
|
1505
1525
|
const M = ne, O = U;
|
|
1506
|
-
return d(),
|
|
1526
|
+
return d(), b("div", {
|
|
1507
1527
|
id: t.name
|
|
1508
1528
|
}, [
|
|
1509
|
-
|
|
1510
|
-
k(
|
|
1511
|
-
m("span",
|
|
1529
|
+
j.readonly ? (d(), b("div", Vt, [
|
|
1530
|
+
k(j.$slots, "default", {}, () => [
|
|
1531
|
+
m("span", Mt, w(c(o)), 1)
|
|
1512
1532
|
])
|
|
1513
|
-
])) : (d(),
|
|
1514
|
-
i.value ? (d(),
|
|
1515
|
-
H((d(),
|
|
1516
|
-
k(
|
|
1517
|
-
class:
|
|
1533
|
+
])) : (d(), b("div", It, [
|
|
1534
|
+
i.value ? (d(), b("div", _t, [
|
|
1535
|
+
H((d(), b("div", Pt, [
|
|
1536
|
+
k(j.$slots, "editor", {
|
|
1537
|
+
class: F({ "is-invalid": $.value }),
|
|
1518
1538
|
editFinished: s,
|
|
1519
1539
|
cancel: r,
|
|
1520
1540
|
val: c(o)
|
|
@@ -1526,32 +1546,32 @@ const Ct = { key: 0 }, zt = {
|
|
|
1526
1546
|
"data-cy": "input",
|
|
1527
1547
|
ref_key: "input",
|
|
1528
1548
|
ref: l,
|
|
1529
|
-
class:
|
|
1549
|
+
class: F({ "is-invalid": $.value }),
|
|
1530
1550
|
onKeydown: [
|
|
1531
|
-
|
|
1532
|
-
|
|
1551
|
+
X(s, ["enter"]),
|
|
1552
|
+
X(r, ["esc"])
|
|
1533
1553
|
]
|
|
1534
1554
|
}, null, 8, ["modelValue", "class"])
|
|
1535
1555
|
]),
|
|
1536
|
-
y(c(
|
|
1556
|
+
y(c(T), {
|
|
1537
1557
|
icon: "bi:x-circle",
|
|
1538
1558
|
class: "mx-2 cursor-pointer",
|
|
1539
1559
|
onClick: p,
|
|
1540
|
-
onKeydown:
|
|
1560
|
+
onKeydown: X(p, ["enter"]),
|
|
1541
1561
|
"data-cy": "clear-icon"
|
|
1542
1562
|
})
|
|
1543
1563
|
])), [
|
|
1544
1564
|
[c(je), s]
|
|
1545
1565
|
])
|
|
1546
|
-
])) : (d(),
|
|
1566
|
+
])) : (d(), b("div", {
|
|
1547
1567
|
key: 1,
|
|
1548
1568
|
class: "d-flex text-muted",
|
|
1549
1569
|
onClick: n,
|
|
1550
1570
|
onFocus: n
|
|
1551
1571
|
}, [
|
|
1552
|
-
k(
|
|
1572
|
+
k(j.$slots, "default", {}, () => [
|
|
1553
1573
|
m("div", {
|
|
1554
|
-
class:
|
|
1574
|
+
class: F(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
|
|
1555
1575
|
"data-cy": "value"
|
|
1556
1576
|
}, w(c(o) ? c(o) : "Click to edit"), 3)
|
|
1557
1577
|
]),
|
|
@@ -1560,11 +1580,11 @@ const Ct = { key: 0 }, zt = {
|
|
|
1560
1580
|
class: "p-0 m-0"
|
|
1561
1581
|
}, {
|
|
1562
1582
|
default: g(() => [
|
|
1563
|
-
y(c(
|
|
1583
|
+
y(c(T), {
|
|
1564
1584
|
icon: "bi:pencil",
|
|
1565
|
-
class:
|
|
1585
|
+
class: F($.value ? "text-invalid" : "text-muted"),
|
|
1566
1586
|
"data-cy": "edit-icon",
|
|
1567
|
-
onKeydown:
|
|
1587
|
+
onKeydown: X(n, ["enter"])
|
|
1568
1588
|
}, null, 8, ["class"])
|
|
1569
1589
|
]),
|
|
1570
1590
|
_: 1
|
|
@@ -1577,10 +1597,10 @@ const Ct = { key: 0 }, zt = {
|
|
|
1577
1597
|
}, w(c(u)), 513), [
|
|
1578
1598
|
[Y, $.value]
|
|
1579
1599
|
])
|
|
1580
|
-
], 8,
|
|
1600
|
+
], 8, jt);
|
|
1581
1601
|
};
|
|
1582
1602
|
}
|
|
1583
|
-
}),
|
|
1603
|
+
}), Ot = ["href"], Di = /* @__PURE__ */ B({
|
|
1584
1604
|
__name: "ForgeNavbar",
|
|
1585
1605
|
props: {
|
|
1586
1606
|
severity: { default: "light" },
|
|
@@ -1624,7 +1644,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
1624
1644
|
]
|
|
1625
1645
|
})
|
|
1626
1646
|
}));
|
|
1627
|
-
return (i, l) => (d(),
|
|
1647
|
+
return (i, l) => (d(), f(c(Ie), S({ ...t, ...i.$attrs }, {
|
|
1628
1648
|
pt: a.value,
|
|
1629
1649
|
"data-cy": "navbar"
|
|
1630
1650
|
}), ie({
|
|
@@ -1635,15 +1655,15 @@ const Ct = { key: 0 }, zt = {
|
|
|
1635
1655
|
"data-cy": "logo"
|
|
1636
1656
|
}, [
|
|
1637
1657
|
k(i.$slots, "logo", {}, () => [
|
|
1638
|
-
l[0] || (l[0] =
|
|
1658
|
+
l[0] || (l[0] = _(" Logo "))
|
|
1639
1659
|
])
|
|
1640
|
-
], 8,
|
|
1660
|
+
], 8, Ot)
|
|
1641
1661
|
]),
|
|
1642
1662
|
buttonicon: g(() => [
|
|
1643
1663
|
k(i.$slots, "buttonIcon", {}, () => [
|
|
1644
|
-
y(c(
|
|
1664
|
+
y(c(T), {
|
|
1645
1665
|
icon: "bi:list",
|
|
1646
|
-
class:
|
|
1666
|
+
class: F(t.severity === "light" ? "text-black" : "text-white"),
|
|
1647
1667
|
height: "24",
|
|
1648
1668
|
"data-cy": "burger-icon"
|
|
1649
1669
|
}, null, 8, ["class"])
|
|
@@ -1654,19 +1674,19 @@ const Ct = { key: 0 }, zt = {
|
|
|
1654
1674
|
q(i.$slots, (n, s) => ({
|
|
1655
1675
|
name: s,
|
|
1656
1676
|
fn: g((r) => [
|
|
1657
|
-
k(i.$slots, s,
|
|
1677
|
+
k(i.$slots, s, K(Z(r)))
|
|
1658
1678
|
])
|
|
1659
1679
|
}))
|
|
1660
1680
|
]), 1040, ["pt"]));
|
|
1661
1681
|
}
|
|
1662
|
-
}),
|
|
1682
|
+
}), Nt = { class: "border alternating-item-list" }, Ut = {
|
|
1663
1683
|
key: 0,
|
|
1664
1684
|
class: "p-2 border-top border-bottom",
|
|
1665
1685
|
"data-cy": "title"
|
|
1666
|
-
},
|
|
1686
|
+
}, At = { class: "d-inline-block" }, qt = {
|
|
1667
1687
|
key: 1,
|
|
1668
1688
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1669
|
-
},
|
|
1689
|
+
}, Et = /* @__PURE__ */ B({
|
|
1670
1690
|
__name: "ForgeMultiSelectPreview",
|
|
1671
1691
|
props: /* @__PURE__ */ E({
|
|
1672
1692
|
title: { default: "Selected Items" },
|
|
@@ -1687,12 +1707,12 @@ const Ct = { key: 0 }, zt = {
|
|
|
1687
1707
|
};
|
|
1688
1708
|
return (l, n) => {
|
|
1689
1709
|
const s = oe, r = U;
|
|
1690
|
-
return d(),
|
|
1691
|
-
class:
|
|
1710
|
+
return d(), b("div", {
|
|
1711
|
+
class: F(l.orientation === "column" ? "row" : ""),
|
|
1692
1712
|
"data-cy": "multiselect-preview"
|
|
1693
1713
|
}, [
|
|
1694
1714
|
m("div", {
|
|
1695
|
-
class:
|
|
1715
|
+
class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1696
1716
|
"data-cy": "multiselect-container"
|
|
1697
1717
|
}, [
|
|
1698
1718
|
y(s, S({
|
|
@@ -1705,37 +1725,37 @@ const Ct = { key: 0 }, zt = {
|
|
|
1705
1725
|
"data-cy": "multiselect"
|
|
1706
1726
|
}), {
|
|
1707
1727
|
default: g(() => [
|
|
1708
|
-
(d(!0),
|
|
1728
|
+
(d(!0), b(N, null, q(l.$slots, (p, u) => k(l.$slots, u, { slot: u })), 256))
|
|
1709
1729
|
]),
|
|
1710
1730
|
_: 3
|
|
1711
1731
|
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1712
1732
|
k(l.$slots, "after-multi-select")
|
|
1713
1733
|
], 2),
|
|
1714
1734
|
m("div", {
|
|
1715
|
-
class:
|
|
1735
|
+
class: F(l.orientation === "row" ? "col-12" : "col"),
|
|
1716
1736
|
"data-cy": "options-preview"
|
|
1717
1737
|
}, [
|
|
1718
1738
|
m("div", {
|
|
1719
1739
|
style: ke({ height: l.height }),
|
|
1720
1740
|
class: "overflow-auto"
|
|
1721
1741
|
}, [
|
|
1722
|
-
m("div",
|
|
1723
|
-
l.title ? (d(),
|
|
1724
|
-
(d(!0),
|
|
1742
|
+
m("div", Nt, [
|
|
1743
|
+
l.title ? (d(), b("div", Ut, w(l.title), 1)) : C("", !0),
|
|
1744
|
+
(d(!0), b(N, null, q(a.value, (p) => (d(), b("div", {
|
|
1725
1745
|
key: p.id,
|
|
1726
1746
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1727
1747
|
}, [
|
|
1728
1748
|
k(l.$slots, "list-item", { item: p }, () => [
|
|
1729
|
-
m("span",
|
|
1749
|
+
m("span", At, w(p.shortLabel ? p.shortLabel : p.label), 1)
|
|
1730
1750
|
]),
|
|
1731
|
-
l.canRemoveItemFromPreview ? (d(),
|
|
1751
|
+
l.canRemoveItemFromPreview ? (d(), f(r, {
|
|
1732
1752
|
key: 0,
|
|
1733
1753
|
link: "",
|
|
1734
1754
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1735
1755
|
onClick: (u) => i(p.id)
|
|
1736
1756
|
}, {
|
|
1737
1757
|
default: g(() => [
|
|
1738
|
-
y(c(
|
|
1758
|
+
y(c(T), {
|
|
1739
1759
|
icon: "bi:x",
|
|
1740
1760
|
class: "close-icon",
|
|
1741
1761
|
"data-cy": `close-icon-${p.id}`
|
|
@@ -1744,34 +1764,34 @@ const Ct = { key: 0 }, zt = {
|
|
|
1744
1764
|
_: 2
|
|
1745
1765
|
}, 1032, ["onClick"])) : C("", !0)
|
|
1746
1766
|
]))), 128)),
|
|
1747
|
-
a.value == null || a.value.length == 0 ? (d(),
|
|
1767
|
+
a.value == null || a.value.length == 0 ? (d(), b("div", qt, w(t.optionsPreviewEmptyText), 1)) : C("", !0)
|
|
1748
1768
|
])
|
|
1749
1769
|
], 4)
|
|
1750
1770
|
], 2)
|
|
1751
1771
|
], 2);
|
|
1752
1772
|
};
|
|
1753
1773
|
}
|
|
1754
|
-
}),
|
|
1774
|
+
}), Lt = { class: "d-flex justify-content-between pb-2" }, Rt = {
|
|
1755
1775
|
"data-cy": "title",
|
|
1756
1776
|
class: "my-auto"
|
|
1757
|
-
},
|
|
1777
|
+
}, Ht = {
|
|
1758
1778
|
"data-cy": "slot",
|
|
1759
1779
|
class: "d-flex align-items-center"
|
|
1760
|
-
},
|
|
1780
|
+
}, Oi = /* @__PURE__ */ B({
|
|
1761
1781
|
__name: "ForgePageHeader",
|
|
1762
1782
|
props: {
|
|
1763
1783
|
title: {}
|
|
1764
1784
|
},
|
|
1765
1785
|
setup(e) {
|
|
1766
1786
|
const t = e;
|
|
1767
|
-
return (a, i) => (d(),
|
|
1768
|
-
m("h3",
|
|
1769
|
-
m("div",
|
|
1787
|
+
return (a, i) => (d(), b("div", Lt, [
|
|
1788
|
+
m("h3", Rt, w(t.title), 1),
|
|
1789
|
+
m("div", Ht, [
|
|
1770
1790
|
k(a.$slots, "default")
|
|
1771
1791
|
])
|
|
1772
1792
|
]));
|
|
1773
1793
|
}
|
|
1774
|
-
}),
|
|
1794
|
+
}), Wt = { class: "d-flex" }, Yt = { "data-cy": "before-slot" }, Gt = { class: "position-relative w-100" }, Jt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ B({
|
|
1775
1795
|
__name: "ForgeDatepicker",
|
|
1776
1796
|
props: /* @__PURE__ */ E({
|
|
1777
1797
|
severity: { default: "primary" },
|
|
@@ -1943,14 +1963,14 @@ const Ct = { key: 0 }, zt = {
|
|
|
1943
1963
|
})
|
|
1944
1964
|
}));
|
|
1945
1965
|
return (o, $) => {
|
|
1946
|
-
const
|
|
1947
|
-
return d(),
|
|
1948
|
-
m("div",
|
|
1949
|
-
m("span",
|
|
1966
|
+
const j = _e;
|
|
1967
|
+
return d(), b(N, null, [
|
|
1968
|
+
m("div", Wt, [
|
|
1969
|
+
m("span", Yt, [
|
|
1950
1970
|
k(o.$slots, "before")
|
|
1951
1971
|
]),
|
|
1952
|
-
m("div",
|
|
1953
|
-
y(
|
|
1972
|
+
m("div", Gt, [
|
|
1973
|
+
y(j, S({ ...t, ...o.$attrs }, {
|
|
1954
1974
|
pt: x.value,
|
|
1955
1975
|
modelValue: a.value,
|
|
1956
1976
|
"onUpdate:modelValue": [
|
|
@@ -1960,23 +1980,23 @@ const Ct = { key: 0 }, zt = {
|
|
|
1960
1980
|
onBlur: $[1] || ($[1] = () => c(s)),
|
|
1961
1981
|
"input-class": { "datepicker-invalid": u.value }
|
|
1962
1982
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
|
|
1963
|
-
H(y(c(
|
|
1983
|
+
H(y(c(T), {
|
|
1964
1984
|
"data-cy": "icon",
|
|
1965
1985
|
icon: "bi:calendar4",
|
|
1966
|
-
class:
|
|
1986
|
+
class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${u.value ? "text-danger-dark" : "text-muted"}`])
|
|
1967
1987
|
}, null, 8, ["class"]), [
|
|
1968
1988
|
[Y, t.showIcon]
|
|
1969
1989
|
]),
|
|
1970
|
-
H(y(c(
|
|
1990
|
+
H(y(c(T), {
|
|
1971
1991
|
"data-cy": "icon",
|
|
1972
1992
|
icon: "bi:x",
|
|
1973
1993
|
onClick: p,
|
|
1974
|
-
class:
|
|
1994
|
+
class: F(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
1975
1995
|
}, null, 8, ["class"]), [
|
|
1976
1996
|
[Y, t.modelValue]
|
|
1977
1997
|
])
|
|
1978
1998
|
]),
|
|
1979
|
-
m("span",
|
|
1999
|
+
m("span", Jt, [
|
|
1980
2000
|
k(o.$slots, "after")
|
|
1981
2001
|
])
|
|
1982
2002
|
]),
|
|
@@ -1989,7 +2009,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
1989
2009
|
], 64);
|
|
1990
2010
|
};
|
|
1991
2011
|
}
|
|
1992
|
-
}),
|
|
2012
|
+
}), Ni = /* @__PURE__ */ B({
|
|
1993
2013
|
__name: "ForgeRemainingCharacters",
|
|
1994
2014
|
props: {
|
|
1995
2015
|
maxCount: { default: 300 },
|
|
@@ -1997,11 +2017,11 @@ const Ct = { key: 0 }, zt = {
|
|
|
1997
2017
|
},
|
|
1998
2018
|
setup(e) {
|
|
1999
2019
|
const t = e, a = z(() => t.maxCount - t.currentCount);
|
|
2000
|
-
return (i, l) => (d(),
|
|
2001
|
-
class:
|
|
2020
|
+
return (i, l) => (d(), b("div", {
|
|
2021
|
+
class: F(a.value < 0 ? "text-danger" : "")
|
|
2002
2022
|
}, "Remaining characters: " + w(a.value), 3));
|
|
2003
2023
|
}
|
|
2004
|
-
}),
|
|
2024
|
+
}), Kt = { class: "d-flex justify-content-between" }, Ui = /* @__PURE__ */ B({
|
|
2005
2025
|
__name: "ForgeForm",
|
|
2006
2026
|
props: {
|
|
2007
2027
|
onSubmit: {},
|
|
@@ -2028,21 +2048,21 @@ const Ct = { key: 0 }, zt = {
|
|
|
2028
2048
|
}
|
|
2029
2049
|
return (n, s) => {
|
|
2030
2050
|
const r = U;
|
|
2031
|
-
return d(),
|
|
2051
|
+
return d(), b("form", S(n.$attrs, {
|
|
2032
2052
|
novalidate: "",
|
|
2033
2053
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2034
2054
|
onSubmit: G(l, ["prevent"])
|
|
2035
2055
|
}), [
|
|
2036
|
-
n.hideTitle ? C("", !0) : (d(),
|
|
2056
|
+
n.hideTitle ? C("", !0) : (d(), b(N, { key: 0 }, [
|
|
2037
2057
|
k(n.$slots, "title", {}, () => [
|
|
2038
2058
|
m("h3", {
|
|
2039
|
-
class:
|
|
2059
|
+
class: F(n.titleClass),
|
|
2040
2060
|
"data-cy": "form-title"
|
|
2041
2061
|
}, w(n.title), 3)
|
|
2042
2062
|
]),
|
|
2043
2063
|
s[1] || (s[1] = m("hr", null, null, -1))
|
|
2044
2064
|
], 64)),
|
|
2045
|
-
i.value.hasError ? (d(),
|
|
2065
|
+
i.value.hasError ? (d(), f(se, {
|
|
2046
2066
|
key: 1,
|
|
2047
2067
|
severity: "danger",
|
|
2048
2068
|
"data-cy": "error"
|
|
@@ -2051,15 +2071,15 @@ const Ct = { key: 0 }, zt = {
|
|
|
2051
2071
|
k(n.$slots, "error", {
|
|
2052
2072
|
error: i.value.message
|
|
2053
2073
|
}, () => [
|
|
2054
|
-
|
|
2074
|
+
_(w(i.value.message), 1)
|
|
2055
2075
|
])
|
|
2056
2076
|
]),
|
|
2057
2077
|
_: 3
|
|
2058
2078
|
})) : C("", !0),
|
|
2059
2079
|
k(n.$slots, "default"),
|
|
2060
|
-
m("div",
|
|
2080
|
+
m("div", Kt, [
|
|
2061
2081
|
k(n.$slots, "cancel", {}, () => [
|
|
2062
|
-
n.hideCancel ? C("", !0) : (d(),
|
|
2082
|
+
n.hideCancel ? C("", !0) : (d(), f(r, {
|
|
2063
2083
|
key: 0,
|
|
2064
2084
|
"data-cy": "cancel-btn",
|
|
2065
2085
|
type: "reset",
|
|
@@ -2068,7 +2088,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2068
2088
|
onClick: s[0] || (s[0] = (p) => n.$emit("cancel"))
|
|
2069
2089
|
}, {
|
|
2070
2090
|
default: g(() => [
|
|
2071
|
-
|
|
2091
|
+
_(w(n.cancelText), 1)
|
|
2072
2092
|
]),
|
|
2073
2093
|
_: 1
|
|
2074
2094
|
}))
|
|
@@ -2081,23 +2101,23 @@ const Ct = { key: 0 }, zt = {
|
|
|
2081
2101
|
class: "ms-auto"
|
|
2082
2102
|
}, {
|
|
2083
2103
|
default: g(() => [
|
|
2084
|
-
|
|
2104
|
+
_(w(n.submitText), 1)
|
|
2085
2105
|
]),
|
|
2086
2106
|
_: 1
|
|
2087
2107
|
})
|
|
2088
2108
|
])
|
|
2089
2109
|
]),
|
|
2090
|
-
a.value ? (d(),
|
|
2110
|
+
a.value ? (d(), f(ge, {
|
|
2091
2111
|
key: 2,
|
|
2092
2112
|
"data-cy": "loading-spinner"
|
|
2093
2113
|
})) : C("", !0)
|
|
2094
2114
|
], 16);
|
|
2095
2115
|
};
|
|
2096
2116
|
}
|
|
2097
|
-
}),
|
|
2117
|
+
}), Zt = {
|
|
2098
2118
|
key: 1,
|
|
2099
2119
|
class: "d-flex flex-column w-100"
|
|
2100
|
-
},
|
|
2120
|
+
}, Xt = ["for"], Ai = /* @__PURE__ */ B({
|
|
2101
2121
|
__name: "ForgeFormField",
|
|
2102
2122
|
props: /* @__PURE__ */ E({
|
|
2103
2123
|
name: {},
|
|
@@ -2121,8 +2141,8 @@ const Ct = { key: 0 }, zt = {
|
|
|
2121
2141
|
return ce(() => n.value, (x) => {
|
|
2122
2142
|
t.value = x;
|
|
2123
2143
|
}, { immediate: !0 }), (x, o) => {
|
|
2124
|
-
const $ = Ve,
|
|
2125
|
-
return a.type === "checkbox" ? (d(),
|
|
2144
|
+
const $ = Ve, j = Pe, V = ne, M = te, O = oe, v = be;
|
|
2145
|
+
return a.type === "checkbox" ? (d(), f(fe, S({
|
|
2126
2146
|
key: 0,
|
|
2127
2147
|
id: a.name,
|
|
2128
2148
|
label: a.fieldLabel
|
|
@@ -2130,16 +2150,16 @@ const Ct = { key: 0 }, zt = {
|
|
|
2130
2150
|
name: a.name,
|
|
2131
2151
|
modelValue: t.value,
|
|
2132
2152
|
"onUpdate:modelValue": o[0] || (o[0] = (h) => t.value = h)
|
|
2133
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(),
|
|
2153
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div", Zt, [
|
|
2134
2154
|
m("div", {
|
|
2135
2155
|
"data-cy": "input-wrapper",
|
|
2136
|
-
class:
|
|
2156
|
+
class: F(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2137
2157
|
}, [
|
|
2138
2158
|
m("label", {
|
|
2139
2159
|
for: a.name,
|
|
2140
|
-
class:
|
|
2141
|
-
}, w(a.fieldLabel), 11,
|
|
2142
|
-
a.type === "number" ? (d(),
|
|
2160
|
+
class: F(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
|
|
2161
|
+
}, w(a.fieldLabel), 11, Xt),
|
|
2162
|
+
a.type === "number" ? (d(), f(c(ue), S({
|
|
2143
2163
|
key: 0,
|
|
2144
2164
|
id: a.name
|
|
2145
2165
|
}, x.$attrs, {
|
|
@@ -2149,7 +2169,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2149
2169
|
modelValue: t.value,
|
|
2150
2170
|
"onUpdate:modelValue": o[1] || (o[1] = (h) => t.value = h),
|
|
2151
2171
|
onInput: i
|
|
2152
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(),
|
|
2172
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), f($, S({
|
|
2153
2173
|
key: 1,
|
|
2154
2174
|
id: a.name
|
|
2155
2175
|
}, x.$attrs, {
|
|
@@ -2159,7 +2179,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2159
2179
|
"onUpdate:modelValue": o[2] || (o[2] = (h) => t.value = h),
|
|
2160
2180
|
onInput: i,
|
|
2161
2181
|
onBlur: c(p)
|
|
2162
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(),
|
|
2182
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), f(j, S({
|
|
2163
2183
|
key: 2,
|
|
2164
2184
|
id: a.name
|
|
2165
2185
|
}, x.$attrs, {
|
|
@@ -2170,7 +2190,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2170
2190
|
"onUpdate:modelValue": o[3] || (o[3] = (h) => t.value = h),
|
|
2171
2191
|
onComplete: i,
|
|
2172
2192
|
onBlur: c(p)
|
|
2173
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(),
|
|
2193
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), f(V, S({
|
|
2174
2194
|
key: 3,
|
|
2175
2195
|
id: a.name
|
|
2176
2196
|
}, x.$attrs, {
|
|
@@ -2180,19 +2200,19 @@ const Ct = { key: 0 }, zt = {
|
|
|
2180
2200
|
"onUpdate:modelValue": o[4] || (o[4] = (h) => t.value = h),
|
|
2181
2201
|
onInput: i,
|
|
2182
2202
|
onBlur: c(p)
|
|
2183
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(),
|
|
2203
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), f(M, S({ key: 4 }, { ...a, ...x.$attrs }, {
|
|
2184
2204
|
modelValue: t.value,
|
|
2185
2205
|
"onUpdate:modelValue": o[5] || (o[5] = (h) => t.value = h),
|
|
2186
2206
|
class: { "is-invalid": u.value }
|
|
2187
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(),
|
|
2207
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), f(O, S({ key: 5 }, { ...a, ...x.$attrs }, {
|
|
2188
2208
|
modelValue: t.value,
|
|
2189
2209
|
"onUpdate:modelValue": o[6] || (o[6] = (h) => t.value = h),
|
|
2190
2210
|
class: { "is-invalid": u.value }
|
|
2191
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(),
|
|
2211
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), f(Et, S({ key: 6 }, { ...a, ...x.$attrs }, {
|
|
2192
2212
|
modelValue: t.value,
|
|
2193
2213
|
"onUpdate:modelValue": o[7] || (o[7] = (h) => t.value = h),
|
|
2194
2214
|
class: { "is-invalid": u.value }
|
|
2195
|
-
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(),
|
|
2215
|
+
}), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), f(v, S({ key: 7 }, { ...a, ...x.$attrs }, {
|
|
2196
2216
|
modelValue: t.value,
|
|
2197
2217
|
"onUpdate:modelValue": o[8] || (o[8] = (h) => t.value = h),
|
|
2198
2218
|
class: { "is-invalid": u.value }
|
|
@@ -2207,7 +2227,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2207
2227
|
]));
|
|
2208
2228
|
};
|
|
2209
2229
|
}
|
|
2210
|
-
}),
|
|
2230
|
+
}), qi = /* @__PURE__ */ B({
|
|
2211
2231
|
__name: "ForgeChip",
|
|
2212
2232
|
props: {
|
|
2213
2233
|
chipSeverity: { default: "primary" },
|
|
@@ -2242,15 +2262,15 @@ const Ct = { key: 0 }, zt = {
|
|
|
2242
2262
|
}));
|
|
2243
2263
|
return (i, l) => {
|
|
2244
2264
|
const n = Me;
|
|
2245
|
-
return d(),
|
|
2265
|
+
return d(), f(n, S({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
|
|
2246
2266
|
default: g(() => [
|
|
2247
|
-
(d(!0),
|
|
2267
|
+
(d(!0), b(N, null, q(i.$slots, (s, r) => k(i.$slots, r, { slot: r })), 256))
|
|
2248
2268
|
]),
|
|
2249
2269
|
_: 3
|
|
2250
2270
|
}, 16, ["pt"]);
|
|
2251
2271
|
};
|
|
2252
2272
|
}
|
|
2253
|
-
}),
|
|
2273
|
+
}), Qt = /* @__PURE__ */ B({
|
|
2254
2274
|
__name: "ForgeProgressBar",
|
|
2255
2275
|
props: {
|
|
2256
2276
|
severity: { default: "primary" },
|
|
@@ -2295,7 +2315,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2295
2315
|
}));
|
|
2296
2316
|
return (s, r) => {
|
|
2297
2317
|
const p = De;
|
|
2298
|
-
return d(),
|
|
2318
|
+
return d(), f(p, S({ ...s.$attrs, ...t }, { pt: n.value }), {
|
|
2299
2319
|
default: g(() => [
|
|
2300
2320
|
k(s.$slots, "default")
|
|
2301
2321
|
]),
|
|
@@ -2304,7 +2324,7 @@ const Ct = { key: 0 }, zt = {
|
|
|
2304
2324
|
};
|
|
2305
2325
|
}
|
|
2306
2326
|
});
|
|
2307
|
-
var
|
|
2327
|
+
var ea = /* @__PURE__ */ B({
|
|
2308
2328
|
name: "VueDrawingCanvas",
|
|
2309
2329
|
props: {
|
|
2310
2330
|
strokeType: {
|
|
@@ -2620,7 +2640,7 @@ var Qt = /* @__PURE__ */ F({
|
|
|
2620
2640
|
var p = t.split(s).filter((M) => M.length > 0);
|
|
2621
2641
|
for (let M = 0; M < p.length; M++) {
|
|
2622
2642
|
for (var u = p[M].split(r).filter((O) => O.length > 0), x = "", o = 0; o < u.length; o++) {
|
|
2623
|
-
var $ = x + u[o] + " ",
|
|
2643
|
+
var $ = x + u[o] + " ", j = e.measureText($), V = j.width;
|
|
2624
2644
|
V > l && o > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), x = u[o] + " ", i += n) : x = $;
|
|
2625
2645
|
}
|
|
2626
2646
|
this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), i += u.length > 0 ? n : 0;
|
|
@@ -2694,7 +2714,7 @@ var Qt = /* @__PURE__ */ F({
|
|
|
2694
2714
|
});
|
|
2695
2715
|
}
|
|
2696
2716
|
});
|
|
2697
|
-
const
|
|
2717
|
+
const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1 gap-1" }, Ei = /* @__PURE__ */ B({
|
|
2698
2718
|
__name: "ForgeScratchpad",
|
|
2699
2719
|
props: {
|
|
2700
2720
|
showClear: { type: Boolean, default: !0 },
|
|
@@ -2702,11 +2722,12 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2702
2722
|
showRedo: { type: Boolean, default: !0 },
|
|
2703
2723
|
showSave: { type: Boolean, default: !0 },
|
|
2704
2724
|
height: { default: 300 },
|
|
2705
|
-
width: { default: 600 }
|
|
2725
|
+
width: { default: 600 },
|
|
2726
|
+
lineJoin: { default: "round" }
|
|
2706
2727
|
},
|
|
2707
2728
|
emits: ["save"],
|
|
2708
2729
|
setup(e, { emit: t }) {
|
|
2709
|
-
const a = e, i = t, l =
|
|
2730
|
+
const a = e, i = t, l = Fe("drawingCanvas"), n = I(), s = () => {
|
|
2710
2731
|
l == null || l.value.reset();
|
|
2711
2732
|
}, r = () => {
|
|
2712
2733
|
l == null || l.value.redo();
|
|
@@ -2717,61 +2738,62 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2717
2738
|
};
|
|
2718
2739
|
return (x, o) => {
|
|
2719
2740
|
const $ = U;
|
|
2720
|
-
return d(),
|
|
2721
|
-
y(c(
|
|
2741
|
+
return d(), b("div", ta, [
|
|
2742
|
+
y(c(ea), S({
|
|
2722
2743
|
ref_key: "drawingCanvas",
|
|
2723
2744
|
ref: l,
|
|
2724
2745
|
image: n.value,
|
|
2725
|
-
"onUpdate:image": o[0] || (o[0] = (
|
|
2746
|
+
"onUpdate:image": o[0] || (o[0] = (j) => n.value = j),
|
|
2726
2747
|
"data-cy": "drawing-canvas",
|
|
2727
2748
|
class: "border canvas"
|
|
2728
2749
|
}, { ...x.$attrs }, {
|
|
2729
2750
|
height: x.height,
|
|
2730
2751
|
width: x.width,
|
|
2731
|
-
style: `height: ${x.height}px; width: ${x.width}px
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2752
|
+
style: `height: ${x.height}px; width: ${x.width}px`,
|
|
2753
|
+
"line-join": x.lineJoin
|
|
2754
|
+
}), null, 16, ["image", "height", "width", "style", "line-join"]),
|
|
2755
|
+
m("div", aa, [
|
|
2756
|
+
a.showUndo ? (d(), f($, {
|
|
2735
2757
|
key: 0,
|
|
2736
2758
|
onClick: p,
|
|
2737
2759
|
outlined: "",
|
|
2738
2760
|
"data-cy": "undo-button"
|
|
2739
2761
|
}, {
|
|
2740
2762
|
default: g(() => o[1] || (o[1] = [
|
|
2741
|
-
|
|
2763
|
+
_("Undo")
|
|
2742
2764
|
])),
|
|
2743
2765
|
_: 1
|
|
2744
2766
|
})) : C("", !0),
|
|
2745
|
-
a.showRedo ? (d(),
|
|
2767
|
+
a.showRedo ? (d(), f($, {
|
|
2746
2768
|
key: 1,
|
|
2747
2769
|
onClick: r,
|
|
2748
2770
|
outlined: "",
|
|
2749
2771
|
"data-cy": "redo-button"
|
|
2750
2772
|
}, {
|
|
2751
2773
|
default: g(() => o[2] || (o[2] = [
|
|
2752
|
-
|
|
2774
|
+
_("Redo")
|
|
2753
2775
|
])),
|
|
2754
2776
|
_: 1
|
|
2755
2777
|
})) : C("", !0),
|
|
2756
|
-
a.showClear ? (d(),
|
|
2778
|
+
a.showClear ? (d(), f($, {
|
|
2757
2779
|
key: 2,
|
|
2758
2780
|
onClick: s,
|
|
2759
2781
|
outlined: "",
|
|
2760
2782
|
"data-cy": "clear-button"
|
|
2761
2783
|
}, {
|
|
2762
2784
|
default: g(() => o[3] || (o[3] = [
|
|
2763
|
-
|
|
2785
|
+
_("Clear")
|
|
2764
2786
|
])),
|
|
2765
2787
|
_: 1
|
|
2766
2788
|
})) : C("", !0),
|
|
2767
|
-
a.showSave ? (d(),
|
|
2789
|
+
a.showSave ? (d(), f($, {
|
|
2768
2790
|
key: 3,
|
|
2769
2791
|
onClick: u,
|
|
2770
2792
|
class: "ms-auto",
|
|
2771
2793
|
"data-cy": "save-button"
|
|
2772
2794
|
}, {
|
|
2773
2795
|
default: g(() => o[4] || (o[4] = [
|
|
2774
|
-
|
|
2796
|
+
_("Save")
|
|
2775
2797
|
])),
|
|
2776
2798
|
_: 1
|
|
2777
2799
|
})) : C("", !0)
|
|
@@ -2779,7 +2801,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2779
2801
|
]);
|
|
2780
2802
|
};
|
|
2781
2803
|
}
|
|
2782
|
-
}),
|
|
2804
|
+
}), ia = { class: "value text-white w-100 text-center" }, Li = /* @__PURE__ */ B({
|
|
2783
2805
|
__name: "ForgeStatWidget",
|
|
2784
2806
|
props: {
|
|
2785
2807
|
size: { default: "md" },
|
|
@@ -2787,15 +2809,15 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2787
2809
|
},
|
|
2788
2810
|
setup(e) {
|
|
2789
2811
|
const t = e;
|
|
2790
|
-
return (a, i) => (d(),
|
|
2812
|
+
return (a, i) => (d(), b("div", S(a.$attrs, {
|
|
2791
2813
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2792
2814
|
}), [
|
|
2793
|
-
m("span",
|
|
2815
|
+
m("span", ia, [
|
|
2794
2816
|
k(a.$slots, "default")
|
|
2795
2817
|
])
|
|
2796
2818
|
], 16));
|
|
2797
2819
|
}
|
|
2798
|
-
}),
|
|
2820
|
+
}), la = { key: 0 }, Ri = /* @__PURE__ */ B({
|
|
2799
2821
|
__name: "ForgeStepper",
|
|
2800
2822
|
props: {
|
|
2801
2823
|
currentStep: { default: 1 },
|
|
@@ -2842,18 +2864,18 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2842
2864
|
]
|
|
2843
2865
|
})
|
|
2844
2866
|
}));
|
|
2845
|
-
return (i, l) => (d(),
|
|
2867
|
+
return (i, l) => (d(), f(c(Ne), { value: i.currentStep }, {
|
|
2846
2868
|
default: g(() => [
|
|
2847
2869
|
y(c(Ue), null, {
|
|
2848
2870
|
default: g(() => [
|
|
2849
|
-
(d(!0),
|
|
2871
|
+
(d(!0), b(N, null, q(i.steps, (n) => (d(), f(c(Oe), S({
|
|
2850
2872
|
key: n.value,
|
|
2851
2873
|
value: n.value,
|
|
2852
2874
|
disabled: n.disabled,
|
|
2853
2875
|
ref_for: !0
|
|
2854
2876
|
}, { ...i.$attrs }, { pt: a.value }), {
|
|
2855
2877
|
default: g(() => [
|
|
2856
|
-
i.showStepLabel ? (d(),
|
|
2878
|
+
i.showStepLabel ? (d(), b("div", la, w(n.label), 1)) : C("", !0)
|
|
2857
2879
|
]),
|
|
2858
2880
|
_: 2
|
|
2859
2881
|
}, 1040, ["value", "disabled", "pt"]))), 128))
|
|
@@ -2862,7 +2884,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2862
2884
|
}),
|
|
2863
2885
|
y(c(qe), null, {
|
|
2864
2886
|
default: g(() => [
|
|
2865
|
-
(d(!0),
|
|
2887
|
+
(d(!0), b(N, null, q(i.steps, (n) => (d(), f(c(Ae), {
|
|
2866
2888
|
key: n.value,
|
|
2867
2889
|
value: n.value
|
|
2868
2890
|
}, {
|
|
@@ -2878,7 +2900,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2878
2900
|
_: 3
|
|
2879
2901
|
}, 8, ["value"]));
|
|
2880
2902
|
}
|
|
2881
|
-
}),
|
|
2903
|
+
}), na = { class: "p-4 text-wrap w-100" }, oa = { class: "p-4 text-wrap w-100" }, Hi = /* @__PURE__ */ B({
|
|
2882
2904
|
__name: "ForgeTile",
|
|
2883
2905
|
props: {
|
|
2884
2906
|
severity: { default: "primary" },
|
|
@@ -2890,45 +2912,45 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
|
|
|
2890
2912
|
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" : ""}`);
|
|
2891
2913
|
return (l, n) => {
|
|
2892
2914
|
const s = U;
|
|
2893
|
-
return t.clickable ? (d(),
|
|
2915
|
+
return t.clickable ? (d(), f(s, {
|
|
2894
2916
|
key: 0,
|
|
2895
|
-
class:
|
|
2917
|
+
class: F(["d-flex w-100 p-0 text-body", a.value]),
|
|
2896
2918
|
severity: t.severity,
|
|
2897
2919
|
unstyled: "",
|
|
2898
2920
|
"data-cy": "button-tile"
|
|
2899
2921
|
}, {
|
|
2900
2922
|
default: g(() => [
|
|
2901
|
-
m("div",
|
|
2923
|
+
m("div", na, [
|
|
2902
2924
|
k(l.$slots, "default", {}, () => [
|
|
2903
|
-
n[0] || (n[0] =
|
|
2925
|
+
n[0] || (n[0] = _("Tile Content"))
|
|
2904
2926
|
])
|
|
2905
2927
|
])
|
|
2906
2928
|
]),
|
|
2907
2929
|
_: 3
|
|
2908
|
-
}, 8, ["severity", "class"])) : (d(),
|
|
2930
|
+
}, 8, ["severity", "class"])) : (d(), b("div", {
|
|
2909
2931
|
key: 1,
|
|
2910
|
-
class:
|
|
2932
|
+
class: F(["d-flex w-100", i.value]),
|
|
2911
2933
|
"data-cy": "tile"
|
|
2912
2934
|
}, [
|
|
2913
|
-
m("div",
|
|
2935
|
+
m("div", oa, [
|
|
2914
2936
|
k(l.$slots, "default", {}, () => [
|
|
2915
|
-
n[1] || (n[1] =
|
|
2937
|
+
n[1] || (n[1] = _("Tile Content"))
|
|
2916
2938
|
])
|
|
2917
2939
|
])
|
|
2918
2940
|
], 2));
|
|
2919
2941
|
};
|
|
2920
2942
|
}
|
|
2921
2943
|
});
|
|
2922
|
-
function
|
|
2944
|
+
function Q(e, t) {
|
|
2923
2945
|
return e > 1 ? `${t}s` : t;
|
|
2924
2946
|
}
|
|
2925
|
-
const
|
|
2947
|
+
const sa = {
|
|
2926
2948
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2927
2949
|
"data-cy": "pagination-header"
|
|
2928
|
-
},
|
|
2950
|
+
}, ra = { class: "ms-2" }, da = { key: 0 }, pa = {
|
|
2929
2951
|
class: "w-auto",
|
|
2930
2952
|
"data-cy": "total"
|
|
2931
|
-
},
|
|
2953
|
+
}, ca = /* @__PURE__ */ B({
|
|
2932
2954
|
__name: "ForgePaginationHeader",
|
|
2933
2955
|
props: {
|
|
2934
2956
|
total: {},
|
|
@@ -2941,11 +2963,11 @@ const oa = {
|
|
|
2941
2963
|
a("update:perPage", s.value);
|
|
2942
2964
|
}, n = z(() => {
|
|
2943
2965
|
const s = Math.ceil(i.total / i.perPage);
|
|
2944
|
-
return `${s} ${
|
|
2966
|
+
return `${s} ${Q(s, "page")}`;
|
|
2945
2967
|
});
|
|
2946
|
-
return (s, r) => (d(),
|
|
2947
|
-
r[2] || (r[2] =
|
|
2948
|
-
m("div",
|
|
2968
|
+
return (s, r) => (d(), b("div", sa, [
|
|
2969
|
+
r[2] || (r[2] = _(" Number of results per page ")),
|
|
2970
|
+
m("div", ra, [
|
|
2949
2971
|
y(c(te), {
|
|
2950
2972
|
options: i.pageSizes,
|
|
2951
2973
|
"model-value": i.perPage,
|
|
@@ -2953,16 +2975,16 @@ const oa = {
|
|
|
2953
2975
|
onChange: r[0] || (r[0] = (p) => l(p))
|
|
2954
2976
|
}, null, 8, ["options", "model-value"])
|
|
2955
2977
|
]),
|
|
2956
|
-
i.total ? (d(),
|
|
2978
|
+
i.total ? (d(), b("div", da, [
|
|
2957
2979
|
r[1] || (r[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
2958
|
-
m("span",
|
|
2980
|
+
m("span", pa, w(i.total) + " " + w(c(Q)(i.total, "result")) + " across " + w(n.value), 1)
|
|
2959
2981
|
])) : C("", !0)
|
|
2960
2982
|
]));
|
|
2961
2983
|
}
|
|
2962
|
-
}),
|
|
2984
|
+
}), ua = { class: "position-relative" }, ma = { "data-cy": "above-table-slot" }, va = { class: "d-flex w-100" }, fa = {
|
|
2963
2985
|
class: "mx-auto",
|
|
2964
2986
|
"data-cy": "empty-message"
|
|
2965
|
-
},
|
|
2987
|
+
}, ga = { class: "d-flex" }, ba = { class: "d-flex align-items-end mb-2" }, xa = { key: 0 }, ya = { class: "ms-auto" }, Wi = /* @__PURE__ */ B({
|
|
2966
2988
|
__name: "ForgeTable",
|
|
2967
2989
|
props: {
|
|
2968
2990
|
value: {},
|
|
@@ -3057,7 +3079,7 @@ const oa = {
|
|
|
3057
3079
|
total: i.totalRecords ?? i.value.length
|
|
3058
3080
|
}), p = z(() => i.totalRecords ?? i.value.length), u = z(() => {
|
|
3059
3081
|
const v = Math.ceil(p.value / s.value);
|
|
3060
|
-
return `${v} ${
|
|
3082
|
+
return `${v} ${Q(v, "page")}`;
|
|
3061
3083
|
}), x = z(() => ({
|
|
3062
3084
|
thead: () => ({
|
|
3063
3085
|
class: [
|
|
@@ -3089,7 +3111,7 @@ const oa = {
|
|
|
3089
3111
|
V(i.filters);
|
|
3090
3112
|
}, $ = () => {
|
|
3091
3113
|
l.value.exportCSV();
|
|
3092
|
-
},
|
|
3114
|
+
}, j = (v) => {
|
|
3093
3115
|
var h;
|
|
3094
3116
|
r.value.sortDirection = v.sortOrder === 1 ? "Asc" : v.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((h = v.sortField) == null ? void 0 : h.toString()) ?? "", a("update:tableContext", r.value), a("sort", v);
|
|
3095
3117
|
}, V = (v) => {
|
|
@@ -3101,8 +3123,8 @@ const oa = {
|
|
|
3101
3123
|
};
|
|
3102
3124
|
return ce(() => i.filters, (v) => {
|
|
3103
3125
|
r.value.filters = v, a("update:tableContext", r.value);
|
|
3104
|
-
}, { deep: !0 }), le(() => a("update:tableContext", r.value)), (v, h) => (d(),
|
|
3105
|
-
m("span",
|
|
3126
|
+
}, { deep: !0 }), le(() => a("update:tableContext", r.value)), (v, h) => (d(), b("div", ua, [
|
|
3127
|
+
m("span", ma, [
|
|
3106
3128
|
k(v.$slots, "above-table")
|
|
3107
3129
|
]),
|
|
3108
3130
|
y(c(Ee), S({
|
|
@@ -3116,64 +3138,64 @@ const oa = {
|
|
|
3116
3138
|
ref: l,
|
|
3117
3139
|
"data-cy": "table",
|
|
3118
3140
|
"onUpdate:filters": V,
|
|
3119
|
-
onSort:
|
|
3141
|
+
onSort: j,
|
|
3120
3142
|
onPage: M,
|
|
3121
3143
|
showHeaders: ""
|
|
3122
3144
|
}), ie({
|
|
3123
3145
|
empty: g(() => [
|
|
3124
|
-
m("div",
|
|
3125
|
-
m("h5",
|
|
3146
|
+
m("div", va, [
|
|
3147
|
+
m("h5", fa, w(v.emptyMessage ?? "No items Found."), 1)
|
|
3126
3148
|
])
|
|
3127
3149
|
]),
|
|
3128
3150
|
header: g(() => [
|
|
3129
3151
|
m("div", {
|
|
3130
|
-
class:
|
|
3152
|
+
class: F(i.loading ? "opacity-50" : "")
|
|
3131
3153
|
}, [
|
|
3132
|
-
m("div",
|
|
3133
|
-
m("div",
|
|
3134
|
-
v.paginator && !v.legacyPaginationFooter ? (d(),
|
|
3135
|
-
y(
|
|
3154
|
+
m("div", ga, [
|
|
3155
|
+
m("div", ba, [
|
|
3156
|
+
v.paginator && !v.legacyPaginationFooter ? (d(), b("span", xa, [
|
|
3157
|
+
y(ca, {
|
|
3136
3158
|
total: p.value,
|
|
3137
3159
|
"page-sizes": n.value,
|
|
3138
3160
|
"per-page": s.value,
|
|
3139
3161
|
"onUpdate:perPage": [
|
|
3140
|
-
h[0] || (h[0] = (
|
|
3162
|
+
h[0] || (h[0] = (P) => s.value = P),
|
|
3141
3163
|
O
|
|
3142
3164
|
]
|
|
3143
3165
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
3144
3166
|
])) : C("", !0)
|
|
3145
3167
|
]),
|
|
3146
|
-
m("div",
|
|
3147
|
-
v.showClearButton ? (d(),
|
|
3168
|
+
m("div", ya, [
|
|
3169
|
+
v.showClearButton ? (d(), f(c(U), {
|
|
3148
3170
|
key: 0,
|
|
3149
3171
|
outlined: "",
|
|
3150
|
-
class:
|
|
3172
|
+
class: F(v.showExporterButton ? "me-2" : ""),
|
|
3151
3173
|
onClick: o,
|
|
3152
3174
|
"data-cy": "clear-all"
|
|
3153
3175
|
}, {
|
|
3154
3176
|
default: g(() => [
|
|
3155
|
-
y(c(
|
|
3177
|
+
y(c(T), {
|
|
3156
3178
|
icon: "bi:funnel-fill",
|
|
3157
3179
|
width: "24",
|
|
3158
3180
|
height: "24"
|
|
3159
3181
|
}),
|
|
3160
|
-
h[2] || (h[2] =
|
|
3182
|
+
h[2] || (h[2] = _(" Clear "))
|
|
3161
3183
|
]),
|
|
3162
3184
|
_: 1
|
|
3163
3185
|
}, 8, ["class"])) : C("", !0),
|
|
3164
|
-
v.showExporterButton ? (d(),
|
|
3186
|
+
v.showExporterButton ? (d(), f(c(U), {
|
|
3165
3187
|
key: 1,
|
|
3166
3188
|
outlined: "",
|
|
3167
3189
|
onClick: $,
|
|
3168
3190
|
"data-cy": "exporter"
|
|
3169
3191
|
}, {
|
|
3170
3192
|
default: g(() => [
|
|
3171
|
-
y(c(
|
|
3193
|
+
y(c(T), {
|
|
3172
3194
|
icon: "typcn:export",
|
|
3173
3195
|
width: "24",
|
|
3174
3196
|
height: "24"
|
|
3175
3197
|
}),
|
|
3176
|
-
h[3] || (h[3] =
|
|
3198
|
+
h[3] || (h[3] = _(" Export "))
|
|
3177
3199
|
]),
|
|
3178
3200
|
_: 1
|
|
3179
3201
|
})) : C("", !0),
|
|
@@ -3187,24 +3209,24 @@ const oa = {
|
|
|
3187
3209
|
]),
|
|
3188
3210
|
_: 2
|
|
3189
3211
|
}, [
|
|
3190
|
-
q(v.$slots, (
|
|
3212
|
+
q(v.$slots, (P, L) => ({
|
|
3191
3213
|
name: L,
|
|
3192
3214
|
fn: g((ae) => [
|
|
3193
|
-
k(v.$slots, L,
|
|
3215
|
+
k(v.$slots, L, K(Z(ae || {})))
|
|
3194
3216
|
])
|
|
3195
3217
|
})),
|
|
3196
3218
|
v.legacyPaginationFooter ? {
|
|
3197
3219
|
name: "paginatorstart",
|
|
3198
3220
|
fn: g(() => [
|
|
3199
3221
|
m("span", {
|
|
3200
|
-
class:
|
|
3222
|
+
class: F(["d-flex", i.loading ? "opacity-50" : ""]),
|
|
3201
3223
|
"data-cy": "legacy-page-size"
|
|
3202
3224
|
}, [
|
|
3203
3225
|
h[4] || (h[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
3204
3226
|
y(c(te), {
|
|
3205
3227
|
options: n.value,
|
|
3206
3228
|
modelValue: s.value,
|
|
3207
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
3229
|
+
"onUpdate:modelValue": h[1] || (h[1] = (P) => s.value = P),
|
|
3208
3230
|
class: "ms-2",
|
|
3209
3231
|
onClick: O
|
|
3210
3232
|
}, null, 8, ["options", "modelValue"])
|
|
@@ -3217,15 +3239,15 @@ const oa = {
|
|
|
3217
3239
|
fn: g(() => [
|
|
3218
3240
|
m("span", {
|
|
3219
3241
|
"data-cy": "legacy-total",
|
|
3220
|
-
class:
|
|
3221
|
-
}, w(p.value) + " " + w(c(
|
|
3242
|
+
class: F(i.loading ? "opacity-50" : "")
|
|
3243
|
+
}, w(p.value) + " " + w(c(Q)(p.value, "result")) + " across " + w(u.value), 3)
|
|
3222
3244
|
]),
|
|
3223
3245
|
key: "1"
|
|
3224
3246
|
} : void 0
|
|
3225
3247
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
3226
3248
|
]));
|
|
3227
3249
|
}
|
|
3228
|
-
}),
|
|
3250
|
+
}), ha = { class: "d-flex position-relative" }, wa = { class: "d-flex w-100" }, Yi = /* @__PURE__ */ B({
|
|
3229
3251
|
__name: "ForgeFilterHeader",
|
|
3230
3252
|
props: /* @__PURE__ */ E({
|
|
3231
3253
|
dataType: {},
|
|
@@ -3256,19 +3278,19 @@ const oa = {
|
|
|
3256
3278
|
};
|
|
3257
3279
|
return (l, n) => {
|
|
3258
3280
|
const s = ue, r = U;
|
|
3259
|
-
return d(),
|
|
3260
|
-
l.dataType === "numeric" ? (d(),
|
|
3281
|
+
return d(), b("div", ha, [
|
|
3282
|
+
l.dataType === "numeric" ? (d(), f(s, S({
|
|
3261
3283
|
key: 0,
|
|
3262
3284
|
modelValue: t.value,
|
|
3263
3285
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p)
|
|
3264
|
-
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(),
|
|
3286
|
+
}, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), f(be, S({
|
|
3265
3287
|
key: 1,
|
|
3266
3288
|
modelValue: t.value,
|
|
3267
3289
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
|
|
3268
3290
|
}, l.$attrs, {
|
|
3269
3291
|
"show-icon": !1,
|
|
3270
3292
|
"show-on-focus": !0
|
|
3271
|
-
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(),
|
|
3293
|
+
}), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), f(c(te), S({
|
|
3272
3294
|
key: 2,
|
|
3273
3295
|
modelValue: t.value,
|
|
3274
3296
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
|
|
@@ -3278,18 +3300,18 @@ const oa = {
|
|
|
3278
3300
|
"option-label": l.optionLabel
|
|
3279
3301
|
}), {
|
|
3280
3302
|
value: g(({ value: p, placeholder: u }) => [
|
|
3281
|
-
m("div",
|
|
3303
|
+
m("div", wa, [
|
|
3282
3304
|
m("span", {
|
|
3283
|
-
class:
|
|
3305
|
+
class: F({ "filter-placeholder": p === null })
|
|
3284
3306
|
}, w(a(p, u)), 3),
|
|
3285
|
-
l.showClearButton && t.value !== null ? (d(),
|
|
3307
|
+
l.showClearButton && t.value !== null ? (d(), f(r, {
|
|
3286
3308
|
key: 0,
|
|
3287
3309
|
onClick: G(i, ["prevent"]),
|
|
3288
3310
|
size: "small",
|
|
3289
3311
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
3290
3312
|
}, {
|
|
3291
3313
|
default: g(() => [
|
|
3292
|
-
y(c(
|
|
3314
|
+
y(c(T), {
|
|
3293
3315
|
icon: "bi:x",
|
|
3294
3316
|
width: "1rem",
|
|
3295
3317
|
height: "1rem",
|
|
@@ -3301,7 +3323,7 @@ const oa = {
|
|
|
3301
3323
|
])
|
|
3302
3324
|
]),
|
|
3303
3325
|
_: 1
|
|
3304
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(),
|
|
3326
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), f(c(oe), S({
|
|
3305
3327
|
key: 3,
|
|
3306
3328
|
modelValue: t.value,
|
|
3307
3329
|
"onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
|
|
@@ -3311,19 +3333,19 @@ const oa = {
|
|
|
3311
3333
|
"option-label": l.optionLabel,
|
|
3312
3334
|
"option-value": l.optionValue,
|
|
3313
3335
|
filter: ""
|
|
3314
|
-
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(),
|
|
3336
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), f(c(ne), S({
|
|
3315
3337
|
key: 4,
|
|
3316
3338
|
modelValue: t.value,
|
|
3317
3339
|
"onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p)
|
|
3318
3340
|
}, l.$attrs), null, 16, ["modelValue"])),
|
|
3319
|
-
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(),
|
|
3341
|
+
l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), f(r, {
|
|
3320
3342
|
key: 5,
|
|
3321
3343
|
onClick: G(i, ["prevent"]),
|
|
3322
3344
|
size: "small",
|
|
3323
3345
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
3324
3346
|
}, {
|
|
3325
3347
|
default: g(() => [
|
|
3326
|
-
y(c(
|
|
3348
|
+
y(c(T), {
|
|
3327
3349
|
icon: "bi:x",
|
|
3328
3350
|
width: "1rem",
|
|
3329
3351
|
height: "1rem",
|
|
@@ -4445,7 +4467,7 @@ class xe {
|
|
|
4445
4467
|
}
|
|
4446
4468
|
}
|
|
4447
4469
|
W = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
|
|
4448
|
-
const
|
|
4470
|
+
const ka = new xe(de, re)._freeze();
|
|
4449
4471
|
function ye(e, t, a, i) {
|
|
4450
4472
|
const l = t.flatMap((n) => n.file);
|
|
4451
4473
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
@@ -4458,7 +4480,7 @@ function ye(e, t, a, i) {
|
|
|
4458
4480
|
})) : t[s].status = "Duplicate";
|
|
4459
4481
|
}), t;
|
|
4460
4482
|
}
|
|
4461
|
-
async function
|
|
4483
|
+
async function $a(e, t) {
|
|
4462
4484
|
if (e === "Uploaded" && t !== null)
|
|
4463
4485
|
try {
|
|
4464
4486
|
await new me(t).delete();
|
|
@@ -4481,20 +4503,20 @@ function pe(e, t = !0, a = 1) {
|
|
|
4481
4503
|
while (Math.round(Math.abs(e) * s) / s >= i && n < l.length - 1);
|
|
4482
4504
|
return e.toFixed(a) + " " + l[n];
|
|
4483
4505
|
}
|
|
4484
|
-
function
|
|
4506
|
+
function Fa(e) {
|
|
4485
4507
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
4486
4508
|
}
|
|
4487
4509
|
function Ba(e) {
|
|
4488
4510
|
return URL.createObjectURL(e);
|
|
4489
4511
|
}
|
|
4490
|
-
function
|
|
4512
|
+
function Sa() {
|
|
4491
4513
|
const e = new xe(de, re);
|
|
4492
4514
|
return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
|
|
4493
4515
|
}
|
|
4494
|
-
const
|
|
4516
|
+
const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disabled", "multiple"], Ta = {
|
|
4495
4517
|
class: "text-break accepted-file-types-container",
|
|
4496
4518
|
id: "accepted-file-types-overlay"
|
|
4497
|
-
},
|
|
4519
|
+
}, ja = /* @__PURE__ */ B({
|
|
4498
4520
|
__name: "UploadButton",
|
|
4499
4521
|
props: /* @__PURE__ */ E({
|
|
4500
4522
|
acceptedFileTypes: {},
|
|
@@ -4511,7 +4533,7 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4511
4533
|
};
|
|
4512
4534
|
return (s, r) => {
|
|
4513
4535
|
const p = U;
|
|
4514
|
-
return d(),
|
|
4536
|
+
return d(), b("div", Ca, [
|
|
4515
4537
|
k(s.$slots, "message"),
|
|
4516
4538
|
m("div", null, [
|
|
4517
4539
|
m("input", {
|
|
@@ -4522,24 +4544,24 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4522
4544
|
disabled: l.value,
|
|
4523
4545
|
multiple: s.maxFileInput > 1,
|
|
4524
4546
|
onInput: r[0] || (r[0] = (u) => n([...u.target.files]))
|
|
4525
|
-
}, null, 40,
|
|
4547
|
+
}, null, 40, za),
|
|
4526
4548
|
m("label", {
|
|
4527
|
-
class:
|
|
4549
|
+
class: F([{ disabled: l.value }, "btn btn-primary"]),
|
|
4528
4550
|
id: "file-input-button",
|
|
4529
4551
|
for: "file-input"
|
|
4530
4552
|
}, [
|
|
4531
4553
|
k(s.$slots, "button-content", {}, () => [
|
|
4532
|
-
y(c(
|
|
4554
|
+
y(c(T), {
|
|
4533
4555
|
icon: "bi:upload",
|
|
4534
4556
|
class: "me-2",
|
|
4535
4557
|
height: "20px",
|
|
4536
4558
|
width: "20px"
|
|
4537
4559
|
}),
|
|
4538
|
-
r[1] || (r[1] =
|
|
4560
|
+
r[1] || (r[1] = _(" Browse your computer "))
|
|
4539
4561
|
])
|
|
4540
4562
|
], 2)
|
|
4541
4563
|
]),
|
|
4542
|
-
s.showDragDropArea ? (d(),
|
|
4564
|
+
s.showDragDropArea ? (d(), f(p, {
|
|
4543
4565
|
link: "",
|
|
4544
4566
|
class: "ms-auto",
|
|
4545
4567
|
key: s.acceptedFileTypes.length,
|
|
@@ -4547,7 +4569,7 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4547
4569
|
onClick: i
|
|
4548
4570
|
}, {
|
|
4549
4571
|
default: g(() => r[2] || (r[2] = [
|
|
4550
|
-
|
|
4572
|
+
_("Accepted File Types")
|
|
4551
4573
|
])),
|
|
4552
4574
|
_: 1
|
|
4553
4575
|
})) : C("", !0),
|
|
@@ -4556,21 +4578,21 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4556
4578
|
ref: a
|
|
4557
4579
|
}, {
|
|
4558
4580
|
default: g(() => [
|
|
4559
|
-
m("div",
|
|
4581
|
+
m("div", Ta, w(s.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
|
|
4560
4582
|
]),
|
|
4561
4583
|
_: 1
|
|
4562
4584
|
}, 512)
|
|
4563
4585
|
]);
|
|
4564
4586
|
};
|
|
4565
4587
|
}
|
|
4566
|
-
}),
|
|
4588
|
+
}), Ia = {
|
|
4567
4589
|
key: 0,
|
|
4568
4590
|
class: "py-4 px-3",
|
|
4569
4591
|
id: "placeholder-message"
|
|
4570
|
-
},
|
|
4592
|
+
}, _a = {
|
|
4571
4593
|
key: 1,
|
|
4572
4594
|
class: "d-flex flex-column"
|
|
4573
|
-
}, Pa = /* @__PURE__ */
|
|
4595
|
+
}, Pa = /* @__PURE__ */ B({
|
|
4574
4596
|
__name: "DragDropArea",
|
|
4575
4597
|
props: /* @__PURE__ */ E({
|
|
4576
4598
|
maxFileInput: {},
|
|
@@ -4585,27 +4607,27 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4585
4607
|
const t = D(e, "modelValue"), a = I(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
4586
4608
|
a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = ye([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
|
|
4587
4609
|
};
|
|
4588
|
-
return (n, s) => (d(),
|
|
4610
|
+
return (n, s) => (d(), b("div", {
|
|
4589
4611
|
id: "drag-drop-area",
|
|
4590
|
-
class:
|
|
4612
|
+
class: F(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
4591
4613
|
onDragleave: s[0] || (s[0] = G((r) => a.value = !1, ["prevent"])),
|
|
4592
4614
|
onDragover: s[1] || (s[1] = G((r) => a.value = !0, ["prevent"])),
|
|
4593
4615
|
onDrop: G(l, ["prevent"])
|
|
4594
4616
|
}, [
|
|
4595
|
-
t.value.length === 0 ? (d(),
|
|
4596
|
-
y(c(
|
|
4617
|
+
t.value.length === 0 ? (d(), b("div", Ia, [
|
|
4618
|
+
y(c(T), {
|
|
4597
4619
|
icon: "bi:upload",
|
|
4598
4620
|
class: "me-2",
|
|
4599
4621
|
height: "20px",
|
|
4600
4622
|
width: "20px"
|
|
4601
4623
|
}),
|
|
4602
|
-
s[2] || (s[2] =
|
|
4603
|
-
])) : (d(),
|
|
4624
|
+
s[2] || (s[2] = _(" Drag and drop files here "))
|
|
4625
|
+
])) : (d(), b("div", _a, [
|
|
4604
4626
|
k(n.$slots, "default")
|
|
4605
4627
|
]))
|
|
4606
4628
|
], 34));
|
|
4607
4629
|
}
|
|
4608
|
-
}),
|
|
4630
|
+
}), Va = { class: "d-flex align-items-center me-2" }, Ma = /* @__PURE__ */ B({
|
|
4609
4631
|
__name: "UploadStatus",
|
|
4610
4632
|
props: {
|
|
4611
4633
|
fileSize: {},
|
|
@@ -4630,41 +4652,41 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4630
4652
|
return "Upload Failed: Connection error, please try again.";
|
|
4631
4653
|
}
|
|
4632
4654
|
});
|
|
4633
|
-
return (i, l) => (d(),
|
|
4634
|
-
i.uploadStatus === "Uploading" ? (d(),
|
|
4655
|
+
return (i, l) => (d(), b("div", Va, [
|
|
4656
|
+
i.uploadStatus === "Uploading" ? (d(), f(Qt, {
|
|
4635
4657
|
key: 0,
|
|
4636
4658
|
pixelWidth: 200,
|
|
4637
4659
|
animate: "",
|
|
4638
4660
|
striped: ""
|
|
4639
4661
|
}, {
|
|
4640
4662
|
default: g(() => [
|
|
4641
|
-
|
|
4663
|
+
_(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
|
|
4642
4664
|
]),
|
|
4643
4665
|
_: 1
|
|
4644
4666
|
})) : C("", !0),
|
|
4645
|
-
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(),
|
|
4667
|
+
i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(), f(se, {
|
|
4646
4668
|
key: 1,
|
|
4647
4669
|
id: "upload-status-alert",
|
|
4648
4670
|
severity: t.value,
|
|
4649
4671
|
class: "mb-0 w-75 ms-auto"
|
|
4650
4672
|
}, {
|
|
4651
4673
|
default: g(() => [
|
|
4652
|
-
|
|
4674
|
+
_(w(a.value), 1)
|
|
4653
4675
|
]),
|
|
4654
4676
|
_: 1
|
|
4655
4677
|
}, 8, ["severity"])) : C("", !0)
|
|
4656
4678
|
]));
|
|
4657
4679
|
}
|
|
4658
|
-
}),
|
|
4680
|
+
}), Da = ["data-cy"], Oa = { class: "ms-3 d-flex flex-column" }, Na = {
|
|
4659
4681
|
key: 1,
|
|
4660
4682
|
id: "file-name"
|
|
4661
|
-
},
|
|
4683
|
+
}, Ua = {
|
|
4662
4684
|
class: "text-black-50",
|
|
4663
4685
|
id: "file-type"
|
|
4664
|
-
},
|
|
4686
|
+
}, Aa = {
|
|
4665
4687
|
class: "text-black-50",
|
|
4666
4688
|
id: "file-size"
|
|
4667
|
-
},
|
|
4689
|
+
}, qa = { class: "ms-auto my-auto d-flex" }, Ea = /* @__PURE__ */ B({
|
|
4668
4690
|
__name: "FileInfo",
|
|
4669
4691
|
props: /* @__PURE__ */ E({
|
|
4670
4692
|
editableFileName: { type: Boolean },
|
|
@@ -4683,11 +4705,11 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4683
4705
|
}),
|
|
4684
4706
|
emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
4685
4707
|
setup(e, { emit: t }) {
|
|
4686
|
-
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, s = I(a.value.name), r = I(""), p = I(0), u = I(), x = z(() => e.acceptedFileTypes.some(({ fileType: v }) => v === a.value.type)), o = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type :
|
|
4708
|
+
const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, s = I(a.value.name), r = I(""), p = I(0), u = I(), x = z(() => e.acceptedFileTypes.some(({ fileType: v }) => v === a.value.type)), o = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : Sa().getType(a.value.name)), j = () => {
|
|
4687
4709
|
s.value != null && (V(), a.value = new File([a.value], s.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
|
|
4688
4710
|
}, V = () => {
|
|
4689
|
-
let v = s.value.split("."), h =
|
|
4690
|
-
v.length === 1 ?
|
|
4711
|
+
let v = s.value.split("."), h = ka.getExtension($.value), P = s.value.split(".").pop();
|
|
4712
|
+
v.length === 1 ? P && P.length > 0 && (s.value = [s.value, h].join(".")) : v.length > 1 && P !== h && (s.value = s.value.replace(P, h));
|
|
4691
4713
|
}, M = async () => {
|
|
4692
4714
|
if (!x.value || !o.value) {
|
|
4693
4715
|
l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
|
|
@@ -4701,7 +4723,7 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4701
4723
|
}
|
|
4702
4724
|
try {
|
|
4703
4725
|
l.value = "Uploading";
|
|
4704
|
-
const
|
|
4726
|
+
const P = new me(v), L = {
|
|
4705
4727
|
abortSignal: u.value.signal,
|
|
4706
4728
|
onProgress: (ae) => p.value = ae.loadedBytes,
|
|
4707
4729
|
blobHTTPHeaders: {
|
|
@@ -4710,27 +4732,27 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4710
4732
|
},
|
|
4711
4733
|
tags: { temp: "true" }
|
|
4712
4734
|
};
|
|
4713
|
-
await
|
|
4714
|
-
} catch (
|
|
4715
|
-
if (
|
|
4735
|
+
await P.uploadData(a.value, L), r.value = v, l.value = "Uploaded", i.value = h;
|
|
4736
|
+
} catch (P) {
|
|
4737
|
+
if (P.name === "AbortError") {
|
|
4716
4738
|
l.value = "Aborted";
|
|
4717
4739
|
return;
|
|
4718
4740
|
}
|
|
4719
4741
|
l.value = "Failed";
|
|
4720
4742
|
}
|
|
4721
4743
|
}, O = async () => {
|
|
4722
|
-
await
|
|
4744
|
+
await $a(l.value, r.value), n("deleted", a.value);
|
|
4723
4745
|
};
|
|
4724
4746
|
return le(() => {
|
|
4725
4747
|
e.autoUploadToBlob && M();
|
|
4726
4748
|
}), (v, h) => {
|
|
4727
|
-
const
|
|
4728
|
-
return d(),
|
|
4749
|
+
const P = U;
|
|
4750
|
+
return d(), b("div", {
|
|
4729
4751
|
class: "py-4 px-3 d-flex",
|
|
4730
4752
|
"data-cy": `file-info-${a.value.name}`
|
|
4731
4753
|
}, [
|
|
4732
4754
|
m("div", null, [
|
|
4733
|
-
c(
|
|
4755
|
+
c(Fa)(a.value.type) ? (d(), f(c(Le), {
|
|
4734
4756
|
key: 0,
|
|
4735
4757
|
id: "thumbnail-image",
|
|
4736
4758
|
"image-class": "image-file-thumbnail border",
|
|
@@ -4738,7 +4760,7 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4738
4760
|
alt: a.value.name,
|
|
4739
4761
|
width: "75px",
|
|
4740
4762
|
preview: ""
|
|
4741
|
-
}, null, 8, ["src", "alt"])) : (d(),
|
|
4763
|
+
}, null, 8, ["src", "alt"])) : (d(), f(c(T), {
|
|
4742
4764
|
key: 1,
|
|
4743
4765
|
id: "file-earmark",
|
|
4744
4766
|
icon: "bi:file-earmark",
|
|
@@ -4746,76 +4768,76 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4746
4768
|
width: "75px"
|
|
4747
4769
|
}))
|
|
4748
4770
|
]),
|
|
4749
|
-
m("div",
|
|
4771
|
+
m("div", Oa, [
|
|
4750
4772
|
m("div", null, [
|
|
4751
|
-
v.editableFileName ? (d(),
|
|
4773
|
+
v.editableFileName ? (d(), f(Dt, {
|
|
4752
4774
|
key: 0,
|
|
4753
4775
|
id: "edit-file-name",
|
|
4754
4776
|
modelValue: s.value,
|
|
4755
4777
|
"onUpdate:modelValue": h[0] || (h[0] = (L) => s.value = L),
|
|
4756
4778
|
rules: v.customFileNameRules,
|
|
4757
4779
|
name: a.value.name,
|
|
4758
|
-
"complete-action":
|
|
4759
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (d(),
|
|
4780
|
+
"complete-action": j
|
|
4781
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", Na, w(s.value), 1))
|
|
4760
4782
|
]),
|
|
4761
|
-
m("span",
|
|
4762
|
-
m("span",
|
|
4783
|
+
m("span", Ua, "File type: " + w(a.value.type.split("/").pop()), 1),
|
|
4784
|
+
m("span", Aa, "File size: " + w(c(pe)(a.value.size)), 1)
|
|
4763
4785
|
]),
|
|
4764
|
-
m("div",
|
|
4765
|
-
(d(),
|
|
4786
|
+
m("div", qa, [
|
|
4787
|
+
(d(), f(Ma, {
|
|
4766
4788
|
key: l.value,
|
|
4767
4789
|
"file-size": a.value.size,
|
|
4768
4790
|
"upload-status": l.value,
|
|
4769
4791
|
"bytes-uploaded": p.value,
|
|
4770
4792
|
"max-file-size": v.maxFileSize
|
|
4771
4793
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
4772
|
-
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(),
|
|
4794
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), f(P, {
|
|
4773
4795
|
key: 0,
|
|
4774
4796
|
link: "",
|
|
4775
4797
|
onClick: M
|
|
4776
4798
|
}, {
|
|
4777
4799
|
default: g(() => [
|
|
4778
|
-
y(c(
|
|
4800
|
+
y(c(T), {
|
|
4779
4801
|
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
4780
4802
|
}, null, 8, ["icon"])
|
|
4781
4803
|
]),
|
|
4782
4804
|
_: 1
|
|
4783
4805
|
})) : C("", !0),
|
|
4784
|
-
l.value === "Uploading" ? (d(),
|
|
4806
|
+
l.value === "Uploading" ? (d(), f(P, {
|
|
4785
4807
|
key: 1,
|
|
4786
4808
|
link: "",
|
|
4787
4809
|
onClick: h[1] || (h[1] = (L) => u.value.value.abort())
|
|
4788
4810
|
}, {
|
|
4789
4811
|
default: g(() => [
|
|
4790
|
-
y(c(
|
|
4812
|
+
y(c(T), { icon: "bi:x-circle-fill" })
|
|
4791
4813
|
]),
|
|
4792
4814
|
_: 1
|
|
4793
|
-
})) : (d(),
|
|
4815
|
+
})) : (d(), f(P, {
|
|
4794
4816
|
key: 2,
|
|
4795
4817
|
link: "",
|
|
4796
4818
|
onClick: O,
|
|
4797
4819
|
id: "delete-button"
|
|
4798
4820
|
}, {
|
|
4799
4821
|
default: g(() => [
|
|
4800
|
-
y(c(
|
|
4822
|
+
y(c(T), { icon: "bi:trash" })
|
|
4801
4823
|
]),
|
|
4802
4824
|
_: 1
|
|
4803
4825
|
}))
|
|
4804
4826
|
])
|
|
4805
|
-
], 8,
|
|
4827
|
+
], 8, Da);
|
|
4806
4828
|
};
|
|
4807
4829
|
}
|
|
4808
|
-
}),
|
|
4830
|
+
}), La = { class: "d-flex justify-content-end mt-1" }, Ra = { id: "max-file-size" }, Ha = /* @__PURE__ */ B({
|
|
4809
4831
|
__name: "MaxFileSize",
|
|
4810
4832
|
props: {
|
|
4811
4833
|
maxFileSize: {}
|
|
4812
4834
|
},
|
|
4813
4835
|
setup(e) {
|
|
4814
|
-
return (t, a) => (d(),
|
|
4815
|
-
m("div",
|
|
4836
|
+
return (t, a) => (d(), b("div", La, [
|
|
4837
|
+
m("div", Ra, "Max file size: " + w(c(pe)(t.maxFileSize)), 1)
|
|
4816
4838
|
]));
|
|
4817
4839
|
}
|
|
4818
|
-
}),
|
|
4840
|
+
}), Wa = { "data-cy": "file-uploader" }, Ya = { key: 0 }, Gi = /* @__PURE__ */ B({
|
|
4819
4841
|
__name: "ForgeFileUploader",
|
|
4820
4842
|
props: /* @__PURE__ */ E({
|
|
4821
4843
|
acceptedFileTypes: {},
|
|
@@ -4835,12 +4857,12 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4835
4857
|
const t = D(e, "modelValue"), a = e, i = (l) => {
|
|
4836
4858
|
t.value = t.value.filter((n) => n.file != l);
|
|
4837
4859
|
};
|
|
4838
|
-
return (l, n) => (d(),
|
|
4839
|
-
y(
|
|
4860
|
+
return (l, n) => (d(), b("div", Wa, [
|
|
4861
|
+
y(ja, S(a, {
|
|
4840
4862
|
modelValue: t.value,
|
|
4841
4863
|
"onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s)
|
|
4842
4864
|
}), null, 16, ["modelValue"]),
|
|
4843
|
-
l.showDragDropArea ? (d(),
|
|
4865
|
+
l.showDragDropArea ? (d(), b("div", Ya, [
|
|
4844
4866
|
y(Pa, {
|
|
4845
4867
|
"max-file-input": a.maxFileInput,
|
|
4846
4868
|
"max-file-size": a.maxFileSize,
|
|
@@ -4849,8 +4871,8 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4849
4871
|
"onUpdate:modelValue": n[1] || (n[1] = (s) => t.value = s)
|
|
4850
4872
|
}, {
|
|
4851
4873
|
default: g(() => [
|
|
4852
|
-
(d(!0),
|
|
4853
|
-
(d(),
|
|
4874
|
+
(d(!0), b(N, null, q(t.value, ({ file: s }, r) => (d(), b("span", null, [
|
|
4875
|
+
(d(), f(Ea, S({
|
|
4854
4876
|
key: s.name,
|
|
4855
4877
|
class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
4856
4878
|
file: t.value[r].file,
|
|
@@ -4865,13 +4887,13 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4865
4887
|
]),
|
|
4866
4888
|
_: 1
|
|
4867
4889
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
4868
|
-
y(
|
|
4890
|
+
y(Ha, {
|
|
4869
4891
|
"max-file-size": a.maxFileSize
|
|
4870
4892
|
}, null, 8, ["max-file-size"])
|
|
4871
4893
|
])) : C("", !0)
|
|
4872
4894
|
]));
|
|
4873
4895
|
}
|
|
4874
|
-
}),
|
|
4896
|
+
}), Ga = { class: "d-flex" }, Ja = { class: "me-3" }, Ka = { class: "ms-2" }, Za = { class: "d-flex flex-column w-100" }, Ji = /* @__PURE__ */ B({
|
|
4875
4897
|
__name: "ForgeColumnCustomiser",
|
|
4876
4898
|
props: {
|
|
4877
4899
|
modelValue: { required: !0 },
|
|
@@ -4882,19 +4904,19 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4882
4904
|
const t = D(e, "modelValue"), a = I(), i = I(!1), l = (n) => {
|
|
4883
4905
|
a.value.toggle(n);
|
|
4884
4906
|
};
|
|
4885
|
-
return (n, s) => (d(),
|
|
4907
|
+
return (n, s) => (d(), b(N, null, [
|
|
4886
4908
|
y(c(U), {
|
|
4887
4909
|
onClick: l,
|
|
4888
4910
|
class: "ms-2"
|
|
4889
4911
|
}, {
|
|
4890
4912
|
default: g(() => [
|
|
4891
|
-
m("div",
|
|
4892
|
-
m("div", Ga, [
|
|
4893
|
-
y(c(j), { icon: "bi:layout-three-columns" })
|
|
4894
|
-
]),
|
|
4895
|
-
P(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
|
|
4913
|
+
m("div", Ga, [
|
|
4896
4914
|
m("div", Ja, [
|
|
4897
|
-
y(c(
|
|
4915
|
+
y(c(T), { icon: "bi:layout-three-columns" })
|
|
4916
|
+
]),
|
|
4917
|
+
_(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
|
|
4918
|
+
m("div", Ka, [
|
|
4919
|
+
y(c(T), {
|
|
4898
4920
|
icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
4899
4921
|
}, null, 8, ["icon"])
|
|
4900
4922
|
])
|
|
@@ -4910,9 +4932,9 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4910
4932
|
onShow: s[1] || (s[1] = () => i.value = !0)
|
|
4911
4933
|
}, {
|
|
4912
4934
|
default: g(() => [
|
|
4913
|
-
m("div",
|
|
4914
|
-
(d(!0),
|
|
4915
|
-
class:
|
|
4935
|
+
m("div", Za, [
|
|
4936
|
+
(d(!0), b(N, null, q(t.value, (r, p) => (d(), b("div", {
|
|
4937
|
+
class: F(["d-flex cursor-pointer", {
|
|
4916
4938
|
"border-top": p !== 0,
|
|
4917
4939
|
"py-1": p !== 0 && t.value.length - 1 !== p,
|
|
4918
4940
|
"pt-1": t.value.length - 1 === p,
|
|
@@ -4934,35 +4956,61 @@ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disable
|
|
|
4934
4956
|
}, 512)
|
|
4935
4957
|
], 64));
|
|
4936
4958
|
}
|
|
4959
|
+
}), Ki = /* @__PURE__ */ B({
|
|
4960
|
+
__name: "ForgePanel",
|
|
4961
|
+
setup(e) {
|
|
4962
|
+
return (t, a) => {
|
|
4963
|
+
const i = Re;
|
|
4964
|
+
return d(), f(i, K(Z({ ...t.$attrs })), {
|
|
4965
|
+
toggleicon: g(({ collapsed: l }) => [
|
|
4966
|
+
l ? (d(), f(c(T), {
|
|
4967
|
+
key: 0,
|
|
4968
|
+
"data-cy": "message-icon",
|
|
4969
|
+
icon: "bi:chevron-down"
|
|
4970
|
+
})) : C("", !0),
|
|
4971
|
+
l ? C("", !0) : (d(), f(c(T), {
|
|
4972
|
+
key: 1,
|
|
4973
|
+
"data-cy": "message-icon",
|
|
4974
|
+
icon: "bi:chevron-up"
|
|
4975
|
+
}))
|
|
4976
|
+
]),
|
|
4977
|
+
default: g(() => [
|
|
4978
|
+
k(t.$slots, "default")
|
|
4979
|
+
]),
|
|
4980
|
+
_: 3
|
|
4981
|
+
}, 16);
|
|
4982
|
+
};
|
|
4983
|
+
}
|
|
4937
4984
|
});
|
|
4938
4985
|
export {
|
|
4939
|
-
|
|
4940
|
-
|
|
4986
|
+
Ti as Bootstrap_PT,
|
|
4987
|
+
ji as ForgeActionButton,
|
|
4941
4988
|
se as ForgeAlert,
|
|
4942
|
-
|
|
4989
|
+
Ii as ForgeAutoComplete,
|
|
4943
4990
|
fe as ForgeCheckbox,
|
|
4944
|
-
|
|
4945
|
-
|
|
4991
|
+
qi as ForgeChip,
|
|
4992
|
+
Ji as ForgeColumnCustomiser,
|
|
4946
4993
|
be as ForgeDatepicker,
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4994
|
+
Gi as ForgeFileUploader,
|
|
4995
|
+
Yi as ForgeFilterHeader,
|
|
4996
|
+
Ui as ForgeForm,
|
|
4997
|
+
Ai as ForgeFormField,
|
|
4998
|
+
Dt as ForgeInlineEditor,
|
|
4999
|
+
_i as ForgeLink,
|
|
4953
5000
|
ge as ForgeLoader,
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
Ri as
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
5001
|
+
Mi as ForgeModal,
|
|
5002
|
+
Et as ForgeMultiSelectPreview,
|
|
5003
|
+
Di as ForgeNavbar,
|
|
5004
|
+
Oi as ForgePageHeader,
|
|
5005
|
+
Ki as ForgePanel,
|
|
5006
|
+
Qt as ForgeProgressBar,
|
|
5007
|
+
Ni as ForgeRemainingCharacters,
|
|
5008
|
+
Ei as ForgeScratchpad,
|
|
5009
|
+
Li as ForgeStatWidget,
|
|
5010
|
+
Ri as ForgeStepper,
|
|
5011
|
+
Wi as ForgeTable,
|
|
5012
|
+
Hi as ForgeTile,
|
|
5013
|
+
Vi as convertToMultiSelectOption,
|
|
5014
|
+
Pi as enumToMultiSelectList,
|
|
5015
|
+
Ct as parseError
|
|
4968
5016
|
};
|