@ebl-vue/editor-render 2.31.25 → 2.31.28
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/index.d.ts +1 -0
- package/dist/index.mjs +120 -101
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/list.css +184 -164
- package/dist/styles/quote.css +1 -1
- package/package.json +1 -1
- package/src/EditorRender.vue +0 -43
- package/src/components/List.vue +0 -40
- package/src/components/alert.vue +0 -21
- package/src/components/code.vue +0 -114
- package/src/components/delimiter.vue +0 -19
- package/src/components/h1.vue +0 -19
- package/src/components/h2.vue +0 -19
- package/src/components/h3.vue +0 -19
- package/src/components/h4.vue +0 -19
- package/src/components/h5.vue +0 -19
- package/src/components/h6.vue +0 -19
- package/src/components/image.vue +0 -31
- package/src/components/index.ts +0 -54
- package/src/components/paragraph.vue +0 -19
- package/src/components/quote.vue +0 -21
- package/src/components/table.vue +0 -46
- package/src/constants/index.ts +0 -1
- package/src/i18n/zh-cn.ts +0 -158
- package/src/icons/index.ts +0 -93
- package/src/index.ts +0 -12
- package/src/installer.ts +0 -21
- package/src/styles/alert.css +0 -151
- package/src/styles/block-alignment.css +0 -9
- package/src/styles/code.css +0 -214
- package/src/styles/color.css +0 -27
- package/src/styles/delimiter.css +0 -14
- package/src/styles/header.css +0 -20
- package/src/styles/image.css +0 -156
- package/src/styles/indent.css +0 -86
- package/src/styles/index.css +0 -68
- package/src/styles/inline-code.css +0 -11
- package/src/styles/list.css +0 -202
- package/src/styles/marker.css +0 -4
- package/src/styles/outline.css +0 -52
- package/src/styles/paragraph.css +0 -23
- package/src/styles/quote.css +0 -26
- package/src/styles/table.css +0 -388
- package/src/styles/underline.css +0 -3
- package/src/types.ts +0 -5
- package/src/utils/index.ts +0 -15
- package/src/utils/install.ts +0 -19
- package/tsconfig.json +0 -37
- package/vite.config.ts +0 -80
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,129 +1,148 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { codeToHtml as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
l.component(a.name, a);
|
|
7
|
-
}, e)
|
|
8
|
-
for (const [l, a] of Object.entries(e))
|
|
9
|
-
t[l] = a;
|
|
10
|
-
return t;
|
|
11
|
-
}, Z = { class: "ebl-editor-render" }, J = ["data-id"], Q = d({ name: "EblEditorRender", inheritAttrs: !1, __name: "EditorRender", props: { data: { default: () => ({ blocks: [] }) }, locale: { default: {} } }, setup: (t) => (e, l) => (s(), i("div", Z, [(s(!0), i(k, null, b(e.data.blocks, (a) => (s(), i("div", { class: "ce-block", "data-id": a.id }, [n("div", { class: f(`ce-tune-alignment--${a.tunes.blockAlignment.alignment}`) }, [n("div", { style: _(`padding-left: ${48 * a.tunes.indent.indentLevel}px;`) }, [(s(), N(D("ebl" + a.type), { block: a }, null, 8, ["block"]))], 4)], 2)], 8, J))), 256)), l[0] || (l[0] = n("div", { class: "ebl-outline" }, [n("div", { style: { height: "5000px" } }, " dd ")], -1))])) }), U = ["innerHTML"], X = d({ name: "eblparagraph", inheritAttrs: !1, __name: "paragraph", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
1
|
+
import { defineComponent as c, createElementBlock as s, openBlock as l, createElementVNode as o, Fragment as k, renderList as _, normalizeClass as y, normalizeStyle as f, createBlock as F, resolveDynamicComponent as K, useModel as u, isRef as P, shallowRef as q, ref as L, watchEffect as Z, computed as B, unref as I, toDisplayString as J, createStaticVNode as Q, createCommentVNode as H } from "vue";
|
|
2
|
+
import { codeToHtml as U } from "shiki";
|
|
3
|
+
const W = Symbol("INSTALLED_KEY"), X = (t, e) => (t.install = (a) => {
|
|
4
|
+
for (const i of [t, ...Object.values({})]) a.component(i.name, i);
|
|
5
|
+
}, t), ee = { class: "ebl-editor-render" }, te = ["data-id"], ae = c({ name: "EblEditorRender", inheritAttrs: !1, __name: "EditorRender", props: { data: { default: () => ({ blocks: [] }) } }, setup: (t) => (e, a) => (l(), s("div", ee, [(l(!0), s(k, null, _(e.data.blocks, (i) => (l(), s("div", { class: "ce-block", "data-id": i.id }, [o("div", { class: y(`ce-tune-alignment--${i.tunes.blockAlignment.alignment}`) }, [o("div", { style: f(`padding-left: ${48 * i.tunes.indent.indentLevel}px;`) }, [(l(), F(K("ebl" + i.type), { block: i }, null, 8, ["block"]))], 4)], 2)], 8, te))), 256)), a[0] || (a[0] = o("div", { class: "ebl-outline" }, [o("div", { style: { height: "5000px" } }, " dd ")], -1))])) }), le = ["innerHTML"], se = c({ name: "eblparagraph", inheritAttrs: !1, __name: "paragraph", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
12
6
|
const e = u(t, "block");
|
|
13
|
-
return (
|
|
14
|
-
} }),
|
|
7
|
+
return (a, i) => (l(), s("div", { class: "ce-paragraph cdx-block", innerHTML: e.value.data.text }, null, 8, le));
|
|
8
|
+
} }), ie = ["innerHTML"], ne = c({ name: "eblh1", inheritAttrs: !1, __name: "h1", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
15
9
|
const e = u(t, "block");
|
|
16
|
-
return (
|
|
17
|
-
} }),
|
|
10
|
+
return (a, i) => (l(), s("h1", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ie));
|
|
11
|
+
} }), oe = ["innerHTML"], re = c({ name: "eblh2", inheritAttrs: !1, __name: "h2", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
18
12
|
const e = u(t, "block");
|
|
19
|
-
return (
|
|
20
|
-
} }),
|
|
13
|
+
return (a, i) => (l(), s("h2", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, oe));
|
|
14
|
+
} }), de = ["innerHTML"], ce = c({ name: "eblh3", inheritAttrs: !1, __name: "h3", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
21
15
|
const e = u(t, "block");
|
|
22
|
-
return (
|
|
23
|
-
} }),
|
|
16
|
+
return (a, i) => (l(), s("h3", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, de));
|
|
17
|
+
} }), ue = ["innerHTML"], pe = c({ name: "eblh4", inheritAttrs: !1, __name: "h4", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
24
18
|
const e = u(t, "block");
|
|
25
|
-
return (
|
|
26
|
-
} }),
|
|
19
|
+
return (a, i) => (l(), s("h4", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ue));
|
|
20
|
+
} }), he = ["innerHTML"], me = c({ name: "eblh5", inheritAttrs: !1, __name: "h5", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
27
21
|
const e = u(t, "block");
|
|
28
|
-
return (
|
|
29
|
-
} }),
|
|
22
|
+
return (a, i) => (l(), s("h5", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, he));
|
|
23
|
+
} }), ve = ["innerHTML"], ke = c({ name: "eblh6", inheritAttrs: !1, __name: "h6", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
30
24
|
const e = u(t, "block");
|
|
31
|
-
return (
|
|
32
|
-
} }),
|
|
25
|
+
return (a, i) => (l(), s("h6", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ve));
|
|
26
|
+
} }), be = ["innerHTML"], _e = c({ name: "eblalert", inheritAttrs: !1, __name: "alert", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
33
27
|
const e = u(t, "block");
|
|
34
|
-
return (
|
|
28
|
+
return (a, i) => (l(), s("div", { class: y(`cdx-alert cdx-alert-${e.value.data.type} cdx-alert-align-${e.value.data.align}`) }, [o("div", { class: "cdx-alert__message", innerHTML: e.value.data.message }, null, 8, be)], 2));
|
|
35
29
|
} });
|
|
36
|
-
const
|
|
37
|
-
},
|
|
38
|
-
const e =
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
const { lazy:
|
|
42
|
-
let
|
|
43
|
-
return
|
|
44
|
-
if (!
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
h.value = !0;
|
|
30
|
+
const fe = () => {
|
|
31
|
+
}, xe = { class: "ce-editorjs-x-shiki__selector" }, ye = { class: "ce-editorjs-x-shiki__lang" }, ge = { key: 0, class: "ce-editorjs-x-shiki__copy_tip" }, Me = { key: 0, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, we = { key: 1, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, Le = ["innerHTML"], He = c({ name: "eblcode", inheritAttrs: !1, __name: "code", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
32
|
+
const e = L(null), a = u(t, "block"), i = B(() => a.value.data.resizeSize ? { height: a.value.data.resizeSize + "px" } : {}), d = function(p, n, r) {
|
|
33
|
+
let h;
|
|
34
|
+
h = P(r) ? { evaluating: r } : {};
|
|
35
|
+
const { lazy: g = !1, flush: M = "pre", evaluating: v, shallow: A = !0, onError: E = fe } = h, b = q(!g), S = A ? q(n) : L(n);
|
|
36
|
+
let w = 0;
|
|
37
|
+
return Z(async (G) => {
|
|
38
|
+
if (!b.value) return;
|
|
39
|
+
w++;
|
|
40
|
+
const V = w;
|
|
41
|
+
let $ = !1;
|
|
42
|
+
v && Promise.resolve().then(() => {
|
|
43
|
+
v.value = !0;
|
|
51
44
|
});
|
|
52
45
|
try {
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
const j = await p((O) => {
|
|
47
|
+
G(() => {
|
|
48
|
+
v && (v.value = !1), $ || O();
|
|
56
49
|
});
|
|
57
50
|
});
|
|
58
|
-
|
|
59
|
-
} catch (
|
|
60
|
-
|
|
51
|
+
V === w && (S.value = j);
|
|
52
|
+
} catch (j) {
|
|
53
|
+
E(j);
|
|
61
54
|
} finally {
|
|
62
|
-
|
|
55
|
+
v && V === w && (v.value = !1), $ = !0;
|
|
63
56
|
}
|
|
64
|
-
}, { flush:
|
|
57
|
+
}, { flush: M }), g ? B(() => (b.value = !0, S.value)) : S;
|
|
65
58
|
}(async () => {
|
|
66
|
-
let
|
|
67
|
-
return { html: await
|
|
68
|
-
`, pre(
|
|
69
|
-
var
|
|
70
|
-
this.addClassToHast(
|
|
71
|
-
}, line(
|
|
72
|
-
|
|
73
|
-
} }] }), preStyle:
|
|
59
|
+
let p = "";
|
|
60
|
+
return { html: await U(a.value.data.code, { lang: a.value.data.lang, theme: a.value.data.theme || "github-dark-dimmed", transformers: [{ preprocess: (r) => `${r}
|
|
61
|
+
`, pre(r) {
|
|
62
|
+
var h;
|
|
63
|
+
this.addClassToHast(r, "ce-editorjs-x-shiki__span"), p = ((h = r.properties) == null ? void 0 : h.style) || "";
|
|
64
|
+
}, line(r, h) {
|
|
65
|
+
r.properties = r.properties || {}, r.properties["data-line"] = h;
|
|
66
|
+
} }] }), preStyle: p };
|
|
74
67
|
});
|
|
75
|
-
function
|
|
76
|
-
e.value && function(
|
|
77
|
-
let
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
let
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
document.removeEventListener("mousemove",
|
|
68
|
+
function m(p) {
|
|
69
|
+
e.value && function(n, r) {
|
|
70
|
+
let h = r.clientY, g = parseInt(window.getComputedStyle(n).height, 10);
|
|
71
|
+
const M = (A) => {
|
|
72
|
+
const E = A.clientY - h;
|
|
73
|
+
let b = g + E;
|
|
74
|
+
b < 100 && (b = 100), n.style.height = b + "px";
|
|
75
|
+
}, v = () => {
|
|
76
|
+
document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", v);
|
|
84
77
|
};
|
|
85
|
-
document.addEventListener("mousemove",
|
|
86
|
-
}(e.value,
|
|
78
|
+
document.addEventListener("mousemove", M), document.addEventListener("mouseup", v);
|
|
79
|
+
}(e.value, p);
|
|
87
80
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
function T() {
|
|
82
|
+
if (a.value.data.code) {
|
|
83
|
+
const p = a.value.data.code;
|
|
84
|
+
if (navigator.clipboard && window.isSecureContext) try {
|
|
85
|
+
navigator.clipboard.writeText(p).then(() => {
|
|
86
|
+
x(!0);
|
|
87
|
+
}).catch((n) => {
|
|
88
|
+
x(!1);
|
|
89
|
+
});
|
|
90
|
+
} catch (n) {
|
|
91
|
+
x(!1);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
const n = document.createElement("textarea");
|
|
95
|
+
n.value = p, n.style.top = "0", n.style.left = "0", n.style.position = "fixed", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1000", document.body.appendChild(n), n.focus(), n.select();
|
|
96
|
+
try {
|
|
97
|
+
document.execCommand("copy"), document.body.removeChild(n), x(!0);
|
|
98
|
+
} catch (r) {
|
|
99
|
+
x(!1), document.body.removeChild(n);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
const C = L(!1), R = L(!1);
|
|
105
|
+
function x(p) {
|
|
106
|
+
C.value = !0, R.value = p, setTimeout(() => {
|
|
107
|
+
C.value = !1;
|
|
108
|
+
}, 2e3);
|
|
109
|
+
}
|
|
110
|
+
return (p, n) => {
|
|
111
|
+
var r, h;
|
|
112
|
+
return l(), s("div", { class: y("cdx-block ce-editorjs-x-shiki"), style: f(`${(r = I(d)) == null ? void 0 : r.preStyle}`) }, [o("div", xe, [o("div", ye, J(a.value.data.lang), 1), o("div", { class: "ce-editorjs-x-shiki__copy", ref: "copyRef", onClick: T }, [n[2] || (n[2] = Q('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" data-v-f867b955><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5" data-v-f867b955></path></svg>', 1)), C.value ? (l(), s("div", ge, [R.value ? (l(), s("svg", Me, [...n[0] || (n[0] = [o("path", { d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])])) : (l(), s("svg", we, [...n[1] || (n[1] = [o("path", { d: "M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])]))])) : H("", !0)], 512)]), o("div", { ref_key: "codeRef", ref: e, class: "ce-editorjs-x-shiki__code", style: f(i.value) }, [o("span", { innerHTML: (h = I(d)) == null ? void 0 : h.html }, null, 8, Le)], 4), o("div", { class: "ce-editorjs-x-shiki__code__dragHandler", onMousedown: m }, null, 32)], 4);
|
|
91
113
|
};
|
|
92
|
-
} }),
|
|
93
|
-
const
|
|
94
|
-
for (const [
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}, xe = C(fe, [["__scopeId", "data-v-c4c07368"]]), ye = { class: "ce-delimiter cdx-block" }, ge = d({ name: "ebldelimiter", inheritAttrs: !1, __name: "delimiter", setup: (t) => (e, l) => (s(), i("div", ye, [...l[0] || (l[0] = [n("div", { class: "ce-delimiter__line__wrapper" }, [n("div", { class: "ce-delimiter__line" })], -1)])])) }), Me = { key: 0, class: "cdx-list cdx-list-unordered" }, Le = ["innerHTML"], He = ["innerHTML"], Te = { key: 2, class: "cdx-list cdx-list-checklist" }, we = ["innerHTML"], Ce = d({ name: "eblList", inheritAttrs: !1, __name: "List", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
114
|
+
} }), z = (t, e) => {
|
|
115
|
+
const a = t.__vccOpts || t;
|
|
116
|
+
for (const [i, d] of e) a[i] = d;
|
|
117
|
+
return a;
|
|
118
|
+
}, Te = { class: "ce-delimiter cdx-block" }, Ce = { key: 0, class: "cdx-list cdx-list-unordered" }, Ae = ["innerHTML"], Ee = ["innerHTML"], Se = { key: 2, class: "cdx-list cdx-list-checklist" }, je = ["innerHTML"], ze = { class: "cdx-block cdx-quote" }, Be = ["innerHTML"], Re = { class: "tc-row" }, Ve = ["innerHTML"], $e = { class: "image-tool__image" }, qe = ["src"], N = [ae, se, ne, re, ce, pe, me, ke, _e, z(He, [["__scopeId", "data-v-f867b955"]]), c({ name: "ebldelimiter", inheritAttrs: !1, __name: "delimiter", setup: (t) => (e, a) => (l(), s("div", Te, [...a[0] || (a[0] = [o("div", { class: "ce-delimiter__line__wrapper" }, [o("div", { class: "ce-delimiter__line" })], -1)])])) }), c({ name: "eblList", inheritAttrs: !1, __name: "List", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
98
119
|
const e = u(t, "block");
|
|
99
|
-
return (
|
|
100
|
-
} }),
|
|
120
|
+
return (a, i) => (l(), s(k, null, [e.value.data.style === "unordered" ? (l(), s("ul", Ce, [(l(!0), s(k, null, _(e.value.data.items, (d, m) => (l(), s("li", { class: "cdx-list__item", key: m }, [o("div", { class: "cdx-list__item-content", innerHTML: d.content }, null, 8, Ae)]))), 128))])) : H("", !0), e.value.data.style === "ordered" ? (l(), s("ol", { key: 1, class: "cdx-list cdx-list-ordered", style: f(`--list-counter-type: ${e.value.data.meta.counterType};`) }, [(l(!0), s(k, null, _(e.value.data.items, (d, m) => (l(), s("li", { class: "cdx-list__item", key: m }, [o("div", { class: "cdx-list__item-content", innerHTML: d.content }, null, 8, Ee)]))), 128))], 4)) : H("", !0), e.value.data.style === "checklist" ? (l(), s("ul", Se, [(l(!0), s(k, null, _(e.value.data.items, (d, m) => (l(), s("li", { class: "cdx-list__item", key: m }, [o("div", { class: y(["cdx-list__checkbox cdx-list__checkbox-check--disabled", { "cdx-list__checkbox--checked": d.meta.checked }]) }, [...i[0] || (i[0] = [o("span", { class: "cdx-list__checkbox-check" }, [o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, [o("path", { stroke: "currentColor", "stroke-linecap": "round", "stroke-width": "2", d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9" })])], -1)])], 2), o("div", { class: "cdx-list__item-content", innerHTML: d.content }, null, 8, je)]))), 128))])) : H("", !0)], 64));
|
|
121
|
+
} }), c({ name: "eblquote", inheritAttrs: !1, __name: "quote", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
101
122
|
const e = u(t, "block");
|
|
102
|
-
return (
|
|
103
|
-
} }),
|
|
104
|
-
const e = u(t, "block"),
|
|
105
|
-
let
|
|
106
|
-
if (e.value.data.colWidth && e.value.data.colWidth.length > 0)
|
|
107
|
-
|
|
108
|
-
a += " " + e.value.data.colWidth[c] + "px";
|
|
109
|
-
return a ? { "--col-width": a } : {};
|
|
123
|
+
return (a, i) => (l(), s("div", ze, [o("blockquote", { class: "cdx-input cdx-quote__text cdx-block-quote", innerHTML: e.value.data.text }, null, 8, Be)]));
|
|
124
|
+
} }), z(c({ name: "ebltable", inheritAttrs: !1, __name: "table", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
125
|
+
const e = u(t, "block"), a = B(() => {
|
|
126
|
+
let i = "";
|
|
127
|
+
if (e.value.data.colWidth && e.value.data.colWidth.length > 0) for (let d = 0; d < e.value.data.colWidth.length; d++) i += " " + e.value.data.colWidth[d] + "px";
|
|
128
|
+
return i ? { "--col-width": i } : {};
|
|
110
129
|
});
|
|
111
|
-
return (
|
|
112
|
-
} }), [["__scopeId", "data-v-0627102b"]]),
|
|
130
|
+
return (i, d) => (l(), s("div", { class: "tc-wrap tc-wrap--readonly", style: f(a.value) }, [o("div", { class: y(["tc-table", { "tc-table--heading": e.value.data.withHeadings }]) }, [(l(!0), s(k, null, _(e.value.data.content, (m) => (l(), s("div", Re, [(l(!0), s(k, null, _(m, (T) => (l(), s("div", { class: "tc-cell", innerHTML: T }, null, 8, Ve))), 256))]))), 256))], 2)], 4));
|
|
131
|
+
} }), [["__scopeId", "data-v-0627102b"]]), z(c({ name: "eblimage", inheritAttrs: !1, __name: "image", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
|
|
113
132
|
const e = u(t, "block");
|
|
114
|
-
return (
|
|
115
|
-
} }), [["__scopeId", "data-v-
|
|
116
|
-
let
|
|
117
|
-
for (let t in
|
|
118
|
-
const e =
|
|
119
|
-
|
|
133
|
+
return (a, i) => (l(), s("div", { class: "cdx-block image-tool image-tool--filled", style: f({ width: e.value.tunes.imageResize.resizeSize + "px" }) }, [o("div", $e, [o("img", { class: "image-tool__image-picture", src: e.value.data.file.url }, null, 8, qe)]), i[0] || (i[0] = o("div", { class: "cdx-input image-tool__caption", contenteditable: "true", "data-placeholder": "Caption", "data-empty": "true" }, null, -1))], 4));
|
|
134
|
+
} }), [["__scopeId", "data-v-7b6db628"]])];
|
|
135
|
+
let D = [];
|
|
136
|
+
for (let t in N) {
|
|
137
|
+
const e = X(N[t]);
|
|
138
|
+
D.push(e);
|
|
120
139
|
}
|
|
121
|
-
const
|
|
122
|
-
e[
|
|
123
|
-
} }))(
|
|
140
|
+
const Y = /* @__PURE__ */ ((t = []) => ({ version: "2.31.28", install: (e) => {
|
|
141
|
+
e[W] || (e[W] = !0, t.forEach((a) => e.use(a)));
|
|
142
|
+
} }))(D), Ne = Y.install, De = Y.version;
|
|
124
143
|
export {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
144
|
+
Y as default,
|
|
145
|
+
Ne as install,
|
|
146
|
+
De as version
|
|
128
147
|
};
|
|
129
148
|
//# sourceMappingURL=index.mjs.map
|