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