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