@templatical/editor 0.12.0 → 0.12.1
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/{CloudEditor-F5YV5hE3.js → CloudEditor-CB16QzKM.js} +1 -1
- package/dist/{CountdownToolbar-CDy9_2Yj.js → CountdownToolbar-Dol7Q0Pv.js} +1 -1
- package/dist/{NumberWithSuffix-Cd7bz1Wk.js → NumberWithSuffix-Bp40ik4l.js} +101 -79
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{CloudEditor-OO8hWAVp.js → CloudEditor-DSeihOan.js} +2 -2
- package/dist/cdn/chunks/{CloudEditor-OO8hWAVp.js.map → CloudEditor-DSeihOan.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BXjDFRHI.js → CountdownToolbar-BQn0Kj0X.js} +2 -2
- package/dist/cdn/chunks/{CountdownToolbar-BXjDFRHI.js.map → CountdownToolbar-BQn0Kj0X.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-ZuJ2ePB0.js → NumberWithSuffix-cdWjAK6y.js} +139 -118
- package/dist/cdn/chunks/NumberWithSuffix-cdWjAK6y.js.map +1 -0
- package/dist/cdn/chunks/{de-DpBN9H7-.js → de-BpseTWOA.js} +4 -2
- package/dist/cdn/chunks/{de-DpBN9H7-.js.map → de-BpseTWOA.js.map} +1 -1
- package/dist/cdn/chunks/{en-BhHtdIiU.js → en-VGIQ0WNq.js} +4 -2
- package/dist/cdn/chunks/{en-BhHtdIiU.js.map → en-VGIQ0WNq.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-Bth5a93y.js → pt-BR-zAqpLQbW.js} +4 -2
- package/dist/cdn/chunks/{pt-BR-Bth5a93y.js.map → pt-BR-zAqpLQbW.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-DwPomkBw.js → renderer-C0vdAODQ.js} +2 -2
- package/dist/cdn/chunks/{renderer-DwPomkBw.js.map → renderer-C0vdAODQ.js.map} +1 -1
- package/dist/cdn/chunks/{styles-D45rgVq8.js → styles-LfeoSNRA.js} +434 -430
- package/dist/cdn/chunks/{styles-D45rgVq8.js.map → styles-LfeoSNRA.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +7 -7
- package/dist/{de-DpBN9H7-.js → de-BpseTWOA.js} +3 -1
- package/dist/{en-BhHtdIiU.js → en-VGIQ0WNq.js} +3 -1
- package/dist/{pt-BR-Bth5a93y.js → pt-BR-zAqpLQbW.js} +3 -1
- package/dist/style.css +1 -1
- package/dist/{styles-Dp4mJuCM.js → styles-DSm9Ijxt.js} +469 -465
- package/dist/templatical-editor.js +6 -6
- package/package.json +7 -7
- package/dist/cdn/chunks/NumberWithSuffix-ZuJ2ePB0.js.map +0 -1
|
@@ -4,10 +4,10 @@ import { A as at, D as ot, F as st, G as ct, K as lt, N as ut, O as dt, R as ft,
|
|
|
4
4
|
import { t as Et } from "./readableTextColor-f8Kykfnh.js";
|
|
5
5
|
import { t as Dt } from "./CountdownBlock-hYoJdVOt.js";
|
|
6
6
|
import { t as Ot } from "./blockTypeIcons-CpGPHppB.js";
|
|
7
|
-
import { _ as kt, c as At, f as U, g as jt, h as W, l as Mt, m as G, p as K,
|
|
8
|
-
import { i as q, n as J, r as Y, t as
|
|
7
|
+
import { _ as kt, c as At, f as U, g as jt, h as W, l as Mt, m as G, p as K, r as Nt, t as Pt } from "./styleConstants-lGobwiLH.js";
|
|
8
|
+
import { i as q, n as J, r as Y, t as Ft } from "./NumberWithSuffix-cdWjAK6y.js";
|
|
9
9
|
//#region src/utils/resolveLintOptions.ts
|
|
10
|
-
function
|
|
10
|
+
function It(e) {
|
|
11
11
|
return {
|
|
12
12
|
...e.lint,
|
|
13
13
|
locale: e.locale
|
|
@@ -15,19 +15,19 @@ function Ft(e) {
|
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
18
|
-
var
|
|
18
|
+
var Lt = ["aria-label"], Rt = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
|
|
21
|
-
},
|
|
21
|
+
}, zt = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Bt = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, Vt = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, Ht = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
24
|
-
},
|
|
24
|
+
}, Ut = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
27
|
-
},
|
|
27
|
+
}, Wt = { class: "tpl:relative" }, Gt = {
|
|
28
28
|
class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
|
|
29
29
|
style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
|
|
30
|
-
},
|
|
30
|
+
}, Kt = 96, qt = /*#__PURE__*/ Ze(/* @__PURE__ */ A({
|
|
31
31
|
__name: "Canvas",
|
|
32
32
|
props: {
|
|
33
33
|
viewport: {},
|
|
@@ -71,7 +71,7 @@ var It = ["aria-label"], Lt = {
|
|
|
71
71
|
case "mobile": return 375;
|
|
72
72
|
default: return i.content.settings.width;
|
|
73
73
|
}
|
|
74
|
-
}), te = g(() => P.value +
|
|
74
|
+
}), te = g(() => P.value + Kt * 2), ne = g(() => ({ fontFamily: i.content.settings.fontFamily })), I = g(() => N.value.length === 0 && !i.previewMode), L = f(0), R = g(() => I.value && L.value > 0);
|
|
75
75
|
function B() {
|
|
76
76
|
I.value && (L.value += 1);
|
|
77
77
|
}
|
|
@@ -149,14 +149,14 @@ var It = ["aria-label"], Lt = {
|
|
|
149
149
|
onDragleave: le,
|
|
150
150
|
onDrop: de
|
|
151
151
|
}, {
|
|
152
|
-
default: u(() => [I.value ? (o(), _("div",
|
|
153
|
-
T("div",
|
|
152
|
+
default: u(() => [I.value ? (o(), _("div", Rt, [
|
|
153
|
+
T("div", zt, [j(y(Ct), {
|
|
154
154
|
size: 48,
|
|
155
155
|
"stroke-width": 1
|
|
156
156
|
})]),
|
|
157
|
-
T("p",
|
|
158
|
-
T("p",
|
|
159
|
-
A.value && y(p) ? (o(), _("p",
|
|
157
|
+
T("p", Bt, h(y(d).canvas.noBlocks), 1),
|
|
158
|
+
T("p", Vt, h(y(d).canvas.dragHint), 1),
|
|
159
|
+
A.value && y(p) ? (o(), _("p", Ht, [
|
|
160
160
|
k(h(y(d).canvas.aiHintChat) + " ", 1),
|
|
161
161
|
T("button", {
|
|
162
162
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
@@ -167,7 +167,7 @@ var It = ["aria-label"], Lt = {
|
|
|
167
167
|
}), k(" " + h(y(p).aiMenu.aiAssistant), 1)]),
|
|
168
168
|
k(" " + h(y(d).canvas.aiHintChatSuffix), 1)
|
|
169
169
|
])) : v("", !0),
|
|
170
|
-
M.value && y(p) ? (o(), _("p",
|
|
170
|
+
M.value && y(p) ? (o(), _("p", Ut, [
|
|
171
171
|
k(h(y(d).canvas.aiHintDesign) + " ", 1),
|
|
172
172
|
T("button", {
|
|
173
173
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
@@ -181,7 +181,7 @@ var It = ["aria-label"], Lt = {
|
|
|
181
181
|
])) : v("", !0), (o(!0), _(O, null, c(N.value, (t) => r((o(), _("div", {
|
|
182
182
|
key: t.id,
|
|
183
183
|
class: "tpl-block-item"
|
|
184
|
-
}, [T("div",
|
|
184
|
+
}, [T("div", Wt, [V(t.id) ? (o(), _("div", {
|
|
185
185
|
key: 0,
|
|
186
186
|
class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
|
|
187
187
|
style: D({
|
|
@@ -194,7 +194,7 @@ var It = ["aria-label"], Lt = {
|
|
|
194
194
|
backgroundColor: V(t.id).color,
|
|
195
195
|
color: y(Et)(V(t.id).color)
|
|
196
196
|
})
|
|
197
|
-
}, [T("span",
|
|
197
|
+
}, [T("span", Gt, h(V(t.id).name.charAt(0)), 1), k(" " + h(V(t.id).name), 1)], 4)], 4)) : v("", !0), j(be, {
|
|
198
198
|
block: t,
|
|
199
199
|
"is-selected": !e.previewMode && e.selectedBlockId === t.id && !V(t.id),
|
|
200
200
|
viewport: e.viewport,
|
|
@@ -225,9 +225,9 @@ var It = ["aria-label"], Lt = {
|
|
|
225
225
|
"modelValue",
|
|
226
226
|
"disabled",
|
|
227
227
|
"class"
|
|
228
|
-
])], 6)], 12,
|
|
228
|
+
])], 6)], 12, Lt)], 4));
|
|
229
229
|
}
|
|
230
|
-
}), [["__scopeId", "data-v-a9a1158b"]]),
|
|
230
|
+
}), [["__scopeId", "data-v-a9a1158b"]]), Jt = A({
|
|
231
231
|
name: "CustomBlockStylesheets",
|
|
232
232
|
setup() {
|
|
233
233
|
let t = l(le, null);
|
|
@@ -240,7 +240,7 @@ var It = ["aria-label"], Lt = {
|
|
|
240
240
|
});
|
|
241
241
|
//#endregion
|
|
242
242
|
//#region src/utils/resolvePaletteBlocks.ts
|
|
243
|
-
function
|
|
243
|
+
function Yt(e, t) {
|
|
244
244
|
if (!t || t.length === 0) return {
|
|
245
245
|
items: e,
|
|
246
246
|
unknown: []
|
|
@@ -259,24 +259,24 @@ function Jt(e, t) {
|
|
|
259
259
|
}
|
|
260
260
|
//#endregion
|
|
261
261
|
//#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
262
|
-
var
|
|
262
|
+
var Xt = ["aria-label"], Zt = {
|
|
263
263
|
key: 0,
|
|
264
264
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
265
|
-
},
|
|
265
|
+
}, Qt = ["aria-label"], $t = {
|
|
266
266
|
key: 0,
|
|
267
267
|
class: "tpl:flex-1 tpl:truncate tpl:text-sm tpl:font-medium"
|
|
268
|
-
},
|
|
268
|
+
}, en = {
|
|
269
269
|
key: 1,
|
|
270
270
|
class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]"
|
|
271
|
-
},
|
|
271
|
+
}, tn = [
|
|
272
272
|
"data-palette-type",
|
|
273
273
|
"aria-label",
|
|
274
274
|
"onClick",
|
|
275
275
|
"onKeydown"
|
|
276
|
-
],
|
|
276
|
+
], nn = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:scale-105" }, rn = {
|
|
277
277
|
key: 0,
|
|
278
278
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
279
|
-
},
|
|
279
|
+
}, an = /* @__PURE__ */ A({
|
|
280
280
|
__name: "Sidebar",
|
|
281
281
|
setup(e) {
|
|
282
282
|
let { t, format: n } = z(), { t: r } = Re(), i = l(B, []), s = l(P, void 0), d = l(it, void 0), p = l(se, null), m = l(De, {}), b = g(() => (m.savedModules?.moduleCount.value ?? 0) > 0), S = f(!1), C = f(!1);
|
|
@@ -316,7 +316,7 @@ var Yt = ["aria-label"], Xt = {
|
|
|
316
316
|
label: e.name,
|
|
317
317
|
isCustom: !0,
|
|
318
318
|
icon: e.icon
|
|
319
|
-
}))), ne = g(() => [...N.value, ...te.value]), re = g(() =>
|
|
319
|
+
}))), ne = g(() => [...N.value, ...te.value]), re = g(() => Yt(ne.value, s)), F = g(() => re.value.items), I = /* @__PURE__ */ new Set();
|
|
320
320
|
M(() => re.value.unknown, (e) => {
|
|
321
321
|
for (let t of e) I.has(t) || (I.add(t), he.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
|
|
322
322
|
}, { immediate: !0 });
|
|
@@ -349,7 +349,7 @@ var Yt = ["aria-label"], Xt = {
|
|
|
349
349
|
onMouseleave: w,
|
|
350
350
|
onFocusin: i[2] ||= (e) => S.value = !0,
|
|
351
351
|
onFocusout: i[3] ||= (e) => S.value = !1
|
|
352
|
-
}, [b.value && y(r) ? (o(), _("div",
|
|
352
|
+
}, [b.value && y(r) ? (o(), _("div", Zt, [T("button", {
|
|
353
353
|
type: "button",
|
|
354
354
|
"aria-label": y(t).sidebarNav.browseModules,
|
|
355
355
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)]",
|
|
@@ -361,9 +361,9 @@ var Yt = ["aria-label"], Xt = {
|
|
|
361
361
|
"stroke-width": 1.5,
|
|
362
362
|
class: "tpl:shrink-0"
|
|
363
363
|
}),
|
|
364
|
-
S.value ? (o(), _("span",
|
|
365
|
-
S.value ? (o(), _("span",
|
|
366
|
-
], 12,
|
|
364
|
+
S.value ? (o(), _("span", $t, h(y(r).modules.title), 1)) : v("", !0),
|
|
365
|
+
S.value ? (o(), _("span", en, h(y(m).savedModules?.moduleCount.value ?? 0), 1)) : v("", !0)
|
|
366
|
+
], 12, Qt)])) : v("", !0), j(y(ee), {
|
|
367
367
|
"model-value": F.value,
|
|
368
368
|
group: {
|
|
369
369
|
name: "blocks",
|
|
@@ -387,7 +387,7 @@ var Yt = ["aria-label"], Xt = {
|
|
|
387
387
|
style: D({ justifyContent: S.value ? "flex-start" : "center" }),
|
|
388
388
|
onClick: (t) => ie(e),
|
|
389
389
|
onKeydown: (t) => ae(t, e)
|
|
390
|
-
}, [T("div",
|
|
390
|
+
}, [T("div", nn, [y(Ot)[e.type] ? (o(), x(a(y(Ot)[e.type]), {
|
|
391
391
|
key: 0,
|
|
392
392
|
size: 20,
|
|
393
393
|
"stroke-width": 1.5
|
|
@@ -395,14 +395,14 @@ var Yt = ["aria-label"], Xt = {
|
|
|
395
395
|
key: 1,
|
|
396
396
|
icon: e.icon,
|
|
397
397
|
size: 20
|
|
398
|
-
}, null, 8, ["icon"])) : v("", !0)]), S.value ? (o(), _("span",
|
|
398
|
+
}, null, 8, ["icon"])) : v("", !0)]), S.value ? (o(), _("span", rn, h(e.label), 1)) : v("", !0)], 44, tn))), 128))]),
|
|
399
399
|
_: 1
|
|
400
|
-
}, 8, ["model-value"])], 44,
|
|
400
|
+
}, 8, ["model-value"])], 44, Xt));
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
//#endregion
|
|
404
404
|
//#region src/composables/useMergeTagField.ts
|
|
405
|
-
function
|
|
405
|
+
function on(e) {
|
|
406
406
|
let { modelValue: t, emit: r, elementRef: a } = e, { canRequestMergeTag: o, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: d, syntax: p } = N(), m = f(!1), h = !1, _ = !1;
|
|
407
407
|
n() && i(() => {
|
|
408
408
|
_ = !0;
|
|
@@ -484,10 +484,10 @@ function an(e) {
|
|
|
484
484
|
}
|
|
485
485
|
//#endregion
|
|
486
486
|
//#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
|
|
487
|
-
var
|
|
487
|
+
var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip"], un = {
|
|
488
488
|
key: 2,
|
|
489
489
|
class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
490
|
-
},
|
|
490
|
+
}, dn = ["aria-label", "title"], fn = /* @__PURE__ */ A({
|
|
491
491
|
__name: "MergeTagSegments",
|
|
492
492
|
props: {
|
|
493
493
|
segments: {},
|
|
@@ -515,7 +515,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
515
515
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
516
516
|
color: "var(--tpl-primary)"
|
|
517
517
|
}
|
|
518
|
-
}, h(e.label), 9,
|
|
518
|
+
}, h(e.label), 9, cn)) : e.type === "logicMergeTag" ? (o(), _("span", {
|
|
519
519
|
key: 1,
|
|
520
520
|
class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
|
|
521
521
|
"data-tooltip": e.value,
|
|
@@ -524,7 +524,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
524
524
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
525
525
|
color: "var(--tpl-primary)"
|
|
526
526
|
}
|
|
527
|
-
}, h(e.keyword), 9,
|
|
527
|
+
}, h(e.keyword), 9, ln)) : (o(), _("span", un, h(e.value), 1))], 64))), 128)), T("button", {
|
|
528
528
|
type: "button",
|
|
529
529
|
class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all hover:tpl:text-[var(--tpl-danger)] hover:tpl:opacity-100",
|
|
530
530
|
"aria-label": y(r).mergeTag.remove,
|
|
@@ -533,13 +533,13 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
533
533
|
}, [j(y(Fe), {
|
|
534
534
|
size: 12,
|
|
535
535
|
"stroke-width": 2.5
|
|
536
|
-
})], 8,
|
|
536
|
+
})], 8, dn)], 42, sn));
|
|
537
537
|
}
|
|
538
|
-
}),
|
|
538
|
+
}), pn = [
|
|
539
539
|
"aria-label",
|
|
540
540
|
"title",
|
|
541
541
|
"disabled"
|
|
542
|
-
],
|
|
542
|
+
], mn = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", hn = /* @__PURE__ */ A({
|
|
543
543
|
__name: "MergeTagInsertButton",
|
|
544
544
|
props: { disabled: { type: Boolean } },
|
|
545
545
|
emits: ["insert"],
|
|
@@ -547,7 +547,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
547
547
|
let { t } = z();
|
|
548
548
|
return (n, r) => (o(), _("button", {
|
|
549
549
|
type: "button",
|
|
550
|
-
class: w([
|
|
550
|
+
class: w([mn, "tpl:mt-1.5"]),
|
|
551
551
|
"aria-label": y(t).mergeTag.insert,
|
|
552
552
|
title: y(t).mergeTag.insert,
|
|
553
553
|
disabled: e.disabled,
|
|
@@ -555,13 +555,13 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
555
555
|
}, [j(y(vt), {
|
|
556
556
|
size: 12,
|
|
557
557
|
"stroke-width": 2
|
|
558
|
-
}), k(" " + h(y(t).mergeTag.insert), 1)], 10,
|
|
558
|
+
}), k(" " + h(y(t).mergeTag.insert), 1)], 10, pn));
|
|
559
559
|
}
|
|
560
|
-
}),
|
|
560
|
+
}), gn = { key: 0 }, _n = { key: 1 }, vn = [
|
|
561
561
|
"value",
|
|
562
562
|
"placeholder",
|
|
563
563
|
"rows"
|
|
564
|
-
],
|
|
564
|
+
], yn = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", bn = "tpl:flex tpl:w-full tpl:min-h-20 tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", xn = /* @__PURE__ */ A({
|
|
565
565
|
__name: "MergeTagTextarea",
|
|
566
566
|
props: {
|
|
567
567
|
modelValue: {},
|
|
@@ -570,41 +570,41 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
570
570
|
},
|
|
571
571
|
emits: ["update:modelValue"],
|
|
572
572
|
setup(e, { emit: t }) {
|
|
573
|
-
let n = e, r = t, i = f(null), { segments: a, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: u, startEditing: d, stopEditing: p, handleInput: h, clearValue: g, insertMergeTag: b } =
|
|
573
|
+
let n = e, r = t, i = f(null), { segments: a, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: u, startEditing: d, stopEditing: p, handleInput: h, clearValue: g, insertMergeTag: b } = on({
|
|
574
574
|
modelValue: () => n.modelValue,
|
|
575
575
|
emit: (e) => r("update:modelValue", e),
|
|
576
576
|
elementRef: i
|
|
577
577
|
});
|
|
578
|
-
return (t, n) => y(s) && !y(u) ? (o(), _("div",
|
|
578
|
+
return (t, n) => y(s) && !y(u) ? (o(), _("div", gn, [j(fn, {
|
|
579
579
|
segments: y(a),
|
|
580
|
-
"display-class":
|
|
580
|
+
"display-class": bn,
|
|
581
581
|
onEdit: y(d),
|
|
582
582
|
onClear: y(g)
|
|
583
583
|
}, null, 8, [
|
|
584
584
|
"segments",
|
|
585
585
|
"onEdit",
|
|
586
586
|
"onClear"
|
|
587
|
-
]), y(c) ? (o(), x(
|
|
587
|
+
]), y(c) ? (o(), x(hn, {
|
|
588
588
|
key: 0,
|
|
589
589
|
disabled: y(l),
|
|
590
590
|
onInsert: y(b)
|
|
591
|
-
}, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : (o(), _("div",
|
|
591
|
+
}, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : (o(), _("div", _n, [T("textarea", {
|
|
592
592
|
ref_key: "textareaRef",
|
|
593
593
|
ref: i,
|
|
594
|
-
class: w(
|
|
594
|
+
class: w(yn),
|
|
595
595
|
value: e.modelValue,
|
|
596
596
|
placeholder: e.placeholder,
|
|
597
597
|
rows: e.rows,
|
|
598
598
|
onInput: n[0] ||= (...e) => y(h) && y(h)(...e),
|
|
599
599
|
onBlur: n[1] ||= (...e) => y(p) && y(p)(...e),
|
|
600
600
|
onKeydown: n[2] ||= m((...e) => y(p) && y(p)(...e), ["escape"])
|
|
601
|
-
}, null, 40,
|
|
601
|
+
}, null, 40, vn), y(c) ? (o(), x(hn, {
|
|
602
602
|
key: 0,
|
|
603
603
|
disabled: y(l),
|
|
604
604
|
onInsert: y(b)
|
|
605
605
|
}, null, 8, ["disabled", "onInsert"])) : v("", !0)]));
|
|
606
606
|
}
|
|
607
|
-
}),
|
|
607
|
+
}), Sn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Cn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, wn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Tn = { class: "tpl:mb-3.5" }, En = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, Dn = ["onClick"], On = { class: "tpl:flex tpl:items-stretch" }, kn = ["value"], An = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, jn = { class: "tpl:mb-3.5" }, Mn = ["value"], Nn = ["value"], Pn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fn = ["value"], In = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Ln = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Rn = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, zn = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Bn = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, Vn = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Hn = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, Un = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Wn = { class: "tpl:mb-1 tpl:last:mb-0" }, Gn = { class: "tpl:mb-1 tpl:last:mb-0" }, Kn = { class: "tpl:mb-1 tpl:last:mb-0" }, qn = 150, Jn = /* @__PURE__ */ A({
|
|
608
608
|
__name: "TemplateSettings",
|
|
609
609
|
props: { settings: {} },
|
|
610
610
|
emits: ["update"],
|
|
@@ -627,14 +627,14 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
627
627
|
label: "800px"
|
|
628
628
|
}
|
|
629
629
|
];
|
|
630
|
-
return (t, n) => (o(), _("aside",
|
|
630
|
+
return (t, n) => (o(), _("aside", Sn, [T("div", Cn, [
|
|
631
631
|
T("div", { class: w(y(Mt)) }, [
|
|
632
|
-
T("div",
|
|
632
|
+
T("div", wn, [j(y(_t), {
|
|
633
633
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
634
634
|
size: 14,
|
|
635
635
|
"stroke-width": 2
|
|
636
636
|
}), T("span", null, h(y(i).templateSettings.layout), 1)]),
|
|
637
|
-
T("div",
|
|
637
|
+
T("div", Tn, [T("label", { class: w(y(W)) }, h(y(i).templateSettings.widthPreset), 3), T("div", En, [(o(), _(O, null, c(u, (t) => T("button", {
|
|
638
638
|
key: t.value,
|
|
639
639
|
class: "tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
640
640
|
style: D({
|
|
@@ -643,25 +643,25 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
643
643
|
boxShadow: e.settings.width === t.value ? "var(--tpl-shadow)" : "none"
|
|
644
644
|
}),
|
|
645
645
|
onClick: (e) => r("update", { width: t.value })
|
|
646
|
-
}, h(t.label), 13,
|
|
647
|
-
T("div", null, [T("label", { class: w(y(W)) }, h(y(i).templateSettings.customWidth), 3), T("div",
|
|
646
|
+
}, h(t.label), 13, Dn)), 64))])]),
|
|
647
|
+
T("div", null, [T("label", { class: w(y(W)) }, h(y(i).templateSettings.customWidth), 3), T("div", On, [T("input", {
|
|
648
648
|
type: "number",
|
|
649
649
|
class: w(y(K)),
|
|
650
650
|
value: e.settings.width,
|
|
651
651
|
min: "300",
|
|
652
652
|
max: "900",
|
|
653
653
|
onInput: n[0] ||= (e) => r("update", { width: Number(e.target.value) })
|
|
654
|
-
}, null, 42,
|
|
654
|
+
}, null, 42, kn), T("span", { class: w(y(G)) }, "px", 2)])])
|
|
655
655
|
], 2),
|
|
656
656
|
T("div", { class: w(y(Mt)) }, [
|
|
657
|
-
T("div",
|
|
657
|
+
T("div", An, [j(y(mt), {
|
|
658
658
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
659
659
|
size: 14,
|
|
660
660
|
"stroke-width": 2
|
|
661
661
|
}), T("span", null, h(y(i).templateSettings.appearance), 1)]),
|
|
662
|
-
T("div",
|
|
662
|
+
T("div", jn, [T("label", { class: w(y(W)) }, h(y(i).templateSettings.backgroundColor), 3), j(q, {
|
|
663
663
|
"model-value": e.settings.backgroundColor,
|
|
664
|
-
placeholder: y(
|
|
664
|
+
placeholder: y(Pt),
|
|
665
665
|
"onUpdate:modelValue": n[1] ||= (e) => r("update", { backgroundColor: e })
|
|
666
666
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
667
667
|
T("div", null, [T("label", { class: w(y(W)) }, h(y(i).templateSettings.fontFamily), 3), T("select", {
|
|
@@ -671,9 +671,9 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
671
671
|
}, [(o(!0), _(O, null, c(s.value, (e) => (o(), _("option", {
|
|
672
672
|
key: e.value,
|
|
673
673
|
value: e.value
|
|
674
|
-
}, h(e.label), 9,
|
|
674
|
+
}, h(e.label), 9, Nn))), 128))], 42, Mn)])
|
|
675
675
|
], 2),
|
|
676
|
-
T("div", { class: w(y(Mt)) }, [T("div",
|
|
676
|
+
T("div", { class: w(y(Mt)) }, [T("div", Pn, [j(y(ft), {
|
|
677
677
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
678
678
|
size: 14,
|
|
679
679
|
"stroke-width": 2
|
|
@@ -688,34 +688,34 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
688
688
|
autocapitalize: "off",
|
|
689
689
|
autocomplete: "off",
|
|
690
690
|
onInput: n[3] ||= (e) => r("update", { locale: e.target.value.trim() || void 0 })
|
|
691
|
-
}, null, 42,
|
|
692
|
-
T("p",
|
|
691
|
+
}, null, 42, Fn),
|
|
692
|
+
T("p", In, h(y(i).templateSettings.contentLocaleHint), 1)
|
|
693
693
|
])], 2),
|
|
694
|
-
T("div", { class: w(y(Mt)) }, [T("div",
|
|
694
|
+
T("div", { class: w(y(Mt)) }, [T("div", Ln, [j(y(rt), {
|
|
695
695
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
696
696
|
size: 14,
|
|
697
697
|
"stroke-width": 2
|
|
698
|
-
}), T("span", null, h(y(i).templateSettings.preheaderText), 1)]), T("div", null, [j(
|
|
698
|
+
}), T("span", null, h(y(i).templateSettings.preheaderText), 1)]), T("div", null, [j(xn, {
|
|
699
699
|
"model-value": e.settings.preheaderText ?? "",
|
|
700
700
|
placeholder: y(i).templateSettings.preheaderTextPlaceholder,
|
|
701
701
|
rows: 2,
|
|
702
702
|
"onUpdate:modelValue": n[4] ||= (e) => r("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
|
|
703
|
-
}, null, 8, ["model-value", "placeholder"]), T("div",
|
|
704
|
-
T("div",
|
|
703
|
+
}, null, 8, ["model-value", "placeholder"]), T("div", Rn, [T("span", zn, h(y(i).templateSettings.preheaderTextHint), 1), T("span", Bn, h((e.settings.preheaderText ?? "").length) + "/" + h(qn), 1)])])], 2),
|
|
704
|
+
T("div", Vn, [T("div", Hn, [j(y(He), {
|
|
705
705
|
size: 14,
|
|
706
706
|
"stroke-width": 2
|
|
707
|
-
}), T("span", null, h(y(i).templateSettings.tips), 1)]), T("ul",
|
|
708
|
-
T("li",
|
|
709
|
-
T("li",
|
|
710
|
-
T("li",
|
|
707
|
+
}), T("span", null, h(y(i).templateSettings.tips), 1)]), T("ul", Un, [
|
|
708
|
+
T("li", Wn, h(y(i).templateSettings.tip1), 1),
|
|
709
|
+
T("li", Gn, h(y(i).templateSettings.tip2), 1),
|
|
710
|
+
T("li", Kn, h(y(i).templateSettings.tip3), 1)
|
|
711
711
|
])])
|
|
712
712
|
])]));
|
|
713
713
|
}
|
|
714
|
-
}),
|
|
714
|
+
}), Yn = { key: 0 }, Xn = { key: 1 }, Zn = [
|
|
715
715
|
"type",
|
|
716
716
|
"value",
|
|
717
717
|
"placeholder"
|
|
718
|
-
],
|
|
718
|
+
], Qn = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", X = /*#__PURE__*/ Ze(/* @__PURE__ */ A({
|
|
719
719
|
__name: "MergeTagInput",
|
|
720
720
|
props: {
|
|
721
721
|
modelValue: {},
|
|
@@ -728,14 +728,14 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
728
728
|
},
|
|
729
729
|
emits: ["update:modelValue"],
|
|
730
730
|
setup(e, { emit: t }) {
|
|
731
|
-
let n = e, r = t, i = f(null), { segments: a, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: u, startEditing: d, stopEditing: p, handleInput: h, clearValue: g, insertMergeTag: b } =
|
|
731
|
+
let n = e, r = t, i = f(null), { segments: a, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: u, startEditing: d, stopEditing: p, handleInput: h, clearValue: g, insertMergeTag: b } = on({
|
|
732
732
|
modelValue: () => n.modelValue,
|
|
733
733
|
emit: (e) => r("update:modelValue", e),
|
|
734
734
|
elementRef: i
|
|
735
735
|
});
|
|
736
|
-
return (t, n) => y(s) && !y(u) ? (o(), _("div",
|
|
736
|
+
return (t, n) => y(s) && !y(u) ? (o(), _("div", Yn, [j(fn, {
|
|
737
737
|
segments: y(a),
|
|
738
|
-
"display-class":
|
|
738
|
+
"display-class": Qn,
|
|
739
739
|
pulse: e.pulse,
|
|
740
740
|
onEdit: y(d),
|
|
741
741
|
onClear: y(g)
|
|
@@ -744,11 +744,11 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
744
744
|
"pulse",
|
|
745
745
|
"onEdit",
|
|
746
746
|
"onClear"
|
|
747
|
-
]), y(c) ? (o(), x(
|
|
747
|
+
]), y(c) ? (o(), x(hn, {
|
|
748
748
|
key: 0,
|
|
749
749
|
disabled: y(l),
|
|
750
750
|
onInsert: y(b)
|
|
751
|
-
}, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : (o(), _("div",
|
|
751
|
+
}, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : (o(), _("div", Xn, [T("input", {
|
|
752
752
|
ref_key: "inputRef",
|
|
753
753
|
ref: i,
|
|
754
754
|
type: e.type,
|
|
@@ -758,19 +758,19 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
758
758
|
onInput: n[0] ||= (...e) => y(h) && y(h)(...e),
|
|
759
759
|
onBlur: n[1] ||= (...e) => y(p) && y(p)(...e),
|
|
760
760
|
onKeydown: n[2] ||= m((...e) => y(p) && y(p)(...e), ["escape"])
|
|
761
|
-
}, null, 42,
|
|
761
|
+
}, null, 42, Zn), y(c) ? (o(), x(hn, {
|
|
762
762
|
key: 0,
|
|
763
763
|
disabled: y(l),
|
|
764
764
|
onInsert: y(b)
|
|
765
765
|
}, null, 8, ["disabled", "onInsert"])) : v("", !0)]));
|
|
766
766
|
}
|
|
767
|
-
}), [["__scopeId", "data-v-358207dd"]]),
|
|
767
|
+
}), [["__scopeId", "data-v-358207dd"]]), $n = { class: "tpl:mb-3.5" }, er = ["value"], tr = { value: "" }, nr = ["value"], rr = { class: "tpl:mb-3.5" }, ir = { class: "tpl:mb-3.5" }, ar = {
|
|
768
768
|
key: 0,
|
|
769
769
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
770
|
-
},
|
|
770
|
+
}, or = ["checked"], sr = { class: "tpl:mb-3.5" }, cr = { class: "tpl:mb-3.5" }, lr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, ur = { class: "tpl:mb-3.5" }, dr = { class: "tpl:flex tpl:items-stretch" }, fr = ["value"], pr = { class: "tpl:mb-3.5" }, mr = { class: "tpl:flex tpl:items-stretch" }, hr = ["value"], gr = { class: "tpl:mb-3.5" }, _r = ["value"], vr = { value: "auto" }, yr = { value: "full" }, br = { value: "custom" }, xr = {
|
|
771
771
|
key: 0,
|
|
772
772
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
773
|
-
},
|
|
773
|
+
}, Sr = ["value"], Cr = 200, wr = /* @__PURE__ */ A({
|
|
774
774
|
__name: "ButtonToolbar",
|
|
775
775
|
props: {
|
|
776
776
|
block: {},
|
|
@@ -788,7 +788,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
788
788
|
return;
|
|
789
789
|
}
|
|
790
790
|
if (e === "custom") {
|
|
791
|
-
s("width", typeof n.block.width == "number" ? n.block.width :
|
|
791
|
+
s("width", typeof n.block.width == "number" ? n.block.width : Cr);
|
|
792
792
|
return;
|
|
793
793
|
}
|
|
794
794
|
s("width", void 0);
|
|
@@ -798,20 +798,20 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
798
798
|
!Number.isFinite(t) || t <= 0 || s("width", t);
|
|
799
799
|
}
|
|
800
800
|
return (t, n) => (o(), _(O, null, [
|
|
801
|
-
T("div",
|
|
801
|
+
T("div", $n, [T("label", { class: w(y(W)) }, h(y(i).button.fontFamily), 3), T("select", {
|
|
802
802
|
class: w(y(U)),
|
|
803
803
|
value: e.block.fontFamily || "",
|
|
804
804
|
onChange: n[0] ||= (e) => s("fontFamily", e.target.value || void 0)
|
|
805
|
-
}, [T("option",
|
|
805
|
+
}, [T("option", tr, h(y(i).button.inheritFont), 1), (o(!0), _(O, null, c(e.fontFamilies, (e) => (o(), _("option", {
|
|
806
806
|
key: e.value,
|
|
807
807
|
value: e.value
|
|
808
|
-
}, h(e.label), 9,
|
|
809
|
-
T("div",
|
|
808
|
+
}, h(e.label), 9, nr))), 128))], 42, er)]),
|
|
809
|
+
T("div", rr, [T("label", { class: w(y(W)) }, h(y(i).button.text), 3), j(X, {
|
|
810
810
|
"model-value": e.block.text,
|
|
811
811
|
type: "text",
|
|
812
812
|
"onUpdate:modelValue": n[1] ||= (e) => s("text", e)
|
|
813
813
|
}, null, 8, ["model-value"])]),
|
|
814
|
-
T("div",
|
|
814
|
+
T("div", ir, [
|
|
815
815
|
T("label", { class: w(y(W)) }, h(y(i).button.url), 3),
|
|
816
816
|
j(X, {
|
|
817
817
|
"model-value": e.block.url,
|
|
@@ -819,58 +819,58 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
819
819
|
placeholder: y(i).button.urlPlaceholder,
|
|
820
820
|
"onUpdate:modelValue": n[2] ||= (e) => s("url", e)
|
|
821
821
|
}, null, 8, ["model-value", "placeholder"]),
|
|
822
|
-
e.block.url ? (o(), _("label",
|
|
822
|
+
e.block.url ? (o(), _("label", ar, [T("input", {
|
|
823
823
|
type: "checkbox",
|
|
824
824
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
825
825
|
checked: e.block.openInNewTab ?? !1,
|
|
826
826
|
onChange: n[3] ||= (e) => s("openInNewTab", e.target.checked)
|
|
827
|
-
}, null, 40,
|
|
827
|
+
}, null, 40, or), k(" " + h(y(i).button.openInNewTab), 1)])) : v("", !0)
|
|
828
828
|
]),
|
|
829
|
-
T("div",
|
|
829
|
+
T("div", sr, [T("label", { class: w(y(W)) }, h(y(i).button.background), 3), j(q, {
|
|
830
830
|
"model-value": e.block.backgroundColor,
|
|
831
831
|
"onUpdate:modelValue": n[4] ||= (e) => s("backgroundColor", e)
|
|
832
832
|
}, null, 8, ["model-value"])]),
|
|
833
|
-
T("div",
|
|
833
|
+
T("div", cr, [T("label", { class: w(y(W)) }, h(y(i).button.textColor), 3), j(q, {
|
|
834
834
|
"model-value": e.block.textColor,
|
|
835
835
|
"onUpdate:modelValue": n[5] ||= (e) => s("textColor", e)
|
|
836
836
|
}, null, 8, ["model-value"])]),
|
|
837
|
-
T("div",
|
|
837
|
+
T("div", lr, [T("div", ur, [T("label", { class: w(y(W)) }, h(y(i).button.borderRadius), 3), T("div", dr, [T("input", {
|
|
838
838
|
type: "number",
|
|
839
839
|
class: w(y(K)),
|
|
840
840
|
value: e.block.borderRadius,
|
|
841
841
|
min: "0",
|
|
842
842
|
max: "50",
|
|
843
843
|
onInput: n[6] ||= (e) => s("borderRadius", Number(e.target.value))
|
|
844
|
-
}, null, 42,
|
|
844
|
+
}, null, 42, fr), T("span", { class: w(y(G)) }, "px", 2)])]), T("div", pr, [T("label", { class: w(y(W)) }, h(y(i).button.fontSize), 3), T("div", mr, [T("input", {
|
|
845
845
|
type: "number",
|
|
846
846
|
class: w(y(K)),
|
|
847
847
|
value: e.block.fontSize,
|
|
848
848
|
min: "10",
|
|
849
849
|
max: "36",
|
|
850
850
|
onInput: n[7] ||= (e) => s("fontSize", Number(e.target.value))
|
|
851
|
-
}, null, 42,
|
|
852
|
-
T("div",
|
|
851
|
+
}, null, 42, hr), T("span", { class: w(y(G)) }, "px", 2)])])]),
|
|
852
|
+
T("div", gr, [
|
|
853
853
|
T("label", { class: w(y(W)) }, h(y(i).button.width), 3),
|
|
854
854
|
T("select", {
|
|
855
855
|
class: w(y(U)),
|
|
856
856
|
value: a.value,
|
|
857
857
|
onChange: n[8] ||= (e) => l(e.target.value)
|
|
858
858
|
}, [
|
|
859
|
-
T("option",
|
|
860
|
-
T("option",
|
|
861
|
-
T("option",
|
|
862
|
-
], 42,
|
|
863
|
-
a.value === "custom" ? (o(), _("div",
|
|
859
|
+
T("option", vr, h(y(i).button.widthAuto), 1),
|
|
860
|
+
T("option", yr, h(y(i).button.fullWidth), 1),
|
|
861
|
+
T("option", br, h(y(i).button.widthCustom), 1)
|
|
862
|
+
], 42, _r),
|
|
863
|
+
a.value === "custom" ? (o(), _("div", xr, [T("input", {
|
|
864
864
|
type: "number",
|
|
865
865
|
class: w(y(K)),
|
|
866
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
866
|
+
value: typeof e.block.width == "number" ? e.block.width : Cr,
|
|
867
867
|
min: "20",
|
|
868
868
|
onInput: n[9] ||= (e) => u(e.target.value)
|
|
869
|
-
}, null, 42,
|
|
869
|
+
}, null, 42, Sr), T("span", { class: w(y(G)) }, "px", 2)])) : v("", !0)
|
|
870
870
|
])
|
|
871
871
|
], 64));
|
|
872
872
|
}
|
|
873
|
-
}),
|
|
873
|
+
}), Tr = { class: "spacing-control" }, Er = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Dr = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Or = { class: "tpl:flex tpl:items-center" }, kr = ["aria-label"], Ar = ["value", "aria-label"], jr = ["aria-label"], Mr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Nr = { class: "tpl:flex tpl:items-center" }, Pr = ["aria-label"], Fr = ["value", "aria-label"], Ir = ["aria-label"], Lr = ["aria-label", "title"], Rr = { class: "tpl:flex tpl:items-center" }, zr = ["aria-label"], Br = ["value", "aria-label"], Vr = ["aria-label"], Hr = { class: "tpl:flex tpl:items-center" }, Ur = ["aria-label"], Wr = ["value", "aria-label"], Gr = ["aria-label"], Z = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] active:tpl:bg-[var(--tpl-bg-active)]", Kr = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", qr = /*#__PURE__*/ Ze(/* @__PURE__ */ A({
|
|
874
874
|
__name: "SpacingControl",
|
|
875
875
|
props: {
|
|
876
876
|
modelValue: {},
|
|
@@ -917,8 +917,8 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
|
-
return (t, n) => (o(), _("div",
|
|
921
|
-
T("div",
|
|
920
|
+
return (t, n) => (o(), _("div", Tr, [T("label", Er, h(e.label), 1), T("div", Dr, [
|
|
921
|
+
T("div", Or, [
|
|
922
922
|
T("button", {
|
|
923
923
|
"aria-label": y(i).spacingControl.decreaseTop,
|
|
924
924
|
class: w([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -926,15 +926,15 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
926
926
|
}, [j(y(bt), {
|
|
927
927
|
size: 12,
|
|
928
928
|
"stroke-width": 2
|
|
929
|
-
})], 10,
|
|
929
|
+
})], 10, kr),
|
|
930
930
|
T("input", {
|
|
931
931
|
type: "number",
|
|
932
|
-
class: w(
|
|
932
|
+
class: w(Kr),
|
|
933
933
|
value: e.modelValue.top,
|
|
934
934
|
"aria-label": y(i).spacingControl.top,
|
|
935
935
|
min: "0",
|
|
936
936
|
onInput: n[1] ||= (e) => l("top", Number(e.target.value))
|
|
937
|
-
}, null, 40,
|
|
937
|
+
}, null, 40, Ar),
|
|
938
938
|
T("button", {
|
|
939
939
|
"aria-label": y(i).spacingControl.increaseTop,
|
|
940
940
|
class: w([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -942,10 +942,10 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
942
942
|
}, [j(y(H), {
|
|
943
943
|
size: 12,
|
|
944
944
|
"stroke-width": 2
|
|
945
|
-
})], 10,
|
|
945
|
+
})], 10, jr)
|
|
946
946
|
]),
|
|
947
|
-
T("div",
|
|
948
|
-
T("div",
|
|
947
|
+
T("div", Mr, [
|
|
948
|
+
T("div", Nr, [
|
|
949
949
|
T("button", {
|
|
950
950
|
"aria-label": y(i).spacingControl.decreaseLeft,
|
|
951
951
|
class: w([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -953,15 +953,15 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
953
953
|
}, [j(y(bt), {
|
|
954
954
|
size: 12,
|
|
955
955
|
"stroke-width": 2
|
|
956
|
-
})], 10,
|
|
956
|
+
})], 10, Pr),
|
|
957
957
|
T("input", {
|
|
958
958
|
type: "number",
|
|
959
|
-
class: w(
|
|
959
|
+
class: w(Kr),
|
|
960
960
|
value: e.modelValue.left,
|
|
961
961
|
"aria-label": y(i).spacingControl.left,
|
|
962
962
|
min: "0",
|
|
963
963
|
onInput: n[4] ||= (e) => l("left", Number(e.target.value))
|
|
964
|
-
}, null, 40,
|
|
964
|
+
}, null, 40, Fr),
|
|
965
965
|
T("button", {
|
|
966
966
|
"aria-label": y(i).spacingControl.increaseLeft,
|
|
967
967
|
class: w([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -969,7 +969,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
969
969
|
}, [j(y(H), {
|
|
970
970
|
size: 12,
|
|
971
971
|
"stroke-width": 2
|
|
972
|
-
})], 10,
|
|
972
|
+
})], 10, Ir)
|
|
973
973
|
]),
|
|
974
974
|
T("button", {
|
|
975
975
|
class: w(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", s.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)]"]),
|
|
@@ -984,8 +984,8 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
984
984
|
key: 1,
|
|
985
985
|
size: 14,
|
|
986
986
|
"stroke-width": 2
|
|
987
|
-
}))], 10,
|
|
988
|
-
T("div",
|
|
987
|
+
}))], 10, Lr),
|
|
988
|
+
T("div", Rr, [
|
|
989
989
|
T("button", {
|
|
990
990
|
"aria-label": y(i).spacingControl.decreaseRight,
|
|
991
991
|
class: w([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -993,15 +993,15 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
993
993
|
}, [j(y(bt), {
|
|
994
994
|
size: 12,
|
|
995
995
|
"stroke-width": 2
|
|
996
|
-
})], 10,
|
|
996
|
+
})], 10, zr),
|
|
997
997
|
T("input", {
|
|
998
998
|
type: "number",
|
|
999
|
-
class: w(
|
|
999
|
+
class: w(Kr),
|
|
1000
1000
|
value: e.modelValue.right,
|
|
1001
1001
|
"aria-label": y(i).spacingControl.right,
|
|
1002
1002
|
min: "0",
|
|
1003
1003
|
onInput: n[7] ||= (e) => l("right", Number(e.target.value))
|
|
1004
|
-
}, null, 40,
|
|
1004
|
+
}, null, 40, Br),
|
|
1005
1005
|
T("button", {
|
|
1006
1006
|
"aria-label": y(i).spacingControl.increaseRight,
|
|
1007
1007
|
class: w([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -1009,10 +1009,10 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1009
1009
|
}, [j(y(H), {
|
|
1010
1010
|
size: 12,
|
|
1011
1011
|
"stroke-width": 2
|
|
1012
|
-
})], 10,
|
|
1012
|
+
})], 10, Vr)
|
|
1013
1013
|
])
|
|
1014
1014
|
]),
|
|
1015
|
-
T("div",
|
|
1015
|
+
T("div", Hr, [
|
|
1016
1016
|
T("button", {
|
|
1017
1017
|
"aria-label": y(i).spacingControl.decreaseBottom,
|
|
1018
1018
|
class: w([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -1020,15 +1020,15 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1020
1020
|
}, [j(y(bt), {
|
|
1021
1021
|
size: 12,
|
|
1022
1022
|
"stroke-width": 2
|
|
1023
|
-
})], 10,
|
|
1023
|
+
})], 10, Ur),
|
|
1024
1024
|
T("input", {
|
|
1025
1025
|
type: "number",
|
|
1026
|
-
class: w(
|
|
1026
|
+
class: w(Kr),
|
|
1027
1027
|
value: e.modelValue.bottom,
|
|
1028
1028
|
"aria-label": y(i).spacingControl.bottom,
|
|
1029
1029
|
min: "0",
|
|
1030
1030
|
onInput: n[10] ||= (e) => l("bottom", Number(e.target.value))
|
|
1031
|
-
}, null, 40,
|
|
1031
|
+
}, null, 40, Wr),
|
|
1032
1032
|
T("button", {
|
|
1033
1033
|
"aria-label": y(i).spacingControl.increaseBottom,
|
|
1034
1034
|
class: w([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -1036,11 +1036,11 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1036
1036
|
}, [j(y(H), {
|
|
1037
1037
|
size: 12,
|
|
1038
1038
|
"stroke-width": 2
|
|
1039
|
-
})], 10,
|
|
1039
|
+
})], 10, Gr)
|
|
1040
1040
|
])
|
|
1041
1041
|
])]));
|
|
1042
1042
|
}
|
|
1043
|
-
}), [["__scopeId", "data-v-9a9c8a07"]]),
|
|
1043
|
+
}), [["__scopeId", "data-v-9a9c8a07"]]), Jr = { class: "tpl:mt-3" }, Yr = /* @__PURE__ */ A({
|
|
1044
1044
|
__name: "CollapsibleSection",
|
|
1045
1045
|
props: {
|
|
1046
1046
|
title: {},
|
|
@@ -1057,21 +1057,21 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1057
1057
|
class: w(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1058
1058
|
size: 12,
|
|
1059
1059
|
"stroke-width": 2
|
|
1060
|
-
}, null, 8, ["class"]), T("span", null, h(e.title), 1)]), r(T("div",
|
|
1060
|
+
}, null, 8, ["class"]), T("span", null, h(e.title), 1)]), r(T("div", Jr, [t(n.$slots, "default")], 512), [[E, e.open]])], 2));
|
|
1061
1061
|
}
|
|
1062
|
-
}),
|
|
1062
|
+
}), Xr = { class: "tpl:space-y-2" }, Zr = ["checked", "onChange"], Qr = { class: "tpl:space-y-2" }, $r = ["value"], ei = { value: "" }, ti = ["label"], ni = ["value"], ri = ["value"], ii = {
|
|
1063
1063
|
key: 0,
|
|
1064
1064
|
value: "__custom__"
|
|
1065
|
-
},
|
|
1065
|
+
}, ai = {
|
|
1066
1066
|
key: 0,
|
|
1067
1067
|
class: "tpl:space-y-2"
|
|
1068
|
-
},
|
|
1068
|
+
}, oi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, si = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ci = { class: "tpl:flex tpl:justify-end" }, li = ["disabled"], ui = {
|
|
1069
1069
|
key: 0,
|
|
1070
1070
|
class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
|
|
1071
|
-
},
|
|
1071
|
+
}, di = { class: "tpl:space-y-1" }, fi = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, pi = {
|
|
1072
1072
|
key: 0,
|
|
1073
1073
|
class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1074
|
-
},
|
|
1074
|
+
}, mi = /* @__PURE__ */ A({
|
|
1075
1075
|
__name: "CommonBlockSettings",
|
|
1076
1076
|
props: {
|
|
1077
1077
|
block: {},
|
|
@@ -1134,13 +1134,13 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1134
1134
|
t[e] = !t[e], i("update", { visibility: t });
|
|
1135
1135
|
}
|
|
1136
1136
|
return (t, n) => (o(), _("div", { class: w(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1137
|
-
j(
|
|
1137
|
+
j(Yr, {
|
|
1138
1138
|
title: y(s).blockSettings.spacing,
|
|
1139
1139
|
open: b.has("spacing"),
|
|
1140
1140
|
"no-border": e.isFirstSection,
|
|
1141
1141
|
onToggle: n[1] ||= (e) => A("spacing")
|
|
1142
1142
|
}, {
|
|
1143
|
-
default: u(() => [j(
|
|
1143
|
+
default: u(() => [j(qr, {
|
|
1144
1144
|
label: y(s).blockSettings.padding,
|
|
1145
1145
|
"model-value": e.block.styles.padding,
|
|
1146
1146
|
"onUpdate:modelValue": n[0] ||= (e) => F("padding", e)
|
|
@@ -1151,24 +1151,23 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1151
1151
|
"open",
|
|
1152
1152
|
"no-border"
|
|
1153
1153
|
]),
|
|
1154
|
-
j(
|
|
1154
|
+
j(Yr, {
|
|
1155
1155
|
title: y(s).blockSettings.background,
|
|
1156
1156
|
open: b.has("bg"),
|
|
1157
1157
|
onToggle: n[3] ||= (e) => A("bg")
|
|
1158
1158
|
}, {
|
|
1159
1159
|
default: u(() => [T("label", { class: w(y(W)) }, h(y(s).blockSettings.color), 3), j(q, {
|
|
1160
|
-
|
|
1161
|
-
"model-value": e.block.styles.backgroundColor || y("#ffffff"),
|
|
1160
|
+
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1162
1161
|
"onUpdate:modelValue": n[2] ||= (e) => F("backgroundColor", e)
|
|
1163
1162
|
}, null, 8, ["model-value"])]),
|
|
1164
1163
|
_: 1
|
|
1165
1164
|
}, 8, ["title", "open"]),
|
|
1166
|
-
j(
|
|
1165
|
+
j(Yr, {
|
|
1167
1166
|
title: y(s).blockSettings.display,
|
|
1168
1167
|
open: b.has("display"),
|
|
1169
1168
|
onToggle: n[4] ||= (e) => A("display")
|
|
1170
1169
|
}, {
|
|
1171
|
-
default: u(() => [T("div",
|
|
1170
|
+
default: u(() => [T("div", Xr, [(o(), _(O, null, c(ee, (e) => T("label", {
|
|
1172
1171
|
key: e.key,
|
|
1173
1172
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]"
|
|
1174
1173
|
}, [
|
|
@@ -1177,7 +1176,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1177
1176
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
1178
1177
|
checked: I(e.key),
|
|
1179
1178
|
onChange: (t) => L(e.key)
|
|
1180
|
-
}, null, 40,
|
|
1179
|
+
}, null, 40, Zr),
|
|
1181
1180
|
(o(), x(a(e.icon), {
|
|
1182
1181
|
size: 14,
|
|
1183
1182
|
"stroke-width": 1.5
|
|
@@ -1186,13 +1185,13 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1186
1185
|
])), 64))])]),
|
|
1187
1186
|
_: 1
|
|
1188
1187
|
}, 8, ["title", "open"]),
|
|
1189
|
-
N.value ? (o(), x(
|
|
1188
|
+
N.value ? (o(), x(Yr, {
|
|
1190
1189
|
key: 0,
|
|
1191
1190
|
title: y(s).blockSettings.displayCondition,
|
|
1192
1191
|
open: b.has("condition"),
|
|
1193
1192
|
onToggle: n[8] ||= (e) => A("condition")
|
|
1194
1193
|
}, {
|
|
1195
|
-
default: u(() => [T("div",
|
|
1194
|
+
default: u(() => [T("div", Qr, [T("select", {
|
|
1196
1195
|
class: w(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:duration-150 tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1197
1196
|
value: S.value || P.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1198
1197
|
onChange: n[5] ||= (e) => {
|
|
@@ -1209,48 +1208,48 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1209
1208
|
n && i("update", { displayCondition: n });
|
|
1210
1209
|
}
|
|
1211
1210
|
}, [
|
|
1212
|
-
T("option",
|
|
1211
|
+
T("option", ei, h(y(s).blockSettings.noCondition), 1),
|
|
1213
1212
|
(o(!0), _(O, null, c(re.value, (e, t) => (o(), _(O, { key: t }, [t ? (o(), _("optgroup", {
|
|
1214
1213
|
key: 0,
|
|
1215
1214
|
label: String(t)
|
|
1216
1215
|
}, [(o(!0), _(O, null, c(e, (e) => (o(), _("option", {
|
|
1217
1216
|
key: e.label,
|
|
1218
1217
|
value: e.label
|
|
1219
|
-
}, h(e.label), 9,
|
|
1218
|
+
}, h(e.label), 9, ni))), 128))], 8, ti)) : (o(!0), _(O, { key: 1 }, c(e, (e) => (o(), _("option", {
|
|
1220
1219
|
key: e.label,
|
|
1221
1220
|
value: e.label
|
|
1222
|
-
}, h(e.label), 9,
|
|
1223
|
-
y(m) ? (o(), _("option",
|
|
1224
|
-
], 42,
|
|
1225
|
-
T("div", null, [T("label",
|
|
1221
|
+
}, h(e.label), 9, ri))), 128))], 64))), 128)),
|
|
1222
|
+
y(m) ? (o(), _("option", ii, h(y(s).blockSettings.customCondition), 1)) : v("", !0)
|
|
1223
|
+
], 42, $r), S.value || P.value ? (o(), _("div", ai, [
|
|
1224
|
+
T("div", null, [T("label", oi, h(y(s).blockSettings.customConditionBefore), 1), r(T("textarea", {
|
|
1226
1225
|
"onUpdate:modelValue": n[6] ||= (e) => E.value = e,
|
|
1227
1226
|
rows: "2",
|
|
1228
1227
|
class: w(y(jt))
|
|
1229
1228
|
}, null, 2), [[C, E.value]])]),
|
|
1230
|
-
T("div", null, [T("label",
|
|
1229
|
+
T("div", null, [T("label", si, h(y(s).blockSettings.customConditionAfter), 1), r(T("textarea", {
|
|
1231
1230
|
"onUpdate:modelValue": n[7] ||= (e) => D.value = e,
|
|
1232
1231
|
rows: "2",
|
|
1233
1232
|
class: w(y(jt))
|
|
1234
1233
|
}, null, 2), [[C, D.value]])]),
|
|
1235
|
-
T("div",
|
|
1234
|
+
T("div", ci, [T("button", {
|
|
1236
1235
|
type: "button",
|
|
1237
1236
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:opacity-50",
|
|
1238
1237
|
disabled: !E.value.trim(),
|
|
1239
1238
|
onClick: ne
|
|
1240
|
-
}, h(y(s).blockSettings.applyCondition), 9,
|
|
1241
|
-
])) : e.block.displayCondition && !P.value ? (o(), _(O, { key: 1 }, [e.block.displayCondition.description ? (o(), _("p",
|
|
1239
|
+
}, h(y(s).blockSettings.applyCondition), 9, li)])
|
|
1240
|
+
])) : e.block.displayCondition && !P.value ? (o(), _(O, { key: 1 }, [e.block.displayCondition.description ? (o(), _("p", ui, h(e.block.displayCondition.description), 1)) : v("", !0), T("div", di, [T("pre", fi, h(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), _("pre", pi, h(e.block.displayCondition.after), 1)) : v("", !0)])], 64)) : v("", !0)])]),
|
|
1242
1241
|
_: 1
|
|
1243
1242
|
}, 8, ["title", "open"])) : v("", !0)
|
|
1244
1243
|
], 2));
|
|
1245
1244
|
}
|
|
1246
|
-
}),
|
|
1245
|
+
}), hi = ["title"], gi = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, _i = {
|
|
1247
1246
|
key: 1,
|
|
1248
1247
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1249
|
-
},
|
|
1248
|
+
}, vi = [
|
|
1250
1249
|
"aria-checked",
|
|
1251
1250
|
"aria-label",
|
|
1252
1251
|
"disabled"
|
|
1253
|
-
],
|
|
1252
|
+
], yi = /* @__PURE__ */ A({
|
|
1254
1253
|
__name: "BooleanField",
|
|
1255
1254
|
props: {
|
|
1256
1255
|
field: {},
|
|
@@ -1263,14 +1262,14 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1263
1262
|
return (t, i) => (o(), _("div", {
|
|
1264
1263
|
class: "tpl:mb-3.5",
|
|
1265
1264
|
title: e.readOnly ? y(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1266
|
-
}, [T("label", { class: w(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [T("span",
|
|
1265
|
+
}, [T("label", { class: w(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [T("span", gi, [
|
|
1267
1266
|
k(h(e.field.label) + " ", 1),
|
|
1268
1267
|
e.readOnly ? (o(), x(y(at), {
|
|
1269
1268
|
key: 0,
|
|
1270
1269
|
size: 12,
|
|
1271
1270
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1272
1271
|
})) : v("", !0),
|
|
1273
|
-
e.field.required ? (o(), _("span",
|
|
1272
|
+
e.field.required ? (o(), _("span", _i, " * ")) : v("", !0)
|
|
1274
1273
|
]), T("button", {
|
|
1275
1274
|
type: "button",
|
|
1276
1275
|
role: "switch",
|
|
@@ -1283,9 +1282,9 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1283
1282
|
]),
|
|
1284
1283
|
disabled: e.readOnly,
|
|
1285
1284
|
onClick: i[0] ||= (t) => !e.readOnly && n("update:modelValue", !e.modelValue)
|
|
1286
|
-
}, [T("span", { class: w(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", e.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10,
|
|
1285
|
+
}, [T("span", { class: w(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", e.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, vi)], 2)], 8, hi));
|
|
1287
1286
|
}
|
|
1288
|
-
}),
|
|
1287
|
+
}), bi = { class: "tpl:mb-3.5" }, xi = {
|
|
1289
1288
|
key: 1,
|
|
1290
1289
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1291
1290
|
}, Q = /* @__PURE__ */ A({
|
|
@@ -1296,17 +1295,17 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1296
1295
|
readOnly: { type: Boolean }
|
|
1297
1296
|
},
|
|
1298
1297
|
setup(e) {
|
|
1299
|
-
return (n, r) => (o(), _("div",
|
|
1298
|
+
return (n, r) => (o(), _("div", bi, [T("label", { class: w(y(W)) }, [
|
|
1300
1299
|
k(h(e.label) + " ", 1),
|
|
1301
1300
|
e.readOnly ? (o(), x(y(at), {
|
|
1302
1301
|
key: 0,
|
|
1303
1302
|
size: 12,
|
|
1304
1303
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1305
1304
|
})) : v("", !0),
|
|
1306
|
-
e.required ? (o(), _("span",
|
|
1305
|
+
e.required ? (o(), _("span", xi, "*")) : v("", !0)
|
|
1307
1306
|
], 2), t(n.$slots, "default")]));
|
|
1308
1307
|
}
|
|
1309
|
-
}),
|
|
1308
|
+
}), Si = /* @__PURE__ */ A({
|
|
1310
1309
|
__name: "ColorField",
|
|
1311
1310
|
props: {
|
|
1312
1311
|
field: {},
|
|
@@ -1322,8 +1321,8 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1322
1321
|
"read-only": e.readOnly
|
|
1323
1322
|
}, {
|
|
1324
1323
|
default: u(() => [j(q, {
|
|
1325
|
-
"model-value": e.modelValue
|
|
1326
|
-
placeholder: e.field.placeholder
|
|
1324
|
+
"model-value": e.modelValue,
|
|
1325
|
+
placeholder: e.field.placeholder,
|
|
1327
1326
|
disabled: e.readOnly,
|
|
1328
1327
|
title: e.readOnly ? y(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1329
1328
|
"onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
|
|
@@ -1340,11 +1339,11 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1340
1339
|
"read-only"
|
|
1341
1340
|
]));
|
|
1342
1341
|
}
|
|
1343
|
-
}),
|
|
1342
|
+
}), Ci = [
|
|
1344
1343
|
"value",
|
|
1345
1344
|
"placeholder",
|
|
1346
1345
|
"title"
|
|
1347
|
-
],
|
|
1346
|
+
], wi = ["value", "placeholder"], Ti = /* @__PURE__ */ A({
|
|
1348
1347
|
__name: "ImageField",
|
|
1349
1348
|
props: {
|
|
1350
1349
|
field: {},
|
|
@@ -1371,14 +1370,14 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1371
1370
|
placeholder: e.field.placeholder || "https://...",
|
|
1372
1371
|
disabled: "",
|
|
1373
1372
|
title: y(r).customBlocks.dataSource.readOnlyTooltip
|
|
1374
|
-
}, null, 10,
|
|
1373
|
+
}, null, 10, Ci)) : (o(), _("input", {
|
|
1375
1374
|
key: 1,
|
|
1376
1375
|
type: "url",
|
|
1377
1376
|
class: w(y(U)),
|
|
1378
1377
|
value: e.modelValue,
|
|
1379
1378
|
placeholder: e.field.placeholder || "https://...",
|
|
1380
1379
|
onInput: i[0] ||= (e) => n("update:modelValue", e.target.value)
|
|
1381
|
-
}, null, 42,
|
|
1380
|
+
}, null, 42, wi)), s.value && !e.readOnly ? (o(), _("button", {
|
|
1382
1381
|
key: 2,
|
|
1383
1382
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1384
1383
|
onClick: i[1] ||= (e) => c()
|
|
@@ -1393,7 +1392,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1393
1392
|
"read-only"
|
|
1394
1393
|
]));
|
|
1395
1394
|
}
|
|
1396
|
-
}),
|
|
1395
|
+
}), Ei = [
|
|
1397
1396
|
"value",
|
|
1398
1397
|
"placeholder",
|
|
1399
1398
|
"min",
|
|
@@ -1401,7 +1400,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1401
1400
|
"step",
|
|
1402
1401
|
"disabled",
|
|
1403
1402
|
"title"
|
|
1404
|
-
],
|
|
1403
|
+
], Di = /* @__PURE__ */ A({
|
|
1405
1404
|
__name: "NumberField",
|
|
1406
1405
|
props: {
|
|
1407
1406
|
field: {},
|
|
@@ -1427,7 +1426,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1427
1426
|
disabled: e.readOnly,
|
|
1428
1427
|
title: e.readOnly ? y(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1429
1428
|
onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1430
|
-
}, null, 42,
|
|
1429
|
+
}, null, 42, Ei)]),
|
|
1431
1430
|
_: 1
|
|
1432
1431
|
}, 8, [
|
|
1433
1432
|
"label",
|
|
@@ -1435,10 +1434,10 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1435
1434
|
"read-only"
|
|
1436
1435
|
]));
|
|
1437
1436
|
}
|
|
1438
|
-
}),
|
|
1437
|
+
}), Oi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ki = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Ai = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, ji = ["title", "onClick"], Mi = {
|
|
1439
1438
|
key: 1,
|
|
1440
1439
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1441
|
-
},
|
|
1440
|
+
}, Ni = /* @__PURE__ */ A({
|
|
1442
1441
|
__name: "RepeatableField",
|
|
1443
1442
|
props: {
|
|
1444
1443
|
field: {},
|
|
@@ -1470,11 +1469,11 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1470
1469
|
required: e.field.required,
|
|
1471
1470
|
"read-only": e.readOnly
|
|
1472
1471
|
}, {
|
|
1473
|
-
default: u(() => [T("div",
|
|
1472
|
+
default: u(() => [T("div", Oi, [
|
|
1474
1473
|
(o(!0), _(O, null, c(s.value, (t, n) => (o(), _("div", {
|
|
1475
1474
|
key: `${e.field.key}-${n}`,
|
|
1476
1475
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1477
|
-
}, [T("div",
|
|
1476
|
+
}, [T("div", ki, [T("span", Ai, " #" + h(n + 1), 1), d.value && !e.readOnly ? (o(), _("button", {
|
|
1478
1477
|
key: 0,
|
|
1479
1478
|
type: "button",
|
|
1480
1479
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
@@ -1483,7 +1482,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1483
1482
|
}, [j(y(Qe), {
|
|
1484
1483
|
size: 12,
|
|
1485
1484
|
"stroke-width": 2
|
|
1486
|
-
})], 8,
|
|
1485
|
+
})], 8, ji)) : v("", !0)]), (o(!0), _(O, null, c(e.field.fields, (r) => (o(), x(a(y(Hi)(r.type)), {
|
|
1487
1486
|
key: r.key,
|
|
1488
1487
|
field: r,
|
|
1489
1488
|
"model-value": t[r.key],
|
|
@@ -1504,7 +1503,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1504
1503
|
size: 14,
|
|
1505
1504
|
"stroke-width": 2
|
|
1506
1505
|
}), k(" " + h(y(i).customBlocks.fields.addItem), 1)], 2)) : v("", !0),
|
|
1507
|
-
!l.value && !e.readOnly ? (o(), _("p",
|
|
1506
|
+
!l.value && !e.readOnly ? (o(), _("p", Mi, h(y(i).customBlocks.fields.maxItemsReached), 1)) : v("", !0)
|
|
1508
1507
|
])]),
|
|
1509
1508
|
_: 1
|
|
1510
1509
|
}, 8, [
|
|
@@ -1513,11 +1512,11 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1513
1512
|
"read-only"
|
|
1514
1513
|
]));
|
|
1515
1514
|
}
|
|
1516
|
-
}),
|
|
1515
|
+
}), Pi = [
|
|
1517
1516
|
"value",
|
|
1518
1517
|
"disabled",
|
|
1519
1518
|
"title"
|
|
1520
|
-
],
|
|
1519
|
+
], Fi = ["value"], Ii = /* @__PURE__ */ A({
|
|
1521
1520
|
__name: "SelectField",
|
|
1522
1521
|
props: {
|
|
1523
1522
|
field: {},
|
|
@@ -1541,7 +1540,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1541
1540
|
}, [(o(!0), _(O, null, c(e.field.options, (e) => (o(), _("option", {
|
|
1542
1541
|
key: e.value,
|
|
1543
1542
|
value: e.value
|
|
1544
|
-
}, h(e.label), 9,
|
|
1543
|
+
}, h(e.label), 9, Fi))), 128))], 42, Pi)]),
|
|
1545
1544
|
_: 1
|
|
1546
1545
|
}, 8, [
|
|
1547
1546
|
"label",
|
|
@@ -1549,11 +1548,11 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1549
1548
|
"read-only"
|
|
1550
1549
|
]));
|
|
1551
1550
|
}
|
|
1552
|
-
}),
|
|
1551
|
+
}), Li = [
|
|
1553
1552
|
"value",
|
|
1554
1553
|
"placeholder",
|
|
1555
1554
|
"title"
|
|
1556
|
-
],
|
|
1555
|
+
], Ri = /* @__PURE__ */ A({
|
|
1557
1556
|
__name: "TextField",
|
|
1558
1557
|
props: {
|
|
1559
1558
|
field: {},
|
|
@@ -1576,7 +1575,7 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1576
1575
|
placeholder: e.field.placeholder,
|
|
1577
1576
|
disabled: "",
|
|
1578
1577
|
title: y(r).customBlocks.dataSource.readOnlyTooltip
|
|
1579
|
-
}, null, 10,
|
|
1578
|
+
}, null, 10, Li)) : (o(), x(X, {
|
|
1580
1579
|
key: 1,
|
|
1581
1580
|
"model-value": e.modelValue,
|
|
1582
1581
|
placeholder: e.field.placeholder,
|
|
@@ -1589,12 +1588,12 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1589
1588
|
"read-only"
|
|
1590
1589
|
]));
|
|
1591
1590
|
}
|
|
1592
|
-
}),
|
|
1591
|
+
}), zi = [
|
|
1593
1592
|
"value",
|
|
1594
1593
|
"placeholder",
|
|
1595
1594
|
"title"
|
|
1596
|
-
],
|
|
1597
|
-
text:
|
|
1595
|
+
], Bi = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:opacity-60 tpl:cursor-not-allowed", Vi = {
|
|
1596
|
+
text: Ri,
|
|
1598
1597
|
textarea: /* @__PURE__ */ A({
|
|
1599
1598
|
__name: "TextareaField",
|
|
1600
1599
|
props: {
|
|
@@ -1617,8 +1616,8 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1617
1616
|
rows: "3",
|
|
1618
1617
|
disabled: "",
|
|
1619
1618
|
title: y(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1620
|
-
class: w(
|
|
1621
|
-
}, null, 8,
|
|
1619
|
+
class: w(Bi)
|
|
1620
|
+
}, null, 8, zi)) : (o(), x(xn, {
|
|
1622
1621
|
key: 1,
|
|
1623
1622
|
"model-value": e.modelValue,
|
|
1624
1623
|
placeholder: e.field.placeholder,
|
|
@@ -1632,37 +1631,37 @@ var on = ["aria-label", "onKeydown"], sn = ["data-tooltip"], cn = ["data-tooltip
|
|
|
1632
1631
|
]));
|
|
1633
1632
|
}
|
|
1634
1633
|
}),
|
|
1635
|
-
image:
|
|
1636
|
-
color:
|
|
1637
|
-
number:
|
|
1638
|
-
select:
|
|
1639
|
-
boolean:
|
|
1640
|
-
repeatable:
|
|
1634
|
+
image: Ti,
|
|
1635
|
+
color: Si,
|
|
1636
|
+
number: Di,
|
|
1637
|
+
select: Ii,
|
|
1638
|
+
boolean: yi,
|
|
1639
|
+
repeatable: Ni
|
|
1641
1640
|
};
|
|
1642
|
-
function
|
|
1643
|
-
return
|
|
1641
|
+
function Hi(e) {
|
|
1642
|
+
return Vi[e] ?? Ri;
|
|
1644
1643
|
}
|
|
1645
1644
|
//#endregion
|
|
1646
1645
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1647
|
-
var
|
|
1646
|
+
var Ui = {
|
|
1648
1647
|
key: 0,
|
|
1649
1648
|
class: "tpl:p-4"
|
|
1650
|
-
},
|
|
1649
|
+
}, Wi = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Gi = { key: 1 }, Ki = {
|
|
1651
1650
|
key: 0,
|
|
1652
1651
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1653
|
-
},
|
|
1652
|
+
}, qi = {
|
|
1654
1653
|
key: 1,
|
|
1655
1654
|
class: "tpl:mb-4"
|
|
1656
|
-
},
|
|
1655
|
+
}, Ji = {
|
|
1657
1656
|
key: 1,
|
|
1658
1657
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1659
|
-
},
|
|
1658
|
+
}, Yi = {
|
|
1660
1659
|
key: 0,
|
|
1661
1660
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1662
|
-
},
|
|
1661
|
+
}, Xi = {
|
|
1663
1662
|
key: 2,
|
|
1664
1663
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1665
|
-
},
|
|
1664
|
+
}, Zi = /* @__PURE__ */ A({
|
|
1666
1665
|
__name: "CustomBlockToolbar",
|
|
1667
1666
|
props: { block: {} },
|
|
1668
1667
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
@@ -1683,23 +1682,23 @@ var Hi = {
|
|
|
1683
1682
|
[e]: t
|
|
1684
1683
|
});
|
|
1685
1684
|
}
|
|
1686
|
-
return (t, n) => u.value ? (o(), _("div",
|
|
1687
|
-
u.value.description ? (o(), _("p",
|
|
1688
|
-
y(m) ? (o(), _("div",
|
|
1685
|
+
return (t, n) => u.value ? (o(), _("div", Gi, [
|
|
1686
|
+
u.value.description ? (o(), _("p", Ki, h(u.value.description), 1)) : v("", !0),
|
|
1687
|
+
y(m) ? (o(), _("div", qi, [y(b) && !y(d) ? (o(), _("button", {
|
|
1689
1688
|
key: 0,
|
|
1690
1689
|
type: "button",
|
|
1691
1690
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-md tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:bg-[var(--tpl-primary)]",
|
|
1692
1691
|
onClick: n[0] ||= (...e) => y(p) && y(p)(...e)
|
|
1693
|
-
}, h(u.value?.dataSource?.label || y(i).customBlocks.dataSource.fetchButton), 1)) : (o(), _("div",
|
|
1692
|
+
}, h(u.value?.dataSource?.label || y(i).customBlocks.dataSource.fetchButton), 1)) : (o(), _("div", Ji, [y(d) ? (o(), _("div", Yi, h(y(i).customBlocks.dataSource.fetching), 1)) : (o(), _("button", {
|
|
1694
1693
|
key: 1,
|
|
1695
1694
|
type: "button",
|
|
1696
1695
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
|
|
1697
1696
|
onClick: n[1] ||= (...e) => y(p) && y(p)(...e)
|
|
1698
|
-
}, [j(y(Be), { size: 12 }), k(" " + h(y(i).customBlocks.dataSource.changeButton), 1)]))])), y(f) ? (o(), _("p",
|
|
1697
|
+
}, [j(y(Be), { size: 12 }), k(" " + h(y(i).customBlocks.dataSource.changeButton), 1)]))])), y(f) ? (o(), _("p", Xi, [j(y(ne), {
|
|
1699
1698
|
size: 14,
|
|
1700
1699
|
class: "tpl:shrink-0"
|
|
1701
1700
|
}), k(" " + h(y(i).customBlocks.dataSource.fetchError), 1)])) : v("", !0)])) : v("", !0),
|
|
1702
|
-
(o(!0), _(O, null, c(u.value.fields, (t) => (o(), x(a(y(
|
|
1701
|
+
(o(!0), _(O, null, c(u.value.fields, (t) => (o(), x(a(y(Hi)(t.type)), {
|
|
1703
1702
|
key: t.key,
|
|
1704
1703
|
field: t,
|
|
1705
1704
|
"model-value": e.block.fieldValues[t.key],
|
|
@@ -1711,9 +1710,9 @@ var Hi = {
|
|
|
1711
1710
|
"read-only",
|
|
1712
1711
|
"onUpdate:modelValue"
|
|
1713
1712
|
]))), 128))
|
|
1714
|
-
])) : (o(), _("div",
|
|
1713
|
+
])) : (o(), _("div", Ui, [T("p", Wi, h(y(i).customBlocks.toolbar.noDefinition), 1)]));
|
|
1715
1714
|
}
|
|
1716
|
-
}),
|
|
1715
|
+
}), Qi = { class: "tpl:mb-3.5" }, $i = { class: "tpl:mb-3.5" }, ea = { class: "tpl:mb-3.5" }, ta = { class: "tpl:flex tpl:items-stretch" }, na = ["value"], ra = /* @__PURE__ */ A({
|
|
1717
1716
|
__name: "DividerToolbar",
|
|
1718
1717
|
props: { block: {} },
|
|
1719
1718
|
emits: ["update"],
|
|
@@ -1723,7 +1722,7 @@ var Hi = {
|
|
|
1723
1722
|
n("update", { [e]: t });
|
|
1724
1723
|
}
|
|
1725
1724
|
return (t, n) => (o(), _(O, null, [
|
|
1726
|
-
T("div",
|
|
1725
|
+
T("div", Qi, [T("label", { class: w(y(W)) }, h(y(r).divider.style), 3), j(Y, {
|
|
1727
1726
|
options: [
|
|
1728
1727
|
{
|
|
1729
1728
|
value: "solid",
|
|
@@ -1741,27 +1740,27 @@ var Hi = {
|
|
|
1741
1740
|
"model-value": e.block.lineStyle,
|
|
1742
1741
|
"onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
|
|
1743
1742
|
}, null, 8, ["options", "model-value"])]),
|
|
1744
|
-
T("div",
|
|
1743
|
+
T("div", $i, [T("label", { class: w(y(W)) }, h(y(r).divider.color), 3), j(q, {
|
|
1745
1744
|
"model-value": e.block.color,
|
|
1746
1745
|
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
1747
1746
|
}, null, 8, ["model-value"])]),
|
|
1748
|
-
T("div",
|
|
1747
|
+
T("div", ea, [T("label", { class: w(y(W)) }, h(y(r).divider.thickness), 3), T("div", ta, [T("input", {
|
|
1749
1748
|
type: "number",
|
|
1750
1749
|
class: w(y(K)),
|
|
1751
1750
|
value: e.block.thickness,
|
|
1752
1751
|
min: "1",
|
|
1753
1752
|
max: "10",
|
|
1754
1753
|
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
1755
|
-
}, null, 42,
|
|
1754
|
+
}, null, 42, na), T("span", { class: w(y(G)) }, "px", 2)])])
|
|
1756
1755
|
], 64));
|
|
1757
1756
|
}
|
|
1758
|
-
}),
|
|
1757
|
+
}), ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, sa = /* @__PURE__ */ A({
|
|
1759
1758
|
__name: "HtmlToolbar",
|
|
1760
1759
|
props: { block: {} },
|
|
1761
1760
|
emits: ["update"],
|
|
1762
1761
|
setup(e, { emit: t }) {
|
|
1763
1762
|
let n = t, { t: r } = z();
|
|
1764
|
-
return (t, i) => (o(), _("div",
|
|
1763
|
+
return (t, i) => (o(), _("div", ia, [
|
|
1765
1764
|
T("label", { class: w(y(W)) }, h(y(r).html.content), 3),
|
|
1766
1765
|
T("textarea", {
|
|
1767
1766
|
value: e.block.content,
|
|
@@ -1769,23 +1768,23 @@ var Hi = {
|
|
|
1769
1768
|
rows: "10",
|
|
1770
1769
|
class: w(y(jt)),
|
|
1771
1770
|
onInput: i[0] ||= (e) => n("update", { content: e.target.value })
|
|
1772
|
-
}, null, 42,
|
|
1773
|
-
T("p",
|
|
1771
|
+
}, null, 42, aa),
|
|
1772
|
+
T("p", oa, [j(y(He), {
|
|
1774
1773
|
size: 12,
|
|
1775
1774
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1776
1775
|
}), k(" " + h(y(r).html.sanitizationHint), 1)])
|
|
1777
1776
|
]));
|
|
1778
1777
|
}
|
|
1779
|
-
}),
|
|
1778
|
+
}), ca = { class: "tpl:mb-3.5" }, la = {
|
|
1780
1779
|
key: 0,
|
|
1781
1780
|
class: "tpl:mb-3.5"
|
|
1782
|
-
},
|
|
1781
|
+
}, ua = ["value", "placeholder"], da = { class: "tpl:mb-3.5" }, fa = { class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]" }, pa = ["checked"], ma = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, ha = { class: "tpl:mb-3.5" }, ga = ["value"], _a = { value: "full" }, va = { value: "custom" }, ya = {
|
|
1783
1782
|
key: 0,
|
|
1784
1783
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1785
|
-
},
|
|
1784
|
+
}, ba = ["value"], xa = { class: "tpl:mb-3.5" }, Sa = { class: "tpl:mb-3.5" }, Ca = {
|
|
1786
1785
|
key: 0,
|
|
1787
1786
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
1788
|
-
},
|
|
1787
|
+
}, wa = ["checked"], Ta = 350, Ea = /* @__PURE__ */ A({
|
|
1789
1788
|
__name: "ImageToolbar",
|
|
1790
1789
|
props: { block: {} },
|
|
1791
1790
|
emits: ["update"],
|
|
@@ -1806,7 +1805,7 @@ var Hi = {
|
|
|
1806
1805
|
function C(e) {
|
|
1807
1806
|
if (e === "custom") {
|
|
1808
1807
|
let e = n.block.width;
|
|
1809
|
-
(typeof e != "number" || b.includes(e)) && S("width",
|
|
1808
|
+
(typeof e != "number" || b.includes(e)) && S("width", Ta);
|
|
1810
1809
|
return;
|
|
1811
1810
|
}
|
|
1812
1811
|
S("width", e === "full" ? "full" : Number(e));
|
|
@@ -1820,7 +1819,7 @@ var Hi = {
|
|
|
1820
1819
|
c.alive && e && (S("src", e.url), e.alt && (S("alt", e.alt), p.value = !0), d.value = !0, m());
|
|
1821
1820
|
}
|
|
1822
1821
|
return (t, n) => (o(), _(O, null, [
|
|
1823
|
-
T("div",
|
|
1822
|
+
T("div", ca, [
|
|
1824
1823
|
T("label", { class: w(y(W)) }, h(y(i).image.imageUrl), 3),
|
|
1825
1824
|
j(X, {
|
|
1826
1825
|
"model-value": e.block.src,
|
|
@@ -1847,14 +1846,14 @@ var Hi = {
|
|
|
1847
1846
|
"stroke-width": 1.5
|
|
1848
1847
|
}), k(" " + h(y(i).image.browseMedia), 1)])) : v("", !0)
|
|
1849
1848
|
]),
|
|
1850
|
-
y(nt)(e.block.src, y(s)) ? (o(), _("div",
|
|
1849
|
+
y(nt)(e.block.src, y(s)) ? (o(), _("div", la, [T("label", { class: w(y(W)) }, [k(h(y(i).image.placeholderUrl) + " ", 1), n[9] ||= T("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, h("(optional)"), -1)], 2), T("input", {
|
|
1851
1850
|
type: "url",
|
|
1852
1851
|
class: w(y(U)),
|
|
1853
1852
|
value: e.block.placeholderUrl || "",
|
|
1854
1853
|
placeholder: y(i).image.placeholderUrlPlaceholder,
|
|
1855
1854
|
onInput: n[1] ||= (e) => S("placeholderUrl", e.target.value)
|
|
1856
|
-
}, null, 42,
|
|
1857
|
-
T("div",
|
|
1855
|
+
}, null, 42, ua)])) : v("", !0),
|
|
1856
|
+
T("div", da, [
|
|
1858
1857
|
T("label", { class: w(y(W)) }, h(y(i).image.altText), 3),
|
|
1859
1858
|
j(X, {
|
|
1860
1859
|
"model-value": e.block.alt,
|
|
@@ -1869,35 +1868,35 @@ var Hi = {
|
|
|
1869
1868
|
"pulse",
|
|
1870
1869
|
"disabled"
|
|
1871
1870
|
]),
|
|
1872
|
-
T("label",
|
|
1871
|
+
T("label", fa, [T("input", {
|
|
1873
1872
|
type: "checkbox",
|
|
1874
1873
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
1875
1874
|
checked: e.block.decorative === !0,
|
|
1876
1875
|
onChange: n[3] ||= (e) => S("decorative", e.target.checked)
|
|
1877
|
-
}, null, 40,
|
|
1876
|
+
}, null, 40, pa), T("span", null, [k(h(y(i).image.decorative) + " ", 1), T("span", ma, h(y(i).image.decorativeHint), 1)])])
|
|
1878
1877
|
]),
|
|
1879
|
-
T("div",
|
|
1878
|
+
T("div", ha, [
|
|
1880
1879
|
T("label", { class: w(y(W)) }, h(y(i).image.width), 3),
|
|
1881
1880
|
T("select", {
|
|
1882
1881
|
class: w(y(U)),
|
|
1883
1882
|
value: x.value,
|
|
1884
1883
|
onChange: n[4] ||= (e) => C(e.target.value)
|
|
1885
1884
|
}, [
|
|
1886
|
-
T("option",
|
|
1885
|
+
T("option", _a, h(y(i).image.fullWidth), 1),
|
|
1887
1886
|
n[10] ||= T("option", { value: "300" }, "300px", -1),
|
|
1888
1887
|
n[11] ||= T("option", { value: "400" }, "400px", -1),
|
|
1889
1888
|
n[12] ||= T("option", { value: "500" }, "500px", -1),
|
|
1890
|
-
T("option",
|
|
1891
|
-
], 42,
|
|
1892
|
-
x.value === "custom" ? (o(), _("div",
|
|
1889
|
+
T("option", va, h(y(i).image.widthCustom), 1)
|
|
1890
|
+
], 42, ga),
|
|
1891
|
+
x.value === "custom" ? (o(), _("div", ya, [T("input", {
|
|
1893
1892
|
type: "number",
|
|
1894
1893
|
class: w(y(K)),
|
|
1895
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
1894
|
+
value: typeof e.block.width == "number" ? e.block.width : Ta,
|
|
1896
1895
|
min: "20",
|
|
1897
1896
|
onInput: n[5] ||= (e) => E(e.target.value)
|
|
1898
|
-
}, null, 42,
|
|
1897
|
+
}, null, 42, ba), T("span", { class: w(y(G)) }, "px", 2)])) : v("", !0)
|
|
1899
1898
|
]),
|
|
1900
|
-
T("div",
|
|
1899
|
+
T("div", xa, [T("label", { class: w(y(W)) }, h(y(i).title.align), 3), j(Y, {
|
|
1901
1900
|
options: [
|
|
1902
1901
|
{
|
|
1903
1902
|
value: "left",
|
|
@@ -1915,7 +1914,7 @@ var Hi = {
|
|
|
1915
1914
|
"model-value": e.block.align,
|
|
1916
1915
|
"onUpdate:modelValue": n[6] ||= (e) => S("align", e)
|
|
1917
1916
|
}, null, 8, ["options", "model-value"])]),
|
|
1918
|
-
T("div",
|
|
1917
|
+
T("div", Sa, [
|
|
1919
1918
|
T("label", { class: w(y(W)) }, h(y(i).image.linkUrl), 3),
|
|
1920
1919
|
j(X, {
|
|
1921
1920
|
"model-value": e.block.linkUrl || "",
|
|
@@ -1923,20 +1922,20 @@ var Hi = {
|
|
|
1923
1922
|
placeholder: y(i).image.imageUrlPlaceholder,
|
|
1924
1923
|
"onUpdate:modelValue": n[7] ||= (e) => S("linkUrl", e)
|
|
1925
1924
|
}, null, 8, ["model-value", "placeholder"]),
|
|
1926
|
-
e.block.linkUrl ? (o(), _("label",
|
|
1925
|
+
e.block.linkUrl ? (o(), _("label", Ca, [T("input", {
|
|
1927
1926
|
type: "checkbox",
|
|
1928
1927
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
1929
1928
|
checked: e.block.linkOpenInNewTab ?? !1,
|
|
1930
1929
|
onChange: n[8] ||= (e) => S("linkOpenInNewTab", e.target.checked)
|
|
1931
|
-
}, null, 40,
|
|
1930
|
+
}, null, 40, wa), k(" " + h(y(i).image.openInNewTab), 1)])) : v("", !0)
|
|
1932
1931
|
])
|
|
1933
1932
|
], 64));
|
|
1934
1933
|
}
|
|
1935
|
-
}),
|
|
1934
|
+
}), Da = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Oa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ka = [
|
|
1936
1935
|
"value",
|
|
1937
1936
|
"placeholder",
|
|
1938
1937
|
"onInput"
|
|
1939
|
-
],
|
|
1938
|
+
], Aa = ["title", "onClick"], ja = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ma = ["checked", "onChange"], Na = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Pa = ["value"], Fa = { value: "" }, Ia = ["value"], La = ["value"], Ra = /* @__PURE__ */ A({
|
|
1940
1939
|
__name: "MenuToolbar",
|
|
1941
1940
|
props: {
|
|
1942
1941
|
block: {},
|
|
@@ -1999,24 +1998,24 @@ var Hi = {
|
|
|
1999
1998
|
}
|
|
2000
1999
|
return (t, n) => (o(), _(O, null, [
|
|
2001
2000
|
j(J, { label: y(i).menu.items }, {
|
|
2002
|
-
default: u(() => [T("div",
|
|
2001
|
+
default: u(() => [T("div", Da, [(o(!0), _(O, null, c(e.block.items, (t) => (o(), _("div", {
|
|
2003
2002
|
key: t.id,
|
|
2004
2003
|
class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
|
|
2005
2004
|
}, [
|
|
2006
|
-
T("div",
|
|
2005
|
+
T("div", Oa, [T("input", {
|
|
2007
2006
|
type: "text",
|
|
2008
2007
|
class: w([y(U), "tpl:flex-1"]),
|
|
2009
2008
|
value: t.text,
|
|
2010
2009
|
placeholder: y(i).menu.text,
|
|
2011
2010
|
onInput: (e) => f(t.id, "text", e.target.value)
|
|
2012
|
-
}, null, 42,
|
|
2011
|
+
}, null, 42, ka), T("button", {
|
|
2013
2012
|
class: w(y(kt)),
|
|
2014
2013
|
title: y(i).menu.removeItem,
|
|
2015
2014
|
onClick: (e) => p(t.id)
|
|
2016
2015
|
}, [j(y(Fe), {
|
|
2017
2016
|
size: 14,
|
|
2018
2017
|
"stroke-width": 2
|
|
2019
|
-
})], 10,
|
|
2018
|
+
})], 10, Aa)]),
|
|
2020
2019
|
j(X, {
|
|
2021
2020
|
"model-value": t.url,
|
|
2022
2021
|
type: "url",
|
|
@@ -2027,7 +2026,7 @@ var Hi = {
|
|
|
2027
2026
|
"placeholder",
|
|
2028
2027
|
"onUpdate:modelValue"
|
|
2029
2028
|
]),
|
|
2030
|
-
T("div",
|
|
2029
|
+
T("div", ja, [(o(!0), _(O, null, c(a.value, (e) => (o(), _("label", {
|
|
2031
2030
|
key: e.key,
|
|
2032
2031
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1"
|
|
2033
2032
|
}, [T("input", {
|
|
@@ -2035,8 +2034,8 @@ var Hi = {
|
|
|
2035
2034
|
checked: t[e.key],
|
|
2036
2035
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2037
2036
|
onChange: (n) => f(t.id, e.key, n.target.checked)
|
|
2038
|
-
}, null, 40,
|
|
2039
|
-
T("div",
|
|
2037
|
+
}, null, 40, Ma), k(" " + h(e.label), 1)]))), 128))]),
|
|
2038
|
+
T("div", Na, [T("label", { class: w([y(W), "tpl:!mb-0"]) }, h(y(i).menu.color), 3), j(q, {
|
|
2040
2039
|
"swatch-only": "",
|
|
2041
2040
|
"model-value": t.color || e.block.linkColor || e.block.color,
|
|
2042
2041
|
"onUpdate:modelValue": (e) => f(t.id, "color", e)
|
|
@@ -2055,14 +2054,14 @@ var Hi = {
|
|
|
2055
2054
|
class: w(y(U)),
|
|
2056
2055
|
value: e.block.fontFamily || "",
|
|
2057
2056
|
onChange: n[0] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
2058
|
-
}, [T("option",
|
|
2057
|
+
}, [T("option", Fa, h(y(i).title.inheritFont), 1), (o(!0), _(O, null, c(e.fontFamilies, (e) => (o(), _("option", {
|
|
2059
2058
|
key: e.value,
|
|
2060
2059
|
value: e.value
|
|
2061
|
-
}, h(e.label), 9,
|
|
2060
|
+
}, h(e.label), 9, Ia))), 128))], 42, Pa)]),
|
|
2062
2061
|
_: 1
|
|
2063
2062
|
}, 8, ["label"]),
|
|
2064
2063
|
j(J, { label: y(i).menu.fontSize }, {
|
|
2065
|
-
default: u(() => [j(
|
|
2064
|
+
default: u(() => [j(Ft, {
|
|
2066
2065
|
"model-value": e.block.fontSize,
|
|
2067
2066
|
min: 8,
|
|
2068
2067
|
max: 48,
|
|
@@ -2099,7 +2098,7 @@ var Hi = {
|
|
|
2099
2098
|
class: w(y(U)),
|
|
2100
2099
|
value: e.block.separator,
|
|
2101
2100
|
onInput: n[5] ||= (e) => l("separator", e.target.value)
|
|
2102
|
-
}, null, 42,
|
|
2101
|
+
}, null, 42, La)]),
|
|
2103
2102
|
_: 1
|
|
2104
2103
|
}, 8, ["label"]),
|
|
2105
2104
|
j(J, { label: y(i).menu.separatorColor }, {
|
|
@@ -2110,7 +2109,7 @@ var Hi = {
|
|
|
2110
2109
|
_: 1
|
|
2111
2110
|
}, 8, ["label"]),
|
|
2112
2111
|
j(J, { label: y(i).menu.spacing }, {
|
|
2113
|
-
default: u(() => [j(
|
|
2112
|
+
default: u(() => [j(Ft, {
|
|
2114
2113
|
"model-value": e.block.spacing,
|
|
2115
2114
|
min: 0,
|
|
2116
2115
|
max: 50,
|
|
@@ -2124,11 +2123,11 @@ var Hi = {
|
|
|
2124
2123
|
});
|
|
2125
2124
|
//#endregion
|
|
2126
2125
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
2127
|
-
function
|
|
2126
|
+
function za(e) {
|
|
2128
2127
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
2129
2128
|
}
|
|
2130
|
-
function
|
|
2131
|
-
let n =
|
|
2129
|
+
function Ba(e, t) {
|
|
2130
|
+
let n = za(t);
|
|
2132
2131
|
if (e.length === n) return e;
|
|
2133
2132
|
if (e.length < n) {
|
|
2134
2133
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2139,7 +2138,7 @@ function za(e, t) {
|
|
|
2139
2138
|
}
|
|
2140
2139
|
//#endregion
|
|
2141
2140
|
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2142
|
-
var
|
|
2141
|
+
var Va = { class: "tpl:mb-3.5" }, Ha = ["value"], Ua = ["value"], Wa = /* @__PURE__ */ A({
|
|
2143
2142
|
__name: "SectionToolbar",
|
|
2144
2143
|
props: { block: {} },
|
|
2145
2144
|
emits: ["update"],
|
|
@@ -2170,19 +2169,19 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2170
2169
|
let t = e.target.value;
|
|
2171
2170
|
r("update", {
|
|
2172
2171
|
columns: t,
|
|
2173
|
-
children:
|
|
2172
|
+
children: Ba(n.block.children, t)
|
|
2174
2173
|
});
|
|
2175
2174
|
}
|
|
2176
|
-
return (t, n) => (o(), _("div",
|
|
2175
|
+
return (t, n) => (o(), _("div", Va, [T("label", { class: w(y(W)) }, h(y(i).section.columns), 3), T("select", {
|
|
2177
2176
|
class: w(y(U)),
|
|
2178
2177
|
value: e.block.columns,
|
|
2179
2178
|
onChange: s
|
|
2180
2179
|
}, [(o(!0), _(O, null, c(a.value, (e) => (o(), _("option", {
|
|
2181
2180
|
key: e.value,
|
|
2182
2181
|
value: e.value
|
|
2183
|
-
}, h(e.label), 9,
|
|
2182
|
+
}, h(e.label), 9, Ua))), 128))], 42, Ha)]));
|
|
2184
2183
|
}
|
|
2185
|
-
}),
|
|
2184
|
+
}), Ga = { class: "tpl:mb-3.5" }, Ka = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, qa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ja = ["value", "onChange"], Ya = ["value"], Xa = ["title", "onClick"], Za = { class: "tpl:mb-3.5" }, Qa = ["value"], $a = { value: "solid" }, eo = { value: "outlined" }, to = { value: "rounded" }, no = { value: "square" }, ro = { value: "circle" }, io = { class: "tpl:mb-3.5" }, ao = { class: "tpl:mb-3.5" }, oo = { class: "tpl:flex tpl:items-stretch" }, so = ["value"], co = { class: "tpl:mb-3.5" }, lo = /* @__PURE__ */ A({
|
|
2186
2185
|
__name: "SocialToolbar",
|
|
2187
2186
|
props: { block: {} },
|
|
2188
2187
|
emits: ["update"],
|
|
@@ -2209,10 +2208,10 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2209
2208
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2210
2209
|
}
|
|
2211
2210
|
return (t, n) => (o(), _(O, null, [
|
|
2212
|
-
T("div",
|
|
2211
|
+
T("div", Ga, [T("label", { class: w(y(W)) }, h(y(i).social.icons), 3), T("div", Ka, [(o(!0), _(O, null, c(e.block.icons, (e) => (o(), _("div", {
|
|
2213
2212
|
key: e.id,
|
|
2214
2213
|
class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
|
|
2215
|
-
}, [T("div",
|
|
2214
|
+
}, [T("div", qa, [T("select", {
|
|
2216
2215
|
"data-testid": "social-platform-select",
|
|
2217
2216
|
class: w([y(U), "tpl:flex-1"]),
|
|
2218
2217
|
value: e.platform,
|
|
@@ -2220,14 +2219,14 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2220
2219
|
}, [(o(!0), _(O, null, c(y(R), (e) => (o(), _("option", {
|
|
2221
2220
|
key: e,
|
|
2222
2221
|
value: e
|
|
2223
|
-
}, h(y(i).social.platforms[e]), 9,
|
|
2222
|
+
}, h(y(i).social.platforms[e]), 9, Ya))), 128))], 42, Ja), T("button", {
|
|
2224
2223
|
class: w(y(kt)),
|
|
2225
2224
|
title: y(i).social.removeIcon,
|
|
2226
2225
|
onClick: (t) => u(e.id)
|
|
2227
2226
|
}, [j(y(Fe), {
|
|
2228
2227
|
size: 14,
|
|
2229
2228
|
"stroke-width": 2
|
|
2230
|
-
})], 10,
|
|
2229
|
+
})], 10, Xa)]), j(X, {
|
|
2231
2230
|
"model-value": e.url,
|
|
2232
2231
|
type: "url",
|
|
2233
2232
|
placeholder: y(i).social.urlPlaceholder,
|
|
@@ -2243,18 +2242,18 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2243
2242
|
size: 14,
|
|
2244
2243
|
"stroke-width": 2
|
|
2245
2244
|
}), k(" " + h(y(i).social.addIcon), 1)], 2)])]),
|
|
2246
|
-
T("div",
|
|
2245
|
+
T("div", Za, [T("label", { class: w(y(W)) }, h(y(i).social.style), 3), T("select", {
|
|
2247
2246
|
class: w(y(U)),
|
|
2248
2247
|
value: e.block.iconStyle,
|
|
2249
2248
|
onChange: n[0] ||= (e) => a("iconStyle", e.target.value)
|
|
2250
2249
|
}, [
|
|
2251
|
-
T("option",
|
|
2252
|
-
T("option",
|
|
2253
|
-
T("option",
|
|
2254
|
-
T("option",
|
|
2255
|
-
T("option",
|
|
2256
|
-
], 42,
|
|
2257
|
-
T("div",
|
|
2250
|
+
T("option", $a, h(y(i).social.styleSolid), 1),
|
|
2251
|
+
T("option", eo, h(y(i).social.styleOutlined), 1),
|
|
2252
|
+
T("option", to, h(y(i).social.styleRounded), 1),
|
|
2253
|
+
T("option", no, h(y(i).social.styleSquare), 1),
|
|
2254
|
+
T("option", ro, h(y(i).social.styleCircle), 1)
|
|
2255
|
+
], 42, Qa)]),
|
|
2256
|
+
T("div", io, [T("label", { class: w(y(W)) }, h(y(i).social.size), 3), j(Y, {
|
|
2258
2257
|
options: [
|
|
2259
2258
|
{
|
|
2260
2259
|
value: "small",
|
|
@@ -2272,15 +2271,15 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2272
2271
|
"model-value": e.block.iconSize,
|
|
2273
2272
|
"onUpdate:modelValue": n[1] ||= (e) => a("iconSize", e)
|
|
2274
2273
|
}, null, 8, ["options", "model-value"])]),
|
|
2275
|
-
T("div",
|
|
2274
|
+
T("div", ao, [T("label", { class: w(y(W)) }, h(y(i).social.spacing), 3), T("div", oo, [T("input", {
|
|
2276
2275
|
type: "number",
|
|
2277
2276
|
class: w(y(K)),
|
|
2278
2277
|
value: e.block.spacing,
|
|
2279
2278
|
min: "0",
|
|
2280
2279
|
max: "50",
|
|
2281
2280
|
onInput: n[2] ||= (e) => a("spacing", Number(e.target.value))
|
|
2282
|
-
}, null, 42,
|
|
2283
|
-
T("div",
|
|
2281
|
+
}, null, 42, so), T("span", { class: w(y(G)) }, "px", 2)])]),
|
|
2282
|
+
T("div", co, [T("label", { class: w(y(W)) }, h(y(i).social.align), 3), j(Y, {
|
|
2284
2283
|
options: [
|
|
2285
2284
|
{
|
|
2286
2285
|
value: "left",
|
|
@@ -2303,22 +2302,22 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2303
2302
|
}, null, 8, ["options", "model-value"])])
|
|
2304
2303
|
], 64));
|
|
2305
2304
|
}
|
|
2306
|
-
}),
|
|
2305
|
+
}), uo = { class: "tpl:mb-3.5" }, fo = { class: "tpl:flex tpl:items-stretch" }, po = ["value"], mo = ["value"], ho = /* @__PURE__ */ A({
|
|
2307
2306
|
__name: "SpacerToolbar",
|
|
2308
2307
|
props: { block: {} },
|
|
2309
2308
|
emits: ["update"],
|
|
2310
2309
|
setup(e, { emit: t }) {
|
|
2311
2310
|
let n = t, { t: r } = z();
|
|
2312
|
-
return (t, i) => (o(), _("div",
|
|
2311
|
+
return (t, i) => (o(), _("div", uo, [
|
|
2313
2312
|
T("label", { class: w(y(W)) }, h(y(r).spacer.height), 3),
|
|
2314
|
-
T("div",
|
|
2313
|
+
T("div", fo, [T("input", {
|
|
2315
2314
|
type: "number",
|
|
2316
2315
|
class: w(y(K)),
|
|
2317
2316
|
value: e.block.height,
|
|
2318
2317
|
min: "10",
|
|
2319
2318
|
max: "100",
|
|
2320
2319
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2321
|
-
}, null, 42,
|
|
2320
|
+
}, null, 42, po), T("span", { class: w(y(G)) }, "px", 2)]),
|
|
2322
2321
|
T("input", {
|
|
2323
2322
|
type: "range",
|
|
2324
2323
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2326,13 +2325,13 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2326
2325
|
min: "10",
|
|
2327
2326
|
max: "100",
|
|
2328
2327
|
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2329
|
-
}, null, 40,
|
|
2328
|
+
}, null, 40, mo)
|
|
2330
2329
|
]));
|
|
2331
2330
|
}
|
|
2332
|
-
}),
|
|
2331
|
+
}), go = { class: "tpl:mb-3.5" }, _o = { class: "tpl:flex tpl:items-center tpl:gap-3" }, vo = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, yo = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, bo = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, xo = ["disabled"], So = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Co = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, wo = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, To = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Eo = ["disabled"], Do = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Oo = { class: "tpl:mb-3.5" }, ko = { class: "tpl:mb-1.5 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ao = ["checked"], jo = {
|
|
2333
2332
|
key: 0,
|
|
2334
2333
|
class: "tpl:mb-3.5"
|
|
2335
|
-
},
|
|
2334
|
+
}, Mo = { class: "tpl:mb-3.5" }, No = { class: "tpl:mb-3.5" }, Po = { class: "tpl:flex tpl:items-stretch" }, Fo = ["value"], Io = { class: "tpl:mb-3.5" }, Lo = { class: "tpl:flex tpl:items-stretch" }, Ro = ["value"], zo = { class: "tpl:mb-3.5" }, Bo = ["value"], Vo = { value: "" }, Ho = ["value"], Uo = { class: "tpl:mb-3.5" }, Wo = { class: "tpl:flex tpl:items-stretch" }, Go = ["value"], Ko = { class: "tpl:mb-3.5" }, qo = { class: "tpl:mb-3.5" }, Jo = /* @__PURE__ */ A({
|
|
2336
2335
|
__name: "TableToolbar",
|
|
2337
2336
|
props: {
|
|
2338
2337
|
block: {},
|
|
@@ -2373,7 +2372,7 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2373
2372
|
})) });
|
|
2374
2373
|
}
|
|
2375
2374
|
return (t, n) => (o(), _(O, null, [
|
|
2376
|
-
T("div",
|
|
2375
|
+
T("div", go, [T("label", { class: w(y(W)) }, h(y(i).table.dimensions), 3), T("div", _o, [T("div", vo, [T("span", yo, h(y(i).table.rows), 1), T("div", bo, [
|
|
2377
2376
|
T("button", {
|
|
2378
2377
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
2379
2378
|
disabled: e.block.rows.length <= 1,
|
|
@@ -2381,8 +2380,8 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2381
2380
|
}, [j(y(bt), {
|
|
2382
2381
|
size: 12,
|
|
2383
2382
|
"stroke-width": 2
|
|
2384
|
-
})], 8,
|
|
2385
|
-
T("span",
|
|
2383
|
+
})], 8, xo),
|
|
2384
|
+
T("span", So, h(e.block.rows.length), 1),
|
|
2386
2385
|
T("button", {
|
|
2387
2386
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)]",
|
|
2388
2387
|
onClick: l
|
|
@@ -2390,7 +2389,7 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2390
2389
|
size: 12,
|
|
2391
2390
|
"stroke-width": 2
|
|
2392
2391
|
})])
|
|
2393
|
-
])]), T("div",
|
|
2392
|
+
])]), T("div", Co, [T("span", wo, h(y(i).table.columns), 1), T("div", To, [
|
|
2394
2393
|
T("button", {
|
|
2395
2394
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
2396
2395
|
disabled: a.value <= 1,
|
|
@@ -2398,8 +2397,8 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2398
2397
|
}, [j(y(bt), {
|
|
2399
2398
|
size: 12,
|
|
2400
2399
|
"stroke-width": 2
|
|
2401
|
-
})], 8,
|
|
2402
|
-
T("span",
|
|
2400
|
+
})], 8, Eo),
|
|
2401
|
+
T("span", Do, h(a.value), 1),
|
|
2403
2402
|
T("button", {
|
|
2404
2403
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)]",
|
|
2405
2404
|
onClick: d
|
|
@@ -2408,58 +2407,63 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2408
2407
|
"stroke-width": 2
|
|
2409
2408
|
})])
|
|
2410
2409
|
])])])]),
|
|
2411
|
-
T("div",
|
|
2410
|
+
T("div", Oo, [T("label", ko, [T("input", {
|
|
2412
2411
|
type: "checkbox",
|
|
2413
2412
|
checked: e.block.hasHeaderRow,
|
|
2414
2413
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2415
2414
|
onChange: n[2] ||= (e) => s("hasHeaderRow", e.target.checked)
|
|
2416
|
-
}, null, 40,
|
|
2417
|
-
e.block.hasHeaderRow ? (o(), _("div",
|
|
2418
|
-
"model-value": e.block.headerBackgroundColor
|
|
2415
|
+
}, null, 40, Ao), k(" " + h(y(i).table.hasHeaderRow), 1)])]),
|
|
2416
|
+
e.block.hasHeaderRow ? (o(), _("div", jo, [T("label", { class: w(y(W)) }, h(y(i).table.headerBackgroundColor), 3), j(q, {
|
|
2417
|
+
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2418
|
+
"seed-color": y(Nt),
|
|
2419
2419
|
placeholder: y(i).table.noHeaderBg,
|
|
2420
2420
|
"onUpdate:modelValue": n[3] ||= (e) => s("headerBackgroundColor", e || null)
|
|
2421
|
-
}, null, 8, [
|
|
2422
|
-
|
|
2421
|
+
}, null, 8, [
|
|
2422
|
+
"model-value",
|
|
2423
|
+
"seed-color",
|
|
2424
|
+
"placeholder"
|
|
2425
|
+
])])) : v("", !0),
|
|
2426
|
+
T("div", Mo, [T("label", { class: w(y(W)) }, h(y(i).table.borderColor), 3), j(q, {
|
|
2423
2427
|
"model-value": e.block.borderColor,
|
|
2424
2428
|
"onUpdate:modelValue": n[4] ||= (e) => s("borderColor", e)
|
|
2425
2429
|
}, null, 8, ["model-value"])]),
|
|
2426
|
-
T("div",
|
|
2430
|
+
T("div", No, [T("label", { class: w(y(W)) }, h(y(i).table.borderWidth), 3), T("div", Po, [T("input", {
|
|
2427
2431
|
type: "number",
|
|
2428
2432
|
class: w(y(K)),
|
|
2429
2433
|
value: e.block.borderWidth,
|
|
2430
2434
|
min: "0",
|
|
2431
2435
|
max: "10",
|
|
2432
2436
|
onInput: n[5] ||= (e) => s("borderWidth", Number(e.target.value))
|
|
2433
|
-
}, null, 42,
|
|
2434
|
-
T("div",
|
|
2437
|
+
}, null, 42, Fo), T("span", { class: w(y(G)) }, "px", 2)])]),
|
|
2438
|
+
T("div", Io, [T("label", { class: w(y(W)) }, h(y(i).table.cellPadding), 3), T("div", Lo, [T("input", {
|
|
2435
2439
|
type: "number",
|
|
2436
2440
|
class: w(y(K)),
|
|
2437
2441
|
value: e.block.cellPadding,
|
|
2438
2442
|
min: "0",
|
|
2439
2443
|
max: "30",
|
|
2440
2444
|
onInput: n[6] ||= (e) => s("cellPadding", Number(e.target.value))
|
|
2441
|
-
}, null, 42,
|
|
2442
|
-
T("div",
|
|
2445
|
+
}, null, 42, Ro), T("span", { class: w(y(G)) }, "px", 2)])]),
|
|
2446
|
+
T("div", zo, [T("label", { class: w(y(W)) }, h(y(i).table.fontFamily), 3), T("select", {
|
|
2443
2447
|
class: w(y(U)),
|
|
2444
2448
|
value: e.block.fontFamily || "",
|
|
2445
2449
|
onChange: n[7] ||= (e) => s("fontFamily", e.target.value || void 0)
|
|
2446
|
-
}, [T("option",
|
|
2450
|
+
}, [T("option", Vo, h(y(i).title.inheritFont), 1), (o(!0), _(O, null, c(e.fontFamilies, (e) => (o(), _("option", {
|
|
2447
2451
|
key: e.value,
|
|
2448
2452
|
value: e.value
|
|
2449
|
-
}, h(e.label), 9,
|
|
2450
|
-
T("div",
|
|
2453
|
+
}, h(e.label), 9, Ho))), 128))], 42, Bo)]),
|
|
2454
|
+
T("div", Uo, [T("label", { class: w(y(W)) }, h(y(i).table.fontSize), 3), T("div", Wo, [T("input", {
|
|
2451
2455
|
type: "number",
|
|
2452
2456
|
class: w(y(K)),
|
|
2453
2457
|
value: e.block.fontSize,
|
|
2454
2458
|
min: "10",
|
|
2455
2459
|
max: "32",
|
|
2456
2460
|
onInput: n[8] ||= (e) => s("fontSize", Number(e.target.value))
|
|
2457
|
-
}, null, 42,
|
|
2458
|
-
T("div",
|
|
2461
|
+
}, null, 42, Go), T("span", { class: w(y(G)) }, "px", 2)])]),
|
|
2462
|
+
T("div", Ko, [T("label", { class: w(y(W)) }, h(y(i).table.color), 3), j(q, {
|
|
2459
2463
|
"model-value": e.block.color,
|
|
2460
2464
|
"onUpdate:modelValue": n[9] ||= (e) => s("color", e)
|
|
2461
2465
|
}, null, 8, ["model-value"])]),
|
|
2462
|
-
T("div",
|
|
2466
|
+
T("div", qo, [T("label", { class: w(y(W)) }, h(y(i).table.textAlign), 3), j(Y, {
|
|
2463
2467
|
options: [
|
|
2464
2468
|
{
|
|
2465
2469
|
value: "left",
|
|
@@ -2482,7 +2486,7 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2482
2486
|
}, null, 8, ["options", "model-value"])])
|
|
2483
2487
|
], 64));
|
|
2484
2488
|
}
|
|
2485
|
-
}),
|
|
2489
|
+
}), Yo = { class: "tpl:mb-3.5" }, Xo = ["value"], Zo = { value: 1 }, Qo = { value: 2 }, $o = { value: 3 }, es = { value: 4 }, ts = { class: "tpl:mb-3.5" }, ns = ["value"], rs = { value: "" }, is = ["value"], as = { class: "tpl:mb-3.5" }, os = { class: "tpl:mb-3.5" }, ss = /* @__PURE__ */ A({
|
|
2486
2490
|
__name: "TitleToolbar",
|
|
2487
2491
|
props: {
|
|
2488
2492
|
block: {},
|
|
@@ -2495,29 +2499,29 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2495
2499
|
n("update", { [e]: t });
|
|
2496
2500
|
}
|
|
2497
2501
|
return (t, n) => (o(), _(O, null, [
|
|
2498
|
-
T("div",
|
|
2502
|
+
T("div", Yo, [T("label", { class: w(y(W)) }, h(y(r).title.level), 3), T("select", {
|
|
2499
2503
|
class: w(y(U)),
|
|
2500
2504
|
value: e.block.level,
|
|
2501
2505
|
onChange: n[0] ||= (e) => i("level", Number(e.target.value))
|
|
2502
2506
|
}, [
|
|
2503
|
-
T("option",
|
|
2504
|
-
T("option",
|
|
2505
|
-
T("option",
|
|
2506
|
-
T("option",
|
|
2507
|
-
], 42,
|
|
2508
|
-
T("div",
|
|
2507
|
+
T("option", Zo, h(y(r).title.heading1), 1),
|
|
2508
|
+
T("option", Qo, h(y(r).title.heading2), 1),
|
|
2509
|
+
T("option", $o, h(y(r).title.heading3), 1),
|
|
2510
|
+
T("option", es, h(y(r).title.heading4), 1)
|
|
2511
|
+
], 42, Xo)]),
|
|
2512
|
+
T("div", ts, [T("label", { class: w(y(W)) }, h(y(r).title.fontFamily), 3), T("select", {
|
|
2509
2513
|
class: w(y(U)),
|
|
2510
2514
|
value: e.block.fontFamily || "",
|
|
2511
2515
|
onChange: n[1] ||= (e) => i("fontFamily", e.target.value || void 0)
|
|
2512
|
-
}, [T("option",
|
|
2516
|
+
}, [T("option", rs, h(y(r).title.inheritFont), 1), (o(!0), _(O, null, c(e.fontFamilies, (e) => (o(), _("option", {
|
|
2513
2517
|
key: e.value,
|
|
2514
2518
|
value: e.value
|
|
2515
|
-
}, h(e.label), 9,
|
|
2516
|
-
T("div",
|
|
2519
|
+
}, h(e.label), 9, is))), 128))], 42, ns)]),
|
|
2520
|
+
T("div", as, [T("label", { class: w(y(W)) }, h(y(r).title.color), 3), j(q, {
|
|
2517
2521
|
"model-value": e.block.color,
|
|
2518
2522
|
"onUpdate:modelValue": n[2] ||= (e) => i("color", e)
|
|
2519
2523
|
}, null, 8, ["model-value"])]),
|
|
2520
|
-
T("div",
|
|
2524
|
+
T("div", os, [T("label", { class: w(y(W)) }, h(y(r).title.align), 3), j(Y, {
|
|
2521
2525
|
options: [
|
|
2522
2526
|
{
|
|
2523
2527
|
value: "left",
|
|
@@ -2540,17 +2544,17 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2540
2544
|
}, null, 8, ["options", "model-value"])])
|
|
2541
2545
|
], 64));
|
|
2542
2546
|
}
|
|
2543
|
-
}),
|
|
2547
|
+
}), cs = { class: "tpl:mb-3.5" }, ls = {
|
|
2544
2548
|
key: 0,
|
|
2545
2549
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
2546
|
-
},
|
|
2550
|
+
}, us = ["checked"], ds = {
|
|
2547
2551
|
key: 0,
|
|
2548
2552
|
class: "tpl:mb-3.5"
|
|
2549
|
-
},
|
|
2553
|
+
}, fs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ps = [
|
|
2550
2554
|
"value",
|
|
2551
2555
|
"placeholder",
|
|
2552
2556
|
"title"
|
|
2553
|
-
],
|
|
2557
|
+
], ms = { class: "tpl:mb-3.5" }, hs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, gs = { class: "tpl:mb-3.5" }, _s = { class: "tpl:mb-3.5" }, vs = ["value"], ys = { value: "full" }, bs = { class: "tpl:mb-3.5" }, xs = /* @__PURE__ */ A({
|
|
2554
2558
|
__name: "VideoToolbar",
|
|
2555
2559
|
props: { block: {} },
|
|
2556
2560
|
emits: ["update"],
|
|
@@ -2566,7 +2570,7 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2566
2570
|
c.alive && e && (b("thumbnailUrl", e.url), p.value = !0, m());
|
|
2567
2571
|
}
|
|
2568
2572
|
return (t, n) => (o(), _(O, null, [
|
|
2569
|
-
T("div",
|
|
2573
|
+
T("div", cs, [
|
|
2570
2574
|
T("label", { class: w(y(W)) }, h(y(i).video.videoUrl), 3),
|
|
2571
2575
|
j(X, {
|
|
2572
2576
|
"model-value": e.block.url,
|
|
@@ -2574,23 +2578,23 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2574
2578
|
placeholder: y(i).video.videoUrlPlaceholder,
|
|
2575
2579
|
"onUpdate:modelValue": n[0] ||= (e) => b("url", e)
|
|
2576
2580
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2577
|
-
e.block.url ? (o(), _("label",
|
|
2581
|
+
e.block.url ? (o(), _("label", ls, [T("input", {
|
|
2578
2582
|
type: "checkbox",
|
|
2579
2583
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2580
2584
|
checked: e.block.openInNewTab ?? !1,
|
|
2581
2585
|
onChange: n[1] ||= (e) => b("openInNewTab", e.target.checked)
|
|
2582
|
-
}, null, 40,
|
|
2586
|
+
}, null, 40, us), k(" " + h(y(i).video.openInNewTab), 1)])) : v("", !0)
|
|
2583
2587
|
]),
|
|
2584
|
-
d.value ? (o(), _("div",
|
|
2588
|
+
d.value ? (o(), _("div", ds, [T("label", { class: w(y(W)) }, [k(h(y(i).video.placeholderUrl) + " ", 1), T("span", fs, h(y(i).video.optional), 1)], 2), T("input", {
|
|
2585
2589
|
type: "url",
|
|
2586
2590
|
class: w(y(U)),
|
|
2587
2591
|
value: e.block.placeholderUrl || "",
|
|
2588
2592
|
placeholder: y(i).video.placeholderUrlPlaceholder,
|
|
2589
2593
|
title: y(i).video.placeholderUrlTooltip,
|
|
2590
2594
|
onInput: n[2] ||= (e) => b("placeholderUrl", e.target.value)
|
|
2591
|
-
}, null, 42,
|
|
2592
|
-
T("div",
|
|
2593
|
-
T("label", { class: w(y(W)) }, [k(h(y(i).video.customThumbnail) + " ", 1), T("span",
|
|
2595
|
+
}, null, 42, ps)])) : v("", !0),
|
|
2596
|
+
T("div", ms, [
|
|
2597
|
+
T("label", { class: w(y(W)) }, [k(h(y(i).video.customThumbnail) + " ", 1), T("span", hs, h(y(i).video.optional), 1)], 2),
|
|
2594
2598
|
j(X, {
|
|
2595
2599
|
"model-value": e.block.thumbnailUrl,
|
|
2596
2600
|
type: "url",
|
|
@@ -2616,23 +2620,23 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2616
2620
|
"stroke-width": 1.5
|
|
2617
2621
|
}), k(" " + h(y(i).image.browseMedia), 1)])) : v("", !0)
|
|
2618
2622
|
]),
|
|
2619
|
-
T("div",
|
|
2623
|
+
T("div", gs, [T("label", { class: w(y(W)) }, h(y(i).video.altText), 3), j(X, {
|
|
2620
2624
|
"model-value": e.block.alt,
|
|
2621
2625
|
type: "text",
|
|
2622
2626
|
placeholder: y(i).video.altTextPlaceholder,
|
|
2623
2627
|
"onUpdate:modelValue": n[4] ||= (e) => b("alt", e)
|
|
2624
2628
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2625
|
-
T("div",
|
|
2629
|
+
T("div", _s, [T("label", { class: w(y(W)) }, h(y(i).video.width), 3), T("select", {
|
|
2626
2630
|
class: w(y(U)),
|
|
2627
2631
|
value: e.block.width,
|
|
2628
2632
|
onChange: n[5] ||= (e) => b("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
2629
2633
|
}, [
|
|
2630
|
-
T("option",
|
|
2634
|
+
T("option", ys, h(y(i).video.fullWidth), 1),
|
|
2631
2635
|
n[7] ||= T("option", { value: "300" }, "300px", -1),
|
|
2632
2636
|
n[8] ||= T("option", { value: "400" }, "400px", -1),
|
|
2633
2637
|
n[9] ||= T("option", { value: "500" }, "500px", -1)
|
|
2634
|
-
], 42,
|
|
2635
|
-
T("div",
|
|
2638
|
+
], 42, vs)]),
|
|
2639
|
+
T("div", bs, [T("label", { class: w(y(W)) }, h(y(i).title.align), 3), j(Y, {
|
|
2636
2640
|
options: [
|
|
2637
2641
|
{
|
|
2638
2642
|
value: "left",
|
|
@@ -2652,7 +2656,7 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2652
2656
|
}, null, 8, ["options", "model-value"])])
|
|
2653
2657
|
], 64));
|
|
2654
2658
|
}
|
|
2655
|
-
}),
|
|
2659
|
+
}), Ss = ["aria-label"], Cs = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, ws = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Ts = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Es = { class: "tpl:flex tpl:gap-1" }, Ds = ["title"], Os = ["title"], ks = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, As = /*#__PURE__*/ Ze(/* @__PURE__ */ A({
|
|
2656
2660
|
__name: "Toolbar",
|
|
2657
2661
|
props: { block: {} },
|
|
2658
2662
|
emits: [
|
|
@@ -2661,7 +2665,7 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2661
2665
|
"duplicate"
|
|
2662
2666
|
],
|
|
2663
2667
|
setup(e, { emit: t }) {
|
|
2664
|
-
let n = p(() => import("./CountdownToolbar-
|
|
2668
|
+
let n = p(() => import("./CountdownToolbar-BQn0Kj0X.js")), r = e, i = t, { t: s } = z(), c = Pe(je, "Toolbar"), u = l(B, []), d = g(() => r.block.type), f = g(() => te(r.block)), m = g(() => {
|
|
2665
2669
|
if (f.value) return u.find((e) => e.type === r.block.customType);
|
|
2666
2670
|
}), b = g(() => f.value ? m.value?.name ?? r.block.customType : V(d.value, s)), S = c.fonts;
|
|
2667
2671
|
function C(e) {
|
|
@@ -2670,7 +2674,7 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2670
2674
|
return (t, r) => (o(), _("aside", {
|
|
2671
2675
|
"aria-label": y(s).landmarks.blockToolbar,
|
|
2672
2676
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2673
|
-
}, [T("div",
|
|
2677
|
+
}, [T("div", Cs, [T("div", ws, [y(Ot)[d.value] ? (o(), x(a(y(Ot)[d.value]), {
|
|
2674
2678
|
key: 0,
|
|
2675
2679
|
size: 16,
|
|
2676
2680
|
"stroke-width": 1.5
|
|
@@ -2678,70 +2682,70 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2678
2682
|
key: 1,
|
|
2679
2683
|
size: 16,
|
|
2680
2684
|
"stroke-width": 1.5
|
|
2681
|
-
})) : v("", !0), T("h3",
|
|
2685
|
+
})) : v("", !0), T("h3", Ts, h(b.value), 1)]), T("div", Es, [T("button", {
|
|
2682
2686
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
|
|
2683
2687
|
title: y(s).toolbar.duplicate,
|
|
2684
2688
|
onClick: r[0] ||= (e) => i("duplicate")
|
|
2685
2689
|
}, [j(y(tt), {
|
|
2686
2690
|
size: 14,
|
|
2687
2691
|
"stroke-width": 2
|
|
2688
|
-
})], 8,
|
|
2692
|
+
})], 8, Ds), T("button", {
|
|
2689
2693
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
2690
2694
|
title: y(s).toolbar.delete,
|
|
2691
2695
|
onClick: r[1] ||= (e) => i("delete")
|
|
2692
2696
|
}, [j(y(Qe), {
|
|
2693
2697
|
size: 14,
|
|
2694
2698
|
"stroke-width": 2
|
|
2695
|
-
})], 8,
|
|
2699
|
+
})], 8, Os)])]), T("div", ks, [f.value ? (o(), x(Zi, {
|
|
2696
2700
|
key: 0,
|
|
2697
2701
|
block: e.block,
|
|
2698
2702
|
onUpdateFieldValues: r[2] ||= (e) => i("update", { fieldValues: e }),
|
|
2699
2703
|
onUpdateDataSourceFetched: r[3] ||= (e) => i("update", { dataSourceFetched: e })
|
|
2700
|
-
}, null, 8, ["block"])) : d.value === "section" ? (o(), x(
|
|
2704
|
+
}, null, 8, ["block"])) : d.value === "section" ? (o(), x(Wa, {
|
|
2701
2705
|
key: 1,
|
|
2702
2706
|
block: e.block,
|
|
2703
2707
|
onUpdate: C
|
|
2704
|
-
}, null, 8, ["block"])) : d.value === "title" ? (o(), x(
|
|
2708
|
+
}, null, 8, ["block"])) : d.value === "title" ? (o(), x(ss, {
|
|
2705
2709
|
key: 2,
|
|
2706
2710
|
block: e.block,
|
|
2707
2711
|
"font-families": y(S),
|
|
2708
2712
|
onUpdate: C
|
|
2709
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), _(O, { key: 3 }, [], 64)) : d.value === "image" ? (o(), x(
|
|
2713
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), _(O, { key: 3 }, [], 64)) : d.value === "image" ? (o(), x(Ea, {
|
|
2710
2714
|
key: 4,
|
|
2711
2715
|
block: e.block,
|
|
2712
2716
|
onUpdate: C
|
|
2713
|
-
}, null, 8, ["block"])) : d.value === "video" ? (o(), x(
|
|
2717
|
+
}, null, 8, ["block"])) : d.value === "video" ? (o(), x(xs, {
|
|
2714
2718
|
key: 5,
|
|
2715
2719
|
block: e.block,
|
|
2716
2720
|
onUpdate: C
|
|
2717
|
-
}, null, 8, ["block"])) : d.value === "button" ? (o(), x(
|
|
2721
|
+
}, null, 8, ["block"])) : d.value === "button" ? (o(), x(wr, {
|
|
2718
2722
|
key: 6,
|
|
2719
2723
|
block: e.block,
|
|
2720
2724
|
"font-families": y(S),
|
|
2721
2725
|
onUpdate: C
|
|
2722
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), x(
|
|
2726
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), x(ra, {
|
|
2723
2727
|
key: 7,
|
|
2724
2728
|
block: e.block,
|
|
2725
2729
|
onUpdate: C
|
|
2726
|
-
}, null, 8, ["block"])) : d.value === "social" ? (o(), x(
|
|
2730
|
+
}, null, 8, ["block"])) : d.value === "social" ? (o(), x(lo, {
|
|
2727
2731
|
key: 8,
|
|
2728
2732
|
block: e.block,
|
|
2729
2733
|
onUpdate: C
|
|
2730
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (o(), x(
|
|
2734
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (o(), x(Ra, {
|
|
2731
2735
|
key: 9,
|
|
2732
2736
|
block: e.block,
|
|
2733
2737
|
"font-families": y(S),
|
|
2734
2738
|
onUpdate: C
|
|
2735
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), x(
|
|
2739
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), x(Jo, {
|
|
2736
2740
|
key: 10,
|
|
2737
2741
|
block: e.block,
|
|
2738
2742
|
"font-families": y(S),
|
|
2739
2743
|
onUpdate: C
|
|
2740
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), x(
|
|
2744
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), x(ho, {
|
|
2741
2745
|
key: 11,
|
|
2742
2746
|
block: e.block,
|
|
2743
2747
|
onUpdate: C
|
|
2744
|
-
}, null, 8, ["block"])) : d.value === "html" ? (o(), x(
|
|
2748
|
+
}, null, 8, ["block"])) : d.value === "html" ? (o(), x(sa, {
|
|
2745
2749
|
key: 12,
|
|
2746
2750
|
block: e.block,
|
|
2747
2751
|
onUpdate: C
|
|
@@ -2750,52 +2754,52 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2750
2754
|
block: e.block,
|
|
2751
2755
|
"font-families": y(S),
|
|
2752
2756
|
onUpdate: C
|
|
2753
|
-
}, null, 8, ["block", "font-families"])) : v("", !0), j(
|
|
2757
|
+
}, null, 8, ["block", "font-families"])) : v("", !0), j(mi, {
|
|
2754
2758
|
block: e.block,
|
|
2755
2759
|
"is-first-section": d.value === "paragraph",
|
|
2756
2760
|
onUpdate: C
|
|
2757
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
2761
|
+
}, null, 8, ["block", "is-first-section"])])], 8, Ss));
|
|
2758
2762
|
}
|
|
2759
|
-
}), [["__scopeId", "data-v-2ac88283"]]),
|
|
2763
|
+
}), [["__scopeId", "data-v-2ac88283"]]), js = ["aria-label"], Ms = {
|
|
2760
2764
|
role: "tablist",
|
|
2761
2765
|
class: "tpl:relative tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-active)] tpl:p-1.5"
|
|
2762
|
-
},
|
|
2766
|
+
}, Ns = [
|
|
2763
2767
|
"aria-selected",
|
|
2764
2768
|
"aria-label",
|
|
2765
2769
|
"title"
|
|
2766
|
-
],
|
|
2770
|
+
], Ps = { key: 0 }, Fs = [
|
|
2767
2771
|
"aria-selected",
|
|
2768
2772
|
"aria-label",
|
|
2769
2773
|
"title"
|
|
2770
|
-
],
|
|
2774
|
+
], Is = { key: 0 }, Ls = [
|
|
2771
2775
|
"aria-selected",
|
|
2772
2776
|
"aria-label",
|
|
2773
2777
|
"title"
|
|
2774
|
-
],
|
|
2778
|
+
], Rs = { key: 0 }, zs = {
|
|
2775
2779
|
key: 1,
|
|
2776
2780
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
2777
|
-
},
|
|
2781
|
+
}, Bs = {
|
|
2778
2782
|
key: 0,
|
|
2779
2783
|
id: "tpl-tabpanel-content",
|
|
2780
2784
|
role: "tabpanel",
|
|
2781
2785
|
"aria-labelledby": "tpl-tab-content",
|
|
2782
2786
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2783
|
-
},
|
|
2787
|
+
}, Vs = {
|
|
2784
2788
|
key: 1,
|
|
2785
2789
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:px-6 tpl:py-10 tpl:text-center tpl:text-[var(--tpl-text-muted)]"
|
|
2786
|
-
},
|
|
2790
|
+
}, Hs = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Us = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ws = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Gs = {
|
|
2787
2791
|
key: 1,
|
|
2788
2792
|
id: "tpl-tabpanel-settings",
|
|
2789
2793
|
role: "tabpanel",
|
|
2790
2794
|
"aria-labelledby": "tpl-tab-settings",
|
|
2791
2795
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2792
|
-
},
|
|
2796
|
+
}, Ks = {
|
|
2793
2797
|
key: 2,
|
|
2794
2798
|
id: "tpl-tabpanel-issues",
|
|
2795
2799
|
role: "tabpanel",
|
|
2796
2800
|
"aria-labelledby": "tpl-tab-issues",
|
|
2797
2801
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2798
|
-
},
|
|
2802
|
+
}, qs = /* @__PURE__ */ A({
|
|
2799
2803
|
__name: "RightSidebar",
|
|
2800
2804
|
props: {
|
|
2801
2805
|
selectedBlock: {},
|
|
@@ -2825,7 +2829,7 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2825
2829
|
"aria-label": y(a).landmarks.rightSidebar,
|
|
2826
2830
|
class: w(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
|
|
2827
2831
|
}, [
|
|
2828
|
-
T("div",
|
|
2832
|
+
T("div", Ms, [
|
|
2829
2833
|
T("button", {
|
|
2830
2834
|
id: "tpl-tab-content",
|
|
2831
2835
|
role: "tab",
|
|
@@ -2839,7 +2843,7 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2839
2843
|
}, [j(y(Tt), {
|
|
2840
2844
|
size: 14,
|
|
2841
2845
|
"stroke-width": 2
|
|
2842
|
-
}), s.value === "content" ? (o(), _("span",
|
|
2846
|
+
}), s.value === "content" ? (o(), _("span", Ps, h(y(a).sidebar.content), 1)) : v("", !0)], 14, Ns),
|
|
2843
2847
|
T("button", {
|
|
2844
2848
|
id: "tpl-tab-settings",
|
|
2845
2849
|
role: "tab",
|
|
@@ -2853,7 +2857,7 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2853
2857
|
}, [j(y(xt), {
|
|
2854
2858
|
size: 14,
|
|
2855
2859
|
"stroke-width": 1.5
|
|
2856
|
-
}), s.value === "settings" ? (o(), _("span",
|
|
2860
|
+
}), s.value === "settings" ? (o(), _("span", Is, h(y(a).sidebar.settings), 1)) : v("", !0)], 14, Fs),
|
|
2857
2861
|
u.value ? (o(), _("button", {
|
|
2858
2862
|
key: 0,
|
|
2859
2863
|
id: "tpl-tab-issues",
|
|
@@ -2870,55 +2874,55 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2870
2874
|
size: 14,
|
|
2871
2875
|
"stroke-width": 1.5
|
|
2872
2876
|
}),
|
|
2873
|
-
s.value === "issues" ? (o(), _("span",
|
|
2874
|
-
d.value > 0 ? (o(), _("span",
|
|
2875
|
-
], 14,
|
|
2877
|
+
s.value === "issues" ? (o(), _("span", Rs, h(y(a).issues.panelTabLabel), 1)) : v("", !0),
|
|
2878
|
+
d.value > 0 ? (o(), _("span", zs, h(d.value), 1)) : v("", !0)
|
|
2879
|
+
], 14, Ls)) : v("", !0)
|
|
2876
2880
|
]),
|
|
2877
|
-
s.value === "content" ? (o(), _("div",
|
|
2881
|
+
s.value === "content" ? (o(), _("div", Bs, [e.selectedBlock ? (o(), x(As, {
|
|
2878
2882
|
key: 0,
|
|
2879
2883
|
block: e.selectedBlock,
|
|
2880
2884
|
onUpdate: r[3] ||= (e) => i("update-block", e),
|
|
2881
2885
|
onDelete: r[4] ||= (e) => i("delete-block"),
|
|
2882
2886
|
onDuplicate: r[5] ||= (e) => i("duplicate-block")
|
|
2883
|
-
}, null, 8, ["block"])) : (o(), _("div",
|
|
2884
|
-
T("div",
|
|
2887
|
+
}, null, 8, ["block"])) : (o(), _("div", Vs, [
|
|
2888
|
+
T("div", Hs, [j(y(st), {
|
|
2885
2889
|
size: 40,
|
|
2886
2890
|
"stroke-width": 1.5
|
|
2887
2891
|
})]),
|
|
2888
|
-
T("h3",
|
|
2889
|
-
T("p",
|
|
2892
|
+
T("h3", Us, h(y(a).sidebar.noSelection), 1),
|
|
2893
|
+
T("p", Ws, h(y(a).sidebar.noSelectionHint), 1)
|
|
2890
2894
|
]))])) : v("", !0),
|
|
2891
|
-
s.value === "settings" ? (o(), _("div",
|
|
2895
|
+
s.value === "settings" ? (o(), _("div", Gs, [j(Jn, {
|
|
2892
2896
|
settings: e.settings,
|
|
2893
2897
|
onUpdate: r[6] ||= (e) => i("update-settings", e)
|
|
2894
2898
|
}, null, 8, ["settings"])])) : v("", !0),
|
|
2895
|
-
s.value === "issues" && u.value ? (o(), _("div",
|
|
2896
|
-
], 10,
|
|
2899
|
+
s.value === "issues" && u.value ? (o(), _("div", Ks, [j(y(n))])) : v("", !0)
|
|
2900
|
+
], 10, js));
|
|
2897
2901
|
}
|
|
2898
|
-
}),
|
|
2902
|
+
}), Js = {
|
|
2899
2903
|
class: "tpl-small-screen-notice tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-4 tpl:px-6 tpl:py-10 tpl:text-center tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)]",
|
|
2900
2904
|
style: { "z-index": "10001" },
|
|
2901
2905
|
role: "status",
|
|
2902
2906
|
"data-testid": "small-screen-notice"
|
|
2903
|
-
},
|
|
2907
|
+
}, Ys = { class: "tpl:text-[var(--tpl-text-dim)]" }, Xs = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Zs = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Qs = /* @__PURE__ */ A({
|
|
2904
2908
|
__name: "SmallScreenNotice",
|
|
2905
2909
|
setup(e) {
|
|
2906
2910
|
let { t } = z();
|
|
2907
|
-
return (e, n) => (o(), _("div",
|
|
2908
|
-
T("div",
|
|
2911
|
+
return (e, n) => (o(), _("div", Js, [
|
|
2912
|
+
T("div", Ys, [j(y(dt), {
|
|
2909
2913
|
size: 48,
|
|
2910
2914
|
"stroke-width": 1.5
|
|
2911
2915
|
})]),
|
|
2912
|
-
T("h2",
|
|
2913
|
-
T("p",
|
|
2916
|
+
T("h2", Xs, h(y(t).smallScreen.title), 1),
|
|
2917
|
+
T("p", Zs, h(y(t).smallScreen.message), 1)
|
|
2914
2918
|
]));
|
|
2915
2919
|
}
|
|
2916
|
-
}),
|
|
2920
|
+
}), $s = ["aria-label"], ec = [
|
|
2917
2921
|
"aria-checked",
|
|
2918
2922
|
"aria-label",
|
|
2919
2923
|
"title",
|
|
2920
2924
|
"onClick"
|
|
2921
|
-
],
|
|
2925
|
+
], tc = /* @__PURE__ */ A({
|
|
2922
2926
|
__name: "ViewportToggle",
|
|
2923
2927
|
props: { viewport: {} },
|
|
2924
2928
|
emits: ["change"],
|
|
@@ -2968,13 +2972,13 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
2968
2972
|
key: 1,
|
|
2969
2973
|
size: 18,
|
|
2970
2974
|
"stroke-width": 1.5
|
|
2971
|
-
})), T("span", null, h(t.label), 1)], 12,
|
|
2975
|
+
})), T("span", null, h(t.label), 1)], 12, ec))), 128))], 12, $s));
|
|
2972
2976
|
}
|
|
2973
|
-
}),
|
|
2977
|
+
}), nc = [
|
|
2974
2978
|
"aria-label",
|
|
2975
2979
|
"title",
|
|
2976
2980
|
"aria-pressed"
|
|
2977
|
-
],
|
|
2981
|
+
], rc = /*#__PURE__*/ Ze(/* @__PURE__ */ A({
|
|
2978
2982
|
__name: "PreviewToggle",
|
|
2979
2983
|
props: { previewMode: { type: Boolean } },
|
|
2980
2984
|
emits: ["change"],
|
|
@@ -3007,13 +3011,13 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
3007
3011
|
"stroke-width": 1.5
|
|
3008
3012
|
}))]),
|
|
3009
3013
|
_: 1
|
|
3010
|
-
})], 12,
|
|
3014
|
+
})], 12, nc));
|
|
3011
3015
|
}
|
|
3012
|
-
}), [["__scopeId", "data-v-af87d02a"]]),
|
|
3016
|
+
}), [["__scopeId", "data-v-af87d02a"]]), ic = [
|
|
3013
3017
|
"aria-label",
|
|
3014
3018
|
"title",
|
|
3015
3019
|
"aria-pressed"
|
|
3016
|
-
],
|
|
3020
|
+
], ac = /*#__PURE__*/ Ze(/* @__PURE__ */ A({
|
|
3017
3021
|
__name: "DarkModeToggle",
|
|
3018
3022
|
props: { darkMode: { type: Boolean } },
|
|
3019
3023
|
emits: ["change"],
|
|
@@ -3046,27 +3050,27 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
3046
3050
|
"stroke-width": 1.5
|
|
3047
3051
|
}))]),
|
|
3048
3052
|
_: 1
|
|
3049
|
-
})], 12,
|
|
3053
|
+
})], 12, ic));
|
|
3050
3054
|
}
|
|
3051
|
-
}), [["__scopeId", "data-v-f8694f76"]]),
|
|
3055
|
+
}), [["__scopeId", "data-v-f8694f76"]]), oc = {
|
|
3052
3056
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
3053
3057
|
style: {
|
|
3054
3058
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
3055
3059
|
"backdrop-filter": "blur(8px)",
|
|
3056
3060
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
3057
3061
|
}
|
|
3058
|
-
},
|
|
3062
|
+
}, sc = {
|
|
3059
3063
|
href: "https://github.com/templatical/sdk",
|
|
3060
3064
|
target: "_blank",
|
|
3061
3065
|
rel: "noopener noreferrer",
|
|
3062
3066
|
class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
|
|
3063
3067
|
style: { "text-decoration": "none" }
|
|
3064
|
-
},
|
|
3068
|
+
}, cc = /* @__PURE__ */ A({
|
|
3065
3069
|
__name: "EditorFooter",
|
|
3066
3070
|
props: { positionClass: {} },
|
|
3067
3071
|
setup(e) {
|
|
3068
3072
|
let { t } = z();
|
|
3069
|
-
return (n, r) => (o(), _("footer", { class: w(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [T("div",
|
|
3073
|
+
return (n, r) => (o(), _("footer", { class: w(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [T("div", oc, [
|
|
3070
3074
|
T("span", null, h(y(t).footer.poweredBy), 1),
|
|
3071
3075
|
r[0] ||= T("a", {
|
|
3072
3076
|
href: "https://templatical.com",
|
|
@@ -3081,32 +3085,32 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
3081
3085
|
alt: ""
|
|
3082
3086
|
}), k(" Templatical ")], -1),
|
|
3083
3087
|
r[1] ||= T("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
|
|
3084
|
-
T("a",
|
|
3088
|
+
T("a", sc, h(y(t).footer.openSource), 1)
|
|
3085
3089
|
])], 2));
|
|
3086
3090
|
}
|
|
3087
|
-
}),
|
|
3091
|
+
}), lc = ["aria-labelledby", "data-tpl-theme"], uc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, dc = ["id"], fc = ["aria-label"], pc = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, mc = [
|
|
3088
3092
|
"id",
|
|
3089
3093
|
"placeholder",
|
|
3090
3094
|
"aria-label",
|
|
3091
3095
|
"aria-activedescendant"
|
|
3092
|
-
],
|
|
3096
|
+
], hc = {
|
|
3093
3097
|
key: 0,
|
|
3094
3098
|
class: "tpl:flex tpl:gap-1.5 tpl:overflow-x-auto tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2",
|
|
3095
3099
|
"data-testid": "merge-tag-picker-group-pills"
|
|
3096
|
-
},
|
|
3100
|
+
}, gc = ["data-group-name", "onClick"], _c = ["aria-label"], vc = {
|
|
3097
3101
|
key: 0,
|
|
3098
3102
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3099
3103
|
"data-testid": "merge-tag-picker-empty"
|
|
3100
|
-
},
|
|
3104
|
+
}, yc = {
|
|
3101
3105
|
key: 1,
|
|
3102
3106
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3103
3107
|
"data-testid": "merge-tag-picker-empty"
|
|
3104
|
-
},
|
|
3108
|
+
}, bc = [
|
|
3105
3109
|
"aria-expanded",
|
|
3106
3110
|
"data-group-name",
|
|
3107
3111
|
"data-group-collapsed",
|
|
3108
3112
|
"onClick"
|
|
3109
|
-
],
|
|
3113
|
+
], xc = { class: "tpl:ml-1 tpl:font-normal" }, Sc = [
|
|
3110
3114
|
"id",
|
|
3111
3115
|
"aria-selected",
|
|
3112
3116
|
"data-selected",
|
|
@@ -3115,10 +3119,10 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
3115
3119
|
"title",
|
|
3116
3120
|
"onMousemove",
|
|
3117
3121
|
"onClick"
|
|
3118
|
-
],
|
|
3122
|
+
], Cc = { class: "tpl:text-sm tpl:font-medium" }, wc = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Tc = {
|
|
3119
3123
|
key: 0,
|
|
3120
3124
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3121
|
-
}, $ = "tpl-merge-tag-picker-list",
|
|
3125
|
+
}, $ = "tpl-merge-tag-picker-list", Ec = /* @__PURE__ */ A({
|
|
3122
3126
|
__name: "MergeTagPickerModal",
|
|
3123
3127
|
setup(e) {
|
|
3124
3128
|
let t = Pe(Ae, "MergeTagPickerModal"), { t: n, format: i } = z(), a = l(Xe, null), d = l(We, null), p = f(""), S = ze(p, 200), E = f(null), ee = g(() => S.value.trim().length > 0), k = f(0), A = g(() => t.tags.value.some((e) => !!e.group)), N = f(/* @__PURE__ */ new Set());
|
|
@@ -3251,10 +3255,10 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
3251
3255
|
class: "tpl tpl:flex tpl:max-h-[80vh] tpl:w-[min(420px,92vw)] tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
3252
3256
|
style: D(y(a))
|
|
3253
3257
|
}, [
|
|
3254
|
-
T("header",
|
|
3258
|
+
T("header", uc, [T("h2", {
|
|
3255
3259
|
id: `${$}-title`,
|
|
3256
3260
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3257
|
-
}, h(y(n).mergeTag.picker.title), 9,
|
|
3261
|
+
}, h(y(n).mergeTag.picker.title), 9, dc), T("button", {
|
|
3258
3262
|
type: "button",
|
|
3259
3263
|
class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
3260
3264
|
"aria-label": y(n).mergeTag.picker.close,
|
|
@@ -3263,8 +3267,8 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
3263
3267
|
}, [j(y(Fe), {
|
|
3264
3268
|
size: 16,
|
|
3265
3269
|
"stroke-width": 2
|
|
3266
|
-
})], 8,
|
|
3267
|
-
T("div",
|
|
3270
|
+
})], 8, fc)]),
|
|
3271
|
+
T("div", pc, [j(y(yt), {
|
|
3268
3272
|
class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
|
|
3269
3273
|
size: 14,
|
|
3270
3274
|
"stroke-width": 2
|
|
@@ -3281,15 +3285,15 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
3281
3285
|
"aria-activedescendant": ue(),
|
|
3282
3286
|
"data-testid": "merge-tag-picker-search",
|
|
3283
3287
|
onKeydown: s[1] ||= m(b(() => {}, ["prevent"]), ["enter"])
|
|
3284
|
-
}, null, 40,
|
|
3285
|
-
me.value ? (o(), _("div",
|
|
3288
|
+
}, null, 40, mc), [[C, p.value]])]),
|
|
3289
|
+
me.value ? (o(), _("div", hc, [(o(!0), _(O, null, c(re.value, (e) => (o(), _("button", {
|
|
3286
3290
|
key: e,
|
|
3287
3291
|
type: "button",
|
|
3288
3292
|
class: "tpl:flex tpl:flex-shrink-0 tpl:cursor-pointer tpl:items-center tpl:rounded-full tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-2.5 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
3289
3293
|
"data-testid": "merge-tag-picker-group-pill",
|
|
3290
3294
|
"data-group-name": e,
|
|
3291
3295
|
onClick: (t) => ce(e)
|
|
3292
|
-
}, h(e), 9,
|
|
3296
|
+
}, h(e), 9, gc))), 128))])) : v("", !0),
|
|
3293
3297
|
T("div", {
|
|
3294
3298
|
id: $,
|
|
3295
3299
|
ref_key: "listRef",
|
|
@@ -3298,7 +3302,7 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
3298
3302
|
role: "listbox",
|
|
3299
3303
|
"aria-label": y(n).mergeTag.picker.title,
|
|
3300
3304
|
"data-testid": "merge-tag-picker-list"
|
|
3301
|
-
}, [fe.value ? (o(), _("div",
|
|
3305
|
+
}, [fe.value ? (o(), _("div", vc, h(y(n).mergeTag.picker.empty), 1)) : pe.value ? (o(), _("div", yc, h(y(n).mergeTag.picker.noResults), 1)) : (o(!0), _(O, { key: 2 }, c(F.value, (e, t) => (o(), _(O, { key: t }, [e.kind === "header" ? (o(), _("button", {
|
|
3302
3306
|
key: 0,
|
|
3303
3307
|
ref_for: !0,
|
|
3304
3308
|
ref: (t) => oe(e.group, t),
|
|
@@ -3317,8 +3321,8 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
3317
3321
|
class: w(["tpl:transition-transform", P(e.group) ? "tpl:-rotate-90" : ""])
|
|
3318
3322
|
}, null, 8, ["class"]),
|
|
3319
3323
|
T("span", null, h(e.group), 1),
|
|
3320
|
-
T("span",
|
|
3321
|
-
], 8,
|
|
3324
|
+
T("span", xc, " (" + h(y(i)(y(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
3325
|
+
], 8, bc)) : (o(), _("button", {
|
|
3322
3326
|
key: 1,
|
|
3323
3327
|
id: de(e.index),
|
|
3324
3328
|
type: "button",
|
|
@@ -3333,16 +3337,16 @@ var Ba = { class: "tpl:mb-3.5" }, Va = ["value"], Ha = ["value"], Ua = /* @__PUR
|
|
|
3333
3337
|
onMousemove: (t) => k.value = e.index,
|
|
3334
3338
|
onClick: (t) => L(e.tag)
|
|
3335
3339
|
}, [
|
|
3336
|
-
T("span",
|
|
3337
|
-
T("span",
|
|
3338
|
-
e.tag.description ? (o(), _("span",
|
|
3339
|
-
], 42,
|
|
3340
|
-
], 12,
|
|
3340
|
+
T("span", Cc, h(e.tag.label), 1),
|
|
3341
|
+
T("span", wc, h(e.tag.value), 1),
|
|
3342
|
+
e.tag.description ? (o(), _("span", Tc, h(e.tag.description), 1)) : v("", !0)
|
|
3343
|
+
], 42, Sc))], 64))), 128))], 8, _c)
|
|
3344
|
+
], 12, lc)]),
|
|
3341
3345
|
_: 1
|
|
3342
3346
|
}, 8, ["visible"]));
|
|
3343
3347
|
}
|
|
3344
3348
|
});
|
|
3345
3349
|
//#endregion
|
|
3346
|
-
export {
|
|
3350
|
+
export { tc as a, an as c, It as d, rc as i, Jt as l, cc as n, Qs as o, ac as r, qs as s, Ec as t, qt as u };
|
|
3347
3351
|
|
|
3348
|
-
//# sourceMappingURL=styles-
|
|
3352
|
+
//# sourceMappingURL=styles-LfeoSNRA.js.map
|