@maildeno/editor 0.4.6 → 0.4.7
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/CHANGELOG.md +42 -0
- package/dist/DatePicker-DIaGGAVI.js +5347 -0
- package/dist/DatePicker-DmMga5gQ.js +5347 -0
- package/dist/Dialog-GTfGtduh.js +6294 -0
- package/dist/HealthIndicator--ScSxVRA.js +1216 -0
- package/dist/HealthIndicator-BraAh2Aj.js +1217 -0
- package/dist/Icon-BYmOM482.js +2537 -0
- package/dist/Icon-c2SPT3-6.js +2577 -0
- package/dist/PreviewCanvas-C1-rP9-B.js +533 -0
- package/dist/PreviewCanvas-Nro7tNCn.js +533 -0
- package/dist/RichTextEditor-CrYhiAOo.js +12217 -0
- package/dist/RichTextEditor-D7Itx0fL.js +12218 -0
- package/dist/RowPreviewChildren-B66HbFdX.js +4 -0
- package/dist/RowPreviewChildren-DvrE9HTT.js +4 -0
- package/dist/RowPreviewLegacyComponent-3QuwvWmT.js +402 -0
- package/dist/RowPreviewLegacyComponent-CPqaWwsE.js +402 -0
- package/dist/RowPreviewRow-B91YPfoz.js +80 -0
- package/dist/RowPreviewRow-MaA-9ApX.js +80 -0
- package/dist/SavedRowsPanel-CF-7R3q_.js +492 -0
- package/dist/SavedRowsPanel-TLOEvs3Z.js +491 -0
- package/dist/_plugin-vue_export-helper-Dj7HTbfw.js +8 -0
- package/dist/babel-DV7WPQI0.js +10043 -0
- package/dist/components/features/emailBuilder/EmailEditor.vue.d.ts +3 -3
- package/dist/composables/emailBuilder/transform/pipeline/optimize.d.ts +4 -4
- package/dist/editor.css +2 -1
- package/dist/element-CeRQDEn3.js +21396 -0
- package/dist/element.js +2 -2
- package/dist/estree-DY9POgc0.js +8195 -0
- package/dist/html-wb0gSX1o.js +7273 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +14886 -14
- package/dist/init.js +83 -94
- package/dist/mergeTagDefinitions-Cler19nv.js +27 -0
- package/dist/standalone-DHvJ30Td.js +3554 -0
- package/dist/useEmailBuilder-CjJoxzTi.js +4893 -0
- package/dist/useEmailBuilder-gOc8otd8.js +4893 -0
- package/dist/useToast-DeNMwkP3.js +194 -0
- package/dist/vue.runtime.esm-bundler-D2AjRP90.js +6117 -0
- package/package.json +3 -1
- package/dist/DatePicker-6dMK-shv.js +0 -5639
- package/dist/DatePicker-CEm1DPgG.js +0 -5640
- package/dist/HealthIndicator-Ch5Ck0BL.js +0 -1954
- package/dist/HealthIndicator-Dr5vMr1T.js +0 -1953
- package/dist/PreviewCanvas-CG52GC5m.js +0 -667
- package/dist/PreviewCanvas-CjOrVIGt.js +0 -668
- package/dist/RichTextEditor-DaaHuVox.js +0 -13487
- package/dist/RichTextEditor-DoWpYF0R.js +0 -13432
- package/dist/RowPreviewChildren-DQoyExvw.js +0 -4
- package/dist/RowPreviewChildren-yl3aB7hb.js +0 -4
- package/dist/RowPreviewLegacyComponent-CHxbwy9l.js +0 -454
- package/dist/RowPreviewLegacyComponent-Dv7OCys4.js +0 -454
- package/dist/RowPreviewRow-Bizr4PTf.js +0 -86
- package/dist/RowPreviewRow-CLhz0YQ5.js +0 -86
- package/dist/SavedRowsPanel-C0DkAzHi.js +0 -611
- package/dist/SavedRowsPanel-Cp3gADrK.js +0 -610
- package/dist/babel-Bmz1GpKj.js +0 -7218
- package/dist/element-CRfWpZos.js +0 -40842
- package/dist/estree-C5xyFN_T.js +0 -4831
- package/dist/html-Dc_r73Xn.js +0 -3062
- package/dist/index-BlYp4vAp.js +0 -34092
- package/dist/standalone-Yv8gSIWN.js +0 -2336
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
import { defineComponent as at, computed as lt, openBlock as g, createBlock as ct, resolveDynamicComponent as dt, normalizeStyle as s, createElementBlock as m, createElementVNode as u, createCommentVNode as P, createTextVNode as gt, toDisplayString as S, Fragment as E, renderList as j } from "vue";
|
|
2
|
-
const st = ["innerHTML"], mt = ["src", "alt"], ft = ["src", "alt"], xt = {
|
|
3
|
-
style: { width: "30%", height: "30%", color: "#9ca3af" },
|
|
4
|
-
fill: "currentColor",
|
|
5
|
-
viewBox: "0 0 20 20"
|
|
6
|
-
}, ut = ["src", "alt"], yt = ["src", "alt"], ht = ["innerHTML"], $t = { key: 8 }, bt = { key: 0 }, St = ["src", "alt"], kt = {
|
|
7
|
-
key: 1,
|
|
8
|
-
style: { "font-size": "7px", color: "#9ca3af", "font-style": "italic" }
|
|
9
|
-
}, vt = {
|
|
10
|
-
key: 11,
|
|
11
|
-
class: "rounded truncate",
|
|
12
|
-
style: { "font-size": "7px", color: "#9ca3af", background: "#f3f4f6", padding: "1px 3px" }
|
|
13
|
-
}, Ft = /* @__PURE__ */ at({
|
|
14
|
-
__name: "RowPreviewLegacyComponent",
|
|
15
|
-
props: {
|
|
16
|
-
comp: {},
|
|
17
|
-
scale: {}
|
|
18
|
-
},
|
|
19
|
-
setup(r) {
|
|
20
|
-
const v = r, x = lt(() => v.comp.componentType ?? v.comp.type);
|
|
21
|
-
function k(t) {
|
|
22
|
-
return t ? t.replace(
|
|
23
|
-
/<span[^>]*\bdata-merge="([^"]+)"(?:[^>]*\bdata-merge-default="([^"]*)")?[^>]*>.*?<\/span>/gs,
|
|
24
|
-
(n, o, e) => {
|
|
25
|
-
const i = o.trim(), a = e == null ? void 0 : e.trim();
|
|
26
|
-
return a ? `{{ ${i}|'${a}' }}` : `{{ ${i} }}`;
|
|
27
|
-
}
|
|
28
|
-
) : "";
|
|
29
|
-
}
|
|
30
|
-
function y(t) {
|
|
31
|
-
var e;
|
|
32
|
-
const n = t == null ? void 0 : t.backgroundGradient;
|
|
33
|
-
if ((n == null ? void 0 : n.useGradient) === !0 && Array.isArray((e = n == null ? void 0 : n.gradient) == null ? void 0 : e.colors) && n.gradient.colors.length >= 2) {
|
|
34
|
-
const { type: i, direction: a, colors: l } = n.gradient, c = l.map((d) => `${d.color} ${d.position}%`).join(", ");
|
|
35
|
-
return i === "radial" ? `radial-gradient(circle at center, ${c})` : `linear-gradient(${a}, ${c})`;
|
|
36
|
-
}
|
|
37
|
-
return (t == null ? void 0 : t.backgroundColor) || "transparent";
|
|
38
|
-
}
|
|
39
|
-
function h(t) {
|
|
40
|
-
if (!t) return;
|
|
41
|
-
const n = [
|
|
42
|
-
"Roboto",
|
|
43
|
-
"Open Sans",
|
|
44
|
-
"Lato",
|
|
45
|
-
"Montserrat",
|
|
46
|
-
"Poppins",
|
|
47
|
-
"Nunito",
|
|
48
|
-
"Raleway",
|
|
49
|
-
"Plus Jakarta Sans"
|
|
50
|
-
];
|
|
51
|
-
if ((t.includes(" ") || n.some((e) => t.includes(e))) && typeof document < "u") {
|
|
52
|
-
const i = `https://fonts.googleapis.com/css2?family=${t.replace(/ /g, "+")}:wght@300;400;500;600;700;800&display=swap`;
|
|
53
|
-
if (!document.querySelector(`link[href="${i}"]`)) {
|
|
54
|
-
const a = document.createElement("link");
|
|
55
|
-
a.href = i, a.rel = "stylesheet", document.head.appendChild(a);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function N(t) {
|
|
60
|
-
var n, o, e, i, a, l, c, d;
|
|
61
|
-
return t != null && t.fontFamily && h(t.fontFamily), {
|
|
62
|
-
fontSize: Math.max(7, (t == null ? void 0 : t.fontSize) || 24) + "px",
|
|
63
|
-
color: (t == null ? void 0 : t.color) || "#111111",
|
|
64
|
-
fontWeight: (t == null ? void 0 : t.fontWeight) || "bold",
|
|
65
|
-
fontFamily: (t == null ? void 0 : t.fontFamily) || "Arial, sans-serif",
|
|
66
|
-
textAlign: (t == null ? void 0 : t.align) || "left",
|
|
67
|
-
lineHeight: String((t == null ? void 0 : t.lineHeight) ?? 1.2),
|
|
68
|
-
letterSpacing: `${(t == null ? void 0 : t.letterSpacing) ?? 0}px`,
|
|
69
|
-
textTransform: (t == null ? void 0 : t.textTransform) || "none",
|
|
70
|
-
textDecoration: (t == null ? void 0 : t.textDecoration) || "none",
|
|
71
|
-
background: y(t),
|
|
72
|
-
margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 4}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
|
|
73
|
-
padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function V(t) {
|
|
77
|
-
var n, o, e, i, a, l, c, d;
|
|
78
|
-
return t != null && t.fontFamily && h(t.fontFamily), {
|
|
79
|
-
fontSize: Math.max(6, (t == null ? void 0 : t.fontSize) || 16) + "px",
|
|
80
|
-
color: (t == null ? void 0 : t.color) || "#111111",
|
|
81
|
-
fontFamily: (t == null ? void 0 : t.fontFamily) || "Arial, sans-serif",
|
|
82
|
-
fontWeight: (t == null ? void 0 : t.fontWeight) || "normal",
|
|
83
|
-
fontStyle: (t == null ? void 0 : t.fontStyle) || "normal",
|
|
84
|
-
textAlign: (t == null ? void 0 : t.align) || "left",
|
|
85
|
-
lineHeight: String((t == null ? void 0 : t.lineHeight) ?? 1.5),
|
|
86
|
-
letterSpacing: `${(t == null ? void 0 : t.letterSpacing) ?? 0}px`,
|
|
87
|
-
textTransform: (t == null ? void 0 : t.textTransform) || "none",
|
|
88
|
-
textDecoration: (t == null ? void 0 : t.textDecoration) || "none",
|
|
89
|
-
background: y(t),
|
|
90
|
-
margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 4}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
|
|
91
|
-
padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
function q(t) {
|
|
95
|
-
var n, o, e, i, a, l, c, d;
|
|
96
|
-
return {
|
|
97
|
-
margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
|
|
98
|
-
padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
|
|
99
|
-
textAlign: (t == null ? void 0 : t.align) || "left"
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function J(t) {
|
|
103
|
-
var o, e, i;
|
|
104
|
-
const n = (t == null ? void 0 : t.align) || "left";
|
|
105
|
-
return {
|
|
106
|
-
width: ((t == null ? void 0 : t.width) || 100) + "%",
|
|
107
|
-
height: (t == null ? void 0 : t.height) || "auto",
|
|
108
|
-
borderRadius: ((t == null ? void 0 : t.borderRadius) || 0) + "px",
|
|
109
|
-
border: `${((o = t == null ? void 0 : t.border) == null ? void 0 : o.width) || 0}px ${((e = t == null ? void 0 : t.border) == null ? void 0 : e.style) || "solid"} ${((i = t == null ? void 0 : t.border) == null ? void 0 : i.color) || "#000000"}`,
|
|
110
|
-
display: "block",
|
|
111
|
-
margin: n === "center" ? "0 auto" : n === "right" ? "0 0 0 auto" : "0"
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
function O(t) {
|
|
115
|
-
var n, o, e, i, a, l, c, d;
|
|
116
|
-
return {
|
|
117
|
-
margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
|
|
118
|
-
padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
|
|
119
|
-
textAlign: (t == null ? void 0 : t.align) || "left",
|
|
120
|
-
maxWidth: "100%"
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
function K(t) {
|
|
124
|
-
var o, e, i;
|
|
125
|
-
const n = (t == null ? void 0 : t.align) || "left";
|
|
126
|
-
return {
|
|
127
|
-
width: "100%",
|
|
128
|
-
maxWidth: "100%",
|
|
129
|
-
paddingBottom: "56.25%",
|
|
130
|
-
height: "0",
|
|
131
|
-
position: "relative",
|
|
132
|
-
display: "inline-block",
|
|
133
|
-
borderRadius: ((t == null ? void 0 : t.borderRadius) || 0) + "px",
|
|
134
|
-
border: `${((o = t == null ? void 0 : t.border) == null ? void 0 : o.width) || 0}px ${((e = t == null ? void 0 : t.border) == null ? void 0 : e.style) || "solid"} ${((i = t == null ? void 0 : t.border) == null ? void 0 : i.color) || "#000000"}`,
|
|
135
|
-
overflow: "hidden",
|
|
136
|
-
marginLeft: n === "center" || n === "right" ? "auto" : "0",
|
|
137
|
-
marginRight: n === "center" ? "auto" : "0",
|
|
138
|
-
boxSizing: "border-box"
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
function Q() {
|
|
142
|
-
return {
|
|
143
|
-
position: "absolute",
|
|
144
|
-
top: "0",
|
|
145
|
-
left: "0",
|
|
146
|
-
width: "100%",
|
|
147
|
-
height: "100%",
|
|
148
|
-
objectFit: "cover",
|
|
149
|
-
display: "block"
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
function U() {
|
|
153
|
-
return {
|
|
154
|
-
position: "absolute",
|
|
155
|
-
top: "0",
|
|
156
|
-
left: "0",
|
|
157
|
-
width: "100%",
|
|
158
|
-
height: "100%",
|
|
159
|
-
background: "#e5e7eb",
|
|
160
|
-
display: "flex",
|
|
161
|
-
alignItems: "center",
|
|
162
|
-
justifyContent: "center"
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
function X(t) {
|
|
166
|
-
var n, o, e, i;
|
|
167
|
-
return {
|
|
168
|
-
margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 4}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
|
|
169
|
-
textAlign: (t == null ? void 0 : t.align) || "center"
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
function Y(t) {
|
|
173
|
-
var o, e, i, a, l, c, d;
|
|
174
|
-
t != null && t.fontFamily && h(t.fontFamily);
|
|
175
|
-
const n = !!(t != null && t.icon);
|
|
176
|
-
return {
|
|
177
|
-
background: y(t),
|
|
178
|
-
color: (t == null ? void 0 : t.color) || "#ffffff",
|
|
179
|
-
fontSize: Math.max(5, (t == null ? void 0 : t.fontSize) || 16) + "px",
|
|
180
|
-
fontWeight: (t == null ? void 0 : t.fontWeight) || "500",
|
|
181
|
-
fontFamily: (t == null ? void 0 : t.fontFamily) || "Arial, sans-serif",
|
|
182
|
-
letterSpacing: `${(t == null ? void 0 : t.letterSpacing) ?? 0}px`,
|
|
183
|
-
padding: `${((o = t == null ? void 0 : t.padding) == null ? void 0 : o.top) ?? 8}px ${((e = t == null ? void 0 : t.padding) == null ? void 0 : e.right) ?? 16}px ${((i = t == null ? void 0 : t.padding) == null ? void 0 : i.bottom) ?? 8}px ${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.left) ?? 16}px`,
|
|
184
|
-
borderRadius: ((t == null ? void 0 : t.borderRadius) || 4) + "px",
|
|
185
|
-
border: `${((l = t == null ? void 0 : t.border) == null ? void 0 : l.width) || 0}px ${((c = t == null ? void 0 : t.border) == null ? void 0 : c.style) || "solid"} ${((d = t == null ? void 0 : t.border) == null ? void 0 : d.color) || "#000000"}`,
|
|
186
|
-
// Icon branch uses inline-flex so icon + text align cleanly on one row.
|
|
187
|
-
// Plain branch stays inline-block (unchanged behaviour).
|
|
188
|
-
...n ? {
|
|
189
|
-
display: "inline-flex",
|
|
190
|
-
alignItems: "center",
|
|
191
|
-
verticalAlign: "middle"
|
|
192
|
-
} : { display: "inline-block" },
|
|
193
|
-
lineHeight: "1.2",
|
|
194
|
-
textDecoration: "none"
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
function w(t) {
|
|
198
|
-
const n = Math.max(4, (t == null ? void 0 : t.iconSize) ?? 20), o = (t == null ? void 0 : t.iconGap) ?? 8, e = (t == null ? void 0 : t.iconPosition) !== "after";
|
|
199
|
-
return {
|
|
200
|
-
display: "block",
|
|
201
|
-
width: n + "px",
|
|
202
|
-
height: n + "px",
|
|
203
|
-
flexShrink: "0",
|
|
204
|
-
marginRight: e ? o + "px" : "0",
|
|
205
|
-
marginLeft: e ? "0" : o + "px"
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
function F(t) {
|
|
209
|
-
const n = t.target;
|
|
210
|
-
n.style.display = "none";
|
|
211
|
-
}
|
|
212
|
-
function Z(t) {
|
|
213
|
-
var n, o, e, i, a, l, c, d;
|
|
214
|
-
return {
|
|
215
|
-
margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 4}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
|
|
216
|
-
padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
|
|
217
|
-
textAlign: (t == null ? void 0 : t.align) || "left"
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
function _(t) {
|
|
221
|
-
return t != null && t.fontFamily && h(t.fontFamily), {
|
|
222
|
-
color: (t == null ? void 0 : t.color) || "#007bff",
|
|
223
|
-
fontSize: Math.max(6, (t == null ? void 0 : t.fontSize) || 16) + "px",
|
|
224
|
-
fontWeight: (t == null ? void 0 : t.fontWeight) || "normal",
|
|
225
|
-
fontFamily: (t == null ? void 0 : t.fontFamily) || "Arial, sans-serif",
|
|
226
|
-
letterSpacing: `${(t == null ? void 0 : t.letterSpacing) ?? 0}px`,
|
|
227
|
-
textDecoration: (t == null ? void 0 : t.textDecoration) || "underline"
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
function p(t) {
|
|
231
|
-
var n, o, e, i, a, l, c, d;
|
|
232
|
-
return t != null && t.fontFamily && h(t.fontFamily), {
|
|
233
|
-
margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
|
|
234
|
-
padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 16}px`,
|
|
235
|
-
fontSize: Math.max(6, (t == null ? void 0 : t.fontSize) || 16) + "px",
|
|
236
|
-
fontFamily: (t == null ? void 0 : t.fontFamily) || "Arial, sans-serif",
|
|
237
|
-
lineHeight: String((t == null ? void 0 : t.lineHeight) ?? 1.5),
|
|
238
|
-
letterSpacing: `${(t == null ? void 0 : t.letterSpacing) ?? 0}px`,
|
|
239
|
-
color: (t == null ? void 0 : t.color) || "#111111",
|
|
240
|
-
background: y(t)
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
function tt(t) {
|
|
244
|
-
var n, o, e, i, a, l, c, d;
|
|
245
|
-
return {
|
|
246
|
-
margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
|
|
247
|
-
padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
|
|
248
|
-
textAlign: (t == null ? void 0 : t.align) || "left"
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
function nt(t) {
|
|
252
|
-
const n = (t == null ? void 0 : t.align) || "left";
|
|
253
|
-
return {
|
|
254
|
-
width: ((t == null ? void 0 : t.width) || 100) + "%",
|
|
255
|
-
height: ((t == null ? void 0 : t.height) || 1) + "px",
|
|
256
|
-
background: y(t),
|
|
257
|
-
border: "none",
|
|
258
|
-
margin: n === "center" ? "0 auto" : n === "right" ? "0 0 0 auto" : "0"
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
function et(t) {
|
|
262
|
-
return {
|
|
263
|
-
width: "100%",
|
|
264
|
-
height: ((t == null ? void 0 : t.height) || 16) + "px",
|
|
265
|
-
background: y(t)
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
function it(t) {
|
|
269
|
-
var n, o, e, i, a, l, c, d;
|
|
270
|
-
return t != null && t.fontFamily && h(t.fontFamily), {
|
|
271
|
-
margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
|
|
272
|
-
padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
|
|
273
|
-
textAlign: (t == null ? void 0 : t.align) || "left",
|
|
274
|
-
lineHeight: "0",
|
|
275
|
-
background: y(t)
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
function ot(t, n, o) {
|
|
279
|
-
t != null && t.fontFamily && h(t.fontFamily);
|
|
280
|
-
const e = (t == null ? void 0 : t.mobileStack) === !0, i = (t == null ? void 0 : t.spacing) ?? 8, a = n === 0, l = n === o - 1;
|
|
281
|
-
return {
|
|
282
|
-
// display is always block, used for showcase
|
|
283
|
-
display: "inline-block",
|
|
284
|
-
marginLeft: a ? "0px" : `${i / 2}px`,
|
|
285
|
-
marginRight: l ? "0px" : `${i / 2}px`,
|
|
286
|
-
// marginBottom: isStacked && !isLast ? `${spacing}px` : "0",
|
|
287
|
-
fontSize: Math.max(6, (t == null ? void 0 : t.fontSize) ?? 14) + "px",
|
|
288
|
-
lineHeight: String((t == null ? void 0 : t.lineHeight) ?? 1.4),
|
|
289
|
-
letterSpacing: ((t == null ? void 0 : t.letterSpacing) ?? 0) + "px",
|
|
290
|
-
color: (t == null ? void 0 : t.color) || "#111111",
|
|
291
|
-
fontWeight: (t == null ? void 0 : t.fontWeight) || "normal",
|
|
292
|
-
fontFamily: t != null && t.fontFamily ? `'${t.fontFamily}', Arial, sans-serif` : "Arial, sans-serif",
|
|
293
|
-
fontStyle: (t == null ? void 0 : t.fontStyle) || "normal",
|
|
294
|
-
textTransform: (t == null ? void 0 : t.textTransform) || "none",
|
|
295
|
-
textDecoration: (t == null ? void 0 : t.textDecoration) || "none",
|
|
296
|
-
whiteSpace: e ? "normal" : "nowrap",
|
|
297
|
-
cursor: "default"
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
function rt(t) {
|
|
301
|
-
var n, o, e, i, a, l, c, d;
|
|
302
|
-
return {
|
|
303
|
-
margin: `${((n = t == null ? void 0 : t.margin) == null ? void 0 : n.top) ?? 0}px ${((o = t == null ? void 0 : t.margin) == null ? void 0 : o.right) ?? 0}px ${((e = t == null ? void 0 : t.margin) == null ? void 0 : e.bottom) ?? 0}px ${((i = t == null ? void 0 : t.margin) == null ? void 0 : i.left) ?? 0}px`,
|
|
304
|
-
padding: `${((a = t == null ? void 0 : t.padding) == null ? void 0 : a.top) ?? 0}px ${((l = t == null ? void 0 : t.padding) == null ? void 0 : l.right) ?? 0}px ${((c = t == null ? void 0 : t.padding) == null ? void 0 : c.bottom) ?? 0}px ${((d = t == null ? void 0 : t.padding) == null ? void 0 : d.left) ?? 0}px`,
|
|
305
|
-
textAlign: (t == null ? void 0 : t.align) || "left",
|
|
306
|
-
display: "flex",
|
|
307
|
-
flexWrap: "wrap",
|
|
308
|
-
gap: ((t == null ? void 0 : t.spacing) ?? 8) + "px",
|
|
309
|
-
justifyContent: (t == null ? void 0 : t.align) === "center" ? "center" : (t == null ? void 0 : t.align) === "right" ? "flex-end" : "flex-start"
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
return (t, n) => {
|
|
313
|
-
var o, e, i, a, l, c, d, z, A, H, C, M, T, L, W, R, D, I, G, B;
|
|
314
|
-
return x.value === "heading" ? (g(), ct(dt(((o = r.comp.props) == null ? void 0 : o.level) || "h2"), {
|
|
315
|
-
key: 0,
|
|
316
|
-
style: s(N(r.comp.props)),
|
|
317
|
-
class: "truncate",
|
|
318
|
-
innerHTML: k((e = r.comp.props) == null ? void 0 : e.content) || "Heading"
|
|
319
|
-
}, null, 8, ["style", "innerHTML"])) : x.value === "paragraph" ? (g(), m("p", {
|
|
320
|
-
key: 1,
|
|
321
|
-
style: s([V(r.comp.props), { display: "-webkit-box", "-webkit-line-clamp": "2", "-webkit-box-orient": "vertical" }]),
|
|
322
|
-
class: "overflow-hidden",
|
|
323
|
-
innerHTML: k((i = r.comp.props) == null ? void 0 : i.content) || "Text"
|
|
324
|
-
}, null, 12, st)) : x.value === "image" ? (g(), m("div", {
|
|
325
|
-
key: 2,
|
|
326
|
-
style: s(q(r.comp.props))
|
|
327
|
-
}, [
|
|
328
|
-
u("img", {
|
|
329
|
-
src: (a = r.comp.props) == null ? void 0 : a.src,
|
|
330
|
-
alt: ((l = r.comp.props) == null ? void 0 : l.alt) || "",
|
|
331
|
-
style: s(J(r.comp.props))
|
|
332
|
-
}, null, 12, mt)
|
|
333
|
-
], 4)) : x.value === "video" ? (g(), m("div", {
|
|
334
|
-
key: 3,
|
|
335
|
-
style: s(O(r.comp.props))
|
|
336
|
-
}, [
|
|
337
|
-
u("div", {
|
|
338
|
-
style: s(K(r.comp.props))
|
|
339
|
-
}, [
|
|
340
|
-
(c = r.comp.props) != null && c.coverImage ? (g(), m("img", {
|
|
341
|
-
key: 0,
|
|
342
|
-
src: r.comp.props.coverImage,
|
|
343
|
-
alt: ((d = r.comp.props) == null ? void 0 : d.alt) || "Video",
|
|
344
|
-
style: s(Q())
|
|
345
|
-
}, null, 12, ft)) : (g(), m("div", {
|
|
346
|
-
key: 1,
|
|
347
|
-
style: s(U())
|
|
348
|
-
}, [
|
|
349
|
-
(g(), m("svg", xt, [...n[0] || (n[0] = [
|
|
350
|
-
u("path", {
|
|
351
|
-
"fill-rule": "evenodd",
|
|
352
|
-
d: "M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",
|
|
353
|
-
"clip-rule": "evenodd"
|
|
354
|
-
}, null, -1)
|
|
355
|
-
])]))
|
|
356
|
-
], 4))
|
|
357
|
-
], 4)
|
|
358
|
-
], 4)) : x.value === "button" ? (g(), m("div", {
|
|
359
|
-
key: 4,
|
|
360
|
-
style: s(X(r.comp.props))
|
|
361
|
-
}, [
|
|
362
|
-
u("span", {
|
|
363
|
-
style: s(Y(r.comp.props)),
|
|
364
|
-
class: "inline-block truncate"
|
|
365
|
-
}, [
|
|
366
|
-
(z = r.comp.props) != null && z.icon && ((A = r.comp.props) == null ? void 0 : A.iconPosition) !== "after" ? (g(), m("img", {
|
|
367
|
-
key: 0,
|
|
368
|
-
src: r.comp.props.icon,
|
|
369
|
-
alt: ((H = r.comp.props) == null ? void 0 : H.iconAlt) || "",
|
|
370
|
-
style: s(w(r.comp.props)),
|
|
371
|
-
onError: F
|
|
372
|
-
}, null, 44, ut)) : P("", !0),
|
|
373
|
-
gt(" " + S(((C = r.comp.props) == null ? void 0 : C.text) || "Button") + " ", 1),
|
|
374
|
-
(M = r.comp.props) != null && M.icon && ((T = r.comp.props) == null ? void 0 : T.iconPosition) === "after" ? (g(), m("img", {
|
|
375
|
-
key: 1,
|
|
376
|
-
src: r.comp.props.icon,
|
|
377
|
-
alt: ((L = r.comp.props) == null ? void 0 : L.iconAlt) || "",
|
|
378
|
-
style: s(w(r.comp.props)),
|
|
379
|
-
onError: F
|
|
380
|
-
}, null, 44, yt)) : P("", !0)
|
|
381
|
-
], 4)
|
|
382
|
-
], 4)) : x.value === "anchor" ? (g(), m("div", {
|
|
383
|
-
key: 5,
|
|
384
|
-
style: s(Z(r.comp.props))
|
|
385
|
-
}, [
|
|
386
|
-
u("span", {
|
|
387
|
-
style: s(_(r.comp.props)),
|
|
388
|
-
class: "truncate block"
|
|
389
|
-
}, S(((W = r.comp.props) == null ? void 0 : W.text) || "Link"), 5)
|
|
390
|
-
], 4)) : x.value === "list" ? (g(), m("div", {
|
|
391
|
-
key: 6,
|
|
392
|
-
style: s(p(r.comp.props)),
|
|
393
|
-
innerHTML: k((R = r.comp.props) == null ? void 0 : R.content) || "<ul><li>Item</li></ul>"
|
|
394
|
-
}, null, 12, ht)) : x.value === "divider" ? (g(), m("div", {
|
|
395
|
-
key: 7,
|
|
396
|
-
style: s(tt(r.comp.props))
|
|
397
|
-
}, [
|
|
398
|
-
u("hr", {
|
|
399
|
-
style: s(nt(r.comp.props))
|
|
400
|
-
}, null, 4)
|
|
401
|
-
], 4)) : x.value === "spacer" ? (g(), m("div", $t, [
|
|
402
|
-
u("div", {
|
|
403
|
-
style: s(et(r.comp.props))
|
|
404
|
-
}, null, 4)
|
|
405
|
-
])) : x.value === "menu" ? (g(), m("div", {
|
|
406
|
-
key: 9,
|
|
407
|
-
style: s(it(r.comp.props))
|
|
408
|
-
}, [
|
|
409
|
-
(I = (D = r.comp.props) == null ? void 0 : D.items) != null && I.some((f) => f.enabled && f.label) ? (g(!0), m(E, { key: 1 }, j(r.comp.props.items.filter(
|
|
410
|
-
(f) => f.enabled && f.label
|
|
411
|
-
), (f, $) => (g(), m("span", {
|
|
412
|
-
key: f._id || $,
|
|
413
|
-
style: s(
|
|
414
|
-
ot(
|
|
415
|
-
r.comp.props,
|
|
416
|
-
Number($),
|
|
417
|
-
r.comp.props.items.filter((b) => b.enabled && b.label).length
|
|
418
|
-
)
|
|
419
|
-
)
|
|
420
|
-
}, S(f.label), 5))), 128)) : (g(), m("div", bt, " Menu "))
|
|
421
|
-
], 4)) : x.value === "socials" ? (g(), m("div", {
|
|
422
|
-
key: 10,
|
|
423
|
-
style: s(rt(r.comp.props))
|
|
424
|
-
}, [
|
|
425
|
-
(B = (G = r.comp.props) == null ? void 0 : G.platforms) != null && B.some((f) => f.enabled && f.link) ? (g(!0), m(E, { key: 0 }, j(r.comp.props.platforms.filter(
|
|
426
|
-
(f) => f.enabled && f.link
|
|
427
|
-
), (f) => {
|
|
428
|
-
var $, b;
|
|
429
|
-
return g(), m("span", {
|
|
430
|
-
key: f.name,
|
|
431
|
-
style: {
|
|
432
|
-
display: "inline-flex",
|
|
433
|
-
alignItems: "center",
|
|
434
|
-
justifyContent: "center"
|
|
435
|
-
}
|
|
436
|
-
}, [
|
|
437
|
-
u("img", {
|
|
438
|
-
src: f.icon,
|
|
439
|
-
alt: f.name,
|
|
440
|
-
style: s({
|
|
441
|
-
width: ((($ = r.comp.props) == null ? void 0 : $.iconSize) || 24) + "px",
|
|
442
|
-
height: (((b = r.comp.props) == null ? void 0 : b.iconSize) || 24) + "px",
|
|
443
|
-
display: "block"
|
|
444
|
-
})
|
|
445
|
-
}, null, 12, St)
|
|
446
|
-
]);
|
|
447
|
-
}), 128)) : (g(), m("span", kt, "Socials"))
|
|
448
|
-
], 4)) : (g(), m("div", vt, S(x.value), 1));
|
|
449
|
-
};
|
|
450
|
-
}
|
|
451
|
-
});
|
|
452
|
-
export {
|
|
453
|
-
Ft as default
|
|
454
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { n as z, A, o as g, q as u, F as B, t as G, w as v, B as V, v as j, C as w, x as D } from "./element-CRfWpZos.js";
|
|
2
|
-
const F = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "w-full border border-dashed border-(--md-border) rounded",
|
|
5
|
-
style: { "min-height": "10px" }
|
|
6
|
-
}, W = /* @__PURE__ */ z({
|
|
7
|
-
__name: "RowPreviewRow",
|
|
8
|
-
props: {
|
|
9
|
-
row: {},
|
|
10
|
-
scale: {},
|
|
11
|
-
depth: {}
|
|
12
|
-
},
|
|
13
|
-
setup(s) {
|
|
14
|
-
const S = D(
|
|
15
|
-
() => import("./RowPreviewChildren-DQoyExvw.js")
|
|
16
|
-
), C = s;
|
|
17
|
-
function p(e) {
|
|
18
|
-
var o;
|
|
19
|
-
const r = e == null ? void 0 : e.backgroundGradient;
|
|
20
|
-
if ((r == null ? void 0 : r.useGradient) === !0 && Array.isArray((o = r == null ? void 0 : r.gradient) == null ? void 0 : o.colors) && r.gradient.colors.length >= 2) {
|
|
21
|
-
const { type: a, direction: c, colors: i } = r.gradient, t = i.map((d) => `${d.color} ${d.position}%`).join(", ");
|
|
22
|
-
return a === "radial" ? `radial-gradient(circle at center, ${t})` : `linear-gradient(${c}, ${t})`;
|
|
23
|
-
}
|
|
24
|
-
return (e == null ? void 0 : e.backgroundColor) ?? "transparent";
|
|
25
|
-
}
|
|
26
|
-
const P = A(() => {
|
|
27
|
-
var n, o, a, c, i, t, d, l;
|
|
28
|
-
const e = C.row, r = {
|
|
29
|
-
display: "flex",
|
|
30
|
-
flexDirection: "row",
|
|
31
|
-
background: p(e),
|
|
32
|
-
padding: `${((n = e.padding) == null ? void 0 : n.top) ?? 0}px ${((o = e.padding) == null ? void 0 : o.right) ?? 0}px ${((a = e.padding) == null ? void 0 : a.bottom) ?? 0}px ${((c = e.padding) == null ? void 0 : c.left) ?? 0}px`,
|
|
33
|
-
alignItems: "stretch",
|
|
34
|
-
border: `${((i = e.border) == null ? void 0 : i.width) ?? 0}px ${((t = e.border) == null ? void 0 : t.style) ?? "solid"} ${((d = e.border) == null ? void 0 : d.color) ?? "transparent"}`,
|
|
35
|
-
borderRadius: `${((l = e.border) == null ? void 0 : l.radius) ?? 0}px`,
|
|
36
|
-
gap: `${e.gap ?? 0}px`,
|
|
37
|
-
overflow: "hidden"
|
|
38
|
-
};
|
|
39
|
-
return e.backgroundImage && (r.backgroundImage = `url(${e.backgroundImage})`, r.backgroundSize = e.backgroundSize ?? "cover", r.backgroundPosition = e.backgroundPosition ?? "center center"), r;
|
|
40
|
-
});
|
|
41
|
-
function I(e, r) {
|
|
42
|
-
var l, b, h, x, $, f, m, k, y;
|
|
43
|
-
const n = {
|
|
44
|
-
top: "flex-start",
|
|
45
|
-
middle: "center",
|
|
46
|
-
bottom: "flex-end"
|
|
47
|
-
}, o = e.width ?? 50, a = ((l = r == null ? void 0 : r.columns) == null ? void 0 : l.length) || 1, c = (r == null ? void 0 : r.gap) ?? 0, i = a > 1 ? c * (a - 1) / a : 0, t = i > 0 ? `calc(${o}% - ${i}px)` : `${o}%`, d = {
|
|
48
|
-
flex: `0 0 ${t}`,
|
|
49
|
-
width: t,
|
|
50
|
-
maxWidth: t,
|
|
51
|
-
boxSizing: "border-box",
|
|
52
|
-
background: p(e),
|
|
53
|
-
padding: `${((b = e.padding) == null ? void 0 : b.top) ?? 10}px ${((h = e.padding) == null ? void 0 : h.right) ?? 10}px ${((x = e.padding) == null ? void 0 : x.bottom) ?? 10}px ${(($ = e.padding) == null ? void 0 : $.left) ?? 10}px`,
|
|
54
|
-
border: `${((f = e.border) == null ? void 0 : f.width) ?? 0}px ${((m = e.border) == null ? void 0 : m.style) ?? "solid"} ${((k = e.border) == null ? void 0 : k.color) ?? "transparent"}`,
|
|
55
|
-
borderRadius: `${((y = e.border) == null ? void 0 : y.radius) ?? 0}px`,
|
|
56
|
-
overflow: "hidden",
|
|
57
|
-
minWidth: "0",
|
|
58
|
-
display: "flex",
|
|
59
|
-
flexDirection: "column",
|
|
60
|
-
justifyContent: n[e.verticalAlign] ?? "flex-start"
|
|
61
|
-
};
|
|
62
|
-
return e.backgroundImage && (d.backgroundImage = `url(${e.backgroundImage})`, d.backgroundSize = e.backgroundSize ?? "cover", d.backgroundPosition = e.backgroundPosition ?? "center center", d.minHeight = "14px"), d;
|
|
63
|
-
}
|
|
64
|
-
return (e, r) => (s.depth ?? 0) < 5 ? (g(), u("div", {
|
|
65
|
-
key: 0,
|
|
66
|
-
style: v(P.value),
|
|
67
|
-
class: "w-full"
|
|
68
|
-
}, [
|
|
69
|
-
(g(!0), u(B, null, G(s.row.columns ?? [], (n) => (g(), u("div", {
|
|
70
|
-
key: n.id,
|
|
71
|
-
style: v(I(n, s.row)),
|
|
72
|
-
class: "overflow-hidden shrink-0"
|
|
73
|
-
}, [
|
|
74
|
-
V(j(S), {
|
|
75
|
-
children: n.children ?? n.components ?? [],
|
|
76
|
-
scale: s.scale,
|
|
77
|
-
depth: (s.depth ?? 0) + 1
|
|
78
|
-
}, null, 8, ["children", "scale", "depth"]),
|
|
79
|
-
(n.children ?? n.components ?? []).length === 0 ? (g(), u("div", F)) : w("", !0)
|
|
80
|
-
], 4))), 128))
|
|
81
|
-
], 4)) : w("", !0);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
export {
|
|
85
|
-
W as default
|
|
86
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { defineComponent as z, defineAsyncComponent as A, computed as G, openBlock as g, createElementBlock as u, normalizeStyle as v, Fragment as B, renderList as V, createVNode as j, unref as D, createCommentVNode as w } from "vue";
|
|
2
|
-
const N = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "w-full border border-dashed border-(--md-border) rounded",
|
|
5
|
-
style: { "min-height": "10px" }
|
|
6
|
-
}, E = /* @__PURE__ */ z({
|
|
7
|
-
__name: "RowPreviewRow",
|
|
8
|
-
props: {
|
|
9
|
-
row: {},
|
|
10
|
-
scale: {},
|
|
11
|
-
depth: {}
|
|
12
|
-
},
|
|
13
|
-
setup(s) {
|
|
14
|
-
const S = A(
|
|
15
|
-
() => import("./RowPreviewChildren-yl3aB7hb.js")
|
|
16
|
-
), P = s;
|
|
17
|
-
function p(e) {
|
|
18
|
-
var o;
|
|
19
|
-
const r = e == null ? void 0 : e.backgroundGradient;
|
|
20
|
-
if ((r == null ? void 0 : r.useGradient) === !0 && Array.isArray((o = r == null ? void 0 : r.gradient) == null ? void 0 : o.colors) && r.gradient.colors.length >= 2) {
|
|
21
|
-
const { type: i, direction: c, colors: a } = r.gradient, t = a.map((d) => `${d.color} ${d.position}%`).join(", ");
|
|
22
|
-
return i === "radial" ? `radial-gradient(circle at center, ${t})` : `linear-gradient(${c}, ${t})`;
|
|
23
|
-
}
|
|
24
|
-
return (e == null ? void 0 : e.backgroundColor) ?? "transparent";
|
|
25
|
-
}
|
|
26
|
-
const C = G(() => {
|
|
27
|
-
var n, o, i, c, a, t, d, l;
|
|
28
|
-
const e = P.row, r = {
|
|
29
|
-
display: "flex",
|
|
30
|
-
flexDirection: "row",
|
|
31
|
-
background: p(e),
|
|
32
|
-
padding: `${((n = e.padding) == null ? void 0 : n.top) ?? 0}px ${((o = e.padding) == null ? void 0 : o.right) ?? 0}px ${((i = e.padding) == null ? void 0 : i.bottom) ?? 0}px ${((c = e.padding) == null ? void 0 : c.left) ?? 0}px`,
|
|
33
|
-
alignItems: "stretch",
|
|
34
|
-
border: `${((a = e.border) == null ? void 0 : a.width) ?? 0}px ${((t = e.border) == null ? void 0 : t.style) ?? "solid"} ${((d = e.border) == null ? void 0 : d.color) ?? "transparent"}`,
|
|
35
|
-
borderRadius: `${((l = e.border) == null ? void 0 : l.radius) ?? 0}px`,
|
|
36
|
-
gap: `${e.gap ?? 0}px`,
|
|
37
|
-
overflow: "hidden"
|
|
38
|
-
};
|
|
39
|
-
return e.backgroundImage && (r.backgroundImage = `url(${e.backgroundImage})`, r.backgroundSize = e.backgroundSize ?? "cover", r.backgroundPosition = e.backgroundPosition ?? "center center"), r;
|
|
40
|
-
});
|
|
41
|
-
function I(e, r) {
|
|
42
|
-
var l, b, h, x, $, f, m, k, y;
|
|
43
|
-
const n = {
|
|
44
|
-
top: "flex-start",
|
|
45
|
-
middle: "center",
|
|
46
|
-
bottom: "flex-end"
|
|
47
|
-
}, o = e.width ?? 50, i = ((l = r == null ? void 0 : r.columns) == null ? void 0 : l.length) || 1, c = (r == null ? void 0 : r.gap) ?? 0, a = i > 1 ? c * (i - 1) / i : 0, t = a > 0 ? `calc(${o}% - ${a}px)` : `${o}%`, d = {
|
|
48
|
-
flex: `0 0 ${t}`,
|
|
49
|
-
width: t,
|
|
50
|
-
maxWidth: t,
|
|
51
|
-
boxSizing: "border-box",
|
|
52
|
-
background: p(e),
|
|
53
|
-
padding: `${((b = e.padding) == null ? void 0 : b.top) ?? 10}px ${((h = e.padding) == null ? void 0 : h.right) ?? 10}px ${((x = e.padding) == null ? void 0 : x.bottom) ?? 10}px ${(($ = e.padding) == null ? void 0 : $.left) ?? 10}px`,
|
|
54
|
-
border: `${((f = e.border) == null ? void 0 : f.width) ?? 0}px ${((m = e.border) == null ? void 0 : m.style) ?? "solid"} ${((k = e.border) == null ? void 0 : k.color) ?? "transparent"}`,
|
|
55
|
-
borderRadius: `${((y = e.border) == null ? void 0 : y.radius) ?? 0}px`,
|
|
56
|
-
overflow: "hidden",
|
|
57
|
-
minWidth: "0",
|
|
58
|
-
display: "flex",
|
|
59
|
-
flexDirection: "column",
|
|
60
|
-
justifyContent: n[e.verticalAlign] ?? "flex-start"
|
|
61
|
-
};
|
|
62
|
-
return e.backgroundImage && (d.backgroundImage = `url(${e.backgroundImage})`, d.backgroundSize = e.backgroundSize ?? "cover", d.backgroundPosition = e.backgroundPosition ?? "center center", d.minHeight = "14px"), d;
|
|
63
|
-
}
|
|
64
|
-
return (e, r) => (s.depth ?? 0) < 5 ? (g(), u("div", {
|
|
65
|
-
key: 0,
|
|
66
|
-
style: v(C.value),
|
|
67
|
-
class: "w-full"
|
|
68
|
-
}, [
|
|
69
|
-
(g(!0), u(B, null, V(s.row.columns ?? [], (n) => (g(), u("div", {
|
|
70
|
-
key: n.id,
|
|
71
|
-
style: v(I(n, s.row)),
|
|
72
|
-
class: "overflow-hidden shrink-0"
|
|
73
|
-
}, [
|
|
74
|
-
j(D(S), {
|
|
75
|
-
children: n.children ?? n.components ?? [],
|
|
76
|
-
scale: s.scale,
|
|
77
|
-
depth: (s.depth ?? 0) + 1
|
|
78
|
-
}, null, 8, ["children", "scale", "depth"]),
|
|
79
|
-
(n.children ?? n.components ?? []).length === 0 ? (g(), u("div", N)) : w("", !0)
|
|
80
|
-
], 4))), 128))
|
|
81
|
-
], 4)) : w("", !0);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
export {
|
|
85
|
-
E as default
|
|
86
|
-
};
|