@templatical/editor 0.21.2 → 0.23.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/README.md +1 -1
- package/dist/{AiChatSidebar-K_AehWc-.js → AiChatSidebar-Bru6-ziQ.js} +1 -1
- package/dist/{AiFeatureMenu-CcqQDHzJ.js → AiFeatureMenu-CcqjRMFW.js} +1 -1
- package/dist/{SavedBlockPreviewCanvas-2-mzAnZE.js → BlockPreviewCanvas-MD9BGuXV.js} +36 -30
- package/dist/{CloudEditor-DOjGJwPe.js → CloudEditor-iK4vkpNm.js} +275 -279
- package/dist/{CollaboratorBar-Bj4NZiie.js → CollaboratorBar-C_1SF7Xf.js} +1 -1
- package/dist/{DesignReferenceSidebar-DNmK3dxp.js → DesignReferenceSidebar-BxPo0zyx.js} +1 -1
- package/dist/{MergeTagSuggestion-DMe4rqn0.js → MergeTagSuggestion-D9eCryMC.js} +2 -2
- package/dist/{ParagraphEditor--_zWfxps.js → ParagraphEditor-MKJYyWN9.js} +13 -13
- package/dist/{SaveBlockDialog-CYIEHABH.js → SaveBlockDialog-CFAJHP3v.js} +99 -98
- package/dist/{SavedBlocksBrowserModal-D5V5yF_3.js → SavedBlocksBrowserModal-C_-Xcm0Q.js} +4 -4
- package/dist/{SavedBlocksPanels-Dff38YXu.js → SavedBlocksPanels-CRf7zzFn.js} +1 -1
- package/dist/{SavedBlocksPickBar-rB6iyji6.js → SavedBlocksPickBar-C1FTJP-I.js} +1 -1
- package/dist/{SnapshotHistory-FtzDq8f0.js → SnapshotHistory-DWlQ3Eh0.js} +1 -1
- package/dist/TestEmailModal-D90-3Yex.js +162 -0
- package/dist/TestEmailPanel-B0u_Yd3X.js +33 -0
- package/dist/{TitleEditor-CPda5lh-.js → TitleEditor-DzsPxKv4.js} +5 -5
- package/dist/{TplModal-C7Koj5gM.js → TplModal-CykwWFhF.js} +1 -1
- package/dist/ViewportToggle-BjmbNoao.js +97 -0
- package/dist/{blockTypeIcons-CgwECCut.js → blockTypeIcons-CpKkI47V.js} +1 -1
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-BBgad6y5.js → ca-D47BxSGu.js} +14 -0
- package/dist/cdn/chunks/{AiChatSidebar-A1CuWGY0.js → AiChatSidebar-BMnsF8G6.js} +2 -2
- package/dist/cdn/chunks/{AiChatSidebar-A1CuWGY0.js.map → AiChatSidebar-BMnsF8G6.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-Duwg413F.js → AiFeatureMenu-hWgWQg11.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-Duwg413F.js.map → AiFeatureMenu-hWgWQg11.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlockPreviewCanvas-DZOMgNsz.js → BlockPreviewCanvas-eASrdFSN.js} +37 -31
- package/dist/cdn/chunks/BlockPreviewCanvas-eASrdFSN.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-C0Y4RD4c.js → CloudEditor-S8zLHtKb.js} +253 -257
- package/dist/cdn/chunks/CloudEditor-S8zLHtKb.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-BS3rJy6-.js → CollaboratorBar-mkJVAkSh.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-BS3rJy6-.js.map → CollaboratorBar-mkJVAkSh.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-Dre99DTH.js → DesignReferenceSidebar-CM-k15pd.js} +2 -2
- package/dist/cdn/chunks/{DesignReferenceSidebar-Dre99DTH.js.map → DesignReferenceSidebar-CM-k15pd.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-D7TsECll.js → MergeTagSuggestion-BM349_QH.js} +2 -2
- package/dist/cdn/chunks/{MergeTagSuggestion-D7TsECll.js.map → MergeTagSuggestion-BM349_QH.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CtaRa1vr.js → ParagraphEditor-J-1RLyi7.js} +14 -14
- package/dist/cdn/chunks/{ParagraphEditor-CtaRa1vr.js.map → ParagraphEditor-J-1RLyi7.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Bb3fdUEZ.js → SaveBlockDialog-Bi_Z3kuA.js} +100 -99
- package/dist/cdn/chunks/SaveBlockDialog-Bi_Z3kuA.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CeUWcPv0.js → SavedBlocksBrowserModal-CesYxFsH.js} +4 -4
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CesYxFsH.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-D-pA_wfk.js → SavedBlocksPanels-BsSpJwrW.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-D-pA_wfk.js.map → SavedBlocksPanels-BsSpJwrW.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-1rf1KpqS.js → SavedBlocksPickBar-CduR1Cpb.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPickBar-1rf1KpqS.js.map → SavedBlocksPickBar-CduR1Cpb.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-Bf1uovti.js → SnapshotHistory-DO-gzr3i.js} +2 -2
- package/dist/cdn/chunks/{SnapshotHistory-Bf1uovti.js.map → SnapshotHistory-DO-gzr3i.js.map} +1 -1
- package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js +162 -0
- package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js.map +1 -0
- package/dist/cdn/chunks/TestEmailPanel-048m0kxX.js +35 -0
- package/dist/cdn/chunks/TestEmailPanel-048m0kxX.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-BJ7LFykI.js → TitleEditor-J1vgU_J6.js} +6 -6
- package/dist/cdn/chunks/{TitleEditor-BJ7LFykI.js.map → TitleEditor-J1vgU_J6.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-CH9RzKF7.js → TplModal-BN53d9Se.js} +2 -2
- package/dist/cdn/chunks/{TplModal-CH9RzKF7.js.map → TplModal-BN53d9Se.js.map} +1 -1
- package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js +66 -0
- package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js.map +1 -0
- package/dist/cdn/chunks/{ca-BBgad6y5.js → ca-D47BxSGu.js} +15 -1
- package/dist/cdn/chunks/{ca-BBgad6y5.js.map → ca-D47BxSGu.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-BJlbXGTJ.js → cloud-F-aVi9hj.js} +45 -41
- package/dist/cdn/chunks/cloud-F-aVi9hj.js.map +1 -0
- package/dist/{de-D7WbpFBR.js → cdn/chunks/de-CnnxBwh7.js} +16 -0
- package/dist/cdn/chunks/{de-D7WbpFBR.js.map → de-CnnxBwh7.js.map} +1 -1
- package/dist/{de-Bw6fB5JU.js → cdn/chunks/de-uVoSP1xF.js} +2 -9
- package/dist/cdn/chunks/de-uVoSP1xF.js.map +1 -0
- package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js +8 -0
- package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js.map +1 -0
- package/dist/{en-BrZ0uGK2.js → cdn/chunks/en-5gW-bYy2.js} +16 -0
- package/dist/cdn/chunks/{en-BrZ0uGK2.js.map → en-5gW-bYy2.js.map} +1 -1
- package/dist/{en-DAdHJz7h.js → cdn/chunks/en-CjhsJxb-.js} +2 -9
- package/dist/cdn/chunks/en-CjhsJxb-.js.map +1 -0
- package/dist/{es-tLSLysPs.js → cdn/chunks/es-sQ9SdI0l.js} +16 -0
- package/dist/cdn/chunks/{es-tLSLysPs.js.map → es-sQ9SdI0l.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-ZX2oarW6.js → extensions-C49c51P1.js} +3 -3
- package/dist/cdn/chunks/{extensions-ZX2oarW6.js.map → extensions-C49c51P1.js.map} +1 -1
- package/dist/cdn/chunks/fr-DBZ5w21C.js +624 -0
- package/dist/cdn/chunks/fr-DBZ5w21C.js.map +1 -0
- package/dist/cdn/chunks/fr-Dswns199.js +89 -0
- package/dist/cdn/chunks/fr-Dswns199.js.map +1 -0
- package/dist/cdn/chunks/nl-CbcPJlrL.js +89 -0
- package/dist/cdn/chunks/nl-CbcPJlrL.js.map +1 -0
- package/dist/cdn/chunks/nl-DOL7Fnfo.js +624 -0
- package/dist/cdn/chunks/nl-DOL7Fnfo.js.map +1 -0
- package/dist/{pt-BR-w2sGzHNX.js → cdn/chunks/pt-BR-CTzHTqJD.js} +2 -9
- package/dist/cdn/chunks/pt-BR-CTzHTqJD.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-BWFokdTU.js → pt-BR-DRCdHX1d.js} +15 -1
- package/dist/cdn/chunks/{pt-BR-BWFokdTU.js.map → pt-BR-DRCdHX1d.js.map} +1 -1
- package/dist/cdn/chunks/{src-D6F_3XkE.js → src-CzoMNRq4.js} +19 -17
- package/dist/cdn/chunks/{src-D6F_3XkE.js.map → src-CzoMNRq4.js.map} +1 -1
- package/dist/cdn/chunks/{src-BuC_IHzN.js → src-SluTVSz_.js} +2 -2
- package/dist/cdn/chunks/{src-BuC_IHzN.js.map → src-SluTVSz_.js.map} +1 -1
- package/dist/cdn/chunks/{styles-DMOEiSX9.js → styles-BbfU2w9R.js} +617 -585
- package/dist/cdn/chunks/styles-BbfU2w9R.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BMZ-OENR.js → tiptap-DUTbZTeR.js} +5 -5
- package/dist/cdn/chunks/{tiptap-BMZ-OENR.js.map → tiptap-DUTbZTeR.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-BA6mspzD.js → useEditorCore-CzMhD6Gd.js} +3 -3
- package/dist/cdn/chunks/{useEditorCore-BA6mspzD.js.map → useEditorCore-CzMhD6Gd.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +164 -145
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-Du7mnkz2.js → cloud-CeZPgo1V.js} +41 -39
- package/dist/{cdn/chunks/de-D7WbpFBR.js → de-CnnxBwh7.js} +14 -2
- package/dist/{cdn/chunks/de-Bw6fB5JU.js → de-uVoSP1xF.js} +0 -11
- package/dist/{dist-CDO52Rxy.js → dist-3DHaYEiT.js} +2 -2
- package/dist/{dist-BEpCh2mG.js → dist-3HenmYIg.js} +1 -1
- package/dist/{dist-CrjzhIxB.js → dist-BCnJcAQc.js} +2 -2
- package/dist/{dist-BgPYC_8-.js → dist-B_etKYyh.js} +5 -5
- package/dist/{dist-CBzCU-a-.js → dist-CL_CfQ3Q.js} +2 -2
- package/dist/dist-CcQLJeWV.js +5 -0
- package/dist/{dist-CuXha2_7.js → dist-CclnU_v0.js} +2 -2
- package/dist/{dist-BkM8A17N.js → dist-DKWoZJAV.js} +2 -2
- package/dist/{dist-DYClLqy8.js → dist-DOtLGnLr.js} +2 -2
- package/dist/dist-DerdmERj.js +5 -0
- package/dist/{dist-BuNDAAVp.js → dist-Ih7ejWzn.js} +2 -2
- package/dist/{dist-CtcgoC_R.js → dist-bivrM-nS.js} +2 -2
- package/dist/emailFrameWidth-BmFCN2dp.js +6 -0
- package/dist/{cdn/chunks/en-BrZ0uGK2.js → en-5gW-bYy2.js} +14 -2
- package/dist/{cdn/chunks/en-DAdHJz7h.js → en-CjhsJxb-.js} +0 -11
- package/dist/{cdn/chunks/es-tLSLysPs.js → es-sQ9SdI0l.js} +14 -2
- package/dist/{extensions-ClY5Sh7S.js → extensions-3870a_3R.js} +3 -3
- package/dist/fr-DBZ5w21C.js +622 -0
- package/dist/index.d.ts +74 -0
- package/dist/nl-DOL7Fnfo.js +622 -0
- package/dist/{cdn/chunks/pt-BR-w2sGzHNX.js → pt-BR-CTzHTqJD.js} +0 -11
- package/dist/{pt-BR-BWFokdTU.js → pt-BR-DRCdHX1d.js} +14 -0
- package/dist/style.css +1 -1
- package/dist/{styles-PcOPXvLO.js → styles-BWTIgN5L.js} +672 -673
- package/dist/templatical-editor.js +128 -108
- package/dist/{useEditorCore-CT1slufs.js → useEditorCore-CuMMIfiS.js} +2 -2
- package/package.json +20 -20
- package/dist/TestEmailModal-DL2O1H8M.js +0 -95
- package/dist/cdn/chunks/CloudEditor-C0Y4RD4c.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-Bb3fdUEZ.js.map +0 -1
- package/dist/cdn/chunks/SavedBlockPreviewCanvas-DZOMgNsz.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CeUWcPv0.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-BJTDxFHh.js +0 -96
- package/dist/cdn/chunks/TestEmailModal-BJTDxFHh.js.map +0 -1
- package/dist/cdn/chunks/cloud-BJlbXGTJ.js.map +0 -1
- package/dist/cdn/chunks/de-Bw6fB5JU.js.map +0 -1
- package/dist/cdn/chunks/en-DAdHJz7h.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-w2sGzHNX.js.map +0 -1
- package/dist/cdn/chunks/styles-DMOEiSX9.js.map +0 -1
- package/dist/dist-CweLDZrs.js +0 -5
- package/dist/dist-DOsdqAEZ.js +0 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as e, F as t, G as n, H as r, J as i, K as a, L as o, M as s, N as c, O as l, P as u, T as d, V as f, Y as p, Z as m, b as h, c as g, ct as _, f as v, g as y, h as b, it as x, l as S, m as C, n as w, o as T, ot as E, p as D, s as O, st as k, t as A, u as j, v as M, x as N, y as P, z as F } from "./draggable-D840DIZB.js";
|
|
2
2
|
import { A as I, F as L, c as R, h as z, i as B, m as V, n as ee, o as te, r as H, s as ne, v as U } from "./src-BKI1x1k7.js";
|
|
3
|
-
import { A as re, C as ie, F as ae, I as oe, N as se, O as ce, _ as le, a as ue, c as de, d as fe, f as pe, g as me, h as he, i as ge, j as _e, k as ve, l as ye, m as be, n as xe, o as Se, p as Ce, r as we, s as Te, v as Ee, y as De } from "./useEditorCore-
|
|
3
|
+
import { A as re, C as ie, F as ae, I as oe, N as se, O as ce, _ as le, a as ue, c as de, d as fe, f as pe, g as me, h as he, i as ge, j as _e, k as ve, l as ye, m as be, n as xe, o as Se, p as Ce, r as we, s as Te, v as Ee, y as De } from "./useEditorCore-CzMhD6Gd.js";
|
|
4
4
|
import { _ as Oe, d as ke } from "./dist-CiBEt0VR.js";
|
|
5
5
|
import { A as Ae, B as je, D as Me, I as Ne, L as Pe, M as Fe, O as Ie, P as Le, R as Re, _ as ze, a as Be, d as Ve, f as He, h as Ue, l as We, m as Ge, n as Ke, o as qe, p as Je, s as Ye, w as Xe, z as Ze } from "./keys-D7kUmfpE.js";
|
|
6
6
|
import { t as W } from "./useI18n-8Wd7G-cq.js";
|
|
@@ -10,14 +10,15 @@ import { t as Lt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
|
10
10
|
import { t as Rt } from "./useCloudI18n-BjNENqkM.js";
|
|
11
11
|
import { t as zt } from "./useMergeTag-C7G31KV-.js";
|
|
12
12
|
import { t as Bt } from "./useAliveFlag-aanU8uqB.js";
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import { n as Yt,
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
13
|
+
import { n as Vt, t as Ht } from "./emailFrameWidth-BmFCN2dp.js";
|
|
14
|
+
import { t as Ut } from "./readableTextColor-f8Kykfnh.js";
|
|
15
|
+
import { t as Wt } from "./blockTypeIcons-etMMQoVv.js";
|
|
16
|
+
import { _ as Gt, f as K, g as Kt, h as q, i as qt, l as Jt, m as J, n as Yt, p as Y, t as X, u as Xt } from "./ColorPicker-DZSzZ5ZP.js";
|
|
17
|
+
import { n as Zt, r as Qt } from "./MergeTagSuggestion-BM349_QH.js";
|
|
18
|
+
import { i as Z, n as Q, r as $t, t as en } from "./NumberWithSuffix-CjlVNIEe.js";
|
|
19
|
+
import { t as tn } from "./TplModal-BN53d9Se.js";
|
|
19
20
|
//#region src/composables/useSavedBlocksFeature.ts
|
|
20
|
-
function
|
|
21
|
+
function nn(e) {
|
|
21
22
|
let { provider: t, editor: n } = e, r = ae({
|
|
22
23
|
provider: t,
|
|
23
24
|
onError: e.onError
|
|
@@ -98,8 +99,101 @@ function en(e) {
|
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
101
|
//#endregion
|
|
102
|
+
//#region src/utils/toMjml.ts
|
|
103
|
+
async function rn() {
|
|
104
|
+
try {
|
|
105
|
+
return await import("./src-SluTVSz_.js");
|
|
106
|
+
} catch {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
async function an(e) {
|
|
111
|
+
let t = await rn();
|
|
112
|
+
if (!t) throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
|
|
113
|
+
let n = e.getCustomBlockStylesheet;
|
|
114
|
+
return t.renderToMjml(e.getContent(), {
|
|
115
|
+
renderCustomBlock: e.renderCustomBlock,
|
|
116
|
+
...n ? { getCustomBlockStylesheet: (e) => n(e) } : {}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/composables/useTestEmailFeature.ts
|
|
121
|
+
var on = 1200;
|
|
122
|
+
function sn(e) {
|
|
123
|
+
let { provider: t } = e, n = m(!1), r = m(!1), a = m(!1), o = m(null), s = null, c = !1;
|
|
124
|
+
function l() {
|
|
125
|
+
s !== null && (clearTimeout(s), s = null);
|
|
126
|
+
}
|
|
127
|
+
i(l);
|
|
128
|
+
let u = v(() => t.allowedRecipients), d = v(() => {
|
|
129
|
+
let e = t.defaultRecipient;
|
|
130
|
+
if (e === void 0) return;
|
|
131
|
+
let n = u.value;
|
|
132
|
+
if (!(n && !n.includes(e))) return e;
|
|
133
|
+
}), f = v(() => u.value?.length === 0 ? !1 : e.isAvailable?.() ?? !0);
|
|
134
|
+
function p() {
|
|
135
|
+
f.value && (o.value = null, a.value = !1, l(), n.value = !0);
|
|
136
|
+
}
|
|
137
|
+
function h() {
|
|
138
|
+
l(), n.value = !1, a.value = !1;
|
|
139
|
+
}
|
|
140
|
+
async function g() {
|
|
141
|
+
if (!(!t.includeMjml || !e.renderMjml)) try {
|
|
142
|
+
return await e.renderMjml();
|
|
143
|
+
} catch (e) {
|
|
144
|
+
if (await rn() === null) {
|
|
145
|
+
c || (c = !0, _e.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
throw e;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
async function _(n) {
|
|
152
|
+
if (r.value) return;
|
|
153
|
+
let i = u.value;
|
|
154
|
+
if (i && !i.includes(n)) {
|
|
155
|
+
o.value = { kind: "recipientNotAllowed" };
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
r.value = !0, o.value = null;
|
|
159
|
+
try {
|
|
160
|
+
let r = await g();
|
|
161
|
+
await t.send({
|
|
162
|
+
recipient: n,
|
|
163
|
+
content: e.getContent(),
|
|
164
|
+
...r === void 0 ? {} : { mjml: r },
|
|
165
|
+
...i === void 0 ? {} : { allowedRecipients: i }
|
|
166
|
+
}), a.value = !0, s = setTimeout(h, on);
|
|
167
|
+
} catch (t) {
|
|
168
|
+
let n = t instanceof Error ? t : Error(String(t));
|
|
169
|
+
o.value = {
|
|
170
|
+
kind: "provider",
|
|
171
|
+
message: n.message
|
|
172
|
+
}, e.onError?.(n);
|
|
173
|
+
} finally {
|
|
174
|
+
r.value = !1;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return {
|
|
178
|
+
isModalOpen: n,
|
|
179
|
+
open: p,
|
|
180
|
+
close: h,
|
|
181
|
+
isSending: r,
|
|
182
|
+
justSent: a,
|
|
183
|
+
error: o,
|
|
184
|
+
send: _,
|
|
185
|
+
allowedRecipients: u,
|
|
186
|
+
defaultRecipient: d,
|
|
187
|
+
isAvailable: f,
|
|
188
|
+
capability: {
|
|
189
|
+
open: p,
|
|
190
|
+
isAvailable: f
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
//#endregion
|
|
101
195
|
//#region src/utils/resolveLintOptions.ts
|
|
102
|
-
function
|
|
196
|
+
function cn(e) {
|
|
103
197
|
return {
|
|
104
198
|
...e.lint,
|
|
105
199
|
locale: e.locale
|
|
@@ -107,19 +201,19 @@ function tn(e) {
|
|
|
107
201
|
}
|
|
108
202
|
//#endregion
|
|
109
203
|
//#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
110
|
-
var
|
|
204
|
+
var ln = ["aria-label"], un = {
|
|
111
205
|
key: 0,
|
|
112
206
|
class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
|
|
113
|
-
},
|
|
207
|
+
}, dn = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, fn = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, pn = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, mn = {
|
|
114
208
|
key: 0,
|
|
115
209
|
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)]"
|
|
116
|
-
},
|
|
210
|
+
}, hn = {
|
|
117
211
|
key: 1,
|
|
118
212
|
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)]"
|
|
119
|
-
},
|
|
213
|
+
}, gn = { class: "tpl:relative" }, _n = {
|
|
120
214
|
class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
|
|
121
215
|
style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
|
|
122
|
-
},
|
|
216
|
+
}, vn = 96, yn = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
|
|
123
217
|
__name: "Canvas",
|
|
124
218
|
props: {
|
|
125
219
|
viewport: {},
|
|
@@ -157,12 +251,7 @@ var nn = ["aria-label"], rn = {
|
|
|
157
251
|
blocks: e
|
|
158
252
|
});
|
|
159
253
|
}
|
|
160
|
-
}), F = v(() =>
|
|
161
|
-
switch (i.viewport) {
|
|
162
|
-
case "mobile": return 375;
|
|
163
|
-
default: return i.content.settings.width;
|
|
164
|
-
}
|
|
165
|
-
}), I = v(() => F.value + fn * 2), L = v(() => fe(i.content.settings)), R = v(() => N.value.length === 0 && !i.previewMode), z = m(0), B = v(() => R.value && z.value > 0);
|
|
254
|
+
}), F = v(() => Vt(i.content.settings, i.viewport)), I = v(() => F.value + vn * 2), L = v(() => fe(i.content.settings)), R = v(() => N.value.length === 0 && !i.previewMode), z = m(0), B = v(() => R.value && z.value > 0);
|
|
166
255
|
function V() {
|
|
167
256
|
R.value && (z.value += 1);
|
|
168
257
|
}
|
|
@@ -205,7 +294,7 @@ var nn = ["aria-label"], rn = {
|
|
|
205
294
|
style: k({
|
|
206
295
|
width: `${I.value}px`,
|
|
207
296
|
boxShadow: e.darkMode ? "none" : "var(--tpl-shadow-xl)",
|
|
208
|
-
transition:
|
|
297
|
+
transition: x(Ht)
|
|
209
298
|
})
|
|
210
299
|
}, [D("div", {
|
|
211
300
|
class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
|
|
@@ -221,7 +310,7 @@ var nn = ["aria-label"], rn = {
|
|
|
221
310
|
class: "tpl-canvas-wrapper tpl:relative",
|
|
222
311
|
style: k({
|
|
223
312
|
width: `${F.value}px`,
|
|
224
|
-
transition:
|
|
313
|
+
transition: x(Ht)
|
|
225
314
|
})
|
|
226
315
|
}, [D("div", {
|
|
227
316
|
class: E(["tpl-canvas tpl:relative tpl:rounded-lg", {
|
|
@@ -253,14 +342,14 @@ var nn = ["aria-label"], rn = {
|
|
|
253
342
|
onDragleave: ee,
|
|
254
343
|
onDrop: te
|
|
255
344
|
}, {
|
|
256
|
-
default: f(() => [R.value ? (s(), y("div",
|
|
257
|
-
D("div",
|
|
345
|
+
default: f(() => [R.value ? (s(), y("div", un, [
|
|
346
|
+
D("div", dn, [P(x(rt), {
|
|
258
347
|
size: 48,
|
|
259
348
|
"stroke-width": 1
|
|
260
349
|
})]),
|
|
261
|
-
D("p",
|
|
262
|
-
D("p",
|
|
263
|
-
w.value && x(l) ? (s(), y("p",
|
|
350
|
+
D("p", fn, _(x(c).canvas.noBlocks), 1),
|
|
351
|
+
D("p", pn, _(x(c).canvas.dragHint), 1),
|
|
352
|
+
w.value && x(l) ? (s(), y("p", mn, [
|
|
264
353
|
M(_(x(c).canvas.aiHintChat) + " ", 1),
|
|
265
354
|
D("button", {
|
|
266
355
|
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)]",
|
|
@@ -271,7 +360,7 @@ var nn = ["aria-label"], rn = {
|
|
|
271
360
|
}), M(" " + _(x(l).aiMenu.aiAssistant), 1)]),
|
|
272
361
|
M(" " + _(x(c).canvas.aiHintChatSuffix), 1)
|
|
273
362
|
])) : b("", !0),
|
|
274
|
-
T.value && x(l) ? (s(), y("p",
|
|
363
|
+
T.value && x(l) ? (s(), y("p", hn, [
|
|
275
364
|
M(_(x(c).canvas.aiHintDesign) + " ", 1),
|
|
276
365
|
D("button", {
|
|
277
366
|
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)]",
|
|
@@ -285,7 +374,7 @@ var nn = ["aria-label"], rn = {
|
|
|
285
374
|
])) : b("", !0), (s(!0), y(j, null, u(N.value, (t) => r((s(), y("div", {
|
|
286
375
|
key: t.id,
|
|
287
376
|
class: "tpl-block-item"
|
|
288
|
-
}, [D("div",
|
|
377
|
+
}, [D("div", gn, [U(t.id) ? (s(), y("div", {
|
|
289
378
|
key: 0,
|
|
290
379
|
class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
|
|
291
380
|
style: k({
|
|
@@ -296,9 +385,9 @@ var nn = ["aria-label"], rn = {
|
|
|
296
385
|
class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:flex tpl:-translate-x-1/2 tpl:-translate-y-full tpl:items-center tpl:gap-1 tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
|
|
297
386
|
style: k({
|
|
298
387
|
backgroundColor: U(t.id).color,
|
|
299
|
-
color: x(
|
|
388
|
+
color: x(Ut)(U(t.id).color)
|
|
300
389
|
})
|
|
301
|
-
}, [D("span",
|
|
390
|
+
}, [D("span", _n, _(U(t.id).name.charAt(0)), 1), M(" " + _(U(t.id).name), 1)], 4)], 4)) : b("", !0), P(ye, {
|
|
302
391
|
block: t,
|
|
303
392
|
"is-selected": !e.previewMode && !ae.value && e.selectedBlockId === t.id && !U(t.id),
|
|
304
393
|
picked: ie(t.id),
|
|
@@ -331,9 +420,9 @@ var nn = ["aria-label"], rn = {
|
|
|
331
420
|
"modelValue",
|
|
332
421
|
"disabled",
|
|
333
422
|
"class"
|
|
334
|
-
])], 6)], 12,
|
|
423
|
+
])], 6)], 12, ln)], 4));
|
|
335
424
|
}
|
|
336
|
-
}), [["__scopeId", "data-v-
|
|
425
|
+
}), [["__scopeId", "data-v-b0046c4c"]]), bn = N({
|
|
337
426
|
name: "CustomBlockStylesheets",
|
|
338
427
|
setup() {
|
|
339
428
|
let t = d(Je, null);
|
|
@@ -346,7 +435,7 @@ var nn = ["aria-label"], rn = {
|
|
|
346
435
|
});
|
|
347
436
|
//#endregion
|
|
348
437
|
//#region src/utils/resolvePaletteBlocks.ts
|
|
349
|
-
function
|
|
438
|
+
function xn(e, t) {
|
|
350
439
|
if (!t || t.length === 0) return {
|
|
351
440
|
items: e,
|
|
352
441
|
unknown: []
|
|
@@ -365,21 +454,21 @@ function hn(e, t) {
|
|
|
365
454
|
}
|
|
366
455
|
//#endregion
|
|
367
456
|
//#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
368
|
-
var
|
|
457
|
+
var Sn = ["aria-label"], Cn = {
|
|
369
458
|
key: 0,
|
|
370
459
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
371
|
-
},
|
|
460
|
+
}, wn = ["aria-label"], Tn = {
|
|
372
461
|
key: 0,
|
|
373
462
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
374
|
-
},
|
|
463
|
+
}, En = [
|
|
375
464
|
"data-palette-type",
|
|
376
465
|
"aria-label",
|
|
377
466
|
"onClick",
|
|
378
467
|
"onKeydown"
|
|
379
|
-
],
|
|
468
|
+
], Dn = { 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" }, On = {
|
|
380
469
|
key: 0,
|
|
381
470
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
382
|
-
},
|
|
471
|
+
}, kn = /* @__PURE__ */ N({
|
|
383
472
|
__name: "Sidebar",
|
|
384
473
|
setup(e) {
|
|
385
474
|
let { t, format: n } = W(), r = d(He, []), i = d(Fe, void 0), a = d(Be, void 0), c = d(Ue, null), l = d(Ye, {}), p = v(() => l.savedBlocks?.isAvailable.value === !0), h = m(!1), g = m(!1);
|
|
@@ -419,7 +508,7 @@ var gn = ["aria-label"], _n = {
|
|
|
419
508
|
label: e.name,
|
|
420
509
|
isCustom: !0,
|
|
421
510
|
icon: e.icon
|
|
422
|
-
}))), N = v(() => [...O.value, ...M.value]), I = v(() =>
|
|
511
|
+
}))), N = v(() => [...O.value, ...M.value]), I = v(() => xn(N.value, i)), L = v(() => I.value.items), R = /* @__PURE__ */ new Set();
|
|
423
512
|
F(() => I.value.unknown, (e) => {
|
|
424
513
|
for (let t of e) R.has(t) || (R.add(t), _e.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.`));
|
|
425
514
|
}, { immediate: !0 });
|
|
@@ -452,7 +541,7 @@ var gn = ["aria-label"], _n = {
|
|
|
452
541
|
onMouseleave: S,
|
|
453
542
|
onFocusin: r[2] ||= (e) => h.value = !0,
|
|
454
543
|
onFocusout: r[3] ||= (e) => h.value = !1
|
|
455
|
-
}, [p.value ? (s(), y("div",
|
|
544
|
+
}, [p.value ? (s(), y("div", Cn, [D("button", {
|
|
456
545
|
type: "button",
|
|
457
546
|
"aria-label": x(t).sidebarNav.browseSavedBlocks,
|
|
458
547
|
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)]",
|
|
@@ -462,7 +551,7 @@ var gn = ["aria-label"], _n = {
|
|
|
462
551
|
size: 20,
|
|
463
552
|
"stroke-width": 1.5,
|
|
464
553
|
class: "tpl:shrink-0"
|
|
465
|
-
}), h.value ? (s(), y("span",
|
|
554
|
+
}), h.value ? (s(), y("span", Tn, _(x(t).savedBlocks.title), 1)) : b("", !0)], 12, wn)])) : b("", !0), P(x(A), {
|
|
466
555
|
"model-value": L.value,
|
|
467
556
|
group: {
|
|
468
557
|
name: "blocks",
|
|
@@ -486,7 +575,7 @@ var gn = ["aria-label"], _n = {
|
|
|
486
575
|
style: k({ justifyContent: h.value ? "flex-start" : "center" }),
|
|
487
576
|
onClick: (t) => V(e),
|
|
488
577
|
onKeydown: (t) => ee(t, e)
|
|
489
|
-
}, [D("div",
|
|
578
|
+
}, [D("div", Dn, [x(Wt)[e.type] ? (s(), C(o(x(Wt)[e.type]), {
|
|
490
579
|
key: 0,
|
|
491
580
|
size: 20,
|
|
492
581
|
"stroke-width": 1.5
|
|
@@ -494,14 +583,14 @@ var gn = ["aria-label"], _n = {
|
|
|
494
583
|
key: 1,
|
|
495
584
|
icon: e.icon,
|
|
496
585
|
size: 20
|
|
497
|
-
}, null, 8, ["icon"])) : b("", !0)]), h.value ? (s(), y("span",
|
|
586
|
+
}, null, 8, ["icon"])) : b("", !0)]), h.value ? (s(), y("span", On, _(e.label), 1)) : b("", !0)], 44, En))), 128))]),
|
|
498
587
|
_: 1
|
|
499
|
-
}, 8, ["model-value"])], 44,
|
|
588
|
+
}, 8, ["model-value"])], 44, Sn));
|
|
500
589
|
}
|
|
501
590
|
});
|
|
502
591
|
//#endregion
|
|
503
592
|
//#region src/utils/mergeTagTrigger.ts
|
|
504
|
-
function
|
|
593
|
+
function An(e, t, n, r) {
|
|
505
594
|
if (!n) return null;
|
|
506
595
|
let i = e.slice(0, t), a = i.lastIndexOf(n);
|
|
507
596
|
if (a === -1) return null;
|
|
@@ -514,8 +603,8 @@ function wn(e, t, n, r) {
|
|
|
514
603
|
}
|
|
515
604
|
//#endregion
|
|
516
605
|
//#region src/utils/textFieldCaret.ts
|
|
517
|
-
var
|
|
518
|
-
function
|
|
606
|
+
var jn = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
|
|
607
|
+
function Mn(e, t, n) {
|
|
519
608
|
return {
|
|
520
609
|
left: e,
|
|
521
610
|
top: t,
|
|
@@ -528,7 +617,7 @@ function En(e, t, n) {
|
|
|
528
617
|
toJSON: () => ({})
|
|
529
618
|
};
|
|
530
619
|
}
|
|
531
|
-
function
|
|
620
|
+
function Nn(e, t) {
|
|
532
621
|
let n = e.ownerDocument, r = n.defaultView;
|
|
533
622
|
if (!r) return null;
|
|
534
623
|
let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
|
|
@@ -536,7 +625,7 @@ function Dn(e, t) {
|
|
|
536
625
|
let s = o.style;
|
|
537
626
|
s.position = "absolute", s.visibility = "hidden", s.top = "0", s.left = "0", s.overflow = "hidden", s.whiteSpace = i ? "pre" : "pre-wrap", s.wordWrap = i ? "normal" : "break-word";
|
|
538
627
|
let c = s, l = a;
|
|
539
|
-
for (let e of
|
|
628
|
+
for (let e of jn) c[e] = l[e];
|
|
540
629
|
i && (s.width = "auto", s.whiteSpace = "pre");
|
|
541
630
|
let u = e.value, d = u.slice(0, t);
|
|
542
631
|
i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
|
|
@@ -545,26 +634,26 @@ function Dn(e, t) {
|
|
|
545
634
|
let p = f.offsetTop, m = f.offsetLeft;
|
|
546
635
|
n.body.removeChild(o);
|
|
547
636
|
let h = e.getBoundingClientRect(), g = parseFloat(a.borderTopWidth) || 0, _ = parseFloat(a.borderLeftWidth) || 0, v = parseFloat(a.lineHeight) || parseFloat(a.fontSize) || 0, y = h.left + m + _ - e.scrollLeft;
|
|
548
|
-
if (i) return
|
|
637
|
+
if (i) return Mn(y, h.top, h.bottom);
|
|
549
638
|
let b = h.top + p + g - e.scrollTop;
|
|
550
|
-
return
|
|
639
|
+
return Mn(y, b, b + v);
|
|
551
640
|
}
|
|
552
641
|
//#endregion
|
|
553
642
|
//#region src/composables/useMergeTagAutocomplete.ts
|
|
554
|
-
var
|
|
643
|
+
var Pn = /* @__PURE__ */ new Set([
|
|
555
644
|
"ArrowLeft",
|
|
556
645
|
"ArrowRight",
|
|
557
646
|
"Home",
|
|
558
647
|
"End"
|
|
559
648
|
]);
|
|
560
|
-
function
|
|
561
|
-
let { elementRef: t, modelValue: r, emit: o, mergeTags: s, syntax: c, enabled: u, onInsert: f } = e, p = ne(c), m = te(c), h = u && p !== null && s.length > 0, g = d(Re, null), _ =
|
|
649
|
+
function Fn(e) {
|
|
650
|
+
let { elementRef: t, modelValue: r, emit: o, mergeTags: s, syntax: c, enabled: u, onInsert: f } = e, p = ne(c), m = te(c), h = u && p !== null && s.length > 0, g = d(Re, null), _ = Zt((a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", $e()), v = !1;
|
|
562
651
|
n() && i(() => {
|
|
563
652
|
v = !0, _.close();
|
|
564
653
|
});
|
|
565
654
|
function y(e) {
|
|
566
655
|
let t = e.value ?? "";
|
|
567
|
-
return
|
|
656
|
+
return An(t, e.selectionStart ?? t.length, p, m);
|
|
568
657
|
}
|
|
569
658
|
function b(e, n, i) {
|
|
570
659
|
let a = e.value ?? r(), s = a.slice(n.caret), c = m && s.startsWith(m) ? m.length : 0, u = a.slice(0, n.triggerStart), d = a.slice(n.caret + c), p = u + i.value + d, h = u.length + i.value.length;
|
|
@@ -586,7 +675,7 @@ function kn(e) {
|
|
|
586
675
|
_.close();
|
|
587
676
|
return;
|
|
588
677
|
}
|
|
589
|
-
let r =
|
|
678
|
+
let r = Qt(s, n.query), i = () => Nn(e, n.triggerStart), a = (t) => b(e, n, t);
|
|
590
679
|
_.isOpen() ? _.update({
|
|
591
680
|
items: r,
|
|
592
681
|
getRect: i,
|
|
@@ -599,7 +688,7 @@ function kn(e) {
|
|
|
599
688
|
});
|
|
600
689
|
}
|
|
601
690
|
function S(e) {
|
|
602
|
-
return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) :
|
|
691
|
+
return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : Pn.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
|
|
603
692
|
}
|
|
604
693
|
return {
|
|
605
694
|
available: h,
|
|
@@ -611,12 +700,12 @@ function kn(e) {
|
|
|
611
700
|
}
|
|
612
701
|
//#endregion
|
|
613
702
|
//#region src/composables/useMergeTagField.ts
|
|
614
|
-
function
|
|
703
|
+
function In(e) {
|
|
615
704
|
let { modelValue: t, emit: r, elementRef: a } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: u, getMergeTagLabel: d, requestMergeTag: f, syntax: p, autocomplete: h } = zt(), { canInsertLogicTag: g, isRequesting: _, requestLogicTag: y } = ie(), b = m(!1), x = !1, S = !1;
|
|
616
705
|
n() && i(() => {
|
|
617
706
|
S = !0;
|
|
618
707
|
});
|
|
619
|
-
let C =
|
|
708
|
+
let C = Fn({
|
|
620
709
|
elementRef: a,
|
|
621
710
|
modelValue: t,
|
|
622
711
|
emit: r,
|
|
@@ -738,10 +827,10 @@ function An(e) {
|
|
|
738
827
|
}
|
|
739
828
|
//#endregion
|
|
740
829
|
//#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
|
|
741
|
-
var
|
|
830
|
+
var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip"], Bn = {
|
|
742
831
|
key: 2,
|
|
743
832
|
class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
744
|
-
},
|
|
833
|
+
}, Vn = ["aria-label", "title"], Hn = /* @__PURE__ */ N({
|
|
745
834
|
__name: "MergeTagSegments",
|
|
746
835
|
props: {
|
|
747
836
|
segments: {},
|
|
@@ -769,7 +858,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
769
858
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
770
859
|
color: "var(--tpl-primary)"
|
|
771
860
|
}
|
|
772
|
-
}, _(e.label), 9,
|
|
861
|
+
}, _(e.label), 9, Rn)) : e.type === "logicMergeTag" ? (s(), y("span", {
|
|
773
862
|
key: 1,
|
|
774
863
|
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",
|
|
775
864
|
"data-tooltip": e.value,
|
|
@@ -778,7 +867,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
778
867
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
779
868
|
color: "var(--tpl-primary)"
|
|
780
869
|
}
|
|
781
|
-
}, _(e.keyword), 9,
|
|
870
|
+
}, _(e.keyword), 9, zn)) : (s(), y("span", Bn, _(e.value), 1))], 64))), 128)), D("button", {
|
|
782
871
|
type: "button",
|
|
783
872
|
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",
|
|
784
873
|
"aria-label": x(r).mergeTag.remove,
|
|
@@ -787,13 +876,13 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
787
876
|
}, [P(x(Et), {
|
|
788
877
|
size: 12,
|
|
789
878
|
"stroke-width": 2.5
|
|
790
|
-
})], 8,
|
|
879
|
+
})], 8, Vn)], 42, Ln));
|
|
791
880
|
}
|
|
792
|
-
}),
|
|
881
|
+
}), Un = [
|
|
793
882
|
"aria-label",
|
|
794
883
|
"title",
|
|
795
884
|
"disabled"
|
|
796
|
-
],
|
|
885
|
+
], Wn = "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__ */ N({
|
|
797
886
|
__name: "MergeTagInsertButton",
|
|
798
887
|
props: { disabled: { type: Boolean } },
|
|
799
888
|
emits: ["insert"],
|
|
@@ -801,7 +890,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
801
890
|
let { t } = W();
|
|
802
891
|
return (n, r) => (s(), y("button", {
|
|
803
892
|
type: "button",
|
|
804
|
-
class: E([
|
|
893
|
+
class: E([Wn, "tpl:mt-1.5"]),
|
|
805
894
|
"aria-label": x(t).mergeTag.insert,
|
|
806
895
|
title: x(t).mergeTag.insert,
|
|
807
896
|
disabled: e.disabled,
|
|
@@ -810,13 +899,13 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
810
899
|
}, [P(x(dt), {
|
|
811
900
|
size: 12,
|
|
812
901
|
"stroke-width": 2
|
|
813
|
-
}), M(" " + _(x(t).mergeTag.insertShort), 1)], 42,
|
|
902
|
+
}), M(" " + _(x(t).mergeTag.insertShort), 1)], 42, Un));
|
|
814
903
|
}
|
|
815
|
-
}),
|
|
904
|
+
}), Kn = [
|
|
816
905
|
"aria-label",
|
|
817
906
|
"title",
|
|
818
907
|
"disabled"
|
|
819
|
-
],
|
|
908
|
+
], qn = "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)]", Jn = /* @__PURE__ */ N({
|
|
820
909
|
__name: "LogicTagInsertButton",
|
|
821
910
|
props: { disabled: { type: Boolean } },
|
|
822
911
|
emits: ["insert"],
|
|
@@ -824,7 +913,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
824
913
|
let { t } = W();
|
|
825
914
|
return (n, r) => (s(), y("button", {
|
|
826
915
|
type: "button",
|
|
827
|
-
class: E([
|
|
916
|
+
class: E([qn, "tpl:mt-1.5"]),
|
|
828
917
|
"aria-label": x(t).logicTag.insert,
|
|
829
918
|
title: x(t).logicTag.insert,
|
|
830
919
|
disabled: e.disabled,
|
|
@@ -834,19 +923,19 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
834
923
|
}, [P(x(st), {
|
|
835
924
|
size: 12,
|
|
836
925
|
"stroke-width": 2
|
|
837
|
-
}), M(" " + _(x(t).logicTag.insertShort), 1)], 42,
|
|
926
|
+
}), M(" " + _(x(t).logicTag.insertShort), 1)], 42, Kn));
|
|
838
927
|
}
|
|
839
|
-
}),
|
|
928
|
+
}), Yn = { key: 0 }, Xn = {
|
|
840
929
|
key: 0,
|
|
841
930
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
842
|
-
},
|
|
931
|
+
}, Zn = { key: 1 }, Qn = [
|
|
843
932
|
"value",
|
|
844
933
|
"placeholder",
|
|
845
934
|
"rows"
|
|
846
|
-
],
|
|
935
|
+
], $n = {
|
|
847
936
|
key: 0,
|
|
848
937
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
849
|
-
},
|
|
938
|
+
}, er = "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)]", tr = "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)]", nr = /* @__PURE__ */ N({
|
|
850
939
|
__name: "MergeTagTextarea",
|
|
851
940
|
props: {
|
|
852
941
|
modelValue: {},
|
|
@@ -855,32 +944,32 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
855
944
|
},
|
|
856
945
|
emits: ["update:modelValue"],
|
|
857
946
|
setup(e, { emit: t }) {
|
|
858
|
-
let n = e, r = t, i = m(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: l, canInsertLogicTag: u, isRequestingLogicTag: d, isEditing: f, startEditing: p, handleInput: h, handleKeydown: g, handleClick: _, handleBlur: v, clearValue: S, insertMergeTag: w, insertLogicTag: T } =
|
|
947
|
+
let n = e, r = t, i = m(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: l, canInsertLogicTag: u, isRequestingLogicTag: d, isEditing: f, startEditing: p, handleInput: h, handleKeydown: g, handleClick: _, handleBlur: v, clearValue: S, insertMergeTag: w, insertLogicTag: T } = In({
|
|
859
948
|
modelValue: () => n.modelValue,
|
|
860
949
|
emit: (e) => r("update:modelValue", e),
|
|
861
950
|
elementRef: i
|
|
862
951
|
});
|
|
863
|
-
return (t, n) => x(o) && !x(f) ? (s(), y("div",
|
|
952
|
+
return (t, n) => x(o) && !x(f) ? (s(), y("div", Yn, [P(Hn, {
|
|
864
953
|
segments: x(a),
|
|
865
|
-
"display-class":
|
|
954
|
+
"display-class": tr,
|
|
866
955
|
onEdit: x(p),
|
|
867
956
|
onClear: x(S)
|
|
868
957
|
}, null, 8, [
|
|
869
958
|
"segments",
|
|
870
959
|
"onEdit",
|
|
871
960
|
"onClear"
|
|
872
|
-
]), x(c) || x(u) ? (s(), y("div",
|
|
961
|
+
]), x(c) || x(u) ? (s(), y("div", Xn, [x(c) ? (s(), C(Gn, {
|
|
873
962
|
key: 0,
|
|
874
963
|
disabled: x(l),
|
|
875
964
|
onInsert: x(w)
|
|
876
|
-
}, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(
|
|
965
|
+
}, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Jn, {
|
|
877
966
|
key: 1,
|
|
878
967
|
disabled: x(d),
|
|
879
968
|
onInsert: x(T)
|
|
880
|
-
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div",
|
|
969
|
+
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", Zn, [D("textarea", {
|
|
881
970
|
ref_key: "textareaRef",
|
|
882
971
|
ref: i,
|
|
883
|
-
class: E(
|
|
972
|
+
class: E(er),
|
|
884
973
|
value: e.modelValue,
|
|
885
974
|
placeholder: e.placeholder,
|
|
886
975
|
rows: e.rows,
|
|
@@ -888,17 +977,17 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
888
977
|
onKeydown: n[1] ||= (...e) => x(g) && x(g)(...e),
|
|
889
978
|
onClick: n[2] ||= (...e) => x(_) && x(_)(...e),
|
|
890
979
|
onBlur: n[3] ||= (...e) => x(v) && x(v)(...e)
|
|
891
|
-
}, null, 40,
|
|
980
|
+
}, null, 40, Qn), x(c) || x(u) ? (s(), y("div", $n, [x(c) ? (s(), C(Gn, {
|
|
892
981
|
key: 0,
|
|
893
982
|
disabled: x(l),
|
|
894
983
|
onInsert: x(w)
|
|
895
|
-
}, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(
|
|
984
|
+
}, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Jn, {
|
|
896
985
|
key: 1,
|
|
897
986
|
disabled: x(d),
|
|
898
987
|
onInsert: x(T)
|
|
899
988
|
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)]));
|
|
900
989
|
}
|
|
901
|
-
}),
|
|
990
|
+
}), rr = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, ir = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, ar = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, or = { class: "tpl:mb-3.5" }, sr = { 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)]" }, cr = ["onClick"], lr = { class: "tpl:flex tpl:items-stretch" }, ur = ["value"], dr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, fr = { class: "tpl:mb-3.5" }, pr = { class: "tpl:mb-3.5" }, mr = { class: "tpl:mb-3.5" }, hr = { class: "tpl:mb-3.5" }, gr = ["value"], _r = ["value"], vr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, yr = ["value"], br = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, xr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Sr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Cr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, wr = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, Tr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Er = { 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)]" }, Dr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Or = { class: "tpl:mb-1 tpl:last:mb-0" }, kr = { class: "tpl:mb-1 tpl:last:mb-0" }, Ar = { class: "tpl:mb-1 tpl:last:mb-0" }, jr = 150, Mr = /* @__PURE__ */ N({
|
|
902
991
|
__name: "TemplateSettings",
|
|
903
992
|
props: { settings: {} },
|
|
904
993
|
emits: ["update"],
|
|
@@ -921,14 +1010,14 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
921
1010
|
label: "800px"
|
|
922
1011
|
}
|
|
923
1012
|
];
|
|
924
|
-
return (t, n) => (s(), y("aside",
|
|
925
|
-
D("div", { class: E(x(
|
|
926
|
-
D("div",
|
|
1013
|
+
return (t, n) => (s(), y("aside", rr, [D("div", ir, [
|
|
1014
|
+
D("div", { class: E(x(Xt)) }, [
|
|
1015
|
+
D("div", ar, [P(x(gt), {
|
|
927
1016
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
928
1017
|
size: 14,
|
|
929
1018
|
"stroke-width": 2
|
|
930
1019
|
}), D("span", null, _(x(i).templateSettings.layout), 1)]),
|
|
931
|
-
D("div",
|
|
1020
|
+
D("div", or, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.widthPreset), 3), D("div", sr, [(s(), y(j, null, u(l, (t) => D("button", {
|
|
932
1021
|
key: t.value,
|
|
933
1022
|
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)]",
|
|
934
1023
|
style: k({
|
|
@@ -937,38 +1026,38 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
937
1026
|
boxShadow: e.settings.width === t.value ? "var(--tpl-shadow)" : "none"
|
|
938
1027
|
}),
|
|
939
1028
|
onClick: (e) => r("update", { width: t.value })
|
|
940
|
-
}, _(t.label), 13,
|
|
941
|
-
D("div", null, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.customWidth), 3), D("div",
|
|
1029
|
+
}, _(t.label), 13, cr)), 64))])]),
|
|
1030
|
+
D("div", null, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.customWidth), 3), D("div", lr, [D("input", {
|
|
942
1031
|
type: "number",
|
|
943
1032
|
class: E(x(Y)),
|
|
944
1033
|
value: e.settings.width,
|
|
945
1034
|
min: "300",
|
|
946
1035
|
max: "900",
|
|
947
1036
|
onInput: n[0] ||= (e) => r("update", { width: Number(e.target.value) })
|
|
948
|
-
}, null, 42,
|
|
1037
|
+
}, null, 42, ur), D("span", { class: E(x(J)) }, "px", 2)])])
|
|
949
1038
|
], 2),
|
|
950
|
-
D("div", { class: E(x(
|
|
951
|
-
D("div",
|
|
1039
|
+
D("div", { class: E(x(Xt)) }, [
|
|
1040
|
+
D("div", dr, [P(x(ft), {
|
|
952
1041
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
953
1042
|
size: 14,
|
|
954
1043
|
"stroke-width": 2
|
|
955
1044
|
}), D("span", null, _(x(i).templateSettings.appearance), 1)]),
|
|
956
|
-
D("div",
|
|
1045
|
+
D("div", fr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.backgroundColor), 3), P(X, {
|
|
957
1046
|
"model-value": e.settings.backgroundColor,
|
|
958
|
-
placeholder: x(
|
|
1047
|
+
placeholder: x(Yt),
|
|
959
1048
|
"onUpdate:modelValue": n[1] ||= (e) => r("update", { backgroundColor: e })
|
|
960
1049
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
961
|
-
D("div",
|
|
1050
|
+
D("div", pr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.textColor), 3), P(X, {
|
|
962
1051
|
"model-value": e.settings.textColor ?? "",
|
|
963
1052
|
"seed-color": "#1a1a1a",
|
|
964
1053
|
"onUpdate:modelValue": n[2] ||= (e) => r("update", { textColor: e })
|
|
965
1054
|
}, null, 8, ["model-value"])]),
|
|
966
|
-
D("div",
|
|
1055
|
+
D("div", mr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.linkColor), 3), P(X, {
|
|
967
1056
|
"model-value": e.settings.linkColor ?? "",
|
|
968
1057
|
"seed-color": "#0066cc",
|
|
969
1058
|
"onUpdate:modelValue": n[3] ||= (e) => r("update", { linkColor: e || void 0 })
|
|
970
1059
|
}, null, 8, ["model-value"])]),
|
|
971
|
-
D("div",
|
|
1060
|
+
D("div", hr, [P(Z, {
|
|
972
1061
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
973
1062
|
"model-value": e.settings.linkUnderline,
|
|
974
1063
|
label: x(i).templateSettings.linkUnderline,
|
|
@@ -981,9 +1070,9 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
981
1070
|
}, [(s(!0), y(j, null, u(o.value, (e) => (s(), y("option", {
|
|
982
1071
|
key: e.value,
|
|
983
1072
|
value: e.value
|
|
984
|
-
}, _(e.label), 9,
|
|
1073
|
+
}, _(e.label), 9, _r))), 128))], 42, gr)])
|
|
985
1074
|
], 2),
|
|
986
|
-
D("div", { class: E(x(
|
|
1075
|
+
D("div", { class: E(x(Xt)) }, [D("div", vr, [P(x(Ct), {
|
|
987
1076
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
988
1077
|
size: 14,
|
|
989
1078
|
"stroke-width": 2
|
|
@@ -998,40 +1087,40 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
998
1087
|
autocapitalize: "off",
|
|
999
1088
|
autocomplete: "off",
|
|
1000
1089
|
onInput: n[6] ||= (e) => r("update", { locale: e.target.value.trim() || void 0 })
|
|
1001
|
-
}, null, 42,
|
|
1002
|
-
D("p",
|
|
1090
|
+
}, null, 42, yr),
|
|
1091
|
+
D("p", br, _(x(i).templateSettings.contentLocaleHint), 1)
|
|
1003
1092
|
])], 2),
|
|
1004
|
-
D("div", { class: E(x(
|
|
1093
|
+
D("div", { class: E(x(Xt)) }, [D("div", xr, [P(x(_t), {
|
|
1005
1094
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1006
1095
|
size: 14,
|
|
1007
1096
|
"stroke-width": 2
|
|
1008
|
-
}), D("span", null, _(x(i).templateSettings.preheaderText), 1)]), D("div", null, [P(
|
|
1097
|
+
}), D("span", null, _(x(i).templateSettings.preheaderText), 1)]), D("div", null, [P(nr, {
|
|
1009
1098
|
"model-value": e.settings.preheaderText ?? "",
|
|
1010
1099
|
placeholder: x(i).templateSettings.preheaderTextPlaceholder,
|
|
1011
1100
|
rows: 2,
|
|
1012
1101
|
"onUpdate:modelValue": n[7] ||= (e) => r("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
|
|
1013
|
-
}, null, 8, ["model-value", "placeholder"]), D("div",
|
|
1014
|
-
D("div",
|
|
1102
|
+
}, null, 8, ["model-value", "placeholder"]), D("div", Sr, [D("span", Cr, _(x(i).templateSettings.preheaderTextHint), 1), D("span", wr, _((e.settings.preheaderText ?? "").length) + "/" + _(jr), 1)])])], 2),
|
|
1103
|
+
D("div", Tr, [D("div", Er, [P(x(Nt), {
|
|
1015
1104
|
size: 14,
|
|
1016
1105
|
"stroke-width": 2
|
|
1017
|
-
}), D("span", null, _(x(i).templateSettings.tips), 1)]), D("ul",
|
|
1018
|
-
D("li",
|
|
1019
|
-
D("li",
|
|
1020
|
-
D("li",
|
|
1106
|
+
}), D("span", null, _(x(i).templateSettings.tips), 1)]), D("ul", Dr, [
|
|
1107
|
+
D("li", Or, _(x(i).templateSettings.tip1), 1),
|
|
1108
|
+
D("li", kr, _(x(i).templateSettings.tip2), 1),
|
|
1109
|
+
D("li", Ar, _(x(i).templateSettings.tip3), 1)
|
|
1021
1110
|
])])
|
|
1022
1111
|
])]));
|
|
1023
1112
|
}
|
|
1024
|
-
}),
|
|
1113
|
+
}), Nr = { key: 0 }, Pr = {
|
|
1025
1114
|
key: 0,
|
|
1026
1115
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
1027
|
-
},
|
|
1116
|
+
}, Fr = { key: 1 }, Ir = [
|
|
1028
1117
|
"type",
|
|
1029
1118
|
"value",
|
|
1030
1119
|
"placeholder"
|
|
1031
|
-
],
|
|
1120
|
+
], Lr = {
|
|
1032
1121
|
key: 0,
|
|
1033
1122
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
1034
|
-
},
|
|
1123
|
+
}, Rr = "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)]", $ = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
|
|
1035
1124
|
__name: "MergeTagInput",
|
|
1036
1125
|
props: {
|
|
1037
1126
|
modelValue: {},
|
|
@@ -1044,14 +1133,14 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1044
1133
|
},
|
|
1045
1134
|
emits: ["update:modelValue"],
|
|
1046
1135
|
setup(e, { emit: t }) {
|
|
1047
|
-
let n = e, r = t, i = m(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: l, canInsertLogicTag: u, isRequestingLogicTag: d, isEditing: f, startEditing: p, handleInput: h, handleKeydown: g, handleClick: _, handleBlur: v, clearValue: S, insertMergeTag: w, insertLogicTag: T } =
|
|
1136
|
+
let n = e, r = t, i = m(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: l, canInsertLogicTag: u, isRequestingLogicTag: d, isEditing: f, startEditing: p, handleInput: h, handleKeydown: g, handleClick: _, handleBlur: v, clearValue: S, insertMergeTag: w, insertLogicTag: T } = In({
|
|
1048
1137
|
modelValue: () => n.modelValue,
|
|
1049
1138
|
emit: (e) => r("update:modelValue", e),
|
|
1050
1139
|
elementRef: i
|
|
1051
1140
|
});
|
|
1052
|
-
return (t, n) => x(o) && !x(f) ? (s(), y("div",
|
|
1141
|
+
return (t, n) => x(o) && !x(f) ? (s(), y("div", Nr, [P(Hn, {
|
|
1053
1142
|
segments: x(a),
|
|
1054
|
-
"display-class":
|
|
1143
|
+
"display-class": Rr,
|
|
1055
1144
|
pulse: e.pulse,
|
|
1056
1145
|
onEdit: x(p),
|
|
1057
1146
|
onClear: x(S)
|
|
@@ -1060,15 +1149,15 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1060
1149
|
"pulse",
|
|
1061
1150
|
"onEdit",
|
|
1062
1151
|
"onClear"
|
|
1063
|
-
]), x(c) || x(u) ? (s(), y("div",
|
|
1152
|
+
]), x(c) || x(u) ? (s(), y("div", Pr, [x(c) ? (s(), C(Gn, {
|
|
1064
1153
|
key: 0,
|
|
1065
1154
|
disabled: x(l),
|
|
1066
1155
|
onInsert: x(w)
|
|
1067
|
-
}, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(
|
|
1156
|
+
}, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Jn, {
|
|
1068
1157
|
key: 1,
|
|
1069
1158
|
disabled: x(d),
|
|
1070
1159
|
onInsert: x(T)
|
|
1071
|
-
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div",
|
|
1160
|
+
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", Fr, [D("input", {
|
|
1072
1161
|
ref_key: "inputRef",
|
|
1073
1162
|
ref: i,
|
|
1074
1163
|
type: e.type,
|
|
@@ -1079,20 +1168,20 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1079
1168
|
onKeydown: n[1] ||= (...e) => x(g) && x(g)(...e),
|
|
1080
1169
|
onClick: n[2] ||= (...e) => x(_) && x(_)(...e),
|
|
1081
1170
|
onBlur: n[3] ||= (...e) => x(v) && x(v)(...e)
|
|
1082
|
-
}, null, 42,
|
|
1171
|
+
}, null, 42, Ir), x(c) || x(u) ? (s(), y("div", Lr, [x(c) ? (s(), C(Gn, {
|
|
1083
1172
|
key: 0,
|
|
1084
1173
|
disabled: x(l),
|
|
1085
1174
|
onInsert: x(w)
|
|
1086
|
-
}, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(
|
|
1175
|
+
}, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Jn, {
|
|
1087
1176
|
key: 1,
|
|
1088
1177
|
disabled: x(d),
|
|
1089
1178
|
onInsert: x(T)
|
|
1090
1179
|
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)]));
|
|
1091
1180
|
}
|
|
1092
|
-
}), [["__scopeId", "data-v-d6563be6"]]),
|
|
1181
|
+
}), [["__scopeId", "data-v-d6563be6"]]), zr = { class: "tpl:mb-3.5" }, Br = ["value"], Vr = { value: "" }, Hr = ["value"], Ur = { class: "tpl:mb-3.5" }, Wr = { class: "tpl:mb-3.5" }, Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Jr = { class: "tpl:mb-3.5" }, Yr = { class: "tpl:flex tpl:items-stretch" }, Xr = ["value"], Zr = { class: "tpl:mb-3.5" }, Qr = { class: "tpl:flex tpl:items-stretch" }, $r = ["value"], ei = { class: "tpl:mb-3.5" }, ti = ["value"], ni = { value: "auto" }, ri = { value: "full" }, ii = { value: "custom" }, ai = {
|
|
1093
1182
|
key: 0,
|
|
1094
1183
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1095
|
-
},
|
|
1184
|
+
}, oi = ["value"], si = 200, ci = /* @__PURE__ */ N({
|
|
1096
1185
|
__name: "ButtonToolbar",
|
|
1097
1186
|
props: {
|
|
1098
1187
|
block: {},
|
|
@@ -1110,7 +1199,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1110
1199
|
return;
|
|
1111
1200
|
}
|
|
1112
1201
|
if (e === "custom") {
|
|
1113
|
-
o("width", typeof n.block.width == "number" ? n.block.width :
|
|
1202
|
+
o("width", typeof n.block.width == "number" ? n.block.width : si);
|
|
1114
1203
|
return;
|
|
1115
1204
|
}
|
|
1116
1205
|
o("width", void 0);
|
|
@@ -1120,20 +1209,20 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1120
1209
|
!Number.isFinite(t) || t <= 0 || o("width", t);
|
|
1121
1210
|
}
|
|
1122
1211
|
return (t, n) => (s(), y(j, null, [
|
|
1123
|
-
D("div",
|
|
1212
|
+
D("div", zr, [D("label", { class: E(x(q)) }, _(x(i).button.fontFamily), 3), D("select", {
|
|
1124
1213
|
class: E(x(K)),
|
|
1125
1214
|
value: e.block.fontFamily || "",
|
|
1126
1215
|
onChange: n[0] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
1127
|
-
}, [D("option",
|
|
1216
|
+
}, [D("option", Vr, _(x(i).button.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
|
|
1128
1217
|
key: e.value,
|
|
1129
1218
|
value: e.value
|
|
1130
|
-
}, _(e.label), 9,
|
|
1131
|
-
D("div",
|
|
1219
|
+
}, _(e.label), 9, Hr))), 128))], 42, Br)]),
|
|
1220
|
+
D("div", Ur, [D("label", { class: E(x(q)) }, _(x(i).button.text), 3), P($, {
|
|
1132
1221
|
"model-value": e.block.text,
|
|
1133
1222
|
type: "text",
|
|
1134
1223
|
"onUpdate:modelValue": n[1] ||= (e) => o("text", e)
|
|
1135
1224
|
}, null, 8, ["model-value"])]),
|
|
1136
|
-
D("div",
|
|
1225
|
+
D("div", Wr, [
|
|
1137
1226
|
D("label", { class: E(x(q)) }, _(x(i).button.url), 3),
|
|
1138
1227
|
P($, {
|
|
1139
1228
|
"model-value": e.block.url,
|
|
@@ -1149,51 +1238,51 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1149
1238
|
"onUpdate:modelValue": n[3] ||= (e) => o("openInNewTab", e)
|
|
1150
1239
|
}, null, 8, ["model-value", "label"])) : b("", !0)
|
|
1151
1240
|
]),
|
|
1152
|
-
D("div",
|
|
1241
|
+
D("div", Gr, [D("label", { class: E(x(q)) }, _(x(i).button.background), 3), P(X, {
|
|
1153
1242
|
"model-value": e.block.backgroundColor,
|
|
1154
1243
|
"onUpdate:modelValue": n[4] ||= (e) => o("backgroundColor", e)
|
|
1155
1244
|
}, null, 8, ["model-value"])]),
|
|
1156
|
-
D("div",
|
|
1245
|
+
D("div", Kr, [D("label", { class: E(x(q)) }, _(x(i).button.textColor), 3), P(X, {
|
|
1157
1246
|
"model-value": e.block.textColor,
|
|
1158
1247
|
"onUpdate:modelValue": n[5] ||= (e) => o("textColor", e)
|
|
1159
1248
|
}, null, 8, ["model-value"])]),
|
|
1160
|
-
D("div",
|
|
1249
|
+
D("div", qr, [D("div", Jr, [D("label", { class: E(x(q)) }, _(x(i).button.borderRadius), 3), D("div", Yr, [D("input", {
|
|
1161
1250
|
type: "number",
|
|
1162
1251
|
class: E(x(Y)),
|
|
1163
1252
|
value: e.block.borderRadius,
|
|
1164
1253
|
min: "0",
|
|
1165
1254
|
max: "50",
|
|
1166
1255
|
onInput: n[6] ||= (e) => o("borderRadius", Number(e.target.value))
|
|
1167
|
-
}, null, 42,
|
|
1256
|
+
}, null, 42, Xr), D("span", { class: E(x(J)) }, "px", 2)])]), D("div", Zr, [D("label", { class: E(x(q)) }, _(x(i).button.fontSize), 3), D("div", Qr, [D("input", {
|
|
1168
1257
|
type: "number",
|
|
1169
1258
|
class: E(x(Y)),
|
|
1170
1259
|
value: e.block.fontSize,
|
|
1171
1260
|
min: "10",
|
|
1172
1261
|
max: "36",
|
|
1173
1262
|
onInput: n[7] ||= (e) => o("fontSize", Number(e.target.value))
|
|
1174
|
-
}, null, 42,
|
|
1175
|
-
D("div",
|
|
1263
|
+
}, null, 42, $r), D("span", { class: E(x(J)) }, "px", 2)])])]),
|
|
1264
|
+
D("div", ei, [
|
|
1176
1265
|
D("label", { class: E(x(q)) }, _(x(i).button.width), 3),
|
|
1177
1266
|
D("select", {
|
|
1178
1267
|
class: E(x(K)),
|
|
1179
1268
|
value: a.value,
|
|
1180
1269
|
onChange: n[8] ||= (e) => c(e.target.value)
|
|
1181
1270
|
}, [
|
|
1182
|
-
D("option",
|
|
1183
|
-
D("option",
|
|
1184
|
-
D("option",
|
|
1185
|
-
], 42,
|
|
1186
|
-
a.value === "custom" ? (s(), y("div",
|
|
1271
|
+
D("option", ni, _(x(i).button.widthAuto), 1),
|
|
1272
|
+
D("option", ri, _(x(i).button.fullWidth), 1),
|
|
1273
|
+
D("option", ii, _(x(i).button.widthCustom), 1)
|
|
1274
|
+
], 42, ti),
|
|
1275
|
+
a.value === "custom" ? (s(), y("div", ai, [D("input", {
|
|
1187
1276
|
type: "number",
|
|
1188
1277
|
class: E(x(Y)),
|
|
1189
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
1278
|
+
value: typeof e.block.width == "number" ? e.block.width : si,
|
|
1190
1279
|
min: "20",
|
|
1191
1280
|
onInput: n[9] ||= (e) => l(e.target.value)
|
|
1192
|
-
}, null, 42,
|
|
1281
|
+
}, null, 42, oi), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
|
|
1193
1282
|
])
|
|
1194
1283
|
], 64));
|
|
1195
1284
|
}
|
|
1196
|
-
}),
|
|
1285
|
+
}), li = { class: "spacing-control" }, ui = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, di = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, fi = { class: "tpl:flex tpl:items-center" }, pi = ["aria-label"], mi = ["value", "aria-label"], hi = ["aria-label"], gi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, _i = { class: "tpl:flex tpl:items-center" }, vi = ["aria-label"], yi = ["value", "aria-label"], bi = ["aria-label"], xi = ["aria-label", "title"], Si = { class: "tpl:flex tpl:items-center" }, Ci = ["aria-label"], wi = ["value", "aria-label"], Ti = ["aria-label"], Ei = { class: "tpl:flex tpl:items-center" }, Di = ["aria-label"], Oi = ["value", "aria-label"], ki = ["aria-label"], Ai = "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)]", ji = "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)]", Mi = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
|
|
1197
1286
|
__name: "SpacingControl",
|
|
1198
1287
|
props: {
|
|
1199
1288
|
modelValue: {},
|
|
@@ -1240,59 +1329,59 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1240
1329
|
});
|
|
1241
1330
|
}
|
|
1242
1331
|
}
|
|
1243
|
-
return (t, n) => (s(), y("div",
|
|
1244
|
-
D("div",
|
|
1332
|
+
return (t, n) => (s(), y("div", li, [D("label", ui, _(e.label), 1), D("div", di, [
|
|
1333
|
+
D("div", fi, [
|
|
1245
1334
|
D("button", {
|
|
1246
1335
|
"aria-label": x(i).spacingControl.decreaseTop,
|
|
1247
|
-
class: E([
|
|
1336
|
+
class: E([Ai, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1248
1337
|
onClick: n[0] ||= (e) => c("top", -1)
|
|
1249
1338
|
}, [P(x(et), {
|
|
1250
1339
|
size: 12,
|
|
1251
1340
|
"stroke-width": 2
|
|
1252
|
-
})], 10,
|
|
1341
|
+
})], 10, pi),
|
|
1253
1342
|
D("input", {
|
|
1254
1343
|
type: "number",
|
|
1255
|
-
class: E(
|
|
1344
|
+
class: E(ji),
|
|
1256
1345
|
value: e.modelValue.top,
|
|
1257
1346
|
"aria-label": x(i).spacingControl.top,
|
|
1258
1347
|
min: "0",
|
|
1259
1348
|
onInput: n[1] ||= (e) => l("top", Number(e.target.value))
|
|
1260
|
-
}, null, 40,
|
|
1349
|
+
}, null, 40, mi),
|
|
1261
1350
|
D("button", {
|
|
1262
1351
|
"aria-label": x(i).spacingControl.increaseTop,
|
|
1263
|
-
class: E([
|
|
1352
|
+
class: E([Ai, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1264
1353
|
onClick: n[2] ||= (e) => c("top", 1)
|
|
1265
1354
|
}, [P(x(G), {
|
|
1266
1355
|
size: 12,
|
|
1267
1356
|
"stroke-width": 2
|
|
1268
|
-
})], 10,
|
|
1357
|
+
})], 10, hi)
|
|
1269
1358
|
]),
|
|
1270
|
-
D("div",
|
|
1271
|
-
D("div",
|
|
1359
|
+
D("div", gi, [
|
|
1360
|
+
D("div", _i, [
|
|
1272
1361
|
D("button", {
|
|
1273
1362
|
"aria-label": x(i).spacingControl.decreaseLeft,
|
|
1274
|
-
class: E([
|
|
1363
|
+
class: E([Ai, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1275
1364
|
onClick: n[3] ||= (e) => c("left", -1)
|
|
1276
1365
|
}, [P(x(et), {
|
|
1277
1366
|
size: 12,
|
|
1278
1367
|
"stroke-width": 2
|
|
1279
|
-
})], 10,
|
|
1368
|
+
})], 10, vi),
|
|
1280
1369
|
D("input", {
|
|
1281
1370
|
type: "number",
|
|
1282
|
-
class: E(
|
|
1371
|
+
class: E(ji),
|
|
1283
1372
|
value: e.modelValue.left,
|
|
1284
1373
|
"aria-label": x(i).spacingControl.left,
|
|
1285
1374
|
min: "0",
|
|
1286
1375
|
onInput: n[4] ||= (e) => l("left", Number(e.target.value))
|
|
1287
|
-
}, null, 40,
|
|
1376
|
+
}, null, 40, yi),
|
|
1288
1377
|
D("button", {
|
|
1289
1378
|
"aria-label": x(i).spacingControl.increaseLeft,
|
|
1290
|
-
class: E([
|
|
1379
|
+
class: E([Ai, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1291
1380
|
onClick: n[5] ||= (e) => c("left", 1)
|
|
1292
1381
|
}, [P(x(G), {
|
|
1293
1382
|
size: 12,
|
|
1294
1383
|
"stroke-width": 2
|
|
1295
|
-
})], 10,
|
|
1384
|
+
})], 10, bi)
|
|
1296
1385
|
]),
|
|
1297
1386
|
D("button", {
|
|
1298
1387
|
class: E(["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)]", o.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)]"]),
|
|
@@ -1307,63 +1396,63 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1307
1396
|
key: 1,
|
|
1308
1397
|
size: 14,
|
|
1309
1398
|
"stroke-width": 2
|
|
1310
|
-
}))], 10,
|
|
1311
|
-
D("div",
|
|
1399
|
+
}))], 10, xi),
|
|
1400
|
+
D("div", Si, [
|
|
1312
1401
|
D("button", {
|
|
1313
1402
|
"aria-label": x(i).spacingControl.decreaseRight,
|
|
1314
|
-
class: E([
|
|
1403
|
+
class: E([Ai, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1315
1404
|
onClick: n[6] ||= (e) => c("right", -1)
|
|
1316
1405
|
}, [P(x(et), {
|
|
1317
1406
|
size: 12,
|
|
1318
1407
|
"stroke-width": 2
|
|
1319
|
-
})], 10,
|
|
1408
|
+
})], 10, Ci),
|
|
1320
1409
|
D("input", {
|
|
1321
1410
|
type: "number",
|
|
1322
|
-
class: E(
|
|
1411
|
+
class: E(ji),
|
|
1323
1412
|
value: e.modelValue.right,
|
|
1324
1413
|
"aria-label": x(i).spacingControl.right,
|
|
1325
1414
|
min: "0",
|
|
1326
1415
|
onInput: n[7] ||= (e) => l("right", Number(e.target.value))
|
|
1327
|
-
}, null, 40,
|
|
1416
|
+
}, null, 40, wi),
|
|
1328
1417
|
D("button", {
|
|
1329
1418
|
"aria-label": x(i).spacingControl.increaseRight,
|
|
1330
|
-
class: E([
|
|
1419
|
+
class: E([Ai, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1331
1420
|
onClick: n[8] ||= (e) => c("right", 1)
|
|
1332
1421
|
}, [P(x(G), {
|
|
1333
1422
|
size: 12,
|
|
1334
1423
|
"stroke-width": 2
|
|
1335
|
-
})], 10,
|
|
1424
|
+
})], 10, Ti)
|
|
1336
1425
|
])
|
|
1337
1426
|
]),
|
|
1338
|
-
D("div",
|
|
1427
|
+
D("div", Ei, [
|
|
1339
1428
|
D("button", {
|
|
1340
1429
|
"aria-label": x(i).spacingControl.decreaseBottom,
|
|
1341
|
-
class: E([
|
|
1430
|
+
class: E([Ai, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1342
1431
|
onClick: n[9] ||= (e) => c("bottom", -1)
|
|
1343
1432
|
}, [P(x(et), {
|
|
1344
1433
|
size: 12,
|
|
1345
1434
|
"stroke-width": 2
|
|
1346
|
-
})], 10,
|
|
1435
|
+
})], 10, Di),
|
|
1347
1436
|
D("input", {
|
|
1348
1437
|
type: "number",
|
|
1349
|
-
class: E(
|
|
1438
|
+
class: E(ji),
|
|
1350
1439
|
value: e.modelValue.bottom,
|
|
1351
1440
|
"aria-label": x(i).spacingControl.bottom,
|
|
1352
1441
|
min: "0",
|
|
1353
1442
|
onInput: n[10] ||= (e) => l("bottom", Number(e.target.value))
|
|
1354
|
-
}, null, 40,
|
|
1443
|
+
}, null, 40, Oi),
|
|
1355
1444
|
D("button", {
|
|
1356
1445
|
"aria-label": x(i).spacingControl.increaseBottom,
|
|
1357
|
-
class: E([
|
|
1446
|
+
class: E([Ai, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1358
1447
|
onClick: n[11] ||= (e) => c("bottom", 1)
|
|
1359
1448
|
}, [P(x(G), {
|
|
1360
1449
|
size: 12,
|
|
1361
1450
|
"stroke-width": 2
|
|
1362
|
-
})], 10,
|
|
1451
|
+
})], 10, ki)
|
|
1363
1452
|
])
|
|
1364
1453
|
])]));
|
|
1365
1454
|
}
|
|
1366
|
-
}), [["__scopeId", "data-v-9a9c8a07"]]),
|
|
1455
|
+
}), [["__scopeId", "data-v-9a9c8a07"]]), Ni = { class: "tpl:mt-3" }, Pi = /* @__PURE__ */ N({
|
|
1367
1456
|
__name: "CollapsibleSection",
|
|
1368
1457
|
props: {
|
|
1369
1458
|
title: {},
|
|
@@ -1380,21 +1469,21 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1380
1469
|
class: E(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1381
1470
|
size: 12,
|
|
1382
1471
|
"stroke-width": 2
|
|
1383
|
-
}, null, 8, ["class"]), D("span", null, _(e.title), 1)]), r(D("div",
|
|
1472
|
+
}, null, 8, ["class"]), D("span", null, _(e.title), 1)]), r(D("div", Ni, [t(n.$slots, "default")], 512), [[O, e.open]])], 2));
|
|
1384
1473
|
}
|
|
1385
|
-
}),
|
|
1474
|
+
}), Fi = { class: "tpl:space-y-2" }, Ii = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Li = { class: "tpl:space-y-2" }, Ri = ["value"], zi = { value: "" }, Bi = ["label"], Vi = ["value"], Hi = ["value"], Ui = {
|
|
1386
1475
|
key: 0,
|
|
1387
1476
|
value: "__custom__"
|
|
1388
|
-
},
|
|
1477
|
+
}, Wi = {
|
|
1389
1478
|
key: 0,
|
|
1390
1479
|
class: "tpl:space-y-2"
|
|
1391
|
-
},
|
|
1480
|
+
}, Gi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ki = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, qi = { class: "tpl:flex tpl:justify-end" }, Ji = ["disabled"], Yi = {
|
|
1392
1481
|
key: 0,
|
|
1393
1482
|
class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
|
|
1394
|
-
},
|
|
1483
|
+
}, Xi = { class: "tpl:space-y-1" }, Zi = { 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)]" }, Qi = {
|
|
1395
1484
|
key: 0,
|
|
1396
1485
|
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)]"
|
|
1397
|
-
},
|
|
1486
|
+
}, $i = /* @__PURE__ */ N({
|
|
1398
1487
|
__name: "CommonBlockSettings",
|
|
1399
1488
|
props: {
|
|
1400
1489
|
block: {},
|
|
@@ -1457,13 +1546,13 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1457
1546
|
t[e] = !t[e], i("update", { visibility: t });
|
|
1458
1547
|
}
|
|
1459
1548
|
return (t, n) => (s(), y("div", { class: E(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1460
|
-
P(
|
|
1549
|
+
P(Pi, {
|
|
1461
1550
|
title: x(a).blockSettings.spacing,
|
|
1462
1551
|
open: h.has("spacing"),
|
|
1463
1552
|
"no-border": e.isFirstSection,
|
|
1464
1553
|
onToggle: n[1] ||= (e) => k("spacing")
|
|
1465
1554
|
}, {
|
|
1466
|
-
default: f(() => [P(
|
|
1555
|
+
default: f(() => [P(Mi, {
|
|
1467
1556
|
label: x(a).blockSettings.padding,
|
|
1468
1557
|
"model-value": e.block.styles.padding,
|
|
1469
1558
|
"onUpdate:modelValue": n[0] ||= (e) => z("padding", e)
|
|
@@ -1474,7 +1563,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1474
1563
|
"open",
|
|
1475
1564
|
"no-border"
|
|
1476
1565
|
]),
|
|
1477
|
-
P(
|
|
1566
|
+
P(Pi, {
|
|
1478
1567
|
title: x(a).blockSettings.background,
|
|
1479
1568
|
open: h.has("bg"),
|
|
1480
1569
|
onToggle: n[3] ||= (e) => k("bg")
|
|
@@ -1485,19 +1574,19 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1485
1574
|
}, null, 8, ["model-value"])]),
|
|
1486
1575
|
_: 1
|
|
1487
1576
|
}, 8, ["title", "open"]),
|
|
1488
|
-
P(
|
|
1577
|
+
P(Pi, {
|
|
1489
1578
|
title: x(a).blockSettings.display,
|
|
1490
1579
|
open: h.has("display"),
|
|
1491
1580
|
onToggle: n[4] ||= (e) => k("display")
|
|
1492
1581
|
}, {
|
|
1493
|
-
default: f(() => [D("div",
|
|
1582
|
+
default: f(() => [D("div", Fi, [(s(), y(j, null, u(O, (e) => P(Z, {
|
|
1494
1583
|
key: e.key,
|
|
1495
1584
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1496
1585
|
"model-value": B(e.key),
|
|
1497
1586
|
label: x(a).blockSettings[e.labelKey],
|
|
1498
1587
|
"onUpdate:modelValue": (t) => V(e.key)
|
|
1499
1588
|
}, {
|
|
1500
|
-
default: f(() => [D("span",
|
|
1589
|
+
default: f(() => [D("span", Ii, [(s(), C(o(e.icon), {
|
|
1501
1590
|
size: 14,
|
|
1502
1591
|
"stroke-width": 1.5
|
|
1503
1592
|
})), M(" " + _(x(a).blockSettings[e.labelKey]), 1)])]),
|
|
@@ -1509,13 +1598,13 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1509
1598
|
])), 64))])]),
|
|
1510
1599
|
_: 1
|
|
1511
1600
|
}, 8, ["title", "open"]),
|
|
1512
|
-
A.value ? (s(), C(
|
|
1601
|
+
A.value ? (s(), C(Pi, {
|
|
1513
1602
|
key: 0,
|
|
1514
1603
|
title: x(a).blockSettings.displayCondition,
|
|
1515
1604
|
open: h.has("condition"),
|
|
1516
1605
|
onToggle: n[8] ||= (e) => k("condition")
|
|
1517
1606
|
}, {
|
|
1518
|
-
default: f(() => [D("div",
|
|
1607
|
+
default: f(() => [D("div", Li, [D("select", {
|
|
1519
1608
|
class: E(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:duration-150 tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1520
1609
|
value: g.value || N.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1521
1610
|
onChange: n[5] ||= (e) => {
|
|
@@ -1532,41 +1621,41 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1532
1621
|
n && i("update", { displayCondition: n });
|
|
1533
1622
|
}
|
|
1534
1623
|
}, [
|
|
1535
|
-
D("option",
|
|
1624
|
+
D("option", zi, _(x(a).blockSettings.noCondition), 1),
|
|
1536
1625
|
(s(!0), y(j, null, u(R.value, (e, t) => (s(), y(j, { key: t }, [t ? (s(), y("optgroup", {
|
|
1537
1626
|
key: 0,
|
|
1538
1627
|
label: String(t)
|
|
1539
1628
|
}, [(s(!0), y(j, null, u(e, (e) => (s(), y("option", {
|
|
1540
1629
|
key: e.label,
|
|
1541
1630
|
value: e.label
|
|
1542
|
-
}, _(e.label), 9,
|
|
1631
|
+
}, _(e.label), 9, Vi))), 128))], 8, Bi)) : (s(!0), y(j, { key: 1 }, u(e, (e) => (s(), y("option", {
|
|
1543
1632
|
key: e.label,
|
|
1544
1633
|
value: e.label
|
|
1545
|
-
}, _(e.label), 9,
|
|
1546
|
-
x(l) ? (s(), y("option",
|
|
1547
|
-
], 42,
|
|
1548
|
-
D("div", null, [D("label",
|
|
1634
|
+
}, _(e.label), 9, Hi))), 128))], 64))), 128)),
|
|
1635
|
+
x(l) ? (s(), y("option", Ui, _(x(a).blockSettings.customCondition), 1)) : b("", !0)
|
|
1636
|
+
], 42, Ri), g.value || N.value ? (s(), y("div", Wi, [
|
|
1637
|
+
D("div", null, [D("label", Gi, _(x(a).blockSettings.customConditionBefore), 1), r(D("textarea", {
|
|
1549
1638
|
"onUpdate:modelValue": n[6] ||= (e) => S.value = e,
|
|
1550
1639
|
rows: "2",
|
|
1551
|
-
class: E(x(
|
|
1640
|
+
class: E(x(Kt))
|
|
1552
1641
|
}, null, 2), [[T, S.value]])]),
|
|
1553
|
-
D("div", null, [D("label",
|
|
1642
|
+
D("div", null, [D("label", Ki, _(x(a).blockSettings.customConditionAfter), 1), r(D("textarea", {
|
|
1554
1643
|
"onUpdate:modelValue": n[7] ||= (e) => w.value = e,
|
|
1555
1644
|
rows: "2",
|
|
1556
|
-
class: E(x(
|
|
1645
|
+
class: E(x(Kt))
|
|
1557
1646
|
}, null, 2), [[T, w.value]])]),
|
|
1558
|
-
D("div",
|
|
1647
|
+
D("div", qi, [D("button", {
|
|
1559
1648
|
type: "button",
|
|
1560
1649
|
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",
|
|
1561
1650
|
disabled: !S.value.trim(),
|
|
1562
1651
|
onClick: L
|
|
1563
|
-
}, _(x(a).blockSettings.applyCondition), 9,
|
|
1564
|
-
])) : e.block.displayCondition && !N.value ? (s(), y(j, { key: 1 }, [e.block.displayCondition.description ? (s(), y("p",
|
|
1652
|
+
}, _(x(a).blockSettings.applyCondition), 9, Ji)])
|
|
1653
|
+
])) : e.block.displayCondition && !N.value ? (s(), y(j, { key: 1 }, [e.block.displayCondition.description ? (s(), y("p", Yi, _(e.block.displayCondition.description), 1)) : b("", !0), D("div", Xi, [D("pre", Zi, _(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (s(), y("pre", Qi, _(e.block.displayCondition.after), 1)) : b("", !0)])], 64)) : b("", !0)])]),
|
|
1565
1654
|
_: 1
|
|
1566
1655
|
}, 8, ["title", "open"])) : b("", !0)
|
|
1567
1656
|
], 2));
|
|
1568
1657
|
}
|
|
1569
|
-
}),
|
|
1658
|
+
}), ea = ["title"], ta = /* @__PURE__ */ N({
|
|
1570
1659
|
__name: "BooleanField",
|
|
1571
1660
|
props: {
|
|
1572
1661
|
field: {},
|
|
@@ -1598,12 +1687,12 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1598
1687
|
"label",
|
|
1599
1688
|
"required",
|
|
1600
1689
|
"disabled"
|
|
1601
|
-
])], 8,
|
|
1690
|
+
])], 8, ea));
|
|
1602
1691
|
}
|
|
1603
|
-
}),
|
|
1692
|
+
}), na = { class: "tpl:mb-3.5" }, ra = {
|
|
1604
1693
|
key: 1,
|
|
1605
1694
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1606
|
-
},
|
|
1695
|
+
}, ia = /* @__PURE__ */ N({
|
|
1607
1696
|
__name: "FieldWrapper",
|
|
1608
1697
|
props: {
|
|
1609
1698
|
label: {},
|
|
@@ -1611,17 +1700,17 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1611
1700
|
readOnly: { type: Boolean }
|
|
1612
1701
|
},
|
|
1613
1702
|
setup(e) {
|
|
1614
|
-
return (n, r) => (s(), y("div",
|
|
1703
|
+
return (n, r) => (s(), y("div", na, [D("label", { class: E(x(q)) }, [
|
|
1615
1704
|
M(_(e.label) + " ", 1),
|
|
1616
1705
|
e.readOnly ? (s(), C(x(Mt), {
|
|
1617
1706
|
key: 0,
|
|
1618
1707
|
size: 12,
|
|
1619
1708
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1620
1709
|
})) : b("", !0),
|
|
1621
|
-
e.required ? (s(), y("span",
|
|
1710
|
+
e.required ? (s(), y("span", ra, "*")) : b("", !0)
|
|
1622
1711
|
], 2), t(n.$slots, "default")]));
|
|
1623
1712
|
}
|
|
1624
|
-
}),
|
|
1713
|
+
}), aa = /* @__PURE__ */ N({
|
|
1625
1714
|
__name: "ColorField",
|
|
1626
1715
|
props: {
|
|
1627
1716
|
field: {},
|
|
@@ -1631,7 +1720,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1631
1720
|
emits: ["update:modelValue"],
|
|
1632
1721
|
setup(e, { emit: t }) {
|
|
1633
1722
|
let n = e, r = t, { t: i } = W(), a = d(We, Qe), o = v(() => re(n.field, a));
|
|
1634
|
-
return (t, n) => (s(), C(
|
|
1723
|
+
return (t, n) => (s(), C(ia, {
|
|
1635
1724
|
label: e.field.label,
|
|
1636
1725
|
required: e.field.required,
|
|
1637
1726
|
"read-only": e.readOnly
|
|
@@ -1659,15 +1748,15 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1659
1748
|
"read-only"
|
|
1660
1749
|
]));
|
|
1661
1750
|
}
|
|
1662
|
-
}),
|
|
1751
|
+
}), oa = {
|
|
1663
1752
|
key: 0,
|
|
1664
1753
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
1665
1754
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
1666
|
-
},
|
|
1755
|
+
}, sa = [
|
|
1667
1756
|
"value",
|
|
1668
1757
|
"placeholder",
|
|
1669
1758
|
"title"
|
|
1670
|
-
],
|
|
1759
|
+
], ca = ["value", "placeholder"], la = /* @__PURE__ */ N({
|
|
1671
1760
|
__name: "ImageField",
|
|
1672
1761
|
props: {
|
|
1673
1762
|
field: {},
|
|
@@ -1702,7 +1791,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1702
1791
|
enabled: h,
|
|
1703
1792
|
onFiles: g
|
|
1704
1793
|
});
|
|
1705
|
-
return (t, n) => (s(), C(
|
|
1794
|
+
return (t, n) => (s(), C(ia, {
|
|
1706
1795
|
label: e.field.label,
|
|
1707
1796
|
required: e.field.required,
|
|
1708
1797
|
"read-only": e.readOnly
|
|
@@ -1712,7 +1801,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1712
1801
|
ref: u,
|
|
1713
1802
|
class: "tpl:relative"
|
|
1714
1803
|
}, [
|
|
1715
|
-
h.value && (x(S) || p.value) ? (s(), y("div",
|
|
1804
|
+
h.value && (x(S) || p.value) ? (s(), y("div", oa, [p.value ? (s(), y(j, { key: 0 }, [P(x(At), {
|
|
1716
1805
|
class: "tpl-spinner",
|
|
1717
1806
|
size: 18,
|
|
1718
1807
|
"stroke-width": 2
|
|
@@ -1728,14 +1817,14 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1728
1817
|
placeholder: e.field.placeholder || "https://...",
|
|
1729
1818
|
disabled: "",
|
|
1730
1819
|
title: x(i).customBlocks.dataSource.readOnlyTooltip
|
|
1731
|
-
}, null, 10,
|
|
1820
|
+
}, null, 10, sa)) : (s(), y("input", {
|
|
1732
1821
|
key: 2,
|
|
1733
1822
|
type: "url",
|
|
1734
1823
|
class: E(x(K)),
|
|
1735
1824
|
value: e.modelValue,
|
|
1736
1825
|
placeholder: e.field.placeholder || "https://...",
|
|
1737
1826
|
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
1738
|
-
}, null, 42,
|
|
1827
|
+
}, null, 42, ca)),
|
|
1739
1828
|
c.value && !e.readOnly ? (s(), y("button", {
|
|
1740
1829
|
key: 3,
|
|
1741
1830
|
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)]",
|
|
@@ -1752,7 +1841,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1752
1841
|
"read-only"
|
|
1753
1842
|
]));
|
|
1754
1843
|
}
|
|
1755
|
-
}),
|
|
1844
|
+
}), ua = [
|
|
1756
1845
|
"value",
|
|
1757
1846
|
"placeholder",
|
|
1758
1847
|
"min",
|
|
@@ -1760,7 +1849,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1760
1849
|
"step",
|
|
1761
1850
|
"disabled",
|
|
1762
1851
|
"title"
|
|
1763
|
-
],
|
|
1852
|
+
], da = /* @__PURE__ */ N({
|
|
1764
1853
|
__name: "NumberField",
|
|
1765
1854
|
props: {
|
|
1766
1855
|
field: {},
|
|
@@ -1770,7 +1859,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1770
1859
|
emits: ["update:modelValue"],
|
|
1771
1860
|
setup(e, { emit: t }) {
|
|
1772
1861
|
let n = t, { t: r } = W();
|
|
1773
|
-
return (t, i) => (s(), C(
|
|
1862
|
+
return (t, i) => (s(), C(ia, {
|
|
1774
1863
|
label: e.field.label,
|
|
1775
1864
|
required: e.field.required,
|
|
1776
1865
|
"read-only": e.readOnly
|
|
@@ -1786,7 +1875,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1786
1875
|
disabled: e.readOnly,
|
|
1787
1876
|
title: e.readOnly ? x(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1788
1877
|
onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1789
|
-
}, null, 42,
|
|
1878
|
+
}, null, 42, ua)]),
|
|
1790
1879
|
_: 1
|
|
1791
1880
|
}, 8, [
|
|
1792
1881
|
"label",
|
|
@@ -1794,10 +1883,10 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1794
1883
|
"read-only"
|
|
1795
1884
|
]));
|
|
1796
1885
|
}
|
|
1797
|
-
}),
|
|
1886
|
+
}), fa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, pa = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ma = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, ha = ["title", "onClick"], ga = {
|
|
1798
1887
|
key: 1,
|
|
1799
1888
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1800
|
-
},
|
|
1889
|
+
}, _a = /* @__PURE__ */ N({
|
|
1801
1890
|
__name: "RepeatableField",
|
|
1802
1891
|
props: {
|
|
1803
1892
|
field: {},
|
|
@@ -1825,16 +1914,16 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1825
1914
|
} : r);
|
|
1826
1915
|
r("update:modelValue", i);
|
|
1827
1916
|
}
|
|
1828
|
-
return (t, n) => (s(), C(
|
|
1917
|
+
return (t, n) => (s(), C(ia, {
|
|
1829
1918
|
label: e.field.label,
|
|
1830
1919
|
required: e.field.required,
|
|
1831
1920
|
"read-only": e.readOnly
|
|
1832
1921
|
}, {
|
|
1833
|
-
default: f(() => [D("div",
|
|
1922
|
+
default: f(() => [D("div", fa, [
|
|
1834
1923
|
(s(!0), y(j, null, u(a.value, (t, n) => (s(), y("div", {
|
|
1835
1924
|
key: `${e.field.key}-${n}`,
|
|
1836
1925
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1837
|
-
}, [D("div",
|
|
1926
|
+
}, [D("div", pa, [D("span", ma, " #" + _(n + 1), 1), l.value && !e.readOnly ? (s(), y("button", {
|
|
1838
1927
|
key: 0,
|
|
1839
1928
|
type: "button",
|
|
1840
1929
|
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)]",
|
|
@@ -1843,7 +1932,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1843
1932
|
}, [P(x(bt), {
|
|
1844
1933
|
size: 12,
|
|
1845
1934
|
"stroke-width": 2
|
|
1846
|
-
})], 8,
|
|
1935
|
+
})], 8, ha)) : b("", !0)]), (s(!0), y(j, null, u(e.field.fields, (r) => (s(), C(o(x(Ea)(r.type)), {
|
|
1847
1936
|
key: r.key,
|
|
1848
1937
|
field: r,
|
|
1849
1938
|
"model-value": t[r.key],
|
|
@@ -1858,13 +1947,13 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1858
1947
|
c.value && !e.readOnly ? (s(), y("button", {
|
|
1859
1948
|
key: 0,
|
|
1860
1949
|
type: "button",
|
|
1861
|
-
class: E(x(
|
|
1950
|
+
class: E(x(Jt)),
|
|
1862
1951
|
onClick: d
|
|
1863
1952
|
}, [P(x(G), {
|
|
1864
1953
|
size: 14,
|
|
1865
1954
|
"stroke-width": 2
|
|
1866
1955
|
}), M(" " + _(x(i).customBlocks.fields.addItem), 1)], 2)) : b("", !0),
|
|
1867
|
-
!c.value && !e.readOnly ? (s(), y("p",
|
|
1956
|
+
!c.value && !e.readOnly ? (s(), y("p", ga, _(x(i).customBlocks.fields.maxItemsReached), 1)) : b("", !0)
|
|
1868
1957
|
])]),
|
|
1869
1958
|
_: 1
|
|
1870
1959
|
}, 8, [
|
|
@@ -1873,11 +1962,11 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1873
1962
|
"read-only"
|
|
1874
1963
|
]));
|
|
1875
1964
|
}
|
|
1876
|
-
}),
|
|
1965
|
+
}), va = [
|
|
1877
1966
|
"value",
|
|
1878
1967
|
"disabled",
|
|
1879
1968
|
"title"
|
|
1880
|
-
],
|
|
1969
|
+
], ya = ["value"], ba = /* @__PURE__ */ N({
|
|
1881
1970
|
__name: "SelectField",
|
|
1882
1971
|
props: {
|
|
1883
1972
|
field: {},
|
|
@@ -1887,7 +1976,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1887
1976
|
emits: ["update:modelValue"],
|
|
1888
1977
|
setup(e, { emit: t }) {
|
|
1889
1978
|
let n = t, { t: r } = W();
|
|
1890
|
-
return (t, i) => (s(), C(
|
|
1979
|
+
return (t, i) => (s(), C(ia, {
|
|
1891
1980
|
label: e.field.label,
|
|
1892
1981
|
required: e.field.required,
|
|
1893
1982
|
"read-only": e.readOnly
|
|
@@ -1901,7 +1990,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1901
1990
|
}, [(s(!0), y(j, null, u(e.field.options, (e) => (s(), y("option", {
|
|
1902
1991
|
key: e.value,
|
|
1903
1992
|
value: e.value
|
|
1904
|
-
}, _(e.label), 9,
|
|
1993
|
+
}, _(e.label), 9, ya))), 128))], 42, va)]),
|
|
1905
1994
|
_: 1
|
|
1906
1995
|
}, 8, [
|
|
1907
1996
|
"label",
|
|
@@ -1909,11 +1998,11 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1909
1998
|
"read-only"
|
|
1910
1999
|
]));
|
|
1911
2000
|
}
|
|
1912
|
-
}),
|
|
2001
|
+
}), xa = [
|
|
1913
2002
|
"value",
|
|
1914
2003
|
"placeholder",
|
|
1915
2004
|
"title"
|
|
1916
|
-
],
|
|
2005
|
+
], Sa = /* @__PURE__ */ N({
|
|
1917
2006
|
__name: "TextField",
|
|
1918
2007
|
props: {
|
|
1919
2008
|
field: {},
|
|
@@ -1923,7 +2012,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1923
2012
|
emits: ["update:modelValue"],
|
|
1924
2013
|
setup(e, { emit: t }) {
|
|
1925
2014
|
let n = t, { t: r } = W();
|
|
1926
|
-
return (t, i) => (s(), C(
|
|
2015
|
+
return (t, i) => (s(), C(ia, {
|
|
1927
2016
|
label: e.field.label,
|
|
1928
2017
|
required: e.field.required,
|
|
1929
2018
|
"read-only": e.readOnly
|
|
@@ -1936,7 +2025,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1936
2025
|
placeholder: e.field.placeholder,
|
|
1937
2026
|
disabled: "",
|
|
1938
2027
|
title: x(r).customBlocks.dataSource.readOnlyTooltip
|
|
1939
|
-
}, null, 10,
|
|
2028
|
+
}, null, 10, xa)) : (s(), C($, {
|
|
1940
2029
|
key: 1,
|
|
1941
2030
|
"model-value": e.modelValue,
|
|
1942
2031
|
placeholder: e.field.placeholder,
|
|
@@ -1949,12 +2038,12 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1949
2038
|
"read-only"
|
|
1950
2039
|
]));
|
|
1951
2040
|
}
|
|
1952
|
-
}),
|
|
2041
|
+
}), Ca = [
|
|
1953
2042
|
"value",
|
|
1954
2043
|
"placeholder",
|
|
1955
2044
|
"title"
|
|
1956
|
-
],
|
|
1957
|
-
text:
|
|
2045
|
+
], wa = "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", Ta = {
|
|
2046
|
+
text: Sa,
|
|
1958
2047
|
textarea: /* @__PURE__ */ N({
|
|
1959
2048
|
__name: "TextareaField",
|
|
1960
2049
|
props: {
|
|
@@ -1965,7 +2054,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1965
2054
|
emits: ["update:modelValue"],
|
|
1966
2055
|
setup(e, { emit: t }) {
|
|
1967
2056
|
let n = t, { t: r } = W();
|
|
1968
|
-
return (t, i) => (s(), C(
|
|
2057
|
+
return (t, i) => (s(), C(ia, {
|
|
1969
2058
|
label: e.field.label,
|
|
1970
2059
|
required: e.field.required,
|
|
1971
2060
|
"read-only": e.readOnly
|
|
@@ -1977,8 +2066,8 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1977
2066
|
rows: "3",
|
|
1978
2067
|
disabled: "",
|
|
1979
2068
|
title: x(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1980
|
-
class: E(
|
|
1981
|
-
}, null, 8,
|
|
2069
|
+
class: E(wa)
|
|
2070
|
+
}, null, 8, Ca)) : (s(), C(nr, {
|
|
1982
2071
|
key: 1,
|
|
1983
2072
|
"model-value": e.modelValue,
|
|
1984
2073
|
placeholder: e.field.placeholder,
|
|
@@ -1992,37 +2081,37 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
|
|
|
1992
2081
|
]));
|
|
1993
2082
|
}
|
|
1994
2083
|
}),
|
|
1995
|
-
image:
|
|
1996
|
-
color:
|
|
1997
|
-
number:
|
|
1998
|
-
select:
|
|
1999
|
-
boolean:
|
|
2000
|
-
repeatable:
|
|
2084
|
+
image: la,
|
|
2085
|
+
color: aa,
|
|
2086
|
+
number: da,
|
|
2087
|
+
select: ba,
|
|
2088
|
+
boolean: ta,
|
|
2089
|
+
repeatable: _a
|
|
2001
2090
|
};
|
|
2002
|
-
function
|
|
2003
|
-
return
|
|
2091
|
+
function Ea(e) {
|
|
2092
|
+
return Ta[e] ?? Sa;
|
|
2004
2093
|
}
|
|
2005
2094
|
//#endregion
|
|
2006
2095
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2007
|
-
var
|
|
2096
|
+
var Da = {
|
|
2008
2097
|
key: 0,
|
|
2009
2098
|
class: "tpl:p-4"
|
|
2010
|
-
},
|
|
2099
|
+
}, Oa = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ka = { key: 1 }, Aa = {
|
|
2011
2100
|
key: 0,
|
|
2012
2101
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
2013
|
-
},
|
|
2102
|
+
}, ja = {
|
|
2014
2103
|
key: 1,
|
|
2015
2104
|
class: "tpl:mb-4"
|
|
2016
|
-
},
|
|
2105
|
+
}, Ma = {
|
|
2017
2106
|
key: 1,
|
|
2018
2107
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
2019
|
-
},
|
|
2108
|
+
}, Na = {
|
|
2020
2109
|
key: 0,
|
|
2021
2110
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2022
|
-
},
|
|
2111
|
+
}, Pa = {
|
|
2023
2112
|
key: 2,
|
|
2024
2113
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
2025
|
-
},
|
|
2114
|
+
}, Fa = /* @__PURE__ */ N({
|
|
2026
2115
|
__name: "CustomBlockToolbar",
|
|
2027
2116
|
props: { block: {} },
|
|
2028
2117
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
@@ -2043,23 +2132,23 @@ var xa = {
|
|
|
2043
2132
|
[e]: t
|
|
2044
2133
|
});
|
|
2045
2134
|
}
|
|
2046
|
-
return (t, n) => c.value ? (s(), y("div",
|
|
2047
|
-
c.value.description ? (s(), y("p",
|
|
2048
|
-
x(m) ? (s(), y("div",
|
|
2135
|
+
return (t, n) => c.value ? (s(), y("div", ka, [
|
|
2136
|
+
c.value.description ? (s(), y("p", Aa, _(c.value.description), 1)) : b("", !0),
|
|
2137
|
+
x(m) ? (s(), y("div", ja, [x(h) && !x(l) ? (s(), y("button", {
|
|
2049
2138
|
key: 0,
|
|
2050
2139
|
type: "button",
|
|
2051
2140
|
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)]",
|
|
2052
2141
|
onClick: n[0] ||= (...e) => x(p) && x(p)(...e)
|
|
2053
|
-
}, _(c.value?.dataSource?.label || x(i).customBlocks.dataSource.fetchButton), 1)) : (s(), y("div",
|
|
2142
|
+
}, _(c.value?.dataSource?.label || x(i).customBlocks.dataSource.fetchButton), 1)) : (s(), y("div", Ma, [x(l) ? (s(), y("div", Na, _(x(i).customBlocks.dataSource.fetching), 1)) : (s(), y("button", {
|
|
2054
2143
|
key: 1,
|
|
2055
2144
|
type: "button",
|
|
2056
2145
|
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)]",
|
|
2057
2146
|
onClick: n[1] ||= (...e) => x(p) && x(p)(...e)
|
|
2058
|
-
}, [P(x(ht), { size: 12 }), M(" " + _(x(i).customBlocks.dataSource.changeButton), 1)]))])), x(f) ? (s(), y("p",
|
|
2147
|
+
}, [P(x(ht), { size: 12 }), M(" " + _(x(i).customBlocks.dataSource.changeButton), 1)]))])), x(f) ? (s(), y("p", Pa, [P(x(nt), {
|
|
2059
2148
|
size: 14,
|
|
2060
2149
|
class: "tpl:shrink-0"
|
|
2061
2150
|
}), M(" " + _(x(i).customBlocks.dataSource.fetchError), 1)])) : b("", !0)])) : b("", !0),
|
|
2062
|
-
(s(!0), y(j, null, u(c.value.fields, (t) => (s(), C(o(x(
|
|
2151
|
+
(s(!0), y(j, null, u(c.value.fields, (t) => (s(), C(o(x(Ea)(t.type)), {
|
|
2063
2152
|
key: t.key,
|
|
2064
2153
|
field: t,
|
|
2065
2154
|
"model-value": e.block.fieldValues[t.key],
|
|
@@ -2071,9 +2160,9 @@ var xa = {
|
|
|
2071
2160
|
"read-only",
|
|
2072
2161
|
"onUpdate:modelValue"
|
|
2073
2162
|
]))), 128))
|
|
2074
|
-
])) : (s(), y("div",
|
|
2163
|
+
])) : (s(), y("div", Da, [D("p", Oa, _(x(i).customBlocks.toolbar.noDefinition), 1)]));
|
|
2075
2164
|
}
|
|
2076
|
-
}),
|
|
2165
|
+
}), Ia = { class: "tpl:mb-3.5" }, La = { class: "tpl:mb-3.5" }, Ra = { class: "tpl:mb-3.5" }, za = { class: "tpl:flex tpl:items-stretch" }, Ba = ["value"], Va = /* @__PURE__ */ N({
|
|
2077
2166
|
__name: "DividerToolbar",
|
|
2078
2167
|
props: { block: {} },
|
|
2079
2168
|
emits: ["update"],
|
|
@@ -2083,7 +2172,7 @@ var xa = {
|
|
|
2083
2172
|
n("update", { [e]: t });
|
|
2084
2173
|
}
|
|
2085
2174
|
return (t, n) => (s(), y(j, null, [
|
|
2086
|
-
D("div",
|
|
2175
|
+
D("div", Ia, [D("label", { class: E(x(q)) }, _(x(r).divider.style), 3), P($t, {
|
|
2087
2176
|
options: [
|
|
2088
2177
|
{
|
|
2089
2178
|
value: "solid",
|
|
@@ -2101,52 +2190,52 @@ var xa = {
|
|
|
2101
2190
|
"model-value": e.block.lineStyle,
|
|
2102
2191
|
"onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
|
|
2103
2192
|
}, null, 8, ["options", "model-value"])]),
|
|
2104
|
-
D("div",
|
|
2193
|
+
D("div", La, [D("label", { class: E(x(q)) }, _(x(r).divider.color), 3), P(X, {
|
|
2105
2194
|
"model-value": e.block.color,
|
|
2106
2195
|
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
2107
2196
|
}, null, 8, ["model-value"])]),
|
|
2108
|
-
D("div",
|
|
2197
|
+
D("div", Ra, [D("label", { class: E(x(q)) }, _(x(r).divider.thickness), 3), D("div", za, [D("input", {
|
|
2109
2198
|
type: "number",
|
|
2110
2199
|
class: E(x(Y)),
|
|
2111
2200
|
value: e.block.thickness,
|
|
2112
2201
|
min: "1",
|
|
2113
2202
|
max: "10",
|
|
2114
2203
|
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
2115
|
-
}, null, 42,
|
|
2204
|
+
}, null, 42, Ba), D("span", { class: E(x(J)) }, "px", 2)])])
|
|
2116
2205
|
], 64));
|
|
2117
2206
|
}
|
|
2118
|
-
}),
|
|
2207
|
+
}), Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Ga = /* @__PURE__ */ N({
|
|
2119
2208
|
__name: "HtmlToolbar",
|
|
2120
2209
|
props: { block: {} },
|
|
2121
2210
|
emits: ["update"],
|
|
2122
2211
|
setup(e, { emit: t }) {
|
|
2123
2212
|
let n = t, { t: r } = W();
|
|
2124
|
-
return (t, i) => (s(), y("div",
|
|
2213
|
+
return (t, i) => (s(), y("div", Ha, [
|
|
2125
2214
|
D("label", { class: E(x(q)) }, _(x(r).html.content), 3),
|
|
2126
2215
|
D("textarea", {
|
|
2127
2216
|
value: e.block.content,
|
|
2128
2217
|
placeholder: "<div>...</div>",
|
|
2129
2218
|
rows: "10",
|
|
2130
|
-
class: E(x(
|
|
2219
|
+
class: E(x(Kt)),
|
|
2131
2220
|
onInput: i[0] ||= (e) => n("update", { content: e.target.value })
|
|
2132
|
-
}, null, 42,
|
|
2133
|
-
D("p",
|
|
2221
|
+
}, null, 42, Ua),
|
|
2222
|
+
D("p", Wa, [P(x(Nt), {
|
|
2134
2223
|
size: 12,
|
|
2135
2224
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2136
2225
|
}), M(" " + _(x(r).html.sanitizationHint), 1)])
|
|
2137
2226
|
]));
|
|
2138
2227
|
}
|
|
2139
|
-
}),
|
|
2228
|
+
}), Ka = { class: "tpl:mb-3.5" }, qa = {
|
|
2140
2229
|
key: 0,
|
|
2141
2230
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
2142
2231
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
2143
|
-
},
|
|
2232
|
+
}, Ja = {
|
|
2144
2233
|
key: 0,
|
|
2145
2234
|
class: "tpl:mb-3.5"
|
|
2146
|
-
},
|
|
2235
|
+
}, Ya = ["value", "placeholder"], Xa = { class: "tpl:mb-3.5" }, Za = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Qa = { class: "tpl:mb-3.5" }, $a = ["value"], eo = { value: "full" }, to = { value: "custom" }, no = {
|
|
2147
2236
|
key: 0,
|
|
2148
2237
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2149
|
-
},
|
|
2238
|
+
}, ro = ["value"], io = { class: "tpl:mb-3.5" }, ao = { class: "tpl:mb-3.5" }, oo = 350, so = /* @__PURE__ */ N({
|
|
2150
2239
|
__name: "ImageToolbar",
|
|
2151
2240
|
props: { block: {} },
|
|
2152
2241
|
emits: ["update"],
|
|
@@ -2167,7 +2256,7 @@ var xa = {
|
|
|
2167
2256
|
function T(e) {
|
|
2168
2257
|
if (e === "custom") {
|
|
2169
2258
|
let e = n.block.width;
|
|
2170
|
-
(typeof e != "number" || g.includes(e)) && w("width",
|
|
2259
|
+
(typeof e != "number" || g.includes(e)) && w("width", oo);
|
|
2171
2260
|
return;
|
|
2172
2261
|
}
|
|
2173
2262
|
w("width", e === "full" ? "full" : Number(e));
|
|
@@ -2202,12 +2291,12 @@ var xa = {
|
|
|
2202
2291
|
onFiles: L
|
|
2203
2292
|
});
|
|
2204
2293
|
return (t, n) => (s(), y(j, null, [
|
|
2205
|
-
D("div",
|
|
2294
|
+
D("div", Ka, [D("label", { class: E(x(q)) }, _(x(i).image.imageUrl), 3), D("div", {
|
|
2206
2295
|
ref_key: "dropZoneRef",
|
|
2207
2296
|
ref: A,
|
|
2208
2297
|
class: "tpl:relative"
|
|
2209
2298
|
}, [
|
|
2210
|
-
I.value && (x(R) || N.value) ? (s(), y("div",
|
|
2299
|
+
I.value && (x(R) || N.value) ? (s(), y("div", qa, [N.value ? (s(), y(j, { key: 0 }, [P(x(At), {
|
|
2211
2300
|
class: "tpl-spinner",
|
|
2212
2301
|
size: 18,
|
|
2213
2302
|
"stroke-width": 2
|
|
@@ -2240,14 +2329,14 @@ var xa = {
|
|
|
2240
2329
|
"stroke-width": 1.5
|
|
2241
2330
|
}), M(" " + _(x(i).image.browseMedia), 1)])) : b("", !0)
|
|
2242
2331
|
], 512)]),
|
|
2243
|
-
x(H)(e.block.src, x(o)) ? (s(), y("div",
|
|
2332
|
+
x(H)(e.block.src, x(o)) ? (s(), y("div", Ja, [D("label", { class: E(x(q)) }, [M(_(x(i).image.placeholderUrl) + " ", 1), n[9] ||= D("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, _("(optional)"), -1)], 2), D("input", {
|
|
2244
2333
|
type: "url",
|
|
2245
2334
|
class: E(x(K)),
|
|
2246
2335
|
value: e.block.placeholderUrl || "",
|
|
2247
2336
|
placeholder: x(i).image.placeholderUrlPlaceholder,
|
|
2248
2337
|
onInput: n[1] ||= (e) => w("placeholderUrl", e.target.value)
|
|
2249
|
-
}, null, 42,
|
|
2250
|
-
D("div",
|
|
2338
|
+
}, null, 42, Ya)])) : b("", !0),
|
|
2339
|
+
D("div", Xa, [
|
|
2251
2340
|
D("label", { class: E(x(q)) }, _(x(i).image.altText), 3),
|
|
2252
2341
|
P($, {
|
|
2253
2342
|
"model-value": e.block.alt,
|
|
@@ -2268,32 +2357,32 @@ var xa = {
|
|
|
2268
2357
|
label: x(i).image.decorative,
|
|
2269
2358
|
"onUpdate:modelValue": n[3] ||= (e) => w("decorative", e)
|
|
2270
2359
|
}, {
|
|
2271
|
-
default: f(() => [D("span", null, [M(_(x(i).image.decorative) + " ", 1), D("span",
|
|
2360
|
+
default: f(() => [D("span", null, [M(_(x(i).image.decorative) + " ", 1), D("span", Za, _(x(i).image.decorativeHint), 1)])]),
|
|
2272
2361
|
_: 1
|
|
2273
2362
|
}, 8, ["model-value", "label"])
|
|
2274
2363
|
]),
|
|
2275
|
-
D("div",
|
|
2364
|
+
D("div", Qa, [
|
|
2276
2365
|
D("label", { class: E(x(q)) }, _(x(i).image.width), 3),
|
|
2277
2366
|
D("select", {
|
|
2278
2367
|
class: E(x(K)),
|
|
2279
2368
|
value: S.value,
|
|
2280
2369
|
onChange: n[4] ||= (e) => T(e.target.value)
|
|
2281
2370
|
}, [
|
|
2282
|
-
D("option",
|
|
2371
|
+
D("option", eo, _(x(i).image.fullWidth), 1),
|
|
2283
2372
|
n[10] ||= D("option", { value: "300" }, "300px", -1),
|
|
2284
2373
|
n[11] ||= D("option", { value: "400" }, "400px", -1),
|
|
2285
2374
|
n[12] ||= D("option", { value: "500" }, "500px", -1),
|
|
2286
|
-
D("option",
|
|
2287
|
-
], 42,
|
|
2288
|
-
S.value === "custom" ? (s(), y("div",
|
|
2375
|
+
D("option", to, _(x(i).image.widthCustom), 1)
|
|
2376
|
+
], 42, $a),
|
|
2377
|
+
S.value === "custom" ? (s(), y("div", no, [D("input", {
|
|
2289
2378
|
type: "number",
|
|
2290
2379
|
class: E(x(Y)),
|
|
2291
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2380
|
+
value: typeof e.block.width == "number" ? e.block.width : oo,
|
|
2292
2381
|
min: "20",
|
|
2293
2382
|
onInput: n[5] ||= (e) => O(e.target.value)
|
|
2294
|
-
}, null, 42,
|
|
2383
|
+
}, null, 42, ro), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
|
|
2295
2384
|
]),
|
|
2296
|
-
D("div",
|
|
2385
|
+
D("div", io, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P($t, {
|
|
2297
2386
|
options: [
|
|
2298
2387
|
{
|
|
2299
2388
|
value: "left",
|
|
@@ -2311,7 +2400,7 @@ var xa = {
|
|
|
2311
2400
|
"model-value": e.block.align,
|
|
2312
2401
|
"onUpdate:modelValue": n[6] ||= (e) => w("align", e)
|
|
2313
2402
|
}, null, 8, ["options", "model-value"])]),
|
|
2314
|
-
D("div",
|
|
2403
|
+
D("div", ao, [
|
|
2315
2404
|
D("label", { class: E(x(q)) }, _(x(i).image.linkUrl), 3),
|
|
2316
2405
|
P($, {
|
|
2317
2406
|
"model-value": e.block.linkUrl || "",
|
|
@@ -2329,11 +2418,11 @@ var xa = {
|
|
|
2329
2418
|
])
|
|
2330
2419
|
], 64));
|
|
2331
2420
|
}
|
|
2332
|
-
}),
|
|
2421
|
+
}), co = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, lo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, uo = [
|
|
2333
2422
|
"value",
|
|
2334
2423
|
"placeholder",
|
|
2335
2424
|
"onInput"
|
|
2336
|
-
],
|
|
2425
|
+
], fo = ["title", "onClick"], po = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, mo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ho = ["value"], go = { value: "" }, _o = ["value"], vo = ["value"], yo = /* @__PURE__ */ N({
|
|
2337
2426
|
__name: "MenuToolbar",
|
|
2338
2427
|
props: {
|
|
2339
2428
|
block: {},
|
|
@@ -2397,24 +2486,24 @@ var xa = {
|
|
|
2397
2486
|
}
|
|
2398
2487
|
return (t, n) => (s(), y(j, null, [
|
|
2399
2488
|
P(Q, { label: x(i).menu.items }, {
|
|
2400
|
-
default: f(() => [D("div",
|
|
2489
|
+
default: f(() => [D("div", co, [(s(!0), y(j, null, u(e.block.items, (t) => (s(), y("div", {
|
|
2401
2490
|
key: t.id,
|
|
2402
2491
|
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"
|
|
2403
2492
|
}, [
|
|
2404
|
-
D("div",
|
|
2493
|
+
D("div", lo, [D("input", {
|
|
2405
2494
|
type: "text",
|
|
2406
2495
|
class: E([x(K), "tpl:flex-1"]),
|
|
2407
2496
|
value: t.text,
|
|
2408
2497
|
placeholder: x(i).menu.text,
|
|
2409
2498
|
onInput: (e) => d(t.id, "text", e.target.value)
|
|
2410
|
-
}, null, 42,
|
|
2411
|
-
class: E(x(
|
|
2499
|
+
}, null, 42, uo), D("button", {
|
|
2500
|
+
class: E(x(Gt)),
|
|
2412
2501
|
title: x(i).menu.removeItem,
|
|
2413
2502
|
onClick: (e) => p(t.id)
|
|
2414
2503
|
}, [P(x(Et), {
|
|
2415
2504
|
size: 14,
|
|
2416
2505
|
"stroke-width": 2
|
|
2417
|
-
})], 10,
|
|
2506
|
+
})], 10, fo)]),
|
|
2418
2507
|
P($, {
|
|
2419
2508
|
"model-value": t.url,
|
|
2420
2509
|
type: "url",
|
|
@@ -2425,7 +2514,7 @@ var xa = {
|
|
|
2425
2514
|
"placeholder",
|
|
2426
2515
|
"onUpdate:modelValue"
|
|
2427
2516
|
]),
|
|
2428
|
-
D("div",
|
|
2517
|
+
D("div", po, [(s(!0), y(j, null, u(a.value, (e) => (s(), C(Z, {
|
|
2429
2518
|
key: e.key,
|
|
2430
2519
|
"model-value": t[e.key],
|
|
2431
2520
|
label: e.label,
|
|
@@ -2435,13 +2524,13 @@ var xa = {
|
|
|
2435
2524
|
"label",
|
|
2436
2525
|
"onUpdate:modelValue"
|
|
2437
2526
|
]))), 128))]),
|
|
2438
|
-
D("div",
|
|
2527
|
+
D("div", mo, [D("label", { class: E([x(q), "tpl:!mb-0"]) }, _(x(i).menu.color), 3), P(X, {
|
|
2439
2528
|
"swatch-only": "",
|
|
2440
2529
|
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2441
2530
|
"onUpdate:modelValue": (e) => d(t.id, "color", e)
|
|
2442
2531
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2443
2532
|
]))), 128)), D("button", {
|
|
2444
|
-
class: E(x(
|
|
2533
|
+
class: E(x(Jt)),
|
|
2445
2534
|
onClick: l
|
|
2446
2535
|
}, [P(x(G), {
|
|
2447
2536
|
size: 14,
|
|
@@ -2454,14 +2543,14 @@ var xa = {
|
|
|
2454
2543
|
class: E(x(K)),
|
|
2455
2544
|
value: e.block.fontFamily || "",
|
|
2456
2545
|
onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2457
|
-
}, [D("option",
|
|
2546
|
+
}, [D("option", go, _(x(i).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
|
|
2458
2547
|
key: e.value,
|
|
2459
2548
|
value: e.value
|
|
2460
|
-
}, _(e.label), 9,
|
|
2549
|
+
}, _(e.label), 9, _o))), 128))], 42, ho)]),
|
|
2461
2550
|
_: 1
|
|
2462
2551
|
}, 8, ["label"]),
|
|
2463
2552
|
P(Q, { label: x(i).menu.fontSize }, {
|
|
2464
|
-
default: f(() => [P(
|
|
2553
|
+
default: f(() => [P(en, {
|
|
2465
2554
|
"model-value": e.block.fontSize,
|
|
2466
2555
|
min: 8,
|
|
2467
2556
|
max: 48,
|
|
@@ -2485,7 +2574,7 @@ var xa = {
|
|
|
2485
2574
|
_: 1
|
|
2486
2575
|
}, 8, ["label"]),
|
|
2487
2576
|
P(Q, { label: x(i).menu.textAlign }, {
|
|
2488
|
-
default: f(() => [P(
|
|
2577
|
+
default: f(() => [P($t, {
|
|
2489
2578
|
options: o.value,
|
|
2490
2579
|
"model-value": e.block.textAlign,
|
|
2491
2580
|
"onUpdate:modelValue": n[4] ||= (e) => c("textAlign", e)
|
|
@@ -2498,7 +2587,7 @@ var xa = {
|
|
|
2498
2587
|
class: E(x(K)),
|
|
2499
2588
|
value: e.block.separator,
|
|
2500
2589
|
onInput: n[5] ||= (e) => c("separator", e.target.value)
|
|
2501
|
-
}, null, 42,
|
|
2590
|
+
}, null, 42, vo)]),
|
|
2502
2591
|
_: 1
|
|
2503
2592
|
}, 8, ["label"]),
|
|
2504
2593
|
P(Q, { label: x(i).menu.separatorColor }, {
|
|
@@ -2509,7 +2598,7 @@ var xa = {
|
|
|
2509
2598
|
_: 1
|
|
2510
2599
|
}, 8, ["label"]),
|
|
2511
2600
|
P(Q, { label: x(i).menu.spacing }, {
|
|
2512
|
-
default: f(() => [P(
|
|
2601
|
+
default: f(() => [P(en, {
|
|
2513
2602
|
"model-value": e.block.spacing,
|
|
2514
2603
|
min: 0,
|
|
2515
2604
|
max: 50,
|
|
@@ -2523,11 +2612,11 @@ var xa = {
|
|
|
2523
2612
|
});
|
|
2524
2613
|
//#endregion
|
|
2525
2614
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
2526
|
-
function
|
|
2615
|
+
function bo(e) {
|
|
2527
2616
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
2528
2617
|
}
|
|
2529
|
-
function
|
|
2530
|
-
let n =
|
|
2618
|
+
function xo(e, t) {
|
|
2619
|
+
let n = bo(t);
|
|
2531
2620
|
if (e.length === n) return e;
|
|
2532
2621
|
if (e.length < n) {
|
|
2533
2622
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2538,13 +2627,13 @@ function ho(e, t) {
|
|
|
2538
2627
|
}
|
|
2539
2628
|
//#endregion
|
|
2540
2629
|
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2541
|
-
var
|
|
2630
|
+
var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
|
|
2542
2631
|
key: 0,
|
|
2543
2632
|
class: "tpl:mb-3.5"
|
|
2544
|
-
},
|
|
2633
|
+
}, Eo = { class: "tpl:mb-3.5" }, Do = { class: "tpl:flex tpl:items-stretch" }, Oo = ["value"], ko = { class: "tpl:mb-3.5" }, Ao = {
|
|
2545
2634
|
key: 0,
|
|
2546
2635
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2547
|
-
},
|
|
2636
|
+
}, jo = { class: "tpl:flex tpl:items-stretch" }, Mo = ["value"], No = /* @__PURE__ */ N({
|
|
2548
2637
|
__name: "SectionToolbar",
|
|
2549
2638
|
props: { block: {} },
|
|
2550
2639
|
emits: ["update"],
|
|
@@ -2572,7 +2661,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2572
2661
|
}
|
|
2573
2662
|
]);
|
|
2574
2663
|
function o(e) {
|
|
2575
|
-
let t = e.target.value, i =
|
|
2664
|
+
let t = e.target.value, i = xo(n.block.children, t);
|
|
2576
2665
|
r("update", {
|
|
2577
2666
|
columns: t,
|
|
2578
2667
|
children: i
|
|
@@ -2606,39 +2695,39 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2606
2695
|
f({ borderRadius: Number(e.target.value) });
|
|
2607
2696
|
}
|
|
2608
2697
|
return (t, n) => (s(), y(j, null, [
|
|
2609
|
-
D("div",
|
|
2698
|
+
D("div", So, [D("label", { class: E(x(q)) }, _(x(i).section.columns), 3), D("select", {
|
|
2610
2699
|
class: E(x(K)),
|
|
2611
2700
|
value: e.block.columns,
|
|
2612
2701
|
onChange: o
|
|
2613
2702
|
}, [(s(!0), y(j, null, u(a.value, (e) => (s(), y("option", {
|
|
2614
2703
|
key: e.value,
|
|
2615
2704
|
value: e.value
|
|
2616
|
-
}, _(e.label), 9,
|
|
2617
|
-
e.block.columns === "1" ? b("", !0) : (s(), y("div",
|
|
2705
|
+
}, _(e.label), 9, wo))), 128))], 42, Co)]),
|
|
2706
|
+
e.block.columns === "1" ? b("", !0) : (s(), y("div", To, [P(Z, {
|
|
2618
2707
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2619
2708
|
"model-value": e.block.stackOnMobile !== !1,
|
|
2620
2709
|
label: x(i).section.stackOnMobile,
|
|
2621
2710
|
"onUpdate:modelValue": n[0] ||= (e) => c(e)
|
|
2622
2711
|
}, null, 8, ["model-value", "label"])])),
|
|
2623
|
-
D("div",
|
|
2712
|
+
D("div", Eo, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", Do, [D("input", {
|
|
2624
2713
|
type: "number",
|
|
2625
2714
|
class: E(x(Y)),
|
|
2626
2715
|
value: e.block.borderRadius ?? 0,
|
|
2627
2716
|
min: "0",
|
|
2628
2717
|
max: "50",
|
|
2629
2718
|
onInput: l
|
|
2630
|
-
}, null, 42,
|
|
2631
|
-
D("div",
|
|
2719
|
+
}, null, 42, Oo), D("span", { class: E(x(J)) }, "px", 2)])]),
|
|
2720
|
+
D("div", ko, [P(Z, {
|
|
2632
2721
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2633
2722
|
"model-value": !!e.block.wrapper,
|
|
2634
2723
|
label: x(i).section.wrapperEnable,
|
|
2635
2724
|
"onUpdate:modelValue": n[1] ||= (e) => d(e)
|
|
2636
|
-
}, null, 8, ["model-value", "label"]), e.block.wrapper ? (s(), y("div",
|
|
2725
|
+
}, null, 8, ["model-value", "label"]), e.block.wrapper ? (s(), y("div", Ao, [
|
|
2637
2726
|
D("div", null, [D("label", { class: E(x(q)) }, _(x(i).blockSettings.color), 3), P(X, {
|
|
2638
2727
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2639
2728
|
"onUpdate:modelValue": n[2] ||= (e) => f({ backgroundColor: e })
|
|
2640
2729
|
}, null, 8, ["model-value"])]),
|
|
2641
|
-
P(
|
|
2730
|
+
P(Mi, {
|
|
2642
2731
|
label: x(i).blockSettings.padding,
|
|
2643
2732
|
"model-value": e.block.wrapper.padding ?? {
|
|
2644
2733
|
top: 0,
|
|
@@ -2648,18 +2737,18 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2648
2737
|
},
|
|
2649
2738
|
"onUpdate:modelValue": p
|
|
2650
2739
|
}, null, 8, ["label", "model-value"]),
|
|
2651
|
-
D("div", null, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div",
|
|
2740
|
+
D("div", null, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", jo, [D("input", {
|
|
2652
2741
|
type: "number",
|
|
2653
2742
|
class: E(x(Y)),
|
|
2654
2743
|
value: e.block.wrapper.borderRadius ?? 0,
|
|
2655
2744
|
min: "0",
|
|
2656
2745
|
max: "50",
|
|
2657
2746
|
onInput: m
|
|
2658
|
-
}, null, 42,
|
|
2747
|
+
}, null, 42, Mo), D("span", { class: E(x(J)) }, "px", 2)])])
|
|
2659
2748
|
])) : b("", !0)])
|
|
2660
2749
|
], 64));
|
|
2661
2750
|
}
|
|
2662
|
-
}),
|
|
2751
|
+
}), Po = { class: "tpl:mb-3.5" }, Fo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Io = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Lo = ["value", "onChange"], Ro = ["value"], zo = ["title", "onClick"], Bo = { class: "tpl:mb-3.5" }, Vo = ["value"], Ho = { value: "solid" }, Uo = { value: "outlined" }, Wo = { value: "rounded" }, Go = { value: "square" }, Ko = { value: "circle" }, qo = { class: "tpl:mb-3.5" }, Jo = { class: "tpl:mb-3.5" }, Yo = { class: "tpl:flex tpl:items-stretch" }, Xo = ["value"], Zo = { class: "tpl:mb-3.5" }, Qo = /* @__PURE__ */ N({
|
|
2663
2752
|
__name: "SocialToolbar",
|
|
2664
2753
|
props: { block: {} },
|
|
2665
2754
|
emits: ["update"],
|
|
@@ -2687,10 +2776,10 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2687
2776
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2688
2777
|
}
|
|
2689
2778
|
return (t, n) => (s(), y(j, null, [
|
|
2690
|
-
D("div",
|
|
2779
|
+
D("div", Po, [D("label", { class: E(x(q)) }, _(x(i).social.icons), 3), D("div", Fo, [(s(!0), y(j, null, u(e.block.icons, (e) => (s(), y("div", {
|
|
2691
2780
|
key: e.id,
|
|
2692
2781
|
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"
|
|
2693
|
-
}, [D("div",
|
|
2782
|
+
}, [D("div", Io, [D("select", {
|
|
2694
2783
|
"data-testid": "social-platform-select",
|
|
2695
2784
|
class: E([x(K), "tpl:flex-1"]),
|
|
2696
2785
|
value: e.platform,
|
|
@@ -2698,14 +2787,14 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2698
2787
|
}, [(s(!0), y(j, null, u(x(Se), (e) => (s(), y("option", {
|
|
2699
2788
|
key: e,
|
|
2700
2789
|
value: e
|
|
2701
|
-
}, _(x(i).social.platforms[e]), 9,
|
|
2702
|
-
class: E(x(
|
|
2790
|
+
}, _(x(i).social.platforms[e]), 9, Ro))), 128))], 42, Lo), D("button", {
|
|
2791
|
+
class: E(x(Gt)),
|
|
2703
2792
|
title: x(i).social.removeIcon,
|
|
2704
2793
|
onClick: (t) => l(e.id)
|
|
2705
2794
|
}, [P(x(Et), {
|
|
2706
2795
|
size: 14,
|
|
2707
2796
|
"stroke-width": 2
|
|
2708
|
-
})], 10,
|
|
2797
|
+
})], 10, zo)]), P($, {
|
|
2709
2798
|
"model-value": e.url,
|
|
2710
2799
|
type: "url",
|
|
2711
2800
|
placeholder: x(i).social.urlPlaceholder,
|
|
@@ -2715,24 +2804,24 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2715
2804
|
"placeholder",
|
|
2716
2805
|
"onUpdate:modelValue"
|
|
2717
2806
|
])]))), 128)), D("button", {
|
|
2718
|
-
class: E(x(
|
|
2807
|
+
class: E(x(Jt)),
|
|
2719
2808
|
onClick: o
|
|
2720
2809
|
}, [P(x(G), {
|
|
2721
2810
|
size: 14,
|
|
2722
2811
|
"stroke-width": 2
|
|
2723
2812
|
}), M(" " + _(x(i).social.addIcon), 1)], 2)])]),
|
|
2724
|
-
D("div",
|
|
2813
|
+
D("div", Bo, [D("label", { class: E(x(q)) }, _(x(i).social.style), 3), D("select", {
|
|
2725
2814
|
class: E(x(K)),
|
|
2726
2815
|
value: e.block.iconStyle,
|
|
2727
2816
|
onChange: n[0] ||= (e) => a("iconStyle", e.target.value)
|
|
2728
2817
|
}, [
|
|
2729
|
-
D("option",
|
|
2730
|
-
D("option",
|
|
2731
|
-
D("option",
|
|
2732
|
-
D("option",
|
|
2733
|
-
D("option",
|
|
2734
|
-
], 42,
|
|
2735
|
-
D("div",
|
|
2818
|
+
D("option", Ho, _(x(i).social.styleSolid), 1),
|
|
2819
|
+
D("option", Uo, _(x(i).social.styleOutlined), 1),
|
|
2820
|
+
D("option", Wo, _(x(i).social.styleRounded), 1),
|
|
2821
|
+
D("option", Go, _(x(i).social.styleSquare), 1),
|
|
2822
|
+
D("option", Ko, _(x(i).social.styleCircle), 1)
|
|
2823
|
+
], 42, Vo)]),
|
|
2824
|
+
D("div", qo, [D("label", { class: E(x(q)) }, _(x(i).social.size), 3), P($t, {
|
|
2736
2825
|
options: [
|
|
2737
2826
|
{
|
|
2738
2827
|
value: "small",
|
|
@@ -2750,15 +2839,15 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2750
2839
|
"model-value": e.block.iconSize,
|
|
2751
2840
|
"onUpdate:modelValue": n[1] ||= (e) => a("iconSize", e)
|
|
2752
2841
|
}, null, 8, ["options", "model-value"])]),
|
|
2753
|
-
D("div",
|
|
2842
|
+
D("div", Jo, [D("label", { class: E(x(q)) }, _(x(i).social.spacing), 3), D("div", Yo, [D("input", {
|
|
2754
2843
|
type: "number",
|
|
2755
2844
|
class: E(x(Y)),
|
|
2756
2845
|
value: e.block.spacing,
|
|
2757
2846
|
min: "0",
|
|
2758
2847
|
max: "50",
|
|
2759
2848
|
onInput: n[2] ||= (e) => a("spacing", Number(e.target.value))
|
|
2760
|
-
}, null, 42,
|
|
2761
|
-
D("div",
|
|
2849
|
+
}, null, 42, Xo), D("span", { class: E(x(J)) }, "px", 2)])]),
|
|
2850
|
+
D("div", Zo, [D("label", { class: E(x(q)) }, _(x(i).social.align), 3), P($t, {
|
|
2762
2851
|
options: [
|
|
2763
2852
|
{
|
|
2764
2853
|
value: "left",
|
|
@@ -2781,22 +2870,22 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2781
2870
|
}, null, 8, ["options", "model-value"])])
|
|
2782
2871
|
], 64));
|
|
2783
2872
|
}
|
|
2784
|
-
}),
|
|
2873
|
+
}), $o = { class: "tpl:mb-3.5" }, es = { class: "tpl:flex tpl:items-stretch" }, ts = ["value"], ns = ["value"], rs = /* @__PURE__ */ N({
|
|
2785
2874
|
__name: "SpacerToolbar",
|
|
2786
2875
|
props: { block: {} },
|
|
2787
2876
|
emits: ["update"],
|
|
2788
2877
|
setup(e, { emit: t }) {
|
|
2789
2878
|
let n = t, { t: r } = W();
|
|
2790
|
-
return (t, i) => (s(), y("div",
|
|
2879
|
+
return (t, i) => (s(), y("div", $o, [
|
|
2791
2880
|
D("label", { class: E(x(q)) }, _(x(r).spacer.height), 3),
|
|
2792
|
-
D("div",
|
|
2881
|
+
D("div", es, [D("input", {
|
|
2793
2882
|
type: "number",
|
|
2794
2883
|
class: E(x(Y)),
|
|
2795
2884
|
value: e.block.height,
|
|
2796
2885
|
min: "10",
|
|
2797
2886
|
max: "100",
|
|
2798
2887
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2799
|
-
}, null, 42,
|
|
2888
|
+
}, null, 42, ts), D("span", { class: E(x(J)) }, "px", 2)]),
|
|
2800
2889
|
D("input", {
|
|
2801
2890
|
type: "range",
|
|
2802
2891
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2804,13 +2893,13 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2804
2893
|
min: "10",
|
|
2805
2894
|
max: "100",
|
|
2806
2895
|
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2807
|
-
}, null, 40,
|
|
2896
|
+
}, null, 40, ns)
|
|
2808
2897
|
]));
|
|
2809
2898
|
}
|
|
2810
|
-
}),
|
|
2899
|
+
}), is = { class: "tpl:mb-3.5" }, as = { class: "tpl:flex tpl:items-center tpl:gap-3" }, os = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ss = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, cs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ls = ["disabled"], us = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ds = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, fs = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ps = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ms = ["disabled"], hs = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, gs = { class: "tpl:mb-3.5" }, _s = {
|
|
2811
2900
|
key: 0,
|
|
2812
2901
|
class: "tpl:mb-3.5"
|
|
2813
|
-
},
|
|
2902
|
+
}, vs = { class: "tpl:mb-3.5" }, ys = { class: "tpl:mb-3.5" }, bs = { class: "tpl:flex tpl:items-stretch" }, xs = ["value"], Ss = { class: "tpl:mb-3.5" }, Cs = { class: "tpl:flex tpl:items-stretch" }, ws = ["value"], Ts = { class: "tpl:mb-3.5" }, Es = ["value"], Ds = { value: "" }, Os = ["value"], ks = { class: "tpl:mb-3.5" }, As = { class: "tpl:flex tpl:items-stretch" }, js = ["value"], Ms = { class: "tpl:mb-3.5" }, Ns = { class: "tpl:mb-3.5" }, Ps = /* @__PURE__ */ N({
|
|
2814
2903
|
__name: "TableToolbar",
|
|
2815
2904
|
props: {
|
|
2816
2905
|
block: {},
|
|
@@ -2853,7 +2942,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2853
2942
|
r("update", { rows: t });
|
|
2854
2943
|
}
|
|
2855
2944
|
return (t, n) => (s(), y(j, null, [
|
|
2856
|
-
D("div",
|
|
2945
|
+
D("div", is, [D("label", { class: E(x(q)) }, _(x(i).table.dimensions), 3), D("div", as, [D("div", os, [D("span", ss, _(x(i).table.rows), 1), D("div", cs, [
|
|
2857
2946
|
D("button", {
|
|
2858
2947
|
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",
|
|
2859
2948
|
disabled: e.block.rows.length <= 1,
|
|
@@ -2861,8 +2950,8 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2861
2950
|
}, [P(x(et), {
|
|
2862
2951
|
size: 12,
|
|
2863
2952
|
"stroke-width": 2
|
|
2864
|
-
})], 8,
|
|
2865
|
-
D("span",
|
|
2953
|
+
})], 8, ls),
|
|
2954
|
+
D("span", us, _(e.block.rows.length), 1),
|
|
2866
2955
|
D("button", {
|
|
2867
2956
|
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)]",
|
|
2868
2957
|
onClick: c
|
|
@@ -2870,7 +2959,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2870
2959
|
size: 12,
|
|
2871
2960
|
"stroke-width": 2
|
|
2872
2961
|
})])
|
|
2873
|
-
])]), D("div",
|
|
2962
|
+
])]), D("div", ds, [D("span", fs, _(x(i).table.columns), 1), D("div", ps, [
|
|
2874
2963
|
D("button", {
|
|
2875
2964
|
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",
|
|
2876
2965
|
disabled: a.value <= 1,
|
|
@@ -2878,8 +2967,8 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2878
2967
|
}, [P(x(et), {
|
|
2879
2968
|
size: 12,
|
|
2880
2969
|
"stroke-width": 2
|
|
2881
|
-
})], 8,
|
|
2882
|
-
D("span",
|
|
2970
|
+
})], 8, ms),
|
|
2971
|
+
D("span", hs, _(a.value), 1),
|
|
2883
2972
|
D("button", {
|
|
2884
2973
|
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)]",
|
|
2885
2974
|
onClick: d
|
|
@@ -2888,15 +2977,15 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2888
2977
|
"stroke-width": 2
|
|
2889
2978
|
})])
|
|
2890
2979
|
])])])]),
|
|
2891
|
-
D("div",
|
|
2980
|
+
D("div", gs, [P(Z, {
|
|
2892
2981
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2893
2982
|
"model-value": e.block.hasHeaderRow,
|
|
2894
2983
|
label: x(i).table.hasHeaderRow,
|
|
2895
2984
|
"onUpdate:modelValue": n[2] ||= (e) => o("hasHeaderRow", e)
|
|
2896
2985
|
}, null, 8, ["model-value", "label"])]),
|
|
2897
|
-
e.block.hasHeaderRow ? (s(), y("div",
|
|
2986
|
+
e.block.hasHeaderRow ? (s(), y("div", _s, [D("label", { class: E(x(q)) }, _(x(i).table.headerBackgroundColor), 3), P(X, {
|
|
2898
2987
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2899
|
-
"seed-color": x(
|
|
2988
|
+
"seed-color": x(qt),
|
|
2900
2989
|
placeholder: x(i).table.noHeaderBg,
|
|
2901
2990
|
"onUpdate:modelValue": n[3] ||= (e) => o("headerBackgroundColor", e || null)
|
|
2902
2991
|
}, null, 8, [
|
|
@@ -2904,47 +2993,47 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2904
2993
|
"seed-color",
|
|
2905
2994
|
"placeholder"
|
|
2906
2995
|
])])) : b("", !0),
|
|
2907
|
-
D("div",
|
|
2996
|
+
D("div", vs, [D("label", { class: E(x(q)) }, _(x(i).table.borderColor), 3), P(X, {
|
|
2908
2997
|
"model-value": e.block.borderColor,
|
|
2909
2998
|
"onUpdate:modelValue": n[4] ||= (e) => o("borderColor", e)
|
|
2910
2999
|
}, null, 8, ["model-value"])]),
|
|
2911
|
-
D("div",
|
|
3000
|
+
D("div", ys, [D("label", { class: E(x(q)) }, _(x(i).table.borderWidth), 3), D("div", bs, [D("input", {
|
|
2912
3001
|
type: "number",
|
|
2913
3002
|
class: E(x(Y)),
|
|
2914
3003
|
value: e.block.borderWidth,
|
|
2915
3004
|
min: "0",
|
|
2916
3005
|
max: "10",
|
|
2917
3006
|
onInput: n[5] ||= (e) => o("borderWidth", Number(e.target.value))
|
|
2918
|
-
}, null, 42,
|
|
2919
|
-
D("div",
|
|
3007
|
+
}, null, 42, xs), D("span", { class: E(x(J)) }, "px", 2)])]),
|
|
3008
|
+
D("div", Ss, [D("label", { class: E(x(q)) }, _(x(i).table.cellPadding), 3), D("div", Cs, [D("input", {
|
|
2920
3009
|
type: "number",
|
|
2921
3010
|
class: E(x(Y)),
|
|
2922
3011
|
value: e.block.cellPadding,
|
|
2923
3012
|
min: "0",
|
|
2924
3013
|
max: "30",
|
|
2925
3014
|
onInput: n[6] ||= (e) => o("cellPadding", Number(e.target.value))
|
|
2926
|
-
}, null, 42,
|
|
2927
|
-
D("div",
|
|
3015
|
+
}, null, 42, ws), D("span", { class: E(x(J)) }, "px", 2)])]),
|
|
3016
|
+
D("div", Ts, [D("label", { class: E(x(q)) }, _(x(i).table.fontFamily), 3), D("select", {
|
|
2928
3017
|
class: E(x(K)),
|
|
2929
3018
|
value: e.block.fontFamily || "",
|
|
2930
3019
|
onChange: n[7] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
2931
|
-
}, [D("option",
|
|
3020
|
+
}, [D("option", Ds, _(x(i).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
|
|
2932
3021
|
key: e.value,
|
|
2933
3022
|
value: e.value
|
|
2934
|
-
}, _(e.label), 9,
|
|
2935
|
-
D("div",
|
|
3023
|
+
}, _(e.label), 9, Os))), 128))], 42, Es)]),
|
|
3024
|
+
D("div", ks, [D("label", { class: E(x(q)) }, _(x(i).table.fontSize), 3), D("div", As, [D("input", {
|
|
2936
3025
|
type: "number",
|
|
2937
3026
|
class: E(x(Y)),
|
|
2938
3027
|
value: e.block.fontSize,
|
|
2939
3028
|
min: "10",
|
|
2940
3029
|
max: "32",
|
|
2941
3030
|
onInput: n[8] ||= (e) => o("fontSize", Number(e.target.value))
|
|
2942
|
-
}, null, 42,
|
|
2943
|
-
D("div",
|
|
3031
|
+
}, null, 42, js), D("span", { class: E(x(J)) }, "px", 2)])]),
|
|
3032
|
+
D("div", Ms, [D("label", { class: E(x(q)) }, _(x(i).table.color), 3), P(X, {
|
|
2944
3033
|
"model-value": e.block.color ?? "",
|
|
2945
3034
|
"onUpdate:modelValue": n[9] ||= (e) => o("color", e || void 0)
|
|
2946
3035
|
}, null, 8, ["model-value"])]),
|
|
2947
|
-
D("div",
|
|
3036
|
+
D("div", Ns, [D("label", { class: E(x(q)) }, _(x(i).table.textAlign), 3), P($t, {
|
|
2948
3037
|
options: [
|
|
2949
3038
|
{
|
|
2950
3039
|
value: "left",
|
|
@@ -2967,7 +3056,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2967
3056
|
}, null, 8, ["options", "model-value"])])
|
|
2968
3057
|
], 64));
|
|
2969
3058
|
}
|
|
2970
|
-
}),
|
|
3059
|
+
}), Fs = { class: "tpl:mb-3.5" }, Is = ["value"], Ls = { value: 1 }, Rs = { value: 2 }, zs = { value: 3 }, Bs = { value: 4 }, Vs = { class: "tpl:mb-3.5" }, Hs = ["value"], Us = { value: "" }, Ws = ["value"], Gs = { class: "tpl:mb-3.5" }, Ks = { class: "tpl:mb-3.5" }, qs = /* @__PURE__ */ N({
|
|
2971
3060
|
__name: "TitleToolbar",
|
|
2972
3061
|
props: {
|
|
2973
3062
|
block: {},
|
|
@@ -2980,29 +3069,29 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
2980
3069
|
n("update", { [e]: t });
|
|
2981
3070
|
}
|
|
2982
3071
|
return (t, n) => (s(), y(j, null, [
|
|
2983
|
-
D("div",
|
|
3072
|
+
D("div", Fs, [D("label", { class: E(x(q)) }, _(x(r).title.level), 3), D("select", {
|
|
2984
3073
|
class: E(x(K)),
|
|
2985
3074
|
value: e.block.level,
|
|
2986
3075
|
onChange: n[0] ||= (e) => i("level", Number(e.target.value))
|
|
2987
3076
|
}, [
|
|
2988
|
-
D("option",
|
|
2989
|
-
D("option",
|
|
2990
|
-
D("option",
|
|
2991
|
-
D("option",
|
|
2992
|
-
], 42,
|
|
2993
|
-
D("div",
|
|
3077
|
+
D("option", Ls, _(x(r).title.heading1), 1),
|
|
3078
|
+
D("option", Rs, _(x(r).title.heading2), 1),
|
|
3079
|
+
D("option", zs, _(x(r).title.heading3), 1),
|
|
3080
|
+
D("option", Bs, _(x(r).title.heading4), 1)
|
|
3081
|
+
], 42, Is)]),
|
|
3082
|
+
D("div", Vs, [D("label", { class: E(x(q)) }, _(x(r).title.fontFamily), 3), D("select", {
|
|
2994
3083
|
class: E(x(K)),
|
|
2995
3084
|
value: e.block.fontFamily || "",
|
|
2996
3085
|
onChange: n[1] ||= (e) => i("fontFamily", e.target.value || void 0)
|
|
2997
|
-
}, [D("option",
|
|
3086
|
+
}, [D("option", Us, _(x(r).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
|
|
2998
3087
|
key: e.value,
|
|
2999
3088
|
value: e.value
|
|
3000
|
-
}, _(e.label), 9,
|
|
3001
|
-
D("div",
|
|
3089
|
+
}, _(e.label), 9, Ws))), 128))], 42, Hs)]),
|
|
3090
|
+
D("div", Gs, [D("label", { class: E(x(q)) }, _(x(r).title.color), 3), P(X, {
|
|
3002
3091
|
"model-value": e.block.color ?? "",
|
|
3003
3092
|
"onUpdate:modelValue": n[2] ||= (e) => i("color", e || void 0)
|
|
3004
3093
|
}, null, 8, ["model-value"])]),
|
|
3005
|
-
D("div",
|
|
3094
|
+
D("div", Ks, [D("label", { class: E(x(q)) }, _(x(r).title.align), 3), P($t, {
|
|
3006
3095
|
options: [
|
|
3007
3096
|
{
|
|
3008
3097
|
value: "left",
|
|
@@ -3025,14 +3114,14 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3025
3114
|
}, null, 8, ["options", "model-value"])])
|
|
3026
3115
|
], 64));
|
|
3027
3116
|
}
|
|
3028
|
-
}),
|
|
3117
|
+
}), Js = { class: "tpl:mb-3.5" }, Ys = {
|
|
3029
3118
|
key: 0,
|
|
3030
3119
|
class: "tpl:mb-3.5"
|
|
3031
|
-
},
|
|
3120
|
+
}, Xs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Zs = [
|
|
3032
3121
|
"value",
|
|
3033
3122
|
"placeholder",
|
|
3034
3123
|
"title"
|
|
3035
|
-
],
|
|
3124
|
+
], Qs = { class: "tpl:mb-3.5" }, $s = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ec = { class: "tpl:mb-3.5" }, tc = { class: "tpl:mb-3.5" }, nc = ["value"], rc = { value: "full" }, ic = { class: "tpl:mb-3.5" }, ac = /* @__PURE__ */ N({
|
|
3036
3125
|
__name: "VideoToolbar",
|
|
3037
3126
|
props: { block: {} },
|
|
3038
3127
|
emits: ["update"],
|
|
@@ -3048,7 +3137,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3048
3137
|
c.alive && e && (h("thumbnailUrl", e.url), f.value = !0, p());
|
|
3049
3138
|
}
|
|
3050
3139
|
return (t, n) => (s(), y(j, null, [
|
|
3051
|
-
D("div",
|
|
3140
|
+
D("div", Js, [
|
|
3052
3141
|
D("label", { class: E(x(q)) }, _(x(i).video.videoUrl), 3),
|
|
3053
3142
|
P($, {
|
|
3054
3143
|
"model-value": e.block.url,
|
|
@@ -3064,16 +3153,16 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3064
3153
|
"onUpdate:modelValue": n[1] ||= (e) => h("openInNewTab", e)
|
|
3065
3154
|
}, null, 8, ["model-value", "label"])) : b("", !0)
|
|
3066
3155
|
]),
|
|
3067
|
-
u.value ? (s(), y("div",
|
|
3156
|
+
u.value ? (s(), y("div", Ys, [D("label", { class: E(x(q)) }, [M(_(x(i).video.placeholderUrl) + " ", 1), D("span", Xs, _(x(i).video.optional), 1)], 2), D("input", {
|
|
3068
3157
|
type: "url",
|
|
3069
3158
|
class: E(x(K)),
|
|
3070
3159
|
value: e.block.placeholderUrl || "",
|
|
3071
3160
|
placeholder: x(i).video.placeholderUrlPlaceholder,
|
|
3072
3161
|
title: x(i).video.placeholderUrlTooltip,
|
|
3073
3162
|
onInput: n[2] ||= (e) => h("placeholderUrl", e.target.value)
|
|
3074
|
-
}, null, 42,
|
|
3075
|
-
D("div",
|
|
3076
|
-
D("label", { class: E(x(q)) }, [M(_(x(i).video.customThumbnail) + " ", 1), D("span",
|
|
3163
|
+
}, null, 42, Zs)])) : b("", !0),
|
|
3164
|
+
D("div", Qs, [
|
|
3165
|
+
D("label", { class: E(x(q)) }, [M(_(x(i).video.customThumbnail) + " ", 1), D("span", $s, _(x(i).video.optional), 1)], 2),
|
|
3077
3166
|
P($, {
|
|
3078
3167
|
"model-value": e.block.thumbnailUrl,
|
|
3079
3168
|
type: "url",
|
|
@@ -3099,23 +3188,23 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3099
3188
|
"stroke-width": 1.5
|
|
3100
3189
|
}), M(" " + _(x(i).image.browseMedia), 1)])) : b("", !0)
|
|
3101
3190
|
]),
|
|
3102
|
-
D("div",
|
|
3191
|
+
D("div", ec, [D("label", { class: E(x(q)) }, _(x(i).video.altText), 3), P($, {
|
|
3103
3192
|
"model-value": e.block.alt,
|
|
3104
3193
|
type: "text",
|
|
3105
3194
|
placeholder: x(i).video.altTextPlaceholder,
|
|
3106
3195
|
"onUpdate:modelValue": n[4] ||= (e) => h("alt", e)
|
|
3107
3196
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
3108
|
-
D("div",
|
|
3197
|
+
D("div", tc, [D("label", { class: E(x(q)) }, _(x(i).video.width), 3), D("select", {
|
|
3109
3198
|
class: E(x(K)),
|
|
3110
3199
|
value: e.block.width,
|
|
3111
3200
|
onChange: n[5] ||= (e) => h("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
3112
3201
|
}, [
|
|
3113
|
-
D("option",
|
|
3202
|
+
D("option", rc, _(x(i).video.fullWidth), 1),
|
|
3114
3203
|
n[7] ||= D("option", { value: "300" }, "300px", -1),
|
|
3115
3204
|
n[8] ||= D("option", { value: "400" }, "400px", -1),
|
|
3116
3205
|
n[9] ||= D("option", { value: "500" }, "500px", -1)
|
|
3117
|
-
], 42,
|
|
3118
|
-
D("div",
|
|
3206
|
+
], 42, nc)]),
|
|
3207
|
+
D("div", ic, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P($t, {
|
|
3119
3208
|
options: [
|
|
3120
3209
|
{
|
|
3121
3210
|
value: "left",
|
|
@@ -3135,7 +3224,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3135
3224
|
}, null, 8, ["options", "model-value"])])
|
|
3136
3225
|
], 64));
|
|
3137
3226
|
}
|
|
3138
|
-
}),
|
|
3227
|
+
}), oc = ["aria-label"], sc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, cc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, lc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, uc = { class: "tpl:flex tpl:gap-1" }, dc = ["title"], fc = ["title"], pc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, mc = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
|
|
3139
3228
|
__name: "Toolbar",
|
|
3140
3229
|
props: { block: {} },
|
|
3141
3230
|
emits: [
|
|
@@ -3153,7 +3242,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3153
3242
|
return (t, r) => (s(), y("aside", {
|
|
3154
3243
|
"aria-label": x(a).landmarks.blockToolbar,
|
|
3155
3244
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
3156
|
-
}, [D("div",
|
|
3245
|
+
}, [D("div", sc, [D("div", cc, [x(Wt)[u.value] ? (s(), C(o(x(Wt)[u.value]), {
|
|
3157
3246
|
key: 0,
|
|
3158
3247
|
size: 16,
|
|
3159
3248
|
"stroke-width": 1.5
|
|
@@ -3161,70 +3250,70 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3161
3250
|
key: 1,
|
|
3162
3251
|
size: 16,
|
|
3163
3252
|
"stroke-width": 1.5
|
|
3164
|
-
})) : b("", !0), D("h3",
|
|
3253
|
+
})) : b("", !0), D("h3", lc, _(m.value), 1)]), D("div", uc, [D("button", {
|
|
3165
3254
|
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)]",
|
|
3166
3255
|
title: x(a).toolbar.duplicate,
|
|
3167
3256
|
onClick: r[0] ||= (e) => i("duplicate")
|
|
3168
3257
|
}, [P(x(It), {
|
|
3169
3258
|
size: 14,
|
|
3170
3259
|
"stroke-width": 2
|
|
3171
|
-
})], 8,
|
|
3260
|
+
})], 8, dc), D("button", {
|
|
3172
3261
|
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)]",
|
|
3173
3262
|
title: x(a).toolbar.delete,
|
|
3174
3263
|
onClick: r[1] ||= (e) => i("delete")
|
|
3175
3264
|
}, [P(x(bt), {
|
|
3176
3265
|
size: 14,
|
|
3177
3266
|
"stroke-width": 2
|
|
3178
|
-
})], 8,
|
|
3267
|
+
})], 8, fc)])]), D("div", pc, [f.value ? (s(), C(Fa, {
|
|
3179
3268
|
key: 0,
|
|
3180
3269
|
block: e.block,
|
|
3181
3270
|
onUpdateFieldValues: r[2] ||= (e) => i("update", { fieldValues: e }),
|
|
3182
3271
|
onUpdateDataSourceFetched: r[3] ||= (e) => i("update", { dataSourceFetched: e })
|
|
3183
|
-
}, null, 8, ["block"])) : u.value === "section" ? (s(), C(
|
|
3272
|
+
}, null, 8, ["block"])) : u.value === "section" ? (s(), C(No, {
|
|
3184
3273
|
key: 1,
|
|
3185
3274
|
block: e.block,
|
|
3186
3275
|
onUpdate: S
|
|
3187
|
-
}, null, 8, ["block"])) : u.value === "title" ? (s(), C(
|
|
3276
|
+
}, null, 8, ["block"])) : u.value === "title" ? (s(), C(qs, {
|
|
3188
3277
|
key: 2,
|
|
3189
3278
|
block: e.block,
|
|
3190
3279
|
"font-families": x(g),
|
|
3191
3280
|
onUpdate: S
|
|
3192
|
-
}, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (s(), y(j, { key: 3 }, [], 64)) : u.value === "image" ? (s(), C(
|
|
3281
|
+
}, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (s(), y(j, { key: 3 }, [], 64)) : u.value === "image" ? (s(), C(so, {
|
|
3193
3282
|
key: 4,
|
|
3194
3283
|
block: e.block,
|
|
3195
3284
|
onUpdate: S
|
|
3196
|
-
}, null, 8, ["block"])) : u.value === "video" ? (s(), C(
|
|
3285
|
+
}, null, 8, ["block"])) : u.value === "video" ? (s(), C(ac, {
|
|
3197
3286
|
key: 5,
|
|
3198
3287
|
block: e.block,
|
|
3199
3288
|
onUpdate: S
|
|
3200
|
-
}, null, 8, ["block"])) : u.value === "button" ? (s(), C(
|
|
3289
|
+
}, null, 8, ["block"])) : u.value === "button" ? (s(), C(ci, {
|
|
3201
3290
|
key: 6,
|
|
3202
3291
|
block: e.block,
|
|
3203
3292
|
"font-families": x(g),
|
|
3204
3293
|
onUpdate: S
|
|
3205
|
-
}, null, 8, ["block", "font-families"])) : u.value === "divider" ? (s(), C(
|
|
3294
|
+
}, null, 8, ["block", "font-families"])) : u.value === "divider" ? (s(), C(Va, {
|
|
3206
3295
|
key: 7,
|
|
3207
3296
|
block: e.block,
|
|
3208
3297
|
onUpdate: S
|
|
3209
|
-
}, null, 8, ["block"])) : u.value === "social" ? (s(), C(
|
|
3298
|
+
}, null, 8, ["block"])) : u.value === "social" ? (s(), C(Qo, {
|
|
3210
3299
|
key: 8,
|
|
3211
3300
|
block: e.block,
|
|
3212
3301
|
onUpdate: S
|
|
3213
|
-
}, null, 8, ["block"])) : u.value === "menu" ? (s(), C(
|
|
3302
|
+
}, null, 8, ["block"])) : u.value === "menu" ? (s(), C(yo, {
|
|
3214
3303
|
key: 9,
|
|
3215
3304
|
block: e.block,
|
|
3216
3305
|
"font-families": x(g),
|
|
3217
3306
|
onUpdate: S
|
|
3218
|
-
}, null, 8, ["block", "font-families"])) : u.value === "table" ? (s(), C(
|
|
3307
|
+
}, null, 8, ["block", "font-families"])) : u.value === "table" ? (s(), C(Ps, {
|
|
3219
3308
|
key: 10,
|
|
3220
3309
|
block: e.block,
|
|
3221
3310
|
"font-families": x(g),
|
|
3222
3311
|
onUpdate: S
|
|
3223
|
-
}, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (s(), C(
|
|
3312
|
+
}, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (s(), C(rs, {
|
|
3224
3313
|
key: 11,
|
|
3225
3314
|
block: e.block,
|
|
3226
3315
|
onUpdate: S
|
|
3227
|
-
}, null, 8, ["block"])) : u.value === "html" ? (s(), C(
|
|
3316
|
+
}, null, 8, ["block"])) : u.value === "html" ? (s(), C(Ga, {
|
|
3228
3317
|
key: 12,
|
|
3229
3318
|
block: e.block,
|
|
3230
3319
|
onUpdate: S
|
|
@@ -3233,52 +3322,52 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3233
3322
|
block: e.block,
|
|
3234
3323
|
"font-families": x(g),
|
|
3235
3324
|
onUpdate: S
|
|
3236
|
-
}, null, 8, ["block", "font-families"])) : b("", !0), P(
|
|
3325
|
+
}, null, 8, ["block", "font-families"])) : b("", !0), P($i, {
|
|
3237
3326
|
block: e.block,
|
|
3238
3327
|
"is-first-section": u.value === "paragraph",
|
|
3239
3328
|
onUpdate: S
|
|
3240
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
3329
|
+
}, null, 8, ["block", "is-first-section"])])], 8, oc));
|
|
3241
3330
|
}
|
|
3242
|
-
}), [["__scopeId", "data-v-2ac88283"]]),
|
|
3331
|
+
}), [["__scopeId", "data-v-2ac88283"]]), hc = ["aria-label"], gc = {
|
|
3243
3332
|
role: "tablist",
|
|
3244
3333
|
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"
|
|
3245
|
-
},
|
|
3334
|
+
}, _c = [
|
|
3246
3335
|
"aria-selected",
|
|
3247
3336
|
"aria-label",
|
|
3248
3337
|
"title"
|
|
3249
|
-
],
|
|
3338
|
+
], vc = { key: 0 }, yc = [
|
|
3250
3339
|
"aria-selected",
|
|
3251
3340
|
"aria-label",
|
|
3252
3341
|
"title"
|
|
3253
|
-
],
|
|
3342
|
+
], bc = { key: 0 }, xc = [
|
|
3254
3343
|
"aria-selected",
|
|
3255
3344
|
"aria-label",
|
|
3256
3345
|
"title"
|
|
3257
|
-
],
|
|
3346
|
+
], Sc = { key: 0 }, Cc = {
|
|
3258
3347
|
key: 1,
|
|
3259
3348
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
3260
|
-
},
|
|
3349
|
+
}, wc = {
|
|
3261
3350
|
key: 0,
|
|
3262
3351
|
id: "tpl-tabpanel-content",
|
|
3263
3352
|
role: "tabpanel",
|
|
3264
3353
|
"aria-labelledby": "tpl-tab-content",
|
|
3265
3354
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3266
|
-
},
|
|
3355
|
+
}, Tc = {
|
|
3267
3356
|
key: 1,
|
|
3268
3357
|
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)]"
|
|
3269
|
-
},
|
|
3358
|
+
}, Ec = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Dc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Oc = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, kc = {
|
|
3270
3359
|
key: 1,
|
|
3271
3360
|
id: "tpl-tabpanel-settings",
|
|
3272
3361
|
role: "tabpanel",
|
|
3273
3362
|
"aria-labelledby": "tpl-tab-settings",
|
|
3274
3363
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3275
|
-
},
|
|
3364
|
+
}, Ac = {
|
|
3276
3365
|
key: 2,
|
|
3277
3366
|
id: "tpl-tabpanel-issues",
|
|
3278
3367
|
role: "tabpanel",
|
|
3279
3368
|
"aria-labelledby": "tpl-tab-issues",
|
|
3280
3369
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3281
|
-
},
|
|
3370
|
+
}, jc = /* @__PURE__ */ N({
|
|
3282
3371
|
__name: "RightSidebar",
|
|
3283
3372
|
props: {
|
|
3284
3373
|
selectedBlock: {},
|
|
@@ -3308,7 +3397,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3308
3397
|
"aria-label": x(a).landmarks.rightSidebar,
|
|
3309
3398
|
class: E(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
|
|
3310
3399
|
}, [
|
|
3311
|
-
D("div",
|
|
3400
|
+
D("div", gc, [
|
|
3312
3401
|
D("button", {
|
|
3313
3402
|
id: "tpl-tab-content",
|
|
3314
3403
|
role: "tab",
|
|
@@ -3322,7 +3411,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3322
3411
|
}, [P(x(lt), {
|
|
3323
3412
|
size: 14,
|
|
3324
3413
|
"stroke-width": 2
|
|
3325
|
-
}), o.value === "content" ? (s(), y("span",
|
|
3414
|
+
}), o.value === "content" ? (s(), y("span", vc, _(x(a).sidebar.content), 1)) : b("", !0)], 14, _c),
|
|
3326
3415
|
D("button", {
|
|
3327
3416
|
id: "tpl-tab-settings",
|
|
3328
3417
|
role: "tab",
|
|
@@ -3336,7 +3425,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3336
3425
|
}, [P(x(tt), {
|
|
3337
3426
|
size: 14,
|
|
3338
3427
|
"stroke-width": 1.5
|
|
3339
|
-
}), o.value === "settings" ? (s(), y("span",
|
|
3428
|
+
}), o.value === "settings" ? (s(), y("span", bc, _(x(a).sidebar.settings), 1)) : b("", !0)], 14, yc),
|
|
3340
3429
|
l.value ? (s(), y("button", {
|
|
3341
3430
|
key: 0,
|
|
3342
3431
|
id: "tpl-tab-issues",
|
|
@@ -3353,111 +3442,54 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3353
3442
|
size: 14,
|
|
3354
3443
|
"stroke-width": 1.5
|
|
3355
3444
|
}),
|
|
3356
|
-
o.value === "issues" ? (s(), y("span",
|
|
3357
|
-
u.value > 0 ? (s(), y("span",
|
|
3358
|
-
], 14,
|
|
3445
|
+
o.value === "issues" ? (s(), y("span", Sc, _(x(a).issues.panelTabLabel), 1)) : b("", !0),
|
|
3446
|
+
u.value > 0 ? (s(), y("span", Cc, _(u.value), 1)) : b("", !0)
|
|
3447
|
+
], 14, xc)) : b("", !0)
|
|
3359
3448
|
]),
|
|
3360
|
-
o.value === "content" ? (s(), y("div",
|
|
3449
|
+
o.value === "content" ? (s(), y("div", wc, [e.selectedBlock ? (s(), C(mc, {
|
|
3361
3450
|
key: 0,
|
|
3362
3451
|
block: e.selectedBlock,
|
|
3363
3452
|
onUpdate: r[3] ||= (e) => i("update-block", e),
|
|
3364
3453
|
onDelete: r[4] ||= (e) => i("delete-block"),
|
|
3365
3454
|
onDuplicate: r[5] ||= (e) => i("duplicate-block")
|
|
3366
|
-
}, null, 8, ["block"])) : (s(), y("div",
|
|
3367
|
-
D("div",
|
|
3455
|
+
}, null, 8, ["block"])) : (s(), y("div", Tc, [
|
|
3456
|
+
D("div", Ec, [P(x(yt), {
|
|
3368
3457
|
size: 40,
|
|
3369
3458
|
"stroke-width": 1.5
|
|
3370
3459
|
})]),
|
|
3371
|
-
D("h3",
|
|
3372
|
-
D("p",
|
|
3460
|
+
D("h3", Dc, _(x(a).sidebar.noSelection), 1),
|
|
3461
|
+
D("p", Oc, _(x(a).sidebar.noSelectionHint), 1)
|
|
3373
3462
|
]))])) : b("", !0),
|
|
3374
|
-
o.value === "settings" ? (s(), y("div",
|
|
3463
|
+
o.value === "settings" ? (s(), y("div", kc, [P(Mr, {
|
|
3375
3464
|
settings: e.settings,
|
|
3376
3465
|
onUpdate: r[6] ||= (e) => i("update-settings", e)
|
|
3377
3466
|
}, null, 8, ["settings"])])) : b("", !0),
|
|
3378
|
-
o.value === "issues" && l.value ? (s(), y("div",
|
|
3379
|
-
], 10,
|
|
3467
|
+
o.value === "issues" && l.value ? (s(), y("div", Ac, [P(x(n))])) : b("", !0)
|
|
3468
|
+
], 10, hc));
|
|
3380
3469
|
}
|
|
3381
|
-
}),
|
|
3470
|
+
}), Mc = {
|
|
3382
3471
|
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)]",
|
|
3383
3472
|
style: { "z-index": "10001" },
|
|
3384
3473
|
role: "status",
|
|
3385
3474
|
"data-testid": "small-screen-notice"
|
|
3386
|
-
},
|
|
3475
|
+
}, Nc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Pc = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Ic = /* @__PURE__ */ N({
|
|
3387
3476
|
__name: "SmallScreenNotice",
|
|
3388
3477
|
setup(e) {
|
|
3389
3478
|
let { t } = W();
|
|
3390
|
-
return (e, n) => (s(), y("div",
|
|
3391
|
-
D("div",
|
|
3479
|
+
return (e, n) => (s(), y("div", Mc, [
|
|
3480
|
+
D("div", Nc, [P(x(mt), {
|
|
3392
3481
|
size: 48,
|
|
3393
3482
|
"stroke-width": 1.5
|
|
3394
3483
|
})]),
|
|
3395
|
-
D("h2",
|
|
3396
|
-
D("p",
|
|
3484
|
+
D("h2", Pc, _(x(t).smallScreen.title), 1),
|
|
3485
|
+
D("p", Fc, _(x(t).smallScreen.message), 1)
|
|
3397
3486
|
]));
|
|
3398
3487
|
}
|
|
3399
|
-
}),
|
|
3400
|
-
"aria-checked",
|
|
3401
|
-
"aria-label",
|
|
3402
|
-
"title",
|
|
3403
|
-
"onClick"
|
|
3404
|
-
], Nc = /* @__PURE__ */ N({
|
|
3405
|
-
__name: "ViewportToggle",
|
|
3406
|
-
props: { viewport: {} },
|
|
3407
|
-
emits: ["change"],
|
|
3408
|
-
setup(e, { emit: t }) {
|
|
3409
|
-
let n = e, r = t, { t: i } = W(), a = v(() => [{
|
|
3410
|
-
value: "desktop",
|
|
3411
|
-
label: i.viewport.desktop
|
|
3412
|
-
}, {
|
|
3413
|
-
value: "mobile",
|
|
3414
|
-
label: i.viewport.mobile
|
|
3415
|
-
}]), o = v(() => `translateX(${a.value.findIndex((e) => e.value === n.viewport) * 100}%)`);
|
|
3416
|
-
return (t, n) => (s(), y("div", {
|
|
3417
|
-
role: "radiogroup",
|
|
3418
|
-
"aria-label": x(i).viewport.label,
|
|
3419
|
-
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
3420
|
-
style: k({
|
|
3421
|
-
gridTemplateColumns: `repeat(${a.value.length}, 1fr)`,
|
|
3422
|
-
backgroundColor: "var(--tpl-bg-hover)"
|
|
3423
|
-
})
|
|
3424
|
-
}, [D("div", {
|
|
3425
|
-
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
3426
|
-
style: k({
|
|
3427
|
-
left: "4px",
|
|
3428
|
-
width: `calc((100% - 8px) / ${a.value.length})`,
|
|
3429
|
-
transform: o.value,
|
|
3430
|
-
backgroundColor: "var(--tpl-bg)",
|
|
3431
|
-
boxShadow: "var(--tpl-shadow)",
|
|
3432
|
-
transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
3433
|
-
})
|
|
3434
|
-
}, null, 4), (s(!0), y(j, null, u(a.value, (t) => (s(), y("button", {
|
|
3435
|
-
key: t.value,
|
|
3436
|
-
role: "radio",
|
|
3437
|
-
"aria-checked": e.viewport === t.value,
|
|
3438
|
-
"aria-label": t.label,
|
|
3439
|
-
class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium",
|
|
3440
|
-
style: k({
|
|
3441
|
-
color: e.viewport === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
3442
|
-
transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
3443
|
-
}),
|
|
3444
|
-
title: t.label,
|
|
3445
|
-
onClick: (e) => r("change", t.value)
|
|
3446
|
-
}, [t.value === "desktop" ? (s(), C(x(mt), {
|
|
3447
|
-
key: 0,
|
|
3448
|
-
size: 18,
|
|
3449
|
-
"stroke-width": 1.5
|
|
3450
|
-
})) : (s(), C(x(at), {
|
|
3451
|
-
key: 1,
|
|
3452
|
-
size: 18,
|
|
3453
|
-
"stroke-width": 1.5
|
|
3454
|
-
})), D("span", null, _(t.label), 1)], 12, Mc))), 128))], 12, jc));
|
|
3455
|
-
}
|
|
3456
|
-
}), Pc = [
|
|
3488
|
+
}), Lc = [
|
|
3457
3489
|
"aria-label",
|
|
3458
3490
|
"title",
|
|
3459
3491
|
"aria-pressed"
|
|
3460
|
-
],
|
|
3492
|
+
], Rc = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
|
|
3461
3493
|
__name: "PreviewToggle",
|
|
3462
3494
|
props: { previewMode: { type: Boolean } },
|
|
3463
3495
|
emits: ["change"],
|
|
@@ -3490,13 +3522,13 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3490
3522
|
"stroke-width": 1.5
|
|
3491
3523
|
}))]),
|
|
3492
3524
|
_: 1
|
|
3493
|
-
})], 12,
|
|
3525
|
+
})], 12, Lc));
|
|
3494
3526
|
}
|
|
3495
|
-
}), [["__scopeId", "data-v-af87d02a"]]),
|
|
3527
|
+
}), [["__scopeId", "data-v-af87d02a"]]), zc = [
|
|
3496
3528
|
"aria-label",
|
|
3497
3529
|
"title",
|
|
3498
3530
|
"aria-pressed"
|
|
3499
|
-
],
|
|
3531
|
+
], Bc = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
|
|
3500
3532
|
__name: "DarkModeToggle",
|
|
3501
3533
|
props: { darkMode: { type: Boolean } },
|
|
3502
3534
|
emits: ["change"],
|
|
@@ -3529,27 +3561,27 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3529
3561
|
"stroke-width": 1.5
|
|
3530
3562
|
}))]),
|
|
3531
3563
|
_: 1
|
|
3532
|
-
})], 12,
|
|
3564
|
+
})], 12, zc));
|
|
3533
3565
|
}
|
|
3534
|
-
}), [["__scopeId", "data-v-f8694f76"]]),
|
|
3566
|
+
}), [["__scopeId", "data-v-f8694f76"]]), Vc = {
|
|
3535
3567
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
3536
3568
|
style: {
|
|
3537
3569
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
3538
3570
|
"backdrop-filter": "blur(8px)",
|
|
3539
3571
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
3540
3572
|
}
|
|
3541
|
-
},
|
|
3573
|
+
}, Hc = {
|
|
3542
3574
|
href: "https://github.com/templatical/sdk",
|
|
3543
3575
|
target: "_blank",
|
|
3544
3576
|
rel: "noopener noreferrer",
|
|
3545
3577
|
class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
|
|
3546
3578
|
style: { "text-decoration": "none" }
|
|
3547
|
-
},
|
|
3579
|
+
}, Uc = /* @__PURE__ */ N({
|
|
3548
3580
|
__name: "EditorFooter",
|
|
3549
3581
|
props: { positionClass: {} },
|
|
3550
3582
|
setup(e) {
|
|
3551
3583
|
let { t } = W();
|
|
3552
|
-
return (n, r) => (s(), y("footer", { class: E(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [D("div",
|
|
3584
|
+
return (n, r) => (s(), y("footer", { class: E(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [D("div", Vc, [
|
|
3553
3585
|
D("span", null, _(x(t).footer.poweredBy), 1),
|
|
3554
3586
|
r[0] ||= D("a", {
|
|
3555
3587
|
href: "https://templatical.com",
|
|
@@ -3564,32 +3596,32 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3564
3596
|
alt: ""
|
|
3565
3597
|
}), M(" Templatical ")], -1),
|
|
3566
3598
|
r[1] ||= D("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
|
|
3567
|
-
D("a",
|
|
3599
|
+
D("a", Hc, _(x(t).footer.openSource), 1)
|
|
3568
3600
|
])], 2));
|
|
3569
3601
|
}
|
|
3570
|
-
}),
|
|
3602
|
+
}), Wc = ["aria-labelledby", "data-tpl-theme"], Gc = { 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" }, Kc = ["id"], qc = ["aria-label"], Jc = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Yc = [
|
|
3571
3603
|
"id",
|
|
3572
3604
|
"placeholder",
|
|
3573
3605
|
"aria-label",
|
|
3574
3606
|
"aria-activedescendant"
|
|
3575
|
-
],
|
|
3607
|
+
], Xc = {
|
|
3576
3608
|
key: 0,
|
|
3577
3609
|
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",
|
|
3578
3610
|
"data-testid": "merge-tag-picker-group-pills"
|
|
3579
|
-
},
|
|
3611
|
+
}, Zc = ["data-group-name", "onClick"], Qc = ["aria-label"], $c = {
|
|
3580
3612
|
key: 0,
|
|
3581
3613
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3582
3614
|
"data-testid": "merge-tag-picker-empty"
|
|
3583
|
-
},
|
|
3615
|
+
}, el = {
|
|
3584
3616
|
key: 1,
|
|
3585
3617
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3586
3618
|
"data-testid": "merge-tag-picker-empty"
|
|
3587
|
-
},
|
|
3619
|
+
}, tl = [
|
|
3588
3620
|
"aria-expanded",
|
|
3589
3621
|
"data-group-name",
|
|
3590
3622
|
"data-group-collapsed",
|
|
3591
3623
|
"onClick"
|
|
3592
|
-
],
|
|
3624
|
+
], nl = { class: "tpl:ml-1 tpl:font-normal" }, rl = [
|
|
3593
3625
|
"id",
|
|
3594
3626
|
"aria-selected",
|
|
3595
3627
|
"data-selected",
|
|
@@ -3598,10 +3630,10 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3598
3630
|
"title",
|
|
3599
3631
|
"onMousemove",
|
|
3600
3632
|
"onClick"
|
|
3601
|
-
],
|
|
3633
|
+
], il = { class: "tpl:text-sm tpl:font-medium" }, al = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, ol = {
|
|
3602
3634
|
key: 0,
|
|
3603
3635
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3604
|
-
},
|
|
3636
|
+
}, sl = "tpl-merge-tag-picker-list", cl = /* @__PURE__ */ N({
|
|
3605
3637
|
__name: "MergeTagPickerModal",
|
|
3606
3638
|
setup(e) {
|
|
3607
3639
|
let t = je(Me, "MergeTagPickerModal"), { t: n, format: i } = W(), a = d(Pe, null), o = d(Ze, null), c = m(""), p = ke(c, 200), h = m(null), w = v(() => p.value.trim().length > 0), O = m(0), A = v(() => t.tags.value.some((e) => !!e.group)), M = m(/* @__PURE__ */ new Set());
|
|
@@ -3714,13 +3746,13 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3714
3746
|
}
|
|
3715
3747
|
}
|
|
3716
3748
|
function oe() {
|
|
3717
|
-
if (B.value.length !== 0) return `${
|
|
3749
|
+
if (B.value.length !== 0) return `${sl}-opt-${O.value}`;
|
|
3718
3750
|
}
|
|
3719
3751
|
function se(e) {
|
|
3720
|
-
return `${
|
|
3752
|
+
return `${sl}-opt-${e}`;
|
|
3721
3753
|
}
|
|
3722
3754
|
let ce = v(() => t.tags.value.length === 0), le = v(() => !ce.value && L.value.length === 0), ue = v(() => A.value && R.value.length > 1 && !w.value);
|
|
3723
|
-
return (e, l) => (s(), C(
|
|
3755
|
+
return (e, l) => (s(), C(tn, {
|
|
3724
3756
|
visible: x(t).isOpen.value,
|
|
3725
3757
|
onClose: ee,
|
|
3726
3758
|
onKeydown: ae
|
|
@@ -3728,16 +3760,16 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3728
3760
|
default: f(() => [D("div", {
|
|
3729
3761
|
role: "dialog",
|
|
3730
3762
|
"aria-modal": "true",
|
|
3731
|
-
"aria-labelledby": `${
|
|
3763
|
+
"aria-labelledby": `${sl}-title`,
|
|
3732
3764
|
"data-tpl-theme": x(o),
|
|
3733
3765
|
"data-testid": "merge-tag-picker-modal",
|
|
3734
3766
|
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)]",
|
|
3735
3767
|
style: k(x(a))
|
|
3736
3768
|
}, [
|
|
3737
|
-
D("header",
|
|
3738
|
-
id: `${
|
|
3769
|
+
D("header", Gc, [D("h2", {
|
|
3770
|
+
id: `${sl}-title`,
|
|
3739
3771
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3740
|
-
}, _(x(n).mergeTag.picker.title), 9,
|
|
3772
|
+
}, _(x(n).mergeTag.picker.title), 9, Kc), D("button", {
|
|
3741
3773
|
type: "button",
|
|
3742
3774
|
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)]",
|
|
3743
3775
|
"aria-label": x(n).mergeTag.picker.close,
|
|
@@ -3746,13 +3778,13 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3746
3778
|
}, [P(x(Et), {
|
|
3747
3779
|
size: 16,
|
|
3748
3780
|
"stroke-width": 2
|
|
3749
|
-
})], 8,
|
|
3750
|
-
D("div",
|
|
3781
|
+
})], 8, qc)]),
|
|
3782
|
+
D("div", Jc, [P(x(ut), {
|
|
3751
3783
|
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)]",
|
|
3752
3784
|
size: 14,
|
|
3753
3785
|
"stroke-width": 2
|
|
3754
3786
|
}), r(D("input", {
|
|
3755
|
-
id: `${
|
|
3787
|
+
id: `${sl}-search`,
|
|
3756
3788
|
ref_key: "searchInputRef",
|
|
3757
3789
|
ref: h,
|
|
3758
3790
|
"onUpdate:modelValue": l[0] ||= (e) => c.value = e,
|
|
@@ -3760,34 +3792,34 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3760
3792
|
class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)]",
|
|
3761
3793
|
placeholder: x(n).mergeTag.picker.searchPlaceholder,
|
|
3762
3794
|
"aria-label": x(n).mergeTag.picker.searchAriaLabel,
|
|
3763
|
-
"aria-controls":
|
|
3795
|
+
"aria-controls": sl,
|
|
3764
3796
|
"aria-activedescendant": oe(),
|
|
3765
3797
|
"data-testid": "merge-tag-picker-search",
|
|
3766
3798
|
onKeydown: l[1] ||= g(S(() => {}, ["prevent"]), ["enter"])
|
|
3767
|
-
}, null, 40,
|
|
3768
|
-
ue.value ? (s(), y("div",
|
|
3799
|
+
}, null, 40, Yc), [[T, c.value]])]),
|
|
3800
|
+
ue.value ? (s(), y("div", Xc, [(s(!0), y(j, null, u(R.value, (e) => (s(), y("button", {
|
|
3769
3801
|
key: e,
|
|
3770
3802
|
type: "button",
|
|
3771
3803
|
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)]",
|
|
3772
3804
|
"data-testid": "merge-tag-picker-group-pill",
|
|
3773
3805
|
"data-group-name": e,
|
|
3774
3806
|
onClick: (t) => ie(e)
|
|
3775
|
-
}, _(e), 9,
|
|
3807
|
+
}, _(e), 9, Zc))), 128))])) : b("", !0),
|
|
3776
3808
|
D("div", {
|
|
3777
|
-
id:
|
|
3809
|
+
id: sl,
|
|
3778
3810
|
ref_key: "listRef",
|
|
3779
3811
|
ref: H,
|
|
3780
3812
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3781
3813
|
role: "listbox",
|
|
3782
3814
|
"aria-label": x(n).mergeTag.picker.title,
|
|
3783
3815
|
"data-testid": "merge-tag-picker-list"
|
|
3784
|
-
}, [ce.value ? (s(), y("div",
|
|
3816
|
+
}, [ce.value ? (s(), y("div", $c, _(x(n).mergeTag.picker.empty), 1)) : le.value ? (s(), y("div", el, _(x(n).mergeTag.picker.noResults), 1)) : (s(!0), y(j, { key: 2 }, u(z.value, (e, t) => (s(), y(j, { key: t }, [e.kind === "header" ? (s(), y("button", {
|
|
3785
3817
|
key: 0,
|
|
3786
3818
|
ref_for: !0,
|
|
3787
3819
|
ref: (t) => U(e.group, t),
|
|
3788
3820
|
type: "button",
|
|
3789
3821
|
"aria-expanded": !N(e.group),
|
|
3790
|
-
"aria-controls":
|
|
3822
|
+
"aria-controls": sl,
|
|
3791
3823
|
class: "tpl:sticky tpl:top-0 tpl:z-10 tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-left tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)]",
|
|
3792
3824
|
"data-testid": "merge-tag-picker-group-header",
|
|
3793
3825
|
"data-group-name": e.group,
|
|
@@ -3800,8 +3832,8 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3800
3832
|
class: E(["tpl:transition-transform", N(e.group) ? "tpl:-rotate-90" : ""])
|
|
3801
3833
|
}, null, 8, ["class"]),
|
|
3802
3834
|
D("span", null, _(e.group), 1),
|
|
3803
|
-
D("span",
|
|
3804
|
-
], 8,
|
|
3835
|
+
D("span", nl, " (" + _(x(i)(x(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
3836
|
+
], 8, tl)) : (s(), y("button", {
|
|
3805
3837
|
key: 1,
|
|
3806
3838
|
id: se(e.index),
|
|
3807
3839
|
type: "button",
|
|
@@ -3816,15 +3848,15 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3816
3848
|
onMousemove: (t) => O.value = e.index,
|
|
3817
3849
|
onClick: (t) => V(e.tag)
|
|
3818
3850
|
}, [
|
|
3819
|
-
D("span",
|
|
3820
|
-
D("span",
|
|
3821
|
-
e.tag.description ? (s(), y("span",
|
|
3822
|
-
], 42,
|
|
3823
|
-
], 12,
|
|
3851
|
+
D("span", il, _(e.tag.label), 1),
|
|
3852
|
+
D("span", al, _(e.tag.value), 1),
|
|
3853
|
+
e.tag.description ? (s(), y("span", ol, _(e.tag.description), 1)) : b("", !0)
|
|
3854
|
+
], 42, rl))], 64))), 128))], 8, Qc)
|
|
3855
|
+
], 12, Wc)]),
|
|
3824
3856
|
_: 1
|
|
3825
3857
|
}, 8, ["visible"]));
|
|
3826
3858
|
}
|
|
3827
|
-
}),
|
|
3859
|
+
}), ll = ["data-logic-keyword"], ul = /* @__PURE__ */ N({
|
|
3828
3860
|
__name: "LogicTagBadge",
|
|
3829
3861
|
props: {
|
|
3830
3862
|
value: {},
|
|
@@ -3841,22 +3873,22 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3841
3873
|
},
|
|
3842
3874
|
"data-testid": "merge-tag-logic-badge",
|
|
3843
3875
|
"data-logic-keyword": r.value
|
|
3844
|
-
}, _(r.value), 9,
|
|
3876
|
+
}, _(r.value), 9, ll)) : b("", !0);
|
|
3845
3877
|
}
|
|
3846
|
-
}),
|
|
3878
|
+
}), dl = ["aria-labelledby", "data-tpl-theme"], fl = { 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" }, pl = ["id"], ml = ["aria-label"], hl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, gl = [
|
|
3847
3879
|
"id",
|
|
3848
3880
|
"placeholder",
|
|
3849
3881
|
"aria-label",
|
|
3850
3882
|
"aria-activedescendant"
|
|
3851
|
-
],
|
|
3883
|
+
], _l = ["aria-label"], vl = {
|
|
3852
3884
|
key: 0,
|
|
3853
3885
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3854
3886
|
"data-testid": "logic-picker-empty"
|
|
3855
|
-
},
|
|
3887
|
+
}, yl = {
|
|
3856
3888
|
key: 1,
|
|
3857
3889
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3858
3890
|
"data-testid": "logic-picker-empty"
|
|
3859
|
-
},
|
|
3891
|
+
}, bl = ["data-group-name"], xl = [
|
|
3860
3892
|
"id",
|
|
3861
3893
|
"aria-selected",
|
|
3862
3894
|
"data-selected",
|
|
@@ -3864,16 +3896,16 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3864
3896
|
"data-logic-kind",
|
|
3865
3897
|
"onMousemove",
|
|
3866
3898
|
"onClick"
|
|
3867
|
-
],
|
|
3899
|
+
], Sl = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Cl = { class: "tpl:text-sm tpl:font-medium" }, wl = {
|
|
3868
3900
|
key: 0,
|
|
3869
3901
|
class: "tpl:flex tpl:items-center"
|
|
3870
|
-
},
|
|
3902
|
+
}, Tl = {
|
|
3871
3903
|
key: 1,
|
|
3872
3904
|
class: "tpl:flex tpl:items-center tpl:gap-1"
|
|
3873
|
-
},
|
|
3905
|
+
}, El = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Dl = {
|
|
3874
3906
|
key: 0,
|
|
3875
3907
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3876
|
-
},
|
|
3908
|
+
}, Ol = "tpl-logic-picker-list", kl = /* @__PURE__ */ N({
|
|
3877
3909
|
__name: "LogicTagPickerModal",
|
|
3878
3910
|
setup(e) {
|
|
3879
3911
|
let t = je(Xe, "LogicTagPickerModal"), { t: n } = W(), i = d(Ie, ee.liquid), a = d(Pe, null), o = d(Ze, null), c = m(""), p = ke(c, 200), h = m(null), w = v(() => p.value.trim().length > 0), O = m(0);
|
|
@@ -3959,12 +3991,12 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3959
3991
|
}
|
|
3960
3992
|
}
|
|
3961
3993
|
function ae(e) {
|
|
3962
|
-
return `${
|
|
3994
|
+
return `${Ol}-opt-${e}`;
|
|
3963
3995
|
}
|
|
3964
3996
|
function oe() {
|
|
3965
|
-
return B.value.length === 0 ? void 0 : `${
|
|
3997
|
+
return B.value.length === 0 ? void 0 : `${Ol}-opt-${O.value}`;
|
|
3966
3998
|
}
|
|
3967
|
-
return (e, l) => (s(), C(
|
|
3999
|
+
return (e, l) => (s(), C(tn, {
|
|
3968
4000
|
visible: x(t).isOpen.value,
|
|
3969
4001
|
onClose: U,
|
|
3970
4002
|
onKeydown: ie
|
|
@@ -3972,16 +4004,16 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3972
4004
|
default: f(() => [D("div", {
|
|
3973
4005
|
role: "dialog",
|
|
3974
4006
|
"aria-modal": "true",
|
|
3975
|
-
"aria-labelledby": `${
|
|
4007
|
+
"aria-labelledby": `${Ol}-title`,
|
|
3976
4008
|
"data-tpl-theme": x(o),
|
|
3977
4009
|
"data-testid": "logic-picker-modal",
|
|
3978
4010
|
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)]",
|
|
3979
4011
|
style: k(x(a))
|
|
3980
4012
|
}, [
|
|
3981
|
-
D("header",
|
|
3982
|
-
id: `${
|
|
4013
|
+
D("header", fl, [D("h2", {
|
|
4014
|
+
id: `${Ol}-title`,
|
|
3983
4015
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3984
|
-
}, _(x(n).logicTag.picker.title), 9,
|
|
4016
|
+
}, _(x(n).logicTag.picker.title), 9, pl), D("button", {
|
|
3985
4017
|
type: "button",
|
|
3986
4018
|
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)]",
|
|
3987
4019
|
"aria-label": x(n).logicTag.picker.close,
|
|
@@ -3990,13 +4022,13 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
3990
4022
|
}, [P(x(Et), {
|
|
3991
4023
|
size: 16,
|
|
3992
4024
|
"stroke-width": 2
|
|
3993
|
-
})], 8,
|
|
3994
|
-
D("div",
|
|
4025
|
+
})], 8, ml)]),
|
|
4026
|
+
D("div", hl, [P(x(ut), {
|
|
3995
4027
|
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)]",
|
|
3996
4028
|
size: 14,
|
|
3997
4029
|
"stroke-width": 2
|
|
3998
4030
|
}), r(D("input", {
|
|
3999
|
-
id: `${
|
|
4031
|
+
id: `${Ol}-search`,
|
|
4000
4032
|
ref_key: "searchInputRef",
|
|
4001
4033
|
ref: h,
|
|
4002
4034
|
"onUpdate:modelValue": l[0] ||= (e) => c.value = e,
|
|
@@ -4004,25 +4036,25 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
4004
4036
|
class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)]",
|
|
4005
4037
|
placeholder: x(n).logicTag.picker.searchPlaceholder,
|
|
4006
4038
|
"aria-label": x(n).logicTag.picker.searchAriaLabel,
|
|
4007
|
-
"aria-controls":
|
|
4039
|
+
"aria-controls": Ol,
|
|
4008
4040
|
"aria-activedescendant": oe(),
|
|
4009
4041
|
"data-testid": "logic-picker-search",
|
|
4010
4042
|
onKeydown: l[1] ||= g(S(() => {}, ["prevent"]), ["enter"])
|
|
4011
|
-
}, null, 40,
|
|
4043
|
+
}, null, 40, gl), [[T, c.value]])]),
|
|
4012
4044
|
D("div", {
|
|
4013
|
-
id:
|
|
4045
|
+
id: Ol,
|
|
4014
4046
|
ref_key: "listRef",
|
|
4015
4047
|
ref: H,
|
|
4016
4048
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
4017
4049
|
role: "listbox",
|
|
4018
4050
|
"aria-label": x(n).logicTag.picker.title,
|
|
4019
4051
|
"data-testid": "logic-picker-list"
|
|
4020
|
-
}, [V.value ? (s(), y("div",
|
|
4052
|
+
}, [V.value ? (s(), y("div", vl, _(x(n).logicTag.picker.empty), 1)) : te.value ? (s(), y("div", yl, _(x(n).logicTag.picker.noResults), 1)) : (s(!0), y(j, { key: 2 }, u(z.value.rows, (e, t) => (s(), y(j, { key: t }, [e.kind === "header" ? (s(), y("div", {
|
|
4021
4053
|
key: 0,
|
|
4022
4054
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
4023
4055
|
"data-testid": "logic-picker-header",
|
|
4024
4056
|
"data-group-name": e.label
|
|
4025
|
-
}, _(e.label), 9,
|
|
4057
|
+
}, _(e.label), 9, bl)) : (s(), y("button", {
|
|
4026
4058
|
key: 1,
|
|
4027
4059
|
id: ae(e.index),
|
|
4028
4060
|
type: "button",
|
|
@@ -4036,29 +4068,29 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
|
|
|
4036
4068
|
onMousemove: (t) => O.value = e.index,
|
|
4037
4069
|
onClick: (t) => ne(e.kind === "tag" ? e.tag : e.pair)
|
|
4038
4070
|
}, [
|
|
4039
|
-
D("span",
|
|
4071
|
+
D("span", Sl, [D("span", Cl, _(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), y("span", wl, [P(ul, {
|
|
4040
4072
|
value: e.tag.value,
|
|
4041
4073
|
syntax: x(i)
|
|
4042
|
-
}, null, 8, ["value", "syntax"])])) : (s(), y("span",
|
|
4043
|
-
P(
|
|
4074
|
+
}, null, 8, ["value", "syntax"])])) : (s(), y("span", Tl, [
|
|
4075
|
+
P(ul, {
|
|
4044
4076
|
value: e.pair.before,
|
|
4045
4077
|
syntax: x(i)
|
|
4046
4078
|
}, null, 8, ["value", "syntax"]),
|
|
4047
4079
|
l[2] ||= D("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
|
|
4048
|
-
P(
|
|
4080
|
+
P(ul, {
|
|
4049
4081
|
value: e.pair.after,
|
|
4050
4082
|
syntax: x(i)
|
|
4051
4083
|
}, null, 8, ["value", "syntax"])
|
|
4052
4084
|
]))]),
|
|
4053
|
-
D("span",
|
|
4054
|
-
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), y("span",
|
|
4055
|
-
], 42,
|
|
4056
|
-
], 12,
|
|
4085
|
+
D("span", El, _(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
|
|
4086
|
+
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), y("span", Dl, _(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : b("", !0)
|
|
4087
|
+
], 42, xl))], 64))), 128))], 8, _l)
|
|
4088
|
+
], 12, dl)]),
|
|
4057
4089
|
_: 1
|
|
4058
4090
|
}, 8, ["visible"]));
|
|
4059
4091
|
}
|
|
4060
4092
|
});
|
|
4061
4093
|
//#endregion
|
|
4062
|
-
export {
|
|
4094
|
+
export { Rc as a, kn as c, cn as d, sn as f, Bc as i, bn as l, nn as m, cl as n, Ic as o, an as p, Uc as r, jc as s, kl as t, yn as u };
|
|
4063
4095
|
|
|
4064
|
-
//# sourceMappingURL=styles-
|
|
4096
|
+
//# sourceMappingURL=styles-BbfU2w9R.js.map
|