@3squared/forge-ui-3 0.2.0 → 0.2.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.mjs +219 -210
- package/dist/src/components/ForgeActionButton.vue.d.ts +1 -1
- package/dist/src/components/ForgeAlert.vue.d.ts +1 -1
- package/dist/src/components/ForgeCheckbox.vue.d.ts +2 -2
- package/dist/src/components/ForgeChips.vue.d.ts +1 -1
- package/dist/src/components/ForgeDatepicker.vue.d.ts +1 -1
- package/dist/src/components/ForgeForm.vue.d.ts +1 -1
- package/dist/src/components/ForgeFormField.vue.d.ts +1 -1
- package/dist/src/components/ForgeInlineEditor.vue.d.ts +17 -17
- package/dist/src/components/ForgeLink.vue.d.ts +1 -1
- package/dist/src/components/ForgeLoader.vue.d.ts +1 -1
- package/dist/src/components/ForgeModal.vue.d.ts +71 -72
- package/dist/src/components/ForgeMultiSelect.vue.d.ts +2 -2
- package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +2 -2
- package/dist/src/components/ForgeNavbar.vue.d.ts +1 -1
- package/dist/src/components/ForgePageHeader.vue.d.ts +1 -1
- package/dist/src/components/ForgeProgressBar.vue.d.ts +1 -1
- package/dist/src/components/ForgeRemainingCharacters.vue.d.ts +1 -1
- package/dist/src/components/ForgeStatWidget.vue.d.ts +1 -1
- package/dist/src/components/ForgeStepper.vue.d.ts +2 -2
- package/dist/src/components/ForgeTile.vue.d.ts +1 -1
- package/dist/src/components/file-uploader/ForgeFileUploader.vue.d.ts +19 -19
- package/dist/src/components/file-uploader/components/DragDropArea.vue.d.ts +9 -9
- package/dist/src/components/file-uploader/components/FileInfo.vue.d.ts +20 -20
- package/dist/src/components/file-uploader/components/MaxFileSize.vue.d.ts +1 -1
- package/dist/src/components/file-uploader/components/UploadButton.vue.d.ts +9 -9
- package/dist/src/components/file-uploader/components/UploadStatus.vue.d.ts +1 -1
- package/dist/src/components/table/ForgeFilterHeader.vue.d.ts +1 -1
- package/dist/src/components/table/ForgePaginationHeader.vue.d.ts +2 -2
- package/dist/src/components/table/ForgeTable.vue.d.ts +2 -2
- package/package.json +16 -13
package/dist/esm/forge-ui-3.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import pe from "primevue/message";
|
|
2
|
-
import { defineComponent as $, openBlock as n, createBlock as w, normalizeProps as
|
|
2
|
+
import { defineComponent as $, openBlock as n, createBlock as w, normalizeProps as J, guardReactiveProps as X, withCtx as b, createElementVNode as c, normalizeClass as F, unref as u, createCommentVNode as B, createVNode as v, renderSlot as k, ref as I, createElementBlock as p, Fragment as U, mergeProps as S, computed as h, createTextVNode as z, toDisplayString as g, withDirectives as j, vShow as q, mergeModels as G, useModel as L, createSlots as Q, renderList as E, onMounted as ne, isRef as H, withKeys as Z, useAttrs as ie, withModifiers as K, normalizeStyle as ye } from "vue";
|
|
3
3
|
import { Icon as C } from "@iconify/vue";
|
|
4
4
|
import A from "primevue/button";
|
|
5
5
|
import ve from "primevue/toast";
|
|
@@ -495,7 +495,7 @@ const za = {
|
|
|
495
495
|
icons: "d-flex ms-auto",
|
|
496
496
|
closeButton: ({ props: e }) => ({
|
|
497
497
|
class: [
|
|
498
|
-
"btn",
|
|
498
|
+
"btn p-0",
|
|
499
499
|
{
|
|
500
500
|
"ms-auto": !e.maximizable
|
|
501
501
|
}
|
|
@@ -503,9 +503,9 @@ const za = {
|
|
|
503
503
|
}),
|
|
504
504
|
maximizableButton: ({ props: e }) => ({
|
|
505
505
|
class: [
|
|
506
|
-
"btn ms-auto",
|
|
506
|
+
"btn ms-auto p-0",
|
|
507
507
|
{
|
|
508
|
-
"me-
|
|
508
|
+
"me-3": e.closable
|
|
509
509
|
}
|
|
510
510
|
]
|
|
511
511
|
}),
|
|
@@ -798,7 +798,7 @@ const za = {
|
|
|
798
798
|
zoominbutton: "btn text-white",
|
|
799
799
|
closebutton: "btn text-white"
|
|
800
800
|
}
|
|
801
|
-
},
|
|
801
|
+
}, ee = /* @__PURE__ */ $({
|
|
802
802
|
__name: "ForgeAlert",
|
|
803
803
|
props: {
|
|
804
804
|
severity: { default: "primary" },
|
|
@@ -816,18 +816,18 @@ const za = {
|
|
|
816
816
|
const t = e;
|
|
817
817
|
return (l, a) => {
|
|
818
818
|
const o = pe;
|
|
819
|
-
return n(), w(o,
|
|
819
|
+
return n(), w(o, J(X({ ...l.$attrs, ...t })), {
|
|
820
820
|
messageicon: b(() => [
|
|
821
821
|
c("div", {
|
|
822
|
-
class:
|
|
822
|
+
class: F(t.icon ? "me-2 pe-1" : "")
|
|
823
823
|
}, [
|
|
824
824
|
t.icon ? (n(), w(u(C), {
|
|
825
825
|
key: 0,
|
|
826
826
|
"data-cy": "message-icon",
|
|
827
827
|
icon: t.icon,
|
|
828
|
-
class:
|
|
828
|
+
class: F(`text-${t.severity}`),
|
|
829
829
|
height: 35
|
|
830
|
-
}, null, 8, ["icon", "class"])) :
|
|
830
|
+
}, null, 8, ["icon", "class"])) : B("", !0)
|
|
831
831
|
], 2)
|
|
832
832
|
]),
|
|
833
833
|
closeicon: b(() => [
|
|
@@ -849,7 +849,7 @@ const za = {
|
|
|
849
849
|
params: { default: Array }
|
|
850
850
|
},
|
|
851
851
|
setup(e) {
|
|
852
|
-
const t =
|
|
852
|
+
const t = I(!1), l = e, a = async () => {
|
|
853
853
|
t.value = !0;
|
|
854
854
|
try {
|
|
855
855
|
await l.action.apply(this, l.params);
|
|
@@ -860,7 +860,7 @@ const za = {
|
|
|
860
860
|
};
|
|
861
861
|
return (o, s) => {
|
|
862
862
|
const i = A;
|
|
863
|
-
return n(), p(
|
|
863
|
+
return n(), p(U, null, [
|
|
864
864
|
v(i, S({ ...l, ...o.$attrs }, {
|
|
865
865
|
loading: t.value,
|
|
866
866
|
disabled: t.value || l.disabled,
|
|
@@ -910,7 +910,7 @@ const za = {
|
|
|
910
910
|
}, r = h(() => i.value.length > 0);
|
|
911
911
|
return (_, d) => {
|
|
912
912
|
const f = be;
|
|
913
|
-
return n(), p(
|
|
913
|
+
return n(), p(U, null, [
|
|
914
914
|
c("div", Te, [
|
|
915
915
|
v(f, S({
|
|
916
916
|
id: a.name
|
|
@@ -926,19 +926,19 @@ const za = {
|
|
|
926
926
|
}, 16, ["id", "value", "input-class"]),
|
|
927
927
|
c("label", {
|
|
928
928
|
for: a.name,
|
|
929
|
-
class:
|
|
929
|
+
class: F(`${a.disabled ? "opacity-50" : "cursor-pointer"}`),
|
|
930
930
|
onClick: y
|
|
931
931
|
}, [
|
|
932
932
|
k(_.$slots, "default", {}, () => [
|
|
933
|
-
|
|
933
|
+
z(g(a.label), 1)
|
|
934
934
|
])
|
|
935
935
|
], 10, Pe)
|
|
936
936
|
]),
|
|
937
|
-
|
|
937
|
+
j(c("small", {
|
|
938
938
|
"data-cy": "error",
|
|
939
939
|
class: "text-invalid"
|
|
940
940
|
}, g(u(m)), 513), [
|
|
941
|
-
[
|
|
941
|
+
[q, r.value]
|
|
942
942
|
])
|
|
943
943
|
], 64);
|
|
944
944
|
};
|
|
@@ -955,7 +955,7 @@ const za = {
|
|
|
955
955
|
return n(), p("div", Oe, [
|
|
956
956
|
v(o, {
|
|
957
957
|
"animation-duration": ".75",
|
|
958
|
-
class:
|
|
958
|
+
class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`)
|
|
959
959
|
}, null, 8, ["class"])
|
|
960
960
|
]);
|
|
961
961
|
};
|
|
@@ -996,7 +996,7 @@ const za = {
|
|
|
996
996
|
}));
|
|
997
997
|
return (a, o) => (n(), p("a", {
|
|
998
998
|
id: "link",
|
|
999
|
-
class:
|
|
999
|
+
class: F(["cursor-pointer d-flex", t.value]),
|
|
1000
1000
|
href: a.url,
|
|
1001
1001
|
target: a.target
|
|
1002
1002
|
}, [
|
|
@@ -1005,9 +1005,9 @@ const za = {
|
|
|
1005
1005
|
key: 0,
|
|
1006
1006
|
id: "link-icon",
|
|
1007
1007
|
icon: a.iconName,
|
|
1008
|
-
class:
|
|
1009
|
-
}, null, 8, ["icon", "class"])) :
|
|
1010
|
-
|
|
1008
|
+
class: F(["bi my-auto", l.value])
|
|
1009
|
+
}, null, 8, ["icon", "class"])) : B("", !0),
|
|
1010
|
+
z(" " + g(a.label), 1)
|
|
1011
1011
|
])
|
|
1012
1012
|
], 10, De));
|
|
1013
1013
|
}
|
|
@@ -1028,7 +1028,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1028
1028
|
"data-cy": "footer"
|
|
1029
1029
|
}, Pa = /* @__PURE__ */ $({
|
|
1030
1030
|
__name: "ForgeModal",
|
|
1031
|
-
props: /* @__PURE__ */
|
|
1031
|
+
props: /* @__PURE__ */ G({
|
|
1032
1032
|
cancelText: { default: "Cancel" },
|
|
1033
1033
|
submitText: { default: "Submit" },
|
|
1034
1034
|
showFooter: { type: Boolean, default: !0 },
|
|
@@ -1069,7 +1069,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1069
1069
|
}),
|
|
1070
1070
|
emits: ["update:visible"],
|
|
1071
1071
|
setup(e) {
|
|
1072
|
-
const t =
|
|
1072
|
+
const t = L(e, "visible"), l = I(!1), a = e, o = I(!1), s = I({
|
|
1073
1073
|
hasError: !1,
|
|
1074
1074
|
header: "",
|
|
1075
1075
|
message: []
|
|
@@ -1101,66 +1101,72 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1101
1101
|
]
|
|
1102
1102
|
}));
|
|
1103
1103
|
return (d, f) => {
|
|
1104
|
-
const x = A,
|
|
1105
|
-
return n(), w(
|
|
1104
|
+
const x = A, V = ge;
|
|
1105
|
+
return n(), w(V, S(a, {
|
|
1106
1106
|
onMaximize: m,
|
|
1107
1107
|
onUnmaximize: i,
|
|
1108
1108
|
pt: _.value
|
|
1109
|
-
}),
|
|
1109
|
+
}), Q({
|
|
1110
1110
|
closeicon: b(() => [
|
|
1111
1111
|
v(u(C), {
|
|
1112
1112
|
"data-cy": "close-icon",
|
|
1113
1113
|
icon: "bi:x-lg",
|
|
1114
|
-
width: "
|
|
1115
|
-
height: "
|
|
1114
|
+
width: "18",
|
|
1115
|
+
height: "18",
|
|
1116
1116
|
onClick: y
|
|
1117
1117
|
})
|
|
1118
1118
|
]),
|
|
1119
1119
|
maximizeicon: b(() => [
|
|
1120
1120
|
v(u(C), {
|
|
1121
1121
|
"data-cy": "maximisable-icon",
|
|
1122
|
-
icon: "bi:arrows-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
s.value.hasError ? (n(), w(X, {
|
|
1127
|
-
key: 0,
|
|
1128
|
-
severity: "danger",
|
|
1129
|
-
"data-cy": "error"
|
|
1130
|
-
}, {
|
|
1131
|
-
default: b(() => [
|
|
1132
|
-
c("p", {
|
|
1133
|
-
class: B(s.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1134
|
-
}, g(s.value.header), 3),
|
|
1135
|
-
s.value.message.length > 0 ? (n(), p("ul", Ne, [
|
|
1136
|
-
(n(!0), p(M, null, L(s.value.message, (V) => (n(), p("li", { key: V }, g(V), 1))), 128))
|
|
1137
|
-
])) : F("", !0)
|
|
1138
|
-
]),
|
|
1139
|
-
_: 1
|
|
1140
|
-
})) : F("", !0),
|
|
1141
|
-
k(d.$slots, "default"),
|
|
1142
|
-
o.value ? k(d.$slots, "loader", { key: 1 }, () => [
|
|
1143
|
-
v(ue, { "data-cy": "loader" })
|
|
1144
|
-
]) : F("", !0)
|
|
1122
|
+
icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
|
|
1123
|
+
width: "16",
|
|
1124
|
+
height: "16"
|
|
1125
|
+
}, null, 8, ["icon"])
|
|
1145
1126
|
]),
|
|
1146
1127
|
_: 2
|
|
1147
1128
|
}, [
|
|
1129
|
+
E(d.$slots, (T, P) => ({
|
|
1130
|
+
name: P,
|
|
1131
|
+
fn: b((M) => [
|
|
1132
|
+
s.value.hasError ? (n(), w(ee, {
|
|
1133
|
+
key: 0,
|
|
1134
|
+
severity: "danger",
|
|
1135
|
+
"data-cy": "error"
|
|
1136
|
+
}, {
|
|
1137
|
+
default: b(() => [
|
|
1138
|
+
c("p", {
|
|
1139
|
+
class: F(s.value.message.length > 0 ? "my-auto" : "mb-0")
|
|
1140
|
+
}, g(s.value.header), 3),
|
|
1141
|
+
s.value.message.length > 0 ? (n(), p("ul", Ne, [
|
|
1142
|
+
(n(!0), p(U, null, E(s.value.message, (N) => (n(), p("li", { key: N }, g(N), 1))), 128))
|
|
1143
|
+
])) : B("", !0)
|
|
1144
|
+
]),
|
|
1145
|
+
_: 1
|
|
1146
|
+
})) : B("", !0),
|
|
1147
|
+
k(d.$slots, P, J(X(M || {}))),
|
|
1148
|
+
o.value ? k(d.$slots, "loader", { key: 1 }, () => [
|
|
1149
|
+
v(ue, { "data-cy": "loader" })
|
|
1150
|
+
]) : B("", !0)
|
|
1151
|
+
])
|
|
1152
|
+
})),
|
|
1148
1153
|
d.showFooter ? {
|
|
1149
1154
|
name: "footer",
|
|
1150
1155
|
fn: b(() => [
|
|
1151
1156
|
c("div", Ee, [
|
|
1152
1157
|
v(x, {
|
|
1153
1158
|
label: d.cancelText,
|
|
1159
|
+
class: F(a.cancelClass),
|
|
1154
1160
|
outlined: "",
|
|
1155
1161
|
onClick: y,
|
|
1156
|
-
|
|
1157
|
-
}, null, 8, ["label"]),
|
|
1162
|
+
id: "cancel-button"
|
|
1163
|
+
}, null, 8, ["label", "class"]),
|
|
1158
1164
|
v(x, {
|
|
1159
1165
|
label: d.submitText,
|
|
1160
|
-
class: "ms-auto",
|
|
1166
|
+
class: F([a.submitClass, "ms-auto"]),
|
|
1161
1167
|
onClick: r,
|
|
1162
|
-
|
|
1163
|
-
}, null, 8, ["label"])
|
|
1168
|
+
id: "submit-button"
|
|
1169
|
+
}, null, 8, ["label", "class"])
|
|
1164
1170
|
])
|
|
1165
1171
|
]),
|
|
1166
1172
|
key: "0"
|
|
@@ -1170,7 +1176,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1170
1176
|
}
|
|
1171
1177
|
}), Re = ["id"], Le = { key: 0 }, je = { key: 0 }, He = { class: "d-flex justify-content-between align-items-center position-relative" }, qe = { key: 1 }, Ge = { "data-cy": "readonly-value" }, Ke = /* @__PURE__ */ $({
|
|
1172
1178
|
__name: "ForgeInlineEditor",
|
|
1173
|
-
props: /* @__PURE__ */
|
|
1179
|
+
props: /* @__PURE__ */ G({
|
|
1174
1180
|
name: { default: "" },
|
|
1175
1181
|
rules: {},
|
|
1176
1182
|
completeAction: {},
|
|
@@ -1184,7 +1190,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1184
1190
|
}),
|
|
1185
1191
|
emits: ["update:modelValue"],
|
|
1186
1192
|
setup(e) {
|
|
1187
|
-
const t = e, l =
|
|
1193
|
+
const t = e, l = L(e, "modelValue"), a = I(!1), o = I(), s = () => {
|
|
1188
1194
|
var x;
|
|
1189
1195
|
a.value = !a.value, (x = o.value) == null || x.focus();
|
|
1190
1196
|
}, i = async () => {
|
|
@@ -1207,8 +1213,8 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1207
1213
|
d.value = l.value;
|
|
1208
1214
|
});
|
|
1209
1215
|
const f = h(() => _.value.length > 0);
|
|
1210
|
-
return (x,
|
|
1211
|
-
const
|
|
1216
|
+
return (x, V) => {
|
|
1217
|
+
const T = le, P = A;
|
|
1212
1218
|
return n(), p("div", {
|
|
1213
1219
|
id: t.name
|
|
1214
1220
|
}, [
|
|
@@ -1218,21 +1224,21 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1218
1224
|
])
|
|
1219
1225
|
])) : (n(), p("div", Le, [
|
|
1220
1226
|
a.value ? (n(), p("div", je, [
|
|
1221
|
-
|
|
1227
|
+
j((n(), p("div", He, [
|
|
1222
1228
|
k(x.$slots, "editor", {
|
|
1223
|
-
class:
|
|
1229
|
+
class: F({ "is-invalid": f.value }),
|
|
1224
1230
|
editFinished: i,
|
|
1225
1231
|
cancel: m,
|
|
1226
1232
|
val: u(d)
|
|
1227
1233
|
}, () => [
|
|
1228
|
-
v(
|
|
1234
|
+
v(T, {
|
|
1229
1235
|
"data-cy": "input",
|
|
1230
1236
|
ref_key: "input",
|
|
1231
1237
|
ref: o,
|
|
1232
1238
|
modelValue: u(d),
|
|
1233
|
-
"onUpdate:modelValue":
|
|
1239
|
+
"onUpdate:modelValue": V[0] || (V[0] = (M) => H(d) ? d.value = M : null),
|
|
1234
1240
|
modelModifiers: { trim: !0 },
|
|
1235
|
-
class:
|
|
1241
|
+
class: F({ "is-invalid": f.value }),
|
|
1236
1242
|
onKeydown: [
|
|
1237
1243
|
Z(i, ["enter"]),
|
|
1238
1244
|
Z(m, ["esc"])
|
|
@@ -1257,18 +1263,18 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1257
1263
|
}, [
|
|
1258
1264
|
k(x.$slots, "default", {}, () => [
|
|
1259
1265
|
c("div", {
|
|
1260
|
-
class:
|
|
1266
|
+
class: F(["pe-2 cursor-pointer", { "text-invalid": f.value }]),
|
|
1261
1267
|
"data-cy": "value"
|
|
1262
1268
|
}, g(u(d) ? u(d) : "Click to edit"), 3)
|
|
1263
1269
|
]),
|
|
1264
|
-
v(
|
|
1270
|
+
v(P, {
|
|
1265
1271
|
link: "",
|
|
1266
1272
|
class: "p-0 m-0"
|
|
1267
1273
|
}, {
|
|
1268
1274
|
default: b(() => [
|
|
1269
1275
|
v(u(C), {
|
|
1270
1276
|
icon: "bi:pencil",
|
|
1271
|
-
class:
|
|
1277
|
+
class: F(f.value ? "text-invalid" : "text-muted"),
|
|
1272
1278
|
"data-cy": "edit-icon",
|
|
1273
1279
|
onKeydown: Z(s, ["enter"])
|
|
1274
1280
|
}, null, 8, ["class"])
|
|
@@ -1277,11 +1283,11 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1277
1283
|
})
|
|
1278
1284
|
], 32))
|
|
1279
1285
|
])),
|
|
1280
|
-
|
|
1286
|
+
j(c("small", {
|
|
1281
1287
|
"data-cy": "error",
|
|
1282
1288
|
class: "text-invalid"
|
|
1283
1289
|
}, g(u(r)), 513), [
|
|
1284
|
-
[
|
|
1290
|
+
[q, f.value]
|
|
1285
1291
|
])
|
|
1286
1292
|
], 8, Re);
|
|
1287
1293
|
};
|
|
@@ -1334,7 +1340,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1334
1340
|
return n(), w(s, S({ ...t, ...a.$attrs }, {
|
|
1335
1341
|
pt: l.value,
|
|
1336
1342
|
"data-cy": "navbar"
|
|
1337
|
-
}),
|
|
1343
|
+
}), Q({
|
|
1338
1344
|
start: b(() => [
|
|
1339
1345
|
c("a", {
|
|
1340
1346
|
href: a.logoUrl,
|
|
@@ -1342,7 +1348,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1342
1348
|
"data-cy": "logo"
|
|
1343
1349
|
}, [
|
|
1344
1350
|
k(a.$slots, "logo", {}, () => [
|
|
1345
|
-
|
|
1351
|
+
z(" Logo ")
|
|
1346
1352
|
])
|
|
1347
1353
|
], 8, We)
|
|
1348
1354
|
]),
|
|
@@ -1350,7 +1356,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1350
1356
|
k(a.$slots, "menubuttonicon", {}, () => [
|
|
1351
1357
|
v(u(C), {
|
|
1352
1358
|
icon: "bi:list",
|
|
1353
|
-
class:
|
|
1359
|
+
class: F(t.severity === "light" ? "text-black" : "text-white"),
|
|
1354
1360
|
height: "24",
|
|
1355
1361
|
"data-cy": "burger-icon"
|
|
1356
1362
|
}, null, 8, ["class"])
|
|
@@ -1358,10 +1364,10 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1358
1364
|
]),
|
|
1359
1365
|
_: 2
|
|
1360
1366
|
}, [
|
|
1361
|
-
|
|
1367
|
+
E(a.$slots, (i, m) => ({
|
|
1362
1368
|
name: m,
|
|
1363
1369
|
fn: b((y) => [
|
|
1364
|
-
k(a.$slots, m,
|
|
1370
|
+
k(a.$slots, m, J(X(y)))
|
|
1365
1371
|
])
|
|
1366
1372
|
}))
|
|
1367
1373
|
]), 1040, ["pt"]);
|
|
@@ -1380,7 +1386,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1380
1386
|
},
|
|
1381
1387
|
emits: ["update:modelValue"],
|
|
1382
1388
|
setup(e, { emit: t }) {
|
|
1383
|
-
const l = e, a = ie(), o = t, { errors: s, value: i, errorMessage: m } = W(() => l.name, l.rules), y =
|
|
1389
|
+
const l = e, a = ie(), o = t, { errors: s, value: i, errorMessage: m } = W(() => l.name, l.rules), y = I(!1), r = h(() => ({
|
|
1384
1390
|
multiple: !0,
|
|
1385
1391
|
label: "label",
|
|
1386
1392
|
trackBy: "id",
|
|
@@ -1393,40 +1399,40 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1393
1399
|
searchable: !!((a.searchable === null || a.searchable) && !f.value),
|
|
1394
1400
|
async: !1,
|
|
1395
1401
|
...a
|
|
1396
|
-
})), _ = h(() => `forge-multiselect-${l.severity}`), d = h(() => `multiselect-option ${y.value ? " multiselect__option--highlight" : ""} ${f.value ? " multiselect__option--selected" : ""}`), f = h(() => r.value && !(r.value.multiple || !l.showSelectAll || r.value.async) ? !1 : a.modelValue.length === a.options.length), x = h(() => s.value.length > 0),
|
|
1402
|
+
})), _ = h(() => `forge-multiselect-${l.severity}`), d = h(() => `multiselect-option ${y.value ? " multiselect__option--highlight" : ""} ${f.value ? " multiselect__option--selected" : ""}`), f = h(() => r.value && !(r.value.multiple || !l.showSelectAll || r.value.async) ? !1 : a.modelValue.length === a.options.length), x = h(() => s.value.length > 0), V = h(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (r.value.multiple ? a.modelValue.length > 0 : a.modelValue))), T = () => y.value = !0, P = () => y.value = !1, M = () => {
|
|
1397
1403
|
i.value = r.value.multiple ? [] : null, o("update:modelValue", i.value);
|
|
1398
|
-
},
|
|
1404
|
+
}, N = (O) => {
|
|
1399
1405
|
o("update:modelValue", l.selectValue ? O.map((D) => D[l.selectValue]) : O);
|
|
1400
|
-
},
|
|
1401
|
-
f.value ?
|
|
1406
|
+
}, te = (O) => a.modelValue !== null ? a.modelValue.some((D) => r.value.selectValue ? O[l.selectValue] === D : O.id === D.id && O.label === D.label) : !1, me = () => {
|
|
1407
|
+
f.value ? M() : (i.value = [...a.options], o("update:modelValue", [...a.options]));
|
|
1402
1408
|
};
|
|
1403
|
-
return (O, D) => (n(), p(
|
|
1409
|
+
return (O, D) => (n(), p(U, null, [
|
|
1404
1410
|
v(u(ke), S(r.value, {
|
|
1405
1411
|
class: [_.value, x.value ? "is-invalid" : ""],
|
|
1406
1412
|
"data-cy": "multiselect",
|
|
1407
1413
|
"onUpdate:modelValue": [
|
|
1408
|
-
|
|
1409
|
-
D[1] || (D[1] = (
|
|
1414
|
+
N,
|
|
1415
|
+
D[1] || (D[1] = (R) => H(i) ? i.value = R : null)
|
|
1410
1416
|
],
|
|
1411
1417
|
modelValue: u(i)
|
|
1412
|
-
}),
|
|
1418
|
+
}), Q({
|
|
1413
1419
|
default: b(() => [
|
|
1414
|
-
(n(!0), p(
|
|
1420
|
+
(n(!0), p(U, null, E(O.$slots, (R, ae) => k(O.$slots, ae, { slot: ae })), 256))
|
|
1415
1421
|
]),
|
|
1416
1422
|
_: 2
|
|
1417
1423
|
}, [
|
|
1418
|
-
|
|
1424
|
+
V.value ? {
|
|
1419
1425
|
name: "caret",
|
|
1420
|
-
fn: b(({ toggle:
|
|
1426
|
+
fn: b(({ toggle: R }) => [
|
|
1421
1427
|
v(u(C), {
|
|
1422
1428
|
icon: "bi:x",
|
|
1423
1429
|
class: "my-auto multiselect__clear-icon",
|
|
1424
|
-
onMousedown: D[0] || (D[0] = K((
|
|
1430
|
+
onMousedown: D[0] || (D[0] = K((ae) => M(), ["prevent", "stop"])),
|
|
1425
1431
|
"data-cy": "clear"
|
|
1426
1432
|
}),
|
|
1427
1433
|
c("div", {
|
|
1428
1434
|
class: "multiselect__select",
|
|
1429
|
-
onMousedown: K(
|
|
1435
|
+
onMousedown: K(R, ["prevent", "stop"])
|
|
1430
1436
|
}, null, 40, Ze)
|
|
1431
1437
|
]),
|
|
1432
1438
|
key: "0"
|
|
@@ -1437,12 +1443,12 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1437
1443
|
c("li", {
|
|
1438
1444
|
class: "multiselect__element",
|
|
1439
1445
|
onClick: me,
|
|
1440
|
-
onMouseover:
|
|
1441
|
-
onMouseleave:
|
|
1446
|
+
onMouseover: T,
|
|
1447
|
+
onMouseleave: P,
|
|
1442
1448
|
"data-cy": "toggle-all"
|
|
1443
1449
|
}, [
|
|
1444
1450
|
c("span", {
|
|
1445
|
-
class:
|
|
1451
|
+
class: F(`multiselect__option ${d.value}`)
|
|
1446
1452
|
}, [
|
|
1447
1453
|
c("input", {
|
|
1448
1454
|
checked: f.value,
|
|
@@ -1458,27 +1464,27 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1458
1464
|
} : void 0,
|
|
1459
1465
|
r.value.multiple ? {
|
|
1460
1466
|
name: "option",
|
|
1461
|
-
fn: b(({ option:
|
|
1467
|
+
fn: b(({ option: R }) => [
|
|
1462
1468
|
c("div", {
|
|
1463
|
-
"data-cy":
|
|
1469
|
+
"data-cy": R.label
|
|
1464
1470
|
}, [
|
|
1465
1471
|
c("input", {
|
|
1466
|
-
checked:
|
|
1472
|
+
checked: te(R),
|
|
1467
1473
|
name: "selected",
|
|
1468
1474
|
type: "checkbox",
|
|
1469
1475
|
class: "multiselect__option--checkbox"
|
|
1470
1476
|
}, null, 8, Qe),
|
|
1471
|
-
|
|
1477
|
+
z(" " + g(R[r.value.label]), 1)
|
|
1472
1478
|
], 8, Xe)
|
|
1473
1479
|
]),
|
|
1474
1480
|
key: "2"
|
|
1475
1481
|
} : void 0
|
|
1476
1482
|
]), 1040, ["class", "modelValue"]),
|
|
1477
|
-
|
|
1483
|
+
j(c("small", {
|
|
1478
1484
|
"data-cy": "error",
|
|
1479
1485
|
class: "invalid-feedback"
|
|
1480
1486
|
}, g(u(m)), 513), [
|
|
1481
|
-
[
|
|
1487
|
+
[q, x.value]
|
|
1482
1488
|
])
|
|
1483
1489
|
], 64));
|
|
1484
1490
|
}
|
|
@@ -1511,11 +1517,11 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1511
1517
|
return (r, _) => {
|
|
1512
1518
|
const d = A;
|
|
1513
1519
|
return n(), p("div", {
|
|
1514
|
-
class:
|
|
1520
|
+
class: F(r.orientation === "column" ? "row" : ""),
|
|
1515
1521
|
"data-cy": "multiselect-preview"
|
|
1516
1522
|
}, [
|
|
1517
1523
|
c("div", {
|
|
1518
|
-
class:
|
|
1524
|
+
class: F(r.orientation === "row" ? "col-12 mb-1" : "col"),
|
|
1519
1525
|
"data-cy": "multiselect-container"
|
|
1520
1526
|
}, [
|
|
1521
1527
|
v(et, {
|
|
@@ -1528,20 +1534,20 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1528
1534
|
options: l.options
|
|
1529
1535
|
}, {
|
|
1530
1536
|
tag: b(() => [
|
|
1531
|
-
|
|
1537
|
+
z(g(""))
|
|
1532
1538
|
]),
|
|
1533
1539
|
selection: b(() => [
|
|
1534
|
-
r.$attrs.modelValue.length > 0 ? (n(), p("span", tt, g(i.value) + " items selected", 1)) :
|
|
1540
|
+
r.$attrs.modelValue.length > 0 ? (n(), p("span", tt, g(i.value) + " items selected", 1)) : B("", !0)
|
|
1535
1541
|
]),
|
|
1536
1542
|
default: b(() => [
|
|
1537
|
-
(n(!0), p(
|
|
1543
|
+
(n(!0), p(U, null, E(r.$slots, (f, x) => k(r.$slots, x, { slot: x })), 256))
|
|
1538
1544
|
]),
|
|
1539
1545
|
_: 3
|
|
1540
1546
|
}, 8, ["modelValue", "limit-text", "options"]),
|
|
1541
1547
|
k(r.$slots, "after-multi-select")
|
|
1542
1548
|
], 2),
|
|
1543
1549
|
c("div", {
|
|
1544
|
-
class:
|
|
1550
|
+
class: F(r.orientation === "row" ? "col-12" : "col"),
|
|
1545
1551
|
"data-cy": "options-preview"
|
|
1546
1552
|
}, [
|
|
1547
1553
|
c("div", {
|
|
@@ -1549,8 +1555,8 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1549
1555
|
class: "overflow-auto"
|
|
1550
1556
|
}, [
|
|
1551
1557
|
c("div", at, [
|
|
1552
|
-
r.title ? (n(), p("div", lt, g(r.title), 1)) :
|
|
1553
|
-
(n(!0), p(
|
|
1558
|
+
r.title ? (n(), p("div", lt, g(r.title), 1)) : B("", !0),
|
|
1559
|
+
(n(!0), p(U, null, E(r.$attrs.modelValue, (f) => (n(), p("div", {
|
|
1554
1560
|
key: f.id,
|
|
1555
1561
|
class: "p-2 item d-flex justify-content-between align-items-center"
|
|
1556
1562
|
}, [
|
|
@@ -1571,9 +1577,9 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1571
1577
|
}, null, 8, ["data-cy"])
|
|
1572
1578
|
]),
|
|
1573
1579
|
_: 2
|
|
1574
|
-
}, 1032, ["onClick"])) :
|
|
1580
|
+
}, 1032, ["onClick"])) : B("", !0)
|
|
1575
1581
|
]))), 128)),
|
|
1576
|
-
r.$attrs.modelValue.length === 0 ? (n(), p("div", st, "No Items Selected.")) :
|
|
1582
|
+
r.$attrs.modelValue.length === 0 ? (n(), p("div", st, "No Items Selected.")) : B("", !0)
|
|
1577
1583
|
])
|
|
1578
1584
|
], 4)
|
|
1579
1585
|
], 2)
|
|
@@ -1712,19 +1718,19 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1712
1718
|
}));
|
|
1713
1719
|
return (a, o) => {
|
|
1714
1720
|
const s = _e;
|
|
1715
|
-
return n(), p(
|
|
1721
|
+
return n(), p(U, null, [
|
|
1716
1722
|
c("span", dt, [
|
|
1717
1723
|
k(a.$slots, "before")
|
|
1718
1724
|
]),
|
|
1719
1725
|
v(s, S({ ...t, ...a.$attrs }, { pt: l.value }), null, 16, ["pt"]),
|
|
1720
|
-
|
|
1726
|
+
j(v(u(C), {
|
|
1721
1727
|
"data-cy": "icon",
|
|
1722
1728
|
icon: "bi:calendar3",
|
|
1723
1729
|
width: "32",
|
|
1724
1730
|
height: "32",
|
|
1725
|
-
class:
|
|
1731
|
+
class: F(["ps-2", t.severity == null ? "text-primary" : `text-${t.severity}`])
|
|
1726
1732
|
}, null, 8, ["class"]), [
|
|
1727
|
-
[
|
|
1733
|
+
[q, t.showIcon]
|
|
1728
1734
|
]),
|
|
1729
1735
|
c("span", ut, [
|
|
1730
1736
|
k(a.$slots, "after")
|
|
@@ -1741,7 +1747,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1741
1747
|
setup(e) {
|
|
1742
1748
|
const t = e, l = h(() => t.maxCount - t.currentCount);
|
|
1743
1749
|
return (a, o) => (n(), p("div", {
|
|
1744
|
-
class:
|
|
1750
|
+
class: F(l.value < 0 ? "text-danger" : "")
|
|
1745
1751
|
}, "Remaining characters: " + g(l.value), 3));
|
|
1746
1752
|
}
|
|
1747
1753
|
}), mt = /* @__PURE__ */ c("hr", null, null, -1), pt = { class: "d-flex justify-content-between" }, Na = /* @__PURE__ */ $({
|
|
@@ -1756,7 +1762,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1756
1762
|
hideCancel: { type: Boolean, default: !1 }
|
|
1757
1763
|
},
|
|
1758
1764
|
setup(e) {
|
|
1759
|
-
const t = e, l =
|
|
1765
|
+
const t = e, l = I(!1), a = I({
|
|
1760
1766
|
hasError: !1,
|
|
1761
1767
|
message: ""
|
|
1762
1768
|
});
|
|
@@ -1776,16 +1782,16 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1776
1782
|
class: "position-relative shadow-sm border p-4 bg-white",
|
|
1777
1783
|
onSubmit: K(o, ["prevent"])
|
|
1778
1784
|
}), [
|
|
1779
|
-
s.hideTitle ?
|
|
1785
|
+
s.hideTitle ? B("", !0) : (n(), p(U, { key: 0 }, [
|
|
1780
1786
|
k(s.$slots, "title", {}, () => [
|
|
1781
1787
|
c("h3", {
|
|
1782
|
-
class:
|
|
1788
|
+
class: F(s.titleClass),
|
|
1783
1789
|
"data-cy": "form-title"
|
|
1784
1790
|
}, g(s.title), 3)
|
|
1785
1791
|
]),
|
|
1786
1792
|
mt
|
|
1787
1793
|
], 64)),
|
|
1788
|
-
a.value.hasError ? (n(), w(
|
|
1794
|
+
a.value.hasError ? (n(), w(ee, {
|
|
1789
1795
|
key: 1,
|
|
1790
1796
|
severity: "danger",
|
|
1791
1797
|
"data-cy": "error"
|
|
@@ -1794,15 +1800,15 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1794
1800
|
k(s.$slots, "error", {
|
|
1795
1801
|
error: a.value.message
|
|
1796
1802
|
}, () => [
|
|
1797
|
-
|
|
1803
|
+
z(g(a.value.message), 1)
|
|
1798
1804
|
])
|
|
1799
1805
|
]),
|
|
1800
1806
|
_: 3
|
|
1801
|
-
})) :
|
|
1807
|
+
})) : B("", !0),
|
|
1802
1808
|
k(s.$slots, "default"),
|
|
1803
1809
|
c("div", pt, [
|
|
1804
1810
|
k(s.$slots, "cancel", {}, () => [
|
|
1805
|
-
s.hideCancel ?
|
|
1811
|
+
s.hideCancel ? B("", !0) : (n(), w(m, {
|
|
1806
1812
|
key: 0,
|
|
1807
1813
|
"data-cy": "cancel-btn",
|
|
1808
1814
|
type: "reset",
|
|
@@ -1811,7 +1817,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1811
1817
|
onClick: i[0] || (i[0] = (y) => s.$emit("cancel"))
|
|
1812
1818
|
}, {
|
|
1813
1819
|
default: b(() => [
|
|
1814
|
-
|
|
1820
|
+
z(g(s.cancelText), 1)
|
|
1815
1821
|
]),
|
|
1816
1822
|
_: 1
|
|
1817
1823
|
}))
|
|
@@ -1824,7 +1830,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1824
1830
|
class: "ms-auto"
|
|
1825
1831
|
}, {
|
|
1826
1832
|
default: b(() => [
|
|
1827
|
-
|
|
1833
|
+
z(g(s.submitText), 1)
|
|
1828
1834
|
]),
|
|
1829
1835
|
_: 1
|
|
1830
1836
|
})
|
|
@@ -1833,7 +1839,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1833
1839
|
l.value ? (n(), w(ue, {
|
|
1834
1840
|
key: 2,
|
|
1835
1841
|
"data-cy": "loading-spinner"
|
|
1836
|
-
})) :
|
|
1842
|
+
})) : B("", !0)
|
|
1837
1843
|
], 16);
|
|
1838
1844
|
};
|
|
1839
1845
|
}
|
|
@@ -1855,7 +1861,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1855
1861
|
t.type !== "checkbox" ? (n(), p("label", {
|
|
1856
1862
|
key: 0,
|
|
1857
1863
|
for: t.name
|
|
1858
|
-
}, g(t.label), 9, vt)) :
|
|
1864
|
+
}, g(t.label), 9, vt)) : B("", !0),
|
|
1859
1865
|
t.type === "checkbox" ? (n(), w(Ue, S({
|
|
1860
1866
|
key: 1,
|
|
1861
1867
|
id: t.name,
|
|
@@ -1866,7 +1872,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1866
1872
|
id: t.name,
|
|
1867
1873
|
placeholder: t.placeholder,
|
|
1868
1874
|
modelValue: u(a),
|
|
1869
|
-
"onUpdate:modelValue": m[0] || (m[0] = (d) =>
|
|
1875
|
+
"onUpdate:modelValue": m[0] || (m[0] = (d) => H(a) ? a.value = d : null),
|
|
1870
1876
|
"input-class": { "is-invalid": s.value },
|
|
1871
1877
|
class: { "is-invalid": s.value }
|
|
1872
1878
|
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "input-class", "class"])) : t.type === "textarea" ? (n(), w(y, S({
|
|
@@ -1874,14 +1880,14 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1874
1880
|
id: t.name,
|
|
1875
1881
|
placeholder: t.placeholder,
|
|
1876
1882
|
modelValue: u(a),
|
|
1877
|
-
"onUpdate:modelValue": m[1] || (m[1] = (d) =>
|
|
1883
|
+
"onUpdate:modelValue": m[1] || (m[1] = (d) => H(a) ? a.value = d : null),
|
|
1878
1884
|
class: { "is-invalid": s.value }
|
|
1879
1885
|
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : t.type === "mask" ? (n(), w(r, S({
|
|
1880
1886
|
key: 4,
|
|
1881
1887
|
id: t.name,
|
|
1882
1888
|
placeholder: t.placeholder,
|
|
1883
1889
|
modelValue: u(a),
|
|
1884
|
-
"onUpdate:modelValue": m[2] || (m[2] = (d) =>
|
|
1890
|
+
"onUpdate:modelValue": m[2] || (m[2] = (d) => H(a) ? a.value = d : null),
|
|
1885
1891
|
mask: t.mask,
|
|
1886
1892
|
class: { "is-invalid": s.value }
|
|
1887
1893
|
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "mask", "class"])) : t.type === "text" ? (n(), w(_, S({
|
|
@@ -1889,16 +1895,16 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1889
1895
|
id: t.name,
|
|
1890
1896
|
placeholder: t.placeholder,
|
|
1891
1897
|
modelValue: u(a),
|
|
1892
|
-
"onUpdate:modelValue": m[3] || (m[3] = (d) =>
|
|
1898
|
+
"onUpdate:modelValue": m[3] || (m[3] = (d) => H(a) ? a.value = d : null),
|
|
1893
1899
|
class: { "is-invalid": s.value }
|
|
1894
|
-
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) :
|
|
1895
|
-
t.type !== "checkbox" ?
|
|
1900
|
+
}, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : B("", !0),
|
|
1901
|
+
t.type !== "checkbox" ? j((n(), p("small", {
|
|
1896
1902
|
key: 6,
|
|
1897
1903
|
"data-cy": "error",
|
|
1898
1904
|
class: "invalid-feedback"
|
|
1899
1905
|
}, g(u(o)), 513)), [
|
|
1900
|
-
[
|
|
1901
|
-
]) :
|
|
1906
|
+
[q, s.value]
|
|
1907
|
+
]) : B("", !0)
|
|
1902
1908
|
]);
|
|
1903
1909
|
};
|
|
1904
1910
|
}
|
|
@@ -1933,9 +1939,11 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1933
1939
|
const t = e, { errors: l, value: a, errorMessage: o } = W(() => t.name, t.rules);
|
|
1934
1940
|
a.value = t.modelValue;
|
|
1935
1941
|
const s = h(() => l.value.length > 0), i = h(() => ({
|
|
1942
|
+
inputtoken: "list-unstyled",
|
|
1943
|
+
input: "border-0",
|
|
1936
1944
|
container: ({ props: m }) => ({
|
|
1937
1945
|
class: [
|
|
1938
|
-
"form-control mb-0",
|
|
1946
|
+
"form-control mb-0 d-flex",
|
|
1939
1947
|
{
|
|
1940
1948
|
disabled: m.disabled,
|
|
1941
1949
|
"is-invalid": s.value
|
|
@@ -1944,7 +1952,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1944
1952
|
}),
|
|
1945
1953
|
token: {
|
|
1946
1954
|
class: [
|
|
1947
|
-
"rounded px-2 py-1 me-2 text-white",
|
|
1955
|
+
"rounded px-2 py-1 me-2 text-white list-unstyled",
|
|
1948
1956
|
{
|
|
1949
1957
|
"rounded-pill": t.pill,
|
|
1950
1958
|
"opacity-75": t.disabled
|
|
@@ -1962,28 +1970,28 @@ const Ne = { key: 0 }, Ee = {
|
|
|
1962
1970
|
}));
|
|
1963
1971
|
return (m, y) => {
|
|
1964
1972
|
const r = Fe;
|
|
1965
|
-
return n(), p(
|
|
1973
|
+
return n(), p(U, null, [
|
|
1966
1974
|
v(r, S({ ...t, ...m.$attrs }, {
|
|
1967
1975
|
pt: i.value,
|
|
1968
1976
|
"model-value": u(a),
|
|
1969
|
-
"onUpdate:modelValue": y[0] || (y[0] = (_) =>
|
|
1977
|
+
"onUpdate:modelValue": y[0] || (y[0] = (_) => H(a) ? a.value = _ : null)
|
|
1970
1978
|
}), {
|
|
1971
1979
|
removetokenicon: b(({ removeCallback: _ }) => [
|
|
1972
|
-
|
|
1980
|
+
j(v(u(C), {
|
|
1973
1981
|
icon: "bi:x",
|
|
1974
1982
|
class: "cursor-pointer",
|
|
1975
1983
|
onClick: _
|
|
1976
1984
|
}, null, 8, ["onClick"]), [
|
|
1977
|
-
[
|
|
1985
|
+
[q, !t.disabled]
|
|
1978
1986
|
])
|
|
1979
1987
|
]),
|
|
1980
1988
|
_: 1
|
|
1981
1989
|
}, 16, ["pt", "model-value"]),
|
|
1982
|
-
|
|
1990
|
+
j(c("small", {
|
|
1983
1991
|
"data-cy": "error",
|
|
1984
1992
|
class: "text-invalid"
|
|
1985
1993
|
}, g(u(o)), 513), [
|
|
1986
|
-
[
|
|
1994
|
+
[q, s.value]
|
|
1987
1995
|
])
|
|
1988
1996
|
], 64);
|
|
1989
1997
|
};
|
|
@@ -2073,7 +2081,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2073
2081
|
},
|
|
2074
2082
|
emits: ["update:currentStep"],
|
|
2075
2083
|
setup(e, { emit: t }) {
|
|
2076
|
-
const l = t, a = e, o =
|
|
2084
|
+
const l = t, a = e, o = I(a.currentStep), s = () => {
|
|
2077
2085
|
do
|
|
2078
2086
|
o.value--;
|
|
2079
2087
|
while (a.model[o.value].disabled);
|
|
@@ -2142,28 +2150,28 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2142
2150
|
}, 8, ["severity", "disabled"]),
|
|
2143
2151
|
v(f, {
|
|
2144
2152
|
"active-step": o.value,
|
|
2145
|
-
"onUpdate:activeStep": _[0] || (_[0] = (
|
|
2153
|
+
"onUpdate:activeStep": _[0] || (_[0] = (V) => o.value = V),
|
|
2146
2154
|
model: a.model,
|
|
2147
2155
|
pt: y.value,
|
|
2148
2156
|
readonly: !1
|
|
2149
2157
|
}, null, 8, ["active-step", "model", "pt"])
|
|
2150
2158
|
]),
|
|
2151
2159
|
v(x),
|
|
2152
|
-
(n(!0), p(
|
|
2153
|
-
key:
|
|
2160
|
+
(n(!0), p(U, null, E(a.model, (V, T) => (n(), p("div", {
|
|
2161
|
+
key: T,
|
|
2154
2162
|
class: "w-100"
|
|
2155
2163
|
}, [
|
|
2156
|
-
|
|
2164
|
+
T === o.value ? k(r.$slots, V.key ?? V.label, {
|
|
2157
2165
|
key: 0,
|
|
2158
2166
|
nextStep: i,
|
|
2159
2167
|
previousStep: s
|
|
2160
2168
|
}, () => [
|
|
2161
|
-
v(
|
|
2169
|
+
v(ee, {
|
|
2162
2170
|
severity: "info",
|
|
2163
2171
|
"data-cy": "alert"
|
|
2164
2172
|
}, {
|
|
2165
2173
|
default: b(() => [
|
|
2166
|
-
|
|
2174
|
+
z(" Please add Slot Content for the key " + g(V.key ?? V.label) + " ", 1),
|
|
2167
2175
|
v(d, {
|
|
2168
2176
|
severity: "primary",
|
|
2169
2177
|
label: "Next",
|
|
@@ -2173,7 +2181,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2173
2181
|
]),
|
|
2174
2182
|
_: 2
|
|
2175
2183
|
}, 1024)
|
|
2176
|
-
]) :
|
|
2184
|
+
]) : B("", !0)
|
|
2177
2185
|
]))), 128))
|
|
2178
2186
|
]);
|
|
2179
2187
|
};
|
|
@@ -2191,7 +2199,7 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2191
2199
|
const i = A;
|
|
2192
2200
|
return t.clickable ? (n(), w(i, {
|
|
2193
2201
|
key: 0,
|
|
2194
|
-
class:
|
|
2202
|
+
class: F(["d-flex w-100 p-0 text-body", l.value]),
|
|
2195
2203
|
severity: t.severity,
|
|
2196
2204
|
unstyled: "",
|
|
2197
2205
|
"data-cy": "button-tile"
|
|
@@ -2199,19 +2207,19 @@ const Ne = { key: 0 }, Ee = {
|
|
|
2199
2207
|
default: b(() => [
|
|
2200
2208
|
c("div", wt, [
|
|
2201
2209
|
k(o.$slots, "default", {}, () => [
|
|
2202
|
-
|
|
2210
|
+
z("Tile Content")
|
|
2203
2211
|
])
|
|
2204
2212
|
])
|
|
2205
2213
|
]),
|
|
2206
2214
|
_: 3
|
|
2207
2215
|
}, 8, ["severity", "class"])) : (n(), p("div", {
|
|
2208
2216
|
key: 1,
|
|
2209
|
-
class:
|
|
2217
|
+
class: F(["d-flex w-100", a.value]),
|
|
2210
2218
|
"data-cy": "tile"
|
|
2211
2219
|
}, [
|
|
2212
2220
|
c("div", kt, [
|
|
2213
2221
|
k(o.$slots, "default", {}, () => [
|
|
2214
|
-
|
|
2222
|
+
z("Tile Content")
|
|
2215
2223
|
])
|
|
2216
2224
|
])
|
|
2217
2225
|
], 2));
|
|
@@ -2243,7 +2251,7 @@ const _t = {
|
|
|
2243
2251
|
return `${i} ${Y(i, "page")}`;
|
|
2244
2252
|
});
|
|
2245
2253
|
return (i, m) => (n(), p("div", _t, [
|
|
2246
|
-
|
|
2254
|
+
z(" Number of results per page "),
|
|
2247
2255
|
c("div", $t, [
|
|
2248
2256
|
v(u(oe), {
|
|
2249
2257
|
options: a.pageSizes,
|
|
@@ -2254,7 +2262,7 @@ const _t = {
|
|
|
2254
2262
|
a.total ? (n(), p("div", xt, [
|
|
2255
2263
|
Ft,
|
|
2256
2264
|
c("span", Bt, g(a.total) + " " + g(u(Y)(a.total, "result")) + " across " + g(s.value), 1)
|
|
2257
|
-
])) :
|
|
2265
|
+
])) : B("", !0)
|
|
2258
2266
|
]));
|
|
2259
2267
|
}
|
|
2260
2268
|
}), Ct = { "data-cy": "above-table-slot" }, Vt = { class: "d-flex" }, It = { class: "d-flex align-items-end mb-2" }, zt = { key: 0 }, Tt = { class: "ms-auto" }, Mt = {
|
|
@@ -2339,7 +2347,7 @@ const _t = {
|
|
|
2339
2347
|
},
|
|
2340
2348
|
emits: ["update:filters"],
|
|
2341
2349
|
setup(e, { emit: t }) {
|
|
2342
|
-
const l = t, a = e, o =
|
|
2350
|
+
const l = t, a = e, o = I([10, 20, 50, 100]), s = I(20), i = I(), m = () => {
|
|
2343
2351
|
for (const d in a.filters)
|
|
2344
2352
|
a.filters[d].value = null;
|
|
2345
2353
|
y(a.filters);
|
|
@@ -2351,7 +2359,7 @@ const _t = {
|
|
|
2351
2359
|
}), _ = () => {
|
|
2352
2360
|
i.value.exportCSV();
|
|
2353
2361
|
};
|
|
2354
|
-
return (d, f) => (n(), p(
|
|
2362
|
+
return (d, f) => (n(), p(U, null, [
|
|
2355
2363
|
c("span", Ct, [
|
|
2356
2364
|
k(d.$slots, "above-table")
|
|
2357
2365
|
]),
|
|
@@ -2363,7 +2371,7 @@ const _t = {
|
|
|
2363
2371
|
ref: i,
|
|
2364
2372
|
"onUpdate:filters": y,
|
|
2365
2373
|
"data-cy": "table"
|
|
2366
|
-
}),
|
|
2374
|
+
}), Q({
|
|
2367
2375
|
header: b(() => [
|
|
2368
2376
|
c("div", Vt, [
|
|
2369
2377
|
c("div", It, [
|
|
@@ -2374,13 +2382,13 @@ const _t = {
|
|
|
2374
2382
|
"per-page": s.value,
|
|
2375
2383
|
"onUpdate:perPage": f[0] || (f[0] = (x) => s.value = x)
|
|
2376
2384
|
}, null, 8, ["total", "page-sizes", "per-page"])
|
|
2377
|
-
])) :
|
|
2385
|
+
])) : B("", !0)
|
|
2378
2386
|
]),
|
|
2379
2387
|
c("div", Tt, [
|
|
2380
2388
|
d.showClearButton ? (n(), w(u(A), {
|
|
2381
2389
|
key: 0,
|
|
2382
2390
|
outlined: "",
|
|
2383
|
-
class:
|
|
2391
|
+
class: F(d.showExporterButton ? "me-2" : ""),
|
|
2384
2392
|
onClick: m,
|
|
2385
2393
|
"data-cy": "clear-all"
|
|
2386
2394
|
}, {
|
|
@@ -2390,10 +2398,10 @@ const _t = {
|
|
|
2390
2398
|
width: "24",
|
|
2391
2399
|
height: "24"
|
|
2392
2400
|
}),
|
|
2393
|
-
|
|
2401
|
+
z(" Clear ")
|
|
2394
2402
|
]),
|
|
2395
2403
|
_: 1
|
|
2396
|
-
}, 8, ["class"])) :
|
|
2404
|
+
}, 8, ["class"])) : B("", !0),
|
|
2397
2405
|
d.showExporterButton ? (n(), w(u(A), {
|
|
2398
2406
|
key: 1,
|
|
2399
2407
|
outlined: "",
|
|
@@ -2406,10 +2414,10 @@ const _t = {
|
|
|
2406
2414
|
width: "24",
|
|
2407
2415
|
height: "24"
|
|
2408
2416
|
}),
|
|
2409
|
-
|
|
2417
|
+
z(" Export ")
|
|
2410
2418
|
]),
|
|
2411
2419
|
_: 1
|
|
2412
|
-
})) :
|
|
2420
|
+
})) : B("", !0)
|
|
2413
2421
|
])
|
|
2414
2422
|
])
|
|
2415
2423
|
]),
|
|
@@ -2418,10 +2426,10 @@ const _t = {
|
|
|
2418
2426
|
]),
|
|
2419
2427
|
_: 2
|
|
2420
2428
|
}, [
|
|
2421
|
-
|
|
2422
|
-
name:
|
|
2423
|
-
fn: b((
|
|
2424
|
-
k(d.$slots,
|
|
2429
|
+
E(d.$slots, (x, V) => ({
|
|
2430
|
+
name: V,
|
|
2431
|
+
fn: b((T) => [
|
|
2432
|
+
k(d.$slots, V, J(X(T || {})))
|
|
2425
2433
|
])
|
|
2426
2434
|
})),
|
|
2427
2435
|
d.legacyPaginationFooter ? {
|
|
@@ -2518,7 +2526,7 @@ function At(e) {
|
|
|
2518
2526
|
}
|
|
2519
2527
|
const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disabled", "multiple"], Rt = /* @__PURE__ */ $({
|
|
2520
2528
|
__name: "UploadButton",
|
|
2521
|
-
props: /* @__PURE__ */
|
|
2529
|
+
props: /* @__PURE__ */ G({
|
|
2522
2530
|
acceptedFileTypes: {},
|
|
2523
2531
|
maxFileInput: {},
|
|
2524
2532
|
showDragDropArea: { type: Boolean }
|
|
@@ -2528,7 +2536,7 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2528
2536
|
}),
|
|
2529
2537
|
emits: ["update:modelValue"],
|
|
2530
2538
|
setup(e) {
|
|
2531
|
-
const t =
|
|
2539
|
+
const t = L(e, "modelValue"), l = h(() => e.maxFileInput <= t.value.length), a = (o) => {
|
|
2532
2540
|
t.value = ce(o, t.value, e.acceptedFileTypes, e.maxFileInput);
|
|
2533
2541
|
};
|
|
2534
2542
|
return (o, s) => (n(), p("div", Nt, [
|
|
@@ -2544,7 +2552,7 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2544
2552
|
onInput: s[0] || (s[0] = (i) => a([...i.target.files]))
|
|
2545
2553
|
}, null, 40, Et),
|
|
2546
2554
|
c("label", {
|
|
2547
|
-
class:
|
|
2555
|
+
class: F([{ disabled: l.value }, "btn btn-primary"]),
|
|
2548
2556
|
id: "file-input-button",
|
|
2549
2557
|
for: "file-input"
|
|
2550
2558
|
}, [
|
|
@@ -2555,7 +2563,7 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2555
2563
|
height: "20px",
|
|
2556
2564
|
width: "20px"
|
|
2557
2565
|
}),
|
|
2558
|
-
|
|
2566
|
+
z(" Browse your computer ")
|
|
2559
2567
|
])
|
|
2560
2568
|
], 2)
|
|
2561
2569
|
]),
|
|
@@ -2563,7 +2571,7 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2563
2571
|
class: "ms-auto",
|
|
2564
2572
|
key: o.acceptedFileTypes.length,
|
|
2565
2573
|
id: "accepted-file-types"
|
|
2566
|
-
}, "Accepted File Types: " + g(o.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) :
|
|
2574
|
+
}, "Accepted File Types: " + g(o.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) : B("", !0)
|
|
2567
2575
|
]));
|
|
2568
2576
|
}
|
|
2569
2577
|
}), Lt = {
|
|
@@ -2575,7 +2583,7 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2575
2583
|
class: "d-flex flex-column"
|
|
2576
2584
|
}, Ht = /* @__PURE__ */ $({
|
|
2577
2585
|
__name: "DragDropArea",
|
|
2578
|
-
props: /* @__PURE__ */
|
|
2586
|
+
props: /* @__PURE__ */ G({
|
|
2579
2587
|
maxFileInput: {},
|
|
2580
2588
|
maxFileSize: {},
|
|
2581
2589
|
acceptedFileTypes: {}
|
|
@@ -2585,12 +2593,12 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2585
2593
|
}),
|
|
2586
2594
|
emits: ["update:modelValue"],
|
|
2587
2595
|
setup(e) {
|
|
2588
|
-
const t =
|
|
2596
|
+
const t = L(e, "modelValue"), l = I(!1), a = h(() => e.maxFileInput <= t.value.length), o = (s) => {
|
|
2589
2597
|
l.value = !1, s.dataTransfer.files.length > e.maxFileInput || a.value ? s.preventDefault() : t.value = ce([...s.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
|
|
2590
2598
|
};
|
|
2591
2599
|
return (s, i) => (n(), p("div", {
|
|
2592
2600
|
id: "drag-drop-area",
|
|
2593
|
-
class:
|
|
2601
|
+
class: F(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
|
|
2594
2602
|
onDragleave: i[0] || (i[0] = K((m) => l.value = !1, ["prevent"])),
|
|
2595
2603
|
onDragover: i[1] || (i[1] = K((m) => l.value = !0, ["prevent"])),
|
|
2596
2604
|
onDrop: K(o, ["prevent"])
|
|
@@ -2602,7 +2610,7 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2602
2610
|
height: "20px",
|
|
2603
2611
|
width: "20px"
|
|
2604
2612
|
}),
|
|
2605
|
-
|
|
2613
|
+
z(" Drag and drop files here ")
|
|
2606
2614
|
])) : (n(), p("div", jt, [
|
|
2607
2615
|
k(s.$slots, "default")
|
|
2608
2616
|
]))
|
|
@@ -2641,21 +2649,21 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2641
2649
|
striped: ""
|
|
2642
2650
|
}, {
|
|
2643
2651
|
default: b(() => [
|
|
2644
|
-
|
|
2652
|
+
z(g((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
|
|
2645
2653
|
]),
|
|
2646
2654
|
_: 1
|
|
2647
|
-
})) :
|
|
2648
|
-
a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (n(), w(
|
|
2655
|
+
})) : B("", !0),
|
|
2656
|
+
a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (n(), w(ee, {
|
|
2649
2657
|
key: 1,
|
|
2650
2658
|
id: "upload-status-alert",
|
|
2651
2659
|
severity: t.value,
|
|
2652
2660
|
class: "mb-0 w-75 ms-auto"
|
|
2653
2661
|
}, {
|
|
2654
2662
|
default: b(() => [
|
|
2655
|
-
|
|
2663
|
+
z(g(l.value), 1)
|
|
2656
2664
|
]),
|
|
2657
2665
|
_: 1
|
|
2658
|
-
}, 8, ["severity"])) :
|
|
2666
|
+
}, 8, ["severity"])) : B("", !0)
|
|
2659
2667
|
]));
|
|
2660
2668
|
}
|
|
2661
2669
|
}), Kt = ["data-cy"], Wt = { class: "ms-3 d-flex flex-column" }, Zt = {
|
|
@@ -2669,7 +2677,7 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2669
2677
|
id: "file-size"
|
|
2670
2678
|
}, Xt = { class: "ms-auto my-auto d-flex" }, Qt = /* @__PURE__ */ $({
|
|
2671
2679
|
__name: "FileInfo",
|
|
2672
|
-
props: /* @__PURE__ */
|
|
2680
|
+
props: /* @__PURE__ */ G({
|
|
2673
2681
|
editableFileName: { type: Boolean },
|
|
2674
2682
|
acceptedFileTypes: {},
|
|
2675
2683
|
maxFileSize: {},
|
|
@@ -2684,9 +2692,9 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2684
2692
|
uploadStatus: { required: !0 },
|
|
2685
2693
|
uploadStatusModifiers: {}
|
|
2686
2694
|
}),
|
|
2687
|
-
emits: /* @__PURE__ */
|
|
2695
|
+
emits: /* @__PURE__ */ G(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
2688
2696
|
setup(e, { emit: t }) {
|
|
2689
|
-
const l =
|
|
2697
|
+
const l = L(e, "file"), a = L(e, "blobFileName"), o = L(e, "uploadStatus"), s = t, i = I(l.value.name), m = I(""), y = I(0), r = I(), _ = h(() => e.acceptedFileTypes.includes(l.value.type)), d = h(() => l.value.size <= e.maxFileSize), f = () => {
|
|
2690
2698
|
l.value = new File([l.value], i.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
2691
2699
|
}, x = async () => {
|
|
2692
2700
|
if (!_.value || !d.value) {
|
|
@@ -2694,33 +2702,33 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2694
2702
|
return;
|
|
2695
2703
|
}
|
|
2696
2704
|
o.value = "Preparing", r.value = new AbortController();
|
|
2697
|
-
const [
|
|
2698
|
-
if (!
|
|
2705
|
+
const [T, P] = await e.getFileUrlAction(l.value.name);
|
|
2706
|
+
if (!T) {
|
|
2699
2707
|
o.value = "Failed";
|
|
2700
2708
|
return;
|
|
2701
2709
|
}
|
|
2702
2710
|
try {
|
|
2703
2711
|
o.value = "Uploading";
|
|
2704
|
-
const
|
|
2712
|
+
const M = new de(T), N = {
|
|
2705
2713
|
abortSignal: r.value.signal,
|
|
2706
|
-
onProgress: (
|
|
2714
|
+
onProgress: (te) => y.value = te.loadedBytes,
|
|
2707
2715
|
tags: { temp: "true" }
|
|
2708
2716
|
};
|
|
2709
|
-
await
|
|
2710
|
-
} catch (
|
|
2711
|
-
if (
|
|
2717
|
+
await M.uploadData(l.value, N), m.value = T, o.value = "Uploaded", a.value = P;
|
|
2718
|
+
} catch (M) {
|
|
2719
|
+
if (M.name === "AbortError") {
|
|
2712
2720
|
o.value = "Aborted";
|
|
2713
2721
|
return;
|
|
2714
2722
|
}
|
|
2715
2723
|
o.value = "Failed";
|
|
2716
2724
|
}
|
|
2717
|
-
},
|
|
2725
|
+
}, V = async () => {
|
|
2718
2726
|
await Ot(o.value, m.value), s("deleted", l.value);
|
|
2719
2727
|
};
|
|
2720
2728
|
return ne(() => {
|
|
2721
2729
|
e.autoUploadToBlob && x();
|
|
2722
|
-
}), (
|
|
2723
|
-
const
|
|
2730
|
+
}), (T, P) => {
|
|
2731
|
+
const M = A;
|
|
2724
2732
|
return n(), p("div", {
|
|
2725
2733
|
class: "py-4 px-3 d-flex",
|
|
2726
2734
|
"data-cy": `file-info-${l.value.name}`
|
|
@@ -2744,12 +2752,12 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2744
2752
|
]),
|
|
2745
2753
|
c("div", Wt, [
|
|
2746
2754
|
c("div", null, [
|
|
2747
|
-
|
|
2755
|
+
T.editableFileName ? (n(), w(Ke, {
|
|
2748
2756
|
key: 0,
|
|
2749
2757
|
id: "edit-file-name",
|
|
2750
2758
|
modelValue: i.value,
|
|
2751
|
-
"onUpdate:modelValue":
|
|
2752
|
-
rules:
|
|
2759
|
+
"onUpdate:modelValue": P[0] || (P[0] = (N) => i.value = N),
|
|
2760
|
+
rules: T.customFileNameRules,
|
|
2753
2761
|
name: l.value.name,
|
|
2754
2762
|
"complete-action": f
|
|
2755
2763
|
}, null, 8, ["modelValue", "rules", "name"])) : (n(), p("span", Zt, g(l.value.name), 1))
|
|
@@ -2763,9 +2771,9 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2763
2771
|
"file-size": l.value.size,
|
|
2764
2772
|
"upload-status": o.value,
|
|
2765
2773
|
"bytes-uploaded": y.value,
|
|
2766
|
-
"max-file-size":
|
|
2774
|
+
"max-file-size": T.maxFileSize
|
|
2767
2775
|
}, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
|
|
2768
|
-
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (n(), w(
|
|
2776
|
+
o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (n(), w(M, {
|
|
2769
2777
|
key: 0,
|
|
2770
2778
|
link: "",
|
|
2771
2779
|
onClick: x
|
|
@@ -2776,20 +2784,20 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2776
2784
|
}, null, 8, ["icon"])
|
|
2777
2785
|
]),
|
|
2778
2786
|
_: 1
|
|
2779
|
-
})) :
|
|
2780
|
-
o.value === "Uploading" ? (n(), w(
|
|
2787
|
+
})) : B("", !0),
|
|
2788
|
+
o.value === "Uploading" ? (n(), w(M, {
|
|
2781
2789
|
key: 1,
|
|
2782
2790
|
link: "",
|
|
2783
|
-
onClick:
|
|
2791
|
+
onClick: P[1] || (P[1] = (N) => r.value.value.abort())
|
|
2784
2792
|
}, {
|
|
2785
2793
|
default: b(() => [
|
|
2786
2794
|
v(u(C), { icon: "bi:x-circle-fill" })
|
|
2787
2795
|
]),
|
|
2788
2796
|
_: 1
|
|
2789
|
-
})) : (n(), w(
|
|
2797
|
+
})) : (n(), w(M, {
|
|
2790
2798
|
key: 2,
|
|
2791
2799
|
link: "",
|
|
2792
|
-
onClick:
|
|
2800
|
+
onClick: V,
|
|
2793
2801
|
id: "delete-button"
|
|
2794
2802
|
}, {
|
|
2795
2803
|
default: b(() => [
|
|
@@ -2813,7 +2821,7 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2813
2821
|
}
|
|
2814
2822
|
}), la = { "data-cy": "file-uploader" }, oa = { key: 0 }, Ka = /* @__PURE__ */ $({
|
|
2815
2823
|
__name: "ForgeFileUploader",
|
|
2816
|
-
props: /* @__PURE__ */
|
|
2824
|
+
props: /* @__PURE__ */ G({
|
|
2817
2825
|
acceptedFileTypes: {},
|
|
2818
2826
|
maxFileSize: {},
|
|
2819
2827
|
getFileUrlAction: {},
|
|
@@ -2828,7 +2836,7 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2828
2836
|
}),
|
|
2829
2837
|
emits: ["update:modelValue"],
|
|
2830
2838
|
setup(e) {
|
|
2831
|
-
const t =
|
|
2839
|
+
const t = L(e, "modelValue"), l = e, a = (o) => {
|
|
2832
2840
|
t.value = t.value.filter((s) => s.file != o);
|
|
2833
2841
|
};
|
|
2834
2842
|
return (o, s) => (n(), p("div", la, [
|
|
@@ -2845,7 +2853,7 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2845
2853
|
"onUpdate:modelValue": s[1] || (s[1] = (i) => t.value = i)
|
|
2846
2854
|
}, {
|
|
2847
2855
|
default: b(() => [
|
|
2848
|
-
(n(!0), p(
|
|
2856
|
+
(n(!0), p(U, null, E(t.value, ({ file: i }, m) => (n(), p("span", null, [
|
|
2849
2857
|
(n(), w(Qt, S({
|
|
2850
2858
|
key: i.name,
|
|
2851
2859
|
class: m === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
|
|
@@ -2854,7 +2862,8 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2854
2862
|
"blob-file-name": t.value[m].blobFileName,
|
|
2855
2863
|
"onUpdate:blobFileName": (y) => t.value[m].blobFileName = y,
|
|
2856
2864
|
"upload-status": t.value[m].status,
|
|
2857
|
-
"onUpdate:uploadStatus": (y) => t.value[m].status = y
|
|
2865
|
+
"onUpdate:uploadStatus": (y) => t.value[m].status = y,
|
|
2866
|
+
ref_for: !0
|
|
2858
2867
|
}, l, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
|
|
2859
2868
|
]))), 256))
|
|
2860
2869
|
]),
|
|
@@ -2863,14 +2872,14 @@ const Nt = { class: "d-flex justify-content-between" }, Et = ["accept", "disable
|
|
|
2863
2872
|
v(aa, {
|
|
2864
2873
|
"max-file-size": l.maxFileSize
|
|
2865
2874
|
}, null, 8, ["max-file-size"])
|
|
2866
|
-
])) :
|
|
2875
|
+
])) : B("", !0)
|
|
2867
2876
|
]));
|
|
2868
2877
|
}
|
|
2869
2878
|
});
|
|
2870
2879
|
export {
|
|
2871
2880
|
za as Bootstrap_PT,
|
|
2872
2881
|
Ta as ForgeActionButton,
|
|
2873
|
-
|
|
2882
|
+
ee as ForgeAlert,
|
|
2874
2883
|
Ue as ForgeCheckbox,
|
|
2875
2884
|
Ra as ForgeChips,
|
|
2876
2885
|
ct as ForgeDatepicker,
|