@3squared/forge-ui-3 0.16.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/forge-ui-3.js +824 -731
- package/dist/esm/style.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/src/components/file-uploader/ForgeFileUploader.vue.d.ts +4 -4
- package/dist/src/components/file-uploader/components/DragDropArea.vue.d.ts +3 -3
- package/dist/src/components/file-uploader/components/UploadButton.vue.d.ts +3 -3
- package/dist/src/components/table/ForgeColumnCustomiser.vue.d.ts +14 -0
- package/dist/src/components/table/ForgeTable.vue.d.ts +1 -0
- package/dist/src/types/forge-types.d.ts +4 -0
- package/package.json +7 -7
- package/src/styles/components/_file-uploader.scss +4 -0
- package/src/styles/components/_table.scss +4 -0
- package/src/types/forge-types.ts +5 -0
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as F, openBlock as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import ge from "primevue/message";
|
|
2
|
+
import { defineComponent as F, openBlock as r, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as f, createElementVNode as c, normalizeClass as B, unref as p, createCommentVNode as S, createVNode as y, renderSlot as $, ref as P, createElementBlock as b, Fragment as N, mergeProps as V, mergeModels as R, useModel as U, computed as x, createTextVNode as z, toDisplayString as h, withDirectives as j, vShow as q, createSlots as te, renderList as H, onMounted as le, isRef as se, withKeys as J, useAttrs as he, withModifiers as Y, normalizeStyle as we, watch as de } from "vue";
|
|
3
|
+
import { Icon as _ } from "@iconify/vue";
|
|
4
|
+
import E from "primevue/button";
|
|
5
|
+
import ke from "primevue/toast";
|
|
6
|
+
import ue from "primevue/checkbox";
|
|
7
7
|
import { useField as K } from "vee-validate";
|
|
8
8
|
import xe from "primevue/progressspinner";
|
|
9
|
-
import
|
|
9
|
+
import $e from "primevue/dialog";
|
|
10
10
|
import ie from "primevue/inputtext";
|
|
11
|
-
import { vOnClickOutside as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
11
|
+
import { vOnClickOutside as Be } from "@vueuse/components";
|
|
12
|
+
import Fe from "primevue/menubar";
|
|
13
|
+
import _e from "vue-multiselect";
|
|
14
|
+
import Ve from "primevue/calendar";
|
|
15
|
+
import ae from "primevue/dropdown";
|
|
16
16
|
import Se from "primevue/inputmask";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import { BlockBlobClient as
|
|
26
|
-
import
|
|
27
|
-
|
|
17
|
+
import Ce from "primevue/textarea";
|
|
18
|
+
import ce from "primevue/inputnumber";
|
|
19
|
+
import Te from "primevue/chips";
|
|
20
|
+
import Pe from "primevue/progressbar";
|
|
21
|
+
import Me from "primevue/divider";
|
|
22
|
+
import Ie from "primevue/steps";
|
|
23
|
+
import ze from "primevue/datatable";
|
|
24
|
+
import Oe from "primevue/multiselect";
|
|
25
|
+
import { BlockBlobClient as me } from "@azure/storage-blob";
|
|
26
|
+
import pe from "primevue/overlaypanel";
|
|
27
|
+
import De from "primevue/image";
|
|
28
|
+
const Ue = {
|
|
28
29
|
button: {
|
|
29
30
|
root: ({ props: e }) => ({
|
|
30
31
|
class: [
|
|
@@ -115,7 +116,7 @@ const De = {
|
|
|
115
116
|
]
|
|
116
117
|
})
|
|
117
118
|
}
|
|
118
|
-
},
|
|
119
|
+
}, Ae = {
|
|
119
120
|
checkbox: {
|
|
120
121
|
root: () => ({
|
|
121
122
|
class: [
|
|
@@ -133,7 +134,7 @@ const De = {
|
|
|
133
134
|
]
|
|
134
135
|
})
|
|
135
136
|
}
|
|
136
|
-
},
|
|
137
|
+
}, Ne = {
|
|
137
138
|
dropdown: {
|
|
138
139
|
root: ({ props: e }) => ({
|
|
139
140
|
class: [
|
|
@@ -200,7 +201,7 @@ const De = {
|
|
|
200
201
|
]
|
|
201
202
|
})
|
|
202
203
|
}
|
|
203
|
-
},
|
|
204
|
+
}, Ee = {
|
|
204
205
|
column: {
|
|
205
206
|
sortBadge: "ms-2 my-auto cursor-pointer",
|
|
206
207
|
headerCell: (e) => {
|
|
@@ -247,7 +248,7 @@ const De = {
|
|
|
247
248
|
class: [
|
|
248
249
|
"btn",
|
|
249
250
|
{
|
|
250
|
-
"d-none": e.filters[e.field].value === null
|
|
251
|
+
"d-none": e.filters[e.field] ? e.filters[e.field].value === null : !1
|
|
251
252
|
}
|
|
252
253
|
]
|
|
253
254
|
}),
|
|
@@ -301,7 +302,7 @@ const De = {
|
|
|
301
302
|
]
|
|
302
303
|
})
|
|
303
304
|
}
|
|
304
|
-
},
|
|
305
|
+
}, Le = {
|
|
305
306
|
inputtext: {
|
|
306
307
|
root: (e) => {
|
|
307
308
|
var t, l;
|
|
@@ -316,7 +317,7 @@ const De = {
|
|
|
316
317
|
};
|
|
317
318
|
}
|
|
318
319
|
}
|
|
319
|
-
},
|
|
320
|
+
}, Re = {
|
|
320
321
|
inputmask: {
|
|
321
322
|
root: () => ({
|
|
322
323
|
class: [
|
|
@@ -324,12 +325,12 @@ const De = {
|
|
|
324
325
|
]
|
|
325
326
|
})
|
|
326
327
|
}
|
|
327
|
-
},
|
|
328
|
+
}, je = {
|
|
328
329
|
inputSwitch: {
|
|
329
330
|
root: "form-check form-switch",
|
|
330
331
|
input: "form-check-input"
|
|
331
332
|
}
|
|
332
|
-
},
|
|
333
|
+
}, He = {
|
|
333
334
|
textarea: {
|
|
334
335
|
root: () => ({
|
|
335
336
|
class: [
|
|
@@ -337,13 +338,13 @@ const De = {
|
|
|
337
338
|
]
|
|
338
339
|
})
|
|
339
340
|
}
|
|
340
|
-
},
|
|
341
|
+
}, qe = {
|
|
341
342
|
// More PassThrough options in component file.
|
|
342
343
|
chips: {
|
|
343
344
|
root: "d-flex",
|
|
344
345
|
label: "pe-2"
|
|
345
346
|
}
|
|
346
|
-
},
|
|
347
|
+
}, Ye = {
|
|
347
348
|
dialog: {
|
|
348
349
|
header: () => ({
|
|
349
350
|
class: ["modal-header"]
|
|
@@ -386,7 +387,7 @@ const De = {
|
|
|
386
387
|
]
|
|
387
388
|
})
|
|
388
389
|
}
|
|
389
|
-
},
|
|
390
|
+
}, Ge = {
|
|
390
391
|
overlaypanel: {
|
|
391
392
|
root: (e) => ({
|
|
392
393
|
class: [
|
|
@@ -400,7 +401,7 @@ const De = {
|
|
|
400
401
|
content: "d-flex position-relative",
|
|
401
402
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
402
403
|
}
|
|
403
|
-
},
|
|
404
|
+
}, Ke = {
|
|
404
405
|
message: {
|
|
405
406
|
root: ({ props: e }) => ({
|
|
406
407
|
class: [
|
|
@@ -429,13 +430,13 @@ const De = {
|
|
|
429
430
|
class: ["px-0 ms-2 btn d-flex"]
|
|
430
431
|
})
|
|
431
432
|
}
|
|
432
|
-
},
|
|
433
|
+
}, We = {
|
|
433
434
|
// More PT options defined in ForgeStepper.
|
|
434
435
|
steps: {
|
|
435
436
|
root: "w-100 mx-2 line",
|
|
436
437
|
menu: "p-0 m-0 list-unstyled d-flex justify-content-between "
|
|
437
438
|
}
|
|
438
|
-
},
|
|
439
|
+
}, Ze = {
|
|
439
440
|
tabview: {
|
|
440
441
|
navContainer: () => ({
|
|
441
442
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -473,7 +474,7 @@ const De = {
|
|
|
473
474
|
class: ["p-2"]
|
|
474
475
|
})
|
|
475
476
|
}
|
|
476
|
-
},
|
|
477
|
+
}, Je = {
|
|
477
478
|
// More PassThrough options defined in ForgeDatepicker.
|
|
478
479
|
calendar: {
|
|
479
480
|
root: "d-inline-flex relative w-100",
|
|
@@ -546,7 +547,7 @@ const De = {
|
|
|
546
547
|
decrementButton: "btn btn-sm",
|
|
547
548
|
incrementButton: "btn btn-sm"
|
|
548
549
|
}
|
|
549
|
-
},
|
|
550
|
+
}, Xe = {
|
|
550
551
|
multiselect: {
|
|
551
552
|
root: ({ props: e }) => ({
|
|
552
553
|
class: [
|
|
@@ -577,7 +578,7 @@ const De = {
|
|
|
577
578
|
]
|
|
578
579
|
})
|
|
579
580
|
}
|
|
580
|
-
},
|
|
581
|
+
}, Qe = {
|
|
581
582
|
// More PassThrough options in component file.
|
|
582
583
|
progressbar: {
|
|
583
584
|
root: () => ({
|
|
@@ -590,7 +591,7 @@ const De = {
|
|
|
590
591
|
class: ["text-white"]
|
|
591
592
|
})
|
|
592
593
|
}
|
|
593
|
-
},
|
|
594
|
+
}, et = {
|
|
594
595
|
// More PT options can be found in the ForgeTable file.
|
|
595
596
|
dataTable: {
|
|
596
597
|
datatable: "position-relative",
|
|
@@ -650,7 +651,7 @@ const De = {
|
|
|
650
651
|
]
|
|
651
652
|
})
|
|
652
653
|
}
|
|
653
|
-
},
|
|
654
|
+
}, tt = {
|
|
654
655
|
badge: {
|
|
655
656
|
root: ({ props: e }) => ({
|
|
656
657
|
class: [
|
|
@@ -671,7 +672,7 @@ const De = {
|
|
|
671
672
|
]
|
|
672
673
|
})
|
|
673
674
|
}
|
|
674
|
-
},
|
|
675
|
+
}, lt = {
|
|
675
676
|
// More PassThrough options in component file.
|
|
676
677
|
menubar: {
|
|
677
678
|
menu: ({ instance: e }) => ({
|
|
@@ -741,7 +742,7 @@ const De = {
|
|
|
741
742
|
]
|
|
742
743
|
})
|
|
743
744
|
}
|
|
744
|
-
},
|
|
745
|
+
}, at = {
|
|
745
746
|
tooltip: {
|
|
746
747
|
root: ({ context: e }) => ({
|
|
747
748
|
class: [
|
|
@@ -763,7 +764,7 @@ const De = {
|
|
|
763
764
|
class: ["tooltip-inner"]
|
|
764
765
|
}
|
|
765
766
|
}
|
|
766
|
-
},
|
|
767
|
+
}, ot = {
|
|
767
768
|
selectbutton: {
|
|
768
769
|
root: () => ({
|
|
769
770
|
class: ["btn-group"]
|
|
@@ -781,7 +782,7 @@ const De = {
|
|
|
781
782
|
]
|
|
782
783
|
})
|
|
783
784
|
}
|
|
784
|
-
},
|
|
785
|
+
}, nt = {
|
|
785
786
|
progressspinner: {
|
|
786
787
|
spinner: () => ({
|
|
787
788
|
class: [
|
|
@@ -789,7 +790,7 @@ const De = {
|
|
|
789
790
|
]
|
|
790
791
|
})
|
|
791
792
|
}
|
|
792
|
-
},
|
|
793
|
+
}, st = {
|
|
793
794
|
card: {
|
|
794
795
|
root: () => ({
|
|
795
796
|
class: ["card"]
|
|
@@ -813,11 +814,11 @@ const De = {
|
|
|
813
814
|
class: ["card-header"]
|
|
814
815
|
})
|
|
815
816
|
}
|
|
816
|
-
},
|
|
817
|
+
}, it = {
|
|
817
818
|
divider: {
|
|
818
819
|
root: "border-bottom w-100 m-1"
|
|
819
820
|
}
|
|
820
|
-
},
|
|
821
|
+
}, rt = {
|
|
821
822
|
image: {
|
|
822
823
|
root: "position-relative d-inline-block",
|
|
823
824
|
button: "preview-button",
|
|
@@ -830,7 +831,7 @@ const De = {
|
|
|
830
831
|
zoominbutton: "btn text-white",
|
|
831
832
|
closebutton: "btn text-white"
|
|
832
833
|
}
|
|
833
|
-
},
|
|
834
|
+
}, dt = {
|
|
834
835
|
toast: {
|
|
835
836
|
message: () => ({
|
|
836
837
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -868,37 +869,37 @@ const De = {
|
|
|
868
869
|
};
|
|
869
870
|
}
|
|
870
871
|
}
|
|
871
|
-
},
|
|
872
|
-
...
|
|
873
|
-
...De,
|
|
874
|
-
...nt,
|
|
872
|
+
}, wa = {
|
|
873
|
+
...tt,
|
|
875
874
|
...Ue,
|
|
876
|
-
...He,
|
|
877
|
-
...Ne,
|
|
878
|
-
...Ze,
|
|
879
|
-
...qe,
|
|
880
875
|
...st,
|
|
881
876
|
...Ae,
|
|
882
|
-
...
|
|
877
|
+
...qe,
|
|
883
878
|
...Ee,
|
|
884
|
-
...Le,
|
|
885
|
-
...Re,
|
|
886
|
-
...Ge,
|
|
887
879
|
...Je,
|
|
888
|
-
...tt,
|
|
889
880
|
...Ye,
|
|
890
|
-
...
|
|
891
|
-
...
|
|
892
|
-
...
|
|
881
|
+
...it,
|
|
882
|
+
...Ne,
|
|
883
|
+
...rt,
|
|
884
|
+
...Le,
|
|
885
|
+
...Re,
|
|
886
|
+
...je,
|
|
893
887
|
...Ke,
|
|
888
|
+
...Xe,
|
|
889
|
+
...lt,
|
|
890
|
+
...Ge,
|
|
894
891
|
...Qe,
|
|
892
|
+
...nt,
|
|
893
|
+
...ot,
|
|
895
894
|
...We,
|
|
896
|
-
...
|
|
897
|
-
...
|
|
895
|
+
...et,
|
|
896
|
+
...Ze,
|
|
897
|
+
...dt,
|
|
898
|
+
...He,
|
|
898
899
|
directives: {
|
|
899
|
-
...
|
|
900
|
+
...at
|
|
900
901
|
}
|
|
901
|
-
},
|
|
902
|
+
}, oe = /* @__PURE__ */ F({
|
|
902
903
|
__name: "ForgeAlert",
|
|
903
904
|
props: {
|
|
904
905
|
severity: { default: "primary" },
|
|
@@ -915,13 +916,13 @@ const De = {
|
|
|
915
916
|
setup(e) {
|
|
916
917
|
const t = e;
|
|
917
918
|
return (l, o) => {
|
|
918
|
-
const a =
|
|
919
|
-
return
|
|
920
|
-
messageicon:
|
|
919
|
+
const a = ge;
|
|
920
|
+
return r(), w(a, Q(ee({ ...l.$attrs, ...t })), {
|
|
921
|
+
messageicon: f(() => [
|
|
921
922
|
c("div", {
|
|
922
923
|
class: B(t.icon ? "me-2 pe-1" : "")
|
|
923
924
|
}, [
|
|
924
|
-
t.icon ? (
|
|
925
|
+
t.icon ? (r(), w(p(_), {
|
|
925
926
|
key: 0,
|
|
926
927
|
"data-cy": "message-icon",
|
|
927
928
|
icon: t.icon,
|
|
@@ -930,17 +931,17 @@ const De = {
|
|
|
930
931
|
}, null, 8, ["icon", "class"])) : S("", !0)
|
|
931
932
|
], 2)
|
|
932
933
|
]),
|
|
933
|
-
closeicon:
|
|
934
|
-
|
|
934
|
+
closeicon: f(() => [
|
|
935
|
+
y(p(_), { icon: "bi:x" })
|
|
935
936
|
]),
|
|
936
|
-
default:
|
|
937
|
+
default: f(() => [
|
|
937
938
|
$(l.$slots, "default")
|
|
938
939
|
]),
|
|
939
940
|
_: 3
|
|
940
941
|
}, 16);
|
|
941
942
|
};
|
|
942
943
|
}
|
|
943
|
-
}),
|
|
944
|
+
}), ka = /* @__PURE__ */ F({
|
|
944
945
|
__name: "ForgeActionButton",
|
|
945
946
|
props: {
|
|
946
947
|
action: {},
|
|
@@ -949,7 +950,7 @@ const De = {
|
|
|
949
950
|
params: { default: Array }
|
|
950
951
|
},
|
|
951
952
|
setup(e) {
|
|
952
|
-
const t =
|
|
953
|
+
const t = P(!1), l = e, o = async () => {
|
|
953
954
|
t.value = !0;
|
|
954
955
|
try {
|
|
955
956
|
await l.action.apply(this, l.params);
|
|
@@ -959,20 +960,20 @@ const De = {
|
|
|
959
960
|
t.value = !1;
|
|
960
961
|
};
|
|
961
962
|
return (a, n) => {
|
|
962
|
-
const d =
|
|
963
|
-
return
|
|
964
|
-
|
|
963
|
+
const d = E;
|
|
964
|
+
return r(), b(N, null, [
|
|
965
|
+
y(d, V({ ...l, ...a.$attrs }, {
|
|
965
966
|
loading: t.value,
|
|
966
967
|
disabled: t.value || l.disabled,
|
|
967
968
|
onClick: o
|
|
968
969
|
}), null, 16, ["loading", "disabled"]),
|
|
969
|
-
|
|
970
|
+
y(p(ke))
|
|
970
971
|
], 64);
|
|
971
972
|
};
|
|
972
973
|
}
|
|
973
|
-
}),
|
|
974
|
+
}), ut = { class: "d-flex flex-column" }, ct = ["for"], mt = /* @__PURE__ */ F({
|
|
974
975
|
__name: "ForgeCheckbox",
|
|
975
|
-
props: /* @__PURE__ */
|
|
976
|
+
props: /* @__PURE__ */ R({
|
|
976
977
|
label: { default: "" },
|
|
977
978
|
value: {},
|
|
978
979
|
modelValue: {},
|
|
@@ -1000,49 +1001,49 @@ const De = {
|
|
|
1000
1001
|
}),
|
|
1001
1002
|
emits: ["update:modelValue"],
|
|
1002
1003
|
setup(e) {
|
|
1003
|
-
const t = e, l =
|
|
1004
|
+
const t = e, l = U(e, "modelValue"), {
|
|
1004
1005
|
handleChange: o,
|
|
1005
1006
|
errors: a,
|
|
1006
1007
|
errorMessage: n
|
|
1007
1008
|
} = K(() => t.name ?? "", void 0, {
|
|
1008
1009
|
type: "checkbox",
|
|
1009
1010
|
checkedValue: l.value
|
|
1010
|
-
}), d =
|
|
1011
|
-
return (
|
|
1012
|
-
const
|
|
1013
|
-
return
|
|
1014
|
-
c("div",
|
|
1011
|
+
}), d = x(() => a.value.length > 0);
|
|
1012
|
+
return (i, u) => {
|
|
1013
|
+
const m = ue;
|
|
1014
|
+
return r(), b("div", ut, [
|
|
1015
|
+
c("div", V({
|
|
1015
1016
|
class: "d-flex cursor-pointer",
|
|
1016
1017
|
"data-cy": "checkbox-container",
|
|
1017
|
-
onClick: u[2] || (u[2] = (
|
|
1018
|
-
}, { ...
|
|
1019
|
-
|
|
1018
|
+
onClick: u[2] || (u[2] = (v) => p(o)(l.value))
|
|
1019
|
+
}, { ...i.$attrs }), [
|
|
1020
|
+
y(m, V({ ...t }, {
|
|
1020
1021
|
binary: "",
|
|
1021
1022
|
modelValue: l.value,
|
|
1022
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1023
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => l.value = v),
|
|
1023
1024
|
"input-id": t.name,
|
|
1024
1025
|
"input-class": { "is-invalid": d.value }
|
|
1025
1026
|
}), null, 16, ["modelValue", "input-id", "input-class"]),
|
|
1026
1027
|
c("label", {
|
|
1027
1028
|
for: t.name,
|
|
1028
|
-
onClick: u[1] || (u[1] = (
|
|
1029
|
+
onClick: u[1] || (u[1] = (v) => p(o)(l.value)),
|
|
1029
1030
|
class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${d.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1030
1031
|
}, [
|
|
1031
|
-
$(
|
|
1032
|
-
|
|
1032
|
+
$(i.$slots, "default", {}, () => [
|
|
1033
|
+
z(h(t.label), 1)
|
|
1033
1034
|
])
|
|
1034
|
-
], 10,
|
|
1035
|
+
], 10, ct)
|
|
1035
1036
|
], 16),
|
|
1036
1037
|
j(c("small", {
|
|
1037
1038
|
"data-cy": "error",
|
|
1038
1039
|
class: "text-invalid"
|
|
1039
|
-
}, h(
|
|
1040
|
-
[
|
|
1040
|
+
}, h(p(n)), 513), [
|
|
1041
|
+
[q, d.value]
|
|
1041
1042
|
])
|
|
1042
1043
|
]);
|
|
1043
1044
|
};
|
|
1044
1045
|
}
|
|
1045
|
-
}),
|
|
1046
|
+
}), pt = { class: "forge-loader" }, ve = /* @__PURE__ */ F({
|
|
1046
1047
|
__name: "ForgeLoader",
|
|
1047
1048
|
props: {
|
|
1048
1049
|
severity: { default: "primary" }
|
|
@@ -1051,15 +1052,15 @@ const De = {
|
|
|
1051
1052
|
const t = e;
|
|
1052
1053
|
return (l, o) => {
|
|
1053
1054
|
const a = xe;
|
|
1054
|
-
return
|
|
1055
|
-
|
|
1055
|
+
return r(), b("div", pt, [
|
|
1056
|
+
y(a, {
|
|
1056
1057
|
"animation-duration": ".75",
|
|
1057
1058
|
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1058
1059
|
}, null, 8, ["class"])
|
|
1059
1060
|
]);
|
|
1060
1061
|
};
|
|
1061
1062
|
}
|
|
1062
|
-
}),
|
|
1063
|
+
}), vt = ["href", "target"], xa = /* @__PURE__ */ F({
|
|
1063
1064
|
__name: "ForgeLink",
|
|
1064
1065
|
props: {
|
|
1065
1066
|
url: {},
|
|
@@ -1077,7 +1078,7 @@ const De = {
|
|
|
1077
1078
|
iconName: {}
|
|
1078
1079
|
},
|
|
1079
1080
|
setup(e) {
|
|
1080
|
-
const t =
|
|
1081
|
+
const t = x(() => ({
|
|
1081
1082
|
[`link-${e.severity}`]: e.severity,
|
|
1082
1083
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1083
1084
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1086,29 +1087,29 @@ const De = {
|
|
|
1086
1087
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1087
1088
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1088
1089
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1089
|
-
})), l =
|
|
1090
|
+
})), l = x(() => ({
|
|
1090
1091
|
"order-2": e.positionIconEnd,
|
|
1091
1092
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1092
1093
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
1093
1094
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1094
1095
|
"me-0": e.animateIconOnHover
|
|
1095
1096
|
}));
|
|
1096
|
-
return (o, a) => (
|
|
1097
|
+
return (o, a) => (r(), b("a", {
|
|
1097
1098
|
id: "link",
|
|
1098
1099
|
class: B(["cursor-pointer d-flex text-break", t.value]),
|
|
1099
1100
|
href: o.url,
|
|
1100
1101
|
target: o.target
|
|
1101
1102
|
}, [
|
|
1102
1103
|
$(o.$slots, "default", {}, () => [
|
|
1103
|
-
o.iconName ? (
|
|
1104
|
+
o.iconName ? (r(), w(p(_), {
|
|
1104
1105
|
key: 0,
|
|
1105
1106
|
id: "link-icon",
|
|
1106
1107
|
icon: o.iconName,
|
|
1107
1108
|
class: B(["bi my-auto", l.value])
|
|
1108
1109
|
}, null, 8, ["icon", "class"])) : S("", !0),
|
|
1109
|
-
|
|
1110
|
+
z(" " + h(o.label), 1)
|
|
1110
1111
|
])
|
|
1111
|
-
], 10,
|
|
1112
|
+
], 10, vt));
|
|
1112
1113
|
}
|
|
1113
1114
|
});
|
|
1114
1115
|
function yt(e) {
|
|
@@ -1122,18 +1123,18 @@ function yt(e) {
|
|
|
1122
1123
|
}
|
|
1123
1124
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1124
1125
|
}
|
|
1125
|
-
function
|
|
1126
|
+
function $a(e, t) {
|
|
1126
1127
|
return e.map((l) => ({ id: l, label: t ? t(l) : `${l}` }));
|
|
1127
1128
|
}
|
|
1128
|
-
function
|
|
1129
|
+
function Ba(e, t, l) {
|
|
1129
1130
|
return { id: e, label: t ?? e.toString(), shortLabel: l };
|
|
1130
1131
|
}
|
|
1131
|
-
const
|
|
1132
|
+
const bt = { key: 0 }, ft = {
|
|
1132
1133
|
class: "d-flex w-100",
|
|
1133
1134
|
"data-cy": "footer"
|
|
1134
|
-
},
|
|
1135
|
+
}, Fa = /* @__PURE__ */ F({
|
|
1135
1136
|
__name: "ForgeModal",
|
|
1136
|
-
props: /* @__PURE__ */
|
|
1137
|
+
props: /* @__PURE__ */ R({
|
|
1137
1138
|
cancelText: { default: "Cancel" },
|
|
1138
1139
|
submitText: { default: "Submit" },
|
|
1139
1140
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1177,17 +1178,17 @@ const vt = { key: 0 }, bt = {
|
|
|
1177
1178
|
}),
|
|
1178
1179
|
emits: ["update:visible"],
|
|
1179
1180
|
setup(e) {
|
|
1180
|
-
const t =
|
|
1181
|
+
const t = U(e, "visible"), l = P(!1), o = e, a = P(!1), n = P({
|
|
1181
1182
|
hasError: !1,
|
|
1182
1183
|
header: "",
|
|
1183
1184
|
message: []
|
|
1184
1185
|
}), d = () => {
|
|
1185
1186
|
l.value = !1;
|
|
1186
|
-
},
|
|
1187
|
+
}, i = () => {
|
|
1187
1188
|
l.value = !0;
|
|
1188
1189
|
}, u = () => {
|
|
1189
1190
|
t.value = !1;
|
|
1190
|
-
},
|
|
1191
|
+
}, m = async () => {
|
|
1191
1192
|
if (o.onConfirm) {
|
|
1192
1193
|
a.value = !0, n.value.hasError = !1;
|
|
1193
1194
|
try {
|
|
@@ -1195,12 +1196,12 @@ const vt = { key: 0 }, bt = {
|
|
|
1195
1196
|
(s || s == null) && u();
|
|
1196
1197
|
} catch (s) {
|
|
1197
1198
|
n.value.hasError = !0;
|
|
1198
|
-
const
|
|
1199
|
-
n.value.header =
|
|
1199
|
+
const C = yt(s);
|
|
1200
|
+
n.value.header = C.errorMessage, n.value.message = C.errorDetails;
|
|
1200
1201
|
}
|
|
1201
1202
|
a.value = !1;
|
|
1202
1203
|
}
|
|
1203
|
-
},
|
|
1204
|
+
}, v = x(() => ({
|
|
1204
1205
|
root: [
|
|
1205
1206
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1206
1207
|
{
|
|
@@ -1211,15 +1212,15 @@ const vt = { key: 0 }, bt = {
|
|
|
1211
1212
|
}
|
|
1212
1213
|
]
|
|
1213
1214
|
}));
|
|
1214
|
-
return (s,
|
|
1215
|
-
const
|
|
1216
|
-
return
|
|
1217
|
-
onMaximize:
|
|
1215
|
+
return (s, C) => {
|
|
1216
|
+
const T = E, M = $e;
|
|
1217
|
+
return r(), w(M, V(o, {
|
|
1218
|
+
onMaximize: i,
|
|
1218
1219
|
onUnmaximize: d,
|
|
1219
|
-
pt:
|
|
1220
|
+
pt: v.value
|
|
1220
1221
|
}), te({
|
|
1221
|
-
closeicon:
|
|
1222
|
-
|
|
1222
|
+
closeicon: f(() => [
|
|
1223
|
+
y(p(_), {
|
|
1223
1224
|
"data-cy": "close-icon",
|
|
1224
1225
|
icon: "bi:x-lg",
|
|
1225
1226
|
width: "18",
|
|
@@ -1227,8 +1228,8 @@ const vt = { key: 0 }, bt = {
|
|
|
1227
1228
|
onClick: u
|
|
1228
1229
|
})
|
|
1229
1230
|
]),
|
|
1230
|
-
maximizeicon:
|
|
1231
|
-
|
|
1231
|
+
maximizeicon: f(() => [
|
|
1232
|
+
y(p(_), {
|
|
1232
1233
|
"data-cy": "maximisable-icon",
|
|
1233
1234
|
icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1234
1235
|
width: "16",
|
|
@@ -1237,35 +1238,35 @@ const vt = { key: 0 }, bt = {
|
|
|
1237
1238
|
]),
|
|
1238
1239
|
_: 2
|
|
1239
1240
|
}, [
|
|
1240
|
-
|
|
1241
|
-
name:
|
|
1242
|
-
fn:
|
|
1243
|
-
n.value.hasError ? (
|
|
1241
|
+
H(s.$slots, (I, O) => ({
|
|
1242
|
+
name: O,
|
|
1243
|
+
fn: f((g) => [
|
|
1244
|
+
n.value.hasError ? (r(), w(oe, {
|
|
1244
1245
|
key: 0,
|
|
1245
1246
|
severity: "danger",
|
|
1246
1247
|
"data-cy": "error"
|
|
1247
1248
|
}, {
|
|
1248
|
-
default:
|
|
1249
|
+
default: f(() => [
|
|
1249
1250
|
c("p", {
|
|
1250
1251
|
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1251
1252
|
}, h(n.value.header), 3),
|
|
1252
|
-
n.value.message.length > 0 ? (
|
|
1253
|
-
(
|
|
1253
|
+
n.value.message.length > 0 ? (r(), b("ul", bt, [
|
|
1254
|
+
(r(!0), b(N, null, H(n.value.message, (k) => (r(), b("li", { key: k }, h(k), 1))), 128))
|
|
1254
1255
|
])) : S("", !0)
|
|
1255
1256
|
]),
|
|
1256
1257
|
_: 1
|
|
1257
1258
|
})) : S("", !0),
|
|
1258
|
-
$(s.$slots,
|
|
1259
|
+
$(s.$slots, O, Q(ee(g || {}))),
|
|
1259
1260
|
a.value ? $(s.$slots, "loader", { key: 1 }, () => [
|
|
1260
|
-
|
|
1261
|
+
y(ve, { "data-cy": "loader" })
|
|
1261
1262
|
]) : S("", !0)
|
|
1262
1263
|
])
|
|
1263
1264
|
})),
|
|
1264
1265
|
s.showFooter ? {
|
|
1265
1266
|
name: "footer",
|
|
1266
|
-
fn:
|
|
1267
|
-
c("div",
|
|
1268
|
-
|
|
1267
|
+
fn: f(() => [
|
|
1268
|
+
c("div", ft, [
|
|
1269
|
+
y(T, {
|
|
1269
1270
|
label: s.cancelText,
|
|
1270
1271
|
class: B(o.cancelClass),
|
|
1271
1272
|
outlined: "",
|
|
@@ -1273,10 +1274,10 @@ const vt = { key: 0 }, bt = {
|
|
|
1273
1274
|
id: "cancel-button",
|
|
1274
1275
|
type: o.cancelButtonType
|
|
1275
1276
|
}, null, 8, ["label", "class", "type"]),
|
|
1276
|
-
|
|
1277
|
+
y(T, {
|
|
1277
1278
|
label: s.submitText,
|
|
1278
1279
|
class: B([o.submitClass, "ms-auto"]),
|
|
1279
|
-
onClick:
|
|
1280
|
+
onClick: m,
|
|
1280
1281
|
id: "submit-button",
|
|
1281
1282
|
type: o.submitButtonType
|
|
1282
1283
|
}, null, 8, ["label", "class", "type"])
|
|
@@ -1287,9 +1288,9 @@ const vt = { key: 0 }, bt = {
|
|
|
1287
1288
|
]), 1040, ["pt"]);
|
|
1288
1289
|
};
|
|
1289
1290
|
}
|
|
1290
|
-
}),
|
|
1291
|
+
}), gt = ["id"], ht = { key: 0 }, wt = { key: 0 }, kt = { class: "d-flex justify-content-between align-items-center position-relative" }, xt = { key: 1 }, $t = { "data-cy": "readonly-value" }, Bt = /* @__PURE__ */ F({
|
|
1291
1292
|
__name: "ForgeInlineEditor",
|
|
1292
|
-
props: /* @__PURE__ */
|
|
1293
|
+
props: /* @__PURE__ */ R({
|
|
1293
1294
|
name: { default: "" },
|
|
1294
1295
|
completeAction: {},
|
|
1295
1296
|
errorAction: {},
|
|
@@ -1302,11 +1303,11 @@ const vt = { key: 0 }, bt = {
|
|
|
1302
1303
|
}),
|
|
1303
1304
|
emits: ["update:modelValue"],
|
|
1304
1305
|
setup(e) {
|
|
1305
|
-
const t = e, l =
|
|
1306
|
-
var
|
|
1307
|
-
o.value = !o.value, (
|
|
1306
|
+
const t = e, l = U(e, "modelValue"), o = P(!1), a = P(), n = () => {
|
|
1307
|
+
var T;
|
|
1308
|
+
o.value = !o.value, (T = a.value) == null || T.focus();
|
|
1308
1309
|
}, d = async () => {
|
|
1309
|
-
if (
|
|
1310
|
+
if (C.value)
|
|
1310
1311
|
return !1;
|
|
1311
1312
|
if (l.value = s.value, t.completeAction)
|
|
1312
1313
|
try {
|
|
@@ -1316,50 +1317,50 @@ const vt = { key: 0 }, bt = {
|
|
|
1316
1317
|
}
|
|
1317
1318
|
else
|
|
1318
1319
|
o.value = !o.value;
|
|
1319
|
-
},
|
|
1320
|
+
}, i = () => {
|
|
1320
1321
|
o.value = !o.value;
|
|
1321
1322
|
}, u = () => {
|
|
1322
1323
|
s.value = null;
|
|
1323
|
-
}, { errorMessage:
|
|
1324
|
+
}, { errorMessage: m, errors: v, value: s } = K(() => t.name, void 0, {
|
|
1324
1325
|
initialValue: l.value
|
|
1325
1326
|
});
|
|
1326
|
-
|
|
1327
|
+
le(() => {
|
|
1327
1328
|
s.value = l.value;
|
|
1328
1329
|
});
|
|
1329
|
-
const
|
|
1330
|
-
return (
|
|
1331
|
-
const
|
|
1332
|
-
return
|
|
1330
|
+
const C = x(() => v.value.length > 0);
|
|
1331
|
+
return (T, M) => {
|
|
1332
|
+
const I = ie, O = E;
|
|
1333
|
+
return r(), b("div", {
|
|
1333
1334
|
id: t.name
|
|
1334
1335
|
}, [
|
|
1335
|
-
|
|
1336
|
-
$(
|
|
1337
|
-
c("span",
|
|
1336
|
+
T.readonly ? (r(), b("div", xt, [
|
|
1337
|
+
$(T.$slots, "default", {}, () => [
|
|
1338
|
+
c("span", $t, h(p(s)), 1)
|
|
1338
1339
|
])
|
|
1339
|
-
])) : (
|
|
1340
|
-
o.value ? (
|
|
1341
|
-
j((
|
|
1342
|
-
$(
|
|
1343
|
-
class: B({ "is-invalid":
|
|
1340
|
+
])) : (r(), b("div", ht, [
|
|
1341
|
+
o.value ? (r(), b("div", wt, [
|
|
1342
|
+
j((r(), b("div", kt, [
|
|
1343
|
+
$(T.$slots, "editor", {
|
|
1344
|
+
class: B({ "is-invalid": C.value }),
|
|
1344
1345
|
editFinished: d,
|
|
1345
|
-
cancel:
|
|
1346
|
-
val:
|
|
1346
|
+
cancel: i,
|
|
1347
|
+
val: p(s)
|
|
1347
1348
|
}, () => [
|
|
1348
|
-
|
|
1349
|
+
y(I, {
|
|
1349
1350
|
"data-cy": "input",
|
|
1350
1351
|
ref_key: "input",
|
|
1351
1352
|
ref: a,
|
|
1352
|
-
modelValue:
|
|
1353
|
-
"onUpdate:modelValue":
|
|
1353
|
+
modelValue: p(s),
|
|
1354
|
+
"onUpdate:modelValue": M[0] || (M[0] = (g) => se(s) ? s.value = g : null),
|
|
1354
1355
|
modelModifiers: { trim: !0 },
|
|
1355
|
-
class: B({ "is-invalid":
|
|
1356
|
+
class: B({ "is-invalid": C.value }),
|
|
1356
1357
|
onKeydown: [
|
|
1357
1358
|
J(d, ["enter"]),
|
|
1358
|
-
J(
|
|
1359
|
+
J(i, ["esc"])
|
|
1359
1360
|
]
|
|
1360
1361
|
}, null, 8, ["modelValue", "class"])
|
|
1361
1362
|
]),
|
|
1362
|
-
|
|
1363
|
+
y(p(_), {
|
|
1363
1364
|
icon: "bi:x-circle",
|
|
1364
1365
|
class: "mx-2 cursor-pointer",
|
|
1365
1366
|
onClick: u,
|
|
@@ -1367,28 +1368,28 @@ const vt = { key: 0 }, bt = {
|
|
|
1367
1368
|
"data-cy": "clear-icon"
|
|
1368
1369
|
})
|
|
1369
1370
|
])), [
|
|
1370
|
-
[
|
|
1371
|
+
[p(Be), d]
|
|
1371
1372
|
])
|
|
1372
|
-
])) : (
|
|
1373
|
+
])) : (r(), b("div", {
|
|
1373
1374
|
key: 1,
|
|
1374
1375
|
class: "d-flex text-muted",
|
|
1375
1376
|
onClick: n,
|
|
1376
1377
|
onFocus: n
|
|
1377
1378
|
}, [
|
|
1378
|
-
$(
|
|
1379
|
+
$(T.$slots, "default", {}, () => [
|
|
1379
1380
|
c("div", {
|
|
1380
|
-
class: B(["pe-2 cursor-pointer", { "text-invalid":
|
|
1381
|
+
class: B(["pe-2 cursor-pointer", { "text-invalid": C.value }]),
|
|
1381
1382
|
"data-cy": "value"
|
|
1382
|
-
}, h(
|
|
1383
|
+
}, h(p(s) ? p(s) : "Click to edit"), 3)
|
|
1383
1384
|
]),
|
|
1384
|
-
|
|
1385
|
+
y(O, {
|
|
1385
1386
|
link: "",
|
|
1386
1387
|
class: "p-0 m-0"
|
|
1387
1388
|
}, {
|
|
1388
|
-
default:
|
|
1389
|
-
|
|
1389
|
+
default: f(() => [
|
|
1390
|
+
y(p(_), {
|
|
1390
1391
|
icon: "bi:pencil",
|
|
1391
|
-
class: B(
|
|
1392
|
+
class: B(C.value ? "text-invalid" : "text-muted"),
|
|
1392
1393
|
"data-cy": "edit-icon",
|
|
1393
1394
|
onKeydown: J(n, ["enter"])
|
|
1394
1395
|
}, null, 8, ["class"])
|
|
@@ -1400,13 +1401,13 @@ const vt = { key: 0 }, bt = {
|
|
|
1400
1401
|
j(c("small", {
|
|
1401
1402
|
"data-cy": "error",
|
|
1402
1403
|
class: "text-invalid"
|
|
1403
|
-
}, h(m
|
|
1404
|
-
[
|
|
1404
|
+
}, h(p(m)), 513), [
|
|
1405
|
+
[q, C.value]
|
|
1405
1406
|
])
|
|
1406
|
-
], 8,
|
|
1407
|
+
], 8, gt);
|
|
1407
1408
|
};
|
|
1408
1409
|
}
|
|
1409
|
-
}),
|
|
1410
|
+
}), Ft = ["href"], _a = /* @__PURE__ */ F({
|
|
1410
1411
|
__name: "ForgeNavbar",
|
|
1411
1412
|
props: {
|
|
1412
1413
|
severity: { default: "light" },
|
|
@@ -1423,7 +1424,7 @@ const vt = { key: 0 }, bt = {
|
|
|
1423
1424
|
unstyled: { type: Boolean }
|
|
1424
1425
|
},
|
|
1425
1426
|
setup(e) {
|
|
1426
|
-
const t = e, l =
|
|
1427
|
+
const t = e, l = x(() => ({
|
|
1427
1428
|
root: () => ({
|
|
1428
1429
|
class: [
|
|
1429
1430
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1451,25 +1452,25 @@ const vt = { key: 0 }, bt = {
|
|
|
1451
1452
|
})
|
|
1452
1453
|
}));
|
|
1453
1454
|
return (o, a) => {
|
|
1454
|
-
const n =
|
|
1455
|
-
return
|
|
1455
|
+
const n = Fe;
|
|
1456
|
+
return r(), w(n, V({ ...t, ...o.$attrs }, {
|
|
1456
1457
|
pt: l.value,
|
|
1457
1458
|
"data-cy": "navbar"
|
|
1458
1459
|
}), te({
|
|
1459
|
-
start:
|
|
1460
|
+
start: f(() => [
|
|
1460
1461
|
c("a", {
|
|
1461
1462
|
href: o.logoUrl,
|
|
1462
1463
|
class: "navbar-brand ms-3",
|
|
1463
1464
|
"data-cy": "logo"
|
|
1464
1465
|
}, [
|
|
1465
1466
|
$(o.$slots, "logo", {}, () => [
|
|
1466
|
-
a[0] || (a[0] =
|
|
1467
|
+
a[0] || (a[0] = z(" Logo "))
|
|
1467
1468
|
])
|
|
1468
|
-
], 8,
|
|
1469
|
+
], 8, Ft)
|
|
1469
1470
|
]),
|
|
1470
|
-
menubuttonicon:
|
|
1471
|
+
menubuttonicon: f(() => [
|
|
1471
1472
|
$(o.$slots, "menubuttonicon", {}, () => [
|
|
1472
|
-
|
|
1473
|
+
y(p(_), {
|
|
1473
1474
|
icon: "bi:list",
|
|
1474
1475
|
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1475
1476
|
height: "24",
|
|
@@ -1479,16 +1480,16 @@ const vt = { key: 0 }, bt = {
|
|
|
1479
1480
|
]),
|
|
1480
1481
|
_: 2
|
|
1481
1482
|
}, [
|
|
1482
|
-
|
|
1483
|
-
name:
|
|
1484
|
-
fn:
|
|
1485
|
-
$(o.$slots,
|
|
1483
|
+
H(o.$slots, (d, i) => ({
|
|
1484
|
+
name: i,
|
|
1485
|
+
fn: f((u) => [
|
|
1486
|
+
$(o.$slots, i, Q(ee(u)))
|
|
1486
1487
|
])
|
|
1487
1488
|
}))
|
|
1488
1489
|
]), 1040, ["pt"]);
|
|
1489
1490
|
};
|
|
1490
1491
|
}
|
|
1491
|
-
}),
|
|
1492
|
+
}), _t = { class: "multiselect__caret" }, Vt = ["checked"], St = ["data-cy"], Ct = ["checked"], Tt = { class: "my-auto ms-1" }, Pt = { class: "multiselect__tag d-inline-flex" }, Mt = { class: "my-auto" }, ye = /* @__PURE__ */ F({
|
|
1492
1493
|
__name: "ForgeMultiSelect",
|
|
1493
1494
|
props: {
|
|
1494
1495
|
severity: { default: "primary" },
|
|
@@ -1500,19 +1501,19 @@ const vt = { key: 0 }, bt = {
|
|
|
1500
1501
|
},
|
|
1501
1502
|
emits: ["update:modelValue"],
|
|
1502
1503
|
setup(e, { emit: t }) {
|
|
1503
|
-
const l = e, o = (
|
|
1504
|
-
const
|
|
1504
|
+
const l = e, o = (L, D) => {
|
|
1505
|
+
const A = {
|
|
1505
1506
|
...D,
|
|
1506
1507
|
$isDisabled: D.$isDisabled ?? !1
|
|
1507
1508
|
};
|
|
1508
|
-
|
|
1509
|
-
}, a =
|
|
1509
|
+
L(A);
|
|
1510
|
+
}, a = he(), n = t, { errors: d, value: i, errorMessage: u } = K(() => l.name, void 0, {
|
|
1510
1511
|
initialValue: a.modelValue
|
|
1511
|
-
}),
|
|
1512
|
+
}), m = P(!1), v = x(() => ({
|
|
1512
1513
|
multiple: !0,
|
|
1513
1514
|
label: "label",
|
|
1514
1515
|
trackBy: "id",
|
|
1515
|
-
showPointer: !
|
|
1516
|
+
showPointer: !m.value,
|
|
1516
1517
|
placeholder: a.searchable === null || a.searchable ? "Search" : "Select",
|
|
1517
1518
|
allowEmpty: !0,
|
|
1518
1519
|
selectValue: "",
|
|
@@ -1521,97 +1522,97 @@ const vt = { key: 0 }, bt = {
|
|
|
1521
1522
|
searchable: !!(a.searchable === null || a.searchable) && a.modelValue.length === a.options.length,
|
|
1522
1523
|
async: !1,
|
|
1523
1524
|
...a
|
|
1524
|
-
})), s =
|
|
1525
|
-
|
|
1526
|
-
}, G = (
|
|
1527
|
-
n("update:modelValue", l.selectValue ?
|
|
1528
|
-
}, Z = (
|
|
1529
|
-
|
|
1525
|
+
})), s = x(() => `forge-multiselect-${l.severity}`), C = x(() => `multiselect__option ${m.value ? " multiselect__option--highlight" : ""} ${T.value ? " multiselect__option--selected" : ""}`), T = x(() => v.value && !(v.value.multiple || !l.showSelectAll || v.value.async) ? !1 : a.modelValue.length === a.options.length), M = x(() => d.value.length > 0), I = x(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (v.value.multiple ? a.modelValue.length > 0 : a.modelValue))), O = () => m.value = !0, g = () => m.value = !1, k = () => {
|
|
1526
|
+
i.value = v.value.multiple ? [] : null, n("update:modelValue", i.value);
|
|
1527
|
+
}, G = (L) => {
|
|
1528
|
+
n("update:modelValue", l.selectValue ? L.map((D) => D[l.selectValue]) : L);
|
|
1529
|
+
}, Z = (L) => a.modelValue !== null ? a.modelValue.some((D) => v.value.selectValue ? L[l.selectValue] === D : L.id === D.id && L.label === D.label) : !1, ne = () => {
|
|
1530
|
+
T.value ? k() : (i.value = [...a.options], n("update:modelValue", [...a.options]));
|
|
1530
1531
|
};
|
|
1531
|
-
return (
|
|
1532
|
-
|
|
1533
|
-
class: [s.value,
|
|
1532
|
+
return (L, D) => (r(), b(N, null, [
|
|
1533
|
+
y(p(_e), V(v.value, {
|
|
1534
|
+
class: [s.value, M.value ? "is-invalid" : ""],
|
|
1534
1535
|
"data-cy": "multiselect",
|
|
1535
1536
|
"onUpdate:modelValue": [
|
|
1536
1537
|
G,
|
|
1537
|
-
D[1] || (D[1] = (
|
|
1538
|
+
D[1] || (D[1] = (A) => se(i) ? i.value = A : null)
|
|
1538
1539
|
],
|
|
1539
|
-
modelValue:
|
|
1540
|
+
modelValue: p(i)
|
|
1540
1541
|
}), te({
|
|
1541
|
-
caret:
|
|
1542
|
-
c("div",
|
|
1543
|
-
|
|
1542
|
+
caret: f(({ toggle: A }) => [
|
|
1543
|
+
c("div", _t, [
|
|
1544
|
+
I.value ? (r(), w(p(_), {
|
|
1544
1545
|
key: 0,
|
|
1545
1546
|
icon: "bi:x",
|
|
1546
1547
|
class: "my-auto text-black multiselect__clear",
|
|
1547
|
-
onMousedown: D[0] || (D[0] =
|
|
1548
|
+
onMousedown: D[0] || (D[0] = Y((W) => k(), ["prevent", "stop"])),
|
|
1548
1549
|
"data-cy": "clear",
|
|
1549
1550
|
height: "18px",
|
|
1550
1551
|
width: "18px"
|
|
1551
1552
|
})) : S("", !0),
|
|
1552
|
-
|
|
1553
|
+
y(p(_), {
|
|
1553
1554
|
icon: "bi:chevron-down",
|
|
1554
|
-
onClick:
|
|
1555
|
+
onClick: A,
|
|
1555
1556
|
class: "multiselect__arrow"
|
|
1556
1557
|
}, null, 8, ["onClick"])
|
|
1557
1558
|
])
|
|
1558
1559
|
]),
|
|
1559
|
-
tag:
|
|
1560
|
-
c("div",
|
|
1561
|
-
c("div",
|
|
1562
|
-
|
|
1560
|
+
tag: f(({ option: A, remove: W }) => [
|
|
1561
|
+
c("div", Pt, [
|
|
1562
|
+
c("div", Mt, h(A.label), 1),
|
|
1563
|
+
y(p(_), {
|
|
1563
1564
|
icon: "bi:x",
|
|
1564
1565
|
class: "my-auto multiselect__tag-icon",
|
|
1565
|
-
onMousedown:
|
|
1566
|
+
onMousedown: Y((Yl) => o(W, A), ["prevent", "stop"]),
|
|
1566
1567
|
height: "18px",
|
|
1567
1568
|
width: "18px"
|
|
1568
1569
|
}, null, 8, ["onMousedown"])
|
|
1569
1570
|
])
|
|
1570
1571
|
]),
|
|
1571
|
-
default:
|
|
1572
|
-
(
|
|
1572
|
+
default: f(() => [
|
|
1573
|
+
(r(!0), b(N, null, H(L.$slots, (A, W) => $(L.$slots, W, { slot: W })), 256))
|
|
1573
1574
|
]),
|
|
1574
1575
|
_: 2
|
|
1575
1576
|
}, [
|
|
1576
|
-
|
|
1577
|
+
v.value.multiple && L.showSelectAll && !v.value.async ? {
|
|
1577
1578
|
name: "beforeList",
|
|
1578
|
-
fn:
|
|
1579
|
+
fn: f(() => [
|
|
1579
1580
|
c("li", {
|
|
1580
1581
|
class: "multiselect__element",
|
|
1581
|
-
onClick:
|
|
1582
|
-
onMouseover:
|
|
1583
|
-
onMouseleave:
|
|
1582
|
+
onClick: ne,
|
|
1583
|
+
onMouseover: O,
|
|
1584
|
+
onMouseleave: g,
|
|
1584
1585
|
"data-cy": "toggle-all"
|
|
1585
1586
|
}, [
|
|
1586
1587
|
c("div", {
|
|
1587
|
-
class: B(["d-flex py-1",
|
|
1588
|
+
class: B(["d-flex py-1", C.value])
|
|
1588
1589
|
}, [
|
|
1589
1590
|
c("input", {
|
|
1590
|
-
checked:
|
|
1591
|
+
checked: T.value,
|
|
1591
1592
|
name: "selected",
|
|
1592
1593
|
type: "checkbox",
|
|
1593
1594
|
class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
|
|
1594
|
-
}, null, 8,
|
|
1595
|
+
}, null, 8, Vt),
|
|
1595
1596
|
D[2] || (D[2] = c("div", { class: "my-auto ms-1" }, "Toggle all", -1))
|
|
1596
1597
|
], 2)
|
|
1597
1598
|
], 32)
|
|
1598
1599
|
]),
|
|
1599
1600
|
key: "0"
|
|
1600
1601
|
} : void 0,
|
|
1601
|
-
|
|
1602
|
+
v.value.multiple ? {
|
|
1602
1603
|
name: "option",
|
|
1603
|
-
fn:
|
|
1604
|
+
fn: f(({ option: A }) => [
|
|
1604
1605
|
c("div", {
|
|
1605
1606
|
class: "d-flex py-1",
|
|
1606
|
-
"data-cy":
|
|
1607
|
+
"data-cy": A.label
|
|
1607
1608
|
}, [
|
|
1608
1609
|
c("input", {
|
|
1609
|
-
checked: Z(
|
|
1610
|
+
checked: Z(A),
|
|
1610
1611
|
name: "selected",
|
|
1611
1612
|
type: "checkbox",
|
|
1612
1613
|
class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
|
|
1613
|
-
}, null, 8,
|
|
1614
|
-
c("div",
|
|
1614
|
+
}, null, 8, Ct),
|
|
1615
|
+
c("div", Tt, h(A[v.value.label]), 1)
|
|
1615
1616
|
], 8, St)
|
|
1616
1617
|
]),
|
|
1617
1618
|
key: "1"
|
|
@@ -1620,24 +1621,24 @@ const vt = { key: 0 }, bt = {
|
|
|
1620
1621
|
j(c("small", {
|
|
1621
1622
|
"data-cy": "error",
|
|
1622
1623
|
class: "invalid-feedback"
|
|
1623
|
-
}, h(
|
|
1624
|
-
[
|
|
1624
|
+
}, h(p(u)), 513), [
|
|
1625
|
+
[q, M.value]
|
|
1625
1626
|
])
|
|
1626
1627
|
], 64));
|
|
1627
1628
|
}
|
|
1628
|
-
}),
|
|
1629
|
+
}), It = {
|
|
1629
1630
|
key: 0,
|
|
1630
1631
|
class: "pl-1"
|
|
1631
|
-
},
|
|
1632
|
+
}, zt = { class: "border alternating-item-list" }, Ot = {
|
|
1632
1633
|
key: 0,
|
|
1633
1634
|
class: "p-2 border-top border-bottom",
|
|
1634
1635
|
"data-cy": "title"
|
|
1635
|
-
},
|
|
1636
|
+
}, Dt = { class: "d-inline-block" }, Ut = {
|
|
1636
1637
|
key: 1,
|
|
1637
1638
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1638
|
-
},
|
|
1639
|
+
}, Va = /* @__PURE__ */ F({
|
|
1639
1640
|
__name: "ForgeMultiSelectPreview",
|
|
1640
|
-
props: /* @__PURE__ */
|
|
1641
|
+
props: /* @__PURE__ */ R({
|
|
1641
1642
|
title: { default: "Selected Items" },
|
|
1642
1643
|
orientation: { default: "row" },
|
|
1643
1644
|
height: { default: "200px" },
|
|
@@ -1650,12 +1651,12 @@ const vt = { key: 0 }, bt = {
|
|
|
1650
1651
|
}),
|
|
1651
1652
|
emits: ["update:modelValue"],
|
|
1652
1653
|
setup(e) {
|
|
1653
|
-
const t = e, l =
|
|
1654
|
+
const t = e, l = U(e, "modelValue"), o = (a) => {
|
|
1654
1655
|
l.value = l.value.filter((n) => n.id !== a);
|
|
1655
1656
|
};
|
|
1656
1657
|
return (a, n) => {
|
|
1657
|
-
const d =
|
|
1658
|
-
return
|
|
1658
|
+
const d = E;
|
|
1659
|
+
return r(), b("div", {
|
|
1659
1660
|
class: B(a.orientation === "column" ? "row" : ""),
|
|
1660
1661
|
"data-cy": "multiselect-preview"
|
|
1661
1662
|
}, [
|
|
@@ -1663,20 +1664,20 @@ const vt = { key: 0 }, bt = {
|
|
|
1663
1664
|
class: B(a.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1664
1665
|
"data-cy": "multiselect-container"
|
|
1665
1666
|
}, [
|
|
1666
|
-
|
|
1667
|
+
y(ye, V({
|
|
1667
1668
|
modelValue: l.value,
|
|
1668
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1669
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
|
|
1669
1670
|
"limit-text": () => `${l.value.length} selected`,
|
|
1670
1671
|
options: t.options
|
|
1671
1672
|
}, { ...a.$attrs }), {
|
|
1672
|
-
tag:
|
|
1673
|
-
|
|
1673
|
+
tag: f(() => n[1] || (n[1] = [
|
|
1674
|
+
z(h(""))
|
|
1674
1675
|
])),
|
|
1675
|
-
selection:
|
|
1676
|
-
l.value.length > 0 ? (
|
|
1676
|
+
selection: f(() => [
|
|
1677
|
+
l.value.length > 0 ? (r(), b("span", It, h(l.value.length) + " items selected", 1)) : S("", !0)
|
|
1677
1678
|
]),
|
|
1678
|
-
default:
|
|
1679
|
-
(
|
|
1679
|
+
default: f(() => [
|
|
1680
|
+
(r(!0), b(N, null, H(a.$slots, (i, u) => $(a.$slots, u, { slot: u })), 256))
|
|
1680
1681
|
]),
|
|
1681
1682
|
_: 3
|
|
1682
1683
|
}, 16, ["modelValue", "limit-text", "options"]),
|
|
@@ -1687,64 +1688,64 @@ const vt = { key: 0 }, bt = {
|
|
|
1687
1688
|
"data-cy": "options-preview"
|
|
1688
1689
|
}, [
|
|
1689
1690
|
c("div", {
|
|
1690
|
-
style:
|
|
1691
|
+
style: we({ height: a.height }),
|
|
1691
1692
|
class: "overflow-auto"
|
|
1692
1693
|
}, [
|
|
1693
|
-
c("div",
|
|
1694
|
-
a.title ? (
|
|
1695
|
-
(
|
|
1696
|
-
key:
|
|
1694
|
+
c("div", zt, [
|
|
1695
|
+
a.title ? (r(), b("div", Ot, h(a.title), 1)) : S("", !0),
|
|
1696
|
+
(r(!0), b(N, null, H(l.value, (i) => (r(), b("div", {
|
|
1697
|
+
key: i.id,
|
|
1697
1698
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1698
1699
|
}, [
|
|
1699
|
-
$(a.$slots, "list-item", { item:
|
|
1700
|
-
c("span",
|
|
1700
|
+
$(a.$slots, "list-item", { item: i }, () => [
|
|
1701
|
+
c("span", Dt, h(i.shortLabel ? i.shortLabel : i.label), 1)
|
|
1701
1702
|
]),
|
|
1702
|
-
a.canRemoveItemFromPreview ? (
|
|
1703
|
+
a.canRemoveItemFromPreview ? (r(), w(d, {
|
|
1703
1704
|
key: 0,
|
|
1704
1705
|
link: "",
|
|
1705
1706
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1706
|
-
onClick: (u) => o(
|
|
1707
|
+
onClick: (u) => o(i.id)
|
|
1707
1708
|
}, {
|
|
1708
|
-
default:
|
|
1709
|
-
|
|
1709
|
+
default: f(() => [
|
|
1710
|
+
y(p(_), {
|
|
1710
1711
|
icon: "bi:x",
|
|
1711
1712
|
class: "close-icon",
|
|
1712
|
-
"data-cy": `close-icon-${
|
|
1713
|
+
"data-cy": `close-icon-${i.id}`
|
|
1713
1714
|
}, null, 8, ["data-cy"])
|
|
1714
1715
|
]),
|
|
1715
1716
|
_: 2
|
|
1716
1717
|
}, 1032, ["onClick"])) : S("", !0)
|
|
1717
1718
|
]))), 128)),
|
|
1718
|
-
l.value.length === 0 ? (
|
|
1719
|
+
l.value.length === 0 ? (r(), b("div", Ut, h(t.optionsPreviewEmptyText), 1)) : S("", !0)
|
|
1719
1720
|
])
|
|
1720
1721
|
], 4)
|
|
1721
1722
|
], 2)
|
|
1722
1723
|
], 2);
|
|
1723
1724
|
};
|
|
1724
1725
|
}
|
|
1725
|
-
}),
|
|
1726
|
+
}), At = { class: "d-flex justify-content-between pb-2" }, Nt = {
|
|
1726
1727
|
"data-cy": "title",
|
|
1727
1728
|
class: "my-auto"
|
|
1728
|
-
},
|
|
1729
|
+
}, Et = {
|
|
1729
1730
|
"data-cy": "slot",
|
|
1730
1731
|
class: "d-flex align-items-center"
|
|
1731
|
-
},
|
|
1732
|
+
}, Sa = /* @__PURE__ */ F({
|
|
1732
1733
|
__name: "ForgePageHeader",
|
|
1733
1734
|
props: {
|
|
1734
1735
|
title: {}
|
|
1735
1736
|
},
|
|
1736
1737
|
setup(e) {
|
|
1737
1738
|
const t = e;
|
|
1738
|
-
return (l, o) => (
|
|
1739
|
-
c("h3",
|
|
1740
|
-
c("div",
|
|
1739
|
+
return (l, o) => (r(), b("div", At, [
|
|
1740
|
+
c("h3", Nt, h(t.title), 1),
|
|
1741
|
+
c("div", Et, [
|
|
1741
1742
|
$(l.$slots, "default")
|
|
1742
1743
|
])
|
|
1743
1744
|
]));
|
|
1744
1745
|
}
|
|
1745
|
-
}),
|
|
1746
|
+
}), Lt = { class: "d-flex" }, Rt = { "data-cy": "before-slot" }, jt = { class: "position-relative w-100" }, Ht = { "data-cy": "after-slot" }, be = /* @__PURE__ */ F({
|
|
1746
1747
|
__name: "ForgeDatepicker",
|
|
1747
|
-
props: /* @__PURE__ */
|
|
1748
|
+
props: /* @__PURE__ */ R({
|
|
1748
1749
|
severity: { default: "primary" },
|
|
1749
1750
|
modelValue: {},
|
|
1750
1751
|
selectionMode: { default: "single" },
|
|
@@ -1815,11 +1816,11 @@ const vt = { key: 0 }, bt = {
|
|
|
1815
1816
|
}),
|
|
1816
1817
|
emits: ["update:modelValue"],
|
|
1817
1818
|
setup(e) {
|
|
1818
|
-
const t = e, l =
|
|
1819
|
+
const t = e, l = U(e, "modelValue"), { errors: o, errorMessage: a, handleChange: n, handleBlur: d, setValue: i } = K(() => t.name, void 0, {
|
|
1819
1820
|
initialValue: l.value
|
|
1820
1821
|
}), u = () => {
|
|
1821
|
-
|
|
1822
|
-
},
|
|
1822
|
+
i(null), l.value = null;
|
|
1823
|
+
}, m = x(() => o.value.length > 0), v = x(() => ({
|
|
1823
1824
|
day: ({ context: s }) => ({
|
|
1824
1825
|
class: [
|
|
1825
1826
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
@@ -1910,66 +1911,66 @@ const vt = { key: 0 }, bt = {
|
|
|
1910
1911
|
]
|
|
1911
1912
|
})
|
|
1912
1913
|
}));
|
|
1913
|
-
return (s,
|
|
1914
|
-
const
|
|
1915
|
-
return
|
|
1916
|
-
c("div",
|
|
1917
|
-
c("span",
|
|
1914
|
+
return (s, C) => {
|
|
1915
|
+
const T = Ve;
|
|
1916
|
+
return r(), b(N, null, [
|
|
1917
|
+
c("div", Lt, [
|
|
1918
|
+
c("span", Rt, [
|
|
1918
1919
|
$(s.$slots, "before")
|
|
1919
1920
|
]),
|
|
1920
|
-
c("div",
|
|
1921
|
-
|
|
1922
|
-
pt:
|
|
1921
|
+
c("div", jt, [
|
|
1922
|
+
y(T, V({ ...t, ...s.$attrs }, {
|
|
1923
|
+
pt: v.value,
|
|
1923
1924
|
modelValue: l.value,
|
|
1924
1925
|
"onUpdate:modelValue": [
|
|
1925
|
-
|
|
1926
|
-
|
|
1926
|
+
C[0] || (C[0] = (M) => l.value = M),
|
|
1927
|
+
p(n)
|
|
1927
1928
|
],
|
|
1928
|
-
onBlur:
|
|
1929
|
-
"input-class": { "datepicker-invalid":
|
|
1929
|
+
onBlur: p(d),
|
|
1930
|
+
"input-class": { "datepicker-invalid": m.value }
|
|
1930
1931
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
|
|
1931
|
-
j(
|
|
1932
|
+
j(y(p(_), {
|
|
1932
1933
|
"data-cy": "icon",
|
|
1933
1934
|
icon: "bi:calendar4",
|
|
1934
|
-
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${
|
|
1935
|
+
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${m.value ? "text-danger-dark" : "text-muted"}`])
|
|
1935
1936
|
}, null, 8, ["class"]), [
|
|
1936
|
-
[
|
|
1937
|
+
[q, t.showIcon]
|
|
1937
1938
|
]),
|
|
1938
|
-
j(
|
|
1939
|
+
j(y(p(_), {
|
|
1939
1940
|
"data-cy": "icon",
|
|
1940
1941
|
icon: "bi:x",
|
|
1941
1942
|
onClick: u,
|
|
1942
1943
|
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"])
|
|
1943
1944
|
}, null, 8, ["class"]), [
|
|
1944
|
-
[
|
|
1945
|
+
[q, t.modelValue]
|
|
1945
1946
|
])
|
|
1946
1947
|
]),
|
|
1947
|
-
c("span",
|
|
1948
|
+
c("span", Ht, [
|
|
1948
1949
|
$(s.$slots, "after")
|
|
1949
1950
|
])
|
|
1950
1951
|
]),
|
|
1951
1952
|
j(c("small", {
|
|
1952
1953
|
"data-cy": "error",
|
|
1953
1954
|
class: "text-invalid"
|
|
1954
|
-
}, h(
|
|
1955
|
-
[
|
|
1955
|
+
}, h(p(a)), 513), [
|
|
1956
|
+
[q, m.value]
|
|
1956
1957
|
])
|
|
1957
1958
|
], 64);
|
|
1958
1959
|
};
|
|
1959
1960
|
}
|
|
1960
|
-
}),
|
|
1961
|
+
}), Ca = /* @__PURE__ */ F({
|
|
1961
1962
|
__name: "ForgeRemainingCharacters",
|
|
1962
1963
|
props: {
|
|
1963
1964
|
maxCount: { default: 300 },
|
|
1964
1965
|
currentCount: {}
|
|
1965
1966
|
},
|
|
1966
1967
|
setup(e) {
|
|
1967
|
-
const t = e, l =
|
|
1968
|
-
return (o, a) => (
|
|
1968
|
+
const t = e, l = x(() => t.maxCount - t.currentCount);
|
|
1969
|
+
return (o, a) => (r(), b("div", {
|
|
1969
1970
|
class: B(l.value < 0 ? "text-danger" : "")
|
|
1970
1971
|
}, "Remaining characters: " + h(l.value), 3));
|
|
1971
1972
|
}
|
|
1972
|
-
}),
|
|
1973
|
+
}), qt = { class: "d-flex justify-content-between" }, Ta = /* @__PURE__ */ F({
|
|
1973
1974
|
__name: "ForgeForm",
|
|
1974
1975
|
props: {
|
|
1975
1976
|
onSubmit: {},
|
|
@@ -1981,7 +1982,7 @@ const vt = { key: 0 }, bt = {
|
|
|
1981
1982
|
hideCancel: { type: Boolean, default: !1 }
|
|
1982
1983
|
},
|
|
1983
1984
|
setup(e) {
|
|
1984
|
-
const t = e, l =
|
|
1985
|
+
const t = e, l = P(!1), o = P({
|
|
1985
1986
|
hasError: !1,
|
|
1986
1987
|
message: ""
|
|
1987
1988
|
});
|
|
@@ -1995,13 +1996,13 @@ const vt = { key: 0 }, bt = {
|
|
|
1995
1996
|
l.value = !1;
|
|
1996
1997
|
}
|
|
1997
1998
|
return (n, d) => {
|
|
1998
|
-
const
|
|
1999
|
-
return
|
|
1999
|
+
const i = E;
|
|
2000
|
+
return r(), b("form", V(n.$attrs, {
|
|
2000
2001
|
novalidate: "",
|
|
2001
2002
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2002
|
-
onSubmit:
|
|
2003
|
+
onSubmit: Y(a, ["prevent"])
|
|
2003
2004
|
}), [
|
|
2004
|
-
n.hideTitle ? S("", !0) : (
|
|
2005
|
+
n.hideTitle ? S("", !0) : (r(), b(N, { key: 0 }, [
|
|
2005
2006
|
$(n.$slots, "title", {}, () => [
|
|
2006
2007
|
c("h3", {
|
|
2007
2008
|
class: B(n.titleClass),
|
|
@@ -2010,24 +2011,24 @@ const vt = { key: 0 }, bt = {
|
|
|
2010
2011
|
]),
|
|
2011
2012
|
d[1] || (d[1] = c("hr", null, null, -1))
|
|
2012
2013
|
], 64)),
|
|
2013
|
-
o.value.hasError ? (
|
|
2014
|
+
o.value.hasError ? (r(), w(oe, {
|
|
2014
2015
|
key: 1,
|
|
2015
2016
|
severity: "danger",
|
|
2016
2017
|
"data-cy": "error"
|
|
2017
2018
|
}, {
|
|
2018
|
-
default:
|
|
2019
|
+
default: f(() => [
|
|
2019
2020
|
$(n.$slots, "error", {
|
|
2020
2021
|
error: o.value.message
|
|
2021
2022
|
}, () => [
|
|
2022
|
-
|
|
2023
|
+
z(h(o.value.message), 1)
|
|
2023
2024
|
])
|
|
2024
2025
|
]),
|
|
2025
2026
|
_: 3
|
|
2026
2027
|
})) : S("", !0),
|
|
2027
2028
|
$(n.$slots, "default"),
|
|
2028
|
-
c("div",
|
|
2029
|
+
c("div", qt, [
|
|
2029
2030
|
$(n.$slots, "cancel", {}, () => [
|
|
2030
|
-
n.hideCancel ? S("", !0) : (
|
|
2031
|
+
n.hideCancel ? S("", !0) : (r(), w(i, {
|
|
2031
2032
|
key: 0,
|
|
2032
2033
|
"data-cy": "cancel-btn",
|
|
2033
2034
|
type: "reset",
|
|
@@ -2035,39 +2036,39 @@ const vt = { key: 0 }, bt = {
|
|
|
2035
2036
|
outlined: "",
|
|
2036
2037
|
onClick: d[0] || (d[0] = (u) => n.$emit("cancel"))
|
|
2037
2038
|
}, {
|
|
2038
|
-
default:
|
|
2039
|
-
|
|
2039
|
+
default: f(() => [
|
|
2040
|
+
z(h(n.cancelText), 1)
|
|
2040
2041
|
]),
|
|
2041
2042
|
_: 1
|
|
2042
2043
|
}))
|
|
2043
2044
|
]),
|
|
2044
2045
|
$(n.$slots, "submit", { submit: a }, () => [
|
|
2045
|
-
|
|
2046
|
+
y(i, {
|
|
2046
2047
|
"data-cy": "submit-btn",
|
|
2047
2048
|
type: "submit",
|
|
2048
2049
|
severity: "primary",
|
|
2049
2050
|
class: "ms-auto"
|
|
2050
2051
|
}, {
|
|
2051
|
-
default:
|
|
2052
|
-
|
|
2052
|
+
default: f(() => [
|
|
2053
|
+
z(h(n.submitText), 1)
|
|
2053
2054
|
]),
|
|
2054
2055
|
_: 1
|
|
2055
2056
|
})
|
|
2056
2057
|
])
|
|
2057
2058
|
]),
|
|
2058
|
-
l.value ? (
|
|
2059
|
+
l.value ? (r(), w(ve, {
|
|
2059
2060
|
key: 2,
|
|
2060
2061
|
"data-cy": "loading-spinner"
|
|
2061
2062
|
})) : S("", !0)
|
|
2062
2063
|
], 16);
|
|
2063
2064
|
};
|
|
2064
2065
|
}
|
|
2065
|
-
}),
|
|
2066
|
+
}), Yt = {
|
|
2066
2067
|
key: 1,
|
|
2067
2068
|
class: "d-flex flex-column w-100"
|
|
2068
|
-
},
|
|
2069
|
+
}, Gt = ["for"], Pa = /* @__PURE__ */ F({
|
|
2069
2070
|
__name: "ForgeFormField",
|
|
2070
|
-
props: /* @__PURE__ */
|
|
2071
|
+
props: /* @__PURE__ */ R({
|
|
2071
2072
|
name: {},
|
|
2072
2073
|
fieldLabelPosition: { default: "top" },
|
|
2073
2074
|
fieldLabel: {},
|
|
@@ -2080,24 +2081,24 @@ const vt = { key: 0 }, bt = {
|
|
|
2080
2081
|
}),
|
|
2081
2082
|
emits: ["update:modelValue"],
|
|
2082
2083
|
setup(e) {
|
|
2083
|
-
const t =
|
|
2084
|
-
l.type == "number" ?
|
|
2085
|
-
}, { errors: a, value: n, errorMessage: d, handleChange:
|
|
2084
|
+
const t = U(e, "modelValue"), l = e, o = (v) => {
|
|
2085
|
+
l.type == "number" ? i(v.value) : i(v);
|
|
2086
|
+
}, { errors: a, value: n, errorMessage: d, handleChange: i, handleBlur: u } = K(() => l.name, void 0, {
|
|
2086
2087
|
initialValue: t.value
|
|
2087
|
-
}),
|
|
2088
|
-
return de(() => n.value, (
|
|
2089
|
-
t.value =
|
|
2090
|
-
}, { immediate: !0 }), (
|
|
2091
|
-
const
|
|
2092
|
-
return l.type === "checkbox" ? (
|
|
2088
|
+
}), m = x(() => a.value.length > 0);
|
|
2089
|
+
return de(() => n.value, (v) => {
|
|
2090
|
+
t.value = v;
|
|
2091
|
+
}, { immediate: !0 }), (v, s) => {
|
|
2092
|
+
const C = Ce, T = Se, M = ie, I = ae, O = ye, g = be;
|
|
2093
|
+
return l.type === "checkbox" ? (r(), w(mt, V({
|
|
2093
2094
|
key: 0,
|
|
2094
2095
|
id: l.name,
|
|
2095
2096
|
label: l.fieldLabel
|
|
2096
|
-
},
|
|
2097
|
+
}, v.$attrs, {
|
|
2097
2098
|
name: l.name,
|
|
2098
2099
|
modelValue: t.value,
|
|
2099
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2100
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (
|
|
2100
|
+
"onUpdate:modelValue": s[0] || (s[0] = (k) => t.value = k)
|
|
2101
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (r(), b("div", Yt, [
|
|
2101
2102
|
c("div", {
|
|
2102
2103
|
"data-cy": "input-wrapper",
|
|
2103
2104
|
class: B(["d-flex", l.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
@@ -2105,72 +2106,72 @@ const vt = { key: 0 }, bt = {
|
|
|
2105
2106
|
c("label", {
|
|
2106
2107
|
for: l.name,
|
|
2107
2108
|
class: B(l.fieldLabelPosition === "top" ? "mb-1" : "me-2")
|
|
2108
|
-
}, h(l.fieldLabel), 11,
|
|
2109
|
-
l.type === "number" ? (
|
|
2109
|
+
}, h(l.fieldLabel), 11, Gt),
|
|
2110
|
+
l.type === "number" ? (r(), w(p(ce), V({
|
|
2110
2111
|
key: 0,
|
|
2111
2112
|
id: l.name
|
|
2112
|
-
},
|
|
2113
|
+
}, v.$attrs, {
|
|
2113
2114
|
placeholder: l.placeholder,
|
|
2114
|
-
"input-class": { "is-invalid":
|
|
2115
|
-
class: { "is-invalid":
|
|
2115
|
+
"input-class": { "is-invalid": m.value },
|
|
2116
|
+
class: { "is-invalid": m.value },
|
|
2116
2117
|
modelValue: t.value,
|
|
2117
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
2118
|
+
"onUpdate:modelValue": s[1] || (s[1] = (k) => t.value = k),
|
|
2118
2119
|
onInput: o
|
|
2119
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (
|
|
2120
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (r(), w(C, V({
|
|
2120
2121
|
key: 1,
|
|
2121
2122
|
id: l.name
|
|
2122
|
-
},
|
|
2123
|
+
}, v.$attrs, {
|
|
2123
2124
|
placeholder: l.placeholder,
|
|
2124
|
-
class: { "is-invalid":
|
|
2125
|
+
class: { "is-invalid": m.value },
|
|
2125
2126
|
modelValue: t.value,
|
|
2126
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
2127
|
+
"onUpdate:modelValue": s[2] || (s[2] = (k) => t.value = k),
|
|
2127
2128
|
onInput: o,
|
|
2128
|
-
onBlur:
|
|
2129
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (
|
|
2129
|
+
onBlur: p(u)
|
|
2130
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (r(), w(T, V({
|
|
2130
2131
|
key: 2,
|
|
2131
2132
|
id: l.name
|
|
2132
|
-
},
|
|
2133
|
+
}, v.$attrs, {
|
|
2133
2134
|
placeholder: l.placeholder,
|
|
2134
2135
|
mask: l.mask,
|
|
2135
|
-
class: { "is-invalid":
|
|
2136
|
+
class: { "is-invalid": m.value },
|
|
2136
2137
|
modelValue: t.value,
|
|
2137
|
-
"onUpdate:modelValue": s[3] || (s[3] = (
|
|
2138
|
+
"onUpdate:modelValue": s[3] || (s[3] = (k) => t.value = k),
|
|
2138
2139
|
onComplete: o,
|
|
2139
|
-
onBlur:
|
|
2140
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (
|
|
2140
|
+
onBlur: p(u)
|
|
2141
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (r(), w(M, V({
|
|
2141
2142
|
key: 3,
|
|
2142
2143
|
id: l.name
|
|
2143
|
-
},
|
|
2144
|
+
}, v.$attrs, {
|
|
2144
2145
|
placeholder: l.placeholder,
|
|
2145
|
-
class: { "is-invalid":
|
|
2146
|
+
class: { "is-invalid": m.value },
|
|
2146
2147
|
modelValue: t.value,
|
|
2147
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
2148
|
+
"onUpdate:modelValue": s[4] || (s[4] = (k) => t.value = k),
|
|
2148
2149
|
onInput: o,
|
|
2149
|
-
onBlur:
|
|
2150
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (
|
|
2150
|
+
onBlur: p(u)
|
|
2151
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (r(), w(I, V({ key: 4 }, { ...l, ...v.$attrs }, {
|
|
2151
2152
|
modelValue: t.value,
|
|
2152
|
-
"onUpdate:modelValue": s[5] || (s[5] = (
|
|
2153
|
-
class: { "is-invalid":
|
|
2154
|
-
}), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (
|
|
2153
|
+
"onUpdate:modelValue": s[5] || (s[5] = (k) => t.value = k),
|
|
2154
|
+
class: { "is-invalid": m.value }
|
|
2155
|
+
}), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (r(), w(O, V({ key: 5 }, { ...l, ...v.$attrs }, {
|
|
2155
2156
|
modelValue: t.value,
|
|
2156
|
-
"onUpdate:modelValue": s[6] || (s[6] = (
|
|
2157
|
-
class: { "is-invalid":
|
|
2158
|
-
}), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (
|
|
2157
|
+
"onUpdate:modelValue": s[6] || (s[6] = (k) => t.value = k),
|
|
2158
|
+
class: { "is-invalid": m.value }
|
|
2159
|
+
}), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (r(), w(g, V({ key: 6 }, { ...l, ...v.$attrs }, {
|
|
2159
2160
|
modelValue: t.value,
|
|
2160
|
-
"onUpdate:modelValue": s[7] || (s[7] = (
|
|
2161
|
-
class: { "is-invalid":
|
|
2161
|
+
"onUpdate:modelValue": s[7] || (s[7] = (k) => t.value = k),
|
|
2162
|
+
class: { "is-invalid": m.value }
|
|
2162
2163
|
}), null, 16, ["modelValue", "class"])) : S("", !0)
|
|
2163
2164
|
], 2),
|
|
2164
2165
|
j(c("small", {
|
|
2165
2166
|
"data-cy": "error",
|
|
2166
2167
|
class: "invalid-feedback"
|
|
2167
|
-
}, h(
|
|
2168
|
-
[
|
|
2168
|
+
}, h(p(d)), 513), [
|
|
2169
|
+
[q, m.value && l.type !== "multiselect" && l.type !== "datepicker"]
|
|
2169
2170
|
])
|
|
2170
2171
|
]));
|
|
2171
2172
|
};
|
|
2172
2173
|
}
|
|
2173
|
-
}),
|
|
2174
|
+
}), Ma = /* @__PURE__ */ F({
|
|
2174
2175
|
__name: "ForgeChips",
|
|
2175
2176
|
props: {
|
|
2176
2177
|
chipSeverity: { default: "primary" },
|
|
@@ -2199,14 +2200,14 @@ const vt = { key: 0 }, bt = {
|
|
|
2199
2200
|
setup(e) {
|
|
2200
2201
|
const t = e, { errors: l, value: o, errorMessage: a } = K(() => t.name, void 0, {
|
|
2201
2202
|
initialValue: t.modelValue
|
|
2202
|
-
}), n =
|
|
2203
|
+
}), n = x(() => l.value.length > 0), d = x(() => ({
|
|
2203
2204
|
inputtoken: "list-unstyled",
|
|
2204
2205
|
input: "border-0",
|
|
2205
|
-
container: ({ props:
|
|
2206
|
+
container: ({ props: i }) => ({
|
|
2206
2207
|
class: [
|
|
2207
2208
|
"form-control mb-0 d-flex",
|
|
2208
2209
|
{
|
|
2209
|
-
disabled:
|
|
2210
|
+
disabled: i.disabled,
|
|
2210
2211
|
"is-invalid": n.value
|
|
2211
2212
|
}
|
|
2212
2213
|
]
|
|
@@ -2230,21 +2231,21 @@ const vt = { key: 0 }, bt = {
|
|
|
2230
2231
|
]
|
|
2231
2232
|
}
|
|
2232
2233
|
}));
|
|
2233
|
-
return (
|
|
2234
|
-
const
|
|
2235
|
-
return
|
|
2236
|
-
|
|
2234
|
+
return (i, u) => {
|
|
2235
|
+
const m = Te;
|
|
2236
|
+
return r(), b(N, null, [
|
|
2237
|
+
y(m, V({ ...t, ...i.$attrs }, {
|
|
2237
2238
|
pt: d.value,
|
|
2238
|
-
"model-value":
|
|
2239
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2239
|
+
"model-value": p(o),
|
|
2240
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => se(o) ? o.value = v : null)
|
|
2240
2241
|
}), {
|
|
2241
|
-
removetokenicon:
|
|
2242
|
-
j(
|
|
2242
|
+
removetokenicon: f(({ removeCallback: v }) => [
|
|
2243
|
+
j(y(p(_), {
|
|
2243
2244
|
icon: "bi:x",
|
|
2244
2245
|
class: "cursor-pointer",
|
|
2245
|
-
onClick:
|
|
2246
|
+
onClick: v
|
|
2246
2247
|
}, null, 8, ["onClick"]), [
|
|
2247
|
-
[
|
|
2248
|
+
[q, !t.disabled]
|
|
2248
2249
|
])
|
|
2249
2250
|
]),
|
|
2250
2251
|
_: 1
|
|
@@ -2252,13 +2253,13 @@ const vt = { key: 0 }, bt = {
|
|
|
2252
2253
|
j(c("small", {
|
|
2253
2254
|
"data-cy": "error",
|
|
2254
2255
|
class: "text-invalid"
|
|
2255
|
-
}, h(
|
|
2256
|
-
[
|
|
2256
|
+
}, h(p(a)), 513), [
|
|
2257
|
+
[q, n.value]
|
|
2257
2258
|
])
|
|
2258
2259
|
], 64);
|
|
2259
2260
|
};
|
|
2260
2261
|
}
|
|
2261
|
-
}),
|
|
2262
|
+
}), Kt = /* @__PURE__ */ F({
|
|
2262
2263
|
__name: "ForgeProgressBar",
|
|
2263
2264
|
props: {
|
|
2264
2265
|
severity: { default: "primary" },
|
|
@@ -2273,7 +2274,7 @@ const vt = { key: 0 }, bt = {
|
|
|
2273
2274
|
unstyled: { type: Boolean }
|
|
2274
2275
|
},
|
|
2275
2276
|
setup(e) {
|
|
2276
|
-
const t = e, l =
|
|
2277
|
+
const t = e, l = x(() => t.striped ? "progress-bar-striped" : null), o = x(() => t.animate ? "progress-bar-animated" : null), a = x(() => {
|
|
2277
2278
|
switch (t.severity) {
|
|
2278
2279
|
case "brand":
|
|
2279
2280
|
return "bg-brand";
|
|
@@ -2292,7 +2293,7 @@ const vt = { key: 0 }, bt = {
|
|
|
2292
2293
|
default:
|
|
2293
2294
|
return "bg-primary";
|
|
2294
2295
|
}
|
|
2295
|
-
}), n =
|
|
2296
|
+
}), n = x(() => ({
|
|
2296
2297
|
root: {
|
|
2297
2298
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2298
2299
|
},
|
|
@@ -2300,17 +2301,17 @@ const vt = { key: 0 }, bt = {
|
|
|
2300
2301
|
class: [a.value, l.value, o.value]
|
|
2301
2302
|
}
|
|
2302
2303
|
}));
|
|
2303
|
-
return (d,
|
|
2304
|
-
const u =
|
|
2305
|
-
return
|
|
2306
|
-
default:
|
|
2304
|
+
return (d, i) => {
|
|
2305
|
+
const u = Pe;
|
|
2306
|
+
return r(), w(u, V({ ...d.$attrs, ...t }, { pt: n.value }), {
|
|
2307
|
+
default: f(() => [
|
|
2307
2308
|
$(d.$slots, "default")
|
|
2308
2309
|
]),
|
|
2309
2310
|
_: 3
|
|
2310
2311
|
}, 16, ["pt"]);
|
|
2311
2312
|
};
|
|
2312
2313
|
}
|
|
2313
|
-
}),
|
|
2314
|
+
}), Wt = { class: "value text-white w-100 text-center" }, Ia = /* @__PURE__ */ F({
|
|
2314
2315
|
__name: "ForgeStatWidget",
|
|
2315
2316
|
props: {
|
|
2316
2317
|
size: { default: "md" },
|
|
@@ -2318,18 +2319,18 @@ const vt = { key: 0 }, bt = {
|
|
|
2318
2319
|
},
|
|
2319
2320
|
setup(e) {
|
|
2320
2321
|
const t = e;
|
|
2321
|
-
return (l, o) => (
|
|
2322
|
+
return (l, o) => (r(), b("div", V(l.$attrs, {
|
|
2322
2323
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2323
2324
|
}), [
|
|
2324
|
-
c("span",
|
|
2325
|
+
c("span", Wt, [
|
|
2325
2326
|
$(l.$slots, "default")
|
|
2326
2327
|
])
|
|
2327
2328
|
], 16));
|
|
2328
2329
|
}
|
|
2329
|
-
}),
|
|
2330
|
+
}), Zt = {
|
|
2330
2331
|
class: "d-flex flex-column align-items-center",
|
|
2331
2332
|
"data-cy": "stepper"
|
|
2332
|
-
},
|
|
2333
|
+
}, Jt = { class: "d-flex align-items-center justify-content-center w-100" }, za = /* @__PURE__ */ F({
|
|
2333
2334
|
__name: "ForgeStepper",
|
|
2334
2335
|
props: {
|
|
2335
2336
|
currentStep: { default: 0 },
|
|
@@ -2345,7 +2346,7 @@ const vt = { key: 0 }, bt = {
|
|
|
2345
2346
|
},
|
|
2346
2347
|
emits: ["update:currentStep"],
|
|
2347
2348
|
setup(e, { emit: t }) {
|
|
2348
|
-
const l = t, o = e, a =
|
|
2349
|
+
const l = t, o = e, a = P(o.currentStep), n = () => {
|
|
2349
2350
|
do
|
|
2350
2351
|
a.value--;
|
|
2351
2352
|
while (o.model[a.value].disabled);
|
|
@@ -2356,89 +2357,89 @@ const vt = { key: 0 }, bt = {
|
|
|
2356
2357
|
a.value++;
|
|
2357
2358
|
while (o.model[a.value].disabled);
|
|
2358
2359
|
l("update:currentStep", a.value);
|
|
2359
|
-
},
|
|
2360
|
-
const
|
|
2361
|
-
return !(
|
|
2362
|
-
}), u =
|
|
2363
|
-
menuitem: (
|
|
2360
|
+
}, i = x(() => {
|
|
2361
|
+
const m = o.model.findIndex((v) => !v.disabled);
|
|
2362
|
+
return !(m < a.value && m > -1);
|
|
2363
|
+
}), u = x(() => ({
|
|
2364
|
+
menuitem: (m) => ({
|
|
2364
2365
|
class: [{
|
|
2365
|
-
"cursor-pointer": !
|
|
2366
|
+
"cursor-pointer": !m.context.disabled
|
|
2366
2367
|
}]
|
|
2367
2368
|
}),
|
|
2368
|
-
step: (
|
|
2369
|
+
step: (m) => ({
|
|
2369
2370
|
class: [
|
|
2370
2371
|
"d-flex align-items-center justify-content-center mb-2 step",
|
|
2371
2372
|
{
|
|
2372
|
-
inactive:
|
|
2373
|
-
"bg-primary text-white":
|
|
2374
|
-
"bg-brand text-white":
|
|
2375
|
-
"bg-secondary text-white":
|
|
2376
|
-
"bg-success text-white":
|
|
2377
|
-
"bg-warning text-white":
|
|
2378
|
-
"bg-danger text-white":
|
|
2379
|
-
"bg-info text-white":
|
|
2373
|
+
inactive: m.context.disabled,
|
|
2374
|
+
"bg-primary text-white": m.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
|
|
2375
|
+
"bg-brand text-white": m.context.index === a.value && o.severity === "brand",
|
|
2376
|
+
"bg-secondary text-white": m.context.index === a.value && o.severity === "secondary",
|
|
2377
|
+
"bg-success text-white": m.context.index === a.value && o.severity === "success",
|
|
2378
|
+
"bg-warning text-white": m.context.index === a.value && o.severity === "warning",
|
|
2379
|
+
"bg-danger text-white": m.context.index === a.value && o.severity === "danger",
|
|
2380
|
+
"bg-info text-white": m.context.index === a.value && o.severity === "info"
|
|
2380
2381
|
}
|
|
2381
2382
|
]
|
|
2382
2383
|
}),
|
|
2383
|
-
label: (
|
|
2384
|
+
label: (m) => ({
|
|
2384
2385
|
class: [
|
|
2385
2386
|
"h5",
|
|
2386
2387
|
{
|
|
2387
|
-
"border-bottom border-2 border-primary":
|
|
2388
|
-
"border-bottom border-2 border-brand":
|
|
2389
|
-
"border-bottom border-2 border-secondary":
|
|
2390
|
-
"border-bottom border-2 border-success":
|
|
2391
|
-
"border-bottom border-2 border-warning":
|
|
2392
|
-
"border-bottom border-2 border-danger":
|
|
2393
|
-
"border-bottom border-2 border-info":
|
|
2388
|
+
"border-bottom border-2 border-primary": m.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
|
|
2389
|
+
"border-bottom border-2 border-brand": m.context.index === a.value && o.severity === "brand",
|
|
2390
|
+
"border-bottom border-2 border-secondary": m.context.index === a.value && o.severity === "secondary",
|
|
2391
|
+
"border-bottom border-2 border-success": m.context.index === a.value && o.severity === "success",
|
|
2392
|
+
"border-bottom border-2 border-warning": m.context.index === a.value && o.severity === "warning",
|
|
2393
|
+
"border-bottom border-2 border-danger": m.context.index === a.value && o.severity === "danger",
|
|
2394
|
+
"border-bottom border-2 border-info": m.context.index === a.value && o.severity === "info"
|
|
2394
2395
|
}
|
|
2395
2396
|
]
|
|
2396
2397
|
})
|
|
2397
2398
|
}));
|
|
2398
|
-
return (
|
|
2399
|
-
const s =
|
|
2400
|
-
return
|
|
2401
|
-
c("div",
|
|
2402
|
-
|
|
2399
|
+
return (m, v) => {
|
|
2400
|
+
const s = E, C = Ie, T = Me;
|
|
2401
|
+
return r(), b("div", Zt, [
|
|
2402
|
+
c("div", Jt, [
|
|
2403
|
+
y(s, {
|
|
2403
2404
|
severity: o.severity,
|
|
2404
|
-
disabled:
|
|
2405
|
+
disabled: i.value,
|
|
2405
2406
|
onClick: n,
|
|
2406
2407
|
class: "rounded-circle py-2 me-4",
|
|
2407
2408
|
"data-cy": "back-button"
|
|
2408
2409
|
}, {
|
|
2409
|
-
default:
|
|
2410
|
-
|
|
2410
|
+
default: f(() => [
|
|
2411
|
+
y(p(_), {
|
|
2411
2412
|
icon: "bi:chevron-left",
|
|
2412
2413
|
class: "mb-1"
|
|
2413
2414
|
})
|
|
2414
2415
|
]),
|
|
2415
2416
|
_: 1
|
|
2416
2417
|
}, 8, ["severity", "disabled"]),
|
|
2417
|
-
|
|
2418
|
+
y(C, {
|
|
2418
2419
|
"active-step": a.value,
|
|
2419
|
-
"onUpdate:activeStep":
|
|
2420
|
+
"onUpdate:activeStep": v[0] || (v[0] = (M) => a.value = M),
|
|
2420
2421
|
model: o.model,
|
|
2421
2422
|
pt: u.value,
|
|
2422
2423
|
readonly: !1
|
|
2423
2424
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2424
2425
|
]),
|
|
2425
|
-
|
|
2426
|
-
(
|
|
2427
|
-
key:
|
|
2426
|
+
y(T, { class: "m-4" }),
|
|
2427
|
+
(r(!0), b(N, null, H(o.model, (M, I) => (r(), b("div", {
|
|
2428
|
+
key: I,
|
|
2428
2429
|
class: "w-100"
|
|
2429
2430
|
}, [
|
|
2430
|
-
|
|
2431
|
+
I === a.value ? $(m.$slots, M.key ?? M.label, {
|
|
2431
2432
|
key: 0,
|
|
2432
2433
|
nextStep: d,
|
|
2433
2434
|
previousStep: n
|
|
2434
2435
|
}, () => [
|
|
2435
|
-
|
|
2436
|
+
y(oe, {
|
|
2436
2437
|
severity: "info",
|
|
2437
2438
|
"data-cy": "alert"
|
|
2438
2439
|
}, {
|
|
2439
|
-
default:
|
|
2440
|
-
|
|
2441
|
-
|
|
2440
|
+
default: f(() => [
|
|
2441
|
+
z(" Please add Slot Content for the key " + h(M.key ?? M.label) + " ", 1),
|
|
2442
|
+
y(s, {
|
|
2442
2443
|
severity: "primary",
|
|
2443
2444
|
label: "Next",
|
|
2444
2445
|
onClick: d,
|
|
@@ -2452,7 +2453,7 @@ const vt = { key: 0 }, bt = {
|
|
|
2452
2453
|
]);
|
|
2453
2454
|
};
|
|
2454
2455
|
}
|
|
2455
|
-
}),
|
|
2456
|
+
}), Xt = { class: "p-4 text-wrap w-100" }, Qt = { class: "p-4 text-wrap w-100" }, Oa = /* @__PURE__ */ F({
|
|
2456
2457
|
__name: "ForgeTile",
|
|
2457
2458
|
props: {
|
|
2458
2459
|
severity: { default: "primary" },
|
|
@@ -2461,32 +2462,32 @@ const vt = { key: 0 }, bt = {
|
|
|
2461
2462
|
selected: { type: Boolean, default: !1 }
|
|
2462
2463
|
},
|
|
2463
2464
|
setup(e) {
|
|
2464
|
-
const t = e, l =
|
|
2465
|
+
const t = e, l = x(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), o = x(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
2465
2466
|
return (a, n) => {
|
|
2466
|
-
const d =
|
|
2467
|
-
return t.clickable ? (
|
|
2467
|
+
const d = E;
|
|
2468
|
+
return t.clickable ? (r(), w(d, {
|
|
2468
2469
|
key: 0,
|
|
2469
2470
|
class: B(["d-flex w-100 p-0 text-body", l.value]),
|
|
2470
2471
|
severity: t.severity,
|
|
2471
2472
|
unstyled: "",
|
|
2472
2473
|
"data-cy": "button-tile"
|
|
2473
2474
|
}, {
|
|
2474
|
-
default:
|
|
2475
|
-
c("div",
|
|
2475
|
+
default: f(() => [
|
|
2476
|
+
c("div", Xt, [
|
|
2476
2477
|
$(a.$slots, "default", {}, () => [
|
|
2477
|
-
n[0] || (n[0] =
|
|
2478
|
+
n[0] || (n[0] = z("Tile Content"))
|
|
2478
2479
|
])
|
|
2479
2480
|
])
|
|
2480
2481
|
]),
|
|
2481
2482
|
_: 3
|
|
2482
|
-
}, 8, ["severity", "class"])) : (
|
|
2483
|
+
}, 8, ["severity", "class"])) : (r(), b("div", {
|
|
2483
2484
|
key: 1,
|
|
2484
2485
|
class: B(["d-flex w-100", o.value]),
|
|
2485
2486
|
"data-cy": "tile"
|
|
2486
2487
|
}, [
|
|
2487
|
-
c("div",
|
|
2488
|
+
c("div", Qt, [
|
|
2488
2489
|
$(a.$slots, "default", {}, () => [
|
|
2489
|
-
n[1] || (n[1] =
|
|
2490
|
+
n[1] || (n[1] = z("Tile Content"))
|
|
2490
2491
|
])
|
|
2491
2492
|
])
|
|
2492
2493
|
], 2));
|
|
@@ -2496,13 +2497,13 @@ const vt = { key: 0 }, bt = {
|
|
|
2496
2497
|
function X(e, t) {
|
|
2497
2498
|
return e > 1 ? `${t}s` : t;
|
|
2498
2499
|
}
|
|
2499
|
-
const
|
|
2500
|
+
const el = {
|
|
2500
2501
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2501
2502
|
"data-cy": "pagination-header"
|
|
2502
|
-
},
|
|
2503
|
+
}, tl = { class: "ms-2" }, ll = { key: 0 }, al = {
|
|
2503
2504
|
class: "w-auto",
|
|
2504
2505
|
"data-cy": "total"
|
|
2505
|
-
},
|
|
2506
|
+
}, ol = /* @__PURE__ */ F({
|
|
2506
2507
|
__name: "ForgePaginationHeader",
|
|
2507
2508
|
props: {
|
|
2508
2509
|
total: {},
|
|
@@ -2513,30 +2514,30 @@ const Qt = {
|
|
|
2513
2514
|
setup(e, { emit: t }) {
|
|
2514
2515
|
const l = t, o = e, a = (d) => {
|
|
2515
2516
|
l("update:perPage", d.value);
|
|
2516
|
-
}, n =
|
|
2517
|
+
}, n = x(() => {
|
|
2517
2518
|
const d = Math.ceil(o.total / o.perPage);
|
|
2518
2519
|
return `${d} ${X(d, "page")}`;
|
|
2519
2520
|
});
|
|
2520
|
-
return (d,
|
|
2521
|
-
|
|
2522
|
-
c("div",
|
|
2523
|
-
|
|
2521
|
+
return (d, i) => (r(), b("div", el, [
|
|
2522
|
+
i[2] || (i[2] = z(" Number of results per page ")),
|
|
2523
|
+
c("div", tl, [
|
|
2524
|
+
y(p(ae), {
|
|
2524
2525
|
options: o.pageSizes,
|
|
2525
2526
|
"model-value": o.perPage,
|
|
2526
2527
|
class: "page-size",
|
|
2527
|
-
onChange:
|
|
2528
|
+
onChange: i[0] || (i[0] = (u) => a(u))
|
|
2528
2529
|
}, null, 8, ["options", "model-value"])
|
|
2529
2530
|
]),
|
|
2530
|
-
o.total ? (
|
|
2531
|
-
|
|
2532
|
-
c("span",
|
|
2531
|
+
o.total ? (r(), b("div", ll, [
|
|
2532
|
+
i[1] || (i[1] = c("span", { class: "mx-2" }, "|", -1)),
|
|
2533
|
+
c("span", al, h(o.total) + " " + h(p(X)(o.total, "result")) + " across " + h(n.value), 1)
|
|
2533
2534
|
])) : S("", !0)
|
|
2534
2535
|
]));
|
|
2535
2536
|
}
|
|
2536
|
-
}),
|
|
2537
|
+
}), nl = { class: "position-relative" }, sl = { "data-cy": "above-table-slot" }, il = { class: "d-flex w-100" }, rl = {
|
|
2537
2538
|
class: "mx-auto",
|
|
2538
2539
|
"data-cy": "empty-message"
|
|
2539
|
-
},
|
|
2540
|
+
}, dl = { class: "d-flex" }, ul = { class: "d-flex align-items-end mb-2" }, cl = { key: 0 }, ml = { class: "ms-auto" }, Da = /* @__PURE__ */ F({
|
|
2540
2541
|
__name: "ForgeTable",
|
|
2541
2542
|
props: {
|
|
2542
2543
|
value: {},
|
|
@@ -2618,17 +2619,17 @@ const Qt = {
|
|
|
2618
2619
|
},
|
|
2619
2620
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
2620
2621
|
setup(e, { emit: t }) {
|
|
2621
|
-
const l = t, o = e, a =
|
|
2622
|
+
const l = t, o = e, a = P(), n = P([10, 20, 50, 100]), d = P(20), i = P({
|
|
2622
2623
|
filters: o.filters,
|
|
2623
2624
|
perPage: d.value,
|
|
2624
2625
|
page: 0,
|
|
2625
2626
|
sortDirection: "None",
|
|
2626
2627
|
sortField: "",
|
|
2627
2628
|
total: o.totalRecords ?? o.value.length
|
|
2628
|
-
}), u =
|
|
2629
|
-
const
|
|
2630
|
-
return `${
|
|
2631
|
-
}),
|
|
2629
|
+
}), u = x(() => o.totalRecords ?? o.value.length), m = x(() => {
|
|
2630
|
+
const g = Math.ceil(u.value / d.value);
|
|
2631
|
+
return `${g} ${X(g, "page")}`;
|
|
2632
|
+
}), v = x(() => ({
|
|
2632
2633
|
thead: () => ({
|
|
2633
2634
|
class: [
|
|
2634
2635
|
{
|
|
@@ -2654,148 +2655,149 @@ const Qt = {
|
|
|
2654
2655
|
if (o.clearAll)
|
|
2655
2656
|
o.clearAll();
|
|
2656
2657
|
else
|
|
2657
|
-
for (const
|
|
2658
|
-
typeof o.filters[
|
|
2659
|
-
|
|
2660
|
-
},
|
|
2658
|
+
for (const g in o.filters)
|
|
2659
|
+
typeof o.filters[g] == "string" ? o.filters[g] = "" : o.filters[g].value = null;
|
|
2660
|
+
M(o.filters);
|
|
2661
|
+
}, C = () => {
|
|
2661
2662
|
a.value.exportCSV();
|
|
2662
|
-
},
|
|
2663
|
-
var
|
|
2664
|
-
|
|
2665
|
-
},
|
|
2666
|
-
|
|
2667
|
-
},
|
|
2668
|
-
|
|
2669
|
-
},
|
|
2670
|
-
|
|
2663
|
+
}, T = (g) => {
|
|
2664
|
+
var k;
|
|
2665
|
+
i.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", i.value.sortField = ((k = g.sortField) == null ? void 0 : k.toString()) ?? "", l("update:tableContext", i.value), l("sort", g);
|
|
2666
|
+
}, M = (g) => {
|
|
2667
|
+
i.value.filters = g, l("update:tableContext", i.value), l("update:filters", g);
|
|
2668
|
+
}, I = (g) => {
|
|
2669
|
+
i.value.page = g.page, l("update:tableContext", i.value), l("page", g);
|
|
2670
|
+
}, O = () => {
|
|
2671
|
+
i.value.perPage = d.value, l("update:tableContext", i.value);
|
|
2671
2672
|
};
|
|
2672
|
-
return de(() => o.filters, (
|
|
2673
|
-
|
|
2674
|
-
}, { deep: !0 }),
|
|
2675
|
-
c("span",
|
|
2676
|
-
$(
|
|
2673
|
+
return de(() => o.filters, (g) => {
|
|
2674
|
+
i.value.filters = g, l("update:tableContext", i.value);
|
|
2675
|
+
}, { deep: !0 }), le(() => l("update:tableContext", i.value)), (g, k) => (r(), b("div", nl, [
|
|
2676
|
+
c("span", sl, [
|
|
2677
|
+
$(g.$slots, "above-table")
|
|
2677
2678
|
]),
|
|
2678
|
-
|
|
2679
|
+
y(p(ze), V({
|
|
2679
2680
|
class: ["w-100", `${o.severity ? `forge-table-${o.severity}` : ""}`]
|
|
2680
|
-
}, { ...o, ...
|
|
2681
|
-
pt:
|
|
2681
|
+
}, { ...o, ...g.$attrs }, {
|
|
2682
|
+
pt: v.value,
|
|
2682
2683
|
rows: d.value,
|
|
2683
2684
|
"total-records": u.value,
|
|
2684
2685
|
"filter-display": o.filters ? "row" : void 0,
|
|
2685
2686
|
ref_key: "forgeTable",
|
|
2686
2687
|
ref: a,
|
|
2687
2688
|
"data-cy": "table",
|
|
2688
|
-
"onUpdate:filters":
|
|
2689
|
-
onSort:
|
|
2690
|
-
onPage:
|
|
2689
|
+
"onUpdate:filters": M,
|
|
2690
|
+
onSort: T,
|
|
2691
|
+
onPage: I
|
|
2691
2692
|
}), te({
|
|
2692
|
-
empty:
|
|
2693
|
-
c("div",
|
|
2694
|
-
c("h5",
|
|
2693
|
+
empty: f(() => [
|
|
2694
|
+
c("div", il, [
|
|
2695
|
+
c("h5", rl, h(g.emptyMessage ?? "No items Found."), 1)
|
|
2695
2696
|
])
|
|
2696
2697
|
]),
|
|
2697
|
-
header:
|
|
2698
|
+
header: f(() => [
|
|
2698
2699
|
c("div", {
|
|
2699
2700
|
class: B(o.loading ? "opacity-50" : "")
|
|
2700
2701
|
}, [
|
|
2701
|
-
c("div",
|
|
2702
|
-
c("div",
|
|
2703
|
-
|
|
2704
|
-
|
|
2702
|
+
c("div", dl, [
|
|
2703
|
+
c("div", ul, [
|
|
2704
|
+
g.paginator && !g.legacyPaginationFooter ? (r(), b("span", cl, [
|
|
2705
|
+
y(ol, {
|
|
2705
2706
|
total: u.value,
|
|
2706
2707
|
"page-sizes": n.value,
|
|
2707
2708
|
"per-page": d.value,
|
|
2708
2709
|
"onUpdate:perPage": [
|
|
2709
|
-
|
|
2710
|
-
|
|
2710
|
+
k[0] || (k[0] = (G) => d.value = G),
|
|
2711
|
+
O
|
|
2711
2712
|
]
|
|
2712
2713
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2713
2714
|
])) : S("", !0)
|
|
2714
2715
|
]),
|
|
2715
|
-
c("div",
|
|
2716
|
-
|
|
2716
|
+
c("div", ml, [
|
|
2717
|
+
g.showClearButton ? (r(), w(p(E), {
|
|
2717
2718
|
key: 0,
|
|
2718
2719
|
outlined: "",
|
|
2719
|
-
class: B(
|
|
2720
|
+
class: B(g.showExporterButton ? "me-2" : ""),
|
|
2720
2721
|
onClick: s,
|
|
2721
2722
|
"data-cy": "clear-all"
|
|
2722
2723
|
}, {
|
|
2723
|
-
default:
|
|
2724
|
-
|
|
2724
|
+
default: f(() => [
|
|
2725
|
+
y(p(_), {
|
|
2725
2726
|
icon: "bi:funnel-fill",
|
|
2726
2727
|
width: "24",
|
|
2727
2728
|
height: "24"
|
|
2728
2729
|
}),
|
|
2729
|
-
|
|
2730
|
+
k[2] || (k[2] = z(" Clear "))
|
|
2730
2731
|
]),
|
|
2731
2732
|
_: 1
|
|
2732
2733
|
}, 8, ["class"])) : S("", !0),
|
|
2733
|
-
|
|
2734
|
+
g.showExporterButton ? (r(), w(p(E), {
|
|
2734
2735
|
key: 1,
|
|
2735
2736
|
outlined: "",
|
|
2736
|
-
onClick:
|
|
2737
|
+
onClick: C,
|
|
2737
2738
|
"data-cy": "exporter"
|
|
2738
2739
|
}, {
|
|
2739
|
-
default:
|
|
2740
|
-
|
|
2740
|
+
default: f(() => [
|
|
2741
|
+
y(p(_), {
|
|
2741
2742
|
icon: "typcn:export",
|
|
2742
2743
|
width: "24",
|
|
2743
2744
|
height: "24"
|
|
2744
2745
|
}),
|
|
2745
|
-
|
|
2746
|
+
k[3] || (k[3] = z(" Export "))
|
|
2746
2747
|
]),
|
|
2747
2748
|
_: 1
|
|
2748
|
-
})) : S("", !0)
|
|
2749
|
+
})) : S("", !0),
|
|
2750
|
+
$(g.$slots, "column-customiser")
|
|
2749
2751
|
])
|
|
2750
2752
|
])
|
|
2751
2753
|
], 2)
|
|
2752
2754
|
]),
|
|
2753
|
-
default:
|
|
2754
|
-
$(
|
|
2755
|
+
default: f(() => [
|
|
2756
|
+
$(g.$slots, "default")
|
|
2755
2757
|
]),
|
|
2756
2758
|
_: 2
|
|
2757
2759
|
}, [
|
|
2758
|
-
|
|
2760
|
+
H(g.$slots, (G, Z) => ({
|
|
2759
2761
|
name: Z,
|
|
2760
|
-
fn:
|
|
2761
|
-
$(
|
|
2762
|
+
fn: f((ne) => [
|
|
2763
|
+
$(g.$slots, Z, Q(ee(ne || {})))
|
|
2762
2764
|
])
|
|
2763
2765
|
})),
|
|
2764
|
-
|
|
2766
|
+
g.legacyPaginationFooter ? {
|
|
2765
2767
|
name: "paginatorstart",
|
|
2766
|
-
fn:
|
|
2768
|
+
fn: f(() => [
|
|
2767
2769
|
c("span", {
|
|
2768
2770
|
class: B(["d-flex", o.loading ? "opacity-50" : ""]),
|
|
2769
2771
|
"data-cy": "legacy-page-size"
|
|
2770
2772
|
}, [
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
+
k[4] || (k[4] = c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
2774
|
+
y(p(ae), {
|
|
2773
2775
|
options: n.value,
|
|
2774
2776
|
modelValue: d.value,
|
|
2775
|
-
"onUpdate:modelValue":
|
|
2777
|
+
"onUpdate:modelValue": k[1] || (k[1] = (G) => d.value = G),
|
|
2776
2778
|
class: "ms-2",
|
|
2777
|
-
onClick:
|
|
2779
|
+
onClick: O
|
|
2778
2780
|
}, null, 8, ["options", "modelValue"])
|
|
2779
2781
|
], 2)
|
|
2780
2782
|
]),
|
|
2781
2783
|
key: "0"
|
|
2782
2784
|
} : void 0,
|
|
2783
|
-
|
|
2785
|
+
g.legacyPaginationFooter ? {
|
|
2784
2786
|
name: "paginatorend",
|
|
2785
|
-
fn:
|
|
2787
|
+
fn: f(() => [
|
|
2786
2788
|
c("span", {
|
|
2787
2789
|
"data-cy": "legacy-total",
|
|
2788
2790
|
class: B(o.loading ? "opacity-50" : "")
|
|
2789
|
-
}, h(u.value) + " " + h(
|
|
2791
|
+
}, h(u.value) + " " + h(p(X)(u.value, "result")) + " across " + h(m.value), 3)
|
|
2790
2792
|
]),
|
|
2791
2793
|
key: "1"
|
|
2792
2794
|
} : void 0
|
|
2793
2795
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
2794
2796
|
]));
|
|
2795
2797
|
}
|
|
2796
|
-
}),
|
|
2798
|
+
}), pl = { class: "d-flex position-relative" }, vl = { class: "d-flex w-100" }, yl = { class: "d-flex w-100" }, Ua = /* @__PURE__ */ F({
|
|
2797
2799
|
__name: "ForgeFilterHeader",
|
|
2798
|
-
props: /* @__PURE__ */
|
|
2800
|
+
props: /* @__PURE__ */ R({
|
|
2799
2801
|
dataType: {},
|
|
2800
2802
|
dropdownOptions: {},
|
|
2801
2803
|
showClearButton: { type: Boolean, default: !1 },
|
|
@@ -2808,13 +2810,13 @@ const Qt = {
|
|
|
2808
2810
|
}),
|
|
2809
2811
|
emits: ["update:modelValue"],
|
|
2810
2812
|
setup(e) {
|
|
2811
|
-
const t =
|
|
2813
|
+
const t = U(e, "modelValue"), l = (a, n) => {
|
|
2812
2814
|
if (!a || Array.isArray(a) && a.length === 0)
|
|
2813
2815
|
return n;
|
|
2814
|
-
const d = (
|
|
2815
|
-
var
|
|
2816
|
-
const u = (
|
|
2817
|
-
(
|
|
2816
|
+
const d = (i) => {
|
|
2817
|
+
var m;
|
|
2818
|
+
const u = (m = e.dropdownOptions) == null ? void 0 : m.find(
|
|
2819
|
+
(v) => e.optionValue ? v[e.optionValue] === i : Object.keys(v).every((s) => i.hasOwnProperty(s) && v[s] === i[s])
|
|
2818
2820
|
);
|
|
2819
2821
|
return e.optionLabel ? u[e.optionLabel] : u;
|
|
2820
2822
|
};
|
|
@@ -2823,20 +2825,20 @@ const Qt = {
|
|
|
2823
2825
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
2824
2826
|
};
|
|
2825
2827
|
return (a, n) => {
|
|
2826
|
-
const d =
|
|
2827
|
-
return
|
|
2828
|
-
a.dataType === "numeric" ? (
|
|
2828
|
+
const d = ce, i = E;
|
|
2829
|
+
return r(), b("div", pl, [
|
|
2830
|
+
a.dataType === "numeric" ? (r(), w(d, V({
|
|
2829
2831
|
key: 0,
|
|
2830
2832
|
modelValue: t.value,
|
|
2831
2833
|
"onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
|
|
2832
|
-
}, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (
|
|
2834
|
+
}, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (r(), w(be, V({
|
|
2833
2835
|
key: 1,
|
|
2834
2836
|
modelValue: t.value,
|
|
2835
2837
|
"onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
|
|
2836
2838
|
}, a.$attrs, {
|
|
2837
2839
|
"show-icon": !1,
|
|
2838
2840
|
"show-on-focus": !0
|
|
2839
|
-
}), null, 16, ["modelValue"])) : a.dataType === "select" ? (
|
|
2841
|
+
}), null, 16, ["modelValue"])) : a.dataType === "select" ? (r(), w(p(ae), V({
|
|
2840
2842
|
key: 2,
|
|
2841
2843
|
modelValue: t.value,
|
|
2842
2844
|
"onUpdate:modelValue": n[2] || (n[2] = (u) => t.value = u)
|
|
@@ -2845,19 +2847,19 @@ const Qt = {
|
|
|
2845
2847
|
"option-value": a.optionValue,
|
|
2846
2848
|
"option-label": a.optionLabel
|
|
2847
2849
|
}), {
|
|
2848
|
-
value:
|
|
2849
|
-
c("div",
|
|
2850
|
+
value: f(({ value: u, placeholder: m }) => [
|
|
2851
|
+
c("div", vl, [
|
|
2850
2852
|
c("span", {
|
|
2851
2853
|
class: B({ "filter-placeholder": u === null })
|
|
2852
|
-
}, h(l(u,
|
|
2853
|
-
a.showClearButton && t.value !== null ? (
|
|
2854
|
+
}, h(l(u, m)), 3),
|
|
2855
|
+
a.showClearButton && t.value !== null ? (r(), w(i, {
|
|
2854
2856
|
key: 0,
|
|
2855
|
-
onClick:
|
|
2857
|
+
onClick: Y(o, ["prevent"]),
|
|
2856
2858
|
size: "small",
|
|
2857
2859
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2858
2860
|
}, {
|
|
2859
|
-
default:
|
|
2860
|
-
|
|
2861
|
+
default: f(() => [
|
|
2862
|
+
y(p(_), {
|
|
2861
2863
|
icon: "bi:x",
|
|
2862
2864
|
width: "1rem",
|
|
2863
2865
|
height: "1rem",
|
|
@@ -2869,7 +2871,7 @@ const Qt = {
|
|
|
2869
2871
|
])
|
|
2870
2872
|
]),
|
|
2871
2873
|
_: 1
|
|
2872
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (
|
|
2874
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (r(), w(p(Oe), V({
|
|
2873
2875
|
key: 3,
|
|
2874
2876
|
modelValue: t.value,
|
|
2875
2877
|
"onUpdate:modelValue": n[3] || (n[3] = (u) => t.value = u)
|
|
@@ -2880,19 +2882,19 @@ const Qt = {
|
|
|
2880
2882
|
"option-value": a.optionValue,
|
|
2881
2883
|
filter: ""
|
|
2882
2884
|
}), {
|
|
2883
|
-
value:
|
|
2885
|
+
value: f(({ value: u, placeholder: m }) => [
|
|
2884
2886
|
c("div", yl, [
|
|
2885
2887
|
c("span", {
|
|
2886
2888
|
class: B({ "filter-placeholder": (u == null ? void 0 : u.length) === 0 || u === null })
|
|
2887
|
-
}, h(l(u,
|
|
2888
|
-
a.showClearButton && (u == null ? void 0 : u.length) > 0 ? (
|
|
2889
|
+
}, h(l(u, m)), 3),
|
|
2890
|
+
a.showClearButton && (u == null ? void 0 : u.length) > 0 ? (r(), w(i, {
|
|
2889
2891
|
key: 0,
|
|
2890
|
-
onClick:
|
|
2892
|
+
onClick: Y(o, ["prevent"]),
|
|
2891
2893
|
size: "small",
|
|
2892
2894
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2893
2895
|
}, {
|
|
2894
|
-
default:
|
|
2895
|
-
|
|
2896
|
+
default: f(() => [
|
|
2897
|
+
y(p(_), {
|
|
2896
2898
|
icon: "bi:x",
|
|
2897
2899
|
width: "1rem",
|
|
2898
2900
|
height: "1rem",
|
|
@@ -2904,19 +2906,19 @@ const Qt = {
|
|
|
2904
2906
|
])
|
|
2905
2907
|
]),
|
|
2906
2908
|
_: 1
|
|
2907
|
-
}, 16, ["modelValue", "options", "option-label", "option-value"])) : (
|
|
2909
|
+
}, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), w(p(ie), V({
|
|
2908
2910
|
key: 4,
|
|
2909
2911
|
modelValue: t.value,
|
|
2910
2912
|
"onUpdate:modelValue": n[4] || (n[4] = (u) => t.value = u)
|
|
2911
2913
|
}, a.$attrs), null, 16, ["modelValue"])),
|
|
2912
|
-
a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (
|
|
2914
|
+
a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (r(), w(i, {
|
|
2913
2915
|
key: 5,
|
|
2914
|
-
onClick:
|
|
2916
|
+
onClick: Y(o, ["prevent"]),
|
|
2915
2917
|
size: "small",
|
|
2916
2918
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
2917
2919
|
}, {
|
|
2918
|
-
default:
|
|
2919
|
-
|
|
2920
|
+
default: f(() => [
|
|
2921
|
+
y(p(_), {
|
|
2920
2922
|
icon: "bi:x",
|
|
2921
2923
|
width: "1rem",
|
|
2922
2924
|
height: "1rem",
|
|
@@ -2929,22 +2931,22 @@ const Qt = {
|
|
|
2929
2931
|
};
|
|
2930
2932
|
}
|
|
2931
2933
|
});
|
|
2932
|
-
function
|
|
2934
|
+
function fe(e, t, l, o) {
|
|
2933
2935
|
const a = t.flatMap((n) => n.file);
|
|
2934
2936
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2935
2937
|
const d = a.findIndex((u) => u.name === n.name);
|
|
2936
|
-
let
|
|
2937
|
-
d === -1 ? ((!l.includes(n.type) || !(n.size <= o)) && (
|
|
2938
|
+
let i = "Not Uploaded";
|
|
2939
|
+
d === -1 ? ((!l.includes(n.type) || !(n.size <= o)) && (i = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2938
2940
|
file: n,
|
|
2939
|
-
status:
|
|
2941
|
+
status: i,
|
|
2940
2942
|
blobFileName: null
|
|
2941
2943
|
})) : t[d].status = "Duplicate";
|
|
2942
2944
|
}), t;
|
|
2943
2945
|
}
|
|
2944
|
-
async function
|
|
2946
|
+
async function bl(e, t) {
|
|
2945
2947
|
if (e === "Uploaded" && t !== null)
|
|
2946
2948
|
try {
|
|
2947
|
-
await new
|
|
2949
|
+
await new me(t).delete();
|
|
2948
2950
|
} catch (l) {
|
|
2949
2951
|
if (l !== "BlobNotFound") {
|
|
2950
2952
|
e = "DeleteFileFailed";
|
|
@@ -2964,15 +2966,18 @@ function re(e, t = !0, l = 1) {
|
|
|
2964
2966
|
while (Math.round(Math.abs(e) * d) / d >= o && n < a.length - 1);
|
|
2965
2967
|
return e.toFixed(l) + " " + a[n];
|
|
2966
2968
|
}
|
|
2967
|
-
function
|
|
2969
|
+
function fl(e) {
|
|
2968
2970
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
2969
2971
|
}
|
|
2970
|
-
function
|
|
2972
|
+
function gl(e) {
|
|
2971
2973
|
return URL.createObjectURL(e);
|
|
2972
2974
|
}
|
|
2973
|
-
const
|
|
2975
|
+
const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disabled", "multiple"], kl = {
|
|
2976
|
+
class: "text-break accepted-file-types-container",
|
|
2977
|
+
id: "accepted-file-types-overlay"
|
|
2978
|
+
}, xl = /* @__PURE__ */ F({
|
|
2974
2979
|
__name: "UploadButton",
|
|
2975
|
-
props: /* @__PURE__ */
|
|
2980
|
+
props: /* @__PURE__ */ R({
|
|
2976
2981
|
acceptedFileTypes: {},
|
|
2977
2982
|
maxFileInput: {},
|
|
2978
2983
|
showDragDropArea: { type: Boolean }
|
|
@@ -2982,54 +2987,73 @@ const gl = { class: "d-flex justify-content-between" }, hl = ["accept", "disable
|
|
|
2982
2987
|
}),
|
|
2983
2988
|
emits: ["update:modelValue"],
|
|
2984
2989
|
setup(e) {
|
|
2985
|
-
const t =
|
|
2986
|
-
t.value =
|
|
2990
|
+
const t = U(e, "modelValue"), l = P(), o = (d) => l.value.toggle(d), a = x(() => e.maxFileInput <= t.value.length), n = (d) => {
|
|
2991
|
+
t.value = fe(d, t.value, e.acceptedFileTypes.map((i) => i.fileType), e.maxFileInput);
|
|
2992
|
+
};
|
|
2993
|
+
return (d, i) => {
|
|
2994
|
+
const u = E;
|
|
2995
|
+
return r(), b("div", hl, [
|
|
2996
|
+
$(d.$slots, "message"),
|
|
2997
|
+
c("div", null, [
|
|
2998
|
+
c("input", {
|
|
2999
|
+
id: "file-input",
|
|
3000
|
+
type: "file",
|
|
3001
|
+
class: "d-none",
|
|
3002
|
+
accept: d.acceptedFileTypes.join(", "),
|
|
3003
|
+
disabled: a.value,
|
|
3004
|
+
multiple: d.maxFileInput > 1,
|
|
3005
|
+
onInput: i[0] || (i[0] = (m) => n([...m.target.files]))
|
|
3006
|
+
}, null, 40, wl),
|
|
3007
|
+
c("label", {
|
|
3008
|
+
class: B([{ disabled: a.value }, "btn btn-primary"]),
|
|
3009
|
+
id: "file-input-button",
|
|
3010
|
+
for: "file-input"
|
|
3011
|
+
}, [
|
|
3012
|
+
$(d.$slots, "button-content", {}, () => [
|
|
3013
|
+
y(p(_), {
|
|
3014
|
+
icon: "bi:upload",
|
|
3015
|
+
class: "me-2",
|
|
3016
|
+
height: "20px",
|
|
3017
|
+
width: "20px"
|
|
3018
|
+
}),
|
|
3019
|
+
i[1] || (i[1] = z(" Browse your computer "))
|
|
3020
|
+
])
|
|
3021
|
+
], 2)
|
|
3022
|
+
]),
|
|
3023
|
+
d.showDragDropArea ? (r(), w(u, {
|
|
3024
|
+
link: "",
|
|
3025
|
+
class: "ms-auto",
|
|
3026
|
+
key: d.acceptedFileTypes.length,
|
|
3027
|
+
id: "accepted-file-types",
|
|
3028
|
+
onClick: o
|
|
3029
|
+
}, {
|
|
3030
|
+
default: f(() => i[2] || (i[2] = [
|
|
3031
|
+
z("Accepted File Types")
|
|
3032
|
+
])),
|
|
3033
|
+
_: 1
|
|
3034
|
+
})) : S("", !0),
|
|
3035
|
+
y(p(pe), {
|
|
3036
|
+
ref_key: "acceptedFilesOverlay",
|
|
3037
|
+
ref: l
|
|
3038
|
+
}, {
|
|
3039
|
+
default: f(() => [
|
|
3040
|
+
c("div", kl, h(d.acceptedFileTypes.map((m) => m.label ?? m.fileType.split("/").pop()).join(", ")), 1)
|
|
3041
|
+
]),
|
|
3042
|
+
_: 1
|
|
3043
|
+
}, 512)
|
|
3044
|
+
]);
|
|
2987
3045
|
};
|
|
2988
|
-
return (a, n) => (i(), v("div", gl, [
|
|
2989
|
-
$(a.$slots, "message"),
|
|
2990
|
-
c("div", null, [
|
|
2991
|
-
c("input", {
|
|
2992
|
-
id: "file-input",
|
|
2993
|
-
type: "file",
|
|
2994
|
-
class: "d-none",
|
|
2995
|
-
accept: a.acceptedFileTypes.join(", "),
|
|
2996
|
-
disabled: l.value,
|
|
2997
|
-
multiple: a.maxFileInput > 1,
|
|
2998
|
-
onInput: n[0] || (n[0] = (d) => o([...d.target.files]))
|
|
2999
|
-
}, null, 40, hl),
|
|
3000
|
-
c("label", {
|
|
3001
|
-
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
3002
|
-
id: "file-input-button",
|
|
3003
|
-
for: "file-input"
|
|
3004
|
-
}, [
|
|
3005
|
-
$(a.$slots, "button-content", {}, () => [
|
|
3006
|
-
f(m(V), {
|
|
3007
|
-
icon: "bi:upload",
|
|
3008
|
-
class: "me-2",
|
|
3009
|
-
height: "20px",
|
|
3010
|
-
width: "20px"
|
|
3011
|
-
}),
|
|
3012
|
-
n[1] || (n[1] = O(" Browse your computer "))
|
|
3013
|
-
])
|
|
3014
|
-
], 2)
|
|
3015
|
-
]),
|
|
3016
|
-
a.showDragDropArea ? (i(), v("div", {
|
|
3017
|
-
class: "ms-auto",
|
|
3018
|
-
key: a.acceptedFileTypes.length,
|
|
3019
|
-
id: "accepted-file-types"
|
|
3020
|
-
}, "Accepted File Types: " + h(a.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
|
|
3021
|
-
]));
|
|
3022
3046
|
}
|
|
3023
|
-
}),
|
|
3047
|
+
}), $l = {
|
|
3024
3048
|
key: 0,
|
|
3025
3049
|
class: "py-4 px-3",
|
|
3026
3050
|
id: "placeholder-message"
|
|
3027
|
-
},
|
|
3051
|
+
}, Bl = {
|
|
3028
3052
|
key: 1,
|
|
3029
3053
|
class: "d-flex flex-column"
|
|
3030
|
-
},
|
|
3054
|
+
}, Fl = /* @__PURE__ */ F({
|
|
3031
3055
|
__name: "DragDropArea",
|
|
3032
|
-
props: /* @__PURE__ */
|
|
3056
|
+
props: /* @__PURE__ */ R({
|
|
3033
3057
|
maxFileInput: {},
|
|
3034
3058
|
maxFileSize: {},
|
|
3035
3059
|
acceptedFileTypes: {}
|
|
@@ -3039,30 +3063,30 @@ const gl = { class: "d-flex justify-content-between" }, hl = ["accept", "disable
|
|
|
3039
3063
|
}),
|
|
3040
3064
|
emits: ["update:modelValue"],
|
|
3041
3065
|
setup(e) {
|
|
3042
|
-
const t =
|
|
3043
|
-
l.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value =
|
|
3066
|
+
const t = U(e, "modelValue"), l = P(!1), o = x(() => e.maxFileInput <= t.value.length), a = (n) => {
|
|
3067
|
+
l.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = fe([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((d) => d.fileType), e.maxFileSize);
|
|
3044
3068
|
};
|
|
3045
|
-
return (n, d) => (
|
|
3069
|
+
return (n, d) => (r(), b("div", {
|
|
3046
3070
|
id: "drag-drop-area",
|
|
3047
3071
|
class: B(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
3048
|
-
onDragleave: d[0] || (d[0] =
|
|
3049
|
-
onDragover: d[1] || (d[1] =
|
|
3050
|
-
onDrop:
|
|
3072
|
+
onDragleave: d[0] || (d[0] = Y((i) => l.value = !1, ["prevent"])),
|
|
3073
|
+
onDragover: d[1] || (d[1] = Y((i) => l.value = !0, ["prevent"])),
|
|
3074
|
+
onDrop: Y(a, ["prevent"])
|
|
3051
3075
|
}, [
|
|
3052
|
-
t.value.length === 0 ? (
|
|
3053
|
-
|
|
3076
|
+
t.value.length === 0 ? (r(), b("div", $l, [
|
|
3077
|
+
y(p(_), {
|
|
3054
3078
|
icon: "bi:upload",
|
|
3055
3079
|
class: "me-2",
|
|
3056
3080
|
height: "20px",
|
|
3057
3081
|
width: "20px"
|
|
3058
3082
|
}),
|
|
3059
|
-
d[2] || (d[2] =
|
|
3060
|
-
])) : (
|
|
3083
|
+
d[2] || (d[2] = z(" Drag and drop files here "))
|
|
3084
|
+
])) : (r(), b("div", Bl, [
|
|
3061
3085
|
$(n.$slots, "default")
|
|
3062
3086
|
]))
|
|
3063
3087
|
], 34));
|
|
3064
3088
|
}
|
|
3065
|
-
}),
|
|
3089
|
+
}), _l = { class: "d-flex align-items-center me-2" }, Vl = /* @__PURE__ */ F({
|
|
3066
3090
|
__name: "UploadStatus",
|
|
3067
3091
|
props: {
|
|
3068
3092
|
fileSize: {},
|
|
@@ -3071,7 +3095,7 @@ const gl = { class: "d-flex justify-content-between" }, hl = ["accept", "disable
|
|
|
3071
3095
|
uploadStatus: {}
|
|
3072
3096
|
},
|
|
3073
3097
|
setup(e) {
|
|
3074
|
-
const t =
|
|
3098
|
+
const t = x(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = x(() => {
|
|
3075
3099
|
switch (e.uploadStatus) {
|
|
3076
3100
|
case "InvalidFileType":
|
|
3077
3101
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -3087,43 +3111,43 @@ const gl = { class: "d-flex justify-content-between" }, hl = ["accept", "disable
|
|
|
3087
3111
|
return "Upload Failed: Connection error, please try again.";
|
|
3088
3112
|
}
|
|
3089
3113
|
});
|
|
3090
|
-
return (o, a) => (
|
|
3091
|
-
o.uploadStatus === "Uploading" ? (
|
|
3114
|
+
return (o, a) => (r(), b("div", _l, [
|
|
3115
|
+
o.uploadStatus === "Uploading" ? (r(), w(Kt, {
|
|
3092
3116
|
key: 0,
|
|
3093
3117
|
pixelWidth: 200,
|
|
3094
3118
|
animate: "",
|
|
3095
3119
|
striped: ""
|
|
3096
3120
|
}, {
|
|
3097
|
-
default:
|
|
3098
|
-
|
|
3121
|
+
default: f(() => [
|
|
3122
|
+
z(h((o.bytesUploaded / o.fileSize * 100).toFixed(0)) + "%", 1)
|
|
3099
3123
|
]),
|
|
3100
3124
|
_: 1
|
|
3101
3125
|
})) : S("", !0),
|
|
3102
|
-
o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (
|
|
3126
|
+
o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (r(), w(oe, {
|
|
3103
3127
|
key: 1,
|
|
3104
3128
|
id: "upload-status-alert",
|
|
3105
3129
|
severity: t.value,
|
|
3106
3130
|
class: "mb-0 w-75 ms-auto"
|
|
3107
3131
|
}, {
|
|
3108
|
-
default:
|
|
3109
|
-
|
|
3132
|
+
default: f(() => [
|
|
3133
|
+
z(h(l.value), 1)
|
|
3110
3134
|
]),
|
|
3111
3135
|
_: 1
|
|
3112
3136
|
}, 8, ["severity"])) : S("", !0)
|
|
3113
3137
|
]));
|
|
3114
3138
|
}
|
|
3115
|
-
}),
|
|
3139
|
+
}), Sl = ["data-cy"], Cl = { class: "ms-3 d-flex flex-column" }, Tl = {
|
|
3116
3140
|
key: 1,
|
|
3117
3141
|
id: "file-name"
|
|
3118
|
-
},
|
|
3142
|
+
}, Pl = {
|
|
3119
3143
|
class: "text-black-50",
|
|
3120
3144
|
id: "file-type"
|
|
3121
|
-
},
|
|
3145
|
+
}, Ml = {
|
|
3122
3146
|
class: "text-black-50",
|
|
3123
3147
|
id: "file-size"
|
|
3124
|
-
},
|
|
3148
|
+
}, Il = { class: "ms-auto my-auto d-flex" }, zl = /* @__PURE__ */ F({
|
|
3125
3149
|
__name: "FileInfo",
|
|
3126
|
-
props: /* @__PURE__ */
|
|
3150
|
+
props: /* @__PURE__ */ R({
|
|
3127
3151
|
editableFileName: { type: Boolean },
|
|
3128
3152
|
acceptedFileTypes: {},
|
|
3129
3153
|
maxFileSize: {},
|
|
@@ -3138,57 +3162,57 @@ const gl = { class: "d-flex justify-content-between" }, hl = ["accept", "disable
|
|
|
3138
3162
|
uploadStatus: { required: !0 },
|
|
3139
3163
|
uploadStatusModifiers: {}
|
|
3140
3164
|
}),
|
|
3141
|
-
emits: /* @__PURE__ */
|
|
3165
|
+
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
3142
3166
|
setup(e, { emit: t }) {
|
|
3143
|
-
const l =
|
|
3167
|
+
const l = U(e, "file"), o = U(e, "blobFileName"), a = U(e, "uploadStatus"), n = t, d = P(l.value.name), i = P(""), u = P(0), m = P(), v = x(() => e.acceptedFileTypes.includes(l.value.type)), s = x(() => l.value.size <= e.maxFileSize), C = () => {
|
|
3144
3168
|
l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
3145
|
-
},
|
|
3146
|
-
if (!
|
|
3147
|
-
a.value =
|
|
3169
|
+
}, T = async () => {
|
|
3170
|
+
if (!v.value || !s.value) {
|
|
3171
|
+
a.value = v.value ? "InvalidFileSize" : "InvalidFileType";
|
|
3148
3172
|
return;
|
|
3149
3173
|
}
|
|
3150
|
-
a.value = "Preparing",
|
|
3151
|
-
const [
|
|
3152
|
-
if (!
|
|
3174
|
+
a.value = "Preparing", m.value = new AbortController();
|
|
3175
|
+
const [I, O] = await e.getFileUrlAction(l.value.name);
|
|
3176
|
+
if (!I) {
|
|
3153
3177
|
a.value = "Failed";
|
|
3154
3178
|
return;
|
|
3155
3179
|
}
|
|
3156
3180
|
try {
|
|
3157
3181
|
a.value = "Uploading";
|
|
3158
|
-
const
|
|
3159
|
-
abortSignal:
|
|
3182
|
+
const g = new me(I), k = {
|
|
3183
|
+
abortSignal: m.value.signal,
|
|
3160
3184
|
onProgress: (G) => u.value = G.loadedBytes,
|
|
3161
3185
|
tags: { temp: "true" }
|
|
3162
3186
|
};
|
|
3163
|
-
await
|
|
3164
|
-
} catch (
|
|
3165
|
-
if (
|
|
3187
|
+
await g.uploadData(l.value, k), i.value = I, a.value = "Uploaded", o.value = O;
|
|
3188
|
+
} catch (g) {
|
|
3189
|
+
if (g.name === "AbortError") {
|
|
3166
3190
|
a.value = "Aborted";
|
|
3167
3191
|
return;
|
|
3168
3192
|
}
|
|
3169
3193
|
a.value = "Failed";
|
|
3170
3194
|
}
|
|
3171
|
-
},
|
|
3172
|
-
await
|
|
3195
|
+
}, M = async () => {
|
|
3196
|
+
await bl(a.value, i.value), n("deleted", l.value);
|
|
3173
3197
|
};
|
|
3174
|
-
return
|
|
3175
|
-
e.autoUploadToBlob &&
|
|
3176
|
-
}), (
|
|
3177
|
-
const
|
|
3178
|
-
return
|
|
3198
|
+
return le(() => {
|
|
3199
|
+
e.autoUploadToBlob && T();
|
|
3200
|
+
}), (I, O) => {
|
|
3201
|
+
const g = E;
|
|
3202
|
+
return r(), b("div", {
|
|
3179
3203
|
class: "py-4 px-3 d-flex",
|
|
3180
3204
|
"data-cy": `file-info-${l.value.name}`
|
|
3181
3205
|
}, [
|
|
3182
3206
|
c("div", null, [
|
|
3183
|
-
|
|
3207
|
+
p(fl)(l.value.type) ? (r(), w(p(De), {
|
|
3184
3208
|
key: 0,
|
|
3185
3209
|
id: "thumbnail-image",
|
|
3186
3210
|
"image-class": "image-file-thumbnail border",
|
|
3187
|
-
src:
|
|
3211
|
+
src: p(gl)(l.value),
|
|
3188
3212
|
alt: l.value.name,
|
|
3189
3213
|
width: "75px",
|
|
3190
3214
|
preview: ""
|
|
3191
|
-
}, null, 8, ["src", "alt"])) : (
|
|
3215
|
+
}, null, 8, ["src", "alt"])) : (r(), w(p(_), {
|
|
3192
3216
|
key: 1,
|
|
3193
3217
|
id: "file-earmark",
|
|
3194
3218
|
icon: "bi:file-earmark",
|
|
@@ -3196,78 +3220,78 @@ const gl = { class: "d-flex justify-content-between" }, hl = ["accept", "disable
|
|
|
3196
3220
|
width: "75px"
|
|
3197
3221
|
}))
|
|
3198
3222
|
]),
|
|
3199
|
-
c("div",
|
|
3223
|
+
c("div", Cl, [
|
|
3200
3224
|
c("div", null, [
|
|
3201
|
-
|
|
3225
|
+
I.editableFileName ? (r(), w(Bt, {
|
|
3202
3226
|
key: 0,
|
|
3203
3227
|
id: "edit-file-name",
|
|
3204
3228
|
modelValue: d.value,
|
|
3205
|
-
"onUpdate:modelValue":
|
|
3206
|
-
rules:
|
|
3229
|
+
"onUpdate:modelValue": O[0] || (O[0] = (k) => d.value = k),
|
|
3230
|
+
rules: I.customFileNameRules,
|
|
3207
3231
|
name: l.value.name,
|
|
3208
|
-
"complete-action":
|
|
3209
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (
|
|
3232
|
+
"complete-action": C
|
|
3233
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (r(), b("span", Tl, h(l.value.name), 1))
|
|
3210
3234
|
]),
|
|
3211
|
-
c("span",
|
|
3212
|
-
c("span",
|
|
3235
|
+
c("span", Pl, "File type: " + h(l.value.type.split("/").pop()), 1),
|
|
3236
|
+
c("span", Ml, "File size: " + h(p(re)(l.value.size)), 1)
|
|
3213
3237
|
]),
|
|
3214
|
-
c("div",
|
|
3215
|
-
(
|
|
3238
|
+
c("div", Il, [
|
|
3239
|
+
(r(), w(Vl, {
|
|
3216
3240
|
key: a.value,
|
|
3217
3241
|
"file-size": l.value.size,
|
|
3218
3242
|
"upload-status": a.value,
|
|
3219
3243
|
"bytes-uploaded": u.value,
|
|
3220
|
-
"max-file-size":
|
|
3244
|
+
"max-file-size": I.maxFileSize
|
|
3221
3245
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
3222
|
-
a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (
|
|
3246
|
+
a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (r(), w(g, {
|
|
3223
3247
|
key: 0,
|
|
3224
3248
|
link: "",
|
|
3225
|
-
onClick:
|
|
3249
|
+
onClick: T
|
|
3226
3250
|
}, {
|
|
3227
|
-
default:
|
|
3228
|
-
|
|
3251
|
+
default: f(() => [
|
|
3252
|
+
y(p(_), {
|
|
3229
3253
|
icon: a.value === "Not Uploaded" || a.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
3230
3254
|
}, null, 8, ["icon"])
|
|
3231
3255
|
]),
|
|
3232
3256
|
_: 1
|
|
3233
3257
|
})) : S("", !0),
|
|
3234
|
-
a.value === "Uploading" ? (
|
|
3258
|
+
a.value === "Uploading" ? (r(), w(g, {
|
|
3235
3259
|
key: 1,
|
|
3236
3260
|
link: "",
|
|
3237
|
-
onClick:
|
|
3261
|
+
onClick: O[1] || (O[1] = (k) => m.value.value.abort())
|
|
3238
3262
|
}, {
|
|
3239
|
-
default:
|
|
3240
|
-
|
|
3263
|
+
default: f(() => [
|
|
3264
|
+
y(p(_), { icon: "bi:x-circle-fill" })
|
|
3241
3265
|
]),
|
|
3242
3266
|
_: 1
|
|
3243
|
-
})) : (
|
|
3267
|
+
})) : (r(), w(g, {
|
|
3244
3268
|
key: 2,
|
|
3245
3269
|
link: "",
|
|
3246
|
-
onClick:
|
|
3270
|
+
onClick: M,
|
|
3247
3271
|
id: "delete-button"
|
|
3248
3272
|
}, {
|
|
3249
|
-
default:
|
|
3250
|
-
|
|
3273
|
+
default: f(() => [
|
|
3274
|
+
y(p(_), { icon: "bi:trash" })
|
|
3251
3275
|
]),
|
|
3252
3276
|
_: 1
|
|
3253
3277
|
}))
|
|
3254
3278
|
])
|
|
3255
|
-
], 8,
|
|
3279
|
+
], 8, Sl);
|
|
3256
3280
|
};
|
|
3257
3281
|
}
|
|
3258
|
-
}),
|
|
3282
|
+
}), Ol = { class: "d-flex justify-content-end mt-1" }, Dl = { id: "max-file-size" }, Ul = /* @__PURE__ */ F({
|
|
3259
3283
|
__name: "MaxFileSize",
|
|
3260
3284
|
props: {
|
|
3261
3285
|
maxFileSize: {}
|
|
3262
3286
|
},
|
|
3263
3287
|
setup(e) {
|
|
3264
|
-
return (t, l) => (
|
|
3265
|
-
c("div",
|
|
3288
|
+
return (t, l) => (r(), b("div", Ol, [
|
|
3289
|
+
c("div", Dl, "Max file size: " + h(p(re)(t.maxFileSize)), 1)
|
|
3266
3290
|
]));
|
|
3267
3291
|
}
|
|
3268
|
-
}),
|
|
3292
|
+
}), Al = { "data-cy": "file-uploader" }, Nl = { key: 0 }, Aa = /* @__PURE__ */ F({
|
|
3269
3293
|
__name: "ForgeFileUploader",
|
|
3270
|
-
props: /* @__PURE__ */
|
|
3294
|
+
props: /* @__PURE__ */ R({
|
|
3271
3295
|
acceptedFileTypes: {},
|
|
3272
3296
|
maxFileSize: {},
|
|
3273
3297
|
getFileUrlAction: {},
|
|
@@ -3282,72 +3306,141 @@ const gl = { class: "d-flex justify-content-between" }, hl = ["accept", "disable
|
|
|
3282
3306
|
}),
|
|
3283
3307
|
emits: ["update:modelValue"],
|
|
3284
3308
|
setup(e) {
|
|
3285
|
-
const t =
|
|
3309
|
+
const t = U(e, "modelValue"), l = e, o = (a) => {
|
|
3286
3310
|
t.value = t.value.filter((n) => n.file != a);
|
|
3287
3311
|
};
|
|
3288
|
-
return (a, n) => (
|
|
3289
|
-
|
|
3312
|
+
return (a, n) => (r(), b("div", Al, [
|
|
3313
|
+
y(xl, V(l, {
|
|
3290
3314
|
modelValue: t.value,
|
|
3291
3315
|
"onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
|
|
3292
3316
|
}), null, 16, ["modelValue"]),
|
|
3293
|
-
a.showDragDropArea ? (
|
|
3294
|
-
|
|
3317
|
+
a.showDragDropArea ? (r(), b("div", Nl, [
|
|
3318
|
+
y(Fl, {
|
|
3295
3319
|
"max-file-input": l.maxFileInput,
|
|
3296
3320
|
"max-file-size": l.maxFileSize,
|
|
3297
3321
|
"accepted-file-types": l.acceptedFileTypes,
|
|
3298
3322
|
modelValue: t.value,
|
|
3299
3323
|
"onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
|
|
3300
3324
|
}, {
|
|
3301
|
-
default:
|
|
3302
|
-
(
|
|
3303
|
-
(
|
|
3325
|
+
default: f(() => [
|
|
3326
|
+
(r(!0), b(N, null, H(t.value, ({ file: d }, i) => (r(), b("span", null, [
|
|
3327
|
+
(r(), w(zl, V({
|
|
3304
3328
|
key: d.name,
|
|
3305
|
-
class:
|
|
3306
|
-
file: t.value[
|
|
3307
|
-
"onUpdate:file": (u) => t.value[
|
|
3308
|
-
"blob-file-name": t.value[
|
|
3309
|
-
"onUpdate:blobFileName": (u) => t.value[
|
|
3310
|
-
"upload-status": t.value[
|
|
3311
|
-
"onUpdate:uploadStatus": (u) => t.value[
|
|
3329
|
+
class: i === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
3330
|
+
file: t.value[i].file,
|
|
3331
|
+
"onUpdate:file": (u) => t.value[i].file = u,
|
|
3332
|
+
"blob-file-name": t.value[i].blobFileName,
|
|
3333
|
+
"onUpdate:blobFileName": (u) => t.value[i].blobFileName = u,
|
|
3334
|
+
"upload-status": t.value[i].status,
|
|
3335
|
+
"onUpdate:uploadStatus": (u) => t.value[i].status = u,
|
|
3312
3336
|
ref_for: !0
|
|
3313
3337
|
}, l, { onDeleted: o }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
3314
3338
|
]))), 256))
|
|
3315
3339
|
]),
|
|
3316
3340
|
_: 1
|
|
3317
3341
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
3318
|
-
|
|
3342
|
+
y(Ul, {
|
|
3319
3343
|
"max-file-size": l.maxFileSize
|
|
3320
3344
|
}, null, 8, ["max-file-size"])
|
|
3321
3345
|
])) : S("", !0)
|
|
3322
3346
|
]));
|
|
3323
3347
|
}
|
|
3348
|
+
}), El = { class: "d-flex" }, Ll = { class: "me-3" }, Rl = { class: "ms-2" }, jl = { class: "d-flex flex-column w-100" }, Hl = ["onClick"], ql = ["for"], Na = /* @__PURE__ */ F({
|
|
3349
|
+
__name: "ForgeColumnCustomiser",
|
|
3350
|
+
props: {
|
|
3351
|
+
modelValue: { required: !0 },
|
|
3352
|
+
modelModifiers: {}
|
|
3353
|
+
},
|
|
3354
|
+
emits: ["update:modelValue"],
|
|
3355
|
+
setup(e) {
|
|
3356
|
+
const t = U(e, "modelValue"), l = P(), o = P(!1), a = P([]), n = P([]), d = (u) => {
|
|
3357
|
+
l.value.toggle(u);
|
|
3358
|
+
}, i = (u) => {
|
|
3359
|
+
const m = n.value.find((v) => v.field === u);
|
|
3360
|
+
m.selected = !m.selected, t.value = n.value.filter((v) => v.selected);
|
|
3361
|
+
};
|
|
3362
|
+
return le(() => {
|
|
3363
|
+
a.value = [...t.value], n.value = [...t.value].map((u) => ({ ...u, selected: !0 }));
|
|
3364
|
+
}), (u, m) => (r(), b(N, null, [
|
|
3365
|
+
y(p(E), { onClick: d }, {
|
|
3366
|
+
default: f(() => [
|
|
3367
|
+
c("div", El, [
|
|
3368
|
+
c("div", Ll, [
|
|
3369
|
+
y(p(_), { icon: "bi:layout-three-columns" })
|
|
3370
|
+
]),
|
|
3371
|
+
z(" Columns (" + h(t.value.length ?? 0) + "/" + h(a.value.length ?? 0) + ") ", 1),
|
|
3372
|
+
c("div", Rl, [
|
|
3373
|
+
y(p(_), {
|
|
3374
|
+
icon: o.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
3375
|
+
}, null, 8, ["icon"])
|
|
3376
|
+
])
|
|
3377
|
+
])
|
|
3378
|
+
]),
|
|
3379
|
+
_: 1
|
|
3380
|
+
}),
|
|
3381
|
+
y(p(pe), {
|
|
3382
|
+
ref_key: "columnCustomiserPanel",
|
|
3383
|
+
ref: l,
|
|
3384
|
+
class: "column-customiser",
|
|
3385
|
+
onHide: m[0] || (m[0] = () => o.value = !1),
|
|
3386
|
+
onShow: m[1] || (m[1] = () => o.value = !0)
|
|
3387
|
+
}, {
|
|
3388
|
+
default: f(() => [
|
|
3389
|
+
c("div", jl, [
|
|
3390
|
+
(r(!0), b(N, null, H(a.value, (v, s) => (r(), b("div", {
|
|
3391
|
+
class: B(["d-flex cursor-pointer", {
|
|
3392
|
+
"border-top": s !== 0,
|
|
3393
|
+
"py-1": s !== 0 && a.value.length - 1 !== s,
|
|
3394
|
+
"pt-1": a.value.length - 1 === s,
|
|
3395
|
+
"pb-1": s === 0
|
|
3396
|
+
}]),
|
|
3397
|
+
onClick: (C) => i(v.field)
|
|
3398
|
+
}, [
|
|
3399
|
+
y(p(ue), {
|
|
3400
|
+
id: v.field,
|
|
3401
|
+
"model-value": n.value.find((C) => C.field === v.field).selected,
|
|
3402
|
+
binary: "",
|
|
3403
|
+
class: "cursor-pointer"
|
|
3404
|
+
}, null, 8, ["id", "model-value"]),
|
|
3405
|
+
c("label", {
|
|
3406
|
+
for: v.field,
|
|
3407
|
+
class: "cursor-pointer"
|
|
3408
|
+
}, h(v.header), 9, ql)
|
|
3409
|
+
], 10, Hl))), 256))
|
|
3410
|
+
])
|
|
3411
|
+
]),
|
|
3412
|
+
_: 1
|
|
3413
|
+
}, 512)
|
|
3414
|
+
], 64));
|
|
3415
|
+
}
|
|
3324
3416
|
});
|
|
3325
3417
|
export {
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3418
|
+
wa as Bootstrap_PT,
|
|
3419
|
+
ka as ForgeActionButton,
|
|
3420
|
+
oe as ForgeAlert,
|
|
3421
|
+
mt as ForgeCheckbox,
|
|
3422
|
+
Ma as ForgeChips,
|
|
3423
|
+
Na as ForgeColumnCustomiser,
|
|
3424
|
+
be as ForgeDatepicker,
|
|
3425
|
+
Aa as ForgeFileUploader,
|
|
3426
|
+
Ua as ForgeFilterHeader,
|
|
3427
|
+
Ta as ForgeForm,
|
|
3428
|
+
Pa as ForgeFormField,
|
|
3429
|
+
Bt as ForgeInlineEditor,
|
|
3430
|
+
xa as ForgeLink,
|
|
3431
|
+
ve as ForgeLoader,
|
|
3432
|
+
Fa as ForgeModal,
|
|
3433
|
+
ye as ForgeMultiSelect,
|
|
3434
|
+
Va as ForgeMultiSelectPreview,
|
|
3435
|
+
_a as ForgeNavbar,
|
|
3436
|
+
Sa as ForgePageHeader,
|
|
3437
|
+
Kt as ForgeProgressBar,
|
|
3438
|
+
Ca as ForgeRemainingCharacters,
|
|
3439
|
+
Ia as ForgeStatWidget,
|
|
3440
|
+
za as ForgeStepper,
|
|
3441
|
+
Da as ForgeTable,
|
|
3442
|
+
Oa as ForgeTile,
|
|
3443
|
+
Ba as convertToMultiSelectOption,
|
|
3444
|
+
$a as enumToMultiSelectList,
|
|
3352
3445
|
yt as parseError
|
|
3353
3446
|
};
|