@3squared/forge-ui-3 0.9.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/forge-ui-3.js +978 -931
- package/dist/esm/style.css +1 -1
- package/dist/src/components/ForgeDatepicker.vue.d.ts +3 -0
- package/dist/src/components/ForgeFormField.vue.d.ts +7 -9
- package/dist/src/components/table/ForgeFilterHeader.vue.d.ts +14 -0
- package/dist/src/types/forge-types.d.ts +1 -1
- package/package.json +4 -4
- package/src/styles/components/_table.scss +14 -0
- package/src/types/forge-types.ts +1 -1
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useField as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { vOnClickOutside as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
1
|
+
import he from "primevue/message";
|
|
2
|
+
import { defineComponent as V, openBlock as i, createBlock as h, normalizeProps as ee, guardReactiveProps as te, withCtx as b, createElementVNode as m, normalizeClass as _, unref as p, createCommentVNode as S, createVNode as f, renderSlot as B, ref as I, createElementBlock as y, Fragment as N, mergeProps as C, onMounted as ae, watch as re, computed as k, isRef as le, createTextVNode as O, toDisplayString as w, withDirectives as R, vShow as H, mergeModels as j, useModel as E, createSlots as oe, renderList as q, withKeys as X, useAttrs as ce, withModifiers as Y, normalizeStyle as we } from "vue";
|
|
3
|
+
import { Icon as T } from "@iconify/vue";
|
|
4
|
+
import L from "primevue/button";
|
|
5
|
+
import xe from "primevue/toast";
|
|
6
|
+
import ke from "primevue/checkbox";
|
|
7
|
+
import { useField as K } from "vee-validate";
|
|
8
|
+
import $e from "primevue/progressspinner";
|
|
9
|
+
import Be from "primevue/dialog";
|
|
10
|
+
import de from "primevue/inputtext";
|
|
11
|
+
import { vOnClickOutside as Fe } from "@vueuse/components";
|
|
12
|
+
import _e from "primevue/menubar";
|
|
13
|
+
import Ve from "vue-multiselect";
|
|
14
|
+
import Se from "primevue/calendar";
|
|
15
|
+
import ne from "primevue/dropdown";
|
|
16
|
+
import Ce from "primevue/inputmask";
|
|
17
|
+
import Te from "primevue/textarea";
|
|
17
18
|
import me from "primevue/inputnumber";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import ze from "primevue/multiselect";
|
|
19
|
+
import Pe from "primevue/chips";
|
|
20
|
+
import Me from "primevue/progressbar";
|
|
21
|
+
import Ie from "primevue/divider";
|
|
22
|
+
import ze from "primevue/steps";
|
|
23
|
+
import Oe from "primevue/datatable";
|
|
24
|
+
import De from "primevue/multiselect";
|
|
25
25
|
import { BlockBlobClient as pe } from "@azure/storage-blob";
|
|
26
|
-
import
|
|
27
|
-
const
|
|
26
|
+
import Ue from "primevue/image";
|
|
27
|
+
const Ae = {
|
|
28
28
|
button: {
|
|
29
29
|
root: ({ props: e }) => ({
|
|
30
30
|
class: [
|
|
@@ -108,7 +108,7 @@ const De = {
|
|
|
108
108
|
]
|
|
109
109
|
})
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, Ne = {
|
|
112
112
|
checkbox: {
|
|
113
113
|
root: () => ({
|
|
114
114
|
class: [
|
|
@@ -126,7 +126,7 @@ const De = {
|
|
|
126
126
|
]
|
|
127
127
|
})
|
|
128
128
|
}
|
|
129
|
-
},
|
|
129
|
+
}, Ee = {
|
|
130
130
|
dropdown: {
|
|
131
131
|
root: ({ props: e }) => ({
|
|
132
132
|
class: [
|
|
@@ -187,17 +187,17 @@ const De = {
|
|
|
187
187
|
itemGroupLabel: "ps-2 fw-bold",
|
|
188
188
|
input: "w-100"
|
|
189
189
|
}
|
|
190
|
-
},
|
|
190
|
+
}, Le = {
|
|
191
191
|
column: {
|
|
192
192
|
sortBadge: "ms-2 my-auto cursor-pointer",
|
|
193
193
|
headerCell: (e) => {
|
|
194
|
-
var t, l, a
|
|
194
|
+
var t, o, l, a;
|
|
195
195
|
return {
|
|
196
196
|
class: [
|
|
197
197
|
{
|
|
198
198
|
"cursor-move": e.props.reorderableColumns,
|
|
199
|
-
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((
|
|
200
|
-
"overflow-hidden position-relative bg-clip-padding": (
|
|
199
|
+
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((o = e.column) == null ? void 0 : o.context.frozen) || ((l = e.column) == null ? void 0 : l.context.frozen) === "",
|
|
200
|
+
"overflow-hidden position-relative bg-clip-padding": (a = e.column) == null ? void 0 : a.context.resizable
|
|
201
201
|
}
|
|
202
202
|
]
|
|
203
203
|
};
|
|
@@ -283,22 +283,22 @@ const De = {
|
|
|
283
283
|
]
|
|
284
284
|
})
|
|
285
285
|
}
|
|
286
|
-
},
|
|
286
|
+
}, Re = {
|
|
287
287
|
inputtext: {
|
|
288
288
|
root: (e) => {
|
|
289
|
-
var t,
|
|
289
|
+
var t, o;
|
|
290
290
|
return {
|
|
291
291
|
class: [
|
|
292
292
|
"form-control",
|
|
293
293
|
{
|
|
294
294
|
"form-control-lg": ((t = e.props.size) == null ? void 0 : t.toLowerCase()) == "large",
|
|
295
|
-
"form-control-sm": ((
|
|
295
|
+
"form-control-sm": ((o = e.props.size) == null ? void 0 : o.toLowerCase()) == "small"
|
|
296
296
|
}
|
|
297
297
|
]
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, je = {
|
|
302
302
|
inputmask: {
|
|
303
303
|
root: () => ({
|
|
304
304
|
class: [
|
|
@@ -306,12 +306,12 @@ const De = {
|
|
|
306
306
|
]
|
|
307
307
|
})
|
|
308
308
|
}
|
|
309
|
-
},
|
|
309
|
+
}, He = {
|
|
310
310
|
inputSwitch: {
|
|
311
311
|
root: "form-check form-switch",
|
|
312
312
|
input: "form-check-input"
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, Ye = {
|
|
315
315
|
textarea: {
|
|
316
316
|
root: () => ({
|
|
317
317
|
class: [
|
|
@@ -319,13 +319,13 @@ const De = {
|
|
|
319
319
|
]
|
|
320
320
|
})
|
|
321
321
|
}
|
|
322
|
-
},
|
|
322
|
+
}, qe = {
|
|
323
323
|
// More PassThrough options in component file.
|
|
324
324
|
chips: {
|
|
325
325
|
root: "d-flex",
|
|
326
326
|
label: "pe-2"
|
|
327
327
|
}
|
|
328
|
-
},
|
|
328
|
+
}, Ge = {
|
|
329
329
|
dialog: {
|
|
330
330
|
header: () => ({
|
|
331
331
|
class: ["modal-header"]
|
|
@@ -368,7 +368,7 @@ const De = {
|
|
|
368
368
|
]
|
|
369
369
|
})
|
|
370
370
|
}
|
|
371
|
-
},
|
|
371
|
+
}, Ke = {
|
|
372
372
|
overlaypanel: {
|
|
373
373
|
root: (e) => ({
|
|
374
374
|
class: [
|
|
@@ -382,7 +382,7 @@ const De = {
|
|
|
382
382
|
content: "d-flex position-relative",
|
|
383
383
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
384
384
|
}
|
|
385
|
-
},
|
|
385
|
+
}, We = {
|
|
386
386
|
message: {
|
|
387
387
|
root: ({ props: e }) => ({
|
|
388
388
|
class: [
|
|
@@ -411,13 +411,13 @@ const De = {
|
|
|
411
411
|
class: ["px-0 ms-2 btn d-flex"]
|
|
412
412
|
})
|
|
413
413
|
}
|
|
414
|
-
},
|
|
414
|
+
}, Ze = {
|
|
415
415
|
// More PT options defined in ForgeStepper.
|
|
416
416
|
steps: {
|
|
417
417
|
root: "w-100 mx-2 line",
|
|
418
418
|
menu: "p-0 m-0 list-unstyled d-flex justify-content-between "
|
|
419
419
|
}
|
|
420
|
-
},
|
|
420
|
+
}, Je = {
|
|
421
421
|
tabview: {
|
|
422
422
|
navContainer: () => ({
|
|
423
423
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -455,7 +455,7 @@ const De = {
|
|
|
455
455
|
class: ["p-2"]
|
|
456
456
|
})
|
|
457
457
|
}
|
|
458
|
-
},
|
|
458
|
+
}, Xe = {
|
|
459
459
|
// More PassThrough options defined in ForgeDatepicker.
|
|
460
460
|
calendar: {
|
|
461
461
|
root: "d-inline-flex relative w-100",
|
|
@@ -528,7 +528,7 @@ const De = {
|
|
|
528
528
|
decrementButton: "btn btn-sm",
|
|
529
529
|
incrementButton: "btn btn-sm"
|
|
530
530
|
}
|
|
531
|
-
},
|
|
531
|
+
}, Qe = {
|
|
532
532
|
multiselect: {
|
|
533
533
|
root: ({ props: e }) => ({
|
|
534
534
|
class: [
|
|
@@ -559,7 +559,7 @@ const De = {
|
|
|
559
559
|
]
|
|
560
560
|
})
|
|
561
561
|
}
|
|
562
|
-
},
|
|
562
|
+
}, et = {
|
|
563
563
|
// More PassThrough options in component file.
|
|
564
564
|
progressbar: {
|
|
565
565
|
root: () => ({
|
|
@@ -572,7 +572,7 @@ const De = {
|
|
|
572
572
|
class: ["text-white"]
|
|
573
573
|
})
|
|
574
574
|
}
|
|
575
|
-
},
|
|
575
|
+
}, tt = {
|
|
576
576
|
// More PT options can be found in the ForgeTable file.
|
|
577
577
|
dataTable: {
|
|
578
578
|
datatable: "position-relative",
|
|
@@ -632,7 +632,7 @@ const De = {
|
|
|
632
632
|
]
|
|
633
633
|
})
|
|
634
634
|
}
|
|
635
|
-
},
|
|
635
|
+
}, at = {
|
|
636
636
|
badge: {
|
|
637
637
|
root: ({ props: e }) => ({
|
|
638
638
|
class: [
|
|
@@ -653,7 +653,7 @@ const De = {
|
|
|
653
653
|
]
|
|
654
654
|
})
|
|
655
655
|
}
|
|
656
|
-
},
|
|
656
|
+
}, lt = {
|
|
657
657
|
// More PassThrough options in component file.
|
|
658
658
|
menubar: {
|
|
659
659
|
menu: ({ instance: e }) => ({
|
|
@@ -723,7 +723,7 @@ const De = {
|
|
|
723
723
|
]
|
|
724
724
|
})
|
|
725
725
|
}
|
|
726
|
-
},
|
|
726
|
+
}, ot = {
|
|
727
727
|
tooltip: {
|
|
728
728
|
root: ({ context: e }) => ({
|
|
729
729
|
class: [
|
|
@@ -745,7 +745,7 @@ const De = {
|
|
|
745
745
|
class: ["tooltip-inner"]
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
|
-
},
|
|
748
|
+
}, nt = {
|
|
749
749
|
selectbutton: {
|
|
750
750
|
root: () => ({
|
|
751
751
|
class: ["btn-group"]
|
|
@@ -763,7 +763,7 @@ const De = {
|
|
|
763
763
|
]
|
|
764
764
|
})
|
|
765
765
|
}
|
|
766
|
-
},
|
|
766
|
+
}, st = {
|
|
767
767
|
progressspinner: {
|
|
768
768
|
spinner: () => ({
|
|
769
769
|
class: [
|
|
@@ -771,7 +771,7 @@ const De = {
|
|
|
771
771
|
]
|
|
772
772
|
})
|
|
773
773
|
}
|
|
774
|
-
},
|
|
774
|
+
}, it = {
|
|
775
775
|
card: {
|
|
776
776
|
root: () => ({
|
|
777
777
|
class: ["card"]
|
|
@@ -795,11 +795,11 @@ const De = {
|
|
|
795
795
|
class: ["card-header"]
|
|
796
796
|
})
|
|
797
797
|
}
|
|
798
|
-
},
|
|
798
|
+
}, rt = {
|
|
799
799
|
divider: {
|
|
800
800
|
root: "border-bottom m-4 w-100"
|
|
801
801
|
}
|
|
802
|
-
},
|
|
802
|
+
}, dt = {
|
|
803
803
|
image: {
|
|
804
804
|
root: "position-relative d-inline-block",
|
|
805
805
|
button: "preview-button",
|
|
@@ -812,7 +812,7 @@ const De = {
|
|
|
812
812
|
zoominbutton: "btn text-white",
|
|
813
813
|
closebutton: "btn text-white"
|
|
814
814
|
}
|
|
815
|
-
},
|
|
815
|
+
}, ut = {
|
|
816
816
|
toast: {
|
|
817
817
|
message: () => ({
|
|
818
818
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -836,51 +836,51 @@ const De = {
|
|
|
836
836
|
class: ["ps-1"]
|
|
837
837
|
}),
|
|
838
838
|
icon: ({ props: e }) => {
|
|
839
|
-
var t, l, a
|
|
839
|
+
var t, o, l, a;
|
|
840
840
|
return {
|
|
841
841
|
class: [
|
|
842
842
|
"toast-icon",
|
|
843
843
|
{
|
|
844
844
|
"text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
|
|
845
|
-
"text-success": ((
|
|
846
|
-
"text-danger": ((
|
|
847
|
-
"text-warning": ((
|
|
845
|
+
"text-success": ((o = e.message) == null ? void 0 : o.severity) === "success",
|
|
846
|
+
"text-danger": ((l = e.message) == null ? void 0 : l.severity) === "error",
|
|
847
|
+
"text-warning": ((a = e.message) == null ? void 0 : a.severity) === "warn"
|
|
848
848
|
}
|
|
849
849
|
]
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
|
-
},
|
|
854
|
-
...
|
|
855
|
-
...De,
|
|
856
|
-
...nt,
|
|
857
|
-
...Ue,
|
|
858
|
-
...He,
|
|
859
|
-
...Ne,
|
|
860
|
-
...Ze,
|
|
861
|
-
...Ye,
|
|
862
|
-
...st,
|
|
853
|
+
}, cl = {
|
|
854
|
+
...at,
|
|
863
855
|
...Ae,
|
|
864
856
|
...it,
|
|
865
|
-
...
|
|
866
|
-
...Re,
|
|
867
|
-
...Le,
|
|
868
|
-
...Ge,
|
|
869
|
-
...Je,
|
|
870
|
-
...tt,
|
|
857
|
+
...Ne,
|
|
871
858
|
...qe,
|
|
859
|
+
...Le,
|
|
872
860
|
...Xe,
|
|
873
|
-
...
|
|
874
|
-
...lt,
|
|
875
|
-
...Ke,
|
|
876
|
-
...Qe,
|
|
877
|
-
...We,
|
|
861
|
+
...Ge,
|
|
878
862
|
...rt,
|
|
863
|
+
...Ee,
|
|
864
|
+
...dt,
|
|
865
|
+
...Re,
|
|
879
866
|
...je,
|
|
867
|
+
...He,
|
|
868
|
+
...We,
|
|
869
|
+
...Qe,
|
|
870
|
+
...lt,
|
|
871
|
+
...Ke,
|
|
872
|
+
...et,
|
|
873
|
+
...st,
|
|
874
|
+
...nt,
|
|
875
|
+
...Ze,
|
|
876
|
+
...tt,
|
|
877
|
+
...Je,
|
|
878
|
+
...ut,
|
|
879
|
+
...Ye,
|
|
880
880
|
directives: {
|
|
881
|
-
...
|
|
881
|
+
...ot
|
|
882
882
|
}
|
|
883
|
-
},
|
|
883
|
+
}, se = /* @__PURE__ */ V({
|
|
884
884
|
__name: "ForgeAlert",
|
|
885
885
|
props: {
|
|
886
886
|
severity: { default: "primary" },
|
|
@@ -896,33 +896,33 @@ const De = {
|
|
|
896
896
|
},
|
|
897
897
|
setup(e) {
|
|
898
898
|
const t = e;
|
|
899
|
-
return (
|
|
900
|
-
const
|
|
901
|
-
return i(),
|
|
899
|
+
return (o, l) => {
|
|
900
|
+
const a = he;
|
|
901
|
+
return i(), h(a, ee(te({ ...o.$attrs, ...t })), {
|
|
902
902
|
messageicon: b(() => [
|
|
903
|
-
|
|
904
|
-
class:
|
|
903
|
+
m("div", {
|
|
904
|
+
class: _(t.icon ? "me-2 pe-1" : "")
|
|
905
905
|
}, [
|
|
906
|
-
t.icon ? (i(),
|
|
906
|
+
t.icon ? (i(), h(p(T), {
|
|
907
907
|
key: 0,
|
|
908
908
|
"data-cy": "message-icon",
|
|
909
909
|
icon: t.icon,
|
|
910
|
-
class:
|
|
910
|
+
class: _(`text-${t.severity}`),
|
|
911
911
|
height: 35
|
|
912
912
|
}, null, 8, ["icon", "class"])) : S("", !0)
|
|
913
913
|
], 2)
|
|
914
914
|
]),
|
|
915
915
|
closeicon: b(() => [
|
|
916
|
-
f(
|
|
916
|
+
f(p(T), { icon: "bi:x" })
|
|
917
917
|
]),
|
|
918
918
|
default: b(() => [
|
|
919
|
-
|
|
919
|
+
B(o.$slots, "default")
|
|
920
920
|
]),
|
|
921
921
|
_: 3
|
|
922
922
|
}, 16);
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
|
-
}),
|
|
925
|
+
}), ml = /* @__PURE__ */ V({
|
|
926
926
|
__name: "ForgeActionButton",
|
|
927
927
|
props: {
|
|
928
928
|
action: {},
|
|
@@ -931,28 +931,28 @@ const De = {
|
|
|
931
931
|
params: { default: Array }
|
|
932
932
|
},
|
|
933
933
|
setup(e) {
|
|
934
|
-
const t = I(!1),
|
|
934
|
+
const t = I(!1), o = e, l = async () => {
|
|
935
935
|
t.value = !0;
|
|
936
936
|
try {
|
|
937
|
-
await
|
|
938
|
-
} catch (
|
|
939
|
-
await
|
|
937
|
+
await o.action.apply(this, o.params);
|
|
938
|
+
} catch (a) {
|
|
939
|
+
await o.errorAction.apply(this, o.errorParams ? [...o.errorParams, a] : [a]);
|
|
940
940
|
}
|
|
941
941
|
t.value = !1;
|
|
942
942
|
};
|
|
943
|
-
return (
|
|
944
|
-
const
|
|
945
|
-
return i(),
|
|
946
|
-
f(
|
|
943
|
+
return (a, n) => {
|
|
944
|
+
const d = L;
|
|
945
|
+
return i(), y(N, null, [
|
|
946
|
+
f(d, C({ ...o, ...a.$attrs }, {
|
|
947
947
|
loading: t.value,
|
|
948
|
-
disabled: t.value ||
|
|
949
|
-
onClick:
|
|
948
|
+
disabled: t.value || o.disabled,
|
|
949
|
+
onClick: l
|
|
950
950
|
}), null, 16, ["loading", "disabled"]),
|
|
951
|
-
f(
|
|
951
|
+
f(p(xe))
|
|
952
952
|
], 64);
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
|
-
}),
|
|
955
|
+
}), ct = /* @__PURE__ */ m("div", null, null, -1), mt = ["for"], ve = /* @__PURE__ */ V({
|
|
956
956
|
__name: "ForgeCheckbox",
|
|
957
957
|
props: {
|
|
958
958
|
label: { default: "" },
|
|
@@ -979,75 +979,75 @@ const De = {
|
|
|
979
979
|
},
|
|
980
980
|
emits: ["update:modelValue"],
|
|
981
981
|
setup(e, { emit: t }) {
|
|
982
|
-
const
|
|
982
|
+
const o = t, l = e, { checked: a, handleChange: n, setValue: d, errors: u, errorMessage: c } = K(() => l.name ?? l.label, void 0, {
|
|
983
983
|
type: "checkbox",
|
|
984
984
|
checkedValue: !0
|
|
985
|
-
}),
|
|
986
|
-
|
|
985
|
+
}), r = (v) => {
|
|
986
|
+
l.disabled || (n(v), o("update:modelValue", !l.modelValue));
|
|
987
987
|
};
|
|
988
988
|
ae(() => {
|
|
989
|
-
|
|
990
|
-
}),
|
|
991
|
-
|
|
989
|
+
l.value !== void 0 && l.value !== (a == null ? void 0 : a.value) ? d(l.value) : l.modelValue !== void 0 && l.modelValue !== (a == null ? void 0 : a.value) && d(l.modelValue);
|
|
990
|
+
}), re(() => l.value, (v) => {
|
|
991
|
+
d(v);
|
|
992
992
|
});
|
|
993
|
-
const
|
|
994
|
-
return (v,
|
|
995
|
-
const
|
|
996
|
-
return i(),
|
|
997
|
-
|
|
993
|
+
const s = k(() => u.value.length > 0);
|
|
994
|
+
return (v, x) => {
|
|
995
|
+
const F = ke;
|
|
996
|
+
return i(), y(N, null, [
|
|
997
|
+
m("div", C({
|
|
998
998
|
class: "d-flex",
|
|
999
999
|
"data-cy": "checkbox-container"
|
|
1000
1000
|
}, { ...v.$attrs }), [
|
|
1001
|
-
f(
|
|
1002
|
-
id:
|
|
1003
|
-
}, { ...
|
|
1004
|
-
modelValue:
|
|
1005
|
-
"onUpdate:modelValue":
|
|
1006
|
-
"input-class": { "is-invalid":
|
|
1007
|
-
onChange:
|
|
1001
|
+
f(F, C({
|
|
1002
|
+
id: l.name
|
|
1003
|
+
}, { ...l }, {
|
|
1004
|
+
modelValue: p(a),
|
|
1005
|
+
"onUpdate:modelValue": x[0] || (x[0] = (P) => le(a) ? a.value = P : null),
|
|
1006
|
+
"input-class": { "is-invalid": s.value },
|
|
1007
|
+
onChange: r
|
|
1008
1008
|
}), {
|
|
1009
1009
|
icon: b(() => [
|
|
1010
|
-
|
|
1010
|
+
ct
|
|
1011
1011
|
]),
|
|
1012
1012
|
_: 1
|
|
1013
1013
|
}, 16, ["id", "modelValue", "input-class"]),
|
|
1014
|
-
|
|
1015
|
-
for:
|
|
1016
|
-
class:
|
|
1017
|
-
onClick:
|
|
1014
|
+
m("label", {
|
|
1015
|
+
for: l.name,
|
|
1016
|
+
class: _(`${l.disabled ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`),
|
|
1017
|
+
onClick: r
|
|
1018
1018
|
}, [
|
|
1019
|
-
|
|
1020
|
-
|
|
1019
|
+
B(v.$slots, "default", {}, () => [
|
|
1020
|
+
O(w(l.label), 1)
|
|
1021
1021
|
])
|
|
1022
|
-
], 10,
|
|
1022
|
+
], 10, mt)
|
|
1023
1023
|
], 16),
|
|
1024
|
-
|
|
1024
|
+
R(m("small", {
|
|
1025
1025
|
"data-cy": "error",
|
|
1026
1026
|
class: "text-invalid"
|
|
1027
|
-
},
|
|
1028
|
-
[
|
|
1027
|
+
}, w(p(c)), 513), [
|
|
1028
|
+
[H, s.value]
|
|
1029
1029
|
])
|
|
1030
1030
|
], 64);
|
|
1031
1031
|
};
|
|
1032
1032
|
}
|
|
1033
|
-
}),
|
|
1033
|
+
}), pt = { class: "forge-loader" }, ye = /* @__PURE__ */ V({
|
|
1034
1034
|
__name: "ForgeLoader",
|
|
1035
1035
|
props: {
|
|
1036
1036
|
severity: { default: "primary" }
|
|
1037
1037
|
},
|
|
1038
1038
|
setup(e) {
|
|
1039
1039
|
const t = e;
|
|
1040
|
-
return (
|
|
1041
|
-
const
|
|
1042
|
-
return i(),
|
|
1043
|
-
f(
|
|
1040
|
+
return (o, l) => {
|
|
1041
|
+
const a = $e;
|
|
1042
|
+
return i(), y("div", pt, [
|
|
1043
|
+
f(a, {
|
|
1044
1044
|
"animation-duration": ".75",
|
|
1045
|
-
class:
|
|
1045
|
+
class: _(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
1046
1046
|
}, null, 8, ["class"])
|
|
1047
1047
|
]);
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
}),
|
|
1050
|
+
}), vt = ["href", "target"], pl = /* @__PURE__ */ V({
|
|
1051
1051
|
__name: "ForgeLink",
|
|
1052
1052
|
props: {
|
|
1053
1053
|
url: {},
|
|
@@ -1065,7 +1065,7 @@ const De = {
|
|
|
1065
1065
|
iconName: {}
|
|
1066
1066
|
},
|
|
1067
1067
|
setup(e) {
|
|
1068
|
-
const t =
|
|
1068
|
+
const t = k(() => ({
|
|
1069
1069
|
[`link-${e.severity}`]: e.severity,
|
|
1070
1070
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1071
1071
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1074,48 +1074,48 @@ const De = {
|
|
|
1074
1074
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1075
1075
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1076
1076
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1077
|
-
})),
|
|
1077
|
+
})), o = k(() => ({
|
|
1078
1078
|
"order-2": e.positionIconEnd,
|
|
1079
1079
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1080
1080
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
1081
1081
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1082
1082
|
"me-0": e.animateIconOnHover
|
|
1083
1083
|
}));
|
|
1084
|
-
return (
|
|
1084
|
+
return (l, a) => (i(), y("a", {
|
|
1085
1085
|
id: "link",
|
|
1086
|
-
class:
|
|
1087
|
-
href:
|
|
1088
|
-
target:
|
|
1086
|
+
class: _(["cursor-pointer d-flex", t.value]),
|
|
1087
|
+
href: l.url,
|
|
1088
|
+
target: l.target
|
|
1089
1089
|
}, [
|
|
1090
|
-
|
|
1091
|
-
|
|
1090
|
+
B(l.$slots, "default", {}, () => [
|
|
1091
|
+
l.iconName ? (i(), h(p(T), {
|
|
1092
1092
|
key: 0,
|
|
1093
1093
|
id: "link-icon",
|
|
1094
|
-
icon:
|
|
1095
|
-
class:
|
|
1094
|
+
icon: l.iconName,
|
|
1095
|
+
class: _(["bi my-auto", o.value])
|
|
1096
1096
|
}, null, 8, ["icon", "class"])) : S("", !0),
|
|
1097
|
-
|
|
1097
|
+
O(" " + w(l.label), 1)
|
|
1098
1098
|
])
|
|
1099
|
-
], 10,
|
|
1099
|
+
], 10, vt));
|
|
1100
1100
|
}
|
|
1101
1101
|
});
|
|
1102
|
-
function
|
|
1102
|
+
function yt(e) {
|
|
1103
1103
|
const t = {
|
|
1104
1104
|
errorMessage: "",
|
|
1105
1105
|
errorDetails: []
|
|
1106
1106
|
};
|
|
1107
1107
|
if (e.exception && (t.errorMessage = e.exception), e.message && (Array.isArray(e.message) ? t.errorDetails = e.message : t.errorMessage = e.message), e.response) {
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1108
|
+
const o = JSON.parse(e.response);
|
|
1109
|
+
o.errors && (t.errorDetails = Object.values(o.errors).flat()), o.message && (t.errorDetails = o.message);
|
|
1110
1110
|
}
|
|
1111
1111
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1112
1112
|
}
|
|
1113
|
-
const
|
|
1113
|
+
const bt = { key: 0 }, ft = {
|
|
1114
1114
|
class: "d-flex w-100",
|
|
1115
1115
|
"data-cy": "footer"
|
|
1116
|
-
},
|
|
1116
|
+
}, vl = /* @__PURE__ */ V({
|
|
1117
1117
|
__name: "ForgeModal",
|
|
1118
|
-
props: /* @__PURE__ */
|
|
1118
|
+
props: /* @__PURE__ */ j({
|
|
1119
1119
|
cancelText: { default: "Cancel" },
|
|
1120
1120
|
submitText: { default: "Submit" },
|
|
1121
1121
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1158,105 +1158,105 @@ const yt = { key: 0 }, vt = {
|
|
|
1158
1158
|
}),
|
|
1159
1159
|
emits: ["update:visible"],
|
|
1160
1160
|
setup(e) {
|
|
1161
|
-
const t = E(e, "visible"),
|
|
1161
|
+
const t = E(e, "visible"), o = I(!1), l = e, a = I(!1), n = I({
|
|
1162
1162
|
hasError: !1,
|
|
1163
1163
|
header: "",
|
|
1164
1164
|
message: []
|
|
1165
|
-
}),
|
|
1166
|
-
|
|
1167
|
-
},
|
|
1168
|
-
|
|
1169
|
-
},
|
|
1165
|
+
}), d = () => {
|
|
1166
|
+
o.value = !1;
|
|
1167
|
+
}, u = () => {
|
|
1168
|
+
o.value = !0;
|
|
1169
|
+
}, c = () => {
|
|
1170
1170
|
t.value = !1;
|
|
1171
|
-
},
|
|
1172
|
-
if (
|
|
1173
|
-
|
|
1171
|
+
}, r = async () => {
|
|
1172
|
+
if (l.onConfirm) {
|
|
1173
|
+
a.value = !0, n.value.hasError = !1;
|
|
1174
1174
|
try {
|
|
1175
|
-
const v = await
|
|
1176
|
-
(v || v == null) &&
|
|
1175
|
+
const v = await l.onConfirm();
|
|
1176
|
+
(v || v == null) && c();
|
|
1177
1177
|
} catch (v) {
|
|
1178
1178
|
n.value.hasError = !0;
|
|
1179
|
-
const
|
|
1180
|
-
n.value.header =
|
|
1179
|
+
const x = yt(v);
|
|
1180
|
+
n.value.header = x.errorMessage, n.value.message = x.errorDetails;
|
|
1181
1181
|
}
|
|
1182
|
-
|
|
1182
|
+
a.value = !1;
|
|
1183
1183
|
}
|
|
1184
|
-
},
|
|
1184
|
+
}, s = k(() => ({
|
|
1185
1185
|
root: [
|
|
1186
1186
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1187
1187
|
{
|
|
1188
|
-
"mw-100 vh-100 vw-100 top-0 start-0":
|
|
1188
|
+
"mw-100 vh-100 vw-100 top-0 start-0": o.value
|
|
1189
1189
|
}
|
|
1190
1190
|
]
|
|
1191
1191
|
}));
|
|
1192
|
-
return (v,
|
|
1193
|
-
const
|
|
1194
|
-
return i(),
|
|
1195
|
-
onMaximize:
|
|
1196
|
-
onUnmaximize:
|
|
1197
|
-
pt:
|
|
1192
|
+
return (v, x) => {
|
|
1193
|
+
const F = L, P = Be;
|
|
1194
|
+
return i(), h(P, C(l, {
|
|
1195
|
+
onMaximize: u,
|
|
1196
|
+
onUnmaximize: d,
|
|
1197
|
+
pt: s.value
|
|
1198
1198
|
}), oe({
|
|
1199
1199
|
closeicon: b(() => [
|
|
1200
|
-
f(
|
|
1200
|
+
f(p(T), {
|
|
1201
1201
|
"data-cy": "close-icon",
|
|
1202
1202
|
icon: "bi:x-lg",
|
|
1203
1203
|
width: "18",
|
|
1204
1204
|
height: "18",
|
|
1205
|
-
onClick:
|
|
1205
|
+
onClick: c
|
|
1206
1206
|
})
|
|
1207
1207
|
]),
|
|
1208
1208
|
maximizeicon: b(() => [
|
|
1209
|
-
f(
|
|
1209
|
+
f(p(T), {
|
|
1210
1210
|
"data-cy": "maximisable-icon",
|
|
1211
|
-
icon:
|
|
1211
|
+
icon: o.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1212
1212
|
width: "16",
|
|
1213
1213
|
height: "16"
|
|
1214
1214
|
}, null, 8, ["icon"])
|
|
1215
1215
|
]),
|
|
1216
1216
|
_: 2
|
|
1217
1217
|
}, [
|
|
1218
|
-
|
|
1219
|
-
name:
|
|
1218
|
+
q(v.$slots, (M, z) => ({
|
|
1219
|
+
name: z,
|
|
1220
1220
|
fn: b((g) => [
|
|
1221
|
-
n.value.hasError ? (i(),
|
|
1221
|
+
n.value.hasError ? (i(), h(se, {
|
|
1222
1222
|
key: 0,
|
|
1223
1223
|
severity: "danger",
|
|
1224
1224
|
"data-cy": "error"
|
|
1225
1225
|
}, {
|
|
1226
1226
|
default: b(() => [
|
|
1227
|
-
|
|
1228
|
-
class:
|
|
1229
|
-
},
|
|
1230
|
-
n.value.message.length > 0 ? (i(),
|
|
1231
|
-
(i(!0),
|
|
1227
|
+
m("p", {
|
|
1228
|
+
class: _(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1229
|
+
}, w(n.value.header), 3),
|
|
1230
|
+
n.value.message.length > 0 ? (i(), y("ul", bt, [
|
|
1231
|
+
(i(!0), y(N, null, q(n.value.message, ($) => (i(), y("li", { key: $ }, w($), 1))), 128))
|
|
1232
1232
|
])) : S("", !0)
|
|
1233
1233
|
]),
|
|
1234
1234
|
_: 1
|
|
1235
1235
|
})) : S("", !0),
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
f(
|
|
1236
|
+
B(v.$slots, z, ee(te(g || {}))),
|
|
1237
|
+
a.value ? B(v.$slots, "loader", { key: 1 }, () => [
|
|
1238
|
+
f(ye, { "data-cy": "loader" })
|
|
1239
1239
|
]) : S("", !0)
|
|
1240
1240
|
])
|
|
1241
1241
|
})),
|
|
1242
1242
|
v.showFooter ? {
|
|
1243
1243
|
name: "footer",
|
|
1244
1244
|
fn: b(() => [
|
|
1245
|
-
|
|
1246
|
-
f(
|
|
1245
|
+
m("div", ft, [
|
|
1246
|
+
f(F, {
|
|
1247
1247
|
label: v.cancelText,
|
|
1248
|
-
class:
|
|
1248
|
+
class: _(l.cancelClass),
|
|
1249
1249
|
outlined: "",
|
|
1250
|
-
onClick:
|
|
1250
|
+
onClick: c,
|
|
1251
1251
|
id: "cancel-button",
|
|
1252
|
-
type:
|
|
1252
|
+
type: l.cancelButtonType
|
|
1253
1253
|
}, null, 8, ["label", "class", "type"]),
|
|
1254
|
-
f(
|
|
1254
|
+
f(F, {
|
|
1255
1255
|
label: v.submitText,
|
|
1256
|
-
class:
|
|
1257
|
-
onClick:
|
|
1256
|
+
class: _([l.submitClass, "ms-auto"]),
|
|
1257
|
+
onClick: r,
|
|
1258
1258
|
id: "submit-button",
|
|
1259
|
-
type:
|
|
1259
|
+
type: l.submitButtonType
|
|
1260
1260
|
}, null, 8, ["label", "class", "type"])
|
|
1261
1261
|
])
|
|
1262
1262
|
]),
|
|
@@ -1265,9 +1265,9 @@ const yt = { key: 0 }, vt = {
|
|
|
1265
1265
|
]), 1040, ["pt"]);
|
|
1266
1266
|
};
|
|
1267
1267
|
}
|
|
1268
|
-
}),
|
|
1268
|
+
}), gt = ["id"], ht = { key: 0 }, wt = { key: 0 }, xt = { class: "d-flex justify-content-between align-items-center position-relative" }, kt = { key: 1 }, $t = { "data-cy": "readonly-value" }, Bt = /* @__PURE__ */ V({
|
|
1269
1269
|
__name: "ForgeInlineEditor",
|
|
1270
|
-
props: /* @__PURE__ */
|
|
1270
|
+
props: /* @__PURE__ */ j({
|
|
1271
1271
|
name: { default: "" },
|
|
1272
1272
|
completeAction: {},
|
|
1273
1273
|
errorAction: {},
|
|
@@ -1280,93 +1280,93 @@ const yt = { key: 0 }, vt = {
|
|
|
1280
1280
|
}),
|
|
1281
1281
|
emits: ["update:modelValue"],
|
|
1282
1282
|
setup(e) {
|
|
1283
|
-
const t = e,
|
|
1284
|
-
var
|
|
1285
|
-
|
|
1286
|
-
},
|
|
1287
|
-
if (
|
|
1283
|
+
const t = e, o = E(e, "modelValue"), l = I(!1), a = I(), n = () => {
|
|
1284
|
+
var F;
|
|
1285
|
+
l.value = !l.value, (F = a.value) == null || F.focus();
|
|
1286
|
+
}, d = async () => {
|
|
1287
|
+
if (x.value)
|
|
1288
1288
|
return !1;
|
|
1289
|
-
if (
|
|
1289
|
+
if (o.value = v.value, t.completeAction)
|
|
1290
1290
|
try {
|
|
1291
|
-
await t.completeAction.apply(this, t.params),
|
|
1291
|
+
await t.completeAction.apply(this, t.params), l.value = !l.value;
|
|
1292
1292
|
} catch {
|
|
1293
1293
|
t.errorAction && await t.errorAction.apply(this, t.errorParams);
|
|
1294
1294
|
}
|
|
1295
1295
|
else
|
|
1296
|
-
|
|
1297
|
-
},
|
|
1298
|
-
|
|
1299
|
-
},
|
|
1296
|
+
l.value = !l.value;
|
|
1297
|
+
}, u = () => {
|
|
1298
|
+
l.value = !l.value;
|
|
1299
|
+
}, c = () => {
|
|
1300
1300
|
v.value = null;
|
|
1301
|
-
}, { errorMessage:
|
|
1302
|
-
initialValue:
|
|
1301
|
+
}, { errorMessage: r, errors: s, value: v } = K(() => t.name, void 0, {
|
|
1302
|
+
initialValue: o.value
|
|
1303
1303
|
});
|
|
1304
1304
|
ae(() => {
|
|
1305
|
-
v.value =
|
|
1305
|
+
v.value = o.value;
|
|
1306
1306
|
});
|
|
1307
|
-
const
|
|
1308
|
-
return (
|
|
1309
|
-
const
|
|
1310
|
-
return i(),
|
|
1307
|
+
const x = k(() => s.value.length > 0);
|
|
1308
|
+
return (F, P) => {
|
|
1309
|
+
const M = de, z = L;
|
|
1310
|
+
return i(), y("div", {
|
|
1311
1311
|
id: t.name
|
|
1312
1312
|
}, [
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1313
|
+
F.readonly ? (i(), y("div", kt, [
|
|
1314
|
+
B(F.$slots, "default", {}, () => [
|
|
1315
|
+
m("span", $t, w(p(v)), 1)
|
|
1316
1316
|
])
|
|
1317
|
-
])) : (i(),
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
class:
|
|
1322
|
-
editFinished:
|
|
1323
|
-
cancel:
|
|
1324
|
-
val:
|
|
1317
|
+
])) : (i(), y("div", ht, [
|
|
1318
|
+
l.value ? (i(), y("div", wt, [
|
|
1319
|
+
R((i(), y("div", xt, [
|
|
1320
|
+
B(F.$slots, "editor", {
|
|
1321
|
+
class: _({ "is-invalid": x.value }),
|
|
1322
|
+
editFinished: d,
|
|
1323
|
+
cancel: u,
|
|
1324
|
+
val: p(v)
|
|
1325
1325
|
}, () => [
|
|
1326
|
-
f(
|
|
1326
|
+
f(M, {
|
|
1327
1327
|
"data-cy": "input",
|
|
1328
1328
|
ref_key: "input",
|
|
1329
|
-
ref:
|
|
1330
|
-
modelValue:
|
|
1329
|
+
ref: a,
|
|
1330
|
+
modelValue: p(v),
|
|
1331
1331
|
"onUpdate:modelValue": P[0] || (P[0] = (g) => le(v) ? v.value = g : null),
|
|
1332
1332
|
modelModifiers: { trim: !0 },
|
|
1333
|
-
class:
|
|
1333
|
+
class: _({ "is-invalid": x.value }),
|
|
1334
1334
|
onKeydown: [
|
|
1335
|
-
X(
|
|
1336
|
-
X(
|
|
1335
|
+
X(d, ["enter"]),
|
|
1336
|
+
X(u, ["esc"])
|
|
1337
1337
|
]
|
|
1338
1338
|
}, null, 8, ["modelValue", "class"])
|
|
1339
1339
|
]),
|
|
1340
|
-
f(
|
|
1340
|
+
f(p(T), {
|
|
1341
1341
|
icon: "bi:x-circle",
|
|
1342
1342
|
class: "mx-2 cursor-pointer",
|
|
1343
|
-
onClick:
|
|
1344
|
-
onKeydown: X(
|
|
1343
|
+
onClick: c,
|
|
1344
|
+
onKeydown: X(c, ["enter"]),
|
|
1345
1345
|
"data-cy": "clear-icon"
|
|
1346
1346
|
})
|
|
1347
1347
|
])), [
|
|
1348
|
-
[
|
|
1348
|
+
[p(Fe), d]
|
|
1349
1349
|
])
|
|
1350
|
-
])) : (i(),
|
|
1350
|
+
])) : (i(), y("div", {
|
|
1351
1351
|
key: 1,
|
|
1352
1352
|
class: "d-flex text-muted",
|
|
1353
1353
|
onClick: n,
|
|
1354
1354
|
onFocus: n
|
|
1355
1355
|
}, [
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
class:
|
|
1356
|
+
B(F.$slots, "default", {}, () => [
|
|
1357
|
+
m("div", {
|
|
1358
|
+
class: _(["pe-2 cursor-pointer", { "text-invalid": x.value }]),
|
|
1359
1359
|
"data-cy": "value"
|
|
1360
|
-
},
|
|
1360
|
+
}, w(p(v) ? p(v) : "Click to edit"), 3)
|
|
1361
1361
|
]),
|
|
1362
|
-
f(
|
|
1362
|
+
f(z, {
|
|
1363
1363
|
link: "",
|
|
1364
1364
|
class: "p-0 m-0"
|
|
1365
1365
|
}, {
|
|
1366
1366
|
default: b(() => [
|
|
1367
|
-
f(
|
|
1367
|
+
f(p(T), {
|
|
1368
1368
|
icon: "bi:pencil",
|
|
1369
|
-
class:
|
|
1369
|
+
class: _(x.value ? "text-invalid" : "text-muted"),
|
|
1370
1370
|
"data-cy": "edit-icon",
|
|
1371
1371
|
onKeydown: X(n, ["enter"])
|
|
1372
1372
|
}, null, 8, ["class"])
|
|
@@ -1375,16 +1375,16 @@ const yt = { key: 0 }, vt = {
|
|
|
1375
1375
|
})
|
|
1376
1376
|
], 32))
|
|
1377
1377
|
])),
|
|
1378
|
-
|
|
1378
|
+
R(m("small", {
|
|
1379
1379
|
"data-cy": "error",
|
|
1380
1380
|
class: "text-invalid"
|
|
1381
|
-
},
|
|
1382
|
-
[
|
|
1381
|
+
}, w(p(r)), 513), [
|
|
1382
|
+
[H, x.value]
|
|
1383
1383
|
])
|
|
1384
|
-
], 8,
|
|
1384
|
+
], 8, gt);
|
|
1385
1385
|
};
|
|
1386
1386
|
}
|
|
1387
|
-
}),
|
|
1387
|
+
}), Ft = ["href"], yl = /* @__PURE__ */ V({
|
|
1388
1388
|
__name: "ForgeNavbar",
|
|
1389
1389
|
props: {
|
|
1390
1390
|
severity: { default: "light" },
|
|
@@ -1401,7 +1401,7 @@ const yt = { key: 0 }, vt = {
|
|
|
1401
1401
|
unstyled: { type: Boolean }
|
|
1402
1402
|
},
|
|
1403
1403
|
setup(e) {
|
|
1404
|
-
const t = e,
|
|
1404
|
+
const t = e, o = k(() => ({
|
|
1405
1405
|
root: () => ({
|
|
1406
1406
|
class: [
|
|
1407
1407
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1428,28 +1428,28 @@ const yt = { key: 0 }, vt = {
|
|
|
1428
1428
|
]
|
|
1429
1429
|
})
|
|
1430
1430
|
}));
|
|
1431
|
-
return (
|
|
1432
|
-
const n =
|
|
1433
|
-
return i(),
|
|
1434
|
-
pt:
|
|
1431
|
+
return (l, a) => {
|
|
1432
|
+
const n = _e;
|
|
1433
|
+
return i(), h(n, C({ ...t, ...l.$attrs }, {
|
|
1434
|
+
pt: o.value,
|
|
1435
1435
|
"data-cy": "navbar"
|
|
1436
1436
|
}), oe({
|
|
1437
1437
|
start: b(() => [
|
|
1438
|
-
|
|
1439
|
-
href:
|
|
1438
|
+
m("a", {
|
|
1439
|
+
href: l.logoUrl,
|
|
1440
1440
|
class: "navbar-brand ms-3",
|
|
1441
1441
|
"data-cy": "logo"
|
|
1442
1442
|
}, [
|
|
1443
|
-
|
|
1444
|
-
|
|
1443
|
+
B(l.$slots, "logo", {}, () => [
|
|
1444
|
+
O(" Logo ")
|
|
1445
1445
|
])
|
|
1446
|
-
], 8,
|
|
1446
|
+
], 8, Ft)
|
|
1447
1447
|
]),
|
|
1448
1448
|
menubuttonicon: b(() => [
|
|
1449
|
-
|
|
1450
|
-
f(
|
|
1449
|
+
B(l.$slots, "menubuttonicon", {}, () => [
|
|
1450
|
+
f(p(T), {
|
|
1451
1451
|
icon: "bi:list",
|
|
1452
|
-
class:
|
|
1452
|
+
class: _(t.severity === "light" ? "text-black" : "text-white"),
|
|
1453
1453
|
height: "24",
|
|
1454
1454
|
"data-cy": "burger-icon"
|
|
1455
1455
|
}, null, 8, ["class"])
|
|
@@ -1457,16 +1457,16 @@ const yt = { key: 0 }, vt = {
|
|
|
1457
1457
|
]),
|
|
1458
1458
|
_: 2
|
|
1459
1459
|
}, [
|
|
1460
|
-
|
|
1461
|
-
name:
|
|
1462
|
-
fn: b((
|
|
1463
|
-
|
|
1460
|
+
q(l.$slots, (d, u) => ({
|
|
1461
|
+
name: u,
|
|
1462
|
+
fn: b((c) => [
|
|
1463
|
+
B(l.$slots, u, ee(te(c)))
|
|
1464
1464
|
])
|
|
1465
1465
|
}))
|
|
1466
1466
|
]), 1040, ["pt"]);
|
|
1467
1467
|
};
|
|
1468
1468
|
}
|
|
1469
|
-
}),
|
|
1469
|
+
}), _t = /* @__PURE__ */ m("div", { class: "ps-1" }, "Select all", -1), Vt = ["data-cy"], St = { class: "ps-1 w-100" }, Ct = { class: "multiselect__tag d-inline-flex" }, Tt = { class: "my-auto" }, be = /* @__PURE__ */ V({
|
|
1470
1470
|
__name: "ForgeMultiSelect",
|
|
1471
1471
|
props: {
|
|
1472
1472
|
severity: { default: "primary" },
|
|
@@ -1478,95 +1478,95 @@ const yt = { key: 0 }, vt = {
|
|
|
1478
1478
|
},
|
|
1479
1479
|
emits: ["update:modelValue"],
|
|
1480
1480
|
setup(e, { emit: t }) {
|
|
1481
|
-
const
|
|
1481
|
+
const o = e, l = (U, D) => {
|
|
1482
1482
|
const J = {
|
|
1483
1483
|
...D,
|
|
1484
1484
|
$isDisabled: D.$isDisabled ?? !1
|
|
1485
1485
|
};
|
|
1486
1486
|
U(J);
|
|
1487
|
-
},
|
|
1488
|
-
initialValue:
|
|
1489
|
-
}),
|
|
1487
|
+
}, a = ce(), n = t, { errors: d, value: u, errorMessage: c } = K(() => o.name, void 0, {
|
|
1488
|
+
initialValue: a.modelValue
|
|
1489
|
+
}), r = I(!1), s = k(() => ({
|
|
1490
1490
|
multiple: !0,
|
|
1491
1491
|
label: "label",
|
|
1492
1492
|
trackBy: "id",
|
|
1493
|
-
showPointer: !
|
|
1494
|
-
placeholder:
|
|
1493
|
+
showPointer: !r.value,
|
|
1494
|
+
placeholder: a.searchable === null || a.searchable ? "Search" : "Select",
|
|
1495
1495
|
allowEmpty: !0,
|
|
1496
1496
|
selectValue: "",
|
|
1497
|
-
closeOnSelect: !!(
|
|
1498
|
-
clearOnSelect: !!(
|
|
1499
|
-
searchable: !!(
|
|
1497
|
+
closeOnSelect: !!(a.multiple === null || a.multiple),
|
|
1498
|
+
clearOnSelect: !!(a.multiple === null || a.multiple),
|
|
1499
|
+
searchable: !!(a.searchable === null || a.searchable) && a.modelValue.length === a.options.length,
|
|
1500
1500
|
async: !1,
|
|
1501
|
-
...
|
|
1502
|
-
})), v =
|
|
1503
|
-
|
|
1504
|
-
},
|
|
1505
|
-
n("update:modelValue",
|
|
1506
|
-
}, Z = (U) =>
|
|
1507
|
-
|
|
1501
|
+
...a
|
|
1502
|
+
})), v = k(() => `forge-multiselect-${o.severity}`), x = k(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${F.value ? " multiselect__option--selected" : ""}`), F = k(() => s.value && !(s.value.multiple || !o.showSelectAll || s.value.async) ? !1 : a.modelValue.length === a.options.length), P = k(() => d.value.length > 0), M = k(() => !!((a.allowEmpty == null || a.allowEmpty) && o.showClearSelection && (s.value.multiple ? a.modelValue.length > 0 : a.modelValue))), z = () => r.value = !0, g = () => r.value = !1, $ = () => {
|
|
1503
|
+
u.value = s.value.multiple ? [] : null, n("update:modelValue", u.value);
|
|
1504
|
+
}, G = (U) => {
|
|
1505
|
+
n("update:modelValue", o.selectValue ? U.map((D) => D[o.selectValue]) : U);
|
|
1506
|
+
}, Z = (U) => a.modelValue !== null ? a.modelValue.some((D) => s.value.selectValue ? U[o.selectValue] === D : U.id === D.id && U.label === D.label) : !1, ie = () => {
|
|
1507
|
+
F.value ? $() : (u.value = [...a.options], n("update:modelValue", [...a.options]));
|
|
1508
1508
|
};
|
|
1509
1509
|
return (U, D) => {
|
|
1510
|
-
const J =
|
|
1511
|
-
return i(),
|
|
1512
|
-
f(
|
|
1510
|
+
const J = ve;
|
|
1511
|
+
return i(), y(N, null, [
|
|
1512
|
+
f(p(Ve), C(s.value, {
|
|
1513
1513
|
class: [v.value, P.value ? "is-invalid" : ""],
|
|
1514
1514
|
"data-cy": "multiselect",
|
|
1515
1515
|
"onUpdate:modelValue": [
|
|
1516
|
-
|
|
1517
|
-
D[1] || (D[1] = (A) => le(
|
|
1516
|
+
G,
|
|
1517
|
+
D[1] || (D[1] = (A) => le(u) ? u.value = A : null)
|
|
1518
1518
|
],
|
|
1519
|
-
modelValue:
|
|
1519
|
+
modelValue: p(u)
|
|
1520
1520
|
}), oe({
|
|
1521
1521
|
caret: b(({ toggle: A }) => [
|
|
1522
|
-
|
|
1522
|
+
M.value ? (i(), h(p(T), {
|
|
1523
1523
|
key: 0,
|
|
1524
1524
|
icon: "bi:x",
|
|
1525
1525
|
class: "my-auto multiselect__clear-icon",
|
|
1526
|
-
onMousedown: D[0] || (D[0] =
|
|
1526
|
+
onMousedown: D[0] || (D[0] = Y((W) => $(), ["prevent", "stop"])),
|
|
1527
1527
|
"data-cy": "clear",
|
|
1528
1528
|
height: "18px",
|
|
1529
1529
|
width: "18px"
|
|
1530
1530
|
})) : S("", !0),
|
|
1531
|
-
f(
|
|
1531
|
+
f(p(T), {
|
|
1532
1532
|
icon: "bi:chevron-down",
|
|
1533
1533
|
onClick: A,
|
|
1534
1534
|
class: "multiselect__select"
|
|
1535
1535
|
}, null, 8, ["onClick"])
|
|
1536
1536
|
]),
|
|
1537
|
-
tag: b(({ option: A, remove:
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
f(
|
|
1537
|
+
tag: b(({ option: A, remove: W }) => [
|
|
1538
|
+
m("div", Ct, [
|
|
1539
|
+
m("div", Tt, w(A.label), 1),
|
|
1540
|
+
f(p(T), {
|
|
1541
1541
|
icon: "bi:x",
|
|
1542
1542
|
class: "my-auto multiselect__tag-icon",
|
|
1543
|
-
onMousedown:
|
|
1543
|
+
onMousedown: Y((Aa) => l(W, A), ["prevent", "stop"]),
|
|
1544
1544
|
height: "18px",
|
|
1545
1545
|
width: "18px"
|
|
1546
1546
|
}, null, 8, ["onMousedown"])
|
|
1547
1547
|
])
|
|
1548
1548
|
]),
|
|
1549
1549
|
default: b(() => [
|
|
1550
|
-
(i(!0),
|
|
1550
|
+
(i(!0), y(N, null, q(U.$slots, (A, W) => B(U.$slots, W, { slot: W })), 256))
|
|
1551
1551
|
]),
|
|
1552
1552
|
_: 2
|
|
1553
1553
|
}, [
|
|
1554
|
-
|
|
1554
|
+
s.value.multiple && U.showSelectAll && !s.value.async ? {
|
|
1555
1555
|
name: "beforeList",
|
|
1556
1556
|
fn: b(() => [
|
|
1557
|
-
|
|
1557
|
+
m("li", {
|
|
1558
1558
|
class: "multiselect__element",
|
|
1559
|
-
onClick:
|
|
1560
|
-
onMouseover:
|
|
1559
|
+
onClick: ie,
|
|
1560
|
+
onMouseover: z,
|
|
1561
1561
|
onMouseleave: g,
|
|
1562
1562
|
"data-cy": "toggle-all"
|
|
1563
1563
|
}, [
|
|
1564
|
-
|
|
1565
|
-
class:
|
|
1564
|
+
m("span", {
|
|
1565
|
+
class: _(`${x.value}`)
|
|
1566
1566
|
}, [
|
|
1567
|
-
f(J, { value:
|
|
1567
|
+
f(J, { value: F.value }, {
|
|
1568
1568
|
default: b(() => [
|
|
1569
|
-
|
|
1569
|
+
_t
|
|
1570
1570
|
]),
|
|
1571
1571
|
_: 1
|
|
1572
1572
|
}, 8, ["value"])
|
|
@@ -1575,46 +1575,46 @@ const yt = { key: 0 }, vt = {
|
|
|
1575
1575
|
]),
|
|
1576
1576
|
key: "0"
|
|
1577
1577
|
} : void 0,
|
|
1578
|
-
|
|
1578
|
+
s.value.multiple ? {
|
|
1579
1579
|
name: "option",
|
|
1580
1580
|
fn: b(({ option: A }) => [
|
|
1581
|
-
|
|
1581
|
+
m("div", {
|
|
1582
1582
|
"data-cy": A.label
|
|
1583
1583
|
}, [
|
|
1584
|
-
(i(),
|
|
1584
|
+
(i(), h(J, {
|
|
1585
1585
|
value: Z(A),
|
|
1586
1586
|
key: A
|
|
1587
1587
|
}, {
|
|
1588
1588
|
default: b(() => [
|
|
1589
|
-
|
|
1589
|
+
m("div", St, w(A[s.value.label]), 1)
|
|
1590
1590
|
]),
|
|
1591
1591
|
_: 2
|
|
1592
1592
|
}, 1032, ["value"]))
|
|
1593
|
-
], 8,
|
|
1593
|
+
], 8, Vt)
|
|
1594
1594
|
]),
|
|
1595
1595
|
key: "1"
|
|
1596
1596
|
} : void 0
|
|
1597
1597
|
]), 1040, ["class", "modelValue"]),
|
|
1598
|
-
|
|
1598
|
+
R(m("small", {
|
|
1599
1599
|
"data-cy": "error",
|
|
1600
1600
|
class: "invalid-feedback"
|
|
1601
|
-
},
|
|
1602
|
-
[
|
|
1601
|
+
}, w(p(c)), 513), [
|
|
1602
|
+
[H, P.value]
|
|
1603
1603
|
])
|
|
1604
1604
|
], 64);
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
|
-
}),
|
|
1607
|
+
}), Pt = {
|
|
1608
1608
|
key: 0,
|
|
1609
1609
|
class: "pl-1"
|
|
1610
|
-
},
|
|
1610
|
+
}, Mt = { class: "border alternating-item-list" }, It = {
|
|
1611
1611
|
key: 0,
|
|
1612
1612
|
class: "p-2 border-top border-bottom",
|
|
1613
1613
|
"data-cy": "title"
|
|
1614
|
-
},
|
|
1614
|
+
}, zt = { class: "d-inline-block" }, Ot = {
|
|
1615
1615
|
key: 1,
|
|
1616
1616
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1617
|
-
},
|
|
1617
|
+
}, bl = /* @__PURE__ */ V({
|
|
1618
1618
|
__name: "ForgeMultiSelectPreview",
|
|
1619
1619
|
props: {
|
|
1620
1620
|
title: { default: "Selected Items" },
|
|
@@ -1625,106 +1625,106 @@ const yt = { key: 0 }, vt = {
|
|
|
1625
1625
|
},
|
|
1626
1626
|
emits: ["update:modelValue"],
|
|
1627
1627
|
setup(e, { emit: t }) {
|
|
1628
|
-
const
|
|
1629
|
-
|
|
1630
|
-
},
|
|
1631
|
-
|
|
1628
|
+
const o = e, l = ce(), a = t, n = k(() => `${l.modelValue.length} selected`), d = k(() => l.modelValue.length), u = (r) => {
|
|
1629
|
+
a("update:modelValue", r);
|
|
1630
|
+
}, c = (r) => {
|
|
1631
|
+
u(l.modelValue.filter((s) => s.id !== r));
|
|
1632
1632
|
};
|
|
1633
|
-
return (
|
|
1634
|
-
const v =
|
|
1635
|
-
return i(),
|
|
1636
|
-
class:
|
|
1633
|
+
return (r, s) => {
|
|
1634
|
+
const v = L;
|
|
1635
|
+
return i(), y("div", {
|
|
1636
|
+
class: _(r.orientation === "column" ? "row" : ""),
|
|
1637
1637
|
"data-cy": "multiselect-preview"
|
|
1638
1638
|
}, [
|
|
1639
|
-
|
|
1640
|
-
class:
|
|
1639
|
+
m("div", {
|
|
1640
|
+
class: _(r.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1641
1641
|
"data-cy": "multiselect-container"
|
|
1642
1642
|
}, [
|
|
1643
|
-
f(
|
|
1643
|
+
f(be, {
|
|
1644
1644
|
"onUpdate:modelValue": [
|
|
1645
|
-
|
|
1646
|
-
|
|
1645
|
+
s[0] || (s[0] = (x) => u(x)),
|
|
1646
|
+
s[1] || (s[1] = (x) => r.$attrs.modelValue = x)
|
|
1647
1647
|
],
|
|
1648
|
-
modelValue:
|
|
1648
|
+
modelValue: r.$attrs.modelValue,
|
|
1649
1649
|
"limit-text": n.value,
|
|
1650
|
-
options:
|
|
1650
|
+
options: o.options
|
|
1651
1651
|
}, {
|
|
1652
1652
|
tag: b(() => [
|
|
1653
|
-
|
|
1653
|
+
O(w(""))
|
|
1654
1654
|
]),
|
|
1655
1655
|
selection: b(() => [
|
|
1656
|
-
|
|
1656
|
+
r.$attrs.modelValue.length > 0 ? (i(), y("span", Pt, w(d.value) + " items selected", 1)) : S("", !0)
|
|
1657
1657
|
]),
|
|
1658
1658
|
default: b(() => [
|
|
1659
|
-
(i(!0),
|
|
1659
|
+
(i(!0), y(N, null, q(r.$slots, (x, F) => B(r.$slots, F, { slot: F })), 256))
|
|
1660
1660
|
]),
|
|
1661
1661
|
_: 3
|
|
1662
1662
|
}, 8, ["modelValue", "limit-text", "options"]),
|
|
1663
|
-
|
|
1663
|
+
B(r.$slots, "after-multi-select")
|
|
1664
1664
|
], 2),
|
|
1665
|
-
|
|
1666
|
-
class:
|
|
1665
|
+
m("div", {
|
|
1666
|
+
class: _(r.orientation === "row" ? "col-12" : "col"),
|
|
1667
1667
|
"data-cy": "options-preview"
|
|
1668
1668
|
}, [
|
|
1669
|
-
|
|
1670
|
-
style:
|
|
1669
|
+
m("div", {
|
|
1670
|
+
style: we({ height: r.height }),
|
|
1671
1671
|
class: "overflow-auto"
|
|
1672
1672
|
}, [
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
(i(!0),
|
|
1676
|
-
key:
|
|
1673
|
+
m("div", Mt, [
|
|
1674
|
+
r.title ? (i(), y("div", It, w(r.title), 1)) : S("", !0),
|
|
1675
|
+
(i(!0), y(N, null, q(r.$attrs.modelValue, (x) => (i(), y("div", {
|
|
1676
|
+
key: x.id,
|
|
1677
1677
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1678
1678
|
}, [
|
|
1679
|
-
|
|
1680
|
-
|
|
1679
|
+
B(r.$slots, "list-item", { item: x }, () => [
|
|
1680
|
+
m("span", zt, w(x.shortLabel ? x.shortLabel : x.label), 1)
|
|
1681
1681
|
]),
|
|
1682
|
-
|
|
1682
|
+
r.canRemoveItemFromPreview ? (i(), h(v, {
|
|
1683
1683
|
key: 0,
|
|
1684
1684
|
link: "",
|
|
1685
1685
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1686
|
-
onClick: (
|
|
1686
|
+
onClick: (F) => c(x.id)
|
|
1687
1687
|
}, {
|
|
1688
1688
|
default: b(() => [
|
|
1689
|
-
f(
|
|
1689
|
+
f(p(T), {
|
|
1690
1690
|
icon: "bi:x",
|
|
1691
1691
|
class: "close-icon",
|
|
1692
|
-
"data-cy": `close-icon-${
|
|
1692
|
+
"data-cy": `close-icon-${x.id}`
|
|
1693
1693
|
}, null, 8, ["data-cy"])
|
|
1694
1694
|
]),
|
|
1695
1695
|
_: 2
|
|
1696
1696
|
}, 1032, ["onClick"])) : S("", !0)
|
|
1697
1697
|
]))), 128)),
|
|
1698
|
-
|
|
1698
|
+
r.$attrs.modelValue.length === 0 ? (i(), y("div", Ot, "No Items Selected.")) : S("", !0)
|
|
1699
1699
|
])
|
|
1700
1700
|
], 4)
|
|
1701
1701
|
], 2)
|
|
1702
1702
|
], 2);
|
|
1703
1703
|
};
|
|
1704
1704
|
}
|
|
1705
|
-
}),
|
|
1705
|
+
}), Dt = { class: "d-flex justify-content-between pb-2" }, Ut = {
|
|
1706
1706
|
"data-cy": "title",
|
|
1707
1707
|
class: "my-auto"
|
|
1708
|
-
},
|
|
1708
|
+
}, At = {
|
|
1709
1709
|
"data-cy": "slot",
|
|
1710
1710
|
class: "d-flex align-items-center"
|
|
1711
|
-
},
|
|
1711
|
+
}, fl = /* @__PURE__ */ V({
|
|
1712
1712
|
__name: "ForgePageHeader",
|
|
1713
1713
|
props: {
|
|
1714
1714
|
title: {}
|
|
1715
1715
|
},
|
|
1716
1716
|
setup(e) {
|
|
1717
1717
|
const t = e;
|
|
1718
|
-
return (
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1718
|
+
return (o, l) => (i(), y("div", Dt, [
|
|
1719
|
+
m("h3", Ut, w(t.title), 1),
|
|
1720
|
+
m("div", At, [
|
|
1721
|
+
B(o.$slots, "default")
|
|
1722
1722
|
])
|
|
1723
1723
|
]));
|
|
1724
1724
|
}
|
|
1725
|
-
}),
|
|
1725
|
+
}), Nt = { class: "d-flex" }, Et = { "data-cy": "before-slot" }, Lt = { class: "position-relative" }, Rt = { "data-cy": "after-slot" }, fe = /* @__PURE__ */ V({
|
|
1726
1726
|
__name: "ForgeDatepicker",
|
|
1727
|
-
props: /* @__PURE__ */
|
|
1727
|
+
props: /* @__PURE__ */ j({
|
|
1728
1728
|
severity: { default: "primary" },
|
|
1729
1729
|
modelValue: {},
|
|
1730
1730
|
selectionMode: { default: "single" },
|
|
@@ -1783,7 +1783,7 @@ const yt = { key: 0 }, vt = {
|
|
|
1783
1783
|
panelStyle: {},
|
|
1784
1784
|
panelClass: {},
|
|
1785
1785
|
panelProps: {},
|
|
1786
|
-
name: {},
|
|
1786
|
+
name: { default: "" },
|
|
1787
1787
|
ariaLabelledby: {},
|
|
1788
1788
|
ariaLabel: {},
|
|
1789
1789
|
pt: {},
|
|
@@ -1795,35 +1795,37 @@ const yt = { key: 0 }, vt = {
|
|
|
1795
1795
|
}),
|
|
1796
1796
|
emits: ["update:modelValue"],
|
|
1797
1797
|
setup(e) {
|
|
1798
|
-
const t = e,
|
|
1799
|
-
|
|
1800
|
-
},
|
|
1801
|
-
|
|
1798
|
+
const t = e, o = E(e, "modelValue"), { errors: l, errorMessage: a, handleChange: n, handleBlur: d } = K(() => t.name, void 0, {
|
|
1799
|
+
initialValue: o.value
|
|
1800
|
+
}), u = () => {
|
|
1801
|
+
o.value = null;
|
|
1802
|
+
}, c = k(() => l.value.length > 0), r = k(() => ({
|
|
1803
|
+
day: ({ context: s }) => ({
|
|
1802
1804
|
class: [
|
|
1803
1805
|
`text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
|
|
1804
1806
|
{
|
|
1805
|
-
"cursor-pointer": !
|
|
1806
|
-
"pe-none":
|
|
1807
|
-
"text-white":
|
|
1807
|
+
"cursor-pointer": !s.disabled,
|
|
1808
|
+
"pe-none": s.disabled,
|
|
1809
|
+
"text-white": s.selected
|
|
1808
1810
|
},
|
|
1809
1811
|
// Severities
|
|
1810
1812
|
{
|
|
1811
|
-
selected:
|
|
1812
|
-
"text-primary": !
|
|
1813
|
-
"text-brand": !
|
|
1814
|
-
"text-secondary": !
|
|
1815
|
-
"text-success": !
|
|
1816
|
-
"text-warning": !
|
|
1817
|
-
"text-danger": !
|
|
1818
|
-
"text-info": !
|
|
1813
|
+
selected: s.selected && !s.disabled,
|
|
1814
|
+
"text-primary": !s.selected && s.today && (t.severity === void 0 || t.severity === "primary"),
|
|
1815
|
+
"text-brand": !s.selected && s.today && t.severity === "brand",
|
|
1816
|
+
"text-secondary": !s.selected && s.today && t.severity === "secondary",
|
|
1817
|
+
"text-success": !s.selected && s.today && t.severity === "success",
|
|
1818
|
+
"text-warning": !s.selected && s.today && t.severity === "warning",
|
|
1819
|
+
"text-danger": !s.selected && s.today && t.severity === "danger",
|
|
1820
|
+
"text-info": !s.selected && s.today && t.severity === "info"
|
|
1819
1821
|
}
|
|
1820
1822
|
]
|
|
1821
1823
|
}),
|
|
1822
|
-
dayLabel: ({ context:
|
|
1824
|
+
dayLabel: ({ context: s }) => ({
|
|
1823
1825
|
class: [
|
|
1824
1826
|
// Disabled States
|
|
1825
1827
|
{
|
|
1826
|
-
"text-muted":
|
|
1828
|
+
"text-muted": s.disabled
|
|
1827
1829
|
}
|
|
1828
1830
|
]
|
|
1829
1831
|
}),
|
|
@@ -1859,82 +1861,95 @@ const yt = { key: 0 }, vt = {
|
|
|
1859
1861
|
]
|
|
1860
1862
|
})
|
|
1861
1863
|
},
|
|
1862
|
-
year: ({ context:
|
|
1864
|
+
year: ({ context: s }) => ({
|
|
1863
1865
|
class: [
|
|
1864
1866
|
"col-3 text-center cursor-pointer py-2",
|
|
1865
1867
|
{
|
|
1866
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
1867
|
-
"text-brand": t.severity === "brand" &&
|
|
1868
|
-
"text-secondary": t.severity === "secondary" &&
|
|
1869
|
-
"text-success": t.severity === "success" &&
|
|
1870
|
-
"text-warning": t.severity === "warning" &&
|
|
1871
|
-
"text-danger": t.severity === "danger" &&
|
|
1872
|
-
"text-info": t.severity === "info" &&
|
|
1868
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1869
|
+
"text-brand": t.severity === "brand" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1870
|
+
"text-secondary": t.severity === "secondary" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1871
|
+
"text-success": t.severity === "success" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1872
|
+
"text-warning": t.severity === "warning" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1873
|
+
"text-danger": t.severity === "danger" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
|
|
1874
|
+
"text-info": t.severity === "info" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear()
|
|
1873
1875
|
}
|
|
1874
1876
|
]
|
|
1875
1877
|
}),
|
|
1876
|
-
month: ({ context:
|
|
1878
|
+
month: ({ context: s }) => ({
|
|
1877
1879
|
class: [
|
|
1878
1880
|
"col-3 text-center cursor-pointer py-2",
|
|
1879
1881
|
{
|
|
1880
|
-
"text-primary": (t.severity === void 0 || t.severity === "primary") &&
|
|
1881
|
-
"text-brand": t.severity === "brand" &&
|
|
1882
|
-
"text-secondary": t.severity === "secondary" &&
|
|
1883
|
-
"text-success": t.severity === "success" &&
|
|
1884
|
-
"text-warning": t.severity === "warning" &&
|
|
1885
|
-
"text-danger": t.severity === "danger" &&
|
|
1886
|
-
"text-info": t.severity === "info" &&
|
|
1882
|
+
"text-primary": (t.severity === void 0 || t.severity === "primary") && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1883
|
+
"text-brand": t.severity === "brand" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1884
|
+
"text-secondary": t.severity === "secondary" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1885
|
+
"text-success": t.severity === "success" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1886
|
+
"text-warning": t.severity === "warning" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1887
|
+
"text-danger": t.severity === "danger" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
|
|
1888
|
+
"text-info": t.severity === "info" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
|
|
1887
1889
|
}
|
|
1888
1890
|
]
|
|
1889
1891
|
})
|
|
1890
1892
|
}));
|
|
1891
|
-
return (
|
|
1892
|
-
const
|
|
1893
|
-
return i(),
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
u("div", Nt, [
|
|
1898
|
-
f(s, T({ ...t, ...n.$attrs }, {
|
|
1899
|
-
pt: o.value,
|
|
1900
|
-
modelValue: l.value,
|
|
1901
|
-
"onUpdate:modelValue": r[0] || (r[0] = (p) => l.value = p)
|
|
1902
|
-
}), null, 16, ["pt", "modelValue"]),
|
|
1903
|
-
H(f(c(C), {
|
|
1904
|
-
"data-cy": "icon",
|
|
1905
|
-
icon: "bi:calendar4",
|
|
1906
|
-
class: "position-absolute end-0 top-50 bottom-50 my-auto me-2 text-muted bg-white"
|
|
1907
|
-
}, null, 512), [
|
|
1908
|
-
[G, t.showIcon]
|
|
1893
|
+
return (s, v) => {
|
|
1894
|
+
const x = Se;
|
|
1895
|
+
return i(), y(N, null, [
|
|
1896
|
+
m("div", Nt, [
|
|
1897
|
+
m("span", Et, [
|
|
1898
|
+
B(s.$slots, "before")
|
|
1909
1899
|
]),
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1900
|
+
m("div", Lt, [
|
|
1901
|
+
f(x, C({ ...t, ...s.$attrs }, {
|
|
1902
|
+
pt: r.value,
|
|
1903
|
+
modelValue: o.value,
|
|
1904
|
+
"onUpdate:modelValue": [
|
|
1905
|
+
v[0] || (v[0] = (F) => o.value = F),
|
|
1906
|
+
p(n)
|
|
1907
|
+
],
|
|
1908
|
+
onBlur: p(d),
|
|
1909
|
+
"input-class": { "is-invalid": c.value }
|
|
1910
|
+
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
|
|
1911
|
+
R(f(p(T), {
|
|
1912
|
+
"data-cy": "icon",
|
|
1913
|
+
icon: "bi:calendar4",
|
|
1914
|
+
class: _(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
1915
|
+
}, null, 8, ["class"]), [
|
|
1916
|
+
[H, t.showIcon]
|
|
1917
|
+
]),
|
|
1918
|
+
R(f(p(T), {
|
|
1919
|
+
"data-cy": "icon",
|
|
1920
|
+
icon: "bi:x",
|
|
1921
|
+
onClick: u,
|
|
1922
|
+
class: _(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
|
|
1923
|
+
}, null, 8, ["class"]), [
|
|
1924
|
+
[H, t.modelValue]
|
|
1925
|
+
])
|
|
1926
|
+
]),
|
|
1927
|
+
m("span", Rt, [
|
|
1928
|
+
B(s.$slots, "after")
|
|
1917
1929
|
])
|
|
1918
1930
|
]),
|
|
1919
|
-
|
|
1920
|
-
|
|
1931
|
+
R(m("small", {
|
|
1932
|
+
"data-cy": "error",
|
|
1933
|
+
class: "text-invalid"
|
|
1934
|
+
}, w(p(a)), 513), [
|
|
1935
|
+
[H, c.value]
|
|
1921
1936
|
])
|
|
1922
1937
|
], 64);
|
|
1923
1938
|
};
|
|
1924
1939
|
}
|
|
1925
|
-
}),
|
|
1940
|
+
}), gl = /* @__PURE__ */ V({
|
|
1926
1941
|
__name: "ForgeRemainingCharacters",
|
|
1927
1942
|
props: {
|
|
1928
1943
|
maxCount: { default: 300 },
|
|
1929
1944
|
currentCount: {}
|
|
1930
1945
|
},
|
|
1931
1946
|
setup(e) {
|
|
1932
|
-
const t = e,
|
|
1933
|
-
return (
|
|
1934
|
-
class:
|
|
1935
|
-
}, "Remaining characters: " +
|
|
1947
|
+
const t = e, o = k(() => t.maxCount - t.currentCount);
|
|
1948
|
+
return (l, a) => (i(), y("div", {
|
|
1949
|
+
class: _(o.value < 0 ? "text-danger" : "")
|
|
1950
|
+
}, "Remaining characters: " + w(o.value), 3));
|
|
1936
1951
|
}
|
|
1937
|
-
}),
|
|
1952
|
+
}), jt = /* @__PURE__ */ m("hr", null, null, -1), Ht = { class: "d-flex justify-content-between" }, hl = /* @__PURE__ */ V({
|
|
1938
1953
|
__name: "ForgeForm",
|
|
1939
1954
|
props: {
|
|
1940
1955
|
onSubmit: {},
|
|
@@ -1946,95 +1961,95 @@ const yt = { key: 0 }, vt = {
|
|
|
1946
1961
|
hideCancel: { type: Boolean, default: !1 }
|
|
1947
1962
|
},
|
|
1948
1963
|
setup(e) {
|
|
1949
|
-
const t = e,
|
|
1964
|
+
const t = e, o = I(!1), l = I({
|
|
1950
1965
|
hasError: !1,
|
|
1951
1966
|
message: ""
|
|
1952
1967
|
});
|
|
1953
|
-
async function
|
|
1954
|
-
|
|
1968
|
+
async function a() {
|
|
1969
|
+
o.value = !0, l.value.hasError = !1;
|
|
1955
1970
|
try {
|
|
1956
1971
|
await t.onSubmit();
|
|
1957
1972
|
} catch (n) {
|
|
1958
|
-
|
|
1973
|
+
l.value.hasError = !0, n.message && (l.value.message = n.message);
|
|
1959
1974
|
}
|
|
1960
|
-
|
|
1975
|
+
o.value = !1;
|
|
1961
1976
|
}
|
|
1962
|
-
return (n,
|
|
1963
|
-
const
|
|
1964
|
-
return i(),
|
|
1977
|
+
return (n, d) => {
|
|
1978
|
+
const u = L;
|
|
1979
|
+
return i(), y("form", C(n.$attrs, {
|
|
1965
1980
|
novalidate: "",
|
|
1966
1981
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
1967
|
-
onSubmit:
|
|
1982
|
+
onSubmit: Y(a, ["prevent"])
|
|
1968
1983
|
}), [
|
|
1969
|
-
n.hideTitle ? S("", !0) : (i(),
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
class:
|
|
1984
|
+
n.hideTitle ? S("", !0) : (i(), y(N, { key: 0 }, [
|
|
1985
|
+
B(n.$slots, "title", {}, () => [
|
|
1986
|
+
m("h3", {
|
|
1987
|
+
class: _(n.titleClass),
|
|
1973
1988
|
"data-cy": "form-title"
|
|
1974
|
-
},
|
|
1989
|
+
}, w(n.title), 3)
|
|
1975
1990
|
]),
|
|
1976
|
-
|
|
1991
|
+
jt
|
|
1977
1992
|
], 64)),
|
|
1978
|
-
|
|
1993
|
+
l.value.hasError ? (i(), h(se, {
|
|
1979
1994
|
key: 1,
|
|
1980
1995
|
severity: "danger",
|
|
1981
1996
|
"data-cy": "error"
|
|
1982
1997
|
}, {
|
|
1983
1998
|
default: b(() => [
|
|
1984
|
-
|
|
1985
|
-
error:
|
|
1999
|
+
B(n.$slots, "error", {
|
|
2000
|
+
error: l.value.message
|
|
1986
2001
|
}, () => [
|
|
1987
|
-
|
|
2002
|
+
O(w(l.value.message), 1)
|
|
1988
2003
|
])
|
|
1989
2004
|
]),
|
|
1990
2005
|
_: 3
|
|
1991
2006
|
})) : S("", !0),
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
n.hideCancel ? S("", !0) : (i(),
|
|
2007
|
+
B(n.$slots, "default"),
|
|
2008
|
+
m("div", Ht, [
|
|
2009
|
+
B(n.$slots, "cancel", {}, () => [
|
|
2010
|
+
n.hideCancel ? S("", !0) : (i(), h(u, {
|
|
1996
2011
|
key: 0,
|
|
1997
2012
|
"data-cy": "cancel-btn",
|
|
1998
2013
|
type: "reset",
|
|
1999
2014
|
severity: "secondary",
|
|
2000
2015
|
outlined: "",
|
|
2001
|
-
onClick:
|
|
2016
|
+
onClick: d[0] || (d[0] = (c) => n.$emit("cancel"))
|
|
2002
2017
|
}, {
|
|
2003
2018
|
default: b(() => [
|
|
2004
|
-
|
|
2019
|
+
O(w(n.cancelText), 1)
|
|
2005
2020
|
]),
|
|
2006
2021
|
_: 1
|
|
2007
2022
|
}))
|
|
2008
2023
|
]),
|
|
2009
|
-
|
|
2010
|
-
f(
|
|
2024
|
+
B(n.$slots, "submit", { submit: a }, () => [
|
|
2025
|
+
f(u, {
|
|
2011
2026
|
"data-cy": "submit-btn",
|
|
2012
2027
|
type: "submit",
|
|
2013
2028
|
severity: "primary",
|
|
2014
2029
|
class: "ms-auto"
|
|
2015
2030
|
}, {
|
|
2016
2031
|
default: b(() => [
|
|
2017
|
-
|
|
2032
|
+
O(w(n.submitText), 1)
|
|
2018
2033
|
]),
|
|
2019
2034
|
_: 1
|
|
2020
2035
|
})
|
|
2021
2036
|
])
|
|
2022
2037
|
]),
|
|
2023
|
-
|
|
2038
|
+
o.value ? (i(), h(ye, {
|
|
2024
2039
|
key: 2,
|
|
2025
2040
|
"data-cy": "loading-spinner"
|
|
2026
2041
|
})) : S("", !0)
|
|
2027
2042
|
], 16);
|
|
2028
2043
|
};
|
|
2029
2044
|
}
|
|
2030
|
-
}),
|
|
2045
|
+
}), Yt = {
|
|
2031
2046
|
key: 1,
|
|
2032
|
-
class: "d-flex flex-column"
|
|
2033
|
-
},
|
|
2047
|
+
class: "d-flex flex-column w-100"
|
|
2048
|
+
}, qt = ["for"], wl = /* @__PURE__ */ V({
|
|
2034
2049
|
__name: "ForgeFormField",
|
|
2035
|
-
props: /* @__PURE__ */
|
|
2050
|
+
props: /* @__PURE__ */ j({
|
|
2036
2051
|
name: {},
|
|
2037
|
-
|
|
2052
|
+
fieldLabel: {},
|
|
2038
2053
|
type: { default: "text" },
|
|
2039
2054
|
mask: { default: "" },
|
|
2040
2055
|
placeholder: { default: "" }
|
|
@@ -2044,79 +2059,92 @@ const yt = { key: 0 }, vt = {
|
|
|
2044
2059
|
}),
|
|
2045
2060
|
emits: ["update:modelValue"],
|
|
2046
2061
|
setup(e) {
|
|
2047
|
-
const t = E(e, "modelValue"),
|
|
2048
|
-
|
|
2049
|
-
}, { errors:
|
|
2062
|
+
const t = E(e, "modelValue"), o = e, l = (s) => {
|
|
2063
|
+
o.type == "number" ? u(s.value) : u(s);
|
|
2064
|
+
}, { errors: a, value: n, errorMessage: d, handleChange: u, handleBlur: c } = K(() => o.name, void 0, {
|
|
2050
2065
|
initialValue: t.value
|
|
2051
|
-
}),
|
|
2052
|
-
return
|
|
2053
|
-
t.value =
|
|
2054
|
-
}, { immediate: !0 }), (
|
|
2055
|
-
const
|
|
2056
|
-
return
|
|
2066
|
+
}), r = k(() => a.value.length > 0);
|
|
2067
|
+
return re(() => n.value, (s) => {
|
|
2068
|
+
t.value = s;
|
|
2069
|
+
}, { immediate: !0 }), (s, v) => {
|
|
2070
|
+
const x = Te, F = Ce, P = de, M = ne, z = be, g = fe;
|
|
2071
|
+
return o.type === "checkbox" ? (i(), h(ve, C({
|
|
2057
2072
|
key: 0,
|
|
2058
|
-
id:
|
|
2059
|
-
label:
|
|
2060
|
-
},
|
|
2061
|
-
name:
|
|
2073
|
+
id: o.name,
|
|
2074
|
+
label: o.fieldLabel
|
|
2075
|
+
}, s.$attrs, {
|
|
2076
|
+
name: o.name,
|
|
2062
2077
|
modelValue: t.value,
|
|
2063
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
2064
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (i(),
|
|
2065
|
-
|
|
2066
|
-
for:
|
|
2067
|
-
|
|
2068
|
-
|
|
2078
|
+
"onUpdate:modelValue": v[0] || (v[0] = ($) => t.value = $)
|
|
2079
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (i(), y("div", Yt, [
|
|
2080
|
+
m("label", {
|
|
2081
|
+
for: o.name,
|
|
2082
|
+
class: "mb-1"
|
|
2083
|
+
}, w(o.fieldLabel), 9, qt),
|
|
2084
|
+
o.type === "number" ? (i(), h(p(me), C({
|
|
2069
2085
|
key: 0,
|
|
2070
|
-
id:
|
|
2071
|
-
},
|
|
2072
|
-
placeholder:
|
|
2073
|
-
"input-class": { "is-invalid":
|
|
2074
|
-
class: { "is-invalid":
|
|
2086
|
+
id: o.name
|
|
2087
|
+
}, s.$attrs, {
|
|
2088
|
+
placeholder: o.placeholder,
|
|
2089
|
+
"input-class": { "is-invalid": r.value },
|
|
2090
|
+
class: { "is-invalid": r.value },
|
|
2075
2091
|
modelValue: t.value,
|
|
2076
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
2077
|
-
onInput:
|
|
2078
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) :
|
|
2092
|
+
"onUpdate:modelValue": v[1] || (v[1] = ($) => t.value = $),
|
|
2093
|
+
onInput: l
|
|
2094
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : o.type === "textarea" ? (i(), h(x, C({
|
|
2079
2095
|
key: 1,
|
|
2080
|
-
id:
|
|
2081
|
-
},
|
|
2082
|
-
placeholder:
|
|
2083
|
-
class: { "is-invalid":
|
|
2096
|
+
id: o.name
|
|
2097
|
+
}, s.$attrs, {
|
|
2098
|
+
placeholder: o.placeholder,
|
|
2099
|
+
class: { "is-invalid": r.value },
|
|
2084
2100
|
modelValue: t.value,
|
|
2085
|
-
"onUpdate:modelValue": v[2] || (v[2] = (
|
|
2086
|
-
onInput:
|
|
2087
|
-
onBlur: c
|
|
2088
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) :
|
|
2101
|
+
"onUpdate:modelValue": v[2] || (v[2] = ($) => t.value = $),
|
|
2102
|
+
onInput: l,
|
|
2103
|
+
onBlur: p(c)
|
|
2104
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : o.type === "mask" ? (i(), h(F, C({
|
|
2089
2105
|
key: 2,
|
|
2090
|
-
id:
|
|
2091
|
-
},
|
|
2092
|
-
placeholder:
|
|
2093
|
-
mask:
|
|
2094
|
-
class: { "is-invalid":
|
|
2106
|
+
id: o.name
|
|
2107
|
+
}, s.$attrs, {
|
|
2108
|
+
placeholder: o.placeholder,
|
|
2109
|
+
mask: o.mask,
|
|
2110
|
+
class: { "is-invalid": r.value },
|
|
2095
2111
|
modelValue: t.value,
|
|
2096
|
-
"onUpdate:modelValue": v[3] || (v[3] = (
|
|
2097
|
-
|
|
2098
|
-
onBlur: c
|
|
2099
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) :
|
|
2112
|
+
"onUpdate:modelValue": v[3] || (v[3] = ($) => t.value = $),
|
|
2113
|
+
onComplete: l,
|
|
2114
|
+
onBlur: p(c)
|
|
2115
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : o.type === "text" ? (i(), h(P, C({
|
|
2100
2116
|
key: 3,
|
|
2101
|
-
id:
|
|
2102
|
-
},
|
|
2103
|
-
placeholder:
|
|
2104
|
-
class: { "is-invalid":
|
|
2117
|
+
id: o.name
|
|
2118
|
+
}, s.$attrs, {
|
|
2119
|
+
placeholder: o.placeholder,
|
|
2120
|
+
class: { "is-invalid": r.value },
|
|
2121
|
+
modelValue: t.value,
|
|
2122
|
+
"onUpdate:modelValue": v[4] || (v[4] = ($) => t.value = $),
|
|
2123
|
+
onInput: l,
|
|
2124
|
+
onBlur: p(c)
|
|
2125
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : o.type === "select" ? (i(), h(M, C({ key: 4 }, { ...o, ...s.$attrs }, {
|
|
2126
|
+
modelValue: t.value,
|
|
2127
|
+
"onUpdate:modelValue": v[5] || (v[5] = ($) => t.value = $),
|
|
2128
|
+
class: { "is-invalid": r.value }
|
|
2129
|
+
}), null, 16, ["modelValue", "class"])) : o.type === "multiselect" ? (i(), h(z, C({ key: 5 }, { ...o, ...s.$attrs }, {
|
|
2130
|
+
modelValue: t.value,
|
|
2131
|
+
"onUpdate:modelValue": v[6] || (v[6] = ($) => t.value = $),
|
|
2132
|
+
class: { "is-invalid": r.value }
|
|
2133
|
+
}), null, 16, ["modelValue", "class"])) : o.type === "datepicker" ? (i(), h(g, C({ key: 6 }, { ...o, ...s.$attrs }, {
|
|
2105
2134
|
modelValue: t.value,
|
|
2106
|
-
"onUpdate:modelValue": v[
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
H(u("small", {
|
|
2135
|
+
"onUpdate:modelValue": v[7] || (v[7] = ($) => t.value = $),
|
|
2136
|
+
class: { "is-invalid": r.value }
|
|
2137
|
+
}), null, 16, ["modelValue", "class"])) : S("", !0),
|
|
2138
|
+
R(m("small", {
|
|
2111
2139
|
"data-cy": "error",
|
|
2112
2140
|
class: "invalid-feedback"
|
|
2113
|
-
},
|
|
2114
|
-
[
|
|
2141
|
+
}, w(p(d)), 513), [
|
|
2142
|
+
[H, r.value && o.type !== "multiselect" && o.type !== "datepicker"]
|
|
2115
2143
|
])
|
|
2116
2144
|
]));
|
|
2117
2145
|
};
|
|
2118
2146
|
}
|
|
2119
|
-
}),
|
|
2147
|
+
}), xl = /* @__PURE__ */ V({
|
|
2120
2148
|
__name: "ForgeChips",
|
|
2121
2149
|
props: {
|
|
2122
2150
|
chipSeverity: { default: "primary" },
|
|
@@ -2143,16 +2171,16 @@ const yt = { key: 0 }, vt = {
|
|
|
2143
2171
|
unstyled: { type: Boolean }
|
|
2144
2172
|
},
|
|
2145
2173
|
setup(e) {
|
|
2146
|
-
const t = e, { errors:
|
|
2174
|
+
const t = e, { errors: o, value: l, errorMessage: a } = K(() => t.name, void 0, {
|
|
2147
2175
|
initialValue: t.modelValue
|
|
2148
|
-
}), n =
|
|
2176
|
+
}), n = k(() => o.value.length > 0), d = k(() => ({
|
|
2149
2177
|
inputtoken: "list-unstyled",
|
|
2150
2178
|
input: "border-0",
|
|
2151
|
-
container: ({ props:
|
|
2179
|
+
container: ({ props: u }) => ({
|
|
2152
2180
|
class: [
|
|
2153
2181
|
"form-control mb-0 d-flex",
|
|
2154
2182
|
{
|
|
2155
|
-
disabled:
|
|
2183
|
+
disabled: u.disabled,
|
|
2156
2184
|
"is-invalid": n.value
|
|
2157
2185
|
}
|
|
2158
2186
|
]
|
|
@@ -2176,35 +2204,35 @@ const yt = { key: 0 }, vt = {
|
|
|
2176
2204
|
]
|
|
2177
2205
|
}
|
|
2178
2206
|
}));
|
|
2179
|
-
return (
|
|
2180
|
-
const
|
|
2181
|
-
return i(),
|
|
2182
|
-
f(
|
|
2183
|
-
pt:
|
|
2184
|
-
"model-value":
|
|
2185
|
-
"onUpdate:modelValue":
|
|
2207
|
+
return (u, c) => {
|
|
2208
|
+
const r = Pe;
|
|
2209
|
+
return i(), y(N, null, [
|
|
2210
|
+
f(r, C({ ...t, ...u.$attrs }, {
|
|
2211
|
+
pt: d.value,
|
|
2212
|
+
"model-value": p(l),
|
|
2213
|
+
"onUpdate:modelValue": c[0] || (c[0] = (s) => le(l) ? l.value = s : null)
|
|
2186
2214
|
}), {
|
|
2187
|
-
removetokenicon: b(({ removeCallback:
|
|
2188
|
-
|
|
2215
|
+
removetokenicon: b(({ removeCallback: s }) => [
|
|
2216
|
+
R(f(p(T), {
|
|
2189
2217
|
icon: "bi:x",
|
|
2190
2218
|
class: "cursor-pointer",
|
|
2191
|
-
onClick:
|
|
2219
|
+
onClick: s
|
|
2192
2220
|
}, null, 8, ["onClick"]), [
|
|
2193
|
-
[
|
|
2221
|
+
[H, !t.disabled]
|
|
2194
2222
|
])
|
|
2195
2223
|
]),
|
|
2196
2224
|
_: 1
|
|
2197
2225
|
}, 16, ["pt", "model-value"]),
|
|
2198
|
-
|
|
2226
|
+
R(m("small", {
|
|
2199
2227
|
"data-cy": "error",
|
|
2200
2228
|
class: "text-invalid"
|
|
2201
|
-
},
|
|
2202
|
-
[
|
|
2229
|
+
}, w(p(a)), 513), [
|
|
2230
|
+
[H, n.value]
|
|
2203
2231
|
])
|
|
2204
2232
|
], 64);
|
|
2205
2233
|
};
|
|
2206
2234
|
}
|
|
2207
|
-
}),
|
|
2235
|
+
}), Gt = /* @__PURE__ */ V({
|
|
2208
2236
|
__name: "ForgeProgressBar",
|
|
2209
2237
|
props: {
|
|
2210
2238
|
severity: { default: "primary" },
|
|
@@ -2219,7 +2247,7 @@ const yt = { key: 0 }, vt = {
|
|
|
2219
2247
|
unstyled: { type: Boolean }
|
|
2220
2248
|
},
|
|
2221
2249
|
setup(e) {
|
|
2222
|
-
const t = e,
|
|
2250
|
+
const t = e, o = k(() => t.striped ? "progress-bar-striped" : null), l = k(() => t.animate ? "progress-bar-animated" : null), a = k(() => {
|
|
2223
2251
|
switch (t.severity) {
|
|
2224
2252
|
case "brand":
|
|
2225
2253
|
return "bg-brand";
|
|
@@ -2238,25 +2266,25 @@ const yt = { key: 0 }, vt = {
|
|
|
2238
2266
|
default:
|
|
2239
2267
|
return "bg-primary";
|
|
2240
2268
|
}
|
|
2241
|
-
}), n =
|
|
2269
|
+
}), n = k(() => ({
|
|
2242
2270
|
root: {
|
|
2243
2271
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2244
2272
|
},
|
|
2245
2273
|
value: {
|
|
2246
|
-
class: [
|
|
2274
|
+
class: [a.value, o.value, l.value]
|
|
2247
2275
|
}
|
|
2248
2276
|
}));
|
|
2249
|
-
return (
|
|
2250
|
-
const
|
|
2251
|
-
return i(),
|
|
2277
|
+
return (d, u) => {
|
|
2278
|
+
const c = Me;
|
|
2279
|
+
return i(), h(c, C({ ...d.$attrs, ...t }, { pt: n.value }), {
|
|
2252
2280
|
default: b(() => [
|
|
2253
|
-
|
|
2281
|
+
B(d.$slots, "default")
|
|
2254
2282
|
]),
|
|
2255
2283
|
_: 3
|
|
2256
2284
|
}, 16, ["pt"]);
|
|
2257
2285
|
};
|
|
2258
2286
|
}
|
|
2259
|
-
}),
|
|
2287
|
+
}), Kt = { class: "value text-white w-100 text-center" }, kl = /* @__PURE__ */ V({
|
|
2260
2288
|
__name: "ForgeStatWidget",
|
|
2261
2289
|
props: {
|
|
2262
2290
|
size: { default: "md" },
|
|
@@ -2264,18 +2292,18 @@ const yt = { key: 0 }, vt = {
|
|
|
2264
2292
|
},
|
|
2265
2293
|
setup(e) {
|
|
2266
2294
|
const t = e;
|
|
2267
|
-
return (
|
|
2295
|
+
return (o, l) => (i(), y("div", C(o.$attrs, {
|
|
2268
2296
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2269
2297
|
}), [
|
|
2270
|
-
|
|
2271
|
-
|
|
2298
|
+
m("span", Kt, [
|
|
2299
|
+
B(o.$slots, "default")
|
|
2272
2300
|
])
|
|
2273
2301
|
], 16));
|
|
2274
2302
|
}
|
|
2275
|
-
}),
|
|
2303
|
+
}), Wt = {
|
|
2276
2304
|
class: "d-flex flex-column align-items-center",
|
|
2277
2305
|
"data-cy": "stepper"
|
|
2278
|
-
},
|
|
2306
|
+
}, Zt = { class: "d-flex align-items-center justify-content-center w-100" }, $l = /* @__PURE__ */ V({
|
|
2279
2307
|
__name: "ForgeStepper",
|
|
2280
2308
|
props: {
|
|
2281
2309
|
currentStep: { default: 0 },
|
|
@@ -2291,103 +2319,103 @@ const yt = { key: 0 }, vt = {
|
|
|
2291
2319
|
},
|
|
2292
2320
|
emits: ["update:currentStep"],
|
|
2293
2321
|
setup(e, { emit: t }) {
|
|
2294
|
-
const
|
|
2322
|
+
const o = t, l = e, a = I(l.currentStep), n = () => {
|
|
2295
2323
|
do
|
|
2296
|
-
|
|
2297
|
-
while (
|
|
2298
|
-
|
|
2299
|
-
},
|
|
2300
|
-
if (
|
|
2324
|
+
a.value--;
|
|
2325
|
+
while (l.model[a.value].disabled);
|
|
2326
|
+
o("update:currentStep", a.value);
|
|
2327
|
+
}, d = () => {
|
|
2328
|
+
if (a.value < l.model.length - 1)
|
|
2301
2329
|
do
|
|
2302
|
-
|
|
2303
|
-
while (
|
|
2304
|
-
|
|
2305
|
-
},
|
|
2306
|
-
const
|
|
2307
|
-
return !(
|
|
2308
|
-
}),
|
|
2309
|
-
menuitem: (
|
|
2330
|
+
a.value++;
|
|
2331
|
+
while (l.model[a.value].disabled);
|
|
2332
|
+
o("update:currentStep", a.value);
|
|
2333
|
+
}, u = k(() => {
|
|
2334
|
+
const r = l.model.findIndex((s) => !s.disabled);
|
|
2335
|
+
return !(r < a.value && r > -1);
|
|
2336
|
+
}), c = k(() => ({
|
|
2337
|
+
menuitem: (r) => ({
|
|
2310
2338
|
class: [{
|
|
2311
|
-
"cursor-pointer": !
|
|
2339
|
+
"cursor-pointer": !r.context.disabled
|
|
2312
2340
|
}]
|
|
2313
2341
|
}),
|
|
2314
|
-
step: (
|
|
2342
|
+
step: (r) => ({
|
|
2315
2343
|
class: [
|
|
2316
2344
|
"d-flex align-items-center justify-content-center mb-2 step",
|
|
2317
2345
|
{
|
|
2318
|
-
inactive:
|
|
2319
|
-
"bg-primary text-white":
|
|
2320
|
-
"bg-brand text-white":
|
|
2321
|
-
"bg-secondary text-white":
|
|
2322
|
-
"bg-success text-white":
|
|
2323
|
-
"bg-warning text-white":
|
|
2324
|
-
"bg-danger text-white":
|
|
2325
|
-
"bg-info text-white":
|
|
2346
|
+
inactive: r.context.disabled,
|
|
2347
|
+
"bg-primary text-white": r.context.index === a.value && (l.severity === void 0 || l.severity === "primary"),
|
|
2348
|
+
"bg-brand text-white": r.context.index === a.value && l.severity === "brand",
|
|
2349
|
+
"bg-secondary text-white": r.context.index === a.value && l.severity === "secondary",
|
|
2350
|
+
"bg-success text-white": r.context.index === a.value && l.severity === "success",
|
|
2351
|
+
"bg-warning text-white": r.context.index === a.value && l.severity === "warning",
|
|
2352
|
+
"bg-danger text-white": r.context.index === a.value && l.severity === "danger",
|
|
2353
|
+
"bg-info text-white": r.context.index === a.value && l.severity === "info"
|
|
2326
2354
|
}
|
|
2327
2355
|
]
|
|
2328
2356
|
}),
|
|
2329
|
-
label: (
|
|
2357
|
+
label: (r) => ({
|
|
2330
2358
|
class: [
|
|
2331
2359
|
"h5",
|
|
2332
2360
|
{
|
|
2333
|
-
"border-bottom border-2 border-primary":
|
|
2334
|
-
"border-bottom border-2 border-brand":
|
|
2335
|
-
"border-bottom border-2 border-secondary":
|
|
2336
|
-
"border-bottom border-2 border-success":
|
|
2337
|
-
"border-bottom border-2 border-warning":
|
|
2338
|
-
"border-bottom border-2 border-danger":
|
|
2339
|
-
"border-bottom border-2 border-info":
|
|
2361
|
+
"border-bottom border-2 border-primary": r.context.index === a.value && (l.severity === void 0 || l.severity === "primary"),
|
|
2362
|
+
"border-bottom border-2 border-brand": r.context.index === a.value && l.severity === "brand",
|
|
2363
|
+
"border-bottom border-2 border-secondary": r.context.index === a.value && l.severity === "secondary",
|
|
2364
|
+
"border-bottom border-2 border-success": r.context.index === a.value && l.severity === "success",
|
|
2365
|
+
"border-bottom border-2 border-warning": r.context.index === a.value && l.severity === "warning",
|
|
2366
|
+
"border-bottom border-2 border-danger": r.context.index === a.value && l.severity === "danger",
|
|
2367
|
+
"border-bottom border-2 border-info": r.context.index === a.value && l.severity === "info"
|
|
2340
2368
|
}
|
|
2341
2369
|
]
|
|
2342
2370
|
})
|
|
2343
2371
|
}));
|
|
2344
|
-
return (
|
|
2345
|
-
const v =
|
|
2346
|
-
return i(),
|
|
2347
|
-
|
|
2372
|
+
return (r, s) => {
|
|
2373
|
+
const v = L, x = ze, F = Ie;
|
|
2374
|
+
return i(), y("div", Wt, [
|
|
2375
|
+
m("div", Zt, [
|
|
2348
2376
|
f(v, {
|
|
2349
|
-
severity:
|
|
2350
|
-
disabled:
|
|
2377
|
+
severity: l.severity,
|
|
2378
|
+
disabled: u.value,
|
|
2351
2379
|
onClick: n,
|
|
2352
2380
|
class: "rounded-circle py-2 me-4",
|
|
2353
2381
|
"data-cy": "back-button"
|
|
2354
2382
|
}, {
|
|
2355
2383
|
default: b(() => [
|
|
2356
|
-
f(
|
|
2384
|
+
f(p(T), {
|
|
2357
2385
|
icon: "bi:chevron-left",
|
|
2358
2386
|
class: "mb-1"
|
|
2359
2387
|
})
|
|
2360
2388
|
]),
|
|
2361
2389
|
_: 1
|
|
2362
2390
|
}, 8, ["severity", "disabled"]),
|
|
2363
|
-
f(
|
|
2364
|
-
"active-step":
|
|
2365
|
-
"onUpdate:activeStep":
|
|
2366
|
-
model:
|
|
2367
|
-
pt:
|
|
2391
|
+
f(x, {
|
|
2392
|
+
"active-step": a.value,
|
|
2393
|
+
"onUpdate:activeStep": s[0] || (s[0] = (P) => a.value = P),
|
|
2394
|
+
model: l.model,
|
|
2395
|
+
pt: c.value,
|
|
2368
2396
|
readonly: !1
|
|
2369
2397
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2370
2398
|
]),
|
|
2371
|
-
f(
|
|
2372
|
-
(i(!0),
|
|
2373
|
-
key:
|
|
2399
|
+
f(F),
|
|
2400
|
+
(i(!0), y(N, null, q(l.model, (P, M) => (i(), y("div", {
|
|
2401
|
+
key: M,
|
|
2374
2402
|
class: "w-100"
|
|
2375
2403
|
}, [
|
|
2376
|
-
|
|
2404
|
+
M === a.value ? B(r.$slots, P.key ?? P.label, {
|
|
2377
2405
|
key: 0,
|
|
2378
|
-
nextStep:
|
|
2406
|
+
nextStep: d,
|
|
2379
2407
|
previousStep: n
|
|
2380
2408
|
}, () => [
|
|
2381
|
-
f(
|
|
2409
|
+
f(se, {
|
|
2382
2410
|
severity: "info",
|
|
2383
2411
|
"data-cy": "alert"
|
|
2384
2412
|
}, {
|
|
2385
2413
|
default: b(() => [
|
|
2386
|
-
|
|
2414
|
+
O(" Please add Slot Content for the key " + w(P.key ?? P.label) + " ", 1),
|
|
2387
2415
|
f(v, {
|
|
2388
2416
|
severity: "primary",
|
|
2389
2417
|
label: "Next",
|
|
2390
|
-
onClick:
|
|
2418
|
+
onClick: d,
|
|
2391
2419
|
class: "ms-2"
|
|
2392
2420
|
})
|
|
2393
2421
|
]),
|
|
@@ -2398,7 +2426,7 @@ const yt = { key: 0 }, vt = {
|
|
|
2398
2426
|
]);
|
|
2399
2427
|
};
|
|
2400
2428
|
}
|
|
2401
|
-
}),
|
|
2429
|
+
}), Jt = { class: "p-4 text-wrap w-100" }, Xt = { class: "p-4 text-wrap w-100" }, Bl = /* @__PURE__ */ V({
|
|
2402
2430
|
__name: "ForgeTile",
|
|
2403
2431
|
props: {
|
|
2404
2432
|
severity: { default: "primary" },
|
|
@@ -2407,32 +2435,32 @@ const yt = { key: 0 }, vt = {
|
|
|
2407
2435
|
selected: { type: Boolean, default: !1 }
|
|
2408
2436
|
},
|
|
2409
2437
|
setup(e) {
|
|
2410
|
-
const t = e,
|
|
2411
|
-
return (
|
|
2412
|
-
const
|
|
2413
|
-
return t.clickable ? (i(),
|
|
2438
|
+
const t = e, o = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), l = k(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
2439
|
+
return (a, n) => {
|
|
2440
|
+
const d = L;
|
|
2441
|
+
return t.clickable ? (i(), h(d, {
|
|
2414
2442
|
key: 0,
|
|
2415
|
-
class:
|
|
2443
|
+
class: _(["d-flex w-100 p-0 text-body", o.value]),
|
|
2416
2444
|
severity: t.severity,
|
|
2417
2445
|
unstyled: "",
|
|
2418
2446
|
"data-cy": "button-tile"
|
|
2419
2447
|
}, {
|
|
2420
2448
|
default: b(() => [
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2449
|
+
m("div", Jt, [
|
|
2450
|
+
B(a.$slots, "default", {}, () => [
|
|
2451
|
+
O("Tile Content")
|
|
2424
2452
|
])
|
|
2425
2453
|
])
|
|
2426
2454
|
]),
|
|
2427
2455
|
_: 3
|
|
2428
|
-
}, 8, ["severity", "class"])) : (i(),
|
|
2456
|
+
}, 8, ["severity", "class"])) : (i(), y("div", {
|
|
2429
2457
|
key: 1,
|
|
2430
|
-
class:
|
|
2458
|
+
class: _(["d-flex w-100", l.value]),
|
|
2431
2459
|
"data-cy": "tile"
|
|
2432
2460
|
}, [
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2461
|
+
m("div", Xt, [
|
|
2462
|
+
B(a.$slots, "default", {}, () => [
|
|
2463
|
+
O("Tile Content")
|
|
2436
2464
|
])
|
|
2437
2465
|
])
|
|
2438
2466
|
], 2));
|
|
@@ -2442,13 +2470,13 @@ const yt = { key: 0 }, vt = {
|
|
|
2442
2470
|
function Q(e, t) {
|
|
2443
2471
|
return e > 1 ? `${t}s` : t;
|
|
2444
2472
|
}
|
|
2445
|
-
const
|
|
2473
|
+
const Qt = {
|
|
2446
2474
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2447
2475
|
"data-cy": "pagination-header"
|
|
2448
|
-
},
|
|
2476
|
+
}, ea = { class: "ms-2" }, ta = { key: 0 }, aa = /* @__PURE__ */ m("span", { class: "mx-2" }, "|", -1), la = {
|
|
2449
2477
|
class: "w-auto",
|
|
2450
2478
|
"data-cy": "total"
|
|
2451
|
-
},
|
|
2479
|
+
}, oa = /* @__PURE__ */ V({
|
|
2452
2480
|
__name: "ForgePaginationHeader",
|
|
2453
2481
|
props: {
|
|
2454
2482
|
total: {},
|
|
@@ -2457,28 +2485,28 @@ const Xt = {
|
|
|
2457
2485
|
},
|
|
2458
2486
|
emits: ["update:perPage"],
|
|
2459
2487
|
setup(e, { emit: t }) {
|
|
2460
|
-
const
|
|
2461
|
-
|
|
2462
|
-
}, n =
|
|
2463
|
-
const
|
|
2464
|
-
return `${
|
|
2488
|
+
const o = t, l = e, a = (d) => {
|
|
2489
|
+
o("update:perPage", d.value);
|
|
2490
|
+
}, n = k(() => {
|
|
2491
|
+
const d = Math.ceil(l.total / l.perPage);
|
|
2492
|
+
return `${d} ${Q(d, "page")}`;
|
|
2465
2493
|
});
|
|
2466
|
-
return (
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
f(
|
|
2470
|
-
options:
|
|
2471
|
-
"model-value":
|
|
2472
|
-
onChange:
|
|
2494
|
+
return (d, u) => (i(), y("div", Qt, [
|
|
2495
|
+
O(" Number of results per page "),
|
|
2496
|
+
m("div", ea, [
|
|
2497
|
+
f(p(ne), {
|
|
2498
|
+
options: l.pageSizes,
|
|
2499
|
+
"model-value": l.perPage,
|
|
2500
|
+
onChange: u[0] || (u[0] = (c) => a(c))
|
|
2473
2501
|
}, null, 8, ["options", "model-value"])
|
|
2474
2502
|
]),
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2503
|
+
l.total ? (i(), y("div", ta, [
|
|
2504
|
+
aa,
|
|
2505
|
+
m("span", la, w(l.total) + " " + w(p(Q)(l.total, "result")) + " across " + w(n.value), 1)
|
|
2478
2506
|
])) : S("", !0)
|
|
2479
2507
|
]));
|
|
2480
2508
|
}
|
|
2481
|
-
}),
|
|
2509
|
+
}), na = { class: "position-relative" }, sa = { "data-cy": "above-table-slot" }, ia = { class: "d-flex" }, ra = { class: "d-flex align-items-end mb-2" }, da = { key: 0 }, ua = { class: "ms-auto" }, ca = /* @__PURE__ */ m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), Fl = /* @__PURE__ */ V({
|
|
2482
2510
|
__name: "ForgeTable",
|
|
2483
2511
|
props: {
|
|
2484
2512
|
value: {},
|
|
@@ -2558,21 +2586,21 @@ const Xt = {
|
|
|
2558
2586
|
},
|
|
2559
2587
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
2560
2588
|
setup(e, { emit: t }) {
|
|
2561
|
-
const
|
|
2562
|
-
filters:
|
|
2563
|
-
perPage:
|
|
2589
|
+
const o = t, l = e, a = I(), n = I([10, 20, 50, 100]), d = I(20), u = I({
|
|
2590
|
+
filters: l.filters,
|
|
2591
|
+
perPage: d.value,
|
|
2564
2592
|
page: 0,
|
|
2565
2593
|
sortDirection: "None",
|
|
2566
2594
|
sortField: "",
|
|
2567
|
-
total:
|
|
2568
|
-
}),
|
|
2569
|
-
const g = Math.ceil(
|
|
2595
|
+
total: l.totalRecords ?? l.value.length
|
|
2596
|
+
}), c = k(() => l.totalRecords ?? l.value.length), r = k(() => {
|
|
2597
|
+
const g = Math.ceil(c.value / d.value);
|
|
2570
2598
|
return `${g} ${Q(g, "page")}`;
|
|
2571
|
-
}),
|
|
2599
|
+
}), s = k(() => ({
|
|
2572
2600
|
thead: () => ({
|
|
2573
2601
|
class: [
|
|
2574
2602
|
{
|
|
2575
|
-
"sticky-header":
|
|
2603
|
+
"sticky-header": l.stickyHeader
|
|
2576
2604
|
}
|
|
2577
2605
|
],
|
|
2578
2606
|
style: "position: "
|
|
@@ -2581,100 +2609,100 @@ const Xt = {
|
|
|
2581
2609
|
class: [
|
|
2582
2610
|
"spinner-border border-0",
|
|
2583
2611
|
{
|
|
2584
|
-
"text-brand":
|
|
2585
|
-
"text-primary":
|
|
2586
|
-
"text-success":
|
|
2587
|
-
"text-warning":
|
|
2588
|
-
"text-danger":
|
|
2589
|
-
"text-info":
|
|
2612
|
+
"text-brand": l.severity === "brand",
|
|
2613
|
+
"text-primary": l.severity === "primary",
|
|
2614
|
+
"text-success": l.severity === "success",
|
|
2615
|
+
"text-warning": l.severity === "warning",
|
|
2616
|
+
"text-danger": l.severity === "danger",
|
|
2617
|
+
"text-info": l.severity === "info"
|
|
2590
2618
|
}
|
|
2591
2619
|
]
|
|
2592
2620
|
})
|
|
2593
2621
|
})), v = () => {
|
|
2594
|
-
for (const g in
|
|
2595
|
-
typeof
|
|
2596
|
-
P(
|
|
2597
|
-
},
|
|
2598
|
-
|
|
2599
|
-
},
|
|
2600
|
-
var
|
|
2601
|
-
|
|
2622
|
+
for (const g in l.filters)
|
|
2623
|
+
typeof l.filters[g] == "string" ? l.filters[g] = "" : l.filters[g].value = null;
|
|
2624
|
+
P(l.filters);
|
|
2625
|
+
}, x = () => {
|
|
2626
|
+
a.value.exportCSV();
|
|
2627
|
+
}, F = (g) => {
|
|
2628
|
+
var $;
|
|
2629
|
+
u.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", u.value.sortField = (($ = g.sortField) == null ? void 0 : $.toString()) ?? "", o("update:tableContext", u.value), o("sort", g);
|
|
2602
2630
|
}, P = (g) => {
|
|
2603
|
-
|
|
2604
|
-
},
|
|
2605
|
-
|
|
2606
|
-
},
|
|
2607
|
-
|
|
2631
|
+
u.value.filters = g, o("update:tableContext", u.value), o("update:filters", g);
|
|
2632
|
+
}, M = (g) => {
|
|
2633
|
+
u.value.page = g.page, o("update:tableContext", u.value), o("page", g);
|
|
2634
|
+
}, z = () => {
|
|
2635
|
+
u.value.perPage = d.value, o("update:tableContext", u.value);
|
|
2608
2636
|
};
|
|
2609
|
-
return
|
|
2610
|
-
|
|
2611
|
-
}, { deep: !0 }), ae(() =>
|
|
2612
|
-
|
|
2613
|
-
|
|
2637
|
+
return re(() => l.filters, (g) => {
|
|
2638
|
+
u.value.filters = g, o("update:tableContext", u.value);
|
|
2639
|
+
}, { deep: !0 }), ae(() => o("update:tableContext", u.value)), (g, $) => (i(), y("div", na, [
|
|
2640
|
+
m("span", sa, [
|
|
2641
|
+
B(g.$slots, "above-table")
|
|
2614
2642
|
]),
|
|
2615
|
-
f(
|
|
2616
|
-
class: ["w-100", `${
|
|
2617
|
-
}, { ...
|
|
2618
|
-
pt:
|
|
2619
|
-
rows:
|
|
2620
|
-
"total-records":
|
|
2621
|
-
"filter-display":
|
|
2643
|
+
f(p(Oe), C({
|
|
2644
|
+
class: ["w-100", `${l.severity ? `forge-table-${l.severity}` : ""}`]
|
|
2645
|
+
}, { ...l, ...g.$attrs }, {
|
|
2646
|
+
pt: s.value,
|
|
2647
|
+
rows: d.value,
|
|
2648
|
+
"total-records": c.value,
|
|
2649
|
+
"filter-display": l.filters ? "row" : void 0,
|
|
2622
2650
|
ref_key: "forgeTable",
|
|
2623
|
-
ref:
|
|
2651
|
+
ref: a,
|
|
2624
2652
|
"data-cy": "table",
|
|
2625
2653
|
"onUpdate:filters": P,
|
|
2626
|
-
onSort:
|
|
2627
|
-
onPage:
|
|
2654
|
+
onSort: F,
|
|
2655
|
+
onPage: M
|
|
2628
2656
|
}), oe({
|
|
2629
2657
|
header: b(() => [
|
|
2630
|
-
|
|
2631
|
-
class:
|
|
2658
|
+
m("div", {
|
|
2659
|
+
class: _(l.loading ? "opacity-50" : "")
|
|
2632
2660
|
}, [
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
g.paginator && !g.legacyPaginationFooter ? (i(),
|
|
2636
|
-
f(
|
|
2637
|
-
total:
|
|
2661
|
+
m("div", ia, [
|
|
2662
|
+
m("div", ra, [
|
|
2663
|
+
g.paginator && !g.legacyPaginationFooter ? (i(), y("span", da, [
|
|
2664
|
+
f(oa, {
|
|
2665
|
+
total: c.value,
|
|
2638
2666
|
"page-sizes": n.value,
|
|
2639
|
-
"per-page":
|
|
2667
|
+
"per-page": d.value,
|
|
2640
2668
|
"onUpdate:perPage": [
|
|
2641
|
-
|
|
2642
|
-
|
|
2669
|
+
$[0] || ($[0] = (G) => d.value = G),
|
|
2670
|
+
z
|
|
2643
2671
|
]
|
|
2644
2672
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2645
2673
|
])) : S("", !0)
|
|
2646
2674
|
]),
|
|
2647
|
-
|
|
2648
|
-
g.showClearButton ? (i(),
|
|
2675
|
+
m("div", ua, [
|
|
2676
|
+
g.showClearButton ? (i(), h(p(L), {
|
|
2649
2677
|
key: 0,
|
|
2650
2678
|
outlined: "",
|
|
2651
|
-
class:
|
|
2679
|
+
class: _(g.showExporterButton ? "me-2" : ""),
|
|
2652
2680
|
onClick: v,
|
|
2653
2681
|
"data-cy": "clear-all"
|
|
2654
2682
|
}, {
|
|
2655
2683
|
default: b(() => [
|
|
2656
|
-
f(
|
|
2684
|
+
f(p(T), {
|
|
2657
2685
|
icon: "bi:funnel-fill",
|
|
2658
2686
|
width: "24",
|
|
2659
2687
|
height: "24"
|
|
2660
2688
|
}),
|
|
2661
|
-
|
|
2689
|
+
O(" Clear ")
|
|
2662
2690
|
]),
|
|
2663
2691
|
_: 1
|
|
2664
2692
|
}, 8, ["class"])) : S("", !0),
|
|
2665
|
-
g.showExporterButton ? (i(),
|
|
2693
|
+
g.showExporterButton ? (i(), h(p(L), {
|
|
2666
2694
|
key: 1,
|
|
2667
2695
|
outlined: "",
|
|
2668
|
-
onClick:
|
|
2696
|
+
onClick: x,
|
|
2669
2697
|
"data-cy": "exporter"
|
|
2670
2698
|
}, {
|
|
2671
2699
|
default: b(() => [
|
|
2672
|
-
f(
|
|
2700
|
+
f(p(T), {
|
|
2673
2701
|
icon: "typcn:export",
|
|
2674
2702
|
width: "24",
|
|
2675
2703
|
height: "24"
|
|
2676
2704
|
}),
|
|
2677
|
-
|
|
2705
|
+
O(" Export ")
|
|
2678
2706
|
]),
|
|
2679
2707
|
_: 1
|
|
2680
2708
|
})) : S("", !0)
|
|
@@ -2683,30 +2711,30 @@ const Xt = {
|
|
|
2683
2711
|
], 2)
|
|
2684
2712
|
]),
|
|
2685
2713
|
default: b(() => [
|
|
2686
|
-
|
|
2714
|
+
B(g.$slots, "default")
|
|
2687
2715
|
]),
|
|
2688
2716
|
_: 2
|
|
2689
2717
|
}, [
|
|
2690
|
-
|
|
2718
|
+
q(g.$slots, (G, Z) => ({
|
|
2691
2719
|
name: Z,
|
|
2692
|
-
fn: b((
|
|
2693
|
-
|
|
2720
|
+
fn: b((ie) => [
|
|
2721
|
+
B(g.$slots, Z, ee(te(ie || {})))
|
|
2694
2722
|
])
|
|
2695
2723
|
})),
|
|
2696
2724
|
g.legacyPaginationFooter ? {
|
|
2697
2725
|
name: "paginatorstart",
|
|
2698
2726
|
fn: b(() => [
|
|
2699
|
-
|
|
2700
|
-
class:
|
|
2727
|
+
m("span", {
|
|
2728
|
+
class: _(["d-flex", l.loading ? "opacity-50" : ""]),
|
|
2701
2729
|
"data-cy": "legacy-page-size"
|
|
2702
2730
|
}, [
|
|
2703
|
-
|
|
2704
|
-
f(
|
|
2731
|
+
ca,
|
|
2732
|
+
f(p(ne), {
|
|
2705
2733
|
options: n.value,
|
|
2706
|
-
modelValue:
|
|
2707
|
-
"onUpdate:modelValue":
|
|
2734
|
+
modelValue: d.value,
|
|
2735
|
+
"onUpdate:modelValue": $[1] || ($[1] = (G) => d.value = G),
|
|
2708
2736
|
class: "ms-2",
|
|
2709
|
-
onClick:
|
|
2737
|
+
onClick: z
|
|
2710
2738
|
}, null, 8, ["options", "modelValue"])
|
|
2711
2739
|
], 2)
|
|
2712
2740
|
]),
|
|
@@ -2715,64 +2743,81 @@ const Xt = {
|
|
|
2715
2743
|
g.legacyPaginationFooter ? {
|
|
2716
2744
|
name: "paginatorend",
|
|
2717
2745
|
fn: b(() => [
|
|
2718
|
-
|
|
2746
|
+
m("span", {
|
|
2719
2747
|
"data-cy": "legacy-total",
|
|
2720
|
-
class:
|
|
2721
|
-
},
|
|
2748
|
+
class: _(l.loading ? "opacity-50" : "")
|
|
2749
|
+
}, w(c.value) + " " + w(p(Q)(c.value, "result")) + " across " + w(r.value), 3)
|
|
2722
2750
|
]),
|
|
2723
2751
|
key: "1"
|
|
2724
2752
|
} : void 0
|
|
2725
2753
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
2726
2754
|
]));
|
|
2727
2755
|
}
|
|
2728
|
-
}),
|
|
2756
|
+
}), ma = { class: "d-flex position-relative" }, pa = { class: "d-flex w-100" }, va = { class: "d-flex w-100" }, _l = /* @__PURE__ */ V({
|
|
2729
2757
|
__name: "ForgeFilterHeader",
|
|
2730
|
-
props: /* @__PURE__ */
|
|
2758
|
+
props: /* @__PURE__ */ j({
|
|
2731
2759
|
dataType: {},
|
|
2732
2760
|
dropdownOptions: {},
|
|
2733
2761
|
showClearButton: { type: Boolean, default: !1 },
|
|
2734
|
-
clearFilter: { type: Function }
|
|
2762
|
+
clearFilter: { type: Function },
|
|
2763
|
+
optionLabel: {},
|
|
2764
|
+
optionValue: {}
|
|
2735
2765
|
}, {
|
|
2736
2766
|
modelValue: { required: !0 },
|
|
2737
2767
|
modelModifiers: {}
|
|
2738
2768
|
}),
|
|
2739
2769
|
emits: ["update:modelValue"],
|
|
2740
2770
|
setup(e) {
|
|
2741
|
-
const t = E(e, "modelValue"),
|
|
2771
|
+
const t = E(e, "modelValue"), o = (a, n) => {
|
|
2772
|
+
if (!a || Array.isArray(a) && a.length === 0)
|
|
2773
|
+
return n;
|
|
2774
|
+
const d = (u) => {
|
|
2775
|
+
var r;
|
|
2776
|
+
const c = (r = e.dropdownOptions) == null ? void 0 : r.find(
|
|
2777
|
+
(s) => e.optionValue ? s[e.optionValue] === u : Object.keys(s).every((v) => u.hasOwnProperty(v) && s[v] === u[v])
|
|
2778
|
+
);
|
|
2779
|
+
return e.optionLabel ? c[e.optionLabel] : c;
|
|
2780
|
+
};
|
|
2781
|
+
return Array.isArray(a) ? a.map(d).join(", ") : typeof a == "object" ? d(a) : a;
|
|
2782
|
+
}, l = () => {
|
|
2742
2783
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
2743
2784
|
};
|
|
2744
|
-
return (a,
|
|
2745
|
-
const
|
|
2746
|
-
return i(),
|
|
2747
|
-
a.dataType === "numeric" ? (i(),
|
|
2785
|
+
return (a, n) => {
|
|
2786
|
+
const d = me, u = L;
|
|
2787
|
+
return i(), y("div", ma, [
|
|
2788
|
+
a.dataType === "numeric" ? (i(), h(d, C({
|
|
2748
2789
|
key: 0,
|
|
2749
2790
|
modelValue: t.value,
|
|
2750
|
-
"onUpdate:modelValue":
|
|
2751
|
-
}, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(),
|
|
2791
|
+
"onUpdate:modelValue": n[0] || (n[0] = (c) => t.value = c)
|
|
2792
|
+
}, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(), h(fe, C({
|
|
2752
2793
|
key: 1,
|
|
2753
2794
|
modelValue: t.value,
|
|
2754
|
-
"onUpdate:modelValue":
|
|
2795
|
+
"onUpdate:modelValue": n[1] || (n[1] = (c) => t.value = c)
|
|
2755
2796
|
}, a.$attrs, {
|
|
2756
2797
|
"show-icon": !1,
|
|
2757
2798
|
"show-on-focus": !0
|
|
2758
|
-
}), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(),
|
|
2799
|
+
}), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), h(p(ne), C({
|
|
2759
2800
|
key: 2,
|
|
2760
2801
|
modelValue: t.value,
|
|
2761
|
-
"onUpdate:modelValue":
|
|
2762
|
-
}, a.$attrs, {
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2802
|
+
"onUpdate:modelValue": n[2] || (n[2] = (c) => t.value = c)
|
|
2803
|
+
}, a.$attrs, {
|
|
2804
|
+
options: a.dropdownOptions,
|
|
2805
|
+
"option-value": a.optionValue,
|
|
2806
|
+
"option-label": a.optionLabel
|
|
2807
|
+
}), {
|
|
2808
|
+
value: b(({ value: c, placeholder: r }) => [
|
|
2809
|
+
m("div", pa, [
|
|
2810
|
+
m("span", {
|
|
2811
|
+
class: _({ "filter-placeholder": c === null })
|
|
2812
|
+
}, w(o(c, r)), 3),
|
|
2813
|
+
a.showClearButton && t.value !== null ? (i(), h(u, {
|
|
2769
2814
|
key: 0,
|
|
2770
|
-
onClick:
|
|
2815
|
+
onClick: Y(l, ["prevent"]),
|
|
2771
2816
|
size: "small",
|
|
2772
2817
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2773
2818
|
}, {
|
|
2774
2819
|
default: b(() => [
|
|
2775
|
-
f(
|
|
2820
|
+
f(p(T), {
|
|
2776
2821
|
icon: "bi:x",
|
|
2777
2822
|
width: "1rem",
|
|
2778
2823
|
height: "1rem",
|
|
@@ -2784,28 +2829,30 @@ const Xt = {
|
|
|
2784
2829
|
])
|
|
2785
2830
|
]),
|
|
2786
2831
|
_: 1
|
|
2787
|
-
}, 16, ["modelValue", "options"])) : a.dataType === "multiselect" ? (i(),
|
|
2832
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (i(), h(p(De), C({
|
|
2788
2833
|
key: 3,
|
|
2789
2834
|
modelValue: t.value,
|
|
2790
|
-
"onUpdate:modelValue":
|
|
2835
|
+
"onUpdate:modelValue": n[3] || (n[3] = (c) => t.value = c)
|
|
2791
2836
|
}, a.$attrs, {
|
|
2792
2837
|
options: a.dropdownOptions,
|
|
2793
2838
|
showToggleAll: !1,
|
|
2839
|
+
"option-label": a.optionLabel,
|
|
2840
|
+
"option-value": a.optionValue,
|
|
2794
2841
|
filter: ""
|
|
2795
2842
|
}), {
|
|
2796
|
-
value: b(({ value:
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
class:
|
|
2800
|
-
},
|
|
2801
|
-
a.showClearButton && (
|
|
2843
|
+
value: b(({ value: c, placeholder: r }) => [
|
|
2844
|
+
m("div", va, [
|
|
2845
|
+
m("span", {
|
|
2846
|
+
class: _({ "filter-placeholder": (c == null ? void 0 : c.length) === 0 || c === null })
|
|
2847
|
+
}, w(o(c, r)), 3),
|
|
2848
|
+
a.showClearButton && (c == null ? void 0 : c.length) > 0 ? (i(), h(u, {
|
|
2802
2849
|
key: 0,
|
|
2803
|
-
onClick:
|
|
2850
|
+
onClick: Y(l, ["prevent"]),
|
|
2804
2851
|
size: "small",
|
|
2805
2852
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2806
2853
|
}, {
|
|
2807
2854
|
default: b(() => [
|
|
2808
|
-
f(
|
|
2855
|
+
f(p(T), {
|
|
2809
2856
|
icon: "bi:x",
|
|
2810
2857
|
width: "1rem",
|
|
2811
2858
|
height: "1rem",
|
|
@@ -2817,19 +2864,19 @@ const Xt = {
|
|
|
2817
2864
|
])
|
|
2818
2865
|
]),
|
|
2819
2866
|
_: 1
|
|
2820
|
-
}, 16, ["modelValue", "options"])) : (i(),
|
|
2867
|
+
}, 16, ["modelValue", "options", "option-label", "option-value"])) : (i(), h(p(de), C({
|
|
2821
2868
|
key: 4,
|
|
2822
2869
|
modelValue: t.value,
|
|
2823
|
-
"onUpdate:modelValue":
|
|
2870
|
+
"onUpdate:modelValue": n[4] || (n[4] = (c) => t.value = c)
|
|
2824
2871
|
}, a.$attrs), null, 16, ["modelValue"])),
|
|
2825
|
-
a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(),
|
|
2872
|
+
a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), h(u, {
|
|
2826
2873
|
key: 5,
|
|
2827
|
-
onClick:
|
|
2874
|
+
onClick: Y(l, ["prevent"]),
|
|
2828
2875
|
size: "small",
|
|
2829
2876
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
2830
2877
|
}, {
|
|
2831
2878
|
default: b(() => [
|
|
2832
|
-
f(
|
|
2879
|
+
f(p(T), {
|
|
2833
2880
|
icon: "bi:x",
|
|
2834
2881
|
width: "1rem",
|
|
2835
2882
|
height: "1rem",
|
|
@@ -2842,50 +2889,50 @@ const Xt = {
|
|
|
2842
2889
|
};
|
|
2843
2890
|
}
|
|
2844
2891
|
});
|
|
2845
|
-
function
|
|
2846
|
-
const
|
|
2892
|
+
function ge(e, t, o, l) {
|
|
2893
|
+
const a = t.flatMap((n) => n.file);
|
|
2847
2894
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2848
|
-
const
|
|
2849
|
-
let
|
|
2850
|
-
|
|
2895
|
+
const d = a.findIndex((c) => c.name === n.name);
|
|
2896
|
+
let u = "Not Uploaded";
|
|
2897
|
+
d === -1 ? ((!o.includes(n.type) || !(n.size <= l)) && (u = o.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2851
2898
|
file: n,
|
|
2852
|
-
status:
|
|
2899
|
+
status: u,
|
|
2853
2900
|
blobFileName: null
|
|
2854
|
-
})) : t[
|
|
2901
|
+
})) : t[d].status = "Duplicate";
|
|
2855
2902
|
}), t;
|
|
2856
2903
|
}
|
|
2857
2904
|
async function ya(e, t) {
|
|
2858
2905
|
if (e === "Uploaded" && t !== null)
|
|
2859
2906
|
try {
|
|
2860
2907
|
await new pe(t).delete();
|
|
2861
|
-
} catch (
|
|
2862
|
-
if (
|
|
2908
|
+
} catch (o) {
|
|
2909
|
+
if (o !== "BlobNotFound") {
|
|
2863
2910
|
e = "DeleteFileFailed";
|
|
2864
2911
|
return;
|
|
2865
2912
|
}
|
|
2866
2913
|
}
|
|
2867
2914
|
}
|
|
2868
|
-
function ue(e, t = !0,
|
|
2869
|
-
const
|
|
2870
|
-
if (Math.abs(e) <
|
|
2915
|
+
function ue(e, t = !0, o = 1) {
|
|
2916
|
+
const l = t ? 1e3 : 1024;
|
|
2917
|
+
if (Math.abs(e) < l)
|
|
2871
2918
|
return e + " B";
|
|
2872
|
-
const
|
|
2919
|
+
const a = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
2873
2920
|
let n = -1;
|
|
2874
|
-
const
|
|
2921
|
+
const d = 10 ** o;
|
|
2875
2922
|
do
|
|
2876
|
-
e /=
|
|
2877
|
-
while (Math.round(Math.abs(e) *
|
|
2878
|
-
return e.toFixed(
|
|
2923
|
+
e /= l, ++n;
|
|
2924
|
+
while (Math.round(Math.abs(e) * d) / d >= l && n < a.length - 1);
|
|
2925
|
+
return e.toFixed(o) + " " + a[n];
|
|
2879
2926
|
}
|
|
2880
|
-
function
|
|
2927
|
+
function ba(e) {
|
|
2881
2928
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
2882
2929
|
}
|
|
2883
|
-
function
|
|
2930
|
+
function fa(e) {
|
|
2884
2931
|
return URL.createObjectURL(e);
|
|
2885
2932
|
}
|
|
2886
|
-
const
|
|
2933
|
+
const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disabled", "multiple"], wa = /* @__PURE__ */ V({
|
|
2887
2934
|
__name: "UploadButton",
|
|
2888
|
-
props: /* @__PURE__ */
|
|
2935
|
+
props: /* @__PURE__ */ j({
|
|
2889
2936
|
acceptedFileTypes: {},
|
|
2890
2937
|
maxFileInput: {},
|
|
2891
2938
|
showDragDropArea: { type: Boolean }
|
|
@@ -2895,54 +2942,54 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
2895
2942
|
}),
|
|
2896
2943
|
emits: ["update:modelValue"],
|
|
2897
2944
|
setup(e) {
|
|
2898
|
-
const t = E(e, "modelValue"),
|
|
2899
|
-
t.value =
|
|
2945
|
+
const t = E(e, "modelValue"), o = k(() => e.maxFileInput <= t.value.length), l = (a) => {
|
|
2946
|
+
t.value = ge(a, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2900
2947
|
};
|
|
2901
|
-
return (
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2948
|
+
return (a, n) => (i(), y("div", ga, [
|
|
2949
|
+
B(a.$slots, "message"),
|
|
2950
|
+
m("div", null, [
|
|
2951
|
+
m("input", {
|
|
2905
2952
|
id: "file-input",
|
|
2906
2953
|
type: "file",
|
|
2907
2954
|
class: "d-none",
|
|
2908
|
-
accept:
|
|
2909
|
-
disabled:
|
|
2910
|
-
multiple:
|
|
2911
|
-
onInput: n[0] || (n[0] = (
|
|
2912
|
-
}, null, 40,
|
|
2913
|
-
|
|
2914
|
-
class:
|
|
2955
|
+
accept: a.acceptedFileTypes.join(", "),
|
|
2956
|
+
disabled: o.value,
|
|
2957
|
+
multiple: a.maxFileInput > 1,
|
|
2958
|
+
onInput: n[0] || (n[0] = (d) => l([...d.target.files]))
|
|
2959
|
+
}, null, 40, ha),
|
|
2960
|
+
m("label", {
|
|
2961
|
+
class: _([{ disabled: o.value }, "btn btn-primary"]),
|
|
2915
2962
|
id: "file-input-button",
|
|
2916
2963
|
for: "file-input"
|
|
2917
2964
|
}, [
|
|
2918
|
-
|
|
2919
|
-
f(
|
|
2965
|
+
B(a.$slots, "button-content", {}, () => [
|
|
2966
|
+
f(p(T), {
|
|
2920
2967
|
icon: "bi:upload",
|
|
2921
2968
|
class: "me-2",
|
|
2922
2969
|
height: "20px",
|
|
2923
2970
|
width: "20px"
|
|
2924
2971
|
}),
|
|
2925
|
-
|
|
2972
|
+
O(" Browse your computer ")
|
|
2926
2973
|
])
|
|
2927
2974
|
], 2)
|
|
2928
2975
|
]),
|
|
2929
|
-
|
|
2976
|
+
a.showDragDropArea ? (i(), y("div", {
|
|
2930
2977
|
class: "ms-auto",
|
|
2931
|
-
key:
|
|
2978
|
+
key: a.acceptedFileTypes.length,
|
|
2932
2979
|
id: "accepted-file-types"
|
|
2933
|
-
}, "Accepted File Types: " +
|
|
2980
|
+
}, "Accepted File Types: " + w(a.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
|
|
2934
2981
|
]));
|
|
2935
2982
|
}
|
|
2936
|
-
}),
|
|
2983
|
+
}), xa = {
|
|
2937
2984
|
key: 0,
|
|
2938
2985
|
class: "py-4 px-3",
|
|
2939
2986
|
id: "placeholder-message"
|
|
2940
|
-
},
|
|
2987
|
+
}, ka = {
|
|
2941
2988
|
key: 1,
|
|
2942
2989
|
class: "d-flex flex-column"
|
|
2943
|
-
},
|
|
2990
|
+
}, $a = /* @__PURE__ */ V({
|
|
2944
2991
|
__name: "DragDropArea",
|
|
2945
|
-
props: /* @__PURE__ */
|
|
2992
|
+
props: /* @__PURE__ */ j({
|
|
2946
2993
|
maxFileInput: {},
|
|
2947
2994
|
maxFileSize: {},
|
|
2948
2995
|
acceptedFileTypes: {}
|
|
@@ -2952,30 +2999,30 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
2952
2999
|
}),
|
|
2953
3000
|
emits: ["update:modelValue"],
|
|
2954
3001
|
setup(e) {
|
|
2955
|
-
const t = E(e, "modelValue"),
|
|
2956
|
-
|
|
3002
|
+
const t = E(e, "modelValue"), o = I(!1), l = k(() => e.maxFileInput <= t.value.length), a = (n) => {
|
|
3003
|
+
o.value = !1, n.dataTransfer.files.length > e.maxFileInput || l.value ? n.preventDefault() : t.value = ge([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
|
|
2957
3004
|
};
|
|
2958
|
-
return (n,
|
|
3005
|
+
return (n, d) => (i(), y("div", {
|
|
2959
3006
|
id: "drag-drop-area",
|
|
2960
|
-
class:
|
|
2961
|
-
onDragleave:
|
|
2962
|
-
onDragover:
|
|
2963
|
-
onDrop:
|
|
3007
|
+
class: _(`${o.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
3008
|
+
onDragleave: d[0] || (d[0] = Y((u) => o.value = !1, ["prevent"])),
|
|
3009
|
+
onDragover: d[1] || (d[1] = Y((u) => o.value = !0, ["prevent"])),
|
|
3010
|
+
onDrop: Y(a, ["prevent"])
|
|
2964
3011
|
}, [
|
|
2965
|
-
t.value.length === 0 ? (i(),
|
|
2966
|
-
f(
|
|
3012
|
+
t.value.length === 0 ? (i(), y("div", xa, [
|
|
3013
|
+
f(p(T), {
|
|
2967
3014
|
icon: "bi:upload",
|
|
2968
3015
|
class: "me-2",
|
|
2969
3016
|
height: "20px",
|
|
2970
3017
|
width: "20px"
|
|
2971
3018
|
}),
|
|
2972
|
-
|
|
2973
|
-
])) : (i(),
|
|
2974
|
-
|
|
3019
|
+
O(" Drag and drop files here ")
|
|
3020
|
+
])) : (i(), y("div", ka, [
|
|
3021
|
+
B(n.$slots, "default")
|
|
2975
3022
|
]))
|
|
2976
3023
|
], 34));
|
|
2977
3024
|
}
|
|
2978
|
-
}),
|
|
3025
|
+
}), Ba = { class: "d-flex align-items-center me-2" }, Fa = /* @__PURE__ */ V({
|
|
2979
3026
|
__name: "UploadStatus",
|
|
2980
3027
|
props: {
|
|
2981
3028
|
fileSize: {},
|
|
@@ -2984,7 +3031,7 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
2984
3031
|
uploadStatus: {}
|
|
2985
3032
|
},
|
|
2986
3033
|
setup(e) {
|
|
2987
|
-
const t =
|
|
3034
|
+
const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), o = k(() => {
|
|
2988
3035
|
switch (e.uploadStatus) {
|
|
2989
3036
|
case "InvalidFileType":
|
|
2990
3037
|
return "Upload Failed: File type is not accepted.";
|
|
@@ -3000,43 +3047,43 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
3000
3047
|
return "Upload Failed: Connection error, please try again.";
|
|
3001
3048
|
}
|
|
3002
3049
|
});
|
|
3003
|
-
return (
|
|
3004
|
-
|
|
3050
|
+
return (l, a) => (i(), y("div", Ba, [
|
|
3051
|
+
l.uploadStatus === "Uploading" ? (i(), h(Gt, {
|
|
3005
3052
|
key: 0,
|
|
3006
3053
|
pixelWidth: 200,
|
|
3007
3054
|
animate: "",
|
|
3008
3055
|
striped: ""
|
|
3009
3056
|
}, {
|
|
3010
3057
|
default: b(() => [
|
|
3011
|
-
|
|
3058
|
+
O(w((l.bytesUploaded / l.fileSize * 100).toFixed(0)) + "%", 1)
|
|
3012
3059
|
]),
|
|
3013
3060
|
_: 1
|
|
3014
3061
|
})) : S("", !0),
|
|
3015
|
-
|
|
3062
|
+
l.uploadStatus !== "Uploading" && l.uploadStatus !== "Not Uploaded" && l.uploadStatus !== "Uploaded" && l.uploadStatus !== "Preparing" ? (i(), h(se, {
|
|
3016
3063
|
key: 1,
|
|
3017
3064
|
id: "upload-status-alert",
|
|
3018
3065
|
severity: t.value,
|
|
3019
3066
|
class: "mb-0 w-75 ms-auto"
|
|
3020
3067
|
}, {
|
|
3021
3068
|
default: b(() => [
|
|
3022
|
-
|
|
3069
|
+
O(w(o.value), 1)
|
|
3023
3070
|
]),
|
|
3024
3071
|
_: 1
|
|
3025
3072
|
}, 8, ["severity"])) : S("", !0)
|
|
3026
3073
|
]));
|
|
3027
3074
|
}
|
|
3028
|
-
}), _a = ["data-cy"],
|
|
3075
|
+
}), _a = ["data-cy"], Va = { class: "ms-3 d-flex flex-column" }, Sa = {
|
|
3029
3076
|
key: 1,
|
|
3030
3077
|
id: "file-name"
|
|
3031
|
-
},
|
|
3078
|
+
}, Ca = {
|
|
3032
3079
|
class: "text-black-50",
|
|
3033
3080
|
id: "file-type"
|
|
3034
|
-
},
|
|
3081
|
+
}, Ta = {
|
|
3035
3082
|
class: "text-black-50",
|
|
3036
3083
|
id: "file-size"
|
|
3037
|
-
},
|
|
3084
|
+
}, Pa = { class: "ms-auto my-auto d-flex" }, Ma = /* @__PURE__ */ V({
|
|
3038
3085
|
__name: "FileInfo",
|
|
3039
|
-
props: /* @__PURE__ */
|
|
3086
|
+
props: /* @__PURE__ */ j({
|
|
3040
3087
|
editableFileName: { type: Boolean },
|
|
3041
3088
|
acceptedFileTypes: {},
|
|
3042
3089
|
maxFileSize: {},
|
|
@@ -3051,57 +3098,57 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
3051
3098
|
uploadStatus: { required: !0 },
|
|
3052
3099
|
uploadStatusModifiers: {}
|
|
3053
3100
|
}),
|
|
3054
|
-
emits: /* @__PURE__ */
|
|
3101
|
+
emits: /* @__PURE__ */ j(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
3055
3102
|
setup(e, { emit: t }) {
|
|
3056
|
-
const
|
|
3057
|
-
|
|
3058
|
-
},
|
|
3059
|
-
if (!
|
|
3060
|
-
|
|
3103
|
+
const o = E(e, "file"), l = E(e, "blobFileName"), a = E(e, "uploadStatus"), n = t, d = I(o.value.name), u = I(""), c = I(0), r = I(), s = k(() => e.acceptedFileTypes.includes(o.value.type)), v = k(() => o.value.size <= e.maxFileSize), x = () => {
|
|
3104
|
+
o.value = new File([o.value], d.value, { type: o.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
3105
|
+
}, F = async () => {
|
|
3106
|
+
if (!s.value || !v.value) {
|
|
3107
|
+
a.value = s.value ? "InvalidFileSize" : "InvalidFileType";
|
|
3061
3108
|
return;
|
|
3062
3109
|
}
|
|
3063
|
-
|
|
3064
|
-
const [
|
|
3065
|
-
if (!
|
|
3066
|
-
|
|
3110
|
+
a.value = "Preparing", r.value = new AbortController();
|
|
3111
|
+
const [M, z] = await e.getFileUrlAction(o.value.name);
|
|
3112
|
+
if (!M) {
|
|
3113
|
+
a.value = "Failed";
|
|
3067
3114
|
return;
|
|
3068
3115
|
}
|
|
3069
3116
|
try {
|
|
3070
|
-
|
|
3071
|
-
const g = new pe(
|
|
3072
|
-
abortSignal:
|
|
3073
|
-
onProgress: (
|
|
3117
|
+
a.value = "Uploading";
|
|
3118
|
+
const g = new pe(M), $ = {
|
|
3119
|
+
abortSignal: r.value.signal,
|
|
3120
|
+
onProgress: (G) => c.value = G.loadedBytes,
|
|
3074
3121
|
tags: { temp: "true" }
|
|
3075
3122
|
};
|
|
3076
|
-
await g.uploadData(
|
|
3123
|
+
await g.uploadData(o.value, $), u.value = M, a.value = "Uploaded", l.value = z;
|
|
3077
3124
|
} catch (g) {
|
|
3078
3125
|
if (g.name === "AbortError") {
|
|
3079
|
-
|
|
3126
|
+
a.value = "Aborted";
|
|
3080
3127
|
return;
|
|
3081
3128
|
}
|
|
3082
|
-
|
|
3129
|
+
a.value = "Failed";
|
|
3083
3130
|
}
|
|
3084
3131
|
}, P = async () => {
|
|
3085
|
-
await ya(
|
|
3132
|
+
await ya(a.value, u.value), n("deleted", o.value);
|
|
3086
3133
|
};
|
|
3087
3134
|
return ae(() => {
|
|
3088
|
-
e.autoUploadToBlob &&
|
|
3089
|
-
}), (
|
|
3090
|
-
const g =
|
|
3091
|
-
return i(),
|
|
3135
|
+
e.autoUploadToBlob && F();
|
|
3136
|
+
}), (M, z) => {
|
|
3137
|
+
const g = L;
|
|
3138
|
+
return i(), y("div", {
|
|
3092
3139
|
class: "py-4 px-3 d-flex",
|
|
3093
|
-
"data-cy": `file-info-${
|
|
3140
|
+
"data-cy": `file-info-${o.value.name}`
|
|
3094
3141
|
}, [
|
|
3095
|
-
|
|
3096
|
-
|
|
3142
|
+
m("div", null, [
|
|
3143
|
+
p(ba)(o.value.type) ? (i(), h(p(Ue), {
|
|
3097
3144
|
key: 0,
|
|
3098
3145
|
id: "thumbnail-image",
|
|
3099
3146
|
"image-class": "image-file-thumbnail border",
|
|
3100
|
-
src:
|
|
3101
|
-
alt:
|
|
3147
|
+
src: p(fa)(o.value),
|
|
3148
|
+
alt: o.value.name,
|
|
3102
3149
|
width: "75px",
|
|
3103
3150
|
preview: ""
|
|
3104
|
-
}, null, 8, ["src", "alt"])) : (i(),
|
|
3151
|
+
}, null, 8, ["src", "alt"])) : (i(), h(p(T), {
|
|
3105
3152
|
key: 1,
|
|
3106
3153
|
id: "file-earmark",
|
|
3107
3154
|
icon: "bi:file-earmark",
|
|
@@ -3109,58 +3156,58 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
3109
3156
|
width: "75px"
|
|
3110
3157
|
}))
|
|
3111
3158
|
]),
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3159
|
+
m("div", Va, [
|
|
3160
|
+
m("div", null, [
|
|
3161
|
+
M.editableFileName ? (i(), h(Bt, {
|
|
3115
3162
|
key: 0,
|
|
3116
3163
|
id: "edit-file-name",
|
|
3117
|
-
modelValue:
|
|
3118
|
-
"onUpdate:modelValue":
|
|
3119
|
-
rules:
|
|
3120
|
-
name:
|
|
3121
|
-
"complete-action":
|
|
3122
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (i(),
|
|
3164
|
+
modelValue: d.value,
|
|
3165
|
+
"onUpdate:modelValue": z[0] || (z[0] = ($) => d.value = $),
|
|
3166
|
+
rules: M.customFileNameRules,
|
|
3167
|
+
name: o.value.name,
|
|
3168
|
+
"complete-action": x
|
|
3169
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span", Sa, w(o.value.name), 1))
|
|
3123
3170
|
]),
|
|
3124
|
-
|
|
3125
|
-
|
|
3171
|
+
m("span", Ca, "File type: " + w(o.value.type.split("/").pop()), 1),
|
|
3172
|
+
m("span", Ta, "File size: " + w(p(ue)(o.value.size)), 1)
|
|
3126
3173
|
]),
|
|
3127
|
-
|
|
3128
|
-
(i(),
|
|
3129
|
-
key:
|
|
3130
|
-
"file-size":
|
|
3131
|
-
"upload-status":
|
|
3132
|
-
"bytes-uploaded":
|
|
3133
|
-
"max-file-size":
|
|
3174
|
+
m("div", Pa, [
|
|
3175
|
+
(i(), h(Fa, {
|
|
3176
|
+
key: a.value,
|
|
3177
|
+
"file-size": o.value.size,
|
|
3178
|
+
"upload-status": a.value,
|
|
3179
|
+
"bytes-uploaded": c.value,
|
|
3180
|
+
"max-file-size": M.maxFileSize
|
|
3134
3181
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
3135
|
-
|
|
3182
|
+
a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (i(), h(g, {
|
|
3136
3183
|
key: 0,
|
|
3137
3184
|
link: "",
|
|
3138
|
-
onClick:
|
|
3185
|
+
onClick: F
|
|
3139
3186
|
}, {
|
|
3140
3187
|
default: b(() => [
|
|
3141
|
-
f(
|
|
3142
|
-
icon:
|
|
3188
|
+
f(p(T), {
|
|
3189
|
+
icon: a.value === "Not Uploaded" || a.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
3143
3190
|
}, null, 8, ["icon"])
|
|
3144
3191
|
]),
|
|
3145
3192
|
_: 1
|
|
3146
3193
|
})) : S("", !0),
|
|
3147
|
-
|
|
3194
|
+
a.value === "Uploading" ? (i(), h(g, {
|
|
3148
3195
|
key: 1,
|
|
3149
3196
|
link: "",
|
|
3150
|
-
onClick:
|
|
3197
|
+
onClick: z[1] || (z[1] = ($) => r.value.value.abort())
|
|
3151
3198
|
}, {
|
|
3152
3199
|
default: b(() => [
|
|
3153
|
-
f(
|
|
3200
|
+
f(p(T), { icon: "bi:x-circle-fill" })
|
|
3154
3201
|
]),
|
|
3155
3202
|
_: 1
|
|
3156
|
-
})) : (i(),
|
|
3203
|
+
})) : (i(), h(g, {
|
|
3157
3204
|
key: 2,
|
|
3158
3205
|
link: "",
|
|
3159
3206
|
onClick: P,
|
|
3160
3207
|
id: "delete-button"
|
|
3161
3208
|
}, {
|
|
3162
3209
|
default: b(() => [
|
|
3163
|
-
f(
|
|
3210
|
+
f(p(T), { icon: "bi:trash" })
|
|
3164
3211
|
]),
|
|
3165
3212
|
_: 1
|
|
3166
3213
|
}))
|
|
@@ -3168,19 +3215,19 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
3168
3215
|
], 8, _a);
|
|
3169
3216
|
};
|
|
3170
3217
|
}
|
|
3171
|
-
}), Ia = { class: "d-flex justify-content-end mt-1" },
|
|
3218
|
+
}), Ia = { class: "d-flex justify-content-end mt-1" }, za = { id: "max-file-size" }, Oa = /* @__PURE__ */ V({
|
|
3172
3219
|
__name: "MaxFileSize",
|
|
3173
3220
|
props: {
|
|
3174
3221
|
maxFileSize: {}
|
|
3175
3222
|
},
|
|
3176
3223
|
setup(e) {
|
|
3177
|
-
return (t,
|
|
3178
|
-
|
|
3224
|
+
return (t, o) => (i(), y("div", Ia, [
|
|
3225
|
+
m("div", za, "Max file size: " + w(p(ue)(t.maxFileSize)), 1)
|
|
3179
3226
|
]));
|
|
3180
3227
|
}
|
|
3181
|
-
}),
|
|
3228
|
+
}), Da = { "data-cy": "file-uploader" }, Ua = { key: 0 }, Vl = /* @__PURE__ */ V({
|
|
3182
3229
|
__name: "ForgeFileUploader",
|
|
3183
|
-
props: /* @__PURE__ */
|
|
3230
|
+
props: /* @__PURE__ */ j({
|
|
3184
3231
|
acceptedFileTypes: {},
|
|
3185
3232
|
maxFileSize: {},
|
|
3186
3233
|
getFileUrlAction: {},
|
|
@@ -3195,69 +3242,69 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
|
|
|
3195
3242
|
}),
|
|
3196
3243
|
emits: ["update:modelValue"],
|
|
3197
3244
|
setup(e) {
|
|
3198
|
-
const t = E(e, "modelValue"),
|
|
3199
|
-
t.value = t.value.filter((n) => n.file !=
|
|
3245
|
+
const t = E(e, "modelValue"), o = e, l = (a) => {
|
|
3246
|
+
t.value = t.value.filter((n) => n.file != a);
|
|
3200
3247
|
};
|
|
3201
|
-
return (
|
|
3202
|
-
f(
|
|
3248
|
+
return (a, n) => (i(), y("div", Da, [
|
|
3249
|
+
f(wa, C(o, {
|
|
3203
3250
|
modelValue: t.value,
|
|
3204
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3251
|
+
"onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
|
|
3205
3252
|
}), null, 16, ["modelValue"]),
|
|
3206
|
-
|
|
3207
|
-
f(
|
|
3208
|
-
"max-file-input":
|
|
3209
|
-
"max-file-size":
|
|
3210
|
-
"accepted-file-types":
|
|
3253
|
+
a.showDragDropArea ? (i(), y("div", Ua, [
|
|
3254
|
+
f($a, {
|
|
3255
|
+
"max-file-input": o.maxFileInput,
|
|
3256
|
+
"max-file-size": o.maxFileSize,
|
|
3257
|
+
"accepted-file-types": o.acceptedFileTypes,
|
|
3211
3258
|
modelValue: t.value,
|
|
3212
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
3259
|
+
"onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
|
|
3213
3260
|
}, {
|
|
3214
3261
|
default: b(() => [
|
|
3215
|
-
(i(!0),
|
|
3216
|
-
(i(),
|
|
3217
|
-
key:
|
|
3218
|
-
class:
|
|
3219
|
-
file: t.value[
|
|
3220
|
-
"onUpdate:file": (
|
|
3221
|
-
"blob-file-name": t.value[
|
|
3222
|
-
"onUpdate:blobFileName": (
|
|
3223
|
-
"upload-status": t.value[
|
|
3224
|
-
"onUpdate:uploadStatus": (
|
|
3262
|
+
(i(!0), y(N, null, q(t.value, ({ file: d }, u) => (i(), y("span", null, [
|
|
3263
|
+
(i(), h(Ma, C({
|
|
3264
|
+
key: d.name,
|
|
3265
|
+
class: u === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
3266
|
+
file: t.value[u].file,
|
|
3267
|
+
"onUpdate:file": (c) => t.value[u].file = c,
|
|
3268
|
+
"blob-file-name": t.value[u].blobFileName,
|
|
3269
|
+
"onUpdate:blobFileName": (c) => t.value[u].blobFileName = c,
|
|
3270
|
+
"upload-status": t.value[u].status,
|
|
3271
|
+
"onUpdate:uploadStatus": (c) => t.value[u].status = c,
|
|
3225
3272
|
ref_for: !0
|
|
3226
|
-
},
|
|
3273
|
+
}, o, { onDeleted: l }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
3227
3274
|
]))), 256))
|
|
3228
3275
|
]),
|
|
3229
3276
|
_: 1
|
|
3230
3277
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
3231
|
-
f(
|
|
3232
|
-
"max-file-size":
|
|
3278
|
+
f(Oa, {
|
|
3279
|
+
"max-file-size": o.maxFileSize
|
|
3233
3280
|
}, null, 8, ["max-file-size"])
|
|
3234
3281
|
])) : S("", !0)
|
|
3235
3282
|
]));
|
|
3236
3283
|
}
|
|
3237
3284
|
});
|
|
3238
3285
|
export {
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3286
|
+
cl as Bootstrap_PT,
|
|
3287
|
+
ml as ForgeActionButton,
|
|
3288
|
+
se as ForgeAlert,
|
|
3289
|
+
ve as ForgeCheckbox,
|
|
3290
|
+
xl as ForgeChips,
|
|
3291
|
+
fe as ForgeDatepicker,
|
|
3292
|
+
Vl as ForgeFileUploader,
|
|
3246
3293
|
_l as ForgeFilterHeader,
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3294
|
+
hl as ForgeForm,
|
|
3295
|
+
wl as ForgeFormField,
|
|
3296
|
+
Bt as ForgeInlineEditor,
|
|
3297
|
+
pl as ForgeLink,
|
|
3298
|
+
ye as ForgeLoader,
|
|
3299
|
+
vl as ForgeModal,
|
|
3300
|
+
be as ForgeMultiSelect,
|
|
3301
|
+
bl as ForgeMultiSelectPreview,
|
|
3255
3302
|
yl as ForgeNavbar,
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3303
|
+
fl as ForgePageHeader,
|
|
3304
|
+
Gt as ForgeProgressBar,
|
|
3305
|
+
gl as ForgeRemainingCharacters,
|
|
3306
|
+
kl as ForgeStatWidget,
|
|
3307
|
+
$l as ForgeStepper,
|
|
3308
|
+
Fl as ForgeTable,
|
|
3309
|
+
Bl as ForgeTile
|
|
3263
3310
|
};
|