ablok-components 0.3.93 → 0.3.96
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/ablok-components.css +1 -1
- package/dist/ablok-components.umd.js +2 -2
- package/dist/components/molecules/bulk-upload/bulk-upload.vue.d.ts +53 -0
- package/dist/components/molecules/bulk-upload/bulk-upload.vue.js +132 -99
- package/dist/components/molecules/file-upload/file-upload.vue.d.ts +15 -0
- package/dist/components/molecules/file-upload/file-upload.vue.js +39 -37
- package/package.json +1 -1
|
@@ -2,6 +2,19 @@ declare function __VLS_template(): {
|
|
|
2
2
|
attrs: Partial<{}>;
|
|
3
3
|
slots: {
|
|
4
4
|
'bulk-remove'?(_: {}): any;
|
|
5
|
+
'upload-progress'?(_: {
|
|
6
|
+
bind: {
|
|
7
|
+
item: {
|
|
8
|
+
type?: string;
|
|
9
|
+
src?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
size?: number;
|
|
12
|
+
lastModified?: number;
|
|
13
|
+
uploadProgress?: number;
|
|
14
|
+
};
|
|
15
|
+
index: number;
|
|
16
|
+
};
|
|
17
|
+
}): any;
|
|
5
18
|
button?(_: {}): any;
|
|
6
19
|
};
|
|
7
20
|
refs: {
|
|
@@ -12,6 +25,10 @@ declare function __VLS_template(): {
|
|
|
12
25
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
26
|
declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js').DefineComponent<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
|
14
27
|
storeId: StringConstructor;
|
|
28
|
+
id: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: () => string;
|
|
31
|
+
};
|
|
15
32
|
modelValue: {
|
|
16
33
|
type: {
|
|
17
34
|
(arrayLength: number): {
|
|
@@ -21,6 +38,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
21
38
|
name?: string;
|
|
22
39
|
size?: number;
|
|
23
40
|
lastModified?: number;
|
|
41
|
+
uploadProgress?: number;
|
|
24
42
|
}[];
|
|
25
43
|
(...items: {
|
|
26
44
|
type?: string;
|
|
@@ -29,6 +47,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
29
47
|
name?: string;
|
|
30
48
|
size?: number;
|
|
31
49
|
lastModified?: number;
|
|
50
|
+
uploadProgress?: number;
|
|
32
51
|
}[]): {
|
|
33
52
|
type?: string;
|
|
34
53
|
caption?: string;
|
|
@@ -36,6 +55,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
36
55
|
name?: string;
|
|
37
56
|
size?: number;
|
|
38
57
|
lastModified?: number;
|
|
58
|
+
uploadProgress?: number;
|
|
39
59
|
}[];
|
|
40
60
|
new (arrayLength: number): {
|
|
41
61
|
type?: string;
|
|
@@ -44,6 +64,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
44
64
|
name?: string;
|
|
45
65
|
size?: number;
|
|
46
66
|
lastModified?: number;
|
|
67
|
+
uploadProgress?: number;
|
|
47
68
|
}[];
|
|
48
69
|
new (...items: {
|
|
49
70
|
type?: string;
|
|
@@ -52,6 +73,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
52
73
|
name?: string;
|
|
53
74
|
size?: number;
|
|
54
75
|
lastModified?: number;
|
|
76
|
+
uploadProgress?: number;
|
|
55
77
|
}[]): {
|
|
56
78
|
type?: string;
|
|
57
79
|
caption?: string;
|
|
@@ -59,6 +81,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
59
81
|
name?: string;
|
|
60
82
|
size?: number;
|
|
61
83
|
lastModified?: number;
|
|
84
|
+
uploadProgress?: number;
|
|
62
85
|
}[];
|
|
63
86
|
isArray(arg: any): arg is any[];
|
|
64
87
|
readonly prototype: any[];
|
|
@@ -108,10 +131,22 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
108
131
|
type: BooleanConstructor;
|
|
109
132
|
default: boolean;
|
|
110
133
|
};
|
|
134
|
+
maxFiles: {
|
|
135
|
+
type: NumberConstructor;
|
|
136
|
+
default: number;
|
|
137
|
+
};
|
|
138
|
+
showProgress: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
111
142
|
}>, {}, {}, {}, {}, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
|
|
112
143
|
"update:modelValue": (...args: any[]) => void;
|
|
113
144
|
}, string, import('../../../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
|
114
145
|
storeId: StringConstructor;
|
|
146
|
+
id: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
default: () => string;
|
|
149
|
+
};
|
|
115
150
|
modelValue: {
|
|
116
151
|
type: {
|
|
117
152
|
(arrayLength: number): {
|
|
@@ -121,6 +156,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
121
156
|
name?: string;
|
|
122
157
|
size?: number;
|
|
123
158
|
lastModified?: number;
|
|
159
|
+
uploadProgress?: number;
|
|
124
160
|
}[];
|
|
125
161
|
(...items: {
|
|
126
162
|
type?: string;
|
|
@@ -129,6 +165,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
129
165
|
name?: string;
|
|
130
166
|
size?: number;
|
|
131
167
|
lastModified?: number;
|
|
168
|
+
uploadProgress?: number;
|
|
132
169
|
}[]): {
|
|
133
170
|
type?: string;
|
|
134
171
|
caption?: string;
|
|
@@ -136,6 +173,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
136
173
|
name?: string;
|
|
137
174
|
size?: number;
|
|
138
175
|
lastModified?: number;
|
|
176
|
+
uploadProgress?: number;
|
|
139
177
|
}[];
|
|
140
178
|
new (arrayLength: number): {
|
|
141
179
|
type?: string;
|
|
@@ -144,6 +182,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
144
182
|
name?: string;
|
|
145
183
|
size?: number;
|
|
146
184
|
lastModified?: number;
|
|
185
|
+
uploadProgress?: number;
|
|
147
186
|
}[];
|
|
148
187
|
new (...items: {
|
|
149
188
|
type?: string;
|
|
@@ -152,6 +191,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
152
191
|
name?: string;
|
|
153
192
|
size?: number;
|
|
154
193
|
lastModified?: number;
|
|
194
|
+
uploadProgress?: number;
|
|
155
195
|
}[]): {
|
|
156
196
|
type?: string;
|
|
157
197
|
caption?: string;
|
|
@@ -159,6 +199,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
159
199
|
name?: string;
|
|
160
200
|
size?: number;
|
|
161
201
|
lastModified?: number;
|
|
202
|
+
uploadProgress?: number;
|
|
162
203
|
}[];
|
|
163
204
|
isArray(arg: any): arg is any[];
|
|
164
205
|
readonly prototype: any[];
|
|
@@ -208,11 +249,20 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
208
249
|
type: BooleanConstructor;
|
|
209
250
|
default: boolean;
|
|
210
251
|
};
|
|
252
|
+
maxFiles: {
|
|
253
|
+
type: NumberConstructor;
|
|
254
|
+
default: number;
|
|
255
|
+
};
|
|
256
|
+
showProgress: {
|
|
257
|
+
type: BooleanConstructor;
|
|
258
|
+
default: boolean;
|
|
259
|
+
};
|
|
211
260
|
}>> & Readonly<{
|
|
212
261
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
213
262
|
}>, {
|
|
214
263
|
size: number;
|
|
215
264
|
title: string;
|
|
265
|
+
id: string;
|
|
216
266
|
modelValue: {
|
|
217
267
|
type?: string;
|
|
218
268
|
caption?: string;
|
|
@@ -220,6 +270,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
220
270
|
name?: string;
|
|
221
271
|
size?: number;
|
|
222
272
|
lastModified?: number;
|
|
273
|
+
uploadProgress?: number;
|
|
223
274
|
}[];
|
|
224
275
|
disabled: boolean;
|
|
225
276
|
hasHeader: boolean;
|
|
@@ -227,6 +278,8 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
227
278
|
hasCaptions: boolean;
|
|
228
279
|
editCaptions: boolean;
|
|
229
280
|
allowDuplicateFiles: boolean;
|
|
281
|
+
maxFiles: number;
|
|
282
|
+
showProgress: boolean;
|
|
230
283
|
}, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {
|
|
231
284
|
root: HTMLDivElement;
|
|
232
285
|
}, HTMLDivElement>;
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as I, computed as V, ref as k, resolveComponent as x, openBlock as n, createElementBlock as i, createElementVNode as l, unref as N, renderSlot as $, withModifiers as M, createVNode as f, createCommentVNode as u, toDisplayString as g, withCtx as F, normalizeClass as U, Fragment as A, withDirectives as E, vModelText as R, nextTick as K } from "vue";
|
|
2
|
+
import j from "../file-upload/file-upload.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { sanitizeHtml as
|
|
5
|
-
const
|
|
4
|
+
import { sanitizeHtml as q } from "../../../composables/useSanitize.js";
|
|
5
|
+
const G = { class: "container" }, J = { class: "row" }, O = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "col-12"
|
|
8
|
-
},
|
|
8
|
+
}, Q = { class: "py-4 px-3 d-flex align-items-center border border-bottom-0" }, W = ["innerHTML"], X = { class: "col-12" }, Y = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "grid place-items-center text-center text-muted py-5 border border-bottom-0"
|
|
11
|
-
},
|
|
11
|
+
}, Z = { class: "m-0" }, ee = { class: "preview-item border-bottom p-3" }, te = { class: "d-flex gap-3" }, le = { class: "col-2" }, oe = { class: "col d-flex flex-column" }, se = { class: "file-meta text-muted small mb-2" }, ae = { class: "fw-semibold" }, ne = { key: 0 }, ie = { key: 1 }, de = ["onUpdate:modelValue", "id"], re = ["innerHTML"], ue = {
|
|
12
|
+
key: 2,
|
|
13
|
+
class: "upload-progress mt-3 mb-0"
|
|
14
|
+
}, ce = ["value"], pe = { class: "col-auto d-flex flex-column gap-2" }, me = ["onClick"], fe = ["onClick"], ve = { class: "file-upload__label" }, be = { class: "d-flex align-items-end p-3" }, he = ["for"], ge = ["innerHTML"], Me = /* @__PURE__ */ I({
|
|
12
15
|
__name: "bulk-upload",
|
|
13
16
|
props: {
|
|
14
17
|
storeId: String,
|
|
18
|
+
id: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: () => `bulk-upload-${Math.random().toString(36).substring(2, 9)}`
|
|
21
|
+
},
|
|
15
22
|
modelValue: {
|
|
16
23
|
type: Array,
|
|
17
24
|
default: []
|
|
@@ -50,89 +57,99 @@ const K = { class: "container" }, j = { class: "row" }, q = {
|
|
|
50
57
|
allowDuplicateFiles: {
|
|
51
58
|
type: Boolean,
|
|
52
59
|
default: !1
|
|
60
|
+
},
|
|
61
|
+
maxFiles: {
|
|
62
|
+
type: Number,
|
|
63
|
+
default: 0
|
|
64
|
+
},
|
|
65
|
+
showProgress: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: !0
|
|
53
68
|
}
|
|
54
69
|
},
|
|
55
70
|
emits: ["update:modelValue"],
|
|
56
|
-
setup(
|
|
57
|
-
const
|
|
71
|
+
setup(d, { emit: z }) {
|
|
72
|
+
const r = d, w = z, C = (e) => `${e.name ?? ""}|${e.size ?? 0}|${e.lastModified ?? 0}|${e.type ?? ""}`, c = V({
|
|
58
73
|
get: () => {
|
|
59
|
-
const e =
|
|
60
|
-
return
|
|
74
|
+
const e = r.modelValue || [];
|
|
75
|
+
return b.value = e.map((t) => t.caption || ""), e.map((t) => ({
|
|
61
76
|
type: t.type,
|
|
62
77
|
src: t.src,
|
|
63
78
|
...t.name ? { name: t.name } : {},
|
|
64
79
|
...t.size ? { size: t.size } : {},
|
|
65
|
-
...t.lastModified ? { lastModified: t.lastModified } : {}
|
|
80
|
+
...t.lastModified ? { lastModified: t.lastModified } : {},
|
|
81
|
+
...t.uploadProgress ? { uploadProgress: t.uploadProgress } : {}
|
|
66
82
|
}));
|
|
67
83
|
},
|
|
68
84
|
set: (e) => {
|
|
69
|
-
const t =
|
|
70
|
-
const
|
|
71
|
-
return !t.some((
|
|
72
|
-
});
|
|
73
|
-
if (!
|
|
85
|
+
const t = c.value || [], a = Array.isArray(e) ? e : [], p = r.allowDuplicateFiles ? a : a.filter((y) => {
|
|
86
|
+
const _ = C(y);
|
|
87
|
+
return !t.some((P) => C(P) === _);
|
|
88
|
+
}), o = r.maxFiles > 0 ? Math.max(0, r.maxFiles - t.length) : void 0, s = typeof o == "number" ? p.slice(0, o) : p;
|
|
89
|
+
if (!r.allowDuplicateFiles && a.length > 0 && s.length === 0)
|
|
74
90
|
return;
|
|
75
|
-
const
|
|
76
|
-
h(
|
|
91
|
+
const m = s.length <= t.length && s.every((y) => t.some((_) => _.src === y.src));
|
|
92
|
+
h(m ? s : [...t, ...s]);
|
|
77
93
|
}
|
|
78
|
-
}),
|
|
79
|
-
function
|
|
80
|
-
const t = [...
|
|
81
|
-
t.splice(e, 1),
|
|
94
|
+
}), B = k(null), v = k({}), b = k({}), H = V(() => r.disabled || r.maxFiles > 0 && c.value.length >= r.maxFiles);
|
|
95
|
+
function S(e) {
|
|
96
|
+
const t = [...r.modelValue || []];
|
|
97
|
+
t.splice(e, 1), w("update:modelValue", t);
|
|
82
98
|
}
|
|
83
|
-
async function
|
|
84
|
-
|
|
99
|
+
async function D(e) {
|
|
100
|
+
v.value[e] = !v.value[e], v.value[e] || h(), await K(), B.value?.querySelector(`#caption-${e}`)?.focus();
|
|
85
101
|
}
|
|
86
|
-
function
|
|
102
|
+
function T(e) {
|
|
87
103
|
if (e == null) return "";
|
|
88
104
|
const t = ["B", "KB", "MB", "GB", "TB"];
|
|
89
|
-
let
|
|
90
|
-
for (;
|
|
91
|
-
|
|
92
|
-
return `${
|
|
105
|
+
let a = e, p = t.shift();
|
|
106
|
+
for (; a >= 1024 && t.length; )
|
|
107
|
+
a /= 1024, p = t.shift();
|
|
108
|
+
return `${a.toFixed(1)} ${p}`;
|
|
93
109
|
}
|
|
94
|
-
function
|
|
110
|
+
function L(e) {
|
|
95
111
|
return e ? new Date(e).toLocaleDateString() : "";
|
|
96
112
|
}
|
|
97
113
|
function h(e) {
|
|
98
|
-
|
|
114
|
+
w("update:modelValue", (e || c.value).map((t, a) => ({
|
|
99
115
|
...t,
|
|
100
|
-
caption:
|
|
116
|
+
caption: b.value[a] || ""
|
|
101
117
|
})));
|
|
102
118
|
}
|
|
103
119
|
return (e, t) => {
|
|
104
|
-
const
|
|
105
|
-
return
|
|
120
|
+
const a = x("svg-icon"), p = x("base-image");
|
|
121
|
+
return n(), i("div", {
|
|
106
122
|
class: "bulk-upload",
|
|
107
123
|
ref_key: "root",
|
|
108
|
-
ref:
|
|
124
|
+
ref: B
|
|
109
125
|
}, [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
126
|
+
l("div", G, [
|
|
127
|
+
l("div", J, [
|
|
128
|
+
d.hasHeader ? (n(), i("div", O, [
|
|
129
|
+
l("div", Q, [
|
|
130
|
+
l("p", {
|
|
115
131
|
class: "fw-bold m-0",
|
|
116
|
-
innerHTML:
|
|
117
|
-
}, null, 8,
|
|
118
|
-
|
|
119
|
-
|
|
132
|
+
innerHTML: N(q)(d.title || e.$t("fileInput.bulkUploadHeadline"))
|
|
133
|
+
}, null, 8, W),
|
|
134
|
+
$(e.$slots, "bulk-remove", {}, () => [
|
|
135
|
+
d.hasBulkRemove ? (n(), i("button", {
|
|
120
136
|
key: 0,
|
|
121
|
-
onClick: t[0] || (t[0] =
|
|
137
|
+
onClick: t[0] || (t[0] = M((o) => c.value = [], ["prevent"])),
|
|
122
138
|
class: "btn btn--close ms-auto p-0"
|
|
123
139
|
}, [
|
|
124
|
-
|
|
125
|
-
])) :
|
|
140
|
+
f(a, { symbol: "x" })
|
|
141
|
+
])) : u("", !0)
|
|
126
142
|
])
|
|
127
143
|
])
|
|
128
|
-
])) :
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
144
|
+
])) : u("", !0),
|
|
145
|
+
l("div", X, [
|
|
146
|
+
c.value.length ? u("", !0) : (n(), i("div", Y, [
|
|
147
|
+
l("p", Z, g(e.$t("fileInput.noFilesSelected")), 1)
|
|
132
148
|
])),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
149
|
+
f(j, {
|
|
150
|
+
id: `${d.id}-file-upload`,
|
|
151
|
+
modelValue: c.value,
|
|
152
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => c.value = o),
|
|
136
153
|
multiple: !0,
|
|
137
154
|
accept: "image/*",
|
|
138
155
|
"drop-files": !0,
|
|
@@ -140,77 +157,93 @@ const K = { class: "container" }, j = { class: "row" }, q = {
|
|
|
140
157
|
"local-url-format": "objectUrl",
|
|
141
158
|
class: "d-flex flex-column border"
|
|
142
159
|
}, {
|
|
143
|
-
"preview-item":
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
p
|
|
148
|
-
src:
|
|
160
|
+
"preview-item": F(({ bind: { item: o, index: s } }) => [
|
|
161
|
+
l("div", ee, [
|
|
162
|
+
l("div", te, [
|
|
163
|
+
l("div", le, [
|
|
164
|
+
f(p, {
|
|
165
|
+
src: o.src,
|
|
149
166
|
alt: "",
|
|
150
167
|
class: "img-thumbnail"
|
|
151
168
|
}, null, 8, ["src"])
|
|
152
169
|
]),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
170
|
+
l("div", oe, [
|
|
171
|
+
l("div", se, [
|
|
172
|
+
l("div", ae, g(o.name || e.$t("fileInput.unknownFile")), 1),
|
|
173
|
+
l("div", null, [
|
|
174
|
+
o.size ? (n(), i("span", ne, g(T(o.size)), 1)) : u("", !0),
|
|
175
|
+
o.lastModified ? (n(), i("span", ie, " · " + g(L(o.lastModified)), 1)) : u("", !0)
|
|
159
176
|
])
|
|
160
177
|
]),
|
|
161
|
-
|
|
162
|
-
|
|
178
|
+
d.hasCaptions ? (n(), i(A, { key: 0 }, [
|
|
179
|
+
v.value[s] && d.editCaptions ? E((n(), i("textarea", {
|
|
163
180
|
key: 0,
|
|
164
|
-
"onUpdate:modelValue": (
|
|
181
|
+
"onUpdate:modelValue": (m) => b.value[s] = m,
|
|
165
182
|
id: `caption-${s}`,
|
|
166
183
|
class: "form-control rounded-0 h-100",
|
|
167
|
-
onChangeCapture: t[1] || (t[1] = (
|
|
168
|
-
}, null, 40,
|
|
169
|
-
[
|
|
170
|
-
]) : (
|
|
184
|
+
onChangeCapture: t[1] || (t[1] = (m) => h())
|
|
185
|
+
}, null, 40, de)), [
|
|
186
|
+
[R, b.value[s]]
|
|
187
|
+
]) : (n(), i("p", {
|
|
171
188
|
key: 1,
|
|
172
189
|
class: "m-0",
|
|
173
|
-
innerHTML:
|
|
174
|
-
}, null, 8,
|
|
175
|
-
|
|
190
|
+
innerHTML: b.value[s] || `<small>${e.$t("fileInput.noCaption")}</small>`
|
|
191
|
+
}, null, 8, re)),
|
|
192
|
+
d.showProgress && o.uploadProgress ? (n(), i("div", ue, [
|
|
193
|
+
$(e.$slots, "upload-progress", {
|
|
194
|
+
bind: { item: o, index: s }
|
|
195
|
+
}, () => [
|
|
196
|
+
l("progress", {
|
|
197
|
+
value: o.uploadProgress,
|
|
198
|
+
max: "100",
|
|
199
|
+
class: "w-100"
|
|
200
|
+
}, null, 8, ce)
|
|
201
|
+
])
|
|
202
|
+
])) : u("", !0)
|
|
203
|
+
], 64)) : u("", !0)
|
|
176
204
|
]),
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
onClick:
|
|
205
|
+
l("div", pe, [
|
|
206
|
+
l("button", {
|
|
207
|
+
onClick: M((m) => S(s), ["prevent"]),
|
|
180
208
|
class: "btn btn--close"
|
|
181
209
|
}, [
|
|
182
|
-
|
|
183
|
-
], 8,
|
|
184
|
-
|
|
210
|
+
f(a, { symbol: "x" })
|
|
211
|
+
], 8, me),
|
|
212
|
+
d.editCaptions ? (n(), i("button", {
|
|
185
213
|
key: 0,
|
|
186
|
-
onClick:
|
|
214
|
+
onClick: M((m) => D(s), ["prevent"]),
|
|
187
215
|
class: "btn btn--close"
|
|
188
216
|
}, [
|
|
189
|
-
|
|
190
|
-
symbol:
|
|
217
|
+
f(a, {
|
|
218
|
+
symbol: v.value[s] ? "check" : "edit-3"
|
|
191
219
|
}, null, 8, ["symbol"])
|
|
192
|
-
], 8,
|
|
220
|
+
], 8, fe)) : u("", !0)
|
|
193
221
|
])
|
|
194
222
|
])
|
|
195
223
|
])
|
|
196
224
|
]),
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
225
|
+
label: F(() => [
|
|
226
|
+
$(e.$slots, "button", {}, () => [
|
|
227
|
+
l("span", ve, [
|
|
228
|
+
l("span", be, [
|
|
229
|
+
l("label", {
|
|
230
|
+
for: `${d.id}-file-upload`,
|
|
231
|
+
class: U(["btn btn-primary btn-sm ms-auto d-flex align-items-center gap-2", { disabled: H.value }])
|
|
232
|
+
}, [
|
|
233
|
+
f(a, {
|
|
234
|
+
symbol: "upload",
|
|
235
|
+
size: "small"
|
|
236
|
+
}),
|
|
237
|
+
l("span", {
|
|
238
|
+
innerHTML: e.$t("common.selectFile")
|
|
239
|
+
}, null, 8, ge)
|
|
240
|
+
], 10, he)
|
|
208
241
|
])
|
|
209
242
|
])
|
|
210
243
|
])
|
|
211
244
|
]),
|
|
212
245
|
_: 3
|
|
213
|
-
}, 8, ["modelValue"])
|
|
246
|
+
}, 8, ["id", "modelValue"])
|
|
214
247
|
])
|
|
215
248
|
])
|
|
216
249
|
])
|
|
@@ -219,5 +252,5 @@ const K = { class: "container" }, j = { class: "row" }, q = {
|
|
|
219
252
|
}
|
|
220
253
|
});
|
|
221
254
|
export {
|
|
222
|
-
|
|
255
|
+
Me as default
|
|
223
256
|
};
|
|
@@ -12,6 +12,7 @@ declare function __VLS_template(): {
|
|
|
12
12
|
name?: string;
|
|
13
13
|
size?: number;
|
|
14
14
|
lastModified?: number;
|
|
15
|
+
uploadProgress?: number;
|
|
15
16
|
};
|
|
16
17
|
index: number;
|
|
17
18
|
};
|
|
@@ -19,6 +20,7 @@ declare function __VLS_template(): {
|
|
|
19
20
|
removeFile: typeof removeFile;
|
|
20
21
|
};
|
|
21
22
|
}): any;
|
|
23
|
+
label?(_: {}): any;
|
|
22
24
|
button?(_: {}): any;
|
|
23
25
|
};
|
|
24
26
|
refs: {
|
|
@@ -36,6 +38,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
36
38
|
name?: string;
|
|
37
39
|
size?: number;
|
|
38
40
|
lastModified?: number;
|
|
41
|
+
uploadProgress?: number;
|
|
39
42
|
}[];
|
|
40
43
|
(...items: {
|
|
41
44
|
type?: string;
|
|
@@ -43,12 +46,14 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
43
46
|
name?: string;
|
|
44
47
|
size?: number;
|
|
45
48
|
lastModified?: number;
|
|
49
|
+
uploadProgress?: number;
|
|
46
50
|
}[]): {
|
|
47
51
|
type?: string;
|
|
48
52
|
src?: string;
|
|
49
53
|
name?: string;
|
|
50
54
|
size?: number;
|
|
51
55
|
lastModified?: number;
|
|
56
|
+
uploadProgress?: number;
|
|
52
57
|
}[];
|
|
53
58
|
new (arrayLength: number): {
|
|
54
59
|
type?: string;
|
|
@@ -56,6 +61,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
56
61
|
name?: string;
|
|
57
62
|
size?: number;
|
|
58
63
|
lastModified?: number;
|
|
64
|
+
uploadProgress?: number;
|
|
59
65
|
}[];
|
|
60
66
|
new (...items: {
|
|
61
67
|
type?: string;
|
|
@@ -63,12 +69,14 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
63
69
|
name?: string;
|
|
64
70
|
size?: number;
|
|
65
71
|
lastModified?: number;
|
|
72
|
+
uploadProgress?: number;
|
|
66
73
|
}[]): {
|
|
67
74
|
type?: string;
|
|
68
75
|
src?: string;
|
|
69
76
|
name?: string;
|
|
70
77
|
size?: number;
|
|
71
78
|
lastModified?: number;
|
|
79
|
+
uploadProgress?: number;
|
|
72
80
|
}[];
|
|
73
81
|
isArray(arg: any): arg is any[];
|
|
74
82
|
readonly prototype: any[];
|
|
@@ -178,6 +186,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
178
186
|
name?: string;
|
|
179
187
|
size?: number;
|
|
180
188
|
lastModified?: number;
|
|
189
|
+
uploadProgress?: number;
|
|
181
190
|
}[];
|
|
182
191
|
(...items: {
|
|
183
192
|
type?: string;
|
|
@@ -185,12 +194,14 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
185
194
|
name?: string;
|
|
186
195
|
size?: number;
|
|
187
196
|
lastModified?: number;
|
|
197
|
+
uploadProgress?: number;
|
|
188
198
|
}[]): {
|
|
189
199
|
type?: string;
|
|
190
200
|
src?: string;
|
|
191
201
|
name?: string;
|
|
192
202
|
size?: number;
|
|
193
203
|
lastModified?: number;
|
|
204
|
+
uploadProgress?: number;
|
|
194
205
|
}[];
|
|
195
206
|
new (arrayLength: number): {
|
|
196
207
|
type?: string;
|
|
@@ -198,6 +209,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
198
209
|
name?: string;
|
|
199
210
|
size?: number;
|
|
200
211
|
lastModified?: number;
|
|
212
|
+
uploadProgress?: number;
|
|
201
213
|
}[];
|
|
202
214
|
new (...items: {
|
|
203
215
|
type?: string;
|
|
@@ -205,12 +217,14 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
205
217
|
name?: string;
|
|
206
218
|
size?: number;
|
|
207
219
|
lastModified?: number;
|
|
220
|
+
uploadProgress?: number;
|
|
208
221
|
}[]): {
|
|
209
222
|
type?: string;
|
|
210
223
|
src?: string;
|
|
211
224
|
name?: string;
|
|
212
225
|
size?: number;
|
|
213
226
|
lastModified?: number;
|
|
227
|
+
uploadProgress?: number;
|
|
214
228
|
}[];
|
|
215
229
|
isArray(arg: any): arg is any[];
|
|
216
230
|
readonly prototype: any[];
|
|
@@ -323,6 +337,7 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
|
|
|
323
337
|
name?: string;
|
|
324
338
|
size?: number;
|
|
325
339
|
lastModified?: number;
|
|
340
|
+
uploadProgress?: number;
|
|
326
341
|
}[];
|
|
327
342
|
name: string;
|
|
328
343
|
placeholder: string;
|