@3squared/forge-ui-3 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/forge-ui-3.js +657 -697
- package/dist/esm/style.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/src/components/ForgeFormField.vue.d.ts +10 -0
- package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +18 -8
- package/dist/src/components/{ForgeMultiSelect.vue.d.ts → deprecated/ForgeMultiSelect.vue.d.ts} +1 -1
- package/dist/src/passthroughs/Dropdown.pt.d.ts +10 -21
- package/dist/src/passthroughs/Multiselect.pt.d.ts +5 -1
- package/package.json +1 -1
- package/src/styles/utilities/_utilities.scss +6 -0
- package/src/styles/utilities/_variables.scss +24 -0
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import ge from "primevue/message";
|
|
2
|
-
import { defineComponent as F, openBlock as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import
|
|
2
|
+
import { defineComponent as F, openBlock as i, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as g, createElementVNode as m, normalizeClass as B, unref as p, createCommentVNode as T, createVNode as y, renderSlot as $, ref as P, createElementBlock as b, Fragment as N, mergeProps as _, mergeModels as R, useModel as U, computed as k, createTextVNode as O, toDisplayString as h, withDirectives as H, vShow as q, createSlots as te, renderList as j, onMounted as le, isRef as se, withKeys as J, useAttrs as he, withModifiers as W, normalizeStyle as we, watch as ue } from "vue";
|
|
3
|
+
import { Icon as C } from "@iconify/vue";
|
|
4
|
+
import L from "primevue/button";
|
|
5
5
|
import xe from "primevue/toast";
|
|
6
|
-
import
|
|
7
|
-
import { useField as
|
|
6
|
+
import ce from "primevue/checkbox";
|
|
7
|
+
import { useField as G } from "vee-validate";
|
|
8
8
|
import ke from "primevue/progressspinner";
|
|
9
9
|
import $e from "primevue/dialog";
|
|
10
10
|
import ie from "primevue/inputtext";
|
|
11
11
|
import { vOnClickOutside as Be } from "@vueuse/components";
|
|
12
12
|
import Fe from "primevue/menubar";
|
|
13
13
|
import _e from "vue-multiselect";
|
|
14
|
-
import
|
|
14
|
+
import re from "primevue/multiselect";
|
|
15
|
+
import Ce from "primevue/calendar";
|
|
15
16
|
import ae from "primevue/dropdown";
|
|
16
|
-
import
|
|
17
|
+
import Ve from "primevue/inputmask";
|
|
17
18
|
import Se from "primevue/textarea";
|
|
18
|
-
import
|
|
19
|
+
import me from "primevue/inputnumber";
|
|
19
20
|
import Te from "primevue/chips";
|
|
20
21
|
import Pe from "primevue/progressbar";
|
|
21
22
|
import Me from "primevue/divider";
|
|
22
23
|
import Ie from "primevue/steps";
|
|
23
24
|
import ze from "primevue/datatable";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
|
|
28
|
-
const Ue = {
|
|
25
|
+
import { BlockBlobClient as pe } from "@azure/storage-blob";
|
|
26
|
+
import ve from "primevue/overlaypanel";
|
|
27
|
+
import Oe from "primevue/image";
|
|
28
|
+
const De = {
|
|
29
29
|
button: {
|
|
30
30
|
root: ({ props: e }) => ({
|
|
31
31
|
class: [
|
|
@@ -116,7 +116,7 @@ const Ue = {
|
|
|
116
116
|
]
|
|
117
117
|
})
|
|
118
118
|
}
|
|
119
|
-
},
|
|
119
|
+
}, Ue = {
|
|
120
120
|
checkbox: {
|
|
121
121
|
root: () => ({
|
|
122
122
|
class: [
|
|
@@ -134,11 +134,11 @@ const Ue = {
|
|
|
134
134
|
]
|
|
135
135
|
})
|
|
136
136
|
}
|
|
137
|
-
},
|
|
137
|
+
}, Ae = {
|
|
138
138
|
dropdown: {
|
|
139
139
|
root: ({ props: e }) => ({
|
|
140
140
|
class: [
|
|
141
|
-
"form-
|
|
141
|
+
"form-select d-flex cursor-pointer position-relative",
|
|
142
142
|
{
|
|
143
143
|
disabled: e.disabled
|
|
144
144
|
}
|
|
@@ -146,13 +146,16 @@ const Ue = {
|
|
|
146
146
|
}),
|
|
147
147
|
trigger: ({ state: e }) => ({
|
|
148
148
|
class: [
|
|
149
|
-
"my-auto filter-trigger",
|
|
149
|
+
"d-none my-auto filter-trigger",
|
|
150
150
|
{
|
|
151
151
|
"rotate-180": e.overlayVisible
|
|
152
152
|
}
|
|
153
153
|
]
|
|
154
154
|
}),
|
|
155
|
-
list:
|
|
155
|
+
list: ({ props: e }) => ({
|
|
156
|
+
class: ["list-unstyled mb-0 overflow-y-auto"],
|
|
157
|
+
style: "max-height:" + (e.scrollHeight ? e.scrollHeight : "200px")
|
|
158
|
+
}),
|
|
156
159
|
item: ({ context: e }) => ({
|
|
157
160
|
class: [
|
|
158
161
|
"dropdown-item d-flex cursor-pointer text-wrap",
|
|
@@ -161,37 +164,17 @@ const Ue = {
|
|
|
161
164
|
}
|
|
162
165
|
]
|
|
163
166
|
}),
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
"form-check-input px-2 py-2 rounded position-relative",
|
|
169
|
-
{
|
|
170
|
-
"bg-primary": e.instance.allSelected
|
|
171
|
-
}
|
|
172
|
-
]
|
|
173
|
-
}),
|
|
174
|
-
headercheckboxicon: "mb-1 fw-medium text-white position-absolute filter-header-multiselect__check-icon",
|
|
175
|
-
filtercontainer: "d-flex position-relative mt-1 ps-2 w-100",
|
|
176
|
-
filterinput: "form-control w-100",
|
|
177
|
-
filtericon: {
|
|
167
|
+
panel: "dropdown-menu overflow-y-auto show",
|
|
168
|
+
filterContainer: "d-flex position-relative p-2 w-100",
|
|
169
|
+
filterInput: "form-control w-100",
|
|
170
|
+
filterIcon: {
|
|
178
171
|
class: ["position-absolute bottom-0 end-0 me-3"],
|
|
179
172
|
style: "top: 35%;"
|
|
180
173
|
},
|
|
181
|
-
|
|
182
|
-
checkbox: (e) => ({
|
|
183
|
-
class: [
|
|
184
|
-
"form-check-input px-2 py-2 rounded position-relative",
|
|
185
|
-
{
|
|
186
|
-
"bg-primary": e.context.selected,
|
|
187
|
-
"form-check-input__focus": e.state.focused
|
|
188
|
-
}
|
|
189
|
-
]
|
|
190
|
-
}),
|
|
191
|
-
checkboxicon: "mb-1 fw-medium text-white position-absolute filter-header-multiselect__check-icon",
|
|
192
|
-
clearicon: "ms-auto my-auto",
|
|
174
|
+
clearIcon: "ms-auto my-auto",
|
|
193
175
|
loadingIcon: "spinner-border spinner-border-sm border-0",
|
|
194
176
|
itemGroupLabel: "ps-2 fw-bold",
|
|
177
|
+
emptyMessage: "mx-3 my-2",
|
|
195
178
|
input: ({ instance: e }) => ({
|
|
196
179
|
class: [
|
|
197
180
|
"w-100",
|
|
@@ -201,7 +184,7 @@ const Ue = {
|
|
|
201
184
|
]
|
|
202
185
|
})
|
|
203
186
|
}
|
|
204
|
-
},
|
|
187
|
+
}, Ne = {
|
|
205
188
|
column: {
|
|
206
189
|
sortBadge: "ms-2 my-auto cursor-pointer",
|
|
207
190
|
headerCell: (e) => {
|
|
@@ -317,7 +300,7 @@ const Ue = {
|
|
|
317
300
|
};
|
|
318
301
|
}
|
|
319
302
|
}
|
|
320
|
-
},
|
|
303
|
+
}, Ee = {
|
|
321
304
|
inputmask: {
|
|
322
305
|
root: () => ({
|
|
323
306
|
class: [
|
|
@@ -325,7 +308,7 @@ const Ue = {
|
|
|
325
308
|
]
|
|
326
309
|
})
|
|
327
310
|
}
|
|
328
|
-
},
|
|
311
|
+
}, Re = {
|
|
329
312
|
inputSwitch: {
|
|
330
313
|
root: "form-check form-switch",
|
|
331
314
|
input: "form-check-input"
|
|
@@ -338,13 +321,13 @@ const Ue = {
|
|
|
338
321
|
]
|
|
339
322
|
})
|
|
340
323
|
}
|
|
341
|
-
},
|
|
324
|
+
}, je = {
|
|
342
325
|
// More PassThrough options in component file.
|
|
343
326
|
chips: {
|
|
344
327
|
root: "d-flex",
|
|
345
328
|
label: "pe-2"
|
|
346
329
|
}
|
|
347
|
-
},
|
|
330
|
+
}, qe = {
|
|
348
331
|
dialog: {
|
|
349
332
|
header: () => ({
|
|
350
333
|
class: ["modal-header"]
|
|
@@ -387,7 +370,7 @@ const Ue = {
|
|
|
387
370
|
]
|
|
388
371
|
})
|
|
389
372
|
}
|
|
390
|
-
},
|
|
373
|
+
}, Ye = {
|
|
391
374
|
overlaypanel: {
|
|
392
375
|
root: (e) => ({
|
|
393
376
|
class: [
|
|
@@ -401,7 +384,7 @@ const Ue = {
|
|
|
401
384
|
content: "d-flex position-relative",
|
|
402
385
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
403
386
|
}
|
|
404
|
-
},
|
|
387
|
+
}, We = {
|
|
405
388
|
message: {
|
|
406
389
|
root: ({ props: e }) => ({
|
|
407
390
|
class: [
|
|
@@ -430,13 +413,13 @@ const Ue = {
|
|
|
430
413
|
class: ["px-0 ms-2 btn d-flex"]
|
|
431
414
|
})
|
|
432
415
|
}
|
|
433
|
-
},
|
|
416
|
+
}, Ge = {
|
|
434
417
|
// More PT options defined in ForgeStepper.
|
|
435
418
|
steps: {
|
|
436
419
|
root: "w-100 mx-2 line",
|
|
437
420
|
menu: "p-0 m-0 list-unstyled d-flex justify-content-between "
|
|
438
421
|
}
|
|
439
|
-
},
|
|
422
|
+
}, Ke = {
|
|
440
423
|
tabview: {
|
|
441
424
|
navContainer: () => ({
|
|
442
425
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -474,7 +457,7 @@ const Ue = {
|
|
|
474
457
|
class: ["p-2"]
|
|
475
458
|
})
|
|
476
459
|
}
|
|
477
|
-
},
|
|
460
|
+
}, Ze = {
|
|
478
461
|
// More PassThrough options defined in ForgeDatepicker.
|
|
479
462
|
calendar: {
|
|
480
463
|
root: "d-inline-flex relative w-100",
|
|
@@ -547,11 +530,11 @@ const Ue = {
|
|
|
547
530
|
decrementButton: "btn btn-sm",
|
|
548
531
|
incrementButton: "btn btn-sm"
|
|
549
532
|
}
|
|
550
|
-
},
|
|
533
|
+
}, Je = {
|
|
551
534
|
multiselect: {
|
|
552
535
|
root: ({ props: e }) => ({
|
|
553
536
|
class: [
|
|
554
|
-
"form-
|
|
537
|
+
"form-select d-flex cursor-pointer position-relative w-100",
|
|
555
538
|
{
|
|
556
539
|
disabled: e.disabled
|
|
557
540
|
}
|
|
@@ -560,25 +543,29 @@ const Ue = {
|
|
|
560
543
|
panel: "dropdown-menu overflow-y-auto show",
|
|
561
544
|
list: "list-unstyled mb-0",
|
|
562
545
|
item: "dropdown-item d-flex cursor-pointer",
|
|
563
|
-
header: "d-flex",
|
|
546
|
+
header: "d-flex dropdown-item",
|
|
547
|
+
headerCheckbox: "dropdown-item ",
|
|
564
548
|
labelContainer: "w-100 me-2",
|
|
565
|
-
label: "w-100",
|
|
566
|
-
filterContainer: "d-flex w-100",
|
|
549
|
+
label: "w-100 ellipsis-overflow",
|
|
550
|
+
filterContainer: "d-flex w-100 cursor-pointer",
|
|
567
551
|
filterIcon: "d-none",
|
|
568
|
-
filterInput: "form-control form-control-sm
|
|
552
|
+
filterInput: "form-control form-control-sm",
|
|
569
553
|
closeButton: "d-none",
|
|
570
554
|
hiddenInput: "d-none",
|
|
571
|
-
|
|
555
|
+
token: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 pt-1",
|
|
556
|
+
tokenLabel: "px-2 fs-6 fw-400",
|
|
557
|
+
emptyMessage: "mx-3 my-2",
|
|
558
|
+
clearIcon: "ms-auto my-auto",
|
|
572
559
|
trigger: ({ state: e }) => ({
|
|
573
560
|
class: [
|
|
574
|
-
"ms-auto my-auto filter-trigger",
|
|
561
|
+
"d-none ms-auto my-auto filter-trigger",
|
|
575
562
|
{
|
|
576
563
|
"rotate-180": e.overlayVisible
|
|
577
564
|
}
|
|
578
565
|
]
|
|
579
566
|
})
|
|
580
567
|
}
|
|
581
|
-
},
|
|
568
|
+
}, Xe = {
|
|
582
569
|
// More PassThrough options in component file.
|
|
583
570
|
progressbar: {
|
|
584
571
|
root: () => ({
|
|
@@ -591,7 +578,7 @@ const Ue = {
|
|
|
591
578
|
class: ["text-white"]
|
|
592
579
|
})
|
|
593
580
|
}
|
|
594
|
-
},
|
|
581
|
+
}, Qe = {
|
|
595
582
|
// More PT options can be found in the ForgeTable file.
|
|
596
583
|
dataTable: {
|
|
597
584
|
datatable: "position-relative",
|
|
@@ -651,7 +638,7 @@ const Ue = {
|
|
|
651
638
|
]
|
|
652
639
|
})
|
|
653
640
|
}
|
|
654
|
-
},
|
|
641
|
+
}, et = {
|
|
655
642
|
badge: {
|
|
656
643
|
root: ({ props: e }) => ({
|
|
657
644
|
class: [
|
|
@@ -672,7 +659,7 @@ const Ue = {
|
|
|
672
659
|
]
|
|
673
660
|
})
|
|
674
661
|
}
|
|
675
|
-
},
|
|
662
|
+
}, tt = {
|
|
676
663
|
// More PassThrough options in component file.
|
|
677
664
|
menubar: {
|
|
678
665
|
menu: ({ instance: e }) => ({
|
|
@@ -742,7 +729,7 @@ const Ue = {
|
|
|
742
729
|
]
|
|
743
730
|
})
|
|
744
731
|
}
|
|
745
|
-
},
|
|
732
|
+
}, lt = {
|
|
746
733
|
tooltip: {
|
|
747
734
|
root: ({ context: e }) => ({
|
|
748
735
|
class: [
|
|
@@ -764,7 +751,7 @@ const Ue = {
|
|
|
764
751
|
class: ["tooltip-inner"]
|
|
765
752
|
}
|
|
766
753
|
}
|
|
767
|
-
},
|
|
754
|
+
}, at = {
|
|
768
755
|
selectbutton: {
|
|
769
756
|
root: () => ({
|
|
770
757
|
class: ["btn-group"]
|
|
@@ -782,7 +769,7 @@ const Ue = {
|
|
|
782
769
|
]
|
|
783
770
|
})
|
|
784
771
|
}
|
|
785
|
-
},
|
|
772
|
+
}, ot = {
|
|
786
773
|
progressspinner: {
|
|
787
774
|
spinner: () => ({
|
|
788
775
|
class: [
|
|
@@ -790,7 +777,7 @@ const Ue = {
|
|
|
790
777
|
]
|
|
791
778
|
})
|
|
792
779
|
}
|
|
793
|
-
},
|
|
780
|
+
}, nt = {
|
|
794
781
|
card: {
|
|
795
782
|
root: () => ({
|
|
796
783
|
class: ["card"]
|
|
@@ -814,11 +801,11 @@ const Ue = {
|
|
|
814
801
|
class: ["card-header"]
|
|
815
802
|
})
|
|
816
803
|
}
|
|
817
|
-
},
|
|
804
|
+
}, st = {
|
|
818
805
|
divider: {
|
|
819
806
|
root: "border-bottom w-100 m-1"
|
|
820
807
|
}
|
|
821
|
-
},
|
|
808
|
+
}, it = {
|
|
822
809
|
image: {
|
|
823
810
|
root: "position-relative d-inline-block",
|
|
824
811
|
button: "preview-button",
|
|
@@ -831,7 +818,7 @@ const Ue = {
|
|
|
831
818
|
zoominbutton: "btn text-white",
|
|
832
819
|
closebutton: "btn text-white"
|
|
833
820
|
}
|
|
834
|
-
},
|
|
821
|
+
}, rt = {
|
|
835
822
|
toast: {
|
|
836
823
|
message: () => ({
|
|
837
824
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -869,7 +856,7 @@ const Ue = {
|
|
|
869
856
|
};
|
|
870
857
|
}
|
|
871
858
|
}
|
|
872
|
-
},
|
|
859
|
+
}, dt = {
|
|
873
860
|
fieldset: {
|
|
874
861
|
root: () => ({
|
|
875
862
|
class: [
|
|
@@ -892,36 +879,36 @@ const Ue = {
|
|
|
892
879
|
]
|
|
893
880
|
})
|
|
894
881
|
}
|
|
895
|
-
},
|
|
896
|
-
...
|
|
882
|
+
}, ga = {
|
|
883
|
+
...et,
|
|
884
|
+
...De,
|
|
885
|
+
...nt,
|
|
897
886
|
...Ue,
|
|
887
|
+
...je,
|
|
888
|
+
...Ne,
|
|
889
|
+
...Ze,
|
|
890
|
+
...qe,
|
|
898
891
|
...st,
|
|
899
892
|
...Ae,
|
|
900
|
-
...qe,
|
|
901
|
-
...Ee,
|
|
902
|
-
...Je,
|
|
903
|
-
...Ye,
|
|
904
893
|
...it,
|
|
905
|
-
...Ne,
|
|
906
|
-
...rt,
|
|
907
894
|
...Le,
|
|
895
|
+
...Ee,
|
|
908
896
|
...Re,
|
|
909
|
-
...
|
|
910
|
-
...
|
|
897
|
+
...We,
|
|
898
|
+
...Je,
|
|
899
|
+
...tt,
|
|
900
|
+
...Ye,
|
|
911
901
|
...Xe,
|
|
912
|
-
...
|
|
902
|
+
...ot,
|
|
903
|
+
...at,
|
|
913
904
|
...Ge,
|
|
914
905
|
...Qe,
|
|
915
|
-
...
|
|
916
|
-
...
|
|
917
|
-
...We,
|
|
918
|
-
...et,
|
|
919
|
-
...Ze,
|
|
920
|
-
...dt,
|
|
906
|
+
...Ke,
|
|
907
|
+
...rt,
|
|
921
908
|
...He,
|
|
922
|
-
...
|
|
909
|
+
...dt,
|
|
923
910
|
directives: {
|
|
924
|
-
...
|
|
911
|
+
...lt
|
|
925
912
|
}
|
|
926
913
|
}, oe = /* @__PURE__ */ F({
|
|
927
914
|
__name: "ForgeAlert",
|
|
@@ -941,31 +928,31 @@ const Ue = {
|
|
|
941
928
|
const t = e;
|
|
942
929
|
return (l, o) => {
|
|
943
930
|
const a = ge;
|
|
944
|
-
return
|
|
945
|
-
messageicon:
|
|
931
|
+
return i(), w(a, Q(ee({ ...l.$attrs, ...t })), {
|
|
932
|
+
messageicon: g(() => [
|
|
946
933
|
m("div", {
|
|
947
934
|
class: B(t.icon ? "me-2 pe-1" : "")
|
|
948
935
|
}, [
|
|
949
|
-
t.icon ? (
|
|
936
|
+
t.icon ? (i(), w(p(C), {
|
|
950
937
|
key: 0,
|
|
951
938
|
"data-cy": "message-icon",
|
|
952
939
|
icon: t.icon,
|
|
953
940
|
class: B(`text-${t.severity}`),
|
|
954
941
|
height: 35
|
|
955
|
-
}, null, 8, ["icon", "class"])) :
|
|
942
|
+
}, null, 8, ["icon", "class"])) : T("", !0)
|
|
956
943
|
], 2)
|
|
957
944
|
]),
|
|
958
|
-
closeicon:
|
|
959
|
-
y(p(
|
|
945
|
+
closeicon: g(() => [
|
|
946
|
+
y(p(C), { icon: "bi:x" })
|
|
960
947
|
]),
|
|
961
|
-
default:
|
|
948
|
+
default: g(() => [
|
|
962
949
|
$(l.$slots, "default")
|
|
963
950
|
]),
|
|
964
951
|
_: 3
|
|
965
952
|
}, 16);
|
|
966
953
|
};
|
|
967
954
|
}
|
|
968
|
-
}),
|
|
955
|
+
}), ha = /* @__PURE__ */ F({
|
|
969
956
|
__name: "ForgeActionButton",
|
|
970
957
|
props: {
|
|
971
958
|
action: {},
|
|
@@ -984,9 +971,9 @@ const Ue = {
|
|
|
984
971
|
t.value = !1;
|
|
985
972
|
};
|
|
986
973
|
return (a, n) => {
|
|
987
|
-
const
|
|
988
|
-
return
|
|
989
|
-
y(
|
|
974
|
+
const r = L;
|
|
975
|
+
return i(), b(N, null, [
|
|
976
|
+
y(r, _({ ...l, ...a.$attrs }, {
|
|
990
977
|
loading: t.value,
|
|
991
978
|
disabled: t.value || l.disabled,
|
|
992
979
|
onClick: o
|
|
@@ -995,7 +982,7 @@ const Ue = {
|
|
|
995
982
|
], 64);
|
|
996
983
|
};
|
|
997
984
|
}
|
|
998
|
-
}),
|
|
985
|
+
}), ut = { class: "d-flex flex-column" }, ct = ["for"], mt = /* @__PURE__ */ F({
|
|
999
986
|
__name: "ForgeCheckbox",
|
|
1000
987
|
props: /* @__PURE__ */ R({
|
|
1001
988
|
label: { default: "" },
|
|
@@ -1025,51 +1012,51 @@ const Ue = {
|
|
|
1025
1012
|
}),
|
|
1026
1013
|
emits: ["update:modelValue"],
|
|
1027
1014
|
setup(e) {
|
|
1028
|
-
const t = e, l = U(e, "modelValue"), { handleChange: o, errors: a, errorMessage: n } =
|
|
1015
|
+
const t = e, l = U(e, "modelValue"), { handleChange: o, errors: a, errorMessage: n } = G(
|
|
1029
1016
|
() => t.name ?? "",
|
|
1030
1017
|
void 0,
|
|
1031
1018
|
{
|
|
1032
1019
|
type: "checkbox",
|
|
1033
1020
|
checkedValue: l.value
|
|
1034
1021
|
}
|
|
1035
|
-
),
|
|
1022
|
+
), r = (u) => {
|
|
1036
1023
|
t.name ? o(u) : l.value = u;
|
|
1037
|
-
},
|
|
1024
|
+
}, d = k(() => a.value.length > 0);
|
|
1038
1025
|
return (u, c) => {
|
|
1039
|
-
const v =
|
|
1040
|
-
return
|
|
1041
|
-
m("div",
|
|
1026
|
+
const v = ce;
|
|
1027
|
+
return i(), b("div", ut, [
|
|
1028
|
+
m("div", _({
|
|
1042
1029
|
class: "d-flex cursor-pointer",
|
|
1043
1030
|
"data-cy": "checkbox-container",
|
|
1044
|
-
onClick: c[2] || (c[2] = (s) =>
|
|
1031
|
+
onClick: c[2] || (c[2] = (s) => r(l.value))
|
|
1045
1032
|
}, { ...u.$attrs }), [
|
|
1046
|
-
y(v,
|
|
1033
|
+
y(v, _({ ...t }, {
|
|
1047
1034
|
binary: "",
|
|
1048
1035
|
modelValue: l.value,
|
|
1049
1036
|
"onUpdate:modelValue": c[0] || (c[0] = (s) => l.value = s),
|
|
1050
1037
|
"input-id": t.name,
|
|
1051
|
-
"input-class": { "is-invalid":
|
|
1038
|
+
"input-class": { "is-invalid": d.value }
|
|
1052
1039
|
}), null, 16, ["modelValue", "input-id", "input-class"]),
|
|
1053
1040
|
m("label", {
|
|
1054
1041
|
for: t.name,
|
|
1055
|
-
onClick: c[1] || (c[1] = (s) =>
|
|
1056
|
-
class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${
|
|
1042
|
+
onClick: c[1] || (c[1] = (s) => r(!l.value)),
|
|
1043
|
+
class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${d.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
|
|
1057
1044
|
}, [
|
|
1058
1045
|
$(u.$slots, "default", {}, () => [
|
|
1059
|
-
|
|
1046
|
+
O(h(t.label), 1)
|
|
1060
1047
|
])
|
|
1061
|
-
], 10,
|
|
1048
|
+
], 10, ct)
|
|
1062
1049
|
], 16),
|
|
1063
|
-
|
|
1050
|
+
H(m("small", {
|
|
1064
1051
|
"data-cy": "error",
|
|
1065
1052
|
class: "text-invalid"
|
|
1066
1053
|
}, h(p(n)), 513), [
|
|
1067
|
-
[q,
|
|
1054
|
+
[q, d.value]
|
|
1068
1055
|
])
|
|
1069
1056
|
]);
|
|
1070
1057
|
};
|
|
1071
1058
|
}
|
|
1072
|
-
}),
|
|
1059
|
+
}), pt = { class: "forge-loader" }, ye = /* @__PURE__ */ F({
|
|
1073
1060
|
__name: "ForgeLoader",
|
|
1074
1061
|
props: {
|
|
1075
1062
|
severity: { default: "primary" }
|
|
@@ -1078,7 +1065,7 @@ const Ue = {
|
|
|
1078
1065
|
const t = e;
|
|
1079
1066
|
return (l, o) => {
|
|
1080
1067
|
const a = ke;
|
|
1081
|
-
return
|
|
1068
|
+
return i(), b("div", pt, [
|
|
1082
1069
|
y(a, {
|
|
1083
1070
|
"animation-duration": ".75",
|
|
1084
1071
|
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
@@ -1086,7 +1073,7 @@ const Ue = {
|
|
|
1086
1073
|
]);
|
|
1087
1074
|
};
|
|
1088
1075
|
}
|
|
1089
|
-
}),
|
|
1076
|
+
}), vt = ["href", "target"], wa = /* @__PURE__ */ F({
|
|
1090
1077
|
__name: "ForgeLink",
|
|
1091
1078
|
props: {
|
|
1092
1079
|
url: {},
|
|
@@ -1120,25 +1107,25 @@ const Ue = {
|
|
|
1120
1107
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1121
1108
|
"me-0": e.animateIconOnHover
|
|
1122
1109
|
}));
|
|
1123
|
-
return (o, a) => (
|
|
1110
|
+
return (o, a) => (i(), b("a", {
|
|
1124
1111
|
id: "link",
|
|
1125
1112
|
class: B(["cursor-pointer d-flex text-break", t.value]),
|
|
1126
1113
|
href: o.url,
|
|
1127
1114
|
target: o.target
|
|
1128
1115
|
}, [
|
|
1129
1116
|
$(o.$slots, "default", {}, () => [
|
|
1130
|
-
o.iconName ? (
|
|
1117
|
+
o.iconName ? (i(), w(p(C), {
|
|
1131
1118
|
key: 0,
|
|
1132
1119
|
id: "link-icon",
|
|
1133
1120
|
icon: o.iconName,
|
|
1134
1121
|
class: B(["bi my-auto", l.value])
|
|
1135
|
-
}, null, 8, ["icon", "class"])) :
|
|
1136
|
-
|
|
1122
|
+
}, null, 8, ["icon", "class"])) : T("", !0),
|
|
1123
|
+
O(" " + h(o.label), 1)
|
|
1137
1124
|
])
|
|
1138
|
-
], 10,
|
|
1125
|
+
], 10, vt));
|
|
1139
1126
|
}
|
|
1140
1127
|
});
|
|
1141
|
-
function
|
|
1128
|
+
function yt(e) {
|
|
1142
1129
|
const t = {
|
|
1143
1130
|
errorMessage: "",
|
|
1144
1131
|
errorDetails: []
|
|
@@ -1149,16 +1136,16 @@ function bt(e) {
|
|
|
1149
1136
|
}
|
|
1150
1137
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1151
1138
|
}
|
|
1152
|
-
function
|
|
1139
|
+
function xa(e, t) {
|
|
1153
1140
|
return e.map((l) => ({ id: l, label: t ? t(l) : `${l}` }));
|
|
1154
1141
|
}
|
|
1155
|
-
function
|
|
1142
|
+
function ka(e, t, l) {
|
|
1156
1143
|
return { id: e, label: t ?? e.toString(), shortLabel: l };
|
|
1157
1144
|
}
|
|
1158
|
-
const
|
|
1145
|
+
const bt = { key: 0 }, ft = {
|
|
1159
1146
|
class: "d-flex w-100",
|
|
1160
1147
|
"data-cy": "footer"
|
|
1161
|
-
},
|
|
1148
|
+
}, $a = /* @__PURE__ */ F({
|
|
1162
1149
|
__name: "ForgeModal",
|
|
1163
1150
|
props: /* @__PURE__ */ R({
|
|
1164
1151
|
cancelText: { default: "Cancel" },
|
|
@@ -1208,9 +1195,9 @@ const ft = { key: 0 }, gt = {
|
|
|
1208
1195
|
hasError: !1,
|
|
1209
1196
|
header: "",
|
|
1210
1197
|
message: []
|
|
1211
|
-
}),
|
|
1198
|
+
}), r = () => {
|
|
1212
1199
|
l.value = !1;
|
|
1213
|
-
},
|
|
1200
|
+
}, d = () => {
|
|
1214
1201
|
l.value = !0;
|
|
1215
1202
|
}, u = () => {
|
|
1216
1203
|
t.value = !1;
|
|
@@ -1222,8 +1209,8 @@ const ft = { key: 0 }, gt = {
|
|
|
1222
1209
|
(s || s == null) && u();
|
|
1223
1210
|
} catch (s) {
|
|
1224
1211
|
n.value.hasError = !0;
|
|
1225
|
-
const
|
|
1226
|
-
n.value.header =
|
|
1212
|
+
const V = yt(s);
|
|
1213
|
+
n.value.header = V.errorMessage, n.value.message = V.errorDetails;
|
|
1227
1214
|
}
|
|
1228
1215
|
a.value = !1;
|
|
1229
1216
|
}
|
|
@@ -1238,15 +1225,15 @@ const ft = { key: 0 }, gt = {
|
|
|
1238
1225
|
}
|
|
1239
1226
|
]
|
|
1240
1227
|
}));
|
|
1241
|
-
return (s,
|
|
1242
|
-
const
|
|
1243
|
-
return
|
|
1244
|
-
onMaximize:
|
|
1245
|
-
onUnmaximize:
|
|
1228
|
+
return (s, V) => {
|
|
1229
|
+
const S = L, M = $e;
|
|
1230
|
+
return i(), w(M, _(o, {
|
|
1231
|
+
onMaximize: d,
|
|
1232
|
+
onUnmaximize: r,
|
|
1246
1233
|
pt: v.value
|
|
1247
1234
|
}), te({
|
|
1248
|
-
closeicon:
|
|
1249
|
-
y(p(
|
|
1235
|
+
closeicon: g(() => [
|
|
1236
|
+
y(p(C), {
|
|
1250
1237
|
"data-cy": "close-icon",
|
|
1251
1238
|
icon: "bi:x-lg",
|
|
1252
1239
|
width: "18",
|
|
@@ -1254,8 +1241,8 @@ const ft = { key: 0 }, gt = {
|
|
|
1254
1241
|
onClick: u
|
|
1255
1242
|
})
|
|
1256
1243
|
]),
|
|
1257
|
-
maximizeicon:
|
|
1258
|
-
y(p(
|
|
1244
|
+
maximizeicon: g(() => [
|
|
1245
|
+
y(p(C), {
|
|
1259
1246
|
"data-cy": "maximisable-icon",
|
|
1260
1247
|
icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1261
1248
|
width: "16",
|
|
@@ -1264,35 +1251,35 @@ const ft = { key: 0 }, gt = {
|
|
|
1264
1251
|
]),
|
|
1265
1252
|
_: 2
|
|
1266
1253
|
}, [
|
|
1267
|
-
|
|
1268
|
-
name:
|
|
1269
|
-
fn:
|
|
1270
|
-
n.value.hasError ? (
|
|
1254
|
+
j(s.$slots, (I, z) => ({
|
|
1255
|
+
name: z,
|
|
1256
|
+
fn: g((f) => [
|
|
1257
|
+
n.value.hasError ? (i(), w(oe, {
|
|
1271
1258
|
key: 0,
|
|
1272
1259
|
severity: "danger",
|
|
1273
1260
|
"data-cy": "error"
|
|
1274
1261
|
}, {
|
|
1275
|
-
default:
|
|
1262
|
+
default: g(() => [
|
|
1276
1263
|
m("p", {
|
|
1277
1264
|
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1278
1265
|
}, h(n.value.header), 3),
|
|
1279
|
-
n.value.message.length > 0 ? (
|
|
1280
|
-
(
|
|
1281
|
-
])) :
|
|
1266
|
+
n.value.message.length > 0 ? (i(), b("ul", bt, [
|
|
1267
|
+
(i(!0), b(N, null, j(n.value.message, (x) => (i(), b("li", { key: x }, h(x), 1))), 128))
|
|
1268
|
+
])) : T("", !0)
|
|
1282
1269
|
]),
|
|
1283
1270
|
_: 1
|
|
1284
|
-
})) :
|
|
1285
|
-
$(s.$slots,
|
|
1271
|
+
})) : T("", !0),
|
|
1272
|
+
$(s.$slots, z, Q(ee(f || {}))),
|
|
1286
1273
|
a.value ? $(s.$slots, "loader", { key: 1 }, () => [
|
|
1287
|
-
y(
|
|
1288
|
-
]) :
|
|
1274
|
+
y(ye, { "data-cy": "loader" })
|
|
1275
|
+
]) : T("", !0)
|
|
1289
1276
|
])
|
|
1290
1277
|
})),
|
|
1291
1278
|
s.showFooter ? {
|
|
1292
1279
|
name: "footer",
|
|
1293
|
-
fn:
|
|
1294
|
-
m("div",
|
|
1295
|
-
y(
|
|
1280
|
+
fn: g(() => [
|
|
1281
|
+
m("div", ft, [
|
|
1282
|
+
y(S, {
|
|
1296
1283
|
label: s.cancelText,
|
|
1297
1284
|
class: B(o.cancelClass),
|
|
1298
1285
|
outlined: "",
|
|
@@ -1300,7 +1287,7 @@ const ft = { key: 0 }, gt = {
|
|
|
1300
1287
|
id: "cancel-button",
|
|
1301
1288
|
type: o.cancelButtonType
|
|
1302
1289
|
}, null, 8, ["label", "class", "type"]),
|
|
1303
|
-
y(
|
|
1290
|
+
y(S, {
|
|
1304
1291
|
label: s.submitText,
|
|
1305
1292
|
class: B([o.submitClass, "ms-auto"]),
|
|
1306
1293
|
onClick: c,
|
|
@@ -1314,7 +1301,7 @@ const ft = { key: 0 }, gt = {
|
|
|
1314
1301
|
]), 1040, ["pt"]);
|
|
1315
1302
|
};
|
|
1316
1303
|
}
|
|
1317
|
-
}),
|
|
1304
|
+
}), gt = ["id"], ht = { key: 0 }, wt = { key: 0 }, xt = { class: "d-flex justify-content-between align-items-center position-relative" }, kt = { key: 1 }, $t = { "data-cy": "readonly-value" }, Bt = /* @__PURE__ */ F({
|
|
1318
1305
|
__name: "ForgeInlineEditor",
|
|
1319
1306
|
props: /* @__PURE__ */ R({
|
|
1320
1307
|
name: { default: "" },
|
|
@@ -1330,10 +1317,10 @@ const ft = { key: 0 }, gt = {
|
|
|
1330
1317
|
emits: ["update:modelValue"],
|
|
1331
1318
|
setup(e) {
|
|
1332
1319
|
const t = e, l = U(e, "modelValue"), o = P(!1), a = P(), n = () => {
|
|
1333
|
-
var
|
|
1334
|
-
o.value = !o.value, (
|
|
1335
|
-
},
|
|
1336
|
-
if (
|
|
1320
|
+
var S;
|
|
1321
|
+
o.value = !o.value, (S = a.value) == null || S.focus();
|
|
1322
|
+
}, r = async () => {
|
|
1323
|
+
if (V.value)
|
|
1337
1324
|
return !1;
|
|
1338
1325
|
if (l.value = s.value, t.completeAction)
|
|
1339
1326
|
try {
|
|
@@ -1343,33 +1330,33 @@ const ft = { key: 0 }, gt = {
|
|
|
1343
1330
|
}
|
|
1344
1331
|
else
|
|
1345
1332
|
o.value = !o.value;
|
|
1346
|
-
},
|
|
1333
|
+
}, d = () => {
|
|
1347
1334
|
o.value = !o.value;
|
|
1348
1335
|
}, u = () => {
|
|
1349
1336
|
s.value = null;
|
|
1350
|
-
}, { errorMessage: c, errors: v, value: s } =
|
|
1337
|
+
}, { errorMessage: c, errors: v, value: s } = G(() => t.name, void 0, {
|
|
1351
1338
|
initialValue: l.value
|
|
1352
1339
|
});
|
|
1353
1340
|
le(() => {
|
|
1354
1341
|
s.value = l.value;
|
|
1355
1342
|
});
|
|
1356
|
-
const
|
|
1357
|
-
return (
|
|
1358
|
-
const I = ie,
|
|
1359
|
-
return
|
|
1343
|
+
const V = k(() => v.value.length > 0);
|
|
1344
|
+
return (S, M) => {
|
|
1345
|
+
const I = ie, z = L;
|
|
1346
|
+
return i(), b("div", {
|
|
1360
1347
|
id: t.name
|
|
1361
1348
|
}, [
|
|
1362
|
-
|
|
1363
|
-
$(
|
|
1364
|
-
m("span",
|
|
1349
|
+
S.readonly ? (i(), b("div", kt, [
|
|
1350
|
+
$(S.$slots, "default", {}, () => [
|
|
1351
|
+
m("span", $t, h(p(s)), 1)
|
|
1365
1352
|
])
|
|
1366
|
-
])) : (
|
|
1367
|
-
o.value ? (
|
|
1368
|
-
|
|
1369
|
-
$(
|
|
1370
|
-
class: B({ "is-invalid":
|
|
1371
|
-
editFinished:
|
|
1372
|
-
cancel:
|
|
1353
|
+
])) : (i(), b("div", ht, [
|
|
1354
|
+
o.value ? (i(), b("div", wt, [
|
|
1355
|
+
H((i(), b("div", xt, [
|
|
1356
|
+
$(S.$slots, "editor", {
|
|
1357
|
+
class: B({ "is-invalid": V.value }),
|
|
1358
|
+
editFinished: r,
|
|
1359
|
+
cancel: d,
|
|
1373
1360
|
val: p(s)
|
|
1374
1361
|
}, () => [
|
|
1375
1362
|
y(I, {
|
|
@@ -1377,16 +1364,16 @@ const ft = { key: 0 }, gt = {
|
|
|
1377
1364
|
ref_key: "input",
|
|
1378
1365
|
ref: a,
|
|
1379
1366
|
modelValue: p(s),
|
|
1380
|
-
"onUpdate:modelValue": M[0] || (M[0] = (
|
|
1367
|
+
"onUpdate:modelValue": M[0] || (M[0] = (f) => se(s) ? s.value = f : null),
|
|
1381
1368
|
modelModifiers: { trim: !0 },
|
|
1382
|
-
class: B({ "is-invalid":
|
|
1369
|
+
class: B({ "is-invalid": V.value }),
|
|
1383
1370
|
onKeydown: [
|
|
1384
|
-
J(
|
|
1385
|
-
J(
|
|
1371
|
+
J(r, ["enter"]),
|
|
1372
|
+
J(d, ["esc"])
|
|
1386
1373
|
]
|
|
1387
1374
|
}, null, 8, ["modelValue", "class"])
|
|
1388
1375
|
]),
|
|
1389
|
-
y(p(
|
|
1376
|
+
y(p(C), {
|
|
1390
1377
|
icon: "bi:x-circle",
|
|
1391
1378
|
class: "mx-2 cursor-pointer",
|
|
1392
1379
|
onClick: u,
|
|
@@ -1394,28 +1381,28 @@ const ft = { key: 0 }, gt = {
|
|
|
1394
1381
|
"data-cy": "clear-icon"
|
|
1395
1382
|
})
|
|
1396
1383
|
])), [
|
|
1397
|
-
[p(Be),
|
|
1384
|
+
[p(Be), r]
|
|
1398
1385
|
])
|
|
1399
|
-
])) : (
|
|
1386
|
+
])) : (i(), b("div", {
|
|
1400
1387
|
key: 1,
|
|
1401
1388
|
class: "d-flex text-muted",
|
|
1402
1389
|
onClick: n,
|
|
1403
1390
|
onFocus: n
|
|
1404
1391
|
}, [
|
|
1405
|
-
$(
|
|
1392
|
+
$(S.$slots, "default", {}, () => [
|
|
1406
1393
|
m("div", {
|
|
1407
|
-
class: B(["pe-2 cursor-pointer", { "text-invalid":
|
|
1394
|
+
class: B(["pe-2 cursor-pointer", { "text-invalid": V.value }]),
|
|
1408
1395
|
"data-cy": "value"
|
|
1409
1396
|
}, h(p(s) ? p(s) : "Click to edit"), 3)
|
|
1410
1397
|
]),
|
|
1411
|
-
y(
|
|
1398
|
+
y(z, {
|
|
1412
1399
|
link: "",
|
|
1413
1400
|
class: "p-0 m-0"
|
|
1414
1401
|
}, {
|
|
1415
|
-
default:
|
|
1416
|
-
y(p(
|
|
1402
|
+
default: g(() => [
|
|
1403
|
+
y(p(C), {
|
|
1417
1404
|
icon: "bi:pencil",
|
|
1418
|
-
class: B(
|
|
1405
|
+
class: B(V.value ? "text-invalid" : "text-muted"),
|
|
1419
1406
|
"data-cy": "edit-icon",
|
|
1420
1407
|
onKeydown: J(n, ["enter"])
|
|
1421
1408
|
}, null, 8, ["class"])
|
|
@@ -1424,16 +1411,16 @@ const ft = { key: 0 }, gt = {
|
|
|
1424
1411
|
})
|
|
1425
1412
|
], 32))
|
|
1426
1413
|
])),
|
|
1427
|
-
|
|
1414
|
+
H(m("small", {
|
|
1428
1415
|
"data-cy": "error",
|
|
1429
1416
|
class: "text-invalid"
|
|
1430
1417
|
}, h(p(c)), 513), [
|
|
1431
|
-
[q,
|
|
1418
|
+
[q, V.value]
|
|
1432
1419
|
])
|
|
1433
|
-
], 8,
|
|
1420
|
+
], 8, gt);
|
|
1434
1421
|
};
|
|
1435
1422
|
}
|
|
1436
|
-
}),
|
|
1423
|
+
}), Ft = ["href"], Ba = /* @__PURE__ */ F({
|
|
1437
1424
|
__name: "ForgeNavbar",
|
|
1438
1425
|
props: {
|
|
1439
1426
|
severity: { default: "light" },
|
|
@@ -1479,24 +1466,24 @@ const ft = { key: 0 }, gt = {
|
|
|
1479
1466
|
}));
|
|
1480
1467
|
return (o, a) => {
|
|
1481
1468
|
const n = Fe;
|
|
1482
|
-
return
|
|
1469
|
+
return i(), w(n, _({ ...t, ...o.$attrs }, {
|
|
1483
1470
|
pt: l.value,
|
|
1484
1471
|
"data-cy": "navbar"
|
|
1485
1472
|
}), te({
|
|
1486
|
-
start:
|
|
1473
|
+
start: g(() => [
|
|
1487
1474
|
m("a", {
|
|
1488
1475
|
href: o.logoUrl,
|
|
1489
1476
|
class: "navbar-brand ms-3",
|
|
1490
1477
|
"data-cy": "logo"
|
|
1491
1478
|
}, [
|
|
1492
1479
|
$(o.$slots, "logo", {}, () => [
|
|
1493
|
-
a[0] || (a[0] =
|
|
1480
|
+
a[0] || (a[0] = O(" Logo "))
|
|
1494
1481
|
])
|
|
1495
|
-
], 8,
|
|
1482
|
+
], 8, Ft)
|
|
1496
1483
|
]),
|
|
1497
|
-
menubuttonicon:
|
|
1484
|
+
menubuttonicon: g(() => [
|
|
1498
1485
|
$(o.$slots, "menubuttonicon", {}, () => [
|
|
1499
|
-
y(p(
|
|
1486
|
+
y(p(C), {
|
|
1500
1487
|
icon: "bi:list",
|
|
1501
1488
|
class: B(t.severity === "light" ? "text-black" : "text-white"),
|
|
1502
1489
|
height: "24",
|
|
@@ -1506,16 +1493,16 @@ const ft = { key: 0 }, gt = {
|
|
|
1506
1493
|
]),
|
|
1507
1494
|
_: 2
|
|
1508
1495
|
}, [
|
|
1509
|
-
|
|
1510
|
-
name:
|
|
1511
|
-
fn:
|
|
1512
|
-
$(o.$slots,
|
|
1496
|
+
j(o.$slots, (r, d) => ({
|
|
1497
|
+
name: d,
|
|
1498
|
+
fn: g((u) => [
|
|
1499
|
+
$(o.$slots, d, Q(ee(u)))
|
|
1513
1500
|
])
|
|
1514
1501
|
}))
|
|
1515
1502
|
]), 1040, ["pt"]);
|
|
1516
1503
|
};
|
|
1517
1504
|
}
|
|
1518
|
-
}),
|
|
1505
|
+
}), _t = { class: "multiselect__caret" }, Ct = ["checked"], Vt = ["data-cy"], St = ["checked"], Tt = { class: "my-auto ms-1" }, Pt = { class: "multiselect__tag d-inline-flex" }, Mt = { class: "my-auto" }, Fa = /* @__PURE__ */ F({
|
|
1519
1506
|
__name: "ForgeMultiSelect",
|
|
1520
1507
|
props: {
|
|
1521
1508
|
severity: { default: "primary" },
|
|
@@ -1527,13 +1514,13 @@ const ft = { key: 0 }, gt = {
|
|
|
1527
1514
|
},
|
|
1528
1515
|
emits: ["update:modelValue"],
|
|
1529
1516
|
setup(e, { emit: t }) {
|
|
1530
|
-
const l = e, o = (
|
|
1517
|
+
const l = e, o = (E, D) => {
|
|
1531
1518
|
const A = {
|
|
1532
1519
|
...D,
|
|
1533
1520
|
$isDisabled: D.$isDisabled ?? !1
|
|
1534
1521
|
};
|
|
1535
|
-
|
|
1536
|
-
}, a = he(), n = t, { errors:
|
|
1522
|
+
E(A);
|
|
1523
|
+
}, a = he(), n = t, { errors: r, value: d, errorMessage: u } = G(() => l.name, void 0, {
|
|
1537
1524
|
initialValue: a.modelValue
|
|
1538
1525
|
}), c = P(!1), v = k(() => ({
|
|
1539
1526
|
multiple: !0,
|
|
@@ -1548,73 +1535,73 @@ const ft = { key: 0 }, gt = {
|
|
|
1548
1535
|
searchable: !!(a.searchable === null || a.searchable) && a.modelValue.length === a.options.length,
|
|
1549
1536
|
async: !1,
|
|
1550
1537
|
...a
|
|
1551
|
-
})), s = k(() => `forge-multiselect-${l.severity}`),
|
|
1552
|
-
|
|
1553
|
-
},
|
|
1554
|
-
n("update:modelValue", l.selectValue ?
|
|
1555
|
-
}, Z = (
|
|
1556
|
-
|
|
1538
|
+
})), s = k(() => `forge-multiselect-${l.severity}`), V = k(() => `multiselect__option ${c.value ? " multiselect__option--highlight" : ""} ${S.value ? " multiselect__option--selected" : ""}`), S = k(() => v.value && !(v.value.multiple || !l.showSelectAll || v.value.async) ? !1 : a.modelValue.length === a.options.length), M = k(() => r.value.length > 0), I = k(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (v.value.multiple ? a.modelValue.length > 0 : a.modelValue))), z = () => c.value = !0, f = () => c.value = !1, x = () => {
|
|
1539
|
+
d.value = v.value.multiple ? [] : null, n("update:modelValue", d.value);
|
|
1540
|
+
}, Y = (E) => {
|
|
1541
|
+
n("update:modelValue", l.selectValue ? E.map((D) => D[l.selectValue]) : E);
|
|
1542
|
+
}, Z = (E) => a.modelValue !== null ? a.modelValue.some((D) => v.value.selectValue ? E[l.selectValue] === D : E.id === D.id && E.label === D.label) : !1, ne = () => {
|
|
1543
|
+
S.value ? x() : (d.value = [...a.options], n("update:modelValue", [...a.options]));
|
|
1557
1544
|
};
|
|
1558
|
-
return (
|
|
1559
|
-
y(p(_e),
|
|
1545
|
+
return (E, D) => (i(), b(N, null, [
|
|
1546
|
+
y(p(_e), _(v.value, {
|
|
1560
1547
|
class: [s.value, M.value ? "is-invalid" : ""],
|
|
1561
1548
|
"data-cy": "multiselect",
|
|
1562
1549
|
"onUpdate:modelValue": [
|
|
1563
|
-
|
|
1564
|
-
D[1] || (D[1] = (A) => se(
|
|
1550
|
+
Y,
|
|
1551
|
+
D[1] || (D[1] = (A) => se(d) ? d.value = A : null)
|
|
1565
1552
|
],
|
|
1566
|
-
modelValue: p(
|
|
1553
|
+
modelValue: p(d)
|
|
1567
1554
|
}), te({
|
|
1568
|
-
caret:
|
|
1569
|
-
m("div",
|
|
1570
|
-
I.value ? (
|
|
1555
|
+
caret: g(({ toggle: A }) => [
|
|
1556
|
+
m("div", _t, [
|
|
1557
|
+
I.value ? (i(), w(p(C), {
|
|
1571
1558
|
key: 0,
|
|
1572
1559
|
icon: "bi:x",
|
|
1573
1560
|
class: "my-auto text-black multiselect__clear",
|
|
1574
|
-
onMousedown: D[0] || (D[0] =
|
|
1561
|
+
onMousedown: D[0] || (D[0] = W((K) => x(), ["prevent", "stop"])),
|
|
1575
1562
|
"data-cy": "clear",
|
|
1576
1563
|
height: "18px",
|
|
1577
1564
|
width: "18px"
|
|
1578
|
-
})) :
|
|
1579
|
-
y(p(
|
|
1565
|
+
})) : T("", !0),
|
|
1566
|
+
y(p(C), {
|
|
1580
1567
|
icon: "bi:chevron-down",
|
|
1581
1568
|
onClick: A,
|
|
1582
1569
|
class: "multiselect__arrow"
|
|
1583
1570
|
}, null, 8, ["onClick"])
|
|
1584
1571
|
])
|
|
1585
1572
|
]),
|
|
1586
|
-
tag:
|
|
1587
|
-
m("div",
|
|
1588
|
-
m("div",
|
|
1589
|
-
y(p(
|
|
1573
|
+
tag: g(({ option: A, remove: K }) => [
|
|
1574
|
+
m("div", Pt, [
|
|
1575
|
+
m("div", Mt, h(A.label), 1),
|
|
1576
|
+
y(p(C), {
|
|
1590
1577
|
icon: "bi:x",
|
|
1591
1578
|
class: "my-auto multiselect__tag-icon",
|
|
1592
|
-
onMousedown:
|
|
1579
|
+
onMousedown: W((jl) => o(K, A), ["prevent", "stop"]),
|
|
1593
1580
|
height: "18px",
|
|
1594
1581
|
width: "18px"
|
|
1595
1582
|
}, null, 8, ["onMousedown"])
|
|
1596
1583
|
])
|
|
1597
1584
|
]),
|
|
1598
|
-
default:
|
|
1599
|
-
(
|
|
1585
|
+
default: g(() => [
|
|
1586
|
+
(i(!0), b(N, null, j(E.$slots, (A, K) => $(E.$slots, K, { slot: K })), 256))
|
|
1600
1587
|
]),
|
|
1601
1588
|
_: 2
|
|
1602
1589
|
}, [
|
|
1603
|
-
v.value.multiple &&
|
|
1590
|
+
v.value.multiple && E.showSelectAll && !v.value.async ? {
|
|
1604
1591
|
name: "beforeList",
|
|
1605
|
-
fn:
|
|
1592
|
+
fn: g(() => [
|
|
1606
1593
|
m("li", {
|
|
1607
1594
|
class: "multiselect__element",
|
|
1608
1595
|
onClick: ne,
|
|
1609
|
-
onMouseover:
|
|
1610
|
-
onMouseleave:
|
|
1596
|
+
onMouseover: z,
|
|
1597
|
+
onMouseleave: f,
|
|
1611
1598
|
"data-cy": "toggle-all"
|
|
1612
1599
|
}, [
|
|
1613
1600
|
m("div", {
|
|
1614
|
-
class: B(["d-flex py-1",
|
|
1601
|
+
class: B(["d-flex py-1", V.value])
|
|
1615
1602
|
}, [
|
|
1616
1603
|
m("input", {
|
|
1617
|
-
checked:
|
|
1604
|
+
checked: S.value,
|
|
1618
1605
|
name: "selected",
|
|
1619
1606
|
type: "checkbox",
|
|
1620
1607
|
class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
|
|
@@ -1627,7 +1614,7 @@ const ft = { key: 0 }, gt = {
|
|
|
1627
1614
|
} : void 0,
|
|
1628
1615
|
v.value.multiple ? {
|
|
1629
1616
|
name: "option",
|
|
1630
|
-
fn:
|
|
1617
|
+
fn: g(({ option: A }) => [
|
|
1631
1618
|
m("div", {
|
|
1632
1619
|
class: "d-flex py-1",
|
|
1633
1620
|
"data-cy": A.label
|
|
@@ -1637,14 +1624,14 @@ const ft = { key: 0 }, gt = {
|
|
|
1637
1624
|
name: "selected",
|
|
1638
1625
|
type: "checkbox",
|
|
1639
1626
|
class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
|
|
1640
|
-
}, null, 8,
|
|
1641
|
-
m("div",
|
|
1642
|
-
], 8,
|
|
1627
|
+
}, null, 8, St),
|
|
1628
|
+
m("div", Tt, h(A[v.value.label]), 1)
|
|
1629
|
+
], 8, Vt)
|
|
1643
1630
|
]),
|
|
1644
1631
|
key: "1"
|
|
1645
1632
|
} : void 0
|
|
1646
1633
|
]), 1040, ["class", "modelValue"]),
|
|
1647
|
-
|
|
1634
|
+
H(m("small", {
|
|
1648
1635
|
"data-cy": "error",
|
|
1649
1636
|
class: "invalid-feedback"
|
|
1650
1637
|
}, h(p(u)), 513), [
|
|
@@ -1652,17 +1639,14 @@ const ft = { key: 0 }, gt = {
|
|
|
1652
1639
|
])
|
|
1653
1640
|
], 64));
|
|
1654
1641
|
}
|
|
1655
|
-
}), zt = {
|
|
1656
|
-
key: 0,
|
|
1657
|
-
class: "pl-1"
|
|
1658
|
-
}, Ot = { class: "border alternating-item-list" }, Dt = {
|
|
1642
|
+
}), It = { class: "border alternating-item-list" }, zt = {
|
|
1659
1643
|
key: 0,
|
|
1660
1644
|
class: "p-2 border-top border-bottom",
|
|
1661
1645
|
"data-cy": "title"
|
|
1662
|
-
},
|
|
1646
|
+
}, Ot = { class: "d-inline-block" }, Dt = {
|
|
1663
1647
|
key: 1,
|
|
1664
1648
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1665
|
-
},
|
|
1649
|
+
}, _a = /* @__PURE__ */ F({
|
|
1666
1650
|
__name: "ForgeMultiSelectPreview",
|
|
1667
1651
|
props: /* @__PURE__ */ R({
|
|
1668
1652
|
title: { default: "Selected Items" },
|
|
@@ -1670,7 +1654,8 @@ const ft = { key: 0 }, gt = {
|
|
|
1670
1654
|
height: { default: "200px" },
|
|
1671
1655
|
options: {},
|
|
1672
1656
|
canRemoveItemFromPreview: { type: Boolean, default: !1 },
|
|
1673
|
-
optionsPreviewEmptyText: { default: "No Items Selected." }
|
|
1657
|
+
optionsPreviewEmptyText: { default: "No Items Selected." },
|
|
1658
|
+
multiselectPlaceholder: { default: "Select" }
|
|
1674
1659
|
}, {
|
|
1675
1660
|
modelValue: { default: [] },
|
|
1676
1661
|
modelModifiers: {}
|
|
@@ -1681,8 +1666,8 @@ const ft = { key: 0 }, gt = {
|
|
|
1681
1666
|
l.value = l.value.filter((n) => n.id !== a);
|
|
1682
1667
|
};
|
|
1683
1668
|
return (a, n) => {
|
|
1684
|
-
const d =
|
|
1685
|
-
return
|
|
1669
|
+
const r = re, d = L;
|
|
1670
|
+
return i(), b("div", {
|
|
1686
1671
|
class: B(a.orientation === "column" ? "row" : ""),
|
|
1687
1672
|
"data-cy": "multiselect-preview"
|
|
1688
1673
|
}, [
|
|
@@ -1690,23 +1675,21 @@ const ft = { key: 0 }, gt = {
|
|
|
1690
1675
|
class: B(a.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1691
1676
|
"data-cy": "multiselect-container"
|
|
1692
1677
|
}, [
|
|
1693
|
-
y(
|
|
1678
|
+
y(r, _({
|
|
1694
1679
|
modelValue: l.value,
|
|
1695
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1696
|
-
|
|
1697
|
-
options: t.options
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
default: f(() => [
|
|
1706
|
-
(r(!0), b(N, null, H(a.$slots, (i, u) => $(a.$slots, u, { slot: u })), 256))
|
|
1680
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => l.value = u)
|
|
1681
|
+
}, { ...a.$attrs }, {
|
|
1682
|
+
options: t.options,
|
|
1683
|
+
display: "chip",
|
|
1684
|
+
optionLabel: "label",
|
|
1685
|
+
placeholder: a.multiselectPlaceholder,
|
|
1686
|
+
"data-cy": "multiselect"
|
|
1687
|
+
}), {
|
|
1688
|
+
default: g(() => [
|
|
1689
|
+
(i(!0), b(N, null, j(a.$slots, (u, c) => $(a.$slots, c, { slot: c })), 256))
|
|
1707
1690
|
]),
|
|
1708
1691
|
_: 3
|
|
1709
|
-
}, 16, ["modelValue", "
|
|
1692
|
+
}, 16, ["modelValue", "options", "placeholder"]),
|
|
1710
1693
|
$(a.$slots, "after-multi-select")
|
|
1711
1694
|
], 2),
|
|
1712
1695
|
m("div", {
|
|
@@ -1717,59 +1700,59 @@ const ft = { key: 0 }, gt = {
|
|
|
1717
1700
|
style: we({ height: a.height }),
|
|
1718
1701
|
class: "overflow-auto"
|
|
1719
1702
|
}, [
|
|
1720
|
-
m("div",
|
|
1721
|
-
a.title ? (
|
|
1722
|
-
(
|
|
1723
|
-
key:
|
|
1703
|
+
m("div", It, [
|
|
1704
|
+
a.title ? (i(), b("div", zt, h(a.title), 1)) : T("", !0),
|
|
1705
|
+
(i(!0), b(N, null, j(l.value, (u) => (i(), b("div", {
|
|
1706
|
+
key: u.id,
|
|
1724
1707
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1725
1708
|
}, [
|
|
1726
|
-
$(a.$slots, "list-item", { item:
|
|
1727
|
-
m("span",
|
|
1709
|
+
$(a.$slots, "list-item", { item: u }, () => [
|
|
1710
|
+
m("span", Ot, h(u.shortLabel ? u.shortLabel : u.label), 1)
|
|
1728
1711
|
]),
|
|
1729
|
-
a.canRemoveItemFromPreview ? (
|
|
1712
|
+
a.canRemoveItemFromPreview ? (i(), w(d, {
|
|
1730
1713
|
key: 0,
|
|
1731
1714
|
link: "",
|
|
1732
1715
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1733
|
-
onClick: (
|
|
1716
|
+
onClick: (c) => o(u.id)
|
|
1734
1717
|
}, {
|
|
1735
|
-
default:
|
|
1736
|
-
y(p(
|
|
1718
|
+
default: g(() => [
|
|
1719
|
+
y(p(C), {
|
|
1737
1720
|
icon: "bi:x",
|
|
1738
1721
|
class: "close-icon",
|
|
1739
|
-
"data-cy": `close-icon-${
|
|
1722
|
+
"data-cy": `close-icon-${u.id}`
|
|
1740
1723
|
}, null, 8, ["data-cy"])
|
|
1741
1724
|
]),
|
|
1742
1725
|
_: 2
|
|
1743
|
-
}, 1032, ["onClick"])) :
|
|
1726
|
+
}, 1032, ["onClick"])) : T("", !0)
|
|
1744
1727
|
]))), 128)),
|
|
1745
|
-
l.value.length === 0 ? (
|
|
1728
|
+
l.value.length === 0 ? (i(), b("div", Dt, h(t.optionsPreviewEmptyText), 1)) : T("", !0)
|
|
1746
1729
|
])
|
|
1747
1730
|
], 4)
|
|
1748
1731
|
], 2)
|
|
1749
1732
|
], 2);
|
|
1750
1733
|
};
|
|
1751
1734
|
}
|
|
1752
|
-
}),
|
|
1735
|
+
}), Ut = { class: "d-flex justify-content-between pb-2" }, At = {
|
|
1753
1736
|
"data-cy": "title",
|
|
1754
1737
|
class: "my-auto"
|
|
1755
|
-
},
|
|
1738
|
+
}, Nt = {
|
|
1756
1739
|
"data-cy": "slot",
|
|
1757
1740
|
class: "d-flex align-items-center"
|
|
1758
|
-
},
|
|
1741
|
+
}, Ca = /* @__PURE__ */ F({
|
|
1759
1742
|
__name: "ForgePageHeader",
|
|
1760
1743
|
props: {
|
|
1761
1744
|
title: {}
|
|
1762
1745
|
},
|
|
1763
1746
|
setup(e) {
|
|
1764
1747
|
const t = e;
|
|
1765
|
-
return (l, o) => (
|
|
1766
|
-
m("h3",
|
|
1767
|
-
m("div",
|
|
1748
|
+
return (l, o) => (i(), b("div", Ut, [
|
|
1749
|
+
m("h3", At, h(t.title), 1),
|
|
1750
|
+
m("div", Nt, [
|
|
1768
1751
|
$(l.$slots, "default")
|
|
1769
1752
|
])
|
|
1770
1753
|
]));
|
|
1771
1754
|
}
|
|
1772
|
-
}),
|
|
1755
|
+
}), Lt = { class: "d-flex" }, Et = { "data-cy": "before-slot" }, Rt = { class: "position-relative w-100" }, Ht = { "data-cy": "after-slot" }, be = /* @__PURE__ */ F({
|
|
1773
1756
|
__name: "ForgeDatepicker",
|
|
1774
1757
|
props: /* @__PURE__ */ R({
|
|
1775
1758
|
severity: { default: "primary" },
|
|
@@ -1842,10 +1825,10 @@ const ft = { key: 0 }, gt = {
|
|
|
1842
1825
|
}),
|
|
1843
1826
|
emits: ["update:modelValue"],
|
|
1844
1827
|
setup(e) {
|
|
1845
|
-
const t = e, l = U(e, "modelValue"), { errors: o, errorMessage: a, handleChange: n, handleBlur:
|
|
1828
|
+
const t = e, l = U(e, "modelValue"), { errors: o, errorMessage: a, handleChange: n, handleBlur: r, setValue: d } = G(() => t.name, void 0, {
|
|
1846
1829
|
initialValue: l.value
|
|
1847
1830
|
}), u = () => {
|
|
1848
|
-
|
|
1831
|
+
d(null), l.value = null;
|
|
1849
1832
|
}, c = k(() => o.value.length > 0), v = k(() => ({
|
|
1850
1833
|
day: ({ context: s }) => ({
|
|
1851
1834
|
class: [
|
|
@@ -1937,32 +1920,32 @@ const ft = { key: 0 }, gt = {
|
|
|
1937
1920
|
]
|
|
1938
1921
|
})
|
|
1939
1922
|
}));
|
|
1940
|
-
return (s,
|
|
1941
|
-
const
|
|
1942
|
-
return
|
|
1943
|
-
m("div",
|
|
1944
|
-
m("span",
|
|
1923
|
+
return (s, V) => {
|
|
1924
|
+
const S = Ce;
|
|
1925
|
+
return i(), b(N, null, [
|
|
1926
|
+
m("div", Lt, [
|
|
1927
|
+
m("span", Et, [
|
|
1945
1928
|
$(s.$slots, "before")
|
|
1946
1929
|
]),
|
|
1947
|
-
m("div",
|
|
1948
|
-
y(
|
|
1930
|
+
m("div", Rt, [
|
|
1931
|
+
y(S, _({ ...t, ...s.$attrs }, {
|
|
1949
1932
|
pt: v.value,
|
|
1950
1933
|
modelValue: l.value,
|
|
1951
1934
|
"onUpdate:modelValue": [
|
|
1952
|
-
|
|
1935
|
+
V[0] || (V[0] = (M) => l.value = M),
|
|
1953
1936
|
p(n)
|
|
1954
1937
|
],
|
|
1955
|
-
onBlur: p(
|
|
1938
|
+
onBlur: p(r),
|
|
1956
1939
|
"input-class": { "datepicker-invalid": c.value }
|
|
1957
1940
|
}), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
|
|
1958
|
-
|
|
1941
|
+
H(y(p(C), {
|
|
1959
1942
|
"data-cy": "icon",
|
|
1960
1943
|
icon: "bi:calendar4",
|
|
1961
1944
|
class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
|
|
1962
1945
|
}, null, 8, ["class"]), [
|
|
1963
1946
|
[q, t.showIcon]
|
|
1964
1947
|
]),
|
|
1965
|
-
|
|
1948
|
+
H(y(p(C), {
|
|
1966
1949
|
"data-cy": "icon",
|
|
1967
1950
|
icon: "bi:x",
|
|
1968
1951
|
onClick: u,
|
|
@@ -1971,11 +1954,11 @@ const ft = { key: 0 }, gt = {
|
|
|
1971
1954
|
[q, t.modelValue]
|
|
1972
1955
|
])
|
|
1973
1956
|
]),
|
|
1974
|
-
m("span",
|
|
1957
|
+
m("span", Ht, [
|
|
1975
1958
|
$(s.$slots, "after")
|
|
1976
1959
|
])
|
|
1977
1960
|
]),
|
|
1978
|
-
|
|
1961
|
+
H(m("small", {
|
|
1979
1962
|
"data-cy": "error",
|
|
1980
1963
|
class: "text-invalid"
|
|
1981
1964
|
}, h(p(a)), 513), [
|
|
@@ -1984,7 +1967,7 @@ const ft = { key: 0 }, gt = {
|
|
|
1984
1967
|
], 64);
|
|
1985
1968
|
};
|
|
1986
1969
|
}
|
|
1987
|
-
}),
|
|
1970
|
+
}), Va = /* @__PURE__ */ F({
|
|
1988
1971
|
__name: "ForgeRemainingCharacters",
|
|
1989
1972
|
props: {
|
|
1990
1973
|
maxCount: { default: 300 },
|
|
@@ -1992,11 +1975,11 @@ const ft = { key: 0 }, gt = {
|
|
|
1992
1975
|
},
|
|
1993
1976
|
setup(e) {
|
|
1994
1977
|
const t = e, l = k(() => t.maxCount - t.currentCount);
|
|
1995
|
-
return (o, a) => (
|
|
1978
|
+
return (o, a) => (i(), b("div", {
|
|
1996
1979
|
class: B(l.value < 0 ? "text-danger" : "")
|
|
1997
1980
|
}, "Remaining characters: " + h(l.value), 3));
|
|
1998
1981
|
}
|
|
1999
|
-
}),
|
|
1982
|
+
}), jt = { class: "d-flex justify-content-between" }, Sa = /* @__PURE__ */ F({
|
|
2000
1983
|
__name: "ForgeForm",
|
|
2001
1984
|
props: {
|
|
2002
1985
|
onSubmit: {},
|
|
@@ -2021,78 +2004,78 @@ const ft = { key: 0 }, gt = {
|
|
|
2021
2004
|
}
|
|
2022
2005
|
l.value = !1;
|
|
2023
2006
|
}
|
|
2024
|
-
return (n,
|
|
2025
|
-
const
|
|
2026
|
-
return
|
|
2007
|
+
return (n, r) => {
|
|
2008
|
+
const d = L;
|
|
2009
|
+
return i(), b("form", _(n.$attrs, {
|
|
2027
2010
|
novalidate: "",
|
|
2028
2011
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
2029
|
-
onSubmit:
|
|
2012
|
+
onSubmit: W(a, ["prevent"])
|
|
2030
2013
|
}), [
|
|
2031
|
-
n.hideTitle ?
|
|
2014
|
+
n.hideTitle ? T("", !0) : (i(), b(N, { key: 0 }, [
|
|
2032
2015
|
$(n.$slots, "title", {}, () => [
|
|
2033
2016
|
m("h3", {
|
|
2034
2017
|
class: B(n.titleClass),
|
|
2035
2018
|
"data-cy": "form-title"
|
|
2036
2019
|
}, h(n.title), 3)
|
|
2037
2020
|
]),
|
|
2038
|
-
|
|
2021
|
+
r[1] || (r[1] = m("hr", null, null, -1))
|
|
2039
2022
|
], 64)),
|
|
2040
|
-
o.value.hasError ? (
|
|
2023
|
+
o.value.hasError ? (i(), w(oe, {
|
|
2041
2024
|
key: 1,
|
|
2042
2025
|
severity: "danger",
|
|
2043
2026
|
"data-cy": "error"
|
|
2044
2027
|
}, {
|
|
2045
|
-
default:
|
|
2028
|
+
default: g(() => [
|
|
2046
2029
|
$(n.$slots, "error", {
|
|
2047
2030
|
error: o.value.message
|
|
2048
2031
|
}, () => [
|
|
2049
|
-
|
|
2032
|
+
O(h(o.value.message), 1)
|
|
2050
2033
|
])
|
|
2051
2034
|
]),
|
|
2052
2035
|
_: 3
|
|
2053
|
-
})) :
|
|
2036
|
+
})) : T("", !0),
|
|
2054
2037
|
$(n.$slots, "default"),
|
|
2055
|
-
m("div",
|
|
2038
|
+
m("div", jt, [
|
|
2056
2039
|
$(n.$slots, "cancel", {}, () => [
|
|
2057
|
-
n.hideCancel ?
|
|
2040
|
+
n.hideCancel ? T("", !0) : (i(), w(d, {
|
|
2058
2041
|
key: 0,
|
|
2059
2042
|
"data-cy": "cancel-btn",
|
|
2060
2043
|
type: "reset",
|
|
2061
2044
|
severity: "secondary",
|
|
2062
2045
|
outlined: "",
|
|
2063
|
-
onClick:
|
|
2046
|
+
onClick: r[0] || (r[0] = (u) => n.$emit("cancel"))
|
|
2064
2047
|
}, {
|
|
2065
|
-
default:
|
|
2066
|
-
|
|
2048
|
+
default: g(() => [
|
|
2049
|
+
O(h(n.cancelText), 1)
|
|
2067
2050
|
]),
|
|
2068
2051
|
_: 1
|
|
2069
2052
|
}))
|
|
2070
2053
|
]),
|
|
2071
2054
|
$(n.$slots, "submit", { submit: a }, () => [
|
|
2072
|
-
y(
|
|
2055
|
+
y(d, {
|
|
2073
2056
|
"data-cy": "submit-btn",
|
|
2074
2057
|
type: "submit",
|
|
2075
2058
|
severity: "primary",
|
|
2076
2059
|
class: "ms-auto"
|
|
2077
2060
|
}, {
|
|
2078
|
-
default:
|
|
2079
|
-
|
|
2061
|
+
default: g(() => [
|
|
2062
|
+
O(h(n.submitText), 1)
|
|
2080
2063
|
]),
|
|
2081
2064
|
_: 1
|
|
2082
2065
|
})
|
|
2083
2066
|
])
|
|
2084
2067
|
]),
|
|
2085
|
-
l.value ? (
|
|
2068
|
+
l.value ? (i(), w(ye, {
|
|
2086
2069
|
key: 2,
|
|
2087
2070
|
"data-cy": "loading-spinner"
|
|
2088
|
-
})) :
|
|
2071
|
+
})) : T("", !0)
|
|
2089
2072
|
], 16);
|
|
2090
2073
|
};
|
|
2091
2074
|
}
|
|
2092
|
-
}),
|
|
2075
|
+
}), qt = {
|
|
2093
2076
|
key: 1,
|
|
2094
2077
|
class: "d-flex flex-column w-100"
|
|
2095
|
-
},
|
|
2078
|
+
}, Yt = ["for"], Ta = /* @__PURE__ */ F({
|
|
2096
2079
|
__name: "ForgeFormField",
|
|
2097
2080
|
props: /* @__PURE__ */ R({
|
|
2098
2081
|
name: {},
|
|
@@ -2100,7 +2083,8 @@ const ft = { key: 0 }, gt = {
|
|
|
2100
2083
|
fieldLabel: {},
|
|
2101
2084
|
type: { default: "text" },
|
|
2102
2085
|
mask: { default: "" },
|
|
2103
|
-
placeholder: { default: "" }
|
|
2086
|
+
placeholder: { default: "" },
|
|
2087
|
+
labelWidthClass: { default: "w-25" }
|
|
2104
2088
|
}, {
|
|
2105
2089
|
modelValue: {},
|
|
2106
2090
|
modelModifiers: {}
|
|
@@ -2108,15 +2092,15 @@ const ft = { key: 0 }, gt = {
|
|
|
2108
2092
|
emits: ["update:modelValue"],
|
|
2109
2093
|
setup(e) {
|
|
2110
2094
|
const t = U(e, "modelValue"), l = e, o = (v) => {
|
|
2111
|
-
l.type == "number" ?
|
|
2112
|
-
}, { errors: a, value: n, errorMessage:
|
|
2095
|
+
l.type == "number" ? d(v.value) : d(v);
|
|
2096
|
+
}, { errors: a, value: n, errorMessage: r, handleChange: d, handleBlur: u } = G(() => l.name, void 0, {
|
|
2113
2097
|
initialValue: t.value
|
|
2114
2098
|
}), c = k(() => a.value.length > 0);
|
|
2115
|
-
return
|
|
2099
|
+
return ue(() => n.value, (v) => {
|
|
2116
2100
|
t.value = v;
|
|
2117
2101
|
}, { immediate: !0 }), (v, s) => {
|
|
2118
|
-
const
|
|
2119
|
-
return l.type === "checkbox" ? (
|
|
2102
|
+
const V = Se, S = Ve, M = ie, I = ae, z = re, f = be;
|
|
2103
|
+
return l.type === "checkbox" ? (i(), w(mt, _({
|
|
2120
2104
|
key: 0,
|
|
2121
2105
|
id: l.name,
|
|
2122
2106
|
label: l.fieldLabel
|
|
@@ -2124,16 +2108,16 @@ const ft = { key: 0 }, gt = {
|
|
|
2124
2108
|
name: l.name,
|
|
2125
2109
|
modelValue: t.value,
|
|
2126
2110
|
"onUpdate:modelValue": s[0] || (s[0] = (x) => t.value = x)
|
|
2127
|
-
}), null, 16, ["id", "label", "name", "modelValue"])) : (
|
|
2111
|
+
}), null, 16, ["id", "label", "name", "modelValue"])) : (i(), b("div", qt, [
|
|
2128
2112
|
m("div", {
|
|
2129
2113
|
"data-cy": "input-wrapper",
|
|
2130
2114
|
class: B(["d-flex", l.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
|
|
2131
2115
|
}, [
|
|
2132
2116
|
m("label", {
|
|
2133
2117
|
for: l.name,
|
|
2134
|
-
class: B(l.fieldLabelPosition === "top" ? "mb-1" : "me-2")
|
|
2135
|
-
}, h(l.fieldLabel), 11,
|
|
2136
|
-
l.type === "number" ? (
|
|
2118
|
+
class: B(l.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + l.labelWidthClass)
|
|
2119
|
+
}, h(l.fieldLabel), 11, Yt),
|
|
2120
|
+
l.type === "number" ? (i(), w(p(me), _({
|
|
2137
2121
|
key: 0,
|
|
2138
2122
|
id: l.name
|
|
2139
2123
|
}, v.$attrs, {
|
|
@@ -2143,7 +2127,7 @@ const ft = { key: 0 }, gt = {
|
|
|
2143
2127
|
modelValue: t.value,
|
|
2144
2128
|
"onUpdate:modelValue": s[1] || (s[1] = (x) => t.value = x),
|
|
2145
2129
|
onInput: o
|
|
2146
|
-
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (
|
|
2130
|
+
}), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (i(), w(V, _({
|
|
2147
2131
|
key: 1,
|
|
2148
2132
|
id: l.name
|
|
2149
2133
|
}, v.$attrs, {
|
|
@@ -2153,7 +2137,7 @@ const ft = { key: 0 }, gt = {
|
|
|
2153
2137
|
"onUpdate:modelValue": s[2] || (s[2] = (x) => t.value = x),
|
|
2154
2138
|
onInput: o,
|
|
2155
2139
|
onBlur: p(u)
|
|
2156
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (
|
|
2140
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (i(), w(S, _({
|
|
2157
2141
|
key: 2,
|
|
2158
2142
|
id: l.name
|
|
2159
2143
|
}, v.$attrs, {
|
|
@@ -2164,7 +2148,7 @@ const ft = { key: 0 }, gt = {
|
|
|
2164
2148
|
"onUpdate:modelValue": s[3] || (s[3] = (x) => t.value = x),
|
|
2165
2149
|
onComplete: o,
|
|
2166
2150
|
onBlur: p(u)
|
|
2167
|
-
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (
|
|
2151
|
+
}), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (i(), w(M, _({
|
|
2168
2152
|
key: 3,
|
|
2169
2153
|
id: l.name
|
|
2170
2154
|
}, v.$attrs, {
|
|
@@ -2174,30 +2158,30 @@ const ft = { key: 0 }, gt = {
|
|
|
2174
2158
|
"onUpdate:modelValue": s[4] || (s[4] = (x) => t.value = x),
|
|
2175
2159
|
onInput: o,
|
|
2176
2160
|
onBlur: p(u)
|
|
2177
|
-
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (
|
|
2161
|
+
}), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (i(), w(I, _({ key: 4 }, { ...l, ...v.$attrs }, {
|
|
2178
2162
|
modelValue: t.value,
|
|
2179
2163
|
"onUpdate:modelValue": s[5] || (s[5] = (x) => t.value = x),
|
|
2180
2164
|
class: { "is-invalid": c.value }
|
|
2181
|
-
}), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (
|
|
2165
|
+
}), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (i(), w(z, _({ key: 5 }, { ...l, ...v.$attrs }, {
|
|
2182
2166
|
modelValue: t.value,
|
|
2183
2167
|
"onUpdate:modelValue": s[6] || (s[6] = (x) => t.value = x),
|
|
2184
2168
|
class: { "is-invalid": c.value }
|
|
2185
|
-
}), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (
|
|
2169
|
+
}), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (i(), w(f, _({ key: 6 }, { ...l, ...v.$attrs }, {
|
|
2186
2170
|
modelValue: t.value,
|
|
2187
2171
|
"onUpdate:modelValue": s[7] || (s[7] = (x) => t.value = x),
|
|
2188
2172
|
class: { "is-invalid": c.value }
|
|
2189
|
-
}), null, 16, ["modelValue", "class"])) :
|
|
2173
|
+
}), null, 16, ["modelValue", "class"])) : T("", !0)
|
|
2190
2174
|
], 2),
|
|
2191
|
-
|
|
2175
|
+
H(m("small", {
|
|
2192
2176
|
"data-cy": "error",
|
|
2193
2177
|
class: "invalid-feedback"
|
|
2194
|
-
}, h(p(
|
|
2178
|
+
}, h(p(r)), 513), [
|
|
2195
2179
|
[q, c.value && l.type !== "multiselect" && l.type !== "datepicker"]
|
|
2196
2180
|
])
|
|
2197
2181
|
]));
|
|
2198
2182
|
};
|
|
2199
2183
|
}
|
|
2200
|
-
}),
|
|
2184
|
+
}), Pa = /* @__PURE__ */ F({
|
|
2201
2185
|
__name: "ForgeChips",
|
|
2202
2186
|
props: {
|
|
2203
2187
|
chipSeverity: { default: "primary" },
|
|
@@ -2224,16 +2208,16 @@ const ft = { key: 0 }, gt = {
|
|
|
2224
2208
|
unstyled: { type: Boolean }
|
|
2225
2209
|
},
|
|
2226
2210
|
setup(e) {
|
|
2227
|
-
const t = e, { errors: l, value: o, errorMessage: a } =
|
|
2211
|
+
const t = e, { errors: l, value: o, errorMessage: a } = G(() => t.name, void 0, {
|
|
2228
2212
|
initialValue: t.modelValue
|
|
2229
|
-
}), n = k(() => l.value.length > 0),
|
|
2213
|
+
}), n = k(() => l.value.length > 0), r = k(() => ({
|
|
2230
2214
|
inputtoken: "list-unstyled",
|
|
2231
2215
|
input: "border-0",
|
|
2232
|
-
container: ({ props:
|
|
2216
|
+
container: ({ props: d }) => ({
|
|
2233
2217
|
class: [
|
|
2234
2218
|
"form-control mb-0 d-flex",
|
|
2235
2219
|
{
|
|
2236
|
-
disabled:
|
|
2220
|
+
disabled: d.disabled,
|
|
2237
2221
|
"is-invalid": n.value
|
|
2238
2222
|
}
|
|
2239
2223
|
]
|
|
@@ -2257,16 +2241,16 @@ const ft = { key: 0 }, gt = {
|
|
|
2257
2241
|
]
|
|
2258
2242
|
}
|
|
2259
2243
|
}));
|
|
2260
|
-
return (
|
|
2244
|
+
return (d, u) => {
|
|
2261
2245
|
const c = Te;
|
|
2262
|
-
return
|
|
2263
|
-
y(c,
|
|
2264
|
-
pt:
|
|
2246
|
+
return i(), b(N, null, [
|
|
2247
|
+
y(c, _({ ...t, ...d.$attrs }, {
|
|
2248
|
+
pt: r.value,
|
|
2265
2249
|
"model-value": p(o),
|
|
2266
2250
|
"onUpdate:modelValue": u[0] || (u[0] = (v) => se(o) ? o.value = v : null)
|
|
2267
2251
|
}), {
|
|
2268
|
-
removetokenicon:
|
|
2269
|
-
|
|
2252
|
+
removetokenicon: g(({ removeCallback: v }) => [
|
|
2253
|
+
H(y(p(C), {
|
|
2270
2254
|
icon: "bi:x",
|
|
2271
2255
|
class: "cursor-pointer",
|
|
2272
2256
|
onClick: v
|
|
@@ -2276,7 +2260,7 @@ const ft = { key: 0 }, gt = {
|
|
|
2276
2260
|
]),
|
|
2277
2261
|
_: 1
|
|
2278
2262
|
}, 16, ["pt", "model-value"]),
|
|
2279
|
-
|
|
2263
|
+
H(m("small", {
|
|
2280
2264
|
"data-cy": "error",
|
|
2281
2265
|
class: "text-invalid"
|
|
2282
2266
|
}, h(p(a)), 513), [
|
|
@@ -2327,17 +2311,17 @@ const ft = { key: 0 }, gt = {
|
|
|
2327
2311
|
class: [a.value, l.value, o.value]
|
|
2328
2312
|
}
|
|
2329
2313
|
}));
|
|
2330
|
-
return (
|
|
2314
|
+
return (r, d) => {
|
|
2331
2315
|
const u = Pe;
|
|
2332
|
-
return
|
|
2333
|
-
default:
|
|
2334
|
-
$(
|
|
2316
|
+
return i(), w(u, _({ ...r.$attrs, ...t }, { pt: n.value }), {
|
|
2317
|
+
default: g(() => [
|
|
2318
|
+
$(r.$slots, "default")
|
|
2335
2319
|
]),
|
|
2336
2320
|
_: 3
|
|
2337
2321
|
}, 16, ["pt"]);
|
|
2338
2322
|
};
|
|
2339
2323
|
}
|
|
2340
|
-
}),
|
|
2324
|
+
}), Gt = { class: "value text-white w-100 text-center" }, Ma = /* @__PURE__ */ F({
|
|
2341
2325
|
__name: "ForgeStatWidget",
|
|
2342
2326
|
props: {
|
|
2343
2327
|
size: { default: "md" },
|
|
@@ -2345,18 +2329,18 @@ const ft = { key: 0 }, gt = {
|
|
|
2345
2329
|
},
|
|
2346
2330
|
setup(e) {
|
|
2347
2331
|
const t = e;
|
|
2348
|
-
return (l, o) => (
|
|
2332
|
+
return (l, o) => (i(), b("div", _(l.$attrs, {
|
|
2349
2333
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2350
2334
|
}), [
|
|
2351
|
-
m("span",
|
|
2335
|
+
m("span", Gt, [
|
|
2352
2336
|
$(l.$slots, "default")
|
|
2353
2337
|
])
|
|
2354
2338
|
], 16));
|
|
2355
2339
|
}
|
|
2356
|
-
}),
|
|
2340
|
+
}), Kt = {
|
|
2357
2341
|
class: "d-flex flex-column align-items-center",
|
|
2358
2342
|
"data-cy": "stepper"
|
|
2359
|
-
},
|
|
2343
|
+
}, Zt = { class: "d-flex align-items-center justify-content-center w-100" }, Ia = /* @__PURE__ */ F({
|
|
2360
2344
|
__name: "ForgeStepper",
|
|
2361
2345
|
props: {
|
|
2362
2346
|
currentStep: { default: 0 },
|
|
@@ -2377,13 +2361,13 @@ const ft = { key: 0 }, gt = {
|
|
|
2377
2361
|
a.value--;
|
|
2378
2362
|
while (o.model[a.value].disabled);
|
|
2379
2363
|
l("update:currentStep", a.value);
|
|
2380
|
-
},
|
|
2364
|
+
}, r = () => {
|
|
2381
2365
|
if (a.value < o.model.length - 1)
|
|
2382
2366
|
do
|
|
2383
2367
|
a.value++;
|
|
2384
2368
|
while (o.model[a.value].disabled);
|
|
2385
2369
|
l("update:currentStep", a.value);
|
|
2386
|
-
},
|
|
2370
|
+
}, d = k(() => {
|
|
2387
2371
|
const c = o.model.findIndex((v) => !v.disabled);
|
|
2388
2372
|
return !(c < a.value && c > -1);
|
|
2389
2373
|
}), u = k(() => ({
|
|
@@ -2423,25 +2407,25 @@ const ft = { key: 0 }, gt = {
|
|
|
2423
2407
|
})
|
|
2424
2408
|
}));
|
|
2425
2409
|
return (c, v) => {
|
|
2426
|
-
const s =
|
|
2427
|
-
return
|
|
2428
|
-
m("div",
|
|
2410
|
+
const s = L, V = Ie, S = Me;
|
|
2411
|
+
return i(), b("div", Kt, [
|
|
2412
|
+
m("div", Zt, [
|
|
2429
2413
|
y(s, {
|
|
2430
2414
|
severity: o.severity,
|
|
2431
|
-
disabled:
|
|
2415
|
+
disabled: d.value,
|
|
2432
2416
|
onClick: n,
|
|
2433
2417
|
class: "rounded-circle py-2 me-4",
|
|
2434
2418
|
"data-cy": "back-button"
|
|
2435
2419
|
}, {
|
|
2436
|
-
default:
|
|
2437
|
-
y(p(
|
|
2420
|
+
default: g(() => [
|
|
2421
|
+
y(p(C), {
|
|
2438
2422
|
icon: "bi:chevron-left",
|
|
2439
2423
|
class: "mb-1"
|
|
2440
2424
|
})
|
|
2441
2425
|
]),
|
|
2442
2426
|
_: 1
|
|
2443
2427
|
}, 8, ["severity", "disabled"]),
|
|
2444
|
-
y(
|
|
2428
|
+
y(V, {
|
|
2445
2429
|
"active-step": a.value,
|
|
2446
2430
|
"onUpdate:activeStep": v[0] || (v[0] = (M) => a.value = M),
|
|
2447
2431
|
model: o.model,
|
|
@@ -2449,37 +2433,37 @@ const ft = { key: 0 }, gt = {
|
|
|
2449
2433
|
readonly: !1
|
|
2450
2434
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2451
2435
|
]),
|
|
2452
|
-
y(
|
|
2453
|
-
(
|
|
2436
|
+
y(S, { class: "m-4" }),
|
|
2437
|
+
(i(!0), b(N, null, j(o.model, (M, I) => (i(), b("div", {
|
|
2454
2438
|
key: I,
|
|
2455
2439
|
class: "w-100"
|
|
2456
2440
|
}, [
|
|
2457
2441
|
I === a.value ? $(c.$slots, M.key ?? M.label, {
|
|
2458
2442
|
key: 0,
|
|
2459
|
-
nextStep:
|
|
2443
|
+
nextStep: r,
|
|
2460
2444
|
previousStep: n
|
|
2461
2445
|
}, () => [
|
|
2462
2446
|
y(oe, {
|
|
2463
2447
|
severity: "info",
|
|
2464
2448
|
"data-cy": "alert"
|
|
2465
2449
|
}, {
|
|
2466
|
-
default:
|
|
2467
|
-
|
|
2450
|
+
default: g(() => [
|
|
2451
|
+
O(" Please add Slot Content for the key " + h(M.key ?? M.label) + " ", 1),
|
|
2468
2452
|
y(s, {
|
|
2469
2453
|
severity: "primary",
|
|
2470
2454
|
label: "Next",
|
|
2471
|
-
onClick:
|
|
2455
|
+
onClick: r,
|
|
2472
2456
|
class: "ms-2"
|
|
2473
2457
|
})
|
|
2474
2458
|
]),
|
|
2475
2459
|
_: 2
|
|
2476
2460
|
}, 1024)
|
|
2477
|
-
]) :
|
|
2461
|
+
]) : T("", !0)
|
|
2478
2462
|
]))), 128))
|
|
2479
2463
|
]);
|
|
2480
2464
|
};
|
|
2481
2465
|
}
|
|
2482
|
-
}),
|
|
2466
|
+
}), Jt = { class: "p-4 text-wrap w-100" }, Xt = { class: "p-4 text-wrap w-100" }, za = /* @__PURE__ */ F({
|
|
2483
2467
|
__name: "ForgeTile",
|
|
2484
2468
|
props: {
|
|
2485
2469
|
severity: { default: "primary" },
|
|
@@ -2490,30 +2474,30 @@ const ft = { key: 0 }, gt = {
|
|
|
2490
2474
|
setup(e) {
|
|
2491
2475
|
const t = e, l = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), o = k(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
|
|
2492
2476
|
return (a, n) => {
|
|
2493
|
-
const
|
|
2494
|
-
return t.clickable ? (
|
|
2477
|
+
const r = L;
|
|
2478
|
+
return t.clickable ? (i(), w(r, {
|
|
2495
2479
|
key: 0,
|
|
2496
2480
|
class: B(["d-flex w-100 p-0 text-body", l.value]),
|
|
2497
2481
|
severity: t.severity,
|
|
2498
2482
|
unstyled: "",
|
|
2499
2483
|
"data-cy": "button-tile"
|
|
2500
2484
|
}, {
|
|
2501
|
-
default:
|
|
2502
|
-
m("div",
|
|
2485
|
+
default: g(() => [
|
|
2486
|
+
m("div", Jt, [
|
|
2503
2487
|
$(a.$slots, "default", {}, () => [
|
|
2504
|
-
n[0] || (n[0] =
|
|
2488
|
+
n[0] || (n[0] = O("Tile Content"))
|
|
2505
2489
|
])
|
|
2506
2490
|
])
|
|
2507
2491
|
]),
|
|
2508
2492
|
_: 3
|
|
2509
|
-
}, 8, ["severity", "class"])) : (
|
|
2493
|
+
}, 8, ["severity", "class"])) : (i(), b("div", {
|
|
2510
2494
|
key: 1,
|
|
2511
2495
|
class: B(["d-flex w-100", o.value]),
|
|
2512
2496
|
"data-cy": "tile"
|
|
2513
2497
|
}, [
|
|
2514
|
-
m("div",
|
|
2498
|
+
m("div", Xt, [
|
|
2515
2499
|
$(a.$slots, "default", {}, () => [
|
|
2516
|
-
n[1] || (n[1] =
|
|
2500
|
+
n[1] || (n[1] = O("Tile Content"))
|
|
2517
2501
|
])
|
|
2518
2502
|
])
|
|
2519
2503
|
], 2));
|
|
@@ -2523,13 +2507,13 @@ const ft = { key: 0 }, gt = {
|
|
|
2523
2507
|
function X(e, t) {
|
|
2524
2508
|
return e > 1 ? `${t}s` : t;
|
|
2525
2509
|
}
|
|
2526
|
-
const
|
|
2510
|
+
const Qt = {
|
|
2527
2511
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2528
2512
|
"data-cy": "pagination-header"
|
|
2529
|
-
},
|
|
2513
|
+
}, el = { class: "ms-2" }, tl = { key: 0 }, ll = {
|
|
2530
2514
|
class: "w-auto",
|
|
2531
2515
|
"data-cy": "total"
|
|
2532
|
-
},
|
|
2516
|
+
}, al = /* @__PURE__ */ F({
|
|
2533
2517
|
__name: "ForgePaginationHeader",
|
|
2534
2518
|
props: {
|
|
2535
2519
|
total: {},
|
|
@@ -2538,32 +2522,32 @@ const tl = {
|
|
|
2538
2522
|
},
|
|
2539
2523
|
emits: ["update:perPage"],
|
|
2540
2524
|
setup(e, { emit: t }) {
|
|
2541
|
-
const l = t, o = e, a = (
|
|
2542
|
-
l("update:perPage",
|
|
2525
|
+
const l = t, o = e, a = (r) => {
|
|
2526
|
+
l("update:perPage", r.value);
|
|
2543
2527
|
}, n = k(() => {
|
|
2544
|
-
const
|
|
2545
|
-
return `${
|
|
2528
|
+
const r = Math.ceil(o.total / o.perPage);
|
|
2529
|
+
return `${r} ${X(r, "page")}`;
|
|
2546
2530
|
});
|
|
2547
|
-
return (
|
|
2548
|
-
|
|
2549
|
-
m("div",
|
|
2531
|
+
return (r, d) => (i(), b("div", Qt, [
|
|
2532
|
+
d[2] || (d[2] = O(" Number of results per page ")),
|
|
2533
|
+
m("div", el, [
|
|
2550
2534
|
y(p(ae), {
|
|
2551
2535
|
options: o.pageSizes,
|
|
2552
2536
|
"model-value": o.perPage,
|
|
2553
2537
|
class: "page-size",
|
|
2554
|
-
onChange:
|
|
2538
|
+
onChange: d[0] || (d[0] = (u) => a(u))
|
|
2555
2539
|
}, null, 8, ["options", "model-value"])
|
|
2556
2540
|
]),
|
|
2557
|
-
o.total ? (
|
|
2558
|
-
|
|
2559
|
-
m("span",
|
|
2560
|
-
])) :
|
|
2541
|
+
o.total ? (i(), b("div", tl, [
|
|
2542
|
+
d[1] || (d[1] = m("span", { class: "mx-2" }, "|", -1)),
|
|
2543
|
+
m("span", ll, h(o.total) + " " + h(p(X)(o.total, "result")) + " across " + h(n.value), 1)
|
|
2544
|
+
])) : T("", !0)
|
|
2561
2545
|
]));
|
|
2562
2546
|
}
|
|
2563
|
-
}),
|
|
2547
|
+
}), ol = { class: "position-relative" }, nl = { "data-cy": "above-table-slot" }, sl = { class: "d-flex w-100" }, il = {
|
|
2564
2548
|
class: "mx-auto",
|
|
2565
2549
|
"data-cy": "empty-message"
|
|
2566
|
-
},
|
|
2550
|
+
}, rl = { class: "d-flex" }, dl = { class: "d-flex align-items-end mb-2" }, ul = { key: 0 }, cl = { class: "ms-auto" }, Oa = /* @__PURE__ */ F({
|
|
2567
2551
|
__name: "ForgeTable",
|
|
2568
2552
|
props: {
|
|
2569
2553
|
value: {},
|
|
@@ -2645,16 +2629,16 @@ const tl = {
|
|
|
2645
2629
|
},
|
|
2646
2630
|
emits: ["update:filters", "update:tableContext", "sort", "page"],
|
|
2647
2631
|
setup(e, { emit: t }) {
|
|
2648
|
-
const l = t, o = e, a = P(), n = P([10, 20, 50, 100]),
|
|
2632
|
+
const l = t, o = e, a = P(), n = P([5, 10, 20, 50, 100]), r = P(5), d = P({
|
|
2649
2633
|
filters: o.filters,
|
|
2650
|
-
perPage:
|
|
2634
|
+
perPage: r.value,
|
|
2651
2635
|
page: 0,
|
|
2652
2636
|
sortDirection: "None",
|
|
2653
2637
|
sortField: "",
|
|
2654
2638
|
total: o.totalRecords ?? o.value.length
|
|
2655
2639
|
}), u = k(() => o.totalRecords ?? o.value.length), c = k(() => {
|
|
2656
|
-
const
|
|
2657
|
-
return `${
|
|
2640
|
+
const f = Math.ceil(u.value / r.value);
|
|
2641
|
+
return `${f} ${X(f, "page")}`;
|
|
2658
2642
|
}), v = k(() => ({
|
|
2659
2643
|
thead: () => ({
|
|
2660
2644
|
class: [
|
|
@@ -2681,117 +2665,117 @@ const tl = {
|
|
|
2681
2665
|
if (o.clearAll)
|
|
2682
2666
|
o.clearAll();
|
|
2683
2667
|
else
|
|
2684
|
-
for (const
|
|
2685
|
-
typeof o.filters[
|
|
2668
|
+
for (const f in o.filters)
|
|
2669
|
+
typeof o.filters[f] == "string" ? o.filters[f] = "" : o.filters[f].value = null;
|
|
2686
2670
|
M(o.filters);
|
|
2687
|
-
},
|
|
2671
|
+
}, V = () => {
|
|
2688
2672
|
a.value.exportCSV();
|
|
2689
|
-
},
|
|
2673
|
+
}, S = (f) => {
|
|
2690
2674
|
var x;
|
|
2691
|
-
|
|
2692
|
-
}, M = (
|
|
2693
|
-
|
|
2694
|
-
}, I = (
|
|
2695
|
-
|
|
2696
|
-
},
|
|
2697
|
-
|
|
2675
|
+
d.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", d.value.sortField = ((x = f.sortField) == null ? void 0 : x.toString()) ?? "", l("update:tableContext", d.value), l("sort", f);
|
|
2676
|
+
}, M = (f) => {
|
|
2677
|
+
d.value.filters = f, l("update:tableContext", d.value), l("update:filters", f);
|
|
2678
|
+
}, I = (f) => {
|
|
2679
|
+
d.value.page = f.page, l("update:tableContext", d.value), l("page", f);
|
|
2680
|
+
}, z = () => {
|
|
2681
|
+
d.value.perPage = r.value, l("update:tableContext", d.value);
|
|
2698
2682
|
};
|
|
2699
|
-
return
|
|
2700
|
-
|
|
2701
|
-
}, { deep: !0 }), le(() => l("update:tableContext",
|
|
2702
|
-
m("span",
|
|
2703
|
-
$(
|
|
2683
|
+
return ue(() => o.filters, (f) => {
|
|
2684
|
+
d.value.filters = f, l("update:tableContext", d.value);
|
|
2685
|
+
}, { deep: !0 }), le(() => l("update:tableContext", d.value)), (f, x) => (i(), b("div", ol, [
|
|
2686
|
+
m("span", nl, [
|
|
2687
|
+
$(f.$slots, "above-table")
|
|
2704
2688
|
]),
|
|
2705
|
-
y(p(ze),
|
|
2689
|
+
y(p(ze), _({
|
|
2706
2690
|
class: ["w-100", `${o.severity ? `forge-table-${o.severity}` : ""}`]
|
|
2707
|
-
}, { ...o, ...
|
|
2691
|
+
}, { ...o, ...f.$attrs }, {
|
|
2708
2692
|
pt: v.value,
|
|
2709
|
-
rows:
|
|
2693
|
+
rows: r.value,
|
|
2710
2694
|
"total-records": u.value,
|
|
2711
2695
|
"filter-display": o.filters ? "row" : void 0,
|
|
2712
2696
|
ref_key: "forgeTable",
|
|
2713
2697
|
ref: a,
|
|
2714
2698
|
"data-cy": "table",
|
|
2715
2699
|
"onUpdate:filters": M,
|
|
2716
|
-
onSort:
|
|
2700
|
+
onSort: S,
|
|
2717
2701
|
onPage: I
|
|
2718
2702
|
}), te({
|
|
2719
|
-
empty:
|
|
2720
|
-
m("div",
|
|
2721
|
-
m("h5",
|
|
2703
|
+
empty: g(() => [
|
|
2704
|
+
m("div", sl, [
|
|
2705
|
+
m("h5", il, h(f.emptyMessage ?? "No items Found."), 1)
|
|
2722
2706
|
])
|
|
2723
2707
|
]),
|
|
2724
|
-
header:
|
|
2708
|
+
header: g(() => [
|
|
2725
2709
|
m("div", {
|
|
2726
2710
|
class: B(o.loading ? "opacity-50" : "")
|
|
2727
2711
|
}, [
|
|
2728
|
-
m("div",
|
|
2729
|
-
m("div",
|
|
2730
|
-
|
|
2731
|
-
y(
|
|
2712
|
+
m("div", rl, [
|
|
2713
|
+
m("div", dl, [
|
|
2714
|
+
f.paginator && !f.legacyPaginationFooter ? (i(), b("span", ul, [
|
|
2715
|
+
y(al, {
|
|
2732
2716
|
total: u.value,
|
|
2733
2717
|
"page-sizes": n.value,
|
|
2734
|
-
"per-page":
|
|
2718
|
+
"per-page": r.value,
|
|
2735
2719
|
"onUpdate:perPage": [
|
|
2736
|
-
x[0] || (x[0] = (
|
|
2737
|
-
|
|
2720
|
+
x[0] || (x[0] = (Y) => r.value = Y),
|
|
2721
|
+
z
|
|
2738
2722
|
]
|
|
2739
2723
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2740
|
-
])) :
|
|
2724
|
+
])) : T("", !0)
|
|
2741
2725
|
]),
|
|
2742
|
-
m("div",
|
|
2743
|
-
|
|
2726
|
+
m("div", cl, [
|
|
2727
|
+
f.showClearButton ? (i(), w(p(L), {
|
|
2744
2728
|
key: 0,
|
|
2745
2729
|
outlined: "",
|
|
2746
|
-
class: B(
|
|
2730
|
+
class: B(f.showExporterButton ? "me-2" : ""),
|
|
2747
2731
|
onClick: s,
|
|
2748
2732
|
"data-cy": "clear-all"
|
|
2749
2733
|
}, {
|
|
2750
|
-
default:
|
|
2751
|
-
y(p(
|
|
2734
|
+
default: g(() => [
|
|
2735
|
+
y(p(C), {
|
|
2752
2736
|
icon: "bi:funnel-fill",
|
|
2753
2737
|
width: "24",
|
|
2754
2738
|
height: "24"
|
|
2755
2739
|
}),
|
|
2756
|
-
x[2] || (x[2] =
|
|
2740
|
+
x[2] || (x[2] = O(" Clear "))
|
|
2757
2741
|
]),
|
|
2758
2742
|
_: 1
|
|
2759
|
-
}, 8, ["class"])) :
|
|
2760
|
-
|
|
2743
|
+
}, 8, ["class"])) : T("", !0),
|
|
2744
|
+
f.showExporterButton ? (i(), w(p(L), {
|
|
2761
2745
|
key: 1,
|
|
2762
2746
|
outlined: "",
|
|
2763
|
-
onClick:
|
|
2747
|
+
onClick: V,
|
|
2764
2748
|
"data-cy": "exporter"
|
|
2765
2749
|
}, {
|
|
2766
|
-
default:
|
|
2767
|
-
y(p(
|
|
2750
|
+
default: g(() => [
|
|
2751
|
+
y(p(C), {
|
|
2768
2752
|
icon: "typcn:export",
|
|
2769
2753
|
width: "24",
|
|
2770
2754
|
height: "24"
|
|
2771
2755
|
}),
|
|
2772
|
-
x[3] || (x[3] =
|
|
2756
|
+
x[3] || (x[3] = O(" Export "))
|
|
2773
2757
|
]),
|
|
2774
2758
|
_: 1
|
|
2775
|
-
})) :
|
|
2776
|
-
$(
|
|
2759
|
+
})) : T("", !0),
|
|
2760
|
+
$(f.$slots, "column-customiser")
|
|
2777
2761
|
])
|
|
2778
2762
|
])
|
|
2779
2763
|
], 2)
|
|
2780
2764
|
]),
|
|
2781
|
-
default:
|
|
2782
|
-
$(
|
|
2765
|
+
default: g(() => [
|
|
2766
|
+
$(f.$slots, "default")
|
|
2783
2767
|
]),
|
|
2784
2768
|
_: 2
|
|
2785
2769
|
}, [
|
|
2786
|
-
|
|
2770
|
+
j(f.$slots, (Y, Z) => ({
|
|
2787
2771
|
name: Z,
|
|
2788
|
-
fn:
|
|
2789
|
-
$(
|
|
2772
|
+
fn: g((ne) => [
|
|
2773
|
+
$(f.$slots, Z, Q(ee(ne || {})))
|
|
2790
2774
|
])
|
|
2791
2775
|
})),
|
|
2792
|
-
|
|
2776
|
+
f.legacyPaginationFooter ? {
|
|
2793
2777
|
name: "paginatorstart",
|
|
2794
|
-
fn:
|
|
2778
|
+
fn: g(() => [
|
|
2795
2779
|
m("span", {
|
|
2796
2780
|
class: B(["d-flex", o.loading ? "opacity-50" : ""]),
|
|
2797
2781
|
"data-cy": "legacy-page-size"
|
|
@@ -2799,18 +2783,18 @@ const tl = {
|
|
|
2799
2783
|
x[4] || (x[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
|
|
2800
2784
|
y(p(ae), {
|
|
2801
2785
|
options: n.value,
|
|
2802
|
-
modelValue:
|
|
2803
|
-
"onUpdate:modelValue": x[1] || (x[1] = (
|
|
2786
|
+
modelValue: r.value,
|
|
2787
|
+
"onUpdate:modelValue": x[1] || (x[1] = (Y) => r.value = Y),
|
|
2804
2788
|
class: "ms-2",
|
|
2805
|
-
onClick:
|
|
2789
|
+
onClick: z
|
|
2806
2790
|
}, null, 8, ["options", "modelValue"])
|
|
2807
2791
|
], 2)
|
|
2808
2792
|
]),
|
|
2809
2793
|
key: "0"
|
|
2810
2794
|
} : void 0,
|
|
2811
|
-
|
|
2795
|
+
f.legacyPaginationFooter ? {
|
|
2812
2796
|
name: "paginatorend",
|
|
2813
|
-
fn:
|
|
2797
|
+
fn: g(() => [
|
|
2814
2798
|
m("span", {
|
|
2815
2799
|
"data-cy": "legacy-total",
|
|
2816
2800
|
class: B(o.loading ? "opacity-50" : "")
|
|
@@ -2821,7 +2805,7 @@ const tl = {
|
|
|
2821
2805
|
]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
|
|
2822
2806
|
]));
|
|
2823
2807
|
}
|
|
2824
|
-
}),
|
|
2808
|
+
}), ml = { class: "d-flex position-relative" }, pl = { class: "d-flex w-100" }, Da = /* @__PURE__ */ F({
|
|
2825
2809
|
__name: "ForgeFilterHeader",
|
|
2826
2810
|
props: /* @__PURE__ */ R({
|
|
2827
2811
|
dataType: {},
|
|
@@ -2839,32 +2823,32 @@ const tl = {
|
|
|
2839
2823
|
const t = U(e, "modelValue"), l = (a, n) => {
|
|
2840
2824
|
if (!a || Array.isArray(a) && a.length === 0)
|
|
2841
2825
|
return n;
|
|
2842
|
-
const
|
|
2826
|
+
const r = (d) => {
|
|
2843
2827
|
var c;
|
|
2844
2828
|
const u = (c = e.dropdownOptions) == null ? void 0 : c.find(
|
|
2845
|
-
(v) => e.optionValue ? v[e.optionValue] ===
|
|
2829
|
+
(v) => e.optionValue ? v[e.optionValue] === d : Object.keys(v).every((s) => d.hasOwnProperty(s) && v[s] === d[s])
|
|
2846
2830
|
);
|
|
2847
2831
|
return e.optionLabel ? u[e.optionLabel] : u;
|
|
2848
2832
|
};
|
|
2849
|
-
return Array.isArray(a) ? a.map(
|
|
2833
|
+
return Array.isArray(a) ? a.map(r).join(", ") : r(a);
|
|
2850
2834
|
}, o = () => {
|
|
2851
2835
|
e.clearFilter ? e.clearFilter() : t.value = null;
|
|
2852
2836
|
};
|
|
2853
2837
|
return (a, n) => {
|
|
2854
|
-
const
|
|
2855
|
-
return
|
|
2856
|
-
a.dataType === "numeric" ? (
|
|
2838
|
+
const r = me, d = L;
|
|
2839
|
+
return i(), b("div", ml, [
|
|
2840
|
+
a.dataType === "numeric" ? (i(), w(r, _({
|
|
2857
2841
|
key: 0,
|
|
2858
2842
|
modelValue: t.value,
|
|
2859
2843
|
"onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
|
|
2860
|
-
}, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (
|
|
2844
|
+
}, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(), w(be, _({
|
|
2861
2845
|
key: 1,
|
|
2862
2846
|
modelValue: t.value,
|
|
2863
2847
|
"onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
|
|
2864
2848
|
}, a.$attrs, {
|
|
2865
2849
|
"show-icon": !1,
|
|
2866
2850
|
"show-on-focus": !0
|
|
2867
|
-
}), null, 16, ["modelValue"])) : a.dataType === "select" ? (
|
|
2851
|
+
}), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), w(p(ae), _({
|
|
2868
2852
|
key: 2,
|
|
2869
2853
|
modelValue: t.value,
|
|
2870
2854
|
"onUpdate:modelValue": n[2] || (n[2] = (u) => t.value = u)
|
|
@@ -2873,19 +2857,19 @@ const tl = {
|
|
|
2873
2857
|
"option-value": a.optionValue,
|
|
2874
2858
|
"option-label": a.optionLabel
|
|
2875
2859
|
}), {
|
|
2876
|
-
value:
|
|
2877
|
-
m("div",
|
|
2860
|
+
value: g(({ value: u, placeholder: c }) => [
|
|
2861
|
+
m("div", pl, [
|
|
2878
2862
|
m("span", {
|
|
2879
2863
|
class: B({ "filter-placeholder": u === null })
|
|
2880
2864
|
}, h(l(u, c)), 3),
|
|
2881
|
-
a.showClearButton && t.value !== null ? (
|
|
2865
|
+
a.showClearButton && t.value !== null ? (i(), w(d, {
|
|
2882
2866
|
key: 0,
|
|
2883
|
-
onClick:
|
|
2867
|
+
onClick: W(o, ["prevent"]),
|
|
2884
2868
|
size: "small",
|
|
2885
2869
|
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2886
2870
|
}, {
|
|
2887
|
-
default:
|
|
2888
|
-
y(p(
|
|
2871
|
+
default: g(() => [
|
|
2872
|
+
y(p(C), {
|
|
2889
2873
|
icon: "bi:x",
|
|
2890
2874
|
width: "1rem",
|
|
2891
2875
|
height: "1rem",
|
|
@@ -2893,11 +2877,11 @@ const tl = {
|
|
|
2893
2877
|
})
|
|
2894
2878
|
]),
|
|
2895
2879
|
_: 1
|
|
2896
|
-
})) :
|
|
2880
|
+
})) : T("", !0)
|
|
2897
2881
|
])
|
|
2898
2882
|
]),
|
|
2899
2883
|
_: 1
|
|
2900
|
-
}, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (
|
|
2884
|
+
}, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (i(), w(p(re), _({
|
|
2901
2885
|
key: 3,
|
|
2902
2886
|
modelValue: t.value,
|
|
2903
2887
|
"onUpdate:modelValue": n[3] || (n[3] = (u) => t.value = u)
|
|
@@ -2906,45 +2890,21 @@ const tl = {
|
|
|
2906
2890
|
showToggleAll: !1,
|
|
2907
2891
|
"option-label": a.optionLabel,
|
|
2908
2892
|
"option-value": a.optionValue,
|
|
2909
|
-
filter: ""
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
m("div", bl, [
|
|
2913
|
-
m("span", {
|
|
2914
|
-
class: B({ "filter-placeholder": (u == null ? void 0 : u.length) === 0 || u === null })
|
|
2915
|
-
}, h(l(u, c)), 3),
|
|
2916
|
-
a.showClearButton && (u == null ? void 0 : u.length) > 0 ? (r(), w(i, {
|
|
2917
|
-
key: 0,
|
|
2918
|
-
onClick: Y(o, ["prevent"]),
|
|
2919
|
-
size: "small",
|
|
2920
|
-
class: "bg-transparent border-0 ms-auto p-0 pe-1"
|
|
2921
|
-
}, {
|
|
2922
|
-
default: f(() => [
|
|
2923
|
-
y(p(_), {
|
|
2924
|
-
icon: "bi:x",
|
|
2925
|
-
width: "1rem",
|
|
2926
|
-
height: "1rem",
|
|
2927
|
-
class: "text-black"
|
|
2928
|
-
})
|
|
2929
|
-
]),
|
|
2930
|
-
_: 1
|
|
2931
|
-
})) : C("", !0)
|
|
2932
|
-
])
|
|
2933
|
-
]),
|
|
2934
|
-
_: 1
|
|
2935
|
-
}, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), w(p(ie), V({
|
|
2893
|
+
filter: "",
|
|
2894
|
+
display: "chip"
|
|
2895
|
+
}), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (i(), w(p(ie), _({
|
|
2936
2896
|
key: 4,
|
|
2937
2897
|
modelValue: t.value,
|
|
2938
2898
|
"onUpdate:modelValue": n[4] || (n[4] = (u) => t.value = u)
|
|
2939
2899
|
}, a.$attrs), null, 16, ["modelValue"])),
|
|
2940
|
-
a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (
|
|
2900
|
+
a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), w(d, {
|
|
2941
2901
|
key: 5,
|
|
2942
|
-
onClick:
|
|
2902
|
+
onClick: W(o, ["prevent"]),
|
|
2943
2903
|
size: "small",
|
|
2944
2904
|
class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
|
|
2945
2905
|
}, {
|
|
2946
|
-
default:
|
|
2947
|
-
y(p(
|
|
2906
|
+
default: g(() => [
|
|
2907
|
+
y(p(C), {
|
|
2948
2908
|
icon: "bi:x",
|
|
2949
2909
|
width: "1rem",
|
|
2950
2910
|
height: "1rem",
|
|
@@ -2952,7 +2912,7 @@ const tl = {
|
|
|
2952
2912
|
})
|
|
2953
2913
|
]),
|
|
2954
2914
|
_: 1
|
|
2955
|
-
})) :
|
|
2915
|
+
})) : T("", !0)
|
|
2956
2916
|
]);
|
|
2957
2917
|
};
|
|
2958
2918
|
}
|
|
@@ -2960,19 +2920,19 @@ const tl = {
|
|
|
2960
2920
|
function fe(e, t, l, o) {
|
|
2961
2921
|
const a = t.flatMap((n) => n.file);
|
|
2962
2922
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2963
|
-
const
|
|
2964
|
-
let
|
|
2965
|
-
|
|
2923
|
+
const r = a.findIndex((u) => u.name === n.name);
|
|
2924
|
+
let d = "Not Uploaded";
|
|
2925
|
+
r === -1 ? ((!l.includes(n.type) || !(n.size <= o)) && (d = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2966
2926
|
file: n,
|
|
2967
|
-
status:
|
|
2927
|
+
status: d,
|
|
2968
2928
|
blobFileName: null
|
|
2969
|
-
})) : t[
|
|
2929
|
+
})) : t[r].status = "Duplicate";
|
|
2970
2930
|
}), t;
|
|
2971
2931
|
}
|
|
2972
|
-
async function
|
|
2932
|
+
async function vl(e, t) {
|
|
2973
2933
|
if (e === "Uploaded" && t !== null)
|
|
2974
2934
|
try {
|
|
2975
|
-
await new
|
|
2935
|
+
await new pe(t).delete();
|
|
2976
2936
|
} catch (l) {
|
|
2977
2937
|
if (l !== "BlobNotFound") {
|
|
2978
2938
|
e = "DeleteFileFailed";
|
|
@@ -2980,28 +2940,28 @@ async function fl(e, t) {
|
|
|
2980
2940
|
}
|
|
2981
2941
|
}
|
|
2982
2942
|
}
|
|
2983
|
-
function
|
|
2943
|
+
function de(e, t = !0, l = 1) {
|
|
2984
2944
|
const o = t ? 1e3 : 1024;
|
|
2985
2945
|
if (Math.abs(e) < o)
|
|
2986
2946
|
return e + " B";
|
|
2987
2947
|
const a = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
2988
2948
|
let n = -1;
|
|
2989
|
-
const
|
|
2949
|
+
const r = 10 ** l;
|
|
2990
2950
|
do
|
|
2991
2951
|
e /= o, ++n;
|
|
2992
|
-
while (Math.round(Math.abs(e) *
|
|
2952
|
+
while (Math.round(Math.abs(e) * r) / r >= o && n < a.length - 1);
|
|
2993
2953
|
return e.toFixed(l) + " " + a[n];
|
|
2994
2954
|
}
|
|
2995
|
-
function
|
|
2955
|
+
function yl(e) {
|
|
2996
2956
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
2997
2957
|
}
|
|
2998
|
-
function
|
|
2958
|
+
function bl(e) {
|
|
2999
2959
|
return URL.createObjectURL(e);
|
|
3000
2960
|
}
|
|
3001
|
-
const
|
|
2961
|
+
const fl = { class: "d-flex justify-content-between" }, gl = ["accept", "disabled", "multiple"], hl = {
|
|
3002
2962
|
class: "text-break accepted-file-types-container",
|
|
3003
2963
|
id: "accepted-file-types-overlay"
|
|
3004
|
-
},
|
|
2964
|
+
}, wl = /* @__PURE__ */ F({
|
|
3005
2965
|
__name: "UploadButton",
|
|
3006
2966
|
props: /* @__PURE__ */ R({
|
|
3007
2967
|
acceptedFileTypes: {},
|
|
@@ -3013,71 +2973,71 @@ const wl = { class: "d-flex justify-content-between" }, xl = ["accept", "disable
|
|
|
3013
2973
|
}),
|
|
3014
2974
|
emits: ["update:modelValue"],
|
|
3015
2975
|
setup(e) {
|
|
3016
|
-
const t = U(e, "modelValue"), l = P(), o = (
|
|
3017
|
-
t.value = fe(
|
|
2976
|
+
const t = U(e, "modelValue"), l = P(), o = (r) => l.value.toggle(r), a = k(() => e.maxFileInput <= t.value.length), n = (r) => {
|
|
2977
|
+
t.value = fe(r, t.value, e.acceptedFileTypes.map((d) => d.fileType), e.maxFileInput);
|
|
3018
2978
|
};
|
|
3019
|
-
return (
|
|
3020
|
-
const u =
|
|
3021
|
-
return
|
|
3022
|
-
$(
|
|
2979
|
+
return (r, d) => {
|
|
2980
|
+
const u = L;
|
|
2981
|
+
return i(), b("div", fl, [
|
|
2982
|
+
$(r.$slots, "message"),
|
|
3023
2983
|
m("div", null, [
|
|
3024
2984
|
m("input", {
|
|
3025
2985
|
id: "file-input",
|
|
3026
2986
|
type: "file",
|
|
3027
2987
|
class: "d-none",
|
|
3028
|
-
accept:
|
|
2988
|
+
accept: r.acceptedFileTypes.join(", "),
|
|
3029
2989
|
disabled: a.value,
|
|
3030
|
-
multiple:
|
|
3031
|
-
onInput:
|
|
3032
|
-
}, null, 40,
|
|
2990
|
+
multiple: r.maxFileInput > 1,
|
|
2991
|
+
onInput: d[0] || (d[0] = (c) => n([...c.target.files]))
|
|
2992
|
+
}, null, 40, gl),
|
|
3033
2993
|
m("label", {
|
|
3034
2994
|
class: B([{ disabled: a.value }, "btn btn-primary"]),
|
|
3035
2995
|
id: "file-input-button",
|
|
3036
2996
|
for: "file-input"
|
|
3037
2997
|
}, [
|
|
3038
|
-
$(
|
|
3039
|
-
y(p(
|
|
2998
|
+
$(r.$slots, "button-content", {}, () => [
|
|
2999
|
+
y(p(C), {
|
|
3040
3000
|
icon: "bi:upload",
|
|
3041
3001
|
class: "me-2",
|
|
3042
3002
|
height: "20px",
|
|
3043
3003
|
width: "20px"
|
|
3044
3004
|
}),
|
|
3045
|
-
|
|
3005
|
+
d[1] || (d[1] = O(" Browse your computer "))
|
|
3046
3006
|
])
|
|
3047
3007
|
], 2)
|
|
3048
3008
|
]),
|
|
3049
|
-
|
|
3009
|
+
r.showDragDropArea ? (i(), w(u, {
|
|
3050
3010
|
link: "",
|
|
3051
3011
|
class: "ms-auto",
|
|
3052
|
-
key:
|
|
3012
|
+
key: r.acceptedFileTypes.length,
|
|
3053
3013
|
id: "accepted-file-types",
|
|
3054
3014
|
onClick: o
|
|
3055
3015
|
}, {
|
|
3056
|
-
default:
|
|
3057
|
-
|
|
3016
|
+
default: g(() => d[2] || (d[2] = [
|
|
3017
|
+
O("Accepted File Types")
|
|
3058
3018
|
])),
|
|
3059
3019
|
_: 1
|
|
3060
|
-
})) :
|
|
3061
|
-
y(p(
|
|
3020
|
+
})) : T("", !0),
|
|
3021
|
+
y(p(ve), {
|
|
3062
3022
|
ref_key: "acceptedFilesOverlay",
|
|
3063
3023
|
ref: l
|
|
3064
3024
|
}, {
|
|
3065
|
-
default:
|
|
3066
|
-
m("div",
|
|
3025
|
+
default: g(() => [
|
|
3026
|
+
m("div", hl, h(r.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
|
|
3067
3027
|
]),
|
|
3068
3028
|
_: 1
|
|
3069
3029
|
}, 512)
|
|
3070
3030
|
]);
|
|
3071
3031
|
};
|
|
3072
3032
|
}
|
|
3073
|
-
}),
|
|
3033
|
+
}), xl = {
|
|
3074
3034
|
key: 0,
|
|
3075
3035
|
class: "py-4 px-3",
|
|
3076
3036
|
id: "placeholder-message"
|
|
3077
|
-
},
|
|
3037
|
+
}, kl = {
|
|
3078
3038
|
key: 1,
|
|
3079
3039
|
class: "d-flex flex-column"
|
|
3080
|
-
},
|
|
3040
|
+
}, $l = /* @__PURE__ */ F({
|
|
3081
3041
|
__name: "DragDropArea",
|
|
3082
3042
|
props: /* @__PURE__ */ R({
|
|
3083
3043
|
maxFileInput: {},
|
|
@@ -3090,29 +3050,29 @@ const wl = { class: "d-flex justify-content-between" }, xl = ["accept", "disable
|
|
|
3090
3050
|
emits: ["update:modelValue"],
|
|
3091
3051
|
setup(e) {
|
|
3092
3052
|
const t = U(e, "modelValue"), l = P(!1), o = k(() => e.maxFileInput <= t.value.length), a = (n) => {
|
|
3093
|
-
l.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = fe([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((
|
|
3053
|
+
l.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = fe([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileSize);
|
|
3094
3054
|
};
|
|
3095
|
-
return (n,
|
|
3055
|
+
return (n, r) => (i(), b("div", {
|
|
3096
3056
|
id: "drag-drop-area",
|
|
3097
3057
|
class: B(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
3098
|
-
onDragleave:
|
|
3099
|
-
onDragover:
|
|
3100
|
-
onDrop:
|
|
3058
|
+
onDragleave: r[0] || (r[0] = W((d) => l.value = !1, ["prevent"])),
|
|
3059
|
+
onDragover: r[1] || (r[1] = W((d) => l.value = !0, ["prevent"])),
|
|
3060
|
+
onDrop: W(a, ["prevent"])
|
|
3101
3061
|
}, [
|
|
3102
|
-
t.value.length === 0 ? (
|
|
3103
|
-
y(p(
|
|
3062
|
+
t.value.length === 0 ? (i(), b("div", xl, [
|
|
3063
|
+
y(p(C), {
|
|
3104
3064
|
icon: "bi:upload",
|
|
3105
3065
|
class: "me-2",
|
|
3106
3066
|
height: "20px",
|
|
3107
3067
|
width: "20px"
|
|
3108
3068
|
}),
|
|
3109
|
-
|
|
3110
|
-
])) : (
|
|
3069
|
+
r[2] || (r[2] = O(" Drag and drop files here "))
|
|
3070
|
+
])) : (i(), b("div", kl, [
|
|
3111
3071
|
$(n.$slots, "default")
|
|
3112
3072
|
]))
|
|
3113
3073
|
], 34));
|
|
3114
3074
|
}
|
|
3115
|
-
}),
|
|
3075
|
+
}), Bl = { class: "d-flex align-items-center me-2" }, Fl = /* @__PURE__ */ F({
|
|
3116
3076
|
__name: "UploadStatus",
|
|
3117
3077
|
props: {
|
|
3118
3078
|
fileSize: {},
|
|
@@ -3126,7 +3086,7 @@ const wl = { class: "d-flex justify-content-between" }, xl = ["accept", "disable
|
|
|
3126
3086
|
case "InvalidFileType":
|
|
3127
3087
|
return "Upload Failed: File type is not accepted.";
|
|
3128
3088
|
case "InvalidFileSize":
|
|
3129
|
-
return `Upload Failed: File size exceeds the ${
|
|
3089
|
+
return `Upload Failed: File size exceeds the ${de(e.maxFileSize)} limit.`;
|
|
3130
3090
|
case "Aborted":
|
|
3131
3091
|
return "Upload Failed: User cancelled.";
|
|
3132
3092
|
case "DeleteFileFailed":
|
|
@@ -3137,41 +3097,41 @@ const wl = { class: "d-flex justify-content-between" }, xl = ["accept", "disable
|
|
|
3137
3097
|
return "Upload Failed: Connection error, please try again.";
|
|
3138
3098
|
}
|
|
3139
3099
|
});
|
|
3140
|
-
return (o, a) => (
|
|
3141
|
-
o.uploadStatus === "Uploading" ? (
|
|
3100
|
+
return (o, a) => (i(), b("div", Bl, [
|
|
3101
|
+
o.uploadStatus === "Uploading" ? (i(), w(Wt, {
|
|
3142
3102
|
key: 0,
|
|
3143
3103
|
pixelWidth: 200,
|
|
3144
3104
|
animate: "",
|
|
3145
3105
|
striped: ""
|
|
3146
3106
|
}, {
|
|
3147
|
-
default:
|
|
3148
|
-
|
|
3107
|
+
default: g(() => [
|
|
3108
|
+
O(h((o.bytesUploaded / o.fileSize * 100).toFixed(0)) + "%", 1)
|
|
3149
3109
|
]),
|
|
3150
3110
|
_: 1
|
|
3151
|
-
})) :
|
|
3152
|
-
o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (
|
|
3111
|
+
})) : T("", !0),
|
|
3112
|
+
o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (i(), w(oe, {
|
|
3153
3113
|
key: 1,
|
|
3154
3114
|
id: "upload-status-alert",
|
|
3155
3115
|
severity: t.value,
|
|
3156
3116
|
class: "mb-0 w-75 ms-auto"
|
|
3157
3117
|
}, {
|
|
3158
|
-
default:
|
|
3159
|
-
|
|
3118
|
+
default: g(() => [
|
|
3119
|
+
O(h(l.value), 1)
|
|
3160
3120
|
]),
|
|
3161
3121
|
_: 1
|
|
3162
|
-
}, 8, ["severity"])) :
|
|
3122
|
+
}, 8, ["severity"])) : T("", !0)
|
|
3163
3123
|
]));
|
|
3164
3124
|
}
|
|
3165
|
-
}),
|
|
3125
|
+
}), _l = ["data-cy"], Cl = { class: "ms-3 d-flex flex-column" }, Vl = {
|
|
3166
3126
|
key: 1,
|
|
3167
3127
|
id: "file-name"
|
|
3168
|
-
},
|
|
3128
|
+
}, Sl = {
|
|
3169
3129
|
class: "text-black-50",
|
|
3170
3130
|
id: "file-type"
|
|
3171
|
-
},
|
|
3131
|
+
}, Tl = {
|
|
3172
3132
|
class: "text-black-50",
|
|
3173
3133
|
id: "file-size"
|
|
3174
|
-
},
|
|
3134
|
+
}, Pl = { class: "ms-auto my-auto d-flex" }, Ml = /* @__PURE__ */ F({
|
|
3175
3135
|
__name: "FileInfo",
|
|
3176
3136
|
props: /* @__PURE__ */ R({
|
|
3177
3137
|
editableFileName: { type: Boolean },
|
|
@@ -3190,55 +3150,55 @@ const wl = { class: "d-flex justify-content-between" }, xl = ["accept", "disable
|
|
|
3190
3150
|
}),
|
|
3191
3151
|
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
3192
3152
|
setup(e, { emit: t }) {
|
|
3193
|
-
const l = U(e, "file"), o = U(e, "blobFileName"), a = U(e, "uploadStatus"), n = t,
|
|
3194
|
-
l.value = new File([l.value],
|
|
3195
|
-
},
|
|
3153
|
+
const l = U(e, "file"), o = U(e, "blobFileName"), a = U(e, "uploadStatus"), n = t, r = P(l.value.name), d = P(""), u = P(0), c = P(), v = k(() => e.acceptedFileTypes.some(({ fileType: I }) => I === l.value.type)), s = k(() => l.value.size <= e.maxFileSize), V = () => {
|
|
3154
|
+
l.value = new File([l.value], r.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
3155
|
+
}, S = async () => {
|
|
3196
3156
|
if (!v.value || !s.value) {
|
|
3197
3157
|
a.value = v.value ? "InvalidFileSize" : "InvalidFileType";
|
|
3198
3158
|
return;
|
|
3199
3159
|
}
|
|
3200
3160
|
a.value = "Preparing", c.value = new AbortController();
|
|
3201
|
-
const [I,
|
|
3161
|
+
const [I, z] = await e.getFileUrlAction(l.value.name);
|
|
3202
3162
|
if (!I) {
|
|
3203
3163
|
a.value = "Failed";
|
|
3204
3164
|
return;
|
|
3205
3165
|
}
|
|
3206
3166
|
try {
|
|
3207
3167
|
a.value = "Uploading";
|
|
3208
|
-
const
|
|
3168
|
+
const f = new pe(I), x = {
|
|
3209
3169
|
abortSignal: c.value.signal,
|
|
3210
|
-
onProgress: (
|
|
3170
|
+
onProgress: (Y) => u.value = Y.loadedBytes,
|
|
3211
3171
|
tags: { temp: "true" }
|
|
3212
3172
|
};
|
|
3213
|
-
await
|
|
3214
|
-
} catch (
|
|
3215
|
-
if (
|
|
3173
|
+
await f.uploadData(l.value, x), d.value = I, a.value = "Uploaded", o.value = z;
|
|
3174
|
+
} catch (f) {
|
|
3175
|
+
if (f.name === "AbortError") {
|
|
3216
3176
|
a.value = "Aborted";
|
|
3217
3177
|
return;
|
|
3218
3178
|
}
|
|
3219
3179
|
a.value = "Failed";
|
|
3220
3180
|
}
|
|
3221
3181
|
}, M = async () => {
|
|
3222
|
-
await
|
|
3182
|
+
await vl(a.value, d.value), n("deleted", l.value);
|
|
3223
3183
|
};
|
|
3224
3184
|
return le(() => {
|
|
3225
|
-
e.autoUploadToBlob &&
|
|
3226
|
-
}), (I,
|
|
3227
|
-
const
|
|
3228
|
-
return
|
|
3185
|
+
e.autoUploadToBlob && S();
|
|
3186
|
+
}), (I, z) => {
|
|
3187
|
+
const f = L;
|
|
3188
|
+
return i(), b("div", {
|
|
3229
3189
|
class: "py-4 px-3 d-flex",
|
|
3230
3190
|
"data-cy": `file-info-${l.value.name}`
|
|
3231
3191
|
}, [
|
|
3232
3192
|
m("div", null, [
|
|
3233
|
-
p(
|
|
3193
|
+
p(yl)(l.value.type) ? (i(), w(p(Oe), {
|
|
3234
3194
|
key: 0,
|
|
3235
3195
|
id: "thumbnail-image",
|
|
3236
3196
|
"image-class": "image-file-thumbnail border",
|
|
3237
|
-
src: p(
|
|
3197
|
+
src: p(bl)(l.value),
|
|
3238
3198
|
alt: l.value.name,
|
|
3239
3199
|
width: "75px",
|
|
3240
3200
|
preview: ""
|
|
3241
|
-
}, null, 8, ["src", "alt"])) : (
|
|
3201
|
+
}, null, 8, ["src", "alt"])) : (i(), w(p(C), {
|
|
3242
3202
|
key: 1,
|
|
3243
3203
|
id: "file-earmark",
|
|
3244
3204
|
icon: "bi:file-earmark",
|
|
@@ -3246,76 +3206,76 @@ const wl = { class: "d-flex justify-content-between" }, xl = ["accept", "disable
|
|
|
3246
3206
|
width: "75px"
|
|
3247
3207
|
}))
|
|
3248
3208
|
]),
|
|
3249
|
-
m("div",
|
|
3209
|
+
m("div", Cl, [
|
|
3250
3210
|
m("div", null, [
|
|
3251
|
-
I.editableFileName ? (
|
|
3211
|
+
I.editableFileName ? (i(), w(Bt, {
|
|
3252
3212
|
key: 0,
|
|
3253
3213
|
id: "edit-file-name",
|
|
3254
|
-
modelValue:
|
|
3255
|
-
"onUpdate:modelValue":
|
|
3214
|
+
modelValue: r.value,
|
|
3215
|
+
"onUpdate:modelValue": z[0] || (z[0] = (x) => r.value = x),
|
|
3256
3216
|
rules: I.customFileNameRules,
|
|
3257
3217
|
name: l.value.name,
|
|
3258
|
-
"complete-action":
|
|
3259
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (
|
|
3218
|
+
"complete-action": V
|
|
3219
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (i(), b("span", Vl, h(l.value.name), 1))
|
|
3260
3220
|
]),
|
|
3261
|
-
m("span",
|
|
3262
|
-
m("span",
|
|
3221
|
+
m("span", Sl, "File type: " + h(l.value.type.split("/").pop()), 1),
|
|
3222
|
+
m("span", Tl, "File size: " + h(p(de)(l.value.size)), 1)
|
|
3263
3223
|
]),
|
|
3264
|
-
m("div",
|
|
3265
|
-
(
|
|
3224
|
+
m("div", Pl, [
|
|
3225
|
+
(i(), w(Fl, {
|
|
3266
3226
|
key: a.value,
|
|
3267
3227
|
"file-size": l.value.size,
|
|
3268
3228
|
"upload-status": a.value,
|
|
3269
3229
|
"bytes-uploaded": u.value,
|
|
3270
3230
|
"max-file-size": I.maxFileSize
|
|
3271
3231
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
3272
|
-
a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (
|
|
3232
|
+
a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (i(), w(f, {
|
|
3273
3233
|
key: 0,
|
|
3274
3234
|
link: "",
|
|
3275
|
-
onClick:
|
|
3235
|
+
onClick: S
|
|
3276
3236
|
}, {
|
|
3277
|
-
default:
|
|
3278
|
-
y(p(
|
|
3237
|
+
default: g(() => [
|
|
3238
|
+
y(p(C), {
|
|
3279
3239
|
icon: a.value === "Not Uploaded" || a.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
3280
3240
|
}, null, 8, ["icon"])
|
|
3281
3241
|
]),
|
|
3282
3242
|
_: 1
|
|
3283
|
-
})) :
|
|
3284
|
-
a.value === "Uploading" ? (
|
|
3243
|
+
})) : T("", !0),
|
|
3244
|
+
a.value === "Uploading" ? (i(), w(f, {
|
|
3285
3245
|
key: 1,
|
|
3286
3246
|
link: "",
|
|
3287
|
-
onClick:
|
|
3247
|
+
onClick: z[1] || (z[1] = (x) => c.value.value.abort())
|
|
3288
3248
|
}, {
|
|
3289
|
-
default:
|
|
3290
|
-
y(p(
|
|
3249
|
+
default: g(() => [
|
|
3250
|
+
y(p(C), { icon: "bi:x-circle-fill" })
|
|
3291
3251
|
]),
|
|
3292
3252
|
_: 1
|
|
3293
|
-
})) : (
|
|
3253
|
+
})) : (i(), w(f, {
|
|
3294
3254
|
key: 2,
|
|
3295
3255
|
link: "",
|
|
3296
3256
|
onClick: M,
|
|
3297
3257
|
id: "delete-button"
|
|
3298
3258
|
}, {
|
|
3299
|
-
default:
|
|
3300
|
-
y(p(
|
|
3259
|
+
default: g(() => [
|
|
3260
|
+
y(p(C), { icon: "bi:trash" })
|
|
3301
3261
|
]),
|
|
3302
3262
|
_: 1
|
|
3303
3263
|
}))
|
|
3304
3264
|
])
|
|
3305
|
-
], 8,
|
|
3265
|
+
], 8, _l);
|
|
3306
3266
|
};
|
|
3307
3267
|
}
|
|
3308
|
-
}),
|
|
3268
|
+
}), Il = { class: "d-flex justify-content-end mt-1" }, zl = { id: "max-file-size" }, Ol = /* @__PURE__ */ F({
|
|
3309
3269
|
__name: "MaxFileSize",
|
|
3310
3270
|
props: {
|
|
3311
3271
|
maxFileSize: {}
|
|
3312
3272
|
},
|
|
3313
3273
|
setup(e) {
|
|
3314
|
-
return (t, l) => (
|
|
3315
|
-
m("div",
|
|
3274
|
+
return (t, l) => (i(), b("div", Il, [
|
|
3275
|
+
m("div", zl, "Max file size: " + h(p(de)(t.maxFileSize)), 1)
|
|
3316
3276
|
]));
|
|
3317
3277
|
}
|
|
3318
|
-
}),
|
|
3278
|
+
}), Dl = { "data-cy": "file-uploader" }, Ul = { key: 0 }, Ua = /* @__PURE__ */ F({
|
|
3319
3279
|
__name: "ForgeFileUploader",
|
|
3320
3280
|
props: /* @__PURE__ */ R({
|
|
3321
3281
|
acceptedFileTypes: {},
|
|
@@ -3335,43 +3295,43 @@ const wl = { class: "d-flex justify-content-between" }, xl = ["accept", "disable
|
|
|
3335
3295
|
const t = U(e, "modelValue"), l = e, o = (a) => {
|
|
3336
3296
|
t.value = t.value.filter((n) => n.file != a);
|
|
3337
3297
|
};
|
|
3338
|
-
return (a, n) => (
|
|
3339
|
-
y(
|
|
3298
|
+
return (a, n) => (i(), b("div", Dl, [
|
|
3299
|
+
y(wl, _(l, {
|
|
3340
3300
|
modelValue: t.value,
|
|
3341
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
3301
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r)
|
|
3342
3302
|
}), null, 16, ["modelValue"]),
|
|
3343
|
-
a.showDragDropArea ? (
|
|
3344
|
-
y(
|
|
3303
|
+
a.showDragDropArea ? (i(), b("div", Ul, [
|
|
3304
|
+
y($l, {
|
|
3345
3305
|
"max-file-input": l.maxFileInput,
|
|
3346
3306
|
"max-file-size": l.maxFileSize,
|
|
3347
3307
|
"accepted-file-types": l.acceptedFileTypes,
|
|
3348
3308
|
modelValue: t.value,
|
|
3349
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
3309
|
+
"onUpdate:modelValue": n[1] || (n[1] = (r) => t.value = r)
|
|
3350
3310
|
}, {
|
|
3351
|
-
default:
|
|
3352
|
-
(
|
|
3353
|
-
(
|
|
3354
|
-
key:
|
|
3355
|
-
class:
|
|
3356
|
-
file: t.value[
|
|
3357
|
-
"onUpdate:file": (u) => t.value[
|
|
3358
|
-
"blob-file-name": t.value[
|
|
3359
|
-
"onUpdate:blobFileName": (u) => t.value[
|
|
3360
|
-
"upload-status": t.value[
|
|
3361
|
-
"onUpdate:uploadStatus": (u) => t.value[
|
|
3311
|
+
default: g(() => [
|
|
3312
|
+
(i(!0), b(N, null, j(t.value, ({ file: r }, d) => (i(), b("span", null, [
|
|
3313
|
+
(i(), w(Ml, _({
|
|
3314
|
+
key: r.name,
|
|
3315
|
+
class: d === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
3316
|
+
file: t.value[d].file,
|
|
3317
|
+
"onUpdate:file": (u) => t.value[d].file = u,
|
|
3318
|
+
"blob-file-name": t.value[d].blobFileName,
|
|
3319
|
+
"onUpdate:blobFileName": (u) => t.value[d].blobFileName = u,
|
|
3320
|
+
"upload-status": t.value[d].status,
|
|
3321
|
+
"onUpdate:uploadStatus": (u) => t.value[d].status = u,
|
|
3362
3322
|
ref_for: !0
|
|
3363
3323
|
}, l, { onDeleted: o }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
3364
3324
|
]))), 256))
|
|
3365
3325
|
]),
|
|
3366
3326
|
_: 1
|
|
3367
3327
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
3368
|
-
y(
|
|
3328
|
+
y(Ol, {
|
|
3369
3329
|
"max-file-size": l.maxFileSize
|
|
3370
3330
|
}, null, 8, ["max-file-size"])
|
|
3371
|
-
])) :
|
|
3331
|
+
])) : T("", !0)
|
|
3372
3332
|
]));
|
|
3373
3333
|
}
|
|
3374
|
-
}),
|
|
3334
|
+
}), Al = { class: "d-flex" }, Nl = { class: "me-3" }, Ll = { class: "ms-2" }, El = { class: "d-flex flex-column w-100" }, Rl = ["onClick"], Hl = ["for"], Aa = /* @__PURE__ */ F({
|
|
3375
3335
|
__name: "ForgeColumnCustomiser",
|
|
3376
3336
|
props: {
|
|
3377
3337
|
modelValue: { required: !0 },
|
|
@@ -3379,27 +3339,27 @@ const wl = { class: "d-flex justify-content-between" }, xl = ["accept", "disable
|
|
|
3379
3339
|
},
|
|
3380
3340
|
emits: ["update:modelValue"],
|
|
3381
3341
|
setup(e) {
|
|
3382
|
-
const t = U(e, "modelValue"), l = P(), o = P(!1), a = P([]), n = P([]),
|
|
3342
|
+
const t = U(e, "modelValue"), l = P(), o = P(!1), a = P([]), n = P([]), r = (u) => {
|
|
3383
3343
|
l.value.toggle(u);
|
|
3384
|
-
},
|
|
3344
|
+
}, d = (u) => {
|
|
3385
3345
|
const c = n.value.find((v) => v.field === u);
|
|
3386
3346
|
c.selected = !c.selected, t.value = n.value.filter((v) => v.selected);
|
|
3387
3347
|
};
|
|
3388
3348
|
return le(() => {
|
|
3389
3349
|
a.value = [...t.value], n.value = [...t.value].map((u) => ({ ...u, selected: !0 }));
|
|
3390
|
-
}), (u, c) => (
|
|
3391
|
-
y(p(
|
|
3392
|
-
onClick:
|
|
3350
|
+
}), (u, c) => (i(), b(N, null, [
|
|
3351
|
+
y(p(L), {
|
|
3352
|
+
onClick: r,
|
|
3393
3353
|
class: "ms-2"
|
|
3394
3354
|
}, {
|
|
3395
|
-
default:
|
|
3396
|
-
m("div",
|
|
3397
|
-
m("div",
|
|
3398
|
-
y(p(
|
|
3355
|
+
default: g(() => [
|
|
3356
|
+
m("div", Al, [
|
|
3357
|
+
m("div", Nl, [
|
|
3358
|
+
y(p(C), { icon: "bi:layout-three-columns" })
|
|
3399
3359
|
]),
|
|
3400
|
-
|
|
3401
|
-
m("div",
|
|
3402
|
-
y(p(
|
|
3360
|
+
O(" Columns (" + h(t.value.length ?? 0) + "/" + h(a.value.length ?? 0) + ") ", 1),
|
|
3361
|
+
m("div", Ll, [
|
|
3362
|
+
y(p(C), {
|
|
3403
3363
|
icon: o.value ? "bi:chevron-up" : "bi:chevron-down"
|
|
3404
3364
|
}, null, 8, ["icon"])
|
|
3405
3365
|
])
|
|
@@ -3407,35 +3367,35 @@ const wl = { class: "d-flex justify-content-between" }, xl = ["accept", "disable
|
|
|
3407
3367
|
]),
|
|
3408
3368
|
_: 1
|
|
3409
3369
|
}),
|
|
3410
|
-
y(p(
|
|
3370
|
+
y(p(ve), {
|
|
3411
3371
|
ref_key: "columnCustomiserPanel",
|
|
3412
3372
|
ref: l,
|
|
3413
3373
|
class: "column-customiser",
|
|
3414
3374
|
onHide: c[0] || (c[0] = () => o.value = !1),
|
|
3415
3375
|
onShow: c[1] || (c[1] = () => o.value = !0)
|
|
3416
3376
|
}, {
|
|
3417
|
-
default:
|
|
3418
|
-
m("div",
|
|
3419
|
-
(
|
|
3377
|
+
default: g(() => [
|
|
3378
|
+
m("div", El, [
|
|
3379
|
+
(i(!0), b(N, null, j(a.value, (v, s) => (i(), b("div", {
|
|
3420
3380
|
class: B(["d-flex cursor-pointer", {
|
|
3421
3381
|
"border-top": s !== 0,
|
|
3422
3382
|
"py-1": s !== 0 && a.value.length - 1 !== s,
|
|
3423
3383
|
"pt-1": a.value.length - 1 === s,
|
|
3424
3384
|
"pb-1": s === 0
|
|
3425
3385
|
}]),
|
|
3426
|
-
onClick: (
|
|
3386
|
+
onClick: (V) => d(v.field)
|
|
3427
3387
|
}, [
|
|
3428
|
-
y(p(
|
|
3388
|
+
y(p(ce), {
|
|
3429
3389
|
id: v.field,
|
|
3430
|
-
"model-value": n.value.find((
|
|
3390
|
+
"model-value": n.value.find((V) => V.field === v.field).selected,
|
|
3431
3391
|
binary: "",
|
|
3432
3392
|
class: "cursor-pointer"
|
|
3433
3393
|
}, null, 8, ["id", "model-value"]),
|
|
3434
3394
|
m("label", {
|
|
3435
3395
|
for: v.field,
|
|
3436
3396
|
class: "cursor-pointer"
|
|
3437
|
-
}, h(v.header), 9,
|
|
3438
|
-
], 10,
|
|
3397
|
+
}, h(v.header), 9, Hl)
|
|
3398
|
+
], 10, Rl))), 256))
|
|
3439
3399
|
])
|
|
3440
3400
|
]),
|
|
3441
3401
|
_: 1
|
|
@@ -3444,32 +3404,32 @@ const wl = { class: "d-flex justify-content-between" }, xl = ["accept", "disable
|
|
|
3444
3404
|
}
|
|
3445
3405
|
});
|
|
3446
3406
|
export {
|
|
3447
|
-
|
|
3448
|
-
|
|
3407
|
+
ga as Bootstrap_PT,
|
|
3408
|
+
ha as ForgeActionButton,
|
|
3449
3409
|
oe as ForgeAlert,
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3410
|
+
mt as ForgeCheckbox,
|
|
3411
|
+
Pa as ForgeChips,
|
|
3412
|
+
Aa as ForgeColumnCustomiser,
|
|
3453
3413
|
be as ForgeDatepicker,
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3414
|
+
Ua as ForgeFileUploader,
|
|
3415
|
+
Da as ForgeFilterHeader,
|
|
3416
|
+
Sa as ForgeForm,
|
|
3417
|
+
Ta as ForgeFormField,
|
|
3418
|
+
Bt as ForgeInlineEditor,
|
|
3419
|
+
wa as ForgeLink,
|
|
3420
|
+
ye as ForgeLoader,
|
|
3421
|
+
$a as ForgeModal,
|
|
3422
|
+
Fa as ForgeMultiSelect,
|
|
3423
|
+
_a as ForgeMultiSelectPreview,
|
|
3424
|
+
Ba as ForgeNavbar,
|
|
3425
|
+
Ca as ForgePageHeader,
|
|
3466
3426
|
Wt as ForgeProgressBar,
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3427
|
+
Va as ForgeRemainingCharacters,
|
|
3428
|
+
Ma as ForgeStatWidget,
|
|
3429
|
+
Ia as ForgeStepper,
|
|
3430
|
+
Oa as ForgeTable,
|
|
3431
|
+
za as ForgeTile,
|
|
3432
|
+
ka as convertToMultiSelectOption,
|
|
3433
|
+
xa as enumToMultiSelectList,
|
|
3434
|
+
yt as parseError
|
|
3475
3435
|
};
|