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