@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
|
@@ -23,10 +23,10 @@ import { t as dt } from "./useMergeTag-e3RSY-s3.js";
|
|
|
23
23
|
import { t as ft } from "./useAliveFlag-BinvbqQR.js";
|
|
24
24
|
import { t as pt } from "./readableTextColor-f8Kykfnh.js";
|
|
25
25
|
import { t as mt } from "./CountdownBlock-C-6o19qS.js";
|
|
26
|
-
import { _ as ht, c as gt, f as U, g as _t, h as W, l as vt, m as G, p as K,
|
|
27
|
-
import { i as q, n as J, r as Y, t as
|
|
28
|
-
import { t as
|
|
29
|
-
var
|
|
26
|
+
import { _ as ht, c as gt, f as U, g as _t, h as W, l as vt, m as G, p as K, r as yt, t as bt } from "./styleConstants-lGobwiLH.js";
|
|
27
|
+
import { i as q, n as J, r as Y, t as xt } from "./NumberWithSuffix-Bp40ik4l.js";
|
|
28
|
+
import { t as St } from "./TplModal-utMtXzSO.js";
|
|
29
|
+
var Ct = H("lock-open", [["rect", {
|
|
30
30
|
width: "18",
|
|
31
31
|
height: "11",
|
|
32
32
|
x: "3",
|
|
@@ -37,7 +37,7 @@ var St = H("lock-open", [["rect", {
|
|
|
37
37
|
}], ["path", {
|
|
38
38
|
d: "M7 11V7a5 5 0 0 1 9.9-1",
|
|
39
39
|
key: "1mm8w8"
|
|
40
|
-
}]]),
|
|
40
|
+
}]]), wt = H("square-plus", [
|
|
41
41
|
["rect", {
|
|
42
42
|
width: "18",
|
|
43
43
|
height: "18",
|
|
@@ -54,12 +54,12 @@ var St = H("lock-open", [["rect", {
|
|
|
54
54
|
d: "M12 8v8",
|
|
55
55
|
key: "napkw2"
|
|
56
56
|
}]
|
|
57
|
-
]),
|
|
57
|
+
]), Tt = H("circle", [["circle", {
|
|
58
58
|
cx: "12",
|
|
59
59
|
cy: "12",
|
|
60
60
|
r: "10",
|
|
61
61
|
key: "1mglay"
|
|
62
|
-
}]]),
|
|
62
|
+
}]]), Et = H("globe", [
|
|
63
63
|
["circle", {
|
|
64
64
|
cx: "12",
|
|
65
65
|
cy: "12",
|
|
@@ -74,7 +74,7 @@ var St = H("lock-open", [["rect", {
|
|
|
74
74
|
d: "M2 12h20",
|
|
75
75
|
key: "9i4pu4"
|
|
76
76
|
}]
|
|
77
|
-
]),
|
|
77
|
+
]), Dt = H("layout-template", [
|
|
78
78
|
["rect", {
|
|
79
79
|
width: "18",
|
|
80
80
|
height: "7",
|
|
@@ -99,7 +99,7 @@ var St = H("lock-open", [["rect", {
|
|
|
99
99
|
rx: "1",
|
|
100
100
|
key: "q5h2i8"
|
|
101
101
|
}]
|
|
102
|
-
]),
|
|
102
|
+
]), Ot = H("lock", [["rect", {
|
|
103
103
|
width: "18",
|
|
104
104
|
height: "11",
|
|
105
105
|
x: "3",
|
|
@@ -110,7 +110,7 @@ var St = H("lock-open", [["rect", {
|
|
|
110
110
|
}], ["path", {
|
|
111
111
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
112
112
|
key: "fwvmzm"
|
|
113
|
-
}]]),
|
|
113
|
+
}]]), kt = H("monitor", [
|
|
114
114
|
["rect", {
|
|
115
115
|
width: "20",
|
|
116
116
|
height: "14",
|
|
@@ -133,10 +133,10 @@ var St = H("lock-open", [["rect", {
|
|
|
133
133
|
y2: "21",
|
|
134
134
|
key: "vw1qmm"
|
|
135
135
|
}]
|
|
136
|
-
]),
|
|
136
|
+
]), At = H("moon", [["path", {
|
|
137
137
|
d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
|
|
138
138
|
key: "kfwtm"
|
|
139
|
-
}]]),
|
|
139
|
+
}]]), jt = H("panel-top", [["rect", {
|
|
140
140
|
width: "18",
|
|
141
141
|
height: "18",
|
|
142
142
|
x: "3",
|
|
@@ -152,13 +152,13 @@ var St = H("lock-open", [["rect", {
|
|
|
152
152
|
}], ["path", {
|
|
153
153
|
d: "M12 5v14",
|
|
154
154
|
key: "s699le"
|
|
155
|
-
}]]),
|
|
155
|
+
}]]), Mt = H("rotate-ccw", [["path", {
|
|
156
156
|
d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
|
|
157
157
|
key: "1357e3"
|
|
158
158
|
}], ["path", {
|
|
159
159
|
d: "M3 3v5h5",
|
|
160
160
|
key: "1xhq8a"
|
|
161
|
-
}]]),
|
|
161
|
+
}]]), Nt = H("settings", [["path", {
|
|
162
162
|
d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
|
|
163
163
|
key: "1i5ecw"
|
|
164
164
|
}], ["circle", {
|
|
@@ -166,7 +166,7 @@ var St = H("lock-open", [["rect", {
|
|
|
166
166
|
cy: "12",
|
|
167
167
|
r: "3",
|
|
168
168
|
key: "1v7zrd"
|
|
169
|
-
}]]),
|
|
169
|
+
}]]), Pt = H("smartphone", [["rect", {
|
|
170
170
|
width: "14",
|
|
171
171
|
height: "20",
|
|
172
172
|
x: "5",
|
|
@@ -177,14 +177,14 @@ var St = H("lock-open", [["rect", {
|
|
|
177
177
|
}], ["path", {
|
|
178
178
|
d: "M12 18h.01",
|
|
179
179
|
key: "mhygvu"
|
|
180
|
-
}]]),
|
|
180
|
+
}]]), Ft = H("square", [["rect", {
|
|
181
181
|
width: "18",
|
|
182
182
|
height: "18",
|
|
183
183
|
x: "3",
|
|
184
184
|
y: "3",
|
|
185
185
|
rx: "2",
|
|
186
186
|
key: "afitv7"
|
|
187
|
-
}]]),
|
|
187
|
+
}]]), It = H("sun", [
|
|
188
188
|
["circle", {
|
|
189
189
|
cx: "12",
|
|
190
190
|
cy: "12",
|
|
@@ -226,7 +226,7 @@ var St = H("lock-open", [["rect", {
|
|
|
226
226
|
]);
|
|
227
227
|
//#endregion
|
|
228
228
|
//#region src/utils/resolveLintOptions.ts
|
|
229
|
-
function
|
|
229
|
+
function Lt(e) {
|
|
230
230
|
return {
|
|
231
231
|
...e.lint,
|
|
232
232
|
locale: e.locale
|
|
@@ -234,19 +234,19 @@ function It(e) {
|
|
|
234
234
|
}
|
|
235
235
|
//#endregion
|
|
236
236
|
//#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
237
|
-
var
|
|
237
|
+
var Rt = ["aria-label"], zt = {
|
|
238
238
|
key: 0,
|
|
239
239
|
class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
|
|
240
|
-
},
|
|
240
|
+
}, Bt = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Vt = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, Ht = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, Ut = {
|
|
241
241
|
key: 0,
|
|
242
242
|
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)]"
|
|
243
|
-
},
|
|
243
|
+
}, Wt = {
|
|
244
244
|
key: 1,
|
|
245
245
|
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)]"
|
|
246
|
-
},
|
|
246
|
+
}, Gt = { class: "tpl:relative" }, Kt = {
|
|
247
247
|
class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
|
|
248
248
|
style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
|
|
249
|
-
},
|
|
249
|
+
}, qt = 96, Jt = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
250
250
|
__name: "Canvas",
|
|
251
251
|
props: {
|
|
252
252
|
viewport: {},
|
|
@@ -290,7 +290,7 @@ var Lt = ["aria-label"], Rt = {
|
|
|
290
290
|
case "mobile": return 375;
|
|
291
291
|
default: return s.content.settings.width;
|
|
292
292
|
}
|
|
293
|
-
}), F = g(() => P.value +
|
|
293
|
+
}), F = g(() => P.value + qt * 2), ee = g(() => ({ fontFamily: s.content.settings.fontFamily })), I = g(() => N.value.length === 0 && !s.previewMode), L = u(0), te = g(() => I.value && L.value > 0);
|
|
294
294
|
function R() {
|
|
295
295
|
I.value && (L.value += 1);
|
|
296
296
|
}
|
|
@@ -368,14 +368,14 @@ var Lt = ["aria-label"], Rt = {
|
|
|
368
368
|
onDragleave: z,
|
|
369
369
|
onDrop: ne
|
|
370
370
|
}, {
|
|
371
|
-
default: M(() => [I.value ? (e(), v("div",
|
|
372
|
-
_("div",
|
|
371
|
+
default: M(() => [I.value ? (e(), v("div", zt, [
|
|
372
|
+
_("div", Bt, [k(T(wt), {
|
|
373
373
|
size: 48,
|
|
374
374
|
"stroke-width": 1
|
|
375
375
|
})]),
|
|
376
|
-
_("p",
|
|
377
|
-
_("p",
|
|
378
|
-
O.value && T(f) ? (e(), v("p",
|
|
376
|
+
_("p", Vt, D(T(l).canvas.noBlocks), 1),
|
|
377
|
+
_("p", Ht, D(T(l).canvas.dragHint), 1),
|
|
378
|
+
O.value && T(f) ? (e(), v("p", Ut, [
|
|
379
379
|
d(D(T(l).canvas.aiHintChat) + " ", 1),
|
|
380
380
|
_("button", {
|
|
381
381
|
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)]",
|
|
@@ -386,7 +386,7 @@ var Lt = ["aria-label"], Rt = {
|
|
|
386
386
|
}), d(" " + D(T(f).aiMenu.aiAssistant), 1)]),
|
|
387
387
|
d(" " + D(T(l).canvas.aiHintChatSuffix), 1)
|
|
388
388
|
])) : b("", !0),
|
|
389
|
-
j.value && T(f) ? (e(), v("p",
|
|
389
|
+
j.value && T(f) ? (e(), v("p", Wt, [
|
|
390
390
|
d(D(T(l).canvas.aiHintDesign) + " ", 1),
|
|
391
391
|
_("button", {
|
|
392
392
|
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)]",
|
|
@@ -400,7 +400,7 @@ var Lt = ["aria-label"], Rt = {
|
|
|
400
400
|
])) : b("", !0), (e(!0), v(y, null, o(N.value, (i) => t((e(), v("div", {
|
|
401
401
|
key: i.id,
|
|
402
402
|
class: "tpl-block-item"
|
|
403
|
-
}, [_("div",
|
|
403
|
+
}, [_("div", Gt, [B(i.id) ? (e(), v("div", {
|
|
404
404
|
key: 0,
|
|
405
405
|
class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
|
|
406
406
|
style: S({
|
|
@@ -413,7 +413,7 @@ var Lt = ["aria-label"], Rt = {
|
|
|
413
413
|
backgroundColor: B(i.id).color,
|
|
414
414
|
color: T(pt)(B(i.id).color)
|
|
415
415
|
})
|
|
416
|
-
}, [_("span",
|
|
416
|
+
}, [_("span", Kt, D(B(i.id).name.charAt(0)), 1), d(" " + D(B(i.id).name), 1)], 4)], 4)) : b("", !0), k(Ce, {
|
|
417
417
|
block: i,
|
|
418
418
|
"is-selected": !n.previewMode && n.selectedBlockId === i.id && !B(i.id),
|
|
419
419
|
viewport: n.viewport,
|
|
@@ -444,9 +444,9 @@ var Lt = ["aria-label"], Rt = {
|
|
|
444
444
|
"modelValue",
|
|
445
445
|
"disabled",
|
|
446
446
|
"class"
|
|
447
|
-
])], 6)], 12,
|
|
447
|
+
])], 6)], 12, Rt)], 4));
|
|
448
448
|
}
|
|
449
|
-
}), [["__scopeId", "data-v-a9a1158b"]]),
|
|
449
|
+
}), [["__scopeId", "data-v-a9a1158b"]]), Yt = m({
|
|
450
450
|
name: "CustomBlockStylesheets",
|
|
451
451
|
setup() {
|
|
452
452
|
let e = A(Fe, null);
|
|
@@ -459,7 +459,7 @@ var Lt = ["aria-label"], Rt = {
|
|
|
459
459
|
});
|
|
460
460
|
//#endregion
|
|
461
461
|
//#region src/utils/resolvePaletteBlocks.ts
|
|
462
|
-
function
|
|
462
|
+
function Xt(e, t) {
|
|
463
463
|
if (!t || t.length === 0) return {
|
|
464
464
|
items: e,
|
|
465
465
|
unknown: []
|
|
@@ -478,24 +478,24 @@ function Yt(e, t) {
|
|
|
478
478
|
}
|
|
479
479
|
//#endregion
|
|
480
480
|
//#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
481
|
-
var
|
|
481
|
+
var Zt = ["aria-label"], Qt = {
|
|
482
482
|
key: 0,
|
|
483
483
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
484
|
-
},
|
|
484
|
+
}, $t = ["aria-label"], en = {
|
|
485
485
|
key: 0,
|
|
486
486
|
class: "tpl:flex-1 tpl:truncate tpl:text-sm tpl:font-medium"
|
|
487
|
-
},
|
|
487
|
+
}, tn = {
|
|
488
488
|
key: 1,
|
|
489
489
|
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)]"
|
|
490
|
-
},
|
|
490
|
+
}, nn = [
|
|
491
491
|
"data-palette-type",
|
|
492
492
|
"aria-label",
|
|
493
493
|
"onClick",
|
|
494
494
|
"onKeydown"
|
|
495
|
-
],
|
|
495
|
+
], rn = { 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" }, an = {
|
|
496
496
|
key: 0,
|
|
497
497
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
498
|
-
},
|
|
498
|
+
}, on = /* @__PURE__ */ m({
|
|
499
499
|
__name: "Sidebar",
|
|
500
500
|
setup(t) {
|
|
501
501
|
let { t: n, format: i } = V(), { t: s } = ut(), c = A(Pe, []), l = A(Me, void 0), d = A(Ne, void 0), f = A(Re, null), p = A(He, {}), m = g(() => (p.savedModules?.moduleCount.value ?? 0) > 0), h = u(!1), x = u(!1);
|
|
@@ -535,7 +535,7 @@ var Xt = ["aria-label"], Zt = {
|
|
|
535
535
|
label: e.name,
|
|
536
536
|
isCustom: !0,
|
|
537
537
|
icon: e.icon
|
|
538
|
-
}))), F = g(() => [...N.value, ...P.value]), ee = g(() =>
|
|
538
|
+
}))), F = g(() => [...N.value, ...P.value]), ee = g(() => Xt(F.value, l)), I = g(() => ee.value.items), R = /* @__PURE__ */ new Set();
|
|
539
539
|
a(() => ee.value.unknown, (e) => {
|
|
540
540
|
for (let t of e) R.has(t) || (R.add(t), B.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.`));
|
|
541
541
|
}, { immediate: !0 });
|
|
@@ -568,7 +568,7 @@ var Xt = ["aria-label"], Zt = {
|
|
|
568
568
|
onMouseleave: w,
|
|
569
569
|
onFocusin: a[2] ||= (e) => h.value = !0,
|
|
570
570
|
onFocusout: a[3] ||= (e) => h.value = !1
|
|
571
|
-
}, [m.value && T(s) ? (e(), v("div",
|
|
571
|
+
}, [m.value && T(s) ? (e(), v("div", Qt, [_("button", {
|
|
572
572
|
type: "button",
|
|
573
573
|
"aria-label": T(n).sidebarNav.browseModules,
|
|
574
574
|
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)]",
|
|
@@ -580,9 +580,9 @@ var Xt = ["aria-label"], Zt = {
|
|
|
580
580
|
"stroke-width": 1.5,
|
|
581
581
|
class: "tpl:shrink-0"
|
|
582
582
|
}),
|
|
583
|
-
h.value ? (e(), v("span",
|
|
584
|
-
h.value ? (e(), v("span",
|
|
585
|
-
], 12,
|
|
583
|
+
h.value ? (e(), v("span", en, D(T(s).modules.title), 1)) : b("", !0),
|
|
584
|
+
h.value ? (e(), v("span", tn, D(T(p).savedModules?.moduleCount.value ?? 0), 1)) : b("", !0)
|
|
585
|
+
], 12, $t)])) : b("", !0), k(T(le), {
|
|
586
586
|
"model-value": I.value,
|
|
587
587
|
group: {
|
|
588
588
|
name: "blocks",
|
|
@@ -606,7 +606,7 @@ var Xt = ["aria-label"], Zt = {
|
|
|
606
606
|
style: S({ justifyContent: h.value ? "flex-start" : "center" }),
|
|
607
607
|
onClick: (e) => re(t),
|
|
608
608
|
onKeydown: (e) => ie(e, t)
|
|
609
|
-
}, [_("div",
|
|
609
|
+
}, [_("div", rn, [T(Ye)[t.type] ? (e(), C(r(T(Ye)[t.type]), {
|
|
610
610
|
key: 0,
|
|
611
611
|
size: 20,
|
|
612
612
|
"stroke-width": 1.5
|
|
@@ -614,14 +614,14 @@ var Xt = ["aria-label"], Zt = {
|
|
|
614
614
|
key: 1,
|
|
615
615
|
icon: t.icon,
|
|
616
616
|
size: 20
|
|
617
|
-
}, null, 8, ["icon"])) : b("", !0)]), h.value ? (e(), v("span",
|
|
617
|
+
}, null, 8, ["icon"])) : b("", !0)]), h.value ? (e(), v("span", an, D(t.label), 1)) : b("", !0)], 44, nn))), 128))]),
|
|
618
618
|
_: 1
|
|
619
|
-
}, 8, ["model-value"])], 44,
|
|
619
|
+
}, 8, ["model-value"])], 44, Zt));
|
|
620
620
|
}
|
|
621
621
|
});
|
|
622
622
|
//#endregion
|
|
623
623
|
//#region src/composables/useMergeTagField.ts
|
|
624
|
-
function
|
|
624
|
+
function sn(e) {
|
|
625
625
|
let { modelValue: t, emit: r, elementRef: i } = e, { canRequestMergeTag: a, isRequesting: o, isMergeTagValue: s, getMergeTagLabel: c, requestMergeTag: d, syntax: f } = dt(), p = u(!1), m = !1, h = !1;
|
|
626
626
|
l() && w(() => {
|
|
627
627
|
h = !0;
|
|
@@ -703,10 +703,10 @@ function on(e) {
|
|
|
703
703
|
}
|
|
704
704
|
//#endregion
|
|
705
705
|
//#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
|
|
706
|
-
var
|
|
706
|
+
var cn = ["aria-label", "onKeydown"], ln = ["data-tooltip"], un = ["data-tooltip"], dn = {
|
|
707
707
|
key: 2,
|
|
708
708
|
class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
709
|
-
},
|
|
709
|
+
}, fn = ["aria-label", "title"], pn = /* @__PURE__ */ m({
|
|
710
710
|
__name: "MergeTagSegments",
|
|
711
711
|
props: {
|
|
712
712
|
segments: {},
|
|
@@ -734,7 +734,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
734
734
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
735
735
|
color: "var(--tpl-primary)"
|
|
736
736
|
}
|
|
737
|
-
}, D(t.label), 9,
|
|
737
|
+
}, D(t.label), 9, ln)) : t.type === "logicMergeTag" ? (e(), v("span", {
|
|
738
738
|
key: 1,
|
|
739
739
|
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",
|
|
740
740
|
"data-tooltip": t.value,
|
|
@@ -743,7 +743,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
743
743
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
744
744
|
color: "var(--tpl-primary)"
|
|
745
745
|
}
|
|
746
|
-
}, D(t.keyword), 9,
|
|
746
|
+
}, D(t.keyword), 9, un)) : (e(), v("span", dn, D(t.value), 1))], 64))), 128)), _("button", {
|
|
747
747
|
type: "button",
|
|
748
748
|
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",
|
|
749
749
|
"aria-label": T(i).mergeTag.remove,
|
|
@@ -752,13 +752,13 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
752
752
|
}, [k(T(ct), {
|
|
753
753
|
size: 12,
|
|
754
754
|
"stroke-width": 2.5
|
|
755
|
-
})], 8,
|
|
755
|
+
})], 8, fn)], 42, cn));
|
|
756
756
|
}
|
|
757
|
-
}),
|
|
757
|
+
}), mn = [
|
|
758
758
|
"aria-label",
|
|
759
759
|
"title",
|
|
760
760
|
"disabled"
|
|
761
|
-
],
|
|
761
|
+
], hn = "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)]", gn = /* @__PURE__ */ m({
|
|
762
762
|
__name: "MergeTagInsertButton",
|
|
763
763
|
props: { disabled: { type: Boolean } },
|
|
764
764
|
emits: ["insert"],
|
|
@@ -766,7 +766,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
766
766
|
let { t: n } = V();
|
|
767
767
|
return (r, i) => (e(), v("button", {
|
|
768
768
|
type: "button",
|
|
769
|
-
class: p([
|
|
769
|
+
class: p([hn, "tpl:mt-1.5"]),
|
|
770
770
|
"aria-label": T(n).mergeTag.insert,
|
|
771
771
|
title: T(n).mergeTag.insert,
|
|
772
772
|
disabled: t.disabled,
|
|
@@ -774,13 +774,13 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
774
774
|
}, [k(T(ot), {
|
|
775
775
|
size: 12,
|
|
776
776
|
"stroke-width": 2
|
|
777
|
-
}), d(" " + D(T(n).mergeTag.insert), 1)], 10,
|
|
777
|
+
}), d(" " + D(T(n).mergeTag.insert), 1)], 10, mn));
|
|
778
778
|
}
|
|
779
|
-
}),
|
|
779
|
+
}), _n = { key: 0 }, vn = { key: 1 }, yn = [
|
|
780
780
|
"value",
|
|
781
781
|
"placeholder",
|
|
782
782
|
"rows"
|
|
783
|
-
],
|
|
783
|
+
], bn = "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)]", xn = "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)]", Sn = /* @__PURE__ */ m({
|
|
784
784
|
__name: "MergeTagTextarea",
|
|
785
785
|
props: {
|
|
786
786
|
modelValue: {},
|
|
@@ -789,41 +789,41 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
789
789
|
},
|
|
790
790
|
emits: ["update:modelValue"],
|
|
791
791
|
setup(t, { emit: n }) {
|
|
792
|
-
let r = t, i = n, a = u(null), { segments: o, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: d, startEditing: f, stopEditing: m, handleInput: h, clearValue: g, insertMergeTag: y } =
|
|
792
|
+
let r = t, i = n, a = u(null), { segments: o, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: d, startEditing: f, stopEditing: m, handleInput: h, clearValue: g, insertMergeTag: y } = sn({
|
|
793
793
|
modelValue: () => r.modelValue,
|
|
794
794
|
emit: (e) => i("update:modelValue", e),
|
|
795
795
|
elementRef: a
|
|
796
796
|
});
|
|
797
|
-
return (n, r) => T(s) && !T(d) ? (e(), v("div",
|
|
797
|
+
return (n, r) => T(s) && !T(d) ? (e(), v("div", _n, [k(pn, {
|
|
798
798
|
segments: T(o),
|
|
799
|
-
"display-class":
|
|
799
|
+
"display-class": xn,
|
|
800
800
|
onEdit: T(f),
|
|
801
801
|
onClear: T(g)
|
|
802
802
|
}, null, 8, [
|
|
803
803
|
"segments",
|
|
804
804
|
"onEdit",
|
|
805
805
|
"onClear"
|
|
806
|
-
]), T(c) ? (e(), C(
|
|
806
|
+
]), T(c) ? (e(), C(gn, {
|
|
807
807
|
key: 0,
|
|
808
808
|
disabled: T(l),
|
|
809
809
|
onInsert: T(y)
|
|
810
|
-
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : (e(), v("div",
|
|
810
|
+
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : (e(), v("div", vn, [_("textarea", {
|
|
811
811
|
ref_key: "textareaRef",
|
|
812
812
|
ref: a,
|
|
813
|
-
class: p(
|
|
813
|
+
class: p(bn),
|
|
814
814
|
value: t.modelValue,
|
|
815
815
|
placeholder: t.placeholder,
|
|
816
816
|
rows: t.rows,
|
|
817
817
|
onInput: r[0] ||= (...e) => T(h) && T(h)(...e),
|
|
818
818
|
onBlur: r[1] ||= (...e) => T(m) && T(m)(...e),
|
|
819
819
|
onKeydown: r[2] ||= E((...e) => T(m) && T(m)(...e), ["escape"])
|
|
820
|
-
}, null, 40,
|
|
820
|
+
}, null, 40, yn), T(c) ? (e(), C(gn, {
|
|
821
821
|
key: 0,
|
|
822
822
|
disabled: T(l),
|
|
823
823
|
onInsert: T(y)
|
|
824
824
|
}, null, 8, ["disabled", "onInsert"])) : b("", !0)]));
|
|
825
825
|
}
|
|
826
|
-
}),
|
|
826
|
+
}), Cn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, wn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, Tn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, En = { class: "tpl:mb-3.5" }, Dn = { 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)]" }, On = ["onClick"], kn = { class: "tpl:flex tpl:items-stretch" }, An = ["value"], jn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Mn = { class: "tpl:mb-3.5" }, Nn = ["value"], Pn = ["value"], Fn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, In = ["value"], Ln = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Rn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, zn = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Bn = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Vn = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, Hn = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Un = { 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)]" }, Wn = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Gn = { class: "tpl:mb-1 tpl:last:mb-0" }, Kn = { class: "tpl:mb-1 tpl:last:mb-0" }, qn = { class: "tpl:mb-1 tpl:last:mb-0" }, Jn = 150, Yn = /* @__PURE__ */ m({
|
|
827
827
|
__name: "TemplateSettings",
|
|
828
828
|
props: { settings: {} },
|
|
829
829
|
emits: ["update"],
|
|
@@ -846,14 +846,14 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
846
846
|
label: "800px"
|
|
847
847
|
}
|
|
848
848
|
];
|
|
849
|
-
return (n, r) => (e(), v("aside",
|
|
849
|
+
return (n, r) => (e(), v("aside", Cn, [_("div", wn, [
|
|
850
850
|
_("div", { class: p(T(vt)) }, [
|
|
851
|
-
_("div",
|
|
851
|
+
_("div", Tn, [k(T(Ft), {
|
|
852
852
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
853
853
|
size: 14,
|
|
854
854
|
"stroke-width": 2
|
|
855
855
|
}), _("span", null, D(T(a).templateSettings.layout), 1)]),
|
|
856
|
-
_("div",
|
|
856
|
+
_("div", En, [_("label", { class: p(T(W)) }, D(T(a).templateSettings.widthPreset), 3), _("div", Dn, [(e(), v(y, null, o(u, (e) => _("button", {
|
|
857
857
|
key: e.value,
|
|
858
858
|
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)]",
|
|
859
859
|
style: S({
|
|
@@ -862,25 +862,25 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
862
862
|
boxShadow: t.settings.width === e.value ? "var(--tpl-shadow)" : "none"
|
|
863
863
|
}),
|
|
864
864
|
onClick: (t) => i("update", { width: e.value })
|
|
865
|
-
}, D(e.label), 13,
|
|
866
|
-
_("div", null, [_("label", { class: p(T(W)) }, D(T(a).templateSettings.customWidth), 3), _("div",
|
|
865
|
+
}, D(e.label), 13, On)), 64))])]),
|
|
866
|
+
_("div", null, [_("label", { class: p(T(W)) }, D(T(a).templateSettings.customWidth), 3), _("div", kn, [_("input", {
|
|
867
867
|
type: "number",
|
|
868
868
|
class: p(T(K)),
|
|
869
869
|
value: t.settings.width,
|
|
870
870
|
min: "300",
|
|
871
871
|
max: "900",
|
|
872
872
|
onInput: r[0] ||= (e) => i("update", { width: Number(e.target.value) })
|
|
873
|
-
}, null, 42,
|
|
873
|
+
}, null, 42, An), _("span", { class: p(T(G)) }, "px", 2)])])
|
|
874
874
|
], 2),
|
|
875
875
|
_("div", { class: p(T(vt)) }, [
|
|
876
|
-
_("div",
|
|
876
|
+
_("div", jn, [k(T(Tt), {
|
|
877
877
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
878
878
|
size: 14,
|
|
879
879
|
"stroke-width": 2
|
|
880
880
|
}), _("span", null, D(T(a).templateSettings.appearance), 1)]),
|
|
881
|
-
_("div",
|
|
881
|
+
_("div", Mn, [_("label", { class: p(T(W)) }, D(T(a).templateSettings.backgroundColor), 3), k(q, {
|
|
882
882
|
"model-value": t.settings.backgroundColor,
|
|
883
|
-
placeholder: T(
|
|
883
|
+
placeholder: T(bt),
|
|
884
884
|
"onUpdate:modelValue": r[1] ||= (e) => i("update", { backgroundColor: e })
|
|
885
885
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
886
886
|
_("div", null, [_("label", { class: p(T(W)) }, D(T(a).templateSettings.fontFamily), 3), _("select", {
|
|
@@ -890,9 +890,9 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
890
890
|
}, [(e(!0), v(y, null, o(c.value, (t) => (e(), v("option", {
|
|
891
891
|
key: t.value,
|
|
892
892
|
value: t.value
|
|
893
|
-
}, D(t.label), 9,
|
|
893
|
+
}, D(t.label), 9, Pn))), 128))], 42, Nn)])
|
|
894
894
|
], 2),
|
|
895
|
-
_("div", { class: p(T(vt)) }, [_("div",
|
|
895
|
+
_("div", { class: p(T(vt)) }, [_("div", Fn, [k(T(Et), {
|
|
896
896
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
897
897
|
size: 14,
|
|
898
898
|
"stroke-width": 2
|
|
@@ -907,34 +907,34 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
907
907
|
autocapitalize: "off",
|
|
908
908
|
autocomplete: "off",
|
|
909
909
|
onInput: r[3] ||= (e) => i("update", { locale: e.target.value.trim() || void 0 })
|
|
910
|
-
}, null, 42,
|
|
911
|
-
_("p",
|
|
910
|
+
}, null, 42, In),
|
|
911
|
+
_("p", Ln, D(T(a).templateSettings.contentLocaleHint), 1)
|
|
912
912
|
])], 2),
|
|
913
|
-
_("div", { class: p(T(vt)) }, [_("div",
|
|
913
|
+
_("div", { class: p(T(vt)) }, [_("div", Rn, [k(T(tt), {
|
|
914
914
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
915
915
|
size: 14,
|
|
916
916
|
"stroke-width": 2
|
|
917
|
-
}), _("span", null, D(T(a).templateSettings.preheaderText), 1)]), _("div", null, [k(
|
|
917
|
+
}), _("span", null, D(T(a).templateSettings.preheaderText), 1)]), _("div", null, [k(Sn, {
|
|
918
918
|
"model-value": t.settings.preheaderText ?? "",
|
|
919
919
|
placeholder: T(a).templateSettings.preheaderTextPlaceholder,
|
|
920
920
|
rows: 2,
|
|
921
921
|
"onUpdate:modelValue": r[4] ||= (e) => i("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
|
|
922
|
-
}, null, 8, ["model-value", "placeholder"]), _("div",
|
|
923
|
-
_("div",
|
|
922
|
+
}, null, 8, ["model-value", "placeholder"]), _("div", zn, [_("span", Bn, D(T(a).templateSettings.preheaderTextHint), 1), _("span", Vn, D((t.settings.preheaderText ?? "").length) + "/" + D(Jn), 1)])])], 2),
|
|
923
|
+
_("div", Hn, [_("div", Un, [k(T(it), {
|
|
924
924
|
size: 14,
|
|
925
925
|
"stroke-width": 2
|
|
926
|
-
}), _("span", null, D(T(a).templateSettings.tips), 1)]), _("ul",
|
|
927
|
-
_("li",
|
|
928
|
-
_("li",
|
|
929
|
-
_("li",
|
|
926
|
+
}), _("span", null, D(T(a).templateSettings.tips), 1)]), _("ul", Wn, [
|
|
927
|
+
_("li", Gn, D(T(a).templateSettings.tip1), 1),
|
|
928
|
+
_("li", Kn, D(T(a).templateSettings.tip2), 1),
|
|
929
|
+
_("li", qn, D(T(a).templateSettings.tip3), 1)
|
|
930
930
|
])])
|
|
931
931
|
])]));
|
|
932
932
|
}
|
|
933
|
-
}),
|
|
933
|
+
}), Xn = { key: 0 }, Zn = { key: 1 }, Qn = [
|
|
934
934
|
"type",
|
|
935
935
|
"value",
|
|
936
936
|
"placeholder"
|
|
937
|
-
],
|
|
937
|
+
], $n = "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)]", Z = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
938
938
|
__name: "MergeTagInput",
|
|
939
939
|
props: {
|
|
940
940
|
modelValue: {},
|
|
@@ -947,14 +947,14 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
947
947
|
},
|
|
948
948
|
emits: ["update:modelValue"],
|
|
949
949
|
setup(t, { emit: n }) {
|
|
950
|
-
let r = t, i = n, a = u(null), { segments: o, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: d, startEditing: f, stopEditing: m, handleInput: h, clearValue: g, insertMergeTag: y } =
|
|
950
|
+
let r = t, i = n, a = u(null), { segments: o, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: d, startEditing: f, stopEditing: m, handleInput: h, clearValue: g, insertMergeTag: y } = sn({
|
|
951
951
|
modelValue: () => r.modelValue,
|
|
952
952
|
emit: (e) => i("update:modelValue", e),
|
|
953
953
|
elementRef: a
|
|
954
954
|
});
|
|
955
|
-
return (n, r) => T(s) && !T(d) ? (e(), v("div",
|
|
955
|
+
return (n, r) => T(s) && !T(d) ? (e(), v("div", Xn, [k(pn, {
|
|
956
956
|
segments: T(o),
|
|
957
|
-
"display-class":
|
|
957
|
+
"display-class": $n,
|
|
958
958
|
pulse: t.pulse,
|
|
959
959
|
onEdit: T(f),
|
|
960
960
|
onClear: T(g)
|
|
@@ -963,11 +963,11 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
963
963
|
"pulse",
|
|
964
964
|
"onEdit",
|
|
965
965
|
"onClear"
|
|
966
|
-
]), T(c) ? (e(), C(
|
|
966
|
+
]), T(c) ? (e(), C(gn, {
|
|
967
967
|
key: 0,
|
|
968
968
|
disabled: T(l),
|
|
969
969
|
onInsert: T(y)
|
|
970
|
-
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : (e(), v("div",
|
|
970
|
+
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : (e(), v("div", Zn, [_("input", {
|
|
971
971
|
ref_key: "inputRef",
|
|
972
972
|
ref: a,
|
|
973
973
|
type: t.type,
|
|
@@ -977,19 +977,19 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
977
977
|
onInput: r[0] ||= (...e) => T(h) && T(h)(...e),
|
|
978
978
|
onBlur: r[1] ||= (...e) => T(m) && T(m)(...e),
|
|
979
979
|
onKeydown: r[2] ||= E((...e) => T(m) && T(m)(...e), ["escape"])
|
|
980
|
-
}, null, 42,
|
|
980
|
+
}, null, 42, Qn), T(c) ? (e(), C(gn, {
|
|
981
981
|
key: 0,
|
|
982
982
|
disabled: T(l),
|
|
983
983
|
onInsert: T(y)
|
|
984
984
|
}, null, 8, ["disabled", "onInsert"])) : b("", !0)]));
|
|
985
985
|
}
|
|
986
|
-
}), [["__scopeId", "data-v-358207dd"]]),
|
|
986
|
+
}), [["__scopeId", "data-v-358207dd"]]), er = { class: "tpl:mb-3.5" }, tr = ["value"], nr = { value: "" }, rr = ["value"], ir = { class: "tpl:mb-3.5" }, ar = { class: "tpl:mb-3.5" }, or = {
|
|
987
987
|
key: 0,
|
|
988
988
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
989
|
-
},
|
|
989
|
+
}, sr = ["checked"], cr = { class: "tpl:mb-3.5" }, lr = { class: "tpl:mb-3.5" }, ur = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, dr = { class: "tpl:mb-3.5" }, fr = { class: "tpl:flex tpl:items-stretch" }, pr = ["value"], mr = { class: "tpl:mb-3.5" }, hr = { class: "tpl:flex tpl:items-stretch" }, gr = ["value"], _r = { class: "tpl:mb-3.5" }, vr = ["value"], yr = { value: "auto" }, br = { value: "full" }, xr = { value: "custom" }, Sr = {
|
|
990
990
|
key: 0,
|
|
991
991
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
992
|
-
},
|
|
992
|
+
}, Cr = ["value"], wr = 200, Tr = /* @__PURE__ */ m({
|
|
993
993
|
__name: "ButtonToolbar",
|
|
994
994
|
props: {
|
|
995
995
|
block: {},
|
|
@@ -1007,7 +1007,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1007
1007
|
return;
|
|
1008
1008
|
}
|
|
1009
1009
|
if (e === "custom") {
|
|
1010
|
-
c("width", typeof r.block.width == "number" ? r.block.width :
|
|
1010
|
+
c("width", typeof r.block.width == "number" ? r.block.width : wr);
|
|
1011
1011
|
return;
|
|
1012
1012
|
}
|
|
1013
1013
|
c("width", void 0);
|
|
@@ -1017,20 +1017,20 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1017
1017
|
!Number.isFinite(t) || t <= 0 || c("width", t);
|
|
1018
1018
|
}
|
|
1019
1019
|
return (n, r) => (e(), v(y, null, [
|
|
1020
|
-
_("div",
|
|
1020
|
+
_("div", er, [_("label", { class: p(T(W)) }, D(T(a).button.fontFamily), 3), _("select", {
|
|
1021
1021
|
class: p(T(U)),
|
|
1022
1022
|
value: t.block.fontFamily || "",
|
|
1023
1023
|
onChange: r[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
1024
|
-
}, [_("option",
|
|
1024
|
+
}, [_("option", nr, D(T(a).button.inheritFont), 1), (e(!0), v(y, null, o(t.fontFamilies, (t) => (e(), v("option", {
|
|
1025
1025
|
key: t.value,
|
|
1026
1026
|
value: t.value
|
|
1027
|
-
}, D(t.label), 9,
|
|
1028
|
-
_("div",
|
|
1027
|
+
}, D(t.label), 9, rr))), 128))], 42, tr)]),
|
|
1028
|
+
_("div", ir, [_("label", { class: p(T(W)) }, D(T(a).button.text), 3), k(Z, {
|
|
1029
1029
|
"model-value": t.block.text,
|
|
1030
1030
|
type: "text",
|
|
1031
1031
|
"onUpdate:modelValue": r[1] ||= (e) => c("text", e)
|
|
1032
1032
|
}, null, 8, ["model-value"])]),
|
|
1033
|
-
_("div",
|
|
1033
|
+
_("div", ar, [
|
|
1034
1034
|
_("label", { class: p(T(W)) }, D(T(a).button.url), 3),
|
|
1035
1035
|
k(Z, {
|
|
1036
1036
|
"model-value": t.block.url,
|
|
@@ -1038,58 +1038,58 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1038
1038
|
placeholder: T(a).button.urlPlaceholder,
|
|
1039
1039
|
"onUpdate:modelValue": r[2] ||= (e) => c("url", e)
|
|
1040
1040
|
}, null, 8, ["model-value", "placeholder"]),
|
|
1041
|
-
t.block.url ? (e(), v("label",
|
|
1041
|
+
t.block.url ? (e(), v("label", or, [_("input", {
|
|
1042
1042
|
type: "checkbox",
|
|
1043
1043
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
1044
1044
|
checked: t.block.openInNewTab ?? !1,
|
|
1045
1045
|
onChange: r[3] ||= (e) => c("openInNewTab", e.target.checked)
|
|
1046
|
-
}, null, 40,
|
|
1046
|
+
}, null, 40, sr), d(" " + D(T(a).button.openInNewTab), 1)])) : b("", !0)
|
|
1047
1047
|
]),
|
|
1048
|
-
_("div",
|
|
1048
|
+
_("div", cr, [_("label", { class: p(T(W)) }, D(T(a).button.background), 3), k(q, {
|
|
1049
1049
|
"model-value": t.block.backgroundColor,
|
|
1050
1050
|
"onUpdate:modelValue": r[4] ||= (e) => c("backgroundColor", e)
|
|
1051
1051
|
}, null, 8, ["model-value"])]),
|
|
1052
|
-
_("div",
|
|
1052
|
+
_("div", lr, [_("label", { class: p(T(W)) }, D(T(a).button.textColor), 3), k(q, {
|
|
1053
1053
|
"model-value": t.block.textColor,
|
|
1054
1054
|
"onUpdate:modelValue": r[5] ||= (e) => c("textColor", e)
|
|
1055
1055
|
}, null, 8, ["model-value"])]),
|
|
1056
|
-
_("div",
|
|
1056
|
+
_("div", ur, [_("div", dr, [_("label", { class: p(T(W)) }, D(T(a).button.borderRadius), 3), _("div", fr, [_("input", {
|
|
1057
1057
|
type: "number",
|
|
1058
1058
|
class: p(T(K)),
|
|
1059
1059
|
value: t.block.borderRadius,
|
|
1060
1060
|
min: "0",
|
|
1061
1061
|
max: "50",
|
|
1062
1062
|
onInput: r[6] ||= (e) => c("borderRadius", Number(e.target.value))
|
|
1063
|
-
}, null, 42,
|
|
1063
|
+
}, null, 42, pr), _("span", { class: p(T(G)) }, "px", 2)])]), _("div", mr, [_("label", { class: p(T(W)) }, D(T(a).button.fontSize), 3), _("div", hr, [_("input", {
|
|
1064
1064
|
type: "number",
|
|
1065
1065
|
class: p(T(K)),
|
|
1066
1066
|
value: t.block.fontSize,
|
|
1067
1067
|
min: "10",
|
|
1068
1068
|
max: "36",
|
|
1069
1069
|
onInput: r[7] ||= (e) => c("fontSize", Number(e.target.value))
|
|
1070
|
-
}, null, 42,
|
|
1071
|
-
_("div",
|
|
1070
|
+
}, null, 42, gr), _("span", { class: p(T(G)) }, "px", 2)])])]),
|
|
1071
|
+
_("div", _r, [
|
|
1072
1072
|
_("label", { class: p(T(W)) }, D(T(a).button.width), 3),
|
|
1073
1073
|
_("select", {
|
|
1074
1074
|
class: p(T(U)),
|
|
1075
1075
|
value: s.value,
|
|
1076
1076
|
onChange: r[8] ||= (e) => l(e.target.value)
|
|
1077
1077
|
}, [
|
|
1078
|
-
_("option",
|
|
1079
|
-
_("option",
|
|
1080
|
-
_("option",
|
|
1081
|
-
], 42,
|
|
1082
|
-
s.value === "custom" ? (e(), v("div",
|
|
1078
|
+
_("option", yr, D(T(a).button.widthAuto), 1),
|
|
1079
|
+
_("option", br, D(T(a).button.fullWidth), 1),
|
|
1080
|
+
_("option", xr, D(T(a).button.widthCustom), 1)
|
|
1081
|
+
], 42, vr),
|
|
1082
|
+
s.value === "custom" ? (e(), v("div", Sr, [_("input", {
|
|
1083
1083
|
type: "number",
|
|
1084
1084
|
class: p(T(K)),
|
|
1085
|
-
value: typeof t.block.width == "number" ? t.block.width :
|
|
1085
|
+
value: typeof t.block.width == "number" ? t.block.width : wr,
|
|
1086
1086
|
min: "20",
|
|
1087
1087
|
onInput: r[9] ||= (e) => u(e.target.value)
|
|
1088
|
-
}, null, 42,
|
|
1088
|
+
}, null, 42, Cr), _("span", { class: p(T(G)) }, "px", 2)])) : b("", !0)
|
|
1089
1089
|
])
|
|
1090
1090
|
], 64));
|
|
1091
1091
|
}
|
|
1092
|
-
}),
|
|
1092
|
+
}), Er = { class: "spacing-control" }, Dr = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Or = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, kr = { class: "tpl:flex tpl:items-center" }, Ar = ["aria-label"], jr = ["value", "aria-label"], Mr = ["aria-label"], Nr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Pr = { class: "tpl:flex tpl:items-center" }, Fr = ["aria-label"], Ir = ["value", "aria-label"], Lr = ["aria-label"], Rr = ["aria-label", "title"], zr = { class: "tpl:flex tpl:items-center" }, Br = ["aria-label"], Vr = ["value", "aria-label"], Hr = ["aria-label"], Ur = { class: "tpl:flex tpl:items-center" }, Wr = ["aria-label"], Gr = ["value", "aria-label"], Kr = ["aria-label"], Q = "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)]", qr = "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)]", Jr = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
1093
1093
|
__name: "SpacingControl",
|
|
1094
1094
|
props: {
|
|
1095
1095
|
modelValue: {},
|
|
@@ -1136,8 +1136,8 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1136
1136
|
});
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
|
-
return (n, r) => (e(), v("div",
|
|
1140
|
-
_("div",
|
|
1139
|
+
return (n, r) => (e(), v("div", Er, [_("label", Dr, D(t.label), 1), _("div", Or, [
|
|
1140
|
+
_("div", kr, [
|
|
1141
1141
|
_("button", {
|
|
1142
1142
|
"aria-label": T(o).spacingControl.decreaseTop,
|
|
1143
1143
|
class: p([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -1145,15 +1145,15 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1145
1145
|
}, [k(T(Ke), {
|
|
1146
1146
|
size: 12,
|
|
1147
1147
|
"stroke-width": 2
|
|
1148
|
-
})], 10,
|
|
1148
|
+
})], 10, Ar),
|
|
1149
1149
|
_("input", {
|
|
1150
1150
|
type: "number",
|
|
1151
|
-
class: p(
|
|
1151
|
+
class: p(qr),
|
|
1152
1152
|
value: t.modelValue.top,
|
|
1153
1153
|
"aria-label": T(o).spacingControl.top,
|
|
1154
1154
|
min: "0",
|
|
1155
1155
|
onInput: r[1] ||= (e) => d("top", Number(e.target.value))
|
|
1156
|
-
}, null, 40,
|
|
1156
|
+
}, null, 40, jr),
|
|
1157
1157
|
_("button", {
|
|
1158
1158
|
"aria-label": T(o).spacingControl.increaseTop,
|
|
1159
1159
|
class: p([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -1161,10 +1161,10 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1161
1161
|
}, [k(T(X), {
|
|
1162
1162
|
size: 12,
|
|
1163
1163
|
"stroke-width": 2
|
|
1164
|
-
})], 10,
|
|
1164
|
+
})], 10, Mr)
|
|
1165
1165
|
]),
|
|
1166
|
-
_("div",
|
|
1167
|
-
_("div",
|
|
1166
|
+
_("div", Nr, [
|
|
1167
|
+
_("div", Pr, [
|
|
1168
1168
|
_("button", {
|
|
1169
1169
|
"aria-label": T(o).spacingControl.decreaseLeft,
|
|
1170
1170
|
class: p([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -1172,15 +1172,15 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1172
1172
|
}, [k(T(Ke), {
|
|
1173
1173
|
size: 12,
|
|
1174
1174
|
"stroke-width": 2
|
|
1175
|
-
})], 10,
|
|
1175
|
+
})], 10, Fr),
|
|
1176
1176
|
_("input", {
|
|
1177
1177
|
type: "number",
|
|
1178
|
-
class: p(
|
|
1178
|
+
class: p(qr),
|
|
1179
1179
|
value: t.modelValue.left,
|
|
1180
1180
|
"aria-label": T(o).spacingControl.left,
|
|
1181
1181
|
min: "0",
|
|
1182
1182
|
onInput: r[4] ||= (e) => d("left", Number(e.target.value))
|
|
1183
|
-
}, null, 40,
|
|
1183
|
+
}, null, 40, Ir),
|
|
1184
1184
|
_("button", {
|
|
1185
1185
|
"aria-label": T(o).spacingControl.increaseLeft,
|
|
1186
1186
|
class: p([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -1188,23 +1188,23 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1188
1188
|
}, [k(T(X), {
|
|
1189
1189
|
size: 12,
|
|
1190
1190
|
"stroke-width": 2
|
|
1191
|
-
})], 10,
|
|
1191
|
+
})], 10, Lr)
|
|
1192
1192
|
]),
|
|
1193
1193
|
_("button", {
|
|
1194
1194
|
class: p(["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)]", c.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)]"]),
|
|
1195
1195
|
"aria-label": c.value ? T(o).spacingControl.unlock : T(o).spacingControl.lockAll,
|
|
1196
1196
|
title: c.value ? T(o).spacingControl.unlock : T(o).spacingControl.lockAll,
|
|
1197
1197
|
onClick: f
|
|
1198
|
-
}, [c.value ? (e(), C(T(
|
|
1198
|
+
}, [c.value ? (e(), C(T(Ot), {
|
|
1199
1199
|
key: 0,
|
|
1200
1200
|
size: 14,
|
|
1201
1201
|
"stroke-width": 2
|
|
1202
|
-
})) : (e(), C(T(
|
|
1202
|
+
})) : (e(), C(T(Ct), {
|
|
1203
1203
|
key: 1,
|
|
1204
1204
|
size: 14,
|
|
1205
1205
|
"stroke-width": 2
|
|
1206
|
-
}))], 10,
|
|
1207
|
-
_("div",
|
|
1206
|
+
}))], 10, Rr),
|
|
1207
|
+
_("div", zr, [
|
|
1208
1208
|
_("button", {
|
|
1209
1209
|
"aria-label": T(o).spacingControl.decreaseRight,
|
|
1210
1210
|
class: p([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -1212,15 +1212,15 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1212
1212
|
}, [k(T(Ke), {
|
|
1213
1213
|
size: 12,
|
|
1214
1214
|
"stroke-width": 2
|
|
1215
|
-
})], 10,
|
|
1215
|
+
})], 10, Br),
|
|
1216
1216
|
_("input", {
|
|
1217
1217
|
type: "number",
|
|
1218
|
-
class: p(
|
|
1218
|
+
class: p(qr),
|
|
1219
1219
|
value: t.modelValue.right,
|
|
1220
1220
|
"aria-label": T(o).spacingControl.right,
|
|
1221
1221
|
min: "0",
|
|
1222
1222
|
onInput: r[7] ||= (e) => d("right", Number(e.target.value))
|
|
1223
|
-
}, null, 40,
|
|
1223
|
+
}, null, 40, Vr),
|
|
1224
1224
|
_("button", {
|
|
1225
1225
|
"aria-label": T(o).spacingControl.increaseRight,
|
|
1226
1226
|
class: p([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -1228,10 +1228,10 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1228
1228
|
}, [k(T(X), {
|
|
1229
1229
|
size: 12,
|
|
1230
1230
|
"stroke-width": 2
|
|
1231
|
-
})], 10,
|
|
1231
|
+
})], 10, Hr)
|
|
1232
1232
|
])
|
|
1233
1233
|
]),
|
|
1234
|
-
_("div",
|
|
1234
|
+
_("div", Ur, [
|
|
1235
1235
|
_("button", {
|
|
1236
1236
|
"aria-label": T(o).spacingControl.decreaseBottom,
|
|
1237
1237
|
class: p([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
@@ -1239,15 +1239,15 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1239
1239
|
}, [k(T(Ke), {
|
|
1240
1240
|
size: 12,
|
|
1241
1241
|
"stroke-width": 2
|
|
1242
|
-
})], 10,
|
|
1242
|
+
})], 10, Wr),
|
|
1243
1243
|
_("input", {
|
|
1244
1244
|
type: "number",
|
|
1245
|
-
class: p(
|
|
1245
|
+
class: p(qr),
|
|
1246
1246
|
value: t.modelValue.bottom,
|
|
1247
1247
|
"aria-label": T(o).spacingControl.bottom,
|
|
1248
1248
|
min: "0",
|
|
1249
1249
|
onInput: r[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
1250
|
-
}, null, 40,
|
|
1250
|
+
}, null, 40, Gr),
|
|
1251
1251
|
_("button", {
|
|
1252
1252
|
"aria-label": T(o).spacingControl.increaseBottom,
|
|
1253
1253
|
class: p([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
@@ -1255,11 +1255,11 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1255
1255
|
}, [k(T(X), {
|
|
1256
1256
|
size: 12,
|
|
1257
1257
|
"stroke-width": 2
|
|
1258
|
-
})], 10,
|
|
1258
|
+
})], 10, Kr)
|
|
1259
1259
|
])
|
|
1260
1260
|
])]));
|
|
1261
1261
|
}
|
|
1262
|
-
}), [["__scopeId", "data-v-9a9c8a07"]]),
|
|
1262
|
+
}), [["__scopeId", "data-v-9a9c8a07"]]), Yr = { class: "tpl:mt-3" }, Xr = /* @__PURE__ */ m({
|
|
1263
1263
|
__name: "CollapsibleSection",
|
|
1264
1264
|
props: {
|
|
1265
1265
|
title: {},
|
|
@@ -1276,21 +1276,21 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1276
1276
|
class: p(["tpl:transition-transform tpl:duration-200", n.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1277
1277
|
size: 12,
|
|
1278
1278
|
"stroke-width": 2
|
|
1279
|
-
}, null, 8, ["class"]), _("span", null, D(n.title), 1)]), t(_("div",
|
|
1279
|
+
}, null, 8, ["class"]), _("span", null, D(n.title), 1)]), t(_("div", Yr, [s(r.$slots, "default")], 512), [[x, n.open]])], 2));
|
|
1280
1280
|
}
|
|
1281
|
-
}),
|
|
1281
|
+
}), Zr = { class: "tpl:space-y-2" }, Qr = ["checked", "onChange"], $r = { class: "tpl:space-y-2" }, ei = ["value"], ti = { value: "" }, ni = ["label"], ri = ["value"], ii = ["value"], ai = {
|
|
1282
1282
|
key: 0,
|
|
1283
1283
|
value: "__custom__"
|
|
1284
|
-
},
|
|
1284
|
+
}, oi = {
|
|
1285
1285
|
key: 0,
|
|
1286
1286
|
class: "tpl:space-y-2"
|
|
1287
|
-
},
|
|
1287
|
+
}, si = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ci = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, li = { class: "tpl:flex tpl:justify-end" }, ui = ["disabled"], di = {
|
|
1288
1288
|
key: 0,
|
|
1289
1289
|
class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
|
|
1290
|
-
},
|
|
1290
|
+
}, fi = { class: "tpl:space-y-1" }, pi = { 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)]" }, mi = {
|
|
1291
1291
|
key: 0,
|
|
1292
1292
|
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)]"
|
|
1293
|
-
},
|
|
1293
|
+
}, hi = /* @__PURE__ */ m({
|
|
1294
1294
|
__name: "CommonBlockSettings",
|
|
1295
1295
|
props: {
|
|
1296
1296
|
block: {},
|
|
@@ -1300,11 +1300,11 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1300
1300
|
setup(n, { emit: s }) {
|
|
1301
1301
|
let c = n, l = s, { t: m } = V(), h = A(Ve, []), x = A(ze, !1), S = i(/* @__PURE__ */ new Set()), w = u(!1), E = u(""), O = u(""), j = [{
|
|
1302
1302
|
key: "desktop",
|
|
1303
|
-
icon:
|
|
1303
|
+
icon: kt,
|
|
1304
1304
|
labelKey: "showOnDesktop"
|
|
1305
1305
|
}, {
|
|
1306
1306
|
key: "mobile",
|
|
1307
|
-
icon:
|
|
1307
|
+
icon: Pt,
|
|
1308
1308
|
labelKey: "showOnMobile"
|
|
1309
1309
|
}];
|
|
1310
1310
|
function N(e) {
|
|
@@ -1353,13 +1353,13 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1353
1353
|
t[e] = !t[e], l("update", { visibility: t });
|
|
1354
1354
|
}
|
|
1355
1355
|
return (i, a) => (e(), v("div", { class: p(["tpl:flex tpl:flex-col", n.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1356
|
-
k(
|
|
1356
|
+
k(Xr, {
|
|
1357
1357
|
title: T(m).blockSettings.spacing,
|
|
1358
1358
|
open: S.has("spacing"),
|
|
1359
1359
|
"no-border": n.isFirstSection,
|
|
1360
1360
|
onToggle: a[1] ||= (e) => N("spacing")
|
|
1361
1361
|
}, {
|
|
1362
|
-
default: M(() => [k(
|
|
1362
|
+
default: M(() => [k(Jr, {
|
|
1363
1363
|
label: T(m).blockSettings.padding,
|
|
1364
1364
|
"model-value": n.block.styles.padding,
|
|
1365
1365
|
"onUpdate:modelValue": a[0] ||= (e) => te("padding", e)
|
|
@@ -1370,24 +1370,23 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1370
1370
|
"open",
|
|
1371
1371
|
"no-border"
|
|
1372
1372
|
]),
|
|
1373
|
-
k(
|
|
1373
|
+
k(Xr, {
|
|
1374
1374
|
title: T(m).blockSettings.background,
|
|
1375
1375
|
open: S.has("bg"),
|
|
1376
1376
|
onToggle: a[3] ||= (e) => N("bg")
|
|
1377
1377
|
}, {
|
|
1378
1378
|
default: M(() => [_("label", { class: p(T(W)) }, D(T(m).blockSettings.color), 3), k(q, {
|
|
1379
|
-
|
|
1380
|
-
"model-value": n.block.styles.backgroundColor || T("#ffffff"),
|
|
1379
|
+
"model-value": n.block.styles.backgroundColor ?? "",
|
|
1381
1380
|
"onUpdate:modelValue": a[2] ||= (e) => te("backgroundColor", e)
|
|
1382
1381
|
}, null, 8, ["model-value"])]),
|
|
1383
1382
|
_: 1
|
|
1384
1383
|
}, 8, ["title", "open"]),
|
|
1385
|
-
k(
|
|
1384
|
+
k(Xr, {
|
|
1386
1385
|
title: T(m).blockSettings.display,
|
|
1387
1386
|
open: S.has("display"),
|
|
1388
1387
|
onToggle: a[4] ||= (e) => N("display")
|
|
1389
1388
|
}, {
|
|
1390
|
-
default: M(() => [_("div",
|
|
1389
|
+
default: M(() => [_("div", Zr, [(e(), v(y, null, o(j, (t) => _("label", {
|
|
1391
1390
|
key: t.key,
|
|
1392
1391
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]"
|
|
1393
1392
|
}, [
|
|
@@ -1396,7 +1395,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1396
1395
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
1397
1396
|
checked: R(t.key),
|
|
1398
1397
|
onChange: (e) => z(t.key)
|
|
1399
|
-
}, null, 40,
|
|
1398
|
+
}, null, 40, Qr),
|
|
1400
1399
|
(e(), C(r(t.icon), {
|
|
1401
1400
|
size: 14,
|
|
1402
1401
|
"stroke-width": 1.5
|
|
@@ -1405,13 +1404,13 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1405
1404
|
])), 64))])]),
|
|
1406
1405
|
_: 1
|
|
1407
1406
|
}, 8, ["title", "open"]),
|
|
1408
|
-
P.value ? (e(), C(
|
|
1407
|
+
P.value ? (e(), C(Xr, {
|
|
1409
1408
|
key: 0,
|
|
1410
1409
|
title: T(m).blockSettings.displayCondition,
|
|
1411
1410
|
open: S.has("condition"),
|
|
1412
1411
|
onToggle: a[8] ||= (e) => N("condition")
|
|
1413
1412
|
}, {
|
|
1414
|
-
default: M(() => [_("div",
|
|
1413
|
+
default: M(() => [_("div", $r, [_("select", {
|
|
1415
1414
|
class: p(["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)]", n.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)]"]),
|
|
1416
1415
|
value: w.value || F.value ? "__custom__" : n.block.displayCondition?.label ?? "",
|
|
1417
1416
|
onChange: a[5] ||= (e) => {
|
|
@@ -1428,48 +1427,48 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1428
1427
|
n && l("update", { displayCondition: n });
|
|
1429
1428
|
}
|
|
1430
1429
|
}, [
|
|
1431
|
-
_("option",
|
|
1430
|
+
_("option", ti, D(T(m).blockSettings.noCondition), 1),
|
|
1432
1431
|
(e(!0), v(y, null, o(L.value, (t, n) => (e(), v(y, { key: n }, [n ? (e(), v("optgroup", {
|
|
1433
1432
|
key: 0,
|
|
1434
1433
|
label: String(n)
|
|
1435
1434
|
}, [(e(!0), v(y, null, o(t, (t) => (e(), v("option", {
|
|
1436
1435
|
key: t.label,
|
|
1437
1436
|
value: t.label
|
|
1438
|
-
}, D(t.label), 9,
|
|
1437
|
+
}, D(t.label), 9, ri))), 128))], 8, ni)) : (e(!0), v(y, { key: 1 }, o(t, (t) => (e(), v("option", {
|
|
1439
1438
|
key: t.label,
|
|
1440
1439
|
value: t.label
|
|
1441
|
-
}, D(t.label), 9,
|
|
1442
|
-
T(x) ? (e(), v("option",
|
|
1443
|
-
], 42,
|
|
1444
|
-
_("div", null, [_("label",
|
|
1440
|
+
}, D(t.label), 9, ii))), 128))], 64))), 128)),
|
|
1441
|
+
T(x) ? (e(), v("option", ai, D(T(m).blockSettings.customCondition), 1)) : b("", !0)
|
|
1442
|
+
], 42, ei), w.value || F.value ? (e(), v("div", oi, [
|
|
1443
|
+
_("div", null, [_("label", si, D(T(m).blockSettings.customConditionBefore), 1), t(_("textarea", {
|
|
1445
1444
|
"onUpdate:modelValue": a[6] ||= (e) => E.value = e,
|
|
1446
1445
|
rows: "2",
|
|
1447
1446
|
class: p(T(_t))
|
|
1448
1447
|
}, null, 2), [[f, E.value]])]),
|
|
1449
|
-
_("div", null, [_("label",
|
|
1448
|
+
_("div", null, [_("label", ci, D(T(m).blockSettings.customConditionAfter), 1), t(_("textarea", {
|
|
1450
1449
|
"onUpdate:modelValue": a[7] ||= (e) => O.value = e,
|
|
1451
1450
|
rows: "2",
|
|
1452
1451
|
class: p(T(_t))
|
|
1453
1452
|
}, null, 2), [[f, O.value]])]),
|
|
1454
|
-
_("div",
|
|
1453
|
+
_("div", li, [_("button", {
|
|
1455
1454
|
type: "button",
|
|
1456
1455
|
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",
|
|
1457
1456
|
disabled: !E.value.trim(),
|
|
1458
1457
|
onClick: I
|
|
1459
|
-
}, D(T(m).blockSettings.applyCondition), 9,
|
|
1460
|
-
])) : n.block.displayCondition && !F.value ? (e(), v(y, { key: 1 }, [n.block.displayCondition.description ? (e(), v("p",
|
|
1458
|
+
}, D(T(m).blockSettings.applyCondition), 9, ui)])
|
|
1459
|
+
])) : n.block.displayCondition && !F.value ? (e(), v(y, { key: 1 }, [n.block.displayCondition.description ? (e(), v("p", di, D(n.block.displayCondition.description), 1)) : b("", !0), _("div", fi, [_("pre", pi, D(n.block.displayCondition.before), 1), n.block.displayCondition.after ? (e(), v("pre", mi, D(n.block.displayCondition.after), 1)) : b("", !0)])], 64)) : b("", !0)])]),
|
|
1461
1460
|
_: 1
|
|
1462
1461
|
}, 8, ["title", "open"])) : b("", !0)
|
|
1463
1462
|
], 2));
|
|
1464
1463
|
}
|
|
1465
|
-
}),
|
|
1464
|
+
}), gi = ["title"], _i = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, vi = {
|
|
1466
1465
|
key: 1,
|
|
1467
1466
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1468
|
-
},
|
|
1467
|
+
}, yi = [
|
|
1469
1468
|
"aria-checked",
|
|
1470
1469
|
"aria-label",
|
|
1471
1470
|
"disabled"
|
|
1472
|
-
],
|
|
1471
|
+
], bi = /* @__PURE__ */ m({
|
|
1473
1472
|
__name: "BooleanField",
|
|
1474
1473
|
props: {
|
|
1475
1474
|
field: {},
|
|
@@ -1482,14 +1481,14 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1482
1481
|
return (n, a) => (e(), v("div", {
|
|
1483
1482
|
class: "tpl:mb-3.5",
|
|
1484
1483
|
title: t.readOnly ? T(i).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1485
|
-
}, [_("label", { class: p(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", t.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [_("span",
|
|
1484
|
+
}, [_("label", { class: p(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", t.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [_("span", _i, [
|
|
1486
1485
|
d(D(t.field.label) + " ", 1),
|
|
1487
|
-
t.readOnly ? (e(), C(T(
|
|
1486
|
+
t.readOnly ? (e(), C(T(Ot), {
|
|
1488
1487
|
key: 0,
|
|
1489
1488
|
size: 12,
|
|
1490
1489
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1491
1490
|
})) : b("", !0),
|
|
1492
|
-
t.field.required ? (e(), v("span",
|
|
1491
|
+
t.field.required ? (e(), v("span", vi, " * ")) : b("", !0)
|
|
1493
1492
|
]), _("button", {
|
|
1494
1493
|
type: "button",
|
|
1495
1494
|
role: "switch",
|
|
@@ -1502,12 +1501,12 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1502
1501
|
]),
|
|
1503
1502
|
disabled: t.readOnly,
|
|
1504
1503
|
onClick: a[0] ||= (e) => !t.readOnly && r("update:modelValue", !t.modelValue)
|
|
1505
|
-
}, [_("span", { class: p(["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", t.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10,
|
|
1504
|
+
}, [_("span", { class: p(["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", t.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, yi)], 2)], 8, gi));
|
|
1506
1505
|
}
|
|
1507
|
-
}),
|
|
1506
|
+
}), xi = { class: "tpl:mb-3.5" }, Si = {
|
|
1508
1507
|
key: 1,
|
|
1509
1508
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1510
|
-
},
|
|
1509
|
+
}, Ci = /* @__PURE__ */ m({
|
|
1511
1510
|
__name: "FieldWrapper",
|
|
1512
1511
|
props: {
|
|
1513
1512
|
label: {},
|
|
@@ -1515,17 +1514,17 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1515
1514
|
readOnly: { type: Boolean }
|
|
1516
1515
|
},
|
|
1517
1516
|
setup(t) {
|
|
1518
|
-
return (n, r) => (e(), v("div",
|
|
1517
|
+
return (n, r) => (e(), v("div", xi, [_("label", { class: p(T(W)) }, [
|
|
1519
1518
|
d(D(t.label) + " ", 1),
|
|
1520
|
-
t.readOnly ? (e(), C(T(
|
|
1519
|
+
t.readOnly ? (e(), C(T(Ot), {
|
|
1521
1520
|
key: 0,
|
|
1522
1521
|
size: 12,
|
|
1523
1522
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1524
1523
|
})) : b("", !0),
|
|
1525
|
-
t.required ? (e(), v("span",
|
|
1524
|
+
t.required ? (e(), v("span", Si, "*")) : b("", !0)
|
|
1526
1525
|
], 2), s(n.$slots, "default")]));
|
|
1527
1526
|
}
|
|
1528
|
-
}),
|
|
1527
|
+
}), wi = /* @__PURE__ */ m({
|
|
1529
1528
|
__name: "ColorField",
|
|
1530
1529
|
props: {
|
|
1531
1530
|
field: {},
|
|
@@ -1535,14 +1534,14 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1535
1534
|
emits: ["update:modelValue"],
|
|
1536
1535
|
setup(t, { emit: n }) {
|
|
1537
1536
|
let r = n, { t: i } = V();
|
|
1538
|
-
return (n, a) => (e(), C(
|
|
1537
|
+
return (n, a) => (e(), C(Ci, {
|
|
1539
1538
|
label: t.field.label,
|
|
1540
1539
|
required: t.field.required,
|
|
1541
1540
|
"read-only": t.readOnly
|
|
1542
1541
|
}, {
|
|
1543
1542
|
default: M(() => [k(q, {
|
|
1544
|
-
"model-value": t.modelValue
|
|
1545
|
-
placeholder: t.field.placeholder
|
|
1543
|
+
"model-value": t.modelValue,
|
|
1544
|
+
placeholder: t.field.placeholder,
|
|
1546
1545
|
disabled: t.readOnly,
|
|
1547
1546
|
title: t.readOnly ? T(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1548
1547
|
"onUpdate:modelValue": a[0] ||= (e) => r("update:modelValue", e)
|
|
@@ -1559,11 +1558,11 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1559
1558
|
"read-only"
|
|
1560
1559
|
]));
|
|
1561
1560
|
}
|
|
1562
|
-
}),
|
|
1561
|
+
}), Ti = [
|
|
1563
1562
|
"value",
|
|
1564
1563
|
"placeholder",
|
|
1565
1564
|
"title"
|
|
1566
|
-
],
|
|
1565
|
+
], Ei = ["value", "placeholder"], Di = /* @__PURE__ */ m({
|
|
1567
1566
|
__name: "ImageField",
|
|
1568
1567
|
props: {
|
|
1569
1568
|
field: {},
|
|
@@ -1577,7 +1576,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1577
1576
|
let e = await a?.({ accept: ["images"] });
|
|
1578
1577
|
o.alive && e && r("update:modelValue", e.url);
|
|
1579
1578
|
}
|
|
1580
|
-
return (n, a) => (e(), C(
|
|
1579
|
+
return (n, a) => (e(), C(Ci, {
|
|
1581
1580
|
label: t.field.label,
|
|
1582
1581
|
required: t.field.required,
|
|
1583
1582
|
"read-only": t.readOnly
|
|
@@ -1590,14 +1589,14 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1590
1589
|
placeholder: t.field.placeholder || "https://...",
|
|
1591
1590
|
disabled: "",
|
|
1592
1591
|
title: T(i).customBlocks.dataSource.readOnlyTooltip
|
|
1593
|
-
}, null, 10,
|
|
1592
|
+
}, null, 10, Ti)) : (e(), v("input", {
|
|
1594
1593
|
key: 1,
|
|
1595
1594
|
type: "url",
|
|
1596
1595
|
class: p(T(U)),
|
|
1597
1596
|
value: t.modelValue,
|
|
1598
1597
|
placeholder: t.field.placeholder || "https://...",
|
|
1599
1598
|
onInput: a[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
1600
|
-
}, null, 42,
|
|
1599
|
+
}, null, 42, Ei)), s.value && !t.readOnly ? (e(), v("button", {
|
|
1601
1600
|
key: 2,
|
|
1602
1601
|
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)]",
|
|
1603
1602
|
onClick: a[1] ||= (e) => c()
|
|
@@ -1612,7 +1611,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1612
1611
|
"read-only"
|
|
1613
1612
|
]));
|
|
1614
1613
|
}
|
|
1615
|
-
}),
|
|
1614
|
+
}), Oi = [
|
|
1616
1615
|
"value",
|
|
1617
1616
|
"placeholder",
|
|
1618
1617
|
"min",
|
|
@@ -1620,7 +1619,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1620
1619
|
"step",
|
|
1621
1620
|
"disabled",
|
|
1622
1621
|
"title"
|
|
1623
|
-
],
|
|
1622
|
+
], ki = /* @__PURE__ */ m({
|
|
1624
1623
|
__name: "NumberField",
|
|
1625
1624
|
props: {
|
|
1626
1625
|
field: {},
|
|
@@ -1630,7 +1629,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1630
1629
|
emits: ["update:modelValue"],
|
|
1631
1630
|
setup(t, { emit: n }) {
|
|
1632
1631
|
let r = n, { t: i } = V();
|
|
1633
|
-
return (n, a) => (e(), C(
|
|
1632
|
+
return (n, a) => (e(), C(Ci, {
|
|
1634
1633
|
label: t.field.label,
|
|
1635
1634
|
required: t.field.required,
|
|
1636
1635
|
"read-only": t.readOnly
|
|
@@ -1646,7 +1645,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1646
1645
|
disabled: t.readOnly,
|
|
1647
1646
|
title: t.readOnly ? T(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1648
1647
|
onInput: a[0] ||= (e) => !t.readOnly && r("update:modelValue", Number(e.target.value))
|
|
1649
|
-
}, null, 42,
|
|
1648
|
+
}, null, 42, Oi)]),
|
|
1650
1649
|
_: 1
|
|
1651
1650
|
}, 8, [
|
|
1652
1651
|
"label",
|
|
@@ -1654,10 +1653,10 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1654
1653
|
"read-only"
|
|
1655
1654
|
]));
|
|
1656
1655
|
}
|
|
1657
|
-
}),
|
|
1656
|
+
}), Ai = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ji = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Mi = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Ni = ["title", "onClick"], Pi = {
|
|
1658
1657
|
key: 1,
|
|
1659
1658
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1660
|
-
},
|
|
1659
|
+
}, Fi = /* @__PURE__ */ m({
|
|
1661
1660
|
__name: "RepeatableField",
|
|
1662
1661
|
props: {
|
|
1663
1662
|
field: {},
|
|
@@ -1684,16 +1683,16 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1684
1683
|
[t]: n
|
|
1685
1684
|
} : r));
|
|
1686
1685
|
}
|
|
1687
|
-
return (n, i) => (e(), C(
|
|
1686
|
+
return (n, i) => (e(), C(Ci, {
|
|
1688
1687
|
label: t.field.label,
|
|
1689
1688
|
required: t.field.required,
|
|
1690
1689
|
"read-only": t.readOnly
|
|
1691
1690
|
}, {
|
|
1692
|
-
default: M(() => [_("div",
|
|
1691
|
+
default: M(() => [_("div", Ai, [
|
|
1693
1692
|
(e(!0), v(y, null, o(c.value, (n, i) => (e(), v("div", {
|
|
1694
1693
|
key: `${t.field.key}-${i}`,
|
|
1695
1694
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1696
|
-
}, [_("div",
|
|
1695
|
+
}, [_("div", ji, [_("span", Mi, " #" + D(i + 1), 1), u.value && !t.readOnly ? (e(), v("button", {
|
|
1697
1696
|
key: 0,
|
|
1698
1697
|
type: "button",
|
|
1699
1698
|
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)]",
|
|
@@ -1702,7 +1701,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1702
1701
|
}, [k(T(st), {
|
|
1703
1702
|
size: 12,
|
|
1704
1703
|
"stroke-width": 2
|
|
1705
|
-
})], 8,
|
|
1704
|
+
})], 8, Ni)) : b("", !0)]), (e(!0), v(y, null, o(t.field.fields, (a) => (e(), C(r(T(Wi)(a.type)), {
|
|
1706
1705
|
key: a.key,
|
|
1707
1706
|
field: a,
|
|
1708
1707
|
"model-value": n[a.key],
|
|
@@ -1723,7 +1722,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1723
1722
|
size: 14,
|
|
1724
1723
|
"stroke-width": 2
|
|
1725
1724
|
}), d(" " + D(T(s).customBlocks.fields.addItem), 1)], 2)) : b("", !0),
|
|
1726
|
-
!l.value && !t.readOnly ? (e(), v("p",
|
|
1725
|
+
!l.value && !t.readOnly ? (e(), v("p", Pi, D(T(s).customBlocks.fields.maxItemsReached), 1)) : b("", !0)
|
|
1727
1726
|
])]),
|
|
1728
1727
|
_: 1
|
|
1729
1728
|
}, 8, [
|
|
@@ -1732,11 +1731,11 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1732
1731
|
"read-only"
|
|
1733
1732
|
]));
|
|
1734
1733
|
}
|
|
1735
|
-
}),
|
|
1734
|
+
}), Ii = [
|
|
1736
1735
|
"value",
|
|
1737
1736
|
"disabled",
|
|
1738
1737
|
"title"
|
|
1739
|
-
],
|
|
1738
|
+
], Li = ["value"], Ri = /* @__PURE__ */ m({
|
|
1740
1739
|
__name: "SelectField",
|
|
1741
1740
|
props: {
|
|
1742
1741
|
field: {},
|
|
@@ -1746,7 +1745,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1746
1745
|
emits: ["update:modelValue"],
|
|
1747
1746
|
setup(t, { emit: n }) {
|
|
1748
1747
|
let r = n, { t: i } = V();
|
|
1749
|
-
return (n, a) => (e(), C(
|
|
1748
|
+
return (n, a) => (e(), C(Ci, {
|
|
1750
1749
|
label: t.field.label,
|
|
1751
1750
|
required: t.field.required,
|
|
1752
1751
|
"read-only": t.readOnly
|
|
@@ -1760,7 +1759,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1760
1759
|
}, [(e(!0), v(y, null, o(t.field.options, (t) => (e(), v("option", {
|
|
1761
1760
|
key: t.value,
|
|
1762
1761
|
value: t.value
|
|
1763
|
-
}, D(t.label), 9,
|
|
1762
|
+
}, D(t.label), 9, Li))), 128))], 42, Ii)]),
|
|
1764
1763
|
_: 1
|
|
1765
1764
|
}, 8, [
|
|
1766
1765
|
"label",
|
|
@@ -1768,11 +1767,11 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1768
1767
|
"read-only"
|
|
1769
1768
|
]));
|
|
1770
1769
|
}
|
|
1771
|
-
}),
|
|
1770
|
+
}), zi = [
|
|
1772
1771
|
"value",
|
|
1773
1772
|
"placeholder",
|
|
1774
1773
|
"title"
|
|
1775
|
-
],
|
|
1774
|
+
], Bi = /* @__PURE__ */ m({
|
|
1776
1775
|
__name: "TextField",
|
|
1777
1776
|
props: {
|
|
1778
1777
|
field: {},
|
|
@@ -1782,7 +1781,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1782
1781
|
emits: ["update:modelValue"],
|
|
1783
1782
|
setup(t, { emit: n }) {
|
|
1784
1783
|
let r = n, { t: i } = V();
|
|
1785
|
-
return (n, a) => (e(), C(
|
|
1784
|
+
return (n, a) => (e(), C(Ci, {
|
|
1786
1785
|
label: t.field.label,
|
|
1787
1786
|
required: t.field.required,
|
|
1788
1787
|
"read-only": t.readOnly
|
|
@@ -1795,7 +1794,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1795
1794
|
placeholder: t.field.placeholder,
|
|
1796
1795
|
disabled: "",
|
|
1797
1796
|
title: T(i).customBlocks.dataSource.readOnlyTooltip
|
|
1798
|
-
}, null, 10,
|
|
1797
|
+
}, null, 10, zi)) : (e(), C(Z, {
|
|
1799
1798
|
key: 1,
|
|
1800
1799
|
"model-value": t.modelValue,
|
|
1801
1800
|
placeholder: t.field.placeholder,
|
|
@@ -1808,12 +1807,12 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1808
1807
|
"read-only"
|
|
1809
1808
|
]));
|
|
1810
1809
|
}
|
|
1811
|
-
}),
|
|
1810
|
+
}), Vi = [
|
|
1812
1811
|
"value",
|
|
1813
1812
|
"placeholder",
|
|
1814
1813
|
"title"
|
|
1815
|
-
],
|
|
1816
|
-
text:
|
|
1814
|
+
], Hi = "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", Ui = {
|
|
1815
|
+
text: Bi,
|
|
1817
1816
|
textarea: /* @__PURE__ */ m({
|
|
1818
1817
|
__name: "TextareaField",
|
|
1819
1818
|
props: {
|
|
@@ -1824,7 +1823,7 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1824
1823
|
emits: ["update:modelValue"],
|
|
1825
1824
|
setup(t, { emit: n }) {
|
|
1826
1825
|
let r = n, { t: i } = V();
|
|
1827
|
-
return (n, a) => (e(), C(
|
|
1826
|
+
return (n, a) => (e(), C(Ci, {
|
|
1828
1827
|
label: t.field.label,
|
|
1829
1828
|
required: t.field.required,
|
|
1830
1829
|
"read-only": t.readOnly
|
|
@@ -1836,8 +1835,8 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1836
1835
|
rows: "3",
|
|
1837
1836
|
disabled: "",
|
|
1838
1837
|
title: T(i).customBlocks.dataSource.readOnlyTooltip,
|
|
1839
|
-
class: p(
|
|
1840
|
-
}, null, 8,
|
|
1838
|
+
class: p(Hi)
|
|
1839
|
+
}, null, 8, Vi)) : (e(), C(Sn, {
|
|
1841
1840
|
key: 1,
|
|
1842
1841
|
"model-value": t.modelValue,
|
|
1843
1842
|
placeholder: t.field.placeholder,
|
|
@@ -1851,37 +1850,37 @@ var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip
|
|
|
1851
1850
|
]));
|
|
1852
1851
|
}
|
|
1853
1852
|
}),
|
|
1854
|
-
image:
|
|
1855
|
-
color:
|
|
1856
|
-
number:
|
|
1857
|
-
select:
|
|
1858
|
-
boolean:
|
|
1859
|
-
repeatable:
|
|
1853
|
+
image: Di,
|
|
1854
|
+
color: wi,
|
|
1855
|
+
number: ki,
|
|
1856
|
+
select: Ri,
|
|
1857
|
+
boolean: bi,
|
|
1858
|
+
repeatable: Fi
|
|
1860
1859
|
};
|
|
1861
|
-
function
|
|
1862
|
-
return
|
|
1860
|
+
function Wi(e) {
|
|
1861
|
+
return Ui[e] ?? Bi;
|
|
1863
1862
|
}
|
|
1864
1863
|
//#endregion
|
|
1865
1864
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1866
|
-
var
|
|
1865
|
+
var Gi = {
|
|
1867
1866
|
key: 0,
|
|
1868
1867
|
class: "tpl:p-4"
|
|
1869
|
-
},
|
|
1868
|
+
}, Ki = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, qi = { key: 1 }, Ji = {
|
|
1870
1869
|
key: 0,
|
|
1871
1870
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1872
|
-
},
|
|
1871
|
+
}, Yi = {
|
|
1873
1872
|
key: 1,
|
|
1874
1873
|
class: "tpl:mb-4"
|
|
1875
|
-
},
|
|
1874
|
+
}, Xi = {
|
|
1876
1875
|
key: 1,
|
|
1877
1876
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1878
|
-
},
|
|
1877
|
+
}, Zi = {
|
|
1879
1878
|
key: 0,
|
|
1880
1879
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1881
|
-
},
|
|
1880
|
+
}, Qi = {
|
|
1882
1881
|
key: 2,
|
|
1883
1882
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1884
|
-
},
|
|
1883
|
+
}, $i = /* @__PURE__ */ m({
|
|
1885
1884
|
__name: "CustomBlockToolbar",
|
|
1886
1885
|
props: { block: {} },
|
|
1887
1886
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
@@ -1902,23 +1901,23 @@ var Wi = {
|
|
|
1902
1901
|
[e]: t
|
|
1903
1902
|
});
|
|
1904
1903
|
}
|
|
1905
|
-
return (n, i) => l.value ? (e(), v("div",
|
|
1906
|
-
l.value.description ? (e(), v("p",
|
|
1907
|
-
T(m) ? (e(), v("div",
|
|
1904
|
+
return (n, i) => l.value ? (e(), v("div", qi, [
|
|
1905
|
+
l.value.description ? (e(), v("p", Ji, D(l.value.description), 1)) : b("", !0),
|
|
1906
|
+
T(m) ? (e(), v("div", Yi, [T(h) && !T(u) ? (e(), v("button", {
|
|
1908
1907
|
key: 0,
|
|
1909
1908
|
type: "button",
|
|
1910
1909
|
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)]",
|
|
1911
1910
|
onClick: i[0] ||= (...e) => T(p) && T(p)(...e)
|
|
1912
|
-
}, D(l.value?.dataSource?.label || T(s).customBlocks.dataSource.fetchButton), 1)) : (e(), v("div",
|
|
1911
|
+
}, D(l.value?.dataSource?.label || T(s).customBlocks.dataSource.fetchButton), 1)) : (e(), v("div", Xi, [T(u) ? (e(), v("div", Zi, D(T(s).customBlocks.dataSource.fetching), 1)) : (e(), v("button", {
|
|
1913
1912
|
key: 1,
|
|
1914
1913
|
type: "button",
|
|
1915
1914
|
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)]",
|
|
1916
1915
|
onClick: i[1] ||= (...e) => T(p) && T(p)(...e)
|
|
1917
|
-
}, [k(T(nt), { size: 12 }), d(" " + D(T(s).customBlocks.dataSource.changeButton), 1)]))])), T(f) ? (e(), v("p",
|
|
1916
|
+
}, [k(T(nt), { size: 12 }), d(" " + D(T(s).customBlocks.dataSource.changeButton), 1)]))])), T(f) ? (e(), v("p", Qi, [k(T(Ge), {
|
|
1918
1917
|
size: 14,
|
|
1919
1918
|
class: "tpl:shrink-0"
|
|
1920
1919
|
}), d(" " + D(T(s).customBlocks.dataSource.fetchError), 1)])) : b("", !0)])) : b("", !0),
|
|
1921
|
-
(e(!0), v(y, null, o(l.value.fields, (n) => (e(), C(r(T(
|
|
1920
|
+
(e(!0), v(y, null, o(l.value.fields, (n) => (e(), C(r(T(Wi)(n.type)), {
|
|
1922
1921
|
key: n.key,
|
|
1923
1922
|
field: n,
|
|
1924
1923
|
"model-value": t.block.fieldValues[n.key],
|
|
@@ -1930,9 +1929,9 @@ var Wi = {
|
|
|
1930
1929
|
"read-only",
|
|
1931
1930
|
"onUpdate:modelValue"
|
|
1932
1931
|
]))), 128))
|
|
1933
|
-
])) : (e(), v("div",
|
|
1932
|
+
])) : (e(), v("div", Gi, [_("p", Ki, D(T(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
1934
1933
|
}
|
|
1935
|
-
}),
|
|
1934
|
+
}), ea = { class: "tpl:mb-3.5" }, ta = { class: "tpl:mb-3.5" }, na = { class: "tpl:mb-3.5" }, ra = { class: "tpl:flex tpl:items-stretch" }, ia = ["value"], aa = /* @__PURE__ */ m({
|
|
1936
1935
|
__name: "DividerToolbar",
|
|
1937
1936
|
props: { block: {} },
|
|
1938
1937
|
emits: ["update"],
|
|
@@ -1942,7 +1941,7 @@ var Wi = {
|
|
|
1942
1941
|
r("update", { [e]: t });
|
|
1943
1942
|
}
|
|
1944
1943
|
return (n, r) => (e(), v(y, null, [
|
|
1945
|
-
_("div",
|
|
1944
|
+
_("div", ea, [_("label", { class: p(T(W)) }, D(T(i).divider.style), 3), k(Y, {
|
|
1946
1945
|
options: [
|
|
1947
1946
|
{
|
|
1948
1947
|
value: "solid",
|
|
@@ -1960,27 +1959,27 @@ var Wi = {
|
|
|
1960
1959
|
"model-value": t.block.lineStyle,
|
|
1961
1960
|
"onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
|
|
1962
1961
|
}, null, 8, ["options", "model-value"])]),
|
|
1963
|
-
_("div",
|
|
1962
|
+
_("div", ta, [_("label", { class: p(T(W)) }, D(T(i).divider.color), 3), k(q, {
|
|
1964
1963
|
"model-value": t.block.color,
|
|
1965
1964
|
"onUpdate:modelValue": r[1] ||= (e) => a("color", e)
|
|
1966
1965
|
}, null, 8, ["model-value"])]),
|
|
1967
|
-
_("div",
|
|
1966
|
+
_("div", na, [_("label", { class: p(T(W)) }, D(T(i).divider.thickness), 3), _("div", ra, [_("input", {
|
|
1968
1967
|
type: "number",
|
|
1969
1968
|
class: p(T(K)),
|
|
1970
1969
|
value: t.block.thickness,
|
|
1971
1970
|
min: "1",
|
|
1972
1971
|
max: "10",
|
|
1973
1972
|
onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
|
|
1974
|
-
}, null, 42,
|
|
1973
|
+
}, null, 42, ia), _("span", { class: p(T(G)) }, "px", 2)])])
|
|
1975
1974
|
], 64));
|
|
1976
1975
|
}
|
|
1977
|
-
}),
|
|
1976
|
+
}), oa = { class: "tpl:mb-3.5" }, sa = ["value"], ca = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, la = /* @__PURE__ */ m({
|
|
1978
1977
|
__name: "HtmlToolbar",
|
|
1979
1978
|
props: { block: {} },
|
|
1980
1979
|
emits: ["update"],
|
|
1981
1980
|
setup(t, { emit: n }) {
|
|
1982
1981
|
let r = n, { t: i } = V();
|
|
1983
|
-
return (n, a) => (e(), v("div",
|
|
1982
|
+
return (n, a) => (e(), v("div", oa, [
|
|
1984
1983
|
_("label", { class: p(T(W)) }, D(T(i).html.content), 3),
|
|
1985
1984
|
_("textarea", {
|
|
1986
1985
|
value: t.block.content,
|
|
@@ -1988,23 +1987,23 @@ var Wi = {
|
|
|
1988
1987
|
rows: "10",
|
|
1989
1988
|
class: p(T(_t)),
|
|
1990
1989
|
onInput: a[0] ||= (e) => r("update", { content: e.target.value })
|
|
1991
|
-
}, null, 42,
|
|
1992
|
-
_("p",
|
|
1990
|
+
}, null, 42, sa),
|
|
1991
|
+
_("p", ca, [k(T(it), {
|
|
1993
1992
|
size: 12,
|
|
1994
1993
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1995
1994
|
}), d(" " + D(T(i).html.sanitizationHint), 1)])
|
|
1996
1995
|
]));
|
|
1997
1996
|
}
|
|
1998
|
-
}),
|
|
1997
|
+
}), ua = { class: "tpl:mb-3.5" }, da = {
|
|
1999
1998
|
key: 0,
|
|
2000
1999
|
class: "tpl:mb-3.5"
|
|
2001
|
-
},
|
|
2000
|
+
}, fa = ["value", "placeholder"], pa = { class: "tpl:mb-3.5" }, ma = { class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]" }, ha = ["checked"], ga = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, _a = { class: "tpl:mb-3.5" }, va = ["value"], ya = { value: "full" }, ba = { value: "custom" }, xa = {
|
|
2002
2001
|
key: 0,
|
|
2003
2002
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2004
|
-
},
|
|
2003
|
+
}, Sa = ["value"], Ca = { class: "tpl:mb-3.5" }, wa = { class: "tpl:mb-3.5" }, Ta = {
|
|
2005
2004
|
key: 0,
|
|
2006
2005
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
2007
|
-
},
|
|
2006
|
+
}, Ea = ["checked"], Da = 350, Oa = /* @__PURE__ */ m({
|
|
2008
2007
|
__name: "ImageToolbar",
|
|
2009
2008
|
props: { block: {} },
|
|
2010
2009
|
emits: ["update"],
|
|
@@ -2025,7 +2024,7 @@ var Wi = {
|
|
|
2025
2024
|
function w(e) {
|
|
2026
2025
|
if (e === "custom") {
|
|
2027
2026
|
let e = r.block.width;
|
|
2028
|
-
(typeof e != "number" || x.includes(e)) && C("width",
|
|
2027
|
+
(typeof e != "number" || x.includes(e)) && C("width", Da);
|
|
2029
2028
|
return;
|
|
2030
2029
|
}
|
|
2031
2030
|
C("width", e === "full" ? "full" : Number(e));
|
|
@@ -2039,7 +2038,7 @@ var Wi = {
|
|
|
2039
2038
|
c.alive && e && (C("src", e.url), e.alt && (C("alt", e.alt), m.value = !0), f.value = !0, h());
|
|
2040
2039
|
}
|
|
2041
2040
|
return (n, r) => (e(), v(y, null, [
|
|
2042
|
-
_("div",
|
|
2041
|
+
_("div", ua, [
|
|
2043
2042
|
_("label", { class: p(T(W)) }, D(T(a).image.imageUrl), 3),
|
|
2044
2043
|
k(Z, {
|
|
2045
2044
|
"model-value": t.block.src,
|
|
@@ -2066,14 +2065,14 @@ var Wi = {
|
|
|
2066
2065
|
"stroke-width": 1.5
|
|
2067
2066
|
}), d(" " + D(T(a).image.browseMedia), 1)])) : b("", !0)
|
|
2068
2067
|
]),
|
|
2069
|
-
T(ee)(t.block.src, T(s)) ? (e(), v("div",
|
|
2068
|
+
T(ee)(t.block.src, T(s)) ? (e(), v("div", da, [_("label", { class: p(T(W)) }, [d(D(T(a).image.placeholderUrl) + " ", 1), r[9] ||= _("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, D("(optional)"), -1)], 2), _("input", {
|
|
2070
2069
|
type: "url",
|
|
2071
2070
|
class: p(T(U)),
|
|
2072
2071
|
value: t.block.placeholderUrl || "",
|
|
2073
2072
|
placeholder: T(a).image.placeholderUrlPlaceholder,
|
|
2074
2073
|
onInput: r[1] ||= (e) => C("placeholderUrl", e.target.value)
|
|
2075
|
-
}, null, 42,
|
|
2076
|
-
_("div",
|
|
2074
|
+
}, null, 42, fa)])) : b("", !0),
|
|
2075
|
+
_("div", pa, [
|
|
2077
2076
|
_("label", { class: p(T(W)) }, D(T(a).image.altText), 3),
|
|
2078
2077
|
k(Z, {
|
|
2079
2078
|
"model-value": t.block.alt,
|
|
@@ -2088,35 +2087,35 @@ var Wi = {
|
|
|
2088
2087
|
"pulse",
|
|
2089
2088
|
"disabled"
|
|
2090
2089
|
]),
|
|
2091
|
-
_("label",
|
|
2090
|
+
_("label", ma, [_("input", {
|
|
2092
2091
|
type: "checkbox",
|
|
2093
2092
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2094
2093
|
checked: t.block.decorative === !0,
|
|
2095
2094
|
onChange: r[3] ||= (e) => C("decorative", e.target.checked)
|
|
2096
|
-
}, null, 40,
|
|
2095
|
+
}, null, 40, ha), _("span", null, [d(D(T(a).image.decorative) + " ", 1), _("span", ga, D(T(a).image.decorativeHint), 1)])])
|
|
2097
2096
|
]),
|
|
2098
|
-
_("div",
|
|
2097
|
+
_("div", _a, [
|
|
2099
2098
|
_("label", { class: p(T(W)) }, D(T(a).image.width), 3),
|
|
2100
2099
|
_("select", {
|
|
2101
2100
|
class: p(T(U)),
|
|
2102
2101
|
value: S.value,
|
|
2103
2102
|
onChange: r[4] ||= (e) => w(e.target.value)
|
|
2104
2103
|
}, [
|
|
2105
|
-
_("option",
|
|
2104
|
+
_("option", ya, D(T(a).image.fullWidth), 1),
|
|
2106
2105
|
r[10] ||= _("option", { value: "300" }, "300px", -1),
|
|
2107
2106
|
r[11] ||= _("option", { value: "400" }, "400px", -1),
|
|
2108
2107
|
r[12] ||= _("option", { value: "500" }, "500px", -1),
|
|
2109
|
-
_("option",
|
|
2110
|
-
], 42,
|
|
2111
|
-
S.value === "custom" ? (e(), v("div",
|
|
2108
|
+
_("option", ba, D(T(a).image.widthCustom), 1)
|
|
2109
|
+
], 42, va),
|
|
2110
|
+
S.value === "custom" ? (e(), v("div", xa, [_("input", {
|
|
2112
2111
|
type: "number",
|
|
2113
2112
|
class: p(T(K)),
|
|
2114
|
-
value: typeof t.block.width == "number" ? t.block.width :
|
|
2113
|
+
value: typeof t.block.width == "number" ? t.block.width : Da,
|
|
2115
2114
|
min: "20",
|
|
2116
2115
|
onInput: r[5] ||= (e) => E(e.target.value)
|
|
2117
|
-
}, null, 42,
|
|
2116
|
+
}, null, 42, Sa), _("span", { class: p(T(G)) }, "px", 2)])) : b("", !0)
|
|
2118
2117
|
]),
|
|
2119
|
-
_("div",
|
|
2118
|
+
_("div", Ca, [_("label", { class: p(T(W)) }, D(T(a).title.align), 3), k(Y, {
|
|
2120
2119
|
options: [
|
|
2121
2120
|
{
|
|
2122
2121
|
value: "left",
|
|
@@ -2134,7 +2133,7 @@ var Wi = {
|
|
|
2134
2133
|
"model-value": t.block.align,
|
|
2135
2134
|
"onUpdate:modelValue": r[6] ||= (e) => C("align", e)
|
|
2136
2135
|
}, null, 8, ["options", "model-value"])]),
|
|
2137
|
-
_("div",
|
|
2136
|
+
_("div", wa, [
|
|
2138
2137
|
_("label", { class: p(T(W)) }, D(T(a).image.linkUrl), 3),
|
|
2139
2138
|
k(Z, {
|
|
2140
2139
|
"model-value": t.block.linkUrl || "",
|
|
@@ -2142,20 +2141,20 @@ var Wi = {
|
|
|
2142
2141
|
placeholder: T(a).image.imageUrlPlaceholder,
|
|
2143
2142
|
"onUpdate:modelValue": r[7] ||= (e) => C("linkUrl", e)
|
|
2144
2143
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2145
|
-
t.block.linkUrl ? (e(), v("label",
|
|
2144
|
+
t.block.linkUrl ? (e(), v("label", Ta, [_("input", {
|
|
2146
2145
|
type: "checkbox",
|
|
2147
2146
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2148
2147
|
checked: t.block.linkOpenInNewTab ?? !1,
|
|
2149
2148
|
onChange: r[8] ||= (e) => C("linkOpenInNewTab", e.target.checked)
|
|
2150
|
-
}, null, 40,
|
|
2149
|
+
}, null, 40, Ea), d(" " + D(T(a).image.openInNewTab), 1)])) : b("", !0)
|
|
2151
2150
|
])
|
|
2152
2151
|
], 64));
|
|
2153
2152
|
}
|
|
2154
|
-
}),
|
|
2153
|
+
}), ka = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Aa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ja = [
|
|
2155
2154
|
"value",
|
|
2156
2155
|
"placeholder",
|
|
2157
2156
|
"onInput"
|
|
2158
|
-
],
|
|
2157
|
+
], Ma = ["title", "onClick"], Na = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Pa = ["checked", "onChange"], Fa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ia = ["value"], La = { value: "" }, Ra = ["value"], za = ["value"], Ba = /* @__PURE__ */ m({
|
|
2159
2158
|
__name: "MenuToolbar",
|
|
2160
2159
|
props: {
|
|
2161
2160
|
block: {},
|
|
@@ -2218,24 +2217,24 @@ var Wi = {
|
|
|
2218
2217
|
}
|
|
2219
2218
|
return (n, r) => (e(), v(y, null, [
|
|
2220
2219
|
k(J, { label: T(a).menu.items }, {
|
|
2221
|
-
default: M(() => [_("div",
|
|
2220
|
+
default: M(() => [_("div", ka, [(e(!0), v(y, null, o(t.block.items, (n) => (e(), v("div", {
|
|
2222
2221
|
key: n.id,
|
|
2223
2222
|
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"
|
|
2224
2223
|
}, [
|
|
2225
|
-
_("div",
|
|
2224
|
+
_("div", Aa, [_("input", {
|
|
2226
2225
|
type: "text",
|
|
2227
2226
|
class: p([T(U), "tpl:flex-1"]),
|
|
2228
2227
|
value: n.text,
|
|
2229
2228
|
placeholder: T(a).menu.text,
|
|
2230
2229
|
onInput: (e) => f(n.id, "text", e.target.value)
|
|
2231
|
-
}, null, 42,
|
|
2230
|
+
}, null, 42, ja), _("button", {
|
|
2232
2231
|
class: p(T(ht)),
|
|
2233
2232
|
title: T(a).menu.removeItem,
|
|
2234
2233
|
onClick: (e) => m(n.id)
|
|
2235
2234
|
}, [k(T(ct), {
|
|
2236
2235
|
size: 14,
|
|
2237
2236
|
"stroke-width": 2
|
|
2238
|
-
})], 10,
|
|
2237
|
+
})], 10, Ma)]),
|
|
2239
2238
|
k(Z, {
|
|
2240
2239
|
"model-value": n.url,
|
|
2241
2240
|
type: "url",
|
|
@@ -2246,7 +2245,7 @@ var Wi = {
|
|
|
2246
2245
|
"placeholder",
|
|
2247
2246
|
"onUpdate:modelValue"
|
|
2248
2247
|
]),
|
|
2249
|
-
_("div",
|
|
2248
|
+
_("div", Na, [(e(!0), v(y, null, o(s.value, (t) => (e(), v("label", {
|
|
2250
2249
|
key: t.key,
|
|
2251
2250
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1"
|
|
2252
2251
|
}, [_("input", {
|
|
@@ -2254,8 +2253,8 @@ var Wi = {
|
|
|
2254
2253
|
checked: n[t.key],
|
|
2255
2254
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2256
2255
|
onChange: (e) => f(n.id, t.key, e.target.checked)
|
|
2257
|
-
}, null, 40,
|
|
2258
|
-
_("div",
|
|
2256
|
+
}, null, 40, Pa), d(" " + D(t.label), 1)]))), 128))]),
|
|
2257
|
+
_("div", Fa, [_("label", { class: p([T(W), "tpl:!mb-0"]) }, D(T(a).menu.color), 3), k(q, {
|
|
2259
2258
|
"swatch-only": "",
|
|
2260
2259
|
"model-value": n.color || t.block.linkColor || t.block.color,
|
|
2261
2260
|
"onUpdate:modelValue": (e) => f(n.id, "color", e)
|
|
@@ -2274,14 +2273,14 @@ var Wi = {
|
|
|
2274
2273
|
class: p(T(U)),
|
|
2275
2274
|
value: t.block.fontFamily || "",
|
|
2276
2275
|
onChange: r[0] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
2277
|
-
}, [_("option",
|
|
2276
|
+
}, [_("option", La, D(T(a).title.inheritFont), 1), (e(!0), v(y, null, o(t.fontFamilies, (t) => (e(), v("option", {
|
|
2278
2277
|
key: t.value,
|
|
2279
2278
|
value: t.value
|
|
2280
|
-
}, D(t.label), 9,
|
|
2279
|
+
}, D(t.label), 9, Ra))), 128))], 42, Ia)]),
|
|
2281
2280
|
_: 1
|
|
2282
2281
|
}, 8, ["label"]),
|
|
2283
2282
|
k(J, { label: T(a).menu.fontSize }, {
|
|
2284
|
-
default: M(() => [k(
|
|
2283
|
+
default: M(() => [k(xt, {
|
|
2285
2284
|
"model-value": t.block.fontSize,
|
|
2286
2285
|
min: 8,
|
|
2287
2286
|
max: 48,
|
|
@@ -2318,7 +2317,7 @@ var Wi = {
|
|
|
2318
2317
|
class: p(T(U)),
|
|
2319
2318
|
value: t.block.separator,
|
|
2320
2319
|
onInput: r[5] ||= (e) => l("separator", e.target.value)
|
|
2321
|
-
}, null, 42,
|
|
2320
|
+
}, null, 42, za)]),
|
|
2322
2321
|
_: 1
|
|
2323
2322
|
}, 8, ["label"]),
|
|
2324
2323
|
k(J, { label: T(a).menu.separatorColor }, {
|
|
@@ -2329,7 +2328,7 @@ var Wi = {
|
|
|
2329
2328
|
_: 1
|
|
2330
2329
|
}, 8, ["label"]),
|
|
2331
2330
|
k(J, { label: T(a).menu.spacing }, {
|
|
2332
|
-
default: M(() => [k(
|
|
2331
|
+
default: M(() => [k(xt, {
|
|
2333
2332
|
"model-value": t.block.spacing,
|
|
2334
2333
|
min: 0,
|
|
2335
2334
|
max: 50,
|
|
@@ -2343,11 +2342,11 @@ var Wi = {
|
|
|
2343
2342
|
});
|
|
2344
2343
|
//#endregion
|
|
2345
2344
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
2346
|
-
function
|
|
2345
|
+
function Va(e) {
|
|
2347
2346
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
2348
2347
|
}
|
|
2349
|
-
function
|
|
2350
|
-
let n =
|
|
2348
|
+
function Ha(e, t) {
|
|
2349
|
+
let n = Va(t);
|
|
2351
2350
|
if (e.length === n) return e;
|
|
2352
2351
|
if (e.length < n) {
|
|
2353
2352
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2358,7 +2357,7 @@ function Va(e, t) {
|
|
|
2358
2357
|
}
|
|
2359
2358
|
//#endregion
|
|
2360
2359
|
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2361
|
-
var
|
|
2360
|
+
var Ua = { class: "tpl:mb-3.5" }, Wa = ["value"], Ga = ["value"], Ka = /* @__PURE__ */ m({
|
|
2362
2361
|
__name: "SectionToolbar",
|
|
2363
2362
|
props: { block: {} },
|
|
2364
2363
|
emits: ["update"],
|
|
@@ -2389,19 +2388,19 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2389
2388
|
let t = e.target.value;
|
|
2390
2389
|
i("update", {
|
|
2391
2390
|
columns: t,
|
|
2392
|
-
children:
|
|
2391
|
+
children: Ha(r.block.children, t)
|
|
2393
2392
|
});
|
|
2394
2393
|
}
|
|
2395
|
-
return (n, r) => (e(), v("div",
|
|
2394
|
+
return (n, r) => (e(), v("div", Ua, [_("label", { class: p(T(W)) }, D(T(a).section.columns), 3), _("select", {
|
|
2396
2395
|
class: p(T(U)),
|
|
2397
2396
|
value: t.block.columns,
|
|
2398
2397
|
onChange: c
|
|
2399
2398
|
}, [(e(!0), v(y, null, o(s.value, (t) => (e(), v("option", {
|
|
2400
2399
|
key: t.value,
|
|
2401
2400
|
value: t.value
|
|
2402
|
-
}, D(t.label), 9,
|
|
2401
|
+
}, D(t.label), 9, Ga))), 128))], 42, Wa)]));
|
|
2403
2402
|
}
|
|
2404
|
-
}),
|
|
2403
|
+
}), qa = { class: "tpl:mb-3.5" }, Ja = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ya = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Xa = ["value", "onChange"], Za = ["value"], Qa = ["title", "onClick"], $a = { class: "tpl:mb-3.5" }, eo = ["value"], to = { value: "solid" }, no = { value: "outlined" }, ro = { value: "rounded" }, io = { value: "square" }, ao = { value: "circle" }, oo = { class: "tpl:mb-3.5" }, so = { class: "tpl:mb-3.5" }, co = { class: "tpl:flex tpl:items-stretch" }, lo = ["value"], uo = { class: "tpl:mb-3.5" }, fo = /* @__PURE__ */ m({
|
|
2405
2404
|
__name: "SocialToolbar",
|
|
2406
2405
|
props: { block: {} },
|
|
2407
2406
|
emits: ["update"],
|
|
@@ -2428,10 +2427,10 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2428
2427
|
i("update", { icons: r.block.icons.filter((t) => t.id !== e) });
|
|
2429
2428
|
}
|
|
2430
2429
|
return (n, r) => (e(), v(y, null, [
|
|
2431
|
-
_("div",
|
|
2430
|
+
_("div", qa, [_("label", { class: p(T(W)) }, D(T(a).social.icons), 3), _("div", Ja, [(e(!0), v(y, null, o(t.block.icons, (t) => (e(), v("div", {
|
|
2432
2431
|
key: t.id,
|
|
2433
2432
|
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"
|
|
2434
|
-
}, [_("div",
|
|
2433
|
+
}, [_("div", Ya, [_("select", {
|
|
2435
2434
|
"data-testid": "social-platform-select",
|
|
2436
2435
|
class: p([T(U), "tpl:flex-1"]),
|
|
2437
2436
|
value: t.platform,
|
|
@@ -2439,14 +2438,14 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2439
2438
|
}, [(e(!0), v(y, null, o(T(ye), (t) => (e(), v("option", {
|
|
2440
2439
|
key: t,
|
|
2441
2440
|
value: t
|
|
2442
|
-
}, D(T(a).social.platforms[t]), 9,
|
|
2441
|
+
}, D(T(a).social.platforms[t]), 9, Za))), 128))], 42, Xa), _("button", {
|
|
2443
2442
|
class: p(T(ht)),
|
|
2444
2443
|
title: T(a).social.removeIcon,
|
|
2445
2444
|
onClick: (e) => u(t.id)
|
|
2446
2445
|
}, [k(T(ct), {
|
|
2447
2446
|
size: 14,
|
|
2448
2447
|
"stroke-width": 2
|
|
2449
|
-
})], 10,
|
|
2448
|
+
})], 10, Qa)]), k(Z, {
|
|
2450
2449
|
"model-value": t.url,
|
|
2451
2450
|
type: "url",
|
|
2452
2451
|
placeholder: T(a).social.urlPlaceholder,
|
|
@@ -2462,18 +2461,18 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2462
2461
|
size: 14,
|
|
2463
2462
|
"stroke-width": 2
|
|
2464
2463
|
}), d(" " + D(T(a).social.addIcon), 1)], 2)])]),
|
|
2465
|
-
_("div",
|
|
2464
|
+
_("div", $a, [_("label", { class: p(T(W)) }, D(T(a).social.style), 3), _("select", {
|
|
2466
2465
|
class: p(T(U)),
|
|
2467
2466
|
value: t.block.iconStyle,
|
|
2468
2467
|
onChange: r[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2469
2468
|
}, [
|
|
2470
|
-
_("option",
|
|
2471
|
-
_("option",
|
|
2472
|
-
_("option",
|
|
2473
|
-
_("option",
|
|
2474
|
-
_("option",
|
|
2475
|
-
], 42,
|
|
2476
|
-
_("div",
|
|
2469
|
+
_("option", to, D(T(a).social.styleSolid), 1),
|
|
2470
|
+
_("option", no, D(T(a).social.styleOutlined), 1),
|
|
2471
|
+
_("option", ro, D(T(a).social.styleRounded), 1),
|
|
2472
|
+
_("option", io, D(T(a).social.styleSquare), 1),
|
|
2473
|
+
_("option", ao, D(T(a).social.styleCircle), 1)
|
|
2474
|
+
], 42, eo)]),
|
|
2475
|
+
_("div", oo, [_("label", { class: p(T(W)) }, D(T(a).social.size), 3), k(Y, {
|
|
2477
2476
|
options: [
|
|
2478
2477
|
{
|
|
2479
2478
|
value: "small",
|
|
@@ -2491,15 +2490,15 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2491
2490
|
"model-value": t.block.iconSize,
|
|
2492
2491
|
"onUpdate:modelValue": r[1] ||= (e) => s("iconSize", e)
|
|
2493
2492
|
}, null, 8, ["options", "model-value"])]),
|
|
2494
|
-
_("div",
|
|
2493
|
+
_("div", so, [_("label", { class: p(T(W)) }, D(T(a).social.spacing), 3), _("div", co, [_("input", {
|
|
2495
2494
|
type: "number",
|
|
2496
2495
|
class: p(T(K)),
|
|
2497
2496
|
value: t.block.spacing,
|
|
2498
2497
|
min: "0",
|
|
2499
2498
|
max: "50",
|
|
2500
2499
|
onInput: r[2] ||= (e) => s("spacing", Number(e.target.value))
|
|
2501
|
-
}, null, 42,
|
|
2502
|
-
_("div",
|
|
2500
|
+
}, null, 42, lo), _("span", { class: p(T(G)) }, "px", 2)])]),
|
|
2501
|
+
_("div", uo, [_("label", { class: p(T(W)) }, D(T(a).social.align), 3), k(Y, {
|
|
2503
2502
|
options: [
|
|
2504
2503
|
{
|
|
2505
2504
|
value: "left",
|
|
@@ -2522,22 +2521,22 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2522
2521
|
}, null, 8, ["options", "model-value"])])
|
|
2523
2522
|
], 64));
|
|
2524
2523
|
}
|
|
2525
|
-
}),
|
|
2524
|
+
}), po = { class: "tpl:mb-3.5" }, mo = { class: "tpl:flex tpl:items-stretch" }, ho = ["value"], go = ["value"], _o = /* @__PURE__ */ m({
|
|
2526
2525
|
__name: "SpacerToolbar",
|
|
2527
2526
|
props: { block: {} },
|
|
2528
2527
|
emits: ["update"],
|
|
2529
2528
|
setup(t, { emit: n }) {
|
|
2530
2529
|
let r = n, { t: i } = V();
|
|
2531
|
-
return (n, a) => (e(), v("div",
|
|
2530
|
+
return (n, a) => (e(), v("div", po, [
|
|
2532
2531
|
_("label", { class: p(T(W)) }, D(T(i).spacer.height), 3),
|
|
2533
|
-
_("div",
|
|
2532
|
+
_("div", mo, [_("input", {
|
|
2534
2533
|
type: "number",
|
|
2535
2534
|
class: p(T(K)),
|
|
2536
2535
|
value: t.block.height,
|
|
2537
2536
|
min: "10",
|
|
2538
2537
|
max: "100",
|
|
2539
2538
|
onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2540
|
-
}, null, 42,
|
|
2539
|
+
}, null, 42, ho), _("span", { class: p(T(G)) }, "px", 2)]),
|
|
2541
2540
|
_("input", {
|
|
2542
2541
|
type: "range",
|
|
2543
2542
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2545,13 +2544,13 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2545
2544
|
min: "10",
|
|
2546
2545
|
max: "100",
|
|
2547
2546
|
onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2548
|
-
}, null, 40,
|
|
2547
|
+
}, null, 40, go)
|
|
2549
2548
|
]));
|
|
2550
2549
|
}
|
|
2551
|
-
}),
|
|
2550
|
+
}), vo = { class: "tpl:mb-3.5" }, yo = { class: "tpl:flex tpl:items-center tpl:gap-3" }, bo = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, xo = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, So = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Co = ["disabled"], wo = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, To = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Eo = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Do = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Oo = ["disabled"], ko = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ao = { class: "tpl:mb-3.5" }, jo = { 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)]" }, Mo = ["checked"], No = {
|
|
2552
2551
|
key: 0,
|
|
2553
2552
|
class: "tpl:mb-3.5"
|
|
2554
|
-
},
|
|
2553
|
+
}, Po = { class: "tpl:mb-3.5" }, Fo = { class: "tpl:mb-3.5" }, Io = { class: "tpl:flex tpl:items-stretch" }, Lo = ["value"], Ro = { class: "tpl:mb-3.5" }, zo = { class: "tpl:flex tpl:items-stretch" }, Bo = ["value"], Vo = { class: "tpl:mb-3.5" }, Ho = ["value"], Uo = { value: "" }, Wo = ["value"], Go = { class: "tpl:mb-3.5" }, Ko = { class: "tpl:flex tpl:items-stretch" }, qo = ["value"], Jo = { class: "tpl:mb-3.5" }, Yo = { class: "tpl:mb-3.5" }, Xo = /* @__PURE__ */ m({
|
|
2555
2554
|
__name: "TableToolbar",
|
|
2556
2555
|
props: {
|
|
2557
2556
|
block: {},
|
|
@@ -2592,7 +2591,7 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2592
2591
|
})) });
|
|
2593
2592
|
}
|
|
2594
2593
|
return (n, r) => (e(), v(y, null, [
|
|
2595
|
-
_("div",
|
|
2594
|
+
_("div", vo, [_("label", { class: p(T(W)) }, D(T(a).table.dimensions), 3), _("div", yo, [_("div", bo, [_("span", xo, D(T(a).table.rows), 1), _("div", So, [
|
|
2596
2595
|
_("button", {
|
|
2597
2596
|
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",
|
|
2598
2597
|
disabled: t.block.rows.length <= 1,
|
|
@@ -2600,8 +2599,8 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2600
2599
|
}, [k(T(Ke), {
|
|
2601
2600
|
size: 12,
|
|
2602
2601
|
"stroke-width": 2
|
|
2603
|
-
})], 8,
|
|
2604
|
-
_("span",
|
|
2602
|
+
})], 8, Co),
|
|
2603
|
+
_("span", wo, D(t.block.rows.length), 1),
|
|
2605
2604
|
_("button", {
|
|
2606
2605
|
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)]",
|
|
2607
2606
|
onClick: l
|
|
@@ -2609,7 +2608,7 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2609
2608
|
size: 12,
|
|
2610
2609
|
"stroke-width": 2
|
|
2611
2610
|
})])
|
|
2612
|
-
])]), _("div",
|
|
2611
|
+
])]), _("div", To, [_("span", Eo, D(T(a).table.columns), 1), _("div", Do, [
|
|
2613
2612
|
_("button", {
|
|
2614
2613
|
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",
|
|
2615
2614
|
disabled: s.value <= 1,
|
|
@@ -2617,8 +2616,8 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2617
2616
|
}, [k(T(Ke), {
|
|
2618
2617
|
size: 12,
|
|
2619
2618
|
"stroke-width": 2
|
|
2620
|
-
})], 8,
|
|
2621
|
-
_("span",
|
|
2619
|
+
})], 8, Oo),
|
|
2620
|
+
_("span", ko, D(s.value), 1),
|
|
2622
2621
|
_("button", {
|
|
2623
2622
|
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)]",
|
|
2624
2623
|
onClick: f
|
|
@@ -2627,58 +2626,63 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2627
2626
|
"stroke-width": 2
|
|
2628
2627
|
})])
|
|
2629
2628
|
])])])]),
|
|
2630
|
-
_("div",
|
|
2629
|
+
_("div", Ao, [_("label", jo, [_("input", {
|
|
2631
2630
|
type: "checkbox",
|
|
2632
2631
|
checked: t.block.hasHeaderRow,
|
|
2633
2632
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2634
2633
|
onChange: r[2] ||= (e) => c("hasHeaderRow", e.target.checked)
|
|
2635
|
-
}, null, 40,
|
|
2636
|
-
t.block.hasHeaderRow ? (e(), v("div",
|
|
2637
|
-
"model-value": t.block.headerBackgroundColor
|
|
2634
|
+
}, null, 40, Mo), d(" " + D(T(a).table.hasHeaderRow), 1)])]),
|
|
2635
|
+
t.block.hasHeaderRow ? (e(), v("div", No, [_("label", { class: p(T(W)) }, D(T(a).table.headerBackgroundColor), 3), k(q, {
|
|
2636
|
+
"model-value": t.block.headerBackgroundColor ?? "",
|
|
2637
|
+
"seed-color": T(yt),
|
|
2638
2638
|
placeholder: T(a).table.noHeaderBg,
|
|
2639
2639
|
"onUpdate:modelValue": r[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2640
|
-
}, null, 8, [
|
|
2641
|
-
|
|
2640
|
+
}, null, 8, [
|
|
2641
|
+
"model-value",
|
|
2642
|
+
"seed-color",
|
|
2643
|
+
"placeholder"
|
|
2644
|
+
])])) : b("", !0),
|
|
2645
|
+
_("div", Po, [_("label", { class: p(T(W)) }, D(T(a).table.borderColor), 3), k(q, {
|
|
2642
2646
|
"model-value": t.block.borderColor,
|
|
2643
2647
|
"onUpdate:modelValue": r[4] ||= (e) => c("borderColor", e)
|
|
2644
2648
|
}, null, 8, ["model-value"])]),
|
|
2645
|
-
_("div",
|
|
2649
|
+
_("div", Fo, [_("label", { class: p(T(W)) }, D(T(a).table.borderWidth), 3), _("div", Io, [_("input", {
|
|
2646
2650
|
type: "number",
|
|
2647
2651
|
class: p(T(K)),
|
|
2648
2652
|
value: t.block.borderWidth,
|
|
2649
2653
|
min: "0",
|
|
2650
2654
|
max: "10",
|
|
2651
2655
|
onInput: r[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2652
|
-
}, null, 42,
|
|
2653
|
-
_("div",
|
|
2656
|
+
}, null, 42, Lo), _("span", { class: p(T(G)) }, "px", 2)])]),
|
|
2657
|
+
_("div", Ro, [_("label", { class: p(T(W)) }, D(T(a).table.cellPadding), 3), _("div", zo, [_("input", {
|
|
2654
2658
|
type: "number",
|
|
2655
2659
|
class: p(T(K)),
|
|
2656
2660
|
value: t.block.cellPadding,
|
|
2657
2661
|
min: "0",
|
|
2658
2662
|
max: "30",
|
|
2659
2663
|
onInput: r[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2660
|
-
}, null, 42,
|
|
2661
|
-
_("div",
|
|
2664
|
+
}, null, 42, Bo), _("span", { class: p(T(G)) }, "px", 2)])]),
|
|
2665
|
+
_("div", Vo, [_("label", { class: p(T(W)) }, D(T(a).table.fontFamily), 3), _("select", {
|
|
2662
2666
|
class: p(T(U)),
|
|
2663
2667
|
value: t.block.fontFamily || "",
|
|
2664
2668
|
onChange: r[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2665
|
-
}, [_("option",
|
|
2669
|
+
}, [_("option", Uo, D(T(a).title.inheritFont), 1), (e(!0), v(y, null, o(t.fontFamilies, (t) => (e(), v("option", {
|
|
2666
2670
|
key: t.value,
|
|
2667
2671
|
value: t.value
|
|
2668
|
-
}, D(t.label), 9,
|
|
2669
|
-
_("div",
|
|
2672
|
+
}, D(t.label), 9, Wo))), 128))], 42, Ho)]),
|
|
2673
|
+
_("div", Go, [_("label", { class: p(T(W)) }, D(T(a).table.fontSize), 3), _("div", Ko, [_("input", {
|
|
2670
2674
|
type: "number",
|
|
2671
2675
|
class: p(T(K)),
|
|
2672
2676
|
value: t.block.fontSize,
|
|
2673
2677
|
min: "10",
|
|
2674
2678
|
max: "32",
|
|
2675
2679
|
onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2676
|
-
}, null, 42,
|
|
2677
|
-
_("div",
|
|
2680
|
+
}, null, 42, qo), _("span", { class: p(T(G)) }, "px", 2)])]),
|
|
2681
|
+
_("div", Jo, [_("label", { class: p(T(W)) }, D(T(a).table.color), 3), k(q, {
|
|
2678
2682
|
"model-value": t.block.color,
|
|
2679
2683
|
"onUpdate:modelValue": r[9] ||= (e) => c("color", e)
|
|
2680
2684
|
}, null, 8, ["model-value"])]),
|
|
2681
|
-
_("div",
|
|
2685
|
+
_("div", Yo, [_("label", { class: p(T(W)) }, D(T(a).table.textAlign), 3), k(Y, {
|
|
2682
2686
|
options: [
|
|
2683
2687
|
{
|
|
2684
2688
|
value: "left",
|
|
@@ -2701,7 +2705,7 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2701
2705
|
}, null, 8, ["options", "model-value"])])
|
|
2702
2706
|
], 64));
|
|
2703
2707
|
}
|
|
2704
|
-
}),
|
|
2708
|
+
}), Zo = { class: "tpl:mb-3.5" }, Qo = ["value"], $o = { value: 1 }, es = { value: 2 }, ts = { value: 3 }, ns = { value: 4 }, rs = { class: "tpl:mb-3.5" }, is = ["value"], as = { value: "" }, os = ["value"], ss = { class: "tpl:mb-3.5" }, cs = { class: "tpl:mb-3.5" }, ls = /* @__PURE__ */ m({
|
|
2705
2709
|
__name: "TitleToolbar",
|
|
2706
2710
|
props: {
|
|
2707
2711
|
block: {},
|
|
@@ -2714,29 +2718,29 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2714
2718
|
r("update", { [e]: t });
|
|
2715
2719
|
}
|
|
2716
2720
|
return (n, r) => (e(), v(y, null, [
|
|
2717
|
-
_("div",
|
|
2721
|
+
_("div", Zo, [_("label", { class: p(T(W)) }, D(T(i).title.level), 3), _("select", {
|
|
2718
2722
|
class: p(T(U)),
|
|
2719
2723
|
value: t.block.level,
|
|
2720
2724
|
onChange: r[0] ||= (e) => a("level", Number(e.target.value))
|
|
2721
2725
|
}, [
|
|
2722
|
-
_("option",
|
|
2723
|
-
_("option",
|
|
2724
|
-
_("option",
|
|
2725
|
-
_("option",
|
|
2726
|
-
], 42,
|
|
2727
|
-
_("div",
|
|
2726
|
+
_("option", $o, D(T(i).title.heading1), 1),
|
|
2727
|
+
_("option", es, D(T(i).title.heading2), 1),
|
|
2728
|
+
_("option", ts, D(T(i).title.heading3), 1),
|
|
2729
|
+
_("option", ns, D(T(i).title.heading4), 1)
|
|
2730
|
+
], 42, Qo)]),
|
|
2731
|
+
_("div", rs, [_("label", { class: p(T(W)) }, D(T(i).title.fontFamily), 3), _("select", {
|
|
2728
2732
|
class: p(T(U)),
|
|
2729
2733
|
value: t.block.fontFamily || "",
|
|
2730
2734
|
onChange: r[1] ||= (e) => a("fontFamily", e.target.value || void 0)
|
|
2731
|
-
}, [_("option",
|
|
2735
|
+
}, [_("option", as, D(T(i).title.inheritFont), 1), (e(!0), v(y, null, o(t.fontFamilies, (t) => (e(), v("option", {
|
|
2732
2736
|
key: t.value,
|
|
2733
2737
|
value: t.value
|
|
2734
|
-
}, D(t.label), 9,
|
|
2735
|
-
_("div",
|
|
2738
|
+
}, D(t.label), 9, os))), 128))], 42, is)]),
|
|
2739
|
+
_("div", ss, [_("label", { class: p(T(W)) }, D(T(i).title.color), 3), k(q, {
|
|
2736
2740
|
"model-value": t.block.color,
|
|
2737
2741
|
"onUpdate:modelValue": r[2] ||= (e) => a("color", e)
|
|
2738
2742
|
}, null, 8, ["model-value"])]),
|
|
2739
|
-
_("div",
|
|
2743
|
+
_("div", cs, [_("label", { class: p(T(W)) }, D(T(i).title.align), 3), k(Y, {
|
|
2740
2744
|
options: [
|
|
2741
2745
|
{
|
|
2742
2746
|
value: "left",
|
|
@@ -2759,17 +2763,17 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2759
2763
|
}, null, 8, ["options", "model-value"])])
|
|
2760
2764
|
], 64));
|
|
2761
2765
|
}
|
|
2762
|
-
}),
|
|
2766
|
+
}), us = { class: "tpl:mb-3.5" }, ds = {
|
|
2763
2767
|
key: 0,
|
|
2764
2768
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
2765
|
-
},
|
|
2769
|
+
}, fs = ["checked"], ps = {
|
|
2766
2770
|
key: 0,
|
|
2767
2771
|
class: "tpl:mb-3.5"
|
|
2768
|
-
},
|
|
2772
|
+
}, ms = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, hs = [
|
|
2769
2773
|
"value",
|
|
2770
2774
|
"placeholder",
|
|
2771
2775
|
"title"
|
|
2772
|
-
],
|
|
2776
|
+
], gs = { class: "tpl:mb-3.5" }, _s = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, vs = { class: "tpl:mb-3.5" }, ys = { class: "tpl:mb-3.5" }, bs = ["value"], xs = { value: "full" }, Ss = { class: "tpl:mb-3.5" }, Cs = /* @__PURE__ */ m({
|
|
2773
2777
|
__name: "VideoToolbar",
|
|
2774
2778
|
props: { block: {} },
|
|
2775
2779
|
emits: ["update"],
|
|
@@ -2785,7 +2789,7 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2785
2789
|
c.alive && e && (x("thumbnailUrl", e.url), m.value = !0, h());
|
|
2786
2790
|
}
|
|
2787
2791
|
return (n, r) => (e(), v(y, null, [
|
|
2788
|
-
_("div",
|
|
2792
|
+
_("div", us, [
|
|
2789
2793
|
_("label", { class: p(T(W)) }, D(T(a).video.videoUrl), 3),
|
|
2790
2794
|
k(Z, {
|
|
2791
2795
|
"model-value": t.block.url,
|
|
@@ -2793,23 +2797,23 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2793
2797
|
placeholder: T(a).video.videoUrlPlaceholder,
|
|
2794
2798
|
"onUpdate:modelValue": r[0] ||= (e) => x("url", e)
|
|
2795
2799
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2796
|
-
t.block.url ? (e(), v("label",
|
|
2800
|
+
t.block.url ? (e(), v("label", ds, [_("input", {
|
|
2797
2801
|
type: "checkbox",
|
|
2798
2802
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2799
2803
|
checked: t.block.openInNewTab ?? !1,
|
|
2800
2804
|
onChange: r[1] ||= (e) => x("openInNewTab", e.target.checked)
|
|
2801
|
-
}, null, 40,
|
|
2805
|
+
}, null, 40, fs), d(" " + D(T(a).video.openInNewTab), 1)])) : b("", !0)
|
|
2802
2806
|
]),
|
|
2803
|
-
f.value ? (e(), v("div",
|
|
2807
|
+
f.value ? (e(), v("div", ps, [_("label", { class: p(T(W)) }, [d(D(T(a).video.placeholderUrl) + " ", 1), _("span", ms, D(T(a).video.optional), 1)], 2), _("input", {
|
|
2804
2808
|
type: "url",
|
|
2805
2809
|
class: p(T(U)),
|
|
2806
2810
|
value: t.block.placeholderUrl || "",
|
|
2807
2811
|
placeholder: T(a).video.placeholderUrlPlaceholder,
|
|
2808
2812
|
title: T(a).video.placeholderUrlTooltip,
|
|
2809
2813
|
onInput: r[2] ||= (e) => x("placeholderUrl", e.target.value)
|
|
2810
|
-
}, null, 42,
|
|
2811
|
-
_("div",
|
|
2812
|
-
_("label", { class: p(T(W)) }, [d(D(T(a).video.customThumbnail) + " ", 1), _("span",
|
|
2814
|
+
}, null, 42, hs)])) : b("", !0),
|
|
2815
|
+
_("div", gs, [
|
|
2816
|
+
_("label", { class: p(T(W)) }, [d(D(T(a).video.customThumbnail) + " ", 1), _("span", _s, D(T(a).video.optional), 1)], 2),
|
|
2813
2817
|
k(Z, {
|
|
2814
2818
|
"model-value": t.block.thumbnailUrl,
|
|
2815
2819
|
type: "url",
|
|
@@ -2835,23 +2839,23 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2835
2839
|
"stroke-width": 1.5
|
|
2836
2840
|
}), d(" " + D(T(a).image.browseMedia), 1)])) : b("", !0)
|
|
2837
2841
|
]),
|
|
2838
|
-
_("div",
|
|
2842
|
+
_("div", vs, [_("label", { class: p(T(W)) }, D(T(a).video.altText), 3), k(Z, {
|
|
2839
2843
|
"model-value": t.block.alt,
|
|
2840
2844
|
type: "text",
|
|
2841
2845
|
placeholder: T(a).video.altTextPlaceholder,
|
|
2842
2846
|
"onUpdate:modelValue": r[4] ||= (e) => x("alt", e)
|
|
2843
2847
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2844
|
-
_("div",
|
|
2848
|
+
_("div", ys, [_("label", { class: p(T(W)) }, D(T(a).video.width), 3), _("select", {
|
|
2845
2849
|
class: p(T(U)),
|
|
2846
2850
|
value: t.block.width,
|
|
2847
2851
|
onChange: r[5] ||= (e) => x("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
2848
2852
|
}, [
|
|
2849
|
-
_("option",
|
|
2853
|
+
_("option", xs, D(T(a).video.fullWidth), 1),
|
|
2850
2854
|
r[7] ||= _("option", { value: "300" }, "300px", -1),
|
|
2851
2855
|
r[8] ||= _("option", { value: "400" }, "400px", -1),
|
|
2852
2856
|
r[9] ||= _("option", { value: "500" }, "500px", -1)
|
|
2853
|
-
], 42,
|
|
2854
|
-
_("div",
|
|
2857
|
+
], 42, bs)]),
|
|
2858
|
+
_("div", Ss, [_("label", { class: p(T(W)) }, D(T(a).title.align), 3), k(Y, {
|
|
2855
2859
|
options: [
|
|
2856
2860
|
{
|
|
2857
2861
|
value: "left",
|
|
@@ -2871,7 +2875,7 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2871
2875
|
}, null, 8, ["options", "model-value"])])
|
|
2872
2876
|
], 64));
|
|
2873
2877
|
}
|
|
2874
|
-
}),
|
|
2878
|
+
}), ws = ["aria-label"], Ts = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Es = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Ds = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Os = { class: "tpl:flex tpl:gap-1" }, ks = ["title"], As = ["title"], js = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Ms = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
2875
2879
|
__name: "Toolbar",
|
|
2876
2880
|
props: { block: {} },
|
|
2877
2881
|
emits: [
|
|
@@ -2880,7 +2884,7 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2880
2884
|
"duplicate"
|
|
2881
2885
|
],
|
|
2882
2886
|
setup(t, { emit: n }) {
|
|
2883
|
-
let i = j(() => import("./CountdownToolbar-
|
|
2887
|
+
let i = j(() => import("./CountdownToolbar-Dol7Q0Pv.js")), a = t, o = n, { t: s } = V(), c = Ae(Ie, "Toolbar"), l = A(Pe, []), u = g(() => a.block.type), d = g(() => P(a.block)), f = g(() => {
|
|
2884
2888
|
if (d.value) return l.find((e) => e.type === a.block.customType);
|
|
2885
2889
|
}), p = g(() => d.value ? f.value?.name ?? a.block.customType : ne(u.value, s)), m = c.fonts;
|
|
2886
2890
|
function h(e) {
|
|
@@ -2889,7 +2893,7 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2889
2893
|
return (n, a) => (e(), v("aside", {
|
|
2890
2894
|
"aria-label": T(s).landmarks.blockToolbar,
|
|
2891
2895
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2892
|
-
}, [_("div",
|
|
2896
|
+
}, [_("div", Ts, [_("div", Es, [T(Ye)[u.value] ? (e(), C(r(T(Ye)[u.value]), {
|
|
2893
2897
|
key: 0,
|
|
2894
2898
|
size: 16,
|
|
2895
2899
|
"stroke-width": 1.5
|
|
@@ -2897,70 +2901,70 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2897
2901
|
key: 1,
|
|
2898
2902
|
size: 16,
|
|
2899
2903
|
"stroke-width": 1.5
|
|
2900
|
-
})) : b("", !0), _("h3",
|
|
2904
|
+
})) : b("", !0), _("h3", Ds, D(p.value), 1)]), _("div", Os, [_("button", {
|
|
2901
2905
|
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)]",
|
|
2902
2906
|
title: T(s).toolbar.duplicate,
|
|
2903
2907
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
2904
2908
|
}, [k(T(me), {
|
|
2905
2909
|
size: 14,
|
|
2906
2910
|
"stroke-width": 2
|
|
2907
|
-
})], 8,
|
|
2911
|
+
})], 8, ks), _("button", {
|
|
2908
2912
|
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)]",
|
|
2909
2913
|
title: T(s).toolbar.delete,
|
|
2910
2914
|
onClick: a[1] ||= (e) => o("delete")
|
|
2911
2915
|
}, [k(T(st), {
|
|
2912
2916
|
size: 14,
|
|
2913
2917
|
"stroke-width": 2
|
|
2914
|
-
})], 8,
|
|
2918
|
+
})], 8, As)])]), _("div", js, [d.value ? (e(), C($i, {
|
|
2915
2919
|
key: 0,
|
|
2916
2920
|
block: t.block,
|
|
2917
2921
|
onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
|
|
2918
2922
|
onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
|
|
2919
|
-
}, null, 8, ["block"])) : u.value === "section" ? (e(), C(
|
|
2923
|
+
}, null, 8, ["block"])) : u.value === "section" ? (e(), C(Ka, {
|
|
2920
2924
|
key: 1,
|
|
2921
2925
|
block: t.block,
|
|
2922
2926
|
onUpdate: h
|
|
2923
|
-
}, null, 8, ["block"])) : u.value === "title" ? (e(), C(
|
|
2927
|
+
}, null, 8, ["block"])) : u.value === "title" ? (e(), C(ls, {
|
|
2924
2928
|
key: 2,
|
|
2925
2929
|
block: t.block,
|
|
2926
2930
|
"font-families": T(m),
|
|
2927
2931
|
onUpdate: h
|
|
2928
|
-
}, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (e(), v(y, { key: 3 }, [], 64)) : u.value === "image" ? (e(), C(
|
|
2932
|
+
}, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (e(), v(y, { key: 3 }, [], 64)) : u.value === "image" ? (e(), C(Oa, {
|
|
2929
2933
|
key: 4,
|
|
2930
2934
|
block: t.block,
|
|
2931
2935
|
onUpdate: h
|
|
2932
|
-
}, null, 8, ["block"])) : u.value === "video" ? (e(), C(
|
|
2936
|
+
}, null, 8, ["block"])) : u.value === "video" ? (e(), C(Cs, {
|
|
2933
2937
|
key: 5,
|
|
2934
2938
|
block: t.block,
|
|
2935
2939
|
onUpdate: h
|
|
2936
|
-
}, null, 8, ["block"])) : u.value === "button" ? (e(), C(
|
|
2940
|
+
}, null, 8, ["block"])) : u.value === "button" ? (e(), C(Tr, {
|
|
2937
2941
|
key: 6,
|
|
2938
2942
|
block: t.block,
|
|
2939
2943
|
"font-families": T(m),
|
|
2940
2944
|
onUpdate: h
|
|
2941
|
-
}, null, 8, ["block", "font-families"])) : u.value === "divider" ? (e(), C(
|
|
2945
|
+
}, null, 8, ["block", "font-families"])) : u.value === "divider" ? (e(), C(aa, {
|
|
2942
2946
|
key: 7,
|
|
2943
2947
|
block: t.block,
|
|
2944
2948
|
onUpdate: h
|
|
2945
|
-
}, null, 8, ["block"])) : u.value === "social" ? (e(), C(
|
|
2949
|
+
}, null, 8, ["block"])) : u.value === "social" ? (e(), C(fo, {
|
|
2946
2950
|
key: 8,
|
|
2947
2951
|
block: t.block,
|
|
2948
2952
|
onUpdate: h
|
|
2949
|
-
}, null, 8, ["block"])) : u.value === "menu" ? (e(), C(
|
|
2953
|
+
}, null, 8, ["block"])) : u.value === "menu" ? (e(), C(Ba, {
|
|
2950
2954
|
key: 9,
|
|
2951
2955
|
block: t.block,
|
|
2952
2956
|
"font-families": T(m),
|
|
2953
2957
|
onUpdate: h
|
|
2954
|
-
}, null, 8, ["block", "font-families"])) : u.value === "table" ? (e(), C(
|
|
2958
|
+
}, null, 8, ["block", "font-families"])) : u.value === "table" ? (e(), C(Xo, {
|
|
2955
2959
|
key: 10,
|
|
2956
2960
|
block: t.block,
|
|
2957
2961
|
"font-families": T(m),
|
|
2958
2962
|
onUpdate: h
|
|
2959
|
-
}, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (e(), C(
|
|
2963
|
+
}, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (e(), C(_o, {
|
|
2960
2964
|
key: 11,
|
|
2961
2965
|
block: t.block,
|
|
2962
2966
|
onUpdate: h
|
|
2963
|
-
}, null, 8, ["block"])) : u.value === "html" ? (e(), C(
|
|
2967
|
+
}, null, 8, ["block"])) : u.value === "html" ? (e(), C(la, {
|
|
2964
2968
|
key: 12,
|
|
2965
2969
|
block: t.block,
|
|
2966
2970
|
onUpdate: h
|
|
@@ -2969,52 +2973,52 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
2969
2973
|
block: t.block,
|
|
2970
2974
|
"font-families": T(m),
|
|
2971
2975
|
onUpdate: h
|
|
2972
|
-
}, null, 8, ["block", "font-families"])) : b("", !0), k(
|
|
2976
|
+
}, null, 8, ["block", "font-families"])) : b("", !0), k(hi, {
|
|
2973
2977
|
block: t.block,
|
|
2974
2978
|
"is-first-section": u.value === "paragraph",
|
|
2975
2979
|
onUpdate: h
|
|
2976
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
2980
|
+
}, null, 8, ["block", "is-first-section"])])], 8, ws));
|
|
2977
2981
|
}
|
|
2978
|
-
}), [["__scopeId", "data-v-2ac88283"]]),
|
|
2982
|
+
}), [["__scopeId", "data-v-2ac88283"]]), Ns = ["aria-label"], Ps = {
|
|
2979
2983
|
role: "tablist",
|
|
2980
2984
|
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"
|
|
2981
|
-
},
|
|
2985
|
+
}, Fs = [
|
|
2982
2986
|
"aria-selected",
|
|
2983
2987
|
"aria-label",
|
|
2984
2988
|
"title"
|
|
2985
|
-
],
|
|
2989
|
+
], Is = { key: 0 }, Ls = [
|
|
2986
2990
|
"aria-selected",
|
|
2987
2991
|
"aria-label",
|
|
2988
2992
|
"title"
|
|
2989
|
-
],
|
|
2993
|
+
], Rs = { key: 0 }, zs = [
|
|
2990
2994
|
"aria-selected",
|
|
2991
2995
|
"aria-label",
|
|
2992
2996
|
"title"
|
|
2993
|
-
],
|
|
2997
|
+
], Bs = { key: 0 }, Vs = {
|
|
2994
2998
|
key: 1,
|
|
2995
2999
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
2996
|
-
},
|
|
3000
|
+
}, Hs = {
|
|
2997
3001
|
key: 0,
|
|
2998
3002
|
id: "tpl-tabpanel-content",
|
|
2999
3003
|
role: "tabpanel",
|
|
3000
3004
|
"aria-labelledby": "tpl-tab-content",
|
|
3001
3005
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3002
|
-
},
|
|
3006
|
+
}, Us = {
|
|
3003
3007
|
key: 1,
|
|
3004
3008
|
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)]"
|
|
3005
|
-
},
|
|
3009
|
+
}, Ws = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Gs = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ks = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, qs = {
|
|
3006
3010
|
key: 1,
|
|
3007
3011
|
id: "tpl-tabpanel-settings",
|
|
3008
3012
|
role: "tabpanel",
|
|
3009
3013
|
"aria-labelledby": "tpl-tab-settings",
|
|
3010
3014
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3011
|
-
},
|
|
3015
|
+
}, Js = {
|
|
3012
3016
|
key: 2,
|
|
3013
3017
|
id: "tpl-tabpanel-issues",
|
|
3014
3018
|
role: "tabpanel",
|
|
3015
3019
|
"aria-labelledby": "tpl-tab-issues",
|
|
3016
3020
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3017
|
-
},
|
|
3021
|
+
}, Ys = /* @__PURE__ */ m({
|
|
3018
3022
|
__name: "RightSidebar",
|
|
3019
3023
|
props: {
|
|
3020
3024
|
selectedBlock: {},
|
|
@@ -3044,7 +3048,7 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3044
3048
|
"aria-label": T(s).landmarks.rightSidebar,
|
|
3045
3049
|
class: p(["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)]", t.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
|
|
3046
3050
|
}, [
|
|
3047
|
-
_("div",
|
|
3051
|
+
_("div", Ps, [
|
|
3048
3052
|
_("button", {
|
|
3049
3053
|
id: "tpl-tab-content",
|
|
3050
3054
|
role: "tab",
|
|
@@ -3055,10 +3059,10 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3055
3059
|
class: p(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", m("content")]),
|
|
3056
3060
|
style: S(h("content")),
|
|
3057
3061
|
onClick: i[0] ||= (e) => c.value = "content"
|
|
3058
|
-
}, [k(T(
|
|
3062
|
+
}, [k(T(jt), {
|
|
3059
3063
|
size: 14,
|
|
3060
3064
|
"stroke-width": 2
|
|
3061
|
-
}), c.value === "content" ? (e(), v("span",
|
|
3065
|
+
}), c.value === "content" ? (e(), v("span", Is, D(T(s).sidebar.content), 1)) : b("", !0)], 14, Fs),
|
|
3062
3066
|
_("button", {
|
|
3063
3067
|
id: "tpl-tab-settings",
|
|
3064
3068
|
role: "tab",
|
|
@@ -3069,10 +3073,10 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3069
3073
|
class: p(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", m("settings")]),
|
|
3070
3074
|
style: S(h("settings")),
|
|
3071
3075
|
onClick: i[1] ||= (e) => c.value = "settings"
|
|
3072
|
-
}, [k(T(
|
|
3076
|
+
}, [k(T(Nt), {
|
|
3073
3077
|
size: 14,
|
|
3074
3078
|
"stroke-width": 1.5
|
|
3075
|
-
}), c.value === "settings" ? (e(), v("span",
|
|
3079
|
+
}), c.value === "settings" ? (e(), v("span", Rs, D(T(s).sidebar.settings), 1)) : b("", !0)], 14, Ls),
|
|
3076
3080
|
d.value ? (e(), v("button", {
|
|
3077
3081
|
key: 0,
|
|
3078
3082
|
id: "tpl-tab-issues",
|
|
@@ -3089,55 +3093,55 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3089
3093
|
size: 14,
|
|
3090
3094
|
"stroke-width": 1.5
|
|
3091
3095
|
}),
|
|
3092
|
-
c.value === "issues" ? (e(), v("span",
|
|
3093
|
-
f.value > 0 ? (e(), v("span",
|
|
3094
|
-
], 14,
|
|
3096
|
+
c.value === "issues" ? (e(), v("span", Bs, D(T(s).issues.panelTabLabel), 1)) : b("", !0),
|
|
3097
|
+
f.value > 0 ? (e(), v("span", Vs, D(f.value), 1)) : b("", !0)
|
|
3098
|
+
], 14, zs)) : b("", !0)
|
|
3095
3099
|
]),
|
|
3096
|
-
c.value === "content" ? (e(), v("div",
|
|
3100
|
+
c.value === "content" ? (e(), v("div", Hs, [t.selectedBlock ? (e(), C(Ms, {
|
|
3097
3101
|
key: 0,
|
|
3098
3102
|
block: t.selectedBlock,
|
|
3099
3103
|
onUpdate: i[3] ||= (e) => o("update-block", e),
|
|
3100
3104
|
onDelete: i[4] ||= (e) => o("delete-block"),
|
|
3101
3105
|
onDuplicate: i[5] ||= (e) => o("duplicate-block")
|
|
3102
|
-
}, null, 8, ["block"])) : (e(), v("div",
|
|
3103
|
-
_("div",
|
|
3106
|
+
}, null, 8, ["block"])) : (e(), v("div", Us, [
|
|
3107
|
+
_("div", Ws, [k(T(Dt), {
|
|
3104
3108
|
size: 40,
|
|
3105
3109
|
"stroke-width": 1.5
|
|
3106
3110
|
})]),
|
|
3107
|
-
_("h3",
|
|
3108
|
-
_("p",
|
|
3111
|
+
_("h3", Gs, D(T(s).sidebar.noSelection), 1),
|
|
3112
|
+
_("p", Ks, D(T(s).sidebar.noSelectionHint), 1)
|
|
3109
3113
|
]))])) : b("", !0),
|
|
3110
|
-
c.value === "settings" ? (e(), v("div",
|
|
3114
|
+
c.value === "settings" ? (e(), v("div", qs, [k(Yn, {
|
|
3111
3115
|
settings: t.settings,
|
|
3112
3116
|
onUpdate: i[6] ||= (e) => o("update-settings", e)
|
|
3113
3117
|
}, null, 8, ["settings"])])) : b("", !0),
|
|
3114
|
-
c.value === "issues" && d.value ? (e(), v("div",
|
|
3115
|
-
], 10,
|
|
3118
|
+
c.value === "issues" && d.value ? (e(), v("div", Js, [k(T(r))])) : b("", !0)
|
|
3119
|
+
], 10, Ns));
|
|
3116
3120
|
}
|
|
3117
|
-
}),
|
|
3121
|
+
}), Xs = {
|
|
3118
3122
|
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)]",
|
|
3119
3123
|
style: { "z-index": "10001" },
|
|
3120
3124
|
role: "status",
|
|
3121
3125
|
"data-testid": "small-screen-notice"
|
|
3122
|
-
},
|
|
3126
|
+
}, Zs = { class: "tpl:text-[var(--tpl-text-dim)]" }, Qs = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, $s = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, ec = /* @__PURE__ */ m({
|
|
3123
3127
|
__name: "SmallScreenNotice",
|
|
3124
3128
|
setup(t) {
|
|
3125
3129
|
let { t: n } = V();
|
|
3126
|
-
return (t, r) => (e(), v("div",
|
|
3127
|
-
_("div",
|
|
3130
|
+
return (t, r) => (e(), v("div", Xs, [
|
|
3131
|
+
_("div", Zs, [k(T(kt), {
|
|
3128
3132
|
size: 48,
|
|
3129
3133
|
"stroke-width": 1.5
|
|
3130
3134
|
})]),
|
|
3131
|
-
_("h2",
|
|
3132
|
-
_("p",
|
|
3135
|
+
_("h2", Qs, D(T(n).smallScreen.title), 1),
|
|
3136
|
+
_("p", $s, D(T(n).smallScreen.message), 1)
|
|
3133
3137
|
]));
|
|
3134
3138
|
}
|
|
3135
|
-
}),
|
|
3139
|
+
}), tc = ["aria-label"], nc = [
|
|
3136
3140
|
"aria-checked",
|
|
3137
3141
|
"aria-label",
|
|
3138
3142
|
"title",
|
|
3139
3143
|
"onClick"
|
|
3140
|
-
],
|
|
3144
|
+
], rc = /* @__PURE__ */ m({
|
|
3141
3145
|
__name: "ViewportToggle",
|
|
3142
3146
|
props: { viewport: {} },
|
|
3143
3147
|
emits: ["change"],
|
|
@@ -3179,21 +3183,21 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3179
3183
|
}),
|
|
3180
3184
|
title: n.label,
|
|
3181
3185
|
onClick: (e) => i("change", n.value)
|
|
3182
|
-
}, [n.value === "desktop" ? (e(), C(T(
|
|
3186
|
+
}, [n.value === "desktop" ? (e(), C(T(kt), {
|
|
3183
3187
|
key: 0,
|
|
3184
3188
|
size: 18,
|
|
3185
3189
|
"stroke-width": 1.5
|
|
3186
|
-
})) : (e(), C(T(
|
|
3190
|
+
})) : (e(), C(T(Pt), {
|
|
3187
3191
|
key: 1,
|
|
3188
3192
|
size: 18,
|
|
3189
3193
|
"stroke-width": 1.5
|
|
3190
|
-
})), _("span", null, D(n.label), 1)], 12,
|
|
3194
|
+
})), _("span", null, D(n.label), 1)], 12, nc))), 128))], 12, tc));
|
|
3191
3195
|
}
|
|
3192
|
-
}),
|
|
3196
|
+
}), ic = [
|
|
3193
3197
|
"aria-label",
|
|
3194
3198
|
"title",
|
|
3195
3199
|
"aria-pressed"
|
|
3196
|
-
],
|
|
3200
|
+
], ac = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
3197
3201
|
__name: "PreviewToggle",
|
|
3198
3202
|
props: { previewMode: { type: Boolean } },
|
|
3199
3203
|
emits: ["change"],
|
|
@@ -3226,13 +3230,13 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3226
3230
|
"stroke-width": 1.5
|
|
3227
3231
|
}))]),
|
|
3228
3232
|
_: 1
|
|
3229
|
-
})], 12,
|
|
3233
|
+
})], 12, ic));
|
|
3230
3234
|
}
|
|
3231
|
-
}), [["__scopeId", "data-v-af87d02a"]]),
|
|
3235
|
+
}), [["__scopeId", "data-v-af87d02a"]]), oc = [
|
|
3232
3236
|
"aria-label",
|
|
3233
3237
|
"title",
|
|
3234
3238
|
"aria-pressed"
|
|
3235
|
-
],
|
|
3239
|
+
], sc = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
3236
3240
|
__name: "DarkModeToggle",
|
|
3237
3241
|
props: { darkMode: { type: Boolean } },
|
|
3238
3242
|
emits: ["change"],
|
|
@@ -3255,37 +3259,37 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3255
3259
|
"leave-to-class": "tpl-icon-leave-to",
|
|
3256
3260
|
mode: "out-in"
|
|
3257
3261
|
}, {
|
|
3258
|
-
default: M(() => [t.darkMode ? (e(), C(T(
|
|
3262
|
+
default: M(() => [t.darkMode ? (e(), C(T(At), {
|
|
3259
3263
|
key: "moon",
|
|
3260
3264
|
size: 18,
|
|
3261
3265
|
"stroke-width": 1.5
|
|
3262
|
-
})) : (e(), C(T(
|
|
3266
|
+
})) : (e(), C(T(It), {
|
|
3263
3267
|
key: "sun",
|
|
3264
3268
|
size: 18,
|
|
3265
3269
|
"stroke-width": 1.5
|
|
3266
3270
|
}))]),
|
|
3267
3271
|
_: 1
|
|
3268
|
-
})], 12,
|
|
3272
|
+
})], 12, oc));
|
|
3269
3273
|
}
|
|
3270
|
-
}), [["__scopeId", "data-v-f8694f76"]]),
|
|
3274
|
+
}), [["__scopeId", "data-v-f8694f76"]]), cc = {
|
|
3271
3275
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
3272
3276
|
style: {
|
|
3273
3277
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
3274
3278
|
"backdrop-filter": "blur(8px)",
|
|
3275
3279
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
3276
3280
|
}
|
|
3277
|
-
},
|
|
3281
|
+
}, lc = {
|
|
3278
3282
|
href: "https://github.com/templatical/sdk",
|
|
3279
3283
|
target: "_blank",
|
|
3280
3284
|
rel: "noopener noreferrer",
|
|
3281
3285
|
class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
|
|
3282
3286
|
style: { "text-decoration": "none" }
|
|
3283
|
-
},
|
|
3287
|
+
}, uc = /* @__PURE__ */ m({
|
|
3284
3288
|
__name: "EditorFooter",
|
|
3285
3289
|
props: { positionClass: {} },
|
|
3286
3290
|
setup(t) {
|
|
3287
3291
|
let { t: n } = V();
|
|
3288
|
-
return (r, i) => (e(), v("footer", { class: p(["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)]", t.positionClass]) }, [_("div",
|
|
3292
|
+
return (r, i) => (e(), v("footer", { class: p(["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)]", t.positionClass]) }, [_("div", cc, [
|
|
3289
3293
|
_("span", null, D(T(n).footer.poweredBy), 1),
|
|
3290
3294
|
i[0] ||= _("a", {
|
|
3291
3295
|
href: "https://templatical.com",
|
|
@@ -3300,32 +3304,32 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3300
3304
|
alt: ""
|
|
3301
3305
|
}), d(" Templatical ")], -1),
|
|
3302
3306
|
i[1] ||= _("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
|
|
3303
|
-
_("a",
|
|
3307
|
+
_("a", lc, D(T(n).footer.openSource), 1)
|
|
3304
3308
|
])], 2));
|
|
3305
3309
|
}
|
|
3306
|
-
}),
|
|
3310
|
+
}), dc = ["aria-labelledby", "data-tpl-theme"], fc = { 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" }, pc = ["id"], mc = ["aria-label"], hc = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, gc = [
|
|
3307
3311
|
"id",
|
|
3308
3312
|
"placeholder",
|
|
3309
3313
|
"aria-label",
|
|
3310
3314
|
"aria-activedescendant"
|
|
3311
|
-
],
|
|
3315
|
+
], _c = {
|
|
3312
3316
|
key: 0,
|
|
3313
3317
|
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",
|
|
3314
3318
|
"data-testid": "merge-tag-picker-group-pills"
|
|
3315
|
-
},
|
|
3319
|
+
}, vc = ["data-group-name", "onClick"], yc = ["aria-label"], bc = {
|
|
3316
3320
|
key: 0,
|
|
3317
3321
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3318
3322
|
"data-testid": "merge-tag-picker-empty"
|
|
3319
|
-
},
|
|
3323
|
+
}, xc = {
|
|
3320
3324
|
key: 1,
|
|
3321
3325
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3322
3326
|
"data-testid": "merge-tag-picker-empty"
|
|
3323
|
-
},
|
|
3327
|
+
}, Sc = [
|
|
3324
3328
|
"aria-expanded",
|
|
3325
3329
|
"data-group-name",
|
|
3326
3330
|
"data-group-collapsed",
|
|
3327
3331
|
"onClick"
|
|
3328
|
-
],
|
|
3332
|
+
], Cc = { class: "tpl:ml-1 tpl:font-normal" }, wc = [
|
|
3329
3333
|
"id",
|
|
3330
3334
|
"aria-selected",
|
|
3331
3335
|
"data-selected",
|
|
@@ -3334,10 +3338,10 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3334
3338
|
"title",
|
|
3335
3339
|
"onMousemove",
|
|
3336
3340
|
"onClick"
|
|
3337
|
-
],
|
|
3341
|
+
], Tc = { class: "tpl:text-sm tpl:font-medium" }, Ec = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Dc = {
|
|
3338
3342
|
key: 0,
|
|
3339
3343
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3340
|
-
}, $ = "tpl-merge-tag-picker-list",
|
|
3344
|
+
}, $ = "tpl-merge-tag-picker-list", Oc = /* @__PURE__ */ m({
|
|
3341
3345
|
__name: "MergeTagPickerModal",
|
|
3342
3346
|
setup(r) {
|
|
3343
3347
|
let i = Ae(We, "MergeTagPickerModal"), { t: s, format: c } = V(), l = A(De, null), d = A(ke, null), m = u(""), x = Te(m, 200), w = u(null), O = g(() => x.value.trim().length > 0), j = u(0), N = g(() => i.tags.value.some((e) => !!e.group)), P = u(/* @__PURE__ */ new Set());
|
|
@@ -3456,7 +3460,7 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3456
3460
|
return `${$}-opt-${e}`;
|
|
3457
3461
|
}
|
|
3458
3462
|
let de = g(() => i.tags.value.length === 0), fe = g(() => !de.value && I.value.length === 0), pe = g(() => N.value && L.value.length > 1 && !O.value);
|
|
3459
|
-
return (n, r) => (e(), C(
|
|
3463
|
+
return (n, r) => (e(), C(St, {
|
|
3460
3464
|
visible: T(i).isOpen.value,
|
|
3461
3465
|
onClose: ne,
|
|
3462
3466
|
onKeydown: ce
|
|
@@ -3470,10 +3474,10 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3470
3474
|
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)]",
|
|
3471
3475
|
style: S(T(l))
|
|
3472
3476
|
}, [
|
|
3473
|
-
_("header",
|
|
3477
|
+
_("header", fc, [_("h2", {
|
|
3474
3478
|
id: `${$}-title`,
|
|
3475
3479
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3476
|
-
}, D(T(s).mergeTag.picker.title), 9,
|
|
3480
|
+
}, D(T(s).mergeTag.picker.title), 9, pc), _("button", {
|
|
3477
3481
|
type: "button",
|
|
3478
3482
|
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)]",
|
|
3479
3483
|
"aria-label": T(s).mergeTag.picker.close,
|
|
@@ -3482,8 +3486,8 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3482
3486
|
}, [k(T(ct), {
|
|
3483
3487
|
size: 16,
|
|
3484
3488
|
"stroke-width": 2
|
|
3485
|
-
})], 8,
|
|
3486
|
-
_("div",
|
|
3489
|
+
})], 8, mc)]),
|
|
3490
|
+
_("div", hc, [k(T(qe), {
|
|
3487
3491
|
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)]",
|
|
3488
3492
|
size: 14,
|
|
3489
3493
|
"stroke-width": 2
|
|
@@ -3500,15 +3504,15 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3500
3504
|
"aria-activedescendant": le(),
|
|
3501
3505
|
"data-testid": "merge-tag-picker-search",
|
|
3502
3506
|
onKeydown: r[1] ||= E(h(() => {}, ["prevent"]), ["enter"])
|
|
3503
|
-
}, null, 40,
|
|
3504
|
-
pe.value ? (e(), v("div",
|
|
3507
|
+
}, null, 40, gc), [[f, m.value]])]),
|
|
3508
|
+
pe.value ? (e(), v("div", _c, [(e(!0), v(y, null, o(L.value, (t) => (e(), v("button", {
|
|
3505
3509
|
key: t,
|
|
3506
3510
|
type: "button",
|
|
3507
3511
|
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)]",
|
|
3508
3512
|
"data-testid": "merge-tag-picker-group-pill",
|
|
3509
3513
|
"data-group-name": t,
|
|
3510
3514
|
onClick: (e) => se(t)
|
|
3511
|
-
}, D(t), 9,
|
|
3515
|
+
}, D(t), 9, vc))), 128))])) : b("", !0),
|
|
3512
3516
|
_("div", {
|
|
3513
3517
|
id: $,
|
|
3514
3518
|
ref_key: "listRef",
|
|
@@ -3517,7 +3521,7 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3517
3521
|
role: "listbox",
|
|
3518
3522
|
"aria-label": T(s).mergeTag.picker.title,
|
|
3519
3523
|
"data-testid": "merge-tag-picker-list"
|
|
3520
|
-
}, [de.value ? (e(), v("div",
|
|
3524
|
+
}, [de.value ? (e(), v("div", bc, D(T(s).mergeTag.picker.empty), 1)) : fe.value ? (e(), v("div", xc, D(T(s).mergeTag.picker.noResults), 1)) : (e(!0), v(y, { key: 2 }, o(te.value, (t, n) => (e(), v(y, { key: n }, [t.kind === "header" ? (e(), v("button", {
|
|
3521
3525
|
key: 0,
|
|
3522
3526
|
ref_for: !0,
|
|
3523
3527
|
ref: (e) => B(t.group, e),
|
|
@@ -3536,8 +3540,8 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3536
3540
|
class: p(["tpl:transition-transform", F(t.group) ? "tpl:-rotate-90" : ""])
|
|
3537
3541
|
}, null, 8, ["class"]),
|
|
3538
3542
|
_("span", null, D(t.group), 1),
|
|
3539
|
-
_("span",
|
|
3540
|
-
], 8,
|
|
3543
|
+
_("span", Cc, " (" + D(T(c)(T(s).mergeTag.picker.groupCount, { count: t.count })) + ") ", 1)
|
|
3544
|
+
], 8, Sc)) : (e(), v("button", {
|
|
3541
3545
|
key: 1,
|
|
3542
3546
|
id: ue(t.index),
|
|
3543
3547
|
type: "button",
|
|
@@ -3552,14 +3556,14 @@ var Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = ["value"], Ga = /* @__PUR
|
|
|
3552
3556
|
onMousemove: (e) => j.value = t.index,
|
|
3553
3557
|
onClick: (e) => z(t.tag)
|
|
3554
3558
|
}, [
|
|
3555
|
-
_("span",
|
|
3556
|
-
_("span",
|
|
3557
|
-
t.tag.description ? (e(), v("span",
|
|
3558
|
-
], 42,
|
|
3559
|
-
], 12,
|
|
3559
|
+
_("span", Tc, D(t.tag.label), 1),
|
|
3560
|
+
_("span", Ec, D(t.tag.value), 1),
|
|
3561
|
+
t.tag.description ? (e(), v("span", Dc, D(t.tag.description), 1)) : b("", !0)
|
|
3562
|
+
], 42, wc))], 64))), 128))], 8, yc)
|
|
3563
|
+
], 12, dc)]),
|
|
3560
3564
|
_: 1
|
|
3561
3565
|
}, 8, ["visible"]));
|
|
3562
3566
|
}
|
|
3563
3567
|
});
|
|
3564
3568
|
//#endregion
|
|
3565
|
-
export {
|
|
3569
|
+
export { rc as a, on as c, Lt as d, Mt as f, ac as i, Yt as l, uc as n, ec as o, sc as r, Ys as s, Oc as t, Jt as u };
|