@templatical/editor 0.15.1 → 0.16.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-BIKvYREk.js → AiChatSidebar-B-k_Sdas.js} +1 -1
- package/dist/{AiFeatureMenu-CU6kTMTf.js → AiFeatureMenu-B5_IKOlI.js} +1 -1
- package/dist/{CloudEditor-DRPxvUEj.js → CloudEditor-BUJk4vXS.js} +6 -6
- package/dist/{CollaboratorBar-DMSjd3HZ.js → CollaboratorBar-BAUQfXUk.js} +1 -1
- package/dist/{DesignReferenceSidebar-DWYK9nTk.js → DesignReferenceSidebar-BYQcuaL4.js} +1 -1
- package/dist/{MergeTagSuggestion-CH2SUxBo.js → MergeTagSuggestion-DLVykS0K.js} +2 -2
- package/dist/{ModuleBrowserModal-BOzleijA.js → ModuleBrowserModal-BzDuagt5.js} +4 -4
- package/dist/{ModulePreviewCanvas-Cg99Pbde.js → ModulePreviewCanvas-CK11BX4i.js} +1 -1
- package/dist/{ParagraphEditor-8jnzoL0A.js → ParagraphEditor-fg9Ljy_Z.js} +13 -13
- package/dist/{SaveModuleDialog-Cy2XyjYT.js → SaveModuleDialog-D27ufH5q.js} +2 -2
- package/dist/{SnapshotHistory-cfxmOsJu.js → SnapshotHistory-Cymqkk9_.js} +1 -1
- package/dist/{TestEmailModal-sr1MaMVX.js → TestEmailModal-BIvdHidU.js} +2 -2
- package/dist/{TitleEditor-CvGTprIg.js → TitleEditor-D0a4NdOn.js} +5 -5
- package/dist/{TplModal-BtKB-0Bx.js → TplModal-dYXt3vyd.js} +1 -1
- package/dist/{blockTypeIcons-BxEbbev5.js → blockTypeIcons-JSBvsa0M.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/ca-C58VqAgo.js +558 -0
- package/dist/cdn/chunks/{AiFeatureMenu-fDUpv_-s.js → AiFeatureMenu-B6V5CzCc.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-fDUpv_-s.js.map → AiFeatureMenu-B6V5CzCc.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Byce0j0W.js → BlockIssueBadge-C6Xpl1KK.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-Byce0j0W.js.map → BlockIssueBadge-C6Xpl1KK.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-B4m8ldiE.js → CloudEditor-C-npgK-l.js} +8 -8
- package/dist/cdn/chunks/{CloudEditor-B4m8ldiE.js.map → CloudEditor-C-npgK-l.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-LnLmjxw_.js → CollaboratorBar-BSKXgw9D.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-LnLmjxw_.js.map → CollaboratorBar-BSKXgw9D.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DxTuMRBM.js → CountdownBlock-Y-nycxv2.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-DxTuMRBM.js.map → CountdownBlock-Y-nycxv2.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DUrVfQZH.js → CountdownToolbar-9LqnhGyh.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-DUrVfQZH.js.map → CountdownToolbar-9LqnhGyh.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CHl90k4h.js → IssuesPanel-BYfGf1rC.js} +3 -3
- package/dist/cdn/chunks/{IssuesPanel-CHl90k4h.js.map → IssuesPanel-BYfGf1rC.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-BsCAo4Co.js → MergeTagSuggestion-DQzKlLH7.js} +2 -2
- package/dist/cdn/chunks/{MergeTagSuggestion-BsCAo4Co.js.map → MergeTagSuggestion-DQzKlLH7.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DW0iQW0J.js → ModuleBrowserModal-EzKgW5TG.js} +5 -5
- package/dist/cdn/chunks/{ModuleBrowserModal-DW0iQW0J.js.map → ModuleBrowserModal-EzKgW5TG.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Cxo8v8t1.js → ModulePreviewCanvas-DxbSzXm8.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-Cxo8v8t1.js.map → ModulePreviewCanvas-DxbSzXm8.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CnSRmUMK.js → NumberWithSuffix-Conp_Pki.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-CnSRmUMK.js.map → NumberWithSuffix-Conp_Pki.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-iG5cDjH0.js → ParagraphEditor-CJNgRMhw.js} +16 -16
- package/dist/cdn/chunks/{ParagraphEditor-iG5cDjH0.js.map → ParagraphEditor-CJNgRMhw.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DQpgeGMj.js → RichTextEditorContent-Cebdzomd.js} +2 -2
- package/dist/cdn/chunks/{RichTextEditorContent-DQpgeGMj.js.map → RichTextEditorContent-Cebdzomd.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-sJQXg2Mh.js → SaveModuleDialog-Cufwqoln.js} +2 -2
- package/dist/cdn/chunks/{SaveModuleDialog-sJQXg2Mh.js.map → SaveModuleDialog-Cufwqoln.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C8qIn9Oi.js → TitleEditor-7BhmKL-_.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-C8qIn9Oi.js.map → TitleEditor-7BhmKL-_.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DySnOpPo.js → blockTypeIcons-d4Sb61H-.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-DySnOpPo.js.map → blockTypeIcons-d4Sb61H-.js.map} +1 -1
- package/dist/cdn/chunks/ca-C58VqAgo.js +560 -0
- package/dist/cdn/chunks/ca-C58VqAgo.js.map +1 -0
- package/dist/cdn/chunks/ca-CNRWAMHI.js +89 -0
- package/dist/cdn/chunks/ca-CNRWAMHI.js.map +1 -0
- package/dist/cdn/chunks/{de-LsV0u1tP.js → de-C0sMmfic.js} +4 -1
- package/dist/cdn/chunks/de-C0sMmfic.js.map +1 -0
- package/dist/{en-Bb8X1bOs.js → cdn/chunks/en-CsGBTBOf.js} +5 -0
- package/dist/cdn/chunks/en-CsGBTBOf.js.map +1 -0
- package/dist/cdn/chunks/es-DgjbcPIu.js +560 -0
- package/dist/cdn/chunks/es-DgjbcPIu.js.map +1 -0
- package/dist/cdn/chunks/es-OgkdMZGX.js +89 -0
- package/dist/cdn/chunks/es-OgkdMZGX.js.map +1 -0
- package/dist/cdn/chunks/{extensions-C2pTX899.js → extensions-BeAsz_mp.js} +4 -4
- package/dist/cdn/chunks/{extensions-C2pTX899.js.map → extensions-BeAsz_mp.js.map} +1 -1
- package/dist/cdn/chunks/{features-CHE3YjQE.js → features-DO71hPJr.js} +20 -20
- package/dist/cdn/chunks/features-DO71hPJr.js.map +1 -0
- package/dist/cdn/chunks/{icons-M4uqBV-_.js → icons-BfP1cRNb.js} +2 -2
- package/dist/cdn/chunks/{icons-M4uqBV-_.js.map → icons-BfP1cRNb.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-Bqr15VN2.js → media-library-0S3e0i8G.js} +3 -3
- package/dist/cdn/chunks/{media-library-Bqr15VN2.js.map → media-library-0S3e0i8G.js.map} +1 -1
- package/dist/{pt-BR-BwJY_cvb.js → cdn/chunks/pt-BR-DXaP5lMJ.js} +5 -0
- package/dist/cdn/chunks/pt-BR-DXaP5lMJ.js.map +1 -0
- package/dist/cdn/chunks/{quality-DJZ_fqc2.js → quality-B6V4R_df.js} +246 -242
- package/dist/cdn/chunks/quality-B6V4R_df.js.map +1 -0
- package/dist/cdn/chunks/{renderer-CyzTR1Vq.js → renderer-Dhn1J4H4.js} +24 -27
- package/dist/cdn/chunks/renderer-Dhn1J4H4.js.map +1 -0
- package/dist/cdn/chunks/{src-q-SBgWx7.js → src-DoKjbqU2.js} +109 -112
- package/dist/cdn/chunks/{src-q-SBgWx7.js.map → src-DoKjbqU2.js.map} +1 -1
- package/dist/cdn/chunks/{styles-PWISdaws.js → styles-CSqligXJ.js} +461 -440
- package/dist/cdn/chunks/styles-CSqligXJ.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-DF9PEiqH.js → tiptap-DVHUKGZf.js} +3027 -4738
- package/dist/cdn/chunks/tiptap-DVHUKGZf.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +11 -9
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-BQusL53H.js → cloud-CFpaFRCV.js} +1 -1
- package/dist/{de-LsV0u1tP.js → de-C0sMmfic.js} +3 -0
- package/dist/{dist-COG3IdPK.js → dist-0VHbLR6h.js} +2 -2
- package/dist/{dist-BFmE-7hB.js → dist-C5-0GG3g.js} +2 -2
- package/dist/{dist-B5Sov3sS.js → dist-Ci5GHd96.js} +2 -2
- package/dist/{dist-BsCGIDSt.js → dist-DEcNpSJi.js} +2 -2
- package/dist/dist-DR-6IpV6.js +5 -0
- package/dist/dist-DW8b0TO6.js +5 -0
- package/dist/{dist-SXJJ2v41.js → dist-D_-AsMP4.js} +2 -2
- package/dist/{dist-BibU4HNl.js → dist-DoRIUsfz.js} +2 -3
- package/dist/{dist-itdjZraK.js → dist-DrlHbc8g.js} +1 -1
- package/dist/{dist-BMoa33wT.js → dist-Drm7i-yw.js} +2 -2
- package/dist/{dist-CQZxDvFw.js → dist-Dsoq4knU.js} +2 -2
- package/dist/dist-FVawx7ou.js +2597 -0
- package/dist/{dist-CRsjOQM-.js → dist-r_2rJCMg.js} +2 -2
- package/dist/{cdn/chunks/en-Bb8X1bOs.js → en-CsGBTBOf.js} +3 -2
- package/dist/es-DgjbcPIu.js +558 -0
- package/dist/{extensions-DwaZAqm6.js → extensions-3jhgwhV-.js} +5 -5
- package/dist/{cdn/chunks/pt-BR-BwJY_cvb.js → pt-BR-DXaP5lMJ.js} +3 -2
- package/dist/style.css +1 -1
- package/dist/{styles-B2OrgEnn.js → styles-5sGbDIA2.js} +466 -445
- package/dist/templatical-editor.js +10 -8
- package/dist/{useEditorCore-DJeOXVxQ.js → useEditorCore-AQ0BN1ug.js} +16 -15
- package/dist/{useMergeTag-DSrBY0-2.js → useMergeTag-D0aZw7Q5.js} +1 -1
- package/package.json +21 -21
- package/dist/cdn/chunks/de-LsV0u1tP.js.map +0 -1
- package/dist/cdn/chunks/en-Bb8X1bOs.js.map +0 -1
- package/dist/cdn/chunks/features-CHE3YjQE.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +0 -1
- package/dist/cdn/chunks/quality-DJZ_fqc2.js.map +0 -1
- package/dist/cdn/chunks/renderer-CyzTR1Vq.js.map +0 -1
- package/dist/cdn/chunks/styles-PWISdaws.js.map +0 -1
- package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +0 -1
- package/dist/dist-CNLKj9wa.js +0 -5
- package/dist/dist-CNXDNYQn.js +0 -4311
- package/dist/dist-Cqa6aeAJ.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, H as r, I as i, K as a, N as o, O as s, Ot as c, R as l, W as u, Y as d, _ as f, c as p, d as m, g as h, h as g, j as _, l as v, m as y, nt as b, q as x, r as S, s as C, u as w, w as T, x as E, y as D, z as O } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
2
|
import { a as k, c as A, o as j, s as M, t as N } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
|
|
3
|
-
import { C as P, D as F, E as I, O as L, k as R, o as z, r as B, s as V, u as ee, w as te } from "./dist-
|
|
4
|
-
import { D as ne, F as re, I as H, L as ie, M as ae, N as oe, P as se, R as ce, S as le, _ as ue, a as de, c as fe, f as pe, g as me, h as he, i as ge, j as _e, l as ve, m as ye, n as be, o as xe, p as Se, r as Ce, s as we, u as Te, v as Ee, y as De } from "./useEditorCore-
|
|
3
|
+
import { C as P, D as F, E as I, O as L, k as R, o as z, r as B, s as V, u as ee, w as te } from "./dist-DoRIUsfz.js";
|
|
4
|
+
import { D as ne, F as re, I as H, L as ie, M as ae, N as oe, P as se, R as ce, S as le, _ as ue, a as de, c as fe, f as pe, g as me, h as he, i as ge, j as _e, l as ve, m as ye, n as be, o as xe, p as Se, r as Ce, s as we, u as Te, v as Ee, y as De } from "./useEditorCore-AQ0BN1ug.js";
|
|
5
5
|
import { c as Oe, m as ke } from "./dist-CTT6WYJ6.js";
|
|
6
6
|
import { D as Ae, F as je, I as Me, L as Ne, N as Pe, P as Fe, T as Ie, a as Le, d as Re, f as ze, g as Be, k as Ve, m as He, n as Ue, o as We, p as Ge, s as Ke, u as qe, w as Je, x as Ye } from "./keys-Cv8-8GsD.js";
|
|
7
7
|
import { t as U } from "./useI18n-C-TDeJBt.js";
|
|
@@ -9,7 +9,7 @@ import { t as W } from "./createLucideIcon-Dx-EjR9r.js";
|
|
|
9
9
|
import { n as Xe, t as Ze } from "./scan-line-DgijVq9y.js";
|
|
10
10
|
import { t as Qe } from "./chevron-down-BKe__NOD.js";
|
|
11
11
|
import { t as $e } from "./circle-alert-C8xmpMsK.js";
|
|
12
|
-
import { i as et, n as tt, r as nt, t as rt } from "./blockTypeIcons-
|
|
12
|
+
import { i as et, n as tt, r as nt, t as rt } from "./blockTypeIcons-JSBvsa0M.js";
|
|
13
13
|
import { n as it, t as at } from "./refresh-cw-D1JQ1LNa.js";
|
|
14
14
|
import { t as ot } from "./image-up-BwBCmQ4P.js";
|
|
15
15
|
import { t as st } from "./info-TCn7uWR5.js";
|
|
@@ -22,15 +22,15 @@ import { t as ht } from "./upload-CWBIoLd4.js";
|
|
|
22
22
|
import { t as gt } from "./x-CQSvXnGR.js";
|
|
23
23
|
import { t as _t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
24
24
|
import { t as vt } from "./useCloudI18n-AKCy98qD.js";
|
|
25
|
-
import { t as yt } from "./useMergeTag-
|
|
25
|
+
import { t as yt } from "./useMergeTag-D0aZw7Q5.js";
|
|
26
26
|
import { t as bt } from "./useAliveFlag-CECL_OUb.js";
|
|
27
27
|
import { t as xt } from "./readableTextColor-f8Kykfnh.js";
|
|
28
28
|
import { t as St } from "./CountdownBlock-apiYUhkQ.js";
|
|
29
29
|
import { _ as Ct, c as wt, f as G, g as Tt, h as K, l as Et, m as q, p as J, r as Dt, t as Ot } from "./styleConstants-lGobwiLH.js";
|
|
30
30
|
import { i as Y, n as X, r as Z, t as kt } from "./NumberWithSuffix-CrA6quxx.js";
|
|
31
|
-
import { n as At, r as jt } from "./MergeTagSuggestion-
|
|
31
|
+
import { n as At, r as jt } from "./MergeTagSuggestion-DLVykS0K.js";
|
|
32
32
|
import { t as Mt } from "./usePopoverRoot-DKUDnr55.js";
|
|
33
|
-
import { t as Nt } from "./TplModal-
|
|
33
|
+
import { t as Nt } from "./TplModal-dYXt3vyd.js";
|
|
34
34
|
var Pt = W("circle", [["circle", {
|
|
35
35
|
cx: "12",
|
|
36
36
|
cy: "12",
|
|
@@ -295,7 +295,10 @@ var Yt = ["aria-label"], Xt = {
|
|
|
295
295
|
case "mobile": return 375;
|
|
296
296
|
default: return u.content.settings.width;
|
|
297
297
|
}
|
|
298
|
-
}), F = C(() => P.value + an * 2), I = C(() =>
|
|
298
|
+
}), F = C(() => P.value + an * 2), I = C(() => {
|
|
299
|
+
let e = { fontFamily: u.content.settings.fontFamily };
|
|
300
|
+
return u.content.settings.textColor && (e.color = u.content.settings.textColor), u.content.settings.linkColor && (e["--tpl-doc-link-color"] = u.content.settings.linkColor), u.content.settings.linkUnderline && (e["--tpl-doc-link-underline"] = "underline"), e;
|
|
301
|
+
}), L = C(() => N.value.length === 0 && !u.previewMode), R = d(0), z = C(() => L.value && R.value > 0);
|
|
299
302
|
function B() {
|
|
300
303
|
L.value && (R.value += 1);
|
|
301
304
|
}
|
|
@@ -451,7 +454,7 @@ var Yt = ["aria-label"], Xt = {
|
|
|
451
454
|
"class"
|
|
452
455
|
])], 6)], 12, Yt)], 4));
|
|
453
456
|
}
|
|
454
|
-
}), [["__scopeId", "data-v-
|
|
457
|
+
}), [["__scopeId", "data-v-b440d13f"]]), sn = f({
|
|
455
458
|
name: "CustomBlockStylesheets",
|
|
456
459
|
setup() {
|
|
457
460
|
let e = E(ze, null);
|
|
@@ -1023,7 +1026,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1023
1026
|
onInsert: b(O)
|
|
1024
1027
|
}, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)]));
|
|
1025
1028
|
}
|
|
1026
|
-
}), Gn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Kn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, qn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Jn = { class: "tpl:mb-3.5" }, Yn = { 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)]" }, Xn = ["onClick"], Zn = { class: "tpl:flex tpl:items-stretch" }, Qn = ["value"], $n = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, er = { class: "tpl:mb-3.5" }, tr = ["value"],
|
|
1029
|
+
}), Gn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Kn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, qn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Jn = { class: "tpl:mb-3.5" }, Yn = { 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)]" }, Xn = ["onClick"], Zn = { class: "tpl:flex tpl:items-stretch" }, Qn = ["value"], $n = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, er = { class: "tpl:mb-3.5" }, tr = { class: "tpl:mb-3.5" }, nr = { class: "tpl:mb-3.5" }, rr = { class: "tpl:mb-3.5" }, ir = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-between tpl:gap-2" }, ar = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, or = ["aria-checked", "aria-label"], sr = ["value"], cr = ["value"], lr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ur = ["value"], dr = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, fr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, pr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, mr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, hr = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, gr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, _r = { 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)]" }, vr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, yr = { class: "tpl:mb-1 tpl:last:mb-0" }, br = { class: "tpl:mb-1 tpl:last:mb-0" }, xr = { class: "tpl:mb-1 tpl:last:mb-0" }, Sr = 150, Cr = /* @__PURE__ */ f({
|
|
1027
1030
|
__name: "TemplateSettings",
|
|
1028
1031
|
props: { settings: {} },
|
|
1029
1032
|
emits: ["update"],
|
|
@@ -1083,16 +1086,34 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1083
1086
|
placeholder: b(Ot),
|
|
1084
1087
|
"onUpdate:modelValue": a[1] ||= (e) => o("update", { backgroundColor: e })
|
|
1085
1088
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
1089
|
+
p("div", tr, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.textColor), 3), g(Y, {
|
|
1090
|
+
"model-value": r.settings.textColor ?? "",
|
|
1091
|
+
"seed-color": "#1a1a1a",
|
|
1092
|
+
"onUpdate:modelValue": a[2] ||= (e) => o("update", { textColor: e })
|
|
1093
|
+
}, null, 8, ["model-value"])]),
|
|
1094
|
+
p("div", nr, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.linkColor), 3), g(Y, {
|
|
1095
|
+
"model-value": r.settings.linkColor ?? "",
|
|
1096
|
+
"seed-color": "#0066cc",
|
|
1097
|
+
"onUpdate:modelValue": a[3] ||= (e) => o("update", { linkColor: e || void 0 })
|
|
1098
|
+
}, null, 8, ["model-value"])]),
|
|
1099
|
+
p("div", rr, [p("label", ir, [p("span", ar, c(b(l).templateSettings.linkUnderline), 1), p("button", {
|
|
1100
|
+
type: "button",
|
|
1101
|
+
role: "switch",
|
|
1102
|
+
"aria-checked": r.settings.linkUnderline,
|
|
1103
|
+
"aria-label": b(l).templateSettings.linkUnderline,
|
|
1104
|
+
class: n(["tpl:relative tpl:inline-flex tpl:h-5 tpl:w-9 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-full tpl:border-2 tpl:border-transparent tpl:transition-colors tpl:duration-200", r.settings.linkUnderline ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-border)]"]),
|
|
1105
|
+
onClick: a[4] ||= (e) => o("update", { linkUnderline: !r.settings.linkUnderline })
|
|
1106
|
+
}, [p("span", { class: n(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", r.settings.linkUnderline ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, or)])]),
|
|
1086
1107
|
p("div", null, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.fontFamily), 3), p("select", {
|
|
1087
1108
|
class: n(b(G)),
|
|
1088
1109
|
value: f.value,
|
|
1089
|
-
onChange: a[
|
|
1110
|
+
onChange: a[5] ||= (e) => o("update", { fontFamily: e.target.value })
|
|
1090
1111
|
}, [(s(!0), m(S, null, e(d.value, (e) => (s(), m("option", {
|
|
1091
1112
|
key: e.value,
|
|
1092
1113
|
value: e.value
|
|
1093
|
-
}, c(e.label), 9,
|
|
1114
|
+
}, c(e.label), 9, cr))), 128))], 42, sr)])
|
|
1094
1115
|
], 2),
|
|
1095
|
-
p("div", { class: n(b(Et)) }, [p("div",
|
|
1116
|
+
p("div", { class: n(b(Et)) }, [p("div", lr, [g(b(Ft), {
|
|
1096
1117
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1097
1118
|
size: 14,
|
|
1098
1119
|
"stroke-width": 2
|
|
@@ -1106,11 +1127,11 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1106
1127
|
spellcheck: "false",
|
|
1107
1128
|
autocapitalize: "off",
|
|
1108
1129
|
autocomplete: "off",
|
|
1109
|
-
onInput: a[
|
|
1110
|
-
}, null, 42,
|
|
1111
|
-
p("p",
|
|
1130
|
+
onInput: a[6] ||= (e) => o("update", { locale: e.target.value.trim() || void 0 })
|
|
1131
|
+
}, null, 42, ur),
|
|
1132
|
+
p("p", dr, c(b(l).templateSettings.contentLocaleHint), 1)
|
|
1112
1133
|
])], 2),
|
|
1113
|
-
p("div", { class: n(b(Et)) }, [p("div",
|
|
1134
|
+
p("div", { class: n(b(Et)) }, [p("div", fr, [g(b(it), {
|
|
1114
1135
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1115
1136
|
size: 14,
|
|
1116
1137
|
"stroke-width": 2
|
|
@@ -1118,29 +1139,29 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1118
1139
|
"model-value": r.settings.preheaderText ?? "",
|
|
1119
1140
|
placeholder: b(l).templateSettings.preheaderTextPlaceholder,
|
|
1120
1141
|
rows: 2,
|
|
1121
|
-
"onUpdate:modelValue": a[
|
|
1122
|
-
}, null, 8, ["model-value", "placeholder"]), p("div",
|
|
1123
|
-
p("div",
|
|
1142
|
+
"onUpdate:modelValue": a[7] ||= (e) => o("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
|
|
1143
|
+
}, null, 8, ["model-value", "placeholder"]), p("div", pr, [p("span", mr, c(b(l).templateSettings.preheaderTextHint), 1), p("span", hr, c((r.settings.preheaderText ?? "").length) + "/" + c(Sr), 1)])])], 2),
|
|
1144
|
+
p("div", gr, [p("div", _r, [g(b(st), {
|
|
1124
1145
|
size: 14,
|
|
1125
1146
|
"stroke-width": 2
|
|
1126
|
-
}), p("span", null, c(b(l).templateSettings.tips), 1)]), p("ul",
|
|
1127
|
-
p("li",
|
|
1128
|
-
p("li",
|
|
1129
|
-
p("li",
|
|
1147
|
+
}), p("span", null, c(b(l).templateSettings.tips), 1)]), p("ul", vr, [
|
|
1148
|
+
p("li", yr, c(b(l).templateSettings.tip1), 1),
|
|
1149
|
+
p("li", br, c(b(l).templateSettings.tip2), 1),
|
|
1150
|
+
p("li", xr, c(b(l).templateSettings.tip3), 1)
|
|
1130
1151
|
])])
|
|
1131
1152
|
])]));
|
|
1132
1153
|
}
|
|
1133
|
-
}),
|
|
1154
|
+
}), wr = { key: 0 }, Tr = {
|
|
1134
1155
|
key: 0,
|
|
1135
1156
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
1136
|
-
},
|
|
1157
|
+
}, Er = { key: 1 }, Dr = [
|
|
1137
1158
|
"type",
|
|
1138
1159
|
"value",
|
|
1139
1160
|
"placeholder"
|
|
1140
|
-
],
|
|
1161
|
+
], Or = {
|
|
1141
1162
|
key: 0,
|
|
1142
1163
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
1143
|
-
},
|
|
1164
|
+
}, kr = "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__*/ _t(/* @__PURE__ */ f({
|
|
1144
1165
|
__name: "MergeTagInput",
|
|
1145
1166
|
props: {
|
|
1146
1167
|
modelValue: {},
|
|
@@ -1158,9 +1179,9 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1158
1179
|
emit: (e) => i("update:modelValue", e),
|
|
1159
1180
|
elementRef: a
|
|
1160
1181
|
});
|
|
1161
|
-
return (t, r) => b(c) && !b(_) ? (s(), m("div",
|
|
1182
|
+
return (t, r) => b(c) && !b(_) ? (s(), m("div", wr, [g(An, {
|
|
1162
1183
|
segments: b(o),
|
|
1163
|
-
"display-class":
|
|
1184
|
+
"display-class": kr,
|
|
1164
1185
|
pulse: e.pulse,
|
|
1165
1186
|
onEdit: b(y),
|
|
1166
1187
|
onClear: b(E)
|
|
@@ -1169,7 +1190,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1169
1190
|
"pulse",
|
|
1170
1191
|
"onEdit",
|
|
1171
1192
|
"onClear"
|
|
1172
|
-
]), b(l) || b(f) ? (s(), m("div",
|
|
1193
|
+
]), b(l) || b(f) ? (s(), m("div", Tr, [b(l) ? (s(), v(Nn, {
|
|
1173
1194
|
key: 0,
|
|
1174
1195
|
disabled: b(u),
|
|
1175
1196
|
onInsert: b(D)
|
|
@@ -1177,7 +1198,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1177
1198
|
key: 1,
|
|
1178
1199
|
disabled: b(h),
|
|
1179
1200
|
onInsert: b(O)
|
|
1180
|
-
}, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)])) : (s(), m("div",
|
|
1201
|
+
}, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)])) : (s(), m("div", Er, [p("input", {
|
|
1181
1202
|
ref_key: "inputRef",
|
|
1182
1203
|
ref: a,
|
|
1183
1204
|
type: e.type,
|
|
@@ -1188,7 +1209,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1188
1209
|
onKeydown: r[1] ||= (...e) => b(S) && b(S)(...e),
|
|
1189
1210
|
onClick: r[2] ||= (...e) => b(C) && b(C)(...e),
|
|
1190
1211
|
onBlur: r[3] ||= (...e) => b(T) && b(T)(...e)
|
|
1191
|
-
}, null, 42,
|
|
1212
|
+
}, null, 42, Dr), b(l) || b(f) ? (s(), m("div", Or, [b(l) ? (s(), v(Nn, {
|
|
1192
1213
|
key: 0,
|
|
1193
1214
|
disabled: b(u),
|
|
1194
1215
|
onInsert: b(D)
|
|
@@ -1198,13 +1219,13 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1198
1219
|
onInsert: b(O)
|
|
1199
1220
|
}, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)]));
|
|
1200
1221
|
}
|
|
1201
|
-
}), [["__scopeId", "data-v-d6563be6"]]),
|
|
1222
|
+
}), [["__scopeId", "data-v-d6563be6"]]), Ar = { class: "tpl:mb-3.5" }, jr = ["value"], Mr = { value: "" }, Nr = ["value"], Pr = { class: "tpl:mb-3.5" }, Fr = { class: "tpl:mb-3.5" }, Ir = {
|
|
1202
1223
|
key: 0,
|
|
1203
1224
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
1204
|
-
},
|
|
1225
|
+
}, Lr = ["checked"], Rr = { class: "tpl:mb-3.5" }, zr = { class: "tpl:mb-3.5" }, Br = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Vr = { class: "tpl:mb-3.5" }, Hr = { class: "tpl:flex tpl:items-stretch" }, Ur = ["value"], Wr = { class: "tpl:mb-3.5" }, Gr = { class: "tpl:flex tpl:items-stretch" }, Kr = ["value"], qr = { class: "tpl:mb-3.5" }, Jr = ["value"], Yr = { value: "auto" }, Xr = { value: "full" }, Zr = { value: "custom" }, Qr = {
|
|
1205
1226
|
key: 0,
|
|
1206
1227
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1207
|
-
},
|
|
1228
|
+
}, $r = ["value"], ei = 200, ti = /* @__PURE__ */ f({
|
|
1208
1229
|
__name: "ButtonToolbar",
|
|
1209
1230
|
props: {
|
|
1210
1231
|
block: {},
|
|
@@ -1222,7 +1243,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1222
1243
|
return;
|
|
1223
1244
|
}
|
|
1224
1245
|
if (e === "custom") {
|
|
1225
|
-
u("width", typeof i.block.width == "number" ? i.block.width :
|
|
1246
|
+
u("width", typeof i.block.width == "number" ? i.block.width : ei);
|
|
1226
1247
|
return;
|
|
1227
1248
|
}
|
|
1228
1249
|
u("width", void 0);
|
|
@@ -1232,20 +1253,20 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1232
1253
|
!Number.isFinite(t) || t <= 0 || u("width", t);
|
|
1233
1254
|
}
|
|
1234
1255
|
return (r, i) => (s(), m(S, null, [
|
|
1235
|
-
p("div",
|
|
1256
|
+
p("div", Ar, [p("label", { class: n(b(K)) }, c(b(o).button.fontFamily), 3), p("select", {
|
|
1236
1257
|
class: n(b(G)),
|
|
1237
1258
|
value: t.block.fontFamily || "",
|
|
1238
1259
|
onChange: i[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
1239
|
-
}, [p("option",
|
|
1260
|
+
}, [p("option", Mr, c(b(o).button.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
1240
1261
|
key: e.value,
|
|
1241
1262
|
value: e.value
|
|
1242
|
-
}, c(e.label), 9,
|
|
1243
|
-
p("div",
|
|
1263
|
+
}, c(e.label), 9, Nr))), 128))], 42, jr)]),
|
|
1264
|
+
p("div", Pr, [p("label", { class: n(b(K)) }, c(b(o).button.text), 3), g($, {
|
|
1244
1265
|
"model-value": t.block.text,
|
|
1245
1266
|
type: "text",
|
|
1246
1267
|
"onUpdate:modelValue": i[1] ||= (e) => u("text", e)
|
|
1247
1268
|
}, null, 8, ["model-value"])]),
|
|
1248
|
-
p("div",
|
|
1269
|
+
p("div", Fr, [
|
|
1249
1270
|
p("label", { class: n(b(K)) }, c(b(o).button.url), 3),
|
|
1250
1271
|
g($, {
|
|
1251
1272
|
"model-value": t.block.url,
|
|
@@ -1253,58 +1274,58 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1253
1274
|
placeholder: b(o).button.urlPlaceholder,
|
|
1254
1275
|
"onUpdate:modelValue": i[2] ||= (e) => u("url", e)
|
|
1255
1276
|
}, null, 8, ["model-value", "placeholder"]),
|
|
1256
|
-
t.block.url ? (s(), m("label",
|
|
1277
|
+
t.block.url ? (s(), m("label", Ir, [p("input", {
|
|
1257
1278
|
type: "checkbox",
|
|
1258
1279
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
1259
1280
|
checked: t.block.openInNewTab ?? !1,
|
|
1260
1281
|
onChange: i[3] ||= (e) => u("openInNewTab", e.target.checked)
|
|
1261
|
-
}, null, 40,
|
|
1282
|
+
}, null, 40, Lr), y(" " + c(b(o).button.openInNewTab), 1)])) : w("", !0)
|
|
1262
1283
|
]),
|
|
1263
|
-
p("div",
|
|
1284
|
+
p("div", Rr, [p("label", { class: n(b(K)) }, c(b(o).button.background), 3), g(Y, {
|
|
1264
1285
|
"model-value": t.block.backgroundColor,
|
|
1265
1286
|
"onUpdate:modelValue": i[4] ||= (e) => u("backgroundColor", e)
|
|
1266
1287
|
}, null, 8, ["model-value"])]),
|
|
1267
|
-
p("div",
|
|
1288
|
+
p("div", zr, [p("label", { class: n(b(K)) }, c(b(o).button.textColor), 3), g(Y, {
|
|
1268
1289
|
"model-value": t.block.textColor,
|
|
1269
1290
|
"onUpdate:modelValue": i[5] ||= (e) => u("textColor", e)
|
|
1270
1291
|
}, null, 8, ["model-value"])]),
|
|
1271
|
-
p("div",
|
|
1292
|
+
p("div", Br, [p("div", Vr, [p("label", { class: n(b(K)) }, c(b(o).button.borderRadius), 3), p("div", Hr, [p("input", {
|
|
1272
1293
|
type: "number",
|
|
1273
1294
|
class: n(b(J)),
|
|
1274
1295
|
value: t.block.borderRadius,
|
|
1275
1296
|
min: "0",
|
|
1276
1297
|
max: "50",
|
|
1277
1298
|
onInput: i[6] ||= (e) => u("borderRadius", Number(e.target.value))
|
|
1278
|
-
}, null, 42,
|
|
1299
|
+
}, null, 42, Ur), p("span", { class: n(b(q)) }, "px", 2)])]), p("div", Wr, [p("label", { class: n(b(K)) }, c(b(o).button.fontSize), 3), p("div", Gr, [p("input", {
|
|
1279
1300
|
type: "number",
|
|
1280
1301
|
class: n(b(J)),
|
|
1281
1302
|
value: t.block.fontSize,
|
|
1282
1303
|
min: "10",
|
|
1283
1304
|
max: "36",
|
|
1284
1305
|
onInput: i[7] ||= (e) => u("fontSize", Number(e.target.value))
|
|
1285
|
-
}, null, 42,
|
|
1286
|
-
p("div",
|
|
1306
|
+
}, null, 42, Kr), p("span", { class: n(b(q)) }, "px", 2)])])]),
|
|
1307
|
+
p("div", qr, [
|
|
1287
1308
|
p("label", { class: n(b(K)) }, c(b(o).button.width), 3),
|
|
1288
1309
|
p("select", {
|
|
1289
1310
|
class: n(b(G)),
|
|
1290
1311
|
value: l.value,
|
|
1291
1312
|
onChange: i[8] ||= (e) => d(e.target.value)
|
|
1292
1313
|
}, [
|
|
1293
|
-
p("option",
|
|
1294
|
-
p("option",
|
|
1295
|
-
p("option",
|
|
1296
|
-
], 42,
|
|
1297
|
-
l.value === "custom" ? (s(), m("div",
|
|
1314
|
+
p("option", Yr, c(b(o).button.widthAuto), 1),
|
|
1315
|
+
p("option", Xr, c(b(o).button.fullWidth), 1),
|
|
1316
|
+
p("option", Zr, c(b(o).button.widthCustom), 1)
|
|
1317
|
+
], 42, Jr),
|
|
1318
|
+
l.value === "custom" ? (s(), m("div", Qr, [p("input", {
|
|
1298
1319
|
type: "number",
|
|
1299
1320
|
class: n(b(J)),
|
|
1300
|
-
value: typeof t.block.width == "number" ? t.block.width :
|
|
1321
|
+
value: typeof t.block.width == "number" ? t.block.width : ei,
|
|
1301
1322
|
min: "20",
|
|
1302
1323
|
onInput: i[9] ||= (e) => f(e.target.value)
|
|
1303
|
-
}, null, 42,
|
|
1324
|
+
}, null, 42, $r), p("span", { class: n(b(q)) }, "px", 2)])) : w("", !0)
|
|
1304
1325
|
])
|
|
1305
1326
|
], 64));
|
|
1306
1327
|
}
|
|
1307
|
-
}),
|
|
1328
|
+
}), ni = { class: "spacing-control" }, ri = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ii = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, ai = { class: "tpl:flex tpl:items-center" }, oi = ["aria-label"], si = ["value", "aria-label"], ci = ["aria-label"], li = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ui = { class: "tpl:flex tpl:items-center" }, di = ["aria-label"], fi = ["value", "aria-label"], pi = ["aria-label"], mi = ["aria-label", "title"], hi = { class: "tpl:flex tpl:items-center" }, gi = ["aria-label"], _i = ["value", "aria-label"], vi = ["aria-label"], yi = { class: "tpl:flex tpl:items-center" }, bi = ["aria-label"], xi = ["value", "aria-label"], Si = ["aria-label"], Ci = "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)]", wi = "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)]", Ti = /*#__PURE__*/ _t(/* @__PURE__ */ f({
|
|
1308
1329
|
__name: "SpacingControl",
|
|
1309
1330
|
props: {
|
|
1310
1331
|
modelValue: {},
|
|
@@ -1351,59 +1372,59 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1351
1372
|
});
|
|
1352
1373
|
}
|
|
1353
1374
|
}
|
|
1354
|
-
return (t, r) => (s(), m("div",
|
|
1355
|
-
p("div",
|
|
1375
|
+
return (t, r) => (s(), m("div", ni, [p("label", ri, c(e.label), 1), p("div", ii, [
|
|
1376
|
+
p("div", ai, [
|
|
1356
1377
|
p("button", {
|
|
1357
1378
|
"aria-label": b(o).spacingControl.decreaseTop,
|
|
1358
|
-
class: n([
|
|
1379
|
+
class: n([Ci, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1359
1380
|
onClick: r[0] ||= (e) => f("top", -1)
|
|
1360
1381
|
}, [g(b(et), {
|
|
1361
1382
|
size: 12,
|
|
1362
1383
|
"stroke-width": 2
|
|
1363
|
-
})], 10,
|
|
1384
|
+
})], 10, oi),
|
|
1364
1385
|
p("input", {
|
|
1365
1386
|
type: "number",
|
|
1366
|
-
class: n(
|
|
1387
|
+
class: n(wi),
|
|
1367
1388
|
value: e.modelValue.top,
|
|
1368
1389
|
"aria-label": b(o).spacingControl.top,
|
|
1369
1390
|
min: "0",
|
|
1370
1391
|
onInput: r[1] ||= (e) => h("top", Number(e.target.value))
|
|
1371
|
-
}, null, 40,
|
|
1392
|
+
}, null, 40, si),
|
|
1372
1393
|
p("button", {
|
|
1373
1394
|
"aria-label": b(o).spacingControl.increaseTop,
|
|
1374
|
-
class: n([
|
|
1395
|
+
class: n([Ci, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1375
1396
|
onClick: r[2] ||= (e) => f("top", 1)
|
|
1376
1397
|
}, [g(b(Q), {
|
|
1377
1398
|
size: 12,
|
|
1378
1399
|
"stroke-width": 2
|
|
1379
|
-
})], 10,
|
|
1400
|
+
})], 10, ci)
|
|
1380
1401
|
]),
|
|
1381
|
-
p("div",
|
|
1382
|
-
p("div",
|
|
1402
|
+
p("div", li, [
|
|
1403
|
+
p("div", ui, [
|
|
1383
1404
|
p("button", {
|
|
1384
1405
|
"aria-label": b(o).spacingControl.decreaseLeft,
|
|
1385
|
-
class: n([
|
|
1406
|
+
class: n([Ci, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1386
1407
|
onClick: r[3] ||= (e) => f("left", -1)
|
|
1387
1408
|
}, [g(b(et), {
|
|
1388
1409
|
size: 12,
|
|
1389
1410
|
"stroke-width": 2
|
|
1390
|
-
})], 10,
|
|
1411
|
+
})], 10, di),
|
|
1391
1412
|
p("input", {
|
|
1392
1413
|
type: "number",
|
|
1393
|
-
class: n(
|
|
1414
|
+
class: n(wi),
|
|
1394
1415
|
value: e.modelValue.left,
|
|
1395
1416
|
"aria-label": b(o).spacingControl.left,
|
|
1396
1417
|
min: "0",
|
|
1397
1418
|
onInput: r[4] ||= (e) => h("left", Number(e.target.value))
|
|
1398
|
-
}, null, 40,
|
|
1419
|
+
}, null, 40, fi),
|
|
1399
1420
|
p("button", {
|
|
1400
1421
|
"aria-label": b(o).spacingControl.increaseLeft,
|
|
1401
|
-
class: n([
|
|
1422
|
+
class: n([Ci, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1402
1423
|
onClick: r[5] ||= (e) => f("left", 1)
|
|
1403
1424
|
}, [g(b(Q), {
|
|
1404
1425
|
size: 12,
|
|
1405
1426
|
"stroke-width": 2
|
|
1406
|
-
})], 10,
|
|
1427
|
+
})], 10, pi)
|
|
1407
1428
|
]),
|
|
1408
1429
|
p("button", {
|
|
1409
1430
|
class: n(["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)]", u.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)]"]),
|
|
@@ -1418,63 +1439,63 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1418
1439
|
key: 1,
|
|
1419
1440
|
size: 14,
|
|
1420
1441
|
"stroke-width": 2
|
|
1421
|
-
}))], 10,
|
|
1422
|
-
p("div",
|
|
1442
|
+
}))], 10, mi),
|
|
1443
|
+
p("div", hi, [
|
|
1423
1444
|
p("button", {
|
|
1424
1445
|
"aria-label": b(o).spacingControl.decreaseRight,
|
|
1425
|
-
class: n([
|
|
1446
|
+
class: n([Ci, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1426
1447
|
onClick: r[6] ||= (e) => f("right", -1)
|
|
1427
1448
|
}, [g(b(et), {
|
|
1428
1449
|
size: 12,
|
|
1429
1450
|
"stroke-width": 2
|
|
1430
|
-
})], 10,
|
|
1451
|
+
})], 10, gi),
|
|
1431
1452
|
p("input", {
|
|
1432
1453
|
type: "number",
|
|
1433
|
-
class: n(
|
|
1454
|
+
class: n(wi),
|
|
1434
1455
|
value: e.modelValue.right,
|
|
1435
1456
|
"aria-label": b(o).spacingControl.right,
|
|
1436
1457
|
min: "0",
|
|
1437
1458
|
onInput: r[7] ||= (e) => h("right", Number(e.target.value))
|
|
1438
|
-
}, null, 40,
|
|
1459
|
+
}, null, 40, _i),
|
|
1439
1460
|
p("button", {
|
|
1440
1461
|
"aria-label": b(o).spacingControl.increaseRight,
|
|
1441
|
-
class: n([
|
|
1462
|
+
class: n([Ci, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1442
1463
|
onClick: r[8] ||= (e) => f("right", 1)
|
|
1443
1464
|
}, [g(b(Q), {
|
|
1444
1465
|
size: 12,
|
|
1445
1466
|
"stroke-width": 2
|
|
1446
|
-
})], 10,
|
|
1467
|
+
})], 10, vi)
|
|
1447
1468
|
])
|
|
1448
1469
|
]),
|
|
1449
|
-
p("div",
|
|
1470
|
+
p("div", yi, [
|
|
1450
1471
|
p("button", {
|
|
1451
1472
|
"aria-label": b(o).spacingControl.decreaseBottom,
|
|
1452
|
-
class: n([
|
|
1473
|
+
class: n([Ci, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1453
1474
|
onClick: r[9] ||= (e) => f("bottom", -1)
|
|
1454
1475
|
}, [g(b(et), {
|
|
1455
1476
|
size: 12,
|
|
1456
1477
|
"stroke-width": 2
|
|
1457
|
-
})], 10,
|
|
1478
|
+
})], 10, bi),
|
|
1458
1479
|
p("input", {
|
|
1459
1480
|
type: "number",
|
|
1460
|
-
class: n(
|
|
1481
|
+
class: n(wi),
|
|
1461
1482
|
value: e.modelValue.bottom,
|
|
1462
1483
|
"aria-label": b(o).spacingControl.bottom,
|
|
1463
1484
|
min: "0",
|
|
1464
1485
|
onInput: r[10] ||= (e) => h("bottom", Number(e.target.value))
|
|
1465
|
-
}, null, 40,
|
|
1486
|
+
}, null, 40, xi),
|
|
1466
1487
|
p("button", {
|
|
1467
1488
|
"aria-label": b(o).spacingControl.increaseBottom,
|
|
1468
|
-
class: n([
|
|
1489
|
+
class: n([Ci, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1469
1490
|
onClick: r[11] ||= (e) => f("bottom", 1)
|
|
1470
1491
|
}, [g(b(Q), {
|
|
1471
1492
|
size: 12,
|
|
1472
1493
|
"stroke-width": 2
|
|
1473
|
-
})], 10,
|
|
1494
|
+
})], 10, Si)
|
|
1474
1495
|
])
|
|
1475
1496
|
])]));
|
|
1476
1497
|
}
|
|
1477
|
-
}), [["__scopeId", "data-v-9a9c8a07"]]),
|
|
1498
|
+
}), [["__scopeId", "data-v-9a9c8a07"]]), Ei = { class: "tpl:mt-3" }, Di = /* @__PURE__ */ f({
|
|
1478
1499
|
__name: "CollapsibleSection",
|
|
1479
1500
|
props: {
|
|
1480
1501
|
title: {},
|
|
@@ -1491,21 +1512,21 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1491
1512
|
class: n(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1492
1513
|
size: 12,
|
|
1493
1514
|
"stroke-width": 2
|
|
1494
|
-
}, null, 8, ["class"]), p("span", null, c(e.title), 1)]), O(p("div",
|
|
1515
|
+
}, null, 8, ["class"]), p("span", null, c(e.title), 1)]), O(p("div", Ei, [_(t.$slots, "default")], 512), [[j, e.open]])], 2));
|
|
1495
1516
|
}
|
|
1496
|
-
}),
|
|
1517
|
+
}), Oi = { class: "tpl:space-y-2" }, ki = ["checked", "onChange"], Ai = { class: "tpl:space-y-2" }, ji = ["value"], Mi = { value: "" }, Ni = ["label"], Pi = ["value"], Fi = ["value"], Ii = {
|
|
1497
1518
|
key: 0,
|
|
1498
1519
|
value: "__custom__"
|
|
1499
|
-
},
|
|
1520
|
+
}, Li = {
|
|
1500
1521
|
key: 0,
|
|
1501
1522
|
class: "tpl:space-y-2"
|
|
1502
|
-
},
|
|
1523
|
+
}, Ri = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, zi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Bi = { class: "tpl:flex tpl:justify-end" }, Vi = ["disabled"], Hi = {
|
|
1503
1524
|
key: 0,
|
|
1504
1525
|
class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
|
|
1505
|
-
},
|
|
1526
|
+
}, Ui = { class: "tpl:space-y-1" }, Wi = { 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)]" }, Gi = {
|
|
1506
1527
|
key: 0,
|
|
1507
1528
|
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)]"
|
|
1508
|
-
},
|
|
1529
|
+
}, Ki = /* @__PURE__ */ f({
|
|
1509
1530
|
__name: "CommonBlockSettings",
|
|
1510
1531
|
props: {
|
|
1511
1532
|
block: {},
|
|
@@ -1568,13 +1589,13 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1568
1589
|
t[e] = !t[e], u("update", { visibility: t });
|
|
1569
1590
|
}
|
|
1570
1591
|
return (r, i) => (s(), m("div", { class: n(["tpl:flex tpl:flex-col", t.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1571
|
-
g(
|
|
1592
|
+
g(Di, {
|
|
1572
1593
|
title: b(f).blockSettings.spacing,
|
|
1573
1594
|
open: T.has("spacing"),
|
|
1574
1595
|
"no-border": t.isFirstSection,
|
|
1575
1596
|
onToggle: i[1] ||= (e) => N("spacing")
|
|
1576
1597
|
}, {
|
|
1577
|
-
default: l(() => [g(
|
|
1598
|
+
default: l(() => [g(Ti, {
|
|
1578
1599
|
label: b(f).blockSettings.padding,
|
|
1579
1600
|
"model-value": t.block.styles.padding,
|
|
1580
1601
|
"onUpdate:modelValue": i[0] ||= (e) => z("padding", e)
|
|
@@ -1585,7 +1606,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1585
1606
|
"open",
|
|
1586
1607
|
"no-border"
|
|
1587
1608
|
]),
|
|
1588
|
-
g(
|
|
1609
|
+
g(Di, {
|
|
1589
1610
|
title: b(f).blockSettings.background,
|
|
1590
1611
|
open: T.has("bg"),
|
|
1591
1612
|
onToggle: i[3] ||= (e) => N("bg")
|
|
@@ -1596,12 +1617,12 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1596
1617
|
}, null, 8, ["model-value"])]),
|
|
1597
1618
|
_: 1
|
|
1598
1619
|
}, 8, ["title", "open"]),
|
|
1599
|
-
g(
|
|
1620
|
+
g(Di, {
|
|
1600
1621
|
title: b(f).blockSettings.display,
|
|
1601
1622
|
open: T.has("display"),
|
|
1602
1623
|
onToggle: i[4] ||= (e) => N("display")
|
|
1603
1624
|
}, {
|
|
1604
|
-
default: l(() => [p("div",
|
|
1625
|
+
default: l(() => [p("div", Oi, [(s(), m(S, null, e(M, (e) => p("label", {
|
|
1605
1626
|
key: e.key,
|
|
1606
1627
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]"
|
|
1607
1628
|
}, [
|
|
@@ -1610,7 +1631,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1610
1631
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
1611
1632
|
checked: B(e.key),
|
|
1612
1633
|
onChange: (t) => V(e.key)
|
|
1613
|
-
}, null, 40,
|
|
1634
|
+
}, null, 40, ki),
|
|
1614
1635
|
(s(), v(o(e.icon), {
|
|
1615
1636
|
size: 14,
|
|
1616
1637
|
"stroke-width": 1.5
|
|
@@ -1619,13 +1640,13 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1619
1640
|
])), 64))])]),
|
|
1620
1641
|
_: 1
|
|
1621
1642
|
}, 8, ["title", "open"]),
|
|
1622
|
-
P.value ? (s(), v(
|
|
1643
|
+
P.value ? (s(), v(Di, {
|
|
1623
1644
|
key: 0,
|
|
1624
1645
|
title: b(f).blockSettings.displayCondition,
|
|
1625
1646
|
open: T.has("condition"),
|
|
1626
1647
|
onToggle: i[8] ||= (e) => N("condition")
|
|
1627
1648
|
}, {
|
|
1628
|
-
default: l(() => [p("div",
|
|
1649
|
+
default: l(() => [p("div", Ai, [p("select", {
|
|
1629
1650
|
class: n(["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)]", t.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)]"]),
|
|
1630
1651
|
value: D.value || F.value ? "__custom__" : t.block.displayCondition?.label ?? "",
|
|
1631
1652
|
onChange: i[5] ||= (e) => {
|
|
@@ -1642,48 +1663,48 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1642
1663
|
n && u("update", { displayCondition: n });
|
|
1643
1664
|
}
|
|
1644
1665
|
}, [
|
|
1645
|
-
p("option",
|
|
1666
|
+
p("option", Mi, c(b(f).blockSettings.noCondition), 1),
|
|
1646
1667
|
(s(!0), m(S, null, e(R.value, (t, n) => (s(), m(S, { key: n }, [n ? (s(), m("optgroup", {
|
|
1647
1668
|
key: 0,
|
|
1648
1669
|
label: String(n)
|
|
1649
1670
|
}, [(s(!0), m(S, null, e(t, (e) => (s(), m("option", {
|
|
1650
1671
|
key: e.label,
|
|
1651
1672
|
value: e.label
|
|
1652
|
-
}, c(e.label), 9,
|
|
1673
|
+
}, c(e.label), 9, Pi))), 128))], 8, Ni)) : (s(!0), m(S, { key: 1 }, e(t, (e) => (s(), m("option", {
|
|
1653
1674
|
key: e.label,
|
|
1654
1675
|
value: e.label
|
|
1655
|
-
}, c(e.label), 9,
|
|
1656
|
-
b(_) ? (s(), m("option",
|
|
1657
|
-
], 42,
|
|
1658
|
-
p("div", null, [p("label",
|
|
1676
|
+
}, c(e.label), 9, Fi))), 128))], 64))), 128)),
|
|
1677
|
+
b(_) ? (s(), m("option", Ii, c(b(f).blockSettings.customCondition), 1)) : w("", !0)
|
|
1678
|
+
], 42, ji), D.value || F.value ? (s(), m("div", Li, [
|
|
1679
|
+
p("div", null, [p("label", Ri, c(b(f).blockSettings.customConditionBefore), 1), O(p("textarea", {
|
|
1659
1680
|
"onUpdate:modelValue": i[6] ||= (e) => A.value = e,
|
|
1660
1681
|
rows: "2",
|
|
1661
1682
|
class: n(b(Tt))
|
|
1662
1683
|
}, null, 2), [[k, A.value]])]),
|
|
1663
|
-
p("div", null, [p("label",
|
|
1684
|
+
p("div", null, [p("label", zi, c(b(f).blockSettings.customConditionAfter), 1), O(p("textarea", {
|
|
1664
1685
|
"onUpdate:modelValue": i[7] ||= (e) => j.value = e,
|
|
1665
1686
|
rows: "2",
|
|
1666
1687
|
class: n(b(Tt))
|
|
1667
1688
|
}, null, 2), [[k, j.value]])]),
|
|
1668
|
-
p("div",
|
|
1689
|
+
p("div", Bi, [p("button", {
|
|
1669
1690
|
type: "button",
|
|
1670
1691
|
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",
|
|
1671
1692
|
disabled: !A.value.trim(),
|
|
1672
1693
|
onClick: L
|
|
1673
|
-
}, c(b(f).blockSettings.applyCondition), 9,
|
|
1674
|
-
])) : t.block.displayCondition && !F.value ? (s(), m(S, { key: 1 }, [t.block.displayCondition.description ? (s(), m("p",
|
|
1694
|
+
}, c(b(f).blockSettings.applyCondition), 9, Vi)])
|
|
1695
|
+
])) : t.block.displayCondition && !F.value ? (s(), m(S, { key: 1 }, [t.block.displayCondition.description ? (s(), m("p", Hi, c(t.block.displayCondition.description), 1)) : w("", !0), p("div", Ui, [p("pre", Wi, c(t.block.displayCondition.before), 1), t.block.displayCondition.after ? (s(), m("pre", Gi, c(t.block.displayCondition.after), 1)) : w("", !0)])], 64)) : w("", !0)])]),
|
|
1675
1696
|
_: 1
|
|
1676
1697
|
}, 8, ["title", "open"])) : w("", !0)
|
|
1677
1698
|
], 2));
|
|
1678
1699
|
}
|
|
1679
|
-
}),
|
|
1700
|
+
}), qi = ["title"], Ji = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Yi = {
|
|
1680
1701
|
key: 1,
|
|
1681
1702
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1682
|
-
},
|
|
1703
|
+
}, Xi = [
|
|
1683
1704
|
"aria-checked",
|
|
1684
1705
|
"aria-label",
|
|
1685
1706
|
"disabled"
|
|
1686
|
-
],
|
|
1707
|
+
], Zi = /* @__PURE__ */ f({
|
|
1687
1708
|
__name: "BooleanField",
|
|
1688
1709
|
props: {
|
|
1689
1710
|
field: {},
|
|
@@ -1696,14 +1717,14 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1696
1717
|
return (t, a) => (s(), m("div", {
|
|
1697
1718
|
class: "tpl:mb-3.5",
|
|
1698
1719
|
title: e.readOnly ? b(i).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1699
|
-
}, [p("label", { class: n(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [p("span",
|
|
1720
|
+
}, [p("label", { class: n(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [p("span", Ji, [
|
|
1700
1721
|
y(c(e.field.label) + " ", 1),
|
|
1701
1722
|
e.readOnly ? (s(), v(b(Rt), {
|
|
1702
1723
|
key: 0,
|
|
1703
1724
|
size: 12,
|
|
1704
1725
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1705
1726
|
})) : w("", !0),
|
|
1706
|
-
e.field.required ? (s(), m("span",
|
|
1727
|
+
e.field.required ? (s(), m("span", Yi, " * ")) : w("", !0)
|
|
1707
1728
|
]), p("button", {
|
|
1708
1729
|
type: "button",
|
|
1709
1730
|
role: "switch",
|
|
@@ -1716,12 +1737,12 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1716
1737
|
]),
|
|
1717
1738
|
disabled: e.readOnly,
|
|
1718
1739
|
onClick: a[0] ||= (t) => !e.readOnly && r("update:modelValue", !e.modelValue)
|
|
1719
|
-
}, [p("span", { class: n(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", e.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10,
|
|
1740
|
+
}, [p("span", { class: n(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", e.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, Xi)], 2)], 8, qi));
|
|
1720
1741
|
}
|
|
1721
|
-
}),
|
|
1742
|
+
}), Qi = { class: "tpl:mb-3.5" }, $i = {
|
|
1722
1743
|
key: 1,
|
|
1723
1744
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1724
|
-
},
|
|
1745
|
+
}, ea = /* @__PURE__ */ f({
|
|
1725
1746
|
__name: "FieldWrapper",
|
|
1726
1747
|
props: {
|
|
1727
1748
|
label: {},
|
|
@@ -1729,17 +1750,17 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1729
1750
|
readOnly: { type: Boolean }
|
|
1730
1751
|
},
|
|
1731
1752
|
setup(e) {
|
|
1732
|
-
return (t, r) => (s(), m("div",
|
|
1753
|
+
return (t, r) => (s(), m("div", Qi, [p("label", { class: n(b(K)) }, [
|
|
1733
1754
|
y(c(e.label) + " ", 1),
|
|
1734
1755
|
e.readOnly ? (s(), v(b(Rt), {
|
|
1735
1756
|
key: 0,
|
|
1736
1757
|
size: 12,
|
|
1737
1758
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1738
1759
|
})) : w("", !0),
|
|
1739
|
-
e.required ? (s(), m("span",
|
|
1760
|
+
e.required ? (s(), m("span", $i, "*")) : w("", !0)
|
|
1740
1761
|
], 2), _(t.$slots, "default")]));
|
|
1741
1762
|
}
|
|
1742
|
-
}),
|
|
1763
|
+
}), ta = /* @__PURE__ */ f({
|
|
1743
1764
|
__name: "ColorField",
|
|
1744
1765
|
props: {
|
|
1745
1766
|
field: {},
|
|
@@ -1749,7 +1770,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1749
1770
|
emits: ["update:modelValue"],
|
|
1750
1771
|
setup(e, { emit: t }) {
|
|
1751
1772
|
let n = t, { t: r } = U();
|
|
1752
|
-
return (t, i) => (s(), v(
|
|
1773
|
+
return (t, i) => (s(), v(ea, {
|
|
1753
1774
|
label: e.field.label,
|
|
1754
1775
|
required: e.field.required,
|
|
1755
1776
|
"read-only": e.readOnly
|
|
@@ -1773,15 +1794,15 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1773
1794
|
"read-only"
|
|
1774
1795
|
]));
|
|
1775
1796
|
}
|
|
1776
|
-
}),
|
|
1797
|
+
}), na = {
|
|
1777
1798
|
key: 0,
|
|
1778
1799
|
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)]",
|
|
1779
1800
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
1780
|
-
},
|
|
1801
|
+
}, ra = [
|
|
1781
1802
|
"value",
|
|
1782
1803
|
"placeholder",
|
|
1783
1804
|
"title"
|
|
1784
|
-
],
|
|
1805
|
+
], ia = ["value", "placeholder"], aa = /* @__PURE__ */ f({
|
|
1785
1806
|
__name: "ImageField",
|
|
1786
1807
|
props: {
|
|
1787
1808
|
field: {},
|
|
@@ -1816,7 +1837,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1816
1837
|
enabled: T,
|
|
1817
1838
|
onFiles: D
|
|
1818
1839
|
});
|
|
1819
|
-
return (t, r) => (s(), v(
|
|
1840
|
+
return (t, r) => (s(), v(ea, {
|
|
1820
1841
|
label: e.field.label,
|
|
1821
1842
|
required: e.field.required,
|
|
1822
1843
|
"read-only": e.readOnly
|
|
@@ -1826,7 +1847,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1826
1847
|
ref: _,
|
|
1827
1848
|
class: "tpl:relative"
|
|
1828
1849
|
}, [
|
|
1829
|
-
T.value && (b(O) || x.value) ? (s(), m("div",
|
|
1850
|
+
T.value && (b(O) || x.value) ? (s(), m("div", na, [x.value ? (s(), m(S, { key: 0 }, [g(b(lt), {
|
|
1830
1851
|
class: "tpl-spinner",
|
|
1831
1852
|
size: 18,
|
|
1832
1853
|
"stroke-width": 2
|
|
@@ -1842,14 +1863,14 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1842
1863
|
placeholder: e.field.placeholder || "https://...",
|
|
1843
1864
|
disabled: "",
|
|
1844
1865
|
title: b(a).customBlocks.dataSource.readOnlyTooltip
|
|
1845
|
-
}, null, 10,
|
|
1866
|
+
}, null, 10, ra)) : (s(), m("input", {
|
|
1846
1867
|
key: 2,
|
|
1847
1868
|
type: "url",
|
|
1848
1869
|
class: n(b(G)),
|
|
1849
1870
|
value: e.modelValue,
|
|
1850
1871
|
placeholder: e.field.placeholder || "https://...",
|
|
1851
1872
|
onInput: r[0] ||= (e) => i("update:modelValue", e.target.value)
|
|
1852
|
-
}, null, 42,
|
|
1873
|
+
}, null, 42, ia)),
|
|
1853
1874
|
f.value && !e.readOnly ? (s(), m("button", {
|
|
1854
1875
|
key: 3,
|
|
1855
1876
|
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)]",
|
|
@@ -1866,7 +1887,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1866
1887
|
"read-only"
|
|
1867
1888
|
]));
|
|
1868
1889
|
}
|
|
1869
|
-
}),
|
|
1890
|
+
}), oa = [
|
|
1870
1891
|
"value",
|
|
1871
1892
|
"placeholder",
|
|
1872
1893
|
"min",
|
|
@@ -1874,7 +1895,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1874
1895
|
"step",
|
|
1875
1896
|
"disabled",
|
|
1876
1897
|
"title"
|
|
1877
|
-
],
|
|
1898
|
+
], sa = /* @__PURE__ */ f({
|
|
1878
1899
|
__name: "NumberField",
|
|
1879
1900
|
props: {
|
|
1880
1901
|
field: {},
|
|
@@ -1884,7 +1905,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1884
1905
|
emits: ["update:modelValue"],
|
|
1885
1906
|
setup(e, { emit: t }) {
|
|
1886
1907
|
let r = t, { t: i } = U();
|
|
1887
|
-
return (t, a) => (s(), v(
|
|
1908
|
+
return (t, a) => (s(), v(ea, {
|
|
1888
1909
|
label: e.field.label,
|
|
1889
1910
|
required: e.field.required,
|
|
1890
1911
|
"read-only": e.readOnly
|
|
@@ -1900,7 +1921,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1900
1921
|
disabled: e.readOnly,
|
|
1901
1922
|
title: e.readOnly ? b(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1902
1923
|
onInput: a[0] ||= (t) => !e.readOnly && r("update:modelValue", Number(t.target.value))
|
|
1903
|
-
}, null, 42,
|
|
1924
|
+
}, null, 42, oa)]),
|
|
1904
1925
|
_: 1
|
|
1905
1926
|
}, 8, [
|
|
1906
1927
|
"label",
|
|
@@ -1908,10 +1929,10 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1908
1929
|
"read-only"
|
|
1909
1930
|
]));
|
|
1910
1931
|
}
|
|
1911
|
-
}),
|
|
1932
|
+
}), ca = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, la = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ua = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, da = ["title", "onClick"], fa = {
|
|
1912
1933
|
key: 1,
|
|
1913
1934
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1914
|
-
},
|
|
1935
|
+
}, pa = /* @__PURE__ */ f({
|
|
1915
1936
|
__name: "RepeatableField",
|
|
1916
1937
|
props: {
|
|
1917
1938
|
field: {},
|
|
@@ -1939,16 +1960,16 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1939
1960
|
} : r);
|
|
1940
1961
|
a("update:modelValue", r);
|
|
1941
1962
|
}
|
|
1942
|
-
return (r, i) => (s(), v(
|
|
1963
|
+
return (r, i) => (s(), v(ea, {
|
|
1943
1964
|
label: t.field.label,
|
|
1944
1965
|
required: t.field.required,
|
|
1945
1966
|
"read-only": t.readOnly
|
|
1946
1967
|
}, {
|
|
1947
|
-
default: l(() => [p("div",
|
|
1968
|
+
default: l(() => [p("div", ca, [
|
|
1948
1969
|
(s(!0), m(S, null, e(d.value, (n, r) => (s(), m("div", {
|
|
1949
1970
|
key: `${t.field.key}-${r}`,
|
|
1950
1971
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1951
|
-
}, [p("div",
|
|
1972
|
+
}, [p("div", la, [p("span", ua, " #" + c(r + 1), 1), h.value && !t.readOnly ? (s(), m("button", {
|
|
1952
1973
|
key: 0,
|
|
1953
1974
|
type: "button",
|
|
1954
1975
|
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)]",
|
|
@@ -1957,7 +1978,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1957
1978
|
}, [g(b(mt), {
|
|
1958
1979
|
size: 12,
|
|
1959
1980
|
"stroke-width": 2
|
|
1960
|
-
})], 8,
|
|
1981
|
+
})], 8, da)) : w("", !0)]), (s(!0), m(S, null, e(t.field.fields, (e) => (s(), v(o(b(Sa)(e.type)), {
|
|
1961
1982
|
key: e.key,
|
|
1962
1983
|
field: e,
|
|
1963
1984
|
"model-value": n[e.key],
|
|
@@ -1978,7 +1999,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1978
1999
|
size: 14,
|
|
1979
2000
|
"stroke-width": 2
|
|
1980
2001
|
}), y(" " + c(b(u).customBlocks.fields.addItem), 1)], 2)) : w("", !0),
|
|
1981
|
-
!f.value && !t.readOnly ? (s(), m("p",
|
|
2002
|
+
!f.value && !t.readOnly ? (s(), m("p", fa, c(b(u).customBlocks.fields.maxItemsReached), 1)) : w("", !0)
|
|
1982
2003
|
])]),
|
|
1983
2004
|
_: 1
|
|
1984
2005
|
}, 8, [
|
|
@@ -1987,11 +2008,11 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1987
2008
|
"read-only"
|
|
1988
2009
|
]));
|
|
1989
2010
|
}
|
|
1990
|
-
}),
|
|
2011
|
+
}), ma = [
|
|
1991
2012
|
"value",
|
|
1992
2013
|
"disabled",
|
|
1993
2014
|
"title"
|
|
1994
|
-
],
|
|
2015
|
+
], ha = ["value"], ga = /* @__PURE__ */ f({
|
|
1995
2016
|
__name: "SelectField",
|
|
1996
2017
|
props: {
|
|
1997
2018
|
field: {},
|
|
@@ -2001,7 +2022,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2001
2022
|
emits: ["update:modelValue"],
|
|
2002
2023
|
setup(t, { emit: r }) {
|
|
2003
2024
|
let i = r, { t: a } = U();
|
|
2004
|
-
return (r, o) => (s(), v(
|
|
2025
|
+
return (r, o) => (s(), v(ea, {
|
|
2005
2026
|
label: t.field.label,
|
|
2006
2027
|
required: t.field.required,
|
|
2007
2028
|
"read-only": t.readOnly
|
|
@@ -2015,7 +2036,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2015
2036
|
}, [(s(!0), m(S, null, e(t.field.options, (e) => (s(), m("option", {
|
|
2016
2037
|
key: e.value,
|
|
2017
2038
|
value: e.value
|
|
2018
|
-
}, c(e.label), 9,
|
|
2039
|
+
}, c(e.label), 9, ha))), 128))], 42, ma)]),
|
|
2019
2040
|
_: 1
|
|
2020
2041
|
}, 8, [
|
|
2021
2042
|
"label",
|
|
@@ -2023,11 +2044,11 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2023
2044
|
"read-only"
|
|
2024
2045
|
]));
|
|
2025
2046
|
}
|
|
2026
|
-
}),
|
|
2047
|
+
}), _a = [
|
|
2027
2048
|
"value",
|
|
2028
2049
|
"placeholder",
|
|
2029
2050
|
"title"
|
|
2030
|
-
],
|
|
2051
|
+
], va = /* @__PURE__ */ f({
|
|
2031
2052
|
__name: "TextField",
|
|
2032
2053
|
props: {
|
|
2033
2054
|
field: {},
|
|
@@ -2037,7 +2058,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2037
2058
|
emits: ["update:modelValue"],
|
|
2038
2059
|
setup(e, { emit: t }) {
|
|
2039
2060
|
let r = t, { t: i } = U();
|
|
2040
|
-
return (t, a) => (s(), v(
|
|
2061
|
+
return (t, a) => (s(), v(ea, {
|
|
2041
2062
|
label: e.field.label,
|
|
2042
2063
|
required: e.field.required,
|
|
2043
2064
|
"read-only": e.readOnly
|
|
@@ -2050,7 +2071,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2050
2071
|
placeholder: e.field.placeholder,
|
|
2051
2072
|
disabled: "",
|
|
2052
2073
|
title: b(i).customBlocks.dataSource.readOnlyTooltip
|
|
2053
|
-
}, null, 10,
|
|
2074
|
+
}, null, 10, _a)) : (s(), v($, {
|
|
2054
2075
|
key: 1,
|
|
2055
2076
|
"model-value": e.modelValue,
|
|
2056
2077
|
placeholder: e.field.placeholder,
|
|
@@ -2063,12 +2084,12 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2063
2084
|
"read-only"
|
|
2064
2085
|
]));
|
|
2065
2086
|
}
|
|
2066
|
-
}),
|
|
2087
|
+
}), ya = [
|
|
2067
2088
|
"value",
|
|
2068
2089
|
"placeholder",
|
|
2069
2090
|
"title"
|
|
2070
|
-
],
|
|
2071
|
-
text:
|
|
2091
|
+
], ba = "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", xa = {
|
|
2092
|
+
text: va,
|
|
2072
2093
|
textarea: /* @__PURE__ */ f({
|
|
2073
2094
|
__name: "TextareaField",
|
|
2074
2095
|
props: {
|
|
@@ -2079,7 +2100,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2079
2100
|
emits: ["update:modelValue"],
|
|
2080
2101
|
setup(e, { emit: t }) {
|
|
2081
2102
|
let r = t, { t: i } = U();
|
|
2082
|
-
return (t, a) => (s(), v(
|
|
2103
|
+
return (t, a) => (s(), v(ea, {
|
|
2083
2104
|
label: e.field.label,
|
|
2084
2105
|
required: e.field.required,
|
|
2085
2106
|
"read-only": e.readOnly
|
|
@@ -2091,8 +2112,8 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2091
2112
|
rows: "3",
|
|
2092
2113
|
disabled: "",
|
|
2093
2114
|
title: b(i).customBlocks.dataSource.readOnlyTooltip,
|
|
2094
|
-
class: n(
|
|
2095
|
-
}, null, 8,
|
|
2115
|
+
class: n(ba)
|
|
2116
|
+
}, null, 8, ya)) : (s(), v(Wn, {
|
|
2096
2117
|
key: 1,
|
|
2097
2118
|
"model-value": e.modelValue,
|
|
2098
2119
|
placeholder: e.field.placeholder,
|
|
@@ -2106,37 +2127,37 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2106
2127
|
]));
|
|
2107
2128
|
}
|
|
2108
2129
|
}),
|
|
2109
|
-
image:
|
|
2110
|
-
color:
|
|
2111
|
-
number:
|
|
2112
|
-
select:
|
|
2113
|
-
boolean:
|
|
2114
|
-
repeatable:
|
|
2130
|
+
image: aa,
|
|
2131
|
+
color: ta,
|
|
2132
|
+
number: sa,
|
|
2133
|
+
select: ga,
|
|
2134
|
+
boolean: Zi,
|
|
2135
|
+
repeatable: pa
|
|
2115
2136
|
};
|
|
2116
|
-
function
|
|
2117
|
-
return
|
|
2137
|
+
function Sa(e) {
|
|
2138
|
+
return xa[e] ?? va;
|
|
2118
2139
|
}
|
|
2119
2140
|
//#endregion
|
|
2120
2141
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2121
|
-
var
|
|
2142
|
+
var Ca = {
|
|
2122
2143
|
key: 0,
|
|
2123
2144
|
class: "tpl:p-4"
|
|
2124
|
-
},
|
|
2145
|
+
}, wa = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ta = { key: 1 }, Ea = {
|
|
2125
2146
|
key: 0,
|
|
2126
2147
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
2127
|
-
},
|
|
2148
|
+
}, Da = {
|
|
2128
2149
|
key: 1,
|
|
2129
2150
|
class: "tpl:mb-4"
|
|
2130
|
-
},
|
|
2151
|
+
}, Oa = {
|
|
2131
2152
|
key: 1,
|
|
2132
2153
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
2133
|
-
},
|
|
2154
|
+
}, ka = {
|
|
2134
2155
|
key: 0,
|
|
2135
2156
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2136
|
-
},
|
|
2157
|
+
}, Aa = {
|
|
2137
2158
|
key: 2,
|
|
2138
2159
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
2139
|
-
},
|
|
2160
|
+
}, ja = /* @__PURE__ */ f({
|
|
2140
2161
|
__name: "CustomBlockToolbar",
|
|
2141
2162
|
props: { block: {} },
|
|
2142
2163
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
@@ -2157,23 +2178,23 @@ var _a = {
|
|
|
2157
2178
|
[e]: t
|
|
2158
2179
|
});
|
|
2159
2180
|
}
|
|
2160
|
-
return (n, r) => u.value ? (s(), m("div",
|
|
2161
|
-
u.value.description ? (s(), m("p",
|
|
2162
|
-
b(_) ? (s(), m("div",
|
|
2181
|
+
return (n, r) => u.value ? (s(), m("div", Ta, [
|
|
2182
|
+
u.value.description ? (s(), m("p", Ea, c(u.value.description), 1)) : w("", !0),
|
|
2183
|
+
b(_) ? (s(), m("div", Da, [b(x) && !b(d) ? (s(), m("button", {
|
|
2163
2184
|
key: 0,
|
|
2164
2185
|
type: "button",
|
|
2165
2186
|
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)]",
|
|
2166
2187
|
onClick: r[0] ||= (...e) => b(h) && b(h)(...e)
|
|
2167
|
-
}, c(u.value?.dataSource?.label || b(a).customBlocks.dataSource.fetchButton), 1)) : (s(), m("div",
|
|
2188
|
+
}, c(u.value?.dataSource?.label || b(a).customBlocks.dataSource.fetchButton), 1)) : (s(), m("div", Oa, [b(d) ? (s(), m("div", ka, c(b(a).customBlocks.dataSource.fetching), 1)) : (s(), m("button", {
|
|
2168
2189
|
key: 1,
|
|
2169
2190
|
type: "button",
|
|
2170
2191
|
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)]",
|
|
2171
2192
|
onClick: r[1] ||= (...e) => b(h) && b(h)(...e)
|
|
2172
|
-
}, [g(b(at), { size: 12 }), y(" " + c(b(a).customBlocks.dataSource.changeButton), 1)]))])), b(f) ? (s(), m("p",
|
|
2193
|
+
}, [g(b(at), { size: 12 }), y(" " + c(b(a).customBlocks.dataSource.changeButton), 1)]))])), b(f) ? (s(), m("p", Aa, [g(b($e), {
|
|
2173
2194
|
size: 14,
|
|
2174
2195
|
class: "tpl:shrink-0"
|
|
2175
2196
|
}), y(" " + c(b(a).customBlocks.dataSource.fetchError), 1)])) : w("", !0)])) : w("", !0),
|
|
2176
|
-
(s(!0), m(S, null, e(u.value.fields, (e) => (s(), v(o(b(
|
|
2197
|
+
(s(!0), m(S, null, e(u.value.fields, (e) => (s(), v(o(b(Sa)(e.type)), {
|
|
2177
2198
|
key: e.key,
|
|
2178
2199
|
field: e,
|
|
2179
2200
|
"model-value": t.block.fieldValues[e.key],
|
|
@@ -2185,9 +2206,9 @@ var _a = {
|
|
|
2185
2206
|
"read-only",
|
|
2186
2207
|
"onUpdate:modelValue"
|
|
2187
2208
|
]))), 128))
|
|
2188
|
-
])) : (s(), m("div",
|
|
2209
|
+
])) : (s(), m("div", Ca, [p("p", wa, c(b(a).customBlocks.toolbar.noDefinition), 1)]));
|
|
2189
2210
|
}
|
|
2190
|
-
}),
|
|
2211
|
+
}), Ma = { class: "tpl:mb-3.5" }, Na = { class: "tpl:mb-3.5" }, Pa = { class: "tpl:mb-3.5" }, Fa = { class: "tpl:flex tpl:items-stretch" }, Ia = ["value"], La = /* @__PURE__ */ f({
|
|
2191
2212
|
__name: "DividerToolbar",
|
|
2192
2213
|
props: { block: {} },
|
|
2193
2214
|
emits: ["update"],
|
|
@@ -2197,7 +2218,7 @@ var _a = {
|
|
|
2197
2218
|
r("update", { [e]: t });
|
|
2198
2219
|
}
|
|
2199
2220
|
return (t, r) => (s(), m(S, null, [
|
|
2200
|
-
p("div",
|
|
2221
|
+
p("div", Ma, [p("label", { class: n(b(K)) }, c(b(i).divider.style), 3), g(Z, {
|
|
2201
2222
|
options: [
|
|
2202
2223
|
{
|
|
2203
2224
|
value: "solid",
|
|
@@ -2215,27 +2236,27 @@ var _a = {
|
|
|
2215
2236
|
"model-value": e.block.lineStyle,
|
|
2216
2237
|
"onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
|
|
2217
2238
|
}, null, 8, ["options", "model-value"])]),
|
|
2218
|
-
p("div",
|
|
2239
|
+
p("div", Na, [p("label", { class: n(b(K)) }, c(b(i).divider.color), 3), g(Y, {
|
|
2219
2240
|
"model-value": e.block.color,
|
|
2220
2241
|
"onUpdate:modelValue": r[1] ||= (e) => a("color", e)
|
|
2221
2242
|
}, null, 8, ["model-value"])]),
|
|
2222
|
-
p("div",
|
|
2243
|
+
p("div", Pa, [p("label", { class: n(b(K)) }, c(b(i).divider.thickness), 3), p("div", Fa, [p("input", {
|
|
2223
2244
|
type: "number",
|
|
2224
2245
|
class: n(b(J)),
|
|
2225
2246
|
value: e.block.thickness,
|
|
2226
2247
|
min: "1",
|
|
2227
2248
|
max: "10",
|
|
2228
2249
|
onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
|
|
2229
|
-
}, null, 42,
|
|
2250
|
+
}, null, 42, Ia), p("span", { class: n(b(q)) }, "px", 2)])])
|
|
2230
2251
|
], 64));
|
|
2231
2252
|
}
|
|
2232
|
-
}),
|
|
2253
|
+
}), Ra = { class: "tpl:mb-3.5" }, za = ["value"], Ba = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Va = /* @__PURE__ */ f({
|
|
2233
2254
|
__name: "HtmlToolbar",
|
|
2234
2255
|
props: { block: {} },
|
|
2235
2256
|
emits: ["update"],
|
|
2236
2257
|
setup(e, { emit: t }) {
|
|
2237
2258
|
let r = t, { t: i } = U();
|
|
2238
|
-
return (t, a) => (s(), m("div",
|
|
2259
|
+
return (t, a) => (s(), m("div", Ra, [
|
|
2239
2260
|
p("label", { class: n(b(K)) }, c(b(i).html.content), 3),
|
|
2240
2261
|
p("textarea", {
|
|
2241
2262
|
value: e.block.content,
|
|
@@ -2243,27 +2264,27 @@ var _a = {
|
|
|
2243
2264
|
rows: "10",
|
|
2244
2265
|
class: n(b(Tt)),
|
|
2245
2266
|
onInput: a[0] ||= (e) => r("update", { content: e.target.value })
|
|
2246
|
-
}, null, 42,
|
|
2247
|
-
p("p",
|
|
2267
|
+
}, null, 42, za),
|
|
2268
|
+
p("p", Ba, [g(b(st), {
|
|
2248
2269
|
size: 12,
|
|
2249
2270
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2250
2271
|
}), y(" " + c(b(i).html.sanitizationHint), 1)])
|
|
2251
2272
|
]));
|
|
2252
2273
|
}
|
|
2253
|
-
}),
|
|
2274
|
+
}), Ha = { class: "tpl:mb-3.5" }, Ua = {
|
|
2254
2275
|
key: 0,
|
|
2255
2276
|
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)]",
|
|
2256
2277
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
2257
|
-
},
|
|
2278
|
+
}, Wa = {
|
|
2258
2279
|
key: 0,
|
|
2259
2280
|
class: "tpl:mb-3.5"
|
|
2260
|
-
},
|
|
2281
|
+
}, Ga = ["value", "placeholder"], Ka = { class: "tpl:mb-3.5" }, qa = { class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]" }, Ja = ["checked"], Ya = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Xa = { class: "tpl:mb-3.5" }, Za = ["value"], Qa = { value: "full" }, $a = { value: "custom" }, eo = {
|
|
2261
2282
|
key: 0,
|
|
2262
2283
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2263
|
-
},
|
|
2284
|
+
}, to = ["value"], no = { class: "tpl:mb-3.5" }, ro = { class: "tpl:mb-3.5" }, io = {
|
|
2264
2285
|
key: 0,
|
|
2265
2286
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
2266
|
-
},
|
|
2287
|
+
}, ao = ["checked"], oo = 350, so = /* @__PURE__ */ f({
|
|
2267
2288
|
__name: "ImageToolbar",
|
|
2268
2289
|
props: { block: {} },
|
|
2269
2290
|
emits: ["update"],
|
|
@@ -2284,7 +2305,7 @@ var _a = {
|
|
|
2284
2305
|
function O(e) {
|
|
2285
2306
|
if (e === "custom") {
|
|
2286
2307
|
let e = r.block.width;
|
|
2287
|
-
(typeof e != "number" || x.includes(e)) && D("width",
|
|
2308
|
+
(typeof e != "number" || x.includes(e)) && D("width", oo);
|
|
2288
2309
|
return;
|
|
2289
2310
|
}
|
|
2290
2311
|
D("width", e === "full" ? "full" : Number(e));
|
|
@@ -2319,12 +2340,12 @@ var _a = {
|
|
|
2319
2340
|
onFiles: F
|
|
2320
2341
|
});
|
|
2321
2342
|
return (t, r) => (s(), m(S, null, [
|
|
2322
|
-
p("div",
|
|
2343
|
+
p("div", Ha, [p("label", { class: n(b(K)) }, c(b(a).image.imageUrl), 3), p("div", {
|
|
2323
2344
|
ref_key: "dropZoneRef",
|
|
2324
2345
|
ref: j,
|
|
2325
2346
|
class: "tpl:relative"
|
|
2326
2347
|
}, [
|
|
2327
|
-
P.value && (b(I) || M.value) ? (s(), m("div",
|
|
2348
|
+
P.value && (b(I) || M.value) ? (s(), m("div", Ua, [M.value ? (s(), m(S, { key: 0 }, [g(b(lt), {
|
|
2328
2349
|
class: "tpl-spinner",
|
|
2329
2350
|
size: 18,
|
|
2330
2351
|
"stroke-width": 2
|
|
@@ -2357,14 +2378,14 @@ var _a = {
|
|
|
2357
2378
|
"stroke-width": 1.5
|
|
2358
2379
|
}), y(" " + c(b(a).image.browseMedia), 1)])) : w("", !0)
|
|
2359
2380
|
], 512)]),
|
|
2360
|
-
b(z)(e.block.src, b(l)) ? (s(), m("div",
|
|
2381
|
+
b(z)(e.block.src, b(l)) ? (s(), m("div", Wa, [p("label", { class: n(b(K)) }, [y(c(b(a).image.placeholderUrl) + " ", 1), r[9] ||= p("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, c("(optional)"), -1)], 2), p("input", {
|
|
2361
2382
|
type: "url",
|
|
2362
2383
|
class: n(b(G)),
|
|
2363
2384
|
value: e.block.placeholderUrl || "",
|
|
2364
2385
|
placeholder: b(a).image.placeholderUrlPlaceholder,
|
|
2365
2386
|
onInput: r[1] ||= (e) => D("placeholderUrl", e.target.value)
|
|
2366
|
-
}, null, 42,
|
|
2367
|
-
p("div",
|
|
2387
|
+
}, null, 42, Ga)])) : w("", !0),
|
|
2388
|
+
p("div", Ka, [
|
|
2368
2389
|
p("label", { class: n(b(K)) }, c(b(a).image.altText), 3),
|
|
2369
2390
|
g($, {
|
|
2370
2391
|
"model-value": e.block.alt,
|
|
@@ -2379,35 +2400,35 @@ var _a = {
|
|
|
2379
2400
|
"pulse",
|
|
2380
2401
|
"disabled"
|
|
2381
2402
|
]),
|
|
2382
|
-
p("label",
|
|
2403
|
+
p("label", qa, [p("input", {
|
|
2383
2404
|
type: "checkbox",
|
|
2384
2405
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2385
2406
|
checked: e.block.decorative === !0,
|
|
2386
2407
|
onChange: r[3] ||= (e) => D("decorative", e.target.checked)
|
|
2387
|
-
}, null, 40,
|
|
2408
|
+
}, null, 40, Ja), p("span", null, [y(c(b(a).image.decorative) + " ", 1), p("span", Ya, c(b(a).image.decorativeHint), 1)])])
|
|
2388
2409
|
]),
|
|
2389
|
-
p("div",
|
|
2410
|
+
p("div", Xa, [
|
|
2390
2411
|
p("label", { class: n(b(K)) }, c(b(a).image.width), 3),
|
|
2391
2412
|
p("select", {
|
|
2392
2413
|
class: n(b(G)),
|
|
2393
2414
|
value: T.value,
|
|
2394
2415
|
onChange: r[4] ||= (e) => O(e.target.value)
|
|
2395
2416
|
}, [
|
|
2396
|
-
p("option",
|
|
2417
|
+
p("option", Qa, c(b(a).image.fullWidth), 1),
|
|
2397
2418
|
r[10] ||= p("option", { value: "300" }, "300px", -1),
|
|
2398
2419
|
r[11] ||= p("option", { value: "400" }, "400px", -1),
|
|
2399
2420
|
r[12] ||= p("option", { value: "500" }, "500px", -1),
|
|
2400
|
-
p("option",
|
|
2401
|
-
], 42,
|
|
2402
|
-
T.value === "custom" ? (s(), m("div",
|
|
2421
|
+
p("option", $a, c(b(a).image.widthCustom), 1)
|
|
2422
|
+
], 42, Za),
|
|
2423
|
+
T.value === "custom" ? (s(), m("div", eo, [p("input", {
|
|
2403
2424
|
type: "number",
|
|
2404
2425
|
class: n(b(J)),
|
|
2405
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2426
|
+
value: typeof e.block.width == "number" ? e.block.width : oo,
|
|
2406
2427
|
min: "20",
|
|
2407
2428
|
onInput: r[5] ||= (e) => k(e.target.value)
|
|
2408
|
-
}, null, 42,
|
|
2429
|
+
}, null, 42, to), p("span", { class: n(b(q)) }, "px", 2)])) : w("", !0)
|
|
2409
2430
|
]),
|
|
2410
|
-
p("div",
|
|
2431
|
+
p("div", no, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Z, {
|
|
2411
2432
|
options: [
|
|
2412
2433
|
{
|
|
2413
2434
|
value: "left",
|
|
@@ -2425,7 +2446,7 @@ var _a = {
|
|
|
2425
2446
|
"model-value": e.block.align,
|
|
2426
2447
|
"onUpdate:modelValue": r[6] ||= (e) => D("align", e)
|
|
2427
2448
|
}, null, 8, ["options", "model-value"])]),
|
|
2428
|
-
p("div",
|
|
2449
|
+
p("div", ro, [
|
|
2429
2450
|
p("label", { class: n(b(K)) }, c(b(a).image.linkUrl), 3),
|
|
2430
2451
|
g($, {
|
|
2431
2452
|
"model-value": e.block.linkUrl || "",
|
|
@@ -2433,20 +2454,20 @@ var _a = {
|
|
|
2433
2454
|
placeholder: b(a).image.imageUrlPlaceholder,
|
|
2434
2455
|
"onUpdate:modelValue": r[7] ||= (e) => D("linkUrl", e)
|
|
2435
2456
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2436
|
-
e.block.linkUrl ? (s(), m("label",
|
|
2457
|
+
e.block.linkUrl ? (s(), m("label", io, [p("input", {
|
|
2437
2458
|
type: "checkbox",
|
|
2438
2459
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2439
2460
|
checked: e.block.linkOpenInNewTab ?? !1,
|
|
2440
2461
|
onChange: r[8] ||= (e) => D("linkOpenInNewTab", e.target.checked)
|
|
2441
|
-
}, null, 40,
|
|
2462
|
+
}, null, 40, ao), y(" " + c(b(a).image.openInNewTab), 1)])) : w("", !0)
|
|
2442
2463
|
])
|
|
2443
2464
|
], 64));
|
|
2444
2465
|
}
|
|
2445
|
-
}),
|
|
2466
|
+
}), co = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, lo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, uo = [
|
|
2446
2467
|
"value",
|
|
2447
2468
|
"placeholder",
|
|
2448
2469
|
"onInput"
|
|
2449
|
-
],
|
|
2470
|
+
], fo = ["title", "onClick"], po = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, mo = ["checked", "onChange"], ho = { class: "tpl:flex tpl:items-center tpl:gap-2" }, go = ["value"], _o = { value: "" }, vo = ["value"], yo = ["value"], bo = /* @__PURE__ */ f({
|
|
2450
2471
|
__name: "MenuToolbar",
|
|
2451
2472
|
props: {
|
|
2452
2473
|
block: {},
|
|
@@ -2510,24 +2531,24 @@ var _a = {
|
|
|
2510
2531
|
}
|
|
2511
2532
|
return (r, i) => (s(), m(S, null, [
|
|
2512
2533
|
g(X, { label: b(o).menu.items }, {
|
|
2513
|
-
default: l(() => [p("div",
|
|
2534
|
+
default: l(() => [p("div", co, [(s(!0), m(S, null, e(t.block.items, (r) => (s(), m("div", {
|
|
2514
2535
|
key: r.id,
|
|
2515
2536
|
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"
|
|
2516
2537
|
}, [
|
|
2517
|
-
p("div",
|
|
2538
|
+
p("div", lo, [p("input", {
|
|
2518
2539
|
type: "text",
|
|
2519
2540
|
class: n([b(G), "tpl:flex-1"]),
|
|
2520
2541
|
value: r.text,
|
|
2521
2542
|
placeholder: b(o).menu.text,
|
|
2522
2543
|
onInput: (e) => _(r.id, "text", e.target.value)
|
|
2523
|
-
}, null, 42,
|
|
2544
|
+
}, null, 42, uo), p("button", {
|
|
2524
2545
|
class: n(b(Ct)),
|
|
2525
2546
|
title: b(o).menu.removeItem,
|
|
2526
2547
|
onClick: (e) => v(r.id)
|
|
2527
2548
|
}, [g(b(gt), {
|
|
2528
2549
|
size: 14,
|
|
2529
2550
|
"stroke-width": 2
|
|
2530
|
-
})], 10,
|
|
2551
|
+
})], 10, fo)]),
|
|
2531
2552
|
g($, {
|
|
2532
2553
|
"model-value": r.url,
|
|
2533
2554
|
type: "url",
|
|
@@ -2538,7 +2559,7 @@ var _a = {
|
|
|
2538
2559
|
"placeholder",
|
|
2539
2560
|
"onUpdate:modelValue"
|
|
2540
2561
|
]),
|
|
2541
|
-
p("div",
|
|
2562
|
+
p("div", po, [(s(!0), m(S, null, e(u.value, (e) => (s(), m("label", {
|
|
2542
2563
|
key: e.key,
|
|
2543
2564
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1"
|
|
2544
2565
|
}, [p("input", {
|
|
@@ -2546,10 +2567,10 @@ var _a = {
|
|
|
2546
2567
|
checked: r[e.key],
|
|
2547
2568
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2548
2569
|
onChange: (t) => _(r.id, e.key, t.target.checked)
|
|
2549
|
-
}, null, 40,
|
|
2550
|
-
p("div",
|
|
2570
|
+
}, null, 40, mo), y(" " + c(e.label), 1)]))), 128))]),
|
|
2571
|
+
p("div", ho, [p("label", { class: n([b(K), "tpl:!mb-0"]) }, c(b(o).menu.color), 3), g(Y, {
|
|
2551
2572
|
"swatch-only": "",
|
|
2552
|
-
"model-value": r.color || t.block.linkColor || t.block.color,
|
|
2573
|
+
"model-value": r.color || t.block.linkColor || t.block.color || "",
|
|
2553
2574
|
"onUpdate:modelValue": (e) => _(r.id, "color", e)
|
|
2554
2575
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2555
2576
|
]))), 128)), p("button", {
|
|
@@ -2566,10 +2587,10 @@ var _a = {
|
|
|
2566
2587
|
class: n(b(G)),
|
|
2567
2588
|
value: t.block.fontFamily || "",
|
|
2568
2589
|
onChange: i[0] ||= (e) => f("fontFamily", e.target.value || void 0)
|
|
2569
|
-
}, [p("option",
|
|
2590
|
+
}, [p("option", _o, c(b(o).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
2570
2591
|
key: e.value,
|
|
2571
2592
|
value: e.value
|
|
2572
|
-
}, c(e.label), 9,
|
|
2593
|
+
}, c(e.label), 9, vo))), 128))], 42, go)]),
|
|
2573
2594
|
_: 1
|
|
2574
2595
|
}, 8, ["label"]),
|
|
2575
2596
|
g(X, { label: b(o).menu.fontSize }, {
|
|
@@ -2584,14 +2605,14 @@ var _a = {
|
|
|
2584
2605
|
}, 8, ["label"]),
|
|
2585
2606
|
g(X, { label: b(o).menu.color }, {
|
|
2586
2607
|
default: l(() => [g(Y, {
|
|
2587
|
-
"model-value": t.block.color,
|
|
2588
|
-
"onUpdate:modelValue": i[2] ||= (e) => f("color", e)
|
|
2608
|
+
"model-value": t.block.color ?? "",
|
|
2609
|
+
"onUpdate:modelValue": i[2] ||= (e) => f("color", e || void 0)
|
|
2589
2610
|
}, null, 8, ["model-value"])]),
|
|
2590
2611
|
_: 1
|
|
2591
2612
|
}, 8, ["label"]),
|
|
2592
2613
|
g(X, { label: b(o).menu.linkColor }, {
|
|
2593
2614
|
default: l(() => [g(Y, {
|
|
2594
|
-
"model-value": t.block.linkColor || t.block.color,
|
|
2615
|
+
"model-value": t.block.linkColor || t.block.color || "",
|
|
2595
2616
|
"onUpdate:modelValue": i[3] ||= (e) => f("linkColor", e || void 0)
|
|
2596
2617
|
}, null, 8, ["model-value"])]),
|
|
2597
2618
|
_: 1
|
|
@@ -2610,7 +2631,7 @@ var _a = {
|
|
|
2610
2631
|
class: n(b(G)),
|
|
2611
2632
|
value: t.block.separator,
|
|
2612
2633
|
onInput: i[5] ||= (e) => f("separator", e.target.value)
|
|
2613
|
-
}, null, 42,
|
|
2634
|
+
}, null, 42, yo)]),
|
|
2614
2635
|
_: 1
|
|
2615
2636
|
}, 8, ["label"]),
|
|
2616
2637
|
g(X, { label: b(o).menu.separatorColor }, {
|
|
@@ -2635,11 +2656,11 @@ var _a = {
|
|
|
2635
2656
|
});
|
|
2636
2657
|
//#endregion
|
|
2637
2658
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
2638
|
-
function
|
|
2659
|
+
function xo(e) {
|
|
2639
2660
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
2640
2661
|
}
|
|
2641
|
-
function
|
|
2642
|
-
let n =
|
|
2662
|
+
function So(e, t) {
|
|
2663
|
+
let n = xo(t);
|
|
2643
2664
|
if (e.length === n) return e;
|
|
2644
2665
|
if (e.length < n) {
|
|
2645
2666
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2650,10 +2671,10 @@ function go(e, t) {
|
|
|
2650
2671
|
}
|
|
2651
2672
|
//#endregion
|
|
2652
2673
|
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2653
|
-
var
|
|
2674
|
+
var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class: "tpl:mb-3.5" }, Do = { class: "tpl:flex tpl:items-stretch" }, Oo = ["value"], ko = { class: "tpl:mb-3.5" }, Ao = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, jo = ["checked"], Mo = {
|
|
2654
2675
|
key: 0,
|
|
2655
2676
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2656
|
-
},
|
|
2677
|
+
}, No = { class: "tpl:flex tpl:items-stretch" }, Po = ["value"], Fo = /* @__PURE__ */ f({
|
|
2657
2678
|
__name: "SectionToolbar",
|
|
2658
2679
|
props: { block: {} },
|
|
2659
2680
|
emits: ["update"],
|
|
@@ -2681,7 +2702,7 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2681
2702
|
}
|
|
2682
2703
|
]);
|
|
2683
2704
|
function u(e) {
|
|
2684
|
-
let t = e.target.value, n =
|
|
2705
|
+
let t = e.target.value, n = So(i.block.children, t);
|
|
2685
2706
|
a("update", {
|
|
2686
2707
|
columns: t,
|
|
2687
2708
|
children: n
|
|
@@ -2712,33 +2733,33 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2712
2733
|
h({ borderRadius: Number(e.target.value) });
|
|
2713
2734
|
}
|
|
2714
2735
|
return (r, i) => (s(), m(S, null, [
|
|
2715
|
-
p("div",
|
|
2736
|
+
p("div", Co, [p("label", { class: n(b(K)) }, c(b(o).section.columns), 3), p("select", {
|
|
2716
2737
|
class: n(b(G)),
|
|
2717
2738
|
value: t.block.columns,
|
|
2718
2739
|
onChange: u
|
|
2719
2740
|
}, [(s(!0), m(S, null, e(l.value, (e) => (s(), m("option", {
|
|
2720
2741
|
key: e.value,
|
|
2721
2742
|
value: e.value
|
|
2722
|
-
}, c(e.label), 9,
|
|
2723
|
-
p("div",
|
|
2743
|
+
}, c(e.label), 9, To))), 128))], 42, wo)]),
|
|
2744
|
+
p("div", Eo, [p("label", { class: n(b(K)) }, c(b(o).section.borderRadius), 3), p("div", Do, [p("input", {
|
|
2724
2745
|
type: "number",
|
|
2725
2746
|
class: n(b(J)),
|
|
2726
2747
|
value: t.block.borderRadius ?? 0,
|
|
2727
2748
|
min: "0",
|
|
2728
2749
|
max: "50",
|
|
2729
2750
|
onInput: d
|
|
2730
|
-
}, null, 42,
|
|
2731
|
-
p("div",
|
|
2751
|
+
}, null, 42, Oo), p("span", { class: n(b(q)) }, "px", 2)])]),
|
|
2752
|
+
p("div", ko, [p("label", Ao, [p("input", {
|
|
2732
2753
|
type: "checkbox",
|
|
2733
2754
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2734
2755
|
checked: !!t.block.wrapper,
|
|
2735
2756
|
onChange: i[0] ||= (e) => f(e.target.checked)
|
|
2736
|
-
}, null, 40,
|
|
2757
|
+
}, null, 40, jo), y(" " + c(b(o).section.wrapperEnable), 1)]), t.block.wrapper ? (s(), m("div", Mo, [
|
|
2737
2758
|
p("div", null, [p("label", { class: n(b(K)) }, c(b(o).blockSettings.color), 3), g(Y, {
|
|
2738
2759
|
"model-value": t.block.wrapper.backgroundColor ?? "",
|
|
2739
2760
|
"onUpdate:modelValue": i[1] ||= (e) => h({ backgroundColor: e })
|
|
2740
2761
|
}, null, 8, ["model-value"])]),
|
|
2741
|
-
g(
|
|
2762
|
+
g(Ti, {
|
|
2742
2763
|
label: b(o).blockSettings.padding,
|
|
2743
2764
|
"model-value": t.block.wrapper.padding ?? {
|
|
2744
2765
|
top: 0,
|
|
@@ -2748,18 +2769,18 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2748
2769
|
},
|
|
2749
2770
|
"onUpdate:modelValue": _
|
|
2750
2771
|
}, null, 8, ["label", "model-value"]),
|
|
2751
|
-
p("div", null, [p("label", { class: n(b(K)) }, c(b(o).section.borderRadius), 3), p("div",
|
|
2772
|
+
p("div", null, [p("label", { class: n(b(K)) }, c(b(o).section.borderRadius), 3), p("div", No, [p("input", {
|
|
2752
2773
|
type: "number",
|
|
2753
2774
|
class: n(b(J)),
|
|
2754
2775
|
value: t.block.wrapper.borderRadius ?? 0,
|
|
2755
2776
|
min: "0",
|
|
2756
2777
|
max: "50",
|
|
2757
2778
|
onInput: v
|
|
2758
|
-
}, null, 42,
|
|
2779
|
+
}, null, 42, Po), p("span", { class: n(b(q)) }, "px", 2)])])
|
|
2759
2780
|
])) : w("", !0)])
|
|
2760
2781
|
], 64));
|
|
2761
2782
|
}
|
|
2762
|
-
}),
|
|
2783
|
+
}), Io = { class: "tpl:mb-3.5" }, Lo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ro = { class: "tpl:flex tpl:items-center tpl:gap-2" }, zo = ["value", "onChange"], Bo = ["value"], Vo = ["title", "onClick"], Ho = { class: "tpl:mb-3.5" }, Uo = ["value"], Wo = { value: "solid" }, Go = { value: "outlined" }, Ko = { value: "rounded" }, qo = { value: "square" }, Jo = { value: "circle" }, Yo = { class: "tpl:mb-3.5" }, Xo = { class: "tpl:mb-3.5" }, Zo = { class: "tpl:flex tpl:items-stretch" }, Qo = ["value"], $o = { class: "tpl:mb-3.5" }, es = /* @__PURE__ */ f({
|
|
2763
2784
|
__name: "SocialToolbar",
|
|
2764
2785
|
props: { block: {} },
|
|
2765
2786
|
emits: ["update"],
|
|
@@ -2787,10 +2808,10 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2787
2808
|
a("update", { icons: i.block.icons.filter((t) => t.id !== e) });
|
|
2788
2809
|
}
|
|
2789
2810
|
return (r, i) => (s(), m(S, null, [
|
|
2790
|
-
p("div",
|
|
2811
|
+
p("div", Io, [p("label", { class: n(b(K)) }, c(b(o).social.icons), 3), p("div", Lo, [(s(!0), m(S, null, e(t.block.icons, (t) => (s(), m("div", {
|
|
2791
2812
|
key: t.id,
|
|
2792
2813
|
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"
|
|
2793
|
-
}, [p("div",
|
|
2814
|
+
}, [p("div", Ro, [p("select", {
|
|
2794
2815
|
"data-testid": "social-platform-select",
|
|
2795
2816
|
class: n([b(G), "tpl:flex-1"]),
|
|
2796
2817
|
value: t.platform,
|
|
@@ -2798,14 +2819,14 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2798
2819
|
}, [(s(!0), m(S, null, e(b(xe), (e) => (s(), m("option", {
|
|
2799
2820
|
key: e,
|
|
2800
2821
|
value: e
|
|
2801
|
-
}, c(b(o).social.platforms[e]), 9,
|
|
2822
|
+
}, c(b(o).social.platforms[e]), 9, Bo))), 128))], 42, zo), p("button", {
|
|
2802
2823
|
class: n(b(Ct)),
|
|
2803
2824
|
title: b(o).social.removeIcon,
|
|
2804
2825
|
onClick: (e) => f(t.id)
|
|
2805
2826
|
}, [g(b(gt), {
|
|
2806
2827
|
size: 14,
|
|
2807
2828
|
"stroke-width": 2
|
|
2808
|
-
})], 10,
|
|
2829
|
+
})], 10, Vo)]), g($, {
|
|
2809
2830
|
"model-value": t.url,
|
|
2810
2831
|
type: "url",
|
|
2811
2832
|
placeholder: b(o).social.urlPlaceholder,
|
|
@@ -2821,18 +2842,18 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2821
2842
|
size: 14,
|
|
2822
2843
|
"stroke-width": 2
|
|
2823
2844
|
}), y(" " + c(b(o).social.addIcon), 1)], 2)])]),
|
|
2824
|
-
p("div",
|
|
2845
|
+
p("div", Ho, [p("label", { class: n(b(K)) }, c(b(o).social.style), 3), p("select", {
|
|
2825
2846
|
class: n(b(G)),
|
|
2826
2847
|
value: t.block.iconStyle,
|
|
2827
2848
|
onChange: i[0] ||= (e) => l("iconStyle", e.target.value)
|
|
2828
2849
|
}, [
|
|
2829
|
-
p("option",
|
|
2830
|
-
p("option",
|
|
2831
|
-
p("option",
|
|
2832
|
-
p("option",
|
|
2833
|
-
p("option",
|
|
2834
|
-
], 42,
|
|
2835
|
-
p("div",
|
|
2850
|
+
p("option", Wo, c(b(o).social.styleSolid), 1),
|
|
2851
|
+
p("option", Go, c(b(o).social.styleOutlined), 1),
|
|
2852
|
+
p("option", Ko, c(b(o).social.styleRounded), 1),
|
|
2853
|
+
p("option", qo, c(b(o).social.styleSquare), 1),
|
|
2854
|
+
p("option", Jo, c(b(o).social.styleCircle), 1)
|
|
2855
|
+
], 42, Uo)]),
|
|
2856
|
+
p("div", Yo, [p("label", { class: n(b(K)) }, c(b(o).social.size), 3), g(Z, {
|
|
2836
2857
|
options: [
|
|
2837
2858
|
{
|
|
2838
2859
|
value: "small",
|
|
@@ -2850,15 +2871,15 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2850
2871
|
"model-value": t.block.iconSize,
|
|
2851
2872
|
"onUpdate:modelValue": i[1] ||= (e) => l("iconSize", e)
|
|
2852
2873
|
}, null, 8, ["options", "model-value"])]),
|
|
2853
|
-
p("div",
|
|
2874
|
+
p("div", Xo, [p("label", { class: n(b(K)) }, c(b(o).social.spacing), 3), p("div", Zo, [p("input", {
|
|
2854
2875
|
type: "number",
|
|
2855
2876
|
class: n(b(J)),
|
|
2856
2877
|
value: t.block.spacing,
|
|
2857
2878
|
min: "0",
|
|
2858
2879
|
max: "50",
|
|
2859
2880
|
onInput: i[2] ||= (e) => l("spacing", Number(e.target.value))
|
|
2860
|
-
}, null, 42,
|
|
2861
|
-
p("div",
|
|
2881
|
+
}, null, 42, Qo), p("span", { class: n(b(q)) }, "px", 2)])]),
|
|
2882
|
+
p("div", $o, [p("label", { class: n(b(K)) }, c(b(o).social.align), 3), g(Z, {
|
|
2862
2883
|
options: [
|
|
2863
2884
|
{
|
|
2864
2885
|
value: "left",
|
|
@@ -2881,22 +2902,22 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2881
2902
|
}, null, 8, ["options", "model-value"])])
|
|
2882
2903
|
], 64));
|
|
2883
2904
|
}
|
|
2884
|
-
}),
|
|
2905
|
+
}), ts = { class: "tpl:mb-3.5" }, ns = { class: "tpl:flex tpl:items-stretch" }, rs = ["value"], is = ["value"], as = /* @__PURE__ */ f({
|
|
2885
2906
|
__name: "SpacerToolbar",
|
|
2886
2907
|
props: { block: {} },
|
|
2887
2908
|
emits: ["update"],
|
|
2888
2909
|
setup(e, { emit: t }) {
|
|
2889
2910
|
let r = t, { t: i } = U();
|
|
2890
|
-
return (t, a) => (s(), m("div",
|
|
2911
|
+
return (t, a) => (s(), m("div", ts, [
|
|
2891
2912
|
p("label", { class: n(b(K)) }, c(b(i).spacer.height), 3),
|
|
2892
|
-
p("div",
|
|
2913
|
+
p("div", ns, [p("input", {
|
|
2893
2914
|
type: "number",
|
|
2894
2915
|
class: n(b(J)),
|
|
2895
2916
|
value: e.block.height,
|
|
2896
2917
|
min: "10",
|
|
2897
2918
|
max: "100",
|
|
2898
2919
|
onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2899
|
-
}, null, 42,
|
|
2920
|
+
}, null, 42, rs), p("span", { class: n(b(q)) }, "px", 2)]),
|
|
2900
2921
|
p("input", {
|
|
2901
2922
|
type: "range",
|
|
2902
2923
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2904,13 +2925,13 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2904
2925
|
min: "10",
|
|
2905
2926
|
max: "100",
|
|
2906
2927
|
onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2907
|
-
}, null, 40,
|
|
2928
|
+
}, null, 40, is)
|
|
2908
2929
|
]));
|
|
2909
2930
|
}
|
|
2910
|
-
}),
|
|
2931
|
+
}), os = { class: "tpl:mb-3.5" }, ss = { class: "tpl:flex tpl:items-center tpl:gap-3" }, cs = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ls = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, us = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ds = ["disabled"], fs = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ps = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ms = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, hs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, gs = ["disabled"], _s = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, vs = { class: "tpl:mb-3.5" }, ys = { class: "tpl:mb-1.5 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, bs = ["checked"], xs = {
|
|
2911
2932
|
key: 0,
|
|
2912
2933
|
class: "tpl:mb-3.5"
|
|
2913
|
-
},
|
|
2934
|
+
}, Ss = { class: "tpl:mb-3.5" }, Cs = { class: "tpl:mb-3.5" }, ws = { class: "tpl:flex tpl:items-stretch" }, Ts = ["value"], Es = { class: "tpl:mb-3.5" }, Ds = { class: "tpl:flex tpl:items-stretch" }, Os = ["value"], ks = { class: "tpl:mb-3.5" }, As = ["value"], js = { value: "" }, Ms = ["value"], Ns = { class: "tpl:mb-3.5" }, Ps = { class: "tpl:flex tpl:items-stretch" }, Fs = ["value"], Is = { class: "tpl:mb-3.5" }, Ls = { class: "tpl:mb-3.5" }, Rs = /* @__PURE__ */ f({
|
|
2914
2935
|
__name: "TableToolbar",
|
|
2915
2936
|
props: {
|
|
2916
2937
|
block: {},
|
|
@@ -2953,7 +2974,7 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2953
2974
|
a("update", { rows: t });
|
|
2954
2975
|
}
|
|
2955
2976
|
return (r, i) => (s(), m(S, null, [
|
|
2956
|
-
p("div",
|
|
2977
|
+
p("div", os, [p("label", { class: n(b(K)) }, c(b(o).table.dimensions), 3), p("div", ss, [p("div", cs, [p("span", ls, c(b(o).table.rows), 1), p("div", us, [
|
|
2957
2978
|
p("button", {
|
|
2958
2979
|
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",
|
|
2959
2980
|
disabled: t.block.rows.length <= 1,
|
|
@@ -2961,8 +2982,8 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2961
2982
|
}, [g(b(et), {
|
|
2962
2983
|
size: 12,
|
|
2963
2984
|
"stroke-width": 2
|
|
2964
|
-
})], 8,
|
|
2965
|
-
p("span",
|
|
2985
|
+
})], 8, ds),
|
|
2986
|
+
p("span", fs, c(t.block.rows.length), 1),
|
|
2966
2987
|
p("button", {
|
|
2967
2988
|
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)]",
|
|
2968
2989
|
onClick: d
|
|
@@ -2970,7 +2991,7 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2970
2991
|
size: 12,
|
|
2971
2992
|
"stroke-width": 2
|
|
2972
2993
|
})])
|
|
2973
|
-
])]), p("div",
|
|
2994
|
+
])]), p("div", ps, [p("span", ms, c(b(o).table.columns), 1), p("div", hs, [
|
|
2974
2995
|
p("button", {
|
|
2975
2996
|
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",
|
|
2976
2997
|
disabled: l.value <= 1,
|
|
@@ -2978,8 +2999,8 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2978
2999
|
}, [g(b(et), {
|
|
2979
3000
|
size: 12,
|
|
2980
3001
|
"stroke-width": 2
|
|
2981
|
-
})], 8,
|
|
2982
|
-
p("span",
|
|
3002
|
+
})], 8, gs),
|
|
3003
|
+
p("span", _s, c(l.value), 1),
|
|
2983
3004
|
p("button", {
|
|
2984
3005
|
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)]",
|
|
2985
3006
|
onClick: h
|
|
@@ -2988,13 +3009,13 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
2988
3009
|
"stroke-width": 2
|
|
2989
3010
|
})])
|
|
2990
3011
|
])])])]),
|
|
2991
|
-
p("div",
|
|
3012
|
+
p("div", vs, [p("label", ys, [p("input", {
|
|
2992
3013
|
type: "checkbox",
|
|
2993
3014
|
checked: t.block.hasHeaderRow,
|
|
2994
3015
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2995
3016
|
onChange: i[2] ||= (e) => u("hasHeaderRow", e.target.checked)
|
|
2996
|
-
}, null, 40,
|
|
2997
|
-
t.block.hasHeaderRow ? (s(), m("div",
|
|
3017
|
+
}, null, 40, bs), y(" " + c(b(o).table.hasHeaderRow), 1)])]),
|
|
3018
|
+
t.block.hasHeaderRow ? (s(), m("div", xs, [p("label", { class: n(b(K)) }, c(b(o).table.headerBackgroundColor), 3), g(Y, {
|
|
2998
3019
|
"model-value": t.block.headerBackgroundColor ?? "",
|
|
2999
3020
|
"seed-color": b(Dt),
|
|
3000
3021
|
placeholder: b(o).table.noHeaderBg,
|
|
@@ -3004,47 +3025,47 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3004
3025
|
"seed-color",
|
|
3005
3026
|
"placeholder"
|
|
3006
3027
|
])])) : w("", !0),
|
|
3007
|
-
p("div",
|
|
3028
|
+
p("div", Ss, [p("label", { class: n(b(K)) }, c(b(o).table.borderColor), 3), g(Y, {
|
|
3008
3029
|
"model-value": t.block.borderColor,
|
|
3009
3030
|
"onUpdate:modelValue": i[4] ||= (e) => u("borderColor", e)
|
|
3010
3031
|
}, null, 8, ["model-value"])]),
|
|
3011
|
-
p("div",
|
|
3032
|
+
p("div", Cs, [p("label", { class: n(b(K)) }, c(b(o).table.borderWidth), 3), p("div", ws, [p("input", {
|
|
3012
3033
|
type: "number",
|
|
3013
3034
|
class: n(b(J)),
|
|
3014
3035
|
value: t.block.borderWidth,
|
|
3015
3036
|
min: "0",
|
|
3016
3037
|
max: "10",
|
|
3017
3038
|
onInput: i[5] ||= (e) => u("borderWidth", Number(e.target.value))
|
|
3018
|
-
}, null, 42,
|
|
3019
|
-
p("div",
|
|
3039
|
+
}, null, 42, Ts), p("span", { class: n(b(q)) }, "px", 2)])]),
|
|
3040
|
+
p("div", Es, [p("label", { class: n(b(K)) }, c(b(o).table.cellPadding), 3), p("div", Ds, [p("input", {
|
|
3020
3041
|
type: "number",
|
|
3021
3042
|
class: n(b(J)),
|
|
3022
3043
|
value: t.block.cellPadding,
|
|
3023
3044
|
min: "0",
|
|
3024
3045
|
max: "30",
|
|
3025
3046
|
onInput: i[6] ||= (e) => u("cellPadding", Number(e.target.value))
|
|
3026
|
-
}, null, 42,
|
|
3027
|
-
p("div",
|
|
3047
|
+
}, null, 42, Os), p("span", { class: n(b(q)) }, "px", 2)])]),
|
|
3048
|
+
p("div", ks, [p("label", { class: n(b(K)) }, c(b(o).table.fontFamily), 3), p("select", {
|
|
3028
3049
|
class: n(b(G)),
|
|
3029
3050
|
value: t.block.fontFamily || "",
|
|
3030
3051
|
onChange: i[7] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
3031
|
-
}, [p("option",
|
|
3052
|
+
}, [p("option", js, c(b(o).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
3032
3053
|
key: e.value,
|
|
3033
3054
|
value: e.value
|
|
3034
|
-
}, c(e.label), 9,
|
|
3035
|
-
p("div",
|
|
3055
|
+
}, c(e.label), 9, Ms))), 128))], 42, As)]),
|
|
3056
|
+
p("div", Ns, [p("label", { class: n(b(K)) }, c(b(o).table.fontSize), 3), p("div", Ps, [p("input", {
|
|
3036
3057
|
type: "number",
|
|
3037
3058
|
class: n(b(J)),
|
|
3038
3059
|
value: t.block.fontSize,
|
|
3039
3060
|
min: "10",
|
|
3040
3061
|
max: "32",
|
|
3041
3062
|
onInput: i[8] ||= (e) => u("fontSize", Number(e.target.value))
|
|
3042
|
-
}, null, 42,
|
|
3043
|
-
p("div",
|
|
3044
|
-
"model-value": t.block.color,
|
|
3045
|
-
"onUpdate:modelValue": i[9] ||= (e) => u("color", e)
|
|
3063
|
+
}, null, 42, Fs), p("span", { class: n(b(q)) }, "px", 2)])]),
|
|
3064
|
+
p("div", Is, [p("label", { class: n(b(K)) }, c(b(o).table.color), 3), g(Y, {
|
|
3065
|
+
"model-value": t.block.color ?? "",
|
|
3066
|
+
"onUpdate:modelValue": i[9] ||= (e) => u("color", e || void 0)
|
|
3046
3067
|
}, null, 8, ["model-value"])]),
|
|
3047
|
-
p("div",
|
|
3068
|
+
p("div", Ls, [p("label", { class: n(b(K)) }, c(b(o).table.textAlign), 3), g(Z, {
|
|
3048
3069
|
options: [
|
|
3049
3070
|
{
|
|
3050
3071
|
value: "left",
|
|
@@ -3067,7 +3088,7 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3067
3088
|
}, null, 8, ["options", "model-value"])])
|
|
3068
3089
|
], 64));
|
|
3069
3090
|
}
|
|
3070
|
-
}),
|
|
3091
|
+
}), zs = { class: "tpl:mb-3.5" }, Bs = ["value"], Vs = { value: 1 }, Hs = { value: 2 }, Us = { value: 3 }, Ws = { value: 4 }, Gs = { class: "tpl:mb-3.5" }, Ks = ["value"], qs = { value: "" }, Js = ["value"], Ys = { class: "tpl:mb-3.5" }, Xs = { class: "tpl:mb-3.5" }, Zs = /* @__PURE__ */ f({
|
|
3071
3092
|
__name: "TitleToolbar",
|
|
3072
3093
|
props: {
|
|
3073
3094
|
block: {},
|
|
@@ -3080,29 +3101,29 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3080
3101
|
i("update", { [e]: t });
|
|
3081
3102
|
}
|
|
3082
3103
|
return (r, i) => (s(), m(S, null, [
|
|
3083
|
-
p("div",
|
|
3104
|
+
p("div", zs, [p("label", { class: n(b(K)) }, c(b(a).title.level), 3), p("select", {
|
|
3084
3105
|
class: n(b(G)),
|
|
3085
3106
|
value: t.block.level,
|
|
3086
3107
|
onChange: i[0] ||= (e) => o("level", Number(e.target.value))
|
|
3087
3108
|
}, [
|
|
3088
|
-
p("option",
|
|
3089
|
-
p("option",
|
|
3090
|
-
p("option",
|
|
3091
|
-
p("option",
|
|
3092
|
-
], 42,
|
|
3093
|
-
p("div",
|
|
3109
|
+
p("option", Vs, c(b(a).title.heading1), 1),
|
|
3110
|
+
p("option", Hs, c(b(a).title.heading2), 1),
|
|
3111
|
+
p("option", Us, c(b(a).title.heading3), 1),
|
|
3112
|
+
p("option", Ws, c(b(a).title.heading4), 1)
|
|
3113
|
+
], 42, Bs)]),
|
|
3114
|
+
p("div", Gs, [p("label", { class: n(b(K)) }, c(b(a).title.fontFamily), 3), p("select", {
|
|
3094
3115
|
class: n(b(G)),
|
|
3095
3116
|
value: t.block.fontFamily || "",
|
|
3096
3117
|
onChange: i[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
3097
|
-
}, [p("option",
|
|
3118
|
+
}, [p("option", qs, c(b(a).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
3098
3119
|
key: e.value,
|
|
3099
3120
|
value: e.value
|
|
3100
|
-
}, c(e.label), 9,
|
|
3101
|
-
p("div",
|
|
3102
|
-
"model-value": t.block.color,
|
|
3103
|
-
"onUpdate:modelValue": i[2] ||= (e) => o("color", e)
|
|
3121
|
+
}, c(e.label), 9, Js))), 128))], 42, Ks)]),
|
|
3122
|
+
p("div", Ys, [p("label", { class: n(b(K)) }, c(b(a).title.color), 3), g(Y, {
|
|
3123
|
+
"model-value": t.block.color ?? "",
|
|
3124
|
+
"onUpdate:modelValue": i[2] ||= (e) => o("color", e || void 0)
|
|
3104
3125
|
}, null, 8, ["model-value"])]),
|
|
3105
|
-
p("div",
|
|
3126
|
+
p("div", Xs, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Z, {
|
|
3106
3127
|
options: [
|
|
3107
3128
|
{
|
|
3108
3129
|
value: "left",
|
|
@@ -3125,17 +3146,17 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3125
3146
|
}, null, 8, ["options", "model-value"])])
|
|
3126
3147
|
], 64));
|
|
3127
3148
|
}
|
|
3128
|
-
}),
|
|
3149
|
+
}), Qs = { class: "tpl:mb-3.5" }, $s = {
|
|
3129
3150
|
key: 0,
|
|
3130
3151
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
3131
|
-
},
|
|
3152
|
+
}, ec = ["checked"], tc = {
|
|
3132
3153
|
key: 0,
|
|
3133
3154
|
class: "tpl:mb-3.5"
|
|
3134
|
-
},
|
|
3155
|
+
}, nc = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, rc = [
|
|
3135
3156
|
"value",
|
|
3136
3157
|
"placeholder",
|
|
3137
3158
|
"title"
|
|
3138
|
-
],
|
|
3159
|
+
], ic = { class: "tpl:mb-3.5" }, ac = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, oc = { class: "tpl:mb-3.5" }, sc = { class: "tpl:mb-3.5" }, cc = ["value"], lc = { value: "full" }, uc = { class: "tpl:mb-3.5" }, dc = /* @__PURE__ */ f({
|
|
3139
3160
|
__name: "VideoToolbar",
|
|
3140
3161
|
props: { block: {} },
|
|
3141
3162
|
emits: ["update"],
|
|
@@ -3151,7 +3172,7 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3151
3172
|
u.alive && e && (x("thumbnailUrl", e.url), _.value = !0, v());
|
|
3152
3173
|
}
|
|
3153
3174
|
return (t, r) => (s(), m(S, null, [
|
|
3154
|
-
p("div",
|
|
3175
|
+
p("div", Qs, [
|
|
3155
3176
|
p("label", { class: n(b(K)) }, c(b(a).video.videoUrl), 3),
|
|
3156
3177
|
g($, {
|
|
3157
3178
|
"model-value": e.block.url,
|
|
@@ -3159,23 +3180,23 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3159
3180
|
placeholder: b(a).video.videoUrlPlaceholder,
|
|
3160
3181
|
"onUpdate:modelValue": r[0] ||= (e) => x("url", e)
|
|
3161
3182
|
}, null, 8, ["model-value", "placeholder"]),
|
|
3162
|
-
e.block.url ? (s(), m("label",
|
|
3183
|
+
e.block.url ? (s(), m("label", $s, [p("input", {
|
|
3163
3184
|
type: "checkbox",
|
|
3164
3185
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
3165
3186
|
checked: e.block.openInNewTab ?? !1,
|
|
3166
3187
|
onChange: r[1] ||= (e) => x("openInNewTab", e.target.checked)
|
|
3167
|
-
}, null, 40,
|
|
3188
|
+
}, null, 40, ec), y(" " + c(b(a).video.openInNewTab), 1)])) : w("", !0)
|
|
3168
3189
|
]),
|
|
3169
|
-
h.value ? (s(), m("div",
|
|
3190
|
+
h.value ? (s(), m("div", tc, [p("label", { class: n(b(K)) }, [y(c(b(a).video.placeholderUrl) + " ", 1), p("span", nc, c(b(a).video.optional), 1)], 2), p("input", {
|
|
3170
3191
|
type: "url",
|
|
3171
3192
|
class: n(b(G)),
|
|
3172
3193
|
value: e.block.placeholderUrl || "",
|
|
3173
3194
|
placeholder: b(a).video.placeholderUrlPlaceholder,
|
|
3174
3195
|
title: b(a).video.placeholderUrlTooltip,
|
|
3175
3196
|
onInput: r[2] ||= (e) => x("placeholderUrl", e.target.value)
|
|
3176
|
-
}, null, 42,
|
|
3177
|
-
p("div",
|
|
3178
|
-
p("label", { class: n(b(K)) }, [y(c(b(a).video.customThumbnail) + " ", 1), p("span",
|
|
3197
|
+
}, null, 42, rc)])) : w("", !0),
|
|
3198
|
+
p("div", ic, [
|
|
3199
|
+
p("label", { class: n(b(K)) }, [y(c(b(a).video.customThumbnail) + " ", 1), p("span", ac, c(b(a).video.optional), 1)], 2),
|
|
3179
3200
|
g($, {
|
|
3180
3201
|
"model-value": e.block.thumbnailUrl,
|
|
3181
3202
|
type: "url",
|
|
@@ -3201,23 +3222,23 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3201
3222
|
"stroke-width": 1.5
|
|
3202
3223
|
}), y(" " + c(b(a).image.browseMedia), 1)])) : w("", !0)
|
|
3203
3224
|
]),
|
|
3204
|
-
p("div",
|
|
3225
|
+
p("div", oc, [p("label", { class: n(b(K)) }, c(b(a).video.altText), 3), g($, {
|
|
3205
3226
|
"model-value": e.block.alt,
|
|
3206
3227
|
type: "text",
|
|
3207
3228
|
placeholder: b(a).video.altTextPlaceholder,
|
|
3208
3229
|
"onUpdate:modelValue": r[4] ||= (e) => x("alt", e)
|
|
3209
3230
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
3210
|
-
p("div",
|
|
3231
|
+
p("div", sc, [p("label", { class: n(b(K)) }, c(b(a).video.width), 3), p("select", {
|
|
3211
3232
|
class: n(b(G)),
|
|
3212
3233
|
value: e.block.width,
|
|
3213
3234
|
onChange: r[5] ||= (e) => x("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
3214
3235
|
}, [
|
|
3215
|
-
p("option",
|
|
3236
|
+
p("option", lc, c(b(a).video.fullWidth), 1),
|
|
3216
3237
|
r[7] ||= p("option", { value: "300" }, "300px", -1),
|
|
3217
3238
|
r[8] ||= p("option", { value: "400" }, "400px", -1),
|
|
3218
3239
|
r[9] ||= p("option", { value: "500" }, "500px", -1)
|
|
3219
|
-
], 42,
|
|
3220
|
-
p("div",
|
|
3240
|
+
], 42, cc)]),
|
|
3241
|
+
p("div", uc, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Z, {
|
|
3221
3242
|
options: [
|
|
3222
3243
|
{
|
|
3223
3244
|
value: "left",
|
|
@@ -3237,7 +3258,7 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3237
3258
|
}, null, 8, ["options", "model-value"])])
|
|
3238
3259
|
], 64));
|
|
3239
3260
|
}
|
|
3240
|
-
}),
|
|
3261
|
+
}), fc = ["aria-label"], pc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, mc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, hc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, gc = { class: "tpl:flex tpl:gap-1" }, _c = ["title"], vc = ["title"], yc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, bc = /*#__PURE__*/ _t(/* @__PURE__ */ f({
|
|
3241
3262
|
__name: "Toolbar",
|
|
3242
3263
|
props: { block: {} },
|
|
3243
3264
|
emits: [
|
|
@@ -3255,7 +3276,7 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3255
3276
|
return (t, r) => (s(), m("aside", {
|
|
3256
3277
|
"aria-label": b(a).landmarks.blockToolbar,
|
|
3257
3278
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
3258
|
-
}, [p("div",
|
|
3279
|
+
}, [p("div", pc, [p("div", mc, [b(rt)[d.value] ? (s(), v(o(b(rt)[d.value]), {
|
|
3259
3280
|
key: 0,
|
|
3260
3281
|
size: 16,
|
|
3261
3282
|
"stroke-width": 1.5
|
|
@@ -3263,70 +3284,70 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3263
3284
|
key: 1,
|
|
3264
3285
|
size: 16,
|
|
3265
3286
|
"stroke-width": 1.5
|
|
3266
|
-
})) : w("", !0), p("h3",
|
|
3287
|
+
})) : w("", !0), p("h3", hc, c(y.value), 1)]), p("div", gc, [p("button", {
|
|
3267
3288
|
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)]",
|
|
3268
3289
|
title: b(a).toolbar.duplicate,
|
|
3269
3290
|
onClick: r[0] ||= (e) => i("duplicate")
|
|
3270
3291
|
}, [g(b(oe), {
|
|
3271
3292
|
size: 14,
|
|
3272
3293
|
"stroke-width": 2
|
|
3273
|
-
})], 8,
|
|
3294
|
+
})], 8, _c), p("button", {
|
|
3274
3295
|
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)]",
|
|
3275
3296
|
title: b(a).toolbar.delete,
|
|
3276
3297
|
onClick: r[1] ||= (e) => i("delete")
|
|
3277
3298
|
}, [g(b(mt), {
|
|
3278
3299
|
size: 14,
|
|
3279
3300
|
"stroke-width": 2
|
|
3280
|
-
})], 8,
|
|
3301
|
+
})], 8, vc)])]), p("div", yc, [f.value ? (s(), v(ja, {
|
|
3281
3302
|
key: 0,
|
|
3282
3303
|
block: e.block,
|
|
3283
3304
|
onUpdateFieldValues: r[2] ||= (e) => i("update", { fieldValues: e }),
|
|
3284
3305
|
onUpdateDataSourceFetched: r[3] ||= (e) => i("update", { dataSourceFetched: e })
|
|
3285
|
-
}, null, 8, ["block"])) : d.value === "section" ? (s(), v(
|
|
3306
|
+
}, null, 8, ["block"])) : d.value === "section" ? (s(), v(Fo, {
|
|
3286
3307
|
key: 1,
|
|
3287
3308
|
block: e.block,
|
|
3288
3309
|
onUpdate: T
|
|
3289
|
-
}, null, 8, ["block"])) : d.value === "title" ? (s(), v(
|
|
3310
|
+
}, null, 8, ["block"])) : d.value === "title" ? (s(), v(Zs, {
|
|
3290
3311
|
key: 2,
|
|
3291
3312
|
block: e.block,
|
|
3292
3313
|
"font-families": b(x),
|
|
3293
3314
|
onUpdate: T
|
|
3294
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (s(), m(S, { key: 3 }, [], 64)) : d.value === "image" ? (s(), v(
|
|
3315
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (s(), m(S, { key: 3 }, [], 64)) : d.value === "image" ? (s(), v(so, {
|
|
3295
3316
|
key: 4,
|
|
3296
3317
|
block: e.block,
|
|
3297
3318
|
onUpdate: T
|
|
3298
|
-
}, null, 8, ["block"])) : d.value === "video" ? (s(), v(
|
|
3319
|
+
}, null, 8, ["block"])) : d.value === "video" ? (s(), v(dc, {
|
|
3299
3320
|
key: 5,
|
|
3300
3321
|
block: e.block,
|
|
3301
3322
|
onUpdate: T
|
|
3302
|
-
}, null, 8, ["block"])) : d.value === "button" ? (s(), v(
|
|
3323
|
+
}, null, 8, ["block"])) : d.value === "button" ? (s(), v(ti, {
|
|
3303
3324
|
key: 6,
|
|
3304
3325
|
block: e.block,
|
|
3305
3326
|
"font-families": b(x),
|
|
3306
3327
|
onUpdate: T
|
|
3307
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (s(), v(
|
|
3328
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (s(), v(La, {
|
|
3308
3329
|
key: 7,
|
|
3309
3330
|
block: e.block,
|
|
3310
3331
|
onUpdate: T
|
|
3311
|
-
}, null, 8, ["block"])) : d.value === "social" ? (s(), v(
|
|
3332
|
+
}, null, 8, ["block"])) : d.value === "social" ? (s(), v(es, {
|
|
3312
3333
|
key: 8,
|
|
3313
3334
|
block: e.block,
|
|
3314
3335
|
onUpdate: T
|
|
3315
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (s(), v(
|
|
3336
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (s(), v(bo, {
|
|
3316
3337
|
key: 9,
|
|
3317
3338
|
block: e.block,
|
|
3318
3339
|
"font-families": b(x),
|
|
3319
3340
|
onUpdate: T
|
|
3320
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (s(), v(
|
|
3341
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (s(), v(Rs, {
|
|
3321
3342
|
key: 10,
|
|
3322
3343
|
block: e.block,
|
|
3323
3344
|
"font-families": b(x),
|
|
3324
3345
|
onUpdate: T
|
|
3325
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (s(), v(
|
|
3346
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (s(), v(as, {
|
|
3326
3347
|
key: 11,
|
|
3327
3348
|
block: e.block,
|
|
3328
3349
|
onUpdate: T
|
|
3329
|
-
}, null, 8, ["block"])) : d.value === "html" ? (s(), v(
|
|
3350
|
+
}, null, 8, ["block"])) : d.value === "html" ? (s(), v(Va, {
|
|
3330
3351
|
key: 12,
|
|
3331
3352
|
block: e.block,
|
|
3332
3353
|
onUpdate: T
|
|
@@ -3335,52 +3356,52 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3335
3356
|
block: e.block,
|
|
3336
3357
|
"font-families": b(x),
|
|
3337
3358
|
onUpdate: T
|
|
3338
|
-
}, null, 8, ["block", "font-families"])) : w("", !0), g(
|
|
3359
|
+
}, null, 8, ["block", "font-families"])) : w("", !0), g(Ki, {
|
|
3339
3360
|
block: e.block,
|
|
3340
3361
|
"is-first-section": d.value === "paragraph",
|
|
3341
3362
|
onUpdate: T
|
|
3342
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
3363
|
+
}, null, 8, ["block", "is-first-section"])])], 8, fc));
|
|
3343
3364
|
}
|
|
3344
|
-
}), [["__scopeId", "data-v-2ac88283"]]),
|
|
3365
|
+
}), [["__scopeId", "data-v-2ac88283"]]), xc = ["aria-label"], Sc = {
|
|
3345
3366
|
role: "tablist",
|
|
3346
3367
|
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"
|
|
3347
|
-
},
|
|
3368
|
+
}, Cc = [
|
|
3348
3369
|
"aria-selected",
|
|
3349
3370
|
"aria-label",
|
|
3350
3371
|
"title"
|
|
3351
|
-
],
|
|
3372
|
+
], wc = { key: 0 }, Tc = [
|
|
3352
3373
|
"aria-selected",
|
|
3353
3374
|
"aria-label",
|
|
3354
3375
|
"title"
|
|
3355
|
-
],
|
|
3376
|
+
], Ec = { key: 0 }, Dc = [
|
|
3356
3377
|
"aria-selected",
|
|
3357
3378
|
"aria-label",
|
|
3358
3379
|
"title"
|
|
3359
|
-
],
|
|
3380
|
+
], Oc = { key: 0 }, kc = {
|
|
3360
3381
|
key: 1,
|
|
3361
3382
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
3362
|
-
},
|
|
3383
|
+
}, Ac = {
|
|
3363
3384
|
key: 0,
|
|
3364
3385
|
id: "tpl-tabpanel-content",
|
|
3365
3386
|
role: "tabpanel",
|
|
3366
3387
|
"aria-labelledby": "tpl-tab-content",
|
|
3367
3388
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3368
|
-
},
|
|
3389
|
+
}, jc = {
|
|
3369
3390
|
key: 1,
|
|
3370
3391
|
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)]"
|
|
3371
|
-
},
|
|
3392
|
+
}, Mc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Nc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Pc = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Fc = {
|
|
3372
3393
|
key: 1,
|
|
3373
3394
|
id: "tpl-tabpanel-settings",
|
|
3374
3395
|
role: "tabpanel",
|
|
3375
3396
|
"aria-labelledby": "tpl-tab-settings",
|
|
3376
3397
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3377
|
-
},
|
|
3398
|
+
}, Ic = {
|
|
3378
3399
|
key: 2,
|
|
3379
3400
|
id: "tpl-tabpanel-issues",
|
|
3380
3401
|
role: "tabpanel",
|
|
3381
3402
|
"aria-labelledby": "tpl-tab-issues",
|
|
3382
3403
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3383
|
-
},
|
|
3404
|
+
}, Lc = /* @__PURE__ */ f({
|
|
3384
3405
|
__name: "RightSidebar",
|
|
3385
3406
|
props: {
|
|
3386
3407
|
selectedBlock: {},
|
|
@@ -3410,7 +3431,7 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3410
3431
|
"aria-label": b(u).landmarks.rightSidebar,
|
|
3411
3432
|
class: n(["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"])
|
|
3412
3433
|
}, [
|
|
3413
|
-
p("div",
|
|
3434
|
+
p("div", Sc, [
|
|
3414
3435
|
p("button", {
|
|
3415
3436
|
id: "tpl-tab-content",
|
|
3416
3437
|
role: "tab",
|
|
@@ -3424,7 +3445,7 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3424
3445
|
}, [g(b(Vt), {
|
|
3425
3446
|
size: 14,
|
|
3426
3447
|
"stroke-width": 2
|
|
3427
|
-
}), f.value === "content" ? (s(), m("span",
|
|
3448
|
+
}), f.value === "content" ? (s(), m("span", wc, c(b(u).sidebar.content), 1)) : w("", !0)], 14, Cc),
|
|
3428
3449
|
p("button", {
|
|
3429
3450
|
id: "tpl-tab-settings",
|
|
3430
3451
|
role: "tab",
|
|
@@ -3438,7 +3459,7 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3438
3459
|
}, [g(b(Ut), {
|
|
3439
3460
|
size: 14,
|
|
3440
3461
|
"stroke-width": 1.5
|
|
3441
|
-
}), f.value === "settings" ? (s(), m("span",
|
|
3462
|
+
}), f.value === "settings" ? (s(), m("span", Ec, c(b(u).sidebar.settings), 1)) : w("", !0)], 14, Tc),
|
|
3442
3463
|
y.value ? (s(), m("button", {
|
|
3443
3464
|
key: 0,
|
|
3444
3465
|
id: "tpl-tab-issues",
|
|
@@ -3455,55 +3476,55 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3455
3476
|
size: 14,
|
|
3456
3477
|
"stroke-width": 1.5
|
|
3457
3478
|
}),
|
|
3458
|
-
f.value === "issues" ? (s(), m("span",
|
|
3459
|
-
x.value > 0 ? (s(), m("span",
|
|
3460
|
-
], 14,
|
|
3479
|
+
f.value === "issues" ? (s(), m("span", Oc, c(b(u).issues.panelTabLabel), 1)) : w("", !0),
|
|
3480
|
+
x.value > 0 ? (s(), m("span", kc, c(x.value), 1)) : w("", !0)
|
|
3481
|
+
], 14, Dc)) : w("", !0)
|
|
3461
3482
|
]),
|
|
3462
|
-
f.value === "content" ? (s(), m("div",
|
|
3483
|
+
f.value === "content" ? (s(), m("div", Ac, [e.selectedBlock ? (s(), v(bc, {
|
|
3463
3484
|
key: 0,
|
|
3464
3485
|
block: e.selectedBlock,
|
|
3465
3486
|
onUpdate: i[3] ||= (e) => l("update-block", e),
|
|
3466
3487
|
onDelete: i[4] ||= (e) => l("delete-block"),
|
|
3467
3488
|
onDuplicate: i[5] ||= (e) => l("duplicate-block")
|
|
3468
|
-
}, null, 8, ["block"])) : (s(), m("div",
|
|
3469
|
-
p("div",
|
|
3489
|
+
}, null, 8, ["block"])) : (s(), m("div", jc, [
|
|
3490
|
+
p("div", Mc, [g(b(It), {
|
|
3470
3491
|
size: 40,
|
|
3471
3492
|
"stroke-width": 1.5
|
|
3472
3493
|
})]),
|
|
3473
|
-
p("h3",
|
|
3474
|
-
p("p",
|
|
3494
|
+
p("h3", Nc, c(b(u).sidebar.noSelection), 1),
|
|
3495
|
+
p("p", Pc, c(b(u).sidebar.noSelectionHint), 1)
|
|
3475
3496
|
]))])) : w("", !0),
|
|
3476
|
-
f.value === "settings" ? (s(), m("div",
|
|
3497
|
+
f.value === "settings" ? (s(), m("div", Fc, [g(Cr, {
|
|
3477
3498
|
settings: e.settings,
|
|
3478
3499
|
onUpdate: i[6] ||= (e) => l("update-settings", e)
|
|
3479
3500
|
}, null, 8, ["settings"])])) : w("", !0),
|
|
3480
|
-
f.value === "issues" && y.value ? (s(), m("div",
|
|
3481
|
-
], 10,
|
|
3501
|
+
f.value === "issues" && y.value ? (s(), m("div", Ic, [g(b(a))])) : w("", !0)
|
|
3502
|
+
], 10, xc));
|
|
3482
3503
|
}
|
|
3483
|
-
}),
|
|
3504
|
+
}), Rc = {
|
|
3484
3505
|
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)]",
|
|
3485
3506
|
style: { "z-index": "10001" },
|
|
3486
3507
|
role: "status",
|
|
3487
3508
|
"data-testid": "small-screen-notice"
|
|
3488
|
-
},
|
|
3509
|
+
}, zc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Bc = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Vc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Hc = /* @__PURE__ */ f({
|
|
3489
3510
|
__name: "SmallScreenNotice",
|
|
3490
3511
|
setup(e) {
|
|
3491
3512
|
let { t } = U();
|
|
3492
|
-
return (e, n) => (s(), m("div",
|
|
3493
|
-
p("div",
|
|
3513
|
+
return (e, n) => (s(), m("div", Rc, [
|
|
3514
|
+
p("div", zc, [g(b(zt), {
|
|
3494
3515
|
size: 48,
|
|
3495
3516
|
"stroke-width": 1.5
|
|
3496
3517
|
})]),
|
|
3497
|
-
p("h2",
|
|
3498
|
-
p("p",
|
|
3518
|
+
p("h2", Bc, c(b(t).smallScreen.title), 1),
|
|
3519
|
+
p("p", Vc, c(b(t).smallScreen.message), 1)
|
|
3499
3520
|
]));
|
|
3500
3521
|
}
|
|
3501
|
-
}),
|
|
3522
|
+
}), Uc = ["aria-label"], Wc = [
|
|
3502
3523
|
"aria-checked",
|
|
3503
3524
|
"aria-label",
|
|
3504
3525
|
"title",
|
|
3505
3526
|
"onClick"
|
|
3506
|
-
],
|
|
3527
|
+
], Gc = /* @__PURE__ */ f({
|
|
3507
3528
|
__name: "ViewportToggle",
|
|
3508
3529
|
props: { viewport: {} },
|
|
3509
3530
|
emits: ["change"],
|
|
@@ -3553,13 +3574,13 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3553
3574
|
key: 1,
|
|
3554
3575
|
size: 18,
|
|
3555
3576
|
"stroke-width": 1.5
|
|
3556
|
-
})), p("span", null, c(e.label), 1)], 12,
|
|
3577
|
+
})), p("span", null, c(e.label), 1)], 12, Wc))), 128))], 12, Uc));
|
|
3557
3578
|
}
|
|
3558
|
-
}),
|
|
3579
|
+
}), Kc = [
|
|
3559
3580
|
"aria-label",
|
|
3560
3581
|
"title",
|
|
3561
3582
|
"aria-pressed"
|
|
3562
|
-
],
|
|
3583
|
+
], qc = /*#__PURE__*/ _t(/* @__PURE__ */ f({
|
|
3563
3584
|
__name: "PreviewToggle",
|
|
3564
3585
|
props: { previewMode: { type: Boolean } },
|
|
3565
3586
|
emits: ["change"],
|
|
@@ -3592,13 +3613,13 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3592
3613
|
"stroke-width": 1.5
|
|
3593
3614
|
}))]),
|
|
3594
3615
|
_: 1
|
|
3595
|
-
})], 12,
|
|
3616
|
+
})], 12, Kc));
|
|
3596
3617
|
}
|
|
3597
|
-
}), [["__scopeId", "data-v-af87d02a"]]),
|
|
3618
|
+
}), [["__scopeId", "data-v-af87d02a"]]), Jc = [
|
|
3598
3619
|
"aria-label",
|
|
3599
3620
|
"title",
|
|
3600
3621
|
"aria-pressed"
|
|
3601
|
-
],
|
|
3622
|
+
], Yc = /*#__PURE__*/ _t(/* @__PURE__ */ f({
|
|
3602
3623
|
__name: "DarkModeToggle",
|
|
3603
3624
|
props: { darkMode: { type: Boolean } },
|
|
3604
3625
|
emits: ["change"],
|
|
@@ -3631,27 +3652,27 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3631
3652
|
"stroke-width": 1.5
|
|
3632
3653
|
}))]),
|
|
3633
3654
|
_: 1
|
|
3634
|
-
})], 12,
|
|
3655
|
+
})], 12, Jc));
|
|
3635
3656
|
}
|
|
3636
|
-
}), [["__scopeId", "data-v-f8694f76"]]),
|
|
3657
|
+
}), [["__scopeId", "data-v-f8694f76"]]), Xc = {
|
|
3637
3658
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
3638
3659
|
style: {
|
|
3639
3660
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
3640
3661
|
"backdrop-filter": "blur(8px)",
|
|
3641
3662
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
3642
3663
|
}
|
|
3643
|
-
},
|
|
3664
|
+
}, Zc = {
|
|
3644
3665
|
href: "https://github.com/templatical/sdk",
|
|
3645
3666
|
target: "_blank",
|
|
3646
3667
|
rel: "noopener noreferrer",
|
|
3647
3668
|
class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
|
|
3648
3669
|
style: { "text-decoration": "none" }
|
|
3649
|
-
},
|
|
3670
|
+
}, Qc = /* @__PURE__ */ f({
|
|
3650
3671
|
__name: "EditorFooter",
|
|
3651
3672
|
props: { positionClass: {} },
|
|
3652
3673
|
setup(e) {
|
|
3653
3674
|
let { t } = U();
|
|
3654
|
-
return (r, i) => (s(), m("footer", { class: n(["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]) }, [p("div",
|
|
3675
|
+
return (r, i) => (s(), m("footer", { class: n(["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]) }, [p("div", Xc, [
|
|
3655
3676
|
p("span", null, c(b(t).footer.poweredBy), 1),
|
|
3656
3677
|
i[0] ||= p("a", {
|
|
3657
3678
|
href: "https://templatical.com",
|
|
@@ -3666,32 +3687,32 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3666
3687
|
alt: ""
|
|
3667
3688
|
}), y(" Templatical ")], -1),
|
|
3668
3689
|
i[1] ||= p("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
|
|
3669
|
-
p("a",
|
|
3690
|
+
p("a", Zc, c(b(t).footer.openSource), 1)
|
|
3670
3691
|
])], 2));
|
|
3671
3692
|
}
|
|
3672
|
-
}),
|
|
3693
|
+
}), $c = ["aria-labelledby", "data-tpl-theme"], el = { 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" }, tl = ["id"], nl = ["aria-label"], rl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, il = [
|
|
3673
3694
|
"id",
|
|
3674
3695
|
"placeholder",
|
|
3675
3696
|
"aria-label",
|
|
3676
3697
|
"aria-activedescendant"
|
|
3677
|
-
],
|
|
3698
|
+
], al = {
|
|
3678
3699
|
key: 0,
|
|
3679
3700
|
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",
|
|
3680
3701
|
"data-testid": "merge-tag-picker-group-pills"
|
|
3681
|
-
},
|
|
3702
|
+
}, ol = ["data-group-name", "onClick"], sl = ["aria-label"], cl = {
|
|
3682
3703
|
key: 0,
|
|
3683
3704
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3684
3705
|
"data-testid": "merge-tag-picker-empty"
|
|
3685
|
-
},
|
|
3706
|
+
}, ll = {
|
|
3686
3707
|
key: 1,
|
|
3687
3708
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3688
3709
|
"data-testid": "merge-tag-picker-empty"
|
|
3689
|
-
},
|
|
3710
|
+
}, ul = [
|
|
3690
3711
|
"aria-expanded",
|
|
3691
3712
|
"data-group-name",
|
|
3692
3713
|
"data-group-collapsed",
|
|
3693
3714
|
"onClick"
|
|
3694
|
-
],
|
|
3715
|
+
], dl = { class: "tpl:ml-1 tpl:font-normal" }, fl = [
|
|
3695
3716
|
"id",
|
|
3696
3717
|
"aria-selected",
|
|
3697
3718
|
"data-selected",
|
|
@@ -3700,10 +3721,10 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3700
3721
|
"title",
|
|
3701
3722
|
"onMousemove",
|
|
3702
3723
|
"onClick"
|
|
3703
|
-
],
|
|
3724
|
+
], pl = { class: "tpl:text-sm tpl:font-medium" }, ml = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, hl = {
|
|
3704
3725
|
key: 0,
|
|
3705
3726
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3706
|
-
},
|
|
3727
|
+
}, gl = "tpl-merge-tag-picker-list", _l = /* @__PURE__ */ f({
|
|
3707
3728
|
__name: "MergeTagPickerModal",
|
|
3708
3729
|
setup(r) {
|
|
3709
3730
|
let a = Ne(Je, "MergeTagPickerModal"), { t: o, format: u } = U(), f = E(Fe, null), h = E(Me, null), _ = d(""), y = Oe(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0), N = C(() => a.tags.value.some((e) => !!e.group)), P = d(/* @__PURE__ */ new Set());
|
|
@@ -3816,10 +3837,10 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3816
3837
|
}
|
|
3817
3838
|
}
|
|
3818
3839
|
function se() {
|
|
3819
|
-
if (B.value.length !== 0) return `${
|
|
3840
|
+
if (B.value.length !== 0) return `${gl}-opt-${j.value}`;
|
|
3820
3841
|
}
|
|
3821
3842
|
function ce(e) {
|
|
3822
|
-
return `${
|
|
3843
|
+
return `${gl}-opt-${e}`;
|
|
3823
3844
|
}
|
|
3824
3845
|
let le = C(() => a.tags.value.length === 0), ue = C(() => !le.value && L.value.length === 0), de = C(() => N.value && R.value.length > 1 && !D.value);
|
|
3825
3846
|
return (r, i) => (s(), v(Nt, {
|
|
@@ -3830,16 +3851,16 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3830
3851
|
default: l(() => [p("div", {
|
|
3831
3852
|
role: "dialog",
|
|
3832
3853
|
"aria-modal": "true",
|
|
3833
|
-
"aria-labelledby": `${
|
|
3854
|
+
"aria-labelledby": `${gl}-title`,
|
|
3834
3855
|
"data-tpl-theme": b(h),
|
|
3835
3856
|
"data-testid": "merge-tag-picker-modal",
|
|
3836
3857
|
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)]",
|
|
3837
3858
|
style: t(b(f))
|
|
3838
3859
|
}, [
|
|
3839
|
-
p("header",
|
|
3840
|
-
id: `${
|
|
3860
|
+
p("header", el, [p("h2", {
|
|
3861
|
+
id: `${gl}-title`,
|
|
3841
3862
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3842
|
-
}, c(b(o).mergeTag.picker.title), 9,
|
|
3863
|
+
}, c(b(o).mergeTag.picker.title), 9, tl), p("button", {
|
|
3843
3864
|
type: "button",
|
|
3844
3865
|
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)]",
|
|
3845
3866
|
"aria-label": b(o).mergeTag.picker.close,
|
|
@@ -3848,13 +3869,13 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3848
3869
|
}, [g(b(gt), {
|
|
3849
3870
|
size: 16,
|
|
3850
3871
|
"stroke-width": 2
|
|
3851
|
-
})], 8,
|
|
3852
|
-
p("div",
|
|
3872
|
+
})], 8, nl)]),
|
|
3873
|
+
p("div", rl, [g(b(tt), {
|
|
3853
3874
|
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)]",
|
|
3854
3875
|
size: 14,
|
|
3855
3876
|
"stroke-width": 2
|
|
3856
3877
|
}), O(p("input", {
|
|
3857
|
-
id: `${
|
|
3878
|
+
id: `${gl}-search`,
|
|
3858
3879
|
ref_key: "searchInputRef",
|
|
3859
3880
|
ref: x,
|
|
3860
3881
|
"onUpdate:modelValue": i[0] ||= (e) => _.value = e,
|
|
@@ -3862,34 +3883,34 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3862
3883
|
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)]",
|
|
3863
3884
|
placeholder: b(o).mergeTag.picker.searchPlaceholder,
|
|
3864
3885
|
"aria-label": b(o).mergeTag.picker.searchAriaLabel,
|
|
3865
|
-
"aria-controls":
|
|
3886
|
+
"aria-controls": gl,
|
|
3866
3887
|
"aria-activedescendant": se(),
|
|
3867
3888
|
"data-testid": "merge-tag-picker-search",
|
|
3868
3889
|
onKeydown: i[1] ||= M(A(() => {}, ["prevent"]), ["enter"])
|
|
3869
|
-
}, null, 40,
|
|
3870
|
-
de.value ? (s(), m("div",
|
|
3890
|
+
}, null, 40, il), [[k, _.value]])]),
|
|
3891
|
+
de.value ? (s(), m("div", al, [(s(!0), m(S, null, e(R.value, (e) => (s(), m("button", {
|
|
3871
3892
|
key: e,
|
|
3872
3893
|
type: "button",
|
|
3873
3894
|
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)]",
|
|
3874
3895
|
"data-testid": "merge-tag-picker-group-pill",
|
|
3875
3896
|
"data-group-name": e,
|
|
3876
3897
|
onClick: (t) => ae(e)
|
|
3877
|
-
}, c(e), 9,
|
|
3898
|
+
}, c(e), 9, ol))), 128))])) : w("", !0),
|
|
3878
3899
|
p("div", {
|
|
3879
|
-
id:
|
|
3900
|
+
id: gl,
|
|
3880
3901
|
ref_key: "listRef",
|
|
3881
3902
|
ref: ne,
|
|
3882
3903
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3883
3904
|
role: "listbox",
|
|
3884
3905
|
"aria-label": b(o).mergeTag.picker.title,
|
|
3885
3906
|
"data-testid": "merge-tag-picker-list"
|
|
3886
|
-
}, [le.value ? (s(), m("div",
|
|
3907
|
+
}, [le.value ? (s(), m("div", cl, c(b(o).mergeTag.picker.empty), 1)) : ue.value ? (s(), m("div", ll, c(b(o).mergeTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(z.value, (e, t) => (s(), m(S, { key: t }, [e.kind === "header" ? (s(), m("button", {
|
|
3887
3908
|
key: 0,
|
|
3888
3909
|
ref_for: !0,
|
|
3889
3910
|
ref: (t) => H(e.group, t),
|
|
3890
3911
|
type: "button",
|
|
3891
3912
|
"aria-expanded": !F(e.group),
|
|
3892
|
-
"aria-controls":
|
|
3913
|
+
"aria-controls": gl,
|
|
3893
3914
|
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)]",
|
|
3894
3915
|
"data-testid": "merge-tag-picker-group-header",
|
|
3895
3916
|
"data-group-name": e.group,
|
|
@@ -3902,8 +3923,8 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3902
3923
|
class: n(["tpl:transition-transform", F(e.group) ? "tpl:-rotate-90" : ""])
|
|
3903
3924
|
}, null, 8, ["class"]),
|
|
3904
3925
|
p("span", null, c(e.group), 1),
|
|
3905
|
-
p("span",
|
|
3906
|
-
], 8,
|
|
3926
|
+
p("span", dl, " (" + c(b(u)(b(o).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
3927
|
+
], 8, ul)) : (s(), m("button", {
|
|
3907
3928
|
key: 1,
|
|
3908
3929
|
id: ce(e.index),
|
|
3909
3930
|
type: "button",
|
|
@@ -3918,15 +3939,15 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3918
3939
|
onMousemove: (t) => j.value = e.index,
|
|
3919
3940
|
onClick: (t) => V(e.tag)
|
|
3920
3941
|
}, [
|
|
3921
|
-
p("span",
|
|
3922
|
-
p("span",
|
|
3923
|
-
e.tag.description ? (s(), m("span",
|
|
3924
|
-
], 42,
|
|
3925
|
-
], 12,
|
|
3942
|
+
p("span", pl, c(e.tag.label), 1),
|
|
3943
|
+
p("span", ml, c(e.tag.value), 1),
|
|
3944
|
+
e.tag.description ? (s(), m("span", hl, c(e.tag.description), 1)) : w("", !0)
|
|
3945
|
+
], 42, fl))], 64))), 128))], 8, sl)
|
|
3946
|
+
], 12, $c)]),
|
|
3926
3947
|
_: 1
|
|
3927
3948
|
}, 8, ["visible"]));
|
|
3928
3949
|
}
|
|
3929
|
-
}),
|
|
3950
|
+
}), vl = ["data-logic-keyword"], yl = /* @__PURE__ */ f({
|
|
3930
3951
|
__name: "LogicTagBadge",
|
|
3931
3952
|
props: {
|
|
3932
3953
|
value: {},
|
|
@@ -3943,22 +3964,22 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3943
3964
|
},
|
|
3944
3965
|
"data-testid": "merge-tag-logic-badge",
|
|
3945
3966
|
"data-logic-keyword": r.value
|
|
3946
|
-
}, c(r.value), 9,
|
|
3967
|
+
}, c(r.value), 9, vl)) : w("", !0);
|
|
3947
3968
|
}
|
|
3948
|
-
}),
|
|
3969
|
+
}), bl = ["aria-labelledby", "data-tpl-theme"], xl = { 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" }, Sl = ["id"], Cl = ["aria-label"], wl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Tl = [
|
|
3949
3970
|
"id",
|
|
3950
3971
|
"placeholder",
|
|
3951
3972
|
"aria-label",
|
|
3952
3973
|
"aria-activedescendant"
|
|
3953
|
-
],
|
|
3974
|
+
], El = ["aria-label"], Dl = {
|
|
3954
3975
|
key: 0,
|
|
3955
3976
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3956
3977
|
"data-testid": "logic-picker-empty"
|
|
3957
|
-
},
|
|
3978
|
+
}, Ol = {
|
|
3958
3979
|
key: 1,
|
|
3959
3980
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3960
3981
|
"data-testid": "logic-picker-empty"
|
|
3961
|
-
},
|
|
3982
|
+
}, kl = ["data-group-name"], Al = [
|
|
3962
3983
|
"id",
|
|
3963
3984
|
"aria-selected",
|
|
3964
3985
|
"data-selected",
|
|
@@ -3966,16 +3987,16 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
3966
3987
|
"data-logic-kind",
|
|
3967
3988
|
"onMousemove",
|
|
3968
3989
|
"onClick"
|
|
3969
|
-
],
|
|
3990
|
+
], jl = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Ml = { class: "tpl:text-sm tpl:font-medium" }, Nl = {
|
|
3970
3991
|
key: 0,
|
|
3971
3992
|
class: "tpl:flex tpl:items-center"
|
|
3972
|
-
},
|
|
3993
|
+
}, Pl = {
|
|
3973
3994
|
key: 1,
|
|
3974
3995
|
class: "tpl:flex tpl:items-center tpl:gap-1"
|
|
3975
|
-
},
|
|
3996
|
+
}, Fl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Il = {
|
|
3976
3997
|
key: 0,
|
|
3977
3998
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3978
|
-
},
|
|
3999
|
+
}, Ll = "tpl-logic-picker-list", Rl = /* @__PURE__ */ f({
|
|
3979
4000
|
__name: "LogicTagPickerModal",
|
|
3980
4001
|
setup(r) {
|
|
3981
4002
|
let a = Ne(Ye, "LogicTagPickerModal"), { t: o } = U(), u = E(Ie, B.liquid), f = E(Fe, null), h = E(Me, null), _ = d(""), y = Oe(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0);
|
|
@@ -4061,10 +4082,10 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
4061
4082
|
}
|
|
4062
4083
|
}
|
|
4063
4084
|
function oe(e) {
|
|
4064
|
-
return `${
|
|
4085
|
+
return `${Ll}-opt-${e}`;
|
|
4065
4086
|
}
|
|
4066
4087
|
function se() {
|
|
4067
|
-
return V.value.length === 0 ? void 0 : `${
|
|
4088
|
+
return V.value.length === 0 ? void 0 : `${Ll}-opt-${j.value}`;
|
|
4068
4089
|
}
|
|
4069
4090
|
return (r, i) => (s(), v(Nt, {
|
|
4070
4091
|
visible: b(a).isOpen.value,
|
|
@@ -4074,16 +4095,16 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
4074
4095
|
default: l(() => [p("div", {
|
|
4075
4096
|
role: "dialog",
|
|
4076
4097
|
"aria-modal": "true",
|
|
4077
|
-
"aria-labelledby": `${
|
|
4098
|
+
"aria-labelledby": `${Ll}-title`,
|
|
4078
4099
|
"data-tpl-theme": b(h),
|
|
4079
4100
|
"data-testid": "logic-picker-modal",
|
|
4080
4101
|
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)]",
|
|
4081
4102
|
style: t(b(f))
|
|
4082
4103
|
}, [
|
|
4083
|
-
p("header",
|
|
4084
|
-
id: `${
|
|
4104
|
+
p("header", xl, [p("h2", {
|
|
4105
|
+
id: `${Ll}-title`,
|
|
4085
4106
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
4086
|
-
}, c(b(o).logicTag.picker.title), 9,
|
|
4107
|
+
}, c(b(o).logicTag.picker.title), 9, Sl), p("button", {
|
|
4087
4108
|
type: "button",
|
|
4088
4109
|
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)]",
|
|
4089
4110
|
"aria-label": b(o).logicTag.picker.close,
|
|
@@ -4092,13 +4113,13 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
4092
4113
|
}, [g(b(gt), {
|
|
4093
4114
|
size: 16,
|
|
4094
4115
|
"stroke-width": 2
|
|
4095
|
-
})], 8,
|
|
4096
|
-
p("div",
|
|
4116
|
+
})], 8, Cl)]),
|
|
4117
|
+
p("div", wl, [g(b(tt), {
|
|
4097
4118
|
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)]",
|
|
4098
4119
|
size: 14,
|
|
4099
4120
|
"stroke-width": 2
|
|
4100
4121
|
}), O(p("input", {
|
|
4101
|
-
id: `${
|
|
4122
|
+
id: `${Ll}-search`,
|
|
4102
4123
|
ref_key: "searchInputRef",
|
|
4103
4124
|
ref: x,
|
|
4104
4125
|
"onUpdate:modelValue": i[0] ||= (e) => _.value = e,
|
|
@@ -4106,25 +4127,25 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
4106
4127
|
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)]",
|
|
4107
4128
|
placeholder: b(o).logicTag.picker.searchPlaceholder,
|
|
4108
4129
|
"aria-label": b(o).logicTag.picker.searchAriaLabel,
|
|
4109
|
-
"aria-controls":
|
|
4130
|
+
"aria-controls": Ll,
|
|
4110
4131
|
"aria-activedescendant": se(),
|
|
4111
4132
|
"data-testid": "logic-picker-search",
|
|
4112
4133
|
onKeydown: i[1] ||= M(A(() => {}, ["prevent"]), ["enter"])
|
|
4113
|
-
}, null, 40,
|
|
4134
|
+
}, null, 40, Tl), [[k, _.value]])]),
|
|
4114
4135
|
p("div", {
|
|
4115
|
-
id:
|
|
4136
|
+
id: Ll,
|
|
4116
4137
|
ref_key: "listRef",
|
|
4117
4138
|
ref: ne,
|
|
4118
4139
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
4119
4140
|
role: "listbox",
|
|
4120
4141
|
"aria-label": b(o).logicTag.picker.title,
|
|
4121
4142
|
"data-testid": "logic-picker-list"
|
|
4122
|
-
}, [ee.value ? (s(), m("div",
|
|
4143
|
+
}, [ee.value ? (s(), m("div", Dl, c(b(o).logicTag.picker.empty), 1)) : te.value ? (s(), m("div", Ol, c(b(o).logicTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(z.value.rows, (e, t) => (s(), m(S, { key: t }, [e.kind === "header" ? (s(), m("div", {
|
|
4123
4144
|
key: 0,
|
|
4124
4145
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
4125
4146
|
"data-testid": "logic-picker-header",
|
|
4126
4147
|
"data-group-name": e.label
|
|
4127
|
-
}, c(e.label), 9,
|
|
4148
|
+
}, c(e.label), 9, kl)) : (s(), m("button", {
|
|
4128
4149
|
key: 1,
|
|
4129
4150
|
id: oe(e.index),
|
|
4130
4151
|
type: "button",
|
|
@@ -4138,27 +4159,27 @@ var _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = ["value"], bo = { class:
|
|
|
4138
4159
|
onMousemove: (t) => j.value = e.index,
|
|
4139
4160
|
onClick: (t) => re(e.kind === "tag" ? e.tag : e.pair)
|
|
4140
4161
|
}, [
|
|
4141
|
-
p("span",
|
|
4162
|
+
p("span", jl, [p("span", Ml, c(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), m("span", Nl, [g(yl, {
|
|
4142
4163
|
value: e.tag.value,
|
|
4143
4164
|
syntax: b(u)
|
|
4144
|
-
}, null, 8, ["value", "syntax"])])) : (s(), m("span",
|
|
4145
|
-
g(
|
|
4165
|
+
}, null, 8, ["value", "syntax"])])) : (s(), m("span", Pl, [
|
|
4166
|
+
g(yl, {
|
|
4146
4167
|
value: e.pair.before,
|
|
4147
4168
|
syntax: b(u)
|
|
4148
4169
|
}, null, 8, ["value", "syntax"]),
|
|
4149
4170
|
i[2] ||= p("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
|
|
4150
|
-
g(
|
|
4171
|
+
g(yl, {
|
|
4151
4172
|
value: e.pair.after,
|
|
4152
4173
|
syntax: b(u)
|
|
4153
4174
|
}, null, 8, ["value", "syntax"])
|
|
4154
4175
|
]))]),
|
|
4155
|
-
p("span",
|
|
4156
|
-
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), m("span",
|
|
4157
|
-
], 42,
|
|
4158
|
-
], 12,
|
|
4176
|
+
p("span", Fl, c(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
|
|
4177
|
+
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), m("span", Il, c(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : w("", !0)
|
|
4178
|
+
], 42, Al))], 64))), 128))], 8, El)
|
|
4179
|
+
], 12, bl)]),
|
|
4159
4180
|
_: 1
|
|
4160
4181
|
}, 8, ["visible"]));
|
|
4161
4182
|
}
|
|
4162
4183
|
});
|
|
4163
4184
|
//#endregion
|
|
4164
|
-
export {
|
|
4185
|
+
export { qc as a, Lc as c, on as d, Jt as f, Yc as i, _n as l, _l as n, Gc as o, Ht as p, Qc as r, Hc as s, Rl as t, sn as u };
|