@templatical/editor 0.7.3 → 0.8.0
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/{AiChatSidebar-H7SIsxeC.js → AiChatSidebar-B74X6tIx.js} +3 -3
- package/dist/{AiFeatureMenu-CJGX-fP5.js → AiFeatureMenu-BOxQqkn9.js} +4 -4
- package/dist/{BlockA11yBadge-BhyoMZJ9.js → BlockIssueBadge-DJTiT1eF.js} +6 -6
- package/dist/{CloudEditor-BBs3p-mW.js → CloudEditor-BzCVDD6e.js} +24 -24
- package/dist/{CollaboratorBar-CiEo25lb.js → CollaboratorBar-Cb-c1IkS.js} +2 -2
- package/dist/{CommentsSidebar-DikjSLtH.js → CommentsSidebar-Qvppl-DR.js} +6 -6
- package/dist/{CountdownBlock-ByJ0_8Pk.js → CountdownBlock-D0IiMliC.js} +1 -1
- package/dist/{CountdownToolbar-Bn4RwJVN.js → CountdownToolbar-BVVT8U5C.js} +2 -2
- package/dist/{DesignReferenceSidebar-D08CLZPA.js → DesignReferenceSidebar-ucgtoDll.js} +6 -6
- package/dist/{AccessibilityPanel-BeUibrUb.js → IssuesPanel-XVdvrgmq.js} +18 -18
- package/dist/{ModuleBrowserModal-D6637s8j.js → ModuleBrowserModal-BotDsZ0R.js} +7 -7
- package/dist/{ModulePreviewCanvas-DBFmwq-y.js → ModulePreviewCanvas-CDg4MnJP.js} +2 -2
- package/dist/{NumberWithSuffix-CyFX9w1e.js → NumberWithSuffix-n-cr7lpU.js} +1 -1
- package/dist/{ParagraphEditor-DC2jOjNh.js → ParagraphEditor-CfzIUFQ_.js} +6 -6
- package/dist/{RichTextEditorContent-8NkjTIua.js → RichTextEditorContent-Cu9NEkKd.js} +3 -3
- package/dist/{SaveModuleDialog-NKT7bWWs.js → SaveModuleDialog-DuzfCamG.js} +6 -6
- package/dist/{SnapshotHistory-XNqYxPBj.js → SnapshotHistory-DiAPOSDM.js} +5 -5
- package/dist/{TemplateScoringPanel-kYOGtac3.js → TemplateScoringPanel-BzDVdfOx.js} +6 -6
- package/dist/{TestEmailModal-B_-Qo5Us.js → TestEmailModal-D5I5Mgtb.js} +3 -3
- package/dist/{TitleEditor-DnH3yyTr.js → TitleEditor-CZUkhtDo.js} +6 -6
- package/dist/{TplModal-BoEZFe3U.js → TplModal-CVq2BAIW.js} +3 -3
- package/dist/{blockTypeIcons-CUcYuWAO.js → blockTypeIcons-CJNuGjLX.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-SxIqfqA0.js → AiFeatureMenu-DtrT-aFR.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-SxIqfqA0.js.map → AiFeatureMenu-DtrT-aFR.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-QqW6nomn.js → BlockIssueBadge-w7n4orSd.js} +6 -6
- package/dist/cdn/chunks/BlockIssueBadge-w7n4orSd.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-ChWUIMw7.js → CloudEditor-CwG0DhG1.js} +101 -101
- package/dist/cdn/chunks/CloudEditor-CwG0DhG1.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-73LfbzqF.js → CollaboratorBar-DYjZaz7H.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-73LfbzqF.js.map → CollaboratorBar-DYjZaz7H.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-WYz9b9Ex.js → CountdownBlock-CFR8VJCU.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-WYz9b9Ex.js.map → CountdownBlock-CFR8VJCU.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-B9fPfFqp.js → CountdownToolbar-DOrQCH57.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-B9fPfFqp.js.map → CountdownToolbar-DOrQCH57.js.map} +1 -1
- package/dist/cdn/chunks/{AccessibilityPanel-CQt87OMk.js → IssuesPanel-C54PhBgc.js} +15 -15
- package/dist/cdn/chunks/IssuesPanel-C54PhBgc.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-DfnJQBkM.js → ModuleBrowserModal-4V6um-AC.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-DfnJQBkM.js.map → ModuleBrowserModal-4V6um-AC.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DE4_oHA_.js → ModulePreviewCanvas-DL8zI6VX.js} +24 -24
- package/dist/cdn/chunks/{ModulePreviewCanvas-DE4_oHA_.js.map → ModulePreviewCanvas-DL8zI6VX.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BST0yRor.js → NumberWithSuffix-avXrYDo6.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-BST0yRor.js.map → NumberWithSuffix-avXrYDo6.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CQfijF3i.js → ParagraphEditor-Cpmy85zL.js} +15 -15
- package/dist/cdn/chunks/{ParagraphEditor-CQfijF3i.js.map → ParagraphEditor-Cpmy85zL.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CBds8dnm.js → RichTextEditorContent-CFL-Lrv5.js} +2 -2
- package/dist/cdn/chunks/{RichTextEditorContent-CBds8dnm.js.map → RichTextEditorContent-CFL-Lrv5.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DXhuZgZ4.js → SaveModuleDialog-D6szy5vX.js} +4 -4
- package/dist/cdn/chunks/{SaveModuleDialog-DXhuZgZ4.js.map → SaveModuleDialog-D6szy5vX.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BdQvH7eK.js → TitleEditor-CSDdss38.js} +7 -7
- package/dist/cdn/chunks/{TitleEditor-BdQvH7eK.js.map → TitleEditor-CSDdss38.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-D3CGFW5P.js → blockTypeIcons-BEdpG8xl.js} +8 -8
- package/dist/cdn/chunks/{blockTypeIcons-D3CGFW5P.js.map → blockTypeIcons-BEdpG8xl.js.map} +1 -1
- package/dist/{de-C9hp3n_a.js → cdn/chunks/de-BBEGQDsd.js} +9 -7
- package/dist/cdn/chunks/{de-B_6zGPbx.js.map → de-BBEGQDsd.js.map} +1 -1
- package/dist/{en-Dv776AqL.js → cdn/chunks/en-CHha-_ta.js} +9 -7
- package/dist/cdn/chunks/{en-pYt1-lm4.js.map → en-CHha-_ta.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BE81zpqP.js → extensions-DgvvgeJU.js} +2 -2
- package/dist/cdn/chunks/{extensions-BE81zpqP.js.map → extensions-DgvvgeJU.js.map} +1 -1
- package/dist/cdn/chunks/{features-CXF_YKlL.js → features-CgTy87Ni.js} +29 -17
- package/dist/cdn/chunks/features-CgTy87Ni.js.map +1 -0
- package/dist/cdn/chunks/{icons-KbmhF7rg.js → icons-DxJ--AJb.js} +36 -38
- package/dist/cdn/chunks/icons-DxJ--AJb.js.map +1 -0
- package/dist/cdn/chunks/{media-library-BERe10wA.js → media-library-Byh_BbTm.js} +13 -13
- package/dist/cdn/chunks/{media-library-BERe10wA.js.map → media-library-Byh_BbTm.js.map} +1 -1
- package/dist/{pt-BR-6n58Fl_q.js → cdn/chunks/pt-BR-CFomv2R8.js} +9 -7
- package/dist/cdn/chunks/{pt-BR-CtDwVsN-.js.map → pt-BR-CFomv2R8.js.map} +1 -1
- package/dist/cdn/chunks/quality-CHCEMG8e.js +1846 -0
- package/dist/cdn/chunks/quality-CHCEMG8e.js.map +1 -0
- package/dist/cdn/chunks/{renderer-OttGEYkY.js → renderer-DttVILgu.js} +3 -3
- package/dist/cdn/chunks/{renderer-OttGEYkY.js.map → renderer-DttVILgu.js.map} +1 -1
- package/dist/cdn/chunks/{src-C21GI0p6.js → src-a8fYhBi5.js} +6 -6
- package/dist/cdn/chunks/{src-C21GI0p6.js.map → src-a8fYhBi5.js.map} +1 -1
- package/dist/cdn/chunks/{styles-Cy-My9zK.js → styles-8qDRQ-6n.js} +310 -285
- package/dist/cdn/chunks/styles-8qDRQ-6n.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +11 -11
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cdn/chunks/de-B_6zGPbx.js → de-KFqjrxG3.js} +7 -9
- package/dist/{cdn/chunks/en-pYt1-lm4.js → en-CNm94YYD.js} +7 -9
- package/dist/{extensions-p6UBqXfg.js → extensions-C-FpnfJn.js} +2 -2
- package/dist/index.d.ts +14 -12
- package/dist/{keys-B5SJtPWf.js → keys-CY3tkCsv.js} +2 -2
- package/dist/list-checks-CMtEXe9l.js +25 -0
- package/dist/{cdn/chunks/pt-BR-CtDwVsN-.js → pt-BR-gxZZAUWp.js} +7 -9
- package/dist/style.css +1 -1
- package/dist/{styles-BP15QmP3.js → styles-Ci7RdimQ.js} +204 -179
- package/dist/templatical-editor.js +9 -9
- package/dist/{useCloudI18n-ByEMykjO.js → useCloudI18n-BPUHj2CZ.js} +1 -1
- package/dist/{useEditorCore-_rbu6iMu.js → useEditorCore-DT3VrvZS.js} +41 -29
- package/dist/{useI18n-PEB8ioi_.js → useI18n-CWX9ZTCW.js} +1 -1
- package/dist/{useMergeTag-C47xwU7X.js → useMergeTag-B3F9VR04.js} +2 -2
- package/dist/{usePopoverRoot-BwzFSPLy.js → usePopoverRoot-BKJcxsst.js} +1 -1
- package/package.json +7 -7
- package/dist/accessibility-BgUEA-Ai.js +0 -27
- package/dist/cdn/chunks/AccessibilityPanel-CQt87OMk.js.map +0 -1
- package/dist/cdn/chunks/BlockA11yBadge-QqW6nomn.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-ChWUIMw7.js.map +0 -1
- package/dist/cdn/chunks/features-CXF_YKlL.js.map +0 -1
- package/dist/cdn/chunks/icons-KbmhF7rg.js.map +0 -1
- package/dist/cdn/chunks/quality-CmkY1kMU.js +0 -1456
- package/dist/cdn/chunks/quality-CmkY1kMU.js.map +0 -1
- package/dist/cdn/chunks/styles-Cy-My9zK.js.map +0 -1
- /package/dist/{check-Bg5yrRmX.js → check-BF4bEbCU.js} +0 -0
- /package/dist/{chevron-down-tee-ghFi.js → chevron-down-4NzWtv6Y.js} +0 -0
- /package/dist/{circle-alert-C0L9pUQ4.js → circle-alert-CPIth9bC.js} +0 -0
- /package/dist/{clock-CDlEdqiP.js → clock-B9-ct9r_.js} +0 -0
- /package/dist/{image-up-1D_3XDdO.js → image-up-CubAveUO.js} +0 -0
- /package/dist/{info-DTGrc0Bx.js → info-DiINxXfZ.js} +0 -0
- /package/dist/{refresh-cw-BNAhAmtL.js → refresh-cw-C9_M6yB3.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { A as e, B as t, E as n, F as r, J as i, L as a, M as o, N as s, U as c, X as l, _ as u, a as d, at as f, b as p, c as m, d as h, f as g, h as _, l as v, m as y, o as b, ot as x, p as S, q as C, rt as w, s as T, st as E, t as D, v as O, w as k, y as A, z as j } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
2
|
import { C as ee, D as M, E as te, S as N, a as P, l as F, n as ne, o as I } from "./dist-DJmnUmW9.js";
|
|
3
|
-
import { A as L, F as re, I as ie, M as ae, N as oe, T as R, _ as se, a as ce, c as le, d as ue, g as de, h as fe, i as pe, j as me, k as he, l as ge, m as _e, n as ve, o as ye, p as be, r as xe, s as Se, u as Ce, v as we, y as Te } from "./useEditorCore-
|
|
3
|
+
import { A as L, F as re, I as ie, M as ae, N as oe, T as R, _ as se, a as ce, c as le, d as ue, g as de, h as fe, i as pe, j as me, k as he, l as ge, m as _e, n as ve, o as ye, p as be, r as xe, s as Se, u as Ce, v as we, y as Te } from "./useEditorCore-DT3VrvZS.js";
|
|
4
4
|
import { s as Ee } from "./dist-BzRLLpfq.js";
|
|
5
|
-
import { A as De,
|
|
6
|
-
import { t as z } from "./useI18n-
|
|
5
|
+
import { A as De, E as Oe, a as ke, b as Ae, d as je, f as Me, h as Ne, n as Pe, o as Fe, p as Ie, s as Le, u as Re, x as ze } from "./keys-CY3tkCsv.js";
|
|
6
|
+
import { t as z } from "./useI18n-CWX9ZTCW.js";
|
|
7
7
|
import { t as B } from "./createLucideIcon-Di4mqmGn.js";
|
|
8
|
-
import { t as Be } from "./
|
|
9
|
-
import { t as Ve } from "./
|
|
10
|
-
import {
|
|
11
|
-
import { n as
|
|
12
|
-
import {
|
|
13
|
-
import { t as qe } from "./
|
|
14
|
-
import { t as Je } from "./
|
|
8
|
+
import { t as Be } from "./chevron-down-4NzWtv6Y.js";
|
|
9
|
+
import { t as Ve } from "./circle-alert-CPIth9bC.js";
|
|
10
|
+
import { n as He, r as V, t as Ue } from "./blockTypeIcons-CJNuGjLX.js";
|
|
11
|
+
import { n as We, t as Ge } from "./refresh-cw-C9_M6yB3.js";
|
|
12
|
+
import { t as Ke } from "./image-up-CubAveUO.js";
|
|
13
|
+
import { t as qe } from "./info-DiINxXfZ.js";
|
|
14
|
+
import { t as Je } from "./list-checks-CMtEXe9l.js";
|
|
15
15
|
import { t as Ye } from "./scan-line-DUEg6DoT.js";
|
|
16
16
|
import { t as Xe } from "./sparkles-D1IGi_cC.js";
|
|
17
17
|
import { n as Ze, r as Qe, t as $e } from "./text-align-start-DG3aAH7Y.js";
|
|
18
18
|
import { t as et } from "./trash-2-424iqbpN.js";
|
|
19
19
|
import { t as tt } from "./x-Dlaenqta.js";
|
|
20
20
|
import { t as H } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
21
|
-
import { t as nt } from "./useCloudI18n-
|
|
22
|
-
import { t as rt } from "./useMergeTag-
|
|
21
|
+
import { t as nt } from "./useCloudI18n-BPUHj2CZ.js";
|
|
22
|
+
import { t as rt } from "./useMergeTag-B3F9VR04.js";
|
|
23
23
|
import { t as it } from "./useAliveFlag-D8GoB4VE.js";
|
|
24
24
|
import { t as at } from "./readableTextColor-CXzrEnNb.js";
|
|
25
|
-
import { t as ot } from "./CountdownBlock-
|
|
25
|
+
import { t as ot } from "./CountdownBlock-D0IiMliC.js";
|
|
26
26
|
import { _ as st, c as ct, f as U, g as lt, h as W, l as ut, m as G, p as K, t as dt } from "./styleConstants-DkfOPzGu.js";
|
|
27
|
-
import { i as q, n as J, r as Y, t as ft } from "./NumberWithSuffix-
|
|
27
|
+
import { i as q, n as J, r as Y, t as ft } from "./NumberWithSuffix-n-cr7lpU.js";
|
|
28
28
|
var pt = B("circle", [["circle", {
|
|
29
29
|
cx: "12",
|
|
30
30
|
cy: "12",
|
|
@@ -238,10 +238,10 @@ var pt = B("circle", [["circle", {
|
|
|
238
238
|
key: "1dp563"
|
|
239
239
|
}]]);
|
|
240
240
|
//#endregion
|
|
241
|
-
//#region src/utils/
|
|
241
|
+
//#region src/utils/resolveLintOptions.ts
|
|
242
242
|
function Ot(e) {
|
|
243
243
|
return {
|
|
244
|
-
...e.
|
|
244
|
+
...e.lint,
|
|
245
245
|
locale: e.locale
|
|
246
246
|
};
|
|
247
247
|
}
|
|
@@ -290,7 +290,7 @@ var kt = ["aria-label"], At = {
|
|
|
290
290
|
video: ve,
|
|
291
291
|
countdown: ot,
|
|
292
292
|
custom: Te
|
|
293
|
-
}, s = n, c = i, { t: d } = z(), { t: p } = nt(), m = De(
|
|
293
|
+
}, s = n, c = i, { t: d } = z(), { t: p } = nt(), m = De(Ie, "Canvas"), C = k(Re, null), T = k(Fe, null), D = k(Le, {}), A = h(() => (D.plan?.hasFeature("ai_generation") ?? !1) && (D.ai?.isFeatureEnabled("chat") ?? !1)), ee = h(() => (D.plan?.hasFeature("ai_generation") ?? !1) && (D.ai?.isFeatureEnabled("designToTemplate") ?? !1)), M = h({
|
|
294
294
|
get: () => s.content.blocks,
|
|
295
295
|
set: (e) => {
|
|
296
296
|
m.setContent({
|
|
@@ -399,7 +399,7 @@ var kt = ["aria-label"], At = {
|
|
|
399
399
|
g("button", {
|
|
400
400
|
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)]",
|
|
401
401
|
onClick: a[1] ||= (e) => c("open-design-reference")
|
|
402
|
-
}, [O(w(
|
|
402
|
+
}, [O(w(Ke), {
|
|
403
403
|
size: 14,
|
|
404
404
|
"stroke-width": 2
|
|
405
405
|
}), u(" " + E(w(p).aiMenu.designToTemplate), 1)]),
|
|
@@ -474,7 +474,7 @@ var kt = ["aria-label"], At = {
|
|
|
474
474
|
}, qt = /* @__PURE__ */ p({
|
|
475
475
|
__name: "Sidebar",
|
|
476
476
|
setup(t) {
|
|
477
|
-
let { t: n, format: i } = z(), { t: a } = nt(), s = k(je, []), c = k(
|
|
477
|
+
let { t: n, format: i } = z(), { t: a } = nt(), s = k(je, []), c = k(ke, void 0), u = k(Ie, null), d = k(Le, {}), f = h(() => (d.savedModules?.moduleCount.value ?? 0) > 0), p = l(!1), m = l(!1);
|
|
478
478
|
function b() {
|
|
479
479
|
m.value || (p.value = !1);
|
|
480
480
|
}
|
|
@@ -548,7 +548,7 @@ var kt = ["aria-label"], At = {
|
|
|
548
548
|
style: x({ justifyContent: p.value ? "flex-start" : "center" }),
|
|
549
549
|
onClick: s[0] ||= (e) => w(d).savedModules?.openBrowser()
|
|
550
550
|
}, [
|
|
551
|
-
O(w(
|
|
551
|
+
O(w(He), {
|
|
552
552
|
size: 20,
|
|
553
553
|
"stroke-width": 1.5,
|
|
554
554
|
class: "tpl:shrink-0"
|
|
@@ -580,7 +580,7 @@ var kt = ["aria-label"], At = {
|
|
|
580
580
|
style: x({ justifyContent: p.value ? "flex-start" : "center" }),
|
|
581
581
|
onClick: (e) => N(t),
|
|
582
582
|
onKeydown: (e) => P(e, t)
|
|
583
|
-
}, [g("div", Gt, [w(
|
|
583
|
+
}, [g("div", Gt, [w(Ue)[t.type] ? (e(), S(r(w(Ue)[t.type]), {
|
|
584
584
|
key: 0,
|
|
585
585
|
size: 20,
|
|
586
586
|
"stroke-width": 1.5
|
|
@@ -802,7 +802,7 @@ var Yt = ["aria-label", "onKeydown"], Xt = ["data-tooltip"], Zt = ["data-tooltip
|
|
|
802
802
|
props: { settings: {} },
|
|
803
803
|
emits: ["update"],
|
|
804
804
|
setup(t, { emit: n }) {
|
|
805
|
-
let r = t, i = n, { t: a } = z(), s = De(
|
|
805
|
+
let r = t, i = n, { t: a } = z(), s = De(Ne, "TemplateSettings"), c = h(() => s.fonts.value), l = h(() => c.value.some((e) => e.value === r.settings.fontFamily) ? r.settings.fontFamily : s.defaultFont.value), u = [
|
|
806
806
|
{
|
|
807
807
|
value: 480,
|
|
808
808
|
label: "480px"
|
|
@@ -884,7 +884,7 @@ var Yt = ["aria-label", "onKeydown"], Xt = ["data-tooltip"], Zt = ["data-tooltip
|
|
|
884
884
|
}, null, 42, wn),
|
|
885
885
|
g("p", Tn, E(w(a).templateSettings.contentLocaleHint), 1)
|
|
886
886
|
])], 2),
|
|
887
|
-
g("div", { class: f(w(ut)) }, [g("div", En, [O(w(
|
|
887
|
+
g("div", { class: f(w(ut)) }, [g("div", En, [O(w(We), {
|
|
888
888
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
889
889
|
size: 14,
|
|
890
890
|
"stroke-width": 2
|
|
@@ -894,7 +894,7 @@ var Yt = ["aria-label", "onKeydown"], Xt = ["data-tooltip"], Zt = ["data-tooltip
|
|
|
894
894
|
rows: 2,
|
|
895
895
|
"onUpdate:modelValue": r[4] ||= (e) => i("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
|
|
896
896
|
}, null, 8, ["model-value", "placeholder"]), g("div", Dn, [g("span", On, E(w(a).templateSettings.preheaderTextHint), 1), g("span", kn, E((t.settings.preheaderText ?? "").length) + "/" + E(In), 1)])])], 2),
|
|
897
|
-
g("div", An, [g("div", jn, [O(w(
|
|
897
|
+
g("div", An, [g("div", jn, [O(w(qe), {
|
|
898
898
|
size: 14,
|
|
899
899
|
"stroke-width": 2
|
|
900
900
|
}), g("span", null, E(w(a).templateSettings.tips), 1)]), g("ul", Mn, [
|
|
@@ -1208,7 +1208,7 @@ var Yt = ["aria-label", "onKeydown"], Xt = ["data-tooltip"], Zt = ["data-tooltip
|
|
|
1208
1208
|
type: "button",
|
|
1209
1209
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1210
1210
|
onClick: i[0] ||= (e) => r.$emit("toggle")
|
|
1211
|
-
}, [O(w(
|
|
1211
|
+
}, [O(w(Be), {
|
|
1212
1212
|
class: f(["tpl:transition-transform tpl:duration-200", n.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1213
1213
|
size: 12,
|
|
1214
1214
|
"stroke-width": 2
|
|
@@ -1234,7 +1234,7 @@ var Yt = ["aria-label", "onKeydown"], Xt = ["data-tooltip"], Zt = ["data-tooltip
|
|
|
1234
1234
|
},
|
|
1235
1235
|
emits: ["update"],
|
|
1236
1236
|
setup(n, { emit: s }) {
|
|
1237
|
-
let c = n, p = s, { t: m } = z(), b = k(
|
|
1237
|
+
let c = n, p = s, { t: m } = z(), b = k(Me, []), x = k(Pe, !1), C = i(/* @__PURE__ */ new Set()), T = l(!1), D = l(""), A = l(""), ee = [
|
|
1238
1238
|
{
|
|
1239
1239
|
key: "desktop",
|
|
1240
1240
|
icon: vt,
|
|
@@ -1535,7 +1535,7 @@ var Yt = ["aria-label", "onKeydown"], Xt = ["data-tooltip"], Zt = ["data-tooltip
|
|
|
1535
1535
|
},
|
|
1536
1536
|
emits: ["update:modelValue"],
|
|
1537
1537
|
setup(t, { emit: n }) {
|
|
1538
|
-
let r = n, { t: i } = z(), a = k(
|
|
1538
|
+
let r = n, { t: i } = z(), a = k(ze, null), o = it(), s = h(() => !!a);
|
|
1539
1539
|
async function c() {
|
|
1540
1540
|
let e = await a?.({ accept: ["images"] });
|
|
1541
1541
|
o.alive && e && r("update:modelValue", e.url);
|
|
@@ -1877,7 +1877,7 @@ var Di = {
|
|
|
1877
1877
|
type: "button",
|
|
1878
1878
|
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)]",
|
|
1879
1879
|
onClick: i[1] ||= (...e) => w(p) && w(p)(...e)
|
|
1880
|
-
}, [O(w(
|
|
1880
|
+
}, [O(w(Ge), { size: 12 }), u(" " + E(w(s).customBlocks.dataSource.changeButton), 1)]))])), w(f) ? (e(), _("p", Pi, [O(w(Ve), {
|
|
1881
1881
|
size: 14,
|
|
1882
1882
|
class: "tpl:shrink-0"
|
|
1883
1883
|
}), u(" " + E(w(s).customBlocks.dataSource.fetchError), 1)])) : y("", !0)])) : y("", !0),
|
|
@@ -1952,7 +1952,7 @@ var Di = {
|
|
|
1952
1952
|
class: f(w(lt)),
|
|
1953
1953
|
onInput: a[0] ||= (e) => r("update", { content: e.target.value })
|
|
1954
1954
|
}, null, 42, Ui),
|
|
1955
|
-
g("p", Wi, [O(w(
|
|
1955
|
+
g("p", Wi, [O(w(qe), {
|
|
1956
1956
|
size: 12,
|
|
1957
1957
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1958
1958
|
}), u(" " + E(w(i).html.sanitizationHint), 1)])
|
|
@@ -1969,7 +1969,7 @@ var Di = {
|
|
|
1969
1969
|
props: { block: {} },
|
|
1970
1970
|
emits: ["update"],
|
|
1971
1971
|
setup(t, { emit: n }) {
|
|
1972
|
-
let r = n, { t: i } = z(), a = k(
|
|
1972
|
+
let r = n, { t: i } = z(), a = k(ze, null), o = k(Ae, ne.liquid), s = it(), c = h(() => !!a), d = l(!1), p = l(!1), { start: m } = Ee(() => {
|
|
1973
1973
|
d.value = !1;
|
|
1974
1974
|
}, 1e3, { immediate: !1 });
|
|
1975
1975
|
function b(e, t) {
|
|
@@ -2270,43 +2270,68 @@ var Di = {
|
|
|
2270
2270
|
}, 8, ["label"])
|
|
2271
2271
|
], 64));
|
|
2272
2272
|
}
|
|
2273
|
-
})
|
|
2273
|
+
});
|
|
2274
|
+
//#endregion
|
|
2275
|
+
//#region src/utils/rebalanceColumnChildren.ts
|
|
2276
|
+
function ya(e) {
|
|
2277
|
+
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
2278
|
+
}
|
|
2279
|
+
function ba(e, t) {
|
|
2280
|
+
let n = ya(t);
|
|
2281
|
+
if (e.length === n) return e;
|
|
2282
|
+
if (e.length < n) {
|
|
2283
|
+
let t = Array.from({ length: n - e.length }, () => []);
|
|
2284
|
+
return [...e, ...t];
|
|
2285
|
+
}
|
|
2286
|
+
let r = e.slice(0, n), i = e.slice(n).flat(), a = [...r[n - 1], ...i];
|
|
2287
|
+
return [...r.slice(0, n - 1), a];
|
|
2288
|
+
}
|
|
2289
|
+
//#endregion
|
|
2290
|
+
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2291
|
+
var xa = { class: "tpl:mb-3.5" }, Sa = ["value"], Ca = ["value"], wa = /* @__PURE__ */ p({
|
|
2274
2292
|
__name: "SectionToolbar",
|
|
2275
2293
|
props: { block: {} },
|
|
2276
2294
|
emits: ["update"],
|
|
2277
2295
|
setup(t, { emit: n }) {
|
|
2278
|
-
let r = n, { t:
|
|
2296
|
+
let r = t, i = n, { t: a } = z(), s = h(() => [
|
|
2279
2297
|
{
|
|
2280
2298
|
value: "1",
|
|
2281
|
-
label:
|
|
2299
|
+
label: a.section.column1
|
|
2282
2300
|
},
|
|
2283
2301
|
{
|
|
2284
2302
|
value: "2",
|
|
2285
|
-
label:
|
|
2303
|
+
label: a.section.column2
|
|
2286
2304
|
},
|
|
2287
2305
|
{
|
|
2288
2306
|
value: "3",
|
|
2289
|
-
label:
|
|
2307
|
+
label: a.section.column3
|
|
2290
2308
|
},
|
|
2291
2309
|
{
|
|
2292
2310
|
value: "1-2",
|
|
2293
|
-
label:
|
|
2311
|
+
label: a.section.ratio12
|
|
2294
2312
|
},
|
|
2295
2313
|
{
|
|
2296
2314
|
value: "2-1",
|
|
2297
|
-
label:
|
|
2315
|
+
label: a.section.ratio21
|
|
2298
2316
|
}
|
|
2299
2317
|
]);
|
|
2300
|
-
|
|
2318
|
+
function c(e) {
|
|
2319
|
+
let t = e.target.value;
|
|
2320
|
+
i("update", {
|
|
2321
|
+
columns: t,
|
|
2322
|
+
children: ba(r.block.children, t)
|
|
2323
|
+
});
|
|
2324
|
+
}
|
|
2325
|
+
return (n, r) => (e(), _("div", xa, [g("label", { class: f(w(W)) }, E(w(a).section.columns), 3), g("select", {
|
|
2301
2326
|
class: f(w(U)),
|
|
2302
2327
|
value: t.block.columns,
|
|
2303
|
-
onChange:
|
|
2304
|
-
}, [(e(!0), _(v, null, o(
|
|
2328
|
+
onChange: c
|
|
2329
|
+
}, [(e(!0), _(v, null, o(s.value, (t) => (e(), _("option", {
|
|
2305
2330
|
key: t.value,
|
|
2306
2331
|
value: t.value
|
|
2307
|
-
}, E(t.label), 9,
|
|
2332
|
+
}, E(t.label), 9, Ca))), 128))], 42, Sa)]));
|
|
2308
2333
|
}
|
|
2309
|
-
}),
|
|
2334
|
+
}), Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Da = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Oa = ["value", "onChange"], ka = ["value"], Aa = ["title", "onClick"], ja = { class: "tpl:mb-3.5" }, Ma = ["value"], Na = { value: "solid" }, Pa = { value: "outlined" }, Fa = { value: "rounded" }, Ia = { value: "square" }, La = { value: "circle" }, Ra = { class: "tpl:mb-3.5" }, za = { class: "tpl:mb-3.5" }, Ba = { class: "tpl:flex tpl:items-stretch" }, Va = ["value"], Ha = { class: "tpl:mb-3.5" }, Ua = /* @__PURE__ */ p({
|
|
2310
2335
|
__name: "SocialToolbar",
|
|
2311
2336
|
props: { block: {} },
|
|
2312
2337
|
emits: ["update"],
|
|
@@ -2333,10 +2358,10 @@ var Di = {
|
|
|
2333
2358
|
i("update", { icons: r.block.icons.filter((t) => t.id !== e) });
|
|
2334
2359
|
}
|
|
2335
2360
|
return (n, r) => (e(), _(v, null, [
|
|
2336
|
-
g("div",
|
|
2361
|
+
g("div", Ta, [g("label", { class: f(w(W)) }, E(w(a).social.icons), 3), g("div", Ea, [(e(!0), _(v, null, o(t.block.icons, (t) => (e(), _("div", {
|
|
2337
2362
|
key: t.id,
|
|
2338
2363
|
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"
|
|
2339
|
-
}, [g("div",
|
|
2364
|
+
}, [g("div", Da, [g("select", {
|
|
2340
2365
|
"data-testid": "social-platform-select",
|
|
2341
2366
|
class: f([w(U), "tpl:flex-1"]),
|
|
2342
2367
|
value: t.platform,
|
|
@@ -2344,14 +2369,14 @@ var Di = {
|
|
|
2344
2369
|
}, [(e(!0), _(v, null, o(w(Se), (t) => (e(), _("option", {
|
|
2345
2370
|
key: t,
|
|
2346
2371
|
value: t
|
|
2347
|
-
}, E(w(ye)[t].name), 9,
|
|
2372
|
+
}, E(w(ye)[t].name), 9, ka))), 128))], 42, Oa), g("button", {
|
|
2348
2373
|
class: f(w(st)),
|
|
2349
2374
|
title: w(a).social.removeIcon,
|
|
2350
2375
|
onClick: (e) => d(t.id)
|
|
2351
2376
|
}, [O(w(tt), {
|
|
2352
2377
|
size: 14,
|
|
2353
2378
|
"stroke-width": 2
|
|
2354
|
-
})], 10,
|
|
2379
|
+
})], 10, Aa)]), O(Z, {
|
|
2355
2380
|
"model-value": t.url,
|
|
2356
2381
|
type: "url",
|
|
2357
2382
|
placeholder: w(a).social.urlPlaceholder,
|
|
@@ -2367,18 +2392,18 @@ var Di = {
|
|
|
2367
2392
|
size: 14,
|
|
2368
2393
|
"stroke-width": 2
|
|
2369
2394
|
}), u(" " + E(w(a).social.addIcon), 1)], 2)])]),
|
|
2370
|
-
g("div",
|
|
2395
|
+
g("div", ja, [g("label", { class: f(w(W)) }, E(w(a).social.style), 3), g("select", {
|
|
2371
2396
|
class: f(w(U)),
|
|
2372
2397
|
value: t.block.iconStyle,
|
|
2373
2398
|
onChange: r[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2374
2399
|
}, [
|
|
2375
|
-
g("option",
|
|
2376
|
-
g("option",
|
|
2377
|
-
g("option",
|
|
2378
|
-
g("option",
|
|
2379
|
-
g("option",
|
|
2380
|
-
], 42,
|
|
2381
|
-
g("div",
|
|
2400
|
+
g("option", Na, E(w(a).social.styleSolid), 1),
|
|
2401
|
+
g("option", Pa, E(w(a).social.styleOutlined), 1),
|
|
2402
|
+
g("option", Fa, E(w(a).social.styleRounded), 1),
|
|
2403
|
+
g("option", Ia, E(w(a).social.styleSquare), 1),
|
|
2404
|
+
g("option", La, E(w(a).social.styleCircle), 1)
|
|
2405
|
+
], 42, Ma)]),
|
|
2406
|
+
g("div", Ra, [g("label", { class: f(w(W)) }, E(w(a).social.size), 3), O(Y, {
|
|
2382
2407
|
options: [
|
|
2383
2408
|
{
|
|
2384
2409
|
value: "small",
|
|
@@ -2396,15 +2421,15 @@ var Di = {
|
|
|
2396
2421
|
"model-value": t.block.iconSize,
|
|
2397
2422
|
"onUpdate:modelValue": r[1] ||= (e) => s("iconSize", e)
|
|
2398
2423
|
}, null, 8, ["options", "model-value"])]),
|
|
2399
|
-
g("div",
|
|
2424
|
+
g("div", za, [g("label", { class: f(w(W)) }, E(w(a).social.spacing), 3), g("div", Ba, [g("input", {
|
|
2400
2425
|
type: "number",
|
|
2401
2426
|
class: f(w(K)),
|
|
2402
2427
|
value: t.block.spacing,
|
|
2403
2428
|
min: "0",
|
|
2404
2429
|
max: "50",
|
|
2405
2430
|
onInput: r[2] ||= (e) => s("spacing", Number(e.target.value))
|
|
2406
|
-
}, null, 42,
|
|
2407
|
-
g("div",
|
|
2431
|
+
}, null, 42, Va), g("span", { class: f(w(G)) }, "px", 2)])]),
|
|
2432
|
+
g("div", Ha, [g("label", { class: f(w(W)) }, E(w(a).social.align), 3), O(Y, {
|
|
2408
2433
|
options: [
|
|
2409
2434
|
{
|
|
2410
2435
|
value: "left",
|
|
@@ -2427,22 +2452,22 @@ var Di = {
|
|
|
2427
2452
|
}, null, 8, ["options", "model-value"])])
|
|
2428
2453
|
], 64));
|
|
2429
2454
|
}
|
|
2430
|
-
}),
|
|
2455
|
+
}), Wa = { class: "tpl:mb-3.5" }, Ga = { class: "tpl:flex tpl:items-stretch" }, Ka = ["value"], qa = ["value"], Ja = /* @__PURE__ */ p({
|
|
2431
2456
|
__name: "SpacerToolbar",
|
|
2432
2457
|
props: { block: {} },
|
|
2433
2458
|
emits: ["update"],
|
|
2434
2459
|
setup(t, { emit: n }) {
|
|
2435
2460
|
let r = n, { t: i } = z();
|
|
2436
|
-
return (n, a) => (e(), _("div",
|
|
2461
|
+
return (n, a) => (e(), _("div", Wa, [
|
|
2437
2462
|
g("label", { class: f(w(W)) }, E(w(i).spacer.height), 3),
|
|
2438
|
-
g("div",
|
|
2463
|
+
g("div", Ga, [g("input", {
|
|
2439
2464
|
type: "number",
|
|
2440
2465
|
class: f(w(K)),
|
|
2441
2466
|
value: t.block.height,
|
|
2442
2467
|
min: "10",
|
|
2443
2468
|
max: "100",
|
|
2444
2469
|
onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2445
|
-
}, null, 42,
|
|
2470
|
+
}, null, 42, Ka), g("span", { class: f(w(G)) }, "px", 2)]),
|
|
2446
2471
|
g("input", {
|
|
2447
2472
|
type: "range",
|
|
2448
2473
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2450,13 +2475,13 @@ var Di = {
|
|
|
2450
2475
|
min: "10",
|
|
2451
2476
|
max: "100",
|
|
2452
2477
|
onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2453
|
-
}, null, 40,
|
|
2478
|
+
}, null, 40, qa)
|
|
2454
2479
|
]));
|
|
2455
2480
|
}
|
|
2456
|
-
}),
|
|
2481
|
+
}), Ya = { class: "tpl:mb-3.5" }, Xa = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Za = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Qa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, $a = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, eo = ["disabled"], to = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, no = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ro = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, io = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ao = ["disabled"], oo = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, so = { class: "tpl:mb-3.5" }, co = { 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)]" }, lo = ["checked"], uo = {
|
|
2457
2482
|
key: 0,
|
|
2458
2483
|
class: "tpl:mb-3.5"
|
|
2459
|
-
},
|
|
2484
|
+
}, fo = { class: "tpl:mb-3.5" }, po = { class: "tpl:mb-3.5" }, mo = { class: "tpl:flex tpl:items-stretch" }, ho = ["value"], go = { class: "tpl:mb-3.5" }, _o = { class: "tpl:flex tpl:items-stretch" }, vo = ["value"], yo = { class: "tpl:mb-3.5" }, bo = ["value"], xo = { value: "" }, So = ["value"], Co = { class: "tpl:mb-3.5" }, wo = { class: "tpl:flex tpl:items-stretch" }, To = ["value"], Eo = { class: "tpl:mb-3.5" }, Do = { class: "tpl:mb-3.5" }, Oo = /* @__PURE__ */ p({
|
|
2460
2485
|
__name: "TableToolbar",
|
|
2461
2486
|
props: {
|
|
2462
2487
|
block: {},
|
|
@@ -2497,7 +2522,7 @@ var Di = {
|
|
|
2497
2522
|
})) });
|
|
2498
2523
|
}
|
|
2499
2524
|
return (n, r) => (e(), _(v, null, [
|
|
2500
|
-
g("div",
|
|
2525
|
+
g("div", Ya, [g("label", { class: f(w(W)) }, E(w(a).table.dimensions), 3), g("div", Xa, [g("div", Za, [g("span", Qa, E(w(a).table.rows), 1), g("div", $a, [
|
|
2501
2526
|
g("button", {
|
|
2502
2527
|
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",
|
|
2503
2528
|
disabled: t.block.rows.length <= 1,
|
|
@@ -2505,8 +2530,8 @@ var Di = {
|
|
|
2505
2530
|
}, [O(w(V), {
|
|
2506
2531
|
size: 12,
|
|
2507
2532
|
"stroke-width": 2
|
|
2508
|
-
})], 8,
|
|
2509
|
-
g("span",
|
|
2533
|
+
})], 8, eo),
|
|
2534
|
+
g("span", to, E(t.block.rows.length), 1),
|
|
2510
2535
|
g("button", {
|
|
2511
2536
|
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)]",
|
|
2512
2537
|
onClick: l
|
|
@@ -2514,7 +2539,7 @@ var Di = {
|
|
|
2514
2539
|
size: 12,
|
|
2515
2540
|
"stroke-width": 2
|
|
2516
2541
|
})])
|
|
2517
|
-
])]), g("div",
|
|
2542
|
+
])]), g("div", no, [g("span", ro, E(w(a).table.columns), 1), g("div", io, [
|
|
2518
2543
|
g("button", {
|
|
2519
2544
|
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",
|
|
2520
2545
|
disabled: s.value <= 1,
|
|
@@ -2522,8 +2547,8 @@ var Di = {
|
|
|
2522
2547
|
}, [O(w(V), {
|
|
2523
2548
|
size: 12,
|
|
2524
2549
|
"stroke-width": 2
|
|
2525
|
-
})], 8,
|
|
2526
|
-
g("span",
|
|
2550
|
+
})], 8, ao),
|
|
2551
|
+
g("span", oo, E(s.value), 1),
|
|
2527
2552
|
g("button", {
|
|
2528
2553
|
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)]",
|
|
2529
2554
|
onClick: p
|
|
@@ -2532,58 +2557,58 @@ var Di = {
|
|
|
2532
2557
|
"stroke-width": 2
|
|
2533
2558
|
})])
|
|
2534
2559
|
])])])]),
|
|
2535
|
-
g("div",
|
|
2560
|
+
g("div", so, [g("label", co, [g("input", {
|
|
2536
2561
|
type: "checkbox",
|
|
2537
2562
|
checked: t.block.hasHeaderRow,
|
|
2538
2563
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2539
2564
|
onChange: r[2] ||= (e) => c("hasHeaderRow", e.target.checked)
|
|
2540
|
-
}, null, 40,
|
|
2541
|
-
t.block.hasHeaderRow ? (e(), _("div",
|
|
2565
|
+
}, null, 40, lo), u(" " + E(w(a).table.hasHeaderRow), 1)])]),
|
|
2566
|
+
t.block.hasHeaderRow ? (e(), _("div", uo, [g("label", { class: f(w(W)) }, E(w(a).table.headerBackgroundColor), 3), O(q, {
|
|
2542
2567
|
"model-value": t.block.headerBackgroundColor || w("#f2f2f2"),
|
|
2543
2568
|
placeholder: w(a).table.noHeaderBg,
|
|
2544
2569
|
"onUpdate:modelValue": r[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2545
2570
|
}, null, 8, ["model-value", "placeholder"])])) : y("", !0),
|
|
2546
|
-
g("div",
|
|
2571
|
+
g("div", fo, [g("label", { class: f(w(W)) }, E(w(a).table.borderColor), 3), O(q, {
|
|
2547
2572
|
"model-value": t.block.borderColor,
|
|
2548
2573
|
"onUpdate:modelValue": r[4] ||= (e) => c("borderColor", e)
|
|
2549
2574
|
}, null, 8, ["model-value"])]),
|
|
2550
|
-
g("div",
|
|
2575
|
+
g("div", po, [g("label", { class: f(w(W)) }, E(w(a).table.borderWidth), 3), g("div", mo, [g("input", {
|
|
2551
2576
|
type: "number",
|
|
2552
2577
|
class: f(w(K)),
|
|
2553
2578
|
value: t.block.borderWidth,
|
|
2554
2579
|
min: "0",
|
|
2555
2580
|
max: "10",
|
|
2556
2581
|
onInput: r[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2557
|
-
}, null, 42,
|
|
2558
|
-
g("div",
|
|
2582
|
+
}, null, 42, ho), g("span", { class: f(w(G)) }, "px", 2)])]),
|
|
2583
|
+
g("div", go, [g("label", { class: f(w(W)) }, E(w(a).table.cellPadding), 3), g("div", _o, [g("input", {
|
|
2559
2584
|
type: "number",
|
|
2560
2585
|
class: f(w(K)),
|
|
2561
2586
|
value: t.block.cellPadding,
|
|
2562
2587
|
min: "0",
|
|
2563
2588
|
max: "30",
|
|
2564
2589
|
onInput: r[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2565
|
-
}, null, 42,
|
|
2566
|
-
g("div",
|
|
2590
|
+
}, null, 42, vo), g("span", { class: f(w(G)) }, "px", 2)])]),
|
|
2591
|
+
g("div", yo, [g("label", { class: f(w(W)) }, E(w(a).table.fontFamily), 3), g("select", {
|
|
2567
2592
|
class: f(w(U)),
|
|
2568
2593
|
value: t.block.fontFamily || "",
|
|
2569
2594
|
onChange: r[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2570
|
-
}, [g("option",
|
|
2595
|
+
}, [g("option", xo, E(w(a).title.inheritFont), 1), (e(!0), _(v, null, o(t.fontFamilies, (t) => (e(), _("option", {
|
|
2571
2596
|
key: t.value,
|
|
2572
2597
|
value: t.value
|
|
2573
|
-
}, E(t.label), 9,
|
|
2574
|
-
g("div",
|
|
2598
|
+
}, E(t.label), 9, So))), 128))], 42, bo)]),
|
|
2599
|
+
g("div", Co, [g("label", { class: f(w(W)) }, E(w(a).table.fontSize), 3), g("div", wo, [g("input", {
|
|
2575
2600
|
type: "number",
|
|
2576
2601
|
class: f(w(K)),
|
|
2577
2602
|
value: t.block.fontSize,
|
|
2578
2603
|
min: "10",
|
|
2579
2604
|
max: "32",
|
|
2580
2605
|
onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2581
|
-
}, null, 42,
|
|
2582
|
-
g("div",
|
|
2606
|
+
}, null, 42, To), g("span", { class: f(w(G)) }, "px", 2)])]),
|
|
2607
|
+
g("div", Eo, [g("label", { class: f(w(W)) }, E(w(a).table.color), 3), O(q, {
|
|
2583
2608
|
"model-value": t.block.color,
|
|
2584
2609
|
"onUpdate:modelValue": r[9] ||= (e) => c("color", e)
|
|
2585
2610
|
}, null, 8, ["model-value"])]),
|
|
2586
|
-
g("div",
|
|
2611
|
+
g("div", Do, [g("label", { class: f(w(W)) }, E(w(a).table.textAlign), 3), O(Y, {
|
|
2587
2612
|
options: [
|
|
2588
2613
|
{
|
|
2589
2614
|
value: "left",
|
|
@@ -2606,7 +2631,7 @@ var Di = {
|
|
|
2606
2631
|
}, null, 8, ["options", "model-value"])])
|
|
2607
2632
|
], 64));
|
|
2608
2633
|
}
|
|
2609
|
-
}),
|
|
2634
|
+
}), ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = { value: 1 }, Mo = { value: 2 }, No = { value: 3 }, Po = { value: 4 }, Fo = { class: "tpl:mb-3.5" }, Io = ["value"], Lo = { value: "" }, Ro = ["value"], zo = { class: "tpl:mb-3.5" }, Bo = { class: "tpl:mb-3.5" }, Vo = /* @__PURE__ */ p({
|
|
2610
2635
|
__name: "TitleToolbar",
|
|
2611
2636
|
props: {
|
|
2612
2637
|
block: {},
|
|
@@ -2619,29 +2644,29 @@ var Di = {
|
|
|
2619
2644
|
r("update", { [e]: t });
|
|
2620
2645
|
}
|
|
2621
2646
|
return (n, r) => (e(), _(v, null, [
|
|
2622
|
-
g("div",
|
|
2647
|
+
g("div", ko, [g("label", { class: f(w(W)) }, E(w(i).title.level), 3), g("select", {
|
|
2623
2648
|
class: f(w(U)),
|
|
2624
2649
|
value: t.block.level,
|
|
2625
2650
|
onChange: r[0] ||= (e) => a("level", Number(e.target.value))
|
|
2626
2651
|
}, [
|
|
2627
|
-
g("option",
|
|
2628
|
-
g("option",
|
|
2629
|
-
g("option",
|
|
2630
|
-
g("option",
|
|
2631
|
-
], 42,
|
|
2632
|
-
g("div",
|
|
2652
|
+
g("option", jo, E(w(i).title.heading1), 1),
|
|
2653
|
+
g("option", Mo, E(w(i).title.heading2), 1),
|
|
2654
|
+
g("option", No, E(w(i).title.heading3), 1),
|
|
2655
|
+
g("option", Po, E(w(i).title.heading4), 1)
|
|
2656
|
+
], 42, Ao)]),
|
|
2657
|
+
g("div", Fo, [g("label", { class: f(w(W)) }, E(w(i).title.fontFamily), 3), g("select", {
|
|
2633
2658
|
class: f(w(U)),
|
|
2634
2659
|
value: t.block.fontFamily || "",
|
|
2635
2660
|
onChange: r[1] ||= (e) => a("fontFamily", e.target.value || void 0)
|
|
2636
|
-
}, [g("option",
|
|
2661
|
+
}, [g("option", Lo, E(w(i).title.inheritFont), 1), (e(!0), _(v, null, o(t.fontFamilies, (t) => (e(), _("option", {
|
|
2637
2662
|
key: t.value,
|
|
2638
2663
|
value: t.value
|
|
2639
|
-
}, E(t.label), 9,
|
|
2640
|
-
g("div",
|
|
2664
|
+
}, E(t.label), 9, Ro))), 128))], 42, Io)]),
|
|
2665
|
+
g("div", zo, [g("label", { class: f(w(W)) }, E(w(i).title.color), 3), O(q, {
|
|
2641
2666
|
"model-value": t.block.color,
|
|
2642
2667
|
"onUpdate:modelValue": r[2] ||= (e) => a("color", e)
|
|
2643
2668
|
}, null, 8, ["model-value"])]),
|
|
2644
|
-
g("div",
|
|
2669
|
+
g("div", Bo, [g("label", { class: f(w(W)) }, E(w(i).title.align), 3), O(Y, {
|
|
2645
2670
|
options: [
|
|
2646
2671
|
{
|
|
2647
2672
|
value: "left",
|
|
@@ -2664,22 +2689,22 @@ var Di = {
|
|
|
2664
2689
|
}, null, 8, ["options", "model-value"])])
|
|
2665
2690
|
], 64));
|
|
2666
2691
|
}
|
|
2667
|
-
}),
|
|
2692
|
+
}), Ho = { class: "tpl:mb-3.5" }, Uo = {
|
|
2668
2693
|
key: 0,
|
|
2669
2694
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
2670
|
-
},
|
|
2695
|
+
}, Wo = ["checked"], Go = {
|
|
2671
2696
|
key: 0,
|
|
2672
2697
|
class: "tpl:mb-3.5"
|
|
2673
|
-
},
|
|
2698
|
+
}, Ko = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, qo = [
|
|
2674
2699
|
"value",
|
|
2675
2700
|
"placeholder",
|
|
2676
2701
|
"title"
|
|
2677
|
-
],
|
|
2702
|
+
], Jo = { class: "tpl:mb-3.5" }, Yo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Xo = { class: "tpl:mb-3.5" }, Zo = { class: "tpl:mb-3.5" }, Qo = ["value"], $o = { value: "full" }, es = { class: "tpl:mb-3.5" }, ts = /* @__PURE__ */ p({
|
|
2678
2703
|
__name: "VideoToolbar",
|
|
2679
2704
|
props: { block: {} },
|
|
2680
2705
|
emits: ["update"],
|
|
2681
2706
|
setup(t, { emit: n }) {
|
|
2682
|
-
let r = t, i = n, { t: a } = z(), o = k(
|
|
2707
|
+
let r = t, i = n, { t: a } = z(), o = k(ze, null), s = k(Ae, ne.liquid), c = it(), d = h(() => !!o), p = h(() => P(r.block.url, s)), m = l(!1), { start: b } = Ee(() => {
|
|
2683
2708
|
m.value = !1;
|
|
2684
2709
|
}, 1e3, { immediate: !1 });
|
|
2685
2710
|
function x(e, t) {
|
|
@@ -2690,7 +2715,7 @@ var Di = {
|
|
|
2690
2715
|
c.alive && e && (x("thumbnailUrl", e.url), m.value = !0, b());
|
|
2691
2716
|
}
|
|
2692
2717
|
return (n, r) => (e(), _(v, null, [
|
|
2693
|
-
g("div",
|
|
2718
|
+
g("div", Ho, [
|
|
2694
2719
|
g("label", { class: f(w(W)) }, E(w(a).video.videoUrl), 3),
|
|
2695
2720
|
O(Z, {
|
|
2696
2721
|
"model-value": t.block.url,
|
|
@@ -2698,23 +2723,23 @@ var Di = {
|
|
|
2698
2723
|
placeholder: w(a).video.videoUrlPlaceholder,
|
|
2699
2724
|
"onUpdate:modelValue": r[0] ||= (e) => x("url", e)
|
|
2700
2725
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2701
|
-
t.block.url ? (e(), _("label",
|
|
2726
|
+
t.block.url ? (e(), _("label", Uo, [g("input", {
|
|
2702
2727
|
type: "checkbox",
|
|
2703
2728
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2704
2729
|
checked: t.block.openInNewTab ?? !1,
|
|
2705
2730
|
onChange: r[1] ||= (e) => x("openInNewTab", e.target.checked)
|
|
2706
|
-
}, null, 40,
|
|
2731
|
+
}, null, 40, Wo), u(" " + E(w(a).video.openInNewTab), 1)])) : y("", !0)
|
|
2707
2732
|
]),
|
|
2708
|
-
p.value ? (e(), _("div",
|
|
2733
|
+
p.value ? (e(), _("div", Go, [g("label", { class: f(w(W)) }, [u(E(w(a).video.placeholderUrl) + " ", 1), g("span", Ko, E(w(a).video.optional), 1)], 2), g("input", {
|
|
2709
2734
|
type: "url",
|
|
2710
2735
|
class: f(w(U)),
|
|
2711
2736
|
value: t.block.placeholderUrl || "",
|
|
2712
2737
|
placeholder: w(a).video.placeholderUrlPlaceholder,
|
|
2713
2738
|
title: w(a).video.placeholderUrlTooltip,
|
|
2714
2739
|
onInput: r[2] ||= (e) => x("placeholderUrl", e.target.value)
|
|
2715
|
-
}, null, 42,
|
|
2716
|
-
g("div",
|
|
2717
|
-
g("label", { class: f(w(W)) }, [u(E(w(a).video.customThumbnail) + " ", 1), g("span",
|
|
2740
|
+
}, null, 42, qo)])) : y("", !0),
|
|
2741
|
+
g("div", Jo, [
|
|
2742
|
+
g("label", { class: f(w(W)) }, [u(E(w(a).video.customThumbnail) + " ", 1), g("span", Yo, E(w(a).video.optional), 1)], 2),
|
|
2718
2743
|
O(Z, {
|
|
2719
2744
|
"model-value": t.block.thumbnailUrl,
|
|
2720
2745
|
type: "url",
|
|
@@ -2740,23 +2765,23 @@ var Di = {
|
|
|
2740
2765
|
"stroke-width": 1.5
|
|
2741
2766
|
}), u(" " + E(w(a).image.browseMedia), 1)])) : y("", !0)
|
|
2742
2767
|
]),
|
|
2743
|
-
g("div",
|
|
2768
|
+
g("div", Xo, [g("label", { class: f(w(W)) }, E(w(a).video.altText), 3), O(Z, {
|
|
2744
2769
|
"model-value": t.block.alt,
|
|
2745
2770
|
type: "text",
|
|
2746
2771
|
placeholder: w(a).video.altTextPlaceholder,
|
|
2747
2772
|
"onUpdate:modelValue": r[4] ||= (e) => x("alt", e)
|
|
2748
2773
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2749
|
-
g("div",
|
|
2774
|
+
g("div", Zo, [g("label", { class: f(w(W)) }, E(w(a).video.width), 3), g("select", {
|
|
2750
2775
|
class: f(w(U)),
|
|
2751
2776
|
value: t.block.width,
|
|
2752
2777
|
onChange: r[5] ||= (e) => x("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
2753
2778
|
}, [
|
|
2754
|
-
g("option",
|
|
2779
|
+
g("option", $o, E(w(a).video.fullWidth), 1),
|
|
2755
2780
|
r[7] ||= g("option", { value: "300" }, "300px", -1),
|
|
2756
2781
|
r[8] ||= g("option", { value: "400" }, "400px", -1),
|
|
2757
2782
|
r[9] ||= g("option", { value: "500" }, "500px", -1)
|
|
2758
|
-
], 42,
|
|
2759
|
-
g("div",
|
|
2783
|
+
], 42, Qo)]),
|
|
2784
|
+
g("div", es, [g("label", { class: f(w(W)) }, E(w(a).title.align), 3), O(Y, {
|
|
2760
2785
|
options: [
|
|
2761
2786
|
{
|
|
2762
2787
|
value: "left",
|
|
@@ -2776,7 +2801,7 @@ var Di = {
|
|
|
2776
2801
|
}, null, 8, ["options", "model-value"])])
|
|
2777
2802
|
], 64));
|
|
2778
2803
|
}
|
|
2779
|
-
}),
|
|
2804
|
+
}), ns = ["aria-label"], rs = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, is = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, as = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, os = { class: "tpl:flex tpl:gap-1" }, ss = ["title"], cs = ["title"], ls = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, us = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
2780
2805
|
__name: "Toolbar",
|
|
2781
2806
|
props: { block: {} },
|
|
2782
2807
|
emits: [
|
|
@@ -2785,7 +2810,7 @@ var Di = {
|
|
|
2785
2810
|
"duplicate"
|
|
2786
2811
|
],
|
|
2787
2812
|
setup(t, { emit: n }) {
|
|
2788
|
-
let i = A(() => import("./CountdownToolbar-
|
|
2813
|
+
let i = A(() => import("./CountdownToolbar-BVVT8U5C.js")), a = t, o = n, { t: s } = z(), c = De(Ne, "Toolbar"), l = k(je, []), u = h(() => a.block.type), d = h(() => te(a.block)), f = h(() => {
|
|
2789
2814
|
if (d.value) return l.find((e) => e.type === a.block.customType);
|
|
2790
2815
|
}), p = h(() => d.value ? f.value?.name ?? a.block.customType : re(u.value, s)), m = c.fonts;
|
|
2791
2816
|
function b(e) {
|
|
@@ -2794,7 +2819,7 @@ var Di = {
|
|
|
2794
2819
|
return (n, a) => (e(), _("aside", {
|
|
2795
2820
|
"aria-label": w(s).landmarks.blockToolbar,
|
|
2796
2821
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2797
|
-
}, [g("div",
|
|
2822
|
+
}, [g("div", rs, [g("div", is, [w(Ue)[u.value] ? (e(), S(r(w(Ue)[u.value]), {
|
|
2798
2823
|
key: 0,
|
|
2799
2824
|
size: 16,
|
|
2800
2825
|
"stroke-width": 1.5
|
|
@@ -2802,30 +2827,30 @@ var Di = {
|
|
|
2802
2827
|
key: 1,
|
|
2803
2828
|
size: 16,
|
|
2804
2829
|
"stroke-width": 1.5
|
|
2805
|
-
})) : y("", !0), g("h3",
|
|
2830
|
+
})) : y("", !0), g("h3", as, E(p.value), 1)]), g("div", os, [g("button", {
|
|
2806
2831
|
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)]",
|
|
2807
2832
|
title: w(s).toolbar.duplicate,
|
|
2808
2833
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
2809
2834
|
}, [O(w(me), {
|
|
2810
2835
|
size: 14,
|
|
2811
2836
|
"stroke-width": 2
|
|
2812
|
-
})], 8,
|
|
2837
|
+
})], 8, ss), g("button", {
|
|
2813
2838
|
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)]",
|
|
2814
2839
|
title: w(s).toolbar.delete,
|
|
2815
2840
|
onClick: a[1] ||= (e) => o("delete")
|
|
2816
2841
|
}, [O(w(et), {
|
|
2817
2842
|
size: 14,
|
|
2818
2843
|
"stroke-width": 2
|
|
2819
|
-
})], 8,
|
|
2844
|
+
})], 8, cs)])]), g("div", ls, [d.value ? (e(), S(Fi, {
|
|
2820
2845
|
key: 0,
|
|
2821
2846
|
block: t.block,
|
|
2822
2847
|
onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
|
|
2823
2848
|
onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
|
|
2824
|
-
}, null, 8, ["block"])) : u.value === "section" ? (e(), S(
|
|
2849
|
+
}, null, 8, ["block"])) : u.value === "section" ? (e(), S(wa, {
|
|
2825
2850
|
key: 1,
|
|
2826
2851
|
block: t.block,
|
|
2827
2852
|
onUpdate: b
|
|
2828
|
-
}, null, 8, ["block"])) : u.value === "title" ? (e(), S(
|
|
2853
|
+
}, null, 8, ["block"])) : u.value === "title" ? (e(), S(Vo, {
|
|
2829
2854
|
key: 2,
|
|
2830
2855
|
block: t.block,
|
|
2831
2856
|
"font-families": w(m),
|
|
@@ -2834,7 +2859,7 @@ var Di = {
|
|
|
2834
2859
|
key: 4,
|
|
2835
2860
|
block: t.block,
|
|
2836
2861
|
onUpdate: b
|
|
2837
|
-
}, null, 8, ["block"])) : u.value === "video" ? (e(), S(
|
|
2862
|
+
}, null, 8, ["block"])) : u.value === "video" ? (e(), S(ts, {
|
|
2838
2863
|
key: 5,
|
|
2839
2864
|
block: t.block,
|
|
2840
2865
|
onUpdate: b
|
|
@@ -2847,7 +2872,7 @@ var Di = {
|
|
|
2847
2872
|
key: 7,
|
|
2848
2873
|
block: t.block,
|
|
2849
2874
|
onUpdate: b
|
|
2850
|
-
}, null, 8, ["block"])) : u.value === "social" ? (e(), S(
|
|
2875
|
+
}, null, 8, ["block"])) : u.value === "social" ? (e(), S(Ua, {
|
|
2851
2876
|
key: 8,
|
|
2852
2877
|
block: t.block,
|
|
2853
2878
|
onUpdate: b
|
|
@@ -2856,12 +2881,12 @@ var Di = {
|
|
|
2856
2881
|
block: t.block,
|
|
2857
2882
|
"font-families": w(m),
|
|
2858
2883
|
onUpdate: b
|
|
2859
|
-
}, null, 8, ["block", "font-families"])) : u.value === "table" ? (e(), S(
|
|
2884
|
+
}, null, 8, ["block", "font-families"])) : u.value === "table" ? (e(), S(Oo, {
|
|
2860
2885
|
key: 10,
|
|
2861
2886
|
block: t.block,
|
|
2862
2887
|
"font-families": w(m),
|
|
2863
2888
|
onUpdate: b
|
|
2864
|
-
}, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (e(), S(
|
|
2889
|
+
}, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (e(), S(Ja, {
|
|
2865
2890
|
key: 11,
|
|
2866
2891
|
block: t.block,
|
|
2867
2892
|
onUpdate: b
|
|
@@ -2878,48 +2903,48 @@ var Di = {
|
|
|
2878
2903
|
block: t.block,
|
|
2879
2904
|
"is-first-section": u.value === "paragraph",
|
|
2880
2905
|
onUpdate: b
|
|
2881
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
2906
|
+
}, null, 8, ["block", "is-first-section"])])], 8, ns));
|
|
2882
2907
|
}
|
|
2883
|
-
}), [["__scopeId", "data-v-2ac88283"]]),
|
|
2908
|
+
}), [["__scopeId", "data-v-2ac88283"]]), ds = ["aria-label"], fs = {
|
|
2884
2909
|
role: "tablist",
|
|
2885
2910
|
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"
|
|
2886
|
-
},
|
|
2911
|
+
}, ps = [
|
|
2887
2912
|
"aria-selected",
|
|
2888
2913
|
"aria-label",
|
|
2889
2914
|
"title"
|
|
2890
|
-
],
|
|
2915
|
+
], ms = { key: 0 }, hs = [
|
|
2891
2916
|
"aria-selected",
|
|
2892
2917
|
"aria-label",
|
|
2893
2918
|
"title"
|
|
2894
|
-
],
|
|
2919
|
+
], gs = { key: 0 }, _s = [
|
|
2895
2920
|
"aria-selected",
|
|
2896
2921
|
"aria-label",
|
|
2897
2922
|
"title"
|
|
2898
|
-
],
|
|
2923
|
+
], vs = { key: 0 }, ys = {
|
|
2899
2924
|
key: 1,
|
|
2900
2925
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
2901
|
-
},
|
|
2926
|
+
}, bs = {
|
|
2902
2927
|
key: 0,
|
|
2903
2928
|
id: "tpl-tabpanel-content",
|
|
2904
2929
|
role: "tabpanel",
|
|
2905
2930
|
"aria-labelledby": "tpl-tab-content",
|
|
2906
2931
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2907
|
-
},
|
|
2932
|
+
}, xs = {
|
|
2908
2933
|
key: 1,
|
|
2909
2934
|
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)]"
|
|
2910
|
-
},
|
|
2935
|
+
}, Ss = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Cs = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ws = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Ts = {
|
|
2911
2936
|
key: 1,
|
|
2912
2937
|
id: "tpl-tabpanel-settings",
|
|
2913
2938
|
role: "tabpanel",
|
|
2914
2939
|
"aria-labelledby": "tpl-tab-settings",
|
|
2915
2940
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2916
|
-
},
|
|
2941
|
+
}, Es = {
|
|
2917
2942
|
key: 2,
|
|
2918
|
-
id: "tpl-tabpanel-
|
|
2943
|
+
id: "tpl-tabpanel-issues",
|
|
2919
2944
|
role: "tabpanel",
|
|
2920
|
-
"aria-labelledby": "tpl-tab-
|
|
2945
|
+
"aria-labelledby": "tpl-tab-issues",
|
|
2921
2946
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2922
|
-
},
|
|
2947
|
+
}, Ds = /* @__PURE__ */ p({
|
|
2923
2948
|
__name: "RightSidebar",
|
|
2924
2949
|
props: {
|
|
2925
2950
|
selectedBlock: {},
|
|
@@ -2933,7 +2958,7 @@ var Di = {
|
|
|
2933
2958
|
"update-settings"
|
|
2934
2959
|
],
|
|
2935
2960
|
setup(t, { emit: n }) {
|
|
2936
|
-
let r = A(() => import("./
|
|
2961
|
+
let r = A(() => import("./IssuesPanel-XVdvrgmq.js")), i = t, o = n, { t: s } = z(), c = l("content"), u = k(Oe, null), d = h(() => u !== null), p = h(() => u?.issues.value.length ?? 0);
|
|
2937
2962
|
function m(e) {
|
|
2938
2963
|
return c.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
|
|
2939
2964
|
}
|
|
@@ -2949,7 +2974,7 @@ var Di = {
|
|
|
2949
2974
|
"aria-label": w(s).landmarks.rightSidebar,
|
|
2950
2975
|
class: f(["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"])
|
|
2951
2976
|
}, [
|
|
2952
|
-
g("div",
|
|
2977
|
+
g("div", fs, [
|
|
2953
2978
|
g("button", {
|
|
2954
2979
|
id: "tpl-tab-content",
|
|
2955
2980
|
role: "tab",
|
|
@@ -2963,7 +2988,7 @@ var Di = {
|
|
|
2963
2988
|
}, [O(w(bt), {
|
|
2964
2989
|
size: 14,
|
|
2965
2990
|
"stroke-width": 2
|
|
2966
|
-
}), c.value === "content" ? (e(), _("span",
|
|
2991
|
+
}), c.value === "content" ? (e(), _("span", ms, E(w(s).sidebar.content), 1)) : y("", !0)], 14, ps),
|
|
2967
2992
|
g("button", {
|
|
2968
2993
|
id: "tpl-tab-settings",
|
|
2969
2994
|
role: "tab",
|
|
@@ -2977,54 +3002,54 @@ var Di = {
|
|
|
2977
3002
|
}, [O(w(St), {
|
|
2978
3003
|
size: 14,
|
|
2979
3004
|
"stroke-width": 1.5
|
|
2980
|
-
}), c.value === "settings" ? (e(), _("span",
|
|
3005
|
+
}), c.value === "settings" ? (e(), _("span", gs, E(w(s).sidebar.settings), 1)) : y("", !0)], 14, hs),
|
|
2981
3006
|
d.value ? (e(), _("button", {
|
|
2982
3007
|
key: 0,
|
|
2983
|
-
id: "tpl-tab-
|
|
3008
|
+
id: "tpl-tab-issues",
|
|
2984
3009
|
role: "tab",
|
|
2985
|
-
"aria-selected": c.value === "
|
|
2986
|
-
"aria-controls": "tpl-tabpanel-
|
|
2987
|
-
"aria-label": w(s).
|
|
2988
|
-
title: w(s).
|
|
2989
|
-
class: f(["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("
|
|
2990
|
-
style: x(v("
|
|
2991
|
-
onClick: i[2] ||= (e) => c.value = "
|
|
3010
|
+
"aria-selected": c.value === "issues",
|
|
3011
|
+
"aria-controls": "tpl-tabpanel-issues",
|
|
3012
|
+
"aria-label": w(s).issues.panelTabLabel,
|
|
3013
|
+
title: w(s).issues.panelTabLabel,
|
|
3014
|
+
class: f(["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("issues")]),
|
|
3015
|
+
style: x(v("issues")),
|
|
3016
|
+
onClick: i[2] ||= (e) => c.value = "issues"
|
|
2992
3017
|
}, [
|
|
2993
|
-
O(w(
|
|
3018
|
+
O(w(Je), {
|
|
2994
3019
|
size: 14,
|
|
2995
3020
|
"stroke-width": 1.5
|
|
2996
3021
|
}),
|
|
2997
|
-
c.value === "
|
|
2998
|
-
p.value > 0 ? (e(), _("span",
|
|
2999
|
-
], 14,
|
|
3022
|
+
c.value === "issues" ? (e(), _("span", vs, E(w(s).issues.panelTabLabel), 1)) : y("", !0),
|
|
3023
|
+
p.value > 0 ? (e(), _("span", ys, E(p.value), 1)) : y("", !0)
|
|
3024
|
+
], 14, _s)) : y("", !0)
|
|
3000
3025
|
]),
|
|
3001
|
-
c.value === "content" ? (e(), _("div",
|
|
3026
|
+
c.value === "content" ? (e(), _("div", bs, [t.selectedBlock ? (e(), S(us, {
|
|
3002
3027
|
key: 0,
|
|
3003
3028
|
block: t.selectedBlock,
|
|
3004
3029
|
onUpdate: i[3] ||= (e) => o("update-block", e),
|
|
3005
3030
|
onDelete: i[4] ||= (e) => o("delete-block"),
|
|
3006
3031
|
onDuplicate: i[5] ||= (e) => o("duplicate-block")
|
|
3007
|
-
}, null, 8, ["block"])) : (e(), _("div",
|
|
3008
|
-
g("div",
|
|
3032
|
+
}, null, 8, ["block"])) : (e(), _("div", xs, [
|
|
3033
|
+
g("div", Ss, [O(w(ht), {
|
|
3009
3034
|
size: 40,
|
|
3010
3035
|
"stroke-width": 1.5
|
|
3011
3036
|
})]),
|
|
3012
|
-
g("h3",
|
|
3013
|
-
g("p",
|
|
3037
|
+
g("h3", Cs, E(w(s).sidebar.noSelection), 1),
|
|
3038
|
+
g("p", ws, E(w(s).sidebar.noSelectionHint), 1)
|
|
3014
3039
|
]))])) : y("", !0),
|
|
3015
|
-
c.value === "settings" ? (e(), _("div",
|
|
3040
|
+
c.value === "settings" ? (e(), _("div", Ts, [O(Ln, {
|
|
3016
3041
|
settings: t.settings,
|
|
3017
3042
|
onUpdate: i[6] ||= (e) => o("update-settings", e)
|
|
3018
3043
|
}, null, 8, ["settings"])])) : y("", !0),
|
|
3019
|
-
c.value === "
|
|
3020
|
-
], 10,
|
|
3044
|
+
c.value === "issues" && d.value ? (e(), _("div", Es, [O(w(r))])) : y("", !0)
|
|
3045
|
+
], 10, ds));
|
|
3021
3046
|
}
|
|
3022
|
-
}),
|
|
3047
|
+
}), Os = ["aria-label"], ks = [
|
|
3023
3048
|
"aria-checked",
|
|
3024
3049
|
"aria-label",
|
|
3025
3050
|
"title",
|
|
3026
3051
|
"onClick"
|
|
3027
|
-
],
|
|
3052
|
+
], As = /* @__PURE__ */ p({
|
|
3028
3053
|
__name: "ViewportToggle",
|
|
3029
3054
|
props: { viewport: {} },
|
|
3030
3055
|
emits: ["change"],
|
|
@@ -3085,13 +3110,13 @@ var Di = {
|
|
|
3085
3110
|
key: 2,
|
|
3086
3111
|
size: 18,
|
|
3087
3112
|
"stroke-width": 1.5
|
|
3088
|
-
})), g("span", null, E(n.label), 1)], 12,
|
|
3113
|
+
})), g("span", null, E(n.label), 1)], 12, ks))), 128))], 12, Os));
|
|
3089
3114
|
}
|
|
3090
|
-
}),
|
|
3115
|
+
}), js = [
|
|
3091
3116
|
"aria-label",
|
|
3092
3117
|
"title",
|
|
3093
3118
|
"aria-pressed"
|
|
3094
|
-
],
|
|
3119
|
+
], Ms = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
3095
3120
|
__name: "PreviewToggle",
|
|
3096
3121
|
props: { previewMode: { type: Boolean } },
|
|
3097
3122
|
emits: ["change"],
|
|
@@ -3114,7 +3139,7 @@ var Di = {
|
|
|
3114
3139
|
"leave-to-class": "tpl-icon-leave-to",
|
|
3115
3140
|
mode: "out-in"
|
|
3116
3141
|
}, {
|
|
3117
|
-
default: j(() => [t.previewMode ? (e(), S(w(
|
|
3142
|
+
default: j(() => [t.previewMode ? (e(), S(w(We), {
|
|
3118
3143
|
key: "eye",
|
|
3119
3144
|
size: 18,
|
|
3120
3145
|
"stroke-width": 1.5
|
|
@@ -3124,13 +3149,13 @@ var Di = {
|
|
|
3124
3149
|
"stroke-width": 1.5
|
|
3125
3150
|
}))]),
|
|
3126
3151
|
_: 1
|
|
3127
|
-
})], 12,
|
|
3152
|
+
})], 12, js));
|
|
3128
3153
|
}
|
|
3129
|
-
}), [["__scopeId", "data-v-af87d02a"]]),
|
|
3154
|
+
}), [["__scopeId", "data-v-af87d02a"]]), Ns = [
|
|
3130
3155
|
"aria-label",
|
|
3131
3156
|
"title",
|
|
3132
3157
|
"aria-pressed"
|
|
3133
|
-
],
|
|
3158
|
+
], Ps = /* @__PURE__ */ H(/* @__PURE__ */ p({
|
|
3134
3159
|
__name: "DarkModeToggle",
|
|
3135
3160
|
props: { darkMode: { type: Boolean } },
|
|
3136
3161
|
emits: ["change"],
|
|
@@ -3163,27 +3188,27 @@ var Di = {
|
|
|
3163
3188
|
"stroke-width": 1.5
|
|
3164
3189
|
}))]),
|
|
3165
3190
|
_: 1
|
|
3166
|
-
})], 12,
|
|
3191
|
+
})], 12, Ns));
|
|
3167
3192
|
}
|
|
3168
|
-
}), [["__scopeId", "data-v-f8694f76"]]),
|
|
3193
|
+
}), [["__scopeId", "data-v-f8694f76"]]), Fs = {
|
|
3169
3194
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
3170
3195
|
style: {
|
|
3171
3196
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
3172
3197
|
"backdrop-filter": "blur(8px)",
|
|
3173
3198
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
3174
3199
|
}
|
|
3175
|
-
},
|
|
3200
|
+
}, Is = {
|
|
3176
3201
|
href: "https://github.com/templatical/sdk",
|
|
3177
3202
|
target: "_blank",
|
|
3178
3203
|
rel: "noopener noreferrer",
|
|
3179
3204
|
class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
|
|
3180
3205
|
style: { "text-decoration": "none" }
|
|
3181
|
-
},
|
|
3206
|
+
}, Ls = /* @__PURE__ */ p({
|
|
3182
3207
|
__name: "EditorFooter",
|
|
3183
3208
|
props: { positionClass: {} },
|
|
3184
3209
|
setup(t) {
|
|
3185
3210
|
let { t: n } = z();
|
|
3186
|
-
return (r, i) => (e(), _("footer", { class: f(["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]) }, [g("div",
|
|
3211
|
+
return (r, i) => (e(), _("footer", { class: f(["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]) }, [g("div", Fs, [
|
|
3187
3212
|
g("span", null, E(w(n).footer.poweredBy), 1),
|
|
3188
3213
|
i[0] ||= g("a", {
|
|
3189
3214
|
href: "https://templatical.com",
|
|
@@ -3198,9 +3223,9 @@ var Di = {
|
|
|
3198
3223
|
alt: ""
|
|
3199
3224
|
}), u(" Templatical ")], -1),
|
|
3200
3225
|
i[1] ||= g("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
|
|
3201
|
-
g("a",
|
|
3226
|
+
g("a", Is, E(w(n).footer.openSource), 1)
|
|
3202
3227
|
])], 2));
|
|
3203
3228
|
}
|
|
3204
3229
|
});
|
|
3205
3230
|
//#endregion
|
|
3206
|
-
export {
|
|
3231
|
+
export { Ds as a, Ot as c, As as i, xt as l, Ps as n, qt as o, Ms as r, Rt as s, Ls as t };
|