ablok-components 0.3.68 → 0.3.70

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.
@@ -1,4 +1,16 @@
1
- declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').DefineComponent<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ 'item-overlay'?(_: {
5
+ item: any;
6
+ index: number;
7
+ }): any;
8
+ };
9
+ refs: {};
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js').DefineComponent<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
2
14
  modelValue: {
3
15
  type: {
4
16
  (arrayLength: number): String[];
@@ -172,4 +184,10 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
172
184
  maxImageWidth: number;
173
185
  useImageUpload: boolean;
174
186
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
187
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
175
188
  export default _default;
189
+ type __VLS_WithTemplateSlots<T, S> = T & {
190
+ new (): {
191
+ $slots: S;
192
+ };
193
+ };
@@ -1,21 +1,21 @@
1
- import { defineComponent as v, ref as x, computed as k, watch as w, nextTick as V, openBlock as s, createElementBlock as r, unref as S, createCommentVNode as z, createElementVNode as n, createVNode as d, withCtx as m, createBlock as f, withModifiers as $ } from "vue";
2
- import { uniqueId as p } from "../../../utilities/helpers.js";
3
- import { sanitizeHtml as F } from "../../../composables/useSanitize.js";
4
- import N from "../../templates/sortable-list/sortable-list.vue.js";
1
+ import { defineComponent as v, ref as x, computed as k, watch as w, nextTick as S, openBlock as s, createElementBlock as f, unref as V, createCommentVNode as $, createElementVNode as l, createVNode as d, withCtx as m, createBlock as p, withModifiers as z, renderSlot as F } from "vue";
2
+ import { uniqueId as h } from "../../../utilities/helpers.js";
3
+ import { sanitizeHtml as N } from "../../../composables/useSanitize.js";
4
+ import B from "../../templates/sortable-list/sortable-list.vue.js";
5
5
  /* empty css */
6
- import B from "../image-upload/image-upload.vue.js";
6
+ import I from "../image-upload/image-upload.vue.js";
7
7
  /* empty css */
8
- import I from "../file-upload/file-upload.vue.js";
8
+ import T from "../file-upload/file-upload.vue.js";
9
9
  /* empty css */
10
10
  import c from "../../atoms/svg-icon/svg-icon.vue.js";
11
11
  /* empty css */
12
- const T = { class: "upload-group" }, W = ["innerHTML"], C = { class: "upload-group__list" }, R = { class: "img-container" }, U = ["src"], H = ["onClick"], M = {
12
+ const W = { class: "upload-group" }, C = ["innerHTML"], R = { class: "upload-group__list" }, U = { class: "img-container" }, H = ["src"], M = { class: "item-overlay" }, P = ["onClick"], j = {
13
13
  role: "button",
14
14
  class: "img-thumbnail d-flex justify-content-center align-items-center"
15
- }, P = {
15
+ }, q = {
16
16
  role: "button",
17
17
  class: "img-thumbnail d-flex justify-content-center align-items-center"
18
- }, Y = /* @__PURE__ */ v({
18
+ }, _ = /* @__PURE__ */ v({
19
19
  __name: "upload-group",
20
20
  props: {
21
21
  modelValue: {
@@ -24,11 +24,11 @@ const T = { class: "upload-group" }, W = ["innerHTML"], C = { class: "upload-gro
24
24
  },
25
25
  name: {
26
26
  type: String,
27
- default: () => p()
27
+ default: () => h()
28
28
  },
29
29
  id: {
30
30
  type: String,
31
- default: () => p()
31
+ default: () => h()
32
32
  },
33
33
  label: {
34
34
  type: String,
@@ -81,51 +81,57 @@ const T = { class: "upload-group" }, W = ["innerHTML"], C = { class: "upload-gro
81
81
  aspectRatio: Number
82
82
  },
83
83
  emits: ["update:modelValue"],
84
- setup(e, { emit: h }) {
85
- const b = e, u = h, l = x(""), o = k({
84
+ setup(e, { emit: b }) {
85
+ const g = e, u = b, n = x(""), o = k({
86
86
  get() {
87
- return b.modelValue;
87
+ return g.modelValue;
88
88
  },
89
89
  set(t) {
90
90
  u("update:modelValue", t);
91
91
  }
92
92
  });
93
- function g(t) {
93
+ function y(t) {
94
94
  o.value.splice(t, 1), u("update:modelValue", o.value);
95
95
  }
96
- return w(l, async (t, a) => {
97
- t && a !== t && (u("update:modelValue", [...o.value, t]), await V(), l.value = "");
98
- }), (t, a) => (s(), r("div", T, [
99
- e.label ? (s(), r("label", {
96
+ return w(n, async (t, a) => {
97
+ t && a !== t && (u("update:modelValue", [...o.value, t]), await S(), n.value = "");
98
+ }), (t, a) => (s(), f("div", W, [
99
+ e.label ? (s(), f("label", {
100
100
  key: 0,
101
- innerHTML: S(F)(e.label)
102
- }, null, 8, W)) : z("", !0),
103
- n("div", C, [
104
- d(N, {
101
+ innerHTML: V(N)(e.label)
102
+ }, null, 8, C)) : $("", !0),
103
+ l("div", R, [
104
+ d(B, {
105
105
  modelValue: o.value,
106
106
  "onUpdate:modelValue": a[2] || (a[2] = (i) => o.value = i),
107
107
  vertical: !1,
108
108
  class: "mb-3"
109
109
  }, {
110
- "list-item": m(({ item: i, index: y }) => [
111
- n("div", R, [
112
- n("img", {
110
+ "list-item": m(({ item: i, index: r }) => [
111
+ l("div", U, [
112
+ l("img", {
113
113
  src: `${i}${e.previewWidth ? `?width=${e.previewWidth}` : ""}`,
114
114
  class: "img-thumbnail"
115
- }, null, 8, U),
116
- n("button", {
117
- onClick: $((j) => g(y), ["prevent"]),
118
- class: "btn btn--close"
119
- }, [
120
- d(c, { symbol: "x" })
121
- ], 8, H)
115
+ }, null, 8, H),
116
+ l("div", M, [
117
+ l("button", {
118
+ onClick: z((E) => y(r), ["prevent"]),
119
+ class: "btn btn--close"
120
+ }, [
121
+ d(c, { symbol: "x" })
122
+ ], 8, P),
123
+ F(t.$slots, "item-overlay", {
124
+ item: i,
125
+ index: r
126
+ })
127
+ ])
122
128
  ])
123
129
  ]),
124
130
  "list-append": m(() => [
125
- e.useImageUpload ? (s(), f(B, {
131
+ e.useImageUpload ? (s(), p(I, {
126
132
  key: 0,
127
- src: l.value,
128
- "onUpdate:src": a[0] || (a[0] = (i) => l.value = i),
133
+ src: n.value,
134
+ "onUpdate:src": a[0] || (a[0] = (i) => n.value = i),
129
135
  endpoint: e.endpoint,
130
136
  "custom-fetch": e.customFetch,
131
137
  "to-data-url": !e.endpoint,
@@ -139,15 +145,15 @@ const T = { class: "upload-group" }, W = ["innerHTML"], C = { class: "upload-gro
139
145
  "aspect-ratio": e.aspectRatio
140
146
  }, {
141
147
  button: m(() => [
142
- n("span", M, [
148
+ l("span", j, [
143
149
  d(c, { symbol: "plus" })
144
150
  ])
145
151
  ]),
146
152
  _: 1
147
- }, 8, ["src", "endpoint", "custom-fetch", "to-data-url", "auth-token", "disabled", "base-response-path", "accept", "max-file-size", "max-image-width", "aspect-ratio"])) : (s(), f(I, {
153
+ }, 8, ["src", "endpoint", "custom-fetch", "to-data-url", "auth-token", "disabled", "base-response-path", "accept", "max-file-size", "max-image-width", "aspect-ratio"])) : (s(), p(T, {
148
154
  key: 1,
149
- src: l.value,
150
- "onUpdate:src": a[1] || (a[1] = (i) => l.value = i),
155
+ src: n.value,
156
+ "onUpdate:src": a[1] || (a[1] = (i) => n.value = i),
151
157
  multiple: !1,
152
158
  endpoint: e.endpoint,
153
159
  "custom-fetch": e.customFetch,
@@ -160,19 +166,19 @@ const T = { class: "upload-group" }, W = ["innerHTML"], C = { class: "upload-gro
160
166
  "max-image-width": e.maxImageWidth
161
167
  }, {
162
168
  button: m(() => [
163
- n("span", P, [
169
+ l("span", q, [
164
170
  d(c, { symbol: "plus" })
165
171
  ])
166
172
  ]),
167
173
  _: 1
168
174
  }, 8, ["src", "endpoint", "custom-fetch", "to-data-url", "auth-token", "disabled", "base-response-path", "accept", "max-file-size", "max-image-width"]))
169
175
  ]),
170
- _: 1
176
+ _: 3
171
177
  }, 8, ["modelValue"])
172
178
  ])
173
179
  ]));
174
180
  }
175
181
  });
176
182
  export {
177
- Y as default
183
+ _ as default
178
184
  };
@@ -96,6 +96,29 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
96
96
  default: number;
97
97
  };
98
98
  aspectRatio: NumberConstructor;
99
+ showTypeDropdown: {
100
+ type: BooleanConstructor;
101
+ default: boolean;
102
+ };
103
+ typeOptions: {
104
+ type: {
105
+ (arrayLength: number): string[];
106
+ (...items: string[]): string[];
107
+ new (arrayLength: number): string[];
108
+ new (...items: string[]): string[];
109
+ isArray(arg: any): arg is any[];
110
+ readonly prototype: any[];
111
+ from<T>(arrayLike: ArrayLike<T>): T[];
112
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
113
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
114
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
115
+ of<T>(...items: T[]): T[];
116
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
117
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
118
+ readonly [Symbol.species]: ArrayConstructor;
119
+ };
120
+ default: () => string[];
121
+ };
99
122
  }>, {}, {}, {}, {}, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
100
123
  "update:modelValue": (...args: any[]) => void;
101
124
  }, string, import('../../../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
@@ -187,6 +210,29 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
187
210
  default: number;
188
211
  };
189
212
  aspectRatio: NumberConstructor;
213
+ showTypeDropdown: {
214
+ type: BooleanConstructor;
215
+ default: boolean;
216
+ };
217
+ typeOptions: {
218
+ type: {
219
+ (arrayLength: number): string[];
220
+ (...items: string[]): string[];
221
+ new (arrayLength: number): string[];
222
+ new (...items: string[]): string[];
223
+ isArray(arg: any): arg is any[];
224
+ readonly prototype: any[];
225
+ from<T>(arrayLike: ArrayLike<T>): T[];
226
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
227
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
228
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
229
+ of<T>(...items: T[]): T[];
230
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
231
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
232
+ readonly [Symbol.species]: ArrayConstructor;
233
+ };
234
+ default: () => string[];
235
+ };
190
236
  }>> & Readonly<{
191
237
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
192
238
  }>, {
@@ -206,5 +252,7 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
206
252
  maxImageWidth: number;
207
253
  useImageUpload: boolean;
208
254
  mediaTypeMap: Record<string, any>;
255
+ showTypeDropdown: boolean;
256
+ typeOptions: string[];
209
257
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
210
258
  export default _default;
@@ -1,9 +1,11 @@
1
- import { defineComponent as p, computed as r, openBlock as m, createElementBlock as u, unref as c, createCommentVNode as f, createVNode as g } from "vue";
2
- import { uniqueId as n } from "../../../utilities/helpers.js";
3
- import y from "../../molecules/upload-group/upload-group.vue.js";
1
+ import { defineComponent as y, computed as f, openBlock as n, createElementBlock as i, unref as g, createCommentVNode as h, createVNode as p, createSlots as b, withCtx as V } from "vue";
2
+ import { uniqueId as s } from "../../../utilities/helpers.js";
3
+ import v from "../../molecules/upload-group/upload-group.vue.js";
4
4
  /* empty css */
5
- import { sanitizeHtml as h } from "../../../composables/useSanitize.js";
6
- const b = { class: "asset-uploader" }, v = ["innerHTML"], k = /* @__PURE__ */ p({
5
+ import w from "../../molecules/input-dropdown/input-dropdown.vue.js";
6
+ /* empty css */
7
+ import { sanitizeHtml as S } from "../../../composables/useSanitize.js";
8
+ const T = { class: "asset-uploader" }, k = ["innerHTML"], F = /* @__PURE__ */ y({
7
9
  __name: "asset-uploader",
8
10
  props: {
9
11
  modelValue: {
@@ -12,11 +14,11 @@ const b = { class: "asset-uploader" }, v = ["innerHTML"], k = /* @__PURE__ */ p(
12
14
  },
13
15
  name: {
14
16
  type: String,
15
- default: () => n()
17
+ default: () => s()
16
18
  },
17
19
  id: {
18
20
  type: String,
19
- default: () => n()
21
+ default: () => s()
20
22
  },
21
23
  type: {
22
24
  type: String,
@@ -79,33 +81,51 @@ const b = { class: "asset-uploader" }, v = ["innerHTML"], k = /* @__PURE__ */ p(
79
81
  type: Number,
80
82
  default: 0
81
83
  },
82
- aspectRatio: Number
84
+ aspectRatio: Number,
85
+ showTypeDropdown: {
86
+ type: Boolean,
87
+ default: !1
88
+ },
89
+ typeOptions: {
90
+ type: Array,
91
+ default: () => [
92
+ "background",
93
+ "overlay",
94
+ "object"
95
+ ]
96
+ }
83
97
  },
84
98
  emits: ["update:modelValue"],
85
- setup(e, { emit: o }) {
86
- const t = e, s = o, i = r({
99
+ setup(e, { emit: r }) {
100
+ const a = e, m = r, u = f({
87
101
  get() {
88
- return t.modelValue.map((d) => d.src);
102
+ return a.modelValue.map((o) => o.src);
89
103
  },
90
- set(d) {
91
- s("update:modelValue", d.map(
92
- (a, l) => ({
93
- mediaType: t.modelValue[l] && t.modelValue[l].mediaType || a.includes("data:image") ? a.includes("data:image/svg") ? "Svg" : "Image" : t.mediaTypeMap[a.split(".")[1]],
94
- src: a,
95
- name: t.modelValue[l] && t.modelValue[l].name || `${t.name}-${l}`,
96
- ...t.type ? { type: t.type } : {}
97
- })
98
- ));
104
+ set(o) {
105
+ m("update:modelValue", o.map((l, t) => {
106
+ const d = a.showTypeDropdown && a.modelValue[t]?.type || a.type;
107
+ return {
108
+ mediaType: a.modelValue[t] && a.modelValue[t].mediaType || l.includes("data:image") ? l.includes("data:image/svg") ? "Svg" : "Image" : a.mediaTypeMap[l.split(".")[1]],
109
+ src: l,
110
+ name: a.modelValue[t] && a.modelValue[t].name || `${a.name}-${t}`,
111
+ ...d ? { type: d } : {}
112
+ };
113
+ }));
99
114
  }
100
115
  });
101
- return (d, a) => (m(), u("div", b, [
102
- e.label ? (m(), u("label", {
116
+ function c(o, l) {
117
+ m("update:modelValue", a.modelValue.map(
118
+ (t, d) => d === o ? { ...t, type: l } : t
119
+ ));
120
+ }
121
+ return (o, l) => (n(), i("div", T, [
122
+ e.label ? (n(), i("label", {
103
123
  key: 0,
104
- innerHTML: c(h)(e.label)
105
- }, null, 8, v)) : f("", !0),
106
- g(y, {
107
- modelValue: i.value,
108
- "onUpdate:modelValue": a[0] || (a[0] = (l) => i.value = l),
124
+ innerHTML: g(S)(e.label)
125
+ }, null, 8, k)) : h("", !0),
126
+ p(v, {
127
+ modelValue: u.value,
128
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => u.value = t),
109
129
  endpoint: e.endpoint,
110
130
  "custom-fetch": e.customFetch,
111
131
  "auth-token": e.authToken,
@@ -117,10 +137,24 @@ const b = { class: "asset-uploader" }, v = ["innerHTML"], k = /* @__PURE__ */ p(
117
137
  "use-image-upload": e.useImageUpload,
118
138
  "max-image-width": e.maxImageWidth,
119
139
  "aspect-ratio": e.aspectRatio
120
- }, null, 8, ["modelValue", "endpoint", "custom-fetch", "auth-token", "disabled", "preview-width", "base-response-path", "accept", "max-file-size", "use-image-upload", "max-image-width", "aspect-ratio"])
140
+ }, b({ _: 2 }, [
141
+ e.showTypeDropdown ? {
142
+ name: "item-overlay",
143
+ fn: V(({ index: t }) => [
144
+ p(w, {
145
+ name: `${e.name}-type-${t}`,
146
+ options: e.typeOptions,
147
+ "model-value": e.modelValue[t]?.type || null,
148
+ placeholder: "type",
149
+ "onUpdate:modelValue": (d) => c(t, d)
150
+ }, null, 8, ["name", "options", "model-value", "onUpdate:modelValue"])
151
+ ]),
152
+ key: "0"
153
+ } : void 0
154
+ ]), 1032, ["modelValue", "endpoint", "custom-fetch", "auth-token", "disabled", "preview-width", "base-response-path", "accept", "max-file-size", "use-image-upload", "max-image-width", "aspect-ratio"])
121
155
  ]));
122
156
  }
123
157
  });
124
158
  export {
125
- k as default
159
+ F as default
126
160
  };
@@ -0,0 +1,4 @@
1
+ import f from "./asset-uploader.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,257 @@
1
+ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').DefineComponent<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
2
+ modelValue: {
3
+ type: {
4
+ (arrayLength: number): any[];
5
+ (...items: any[]): any[];
6
+ new (arrayLength: number): any[];
7
+ new (...items: any[]): any[];
8
+ isArray(arg: any): arg is any[];
9
+ readonly prototype: any[];
10
+ from<T>(arrayLike: ArrayLike<T>): T[];
11
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
12
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
13
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
14
+ of<T>(...items: T[]): T[];
15
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
16
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
17
+ readonly [Symbol.species]: ArrayConstructor;
18
+ };
19
+ default: () => never[];
20
+ };
21
+ name: {
22
+ type: StringConstructor;
23
+ default: () => string;
24
+ };
25
+ id: {
26
+ type: StringConstructor;
27
+ default: () => string;
28
+ };
29
+ type: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ label: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ variant: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ disabled: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ required: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ accept: {
50
+ type: StringConstructor;
51
+ };
52
+ maxFileSize: {
53
+ type: NumberConstructor;
54
+ default: number;
55
+ };
56
+ endpoint: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ authToken: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ customFetch: null;
65
+ mediaTypeMap: {
66
+ type: ObjectConstructor;
67
+ default: () => {
68
+ svg: string;
69
+ png: string;
70
+ jpg: string;
71
+ jpeg: string;
72
+ webp: string;
73
+ mp4: string;
74
+ webm: string;
75
+ };
76
+ };
77
+ baseResponsePath: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ previewWidth: {
82
+ type: NumberConstructor;
83
+ default: number;
84
+ };
85
+ useImageUpload: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ maxImageWidth: {
90
+ type: NumberConstructor;
91
+ default: number;
92
+ };
93
+ aspectRatio: NumberConstructor;
94
+ showTypeDropdown: {
95
+ type: BooleanConstructor;
96
+ default: boolean;
97
+ };
98
+ typeOptions: {
99
+ type: {
100
+ (arrayLength: number): string[];
101
+ (...items: string[]): string[];
102
+ new (arrayLength: number): string[];
103
+ new (...items: string[]): string[];
104
+ isArray(arg: any): arg is any[];
105
+ readonly prototype: any[];
106
+ from<T>(arrayLike: ArrayLike<T>): T[];
107
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
108
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
109
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
110
+ of<T>(...items: T[]): T[];
111
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
112
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
113
+ readonly [Symbol.species]: ArrayConstructor;
114
+ };
115
+ default: () => string[];
116
+ };
117
+ }>, {}, {}, {}, {}, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
118
+ "update:modelValue": (...args: any[]) => void;
119
+ }, string, import('../../../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<import('../../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
120
+ modelValue: {
121
+ type: {
122
+ (arrayLength: number): any[];
123
+ (...items: any[]): any[];
124
+ new (arrayLength: number): any[];
125
+ new (...items: any[]): any[];
126
+ isArray(arg: any): arg is any[];
127
+ readonly prototype: any[];
128
+ from<T>(arrayLike: ArrayLike<T>): T[];
129
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
130
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
131
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
132
+ of<T>(...items: T[]): T[];
133
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
134
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
135
+ readonly [Symbol.species]: ArrayConstructor;
136
+ };
137
+ default: () => never[];
138
+ };
139
+ name: {
140
+ type: StringConstructor;
141
+ default: () => string;
142
+ };
143
+ id: {
144
+ type: StringConstructor;
145
+ default: () => string;
146
+ };
147
+ type: {
148
+ type: StringConstructor;
149
+ default: string;
150
+ };
151
+ label: {
152
+ type: StringConstructor;
153
+ default: string;
154
+ };
155
+ variant: {
156
+ type: StringConstructor;
157
+ default: string;
158
+ };
159
+ disabled: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
+ required: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ accept: {
168
+ type: StringConstructor;
169
+ };
170
+ maxFileSize: {
171
+ type: NumberConstructor;
172
+ default: number;
173
+ };
174
+ endpoint: {
175
+ type: StringConstructor;
176
+ default: string;
177
+ };
178
+ authToken: {
179
+ type: StringConstructor;
180
+ default: string;
181
+ };
182
+ customFetch: null;
183
+ mediaTypeMap: {
184
+ type: ObjectConstructor;
185
+ default: () => {
186
+ svg: string;
187
+ png: string;
188
+ jpg: string;
189
+ jpeg: string;
190
+ webp: string;
191
+ mp4: string;
192
+ webm: string;
193
+ };
194
+ };
195
+ baseResponsePath: {
196
+ type: StringConstructor;
197
+ default: string;
198
+ };
199
+ previewWidth: {
200
+ type: NumberConstructor;
201
+ default: number;
202
+ };
203
+ useImageUpload: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ maxImageWidth: {
208
+ type: NumberConstructor;
209
+ default: number;
210
+ };
211
+ aspectRatio: NumberConstructor;
212
+ showTypeDropdown: {
213
+ type: BooleanConstructor;
214
+ default: boolean;
215
+ };
216
+ typeOptions: {
217
+ type: {
218
+ (arrayLength: number): string[];
219
+ (...items: string[]): string[];
220
+ new (arrayLength: number): string[];
221
+ new (...items: string[]): string[];
222
+ isArray(arg: any): arg is any[];
223
+ readonly prototype: any[];
224
+ from<T>(arrayLike: ArrayLike<T>): T[];
225
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
226
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
227
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
228
+ of<T>(...items: T[]): T[];
229
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
230
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
231
+ readonly [Symbol.species]: ArrayConstructor;
232
+ };
233
+ default: () => string[];
234
+ };
235
+ }>> & Readonly<{
236
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
237
+ }>, {
238
+ type: string;
239
+ label: string;
240
+ required: boolean;
241
+ variant: string;
242
+ id: string;
243
+ modelValue: any[];
244
+ name: string;
245
+ disabled: boolean;
246
+ maxFileSize: number;
247
+ endpoint: string;
248
+ authToken: string;
249
+ baseResponsePath: string;
250
+ previewWidth: number;
251
+ maxImageWidth: number;
252
+ useImageUpload: boolean;
253
+ mediaTypeMap: Record<string, any>;
254
+ showTypeDropdown: boolean;
255
+ typeOptions: string[];
256
+ }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
257
+ export default _default;