@3squared/forge-ui-3 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/forge-ui-3.js +196 -190
- package/dist/esm/style.css +1 -1
- package/dist/src/passthroughs/InputSwitch.pt.d.ts +6 -0
- package/dist/src/passthroughs/Toast.pt.d.ts +1 -1
- package/dist/tests/component/input-switch/input-switch.cy.d.ts +1 -0
- package/package.json +4 -4
- package/src/styles/components/_toast.scss +2 -2
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -303,6 +303,11 @@ const ze = {
|
|
|
303
303
|
})
|
|
304
304
|
}
|
|
305
305
|
}, Ae = {
|
|
306
|
+
inputSwitch: {
|
|
307
|
+
root: "form-check form-switch",
|
|
308
|
+
input: "form-check-input"
|
|
309
|
+
}
|
|
310
|
+
}, Ne = {
|
|
306
311
|
textarea: {
|
|
307
312
|
root: () => ({
|
|
308
313
|
class: [
|
|
@@ -310,13 +315,13 @@ const ze = {
|
|
|
310
315
|
]
|
|
311
316
|
})
|
|
312
317
|
}
|
|
313
|
-
},
|
|
318
|
+
}, Ee = {
|
|
314
319
|
// More PassThrough options in component file.
|
|
315
320
|
chips: {
|
|
316
321
|
root: "d-flex",
|
|
317
322
|
label: "pe-2"
|
|
318
323
|
}
|
|
319
|
-
},
|
|
324
|
+
}, Re = {
|
|
320
325
|
dialog: {
|
|
321
326
|
header: () => ({
|
|
322
327
|
class: ["modal-header"]
|
|
@@ -356,7 +361,7 @@ const ze = {
|
|
|
356
361
|
}]
|
|
357
362
|
})
|
|
358
363
|
}
|
|
359
|
-
},
|
|
364
|
+
}, Le = {
|
|
360
365
|
overlaypanel: {
|
|
361
366
|
root: (e) => ({
|
|
362
367
|
class: [
|
|
@@ -370,7 +375,7 @@ const ze = {
|
|
|
370
375
|
content: "d-flex position-relative",
|
|
371
376
|
closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
|
|
372
377
|
}
|
|
373
|
-
},
|
|
378
|
+
}, je = {
|
|
374
379
|
message: {
|
|
375
380
|
root: ({ props: e }) => ({
|
|
376
381
|
class: [
|
|
@@ -399,13 +404,13 @@ const ze = {
|
|
|
399
404
|
class: ["px-0 ms-2 btn d-flex"]
|
|
400
405
|
})
|
|
401
406
|
}
|
|
402
|
-
},
|
|
407
|
+
}, He = {
|
|
403
408
|
// More PT options defined in ForgeStepper.
|
|
404
409
|
steps: {
|
|
405
410
|
root: "w-100 mx-2 line",
|
|
406
411
|
menu: "p-0 m-0 list-unstyled d-flex justify-content-between "
|
|
407
412
|
}
|
|
408
|
-
},
|
|
413
|
+
}, qe = {
|
|
409
414
|
tabview: {
|
|
410
415
|
navContainer: () => ({
|
|
411
416
|
class: ["nav nav-tabs position-relative"]
|
|
@@ -443,7 +448,7 @@ const ze = {
|
|
|
443
448
|
class: ["p-2"]
|
|
444
449
|
})
|
|
445
450
|
}
|
|
446
|
-
},
|
|
451
|
+
}, Ge = {
|
|
447
452
|
// More PassThrough options defined in ForgeDatepicker.
|
|
448
453
|
calendar: {
|
|
449
454
|
root: "d-inline-flex relative",
|
|
@@ -486,7 +491,7 @@ const ze = {
|
|
|
486
491
|
]
|
|
487
492
|
})
|
|
488
493
|
}
|
|
489
|
-
},
|
|
494
|
+
}, Ke = {
|
|
490
495
|
// More PassThrough options in component file.
|
|
491
496
|
progressbar: {
|
|
492
497
|
root: () => ({
|
|
@@ -499,7 +504,7 @@ const ze = {
|
|
|
499
504
|
class: ["text-white"]
|
|
500
505
|
})
|
|
501
506
|
}
|
|
502
|
-
},
|
|
507
|
+
}, We = {
|
|
503
508
|
dataTable: {
|
|
504
509
|
table: (e) => ({
|
|
505
510
|
class: [
|
|
@@ -563,7 +568,7 @@ const ze = {
|
|
|
563
568
|
]
|
|
564
569
|
})
|
|
565
570
|
}
|
|
566
|
-
},
|
|
571
|
+
}, Ze = {
|
|
567
572
|
badge: {
|
|
568
573
|
root: ({ props: e }) => ({
|
|
569
574
|
class: [
|
|
@@ -584,7 +589,7 @@ const ze = {
|
|
|
584
589
|
]
|
|
585
590
|
})
|
|
586
591
|
}
|
|
587
|
-
},
|
|
592
|
+
}, Ye = {
|
|
588
593
|
// More PassThrough options in component file.
|
|
589
594
|
menubar: {
|
|
590
595
|
menu: ({ instance: e }) => ({
|
|
@@ -654,7 +659,7 @@ const ze = {
|
|
|
654
659
|
]
|
|
655
660
|
})
|
|
656
661
|
}
|
|
657
|
-
},
|
|
662
|
+
}, Je = {
|
|
658
663
|
tooltip: {
|
|
659
664
|
root: ({ context: e }) => ({
|
|
660
665
|
class: [
|
|
@@ -676,7 +681,7 @@ const ze = {
|
|
|
676
681
|
class: ["tooltip-inner"]
|
|
677
682
|
}
|
|
678
683
|
}
|
|
679
|
-
},
|
|
684
|
+
}, Xe = {
|
|
680
685
|
selectbutton: {
|
|
681
686
|
root: () => ({
|
|
682
687
|
class: ["btn-group"]
|
|
@@ -694,7 +699,7 @@ const ze = {
|
|
|
694
699
|
]
|
|
695
700
|
})
|
|
696
701
|
}
|
|
697
|
-
},
|
|
702
|
+
}, Qe = {
|
|
698
703
|
progressspinner: {
|
|
699
704
|
spinner: () => ({
|
|
700
705
|
class: [
|
|
@@ -702,7 +707,7 @@ const ze = {
|
|
|
702
707
|
]
|
|
703
708
|
})
|
|
704
709
|
}
|
|
705
|
-
},
|
|
710
|
+
}, et = {
|
|
706
711
|
card: {
|
|
707
712
|
root: () => ({
|
|
708
713
|
class: ["card"]
|
|
@@ -726,11 +731,11 @@ const ze = {
|
|
|
726
731
|
class: ["card-header"]
|
|
727
732
|
})
|
|
728
733
|
}
|
|
729
|
-
},
|
|
734
|
+
}, tt = {
|
|
730
735
|
divider: {
|
|
731
736
|
root: "border-bottom m-4 w-100"
|
|
732
737
|
}
|
|
733
|
-
},
|
|
738
|
+
}, at = {
|
|
734
739
|
image: {
|
|
735
740
|
root: "position-relative d-inline-block",
|
|
736
741
|
button: "preview-button",
|
|
@@ -743,7 +748,7 @@ const ze = {
|
|
|
743
748
|
zoominbutton: "btn text-white",
|
|
744
749
|
closebutton: "btn text-white"
|
|
745
750
|
}
|
|
746
|
-
},
|
|
751
|
+
}, lt = {
|
|
747
752
|
toast: {
|
|
748
753
|
message: () => ({
|
|
749
754
|
class: ["toast-container w-100 position-relative"]
|
|
@@ -752,7 +757,7 @@ const ze = {
|
|
|
752
757
|
class: ["toast-body d-flex align-items-center gap-2"]
|
|
753
758
|
}),
|
|
754
759
|
container: () => ({
|
|
755
|
-
class: ["toast bg-white show"]
|
|
760
|
+
class: ["toast bg-white show overflow-hidden text-break"]
|
|
756
761
|
}),
|
|
757
762
|
buttonContainer: () => ({
|
|
758
763
|
class: ["ms-auto"]
|
|
@@ -763,8 +768,8 @@ const ze = {
|
|
|
763
768
|
closeIcon: () => ({
|
|
764
769
|
class: "d-none"
|
|
765
770
|
}),
|
|
766
|
-
|
|
767
|
-
class: ["
|
|
771
|
+
text: () => ({
|
|
772
|
+
class: ["ps-1"]
|
|
768
773
|
}),
|
|
769
774
|
icon: ({ props: e }) => {
|
|
770
775
|
var t, l, a, o;
|
|
@@ -781,34 +786,35 @@ const ze = {
|
|
|
781
786
|
};
|
|
782
787
|
}
|
|
783
788
|
}
|
|
784
|
-
},
|
|
785
|
-
...
|
|
789
|
+
}, ll = {
|
|
790
|
+
...Ze,
|
|
786
791
|
...ze,
|
|
787
|
-
...
|
|
792
|
+
...et,
|
|
788
793
|
...Me,
|
|
789
|
-
...Ne,
|
|
790
|
-
...Oe,
|
|
791
|
-
...qe,
|
|
792
794
|
...Ee,
|
|
793
|
-
...
|
|
794
|
-
...
|
|
795
|
+
...Oe,
|
|
796
|
+
...Ge,
|
|
797
|
+
...Re,
|
|
795
798
|
...tt,
|
|
799
|
+
...se,
|
|
800
|
+
...at,
|
|
796
801
|
...Ue,
|
|
797
802
|
...De,
|
|
798
|
-
...
|
|
799
|
-
...se,
|
|
800
|
-
...Ze,
|
|
801
|
-
...Re,
|
|
802
|
-
...Ge,
|
|
803
|
-
...Xe,
|
|
804
|
-
...Je,
|
|
803
|
+
...Ae,
|
|
805
804
|
...je,
|
|
805
|
+
...se,
|
|
806
|
+
...Ye,
|
|
807
|
+
...Le,
|
|
806
808
|
...Ke,
|
|
809
|
+
...Qe,
|
|
810
|
+
...Xe,
|
|
807
811
|
...He,
|
|
808
|
-
...
|
|
809
|
-
...
|
|
812
|
+
...We,
|
|
813
|
+
...qe,
|
|
814
|
+
...lt,
|
|
815
|
+
...Ne,
|
|
810
816
|
directives: {
|
|
811
|
-
...
|
|
817
|
+
...Je
|
|
812
818
|
}
|
|
813
819
|
}, ee = /* @__PURE__ */ x({
|
|
814
820
|
__name: "ForgeAlert",
|
|
@@ -852,7 +858,7 @@ const ze = {
|
|
|
852
858
|
}, 16);
|
|
853
859
|
};
|
|
854
860
|
}
|
|
855
|
-
}),
|
|
861
|
+
}), ol = /* @__PURE__ */ x({
|
|
856
862
|
__name: "ForgeActionButton",
|
|
857
863
|
props: {
|
|
858
864
|
action: {},
|
|
@@ -882,10 +888,10 @@ const ze = {
|
|
|
882
888
|
], 64);
|
|
883
889
|
};
|
|
884
890
|
}
|
|
885
|
-
}),
|
|
891
|
+
}), ot = {
|
|
886
892
|
class: "d-flex",
|
|
887
893
|
"data-cy": "checkbox-container"
|
|
888
|
-
},
|
|
894
|
+
}, nt = /* @__PURE__ */ c("div", null, null, -1), st = ["for"], it = /* @__PURE__ */ x({
|
|
889
895
|
__name: "ForgeCheckbox",
|
|
890
896
|
props: {
|
|
891
897
|
label: { default: "" },
|
|
@@ -923,7 +929,7 @@ const ze = {
|
|
|
923
929
|
return (_, d) => {
|
|
924
930
|
const f = fe;
|
|
925
931
|
return s(), p(O, null, [
|
|
926
|
-
c("div",
|
|
932
|
+
c("div", ot, [
|
|
927
933
|
b(f, S({
|
|
928
934
|
id: a.name
|
|
929
935
|
}, { ..._.$attrs, ...a }, {
|
|
@@ -932,7 +938,7 @@ const ze = {
|
|
|
932
938
|
onChange: y
|
|
933
939
|
}), {
|
|
934
940
|
icon: v(() => [
|
|
935
|
-
|
|
941
|
+
nt
|
|
936
942
|
]),
|
|
937
943
|
_: 1
|
|
938
944
|
}, 16, ["id", "value", "input-class"]),
|
|
@@ -944,7 +950,7 @@ const ze = {
|
|
|
944
950
|
k(_.$slots, "default", {}, () => [
|
|
945
951
|
V(g(a.label), 1)
|
|
946
952
|
])
|
|
947
|
-
], 10,
|
|
953
|
+
], 10, st)
|
|
948
954
|
]),
|
|
949
955
|
j(c("small", {
|
|
950
956
|
"data-cy": "error",
|
|
@@ -955,7 +961,7 @@ const ze = {
|
|
|
955
961
|
], 64);
|
|
956
962
|
};
|
|
957
963
|
}
|
|
958
|
-
}),
|
|
964
|
+
}), rt = { class: "forge-loader" }, ce = /* @__PURE__ */ x({
|
|
959
965
|
__name: "ForgeLoader",
|
|
960
966
|
props: {
|
|
961
967
|
severity: { default: "primary" }
|
|
@@ -964,7 +970,7 @@ const ze = {
|
|
|
964
970
|
const t = e;
|
|
965
971
|
return (l, a) => {
|
|
966
972
|
const o = ge;
|
|
967
|
-
return s(), p("div",
|
|
973
|
+
return s(), p("div", rt, [
|
|
968
974
|
b(o, {
|
|
969
975
|
"animation-duration": ".75",
|
|
970
976
|
class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
@@ -972,7 +978,7 @@ const ze = {
|
|
|
972
978
|
]);
|
|
973
979
|
};
|
|
974
980
|
}
|
|
975
|
-
}),
|
|
981
|
+
}), dt = ["href", "target"], nl = /* @__PURE__ */ x({
|
|
976
982
|
__name: "ForgeLink",
|
|
977
983
|
props: {
|
|
978
984
|
url: {},
|
|
@@ -1021,10 +1027,10 @@ const ze = {
|
|
|
1021
1027
|
}, null, 8, ["icon", "class"])) : F("", !0),
|
|
1022
1028
|
V(" " + g(a.label), 1)
|
|
1023
1029
|
])
|
|
1024
|
-
], 10,
|
|
1030
|
+
], 10, dt));
|
|
1025
1031
|
}
|
|
1026
1032
|
});
|
|
1027
|
-
function
|
|
1033
|
+
function ut(e) {
|
|
1028
1034
|
const t = {
|
|
1029
1035
|
errorMessage: "",
|
|
1030
1036
|
errorDetails: []
|
|
@@ -1035,10 +1041,10 @@ function dt(e) {
|
|
|
1035
1041
|
}
|
|
1036
1042
|
return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
|
|
1037
1043
|
}
|
|
1038
|
-
const
|
|
1044
|
+
const ct = { key: 0 }, mt = {
|
|
1039
1045
|
class: "d-flex w-100",
|
|
1040
1046
|
"data-cy": "footer"
|
|
1041
|
-
},
|
|
1047
|
+
}, sl = /* @__PURE__ */ x({
|
|
1042
1048
|
__name: "ForgeModal",
|
|
1043
1049
|
props: /* @__PURE__ */ G({
|
|
1044
1050
|
cancelText: { default: "Cancel" },
|
|
@@ -1099,7 +1105,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1099
1105
|
(d || d == null) && y();
|
|
1100
1106
|
} catch (d) {
|
|
1101
1107
|
n.value.hasError = !0;
|
|
1102
|
-
const f =
|
|
1108
|
+
const f = ut(d);
|
|
1103
1109
|
n.value.header = f.errorMessage, n.value.message = f.errorDetails;
|
|
1104
1110
|
}
|
|
1105
1111
|
o.value = !1;
|
|
@@ -1150,7 +1156,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1150
1156
|
c("p", {
|
|
1151
1157
|
class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1152
1158
|
}, g(n.value.header), 3),
|
|
1153
|
-
n.value.message.length > 0 ? (s(), p("ul",
|
|
1159
|
+
n.value.message.length > 0 ? (s(), p("ul", ct, [
|
|
1154
1160
|
(s(!0), p(O, null, E(n.value.message, (N) => (s(), p("li", { key: N }, g(N), 1))), 128))
|
|
1155
1161
|
])) : F("", !0)
|
|
1156
1162
|
]),
|
|
@@ -1165,7 +1171,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1165
1171
|
d.showFooter ? {
|
|
1166
1172
|
name: "footer",
|
|
1167
1173
|
fn: v(() => [
|
|
1168
|
-
c("div",
|
|
1174
|
+
c("div", mt, [
|
|
1169
1175
|
b($, {
|
|
1170
1176
|
label: d.cancelText,
|
|
1171
1177
|
class: B(a.cancelClass),
|
|
@@ -1186,7 +1192,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1186
1192
|
]), 1040, ["pt"]);
|
|
1187
1193
|
};
|
|
1188
1194
|
}
|
|
1189
|
-
}),
|
|
1195
|
+
}), pt = ["id"], yt = { key: 0 }, bt = { key: 0 }, vt = { class: "d-flex justify-content-between align-items-center position-relative" }, ft = { key: 1 }, gt = { "data-cy": "readonly-value" }, ht = /* @__PURE__ */ x({
|
|
1190
1196
|
__name: "ForgeInlineEditor",
|
|
1191
1197
|
props: /* @__PURE__ */ G({
|
|
1192
1198
|
name: { default: "" },
|
|
@@ -1230,13 +1236,13 @@ const ut = { key: 0 }, ct = {
|
|
|
1230
1236
|
return s(), p("div", {
|
|
1231
1237
|
id: t.name
|
|
1232
1238
|
}, [
|
|
1233
|
-
$.readonly ? (s(), p("div",
|
|
1239
|
+
$.readonly ? (s(), p("div", ft, [
|
|
1234
1240
|
k($.$slots, "default", {}, () => [
|
|
1235
|
-
c("span",
|
|
1241
|
+
c("span", gt, g(u(d)), 1)
|
|
1236
1242
|
])
|
|
1237
|
-
])) : (s(), p("div",
|
|
1238
|
-
a.value ? (s(), p("div",
|
|
1239
|
-
j((s(), p("div",
|
|
1243
|
+
])) : (s(), p("div", yt, [
|
|
1244
|
+
a.value ? (s(), p("div", bt, [
|
|
1245
|
+
j((s(), p("div", vt, [
|
|
1240
1246
|
k($.$slots, "editor", {
|
|
1241
1247
|
class: B({ "is-invalid": f.value }),
|
|
1242
1248
|
editFinished: i,
|
|
@@ -1301,10 +1307,10 @@ const ut = { key: 0 }, ct = {
|
|
|
1301
1307
|
}, g(u(r)), 513), [
|
|
1302
1308
|
[q, f.value]
|
|
1303
1309
|
])
|
|
1304
|
-
], 8,
|
|
1310
|
+
], 8, pt);
|
|
1305
1311
|
};
|
|
1306
1312
|
}
|
|
1307
|
-
}),
|
|
1313
|
+
}), wt = ["href"], il = /* @__PURE__ */ x({
|
|
1308
1314
|
__name: "ForgeNavbar",
|
|
1309
1315
|
props: {
|
|
1310
1316
|
severity: { default: "light" },
|
|
@@ -1363,7 +1369,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1363
1369
|
k(a.$slots, "logo", {}, () => [
|
|
1364
1370
|
V(" Logo ")
|
|
1365
1371
|
])
|
|
1366
|
-
], 8,
|
|
1372
|
+
], 8, wt)
|
|
1367
1373
|
]),
|
|
1368
1374
|
menubuttonicon: v(() => [
|
|
1369
1375
|
k(a.$slots, "menubuttonicon", {}, () => [
|
|
@@ -1386,7 +1392,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1386
1392
|
]), 1040, ["pt"]);
|
|
1387
1393
|
};
|
|
1388
1394
|
}
|
|
1389
|
-
}),
|
|
1395
|
+
}), kt = ["onMousedown"], _t = ["checked"], xt = /* @__PURE__ */ c("strong", null, "Select all", -1), $t = ["data-cy"], Bt = ["checked"], Ft = /* @__PURE__ */ x({
|
|
1390
1396
|
__name: "ForgeMultiSelect",
|
|
1391
1397
|
props: {
|
|
1392
1398
|
severity: { default: "primary" },
|
|
@@ -1446,7 +1452,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1446
1452
|
c("div", {
|
|
1447
1453
|
class: "multiselect__select",
|
|
1448
1454
|
onMousedown: K(R, ["prevent", "stop"])
|
|
1449
|
-
}, null, 40,
|
|
1455
|
+
}, null, 40, kt)
|
|
1450
1456
|
]),
|
|
1451
1457
|
key: "0"
|
|
1452
1458
|
} : void 0,
|
|
@@ -1468,8 +1474,8 @@ const ut = { key: 0 }, ct = {
|
|
|
1468
1474
|
name: "selected",
|
|
1469
1475
|
type: "checkbox",
|
|
1470
1476
|
class: "multiselect__option--checkbox"
|
|
1471
|
-
}, null, 8,
|
|
1472
|
-
|
|
1477
|
+
}, null, 8, _t),
|
|
1478
|
+
xt
|
|
1473
1479
|
], 2)
|
|
1474
1480
|
], 32)
|
|
1475
1481
|
]),
|
|
@@ -1486,9 +1492,9 @@ const ut = { key: 0 }, ct = {
|
|
|
1486
1492
|
name: "selected",
|
|
1487
1493
|
type: "checkbox",
|
|
1488
1494
|
class: "multiselect__option--checkbox"
|
|
1489
|
-
}, null, 8,
|
|
1495
|
+
}, null, 8, Bt),
|
|
1490
1496
|
V(" " + g(R[r.value.label]), 1)
|
|
1491
|
-
], 8,
|
|
1497
|
+
], 8, $t)
|
|
1492
1498
|
]),
|
|
1493
1499
|
key: "2"
|
|
1494
1500
|
} : void 0
|
|
@@ -1501,17 +1507,17 @@ const ut = { key: 0 }, ct = {
|
|
|
1501
1507
|
])
|
|
1502
1508
|
], 64));
|
|
1503
1509
|
}
|
|
1504
|
-
}),
|
|
1510
|
+
}), St = {
|
|
1505
1511
|
key: 0,
|
|
1506
1512
|
class: "pl-1"
|
|
1507
|
-
},
|
|
1513
|
+
}, Ct = { class: "border alternating-item-list" }, Tt = {
|
|
1508
1514
|
key: 0,
|
|
1509
1515
|
class: "p-2 border-top border-bottom",
|
|
1510
1516
|
"data-cy": "title"
|
|
1511
|
-
},
|
|
1517
|
+
}, Pt = { class: "d-inline-block" }, Vt = {
|
|
1512
1518
|
key: 1,
|
|
1513
1519
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1514
|
-
},
|
|
1520
|
+
}, rl = /* @__PURE__ */ x({
|
|
1515
1521
|
__name: "ForgeMultiSelectPreview",
|
|
1516
1522
|
props: {
|
|
1517
1523
|
title: { default: "Selected Items" },
|
|
@@ -1537,7 +1543,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1537
1543
|
class: B(r.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1538
1544
|
"data-cy": "multiselect-container"
|
|
1539
1545
|
}, [
|
|
1540
|
-
b(
|
|
1546
|
+
b(Ft, {
|
|
1541
1547
|
"onUpdate:modelValue": [
|
|
1542
1548
|
_[0] || (_[0] = (f) => m(f)),
|
|
1543
1549
|
_[1] || (_[1] = (f) => r.$attrs.modelValue = f)
|
|
@@ -1550,7 +1556,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1550
1556
|
V(g(""))
|
|
1551
1557
|
]),
|
|
1552
1558
|
selection: v(() => [
|
|
1553
|
-
r.$attrs.modelValue.length > 0 ? (s(), p("span",
|
|
1559
|
+
r.$attrs.modelValue.length > 0 ? (s(), p("span", St, g(i.value) + " items selected", 1)) : F("", !0)
|
|
1554
1560
|
]),
|
|
1555
1561
|
default: v(() => [
|
|
1556
1562
|
(s(!0), p(O, null, E(r.$slots, (f, $) => k(r.$slots, $, { slot: $ })), 256))
|
|
@@ -1567,14 +1573,14 @@ const ut = { key: 0 }, ct = {
|
|
|
1567
1573
|
style: be({ height: r.height }),
|
|
1568
1574
|
class: "overflow-auto"
|
|
1569
1575
|
}, [
|
|
1570
|
-
c("div",
|
|
1571
|
-
r.title ? (s(), p("div",
|
|
1576
|
+
c("div", Ct, [
|
|
1577
|
+
r.title ? (s(), p("div", Tt, g(r.title), 1)) : F("", !0),
|
|
1572
1578
|
(s(!0), p(O, null, E(r.$attrs.modelValue, (f) => (s(), p("div", {
|
|
1573
1579
|
key: f.id,
|
|
1574
1580
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1575
1581
|
}, [
|
|
1576
1582
|
k(r.$slots, "list-item", { item: f }, () => [
|
|
1577
|
-
c("span",
|
|
1583
|
+
c("span", Pt, g(f.shortLabel ? f.shortLabel : f.label), 1)
|
|
1578
1584
|
]),
|
|
1579
1585
|
r.canRemoveItemFromPreview ? (s(), w(d, {
|
|
1580
1586
|
key: 0,
|
|
@@ -1592,34 +1598,34 @@ const ut = { key: 0 }, ct = {
|
|
|
1592
1598
|
_: 2
|
|
1593
1599
|
}, 1032, ["onClick"])) : F("", !0)
|
|
1594
1600
|
]))), 128)),
|
|
1595
|
-
r.$attrs.modelValue.length === 0 ? (s(), p("div",
|
|
1601
|
+
r.$attrs.modelValue.length === 0 ? (s(), p("div", Vt, "No Items Selected.")) : F("", !0)
|
|
1596
1602
|
])
|
|
1597
1603
|
], 4)
|
|
1598
1604
|
], 2)
|
|
1599
1605
|
], 2);
|
|
1600
1606
|
};
|
|
1601
1607
|
}
|
|
1602
|
-
}),
|
|
1608
|
+
}), It = { class: "d-flex justify-content-between pb-2" }, zt = {
|
|
1603
1609
|
"data-cy": "title",
|
|
1604
1610
|
class: "h3"
|
|
1605
|
-
},
|
|
1611
|
+
}, Mt = {
|
|
1606
1612
|
"data-cy": "slot",
|
|
1607
1613
|
class: "d-flex align-items-center"
|
|
1608
|
-
},
|
|
1614
|
+
}, dl = /* @__PURE__ */ x({
|
|
1609
1615
|
__name: "ForgePageHeader",
|
|
1610
1616
|
props: {
|
|
1611
1617
|
title: {}
|
|
1612
1618
|
},
|
|
1613
1619
|
setup(e) {
|
|
1614
1620
|
const t = e;
|
|
1615
|
-
return (l, a) => (s(), p("div",
|
|
1616
|
-
c("h1",
|
|
1617
|
-
c("div",
|
|
1621
|
+
return (l, a) => (s(), p("div", It, [
|
|
1622
|
+
c("h1", zt, g(t.title), 1),
|
|
1623
|
+
c("div", Mt, [
|
|
1618
1624
|
k(l.$slots, "default")
|
|
1619
1625
|
])
|
|
1620
1626
|
]));
|
|
1621
1627
|
}
|
|
1622
|
-
}),
|
|
1628
|
+
}), Ot = { "data-cy": "before-slot" }, Ut = { "data-cy": "after-slot" }, Dt = /* @__PURE__ */ x({
|
|
1623
1629
|
__name: "ForgeDatepicker",
|
|
1624
1630
|
props: {
|
|
1625
1631
|
severity: { default: "primary" },
|
|
@@ -1739,7 +1745,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1739
1745
|
return (a, o) => {
|
|
1740
1746
|
const n = xe;
|
|
1741
1747
|
return s(), p(O, null, [
|
|
1742
|
-
c("span",
|
|
1748
|
+
c("span", Ot, [
|
|
1743
1749
|
k(a.$slots, "before")
|
|
1744
1750
|
]),
|
|
1745
1751
|
b(n, S({ ...t, ...a.$attrs }, { pt: l.value }), null, 16, ["pt"]),
|
|
@@ -1752,13 +1758,13 @@ const ut = { key: 0 }, ct = {
|
|
|
1752
1758
|
}, null, 8, ["class"]), [
|
|
1753
1759
|
[q, t.showIcon]
|
|
1754
1760
|
]),
|
|
1755
|
-
c("span",
|
|
1761
|
+
c("span", Ut, [
|
|
1756
1762
|
k(a.$slots, "after")
|
|
1757
1763
|
])
|
|
1758
1764
|
], 64);
|
|
1759
1765
|
};
|
|
1760
1766
|
}
|
|
1761
|
-
}),
|
|
1767
|
+
}), ul = /* @__PURE__ */ x({
|
|
1762
1768
|
__name: "ForgeRemainingCharacters",
|
|
1763
1769
|
props: {
|
|
1764
1770
|
maxCount: { default: 300 },
|
|
@@ -1770,7 +1776,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1770
1776
|
class: B(l.value < 0 ? "text-danger" : "")
|
|
1771
1777
|
}, "Remaining characters: " + g(l.value), 3));
|
|
1772
1778
|
}
|
|
1773
|
-
}),
|
|
1779
|
+
}), At = /* @__PURE__ */ c("hr", null, null, -1), Nt = { class: "d-flex justify-content-between" }, cl = /* @__PURE__ */ x({
|
|
1774
1780
|
__name: "ForgeForm",
|
|
1775
1781
|
props: {
|
|
1776
1782
|
onSubmit: {},
|
|
@@ -1809,7 +1815,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1809
1815
|
"data-cy": "form-title"
|
|
1810
1816
|
}, g(n.title), 3)
|
|
1811
1817
|
]),
|
|
1812
|
-
|
|
1818
|
+
At
|
|
1813
1819
|
], 64)),
|
|
1814
1820
|
a.value.hasError ? (s(), w(ee, {
|
|
1815
1821
|
key: 1,
|
|
@@ -1826,7 +1832,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1826
1832
|
_: 3
|
|
1827
1833
|
})) : F("", !0),
|
|
1828
1834
|
k(n.$slots, "default"),
|
|
1829
|
-
c("div",
|
|
1835
|
+
c("div", Nt, [
|
|
1830
1836
|
k(n.$slots, "cancel", {}, () => [
|
|
1831
1837
|
n.hideCancel ? F("", !0) : (s(), w(m, {
|
|
1832
1838
|
key: 0,
|
|
@@ -1863,7 +1869,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1863
1869
|
], 16);
|
|
1864
1870
|
};
|
|
1865
1871
|
}
|
|
1866
|
-
}),
|
|
1872
|
+
}), Et = { class: "d-flex flex-column" }, Rt = ["for"], ml = /* @__PURE__ */ x({
|
|
1867
1873
|
__name: "ForgeFormField",
|
|
1868
1874
|
props: {
|
|
1869
1875
|
name: {},
|
|
@@ -1877,12 +1883,12 @@ const ut = { key: 0 }, ct = {
|
|
|
1877
1883
|
const t = e, { errors: l, value: a, errorMessage: o } = W(() => t.name, t.rules), n = h(() => l.value.length > 0);
|
|
1878
1884
|
return (i, m) => {
|
|
1879
1885
|
const y = Be, r = $e, _ = le;
|
|
1880
|
-
return s(), p("div",
|
|
1886
|
+
return s(), p("div", Et, [
|
|
1881
1887
|
t.type !== "checkbox" ? (s(), p("label", {
|
|
1882
1888
|
key: 0,
|
|
1883
1889
|
for: t.name
|
|
1884
|
-
}, g(t.label), 9,
|
|
1885
|
-
t.type === "checkbox" ? (s(), w(
|
|
1890
|
+
}, g(t.label), 9, Rt)) : F("", !0),
|
|
1891
|
+
t.type === "checkbox" ? (s(), w(it, S({
|
|
1886
1892
|
key: 1,
|
|
1887
1893
|
id: t.name,
|
|
1888
1894
|
rules: i.rules,
|
|
@@ -1928,7 +1934,7 @@ const ut = { key: 0 }, ct = {
|
|
|
1928
1934
|
]);
|
|
1929
1935
|
};
|
|
1930
1936
|
}
|
|
1931
|
-
}),
|
|
1937
|
+
}), pl = /* @__PURE__ */ x({
|
|
1932
1938
|
__name: "ForgeChips",
|
|
1933
1939
|
props: {
|
|
1934
1940
|
chipSeverity: { default: "primary" },
|
|
@@ -2017,7 +2023,7 @@ const ut = { key: 0 }, ct = {
|
|
|
2017
2023
|
], 64);
|
|
2018
2024
|
};
|
|
2019
2025
|
}
|
|
2020
|
-
}),
|
|
2026
|
+
}), Lt = /* @__PURE__ */ x({
|
|
2021
2027
|
__name: "ForgeProgressBar",
|
|
2022
2028
|
props: {
|
|
2023
2029
|
severity: { default: "primary" },
|
|
@@ -2069,7 +2075,7 @@ const ut = { key: 0 }, ct = {
|
|
|
2069
2075
|
}, 16, ["pt"]);
|
|
2070
2076
|
};
|
|
2071
2077
|
}
|
|
2072
|
-
}),
|
|
2078
|
+
}), jt = { class: "value text-light w-100 text-center" }, yl = /* @__PURE__ */ x({
|
|
2073
2079
|
__name: "ForgeStatWidget",
|
|
2074
2080
|
props: {
|
|
2075
2081
|
size: { default: "md" },
|
|
@@ -2080,15 +2086,15 @@ const ut = { key: 0 }, ct = {
|
|
|
2080
2086
|
return (l, a) => (s(), p("div", S(l.$attrs, {
|
|
2081
2087
|
class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
|
|
2082
2088
|
}), [
|
|
2083
|
-
c("span",
|
|
2089
|
+
c("span", jt, [
|
|
2084
2090
|
k(l.$slots, "default")
|
|
2085
2091
|
])
|
|
2086
2092
|
], 16));
|
|
2087
2093
|
}
|
|
2088
|
-
}),
|
|
2094
|
+
}), Ht = {
|
|
2089
2095
|
class: "d-flex flex-column align-items-center",
|
|
2090
2096
|
"data-cy": "stepper"
|
|
2091
|
-
},
|
|
2097
|
+
}, qt = { class: "d-flex align-items-center justify-content-center w-100" }, bl = /* @__PURE__ */ x({
|
|
2092
2098
|
__name: "ForgeStepper",
|
|
2093
2099
|
props: {
|
|
2094
2100
|
currentStep: { default: 0 },
|
|
@@ -2156,8 +2162,8 @@ const ut = { key: 0 }, ct = {
|
|
|
2156
2162
|
}));
|
|
2157
2163
|
return (r, _) => {
|
|
2158
2164
|
const d = A, f = Te, $ = Ce;
|
|
2159
|
-
return s(), p("div",
|
|
2160
|
-
c("div",
|
|
2165
|
+
return s(), p("div", Ht, [
|
|
2166
|
+
c("div", qt, [
|
|
2161
2167
|
b(d, {
|
|
2162
2168
|
severity: a.severity,
|
|
2163
2169
|
disabled: m.value,
|
|
@@ -2211,7 +2217,7 @@ const ut = { key: 0 }, ct = {
|
|
|
2211
2217
|
]);
|
|
2212
2218
|
};
|
|
2213
2219
|
}
|
|
2214
|
-
}),
|
|
2220
|
+
}), Gt = { class: "p-4 text-wrap w-100" }, Kt = { class: "p-4 text-wrap w-100" }, vl = /* @__PURE__ */ x({
|
|
2215
2221
|
__name: "ForgeTile",
|
|
2216
2222
|
props: {
|
|
2217
2223
|
severity: { default: "primary" },
|
|
@@ -2230,7 +2236,7 @@ const ut = { key: 0 }, ct = {
|
|
|
2230
2236
|
"data-cy": "button-tile"
|
|
2231
2237
|
}, {
|
|
2232
2238
|
default: v(() => [
|
|
2233
|
-
c("div",
|
|
2239
|
+
c("div", Gt, [
|
|
2234
2240
|
k(o.$slots, "default", {}, () => [
|
|
2235
2241
|
V("Tile Content")
|
|
2236
2242
|
])
|
|
@@ -2242,7 +2248,7 @@ const ut = { key: 0 }, ct = {
|
|
|
2242
2248
|
class: B(["d-flex w-100", a.value]),
|
|
2243
2249
|
"data-cy": "tile"
|
|
2244
2250
|
}, [
|
|
2245
|
-
c("div",
|
|
2251
|
+
c("div", Kt, [
|
|
2246
2252
|
k(o.$slots, "default", {}, () => [
|
|
2247
2253
|
V("Tile Content")
|
|
2248
2254
|
])
|
|
@@ -2254,13 +2260,13 @@ const ut = { key: 0 }, ct = {
|
|
|
2254
2260
|
function Y(e, t) {
|
|
2255
2261
|
return e > 1 ? `${t}s` : t;
|
|
2256
2262
|
}
|
|
2257
|
-
const
|
|
2263
|
+
const Wt = {
|
|
2258
2264
|
class: "d-flex justify-content-start align-items-baseline",
|
|
2259
2265
|
"data-cy": "pagination-header"
|
|
2260
|
-
},
|
|
2266
|
+
}, Zt = { class: "ms-2" }, Yt = { key: 0 }, Jt = /* @__PURE__ */ c("span", { class: "mx-2" }, "|", -1), Xt = {
|
|
2261
2267
|
class: "w-auto",
|
|
2262
2268
|
"data-cy": "total"
|
|
2263
|
-
},
|
|
2269
|
+
}, Qt = /* @__PURE__ */ x({
|
|
2264
2270
|
__name: "ForgePaginationHeader",
|
|
2265
2271
|
props: {
|
|
2266
2272
|
total: {},
|
|
@@ -2275,25 +2281,25 @@ const Kt = {
|
|
|
2275
2281
|
const i = Math.ceil(a.total / a.perPage);
|
|
2276
2282
|
return `${i} ${Y(i, "page")}`;
|
|
2277
2283
|
});
|
|
2278
|
-
return (i, m) => (s(), p("div",
|
|
2284
|
+
return (i, m) => (s(), p("div", Wt, [
|
|
2279
2285
|
V(" Number of results per page "),
|
|
2280
|
-
c("div",
|
|
2286
|
+
c("div", Zt, [
|
|
2281
2287
|
b(u(oe), {
|
|
2282
2288
|
options: a.pageSizes,
|
|
2283
2289
|
"model-value": a.perPage,
|
|
2284
2290
|
onChange: m[0] || (m[0] = (y) => o(y))
|
|
2285
2291
|
}, null, 8, ["options", "model-value"])
|
|
2286
2292
|
]),
|
|
2287
|
-
a.total ? (s(), p("div",
|
|
2288
|
-
|
|
2289
|
-
c("span",
|
|
2293
|
+
a.total ? (s(), p("div", Yt, [
|
|
2294
|
+
Jt,
|
|
2295
|
+
c("span", Xt, g(a.total) + " " + g(u(Y)(a.total, "result")) + " across " + g(n.value), 1)
|
|
2290
2296
|
])) : F("", !0)
|
|
2291
2297
|
]));
|
|
2292
2298
|
}
|
|
2293
|
-
}),
|
|
2299
|
+
}), ea = { "data-cy": "above-table-slot" }, ta = { class: "d-flex" }, aa = { class: "d-flex align-items-end mb-2" }, la = { key: 0 }, oa = { class: "ms-auto" }, na = {
|
|
2294
2300
|
class: "d-flex",
|
|
2295
2301
|
"data-cy": "legacy-page-size"
|
|
2296
|
-
},
|
|
2302
|
+
}, sa = /* @__PURE__ */ c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), ia = { "data-cy": "legacy-total" }, fl = /* @__PURE__ */ x({
|
|
2297
2303
|
__name: "ForgeTable",
|
|
2298
2304
|
props: {
|
|
2299
2305
|
value: {},
|
|
@@ -2385,7 +2391,7 @@ const Kt = {
|
|
|
2385
2391
|
i.value.exportCSV();
|
|
2386
2392
|
};
|
|
2387
2393
|
return (d, f) => (s(), p(O, null, [
|
|
2388
|
-
c("span",
|
|
2394
|
+
c("span", ea, [
|
|
2389
2395
|
k(d.$slots, "above-table")
|
|
2390
2396
|
]),
|
|
2391
2397
|
b(u(Pe), S({ class: "w-100" }, { ...a, ...d.$attrs }, {
|
|
@@ -2398,10 +2404,10 @@ const Kt = {
|
|
|
2398
2404
|
"data-cy": "table"
|
|
2399
2405
|
}), Q({
|
|
2400
2406
|
header: v(() => [
|
|
2401
|
-
c("div",
|
|
2402
|
-
c("div",
|
|
2403
|
-
d.paginator && !d.legacyPaginationFooter ? (s(), p("span",
|
|
2404
|
-
b(
|
|
2407
|
+
c("div", ta, [
|
|
2408
|
+
c("div", aa, [
|
|
2409
|
+
d.paginator && !d.legacyPaginationFooter ? (s(), p("span", la, [
|
|
2410
|
+
b(Qt, {
|
|
2405
2411
|
total: d.total ?? d.value.length,
|
|
2406
2412
|
"page-sizes": o.value,
|
|
2407
2413
|
"per-page": n.value,
|
|
@@ -2409,7 +2415,7 @@ const Kt = {
|
|
|
2409
2415
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2410
2416
|
])) : F("", !0)
|
|
2411
2417
|
]),
|
|
2412
|
-
c("div",
|
|
2418
|
+
c("div", oa, [
|
|
2413
2419
|
d.showClearButton ? (s(), w(u(A), {
|
|
2414
2420
|
key: 0,
|
|
2415
2421
|
outlined: "",
|
|
@@ -2460,8 +2466,8 @@ const Kt = {
|
|
|
2460
2466
|
d.legacyPaginationFooter ? {
|
|
2461
2467
|
name: "paginatorstart",
|
|
2462
2468
|
fn: v(() => [
|
|
2463
|
-
c("span",
|
|
2464
|
-
|
|
2469
|
+
c("span", na, [
|
|
2470
|
+
sa,
|
|
2465
2471
|
b(u(oe), {
|
|
2466
2472
|
options: o.value,
|
|
2467
2473
|
modelValue: n.value,
|
|
@@ -2475,14 +2481,14 @@ const Kt = {
|
|
|
2475
2481
|
d.legacyPaginationFooter ? {
|
|
2476
2482
|
name: "paginatorend",
|
|
2477
2483
|
fn: v(() => [
|
|
2478
|
-
c("span",
|
|
2484
|
+
c("span", ia, g(d.total ?? d.value.length) + " " + g(u(Y)(d.total ?? d.value.length, "result")) + " across " + g(r.value), 1)
|
|
2479
2485
|
]),
|
|
2480
2486
|
key: "1"
|
|
2481
2487
|
} : void 0
|
|
2482
2488
|
]), 1040, ["rows", "total-records", "filter-display"])
|
|
2483
2489
|
], 64));
|
|
2484
2490
|
}
|
|
2485
|
-
}),
|
|
2491
|
+
}), gl = /* @__PURE__ */ x({
|
|
2486
2492
|
__name: "ForgeFilterHeader",
|
|
2487
2493
|
props: {
|
|
2488
2494
|
dataType: {},
|
|
@@ -2491,7 +2497,7 @@ const Kt = {
|
|
|
2491
2497
|
setup(e) {
|
|
2492
2498
|
return (t, l) => {
|
|
2493
2499
|
const a = de;
|
|
2494
|
-
return t.dataType === "numeric" ? (s(), w(a, S({ key: 0 }, t.$attrs, { class: "w-100" }), null, 16)) : t.dataType === "date" ? (s(), w(
|
|
2500
|
+
return t.dataType === "numeric" ? (s(), w(a, S({ key: 0 }, t.$attrs, { class: "w-100" }), null, 16)) : t.dataType === "date" ? (s(), w(Dt, S({ key: 1 }, t.$attrs, {
|
|
2495
2501
|
"show-icon": !1,
|
|
2496
2502
|
"show-on-focus": !0,
|
|
2497
2503
|
class: "w-100"
|
|
@@ -2520,7 +2526,7 @@ function me(e, t, l, a) {
|
|
|
2520
2526
|
})) : t[i].status = "Duplicate";
|
|
2521
2527
|
}), t;
|
|
2522
2528
|
}
|
|
2523
|
-
async function
|
|
2529
|
+
async function ra(e, t) {
|
|
2524
2530
|
if (e === "Uploaded" && t !== null)
|
|
2525
2531
|
try {
|
|
2526
2532
|
await new ue(t).delete();
|
|
@@ -2543,13 +2549,13 @@ function ne(e, t = !0, l = 1) {
|
|
|
2543
2549
|
while (Math.round(Math.abs(e) * i) / i >= a && n < o.length - 1);
|
|
2544
2550
|
return e.toFixed(l) + " " + o[n];
|
|
2545
2551
|
}
|
|
2546
|
-
function
|
|
2552
|
+
function da(e) {
|
|
2547
2553
|
return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
|
|
2548
2554
|
}
|
|
2549
|
-
function
|
|
2555
|
+
function ua(e) {
|
|
2550
2556
|
return URL.createObjectURL(e);
|
|
2551
2557
|
}
|
|
2552
|
-
const
|
|
2558
|
+
const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disabled", "multiple"], pa = /* @__PURE__ */ x({
|
|
2553
2559
|
__name: "UploadButton",
|
|
2554
2560
|
props: /* @__PURE__ */ G({
|
|
2555
2561
|
acceptedFileTypes: {},
|
|
@@ -2564,7 +2570,7 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2564
2570
|
const t = L(e, "modelValue"), l = h(() => e.maxFileInput <= t.value.length), a = (o) => {
|
|
2565
2571
|
t.value = me(o, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2566
2572
|
};
|
|
2567
|
-
return (o, n) => (s(), p("div",
|
|
2573
|
+
return (o, n) => (s(), p("div", ca, [
|
|
2568
2574
|
k(o.$slots, "message"),
|
|
2569
2575
|
c("div", null, [
|
|
2570
2576
|
c("input", {
|
|
@@ -2575,7 +2581,7 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2575
2581
|
disabled: l.value,
|
|
2576
2582
|
multiple: o.maxFileInput > 1,
|
|
2577
2583
|
onInput: n[0] || (n[0] = (i) => a([...i.target.files]))
|
|
2578
|
-
}, null, 40,
|
|
2584
|
+
}, null, 40, ma),
|
|
2579
2585
|
c("label", {
|
|
2580
2586
|
class: B([{ disabled: l.value }, "btn btn-primary"]),
|
|
2581
2587
|
id: "file-input-button",
|
|
@@ -2599,14 +2605,14 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2599
2605
|
}, "Accepted File Types: " + g(o.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) : F("", !0)
|
|
2600
2606
|
]));
|
|
2601
2607
|
}
|
|
2602
|
-
}),
|
|
2608
|
+
}), ya = {
|
|
2603
2609
|
key: 0,
|
|
2604
2610
|
class: "py-4 px-3",
|
|
2605
2611
|
id: "placeholder-message"
|
|
2606
|
-
},
|
|
2612
|
+
}, ba = {
|
|
2607
2613
|
key: 1,
|
|
2608
2614
|
class: "d-flex flex-column"
|
|
2609
|
-
},
|
|
2615
|
+
}, va = /* @__PURE__ */ x({
|
|
2610
2616
|
__name: "DragDropArea",
|
|
2611
2617
|
props: /* @__PURE__ */ G({
|
|
2612
2618
|
maxFileInput: {},
|
|
@@ -2628,7 +2634,7 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2628
2634
|
onDragover: i[1] || (i[1] = K((m) => l.value = !0, ["prevent"])),
|
|
2629
2635
|
onDrop: K(o, ["prevent"])
|
|
2630
2636
|
}, [
|
|
2631
|
-
t.value.length === 0 ? (s(), p("div",
|
|
2637
|
+
t.value.length === 0 ? (s(), p("div", ya, [
|
|
2632
2638
|
b(u(C), {
|
|
2633
2639
|
icon: "bi:upload",
|
|
2634
2640
|
class: "me-2",
|
|
@@ -2636,12 +2642,12 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2636
2642
|
width: "20px"
|
|
2637
2643
|
}),
|
|
2638
2644
|
V(" Drag and drop files here ")
|
|
2639
|
-
])) : (s(), p("div",
|
|
2645
|
+
])) : (s(), p("div", ba, [
|
|
2640
2646
|
k(n.$slots, "default")
|
|
2641
2647
|
]))
|
|
2642
2648
|
], 34));
|
|
2643
2649
|
}
|
|
2644
|
-
}),
|
|
2650
|
+
}), fa = { class: "d-flex align-items-center me-2" }, ga = /* @__PURE__ */ x({
|
|
2645
2651
|
__name: "UploadStatus",
|
|
2646
2652
|
props: {
|
|
2647
2653
|
fileSize: {},
|
|
@@ -2666,8 +2672,8 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2666
2672
|
return "Upload Failed: Connection error, please try again.";
|
|
2667
2673
|
}
|
|
2668
2674
|
});
|
|
2669
|
-
return (a, o) => (s(), p("div",
|
|
2670
|
-
a.uploadStatus === "Uploading" ? (s(), w(
|
|
2675
|
+
return (a, o) => (s(), p("div", fa, [
|
|
2676
|
+
a.uploadStatus === "Uploading" ? (s(), w(Lt, {
|
|
2671
2677
|
key: 0,
|
|
2672
2678
|
pixelWidth: 200,
|
|
2673
2679
|
animate: "",
|
|
@@ -2691,16 +2697,16 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2691
2697
|
}, 8, ["severity"])) : F("", !0)
|
|
2692
2698
|
]));
|
|
2693
2699
|
}
|
|
2694
|
-
}),
|
|
2700
|
+
}), ha = ["data-cy"], wa = { class: "ms-3 d-flex flex-column" }, ka = {
|
|
2695
2701
|
key: 1,
|
|
2696
2702
|
id: "file-name"
|
|
2697
|
-
},
|
|
2703
|
+
}, _a = {
|
|
2698
2704
|
class: "text-black-50",
|
|
2699
2705
|
id: "file-type"
|
|
2700
|
-
},
|
|
2706
|
+
}, xa = {
|
|
2701
2707
|
class: "text-black-50",
|
|
2702
2708
|
id: "file-size"
|
|
2703
|
-
},
|
|
2709
|
+
}, $a = { class: "ms-auto my-auto d-flex" }, Ba = /* @__PURE__ */ x({
|
|
2704
2710
|
__name: "FileInfo",
|
|
2705
2711
|
props: /* @__PURE__ */ G({
|
|
2706
2712
|
editableFileName: { type: Boolean },
|
|
@@ -2748,7 +2754,7 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2748
2754
|
o.value = "Failed";
|
|
2749
2755
|
}
|
|
2750
2756
|
}, T = async () => {
|
|
2751
|
-
await
|
|
2757
|
+
await ra(o.value, m.value), n("deleted", l.value);
|
|
2752
2758
|
};
|
|
2753
2759
|
return ie(() => {
|
|
2754
2760
|
e.autoUploadToBlob && $();
|
|
@@ -2759,11 +2765,11 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2759
2765
|
"data-cy": `file-info-${l.value.name}`
|
|
2760
2766
|
}, [
|
|
2761
2767
|
c("div", null, [
|
|
2762
|
-
u(
|
|
2768
|
+
u(da)(l.value.type) ? (s(), w(u(Ie), {
|
|
2763
2769
|
key: 0,
|
|
2764
2770
|
id: "thumbnail-image",
|
|
2765
2771
|
"image-class": "image-file-thumbnail border",
|
|
2766
|
-
src: u(
|
|
2772
|
+
src: u(ua)(l.value),
|
|
2767
2773
|
alt: l.value.name,
|
|
2768
2774
|
width: "75px",
|
|
2769
2775
|
preview: ""
|
|
@@ -2775,9 +2781,9 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2775
2781
|
width: "75px"
|
|
2776
2782
|
}))
|
|
2777
2783
|
]),
|
|
2778
|
-
c("div",
|
|
2784
|
+
c("div", wa, [
|
|
2779
2785
|
c("div", null, [
|
|
2780
|
-
I.editableFileName ? (s(), w(
|
|
2786
|
+
I.editableFileName ? (s(), w(ht, {
|
|
2781
2787
|
key: 0,
|
|
2782
2788
|
id: "edit-file-name",
|
|
2783
2789
|
modelValue: i.value,
|
|
@@ -2785,13 +2791,13 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2785
2791
|
rules: I.customFileNameRules,
|
|
2786
2792
|
name: l.value.name,
|
|
2787
2793
|
"complete-action": f
|
|
2788
|
-
}, null, 8, ["modelValue", "rules", "name"])) : (s(), p("span",
|
|
2794
|
+
}, null, 8, ["modelValue", "rules", "name"])) : (s(), p("span", ka, g(l.value.name), 1))
|
|
2789
2795
|
]),
|
|
2790
|
-
c("span",
|
|
2791
|
-
c("span",
|
|
2796
|
+
c("span", _a, "File type: " + g(l.value.type.split("/").pop()), 1),
|
|
2797
|
+
c("span", xa, "File size: " + g(u(ne)(l.value.size)), 1)
|
|
2792
2798
|
]),
|
|
2793
|
-
c("div",
|
|
2794
|
-
(s(), w(
|
|
2799
|
+
c("div", $a, [
|
|
2800
|
+
(s(), w(ga, {
|
|
2795
2801
|
key: o.value,
|
|
2796
2802
|
"file-size": l.value.size,
|
|
2797
2803
|
"upload-status": o.value,
|
|
@@ -2831,20 +2837,20 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2831
2837
|
_: 1
|
|
2832
2838
|
}))
|
|
2833
2839
|
])
|
|
2834
|
-
], 8,
|
|
2840
|
+
], 8, ha);
|
|
2835
2841
|
};
|
|
2836
2842
|
}
|
|
2837
|
-
}),
|
|
2843
|
+
}), Fa = { class: "d-flex justify-content-end mt-1" }, Sa = { id: "max-file-size" }, Ca = /* @__PURE__ */ x({
|
|
2838
2844
|
__name: "MaxFileSize",
|
|
2839
2845
|
props: {
|
|
2840
2846
|
maxFileSize: {}
|
|
2841
2847
|
},
|
|
2842
2848
|
setup(e) {
|
|
2843
|
-
return (t, l) => (s(), p("div",
|
|
2844
|
-
c("div",
|
|
2849
|
+
return (t, l) => (s(), p("div", Fa, [
|
|
2850
|
+
c("div", Sa, "Max file size: " + g(u(ne)(t.maxFileSize)), 1)
|
|
2845
2851
|
]));
|
|
2846
2852
|
}
|
|
2847
|
-
}),
|
|
2853
|
+
}), Ta = { "data-cy": "file-uploader" }, Pa = { key: 0 }, hl = /* @__PURE__ */ x({
|
|
2848
2854
|
__name: "ForgeFileUploader",
|
|
2849
2855
|
props: /* @__PURE__ */ G({
|
|
2850
2856
|
acceptedFileTypes: {},
|
|
@@ -2864,13 +2870,13 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2864
2870
|
const t = L(e, "modelValue"), l = e, a = (o) => {
|
|
2865
2871
|
t.value = t.value.filter((n) => n.file != o);
|
|
2866
2872
|
};
|
|
2867
|
-
return (o, n) => (s(), p("div",
|
|
2868
|
-
b(
|
|
2873
|
+
return (o, n) => (s(), p("div", Ta, [
|
|
2874
|
+
b(pa, S(l, {
|
|
2869
2875
|
modelValue: t.value,
|
|
2870
2876
|
"onUpdate:modelValue": n[0] || (n[0] = (i) => t.value = i)
|
|
2871
2877
|
}), null, 16, ["modelValue"]),
|
|
2872
|
-
o.showDragDropArea ? (s(), p("div",
|
|
2873
|
-
b(
|
|
2878
|
+
o.showDragDropArea ? (s(), p("div", Pa, [
|
|
2879
|
+
b(va, {
|
|
2874
2880
|
"max-file-input": l.maxFileInput,
|
|
2875
2881
|
"max-file-size": l.maxFileSize,
|
|
2876
2882
|
"accepted-file-types": l.acceptedFileTypes,
|
|
@@ -2879,7 +2885,7 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2879
2885
|
}, {
|
|
2880
2886
|
default: v(() => [
|
|
2881
2887
|
(s(!0), p(O, null, E(t.value, ({ file: i }, m) => (s(), p("span", null, [
|
|
2882
|
-
(s(), w(
|
|
2888
|
+
(s(), w(Ba, S({
|
|
2883
2889
|
key: i.name,
|
|
2884
2890
|
class: m === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
2885
2891
|
file: t.value[m].file,
|
|
@@ -2894,7 +2900,7 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2894
2900
|
]),
|
|
2895
2901
|
_: 1
|
|
2896
2902
|
}, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
|
|
2897
|
-
b(
|
|
2903
|
+
b(Ca, {
|
|
2898
2904
|
"max-file-size": l.maxFileSize
|
|
2899
2905
|
}, null, 8, ["max-file-size"])
|
|
2900
2906
|
])) : F("", !0)
|
|
@@ -2902,28 +2908,28 @@ const ua = { class: "d-flex justify-content-between" }, ca = ["accept", "disable
|
|
|
2902
2908
|
}
|
|
2903
2909
|
});
|
|
2904
2910
|
export {
|
|
2905
|
-
|
|
2906
|
-
|
|
2911
|
+
ll as Bootstrap_PT,
|
|
2912
|
+
ol as ForgeActionButton,
|
|
2907
2913
|
ee as ForgeAlert,
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2914
|
+
it as ForgeCheckbox,
|
|
2915
|
+
pl as ForgeChips,
|
|
2916
|
+
Dt as ForgeDatepicker,
|
|
2917
|
+
hl as ForgeFileUploader,
|
|
2918
|
+
gl as ForgeFilterHeader,
|
|
2919
|
+
cl as ForgeForm,
|
|
2920
|
+
ml as ForgeFormField,
|
|
2921
|
+
ht as ForgeInlineEditor,
|
|
2922
|
+
nl as ForgeLink,
|
|
2917
2923
|
ce as ForgeLoader,
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2924
|
+
sl as ForgeModal,
|
|
2925
|
+
Ft as ForgeMultiSelect,
|
|
2926
|
+
rl as ForgeMultiSelectPreview,
|
|
2927
|
+
il as ForgeNavbar,
|
|
2928
|
+
dl as ForgePageHeader,
|
|
2929
|
+
Lt as ForgeProgressBar,
|
|
2930
|
+
ul as ForgeRemainingCharacters,
|
|
2931
|
+
yl as ForgeStatWidget,
|
|
2932
|
+
bl as ForgeStepper,
|
|
2933
|
+
fl as ForgeTable,
|
|
2934
|
+
vl as ForgeTile
|
|
2929
2935
|
};
|