@3squared/forge-ui-3 0.4.1 → 0.4.2
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 +851 -823
- package/dist/esm/style.css +1 -1
- package/dist/src/components/ForgeActionButton.vue.d.ts +1 -1
- package/dist/src/components/ForgeAlert.vue.d.ts +6 -4
- package/dist/src/components/ForgeCheckbox.vue.d.ts +6 -4
- package/dist/src/components/ForgeChips.vue.d.ts +1 -1
- package/dist/src/components/ForgeDatepicker.vue.d.ts +7 -5
- package/dist/src/components/ForgeForm.vue.d.ts +14 -12
- package/dist/src/components/ForgeInlineEditor.vue.d.ts +15 -13
- package/dist/src/components/ForgeLink.vue.d.ts +4 -2
- package/dist/src/components/ForgeModal.vue.d.ts +6 -4
- package/dist/src/components/ForgeMultiSelect.vue.d.ts +6 -4
- package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +11 -9
- package/dist/src/components/ForgeNavbar.vue.d.ts +7 -5
- package/dist/src/components/ForgePageHeader.vue.d.ts +4 -2
- package/dist/src/components/ForgeProgressBar.vue.d.ts +6 -4
- package/dist/src/components/ForgeStatWidget.vue.d.ts +6 -4
- package/dist/src/components/ForgeStepper.vue.d.ts +7 -5
- package/dist/src/components/ForgeTile.vue.d.ts +6 -4
- package/dist/src/components/file-uploader/components/DragDropArea.vue.d.ts +6 -4
- package/dist/src/components/file-uploader/components/UploadButton.vue.d.ts +7 -5
- package/dist/src/components/table/ForgePaginationHeader.vue.d.ts +1 -1
- package/dist/src/components/table/ForgeTable.vue.d.ts +7 -5
- package/dist/src/passthroughs/Column.pt.d.ts +2 -2
- package/package.json +5 -5
- package/src/styles/components/_multiselect.scss +30 -82
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import fe from "primevue/message";
|
|
2
|
+
import { defineComponent as $, openBlock as s, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as v, createElementVNode as m, normalizeClass as F, unref as c, createCommentVNode as B, createVNode as y, renderSlot as _, ref as V, createElementBlock as p, Fragment as O, mergeProps as S, onMounted as oe, computed as k, watch as ge, isRef as L, createTextVNode as I, toDisplayString as g, withDirectives as H, vShow as q, mergeModels as G, useModel as j, createSlots as te, renderList as R, withKeys as J, useAttrs as de, withModifiers as K, normalizeStyle as he } from "vue";
|
|
3
3
|
import { Icon as C } from "@iconify/vue";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useField as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { vOnClickOutside as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import { BlockBlobClient as
|
|
26
|
-
import
|
|
27
|
-
const
|
|
4
|
+
import E from "primevue/button";
|
|
5
|
+
import we from "primevue/toast";
|
|
6
|
+
import ke from "primevue/checkbox";
|
|
7
|
+
import { useField as Z } from "vee-validate";
|
|
8
|
+
import _e from "primevue/progressspinner";
|
|
9
|
+
import xe from "primevue/dialog";
|
|
10
|
+
import ne from "primevue/inputtext";
|
|
11
|
+
import { vOnClickOutside as $e } from "@vueuse/components";
|
|
12
|
+
import Be from "primevue/menubar";
|
|
13
|
+
import Fe from "vue-multiselect";
|
|
14
|
+
import Se from "primevue/calendar";
|
|
15
|
+
import Ce from "primevue/inputmask";
|
|
16
|
+
import Te from "primevue/textarea";
|
|
17
|
+
import ue from "primevue/inputnumber";
|
|
18
|
+
import Ve from "primevue/chips";
|
|
19
|
+
import Pe from "primevue/progressbar";
|
|
20
|
+
import Ie from "primevue/divider";
|
|
21
|
+
import ze from "primevue/steps";
|
|
22
|
+
import Me from "primevue/datatable";
|
|
23
|
+
import se from "primevue/dropdown";
|
|
24
|
+
import Ue from "primevue/multiselect";
|
|
25
|
+
import { BlockBlobClient as ce } from "@azure/storage-blob";
|
|
26
|
+
import Oe from "primevue/image";
|
|
27
|
+
const De = {
|
|
28
28
|
button: {
|
|
29
29
|
root: ({ props: e }) => ({
|
|
30
30
|
class: [
|
|
@@ -108,7 +108,7 @@ const ze = {
|
|
|
108
108
|
]
|
|
109
109
|
})
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, Ae = {
|
|
112
112
|
checkbox: {
|
|
113
113
|
root: () => ({
|
|
114
114
|
class: [
|
|
@@ -126,7 +126,7 @@ const ze = {
|
|
|
126
126
|
]
|
|
127
127
|
})
|
|
128
128
|
}
|
|
129
|
-
},
|
|
129
|
+
}, re = {
|
|
130
130
|
dropdown: {
|
|
131
131
|
root: ({ props: e }) => ({
|
|
132
132
|
class: [
|
|
@@ -186,16 +186,16 @@ const ze = {
|
|
|
186
186
|
loadingIcon: "spinner-border spinner-border-sm border-0",
|
|
187
187
|
itemGroupLabel: "ps-2 fw-bold"
|
|
188
188
|
}
|
|
189
|
-
},
|
|
189
|
+
}, Ne = {
|
|
190
190
|
column: {
|
|
191
191
|
sortBadge: "ms-2 my-auto cursor-pointer",
|
|
192
192
|
headerCell: (e) => {
|
|
193
|
-
var t,
|
|
193
|
+
var t, o, a, l;
|
|
194
194
|
return {
|
|
195
195
|
class: [{
|
|
196
196
|
"cursor-move": e.props.reorderableColumns,
|
|
197
|
-
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((
|
|
198
|
-
"overflow-hidden position-relative bg-clip-padding": (
|
|
197
|
+
"position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((o = e.column) == null ? void 0 : o.context.frozen) || ((a = e.column) == null ? void 0 : a.context.frozen) === "",
|
|
198
|
+
"overflow-hidden position-relative bg-clip-padding": (l = e.column) == null ? void 0 : l.context.resizable
|
|
199
199
|
}]
|
|
200
200
|
};
|
|
201
201
|
},
|
|
@@ -279,22 +279,22 @@ const ze = {
|
|
|
279
279
|
]
|
|
280
280
|
})
|
|
281
281
|
}
|
|
282
|
-
},
|
|
282
|
+
}, Ee = {
|
|
283
283
|
inputtext: {
|
|
284
284
|
root: (e) => {
|
|
285
|
-
var t,
|
|
285
|
+
var t, o;
|
|
286
286
|
return {
|
|
287
287
|
class: [
|
|
288
288
|
"form-control",
|
|
289
289
|
{
|
|
290
290
|
"form-control-lg": ((t = e.props.size) == null ? void 0 : t.toLowerCase()) == "large",
|
|
291
|
-
"form-control-sm": ((
|
|
291
|
+
"form-control-sm": ((o = e.props.size) == null ? void 0 : o.toLowerCase()) == "small"
|
|
292
292
|
}
|
|
293
293
|
]
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
},
|
|
297
|
+
}, Re = {
|
|
298
298
|
inputmask: {
|
|
299
299
|
root: () => ({
|
|
300
300
|
class: [
|
|
@@ -302,12 +302,12 @@ const ze = {
|
|
|
302
302
|
]
|
|
303
303
|
})
|
|
304
304
|
}
|
|
305
|
-
},
|
|
305
|
+
}, Le = {
|
|
306
306
|
inputSwitch: {
|
|
307
307
|
root: "form-check form-switch",
|
|
308
308
|
input: "form-check-input"
|
|
309
309
|
}
|
|
310
|
-
},
|
|
310
|
+
}, je = {
|
|
311
311
|
textarea: {
|
|
312
312
|
root: () => ({
|
|
313
313
|
class: [
|
|
@@ -315,13 +315,13 @@ const ze = {
|
|
|
315
315
|
]
|
|
316
316
|
})
|
|
317
317
|
}
|
|
318
|
-
},
|
|
318
|
+
}, He = {
|
|
319
319
|
// More PassThrough options in component file.
|
|
320
320
|
chips: {
|
|
321
321
|
root: "d-flex",
|
|
322
322
|
label: "pe-2"
|
|
323
323
|
}
|
|
324
|
-
},
|
|
324
|
+
}, qe = {
|
|
325
325
|
dialog: {
|
|
326
326
|
header: () => ({
|
|
327
327
|
class: ["modal-header"]
|
|
@@ -361,7 +361,7 @@ const ze = {
|
|
|
361
361
|
}]
|
|
362
362
|
})
|
|
363
363
|
}
|
|
364
|
-
},
|
|
364
|
+
}, Ge = {
|
|
365
365
|
overlaypanel: {
|
|
366
366
|
root: (e) => ({
|
|
367
367
|
class: [
|
|
@@ -375,7 +375,7 @@ const ze = {
|
|
|
375
375
|
content: "d-flex position-relative",
|
|
376
376
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
377
377
|
}
|
|
378
|
-
},
|
|
378
|
+
}, Ke = {
|
|
379
379
|
message: {
|
|
380
380
|
root: ({ props: e }) => ({
|
|
381
381
|
class: [
|
|
@@ -404,13 +404,13 @@ const ze = {
|
|
|
404
404
|
class: ["px-0 ms-2 btn d-flex"]
|
|
405
405
|
})
|
|
406
406
|
}
|
|
407
|
-
},
|
|
407
|
+
}, We = {
|
|
408
408
|
// More PT options defined in ForgeStepper.
|
|
409
409
|
steps: {
|
|
410
410
|
root: "w-100 mx-2 line",
|
|
411
411
|
menu: "p-0 m-0 list-unstyled d-flex justify-content-between "
|
|
412
412
|
}
|
|
413
|
-
},
|
|
413
|
+
}, Ze = {
|
|
414
414
|
tabview: {
|
|
415
415
|
navContainer: () => ({
|
|
416
416
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -448,7 +448,7 @@ const ze = {
|
|
|
448
448
|
class: ["p-2"]
|
|
449
449
|
})
|
|
450
450
|
}
|
|
451
|
-
},
|
|
451
|
+
}, Ye = {
|
|
452
452
|
// More PassThrough options defined in ForgeDatepicker.
|
|
453
453
|
calendar: {
|
|
454
454
|
root: "d-inline-flex relative",
|
|
@@ -491,7 +491,7 @@ const ze = {
|
|
|
491
491
|
]
|
|
492
492
|
})
|
|
493
493
|
}
|
|
494
|
-
},
|
|
494
|
+
}, Je = {
|
|
495
495
|
// More PassThrough options in component file.
|
|
496
496
|
progressbar: {
|
|
497
497
|
root: () => ({
|
|
@@ -504,7 +504,7 @@ const ze = {
|
|
|
504
504
|
class: ["text-white"]
|
|
505
505
|
})
|
|
506
506
|
}
|
|
507
|
-
},
|
|
507
|
+
}, Xe = {
|
|
508
508
|
dataTable: {
|
|
509
509
|
table: (e) => ({
|
|
510
510
|
class: [
|
|
@@ -568,7 +568,7 @@ const ze = {
|
|
|
568
568
|
]
|
|
569
569
|
})
|
|
570
570
|
}
|
|
571
|
-
},
|
|
571
|
+
}, Qe = {
|
|
572
572
|
badge: {
|
|
573
573
|
root: ({ props: e }) => ({
|
|
574
574
|
class: [
|
|
@@ -589,7 +589,7 @@ const ze = {
|
|
|
589
589
|
]
|
|
590
590
|
})
|
|
591
591
|
}
|
|
592
|
-
},
|
|
592
|
+
}, et = {
|
|
593
593
|
// More PassThrough options in component file.
|
|
594
594
|
menubar: {
|
|
595
595
|
menu: ({ instance: e }) => ({
|
|
@@ -659,7 +659,7 @@ const ze = {
|
|
|
659
659
|
]
|
|
660
660
|
})
|
|
661
661
|
}
|
|
662
|
-
},
|
|
662
|
+
}, tt = {
|
|
663
663
|
tooltip: {
|
|
664
664
|
root: ({ context: e }) => ({
|
|
665
665
|
class: [
|
|
@@ -681,7 +681,7 @@ const ze = {
|
|
|
681
681
|
class: ["tooltip-inner"]
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
|
-
},
|
|
684
|
+
}, at = {
|
|
685
685
|
selectbutton: {
|
|
686
686
|
root: () => ({
|
|
687
687
|
class: ["btn-group"]
|
|
@@ -699,7 +699,7 @@ const ze = {
|
|
|
699
699
|
]
|
|
700
700
|
})
|
|
701
701
|
}
|
|
702
|
-
},
|
|
702
|
+
}, lt = {
|
|
703
703
|
progressspinner: {
|
|
704
704
|
spinner: () => ({
|
|
705
705
|
class: [
|
|
@@ -707,7 +707,7 @@ const ze = {
|
|
|
707
707
|
]
|
|
708
708
|
})
|
|
709
709
|
}
|
|
710
|
-
},
|
|
710
|
+
}, ot = {
|
|
711
711
|
card: {
|
|
712
712
|
root: () => ({
|
|
713
713
|
class: ["card"]
|
|
@@ -731,11 +731,11 @@ const ze = {
|
|
|
731
731
|
class: ["card-header"]
|
|
732
732
|
})
|
|
733
733
|
}
|
|
734
|
-
},
|
|
734
|
+
}, nt = {
|
|
735
735
|
divider: {
|
|
736
736
|
root: "border-bottom m-4 w-100"
|
|
737
737
|
}
|
|
738
|
-
},
|
|
738
|
+
}, st = {
|
|
739
739
|
image: {
|
|
740
740
|
root: "position-relative d-inline-block",
|
|
741
741
|
button: "preview-button",
|
|
@@ -748,7 +748,7 @@ const ze = {
|
|
|
748
748
|
zoominbutton: "btn text-white",
|
|
749
749
|
closebutton: "btn text-white"
|
|
750
750
|
}
|
|
751
|
-
},
|
|
751
|
+
}, it = {
|
|
752
752
|
toast: {
|
|
753
753
|
message: () => ({
|
|
754
754
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -772,51 +772,51 @@ const ze = {
|
|
|
772
772
|
class: ["ps-1"]
|
|
773
773
|
}),
|
|
774
774
|
icon: ({ props: e }) => {
|
|
775
|
-
var t,
|
|
775
|
+
var t, o, a, l;
|
|
776
776
|
return {
|
|
777
777
|
class: [
|
|
778
778
|
"toast-icon",
|
|
779
779
|
{
|
|
780
780
|
"text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
|
|
781
|
-
"text-success": ((
|
|
781
|
+
"text-success": ((o = e.message) == null ? void 0 : o.severity) === "success",
|
|
782
782
|
"text-danger": ((a = e.message) == null ? void 0 : a.severity) === "error",
|
|
783
|
-
"text-warning": ((
|
|
783
|
+
"text-warning": ((l = e.message) == null ? void 0 : l.severity) === "warn"
|
|
784
784
|
}
|
|
785
785
|
]
|
|
786
786
|
};
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
},
|
|
790
|
-
...
|
|
791
|
-
...ze,
|
|
792
|
-
...et,
|
|
793
|
-
...Me,
|
|
794
|
-
...Ee,
|
|
795
|
-
...Oe,
|
|
796
|
-
...Ge,
|
|
797
|
-
...Re,
|
|
798
|
-
...tt,
|
|
799
|
-
...se,
|
|
800
|
-
...at,
|
|
801
|
-
...Ue,
|
|
789
|
+
}, il = {
|
|
790
|
+
...Qe,
|
|
802
791
|
...De,
|
|
792
|
+
...ot,
|
|
803
793
|
...Ae,
|
|
804
|
-
...
|
|
805
|
-
...
|
|
794
|
+
...He,
|
|
795
|
+
...Ne,
|
|
806
796
|
...Ye,
|
|
797
|
+
...qe,
|
|
798
|
+
...nt,
|
|
799
|
+
...re,
|
|
800
|
+
...st,
|
|
801
|
+
...Ee,
|
|
802
|
+
...Re,
|
|
807
803
|
...Le,
|
|
808
804
|
...Ke,
|
|
809
|
-
...
|
|
810
|
-
...
|
|
811
|
-
...
|
|
812
|
-
...
|
|
813
|
-
...qe,
|
|
805
|
+
...re,
|
|
806
|
+
...et,
|
|
807
|
+
...Ge,
|
|
808
|
+
...Je,
|
|
814
809
|
...lt,
|
|
815
|
-
...
|
|
810
|
+
...at,
|
|
811
|
+
...We,
|
|
812
|
+
...Xe,
|
|
813
|
+
...Ze,
|
|
814
|
+
...it,
|
|
815
|
+
...je,
|
|
816
816
|
directives: {
|
|
817
|
-
...
|
|
817
|
+
...tt
|
|
818
818
|
}
|
|
819
|
-
},
|
|
819
|
+
}, ae = /* @__PURE__ */ $({
|
|
820
820
|
__name: "ForgeAlert",
|
|
821
821
|
props: {
|
|
822
822
|
severity: { default: "primary" },
|
|
@@ -832,33 +832,33 @@ const ze = {
|
|
|
832
832
|
},
|
|
833
833
|
setup(e) {
|
|
834
834
|
const t = e;
|
|
835
|
-
return (
|
|
836
|
-
const
|
|
837
|
-
return s(), w(
|
|
835
|
+
return (o, a) => {
|
|
836
|
+
const l = fe;
|
|
837
|
+
return s(), w(l, Q(ee({ ...o.$attrs, ...t })), {
|
|
838
838
|
messageicon: v(() => [
|
|
839
|
-
|
|
840
|
-
class:
|
|
839
|
+
m("div", {
|
|
840
|
+
class: F(t.icon ? "me-2 pe-1" : "")
|
|
841
841
|
}, [
|
|
842
|
-
t.icon ? (s(), w(
|
|
842
|
+
t.icon ? (s(), w(c(C), {
|
|
843
843
|
key: 0,
|
|
844
844
|
"data-cy": "message-icon",
|
|
845
845
|
icon: t.icon,
|
|
846
|
-
class:
|
|
846
|
+
class: F(`text-${t.severity}`),
|
|
847
847
|
height: 35
|
|
848
|
-
}, null, 8, ["icon", "class"])) :
|
|
848
|
+
}, null, 8, ["icon", "class"])) : B("", !0)
|
|
849
849
|
], 2)
|
|
850
850
|
]),
|
|
851
851
|
closeicon: v(() => [
|
|
852
|
-
|
|
852
|
+
y(c(C), { icon: "bi:x" })
|
|
853
853
|
]),
|
|
854
854
|
default: v(() => [
|
|
855
|
-
|
|
855
|
+
_(o.$slots, "default")
|
|
856
856
|
]),
|
|
857
857
|
_: 3
|
|
858
858
|
}, 16);
|
|
859
859
|
};
|
|
860
860
|
}
|
|
861
|
-
}),
|
|
861
|
+
}), rl = /* @__PURE__ */ $({
|
|
862
862
|
__name: "ForgeActionButton",
|
|
863
863
|
props: {
|
|
864
864
|
action: {},
|
|
@@ -867,31 +867,31 @@ const ze = {
|
|
|
867
867
|
params: { default: Array }
|
|
868
868
|
},
|
|
869
869
|
setup(e) {
|
|
870
|
-
const t =
|
|
870
|
+
const t = V(!1), o = e, a = async () => {
|
|
871
871
|
t.value = !0;
|
|
872
872
|
try {
|
|
873
|
-
await
|
|
874
|
-
} catch (
|
|
875
|
-
await
|
|
873
|
+
await o.action.apply(this, o.params);
|
|
874
|
+
} catch (l) {
|
|
875
|
+
await o.errorAction.apply(this, o.errorParams ? [...o.errorParams, l] : [l]);
|
|
876
876
|
}
|
|
877
877
|
t.value = !1;
|
|
878
878
|
};
|
|
879
|
-
return (
|
|
880
|
-
const
|
|
879
|
+
return (l, n) => {
|
|
880
|
+
const r = E;
|
|
881
881
|
return s(), p(O, null, [
|
|
882
|
-
|
|
882
|
+
y(r, S({ ...o, ...l.$attrs }, {
|
|
883
883
|
loading: t.value,
|
|
884
|
-
disabled: t.value ||
|
|
884
|
+
disabled: t.value || o.disabled,
|
|
885
885
|
onClick: a
|
|
886
886
|
}), null, 16, ["loading", "disabled"]),
|
|
887
|
-
|
|
887
|
+
y(c(we))
|
|
888
888
|
], 64);
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
|
-
}),
|
|
891
|
+
}), rt = {
|
|
892
892
|
class: "d-flex",
|
|
893
893
|
"data-cy": "checkbox-container"
|
|
894
|
-
},
|
|
894
|
+
}, dt = /* @__PURE__ */ m("div", null, null, -1), ut = ["for"], me = /* @__PURE__ */ $({
|
|
895
895
|
__name: "ForgeCheckbox",
|
|
896
896
|
props: {
|
|
897
897
|
label: { default: "" },
|
|
@@ -919,66 +919,72 @@ const ze = {
|
|
|
919
919
|
},
|
|
920
920
|
emits: ["update:modelValue"],
|
|
921
921
|
setup(e, { emit: t }) {
|
|
922
|
-
const
|
|
922
|
+
const o = t, a = e, { checked: l, handleChange: n, setValue: r, errors: u, errorMessage: f } = Z(() => a.name ?? a.label, a.rules, {
|
|
923
923
|
type: "checkbox",
|
|
924
|
-
checkedValue: !0
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
924
|
+
checkedValue: !0
|
|
925
|
+
}), d = (i) => {
|
|
926
|
+
a.disabled || (n(i), o("update:modelValue", !a.modelValue));
|
|
927
|
+
};
|
|
928
|
+
oe(() => {
|
|
929
|
+
a.value !== void 0 && a.value !== (l == null ? void 0 : l.value) ? r(a.value) : a.modelValue !== void 0 && a.modelValue !== (l == null ? void 0 : l.value) && r(a.modelValue);
|
|
930
|
+
});
|
|
931
|
+
const b = k(() => u.value.length > 0);
|
|
932
|
+
return ge(() => a.value, (i) => {
|
|
933
|
+
i !== (l == null ? void 0 : l.value) && r(i);
|
|
934
|
+
}), (i, h) => {
|
|
935
|
+
const x = ke;
|
|
931
936
|
return s(), p(O, null, [
|
|
932
|
-
|
|
933
|
-
|
|
937
|
+
m("div", rt, [
|
|
938
|
+
y(x, S({
|
|
934
939
|
id: a.name
|
|
935
|
-
}, { ...
|
|
936
|
-
|
|
937
|
-
"
|
|
938
|
-
|
|
940
|
+
}, { ...i.$attrs, ...a }, {
|
|
941
|
+
modelValue: c(l),
|
|
942
|
+
"onUpdate:modelValue": h[0] || (h[0] = (T) => L(l) ? l.value = T : null),
|
|
943
|
+
"input-class": { "is-invalid": b.value },
|
|
944
|
+
onChange: d
|
|
939
945
|
}), {
|
|
940
946
|
icon: v(() => [
|
|
941
|
-
|
|
947
|
+
dt
|
|
942
948
|
]),
|
|
943
949
|
_: 1
|
|
944
|
-
}, 16, ["id", "
|
|
945
|
-
|
|
950
|
+
}, 16, ["id", "modelValue", "input-class"]),
|
|
951
|
+
m("label", {
|
|
946
952
|
for: a.name,
|
|
947
|
-
class:
|
|
948
|
-
onClick:
|
|
953
|
+
class: F(`${a.disabled ? "opacity-50" : "cursor-pointer"}`),
|
|
954
|
+
onClick: d
|
|
949
955
|
}, [
|
|
950
|
-
|
|
951
|
-
|
|
956
|
+
_(i.$slots, "default", {}, () => [
|
|
957
|
+
I(g(a.label), 1)
|
|
952
958
|
])
|
|
953
|
-
], 10,
|
|
959
|
+
], 10, ut)
|
|
954
960
|
]),
|
|
955
|
-
|
|
961
|
+
H(m("small", {
|
|
956
962
|
"data-cy": "error",
|
|
957
963
|
class: "text-invalid"
|
|
958
|
-
}, g(
|
|
959
|
-
[q,
|
|
964
|
+
}, g(c(f)), 513), [
|
|
965
|
+
[q, b.value]
|
|
960
966
|
])
|
|
961
967
|
], 64);
|
|
962
968
|
};
|
|
963
969
|
}
|
|
964
|
-
}),
|
|
970
|
+
}), ct = { class: "forge-loader" }, pe = /* @__PURE__ */ $({
|
|
965
971
|
__name: "ForgeLoader",
|
|
966
972
|
props: {
|
|
967
973
|
severity: { default: "primary" }
|
|
968
974
|
},
|
|
969
975
|
setup(e) {
|
|
970
976
|
const t = e;
|
|
971
|
-
return (
|
|
972
|
-
const
|
|
973
|
-
return s(), p("div",
|
|
974
|
-
|
|
977
|
+
return (o, a) => {
|
|
978
|
+
const l = _e;
|
|
979
|
+
return s(), p("div", ct, [
|
|
980
|
+
y(l, {
|
|
975
981
|
"animation-duration": ".75",
|
|
976
|
-
class:
|
|
982
|
+
class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
977
983
|
}, null, 8, ["class"])
|
|
978
984
|
]);
|
|
979
985
|
};
|
|
980
986
|
}
|
|
981
|
-
}),
|
|
987
|
+
}), mt = ["href", "target"], dl = /* @__PURE__ */ $({
|
|
982
988
|
__name: "ForgeLink",
|
|
983
989
|
props: {
|
|
984
990
|
url: {},
|
|
@@ -996,7 +1002,7 @@ const ze = {
|
|
|
996
1002
|
iconName: {}
|
|
997
1003
|
},
|
|
998
1004
|
setup(e) {
|
|
999
|
-
const t =
|
|
1005
|
+
const t = k(() => ({
|
|
1000
1006
|
[`link-${e.severity}`]: e.severity,
|
|
1001
1007
|
[`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
|
|
1002
1008
|
[`link-opacity-${e.opacity}`]: e.opacity,
|
|
@@ -1005,46 +1011,46 @@ const ze = {
|
|
|
1005
1011
|
[`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
|
|
1006
1012
|
[`link-offset-${e.underlineOffset}`]: e.underlineOffset,
|
|
1007
1013
|
"icon-link icon-link-hover": e.animateIconOnHover
|
|
1008
|
-
})),
|
|
1014
|
+
})), o = k(() => ({
|
|
1009
1015
|
"order-2": e.positionIconEnd,
|
|
1010
1016
|
"me-1": !e.positionIconEnd && !e.animateIconOnHover,
|
|
1011
1017
|
"ms-1": e.positionIconEnd && !e.animateIconOnHover,
|
|
1012
1018
|
"ms-0": e.positionIconEnd && e.animateIconOnHover,
|
|
1013
1019
|
"me-0": e.animateIconOnHover
|
|
1014
1020
|
}));
|
|
1015
|
-
return (a,
|
|
1021
|
+
return (a, l) => (s(), p("a", {
|
|
1016
1022
|
id: "link",
|
|
1017
|
-
class:
|
|
1023
|
+
class: F(["cursor-pointer d-flex", t.value]),
|
|
1018
1024
|
href: a.url,
|
|
1019
1025
|
target: a.target
|
|
1020
1026
|
}, [
|
|
1021
|
-
|
|
1022
|
-
a.iconName ? (s(), w(
|
|
1027
|
+
_(a.$slots, "default", {}, () => [
|
|
1028
|
+
a.iconName ? (s(), w(c(C), {
|
|
1023
1029
|
key: 0,
|
|
1024
1030
|
id: "link-icon",
|
|
1025
1031
|
icon: a.iconName,
|
|
1026
|
-
class:
|
|
1027
|
-
}, null, 8, ["icon", "class"])) :
|
|
1028
|
-
|
|
1032
|
+
class: F(["bi my-auto", o.value])
|
|
1033
|
+
}, null, 8, ["icon", "class"])) : B("", !0),
|
|
1034
|
+
I(" " + g(a.label), 1)
|
|
1029
1035
|
])
|
|
1030
|
-
], 10,
|
|
1036
|
+
], 10, mt));
|
|
1031
1037
|
}
|
|
1032
1038
|
});
|
|
1033
|
-
function
|
|
1039
|
+
function pt(e) {
|
|
1034
1040
|
const t = {
|
|
1035
1041
|
errorMessage: "",
|
|
1036
1042
|
errorDetails: []
|
|
1037
1043
|
};
|
|
1038
1044
|
if (e.exception && (t.errorMessage = e.exception), e.message && (Array.isArray(e.message) ? t.errorDetails = e.message : t.errorMessage = e.message), e.response) {
|
|
1039
|
-
const
|
|
1040
|
-
|
|
1045
|
+
const o = JSON.parse(e.response);
|
|
1046
|
+
o.errors && (t.errorDetails = Object.values(o.errors).flat()), o.message && (t.errorDetails = o.message);
|
|
1041
1047
|
}
|
|
1042
1048
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1043
1049
|
}
|
|
1044
|
-
const
|
|
1050
|
+
const yt = { key: 0 }, vt = {
|
|
1045
1051
|
class: "d-flex w-100",
|
|
1046
1052
|
"data-cy": "footer"
|
|
1047
|
-
},
|
|
1053
|
+
}, ul = /* @__PURE__ */ $({
|
|
1048
1054
|
__name: "ForgeModal",
|
|
1049
1055
|
props: /* @__PURE__ */ G({
|
|
1050
1056
|
cancelText: { default: "Cancel" },
|
|
@@ -1087,102 +1093,102 @@ const ct = { key: 0 }, mt = {
|
|
|
1087
1093
|
}),
|
|
1088
1094
|
emits: ["update:visible"],
|
|
1089
1095
|
setup(e) {
|
|
1090
|
-
const t =
|
|
1096
|
+
const t = j(e, "visible"), o = V(!1), a = e, l = V(!1), n = V({
|
|
1091
1097
|
hasError: !1,
|
|
1092
1098
|
header: "",
|
|
1093
1099
|
message: []
|
|
1094
|
-
}),
|
|
1095
|
-
|
|
1096
|
-
},
|
|
1097
|
-
|
|
1098
|
-
},
|
|
1100
|
+
}), r = () => {
|
|
1101
|
+
o.value = !1;
|
|
1102
|
+
}, u = () => {
|
|
1103
|
+
o.value = !0;
|
|
1104
|
+
}, f = () => {
|
|
1099
1105
|
t.value = !1;
|
|
1100
|
-
},
|
|
1106
|
+
}, d = async () => {
|
|
1101
1107
|
if (a.onConfirm) {
|
|
1102
|
-
|
|
1108
|
+
l.value = !0, n.value.hasError = !1;
|
|
1103
1109
|
try {
|
|
1104
|
-
const
|
|
1105
|
-
(
|
|
1106
|
-
} catch (
|
|
1110
|
+
const i = await a.onConfirm();
|
|
1111
|
+
(i || i == null) && f();
|
|
1112
|
+
} catch (i) {
|
|
1107
1113
|
n.value.hasError = !0;
|
|
1108
|
-
const
|
|
1109
|
-
n.value.header =
|
|
1114
|
+
const h = pt(i);
|
|
1115
|
+
n.value.header = h.errorMessage, n.value.message = h.errorDetails;
|
|
1110
1116
|
}
|
|
1111
|
-
|
|
1117
|
+
l.value = !1;
|
|
1112
1118
|
}
|
|
1113
|
-
},
|
|
1119
|
+
}, b = k(() => ({
|
|
1114
1120
|
root: [
|
|
1115
1121
|
"modal modal-dialog modal-content h-auto m-0",
|
|
1116
1122
|
{
|
|
1117
|
-
"mw-100 vh-100 vw-100 top-0 start-0":
|
|
1123
|
+
"mw-100 vh-100 vw-100 top-0 start-0": o.value
|
|
1118
1124
|
}
|
|
1119
1125
|
]
|
|
1120
1126
|
}));
|
|
1121
|
-
return (
|
|
1122
|
-
const
|
|
1127
|
+
return (i, h) => {
|
|
1128
|
+
const x = E, T = xe;
|
|
1123
1129
|
return s(), w(T, S(a, {
|
|
1124
|
-
onMaximize:
|
|
1125
|
-
onUnmaximize:
|
|
1126
|
-
pt:
|
|
1127
|
-
}),
|
|
1130
|
+
onMaximize: u,
|
|
1131
|
+
onUnmaximize: r,
|
|
1132
|
+
pt: b.value
|
|
1133
|
+
}), te({
|
|
1128
1134
|
closeicon: v(() => [
|
|
1129
|
-
|
|
1135
|
+
y(c(C), {
|
|
1130
1136
|
"data-cy": "close-icon",
|
|
1131
1137
|
icon: "bi:x-lg",
|
|
1132
1138
|
width: "18",
|
|
1133
1139
|
height: "18",
|
|
1134
|
-
onClick:
|
|
1140
|
+
onClick: f
|
|
1135
1141
|
})
|
|
1136
1142
|
]),
|
|
1137
1143
|
maximizeicon: v(() => [
|
|
1138
|
-
|
|
1144
|
+
y(c(C), {
|
|
1139
1145
|
"data-cy": "maximisable-icon",
|
|
1140
|
-
icon:
|
|
1146
|
+
icon: o.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1141
1147
|
width: "16",
|
|
1142
1148
|
height: "16"
|
|
1143
1149
|
}, null, 8, ["icon"])
|
|
1144
1150
|
]),
|
|
1145
1151
|
_: 2
|
|
1146
1152
|
}, [
|
|
1147
|
-
|
|
1148
|
-
name:
|
|
1149
|
-
fn: v((
|
|
1150
|
-
n.value.hasError ? (s(), w(
|
|
1153
|
+
R(i.$slots, (P, z) => ({
|
|
1154
|
+
name: z,
|
|
1155
|
+
fn: v((M) => [
|
|
1156
|
+
n.value.hasError ? (s(), w(ae, {
|
|
1151
1157
|
key: 0,
|
|
1152
1158
|
severity: "danger",
|
|
1153
1159
|
"data-cy": "error"
|
|
1154
1160
|
}, {
|
|
1155
1161
|
default: v(() => [
|
|
1156
|
-
|
|
1157
|
-
class:
|
|
1162
|
+
m("p", {
|
|
1163
|
+
class: F(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1158
1164
|
}, g(n.value.header), 3),
|
|
1159
|
-
n.value.message.length > 0 ? (s(), p("ul",
|
|
1160
|
-
(s(!0), p(O, null,
|
|
1161
|
-
])) :
|
|
1165
|
+
n.value.message.length > 0 ? (s(), p("ul", yt, [
|
|
1166
|
+
(s(!0), p(O, null, R(n.value.message, (N) => (s(), p("li", { key: N }, g(N), 1))), 128))
|
|
1167
|
+
])) : B("", !0)
|
|
1162
1168
|
]),
|
|
1163
1169
|
_: 1
|
|
1164
|
-
})) :
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
]) :
|
|
1170
|
+
})) : B("", !0),
|
|
1171
|
+
_(i.$slots, z, Q(ee(M || {}))),
|
|
1172
|
+
l.value ? _(i.$slots, "loader", { key: 1 }, () => [
|
|
1173
|
+
y(pe, { "data-cy": "loader" })
|
|
1174
|
+
]) : B("", !0)
|
|
1169
1175
|
])
|
|
1170
1176
|
})),
|
|
1171
|
-
|
|
1177
|
+
i.showFooter ? {
|
|
1172
1178
|
name: "footer",
|
|
1173
1179
|
fn: v(() => [
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
label:
|
|
1177
|
-
class:
|
|
1180
|
+
m("div", vt, [
|
|
1181
|
+
y(x, {
|
|
1182
|
+
label: i.cancelText,
|
|
1183
|
+
class: F(a.cancelClass),
|
|
1178
1184
|
outlined: "",
|
|
1179
|
-
onClick:
|
|
1185
|
+
onClick: f,
|
|
1180
1186
|
id: "cancel-button"
|
|
1181
1187
|
}, null, 8, ["label", "class"]),
|
|
1182
|
-
|
|
1183
|
-
label:
|
|
1184
|
-
class:
|
|
1185
|
-
onClick:
|
|
1188
|
+
y(x, {
|
|
1189
|
+
label: i.submitText,
|
|
1190
|
+
class: F([a.submitClass, "ms-auto"]),
|
|
1191
|
+
onClick: d,
|
|
1186
1192
|
id: "submit-button"
|
|
1187
1193
|
}, null, 8, ["label", "class"])
|
|
1188
1194
|
])
|
|
@@ -1192,7 +1198,7 @@ const ct = { key: 0 }, mt = {
|
|
|
1192
1198
|
]), 1040, ["pt"]);
|
|
1193
1199
|
};
|
|
1194
1200
|
}
|
|
1195
|
-
}),
|
|
1201
|
+
}), bt = ["id"], ft = { key: 0 }, gt = { key: 0 }, ht = { class: "d-flex justify-content-between align-items-center position-relative" }, wt = { key: 1 }, kt = { "data-cy": "readonly-value" }, _t = /* @__PURE__ */ $({
|
|
1196
1202
|
__name: "ForgeInlineEditor",
|
|
1197
1203
|
props: /* @__PURE__ */ G({
|
|
1198
1204
|
name: { default: "" },
|
|
@@ -1208,13 +1214,13 @@ const ct = { key: 0 }, mt = {
|
|
|
1208
1214
|
}),
|
|
1209
1215
|
emits: ["update:modelValue"],
|
|
1210
1216
|
setup(e) {
|
|
1211
|
-
const t = e,
|
|
1212
|
-
var
|
|
1213
|
-
a.value = !a.value, (
|
|
1214
|
-
},
|
|
1215
|
-
if (
|
|
1217
|
+
const t = e, o = j(e, "modelValue"), a = V(!1), l = V(), n = () => {
|
|
1218
|
+
var x;
|
|
1219
|
+
a.value = !a.value, (x = l.value) == null || x.focus();
|
|
1220
|
+
}, r = async () => {
|
|
1221
|
+
if (h.value)
|
|
1216
1222
|
return !1;
|
|
1217
|
-
if (
|
|
1223
|
+
if (o.value = i.value, t.completeAction)
|
|
1218
1224
|
try {
|
|
1219
1225
|
await t.completeAction.apply(this, t.params), a.value = !a.value;
|
|
1220
1226
|
} catch {
|
|
@@ -1222,56 +1228,56 @@ const ct = { key: 0 }, mt = {
|
|
|
1222
1228
|
}
|
|
1223
1229
|
else
|
|
1224
1230
|
a.value = !a.value;
|
|
1225
|
-
},
|
|
1231
|
+
}, u = () => {
|
|
1226
1232
|
a.value = !a.value;
|
|
1227
|
-
},
|
|
1228
|
-
|
|
1229
|
-
}, { errorMessage:
|
|
1230
|
-
|
|
1231
|
-
|
|
1233
|
+
}, f = () => {
|
|
1234
|
+
i.value = null;
|
|
1235
|
+
}, { errorMessage: d, errors: b, value: i } = Z(() => t.name, t.rules);
|
|
1236
|
+
oe(() => {
|
|
1237
|
+
i.value = o.value;
|
|
1232
1238
|
});
|
|
1233
|
-
const
|
|
1234
|
-
return (
|
|
1235
|
-
const
|
|
1239
|
+
const h = k(() => b.value.length > 0);
|
|
1240
|
+
return (x, T) => {
|
|
1241
|
+
const P = ne, z = E;
|
|
1236
1242
|
return s(), p("div", {
|
|
1237
1243
|
id: t.name
|
|
1238
1244
|
}, [
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1245
|
+
x.readonly ? (s(), p("div", wt, [
|
|
1246
|
+
_(x.$slots, "default", {}, () => [
|
|
1247
|
+
m("span", kt, g(c(i)), 1)
|
|
1242
1248
|
])
|
|
1243
|
-
])) : (s(), p("div",
|
|
1244
|
-
a.value ? (s(), p("div",
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
class:
|
|
1248
|
-
editFinished:
|
|
1249
|
-
cancel:
|
|
1250
|
-
val:
|
|
1249
|
+
])) : (s(), p("div", ft, [
|
|
1250
|
+
a.value ? (s(), p("div", gt, [
|
|
1251
|
+
H((s(), p("div", ht, [
|
|
1252
|
+
_(x.$slots, "editor", {
|
|
1253
|
+
class: F({ "is-invalid": h.value }),
|
|
1254
|
+
editFinished: r,
|
|
1255
|
+
cancel: u,
|
|
1256
|
+
val: c(i)
|
|
1251
1257
|
}, () => [
|
|
1252
|
-
|
|
1258
|
+
y(P, {
|
|
1253
1259
|
"data-cy": "input",
|
|
1254
1260
|
ref_key: "input",
|
|
1255
|
-
ref:
|
|
1256
|
-
modelValue:
|
|
1257
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
1261
|
+
ref: l,
|
|
1262
|
+
modelValue: c(i),
|
|
1263
|
+
"onUpdate:modelValue": T[0] || (T[0] = (M) => L(i) ? i.value = M : null),
|
|
1258
1264
|
modelModifiers: { trim: !0 },
|
|
1259
|
-
class:
|
|
1265
|
+
class: F({ "is-invalid": h.value }),
|
|
1260
1266
|
onKeydown: [
|
|
1261
|
-
|
|
1262
|
-
|
|
1267
|
+
J(r, ["enter"]),
|
|
1268
|
+
J(u, ["esc"])
|
|
1263
1269
|
]
|
|
1264
1270
|
}, null, 8, ["modelValue", "class"])
|
|
1265
1271
|
]),
|
|
1266
|
-
|
|
1272
|
+
y(c(C), {
|
|
1267
1273
|
icon: "bi:x-circle",
|
|
1268
1274
|
class: "mx-2 cursor-pointer",
|
|
1269
|
-
onClick:
|
|
1270
|
-
onKeydown:
|
|
1275
|
+
onClick: f,
|
|
1276
|
+
onKeydown: J(f, ["enter"]),
|
|
1271
1277
|
"data-cy": "clear-icon"
|
|
1272
1278
|
})
|
|
1273
1279
|
])), [
|
|
1274
|
-
[
|
|
1280
|
+
[c($e), r]
|
|
1275
1281
|
])
|
|
1276
1282
|
])) : (s(), p("div", {
|
|
1277
1283
|
key: 1,
|
|
@@ -1279,38 +1285,38 @@ const ct = { key: 0 }, mt = {
|
|
|
1279
1285
|
onClick: n,
|
|
1280
1286
|
onFocus: n
|
|
1281
1287
|
}, [
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
class:
|
|
1288
|
+
_(x.$slots, "default", {}, () => [
|
|
1289
|
+
m("div", {
|
|
1290
|
+
class: F(["pe-2 cursor-pointer", { "text-invalid": h.value }]),
|
|
1285
1291
|
"data-cy": "value"
|
|
1286
|
-
}, g(
|
|
1292
|
+
}, g(c(i) ? c(i) : "Click to edit"), 3)
|
|
1287
1293
|
]),
|
|
1288
|
-
|
|
1294
|
+
y(z, {
|
|
1289
1295
|
link: "",
|
|
1290
1296
|
class: "p-0 m-0"
|
|
1291
1297
|
}, {
|
|
1292
1298
|
default: v(() => [
|
|
1293
|
-
|
|
1299
|
+
y(c(C), {
|
|
1294
1300
|
icon: "bi:pencil",
|
|
1295
|
-
class:
|
|
1301
|
+
class: F(h.value ? "text-invalid" : "text-muted"),
|
|
1296
1302
|
"data-cy": "edit-icon",
|
|
1297
|
-
onKeydown:
|
|
1303
|
+
onKeydown: J(n, ["enter"])
|
|
1298
1304
|
}, null, 8, ["class"])
|
|
1299
1305
|
]),
|
|
1300
1306
|
_: 1
|
|
1301
1307
|
})
|
|
1302
1308
|
], 32))
|
|
1303
1309
|
])),
|
|
1304
|
-
|
|
1310
|
+
H(m("small", {
|
|
1305
1311
|
"data-cy": "error",
|
|
1306
1312
|
class: "text-invalid"
|
|
1307
|
-
}, g(
|
|
1308
|
-
[q,
|
|
1313
|
+
}, g(c(d)), 513), [
|
|
1314
|
+
[q, h.value]
|
|
1309
1315
|
])
|
|
1310
|
-
], 8,
|
|
1316
|
+
], 8, bt);
|
|
1311
1317
|
};
|
|
1312
1318
|
}
|
|
1313
|
-
}),
|
|
1319
|
+
}), xt = ["href"], cl = /* @__PURE__ */ $({
|
|
1314
1320
|
__name: "ForgeNavbar",
|
|
1315
1321
|
props: {
|
|
1316
1322
|
severity: { default: "light" },
|
|
@@ -1327,7 +1333,7 @@ const ct = { key: 0 }, mt = {
|
|
|
1327
1333
|
unstyled: { type: Boolean }
|
|
1328
1334
|
},
|
|
1329
1335
|
setup(e) {
|
|
1330
|
-
const t = e,
|
|
1336
|
+
const t = e, o = k(() => ({
|
|
1331
1337
|
root: () => ({
|
|
1332
1338
|
class: [
|
|
1333
1339
|
"navbar container-fluid navbar-expand-lg",
|
|
@@ -1354,28 +1360,28 @@ const ct = { key: 0 }, mt = {
|
|
|
1354
1360
|
]
|
|
1355
1361
|
})
|
|
1356
1362
|
}));
|
|
1357
|
-
return (a,
|
|
1358
|
-
const n =
|
|
1363
|
+
return (a, l) => {
|
|
1364
|
+
const n = Be;
|
|
1359
1365
|
return s(), w(n, S({ ...t, ...a.$attrs }, {
|
|
1360
|
-
pt:
|
|
1366
|
+
pt: o.value,
|
|
1361
1367
|
"data-cy": "navbar"
|
|
1362
|
-
}),
|
|
1368
|
+
}), te({
|
|
1363
1369
|
start: v(() => [
|
|
1364
|
-
|
|
1370
|
+
m("a", {
|
|
1365
1371
|
href: a.logoUrl,
|
|
1366
1372
|
class: "navbar-brand ms-3",
|
|
1367
1373
|
"data-cy": "logo"
|
|
1368
1374
|
}, [
|
|
1369
|
-
|
|
1370
|
-
|
|
1375
|
+
_(a.$slots, "logo", {}, () => [
|
|
1376
|
+
I(" Logo ")
|
|
1371
1377
|
])
|
|
1372
|
-
], 8,
|
|
1378
|
+
], 8, xt)
|
|
1373
1379
|
]),
|
|
1374
1380
|
menubuttonicon: v(() => [
|
|
1375
|
-
|
|
1376
|
-
|
|
1381
|
+
_(a.$slots, "menubuttonicon", {}, () => [
|
|
1382
|
+
y(c(C), {
|
|
1377
1383
|
icon: "bi:list",
|
|
1378
|
-
class:
|
|
1384
|
+
class: F(t.severity === "light" ? "text-black" : "text-white"),
|
|
1379
1385
|
height: "24",
|
|
1380
1386
|
"data-cy": "burger-icon"
|
|
1381
1387
|
}, null, 8, ["class"])
|
|
@@ -1383,16 +1389,16 @@ const ct = { key: 0 }, mt = {
|
|
|
1383
1389
|
]),
|
|
1384
1390
|
_: 2
|
|
1385
1391
|
}, [
|
|
1386
|
-
|
|
1387
|
-
name:
|
|
1388
|
-
fn: v((
|
|
1389
|
-
|
|
1392
|
+
R(a.$slots, (r, u) => ({
|
|
1393
|
+
name: u,
|
|
1394
|
+
fn: v((f) => [
|
|
1395
|
+
_(a.$slots, u, Q(ee(f)))
|
|
1390
1396
|
])
|
|
1391
1397
|
}))
|
|
1392
1398
|
]), 1040, ["pt"]);
|
|
1393
1399
|
};
|
|
1394
1400
|
}
|
|
1395
|
-
}),
|
|
1401
|
+
}), $t = /* @__PURE__ */ m("div", { class: "ps-1" }, "Select all", -1), Bt = ["data-cy"], Ft = { class: "ps-1" }, St = { class: "multiselect__tag d-inline-flex" }, Ct = { class: "my-auto" }, Tt = /* @__PURE__ */ $({
|
|
1396
1402
|
__name: "ForgeMultiSelect",
|
|
1397
1403
|
props: {
|
|
1398
1404
|
severity: { default: "primary" },
|
|
@@ -1405,119 +1411,141 @@ const ct = { key: 0 }, mt = {
|
|
|
1405
1411
|
},
|
|
1406
1412
|
emits: ["update:modelValue"],
|
|
1407
1413
|
setup(e, { emit: t }) {
|
|
1408
|
-
const
|
|
1414
|
+
const o = e, a = (D, U) => {
|
|
1415
|
+
const Y = {
|
|
1416
|
+
...U,
|
|
1417
|
+
$isDisabled: U.$isDisabled ?? !1
|
|
1418
|
+
};
|
|
1419
|
+
D(Y);
|
|
1420
|
+
}, l = de(), n = t, { errors: r, value: u, errorMessage: f } = Z(() => o.name, o.rules), d = V(!1), b = k(() => ({
|
|
1409
1421
|
multiple: !0,
|
|
1410
1422
|
label: "label",
|
|
1411
1423
|
trackBy: "id",
|
|
1412
|
-
showPointer: !
|
|
1413
|
-
placeholder: "Select
|
|
1424
|
+
showPointer: !d.value,
|
|
1425
|
+
placeholder: l.searchable === null || l.searchable ? "Search" : "Select",
|
|
1414
1426
|
allowEmpty: !0,
|
|
1415
1427
|
selectValue: "",
|
|
1416
|
-
closeOnSelect: !!(
|
|
1417
|
-
clearOnSelect: !!(
|
|
1418
|
-
searchable: !!(
|
|
1428
|
+
closeOnSelect: !!(l.multiple === null || l.multiple),
|
|
1429
|
+
clearOnSelect: !!(l.multiple === null || l.multiple),
|
|
1430
|
+
searchable: !!(l.searchable === null || l.searchable) && l.modelValue.length === l.options.length,
|
|
1419
1431
|
async: !1,
|
|
1420
|
-
...
|
|
1421
|
-
})),
|
|
1422
|
-
|
|
1423
|
-
},
|
|
1424
|
-
|
|
1425
|
-
},
|
|
1426
|
-
|
|
1432
|
+
...l
|
|
1433
|
+
})), i = k(() => `forge-multiselect-${o.severity}`), h = k(() => `multiselect__option ${d.value ? " multiselect__option--highlight" : ""} ${x.value ? " multiselect__option--selected" : ""}`), x = k(() => b.value && !(b.value.multiple || !o.showSelectAll || b.value.async) ? !1 : l.modelValue.length === l.options.length), T = k(() => r.value.length > 0), P = k(() => !!((l.allowEmpty == null || l.allowEmpty) && o.showClearSelection && (b.value.multiple ? l.modelValue.length > 0 : l.modelValue))), z = () => d.value = !0, M = () => d.value = !1, N = () => {
|
|
1434
|
+
u.value = b.value.multiple ? [] : null, n("update:modelValue", u.value);
|
|
1435
|
+
}, le = (D) => {
|
|
1436
|
+
n("update:modelValue", o.selectValue ? D.map((U) => U[o.selectValue]) : D);
|
|
1437
|
+
}, ve = (D) => l.modelValue !== null ? l.modelValue.some((U) => b.value.selectValue ? D[o.selectValue] === U : D.id === U.id && D.label === U.label) : !1, be = () => {
|
|
1438
|
+
x.value ? N() : (u.value = [...l.options], n("update:modelValue", [...l.options]));
|
|
1427
1439
|
};
|
|
1428
|
-
return (
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
T.value ? {
|
|
1444
|
-
name: "caret",
|
|
1445
|
-
fn: v(({ toggle: R }) => [
|
|
1446
|
-
b(u(C), {
|
|
1440
|
+
return (D, U) => {
|
|
1441
|
+
const Y = me;
|
|
1442
|
+
return s(), p(O, null, [
|
|
1443
|
+
y(c(Fe), S(b.value, {
|
|
1444
|
+
class: [i.value, T.value ? "is-invalid" : ""],
|
|
1445
|
+
"data-cy": "multiselect",
|
|
1446
|
+
"onUpdate:modelValue": [
|
|
1447
|
+
le,
|
|
1448
|
+
U[1] || (U[1] = (A) => L(u) ? u.value = A : null)
|
|
1449
|
+
],
|
|
1450
|
+
modelValue: c(u)
|
|
1451
|
+
}), te({
|
|
1452
|
+
caret: v(({ toggle: A }) => [
|
|
1453
|
+
P.value ? (s(), w(c(C), {
|
|
1454
|
+
key: 0,
|
|
1447
1455
|
icon: "bi:x",
|
|
1448
1456
|
class: "my-auto multiselect__clear-icon",
|
|
1449
|
-
onMousedown:
|
|
1450
|
-
"data-cy": "clear"
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1457
|
+
onMousedown: U[0] || (U[0] = K((W) => N(), ["prevent", "stop"])),
|
|
1458
|
+
"data-cy": "clear",
|
|
1459
|
+
height: "18px",
|
|
1460
|
+
width: "18px"
|
|
1461
|
+
})) : B("", !0),
|
|
1462
|
+
y(c(C), {
|
|
1463
|
+
icon: "bi:chevron-down",
|
|
1464
|
+
onClick: A,
|
|
1465
|
+
class: "multiselect__select"
|
|
1466
|
+
}, null, 8, ["onClick"])
|
|
1456
1467
|
]),
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
}, [
|
|
1469
|
-
c("span", {
|
|
1470
|
-
class: B(`multiselect__option ${d.value}`)
|
|
1471
|
-
}, [
|
|
1472
|
-
c("input", {
|
|
1473
|
-
checked: f.value,
|
|
1474
|
-
name: "selected",
|
|
1475
|
-
type: "checkbox",
|
|
1476
|
-
class: "multiselect__option--checkbox"
|
|
1477
|
-
}, null, 8, _t),
|
|
1478
|
-
xt
|
|
1479
|
-
], 2)
|
|
1480
|
-
], 32)
|
|
1468
|
+
tag: v(({ option: A, remove: W }) => [
|
|
1469
|
+
m("div", St, [
|
|
1470
|
+
m("div", Ct, g(A.label), 1),
|
|
1471
|
+
y(c(C), {
|
|
1472
|
+
icon: "bi:x",
|
|
1473
|
+
class: "my-auto multiselect__tag-icon",
|
|
1474
|
+
onMousedown: K((Ma) => a(W, A), ["prevent", "stop"]),
|
|
1475
|
+
height: "18px",
|
|
1476
|
+
width: "18px"
|
|
1477
|
+
}, null, 8, ["onMousedown"])
|
|
1478
|
+
])
|
|
1481
1479
|
]),
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
r.value.multiple ? {
|
|
1485
|
-
name: "option",
|
|
1486
|
-
fn: v(({ option: R }) => [
|
|
1487
|
-
c("div", {
|
|
1488
|
-
"data-cy": R.label
|
|
1489
|
-
}, [
|
|
1490
|
-
c("input", {
|
|
1491
|
-
checked: te(R),
|
|
1492
|
-
name: "selected",
|
|
1493
|
-
type: "checkbox",
|
|
1494
|
-
class: "multiselect__option--checkbox"
|
|
1495
|
-
}, null, 8, Bt),
|
|
1496
|
-
V(" " + g(R[r.value.label]), 1)
|
|
1497
|
-
], 8, $t)
|
|
1480
|
+
default: v(() => [
|
|
1481
|
+
(s(!0), p(O, null, R(D.$slots, (A, W) => _(D.$slots, W, { slot: W })), 256))
|
|
1498
1482
|
]),
|
|
1499
|
-
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1483
|
+
_: 2
|
|
1484
|
+
}, [
|
|
1485
|
+
b.value.multiple && D.showSelectAll && !b.value.async ? {
|
|
1486
|
+
name: "beforeList",
|
|
1487
|
+
fn: v(() => [
|
|
1488
|
+
m("li", {
|
|
1489
|
+
class: "multiselect__element",
|
|
1490
|
+
onClick: be,
|
|
1491
|
+
onMouseover: z,
|
|
1492
|
+
onMouseleave: M,
|
|
1493
|
+
"data-cy": "toggle-all"
|
|
1494
|
+
}, [
|
|
1495
|
+
m("span", {
|
|
1496
|
+
class: F(`${h.value}`)
|
|
1497
|
+
}, [
|
|
1498
|
+
y(Y, { value: x.value }, {
|
|
1499
|
+
default: v(() => [
|
|
1500
|
+
$t
|
|
1501
|
+
]),
|
|
1502
|
+
_: 1
|
|
1503
|
+
}, 8, ["value"])
|
|
1504
|
+
], 2)
|
|
1505
|
+
], 32)
|
|
1506
|
+
]),
|
|
1507
|
+
key: "0"
|
|
1508
|
+
} : void 0,
|
|
1509
|
+
b.value.multiple ? {
|
|
1510
|
+
name: "option",
|
|
1511
|
+
fn: v(({ option: A }) => [
|
|
1512
|
+
m("div", {
|
|
1513
|
+
"data-cy": A.label
|
|
1514
|
+
}, [
|
|
1515
|
+
(s(), w(Y, {
|
|
1516
|
+
value: ve(A),
|
|
1517
|
+
key: A
|
|
1518
|
+
}, {
|
|
1519
|
+
default: v(() => [
|
|
1520
|
+
m("div", Ft, g(A[b.value.label]), 1)
|
|
1521
|
+
]),
|
|
1522
|
+
_: 2
|
|
1523
|
+
}, 1032, ["value"]))
|
|
1524
|
+
], 8, Bt)
|
|
1525
|
+
]),
|
|
1526
|
+
key: "1"
|
|
1527
|
+
} : void 0
|
|
1528
|
+
]), 1040, ["class", "modelValue"]),
|
|
1529
|
+
H(m("small", {
|
|
1530
|
+
"data-cy": "error",
|
|
1531
|
+
class: "invalid-feedback"
|
|
1532
|
+
}, g(c(f)), 513), [
|
|
1533
|
+
[q, T.value]
|
|
1534
|
+
])
|
|
1535
|
+
], 64);
|
|
1536
|
+
};
|
|
1509
1537
|
}
|
|
1510
|
-
}),
|
|
1538
|
+
}), Vt = {
|
|
1511
1539
|
key: 0,
|
|
1512
1540
|
class: "pl-1"
|
|
1513
|
-
},
|
|
1541
|
+
}, Pt = { class: "border alternating-item-list" }, It = {
|
|
1514
1542
|
key: 0,
|
|
1515
1543
|
class: "p-2 border-top border-bottom",
|
|
1516
1544
|
"data-cy": "title"
|
|
1517
|
-
},
|
|
1545
|
+
}, zt = { class: "d-inline-block" }, Mt = {
|
|
1518
1546
|
key: 1,
|
|
1519
1547
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1520
|
-
},
|
|
1548
|
+
}, ml = /* @__PURE__ */ $({
|
|
1521
1549
|
__name: "ForgeMultiSelectPreview",
|
|
1522
1550
|
props: {
|
|
1523
1551
|
title: { default: "Selected Items" },
|
|
@@ -1528,104 +1556,104 @@ const ct = { key: 0 }, mt = {
|
|
|
1528
1556
|
},
|
|
1529
1557
|
emits: ["update:modelValue"],
|
|
1530
1558
|
setup(e, { emit: t }) {
|
|
1531
|
-
const
|
|
1532
|
-
|
|
1533
|
-
},
|
|
1534
|
-
|
|
1559
|
+
const o = e, a = de(), l = t, n = k(() => `${a.modelValue.length} selected`), r = k(() => a.modelValue.length), u = (d) => {
|
|
1560
|
+
l("update:modelValue", d);
|
|
1561
|
+
}, f = (d) => {
|
|
1562
|
+
u(a.modelValue.filter((b) => b.id !== d));
|
|
1535
1563
|
};
|
|
1536
|
-
return (
|
|
1537
|
-
const
|
|
1564
|
+
return (d, b) => {
|
|
1565
|
+
const i = E;
|
|
1538
1566
|
return s(), p("div", {
|
|
1539
|
-
class:
|
|
1567
|
+
class: F(d.orientation === "column" ? "row" : ""),
|
|
1540
1568
|
"data-cy": "multiselect-preview"
|
|
1541
1569
|
}, [
|
|
1542
|
-
|
|
1543
|
-
class:
|
|
1570
|
+
m("div", {
|
|
1571
|
+
class: F(d.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1544
1572
|
"data-cy": "multiselect-container"
|
|
1545
1573
|
}, [
|
|
1546
|
-
|
|
1574
|
+
y(Tt, {
|
|
1547
1575
|
"onUpdate:modelValue": [
|
|
1548
|
-
|
|
1549
|
-
|
|
1576
|
+
b[0] || (b[0] = (h) => u(h)),
|
|
1577
|
+
b[1] || (b[1] = (h) => d.$attrs.modelValue = h)
|
|
1550
1578
|
],
|
|
1551
|
-
modelValue:
|
|
1579
|
+
modelValue: d.$attrs.modelValue,
|
|
1552
1580
|
"limit-text": n.value,
|
|
1553
|
-
options:
|
|
1581
|
+
options: o.options
|
|
1554
1582
|
}, {
|
|
1555
1583
|
tag: v(() => [
|
|
1556
|
-
|
|
1584
|
+
I(g(""))
|
|
1557
1585
|
]),
|
|
1558
1586
|
selection: v(() => [
|
|
1559
|
-
|
|
1587
|
+
d.$attrs.modelValue.length > 0 ? (s(), p("span", Vt, g(r.value) + " items selected", 1)) : B("", !0)
|
|
1560
1588
|
]),
|
|
1561
1589
|
default: v(() => [
|
|
1562
|
-
(s(!0), p(O, null,
|
|
1590
|
+
(s(!0), p(O, null, R(d.$slots, (h, x) => _(d.$slots, x, { slot: x })), 256))
|
|
1563
1591
|
]),
|
|
1564
1592
|
_: 3
|
|
1565
1593
|
}, 8, ["modelValue", "limit-text", "options"]),
|
|
1566
|
-
|
|
1594
|
+
_(d.$slots, "after-multi-select")
|
|
1567
1595
|
], 2),
|
|
1568
|
-
|
|
1569
|
-
class:
|
|
1596
|
+
m("div", {
|
|
1597
|
+
class: F(d.orientation === "row" ? "col-12" : "col"),
|
|
1570
1598
|
"data-cy": "options-preview"
|
|
1571
1599
|
}, [
|
|
1572
|
-
|
|
1573
|
-
style:
|
|
1600
|
+
m("div", {
|
|
1601
|
+
style: he({ height: d.height }),
|
|
1574
1602
|
class: "overflow-auto"
|
|
1575
1603
|
}, [
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
(s(!0), p(O, null,
|
|
1579
|
-
key:
|
|
1604
|
+
m("div", Pt, [
|
|
1605
|
+
d.title ? (s(), p("div", It, g(d.title), 1)) : B("", !0),
|
|
1606
|
+
(s(!0), p(O, null, R(d.$attrs.modelValue, (h) => (s(), p("div", {
|
|
1607
|
+
key: h.id,
|
|
1580
1608
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1581
1609
|
}, [
|
|
1582
|
-
|
|
1583
|
-
|
|
1610
|
+
_(d.$slots, "list-item", { item: h }, () => [
|
|
1611
|
+
m("span", zt, g(h.shortLabel ? h.shortLabel : h.label), 1)
|
|
1584
1612
|
]),
|
|
1585
|
-
|
|
1613
|
+
d.canRemoveItemFromPreview ? (s(), w(i, {
|
|
1586
1614
|
key: 0,
|
|
1587
1615
|
link: "",
|
|
1588
1616
|
class: "m-0 p-0 d-flex align-items-center",
|
|
1589
|
-
onClick: (
|
|
1617
|
+
onClick: (x) => f(h.id)
|
|
1590
1618
|
}, {
|
|
1591
1619
|
default: v(() => [
|
|
1592
|
-
|
|
1620
|
+
y(c(C), {
|
|
1593
1621
|
icon: "bi:x",
|
|
1594
1622
|
class: "close-icon",
|
|
1595
|
-
"data-cy": `close-icon-${
|
|
1623
|
+
"data-cy": `close-icon-${h.id}`
|
|
1596
1624
|
}, null, 8, ["data-cy"])
|
|
1597
1625
|
]),
|
|
1598
1626
|
_: 2
|
|
1599
|
-
}, 1032, ["onClick"])) :
|
|
1627
|
+
}, 1032, ["onClick"])) : B("", !0)
|
|
1600
1628
|
]))), 128)),
|
|
1601
|
-
|
|
1629
|
+
d.$attrs.modelValue.length === 0 ? (s(), p("div", Mt, "No Items Selected.")) : B("", !0)
|
|
1602
1630
|
])
|
|
1603
1631
|
], 4)
|
|
1604
1632
|
], 2)
|
|
1605
1633
|
], 2);
|
|
1606
1634
|
};
|
|
1607
1635
|
}
|
|
1608
|
-
}),
|
|
1636
|
+
}), Ut = { class: "d-flex justify-content-between pb-2" }, Ot = {
|
|
1609
1637
|
"data-cy": "title",
|
|
1610
1638
|
class: "h3"
|
|
1611
|
-
},
|
|
1639
|
+
}, Dt = {
|
|
1612
1640
|
"data-cy": "slot",
|
|
1613
1641
|
class: "d-flex align-items-center"
|
|
1614
|
-
},
|
|
1642
|
+
}, pl = /* @__PURE__ */ $({
|
|
1615
1643
|
__name: "ForgePageHeader",
|
|
1616
1644
|
props: {
|
|
1617
1645
|
title: {}
|
|
1618
1646
|
},
|
|
1619
1647
|
setup(e) {
|
|
1620
1648
|
const t = e;
|
|
1621
|
-
return (
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1649
|
+
return (o, a) => (s(), p("div", Ut, [
|
|
1650
|
+
m("h1", Ot, g(t.title), 1),
|
|
1651
|
+
m("div", Dt, [
|
|
1652
|
+
_(o.$slots, "default")
|
|
1625
1653
|
])
|
|
1626
1654
|
]));
|
|
1627
1655
|
}
|
|
1628
|
-
}),
|
|
1656
|
+
}), At = { "data-cy": "before-slot" }, Nt = { "data-cy": "after-slot" }, Et = /* @__PURE__ */ $({
|
|
1629
1657
|
__name: "ForgeDatepicker",
|
|
1630
1658
|
props: {
|
|
1631
1659
|
severity: { default: "primary" },
|
|
@@ -1693,7 +1721,7 @@ const ct = { key: 0 }, mt = {
|
|
|
1693
1721
|
unstyled: { type: Boolean }
|
|
1694
1722
|
},
|
|
1695
1723
|
setup(e) {
|
|
1696
|
-
const t = e,
|
|
1724
|
+
const t = e, o = k(() => ({
|
|
1697
1725
|
dayLabel: ({ context: a }) => ({
|
|
1698
1726
|
class: [
|
|
1699
1727
|
"btn rounded-circle w-100 py-2",
|
|
@@ -1742,41 +1770,41 @@ const ct = { key: 0 }, mt = {
|
|
|
1742
1770
|
})
|
|
1743
1771
|
}
|
|
1744
1772
|
}));
|
|
1745
|
-
return (a,
|
|
1746
|
-
const n =
|
|
1773
|
+
return (a, l) => {
|
|
1774
|
+
const n = Se;
|
|
1747
1775
|
return s(), p(O, null, [
|
|
1748
|
-
|
|
1749
|
-
|
|
1776
|
+
m("span", At, [
|
|
1777
|
+
_(a.$slots, "before")
|
|
1750
1778
|
]),
|
|
1751
|
-
|
|
1752
|
-
|
|
1779
|
+
y(n, S({ ...t, ...a.$attrs }, { pt: o.value }), null, 16, ["pt"]),
|
|
1780
|
+
H(y(c(C), {
|
|
1753
1781
|
"data-cy": "icon",
|
|
1754
1782
|
icon: "bi:calendar3",
|
|
1755
1783
|
width: "32",
|
|
1756
1784
|
height: "32",
|
|
1757
|
-
class:
|
|
1785
|
+
class: F(["ps-2", t.severity == null ? "text-primary" : `text-${t.severity}`])
|
|
1758
1786
|
}, null, 8, ["class"]), [
|
|
1759
1787
|
[q, t.showIcon]
|
|
1760
1788
|
]),
|
|
1761
|
-
|
|
1762
|
-
|
|
1789
|
+
m("span", Nt, [
|
|
1790
|
+
_(a.$slots, "after")
|
|
1763
1791
|
])
|
|
1764
1792
|
], 64);
|
|
1765
1793
|
};
|
|
1766
1794
|
}
|
|
1767
|
-
}),
|
|
1795
|
+
}), yl = /* @__PURE__ */ $({
|
|
1768
1796
|
__name: "ForgeRemainingCharacters",
|
|
1769
1797
|
props: {
|
|
1770
1798
|
maxCount: { default: 300 },
|
|
1771
1799
|
currentCount: {}
|
|
1772
1800
|
},
|
|
1773
1801
|
setup(e) {
|
|
1774
|
-
const t = e,
|
|
1775
|
-
return (a,
|
|
1776
|
-
class:
|
|
1777
|
-
}, "Remaining characters: " + g(
|
|
1802
|
+
const t = e, o = k(() => t.maxCount - t.currentCount);
|
|
1803
|
+
return (a, l) => (s(), p("div", {
|
|
1804
|
+
class: F(o.value < 0 ? "text-danger" : "")
|
|
1805
|
+
}, "Remaining characters: " + g(o.value), 3));
|
|
1778
1806
|
}
|
|
1779
|
-
}),
|
|
1807
|
+
}), Rt = /* @__PURE__ */ m("hr", null, null, -1), Lt = { class: "d-flex justify-content-between" }, vl = /* @__PURE__ */ $({
|
|
1780
1808
|
__name: "ForgeForm",
|
|
1781
1809
|
props: {
|
|
1782
1810
|
onSubmit: {},
|
|
@@ -1788,88 +1816,88 @@ const ct = { key: 0 }, mt = {
|
|
|
1788
1816
|
hideCancel: { type: Boolean, default: !1 }
|
|
1789
1817
|
},
|
|
1790
1818
|
setup(e) {
|
|
1791
|
-
const t = e,
|
|
1819
|
+
const t = e, o = V(!1), a = V({
|
|
1792
1820
|
hasError: !1,
|
|
1793
1821
|
message: ""
|
|
1794
1822
|
});
|
|
1795
|
-
async function
|
|
1796
|
-
|
|
1823
|
+
async function l() {
|
|
1824
|
+
o.value = !0, a.value.hasError = !1;
|
|
1797
1825
|
try {
|
|
1798
1826
|
await t.onSubmit();
|
|
1799
1827
|
} catch (n) {
|
|
1800
1828
|
a.value.hasError = !0, n.message && (a.value.message = n.message);
|
|
1801
1829
|
}
|
|
1802
|
-
|
|
1830
|
+
o.value = !1;
|
|
1803
1831
|
}
|
|
1804
|
-
return (n,
|
|
1805
|
-
const
|
|
1832
|
+
return (n, r) => {
|
|
1833
|
+
const u = E;
|
|
1806
1834
|
return s(), p("form", S(n.$attrs, {
|
|
1807
1835
|
novalidate: "",
|
|
1808
1836
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
1809
|
-
onSubmit: K(
|
|
1837
|
+
onSubmit: K(l, ["prevent"])
|
|
1810
1838
|
}), [
|
|
1811
|
-
n.hideTitle ?
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
class:
|
|
1839
|
+
n.hideTitle ? B("", !0) : (s(), p(O, { key: 0 }, [
|
|
1840
|
+
_(n.$slots, "title", {}, () => [
|
|
1841
|
+
m("h3", {
|
|
1842
|
+
class: F(n.titleClass),
|
|
1815
1843
|
"data-cy": "form-title"
|
|
1816
1844
|
}, g(n.title), 3)
|
|
1817
1845
|
]),
|
|
1818
|
-
|
|
1846
|
+
Rt
|
|
1819
1847
|
], 64)),
|
|
1820
|
-
a.value.hasError ? (s(), w(
|
|
1848
|
+
a.value.hasError ? (s(), w(ae, {
|
|
1821
1849
|
key: 1,
|
|
1822
1850
|
severity: "danger",
|
|
1823
1851
|
"data-cy": "error"
|
|
1824
1852
|
}, {
|
|
1825
1853
|
default: v(() => [
|
|
1826
|
-
|
|
1854
|
+
_(n.$slots, "error", {
|
|
1827
1855
|
error: a.value.message
|
|
1828
1856
|
}, () => [
|
|
1829
|
-
|
|
1857
|
+
I(g(a.value.message), 1)
|
|
1830
1858
|
])
|
|
1831
1859
|
]),
|
|
1832
1860
|
_: 3
|
|
1833
|
-
})) :
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
n.hideCancel ?
|
|
1861
|
+
})) : B("", !0),
|
|
1862
|
+
_(n.$slots, "default"),
|
|
1863
|
+
m("div", Lt, [
|
|
1864
|
+
_(n.$slots, "cancel", {}, () => [
|
|
1865
|
+
n.hideCancel ? B("", !0) : (s(), w(u, {
|
|
1838
1866
|
key: 0,
|
|
1839
1867
|
"data-cy": "cancel-btn",
|
|
1840
1868
|
type: "reset",
|
|
1841
1869
|
severity: "secondary",
|
|
1842
1870
|
outlined: "",
|
|
1843
|
-
onClick:
|
|
1871
|
+
onClick: r[0] || (r[0] = (f) => n.$emit("cancel"))
|
|
1844
1872
|
}, {
|
|
1845
1873
|
default: v(() => [
|
|
1846
|
-
|
|
1874
|
+
I(g(n.cancelText), 1)
|
|
1847
1875
|
]),
|
|
1848
1876
|
_: 1
|
|
1849
1877
|
}))
|
|
1850
1878
|
]),
|
|
1851
|
-
|
|
1852
|
-
|
|
1879
|
+
_(n.$slots, "submit", { submit: l }, () => [
|
|
1880
|
+
y(u, {
|
|
1853
1881
|
"data-cy": "submit-btn",
|
|
1854
1882
|
type: "submit",
|
|
1855
1883
|
severity: "primary",
|
|
1856
1884
|
class: "ms-auto"
|
|
1857
1885
|
}, {
|
|
1858
1886
|
default: v(() => [
|
|
1859
|
-
|
|
1887
|
+
I(g(n.submitText), 1)
|
|
1860
1888
|
]),
|
|
1861
1889
|
_: 1
|
|
1862
1890
|
})
|
|
1863
1891
|
])
|
|
1864
1892
|
]),
|
|
1865
|
-
|
|
1893
|
+
o.value ? (s(), w(pe, {
|
|
1866
1894
|
key: 2,
|
|
1867
1895
|
"data-cy": "loading-spinner"
|
|
1868
|
-
})) :
|
|
1896
|
+
})) : B("", !0)
|
|
1869
1897
|
], 16);
|
|
1870
1898
|
};
|
|
1871
1899
|
}
|
|
1872
|
-
}),
|
|
1900
|
+
}), jt = { class: "d-flex flex-column" }, Ht = ["for"], bl = /* @__PURE__ */ $({
|
|
1873
1901
|
__name: "ForgeFormField",
|
|
1874
1902
|
props: {
|
|
1875
1903
|
name: {},
|
|
@@ -1880,61 +1908,61 @@ const ct = { key: 0 }, mt = {
|
|
|
1880
1908
|
placeholder: { default: "" }
|
|
1881
1909
|
},
|
|
1882
1910
|
setup(e) {
|
|
1883
|
-
const t = e, { errors:
|
|
1884
|
-
return (
|
|
1885
|
-
const
|
|
1886
|
-
return s(), p("div",
|
|
1911
|
+
const t = e, { errors: o, value: a, errorMessage: l } = Z(() => t.name, t.rules), n = k(() => o.value.length > 0);
|
|
1912
|
+
return (r, u) => {
|
|
1913
|
+
const f = Te, d = Ce, b = ne;
|
|
1914
|
+
return s(), p("div", jt, [
|
|
1887
1915
|
t.type !== "checkbox" ? (s(), p("label", {
|
|
1888
1916
|
key: 0,
|
|
1889
1917
|
for: t.name
|
|
1890
|
-
}, g(t.label), 9,
|
|
1891
|
-
t.type === "checkbox" ? (s(), w(
|
|
1918
|
+
}, g(t.label), 9, Ht)) : B("", !0),
|
|
1919
|
+
t.type === "checkbox" ? (s(), w(me, S({
|
|
1892
1920
|
key: 1,
|
|
1893
1921
|
id: t.name,
|
|
1894
|
-
rules:
|
|
1922
|
+
rules: r.rules,
|
|
1895
1923
|
label: t.label
|
|
1896
|
-
},
|
|
1924
|
+
}, r.$attrs), null, 16, ["id", "rules", "label"])) : t.type === "number" ? (s(), w(c(ue), S({
|
|
1897
1925
|
key: 2,
|
|
1898
1926
|
id: t.name,
|
|
1899
1927
|
placeholder: t.placeholder,
|
|
1900
|
-
modelValue:
|
|
1901
|
-
"onUpdate:modelValue":
|
|
1928
|
+
modelValue: c(a),
|
|
1929
|
+
"onUpdate:modelValue": u[0] || (u[0] = (i) => L(a) ? a.value = i : null),
|
|
1902
1930
|
"input-class": { "is-invalid": n.value },
|
|
1903
1931
|
class: { "is-invalid": n.value }
|
|
1904
|
-
},
|
|
1932
|
+
}, r.$attrs), null, 16, ["id", "placeholder", "modelValue", "input-class", "class"])) : t.type === "textarea" ? (s(), w(f, S({
|
|
1905
1933
|
key: 3,
|
|
1906
1934
|
id: t.name,
|
|
1907
1935
|
placeholder: t.placeholder,
|
|
1908
|
-
modelValue:
|
|
1909
|
-
"onUpdate:modelValue":
|
|
1936
|
+
modelValue: c(a),
|
|
1937
|
+
"onUpdate:modelValue": u[1] || (u[1] = (i) => L(a) ? a.value = i : null),
|
|
1910
1938
|
class: { "is-invalid": n.value }
|
|
1911
|
-
},
|
|
1939
|
+
}, r.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : t.type === "mask" ? (s(), w(d, S({
|
|
1912
1940
|
key: 4,
|
|
1913
1941
|
id: t.name,
|
|
1914
1942
|
placeholder: t.placeholder,
|
|
1915
|
-
modelValue:
|
|
1916
|
-
"onUpdate:modelValue":
|
|
1943
|
+
modelValue: c(a),
|
|
1944
|
+
"onUpdate:modelValue": u[2] || (u[2] = (i) => L(a) ? a.value = i : null),
|
|
1917
1945
|
mask: t.mask,
|
|
1918
1946
|
class: { "is-invalid": n.value }
|
|
1919
|
-
},
|
|
1947
|
+
}, r.$attrs), null, 16, ["id", "placeholder", "modelValue", "mask", "class"])) : t.type === "text" ? (s(), w(b, S({
|
|
1920
1948
|
key: 5,
|
|
1921
1949
|
id: t.name,
|
|
1922
1950
|
placeholder: t.placeholder,
|
|
1923
|
-
modelValue:
|
|
1924
|
-
"onUpdate:modelValue":
|
|
1951
|
+
modelValue: c(a),
|
|
1952
|
+
"onUpdate:modelValue": u[3] || (u[3] = (i) => L(a) ? a.value = i : null),
|
|
1925
1953
|
class: { "is-invalid": n.value }
|
|
1926
|
-
},
|
|
1927
|
-
t.type !== "checkbox" ?
|
|
1954
|
+
}, r.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : B("", !0),
|
|
1955
|
+
t.type !== "checkbox" ? H((s(), p("small", {
|
|
1928
1956
|
key: 6,
|
|
1929
1957
|
"data-cy": "error",
|
|
1930
1958
|
class: "invalid-feedback"
|
|
1931
|
-
}, g(
|
|
1959
|
+
}, g(c(l)), 513)), [
|
|
1932
1960
|
[q, n.value]
|
|
1933
|
-
]) :
|
|
1961
|
+
]) : B("", !0)
|
|
1934
1962
|
]);
|
|
1935
1963
|
};
|
|
1936
1964
|
}
|
|
1937
|
-
}),
|
|
1965
|
+
}), fl = /* @__PURE__ */ $({
|
|
1938
1966
|
__name: "ForgeChips",
|
|
1939
1967
|
props: {
|
|
1940
1968
|
chipSeverity: { default: "primary" },
|
|
@@ -1962,16 +1990,16 @@ const ct = { key: 0 }, mt = {
|
|
|
1962
1990
|
unstyled: { type: Boolean }
|
|
1963
1991
|
},
|
|
1964
1992
|
setup(e) {
|
|
1965
|
-
const t = e, { errors:
|
|
1993
|
+
const t = e, { errors: o, value: a, errorMessage: l } = Z(() => t.name, t.rules);
|
|
1966
1994
|
a.value = t.modelValue;
|
|
1967
|
-
const n =
|
|
1995
|
+
const n = k(() => o.value.length > 0), r = k(() => ({
|
|
1968
1996
|
inputtoken: "list-unstyled",
|
|
1969
1997
|
input: "border-0",
|
|
1970
|
-
container: ({ props:
|
|
1998
|
+
container: ({ props: u }) => ({
|
|
1971
1999
|
class: [
|
|
1972
2000
|
"form-control mb-0 d-flex",
|
|
1973
2001
|
{
|
|
1974
|
-
disabled:
|
|
2002
|
+
disabled: u.disabled,
|
|
1975
2003
|
"is-invalid": n.value
|
|
1976
2004
|
}
|
|
1977
2005
|
]
|
|
@@ -1995,35 +2023,35 @@ const ct = { key: 0 }, mt = {
|
|
|
1995
2023
|
]
|
|
1996
2024
|
}
|
|
1997
2025
|
}));
|
|
1998
|
-
return (
|
|
1999
|
-
const
|
|
2026
|
+
return (u, f) => {
|
|
2027
|
+
const d = Ve;
|
|
2000
2028
|
return s(), p(O, null, [
|
|
2001
|
-
|
|
2002
|
-
pt:
|
|
2003
|
-
"model-value":
|
|
2004
|
-
"onUpdate:modelValue":
|
|
2029
|
+
y(d, S({ ...t, ...u.$attrs }, {
|
|
2030
|
+
pt: r.value,
|
|
2031
|
+
"model-value": c(a),
|
|
2032
|
+
"onUpdate:modelValue": f[0] || (f[0] = (b) => L(a) ? a.value = b : null)
|
|
2005
2033
|
}), {
|
|
2006
|
-
removetokenicon: v(({ removeCallback:
|
|
2007
|
-
|
|
2034
|
+
removetokenicon: v(({ removeCallback: b }) => [
|
|
2035
|
+
H(y(c(C), {
|
|
2008
2036
|
icon: "bi:x",
|
|
2009
2037
|
class: "cursor-pointer",
|
|
2010
|
-
onClick:
|
|
2038
|
+
onClick: b
|
|
2011
2039
|
}, null, 8, ["onClick"]), [
|
|
2012
2040
|
[q, !t.disabled]
|
|
2013
2041
|
])
|
|
2014
2042
|
]),
|
|
2015
2043
|
_: 1
|
|
2016
2044
|
}, 16, ["pt", "model-value"]),
|
|
2017
|
-
|
|
2045
|
+
H(m("small", {
|
|
2018
2046
|
"data-cy": "error",
|
|
2019
2047
|
class: "text-invalid"
|
|
2020
|
-
}, g(
|
|
2048
|
+
}, g(c(l)), 513), [
|
|
2021
2049
|
[q, n.value]
|
|
2022
2050
|
])
|
|
2023
2051
|
], 64);
|
|
2024
2052
|
};
|
|
2025
2053
|
}
|
|
2026
|
-
}),
|
|
2054
|
+
}), qt = /* @__PURE__ */ $({
|
|
2027
2055
|
__name: "ForgeProgressBar",
|
|
2028
2056
|
props: {
|
|
2029
2057
|
severity: { default: "primary" },
|
|
@@ -2038,7 +2066,7 @@ const ct = { key: 0 }, mt = {
|
|
|
2038
2066
|
unstyled: { type: Boolean }
|
|
2039
2067
|
},
|
|
2040
2068
|
setup(e) {
|
|
2041
|
-
const t = e,
|
|
2069
|
+
const t = e, o = k(() => t.striped ? "progress-bar-striped" : null), a = k(() => t.animate ? "progress-bar-animated" : null), l = k(() => {
|
|
2042
2070
|
switch (t.severity) {
|
|
2043
2071
|
case "brand":
|
|
2044
2072
|
return "bg-brand";
|
|
@@ -2057,25 +2085,25 @@ const ct = { key: 0 }, mt = {
|
|
|
2057
2085
|
default:
|
|
2058
2086
|
return "bg-primary";
|
|
2059
2087
|
}
|
|
2060
|
-
}), n =
|
|
2088
|
+
}), n = k(() => ({
|
|
2061
2089
|
root: {
|
|
2062
2090
|
style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
|
|
2063
2091
|
},
|
|
2064
2092
|
value: {
|
|
2065
|
-
class: [
|
|
2093
|
+
class: [l.value, o.value, a.value]
|
|
2066
2094
|
}
|
|
2067
2095
|
}));
|
|
2068
|
-
return (
|
|
2069
|
-
const
|
|
2070
|
-
return s(), w(
|
|
2096
|
+
return (r, u) => {
|
|
2097
|
+
const f = Pe;
|
|
2098
|
+
return s(), w(f, S({ ...r.$attrs, ...t }, { pt: n.value }), {
|
|
2071
2099
|
default: v(() => [
|
|
2072
|
-
|
|
2100
|
+
_(r.$slots, "default")
|
|
2073
2101
|
]),
|
|
2074
2102
|
_: 3
|
|
2075
2103
|
}, 16, ["pt"]);
|
|
2076
2104
|
};
|
|
2077
2105
|
}
|
|
2078
|
-
}),
|
|
2106
|
+
}), Gt = { class: "value text-light w-100 text-center" }, gl = /* @__PURE__ */ $({
|
|
2079
2107
|
__name: "ForgeStatWidget",
|
|
2080
2108
|
props: {
|
|
2081
2109
|
size: { default: "md" },
|
|
@@ -2083,18 +2111,18 @@ const ct = { key: 0 }, mt = {
|
|
|
2083
2111
|
},
|
|
2084
2112
|
setup(e) {
|
|
2085
2113
|
const t = e;
|
|
2086
|
-
return (
|
|
2114
|
+
return (o, a) => (s(), p("div", S(o.$attrs, {
|
|
2087
2115
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2088
2116
|
}), [
|
|
2089
|
-
|
|
2090
|
-
|
|
2117
|
+
m("span", Gt, [
|
|
2118
|
+
_(o.$slots, "default")
|
|
2091
2119
|
])
|
|
2092
2120
|
], 16));
|
|
2093
2121
|
}
|
|
2094
|
-
}),
|
|
2122
|
+
}), Kt = {
|
|
2095
2123
|
class: "d-flex flex-column align-items-center",
|
|
2096
2124
|
"data-cy": "stepper"
|
|
2097
|
-
},
|
|
2125
|
+
}, Wt = { class: "d-flex align-items-center justify-content-center w-100" }, hl = /* @__PURE__ */ $({
|
|
2098
2126
|
__name: "ForgeStepper",
|
|
2099
2127
|
props: {
|
|
2100
2128
|
currentStep: { default: 0 },
|
|
@@ -2110,114 +2138,114 @@ const ct = { key: 0 }, mt = {
|
|
|
2110
2138
|
},
|
|
2111
2139
|
emits: ["update:currentStep"],
|
|
2112
2140
|
setup(e, { emit: t }) {
|
|
2113
|
-
const
|
|
2141
|
+
const o = t, a = e, l = V(a.currentStep), n = () => {
|
|
2114
2142
|
do
|
|
2115
|
-
|
|
2116
|
-
while (a.model[
|
|
2117
|
-
|
|
2118
|
-
},
|
|
2119
|
-
if (
|
|
2143
|
+
l.value--;
|
|
2144
|
+
while (a.model[l.value].disabled);
|
|
2145
|
+
o("update:currentStep", l.value);
|
|
2146
|
+
}, r = () => {
|
|
2147
|
+
if (l.value < a.model.length - 1)
|
|
2120
2148
|
do
|
|
2121
|
-
|
|
2122
|
-
while (a.model[
|
|
2123
|
-
|
|
2124
|
-
},
|
|
2125
|
-
const
|
|
2126
|
-
return !(
|
|
2127
|
-
}),
|
|
2128
|
-
menuitem: (
|
|
2149
|
+
l.value++;
|
|
2150
|
+
while (a.model[l.value].disabled);
|
|
2151
|
+
o("update:currentStep", l.value);
|
|
2152
|
+
}, u = k(() => {
|
|
2153
|
+
const d = a.model.findIndex((b) => !b.disabled);
|
|
2154
|
+
return !(d < l.value && d > -1);
|
|
2155
|
+
}), f = k(() => ({
|
|
2156
|
+
menuitem: (d) => ({
|
|
2129
2157
|
class: [{
|
|
2130
|
-
"cursor-pointer": !
|
|
2158
|
+
"cursor-pointer": !d.context.disabled
|
|
2131
2159
|
}]
|
|
2132
2160
|
}),
|
|
2133
|
-
step: (
|
|
2161
|
+
step: (d) => ({
|
|
2134
2162
|
class: [
|
|
2135
2163
|
"d-flex align-items-center justify-content-center mb-2 step",
|
|
2136
2164
|
{
|
|
2137
|
-
inactive:
|
|
2138
|
-
"bg-primary text-white":
|
|
2139
|
-
"bg-brand text-white":
|
|
2140
|
-
"bg-secondary text-white":
|
|
2141
|
-
"bg-success text-white":
|
|
2142
|
-
"bg-warning text-white":
|
|
2143
|
-
"bg-danger text-white":
|
|
2144
|
-
"bg-info text-white":
|
|
2165
|
+
inactive: d.context.disabled,
|
|
2166
|
+
"bg-primary text-white": d.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
|
|
2167
|
+
"bg-brand text-white": d.context.index === l.value && a.severity === "brand",
|
|
2168
|
+
"bg-secondary text-white": d.context.index === l.value && a.severity === "secondary",
|
|
2169
|
+
"bg-success text-white": d.context.index === l.value && a.severity === "success",
|
|
2170
|
+
"bg-warning text-white": d.context.index === l.value && a.severity === "warning",
|
|
2171
|
+
"bg-danger text-white": d.context.index === l.value && a.severity === "danger",
|
|
2172
|
+
"bg-info text-white": d.context.index === l.value && a.severity === "info"
|
|
2145
2173
|
}
|
|
2146
2174
|
]
|
|
2147
2175
|
}),
|
|
2148
|
-
label: (
|
|
2176
|
+
label: (d) => ({
|
|
2149
2177
|
class: [
|
|
2150
2178
|
"h5",
|
|
2151
2179
|
{
|
|
2152
|
-
"border-bottom border-2 border-primary":
|
|
2153
|
-
"border-bottom border-2 border-brand":
|
|
2154
|
-
"border-bottom border-2 border-secondary":
|
|
2155
|
-
"border-bottom border-2 border-success":
|
|
2156
|
-
"border-bottom border-2 border-warning":
|
|
2157
|
-
"border-bottom border-2 border-danger":
|
|
2158
|
-
"border-bottom border-2 border-info":
|
|
2180
|
+
"border-bottom border-2 border-primary": d.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
|
|
2181
|
+
"border-bottom border-2 border-brand": d.context.index === l.value && a.severity === "brand",
|
|
2182
|
+
"border-bottom border-2 border-secondary": d.context.index === l.value && a.severity === "secondary",
|
|
2183
|
+
"border-bottom border-2 border-success": d.context.index === l.value && a.severity === "success",
|
|
2184
|
+
"border-bottom border-2 border-warning": d.context.index === l.value && a.severity === "warning",
|
|
2185
|
+
"border-bottom border-2 border-danger": d.context.index === l.value && a.severity === "danger",
|
|
2186
|
+
"border-bottom border-2 border-info": d.context.index === l.value && a.severity === "info"
|
|
2159
2187
|
}
|
|
2160
2188
|
]
|
|
2161
2189
|
})
|
|
2162
2190
|
}));
|
|
2163
|
-
return (
|
|
2164
|
-
const
|
|
2165
|
-
return s(), p("div",
|
|
2166
|
-
|
|
2167
|
-
|
|
2191
|
+
return (d, b) => {
|
|
2192
|
+
const i = E, h = ze, x = Ie;
|
|
2193
|
+
return s(), p("div", Kt, [
|
|
2194
|
+
m("div", Wt, [
|
|
2195
|
+
y(i, {
|
|
2168
2196
|
severity: a.severity,
|
|
2169
|
-
disabled:
|
|
2197
|
+
disabled: u.value,
|
|
2170
2198
|
onClick: n,
|
|
2171
2199
|
class: "rounded-circle py-2 me-4",
|
|
2172
2200
|
"data-cy": "back-button"
|
|
2173
2201
|
}, {
|
|
2174
2202
|
default: v(() => [
|
|
2175
|
-
|
|
2203
|
+
y(c(C), {
|
|
2176
2204
|
icon: "bi:chevron-left",
|
|
2177
2205
|
class: "mb-1"
|
|
2178
2206
|
})
|
|
2179
2207
|
]),
|
|
2180
2208
|
_: 1
|
|
2181
2209
|
}, 8, ["severity", "disabled"]),
|
|
2182
|
-
|
|
2183
|
-
"active-step":
|
|
2184
|
-
"onUpdate:activeStep":
|
|
2210
|
+
y(h, {
|
|
2211
|
+
"active-step": l.value,
|
|
2212
|
+
"onUpdate:activeStep": b[0] || (b[0] = (T) => l.value = T),
|
|
2185
2213
|
model: a.model,
|
|
2186
|
-
pt:
|
|
2214
|
+
pt: f.value,
|
|
2187
2215
|
readonly: !1
|
|
2188
2216
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2189
2217
|
]),
|
|
2190
|
-
|
|
2191
|
-
(s(!0), p(O, null,
|
|
2192
|
-
key:
|
|
2218
|
+
y(x),
|
|
2219
|
+
(s(!0), p(O, null, R(a.model, (T, P) => (s(), p("div", {
|
|
2220
|
+
key: P,
|
|
2193
2221
|
class: "w-100"
|
|
2194
2222
|
}, [
|
|
2195
|
-
|
|
2223
|
+
P === l.value ? _(d.$slots, T.key ?? T.label, {
|
|
2196
2224
|
key: 0,
|
|
2197
|
-
nextStep:
|
|
2225
|
+
nextStep: r,
|
|
2198
2226
|
previousStep: n
|
|
2199
2227
|
}, () => [
|
|
2200
|
-
|
|
2228
|
+
y(ae, {
|
|
2201
2229
|
severity: "info",
|
|
2202
2230
|
"data-cy": "alert"
|
|
2203
2231
|
}, {
|
|
2204
2232
|
default: v(() => [
|
|
2205
|
-
|
|
2206
|
-
|
|
2233
|
+
I(" Please add Slot Content for the key " + g(T.key ?? T.label) + " ", 1),
|
|
2234
|
+
y(i, {
|
|
2207
2235
|
severity: "primary",
|
|
2208
2236
|
label: "Next",
|
|
2209
|
-
onClick:
|
|
2237
|
+
onClick: r,
|
|
2210
2238
|
class: "ms-2"
|
|
2211
2239
|
})
|
|
2212
2240
|
]),
|
|
2213
2241
|
_: 2
|
|
2214
2242
|
}, 1024)
|
|
2215
|
-
]) :
|
|
2243
|
+
]) : B("", !0)
|
|
2216
2244
|
]))), 128))
|
|
2217
2245
|
]);
|
|
2218
2246
|
};
|
|
2219
2247
|
}
|
|
2220
|
-
}),
|
|
2248
|
+
}), Zt = { class: "p-4 text-wrap w-100" }, Yt = { class: "p-4 text-wrap w-100" }, wl = /* @__PURE__ */ $({
|
|
2221
2249
|
__name: "ForgeTile",
|
|
2222
2250
|
props: {
|
|
2223
2251
|
severity: { default: "primary" },
|
|
@@ -2225,48 +2253,48 @@ const ct = { key: 0 }, mt = {
|
|
|
2225
2253
|
clickable: { type: Boolean, default: !1 }
|
|
2226
2254
|
},
|
|
2227
2255
|
setup(e) {
|
|
2228
|
-
const t = e,
|
|
2229
|
-
return (
|
|
2230
|
-
const
|
|
2231
|
-
return t.clickable ? (s(), w(
|
|
2256
|
+
const t = e, o = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "border-0" : `tile-bar-${t.barPosition}`}`), a = k(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`}`);
|
|
2257
|
+
return (l, n) => {
|
|
2258
|
+
const r = E;
|
|
2259
|
+
return t.clickable ? (s(), w(r, {
|
|
2232
2260
|
key: 0,
|
|
2233
|
-
class:
|
|
2261
|
+
class: F(["d-flex w-100 p-0 text-body", o.value]),
|
|
2234
2262
|
severity: t.severity,
|
|
2235
2263
|
unstyled: "",
|
|
2236
2264
|
"data-cy": "button-tile"
|
|
2237
2265
|
}, {
|
|
2238
2266
|
default: v(() => [
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2267
|
+
m("div", Zt, [
|
|
2268
|
+
_(l.$slots, "default", {}, () => [
|
|
2269
|
+
I("Tile Content")
|
|
2242
2270
|
])
|
|
2243
2271
|
])
|
|
2244
2272
|
]),
|
|
2245
2273
|
_: 3
|
|
2246
2274
|
}, 8, ["severity", "class"])) : (s(), p("div", {
|
|
2247
2275
|
key: 1,
|
|
2248
|
-
class:
|
|
2276
|
+
class: F(["d-flex w-100", a.value]),
|
|
2249
2277
|
"data-cy": "tile"
|
|
2250
2278
|
}, [
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2279
|
+
m("div", Yt, [
|
|
2280
|
+
_(l.$slots, "default", {}, () => [
|
|
2281
|
+
I("Tile Content")
|
|
2254
2282
|
])
|
|
2255
2283
|
])
|
|
2256
2284
|
], 2));
|
|
2257
2285
|
};
|
|
2258
2286
|
}
|
|
2259
2287
|
});
|
|
2260
|
-
function
|
|
2288
|
+
function X(e, t) {
|
|
2261
2289
|
return e > 1 ? `${t}s` : t;
|
|
2262
2290
|
}
|
|
2263
|
-
const
|
|
2291
|
+
const Jt = {
|
|
2264
2292
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2265
2293
|
"data-cy": "pagination-header"
|
|
2266
|
-
},
|
|
2294
|
+
}, Xt = { class: "ms-2" }, Qt = { key: 0 }, ea = /* @__PURE__ */ m("span", { class: "mx-2" }, "|", -1), ta = {
|
|
2267
2295
|
class: "w-auto",
|
|
2268
2296
|
"data-cy": "total"
|
|
2269
|
-
},
|
|
2297
|
+
}, aa = /* @__PURE__ */ $({
|
|
2270
2298
|
__name: "ForgePaginationHeader",
|
|
2271
2299
|
props: {
|
|
2272
2300
|
total: {},
|
|
@@ -2275,31 +2303,31 @@ const Wt = {
|
|
|
2275
2303
|
},
|
|
2276
2304
|
emits: ["update:perPage"],
|
|
2277
2305
|
setup(e, { emit: t }) {
|
|
2278
|
-
const
|
|
2279
|
-
|
|
2280
|
-
}, n =
|
|
2281
|
-
const
|
|
2282
|
-
return `${
|
|
2306
|
+
const o = t, a = e, l = (r) => {
|
|
2307
|
+
o("update:perPage", r.value);
|
|
2308
|
+
}, n = k(() => {
|
|
2309
|
+
const r = Math.ceil(a.total / a.perPage);
|
|
2310
|
+
return `${r} ${X(r, "page")}`;
|
|
2283
2311
|
});
|
|
2284
|
-
return (
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2312
|
+
return (r, u) => (s(), p("div", Jt, [
|
|
2313
|
+
I(" Number of results per page "),
|
|
2314
|
+
m("div", Xt, [
|
|
2315
|
+
y(c(se), {
|
|
2288
2316
|
options: a.pageSizes,
|
|
2289
2317
|
"model-value": a.perPage,
|
|
2290
|
-
onChange:
|
|
2318
|
+
onChange: u[0] || (u[0] = (f) => l(f))
|
|
2291
2319
|
}, null, 8, ["options", "model-value"])
|
|
2292
2320
|
]),
|
|
2293
|
-
a.total ? (s(), p("div",
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
])) :
|
|
2321
|
+
a.total ? (s(), p("div", Qt, [
|
|
2322
|
+
ea,
|
|
2323
|
+
m("span", ta, g(a.total) + " " + g(c(X)(a.total, "result")) + " across " + g(n.value), 1)
|
|
2324
|
+
])) : B("", !0)
|
|
2297
2325
|
]));
|
|
2298
2326
|
}
|
|
2299
|
-
}),
|
|
2327
|
+
}), la = { "data-cy": "above-table-slot" }, oa = { class: "d-flex" }, na = { class: "d-flex align-items-end mb-2" }, sa = { key: 0 }, ia = { class: "ms-auto" }, ra = {
|
|
2300
2328
|
class: "d-flex",
|
|
2301
2329
|
"data-cy": "legacy-page-size"
|
|
2302
|
-
},
|
|
2330
|
+
}, da = /* @__PURE__ */ m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), ua = { "data-cy": "legacy-total" }, kl = /* @__PURE__ */ $({
|
|
2303
2331
|
__name: "ForgeTable",
|
|
2304
2332
|
props: {
|
|
2305
2333
|
value: {},
|
|
@@ -2378,184 +2406,184 @@ const Wt = {
|
|
|
2378
2406
|
},
|
|
2379
2407
|
emits: ["update:filters"],
|
|
2380
2408
|
setup(e, { emit: t }) {
|
|
2381
|
-
const
|
|
2382
|
-
for (const
|
|
2383
|
-
a.filters[
|
|
2384
|
-
|
|
2385
|
-
},
|
|
2386
|
-
|
|
2387
|
-
},
|
|
2388
|
-
const
|
|
2389
|
-
return `${
|
|
2390
|
-
}),
|
|
2391
|
-
|
|
2409
|
+
const o = t, a = e, l = V([10, 20, 50, 100]), n = V(20), r = V(), u = () => {
|
|
2410
|
+
for (const i in a.filters)
|
|
2411
|
+
a.filters[i].value = null;
|
|
2412
|
+
f(a.filters);
|
|
2413
|
+
}, f = (i) => {
|
|
2414
|
+
o("update:filters", i);
|
|
2415
|
+
}, d = k(() => {
|
|
2416
|
+
const i = Math.ceil((a.total ?? a.value.length) / n.value);
|
|
2417
|
+
return `${i} ${X(i, "page")}`;
|
|
2418
|
+
}), b = () => {
|
|
2419
|
+
r.value.exportCSV();
|
|
2392
2420
|
};
|
|
2393
|
-
return (
|
|
2394
|
-
|
|
2395
|
-
|
|
2421
|
+
return (i, h) => (s(), p(O, null, [
|
|
2422
|
+
m("span", la, [
|
|
2423
|
+
_(i.$slots, "above-table")
|
|
2396
2424
|
]),
|
|
2397
|
-
|
|
2425
|
+
y(c(Me), S({ class: "w-100" }, { ...a, ...i.$attrs }, {
|
|
2398
2426
|
rows: n.value,
|
|
2399
|
-
"total-records":
|
|
2427
|
+
"total-records": i.total,
|
|
2400
2428
|
"filter-display": a.filters ? "row" : void 0,
|
|
2401
2429
|
ref_key: "forgeTable",
|
|
2402
|
-
ref:
|
|
2403
|
-
"onUpdate:filters":
|
|
2430
|
+
ref: r,
|
|
2431
|
+
"onUpdate:filters": f,
|
|
2404
2432
|
"data-cy": "table"
|
|
2405
|
-
}),
|
|
2433
|
+
}), te({
|
|
2406
2434
|
header: v(() => [
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
total:
|
|
2412
|
-
"page-sizes":
|
|
2435
|
+
m("div", oa, [
|
|
2436
|
+
m("div", na, [
|
|
2437
|
+
i.paginator && !i.legacyPaginationFooter ? (s(), p("span", sa, [
|
|
2438
|
+
y(aa, {
|
|
2439
|
+
total: i.total ?? i.value.length,
|
|
2440
|
+
"page-sizes": l.value,
|
|
2413
2441
|
"per-page": n.value,
|
|
2414
|
-
"onUpdate:perPage":
|
|
2442
|
+
"onUpdate:perPage": h[0] || (h[0] = (x) => n.value = x)
|
|
2415
2443
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2416
|
-
])) :
|
|
2444
|
+
])) : B("", !0)
|
|
2417
2445
|
]),
|
|
2418
|
-
|
|
2419
|
-
|
|
2446
|
+
m("div", ia, [
|
|
2447
|
+
i.showClearButton ? (s(), w(c(E), {
|
|
2420
2448
|
key: 0,
|
|
2421
2449
|
outlined: "",
|
|
2422
|
-
class:
|
|
2423
|
-
onClick:
|
|
2450
|
+
class: F(i.showExporterButton ? "me-2" : ""),
|
|
2451
|
+
onClick: u,
|
|
2424
2452
|
"data-cy": "clear-all"
|
|
2425
2453
|
}, {
|
|
2426
2454
|
default: v(() => [
|
|
2427
|
-
|
|
2455
|
+
y(c(C), {
|
|
2428
2456
|
icon: "bi:funnel-fill",
|
|
2429
2457
|
width: "24",
|
|
2430
2458
|
height: "24"
|
|
2431
2459
|
}),
|
|
2432
|
-
|
|
2460
|
+
I(" Clear ")
|
|
2433
2461
|
]),
|
|
2434
2462
|
_: 1
|
|
2435
|
-
}, 8, ["class"])) :
|
|
2436
|
-
|
|
2463
|
+
}, 8, ["class"])) : B("", !0),
|
|
2464
|
+
i.showExporterButton ? (s(), w(c(E), {
|
|
2437
2465
|
key: 1,
|
|
2438
2466
|
outlined: "",
|
|
2439
|
-
onClick:
|
|
2467
|
+
onClick: b,
|
|
2440
2468
|
"data-cy": "exporter"
|
|
2441
2469
|
}, {
|
|
2442
2470
|
default: v(() => [
|
|
2443
|
-
|
|
2471
|
+
y(c(C), {
|
|
2444
2472
|
icon: "typcn:export",
|
|
2445
2473
|
width: "24",
|
|
2446
2474
|
height: "24"
|
|
2447
2475
|
}),
|
|
2448
|
-
|
|
2476
|
+
I(" Export ")
|
|
2449
2477
|
]),
|
|
2450
2478
|
_: 1
|
|
2451
|
-
})) :
|
|
2479
|
+
})) : B("", !0)
|
|
2452
2480
|
])
|
|
2453
2481
|
])
|
|
2454
2482
|
]),
|
|
2455
2483
|
default: v(() => [
|
|
2456
|
-
|
|
2484
|
+
_(i.$slots, "default")
|
|
2457
2485
|
]),
|
|
2458
2486
|
_: 2
|
|
2459
2487
|
}, [
|
|
2460
|
-
|
|
2488
|
+
R(i.$slots, (x, T) => ({
|
|
2461
2489
|
name: T,
|
|
2462
|
-
fn: v((
|
|
2463
|
-
|
|
2490
|
+
fn: v((P) => [
|
|
2491
|
+
_(i.$slots, T, Q(ee(P || {})))
|
|
2464
2492
|
])
|
|
2465
2493
|
})),
|
|
2466
|
-
|
|
2494
|
+
i.legacyPaginationFooter ? {
|
|
2467
2495
|
name: "paginatorstart",
|
|
2468
2496
|
fn: v(() => [
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
options:
|
|
2497
|
+
m("span", ra, [
|
|
2498
|
+
da,
|
|
2499
|
+
y(c(se), {
|
|
2500
|
+
options: l.value,
|
|
2473
2501
|
modelValue: n.value,
|
|
2474
|
-
"onUpdate:modelValue":
|
|
2502
|
+
"onUpdate:modelValue": h[1] || (h[1] = (x) => n.value = x),
|
|
2475
2503
|
class: "ms-2"
|
|
2476
2504
|
}, null, 8, ["options", "modelValue"])
|
|
2477
2505
|
])
|
|
2478
2506
|
]),
|
|
2479
2507
|
key: "0"
|
|
2480
2508
|
} : void 0,
|
|
2481
|
-
|
|
2509
|
+
i.legacyPaginationFooter ? {
|
|
2482
2510
|
name: "paginatorend",
|
|
2483
2511
|
fn: v(() => [
|
|
2484
|
-
|
|
2512
|
+
m("span", ua, g(i.total ?? i.value.length) + " " + g(c(X)(i.total ?? i.value.length, "result")) + " across " + g(d.value), 1)
|
|
2485
2513
|
]),
|
|
2486
2514
|
key: "1"
|
|
2487
2515
|
} : void 0
|
|
2488
2516
|
]), 1040, ["rows", "total-records", "filter-display"])
|
|
2489
2517
|
], 64));
|
|
2490
2518
|
}
|
|
2491
|
-
}),
|
|
2519
|
+
}), _l = /* @__PURE__ */ $({
|
|
2492
2520
|
__name: "ForgeFilterHeader",
|
|
2493
2521
|
props: {
|
|
2494
2522
|
dataType: {},
|
|
2495
2523
|
dropdownOptions: {}
|
|
2496
2524
|
},
|
|
2497
2525
|
setup(e) {
|
|
2498
|
-
return (t,
|
|
2499
|
-
const a =
|
|
2500
|
-
return t.dataType === "numeric" ? (s(), w(a, S({ key: 0 }, t.$attrs, { class: "w-100" }), null, 16)) : t.dataType === "date" ? (s(), w(
|
|
2526
|
+
return (t, o) => {
|
|
2527
|
+
const a = ue;
|
|
2528
|
+
return t.dataType === "numeric" ? (s(), w(a, S({ key: 0 }, t.$attrs, { class: "w-100" }), null, 16)) : t.dataType === "date" ? (s(), w(Et, S({ key: 1 }, t.$attrs, {
|
|
2501
2529
|
"show-icon": !1,
|
|
2502
2530
|
"show-on-focus": !0,
|
|
2503
2531
|
class: "w-100"
|
|
2504
|
-
}), null, 16)) : t.dataType === "select" ? (s(), w(
|
|
2532
|
+
}), null, 16)) : t.dataType === "select" ? (s(), w(c(se), S({ key: 2 }, t.$attrs, {
|
|
2505
2533
|
options: t.dropdownOptions,
|
|
2506
2534
|
class: "dropdown-input w-100"
|
|
2507
|
-
}), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), w(
|
|
2535
|
+
}), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), w(c(Ue), S({ key: 3 }, t.$attrs, {
|
|
2508
2536
|
options: t.dropdownOptions,
|
|
2509
2537
|
showToggleAll: !1,
|
|
2510
2538
|
placeholder: " ",
|
|
2511
2539
|
filter: "",
|
|
2512
2540
|
class: "w-100 dropdown-input"
|
|
2513
|
-
}), null, 16, ["options"])) : (s(), w(
|
|
2541
|
+
}), null, 16, ["options"])) : (s(), w(c(ne), S({ key: 4 }, t.$attrs, { class: "w-100" }), null, 16));
|
|
2514
2542
|
};
|
|
2515
2543
|
}
|
|
2516
2544
|
});
|
|
2517
|
-
function
|
|
2518
|
-
const
|
|
2545
|
+
function ye(e, t, o, a) {
|
|
2546
|
+
const l = t.flatMap((n) => n.file);
|
|
2519
2547
|
return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
|
|
2520
|
-
const
|
|
2521
|
-
let
|
|
2522
|
-
|
|
2548
|
+
const r = l.findIndex((f) => f.name === n.name);
|
|
2549
|
+
let u = "Not Uploaded";
|
|
2550
|
+
r === -1 ? ((!o.includes(n.type) || !(n.size <= a)) && (u = o.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
|
|
2523
2551
|
file: n,
|
|
2524
|
-
status:
|
|
2552
|
+
status: u,
|
|
2525
2553
|
blobFileName: null
|
|
2526
|
-
})) : t[
|
|
2554
|
+
})) : t[r].status = "Duplicate";
|
|
2527
2555
|
}), t;
|
|
2528
2556
|
}
|
|
2529
|
-
async function
|
|
2557
|
+
async function ca(e, t) {
|
|
2530
2558
|
if (e === "Uploaded" && t !== null)
|
|
2531
2559
|
try {
|
|
2532
|
-
await new
|
|
2533
|
-
} catch (
|
|
2534
|
-
if (
|
|
2560
|
+
await new ce(t).delete();
|
|
2561
|
+
} catch (o) {
|
|
2562
|
+
if (o !== "BlobNotFound") {
|
|
2535
2563
|
e = "DeleteFileFailed";
|
|
2536
2564
|
return;
|
|
2537
2565
|
}
|
|
2538
2566
|
}
|
|
2539
2567
|
}
|
|
2540
|
-
function
|
|
2568
|
+
function ie(e, t = !0, o = 1) {
|
|
2541
2569
|
const a = t ? 1e3 : 1024;
|
|
2542
2570
|
if (Math.abs(e) < a)
|
|
2543
2571
|
return e + " B";
|
|
2544
|
-
const
|
|
2572
|
+
const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
|
2545
2573
|
let n = -1;
|
|
2546
|
-
const
|
|
2574
|
+
const r = 10 ** o;
|
|
2547
2575
|
do
|
|
2548
2576
|
e /= a, ++n;
|
|
2549
|
-
while (Math.round(Math.abs(e) *
|
|
2550
|
-
return e.toFixed(
|
|
2577
|
+
while (Math.round(Math.abs(e) * r) / r >= a && n < l.length - 1);
|
|
2578
|
+
return e.toFixed(o) + " " + l[n];
|
|
2551
2579
|
}
|
|
2552
|
-
function
|
|
2580
|
+
function ma(e) {
|
|
2553
2581
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
2554
2582
|
}
|
|
2555
|
-
function
|
|
2583
|
+
function pa(e) {
|
|
2556
2584
|
return URL.createObjectURL(e);
|
|
2557
2585
|
}
|
|
2558
|
-
const
|
|
2586
|
+
const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disabled", "multiple"], ba = /* @__PURE__ */ $({
|
|
2559
2587
|
__name: "UploadButton",
|
|
2560
2588
|
props: /* @__PURE__ */ G({
|
|
2561
2589
|
acceptedFileTypes: {},
|
|
@@ -2567,52 +2595,52 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
|
|
|
2567
2595
|
}),
|
|
2568
2596
|
emits: ["update:modelValue"],
|
|
2569
2597
|
setup(e) {
|
|
2570
|
-
const t =
|
|
2571
|
-
t.value =
|
|
2598
|
+
const t = j(e, "modelValue"), o = k(() => e.maxFileInput <= t.value.length), a = (l) => {
|
|
2599
|
+
t.value = ye(l, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2572
2600
|
};
|
|
2573
|
-
return (
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2601
|
+
return (l, n) => (s(), p("div", ya, [
|
|
2602
|
+
_(l.$slots, "message"),
|
|
2603
|
+
m("div", null, [
|
|
2604
|
+
m("input", {
|
|
2577
2605
|
id: "file-input",
|
|
2578
2606
|
type: "file",
|
|
2579
2607
|
class: "d-none",
|
|
2580
|
-
accept:
|
|
2581
|
-
disabled:
|
|
2582
|
-
multiple:
|
|
2583
|
-
onInput: n[0] || (n[0] = (
|
|
2584
|
-
}, null, 40,
|
|
2585
|
-
|
|
2586
|
-
class:
|
|
2608
|
+
accept: l.acceptedFileTypes.join(", "),
|
|
2609
|
+
disabled: o.value,
|
|
2610
|
+
multiple: l.maxFileInput > 1,
|
|
2611
|
+
onInput: n[0] || (n[0] = (r) => a([...r.target.files]))
|
|
2612
|
+
}, null, 40, va),
|
|
2613
|
+
m("label", {
|
|
2614
|
+
class: F([{ disabled: o.value }, "btn btn-primary"]),
|
|
2587
2615
|
id: "file-input-button",
|
|
2588
2616
|
for: "file-input"
|
|
2589
2617
|
}, [
|
|
2590
|
-
|
|
2591
|
-
|
|
2618
|
+
_(l.$slots, "button-content", {}, () => [
|
|
2619
|
+
y(c(C), {
|
|
2592
2620
|
icon: "bi:upload",
|
|
2593
2621
|
class: "me-2",
|
|
2594
2622
|
height: "20px",
|
|
2595
2623
|
width: "20px"
|
|
2596
2624
|
}),
|
|
2597
|
-
|
|
2625
|
+
I(" Browse your computer ")
|
|
2598
2626
|
])
|
|
2599
2627
|
], 2)
|
|
2600
2628
|
]),
|
|
2601
|
-
|
|
2629
|
+
l.showDragDropArea ? (s(), p("div", {
|
|
2602
2630
|
class: "ms-auto",
|
|
2603
|
-
key:
|
|
2631
|
+
key: l.acceptedFileTypes.length,
|
|
2604
2632
|
id: "accepted-file-types"
|
|
2605
|
-
}, "Accepted File Types: " + g(
|
|
2633
|
+
}, "Accepted File Types: " + g(l.acceptedFileTypes.map((r) => r.split("/").pop()).join(", ")), 1)) : B("", !0)
|
|
2606
2634
|
]));
|
|
2607
2635
|
}
|
|
2608
|
-
}),
|
|
2636
|
+
}), fa = {
|
|
2609
2637
|
key: 0,
|
|
2610
2638
|
class: "py-4 px-3",
|
|
2611
2639
|
id: "placeholder-message"
|
|
2612
|
-
},
|
|
2640
|
+
}, ga = {
|
|
2613
2641
|
key: 1,
|
|
2614
2642
|
class: "d-flex flex-column"
|
|
2615
|
-
},
|
|
2643
|
+
}, ha = /* @__PURE__ */ $({
|
|
2616
2644
|
__name: "DragDropArea",
|
|
2617
2645
|
props: /* @__PURE__ */ G({
|
|
2618
2646
|
maxFileInput: {},
|
|
@@ -2624,30 +2652,30 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
|
|
|
2624
2652
|
}),
|
|
2625
2653
|
emits: ["update:modelValue"],
|
|
2626
2654
|
setup(e) {
|
|
2627
|
-
const t =
|
|
2628
|
-
|
|
2655
|
+
const t = j(e, "modelValue"), o = V(!1), a = k(() => e.maxFileInput <= t.value.length), l = (n) => {
|
|
2656
|
+
o.value = !1, n.dataTransfer.files.length > e.maxFileInput || a.value ? n.preventDefault() : t.value = ye([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
|
|
2629
2657
|
};
|
|
2630
|
-
return (n,
|
|
2658
|
+
return (n, r) => (s(), p("div", {
|
|
2631
2659
|
id: "drag-drop-area",
|
|
2632
|
-
class:
|
|
2633
|
-
onDragleave:
|
|
2634
|
-
onDragover:
|
|
2635
|
-
onDrop: K(
|
|
2660
|
+
class: F(`${o.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
2661
|
+
onDragleave: r[0] || (r[0] = K((u) => o.value = !1, ["prevent"])),
|
|
2662
|
+
onDragover: r[1] || (r[1] = K((u) => o.value = !0, ["prevent"])),
|
|
2663
|
+
onDrop: K(l, ["prevent"])
|
|
2636
2664
|
}, [
|
|
2637
|
-
t.value.length === 0 ? (s(), p("div",
|
|
2638
|
-
|
|
2665
|
+
t.value.length === 0 ? (s(), p("div", fa, [
|
|
2666
|
+
y(c(C), {
|
|
2639
2667
|
icon: "bi:upload",
|
|
2640
2668
|
class: "me-2",
|
|
2641
2669
|
height: "20px",
|
|
2642
2670
|
width: "20px"
|
|
2643
2671
|
}),
|
|
2644
|
-
|
|
2645
|
-
])) : (s(), p("div",
|
|
2646
|
-
|
|
2672
|
+
I(" Drag and drop files here ")
|
|
2673
|
+
])) : (s(), p("div", ga, [
|
|
2674
|
+
_(n.$slots, "default")
|
|
2647
2675
|
]))
|
|
2648
2676
|
], 34));
|
|
2649
2677
|
}
|
|
2650
|
-
}),
|
|
2678
|
+
}), wa = { class: "d-flex align-items-center me-2" }, ka = /* @__PURE__ */ $({
|
|
2651
2679
|
__name: "UploadStatus",
|
|
2652
2680
|
props: {
|
|
2653
2681
|
fileSize: {},
|
|
@@ -2656,12 +2684,12 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
|
|
|
2656
2684
|
uploadStatus: {}
|
|
2657
2685
|
},
|
|
2658
2686
|
setup(e) {
|
|
2659
|
-
const t =
|
|
2687
|
+
const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), o = k(() => {
|
|
2660
2688
|
switch (e.uploadStatus) {
|
|
2661
2689
|
case "InvalidFileType":
|
|
2662
2690
|
return "Upload Failed: File type is not accepted.";
|
|
2663
2691
|
case "InvalidFileSize":
|
|
2664
|
-
return `Upload Failed: File size exceeds the ${
|
|
2692
|
+
return `Upload Failed: File size exceeds the ${ie(e.maxFileSize)} limit.`;
|
|
2665
2693
|
case "Aborted":
|
|
2666
2694
|
return "Upload Failed: User cancelled.";
|
|
2667
2695
|
case "DeleteFileFailed":
|
|
@@ -2672,41 +2700,41 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
|
|
|
2672
2700
|
return "Upload Failed: Connection error, please try again.";
|
|
2673
2701
|
}
|
|
2674
2702
|
});
|
|
2675
|
-
return (a,
|
|
2676
|
-
a.uploadStatus === "Uploading" ? (s(), w(
|
|
2703
|
+
return (a, l) => (s(), p("div", wa, [
|
|
2704
|
+
a.uploadStatus === "Uploading" ? (s(), w(qt, {
|
|
2677
2705
|
key: 0,
|
|
2678
2706
|
pixelWidth: 200,
|
|
2679
2707
|
animate: "",
|
|
2680
2708
|
striped: ""
|
|
2681
2709
|
}, {
|
|
2682
2710
|
default: v(() => [
|
|
2683
|
-
|
|
2711
|
+
I(g((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
|
|
2684
2712
|
]),
|
|
2685
2713
|
_: 1
|
|
2686
|
-
})) :
|
|
2687
|
-
a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (s(), w(
|
|
2714
|
+
})) : B("", !0),
|
|
2715
|
+
a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (s(), w(ae, {
|
|
2688
2716
|
key: 1,
|
|
2689
2717
|
id: "upload-status-alert",
|
|
2690
2718
|
severity: t.value,
|
|
2691
2719
|
class: "mb-0 w-75 ms-auto"
|
|
2692
2720
|
}, {
|
|
2693
2721
|
default: v(() => [
|
|
2694
|
-
|
|
2722
|
+
I(g(o.value), 1)
|
|
2695
2723
|
]),
|
|
2696
2724
|
_: 1
|
|
2697
|
-
}, 8, ["severity"])) :
|
|
2725
|
+
}, 8, ["severity"])) : B("", !0)
|
|
2698
2726
|
]));
|
|
2699
2727
|
}
|
|
2700
|
-
}),
|
|
2728
|
+
}), _a = ["data-cy"], xa = { class: "ms-3 d-flex flex-column" }, $a = {
|
|
2701
2729
|
key: 1,
|
|
2702
2730
|
id: "file-name"
|
|
2703
|
-
},
|
|
2731
|
+
}, Ba = {
|
|
2704
2732
|
class: "text-black-50",
|
|
2705
2733
|
id: "file-type"
|
|
2706
|
-
},
|
|
2734
|
+
}, Fa = {
|
|
2707
2735
|
class: "text-black-50",
|
|
2708
2736
|
id: "file-size"
|
|
2709
|
-
},
|
|
2737
|
+
}, Sa = { class: "ms-auto my-auto d-flex" }, Ca = /* @__PURE__ */ $({
|
|
2710
2738
|
__name: "FileInfo",
|
|
2711
2739
|
props: /* @__PURE__ */ G({
|
|
2712
2740
|
editableFileName: { type: Boolean },
|
|
@@ -2725,55 +2753,55 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
|
|
|
2725
2753
|
}),
|
|
2726
2754
|
emits: /* @__PURE__ */ G(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
2727
2755
|
setup(e, { emit: t }) {
|
|
2728
|
-
const
|
|
2729
|
-
|
|
2730
|
-
},
|
|
2731
|
-
if (!
|
|
2732
|
-
|
|
2756
|
+
const o = j(e, "file"), a = j(e, "blobFileName"), l = j(e, "uploadStatus"), n = t, r = V(o.value.name), u = V(""), f = V(0), d = V(), b = k(() => e.acceptedFileTypes.includes(o.value.type)), i = k(() => o.value.size <= e.maxFileSize), h = () => {
|
|
2757
|
+
o.value = new File([o.value], r.value, { type: o.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
2758
|
+
}, x = async () => {
|
|
2759
|
+
if (!b.value || !i.value) {
|
|
2760
|
+
l.value = b.value ? "InvalidFileSize" : "InvalidFileType";
|
|
2733
2761
|
return;
|
|
2734
2762
|
}
|
|
2735
|
-
|
|
2736
|
-
const [
|
|
2737
|
-
if (!
|
|
2738
|
-
|
|
2763
|
+
l.value = "Preparing", d.value = new AbortController();
|
|
2764
|
+
const [P, z] = await e.getFileUrlAction(o.value.name);
|
|
2765
|
+
if (!P) {
|
|
2766
|
+
l.value = "Failed";
|
|
2739
2767
|
return;
|
|
2740
2768
|
}
|
|
2741
2769
|
try {
|
|
2742
|
-
|
|
2743
|
-
const
|
|
2744
|
-
abortSignal:
|
|
2745
|
-
onProgress: (
|
|
2770
|
+
l.value = "Uploading";
|
|
2771
|
+
const M = new ce(P), N = {
|
|
2772
|
+
abortSignal: d.value.signal,
|
|
2773
|
+
onProgress: (le) => f.value = le.loadedBytes,
|
|
2746
2774
|
tags: { temp: "true" }
|
|
2747
2775
|
};
|
|
2748
|
-
await
|
|
2749
|
-
} catch (
|
|
2750
|
-
if (
|
|
2751
|
-
|
|
2776
|
+
await M.uploadData(o.value, N), u.value = P, l.value = "Uploaded", a.value = z;
|
|
2777
|
+
} catch (M) {
|
|
2778
|
+
if (M.name === "AbortError") {
|
|
2779
|
+
l.value = "Aborted";
|
|
2752
2780
|
return;
|
|
2753
2781
|
}
|
|
2754
|
-
|
|
2782
|
+
l.value = "Failed";
|
|
2755
2783
|
}
|
|
2756
2784
|
}, T = async () => {
|
|
2757
|
-
await
|
|
2785
|
+
await ca(l.value, u.value), n("deleted", o.value);
|
|
2758
2786
|
};
|
|
2759
|
-
return
|
|
2760
|
-
e.autoUploadToBlob &&
|
|
2761
|
-
}), (
|
|
2762
|
-
const
|
|
2787
|
+
return oe(() => {
|
|
2788
|
+
e.autoUploadToBlob && x();
|
|
2789
|
+
}), (P, z) => {
|
|
2790
|
+
const M = E;
|
|
2763
2791
|
return s(), p("div", {
|
|
2764
2792
|
class: "py-4 px-3 d-flex",
|
|
2765
|
-
"data-cy": `file-info-${
|
|
2793
|
+
"data-cy": `file-info-${o.value.name}`
|
|
2766
2794
|
}, [
|
|
2767
|
-
|
|
2768
|
-
|
|
2795
|
+
m("div", null, [
|
|
2796
|
+
c(ma)(o.value.type) ? (s(), w(c(Oe), {
|
|
2769
2797
|
key: 0,
|
|
2770
2798
|
id: "thumbnail-image",
|
|
2771
2799
|
"image-class": "image-file-thumbnail border",
|
|
2772
|
-
src:
|
|
2773
|
-
alt:
|
|
2800
|
+
src: c(pa)(o.value),
|
|
2801
|
+
alt: o.value.name,
|
|
2774
2802
|
width: "75px",
|
|
2775
2803
|
preview: ""
|
|
2776
|
-
}, null, 8, ["src", "alt"])) : (s(), w(
|
|
2804
|
+
}, null, 8, ["src", "alt"])) : (s(), w(c(C), {
|
|
2777
2805
|
key: 1,
|
|
2778
2806
|
id: "file-earmark",
|
|
2779
2807
|
icon: "bi:file-earmark",
|
|
@@ -2781,76 +2809,76 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
|
|
|
2781
2809
|
width: "75px"
|
|
2782
2810
|
}))
|
|
2783
2811
|
]),
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2812
|
+
m("div", xa, [
|
|
2813
|
+
m("div", null, [
|
|
2814
|
+
P.editableFileName ? (s(), w(_t, {
|
|
2787
2815
|
key: 0,
|
|
2788
2816
|
id: "edit-file-name",
|
|
2789
|
-
modelValue:
|
|
2790
|
-
"onUpdate:modelValue":
|
|
2791
|
-
rules:
|
|
2792
|
-
name:
|
|
2793
|
-
"complete-action":
|
|
2794
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (s(), p("span",
|
|
2817
|
+
modelValue: r.value,
|
|
2818
|
+
"onUpdate:modelValue": z[0] || (z[0] = (N) => r.value = N),
|
|
2819
|
+
rules: P.customFileNameRules,
|
|
2820
|
+
name: o.value.name,
|
|
2821
|
+
"complete-action": h
|
|
2822
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (s(), p("span", $a, g(o.value.name), 1))
|
|
2795
2823
|
]),
|
|
2796
|
-
|
|
2797
|
-
|
|
2824
|
+
m("span", Ba, "File type: " + g(o.value.type.split("/").pop()), 1),
|
|
2825
|
+
m("span", Fa, "File size: " + g(c(ie)(o.value.size)), 1)
|
|
2798
2826
|
]),
|
|
2799
|
-
|
|
2800
|
-
(s(), w(
|
|
2801
|
-
key:
|
|
2802
|
-
"file-size":
|
|
2803
|
-
"upload-status":
|
|
2804
|
-
"bytes-uploaded":
|
|
2805
|
-
"max-file-size":
|
|
2827
|
+
m("div", Sa, [
|
|
2828
|
+
(s(), w(ka, {
|
|
2829
|
+
key: l.value,
|
|
2830
|
+
"file-size": o.value.size,
|
|
2831
|
+
"upload-status": l.value,
|
|
2832
|
+
"bytes-uploaded": f.value,
|
|
2833
|
+
"max-file-size": P.maxFileSize
|
|
2806
2834
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
2807
|
-
|
|
2835
|
+
l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (s(), w(M, {
|
|
2808
2836
|
key: 0,
|
|
2809
2837
|
link: "",
|
|
2810
|
-
onClick:
|
|
2838
|
+
onClick: x
|
|
2811
2839
|
}, {
|
|
2812
2840
|
default: v(() => [
|
|
2813
|
-
|
|
2814
|
-
icon:
|
|
2841
|
+
y(c(C), {
|
|
2842
|
+
icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
|
|
2815
2843
|
}, null, 8, ["icon"])
|
|
2816
2844
|
]),
|
|
2817
2845
|
_: 1
|
|
2818
|
-
})) :
|
|
2819
|
-
|
|
2846
|
+
})) : B("", !0),
|
|
2847
|
+
l.value === "Uploading" ? (s(), w(M, {
|
|
2820
2848
|
key: 1,
|
|
2821
2849
|
link: "",
|
|
2822
|
-
onClick:
|
|
2850
|
+
onClick: z[1] || (z[1] = (N) => d.value.value.abort())
|
|
2823
2851
|
}, {
|
|
2824
2852
|
default: v(() => [
|
|
2825
|
-
|
|
2853
|
+
y(c(C), { icon: "bi:x-circle-fill" })
|
|
2826
2854
|
]),
|
|
2827
2855
|
_: 1
|
|
2828
|
-
})) : (s(), w(
|
|
2856
|
+
})) : (s(), w(M, {
|
|
2829
2857
|
key: 2,
|
|
2830
2858
|
link: "",
|
|
2831
2859
|
onClick: T,
|
|
2832
2860
|
id: "delete-button"
|
|
2833
2861
|
}, {
|
|
2834
2862
|
default: v(() => [
|
|
2835
|
-
|
|
2863
|
+
y(c(C), { icon: "bi:trash" })
|
|
2836
2864
|
]),
|
|
2837
2865
|
_: 1
|
|
2838
2866
|
}))
|
|
2839
2867
|
])
|
|
2840
|
-
], 8,
|
|
2868
|
+
], 8, _a);
|
|
2841
2869
|
};
|
|
2842
2870
|
}
|
|
2843
|
-
}),
|
|
2871
|
+
}), Ta = { class: "d-flex justify-content-end mt-1" }, Va = { id: "max-file-size" }, Pa = /* @__PURE__ */ $({
|
|
2844
2872
|
__name: "MaxFileSize",
|
|
2845
2873
|
props: {
|
|
2846
2874
|
maxFileSize: {}
|
|
2847
2875
|
},
|
|
2848
2876
|
setup(e) {
|
|
2849
|
-
return (t,
|
|
2850
|
-
|
|
2877
|
+
return (t, o) => (s(), p("div", Ta, [
|
|
2878
|
+
m("div", Va, "Max file size: " + g(c(ie)(t.maxFileSize)), 1)
|
|
2851
2879
|
]));
|
|
2852
2880
|
}
|
|
2853
|
-
}),
|
|
2881
|
+
}), Ia = { "data-cy": "file-uploader" }, za = { key: 0 }, xl = /* @__PURE__ */ $({
|
|
2854
2882
|
__name: "ForgeFileUploader",
|
|
2855
2883
|
props: /* @__PURE__ */ G({
|
|
2856
2884
|
acceptedFileTypes: {},
|
|
@@ -2867,69 +2895,69 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
|
|
|
2867
2895
|
}),
|
|
2868
2896
|
emits: ["update:modelValue"],
|
|
2869
2897
|
setup(e) {
|
|
2870
|
-
const t =
|
|
2871
|
-
t.value = t.value.filter((n) => n.file !=
|
|
2898
|
+
const t = j(e, "modelValue"), o = e, a = (l) => {
|
|
2899
|
+
t.value = t.value.filter((n) => n.file != l);
|
|
2872
2900
|
};
|
|
2873
|
-
return (
|
|
2874
|
-
|
|
2901
|
+
return (l, n) => (s(), p("div", Ia, [
|
|
2902
|
+
y(ba, S(o, {
|
|
2875
2903
|
modelValue: t.value,
|
|
2876
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2904
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r)
|
|
2877
2905
|
}), null, 16, ["modelValue"]),
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
"max-file-input":
|
|
2881
|
-
"max-file-size":
|
|
2882
|
-
"accepted-file-types":
|
|
2906
|
+
l.showDragDropArea ? (s(), p("div", za, [
|
|
2907
|
+
y(ha, {
|
|
2908
|
+
"max-file-input": o.maxFileInput,
|
|
2909
|
+
"max-file-size": o.maxFileSize,
|
|
2910
|
+
"accepted-file-types": o.acceptedFileTypes,
|
|
2883
2911
|
modelValue: t.value,
|
|
2884
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
2912
|
+
"onUpdate:modelValue": n[1] || (n[1] = (r) => t.value = r)
|
|
2885
2913
|
}, {
|
|
2886
2914
|
default: v(() => [
|
|
2887
|
-
(s(!0), p(O, null,
|
|
2888
|
-
(s(), w(
|
|
2889
|
-
key:
|
|
2890
|
-
class:
|
|
2891
|
-
file: t.value[
|
|
2892
|
-
"onUpdate:file": (
|
|
2893
|
-
"blob-file-name": t.value[
|
|
2894
|
-
"onUpdate:blobFileName": (
|
|
2895
|
-
"upload-status": t.value[
|
|
2896
|
-
"onUpdate:uploadStatus": (
|
|
2915
|
+
(s(!0), p(O, null, R(t.value, ({ file: r }, u) => (s(), p("span", null, [
|
|
2916
|
+
(s(), w(Ca, S({
|
|
2917
|
+
key: r.name,
|
|
2918
|
+
class: u === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
2919
|
+
file: t.value[u].file,
|
|
2920
|
+
"onUpdate:file": (f) => t.value[u].file = f,
|
|
2921
|
+
"blob-file-name": t.value[u].blobFileName,
|
|
2922
|
+
"onUpdate:blobFileName": (f) => t.value[u].blobFileName = f,
|
|
2923
|
+
"upload-status": t.value[u].status,
|
|
2924
|
+
"onUpdate:uploadStatus": (f) => t.value[u].status = f,
|
|
2897
2925
|
ref_for: !0
|
|
2898
|
-
},
|
|
2926
|
+
}, o, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
2899
2927
|
]))), 256))
|
|
2900
2928
|
]),
|
|
2901
2929
|
_: 1
|
|
2902
2930
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
2903
|
-
|
|
2904
|
-
"max-file-size":
|
|
2931
|
+
y(Pa, {
|
|
2932
|
+
"max-file-size": o.maxFileSize
|
|
2905
2933
|
}, null, 8, ["max-file-size"])
|
|
2906
|
-
])) :
|
|
2934
|
+
])) : B("", !0)
|
|
2907
2935
|
]));
|
|
2908
2936
|
}
|
|
2909
2937
|
});
|
|
2910
2938
|
export {
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2939
|
+
il as Bootstrap_PT,
|
|
2940
|
+
rl as ForgeActionButton,
|
|
2941
|
+
ae as ForgeAlert,
|
|
2942
|
+
me as ForgeCheckbox,
|
|
2943
|
+
fl as ForgeChips,
|
|
2944
|
+
Et as ForgeDatepicker,
|
|
2945
|
+
xl as ForgeFileUploader,
|
|
2946
|
+
_l as ForgeFilterHeader,
|
|
2947
|
+
vl as ForgeForm,
|
|
2948
|
+
bl as ForgeFormField,
|
|
2949
|
+
_t as ForgeInlineEditor,
|
|
2950
|
+
dl as ForgeLink,
|
|
2951
|
+
pe as ForgeLoader,
|
|
2952
|
+
ul as ForgeModal,
|
|
2953
|
+
Tt as ForgeMultiSelect,
|
|
2954
|
+
ml as ForgeMultiSelectPreview,
|
|
2955
|
+
cl as ForgeNavbar,
|
|
2956
|
+
pl as ForgePageHeader,
|
|
2957
|
+
qt as ForgeProgressBar,
|
|
2958
|
+
yl as ForgeRemainingCharacters,
|
|
2959
|
+
gl as ForgeStatWidget,
|
|
2960
|
+
hl as ForgeStepper,
|
|
2961
|
+
kl as ForgeTable,
|
|
2962
|
+
wl as ForgeTile
|
|
2935
2963
|
};
|