ablok-components 0.3.69 → 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.
|
@@ -112,7 +112,7 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
|
|
|
112
112
|
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
113
113
|
readonly [Symbol.species]: ArrayConstructor;
|
|
114
114
|
};
|
|
115
|
-
default: () =>
|
|
115
|
+
default: () => string[];
|
|
116
116
|
};
|
|
117
117
|
}>, {}, {}, {}, {}, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
|
|
118
118
|
"update:modelValue": (...args: any[]) => void;
|
|
@@ -230,7 +230,7 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
|
|
|
230
230
|
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
231
231
|
readonly [Symbol.species]: ArrayConstructor;
|
|
232
232
|
};
|
|
233
|
-
default: () =>
|
|
233
|
+
default: () => string[];
|
|
234
234
|
};
|
|
235
235
|
}>> & Readonly<{
|
|
236
236
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as _, computed as ee, ref as te, watch as P, nextTick as ae, reactive as y, openBlock as c, createElementBlock as f, unref as oe, createCommentVNode as O, createElementVNode as m, createVNode as d, withCtx as p, createBlock as h, normalizeStyle as v, withModifiers as N, Fragment as
|
|
1
|
+
import { defineComponent as _, computed as ee, ref as te, watch as P, nextTick as ae, reactive as y, openBlock as c, createElementBlock as f, unref as oe, createCommentVNode as O, createElementVNode as m, createVNode as d, withCtx as p, createBlock as h, normalizeStyle as v, withModifiers as N, Fragment as j, createTextVNode as L, renderList as le } from "vue";
|
|
2
2
|
import { uniqueId as H } from "../../../utilities/helpers.js";
|
|
3
3
|
import { sanitizeHtml as ne } from "../../../composables/useSanitize.js";
|
|
4
4
|
import se from "../../templates/sortable-list/sortable-list.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
6
|
+
import A from "../../molecules/file-upload/file-upload.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
8
|
+
import R from "../../molecules/image-upload/image-upload.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import I from "../../molecules/input-dropdown/input-dropdown.vue.js";
|
|
11
11
|
/* empty css */
|
|
@@ -120,7 +120,7 @@ const ie = { class: "preset-uploader" }, me = ["innerHTML"], de = { class: "pres
|
|
|
120
120
|
},
|
|
121
121
|
typeOptions: {
|
|
122
122
|
type: Array,
|
|
123
|
-
default: () => []
|
|
123
|
+
default: () => ["background", "overlay", "object"]
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
emits: ["update:modelValue"],
|
|
@@ -270,7 +270,7 @@ const ie = { class: "preset-uploader" }, me = ["innerHTML"], de = { class: "pres
|
|
|
270
270
|
}, {
|
|
271
271
|
"list-item": p(({ item: n, index: a }) => [
|
|
272
272
|
E(n) ? (c(), f("div", he, [
|
|
273
|
-
(c(!0), f(
|
|
273
|
+
(c(!0), f(j, null, le(n.items, (l, s) => (c(), f("div", {
|
|
274
274
|
key: s,
|
|
275
275
|
class: "img-container",
|
|
276
276
|
style: v(e.showTypeDropdown ? { anchorName: `--${e.name}-si-${a}-${s}` } : {})
|
|
@@ -285,7 +285,7 @@ const ie = { class: "preset-uploader" }, me = ["innerHTML"], de = { class: "pres
|
|
|
285
285
|
}, [
|
|
286
286
|
d(r, { symbol: "x" })
|
|
287
287
|
], 8, ge),
|
|
288
|
-
e.showTypeDropdown ? (c(), f(
|
|
288
|
+
e.showTypeDropdown ? (c(), f(j, { key: 0 }, [
|
|
289
289
|
m("button", {
|
|
290
290
|
class: "btn btn--action",
|
|
291
291
|
popovertarget: `${e.name}-si-${a}-${s}`
|
|
@@ -318,7 +318,7 @@ const ie = { class: "preset-uploader" }, me = ["innerHTML"], de = { class: "pres
|
|
|
318
318
|
class: "img-container img-container--add",
|
|
319
319
|
style: v({ anchorName: `--${e.name}-ap-${a}` })
|
|
320
320
|
}, [
|
|
321
|
-
e.useImageUpload ? (c(), h(
|
|
321
|
+
e.useImageUpload ? (c(), h(R, {
|
|
322
322
|
key: 0,
|
|
323
323
|
src: "",
|
|
324
324
|
endpoint: e.endpoint,
|
|
@@ -340,7 +340,7 @@ const ie = { class: "preset-uploader" }, me = ["innerHTML"], de = { class: "pres
|
|
|
340
340
|
])
|
|
341
341
|
]),
|
|
342
342
|
_: 1
|
|
343
|
-
}, 8, ["endpoint", "custom-fetch", "to-data-url", "auth-token", "disabled", "base-response-path", "accept", "max-file-size", "max-image-width", "aspect-ratio", "onUpdate:src"])) : (c(), h(
|
|
343
|
+
}, 8, ["endpoint", "custom-fetch", "to-data-url", "auth-token", "disabled", "base-response-path", "accept", "max-file-size", "max-image-width", "aspect-ratio", "onUpdate:src"])) : (c(), h(A, {
|
|
344
344
|
key: 1,
|
|
345
345
|
src: "",
|
|
346
346
|
multiple: !1,
|
|
@@ -433,8 +433,8 @@ const ie = { class: "preset-uploader" }, me = ["innerHTML"], de = { class: "pres
|
|
|
433
433
|
"model-value": $[a] || null,
|
|
434
434
|
placeholder: "new layer type",
|
|
435
435
|
"onUpdate:modelValue": (l) => J(a, l)
|
|
436
|
-
}, null, 8, ["name", "options", "model-value", "onUpdate:modelValue"])) : (c(), f(
|
|
437
|
-
e.useImageUpload ? (c(), h(
|
|
436
|
+
}, null, 8, ["name", "options", "model-value", "onUpdate:modelValue"])) : (c(), f(j, { key: 1 }, [
|
|
437
|
+
e.useImageUpload ? (c(), h(R, {
|
|
438
438
|
key: 0,
|
|
439
439
|
src: "",
|
|
440
440
|
endpoint: e.endpoint,
|
|
@@ -457,7 +457,7 @@ const ie = { class: "preset-uploader" }, me = ["innerHTML"], de = { class: "pres
|
|
|
457
457
|
])
|
|
458
458
|
]),
|
|
459
459
|
_: 1
|
|
460
|
-
}, 8, ["endpoint", "custom-fetch", "to-data-url", "auth-token", "disabled", "base-response-path", "accept", "max-file-size", "max-image-width", "aspect-ratio", "onUpdate:src"])) : (c(), h(
|
|
460
|
+
}, 8, ["endpoint", "custom-fetch", "to-data-url", "auth-token", "disabled", "base-response-path", "accept", "max-file-size", "max-image-width", "aspect-ratio", "onUpdate:src"])) : (c(), h(A, {
|
|
461
461
|
key: 1,
|
|
462
462
|
src: "",
|
|
463
463
|
multiple: !1,
|
|
@@ -487,7 +487,7 @@ const ie = { class: "preset-uploader" }, me = ["innerHTML"], de = { class: "pres
|
|
|
487
487
|
], 4))
|
|
488
488
|
]),
|
|
489
489
|
"list-append": p(() => [
|
|
490
|
-
e.useImageUpload ? (c(), h(
|
|
490
|
+
e.useImageUpload ? (c(), h(R, {
|
|
491
491
|
key: 0,
|
|
492
492
|
src: g.value,
|
|
493
493
|
"onUpdate:src": o[0] || (o[0] = (n) => g.value = n),
|
|
@@ -509,7 +509,7 @@ const ie = { class: "preset-uploader" }, me = ["innerHTML"], de = { class: "pres
|
|
|
509
509
|
])
|
|
510
510
|
]),
|
|
511
511
|
_: 1
|
|
512
|
-
}, 8, ["src", "endpoint", "custom-fetch", "to-data-url", "auth-token", "disabled", "base-response-path", "accept", "max-file-size", "max-image-width", "aspect-ratio"])) : (c(), h(
|
|
512
|
+
}, 8, ["src", "endpoint", "custom-fetch", "to-data-url", "auth-token", "disabled", "base-response-path", "accept", "max-file-size", "max-image-width", "aspect-ratio"])) : (c(), h(A, {
|
|
513
513
|
key: 1,
|
|
514
514
|
src: g.value,
|
|
515
515
|
"onUpdate:src": o[1] || (o[1] = (n) => g.value = n),
|