@templatical/editor 0.10.3 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-BMwpZx-6.js → AiChatSidebar-Cm5RM5Qh.js} +13 -13
- package/dist/{AiFeatureMenu-BqLi9Kh7.js → AiFeatureMenu-D4D2Sqfk.js} +7 -7
- package/dist/{BlockIssueBadge-3kNs6WoD.js → BlockIssueBadge-BF4sdsr4.js} +5 -5
- package/dist/{CloudEditor-DbyKnqbS.js → CloudEditor-CLwyq3kf.js} +21 -20
- package/dist/{CollaboratorBar-BXLwod21.js → CollaboratorBar-DjX-o5Pi.js} +4 -4
- package/dist/{CommentsSidebar-jFZj_CTo.js → CommentsSidebar-BQJzyCc6.js} +12 -12
- package/dist/{CountdownBlock-S-SCyVye.js → CountdownBlock-D_AsF4F3.js} +3 -3
- package/dist/{CountdownToolbar-Ckdo-3P-.js → CountdownToolbar-BGTkFky9.js} +3 -3
- package/dist/{DesignReferenceSidebar-B9QNPZNV.js → DesignReferenceSidebar-O3epZMXD.js} +9 -9
- package/dist/{IssuesPanel-_E_fbSM8.js → IssuesPanel-CPBbR8yp.js} +8 -8
- package/dist/{LoadingTrack-BZ5KJyZ_.js → LoadingTrack-e67FA0NP.js} +1 -1
- package/dist/{ModuleBrowserModal-Dy3fU2UD.js → ModuleBrowserModal-CVS4Sf7H.js} +10 -10
- package/dist/{ModulePreviewCanvas-Cutg3m7U.js → ModulePreviewCanvas-C10YXsL_.js} +3 -3
- package/dist/{NumberWithSuffix-BHDXHMpo.js → NumberWithSuffix-eI9pPDWT.js} +3 -3
- package/dist/{ParagraphEditor-DkLmn3Nf.js → ParagraphEditor-BKoqcKIt.js} +24 -24
- package/dist/{RichTextEditorContent-COijbaWp.js → RichTextEditorContent-Dvn4woIt.js} +7 -7
- package/dist/{SaveModuleDialog-C6cmHTRI.js → SaveModuleDialog-BMuIjxVn.js} +7 -7
- package/dist/{SnapshotHistory-DcLZlAhz.js → SnapshotHistory-DZ5_W7e4.js} +9 -9
- package/dist/{TemplateScoringPanel-Dhf_Qgr7.js → TemplateScoringPanel-Bt5Rsgen.js} +14 -14
- package/dist/{TestEmailModal-iRqNzKLT.js → TestEmailModal-EjpH-F-W.js} +5 -5
- package/dist/{TitleEditor-B-Adnssr.js → TitleEditor-Rv1deuV7.js} +13 -13
- package/dist/{TplModal-BlqH7CdL.js → TplModal-DSmCQIm4.js} +4 -4
- package/dist/{blockTypeIcons-upTll6yr.js → blockTypeIcons-OhEkQhYj.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-DwZWx_da.js → AiFeatureMenu-Dm9CL3u0.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-DwZWx_da.js.map → AiFeatureMenu-Dm9CL3u0.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-ClwC6oSs.js → BlockIssueBadge-DjnFAeWq.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-ClwC6oSs.js.map → BlockIssueBadge-DjnFAeWq.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BCfQOcnm.js → CloudEditor-XSmLmdgp.js} +158 -157
- package/dist/cdn/chunks/CloudEditor-XSmLmdgp.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-yz1eW4cW.js → CollaboratorBar-BfoGJhns.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-yz1eW4cW.js.map → CollaboratorBar-BfoGJhns.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CXQnTPVs.js → CountdownBlock-GRio55a1.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-CXQnTPVs.js.map → CountdownBlock-GRio55a1.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-TQGPjSz_.js → CountdownToolbar-Cd1oEopw.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-TQGPjSz_.js.map → CountdownToolbar-Cd1oEopw.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CTCK-R67.js → IssuesPanel-C-BiFQDQ.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-CTCK-R67.js.map → IssuesPanel-C-BiFQDQ.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-CFpBtFiA.js → ModuleBrowserModal-Dj7gRT4Q.js} +9 -9
- package/dist/cdn/chunks/{ModuleBrowserModal-CFpBtFiA.js.map → ModuleBrowserModal-Dj7gRT4Q.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DhAubE2o.js → ModulePreviewCanvas-hwdveKb0.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-DhAubE2o.js.map → ModulePreviewCanvas-hwdveKb0.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DUwFMc_M.js → NumberWithSuffix-bE_6cfiA.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-DUwFMc_M.js.map → NumberWithSuffix-bE_6cfiA.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-B3az9xuj.js → ParagraphEditor-y1kGJRBX.js} +49 -49
- package/dist/cdn/chunks/{ParagraphEditor-B3az9xuj.js.map → ParagraphEditor-y1kGJRBX.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DtcHHUSO.js → RichTextEditorContent-DPy9D4hc.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-DtcHHUSO.js.map → RichTextEditorContent-DPy9D4hc.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-Da8g2aeD.js → SaveModuleDialog-CPu5e2VG.js} +5 -5
- package/dist/cdn/chunks/{SaveModuleDialog-Da8g2aeD.js.map → SaveModuleDialog-CPu5e2VG.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-jxOFe6Q6.js → TitleEditor-CMzzOPye.js} +10 -10
- package/dist/cdn/chunks/{TitleEditor-jxOFe6Q6.js.map → TitleEditor-CMzzOPye.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-Cxjz4oHg.js → blockTypeIcons-BC5qpvuV.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-Cxjz4oHg.js.map → blockTypeIcons-BC5qpvuV.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BTGr7_-X.js → draggable-iAb7QVJo.js} +30 -23
- package/dist/cdn/chunks/draggable-iAb7QVJo.js.map +1 -0
- package/dist/cdn/chunks/{extensions-2tEgrD-f.js → extensions-DH7ESsaz.js} +23 -23
- package/dist/cdn/chunks/{extensions-2tEgrD-f.js.map → extensions-DH7ESsaz.js.map} +1 -1
- package/dist/cdn/chunks/{features-C3H2u-FV.js → features-DmUOSthI.js} +654 -683
- package/dist/cdn/chunks/features-DmUOSthI.js.map +1 -0
- package/dist/cdn/chunks/{icons-DClusKFv.js → icons-DguD4x_X.js} +2 -2
- package/dist/cdn/chunks/{icons-DClusKFv.js.map → icons-DguD4x_X.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-8bD3x0mc.js → media-library-ClQUPxRM.js} +73 -73
- package/dist/cdn/chunks/{media-library-8bD3x0mc.js.map → media-library-ClQUPxRM.js.map} +1 -1
- package/dist/cdn/chunks/{quality-Dqwx7TdN.js → quality-CIw_7cXv.js} +479 -479
- package/dist/cdn/chunks/{quality-Dqwx7TdN.js.map → quality-CIw_7cXv.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-DwmyVTa2.js → renderer-Bx8I7_Rb.js} +19 -19
- package/dist/cdn/chunks/{renderer-DwmyVTa2.js.map → renderer-Bx8I7_Rb.js.map} +1 -1
- package/dist/cdn/chunks/{src-C2v-Zix_.js → src-C-GlM149.js} +5 -5
- package/dist/cdn/chunks/{src-C2v-Zix_.js.map → src-C-GlM149.js.map} +1 -1
- package/dist/cdn/chunks/{styles-CwetU6QM.js → styles-CfqCvq0Z.js} +667 -636
- package/dist/cdn/chunks/styles-CfqCvq0Z.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-P5abGB13.js → tiptap-BAwu9VcJ.js} +4913 -3752
- package/dist/cdn/chunks/tiptap-BAwu9VcJ.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +12 -11
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-KooI2jyS.js → check-BsNM6BDs.js} +1 -1
- package/dist/{chevron-down-mnlFgueW.js → chevron-down-fcsZ5DU7.js} +1 -1
- package/dist/{circle-alert-D89_hB8j.js → circle-alert-BZTbwc-B.js} +1 -1
- package/dist/{clock-BaadyUrg.js → clock-B7iQRubC.js} +1 -1
- package/dist/{cloud-D-FScaHx.js → cloud-Dom4EH5Z.js} +1 -1
- package/dist/{createLucideIcon-D-6fpD2L.js → createLucideIcon-C_fetdGM.js} +3 -3
- package/dist/{dist-DaajG7Fo.js → dist-B4NkMBYc.js} +2 -2
- package/dist/{dist-b52vYHb5.js → dist-BLcYl_de.js} +2 -2
- package/dist/{dist-XA2i70J5.js → dist-BOHAk4zI.js} +2 -2
- package/dist/dist-BsB4nPJD.js +5 -0
- package/dist/{dist-Drp5bNAu.js → dist-ByBVNmRN.js} +2 -2
- package/dist/dist-CD3wbUoR.js +5 -0
- package/dist/{dist-CjULgTep.js → dist-Cwl7XXr4.js} +806 -601
- package/dist/{dist-zInT3Lf6.js → dist-Dem8ODLh.js} +2783 -2737
- package/dist/{dist-C1WcikEF.js → dist-Dhs3W2WW.js} +2 -2
- package/dist/{dist-sqf7pq5q.js → dist-XdF11ZkX.js} +2 -2
- package/dist/{dist-Dnqx5UF3.js → dist-c2sj5PQ5.js} +3 -3
- package/dist/{dist-cl33Ip6W.js → dist-cT52Hh9L.js} +3 -3
- package/dist/{dist-BttO3Zdx.js → dist-eVlXvuKI.js} +3 -3
- package/dist/extensions-B2lSGCA8.js +1720 -0
- package/dist/{image-up-DjwfAom6.js → image-up-1xrPPJYH.js} +1 -1
- package/dist/index.d.ts +29 -0
- package/dist/{info-Db3HlTr8.js → info-ByAFxArD.js} +1 -1
- package/dist/keys-DsRdOmg3.js +10 -0
- package/dist/{list-checks-BlAB0X8a.js → list-checks-CKUP4UZU.js} +1 -1
- package/dist/{loader-circle-EVqyIxjU.js → loader-circle-BuxX338d.js} +1 -1
- package/dist/{message-circle-BuI5pBVG.js → message-circle-nLwqegRi.js} +1 -1
- package/dist/{refresh-cw-C2vM_6zQ.js → refresh-cw-DAkD6iDI.js} +1 -1
- package/dist/{scan-line-AUIh_SHI.js → scan-line-DEELRJJ5.js} +1 -1
- package/dist/{send-nrbwF7xg.js → send-DCMgrNT4.js} +1 -1
- package/dist/{shield-check-B55Ozmva.js → shield-check-BFtVr_ov.js} +1 -1
- package/dist/{sparkles-oh1NUSFq.js → sparkles-CeYIQ5RJ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-DMh_bHK0.js → styles-D_ztiOsh.js} +770 -739
- package/dist/templatical-editor.js +7 -6
- package/dist/{text-align-start-B2MqzZwU.js → text-align-start-BsmIoqLS.js} +1 -1
- package/dist/{trash-2-DH8RBwAx.js → trash-2-C2S4-CIH.js} +1 -1
- package/dist/{triangle-alert-BQHjCt3B.js → triangle-alert-DMdedF6W.js} +1 -1
- package/dist/{useAliveFlag-B_b9ubwD.js → useAliveFlag-DlVvpZxc.js} +1 -1
- package/dist/{useCloudI18n-BHCrmQgj.js → useCloudI18n-BEuiZdzs.js} +2 -2
- package/dist/{useEditorCore-wBmdLj66.js → useEditorCore-tZGAVvNz.js} +655 -684
- package/dist/{useI18n-Bb9-ha9X.js → useI18n-DNspT6uw.js} +2 -2
- package/dist/{useMergeTag-HykzEtBn.js → useMergeTag-abutjUud.js} +2 -2
- package/dist/usePopoverRoot-DG3mlvd1.js +8 -0
- package/dist/{vue.runtime.esm-bundler-MzYCkFSH.js → vue.runtime.esm-bundler-mPytWZFh.js} +32 -25
- package/dist/{x-DgCCENgP.js → x-_9jw816B.js} +1 -1
- package/package.json +25 -25
- package/dist/cdn/chunks/CloudEditor-BCfQOcnm.js.map +0 -1
- package/dist/cdn/chunks/draggable-BTGr7_-X.js.map +0 -1
- package/dist/cdn/chunks/features-C3H2u-FV.js.map +0 -1
- package/dist/cdn/chunks/styles-CwetU6QM.js.map +0 -1
- package/dist/cdn/chunks/tiptap-P5abGB13.js.map +0 -1
- package/dist/dist-Df4eV6Zi.js +0 -5
- package/dist/dist-WJ1fVd5b.js +0 -5
- package/dist/extensions-DA-w1gVg.js +0 -806
- package/dist/keys-BjmL5YCT.js +0 -10
- package/dist/usePopoverRoot-BZDkRRry.js +0 -8
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { A as e, B as t, E as n, F as r, J as i, L as a, M as o, N as s, S as c, U as l, X as u, _ as d, a as f, at as p, b as m, c as h, d as g, f as _, h as v, l as y, m as b, o as x, ot as S, p as C, q as w, rt as T, s as E, st as D, t as O, v as k, w as A, y as j, z as M } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { C as N, D as P, E as F, S as I, a as L, l as
|
|
3
|
-
import { A as
|
|
4
|
-
import { a as Te, c as Ee } from "./dist-
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { i as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { n as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { _ as
|
|
27
|
-
import { i as
|
|
28
|
-
import { t as
|
|
29
|
-
var
|
|
1
|
+
import { A as e, B as t, E as n, F as r, J as i, L as a, M as o, N as s, S as c, U as l, X as u, _ as d, a as f, at as p, b as m, c as h, d as g, f as _, h as v, l as y, m as b, o as x, ot as S, p as C, q as w, rt as T, s as E, st as D, t as O, v as k, w as A, y as j, z as M } from "./vue.runtime.esm-bundler-mPytWZFh.js";
|
|
2
|
+
import { C as N, D as P, E as F, S as I, a as L, l as R, n as z, o as B } from "./dist-D6L_WdRL.js";
|
|
3
|
+
import { A as ee, F as te, I as ne, M as re, N as ie, P as V, T as ae, _ as oe, a as se, c as ce, d as le, g as ue, h as de, i as fe, j as pe, k as me, l as he, m as ge, n as _e, o as ve, p as ye, r as be, s as xe, u as Se, v as Ce, y as we } from "./useEditorCore-tZGAVvNz.js";
|
|
4
|
+
import { a as Te, c as Ee } from "./dist-cT52Hh9L.js";
|
|
5
|
+
import { A as De, C as Oe, M as ke, N as Ae, S as je, T as Me, a as Ne, d as Pe, f as Fe, g as Ie, k as Le, m as Re, n as ze, o as Be, p as Ve, s as He, u as Ue, x as We } from "./keys-DsRdOmg3.js";
|
|
6
|
+
import { t as H } from "./useI18n-DNspT6uw.js";
|
|
7
|
+
import { t as U } from "./createLucideIcon-C_fetdGM.js";
|
|
8
|
+
import { t as Ge } from "./chevron-down-fcsZ5DU7.js";
|
|
9
|
+
import { t as Ke } from "./circle-alert-BZTbwc-B.js";
|
|
10
|
+
import { i as qe, n as Je, r as Ye, t as Xe } from "./blockTypeIcons-OhEkQhYj.js";
|
|
11
|
+
import { n as Ze, t as Qe } from "./refresh-cw-DAkD6iDI.js";
|
|
12
|
+
import { t as $e } from "./image-up-1xrPPJYH.js";
|
|
13
|
+
import { t as et } from "./info-ByAFxArD.js";
|
|
14
|
+
import { t as tt } from "./list-checks-CKUP4UZU.js";
|
|
15
|
+
import { t as nt } from "./scan-line-DEELRJJ5.js";
|
|
16
|
+
import { t as rt } from "./sparkles-CeYIQ5RJ.js";
|
|
17
|
+
import { n as it, r as at, t as ot } from "./text-align-start-BsmIoqLS.js";
|
|
18
|
+
import { t as st } from "./trash-2-C2S4-CIH.js";
|
|
19
|
+
import { t as ct } from "./x-_9jw816B.js";
|
|
20
|
+
import { t as lt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
21
|
+
import { t as ut } from "./useCloudI18n-BEuiZdzs.js";
|
|
22
|
+
import { t as dt } from "./useMergeTag-abutjUud.js";
|
|
23
|
+
import { t as ft } from "./useAliveFlag-DlVvpZxc.js";
|
|
24
|
+
import { t as pt } from "./readableTextColor-f8Kykfnh.js";
|
|
25
|
+
import { t as mt } from "./CountdownBlock-D_AsF4F3.js";
|
|
26
|
+
import { _ as ht, c as gt, f as W, g as _t, h as G, l as vt, m as K, p as q, t as yt } from "./styleConstants-lGobwiLH.js";
|
|
27
|
+
import { i as J, n as Y, r as X, t as bt } from "./NumberWithSuffix-eI9pPDWT.js";
|
|
28
|
+
import { t as xt } from "./TplModal-DSmCQIm4.js";
|
|
29
|
+
var St = U("circle", [["circle", {
|
|
30
30
|
cx: "12",
|
|
31
31
|
cy: "12",
|
|
32
32
|
r: "10",
|
|
33
33
|
key: "1mglay"
|
|
34
|
-
}]]),
|
|
34
|
+
}]]), Ct = U("globe", [
|
|
35
35
|
["circle", {
|
|
36
36
|
cx: "12",
|
|
37
37
|
cy: "12",
|
|
@@ -46,7 +46,7 @@ var xt = H("circle", [["circle", {
|
|
|
46
46
|
d: "M2 12h20",
|
|
47
47
|
key: "9i4pu4"
|
|
48
48
|
}]
|
|
49
|
-
]),
|
|
49
|
+
]), wt = U("layout-template", [
|
|
50
50
|
["rect", {
|
|
51
51
|
width: "18",
|
|
52
52
|
height: "7",
|
|
@@ -71,7 +71,7 @@ var xt = H("circle", [["circle", {
|
|
|
71
71
|
rx: "1",
|
|
72
72
|
key: "q5h2i8"
|
|
73
73
|
}]
|
|
74
|
-
]),
|
|
74
|
+
]), Tt = U("lock-open", [["rect", {
|
|
75
75
|
width: "18",
|
|
76
76
|
height: "11",
|
|
77
77
|
x: "3",
|
|
@@ -82,7 +82,7 @@ var xt = H("circle", [["circle", {
|
|
|
82
82
|
}], ["path", {
|
|
83
83
|
d: "M7 11V7a5 5 0 0 1 9.9-1",
|
|
84
84
|
key: "1mm8w8"
|
|
85
|
-
}]]),
|
|
85
|
+
}]]), Et = U("lock", [["rect", {
|
|
86
86
|
width: "18",
|
|
87
87
|
height: "11",
|
|
88
88
|
x: "3",
|
|
@@ -93,7 +93,7 @@ var xt = H("circle", [["circle", {
|
|
|
93
93
|
}], ["path", {
|
|
94
94
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
95
95
|
key: "fwvmzm"
|
|
96
|
-
}]]),
|
|
96
|
+
}]]), Dt = U("monitor", [
|
|
97
97
|
["rect", {
|
|
98
98
|
width: "20",
|
|
99
99
|
height: "14",
|
|
@@ -116,10 +116,10 @@ var xt = H("circle", [["circle", {
|
|
|
116
116
|
y2: "21",
|
|
117
117
|
key: "vw1qmm"
|
|
118
118
|
}]
|
|
119
|
-
]),
|
|
119
|
+
]), Ot = U("moon", [["path", {
|
|
120
120
|
d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
|
|
121
121
|
key: "kfwtm"
|
|
122
|
-
}]]),
|
|
122
|
+
}]]), kt = U("panel-top", [["rect", {
|
|
123
123
|
width: "18",
|
|
124
124
|
height: "18",
|
|
125
125
|
x: "3",
|
|
@@ -129,19 +129,19 @@ var xt = H("circle", [["circle", {
|
|
|
129
129
|
}], ["path", {
|
|
130
130
|
d: "M3 9h18",
|
|
131
131
|
key: "1pudct"
|
|
132
|
-
}]]),
|
|
132
|
+
}]]), Z = U("plus", [["path", {
|
|
133
133
|
d: "M5 12h14",
|
|
134
134
|
key: "1ays0h"
|
|
135
135
|
}], ["path", {
|
|
136
136
|
d: "M12 5v14",
|
|
137
137
|
key: "s699le"
|
|
138
|
-
}]]),
|
|
138
|
+
}]]), At = U("rotate-ccw", [["path", {
|
|
139
139
|
d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
|
|
140
140
|
key: "1357e3"
|
|
141
141
|
}], ["path", {
|
|
142
142
|
d: "M3 3v5h5",
|
|
143
143
|
key: "1xhq8a"
|
|
144
|
-
}]]),
|
|
144
|
+
}]]), jt = U("settings", [["path", {
|
|
145
145
|
d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
|
|
146
146
|
key: "1i5ecw"
|
|
147
147
|
}], ["circle", {
|
|
@@ -149,7 +149,7 @@ var xt = H("circle", [["circle", {
|
|
|
149
149
|
cy: "12",
|
|
150
150
|
r: "3",
|
|
151
151
|
key: "1v7zrd"
|
|
152
|
-
}]]),
|
|
152
|
+
}]]), Mt = U("smartphone", [["rect", {
|
|
153
153
|
width: "14",
|
|
154
154
|
height: "20",
|
|
155
155
|
x: "5",
|
|
@@ -160,7 +160,7 @@ var xt = H("circle", [["circle", {
|
|
|
160
160
|
}], ["path", {
|
|
161
161
|
d: "M12 18h.01",
|
|
162
162
|
key: "mhygvu"
|
|
163
|
-
}]]),
|
|
163
|
+
}]]), Nt = U("square-plus", [
|
|
164
164
|
["rect", {
|
|
165
165
|
width: "18",
|
|
166
166
|
height: "18",
|
|
@@ -177,14 +177,14 @@ var xt = H("circle", [["circle", {
|
|
|
177
177
|
d: "M12 8v8",
|
|
178
178
|
key: "napkw2"
|
|
179
179
|
}]
|
|
180
|
-
]),
|
|
180
|
+
]), Pt = U("square", [["rect", {
|
|
181
181
|
width: "18",
|
|
182
182
|
height: "18",
|
|
183
183
|
x: "3",
|
|
184
184
|
y: "3",
|
|
185
185
|
rx: "2",
|
|
186
186
|
key: "afitv7"
|
|
187
|
-
}]]),
|
|
187
|
+
}]]), Ft = U("sun", [
|
|
188
188
|
["circle", {
|
|
189
189
|
cx: "12",
|
|
190
190
|
cy: "12",
|
|
@@ -226,7 +226,7 @@ var xt = H("circle", [["circle", {
|
|
|
226
226
|
]);
|
|
227
227
|
//#endregion
|
|
228
228
|
//#region src/utils/resolveLintOptions.ts
|
|
229
|
-
function
|
|
229
|
+
function It(e) {
|
|
230
230
|
return {
|
|
231
231
|
...e.lint,
|
|
232
232
|
locale: e.locale
|
|
@@ -234,19 +234,19 @@ function Ft(e) {
|
|
|
234
234
|
}
|
|
235
235
|
//#endregion
|
|
236
236
|
//#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
237
|
-
var
|
|
237
|
+
var Lt = ["aria-label"], Rt = {
|
|
238
238
|
key: 0,
|
|
239
239
|
class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
|
|
240
|
-
},
|
|
240
|
+
}, zt = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Bt = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, Vt = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, Ht = {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
243
|
-
},
|
|
243
|
+
}, Ut = {
|
|
244
244
|
key: 1,
|
|
245
245
|
class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
246
|
-
},
|
|
246
|
+
}, Wt = { class: "tpl:relative" }, Gt = {
|
|
247
247
|
class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
|
|
248
|
-
style: { "background-color": "color-mix(\n
|
|
249
|
-
},
|
|
248
|
+
style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
|
|
249
|
+
}, Kt = 96, qt = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
250
250
|
__name: "Canvas",
|
|
251
251
|
props: {
|
|
252
252
|
viewport: {},
|
|
@@ -275,9 +275,9 @@ var It = ["aria-label"], Lt = {
|
|
|
275
275
|
menu: de,
|
|
276
276
|
table: be,
|
|
277
277
|
video: _e,
|
|
278
|
-
countdown:
|
|
278
|
+
countdown: mt,
|
|
279
279
|
custom: we
|
|
280
|
-
}, s = n, c = i, { t: l } =
|
|
280
|
+
}, s = n, c = i, { t: l } = H(), { t: f } = ut(), m = Ae(Re, "Canvas"), h = A(Ue, null), w = A(Be, null), E = A(He, {}), O = g(() => (E.plan?.hasFeature("ai_generation") ?? !1) && (E.ai?.isFeatureEnabled("chat") ?? !1)), j = g(() => (E.plan?.hasFeature("ai_generation") ?? !1) && (E.ai?.isFeatureEnabled("designToTemplate") ?? !1)), N = g({
|
|
281
281
|
get: () => s.content.blocks,
|
|
282
282
|
set: (e) => {
|
|
283
283
|
m.setContent({
|
|
@@ -290,15 +290,15 @@ var It = ["aria-label"], Lt = {
|
|
|
290
290
|
case "mobile": return 375;
|
|
291
291
|
default: return s.content.settings.width;
|
|
292
292
|
}
|
|
293
|
-
}), F = g(() => ({ fontFamily: s.content.settings.fontFamily })),
|
|
294
|
-
function
|
|
295
|
-
|
|
293
|
+
}), F = g(() => P.value + Kt * 2), I = g(() => ({ fontFamily: s.content.settings.fontFamily })), L = g(() => N.value.length === 0 && !s.previewMode), R = u(0), z = g(() => L.value && R.value > 0);
|
|
294
|
+
function B() {
|
|
295
|
+
L.value && (R.value += 1);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
297
|
+
function ee() {
|
|
298
|
+
L.value && (R.value = Math.max(0, R.value - 1));
|
|
299
299
|
}
|
|
300
300
|
function te() {
|
|
301
|
-
|
|
301
|
+
R.value = 0;
|
|
302
302
|
}
|
|
303
303
|
function ne(e) {
|
|
304
304
|
s.previewMode || e.target === e.currentTarget && c("select-block", null);
|
|
@@ -306,7 +306,7 @@ var It = ["aria-label"], Lt = {
|
|
|
306
306
|
function re(e) {
|
|
307
307
|
return ye(e, w, a);
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function V(e) {
|
|
310
310
|
return s.lockedBlocks?.get(e) ?? null;
|
|
311
311
|
}
|
|
312
312
|
function ae(e, t) {
|
|
@@ -316,12 +316,9 @@ var It = ["aria-label"], Lt = {
|
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
return (i, a) => (e(), v("div", {
|
|
319
|
-
|
|
320
|
-
role: "region",
|
|
321
|
-
"aria-label": T(l).landmarks.canvas,
|
|
322
|
-
class: "tpl-canvas-wrapper tpl:relative tpl:rounded-lg",
|
|
319
|
+
class: "tpl-canvas-stage tpl:relative tpl:flex tpl:justify-center tpl:rounded-lg",
|
|
323
320
|
style: S({
|
|
324
|
-
width: `${
|
|
321
|
+
width: `${F.value}px`,
|
|
325
322
|
boxShadow: n.darkMode ? "none" : "var(--tpl-shadow-xl)",
|
|
326
323
|
transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1)"
|
|
327
324
|
})
|
|
@@ -333,11 +330,20 @@ var It = ["aria-label"], Lt = {
|
|
|
333
330
|
transition: "filter 300ms ease"
|
|
334
331
|
})
|
|
335
332
|
}, null, 4), _("div", {
|
|
333
|
+
"data-testid": "canvas-wrapper",
|
|
334
|
+
role: "region",
|
|
335
|
+
"aria-label": T(l).landmarks.canvas,
|
|
336
|
+
class: "tpl-canvas-wrapper tpl:relative",
|
|
337
|
+
style: S({
|
|
338
|
+
width: `${P.value}px`,
|
|
339
|
+
transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1)"
|
|
340
|
+
})
|
|
341
|
+
}, [_("div", {
|
|
336
342
|
class: p(["tpl-canvas tpl:relative tpl:rounded-lg", {
|
|
337
343
|
"tpl-canvas--dark-mode": n.darkMode,
|
|
338
344
|
"tpl-preview-mode": n.previewMode
|
|
339
345
|
}]),
|
|
340
|
-
style: S(
|
|
346
|
+
style: S(I.value),
|
|
341
347
|
onClick: ne
|
|
342
348
|
}, [k(T(he), {
|
|
343
349
|
modelValue: N.value,
|
|
@@ -354,38 +360,38 @@ var It = ["aria-label"], Lt = {
|
|
|
354
360
|
"force-fallback": !0,
|
|
355
361
|
class: p([
|
|
356
362
|
"tpl-canvas-blocks",
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
363
|
+
L.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors tpl:duration-150" : "",
|
|
364
|
+
L.value && z.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
|
|
365
|
+
L.value && !z.value ? "tpl:border-[var(--tpl-primary)]" : ""
|
|
360
366
|
]),
|
|
361
|
-
onDragenter:
|
|
362
|
-
onDragleave:
|
|
367
|
+
onDragenter: B,
|
|
368
|
+
onDragleave: ee,
|
|
363
369
|
onDrop: te
|
|
364
370
|
}, {
|
|
365
|
-
default: M(() => [
|
|
366
|
-
_("div",
|
|
371
|
+
default: M(() => [L.value ? (e(), v("div", Rt, [
|
|
372
|
+
_("div", zt, [k(T(Nt), {
|
|
367
373
|
size: 48,
|
|
368
374
|
"stroke-width": 1
|
|
369
375
|
})]),
|
|
370
|
-
_("p",
|
|
371
|
-
_("p",
|
|
372
|
-
O.value && T(f) ? (e(), v("p",
|
|
376
|
+
_("p", Bt, D(T(l).canvas.noBlocks), 1),
|
|
377
|
+
_("p", Vt, D(T(l).canvas.dragHint), 1),
|
|
378
|
+
O.value && T(f) ? (e(), v("p", Ht, [
|
|
373
379
|
d(D(T(l).canvas.aiHintChat) + " ", 1),
|
|
374
380
|
_("button", {
|
|
375
381
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
376
382
|
onClick: a[0] ||= (e) => c("open-ai-chat")
|
|
377
|
-
}, [k(T(
|
|
383
|
+
}, [k(T(rt), {
|
|
378
384
|
size: 14,
|
|
379
385
|
"stroke-width": 2
|
|
380
386
|
}), d(" " + D(T(f).aiMenu.aiAssistant), 1)]),
|
|
381
387
|
d(" " + D(T(l).canvas.aiHintChatSuffix), 1)
|
|
382
388
|
])) : b("", !0),
|
|
383
|
-
j.value && T(f) ? (e(), v("p",
|
|
389
|
+
j.value && T(f) ? (e(), v("p", Ut, [
|
|
384
390
|
d(D(T(l).canvas.aiHintDesign) + " ", 1),
|
|
385
391
|
_("button", {
|
|
386
392
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
387
393
|
onClick: a[1] ||= (e) => c("open-design-reference")
|
|
388
|
-
}, [k(T(
|
|
394
|
+
}, [k(T($e), {
|
|
389
395
|
size: 14,
|
|
390
396
|
"stroke-width": 2
|
|
391
397
|
}), d(" " + D(T(f).aiMenu.designToTemplate), 1)]),
|
|
@@ -394,25 +400,25 @@ var It = ["aria-label"], Lt = {
|
|
|
394
400
|
])) : b("", !0), (e(!0), v(y, null, o(N.value, (i) => t((e(), v("div", {
|
|
395
401
|
key: i.id,
|
|
396
402
|
class: "tpl-block-item"
|
|
397
|
-
}, [_("div",
|
|
403
|
+
}, [_("div", Wt, [V(i.id) ? (e(), v("div", {
|
|
398
404
|
key: 0,
|
|
399
405
|
class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
|
|
400
406
|
style: S({
|
|
401
|
-
outline: `2px solid ${
|
|
407
|
+
outline: `2px solid ${V(i.id).color}`,
|
|
402
408
|
outlineOffset: "-1px"
|
|
403
409
|
})
|
|
404
410
|
}, [_("span", {
|
|
405
411
|
class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:flex tpl:-translate-x-1/2 tpl:-translate-y-full tpl:items-center tpl:gap-1 tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
|
|
406
412
|
style: S({
|
|
407
|
-
backgroundColor:
|
|
408
|
-
color: T(
|
|
413
|
+
backgroundColor: V(i.id).color,
|
|
414
|
+
color: T(pt)(V(i.id).color)
|
|
409
415
|
})
|
|
410
|
-
}, [_("span",
|
|
416
|
+
}, [_("span", Gt, D(V(i.id).name.charAt(0)), 1), d(" " + D(V(i.id).name), 1)], 4)], 4)) : b("", !0), k(le, {
|
|
411
417
|
block: i,
|
|
412
|
-
"is-selected": !n.previewMode && n.selectedBlockId === i.id && !
|
|
418
|
+
"is-selected": !n.previewMode && n.selectedBlockId === i.id && !V(i.id),
|
|
413
419
|
viewport: n.viewport,
|
|
414
420
|
"preview-mode": n.previewMode,
|
|
415
|
-
onSelect: (e) => n.previewMode ||
|
|
421
|
+
onSelect: (e) => n.previewMode || V(i.id) ? void 0 : c("select-block", i.id)
|
|
416
422
|
}, {
|
|
417
423
|
default: M(() => [(e(), C(r(re(i)), {
|
|
418
424
|
block: i,
|
|
@@ -438,49 +444,71 @@ var It = ["aria-label"], Lt = {
|
|
|
438
444
|
"modelValue",
|
|
439
445
|
"disabled",
|
|
440
446
|
"class"
|
|
441
|
-
])], 6)], 12,
|
|
447
|
+
])], 6)], 12, Lt)], 4));
|
|
442
448
|
}
|
|
443
|
-
}), [["__scopeId", "data-v-
|
|
449
|
+
}), [["__scopeId", "data-v-a9a1158b"]]), Jt = m({
|
|
444
450
|
name: "CustomBlockStylesheets",
|
|
445
451
|
setup() {
|
|
446
|
-
let e = A(
|
|
452
|
+
let e = A(Fe, null);
|
|
447
453
|
return () => e ? e.value.map((e, t) => c("style", {
|
|
448
454
|
key: t,
|
|
449
455
|
"data-tpl-custom-block-stylesheet": "",
|
|
450
456
|
innerHTML: e
|
|
451
457
|
})) : null;
|
|
452
458
|
}
|
|
453
|
-
})
|
|
459
|
+
});
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region src/utils/resolvePaletteBlocks.ts
|
|
462
|
+
function Yt(e, t) {
|
|
463
|
+
if (!t || t.length === 0) return {
|
|
464
|
+
items: e,
|
|
465
|
+
unknown: []
|
|
466
|
+
};
|
|
467
|
+
let n = new Map(e.map((e) => [e.type, e])), r = [], i = [], a = /* @__PURE__ */ new Set();
|
|
468
|
+
for (let e of t) {
|
|
469
|
+
if (a.has(e)) continue;
|
|
470
|
+
a.add(e);
|
|
471
|
+
let t = n.get(e);
|
|
472
|
+
t ? r.push(t) : i.push(e);
|
|
473
|
+
}
|
|
474
|
+
return {
|
|
475
|
+
items: r,
|
|
476
|
+
unknown: i
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
//#endregion
|
|
480
|
+
//#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
481
|
+
var Xt = ["aria-label"], Zt = {
|
|
454
482
|
key: 0,
|
|
455
483
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
456
|
-
},
|
|
484
|
+
}, Qt = ["aria-label"], $t = {
|
|
457
485
|
key: 0,
|
|
458
486
|
class: "tpl:flex-1 tpl:truncate tpl:text-sm tpl:font-medium"
|
|
459
|
-
},
|
|
487
|
+
}, en = {
|
|
460
488
|
key: 1,
|
|
461
489
|
class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]"
|
|
462
|
-
},
|
|
490
|
+
}, tn = [
|
|
463
491
|
"data-palette-type",
|
|
464
492
|
"aria-label",
|
|
465
493
|
"onClick",
|
|
466
494
|
"onKeydown"
|
|
467
|
-
],
|
|
495
|
+
], nn = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:scale-105" }, rn = {
|
|
468
496
|
key: 0,
|
|
469
497
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
470
|
-
},
|
|
498
|
+
}, an = /* @__PURE__ */ m({
|
|
471
499
|
__name: "Sidebar",
|
|
472
500
|
setup(t) {
|
|
473
|
-
let { t: n, format: i } =
|
|
474
|
-
function
|
|
475
|
-
|
|
501
|
+
let { t: n, format: i } = H(), { t: s } = ut(), c = A(Pe, []), l = A(Me, void 0), d = A(Ne, void 0), f = A(Re, null), p = A(He, {}), m = g(() => (p.savedModules?.moduleCount.value ?? 0) > 0), h = u(!1), x = u(!1);
|
|
502
|
+
function w() {
|
|
503
|
+
x.value || (h.value = !1);
|
|
476
504
|
}
|
|
477
|
-
function
|
|
478
|
-
|
|
505
|
+
function E() {
|
|
506
|
+
x.value = !0;
|
|
479
507
|
}
|
|
480
|
-
function
|
|
481
|
-
|
|
508
|
+
function O() {
|
|
509
|
+
x.value = !1;
|
|
482
510
|
}
|
|
483
|
-
let
|
|
511
|
+
let j = [
|
|
484
512
|
"section",
|
|
485
513
|
"image",
|
|
486
514
|
"title",
|
|
@@ -493,90 +521,93 @@ var It = ["aria-label"], Lt = {
|
|
|
493
521
|
"table",
|
|
494
522
|
"spacer",
|
|
495
523
|
"html"
|
|
496
|
-
],
|
|
497
|
-
let e =
|
|
524
|
+
], N = g(() => {
|
|
525
|
+
let e = j.map((e) => ({
|
|
498
526
|
type: e,
|
|
499
|
-
label:
|
|
527
|
+
label: te(e, n)
|
|
500
528
|
}));
|
|
501
|
-
return
|
|
529
|
+
return p.plan && e.splice(-1, 0, {
|
|
502
530
|
type: "countdown",
|
|
503
|
-
label:
|
|
531
|
+
label: te("countdown", n)
|
|
504
532
|
}), e;
|
|
505
|
-
}),
|
|
533
|
+
}), P = g(() => c.map((e) => ({
|
|
506
534
|
type: `custom:${e.type}`,
|
|
507
535
|
label: e.name,
|
|
508
536
|
isCustom: !0,
|
|
509
537
|
icon: e.icon
|
|
510
|
-
}))),
|
|
511
|
-
|
|
538
|
+
}))), F = g(() => [...N.value, ...P.value]), I = g(() => Yt(F.value, l)), L = g(() => I.value.items), z = /* @__PURE__ */ new Set();
|
|
539
|
+
a(() => I.value.unknown, (e) => {
|
|
540
|
+
for (let t of e) z.has(t) || (z.add(t), V.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
|
|
541
|
+
}, { immediate: !0 });
|
|
542
|
+
function ee(e) {
|
|
512
543
|
if (e.isCustom) {
|
|
513
|
-
let t = e.type.replace("custom:", ""), n =
|
|
514
|
-
if (n) return
|
|
544
|
+
let t = e.type.replace("custom:", ""), n = c.find((e) => e.type === t);
|
|
545
|
+
if (n) return R(n);
|
|
515
546
|
}
|
|
516
|
-
return
|
|
547
|
+
return B(e.type, d);
|
|
517
548
|
}
|
|
518
|
-
function
|
|
519
|
-
if (!
|
|
520
|
-
let t =
|
|
521
|
-
|
|
549
|
+
function ne(e) {
|
|
550
|
+
if (!f) return;
|
|
551
|
+
let t = ee(e);
|
|
552
|
+
f.addBlock(t), f.selectBlock(t.id);
|
|
522
553
|
}
|
|
523
|
-
function
|
|
524
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
554
|
+
function re(e, t) {
|
|
555
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), ne(t));
|
|
525
556
|
}
|
|
526
|
-
return (t,
|
|
557
|
+
return (t, a) => (e(), v("aside", {
|
|
527
558
|
"aria-label": T(n).sidebarNav.palette,
|
|
528
|
-
class: "tpl-sidebar-rail tpl:absolute tpl:top-14 tpl:bottom-0 tpl:left-0 tpl:z-40 tpl:overflow-hidden",
|
|
559
|
+
class: "tpl-sidebar-rail tpl:absolute tpl:top-14 tpl:bottom-0 tpl:left-0 tpl:z-40 tpl:flex tpl:flex-col tpl:overflow-hidden",
|
|
529
560
|
style: S({
|
|
530
|
-
width:
|
|
561
|
+
width: h.value ? "200px" : "48px",
|
|
531
562
|
backgroundColor: "var(--tpl-bg-elevated)",
|
|
532
563
|
borderRight: "1px solid var(--tpl-border)",
|
|
533
|
-
boxShadow:
|
|
564
|
+
boxShadow: h.value ? "var(--tpl-shadow-lg)" : "none",
|
|
534
565
|
transition: "width 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
535
566
|
}),
|
|
536
|
-
onMouseenter:
|
|
537
|
-
onMouseleave:
|
|
538
|
-
onFocusin:
|
|
539
|
-
onFocusout:
|
|
540
|
-
}, [
|
|
567
|
+
onMouseenter: a[1] ||= (e) => h.value = !0,
|
|
568
|
+
onMouseleave: w,
|
|
569
|
+
onFocusin: a[2] ||= (e) => h.value = !0,
|
|
570
|
+
onFocusout: a[3] ||= (e) => h.value = !1
|
|
571
|
+
}, [m.value && T(s) ? (e(), v("div", Zt, [_("button", {
|
|
541
572
|
type: "button",
|
|
542
573
|
"aria-label": T(n).sidebarNav.browseModules,
|
|
543
574
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)]",
|
|
544
|
-
style: S({ justifyContent:
|
|
545
|
-
onClick:
|
|
575
|
+
style: S({ justifyContent: h.value ? "flex-start" : "center" }),
|
|
576
|
+
onClick: a[0] ||= (e) => T(p).savedModules?.openBrowser()
|
|
546
577
|
}, [
|
|
547
|
-
k(T(
|
|
578
|
+
k(T(Ye), {
|
|
548
579
|
size: 20,
|
|
549
580
|
"stroke-width": 1.5,
|
|
550
581
|
class: "tpl:shrink-0"
|
|
551
582
|
}),
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
], 12,
|
|
555
|
-
"model-value":
|
|
583
|
+
h.value ? (e(), v("span", $t, D(T(s).modules.title), 1)) : b("", !0),
|
|
584
|
+
h.value ? (e(), v("span", en, D(T(p).savedModules?.moduleCount.value ?? 0), 1)) : b("", !0)
|
|
585
|
+
], 12, Qt)])) : b("", !0), k(T(he), {
|
|
586
|
+
"model-value": L.value,
|
|
556
587
|
group: {
|
|
557
588
|
name: "blocks",
|
|
558
589
|
pull: "clone",
|
|
559
590
|
put: !1
|
|
560
591
|
},
|
|
561
|
-
clone:
|
|
592
|
+
clone: ee,
|
|
562
593
|
sort: !1,
|
|
563
594
|
animation: 150,
|
|
564
595
|
"ghost-class": "tpl-ghost",
|
|
565
596
|
"force-fallback": !0,
|
|
566
|
-
class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:p-1",
|
|
567
|
-
onChoose:
|
|
568
|
-
onEnd:
|
|
597
|
+
class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-0.5 tpl:overflow-y-auto tpl:p-1",
|
|
598
|
+
onChoose: E,
|
|
599
|
+
onEnd: O
|
|
569
600
|
}, {
|
|
570
|
-
default: M(() => [(e(!0), v(y, null, o(
|
|
601
|
+
default: M(() => [(e(!0), v(y, null, o(L.value, (t) => (e(), v("button", {
|
|
571
602
|
key: t.type,
|
|
572
603
|
type: "button",
|
|
573
604
|
"data-palette-type": t.type,
|
|
574
605
|
"aria-label": T(i)(T(n).sidebarNav.insertBlock, { block: t.label }),
|
|
575
|
-
class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-grab tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] active:tpl:cursor-grabbing",
|
|
576
|
-
style: S({ justifyContent:
|
|
577
|
-
onClick: (e) =>
|
|
578
|
-
onKeydown: (e) =>
|
|
579
|
-
}, [_("div",
|
|
606
|
+
class: "tpl:flex tpl:h-10 tpl:w-full tpl:shrink-0 tpl:cursor-grab tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] active:tpl:cursor-grabbing",
|
|
607
|
+
style: S({ justifyContent: h.value ? "flex-start" : "center" }),
|
|
608
|
+
onClick: (e) => ne(t),
|
|
609
|
+
onKeydown: (e) => re(e, t)
|
|
610
|
+
}, [_("div", nn, [T(Xe)[t.type] ? (e(), C(r(T(Xe)[t.type]), {
|
|
580
611
|
key: 0,
|
|
581
612
|
size: 20,
|
|
582
613
|
"stroke-width": 1.5
|
|
@@ -584,15 +615,15 @@ var It = ["aria-label"], Lt = {
|
|
|
584
615
|
key: 1,
|
|
585
616
|
icon: t.icon,
|
|
586
617
|
size: 20
|
|
587
|
-
}, null, 8, ["icon"])) : b("", !0)]),
|
|
618
|
+
}, null, 8, ["icon"])) : b("", !0)]), h.value ? (e(), v("span", rn, D(t.label), 1)) : b("", !0)], 44, tn))), 128))]),
|
|
588
619
|
_: 1
|
|
589
|
-
}, 8, ["model-value"])], 44,
|
|
620
|
+
}, 8, ["model-value"])], 44, Xt));
|
|
590
621
|
}
|
|
591
622
|
});
|
|
592
623
|
//#endregion
|
|
593
624
|
//#region src/composables/useMergeTagField.ts
|
|
594
|
-
function
|
|
595
|
-
let { modelValue: t, emit: r, elementRef: i } = e, { canRequestMergeTag: a, isRequesting: o, isMergeTagValue: s, getMergeTagLabel: c, requestMergeTag: d, syntax: f } =
|
|
625
|
+
function on(e) {
|
|
626
|
+
let { modelValue: t, emit: r, elementRef: i } = e, { canRequestMergeTag: a, isRequesting: o, isMergeTagValue: s, getMergeTagLabel: c, requestMergeTag: d, syntax: f } = dt(), p = u(!1), m = !1, h = !1;
|
|
596
627
|
l() && w(() => {
|
|
597
628
|
h = !0;
|
|
598
629
|
});
|
|
@@ -673,10 +704,10 @@ function nn(e) {
|
|
|
673
704
|
}
|
|
674
705
|
//#endregion
|
|
675
706
|
//#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
|
|
676
|
-
var
|
|
707
|
+
var sn = ["aria-label", "onKeydown"], cn = ["data-tooltip"], ln = ["data-tooltip"], un = {
|
|
677
708
|
key: 2,
|
|
678
709
|
class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
679
|
-
},
|
|
710
|
+
}, dn = ["aria-label", "title"], fn = /* @__PURE__ */ m({
|
|
680
711
|
__name: "MergeTagSegments",
|
|
681
712
|
props: {
|
|
682
713
|
segments: {},
|
|
@@ -685,7 +716,7 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
685
716
|
},
|
|
686
717
|
emits: ["edit", "clear"],
|
|
687
718
|
setup(t, { emit: n }) {
|
|
688
|
-
let r = n, { t: i } =
|
|
719
|
+
let r = n, { t: i } = H();
|
|
689
720
|
function a() {
|
|
690
721
|
r("edit");
|
|
691
722
|
}
|
|
@@ -704,7 +735,7 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
704
735
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
705
736
|
color: "var(--tpl-primary)"
|
|
706
737
|
}
|
|
707
|
-
}, D(t.label), 9,
|
|
738
|
+
}, D(t.label), 9, cn)) : t.type === "logicMergeTag" ? (e(), v("span", {
|
|
708
739
|
key: 1,
|
|
709
740
|
class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
|
|
710
741
|
"data-tooltip": t.value,
|
|
@@ -713,44 +744,44 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
713
744
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
714
745
|
color: "var(--tpl-primary)"
|
|
715
746
|
}
|
|
716
|
-
}, D(t.keyword), 9,
|
|
747
|
+
}, D(t.keyword), 9, ln)) : (e(), v("span", un, D(t.value), 1))], 64))), 128)), _("button", {
|
|
717
748
|
type: "button",
|
|
718
749
|
class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all hover:tpl:text-[var(--tpl-danger)] hover:tpl:opacity-100",
|
|
719
750
|
"aria-label": T(i).mergeTag.remove,
|
|
720
751
|
title: T(i).mergeTag.remove,
|
|
721
752
|
onClick: s[0] ||= h((e) => r("clear"), ["stop"])
|
|
722
|
-
}, [k(T(
|
|
753
|
+
}, [k(T(ct), {
|
|
723
754
|
size: 12,
|
|
724
755
|
"stroke-width": 2.5
|
|
725
|
-
})], 8,
|
|
756
|
+
})], 8, dn)], 42, sn));
|
|
726
757
|
}
|
|
727
|
-
}),
|
|
758
|
+
}), pn = [
|
|
728
759
|
"aria-label",
|
|
729
760
|
"title",
|
|
730
761
|
"disabled"
|
|
731
|
-
],
|
|
762
|
+
], mn = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", hn = /* @__PURE__ */ m({
|
|
732
763
|
__name: "MergeTagInsertButton",
|
|
733
764
|
props: { disabled: { type: Boolean } },
|
|
734
765
|
emits: ["insert"],
|
|
735
766
|
setup(t) {
|
|
736
|
-
let { t: n } =
|
|
767
|
+
let { t: n } = H();
|
|
737
768
|
return (r, i) => (e(), v("button", {
|
|
738
769
|
type: "button",
|
|
739
|
-
class: p([
|
|
770
|
+
class: p([mn, "tpl:mt-1.5"]),
|
|
740
771
|
"aria-label": T(n).mergeTag.insert,
|
|
741
772
|
title: T(n).mergeTag.insert,
|
|
742
773
|
disabled: t.disabled,
|
|
743
774
|
onClick: i[0] ||= (e) => r.$emit("insert")
|
|
744
|
-
}, [k(T(
|
|
775
|
+
}, [k(T(nt), {
|
|
745
776
|
size: 12,
|
|
746
777
|
"stroke-width": 2
|
|
747
|
-
}), d(" " + D(T(n).mergeTag.insert), 1)], 10,
|
|
778
|
+
}), d(" " + D(T(n).mergeTag.insert), 1)], 10, pn));
|
|
748
779
|
}
|
|
749
|
-
}),
|
|
780
|
+
}), gn = { key: 0 }, _n = { key: 1 }, vn = [
|
|
750
781
|
"value",
|
|
751
782
|
"placeholder",
|
|
752
783
|
"rows"
|
|
753
|
-
],
|
|
784
|
+
], yn = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", bn = "tpl:flex tpl:w-full tpl:min-h-20 tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", xn = /* @__PURE__ */ m({
|
|
754
785
|
__name: "MergeTagTextarea",
|
|
755
786
|
props: {
|
|
756
787
|
modelValue: {},
|
|
@@ -759,46 +790,46 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
759
790
|
},
|
|
760
791
|
emits: ["update:modelValue"],
|
|
761
792
|
setup(t, { emit: n }) {
|
|
762
|
-
let r = t, i = n, a = u(null), { segments: o, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: d, startEditing: f, stopEditing: m, handleInput: h, clearValue: g, insertMergeTag: y } =
|
|
793
|
+
let r = t, i = n, a = u(null), { segments: o, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: d, startEditing: f, stopEditing: m, handleInput: h, clearValue: g, insertMergeTag: y } = on({
|
|
763
794
|
modelValue: () => r.modelValue,
|
|
764
795
|
emit: (e) => i("update:modelValue", e),
|
|
765
796
|
elementRef: a
|
|
766
797
|
});
|
|
767
|
-
return (n, r) => T(s) && !T(d) ? (e(), v("div",
|
|
798
|
+
return (n, r) => T(s) && !T(d) ? (e(), v("div", gn, [k(fn, {
|
|
768
799
|
segments: T(o),
|
|
769
|
-
"display-class":
|
|
800
|
+
"display-class": bn,
|
|
770
801
|
onEdit: T(f),
|
|
771
802
|
onClear: T(g)
|
|
772
803
|
}, null, 8, [
|
|
773
804
|
"segments",
|
|
774
805
|
"onEdit",
|
|
775
806
|
"onClear"
|
|
776
|
-
]), T(c) ? (e(), C(
|
|
807
|
+
]), T(c) ? (e(), C(hn, {
|
|
777
808
|
key: 0,
|
|
778
809
|
disabled: T(l),
|
|
779
810
|
onInsert: T(y)
|
|
780
|
-
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : (e(), v("div",
|
|
811
|
+
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : (e(), v("div", _n, [_("textarea", {
|
|
781
812
|
ref_key: "textareaRef",
|
|
782
813
|
ref: a,
|
|
783
|
-
class: p(
|
|
814
|
+
class: p(yn),
|
|
784
815
|
value: t.modelValue,
|
|
785
816
|
placeholder: t.placeholder,
|
|
786
817
|
rows: t.rows,
|
|
787
818
|
onInput: r[0] ||= (...e) => T(h) && T(h)(...e),
|
|
788
819
|
onBlur: r[1] ||= (...e) => T(m) && T(m)(...e),
|
|
789
820
|
onKeydown: r[2] ||= E((...e) => T(m) && T(m)(...e), ["escape"])
|
|
790
|
-
}, null, 40,
|
|
821
|
+
}, null, 40, vn), T(c) ? (e(), C(hn, {
|
|
791
822
|
key: 0,
|
|
792
823
|
disabled: T(l),
|
|
793
824
|
onInsert: T(y)
|
|
794
825
|
}, null, 8, ["disabled", "onInsert"])) : b("", !0)]));
|
|
795
826
|
}
|
|
796
|
-
}),
|
|
827
|
+
}), Sn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Cn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, wn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Tn = { class: "tpl:mb-3.5" }, En = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, Dn = ["onClick"], On = { class: "tpl:flex tpl:items-stretch" }, kn = ["value"], An = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, jn = { class: "tpl:mb-3.5" }, Mn = ["value"], Nn = ["value"], Pn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fn = ["value"], In = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Ln = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Rn = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, zn = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Bn = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, Vn = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Hn = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, Un = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Wn = { class: "tpl:mb-1 tpl:last:mb-0" }, Gn = { class: "tpl:mb-1 tpl:last:mb-0" }, Kn = { class: "tpl:mb-1 tpl:last:mb-0" }, qn = 150, Jn = /* @__PURE__ */ m({
|
|
797
828
|
__name: "TemplateSettings",
|
|
798
829
|
props: { settings: {} },
|
|
799
830
|
emits: ["update"],
|
|
800
831
|
setup(t, { emit: n }) {
|
|
801
|
-
let r = t, i = n, { t: a } =
|
|
832
|
+
let r = t, i = n, { t: a } = H(), s = Ae(Ie, "TemplateSettings"), c = g(() => s.fonts.value), l = g(() => c.value.some((e) => e.value === r.settings.fontFamily) ? r.settings.fontFamily : s.defaultFont.value), u = [
|
|
802
833
|
{
|
|
803
834
|
value: 480,
|
|
804
835
|
label: "480px"
|
|
@@ -816,14 +847,14 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
816
847
|
label: "800px"
|
|
817
848
|
}
|
|
818
849
|
];
|
|
819
|
-
return (n, r) => (e(), v("aside",
|
|
820
|
-
_("div", { class: p(T(
|
|
821
|
-
_("div",
|
|
850
|
+
return (n, r) => (e(), v("aside", Sn, [_("div", Cn, [
|
|
851
|
+
_("div", { class: p(T(vt)) }, [
|
|
852
|
+
_("div", wn, [k(T(Pt), {
|
|
822
853
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
823
854
|
size: 14,
|
|
824
855
|
"stroke-width": 2
|
|
825
856
|
}), _("span", null, D(T(a).templateSettings.layout), 1)]),
|
|
826
|
-
_("div",
|
|
857
|
+
_("div", Tn, [_("label", { class: p(T(G)) }, D(T(a).templateSettings.widthPreset), 3), _("div", En, [(e(), v(y, null, o(u, (e) => _("button", {
|
|
827
858
|
key: e.value,
|
|
828
859
|
class: "tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
829
860
|
style: S({
|
|
@@ -832,79 +863,79 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
832
863
|
boxShadow: t.settings.width === e.value ? "var(--tpl-shadow)" : "none"
|
|
833
864
|
}),
|
|
834
865
|
onClick: (t) => i("update", { width: e.value })
|
|
835
|
-
}, D(e.label), 13,
|
|
836
|
-
_("div", null, [_("label", { class: p(T(
|
|
866
|
+
}, D(e.label), 13, Dn)), 64))])]),
|
|
867
|
+
_("div", null, [_("label", { class: p(T(G)) }, D(T(a).templateSettings.customWidth), 3), _("div", On, [_("input", {
|
|
837
868
|
type: "number",
|
|
838
|
-
class: p(T(
|
|
869
|
+
class: p(T(q)),
|
|
839
870
|
value: t.settings.width,
|
|
840
871
|
min: "300",
|
|
841
872
|
max: "900",
|
|
842
873
|
onInput: r[0] ||= (e) => i("update", { width: Number(e.target.value) })
|
|
843
|
-
}, null, 42,
|
|
874
|
+
}, null, 42, kn), _("span", { class: p(T(K)) }, "px", 2)])])
|
|
844
875
|
], 2),
|
|
845
|
-
_("div", { class: p(T(
|
|
846
|
-
_("div",
|
|
876
|
+
_("div", { class: p(T(vt)) }, [
|
|
877
|
+
_("div", An, [k(T(St), {
|
|
847
878
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
848
879
|
size: 14,
|
|
849
880
|
"stroke-width": 2
|
|
850
881
|
}), _("span", null, D(T(a).templateSettings.appearance), 1)]),
|
|
851
|
-
_("div",
|
|
882
|
+
_("div", jn, [_("label", { class: p(T(G)) }, D(T(a).templateSettings.backgroundColor), 3), k(J, {
|
|
852
883
|
"model-value": t.settings.backgroundColor,
|
|
853
|
-
placeholder: T(
|
|
884
|
+
placeholder: T(yt),
|
|
854
885
|
"onUpdate:modelValue": r[1] ||= (e) => i("update", { backgroundColor: e })
|
|
855
886
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
856
|
-
_("div", null, [_("label", { class: p(T(
|
|
857
|
-
class: p(T(
|
|
887
|
+
_("div", null, [_("label", { class: p(T(G)) }, D(T(a).templateSettings.fontFamily), 3), _("select", {
|
|
888
|
+
class: p(T(W)),
|
|
858
889
|
value: l.value,
|
|
859
890
|
onChange: r[2] ||= (e) => i("update", { fontFamily: e.target.value })
|
|
860
891
|
}, [(e(!0), v(y, null, o(c.value, (t) => (e(), v("option", {
|
|
861
892
|
key: t.value,
|
|
862
893
|
value: t.value
|
|
863
|
-
}, D(t.label), 9,
|
|
894
|
+
}, D(t.label), 9, Nn))), 128))], 42, Mn)])
|
|
864
895
|
], 2),
|
|
865
|
-
_("div", { class: p(T(
|
|
896
|
+
_("div", { class: p(T(vt)) }, [_("div", Pn, [k(T(Ct), {
|
|
866
897
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
867
898
|
size: 14,
|
|
868
899
|
"stroke-width": 2
|
|
869
900
|
}), _("span", null, D(T(a).templateSettings.language), 1)]), _("div", null, [
|
|
870
|
-
_("label", { class: p(T(
|
|
901
|
+
_("label", { class: p(T(G)) }, D(T(a).templateSettings.contentLocale), 3),
|
|
871
902
|
_("input", {
|
|
872
903
|
type: "text",
|
|
873
|
-
class: p(T(
|
|
904
|
+
class: p(T(W)),
|
|
874
905
|
value: t.settings.locale ?? "",
|
|
875
906
|
placeholder: "en",
|
|
876
907
|
spellcheck: "false",
|
|
877
908
|
autocapitalize: "off",
|
|
878
909
|
autocomplete: "off",
|
|
879
910
|
onInput: r[3] ||= (e) => i("update", { locale: e.target.value.trim() || void 0 })
|
|
880
|
-
}, null, 42,
|
|
881
|
-
_("p",
|
|
911
|
+
}, null, 42, Fn),
|
|
912
|
+
_("p", In, D(T(a).templateSettings.contentLocaleHint), 1)
|
|
882
913
|
])], 2),
|
|
883
|
-
_("div", { class: p(T(
|
|
914
|
+
_("div", { class: p(T(vt)) }, [_("div", Ln, [k(T(Ze), {
|
|
884
915
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
885
916
|
size: 14,
|
|
886
917
|
"stroke-width": 2
|
|
887
|
-
}), _("span", null, D(T(a).templateSettings.preheaderText), 1)]), _("div", null, [k(
|
|
918
|
+
}), _("span", null, D(T(a).templateSettings.preheaderText), 1)]), _("div", null, [k(xn, {
|
|
888
919
|
"model-value": t.settings.preheaderText ?? "",
|
|
889
920
|
placeholder: T(a).templateSettings.preheaderTextPlaceholder,
|
|
890
921
|
rows: 2,
|
|
891
922
|
"onUpdate:modelValue": r[4] ||= (e) => i("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
|
|
892
|
-
}, null, 8, ["model-value", "placeholder"]), _("div",
|
|
893
|
-
_("div",
|
|
923
|
+
}, null, 8, ["model-value", "placeholder"]), _("div", Rn, [_("span", zn, D(T(a).templateSettings.preheaderTextHint), 1), _("span", Bn, D((t.settings.preheaderText ?? "").length) + "/" + D(qn), 1)])])], 2),
|
|
924
|
+
_("div", Vn, [_("div", Hn, [k(T(et), {
|
|
894
925
|
size: 14,
|
|
895
926
|
"stroke-width": 2
|
|
896
|
-
}), _("span", null, D(T(a).templateSettings.tips), 1)]), _("ul",
|
|
897
|
-
_("li",
|
|
898
|
-
_("li",
|
|
899
|
-
_("li",
|
|
927
|
+
}), _("span", null, D(T(a).templateSettings.tips), 1)]), _("ul", Un, [
|
|
928
|
+
_("li", Wn, D(T(a).templateSettings.tip1), 1),
|
|
929
|
+
_("li", Gn, D(T(a).templateSettings.tip2), 1),
|
|
930
|
+
_("li", Kn, D(T(a).templateSettings.tip3), 1)
|
|
900
931
|
])])
|
|
901
932
|
])]));
|
|
902
933
|
}
|
|
903
|
-
}),
|
|
934
|
+
}), Yn = { key: 0 }, Xn = { key: 1 }, Zn = [
|
|
904
935
|
"type",
|
|
905
936
|
"value",
|
|
906
937
|
"placeholder"
|
|
907
|
-
],
|
|
938
|
+
], Qn = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", Q = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
908
939
|
__name: "MergeTagInput",
|
|
909
940
|
props: {
|
|
910
941
|
modelValue: {},
|
|
@@ -917,14 +948,14 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
917
948
|
},
|
|
918
949
|
emits: ["update:modelValue"],
|
|
919
950
|
setup(t, { emit: n }) {
|
|
920
|
-
let r = t, i = n, a = u(null), { segments: o, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: d, startEditing: f, stopEditing: m, handleInput: h, clearValue: g, insertMergeTag: y } =
|
|
951
|
+
let r = t, i = n, a = u(null), { segments: o, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: l, isEditing: d, startEditing: f, stopEditing: m, handleInput: h, clearValue: g, insertMergeTag: y } = on({
|
|
921
952
|
modelValue: () => r.modelValue,
|
|
922
953
|
emit: (e) => i("update:modelValue", e),
|
|
923
954
|
elementRef: a
|
|
924
955
|
});
|
|
925
|
-
return (n, r) => T(s) && !T(d) ? (e(), v("div",
|
|
956
|
+
return (n, r) => T(s) && !T(d) ? (e(), v("div", Yn, [k(fn, {
|
|
926
957
|
segments: T(o),
|
|
927
|
-
"display-class":
|
|
958
|
+
"display-class": Qn,
|
|
928
959
|
pulse: t.pulse,
|
|
929
960
|
onEdit: T(f),
|
|
930
961
|
onClear: T(g)
|
|
@@ -933,30 +964,30 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
933
964
|
"pulse",
|
|
934
965
|
"onEdit",
|
|
935
966
|
"onClear"
|
|
936
|
-
]), T(c) ? (e(), C(
|
|
967
|
+
]), T(c) ? (e(), C(hn, {
|
|
937
968
|
key: 0,
|
|
938
969
|
disabled: T(l),
|
|
939
970
|
onInsert: T(y)
|
|
940
|
-
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : (e(), v("div",
|
|
971
|
+
}, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : (e(), v("div", Xn, [_("input", {
|
|
941
972
|
ref_key: "inputRef",
|
|
942
973
|
ref: a,
|
|
943
974
|
type: t.type,
|
|
944
|
-
class: p([T(
|
|
975
|
+
class: p([T(W), { "tpl-pulse-fill": t.pulse }]),
|
|
945
976
|
value: t.modelValue,
|
|
946
977
|
placeholder: t.placeholder,
|
|
947
978
|
onInput: r[0] ||= (...e) => T(h) && T(h)(...e),
|
|
948
979
|
onBlur: r[1] ||= (...e) => T(m) && T(m)(...e),
|
|
949
980
|
onKeydown: r[2] ||= E((...e) => T(m) && T(m)(...e), ["escape"])
|
|
950
|
-
}, null, 42,
|
|
981
|
+
}, null, 42, Zn), T(c) ? (e(), C(hn, {
|
|
951
982
|
key: 0,
|
|
952
983
|
disabled: T(l),
|
|
953
984
|
onInsert: T(y)
|
|
954
985
|
}, null, 8, ["disabled", "onInsert"])) : b("", !0)]));
|
|
955
986
|
}
|
|
956
|
-
}), [["__scopeId", "data-v-358207dd"]]),
|
|
987
|
+
}), [["__scopeId", "data-v-358207dd"]]), $n = { class: "tpl:mb-3.5" }, er = ["value"], tr = { value: "" }, nr = ["value"], rr = { class: "tpl:mb-3.5" }, ir = { class: "tpl:mb-3.5" }, ar = {
|
|
957
988
|
key: 0,
|
|
958
989
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
959
|
-
},
|
|
990
|
+
}, or = ["checked"], sr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, cr = { class: "tpl:mb-3.5" }, lr = { class: "tpl:mb-3.5" }, ur = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, dr = { class: "tpl:mb-3.5" }, fr = { class: "tpl:flex tpl:items-stretch" }, pr = ["value"], mr = { class: "tpl:mb-3.5" }, hr = { class: "tpl:flex tpl:items-stretch" }, gr = ["value"], _r = /* @__PURE__ */ m({
|
|
960
991
|
__name: "ButtonToolbar",
|
|
961
992
|
props: {
|
|
962
993
|
block: {},
|
|
@@ -964,64 +995,64 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
964
995
|
},
|
|
965
996
|
emits: ["update"],
|
|
966
997
|
setup(t, { emit: n }) {
|
|
967
|
-
let r = n, { t: i } =
|
|
998
|
+
let r = n, { t: i } = H();
|
|
968
999
|
function a(e, t) {
|
|
969
1000
|
r("update", { [e]: t });
|
|
970
1001
|
}
|
|
971
1002
|
return (n, r) => (e(), v(y, null, [
|
|
972
|
-
_("div",
|
|
973
|
-
class: p(T(
|
|
1003
|
+
_("div", $n, [_("label", { class: p(T(G)) }, D(T(i).button.fontFamily), 3), _("select", {
|
|
1004
|
+
class: p(T(W)),
|
|
974
1005
|
value: t.block.fontFamily || "",
|
|
975
1006
|
onChange: r[0] ||= (e) => a("fontFamily", e.target.value || void 0)
|
|
976
|
-
}, [_("option",
|
|
1007
|
+
}, [_("option", tr, D(T(i).button.inheritFont), 1), (e(!0), v(y, null, o(t.fontFamilies, (t) => (e(), v("option", {
|
|
977
1008
|
key: t.value,
|
|
978
1009
|
value: t.value
|
|
979
|
-
}, D(t.label), 9,
|
|
980
|
-
_("div",
|
|
1010
|
+
}, D(t.label), 9, nr))), 128))], 42, er)]),
|
|
1011
|
+
_("div", rr, [_("label", { class: p(T(G)) }, D(T(i).button.text), 3), k(Q, {
|
|
981
1012
|
"model-value": t.block.text,
|
|
982
1013
|
type: "text",
|
|
983
1014
|
"onUpdate:modelValue": r[1] ||= (e) => a("text", e)
|
|
984
1015
|
}, null, 8, ["model-value"])]),
|
|
985
|
-
_("div",
|
|
986
|
-
_("label", { class: p(T(
|
|
987
|
-
k(
|
|
1016
|
+
_("div", ir, [
|
|
1017
|
+
_("label", { class: p(T(G)) }, D(T(i).button.url), 3),
|
|
1018
|
+
k(Q, {
|
|
988
1019
|
"model-value": t.block.url,
|
|
989
1020
|
type: "url",
|
|
990
1021
|
placeholder: T(i).button.urlPlaceholder,
|
|
991
1022
|
"onUpdate:modelValue": r[2] ||= (e) => a("url", e)
|
|
992
1023
|
}, null, 8, ["model-value", "placeholder"]),
|
|
993
|
-
t.block.url ? (e(), v("label",
|
|
1024
|
+
t.block.url ? (e(), v("label", ar, [_("input", {
|
|
994
1025
|
type: "checkbox",
|
|
995
1026
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
996
1027
|
checked: t.block.openInNewTab ?? !1,
|
|
997
1028
|
onChange: r[3] ||= (e) => a("openInNewTab", e.target.checked)
|
|
998
|
-
}, null, 40,
|
|
1029
|
+
}, null, 40, or), d(" " + D(T(i).button.openInNewTab), 1)])) : b("", !0)
|
|
999
1030
|
]),
|
|
1000
|
-
_("div",
|
|
1031
|
+
_("div", sr, [_("div", cr, [_("label", { class: p(T(G)) }, D(T(i).button.background), 3), k(J, {
|
|
1001
1032
|
"model-value": t.block.backgroundColor,
|
|
1002
1033
|
"onUpdate:modelValue": r[4] ||= (e) => a("backgroundColor", e)
|
|
1003
|
-
}, null, 8, ["model-value"])]), _("div",
|
|
1034
|
+
}, null, 8, ["model-value"])]), _("div", lr, [_("label", { class: p(T(G)) }, D(T(i).button.textColor), 3), k(J, {
|
|
1004
1035
|
"model-value": t.block.textColor,
|
|
1005
1036
|
"onUpdate:modelValue": r[5] ||= (e) => a("textColor", e)
|
|
1006
1037
|
}, null, 8, ["model-value"])])]),
|
|
1007
|
-
_("div",
|
|
1038
|
+
_("div", ur, [_("div", dr, [_("label", { class: p(T(G)) }, D(T(i).button.borderRadius), 3), _("div", fr, [_("input", {
|
|
1008
1039
|
type: "number",
|
|
1009
|
-
class: p(T(
|
|
1040
|
+
class: p(T(q)),
|
|
1010
1041
|
value: t.block.borderRadius,
|
|
1011
1042
|
min: "0",
|
|
1012
1043
|
max: "50",
|
|
1013
1044
|
onInput: r[6] ||= (e) => a("borderRadius", Number(e.target.value))
|
|
1014
|
-
}, null, 42,
|
|
1045
|
+
}, null, 42, pr), _("span", { class: p(T(K)) }, "px", 2)])]), _("div", mr, [_("label", { class: p(T(G)) }, D(T(i).button.fontSize), 3), _("div", hr, [_("input", {
|
|
1015
1046
|
type: "number",
|
|
1016
|
-
class: p(T(
|
|
1047
|
+
class: p(T(q)),
|
|
1017
1048
|
value: t.block.fontSize,
|
|
1018
1049
|
min: "10",
|
|
1019
1050
|
max: "36",
|
|
1020
1051
|
onInput: r[7] ||= (e) => a("fontSize", Number(e.target.value))
|
|
1021
|
-
}, null, 42,
|
|
1052
|
+
}, null, 42, gr), _("span", { class: p(T(K)) }, "px", 2)])])])
|
|
1022
1053
|
], 64));
|
|
1023
1054
|
}
|
|
1024
|
-
}),
|
|
1055
|
+
}), vr = { class: "spacing-control" }, yr = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, br = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, xr = { class: "tpl:flex tpl:items-center" }, Sr = ["aria-label"], Cr = ["value", "aria-label"], wr = ["aria-label"], Tr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Er = { class: "tpl:flex tpl:items-center" }, Dr = ["aria-label"], Or = ["value", "aria-label"], kr = ["aria-label"], Ar = ["aria-label", "title"], jr = { class: "tpl:flex tpl:items-center" }, Mr = ["aria-label"], Nr = ["value", "aria-label"], Pr = ["aria-label"], Fr = { class: "tpl:flex tpl:items-center" }, Ir = ["aria-label"], Lr = ["value", "aria-label"], Rr = ["aria-label"], $ = "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)]", zr = "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)]", Br = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
1025
1056
|
__name: "SpacingControl",
|
|
1026
1057
|
props: {
|
|
1027
1058
|
modelValue: {},
|
|
@@ -1029,7 +1060,7 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1029
1060
|
},
|
|
1030
1061
|
emits: ["update:modelValue"],
|
|
1031
1062
|
setup(t, { emit: n }) {
|
|
1032
|
-
let r = t, i = n, { t: o } =
|
|
1063
|
+
let r = t, i = n, { t: o } = H(), s = g(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), c = u(s.value);
|
|
1033
1064
|
a(s, (e) => {
|
|
1034
1065
|
!e && c.value && (c.value = !1);
|
|
1035
1066
|
});
|
|
@@ -1068,130 +1099,130 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1068
1099
|
});
|
|
1069
1100
|
}
|
|
1070
1101
|
}
|
|
1071
|
-
return (n, r) => (e(), v("div",
|
|
1072
|
-
_("div",
|
|
1102
|
+
return (n, r) => (e(), v("div", vr, [_("label", yr, D(t.label), 1), _("div", br, [
|
|
1103
|
+
_("div", xr, [
|
|
1073
1104
|
_("button", {
|
|
1074
1105
|
"aria-label": T(o).spacingControl.decreaseTop,
|
|
1075
|
-
class: p([
|
|
1106
|
+
class: p([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1076
1107
|
onClick: r[0] ||= (e) => l("top", -1)
|
|
1077
|
-
}, [k(T(
|
|
1108
|
+
}, [k(T(qe), {
|
|
1078
1109
|
size: 12,
|
|
1079
1110
|
"stroke-width": 2
|
|
1080
|
-
})], 10,
|
|
1111
|
+
})], 10, Sr),
|
|
1081
1112
|
_("input", {
|
|
1082
1113
|
type: "number",
|
|
1083
|
-
class: p(
|
|
1114
|
+
class: p(zr),
|
|
1084
1115
|
value: t.modelValue.top,
|
|
1085
1116
|
"aria-label": T(o).spacingControl.top,
|
|
1086
1117
|
min: "0",
|
|
1087
1118
|
onInput: r[1] ||= (e) => d("top", Number(e.target.value))
|
|
1088
|
-
}, null, 40,
|
|
1119
|
+
}, null, 40, Cr),
|
|
1089
1120
|
_("button", {
|
|
1090
1121
|
"aria-label": T(o).spacingControl.increaseTop,
|
|
1091
|
-
class: p([
|
|
1122
|
+
class: p([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1092
1123
|
onClick: r[2] ||= (e) => l("top", 1)
|
|
1093
|
-
}, [k(T(
|
|
1124
|
+
}, [k(T(Z), {
|
|
1094
1125
|
size: 12,
|
|
1095
1126
|
"stroke-width": 2
|
|
1096
|
-
})], 10,
|
|
1127
|
+
})], 10, wr)
|
|
1097
1128
|
]),
|
|
1098
|
-
_("div",
|
|
1099
|
-
_("div",
|
|
1129
|
+
_("div", Tr, [
|
|
1130
|
+
_("div", Er, [
|
|
1100
1131
|
_("button", {
|
|
1101
1132
|
"aria-label": T(o).spacingControl.decreaseLeft,
|
|
1102
|
-
class: p([
|
|
1133
|
+
class: p([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1103
1134
|
onClick: r[3] ||= (e) => l("left", -1)
|
|
1104
|
-
}, [k(T(
|
|
1135
|
+
}, [k(T(qe), {
|
|
1105
1136
|
size: 12,
|
|
1106
1137
|
"stroke-width": 2
|
|
1107
|
-
})], 10,
|
|
1138
|
+
})], 10, Dr),
|
|
1108
1139
|
_("input", {
|
|
1109
1140
|
type: "number",
|
|
1110
|
-
class: p(
|
|
1141
|
+
class: p(zr),
|
|
1111
1142
|
value: t.modelValue.left,
|
|
1112
1143
|
"aria-label": T(o).spacingControl.left,
|
|
1113
1144
|
min: "0",
|
|
1114
1145
|
onInput: r[4] ||= (e) => d("left", Number(e.target.value))
|
|
1115
|
-
}, null, 40,
|
|
1146
|
+
}, null, 40, Or),
|
|
1116
1147
|
_("button", {
|
|
1117
1148
|
"aria-label": T(o).spacingControl.increaseLeft,
|
|
1118
|
-
class: p([
|
|
1149
|
+
class: p([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1119
1150
|
onClick: r[5] ||= (e) => l("left", 1)
|
|
1120
|
-
}, [k(T(
|
|
1151
|
+
}, [k(T(Z), {
|
|
1121
1152
|
size: 12,
|
|
1122
1153
|
"stroke-width": 2
|
|
1123
|
-
})], 10,
|
|
1154
|
+
})], 10, kr)
|
|
1124
1155
|
]),
|
|
1125
1156
|
_("button", {
|
|
1126
1157
|
class: p(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", c.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)]"]),
|
|
1127
1158
|
"aria-label": c.value ? T(o).spacingControl.unlock : T(o).spacingControl.lockAll,
|
|
1128
1159
|
title: c.value ? T(o).spacingControl.unlock : T(o).spacingControl.lockAll,
|
|
1129
1160
|
onClick: f
|
|
1130
|
-
}, [c.value ? (e(), C(T(
|
|
1161
|
+
}, [c.value ? (e(), C(T(Et), {
|
|
1131
1162
|
key: 0,
|
|
1132
1163
|
size: 14,
|
|
1133
1164
|
"stroke-width": 2
|
|
1134
|
-
})) : (e(), C(T(
|
|
1165
|
+
})) : (e(), C(T(Tt), {
|
|
1135
1166
|
key: 1,
|
|
1136
1167
|
size: 14,
|
|
1137
1168
|
"stroke-width": 2
|
|
1138
|
-
}))], 10,
|
|
1139
|
-
_("div",
|
|
1169
|
+
}))], 10, Ar),
|
|
1170
|
+
_("div", jr, [
|
|
1140
1171
|
_("button", {
|
|
1141
1172
|
"aria-label": T(o).spacingControl.decreaseRight,
|
|
1142
|
-
class: p([
|
|
1173
|
+
class: p([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1143
1174
|
onClick: r[6] ||= (e) => l("right", -1)
|
|
1144
|
-
}, [k(T(
|
|
1175
|
+
}, [k(T(qe), {
|
|
1145
1176
|
size: 12,
|
|
1146
1177
|
"stroke-width": 2
|
|
1147
|
-
})], 10,
|
|
1178
|
+
})], 10, Mr),
|
|
1148
1179
|
_("input", {
|
|
1149
1180
|
type: "number",
|
|
1150
|
-
class: p(
|
|
1181
|
+
class: p(zr),
|
|
1151
1182
|
value: t.modelValue.right,
|
|
1152
1183
|
"aria-label": T(o).spacingControl.right,
|
|
1153
1184
|
min: "0",
|
|
1154
1185
|
onInput: r[7] ||= (e) => d("right", Number(e.target.value))
|
|
1155
|
-
}, null, 40,
|
|
1186
|
+
}, null, 40, Nr),
|
|
1156
1187
|
_("button", {
|
|
1157
1188
|
"aria-label": T(o).spacingControl.increaseRight,
|
|
1158
|
-
class: p([
|
|
1189
|
+
class: p([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1159
1190
|
onClick: r[8] ||= (e) => l("right", 1)
|
|
1160
|
-
}, [k(T(
|
|
1191
|
+
}, [k(T(Z), {
|
|
1161
1192
|
size: 12,
|
|
1162
1193
|
"stroke-width": 2
|
|
1163
|
-
})], 10,
|
|
1194
|
+
})], 10, Pr)
|
|
1164
1195
|
])
|
|
1165
1196
|
]),
|
|
1166
|
-
_("div",
|
|
1197
|
+
_("div", Fr, [
|
|
1167
1198
|
_("button", {
|
|
1168
1199
|
"aria-label": T(o).spacingControl.decreaseBottom,
|
|
1169
|
-
class: p([
|
|
1200
|
+
class: p([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1170
1201
|
onClick: r[9] ||= (e) => l("bottom", -1)
|
|
1171
|
-
}, [k(T(
|
|
1202
|
+
}, [k(T(qe), {
|
|
1172
1203
|
size: 12,
|
|
1173
1204
|
"stroke-width": 2
|
|
1174
|
-
})], 10,
|
|
1205
|
+
})], 10, Ir),
|
|
1175
1206
|
_("input", {
|
|
1176
1207
|
type: "number",
|
|
1177
|
-
class: p(
|
|
1208
|
+
class: p(zr),
|
|
1178
1209
|
value: t.modelValue.bottom,
|
|
1179
1210
|
"aria-label": T(o).spacingControl.bottom,
|
|
1180
1211
|
min: "0",
|
|
1181
1212
|
onInput: r[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
1182
|
-
}, null, 40,
|
|
1213
|
+
}, null, 40, Lr),
|
|
1183
1214
|
_("button", {
|
|
1184
1215
|
"aria-label": T(o).spacingControl.increaseBottom,
|
|
1185
|
-
class: p([
|
|
1216
|
+
class: p([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1186
1217
|
onClick: r[11] ||= (e) => l("bottom", 1)
|
|
1187
|
-
}, [k(T(
|
|
1218
|
+
}, [k(T(Z), {
|
|
1188
1219
|
size: 12,
|
|
1189
1220
|
"stroke-width": 2
|
|
1190
|
-
})], 10,
|
|
1221
|
+
})], 10, Rr)
|
|
1191
1222
|
])
|
|
1192
1223
|
])]));
|
|
1193
1224
|
}
|
|
1194
|
-
}), [["__scopeId", "data-v-9a9c8a07"]]),
|
|
1225
|
+
}), [["__scopeId", "data-v-9a9c8a07"]]), Vr = { class: "tpl:mt-3" }, Hr = /* @__PURE__ */ m({
|
|
1195
1226
|
__name: "CollapsibleSection",
|
|
1196
1227
|
props: {
|
|
1197
1228
|
title: {},
|
|
@@ -1204,25 +1235,25 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1204
1235
|
type: "button",
|
|
1205
1236
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1206
1237
|
onClick: i[0] ||= (e) => r.$emit("toggle")
|
|
1207
|
-
}, [k(T(
|
|
1238
|
+
}, [k(T(Ge), {
|
|
1208
1239
|
class: p(["tpl:transition-transform tpl:duration-200", n.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1209
1240
|
size: 12,
|
|
1210
1241
|
"stroke-width": 2
|
|
1211
|
-
}, null, 8, ["class"]), _("span", null, D(n.title), 1)]), t(_("div",
|
|
1242
|
+
}, null, 8, ["class"]), _("span", null, D(n.title), 1)]), t(_("div", Vr, [s(r.$slots, "default")], 512), [[x, n.open]])], 2));
|
|
1212
1243
|
}
|
|
1213
|
-
}),
|
|
1244
|
+
}), Ur = { class: "tpl:space-y-2" }, Wr = ["checked", "onChange"], Gr = { class: "tpl:space-y-2" }, Kr = ["value"], qr = { value: "" }, Jr = ["label"], Yr = ["value"], Xr = ["value"], Zr = {
|
|
1214
1245
|
key: 0,
|
|
1215
1246
|
value: "__custom__"
|
|
1216
|
-
},
|
|
1247
|
+
}, Qr = {
|
|
1217
1248
|
key: 0,
|
|
1218
1249
|
class: "tpl:space-y-2"
|
|
1219
|
-
},
|
|
1250
|
+
}, $r = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ei = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ti = { class: "tpl:flex tpl:justify-end" }, ni = ["disabled"], ri = {
|
|
1220
1251
|
key: 0,
|
|
1221
1252
|
class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
|
|
1222
|
-
},
|
|
1253
|
+
}, ii = { class: "tpl:space-y-1" }, ai = { 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)]" }, oi = {
|
|
1223
1254
|
key: 0,
|
|
1224
1255
|
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)]"
|
|
1225
|
-
},
|
|
1256
|
+
}, si = /* @__PURE__ */ m({
|
|
1226
1257
|
__name: "CommonBlockSettings",
|
|
1227
1258
|
props: {
|
|
1228
1259
|
block: {},
|
|
@@ -1230,13 +1261,13 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1230
1261
|
},
|
|
1231
1262
|
emits: ["update"],
|
|
1232
1263
|
setup(n, { emit: s }) {
|
|
1233
|
-
let c = n, l = s, { t: m } =
|
|
1264
|
+
let c = n, l = s, { t: m } = H(), h = A(Ve, []), x = A(ze, !1), S = i(/* @__PURE__ */ new Set()), w = u(!1), E = u(""), O = u(""), j = [{
|
|
1234
1265
|
key: "desktop",
|
|
1235
|
-
icon:
|
|
1266
|
+
icon: Dt,
|
|
1236
1267
|
labelKey: "showOnDesktop"
|
|
1237
1268
|
}, {
|
|
1238
1269
|
key: "mobile",
|
|
1239
|
-
icon:
|
|
1270
|
+
icon: Mt,
|
|
1240
1271
|
labelKey: "showOnMobile"
|
|
1241
1272
|
}];
|
|
1242
1273
|
function N(e) {
|
|
@@ -1260,7 +1291,7 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1260
1291
|
}
|
|
1261
1292
|
F.value && (E.value = e.before, O.value = e.after ?? "");
|
|
1262
1293
|
}, { immediate: !0 });
|
|
1263
|
-
let
|
|
1294
|
+
let R = g(() => {
|
|
1264
1295
|
let e = {};
|
|
1265
1296
|
for (let t of h) {
|
|
1266
1297
|
let n = t.group ?? "";
|
|
@@ -1268,33 +1299,33 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1268
1299
|
}
|
|
1269
1300
|
return e;
|
|
1270
1301
|
});
|
|
1271
|
-
function
|
|
1302
|
+
function z(e, t) {
|
|
1272
1303
|
l("update", { styles: {
|
|
1273
1304
|
...c.block.styles,
|
|
1274
1305
|
[e]: t
|
|
1275
1306
|
} });
|
|
1276
1307
|
}
|
|
1277
|
-
function
|
|
1308
|
+
function B(e) {
|
|
1278
1309
|
return c.block.visibility?.[e] !== !1;
|
|
1279
1310
|
}
|
|
1280
|
-
function
|
|
1311
|
+
function ee(e) {
|
|
1281
1312
|
let t = {
|
|
1282
|
-
desktop:
|
|
1283
|
-
mobile:
|
|
1313
|
+
desktop: B("desktop"),
|
|
1314
|
+
mobile: B("mobile")
|
|
1284
1315
|
};
|
|
1285
1316
|
t[e] = !t[e], l("update", { visibility: t });
|
|
1286
1317
|
}
|
|
1287
1318
|
return (i, a) => (e(), v("div", { class: p(["tpl:flex tpl:flex-col", n.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1288
|
-
k(
|
|
1319
|
+
k(Hr, {
|
|
1289
1320
|
title: T(m).blockSettings.spacing,
|
|
1290
1321
|
open: S.has("spacing"),
|
|
1291
1322
|
"no-border": n.isFirstSection,
|
|
1292
1323
|
onToggle: a[1] ||= (e) => N("spacing")
|
|
1293
1324
|
}, {
|
|
1294
|
-
default: M(() => [k(
|
|
1325
|
+
default: M(() => [k(Br, {
|
|
1295
1326
|
label: T(m).blockSettings.padding,
|
|
1296
1327
|
"model-value": n.block.styles.padding,
|
|
1297
|
-
"onUpdate:modelValue": a[0] ||= (e) =>
|
|
1328
|
+
"onUpdate:modelValue": a[0] ||= (e) => z("padding", e)
|
|
1298
1329
|
}, null, 8, ["label", "model-value"])]),
|
|
1299
1330
|
_: 1
|
|
1300
1331
|
}, 8, [
|
|
@@ -1302,33 +1333,33 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1302
1333
|
"open",
|
|
1303
1334
|
"no-border"
|
|
1304
1335
|
]),
|
|
1305
|
-
k(
|
|
1336
|
+
k(Hr, {
|
|
1306
1337
|
title: T(m).blockSettings.background,
|
|
1307
1338
|
open: S.has("bg"),
|
|
1308
1339
|
onToggle: a[3] ||= (e) => N("bg")
|
|
1309
1340
|
}, {
|
|
1310
|
-
default: M(() => [_("label", { class: p(T(
|
|
1341
|
+
default: M(() => [_("label", { class: p(T(G)) }, D(T(m).blockSettings.color), 3), k(J, {
|
|
1311
1342
|
size: "large",
|
|
1312
1343
|
"model-value": n.block.styles.backgroundColor || T("#ffffff"),
|
|
1313
|
-
"onUpdate:modelValue": a[2] ||= (e) =>
|
|
1344
|
+
"onUpdate:modelValue": a[2] ||= (e) => z("backgroundColor", e)
|
|
1314
1345
|
}, null, 8, ["model-value"])]),
|
|
1315
1346
|
_: 1
|
|
1316
1347
|
}, 8, ["title", "open"]),
|
|
1317
|
-
k(
|
|
1348
|
+
k(Hr, {
|
|
1318
1349
|
title: T(m).blockSettings.display,
|
|
1319
1350
|
open: S.has("display"),
|
|
1320
1351
|
onToggle: a[4] ||= (e) => N("display")
|
|
1321
1352
|
}, {
|
|
1322
|
-
default: M(() => [_("div",
|
|
1353
|
+
default: M(() => [_("div", Ur, [(e(), v(y, null, o(j, (t) => _("label", {
|
|
1323
1354
|
key: t.key,
|
|
1324
1355
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]"
|
|
1325
1356
|
}, [
|
|
1326
1357
|
_("input", {
|
|
1327
1358
|
type: "checkbox",
|
|
1328
1359
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
1329
|
-
checked:
|
|
1330
|
-
onChange: (e) =>
|
|
1331
|
-
}, null, 40,
|
|
1360
|
+
checked: B(t.key),
|
|
1361
|
+
onChange: (e) => ee(t.key)
|
|
1362
|
+
}, null, 40, Wr),
|
|
1332
1363
|
(e(), C(r(t.icon), {
|
|
1333
1364
|
size: 14,
|
|
1334
1365
|
"stroke-width": 1.5
|
|
@@ -1337,13 +1368,13 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1337
1368
|
])), 64))])]),
|
|
1338
1369
|
_: 1
|
|
1339
1370
|
}, 8, ["title", "open"]),
|
|
1340
|
-
P.value ? (e(), C(
|
|
1371
|
+
P.value ? (e(), C(Hr, {
|
|
1341
1372
|
key: 0,
|
|
1342
1373
|
title: T(m).blockSettings.displayCondition,
|
|
1343
1374
|
open: S.has("condition"),
|
|
1344
1375
|
onToggle: a[8] ||= (e) => N("condition")
|
|
1345
1376
|
}, {
|
|
1346
|
-
default: M(() => [_("div",
|
|
1377
|
+
default: M(() => [_("div", Gr, [_("select", {
|
|
1347
1378
|
class: p(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:duration-150 tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", n.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1348
1379
|
value: w.value || F.value ? "__custom__" : n.block.displayCondition?.label ?? "",
|
|
1349
1380
|
onChange: a[5] ||= (e) => {
|
|
@@ -1360,48 +1391,48 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1360
1391
|
n && l("update", { displayCondition: n });
|
|
1361
1392
|
}
|
|
1362
1393
|
}, [
|
|
1363
|
-
_("option",
|
|
1364
|
-
(e(!0), v(y, null, o(
|
|
1394
|
+
_("option", qr, D(T(m).blockSettings.noCondition), 1),
|
|
1395
|
+
(e(!0), v(y, null, o(R.value, (t, n) => (e(), v(y, { key: n }, [n ? (e(), v("optgroup", {
|
|
1365
1396
|
key: 0,
|
|
1366
1397
|
label: String(n)
|
|
1367
1398
|
}, [(e(!0), v(y, null, o(t, (t) => (e(), v("option", {
|
|
1368
1399
|
key: t.label,
|
|
1369
1400
|
value: t.label
|
|
1370
|
-
}, D(t.label), 9,
|
|
1401
|
+
}, D(t.label), 9, Yr))), 128))], 8, Jr)) : (e(!0), v(y, { key: 1 }, o(t, (t) => (e(), v("option", {
|
|
1371
1402
|
key: t.label,
|
|
1372
1403
|
value: t.label
|
|
1373
|
-
}, D(t.label), 9,
|
|
1374
|
-
T(x) ? (e(), v("option",
|
|
1375
|
-
], 42,
|
|
1376
|
-
_("div", null, [_("label",
|
|
1404
|
+
}, D(t.label), 9, Xr))), 128))], 64))), 128)),
|
|
1405
|
+
T(x) ? (e(), v("option", Zr, D(T(m).blockSettings.customCondition), 1)) : b("", !0)
|
|
1406
|
+
], 42, Kr), w.value || F.value ? (e(), v("div", Qr, [
|
|
1407
|
+
_("div", null, [_("label", $r, D(T(m).blockSettings.customConditionBefore), 1), t(_("textarea", {
|
|
1377
1408
|
"onUpdate:modelValue": a[6] ||= (e) => E.value = e,
|
|
1378
1409
|
rows: "2",
|
|
1379
|
-
class: p(T(
|
|
1410
|
+
class: p(T(_t))
|
|
1380
1411
|
}, null, 2), [[f, E.value]])]),
|
|
1381
|
-
_("div", null, [_("label",
|
|
1412
|
+
_("div", null, [_("label", ei, D(T(m).blockSettings.customConditionAfter), 1), t(_("textarea", {
|
|
1382
1413
|
"onUpdate:modelValue": a[7] ||= (e) => O.value = e,
|
|
1383
1414
|
rows: "2",
|
|
1384
|
-
class: p(T(
|
|
1415
|
+
class: p(T(_t))
|
|
1385
1416
|
}, null, 2), [[f, O.value]])]),
|
|
1386
|
-
_("div",
|
|
1417
|
+
_("div", ti, [_("button", {
|
|
1387
1418
|
type: "button",
|
|
1388
1419
|
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",
|
|
1389
1420
|
disabled: !E.value.trim(),
|
|
1390
1421
|
onClick: L
|
|
1391
|
-
}, D(T(m).blockSettings.applyCondition), 9,
|
|
1392
|
-
])) : n.block.displayCondition && !F.value ? (e(), v(y, { key: 1 }, [n.block.displayCondition.description ? (e(), v("p",
|
|
1422
|
+
}, D(T(m).blockSettings.applyCondition), 9, ni)])
|
|
1423
|
+
])) : n.block.displayCondition && !F.value ? (e(), v(y, { key: 1 }, [n.block.displayCondition.description ? (e(), v("p", ri, D(n.block.displayCondition.description), 1)) : b("", !0), _("div", ii, [_("pre", ai, D(n.block.displayCondition.before), 1), n.block.displayCondition.after ? (e(), v("pre", oi, D(n.block.displayCondition.after), 1)) : b("", !0)])], 64)) : b("", !0)])]),
|
|
1393
1424
|
_: 1
|
|
1394
1425
|
}, 8, ["title", "open"])) : b("", !0)
|
|
1395
1426
|
], 2));
|
|
1396
1427
|
}
|
|
1397
|
-
}),
|
|
1428
|
+
}), ci = ["title"], li = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ui = {
|
|
1398
1429
|
key: 1,
|
|
1399
1430
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1400
|
-
},
|
|
1431
|
+
}, di = [
|
|
1401
1432
|
"aria-checked",
|
|
1402
1433
|
"aria-label",
|
|
1403
1434
|
"disabled"
|
|
1404
|
-
],
|
|
1435
|
+
], fi = /* @__PURE__ */ m({
|
|
1405
1436
|
__name: "BooleanField",
|
|
1406
1437
|
props: {
|
|
1407
1438
|
field: {},
|
|
@@ -1410,18 +1441,18 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1410
1441
|
},
|
|
1411
1442
|
emits: ["update:modelValue"],
|
|
1412
1443
|
setup(t, { emit: n }) {
|
|
1413
|
-
let r = n, { t: i } =
|
|
1444
|
+
let r = n, { t: i } = H();
|
|
1414
1445
|
return (n, a) => (e(), v("div", {
|
|
1415
1446
|
class: "tpl:mb-3.5",
|
|
1416
1447
|
title: t.readOnly ? T(i).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1417
|
-
}, [_("label", { class: p(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", t.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [_("span",
|
|
1448
|
+
}, [_("label", { class: p(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", t.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [_("span", li, [
|
|
1418
1449
|
d(D(t.field.label) + " ", 1),
|
|
1419
|
-
t.readOnly ? (e(), C(T(
|
|
1450
|
+
t.readOnly ? (e(), C(T(Et), {
|
|
1420
1451
|
key: 0,
|
|
1421
1452
|
size: 12,
|
|
1422
1453
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1423
1454
|
})) : b("", !0),
|
|
1424
|
-
t.field.required ? (e(), v("span",
|
|
1455
|
+
t.field.required ? (e(), v("span", ui, " * ")) : b("", !0)
|
|
1425
1456
|
]), _("button", {
|
|
1426
1457
|
type: "button",
|
|
1427
1458
|
role: "switch",
|
|
@@ -1434,12 +1465,12 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1434
1465
|
]),
|
|
1435
1466
|
disabled: t.readOnly,
|
|
1436
1467
|
onClick: a[0] ||= (e) => !t.readOnly && r("update:modelValue", !t.modelValue)
|
|
1437
|
-
}, [_("span", { class: p(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", t.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10,
|
|
1468
|
+
}, [_("span", { class: p(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", t.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, di)], 2)], 8, ci));
|
|
1438
1469
|
}
|
|
1439
|
-
}),
|
|
1470
|
+
}), pi = { class: "tpl:mb-3.5" }, mi = {
|
|
1440
1471
|
key: 1,
|
|
1441
1472
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1442
|
-
},
|
|
1473
|
+
}, hi = /* @__PURE__ */ m({
|
|
1443
1474
|
__name: "FieldWrapper",
|
|
1444
1475
|
props: {
|
|
1445
1476
|
label: {},
|
|
@@ -1447,17 +1478,17 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1447
1478
|
readOnly: { type: Boolean }
|
|
1448
1479
|
},
|
|
1449
1480
|
setup(t) {
|
|
1450
|
-
return (n, r) => (e(), v("div",
|
|
1481
|
+
return (n, r) => (e(), v("div", pi, [_("label", { class: p(T(G)) }, [
|
|
1451
1482
|
d(D(t.label) + " ", 1),
|
|
1452
|
-
t.readOnly ? (e(), C(T(
|
|
1483
|
+
t.readOnly ? (e(), C(T(Et), {
|
|
1453
1484
|
key: 0,
|
|
1454
1485
|
size: 12,
|
|
1455
1486
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1456
1487
|
})) : b("", !0),
|
|
1457
|
-
t.required ? (e(), v("span",
|
|
1488
|
+
t.required ? (e(), v("span", mi, "*")) : b("", !0)
|
|
1458
1489
|
], 2), s(n.$slots, "default")]));
|
|
1459
1490
|
}
|
|
1460
|
-
}),
|
|
1491
|
+
}), gi = /* @__PURE__ */ m({
|
|
1461
1492
|
__name: "ColorField",
|
|
1462
1493
|
props: {
|
|
1463
1494
|
field: {},
|
|
@@ -1466,13 +1497,13 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1466
1497
|
},
|
|
1467
1498
|
emits: ["update:modelValue"],
|
|
1468
1499
|
setup(t, { emit: n }) {
|
|
1469
|
-
let r = n, { t: i } =
|
|
1470
|
-
return (n, a) => (e(), C(
|
|
1500
|
+
let r = n, { t: i } = H();
|
|
1501
|
+
return (n, a) => (e(), C(hi, {
|
|
1471
1502
|
label: t.field.label,
|
|
1472
1503
|
required: t.field.required,
|
|
1473
1504
|
"read-only": t.readOnly
|
|
1474
1505
|
}, {
|
|
1475
|
-
default: M(() => [k(
|
|
1506
|
+
default: M(() => [k(J, {
|
|
1476
1507
|
"model-value": t.modelValue || T("#000000"),
|
|
1477
1508
|
placeholder: t.field.placeholder || T("#000000"),
|
|
1478
1509
|
disabled: t.readOnly,
|
|
@@ -1491,11 +1522,11 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1491
1522
|
"read-only"
|
|
1492
1523
|
]));
|
|
1493
1524
|
}
|
|
1494
|
-
}),
|
|
1525
|
+
}), _i = [
|
|
1495
1526
|
"value",
|
|
1496
1527
|
"placeholder",
|
|
1497
1528
|
"title"
|
|
1498
|
-
],
|
|
1529
|
+
], vi = ["value", "placeholder"], yi = /* @__PURE__ */ m({
|
|
1499
1530
|
__name: "ImageField",
|
|
1500
1531
|
props: {
|
|
1501
1532
|
field: {},
|
|
@@ -1504,12 +1535,12 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1504
1535
|
},
|
|
1505
1536
|
emits: ["update:modelValue"],
|
|
1506
1537
|
setup(t, { emit: n }) {
|
|
1507
|
-
let r = n, { t: i } =
|
|
1538
|
+
let r = n, { t: i } = H(), a = A(Oe, null), o = ft(), s = g(() => !!a);
|
|
1508
1539
|
async function c() {
|
|
1509
1540
|
let e = await a?.({ accept: ["images"] });
|
|
1510
1541
|
o.alive && e && r("update:modelValue", e.url);
|
|
1511
1542
|
}
|
|
1512
|
-
return (n, a) => (e(), C(
|
|
1543
|
+
return (n, a) => (e(), C(hi, {
|
|
1513
1544
|
label: t.field.label,
|
|
1514
1545
|
required: t.field.required,
|
|
1515
1546
|
"read-only": t.readOnly
|
|
@@ -1517,19 +1548,19 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1517
1548
|
default: M(() => [t.readOnly ? (e(), v("input", {
|
|
1518
1549
|
key: 0,
|
|
1519
1550
|
type: "url",
|
|
1520
|
-
class: p([T(
|
|
1551
|
+
class: p([T(W), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1521
1552
|
value: t.modelValue,
|
|
1522
1553
|
placeholder: t.field.placeholder || "https://...",
|
|
1523
1554
|
disabled: "",
|
|
1524
1555
|
title: T(i).customBlocks.dataSource.readOnlyTooltip
|
|
1525
|
-
}, null, 10,
|
|
1556
|
+
}, null, 10, _i)) : (e(), v("input", {
|
|
1526
1557
|
key: 1,
|
|
1527
1558
|
type: "url",
|
|
1528
|
-
class: p(T(
|
|
1559
|
+
class: p(T(W)),
|
|
1529
1560
|
value: t.modelValue,
|
|
1530
1561
|
placeholder: t.field.placeholder || "https://...",
|
|
1531
1562
|
onInput: a[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
1532
|
-
}, null, 42,
|
|
1563
|
+
}, null, 42, vi)), s.value && !t.readOnly ? (e(), v("button", {
|
|
1533
1564
|
key: 2,
|
|
1534
1565
|
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)]",
|
|
1535
1566
|
onClick: a[1] ||= (e) => c()
|
|
@@ -1544,7 +1575,7 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1544
1575
|
"read-only"
|
|
1545
1576
|
]));
|
|
1546
1577
|
}
|
|
1547
|
-
}),
|
|
1578
|
+
}), bi = [
|
|
1548
1579
|
"value",
|
|
1549
1580
|
"placeholder",
|
|
1550
1581
|
"min",
|
|
@@ -1552,7 +1583,7 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1552
1583
|
"step",
|
|
1553
1584
|
"disabled",
|
|
1554
1585
|
"title"
|
|
1555
|
-
],
|
|
1586
|
+
], xi = /* @__PURE__ */ m({
|
|
1556
1587
|
__name: "NumberField",
|
|
1557
1588
|
props: {
|
|
1558
1589
|
field: {},
|
|
@@ -1561,15 +1592,15 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1561
1592
|
},
|
|
1562
1593
|
emits: ["update:modelValue"],
|
|
1563
1594
|
setup(t, { emit: n }) {
|
|
1564
|
-
let r = n, { t: i } =
|
|
1565
|
-
return (n, a) => (e(), C(
|
|
1595
|
+
let r = n, { t: i } = H();
|
|
1596
|
+
return (n, a) => (e(), C(hi, {
|
|
1566
1597
|
label: t.field.label,
|
|
1567
1598
|
required: t.field.required,
|
|
1568
1599
|
"read-only": t.readOnly
|
|
1569
1600
|
}, {
|
|
1570
1601
|
default: M(() => [_("input", {
|
|
1571
1602
|
type: "number",
|
|
1572
|
-
class: p([T(
|
|
1603
|
+
class: p([T(W), t.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1573
1604
|
value: t.modelValue,
|
|
1574
1605
|
placeholder: t.field.placeholder,
|
|
1575
1606
|
min: t.field.min,
|
|
@@ -1578,7 +1609,7 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1578
1609
|
disabled: t.readOnly,
|
|
1579
1610
|
title: t.readOnly ? T(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1580
1611
|
onInput: a[0] ||= (e) => !t.readOnly && r("update:modelValue", Number(e.target.value))
|
|
1581
|
-
}, null, 42,
|
|
1612
|
+
}, null, 42, bi)]),
|
|
1582
1613
|
_: 1
|
|
1583
1614
|
}, 8, [
|
|
1584
1615
|
"label",
|
|
@@ -1586,10 +1617,10 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1586
1617
|
"read-only"
|
|
1587
1618
|
]));
|
|
1588
1619
|
}
|
|
1589
|
-
}),
|
|
1620
|
+
}), Si = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ci = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, wi = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Ti = ["title", "onClick"], Ei = {
|
|
1590
1621
|
key: 1,
|
|
1591
1622
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1592
|
-
},
|
|
1623
|
+
}, Di = /* @__PURE__ */ m({
|
|
1593
1624
|
__name: "RepeatableField",
|
|
1594
1625
|
props: {
|
|
1595
1626
|
field: {},
|
|
@@ -1598,7 +1629,7 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1598
1629
|
},
|
|
1599
1630
|
emits: ["update:modelValue"],
|
|
1600
1631
|
setup(t, { emit: n }) {
|
|
1601
|
-
let i = t, a = n, { t: s } =
|
|
1632
|
+
let i = t, a = n, { t: s } = H(), c = g(() => i.modelValue || []), l = g(() => !i.field.maxItems || c.value.length < i.field.maxItems), u = g(() => !i.field.minItems || c.value.length > i.field.minItems);
|
|
1602
1633
|
function f() {
|
|
1603
1634
|
if (!l.value || i.readOnly) return;
|
|
1604
1635
|
let e = {};
|
|
@@ -1616,25 +1647,25 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1616
1647
|
[t]: n
|
|
1617
1648
|
} : r));
|
|
1618
1649
|
}
|
|
1619
|
-
return (n, i) => (e(), C(
|
|
1650
|
+
return (n, i) => (e(), C(hi, {
|
|
1620
1651
|
label: t.field.label,
|
|
1621
1652
|
required: t.field.required,
|
|
1622
1653
|
"read-only": t.readOnly
|
|
1623
1654
|
}, {
|
|
1624
|
-
default: M(() => [_("div",
|
|
1655
|
+
default: M(() => [_("div", Si, [
|
|
1625
1656
|
(e(!0), v(y, null, o(c.value, (n, i) => (e(), v("div", {
|
|
1626
1657
|
key: `${t.field.key}-${i}`,
|
|
1627
1658
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1628
|
-
}, [_("div",
|
|
1659
|
+
}, [_("div", Ci, [_("span", wi, " #" + D(i + 1), 1), u.value && !t.readOnly ? (e(), v("button", {
|
|
1629
1660
|
key: 0,
|
|
1630
1661
|
type: "button",
|
|
1631
1662
|
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)]",
|
|
1632
1663
|
title: T(s).customBlocks.fields.removeItem,
|
|
1633
1664
|
onClick: (e) => m(i)
|
|
1634
|
-
}, [k(T(
|
|
1665
|
+
}, [k(T(st), {
|
|
1635
1666
|
size: 12,
|
|
1636
1667
|
"stroke-width": 2
|
|
1637
|
-
})], 8,
|
|
1668
|
+
})], 8, Ti)) : b("", !0)]), (e(!0), v(y, null, o(t.field.fields, (a) => (e(), C(r(T(Ii)(a.type)), {
|
|
1638
1669
|
key: a.key,
|
|
1639
1670
|
field: a,
|
|
1640
1671
|
"model-value": n[a.key],
|
|
@@ -1649,13 +1680,13 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1649
1680
|
l.value && !t.readOnly ? (e(), v("button", {
|
|
1650
1681
|
key: 0,
|
|
1651
1682
|
type: "button",
|
|
1652
|
-
class: p(T(
|
|
1683
|
+
class: p(T(gt)),
|
|
1653
1684
|
onClick: f
|
|
1654
|
-
}, [k(T(
|
|
1685
|
+
}, [k(T(Z), {
|
|
1655
1686
|
size: 14,
|
|
1656
1687
|
"stroke-width": 2
|
|
1657
1688
|
}), d(" " + D(T(s).customBlocks.fields.addItem), 1)], 2)) : b("", !0),
|
|
1658
|
-
!l.value && !t.readOnly ? (e(), v("p",
|
|
1689
|
+
!l.value && !t.readOnly ? (e(), v("p", Ei, D(T(s).customBlocks.fields.maxItemsReached), 1)) : b("", !0)
|
|
1659
1690
|
])]),
|
|
1660
1691
|
_: 1
|
|
1661
1692
|
}, 8, [
|
|
@@ -1664,11 +1695,11 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1664
1695
|
"read-only"
|
|
1665
1696
|
]));
|
|
1666
1697
|
}
|
|
1667
|
-
}),
|
|
1698
|
+
}), Oi = [
|
|
1668
1699
|
"value",
|
|
1669
1700
|
"disabled",
|
|
1670
1701
|
"title"
|
|
1671
|
-
],
|
|
1702
|
+
], ki = ["value"], Ai = /* @__PURE__ */ m({
|
|
1672
1703
|
__name: "SelectField",
|
|
1673
1704
|
props: {
|
|
1674
1705
|
field: {},
|
|
@@ -1677,14 +1708,14 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1677
1708
|
},
|
|
1678
1709
|
emits: ["update:modelValue"],
|
|
1679
1710
|
setup(t, { emit: n }) {
|
|
1680
|
-
let r = n, { t: i } =
|
|
1681
|
-
return (n, a) => (e(), C(
|
|
1711
|
+
let r = n, { t: i } = H();
|
|
1712
|
+
return (n, a) => (e(), C(hi, {
|
|
1682
1713
|
label: t.field.label,
|
|
1683
1714
|
required: t.field.required,
|
|
1684
1715
|
"read-only": t.readOnly
|
|
1685
1716
|
}, {
|
|
1686
1717
|
default: M(() => [_("select", {
|
|
1687
|
-
class: p([T(
|
|
1718
|
+
class: p([T(W), t.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1688
1719
|
value: t.modelValue,
|
|
1689
1720
|
disabled: t.readOnly,
|
|
1690
1721
|
title: t.readOnly ? T(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
@@ -1692,7 +1723,7 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1692
1723
|
}, [(e(!0), v(y, null, o(t.field.options, (t) => (e(), v("option", {
|
|
1693
1724
|
key: t.value,
|
|
1694
1725
|
value: t.value
|
|
1695
|
-
}, D(t.label), 9,
|
|
1726
|
+
}, D(t.label), 9, ki))), 128))], 42, Oi)]),
|
|
1696
1727
|
_: 1
|
|
1697
1728
|
}, 8, [
|
|
1698
1729
|
"label",
|
|
@@ -1700,11 +1731,11 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1700
1731
|
"read-only"
|
|
1701
1732
|
]));
|
|
1702
1733
|
}
|
|
1703
|
-
}),
|
|
1734
|
+
}), ji = [
|
|
1704
1735
|
"value",
|
|
1705
1736
|
"placeholder",
|
|
1706
1737
|
"title"
|
|
1707
|
-
],
|
|
1738
|
+
], Mi = /* @__PURE__ */ m({
|
|
1708
1739
|
__name: "TextField",
|
|
1709
1740
|
props: {
|
|
1710
1741
|
field: {},
|
|
@@ -1713,8 +1744,8 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1713
1744
|
},
|
|
1714
1745
|
emits: ["update:modelValue"],
|
|
1715
1746
|
setup(t, { emit: n }) {
|
|
1716
|
-
let r = n, { t: i } =
|
|
1717
|
-
return (n, a) => (e(), C(
|
|
1747
|
+
let r = n, { t: i } = H();
|
|
1748
|
+
return (n, a) => (e(), C(hi, {
|
|
1718
1749
|
label: t.field.label,
|
|
1719
1750
|
required: t.field.required,
|
|
1720
1751
|
"read-only": t.readOnly
|
|
@@ -1722,12 +1753,12 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1722
1753
|
default: M(() => [t.readOnly ? (e(), v("input", {
|
|
1723
1754
|
key: 0,
|
|
1724
1755
|
type: "text",
|
|
1725
|
-
class: p([T(
|
|
1756
|
+
class: p([T(W), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1726
1757
|
value: t.modelValue,
|
|
1727
1758
|
placeholder: t.field.placeholder,
|
|
1728
1759
|
disabled: "",
|
|
1729
1760
|
title: T(i).customBlocks.dataSource.readOnlyTooltip
|
|
1730
|
-
}, null, 10,
|
|
1761
|
+
}, null, 10, ji)) : (e(), C(Q, {
|
|
1731
1762
|
key: 1,
|
|
1732
1763
|
"model-value": t.modelValue,
|
|
1733
1764
|
placeholder: t.field.placeholder,
|
|
@@ -1740,12 +1771,12 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1740
1771
|
"read-only"
|
|
1741
1772
|
]));
|
|
1742
1773
|
}
|
|
1743
|
-
}),
|
|
1774
|
+
}), Ni = [
|
|
1744
1775
|
"value",
|
|
1745
1776
|
"placeholder",
|
|
1746
1777
|
"title"
|
|
1747
|
-
],
|
|
1748
|
-
text:
|
|
1778
|
+
], Pi = "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", Fi = {
|
|
1779
|
+
text: Mi,
|
|
1749
1780
|
textarea: /* @__PURE__ */ m({
|
|
1750
1781
|
__name: "TextareaField",
|
|
1751
1782
|
props: {
|
|
@@ -1755,8 +1786,8 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1755
1786
|
},
|
|
1756
1787
|
emits: ["update:modelValue"],
|
|
1757
1788
|
setup(t, { emit: n }) {
|
|
1758
|
-
let r = n, { t: i } =
|
|
1759
|
-
return (n, a) => (e(), C(
|
|
1789
|
+
let r = n, { t: i } = H();
|
|
1790
|
+
return (n, a) => (e(), C(hi, {
|
|
1760
1791
|
label: t.field.label,
|
|
1761
1792
|
required: t.field.required,
|
|
1762
1793
|
"read-only": t.readOnly
|
|
@@ -1768,8 +1799,8 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1768
1799
|
rows: "3",
|
|
1769
1800
|
disabled: "",
|
|
1770
1801
|
title: T(i).customBlocks.dataSource.readOnlyTooltip,
|
|
1771
|
-
class: p(
|
|
1772
|
-
}, null, 8,
|
|
1802
|
+
class: p(Pi)
|
|
1803
|
+
}, null, 8, Ni)) : (e(), C(xn, {
|
|
1773
1804
|
key: 1,
|
|
1774
1805
|
"model-value": t.modelValue,
|
|
1775
1806
|
placeholder: t.field.placeholder,
|
|
@@ -1783,42 +1814,42 @@ var rn = ["aria-label", "onKeydown"], an = ["data-tooltip"], on = ["data-tooltip
|
|
|
1783
1814
|
]));
|
|
1784
1815
|
}
|
|
1785
1816
|
}),
|
|
1786
|
-
image:
|
|
1787
|
-
color:
|
|
1788
|
-
number:
|
|
1789
|
-
select:
|
|
1790
|
-
boolean:
|
|
1791
|
-
repeatable:
|
|
1817
|
+
image: yi,
|
|
1818
|
+
color: gi,
|
|
1819
|
+
number: xi,
|
|
1820
|
+
select: Ai,
|
|
1821
|
+
boolean: fi,
|
|
1822
|
+
repeatable: Di
|
|
1792
1823
|
};
|
|
1793
|
-
function
|
|
1794
|
-
return
|
|
1824
|
+
function Ii(e) {
|
|
1825
|
+
return Fi[e] ?? Mi;
|
|
1795
1826
|
}
|
|
1796
1827
|
//#endregion
|
|
1797
1828
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1798
|
-
var
|
|
1829
|
+
var Li = {
|
|
1799
1830
|
key: 0,
|
|
1800
1831
|
class: "tpl:p-4"
|
|
1801
|
-
},
|
|
1832
|
+
}, Ri = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, zi = { key: 1 }, Bi = {
|
|
1802
1833
|
key: 0,
|
|
1803
1834
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1804
|
-
},
|
|
1835
|
+
}, Vi = {
|
|
1805
1836
|
key: 1,
|
|
1806
1837
|
class: "tpl:mb-4"
|
|
1807
|
-
},
|
|
1838
|
+
}, Hi = {
|
|
1808
1839
|
key: 1,
|
|
1809
1840
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1810
|
-
},
|
|
1841
|
+
}, Ui = {
|
|
1811
1842
|
key: 0,
|
|
1812
1843
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1813
|
-
},
|
|
1844
|
+
}, Wi = {
|
|
1814
1845
|
key: 2,
|
|
1815
1846
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1816
|
-
},
|
|
1847
|
+
}, Gi = /* @__PURE__ */ m({
|
|
1817
1848
|
__name: "CustomBlockToolbar",
|
|
1818
1849
|
props: { block: {} },
|
|
1819
1850
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1820
1851
|
setup(t, { emit: n }) {
|
|
1821
|
-
let i = t, a = n, { t: s } =
|
|
1852
|
+
let i = t, a = n, { t: s } = H(), c = A(Pe, []), l = g(() => c.find((e) => e.type === i.block.customType)), { isFetching: u, fetchError: f, fetch: p, hasDataSource: m, needsFetch: h } = ne({
|
|
1822
1853
|
definition: l,
|
|
1823
1854
|
block: g(() => i.block),
|
|
1824
1855
|
onUpdate: (e, t) => {
|
|
@@ -1834,23 +1865,23 @@ var Pi = {
|
|
|
1834
1865
|
[e]: t
|
|
1835
1866
|
});
|
|
1836
1867
|
}
|
|
1837
|
-
return (n, i) => l.value ? (e(), v("div",
|
|
1838
|
-
l.value.description ? (e(), v("p",
|
|
1839
|
-
T(m) ? (e(), v("div",
|
|
1868
|
+
return (n, i) => l.value ? (e(), v("div", zi, [
|
|
1869
|
+
l.value.description ? (e(), v("p", Bi, D(l.value.description), 1)) : b("", !0),
|
|
1870
|
+
T(m) ? (e(), v("div", Vi, [T(h) && !T(u) ? (e(), v("button", {
|
|
1840
1871
|
key: 0,
|
|
1841
1872
|
type: "button",
|
|
1842
1873
|
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)]",
|
|
1843
1874
|
onClick: i[0] ||= (...e) => T(p) && T(p)(...e)
|
|
1844
|
-
}, D(l.value?.dataSource?.label || T(s).customBlocks.dataSource.fetchButton), 1)) : (e(), v("div",
|
|
1875
|
+
}, D(l.value?.dataSource?.label || T(s).customBlocks.dataSource.fetchButton), 1)) : (e(), v("div", Hi, [T(u) ? (e(), v("div", Ui, D(T(s).customBlocks.dataSource.fetching), 1)) : (e(), v("button", {
|
|
1845
1876
|
key: 1,
|
|
1846
1877
|
type: "button",
|
|
1847
1878
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
|
|
1848
1879
|
onClick: i[1] ||= (...e) => T(p) && T(p)(...e)
|
|
1849
|
-
}, [k(T(
|
|
1880
|
+
}, [k(T(Qe), { size: 12 }), d(" " + D(T(s).customBlocks.dataSource.changeButton), 1)]))])), T(f) ? (e(), v("p", Wi, [k(T(Ke), {
|
|
1850
1881
|
size: 14,
|
|
1851
1882
|
class: "tpl:shrink-0"
|
|
1852
1883
|
}), d(" " + D(T(s).customBlocks.dataSource.fetchError), 1)])) : b("", !0)])) : b("", !0),
|
|
1853
|
-
(e(!0), v(y, null, o(l.value.fields, (n) => (e(), C(r(T(
|
|
1884
|
+
(e(!0), v(y, null, o(l.value.fields, (n) => (e(), C(r(T(Ii)(n.type)), {
|
|
1854
1885
|
key: n.key,
|
|
1855
1886
|
field: n,
|
|
1856
1887
|
"model-value": t.block.fieldValues[n.key],
|
|
@@ -1862,19 +1893,19 @@ var Pi = {
|
|
|
1862
1893
|
"read-only",
|
|
1863
1894
|
"onUpdate:modelValue"
|
|
1864
1895
|
]))), 128))
|
|
1865
|
-
])) : (e(), v("div",
|
|
1896
|
+
])) : (e(), v("div", Li, [_("p", Ri, D(T(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
1866
1897
|
}
|
|
1867
|
-
}),
|
|
1898
|
+
}), Ki = { class: "tpl:mb-3.5" }, qi = { class: "tpl:mb-3.5" }, Ji = { class: "tpl:mb-3.5" }, Yi = { class: "tpl:flex tpl:items-stretch" }, Xi = ["value"], Zi = /* @__PURE__ */ m({
|
|
1868
1899
|
__name: "DividerToolbar",
|
|
1869
1900
|
props: { block: {} },
|
|
1870
1901
|
emits: ["update"],
|
|
1871
1902
|
setup(t, { emit: n }) {
|
|
1872
|
-
let r = n, { t: i } =
|
|
1903
|
+
let r = n, { t: i } = H();
|
|
1873
1904
|
function a(e, t) {
|
|
1874
1905
|
r("update", { [e]: t });
|
|
1875
1906
|
}
|
|
1876
1907
|
return (n, r) => (e(), v(y, null, [
|
|
1877
|
-
_("div",
|
|
1908
|
+
_("div", Ki, [_("label", { class: p(T(G)) }, D(T(i).divider.style), 3), k(X, {
|
|
1878
1909
|
options: [
|
|
1879
1910
|
{
|
|
1880
1911
|
value: "solid",
|
|
@@ -1892,53 +1923,53 @@ var Pi = {
|
|
|
1892
1923
|
"model-value": t.block.lineStyle,
|
|
1893
1924
|
"onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
|
|
1894
1925
|
}, null, 8, ["options", "model-value"])]),
|
|
1895
|
-
_("div",
|
|
1926
|
+
_("div", qi, [_("label", { class: p(T(G)) }, D(T(i).divider.color), 3), k(J, {
|
|
1896
1927
|
"model-value": t.block.color,
|
|
1897
1928
|
"onUpdate:modelValue": r[1] ||= (e) => a("color", e)
|
|
1898
1929
|
}, null, 8, ["model-value"])]),
|
|
1899
|
-
_("div",
|
|
1930
|
+
_("div", Ji, [_("label", { class: p(T(G)) }, D(T(i).divider.thickness), 3), _("div", Yi, [_("input", {
|
|
1900
1931
|
type: "number",
|
|
1901
|
-
class: p(T(
|
|
1932
|
+
class: p(T(q)),
|
|
1902
1933
|
value: t.block.thickness,
|
|
1903
1934
|
min: "1",
|
|
1904
1935
|
max: "10",
|
|
1905
1936
|
onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
|
|
1906
|
-
}, null, 42,
|
|
1937
|
+
}, null, 42, Xi), _("span", { class: p(T(K)) }, "px", 2)])])
|
|
1907
1938
|
], 64));
|
|
1908
1939
|
}
|
|
1909
|
-
}),
|
|
1940
|
+
}), Qi = { class: "tpl:mb-3.5" }, $i = ["value"], ea = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, ta = /* @__PURE__ */ m({
|
|
1910
1941
|
__name: "HtmlToolbar",
|
|
1911
1942
|
props: { block: {} },
|
|
1912
1943
|
emits: ["update"],
|
|
1913
1944
|
setup(t, { emit: n }) {
|
|
1914
|
-
let r = n, { t: i } =
|
|
1915
|
-
return (n, a) => (e(), v("div",
|
|
1916
|
-
_("label", { class: p(T(
|
|
1945
|
+
let r = n, { t: i } = H();
|
|
1946
|
+
return (n, a) => (e(), v("div", Qi, [
|
|
1947
|
+
_("label", { class: p(T(G)) }, D(T(i).html.content), 3),
|
|
1917
1948
|
_("textarea", {
|
|
1918
1949
|
value: t.block.content,
|
|
1919
1950
|
placeholder: "<div>...</div>",
|
|
1920
1951
|
rows: "10",
|
|
1921
|
-
class: p(T(
|
|
1952
|
+
class: p(T(_t)),
|
|
1922
1953
|
onInput: a[0] ||= (e) => r("update", { content: e.target.value })
|
|
1923
|
-
}, null, 42,
|
|
1924
|
-
_("p",
|
|
1954
|
+
}, null, 42, $i),
|
|
1955
|
+
_("p", ea, [k(T(et), {
|
|
1925
1956
|
size: 12,
|
|
1926
1957
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1927
1958
|
}), d(" " + D(T(i).html.sanitizationHint), 1)])
|
|
1928
1959
|
]));
|
|
1929
1960
|
}
|
|
1930
|
-
}),
|
|
1961
|
+
}), na = { class: "tpl:mb-3.5" }, ra = {
|
|
1931
1962
|
key: 0,
|
|
1932
1963
|
class: "tpl:mb-3.5"
|
|
1933
|
-
},
|
|
1964
|
+
}, ia = ["value", "placeholder"], aa = { class: "tpl:mb-3.5" }, oa = { class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]" }, sa = ["checked"], ca = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, la = { class: "tpl:mb-3.5" }, ua = ["value"], da = { value: "full" }, fa = { class: "tpl:mb-3.5" }, pa = { class: "tpl:mb-3.5" }, ma = {
|
|
1934
1965
|
key: 0,
|
|
1935
1966
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
1936
|
-
},
|
|
1967
|
+
}, ha = ["checked"], ga = /* @__PURE__ */ m({
|
|
1937
1968
|
__name: "ImageToolbar",
|
|
1938
1969
|
props: { block: {} },
|
|
1939
1970
|
emits: ["update"],
|
|
1940
1971
|
setup(t, { emit: n }) {
|
|
1941
|
-
let r = n, { t: i } =
|
|
1972
|
+
let r = n, { t: i } = H(), a = A(Oe, null), o = A(je, z.liquid), s = ft(), c = g(() => !!a), l = u(!1), f = u(!1), { start: m } = Ee(() => {
|
|
1942
1973
|
l.value = !1;
|
|
1943
1974
|
}, 1e3, { immediate: !1 });
|
|
1944
1975
|
function h(e, t) {
|
|
@@ -1949,9 +1980,9 @@ var Pi = {
|
|
|
1949
1980
|
s.alive && e && (h("src", e.url), e.alt && (h("alt", e.alt), f.value = !0), l.value = !0, m());
|
|
1950
1981
|
}
|
|
1951
1982
|
return (n, r) => (e(), v(y, null, [
|
|
1952
|
-
_("div",
|
|
1953
|
-
_("label", { class: p(T(
|
|
1954
|
-
k(
|
|
1983
|
+
_("div", na, [
|
|
1984
|
+
_("label", { class: p(T(G)) }, D(T(i).image.imageUrl), 3),
|
|
1985
|
+
k(Q, {
|
|
1955
1986
|
"model-value": t.block.src,
|
|
1956
1987
|
type: "url",
|
|
1957
1988
|
placeholder: T(i).image.imageUrlPlaceholder,
|
|
@@ -1976,16 +2007,16 @@ var Pi = {
|
|
|
1976
2007
|
"stroke-width": 1.5
|
|
1977
2008
|
}), d(" " + D(T(i).image.browseMedia), 1)])) : b("", !0)
|
|
1978
2009
|
]),
|
|
1979
|
-
T(L)(t.block.src, T(o)) ? (e(), v("div",
|
|
2010
|
+
T(L)(t.block.src, T(o)) ? (e(), v("div", ra, [_("label", { class: p(T(G)) }, [d(D(T(i).image.placeholderUrl) + " ", 1), r[8] ||= _("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, D("(optional)"), -1)], 2), _("input", {
|
|
1980
2011
|
type: "url",
|
|
1981
|
-
class: p(T(
|
|
2012
|
+
class: p(T(W)),
|
|
1982
2013
|
value: t.block.placeholderUrl || "",
|
|
1983
2014
|
placeholder: T(i).image.placeholderUrlPlaceholder,
|
|
1984
2015
|
onInput: r[1] ||= (e) => h("placeholderUrl", e.target.value)
|
|
1985
|
-
}, null, 42,
|
|
1986
|
-
_("div",
|
|
1987
|
-
_("label", { class: p(T(
|
|
1988
|
-
k(
|
|
2016
|
+
}, null, 42, ia)])) : b("", !0),
|
|
2017
|
+
_("div", aa, [
|
|
2018
|
+
_("label", { class: p(T(G)) }, D(T(i).image.altText), 3),
|
|
2019
|
+
k(Q, {
|
|
1989
2020
|
"model-value": t.block.alt,
|
|
1990
2021
|
type: "text",
|
|
1991
2022
|
placeholder: T(i).image.altTextPlaceholder,
|
|
@@ -1998,24 +2029,24 @@ var Pi = {
|
|
|
1998
2029
|
"pulse",
|
|
1999
2030
|
"disabled"
|
|
2000
2031
|
]),
|
|
2001
|
-
_("label",
|
|
2032
|
+
_("label", oa, [_("input", {
|
|
2002
2033
|
type: "checkbox",
|
|
2003
2034
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2004
2035
|
checked: t.block.decorative === !0,
|
|
2005
2036
|
onChange: r[3] ||= (e) => h("decorative", e.target.checked)
|
|
2006
|
-
}, null, 40,
|
|
2037
|
+
}, null, 40, sa), _("span", null, [d(D(T(i).image.decorative) + " ", 1), _("span", ca, D(T(i).image.decorativeHint), 1)])])
|
|
2007
2038
|
]),
|
|
2008
|
-
_("div",
|
|
2009
|
-
class: p(T(
|
|
2039
|
+
_("div", la, [_("label", { class: p(T(G)) }, D(T(i).image.width), 3), _("select", {
|
|
2040
|
+
class: p(T(W)),
|
|
2010
2041
|
value: t.block.width,
|
|
2011
2042
|
onChange: r[4] ||= (e) => h("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
2012
2043
|
}, [
|
|
2013
|
-
_("option",
|
|
2044
|
+
_("option", da, D(T(i).image.fullWidth), 1),
|
|
2014
2045
|
r[9] ||= _("option", { value: "300" }, "300px", -1),
|
|
2015
2046
|
r[10] ||= _("option", { value: "400" }, "400px", -1),
|
|
2016
2047
|
r[11] ||= _("option", { value: "500" }, "500px", -1)
|
|
2017
|
-
], 42,
|
|
2018
|
-
_("div",
|
|
2048
|
+
], 42, ua)]),
|
|
2049
|
+
_("div", fa, [_("label", { class: p(T(G)) }, D(T(i).title.align), 3), k(X, {
|
|
2019
2050
|
options: [
|
|
2020
2051
|
{
|
|
2021
2052
|
value: "left",
|
|
@@ -2033,28 +2064,28 @@ var Pi = {
|
|
|
2033
2064
|
"model-value": t.block.align,
|
|
2034
2065
|
"onUpdate:modelValue": r[5] ||= (e) => h("align", e)
|
|
2035
2066
|
}, null, 8, ["options", "model-value"])]),
|
|
2036
|
-
_("div",
|
|
2037
|
-
_("label", { class: p(T(
|
|
2038
|
-
k(
|
|
2067
|
+
_("div", pa, [
|
|
2068
|
+
_("label", { class: p(T(G)) }, D(T(i).image.linkUrl), 3),
|
|
2069
|
+
k(Q, {
|
|
2039
2070
|
"model-value": t.block.linkUrl || "",
|
|
2040
2071
|
type: "url",
|
|
2041
2072
|
placeholder: T(i).image.imageUrlPlaceholder,
|
|
2042
2073
|
"onUpdate:modelValue": r[6] ||= (e) => h("linkUrl", e)
|
|
2043
2074
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2044
|
-
t.block.linkUrl ? (e(), v("label",
|
|
2075
|
+
t.block.linkUrl ? (e(), v("label", ma, [_("input", {
|
|
2045
2076
|
type: "checkbox",
|
|
2046
2077
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2047
2078
|
checked: t.block.linkOpenInNewTab ?? !1,
|
|
2048
2079
|
onChange: r[7] ||= (e) => h("linkOpenInNewTab", e.target.checked)
|
|
2049
|
-
}, null, 40,
|
|
2080
|
+
}, null, 40, ha), d(" " + D(T(i).image.openInNewTab), 1)])) : b("", !0)
|
|
2050
2081
|
])
|
|
2051
2082
|
], 64));
|
|
2052
2083
|
}
|
|
2053
|
-
}),
|
|
2084
|
+
}), _a = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, va = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ya = [
|
|
2054
2085
|
"value",
|
|
2055
2086
|
"placeholder",
|
|
2056
2087
|
"onInput"
|
|
2057
|
-
],
|
|
2088
|
+
], ba = ["title", "onClick"], xa = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Sa = ["checked", "onChange"], Ca = { class: "tpl:flex tpl:items-center tpl:gap-2" }, wa = ["value"], Ta = { value: "" }, Ea = ["value"], Da = ["value"], Oa = /* @__PURE__ */ m({
|
|
2058
2089
|
__name: "MenuToolbar",
|
|
2059
2090
|
props: {
|
|
2060
2091
|
block: {},
|
|
@@ -2062,7 +2093,7 @@ var Pi = {
|
|
|
2062
2093
|
},
|
|
2063
2094
|
emits: ["update"],
|
|
2064
2095
|
setup(t, { emit: n }) {
|
|
2065
|
-
let r = t, i = n, { t: a } =
|
|
2096
|
+
let r = t, i = n, { t: a } = H(), s = g(() => [
|
|
2066
2097
|
{
|
|
2067
2098
|
key: "openInNewTab",
|
|
2068
2099
|
label: a.menu.openInNewTab
|
|
@@ -2079,17 +2110,17 @@ var Pi = {
|
|
|
2079
2110
|
{
|
|
2080
2111
|
value: "left",
|
|
2081
2112
|
label: a.title.alignLeft,
|
|
2082
|
-
icon:
|
|
2113
|
+
icon: ot
|
|
2083
2114
|
},
|
|
2084
2115
|
{
|
|
2085
2116
|
value: "center",
|
|
2086
2117
|
label: a.title.alignCenter,
|
|
2087
|
-
icon:
|
|
2118
|
+
icon: at
|
|
2088
2119
|
},
|
|
2089
2120
|
{
|
|
2090
2121
|
value: "right",
|
|
2091
2122
|
label: a.title.alignRight,
|
|
2092
|
-
icon:
|
|
2123
|
+
icon: it
|
|
2093
2124
|
}
|
|
2094
2125
|
]);
|
|
2095
2126
|
function l(e, t) {
|
|
@@ -2116,26 +2147,26 @@ var Pi = {
|
|
|
2116
2147
|
i("update", { items: r.block.items.filter((t) => t.id !== e) });
|
|
2117
2148
|
}
|
|
2118
2149
|
return (n, r) => (e(), v(y, null, [
|
|
2119
|
-
k(
|
|
2120
|
-
default: M(() => [_("div",
|
|
2150
|
+
k(Y, { label: T(a).menu.items }, {
|
|
2151
|
+
default: M(() => [_("div", _a, [(e(!0), v(y, null, o(t.block.items, (n) => (e(), v("div", {
|
|
2121
2152
|
key: n.id,
|
|
2122
2153
|
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"
|
|
2123
2154
|
}, [
|
|
2124
|
-
_("div",
|
|
2155
|
+
_("div", va, [_("input", {
|
|
2125
2156
|
type: "text",
|
|
2126
|
-
class: p([T(
|
|
2157
|
+
class: p([T(W), "tpl:flex-1"]),
|
|
2127
2158
|
value: n.text,
|
|
2128
2159
|
placeholder: T(a).menu.text,
|
|
2129
2160
|
onInput: (e) => f(n.id, "text", e.target.value)
|
|
2130
|
-
}, null, 42,
|
|
2131
|
-
class: p(T(
|
|
2161
|
+
}, null, 42, ya), _("button", {
|
|
2162
|
+
class: p(T(ht)),
|
|
2132
2163
|
title: T(a).menu.removeItem,
|
|
2133
2164
|
onClick: (e) => m(n.id)
|
|
2134
|
-
}, [k(T(
|
|
2165
|
+
}, [k(T(ct), {
|
|
2135
2166
|
size: 14,
|
|
2136
2167
|
"stroke-width": 2
|
|
2137
|
-
})], 10,
|
|
2138
|
-
k(
|
|
2168
|
+
})], 10, ba)]),
|
|
2169
|
+
k(Q, {
|
|
2139
2170
|
"model-value": n.url,
|
|
2140
2171
|
type: "url",
|
|
2141
2172
|
placeholder: T(a).menu.urlPlaceholder,
|
|
@@ -2145,7 +2176,7 @@ var Pi = {
|
|
|
2145
2176
|
"placeholder",
|
|
2146
2177
|
"onUpdate:modelValue"
|
|
2147
2178
|
]),
|
|
2148
|
-
_("div",
|
|
2179
|
+
_("div", xa, [(e(!0), v(y, null, o(s.value, (t) => (e(), v("label", {
|
|
2149
2180
|
key: t.key,
|
|
2150
2181
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1"
|
|
2151
2182
|
}, [_("input", {
|
|
@@ -2153,34 +2184,34 @@ var Pi = {
|
|
|
2153
2184
|
checked: n[t.key],
|
|
2154
2185
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2155
2186
|
onChange: (e) => f(n.id, t.key, e.target.checked)
|
|
2156
|
-
}, null, 40,
|
|
2157
|
-
_("div",
|
|
2187
|
+
}, null, 40, Sa), d(" " + D(t.label), 1)]))), 128))]),
|
|
2188
|
+
_("div", Ca, [_("label", { class: p([T(G), "tpl:!mb-0"]) }, D(T(a).menu.color), 3), k(J, {
|
|
2158
2189
|
"swatch-only": "",
|
|
2159
2190
|
"model-value": n.color || t.block.linkColor || t.block.color,
|
|
2160
2191
|
"onUpdate:modelValue": (e) => f(n.id, "color", e)
|
|
2161
2192
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2162
2193
|
]))), 128)), _("button", {
|
|
2163
|
-
class: p(T(
|
|
2194
|
+
class: p(T(gt)),
|
|
2164
2195
|
onClick: u
|
|
2165
|
-
}, [k(T(
|
|
2196
|
+
}, [k(T(Z), {
|
|
2166
2197
|
size: 14,
|
|
2167
2198
|
"stroke-width": 2
|
|
2168
2199
|
}), d(" " + D(T(a).menu.addItem), 1)], 2)])]),
|
|
2169
2200
|
_: 1
|
|
2170
2201
|
}, 8, ["label"]),
|
|
2171
|
-
k(
|
|
2202
|
+
k(Y, { label: T(a).menu.fontFamily }, {
|
|
2172
2203
|
default: M(() => [_("select", {
|
|
2173
|
-
class: p(T(
|
|
2204
|
+
class: p(T(W)),
|
|
2174
2205
|
value: t.block.fontFamily || "",
|
|
2175
2206
|
onChange: r[0] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
2176
|
-
}, [_("option",
|
|
2207
|
+
}, [_("option", Ta, D(T(a).title.inheritFont), 1), (e(!0), v(y, null, o(t.fontFamilies, (t) => (e(), v("option", {
|
|
2177
2208
|
key: t.value,
|
|
2178
2209
|
value: t.value
|
|
2179
|
-
}, D(t.label), 9,
|
|
2210
|
+
}, D(t.label), 9, Ea))), 128))], 42, wa)]),
|
|
2180
2211
|
_: 1
|
|
2181
2212
|
}, 8, ["label"]),
|
|
2182
|
-
k(
|
|
2183
|
-
default: M(() => [k(
|
|
2213
|
+
k(Y, { label: T(a).menu.fontSize }, {
|
|
2214
|
+
default: M(() => [k(bt, {
|
|
2184
2215
|
"model-value": t.block.fontSize,
|
|
2185
2216
|
min: 8,
|
|
2186
2217
|
max: 48,
|
|
@@ -2189,46 +2220,46 @@ var Pi = {
|
|
|
2189
2220
|
}, null, 8, ["model-value"])]),
|
|
2190
2221
|
_: 1
|
|
2191
2222
|
}, 8, ["label"]),
|
|
2192
|
-
k(
|
|
2193
|
-
default: M(() => [k(
|
|
2223
|
+
k(Y, { label: T(a).menu.color }, {
|
|
2224
|
+
default: M(() => [k(J, {
|
|
2194
2225
|
"model-value": t.block.color,
|
|
2195
2226
|
"onUpdate:modelValue": r[2] ||= (e) => l("color", e)
|
|
2196
2227
|
}, null, 8, ["model-value"])]),
|
|
2197
2228
|
_: 1
|
|
2198
2229
|
}, 8, ["label"]),
|
|
2199
|
-
k(
|
|
2200
|
-
default: M(() => [k(
|
|
2230
|
+
k(Y, { label: T(a).menu.linkColor }, {
|
|
2231
|
+
default: M(() => [k(J, {
|
|
2201
2232
|
"model-value": t.block.linkColor || t.block.color,
|
|
2202
2233
|
"onUpdate:modelValue": r[3] ||= (e) => l("linkColor", e || void 0)
|
|
2203
2234
|
}, null, 8, ["model-value"])]),
|
|
2204
2235
|
_: 1
|
|
2205
2236
|
}, 8, ["label"]),
|
|
2206
|
-
k(
|
|
2207
|
-
default: M(() => [k(
|
|
2237
|
+
k(Y, { label: T(a).menu.textAlign }, {
|
|
2238
|
+
default: M(() => [k(X, {
|
|
2208
2239
|
options: c.value,
|
|
2209
2240
|
"model-value": t.block.textAlign,
|
|
2210
2241
|
"onUpdate:modelValue": r[4] ||= (e) => l("textAlign", e)
|
|
2211
2242
|
}, null, 8, ["options", "model-value"])]),
|
|
2212
2243
|
_: 1
|
|
2213
2244
|
}, 8, ["label"]),
|
|
2214
|
-
k(
|
|
2245
|
+
k(Y, { label: T(a).menu.separator }, {
|
|
2215
2246
|
default: M(() => [_("input", {
|
|
2216
2247
|
type: "text",
|
|
2217
|
-
class: p(T(
|
|
2248
|
+
class: p(T(W)),
|
|
2218
2249
|
value: t.block.separator,
|
|
2219
2250
|
onInput: r[5] ||= (e) => l("separator", e.target.value)
|
|
2220
|
-
}, null, 42,
|
|
2251
|
+
}, null, 42, Da)]),
|
|
2221
2252
|
_: 1
|
|
2222
2253
|
}, 8, ["label"]),
|
|
2223
|
-
k(
|
|
2224
|
-
default: M(() => [k(
|
|
2254
|
+
k(Y, { label: T(a).menu.separatorColor }, {
|
|
2255
|
+
default: M(() => [k(J, {
|
|
2225
2256
|
"model-value": t.block.separatorColor,
|
|
2226
2257
|
"onUpdate:modelValue": r[6] ||= (e) => l("separatorColor", e)
|
|
2227
2258
|
}, null, 8, ["model-value"])]),
|
|
2228
2259
|
_: 1
|
|
2229
2260
|
}, 8, ["label"]),
|
|
2230
|
-
k(
|
|
2231
|
-
default: M(() => [k(
|
|
2261
|
+
k(Y, { label: T(a).menu.spacing }, {
|
|
2262
|
+
default: M(() => [k(bt, {
|
|
2232
2263
|
"model-value": t.block.spacing,
|
|
2233
2264
|
min: 0,
|
|
2234
2265
|
max: 50,
|
|
@@ -2242,11 +2273,11 @@ var Pi = {
|
|
|
2242
2273
|
});
|
|
2243
2274
|
//#endregion
|
|
2244
2275
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
2245
|
-
function
|
|
2276
|
+
function ka(e) {
|
|
2246
2277
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
2247
2278
|
}
|
|
2248
|
-
function
|
|
2249
|
-
let n =
|
|
2279
|
+
function Aa(e, t) {
|
|
2280
|
+
let n = ka(t);
|
|
2250
2281
|
if (e.length === n) return e;
|
|
2251
2282
|
if (e.length < n) {
|
|
2252
2283
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2257,12 +2288,12 @@ function Da(e, t) {
|
|
|
2257
2288
|
}
|
|
2258
2289
|
//#endregion
|
|
2259
2290
|
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2260
|
-
var
|
|
2291
|
+
var ja = { class: "tpl:mb-3.5" }, Ma = ["value"], Na = ["value"], Pa = /* @__PURE__ */ m({
|
|
2261
2292
|
__name: "SectionToolbar",
|
|
2262
2293
|
props: { block: {} },
|
|
2263
2294
|
emits: ["update"],
|
|
2264
2295
|
setup(t, { emit: n }) {
|
|
2265
|
-
let r = t, i = n, { t: a } =
|
|
2296
|
+
let r = t, i = n, { t: a } = H(), s = g(() => [
|
|
2266
2297
|
{
|
|
2267
2298
|
value: "1",
|
|
2268
2299
|
label: a.section.column1
|
|
@@ -2288,24 +2319,24 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2288
2319
|
let t = e.target.value;
|
|
2289
2320
|
i("update", {
|
|
2290
2321
|
columns: t,
|
|
2291
|
-
children:
|
|
2322
|
+
children: Aa(r.block.children, t)
|
|
2292
2323
|
});
|
|
2293
2324
|
}
|
|
2294
|
-
return (n, r) => (e(), v("div",
|
|
2295
|
-
class: p(T(
|
|
2325
|
+
return (n, r) => (e(), v("div", ja, [_("label", { class: p(T(G)) }, D(T(a).section.columns), 3), _("select", {
|
|
2326
|
+
class: p(T(W)),
|
|
2296
2327
|
value: t.block.columns,
|
|
2297
2328
|
onChange: c
|
|
2298
2329
|
}, [(e(!0), v(y, null, o(s.value, (t) => (e(), v("option", {
|
|
2299
2330
|
key: t.value,
|
|
2300
2331
|
value: t.value
|
|
2301
|
-
}, D(t.label), 9,
|
|
2332
|
+
}, D(t.label), 9, Na))), 128))], 42, Ma)]));
|
|
2302
2333
|
}
|
|
2303
|
-
}),
|
|
2334
|
+
}), Fa = { class: "tpl:mb-3.5" }, Ia = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, La = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ra = ["value", "onChange"], za = ["value"], Ba = ["title", "onClick"], Va = { class: "tpl:mb-3.5" }, Ha = ["value"], Ua = { value: "solid" }, Wa = { value: "outlined" }, Ga = { value: "rounded" }, Ka = { value: "square" }, qa = { value: "circle" }, Ja = { class: "tpl:mb-3.5" }, Ya = { class: "tpl:mb-3.5" }, Xa = { class: "tpl:flex tpl:items-stretch" }, Za = ["value"], Qa = { class: "tpl:mb-3.5" }, $a = /* @__PURE__ */ m({
|
|
2304
2335
|
__name: "SocialToolbar",
|
|
2305
2336
|
props: { block: {} },
|
|
2306
2337
|
emits: ["update"],
|
|
2307
2338
|
setup(t, { emit: n }) {
|
|
2308
|
-
let r = t, i = n, { t: a } =
|
|
2339
|
+
let r = t, i = n, { t: a } = H();
|
|
2309
2340
|
function s(e, t) {
|
|
2310
2341
|
i("update", { [e]: t });
|
|
2311
2342
|
}
|
|
@@ -2327,25 +2358,25 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2327
2358
|
i("update", { icons: r.block.icons.filter((t) => t.id !== e) });
|
|
2328
2359
|
}
|
|
2329
2360
|
return (n, r) => (e(), v(y, null, [
|
|
2330
|
-
_("div",
|
|
2361
|
+
_("div", Fa, [_("label", { class: p(T(G)) }, D(T(a).social.icons), 3), _("div", Ia, [(e(!0), v(y, null, o(t.block.icons, (t) => (e(), v("div", {
|
|
2331
2362
|
key: t.id,
|
|
2332
2363
|
class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
|
|
2333
|
-
}, [_("div",
|
|
2364
|
+
}, [_("div", La, [_("select", {
|
|
2334
2365
|
"data-testid": "social-platform-select",
|
|
2335
|
-
class: p([T(
|
|
2366
|
+
class: p([T(W), "tpl:flex-1"]),
|
|
2336
2367
|
value: t.platform,
|
|
2337
2368
|
onChange: (e) => l(t.id, "platform", e.target.value)
|
|
2338
2369
|
}, [(e(!0), v(y, null, o(T(xe), (t) => (e(), v("option", {
|
|
2339
2370
|
key: t,
|
|
2340
2371
|
value: t
|
|
2341
|
-
}, D(T(ve)[t].name), 9,
|
|
2342
|
-
class: p(T(
|
|
2372
|
+
}, D(T(ve)[t].name), 9, za))), 128))], 42, Ra), _("button", {
|
|
2373
|
+
class: p(T(ht)),
|
|
2343
2374
|
title: T(a).social.removeIcon,
|
|
2344
2375
|
onClick: (e) => u(t.id)
|
|
2345
|
-
}, [k(T(
|
|
2376
|
+
}, [k(T(ct), {
|
|
2346
2377
|
size: 14,
|
|
2347
2378
|
"stroke-width": 2
|
|
2348
|
-
})], 10,
|
|
2379
|
+
})], 10, Ba)]), k(Q, {
|
|
2349
2380
|
"model-value": t.url,
|
|
2350
2381
|
type: "url",
|
|
2351
2382
|
placeholder: T(a).social.urlPlaceholder,
|
|
@@ -2355,24 +2386,24 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2355
2386
|
"placeholder",
|
|
2356
2387
|
"onUpdate:modelValue"
|
|
2357
2388
|
])]))), 128)), _("button", {
|
|
2358
|
-
class: p(T(
|
|
2389
|
+
class: p(T(gt)),
|
|
2359
2390
|
onClick: c
|
|
2360
|
-
}, [k(T(
|
|
2391
|
+
}, [k(T(Z), {
|
|
2361
2392
|
size: 14,
|
|
2362
2393
|
"stroke-width": 2
|
|
2363
2394
|
}), d(" " + D(T(a).social.addIcon), 1)], 2)])]),
|
|
2364
|
-
_("div",
|
|
2365
|
-
class: p(T(
|
|
2395
|
+
_("div", Va, [_("label", { class: p(T(G)) }, D(T(a).social.style), 3), _("select", {
|
|
2396
|
+
class: p(T(W)),
|
|
2366
2397
|
value: t.block.iconStyle,
|
|
2367
2398
|
onChange: r[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2368
2399
|
}, [
|
|
2369
|
-
_("option",
|
|
2370
|
-
_("option",
|
|
2371
|
-
_("option",
|
|
2372
|
-
_("option",
|
|
2373
|
-
_("option",
|
|
2374
|
-
], 42,
|
|
2375
|
-
_("div",
|
|
2400
|
+
_("option", Ua, D(T(a).social.styleSolid), 1),
|
|
2401
|
+
_("option", Wa, D(T(a).social.styleOutlined), 1),
|
|
2402
|
+
_("option", Ga, D(T(a).social.styleRounded), 1),
|
|
2403
|
+
_("option", Ka, D(T(a).social.styleSquare), 1),
|
|
2404
|
+
_("option", qa, D(T(a).social.styleCircle), 1)
|
|
2405
|
+
], 42, Ha)]),
|
|
2406
|
+
_("div", Ja, [_("label", { class: p(T(G)) }, D(T(a).social.size), 3), k(X, {
|
|
2376
2407
|
options: [
|
|
2377
2408
|
{
|
|
2378
2409
|
value: "small",
|
|
@@ -2390,30 +2421,30 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2390
2421
|
"model-value": t.block.iconSize,
|
|
2391
2422
|
"onUpdate:modelValue": r[1] ||= (e) => s("iconSize", e)
|
|
2392
2423
|
}, null, 8, ["options", "model-value"])]),
|
|
2393
|
-
_("div",
|
|
2424
|
+
_("div", Ya, [_("label", { class: p(T(G)) }, D(T(a).social.spacing), 3), _("div", Xa, [_("input", {
|
|
2394
2425
|
type: "number",
|
|
2395
|
-
class: p(T(
|
|
2426
|
+
class: p(T(q)),
|
|
2396
2427
|
value: t.block.spacing,
|
|
2397
2428
|
min: "0",
|
|
2398
2429
|
max: "50",
|
|
2399
2430
|
onInput: r[2] ||= (e) => s("spacing", Number(e.target.value))
|
|
2400
|
-
}, null, 42,
|
|
2401
|
-
_("div",
|
|
2431
|
+
}, null, 42, Za), _("span", { class: p(T(K)) }, "px", 2)])]),
|
|
2432
|
+
_("div", Qa, [_("label", { class: p(T(G)) }, D(T(a).social.align), 3), k(X, {
|
|
2402
2433
|
options: [
|
|
2403
2434
|
{
|
|
2404
2435
|
value: "left",
|
|
2405
2436
|
label: T(a).title.alignLeft,
|
|
2406
|
-
icon: T(
|
|
2437
|
+
icon: T(ot)
|
|
2407
2438
|
},
|
|
2408
2439
|
{
|
|
2409
2440
|
value: "center",
|
|
2410
2441
|
label: T(a).title.alignCenter,
|
|
2411
|
-
icon: T(
|
|
2442
|
+
icon: T(at)
|
|
2412
2443
|
},
|
|
2413
2444
|
{
|
|
2414
2445
|
value: "right",
|
|
2415
2446
|
label: T(a).title.alignRight,
|
|
2416
|
-
icon: T(
|
|
2447
|
+
icon: T(it)
|
|
2417
2448
|
}
|
|
2418
2449
|
],
|
|
2419
2450
|
"model-value": t.block.align,
|
|
@@ -2421,22 +2452,22 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2421
2452
|
}, null, 8, ["options", "model-value"])])
|
|
2422
2453
|
], 64));
|
|
2423
2454
|
}
|
|
2424
|
-
}),
|
|
2455
|
+
}), eo = { class: "tpl:mb-3.5" }, to = { class: "tpl:flex tpl:items-stretch" }, no = ["value"], ro = ["value"], io = /* @__PURE__ */ m({
|
|
2425
2456
|
__name: "SpacerToolbar",
|
|
2426
2457
|
props: { block: {} },
|
|
2427
2458
|
emits: ["update"],
|
|
2428
2459
|
setup(t, { emit: n }) {
|
|
2429
|
-
let r = n, { t: i } =
|
|
2430
|
-
return (n, a) => (e(), v("div",
|
|
2431
|
-
_("label", { class: p(T(
|
|
2432
|
-
_("div",
|
|
2460
|
+
let r = n, { t: i } = H();
|
|
2461
|
+
return (n, a) => (e(), v("div", eo, [
|
|
2462
|
+
_("label", { class: p(T(G)) }, D(T(i).spacer.height), 3),
|
|
2463
|
+
_("div", to, [_("input", {
|
|
2433
2464
|
type: "number",
|
|
2434
|
-
class: p(T(
|
|
2465
|
+
class: p(T(q)),
|
|
2435
2466
|
value: t.block.height,
|
|
2436
2467
|
min: "10",
|
|
2437
2468
|
max: "100",
|
|
2438
2469
|
onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2439
|
-
}, null, 42,
|
|
2470
|
+
}, null, 42, no), _("span", { class: p(T(K)) }, "px", 2)]),
|
|
2440
2471
|
_("input", {
|
|
2441
2472
|
type: "range",
|
|
2442
2473
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2444,13 +2475,13 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2444
2475
|
min: "10",
|
|
2445
2476
|
max: "100",
|
|
2446
2477
|
onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2447
|
-
}, null, 40,
|
|
2478
|
+
}, null, 40, ro)
|
|
2448
2479
|
]));
|
|
2449
2480
|
}
|
|
2450
|
-
}),
|
|
2481
|
+
}), ao = { class: "tpl:mb-3.5" }, oo = { class: "tpl:flex tpl:items-center tpl:gap-3" }, so = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, co = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, lo = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, uo = ["disabled"], fo = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, po = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, mo = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ho = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, go = ["disabled"], _o = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, vo = { class: "tpl:mb-3.5" }, yo = { 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)]" }, bo = ["checked"], xo = {
|
|
2451
2482
|
key: 0,
|
|
2452
2483
|
class: "tpl:mb-3.5"
|
|
2453
|
-
},
|
|
2484
|
+
}, So = { class: "tpl:mb-3.5" }, Co = { class: "tpl:mb-3.5" }, wo = { class: "tpl:flex tpl:items-stretch" }, To = ["value"], Eo = { class: "tpl:mb-3.5" }, Do = { class: "tpl:flex tpl:items-stretch" }, Oo = ["value"], ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = { value: "" }, Mo = ["value"], No = { class: "tpl:mb-3.5" }, Po = { class: "tpl:flex tpl:items-stretch" }, Fo = ["value"], Io = { class: "tpl:mb-3.5" }, Lo = { class: "tpl:mb-3.5" }, Ro = /* @__PURE__ */ m({
|
|
2454
2485
|
__name: "TableToolbar",
|
|
2455
2486
|
props: {
|
|
2456
2487
|
block: {},
|
|
@@ -2458,7 +2489,7 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2458
2489
|
},
|
|
2459
2490
|
emits: ["update"],
|
|
2460
2491
|
setup(t, { emit: n }) {
|
|
2461
|
-
let r = t, i = n, { t: a } =
|
|
2492
|
+
let r = t, i = n, { t: a } = H(), s = g(() => r.block.rows.length > 0 ? r.block.rows[0].cells.length : 0);
|
|
2462
2493
|
function c(e, t) {
|
|
2463
2494
|
i("update", { [e]: t });
|
|
2464
2495
|
}
|
|
@@ -2491,108 +2522,108 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2491
2522
|
})) });
|
|
2492
2523
|
}
|
|
2493
2524
|
return (n, r) => (e(), v(y, null, [
|
|
2494
|
-
_("div",
|
|
2525
|
+
_("div", ao, [_("label", { class: p(T(G)) }, D(T(a).table.dimensions), 3), _("div", oo, [_("div", so, [_("span", co, D(T(a).table.rows), 1), _("div", lo, [
|
|
2495
2526
|
_("button", {
|
|
2496
2527
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
2497
2528
|
disabled: t.block.rows.length <= 1,
|
|
2498
2529
|
onClick: r[0] ||= (e) => u(t.block.rows[t.block.rows.length - 1].id)
|
|
2499
|
-
}, [k(T(
|
|
2530
|
+
}, [k(T(qe), {
|
|
2500
2531
|
size: 12,
|
|
2501
2532
|
"stroke-width": 2
|
|
2502
|
-
})], 8,
|
|
2503
|
-
_("span",
|
|
2533
|
+
})], 8, uo),
|
|
2534
|
+
_("span", fo, D(t.block.rows.length), 1),
|
|
2504
2535
|
_("button", {
|
|
2505
2536
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)]",
|
|
2506
2537
|
onClick: l
|
|
2507
|
-
}, [k(T(
|
|
2538
|
+
}, [k(T(Z), {
|
|
2508
2539
|
size: 12,
|
|
2509
2540
|
"stroke-width": 2
|
|
2510
2541
|
})])
|
|
2511
|
-
])]), _("div",
|
|
2542
|
+
])]), _("div", po, [_("span", mo, D(T(a).table.columns), 1), _("div", ho, [
|
|
2512
2543
|
_("button", {
|
|
2513
2544
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
2514
2545
|
disabled: s.value <= 1,
|
|
2515
2546
|
onClick: r[1] ||= (e) => m(s.value - 1)
|
|
2516
|
-
}, [k(T(
|
|
2547
|
+
}, [k(T(qe), {
|
|
2517
2548
|
size: 12,
|
|
2518
2549
|
"stroke-width": 2
|
|
2519
|
-
})], 8,
|
|
2520
|
-
_("span",
|
|
2550
|
+
})], 8, go),
|
|
2551
|
+
_("span", _o, D(s.value), 1),
|
|
2521
2552
|
_("button", {
|
|
2522
2553
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:duration-150 tpl:hover:text-[var(--tpl-primary)]",
|
|
2523
2554
|
onClick: f
|
|
2524
|
-
}, [k(T(
|
|
2555
|
+
}, [k(T(Z), {
|
|
2525
2556
|
size: 12,
|
|
2526
2557
|
"stroke-width": 2
|
|
2527
2558
|
})])
|
|
2528
2559
|
])])])]),
|
|
2529
|
-
_("div",
|
|
2560
|
+
_("div", vo, [_("label", yo, [_("input", {
|
|
2530
2561
|
type: "checkbox",
|
|
2531
2562
|
checked: t.block.hasHeaderRow,
|
|
2532
2563
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2533
2564
|
onChange: r[2] ||= (e) => c("hasHeaderRow", e.target.checked)
|
|
2534
|
-
}, null, 40,
|
|
2535
|
-
t.block.hasHeaderRow ? (e(), v("div",
|
|
2565
|
+
}, null, 40, bo), d(" " + D(T(a).table.hasHeaderRow), 1)])]),
|
|
2566
|
+
t.block.hasHeaderRow ? (e(), v("div", xo, [_("label", { class: p(T(G)) }, D(T(a).table.headerBackgroundColor), 3), k(J, {
|
|
2536
2567
|
"model-value": t.block.headerBackgroundColor || T("#f2f2f2"),
|
|
2537
2568
|
placeholder: T(a).table.noHeaderBg,
|
|
2538
2569
|
"onUpdate:modelValue": r[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2539
2570
|
}, null, 8, ["model-value", "placeholder"])])) : b("", !0),
|
|
2540
|
-
_("div",
|
|
2571
|
+
_("div", So, [_("label", { class: p(T(G)) }, D(T(a).table.borderColor), 3), k(J, {
|
|
2541
2572
|
"model-value": t.block.borderColor,
|
|
2542
2573
|
"onUpdate:modelValue": r[4] ||= (e) => c("borderColor", e)
|
|
2543
2574
|
}, null, 8, ["model-value"])]),
|
|
2544
|
-
_("div",
|
|
2575
|
+
_("div", Co, [_("label", { class: p(T(G)) }, D(T(a).table.borderWidth), 3), _("div", wo, [_("input", {
|
|
2545
2576
|
type: "number",
|
|
2546
|
-
class: p(T(
|
|
2577
|
+
class: p(T(q)),
|
|
2547
2578
|
value: t.block.borderWidth,
|
|
2548
2579
|
min: "0",
|
|
2549
2580
|
max: "10",
|
|
2550
2581
|
onInput: r[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2551
|
-
}, null, 42,
|
|
2552
|
-
_("div",
|
|
2582
|
+
}, null, 42, To), _("span", { class: p(T(K)) }, "px", 2)])]),
|
|
2583
|
+
_("div", Eo, [_("label", { class: p(T(G)) }, D(T(a).table.cellPadding), 3), _("div", Do, [_("input", {
|
|
2553
2584
|
type: "number",
|
|
2554
|
-
class: p(T(
|
|
2585
|
+
class: p(T(q)),
|
|
2555
2586
|
value: t.block.cellPadding,
|
|
2556
2587
|
min: "0",
|
|
2557
2588
|
max: "30",
|
|
2558
2589
|
onInput: r[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2559
|
-
}, null, 42,
|
|
2560
|
-
_("div",
|
|
2561
|
-
class: p(T(
|
|
2590
|
+
}, null, 42, Oo), _("span", { class: p(T(K)) }, "px", 2)])]),
|
|
2591
|
+
_("div", ko, [_("label", { class: p(T(G)) }, D(T(a).table.fontFamily), 3), _("select", {
|
|
2592
|
+
class: p(T(W)),
|
|
2562
2593
|
value: t.block.fontFamily || "",
|
|
2563
2594
|
onChange: r[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2564
|
-
}, [_("option",
|
|
2595
|
+
}, [_("option", jo, D(T(a).title.inheritFont), 1), (e(!0), v(y, null, o(t.fontFamilies, (t) => (e(), v("option", {
|
|
2565
2596
|
key: t.value,
|
|
2566
2597
|
value: t.value
|
|
2567
|
-
}, D(t.label), 9,
|
|
2568
|
-
_("div",
|
|
2598
|
+
}, D(t.label), 9, Mo))), 128))], 42, Ao)]),
|
|
2599
|
+
_("div", No, [_("label", { class: p(T(G)) }, D(T(a).table.fontSize), 3), _("div", Po, [_("input", {
|
|
2569
2600
|
type: "number",
|
|
2570
|
-
class: p(T(
|
|
2601
|
+
class: p(T(q)),
|
|
2571
2602
|
value: t.block.fontSize,
|
|
2572
2603
|
min: "10",
|
|
2573
2604
|
max: "32",
|
|
2574
2605
|
onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2575
|
-
}, null, 42,
|
|
2576
|
-
_("div",
|
|
2606
|
+
}, null, 42, Fo), _("span", { class: p(T(K)) }, "px", 2)])]),
|
|
2607
|
+
_("div", Io, [_("label", { class: p(T(G)) }, D(T(a).table.color), 3), k(J, {
|
|
2577
2608
|
"model-value": t.block.color,
|
|
2578
2609
|
"onUpdate:modelValue": r[9] ||= (e) => c("color", e)
|
|
2579
2610
|
}, null, 8, ["model-value"])]),
|
|
2580
|
-
_("div",
|
|
2611
|
+
_("div", Lo, [_("label", { class: p(T(G)) }, D(T(a).table.textAlign), 3), k(X, {
|
|
2581
2612
|
options: [
|
|
2582
2613
|
{
|
|
2583
2614
|
value: "left",
|
|
2584
2615
|
label: T(a).title.alignLeft,
|
|
2585
|
-
icon: T(
|
|
2616
|
+
icon: T(ot)
|
|
2586
2617
|
},
|
|
2587
2618
|
{
|
|
2588
2619
|
value: "center",
|
|
2589
2620
|
label: T(a).title.alignCenter,
|
|
2590
|
-
icon: T(
|
|
2621
|
+
icon: T(at)
|
|
2591
2622
|
},
|
|
2592
2623
|
{
|
|
2593
2624
|
value: "right",
|
|
2594
2625
|
label: T(a).title.alignRight,
|
|
2595
|
-
icon: T(
|
|
2626
|
+
icon: T(it)
|
|
2596
2627
|
}
|
|
2597
2628
|
],
|
|
2598
2629
|
"model-value": t.block.textAlign,
|
|
@@ -2600,7 +2631,7 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2600
2631
|
}, null, 8, ["options", "model-value"])])
|
|
2601
2632
|
], 64));
|
|
2602
2633
|
}
|
|
2603
|
-
}),
|
|
2634
|
+
}), zo = { class: "tpl:mb-3.5" }, Bo = ["value"], Vo = { value: 1 }, Ho = { value: 2 }, Uo = { value: 3 }, Wo = { value: 4 }, Go = { class: "tpl:mb-3.5" }, Ko = ["value"], qo = { value: "" }, Jo = ["value"], Yo = { class: "tpl:mb-3.5" }, Xo = { class: "tpl:mb-3.5" }, Zo = /* @__PURE__ */ m({
|
|
2604
2635
|
__name: "TitleToolbar",
|
|
2605
2636
|
props: {
|
|
2606
2637
|
block: {},
|
|
@@ -2608,49 +2639,49 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2608
2639
|
},
|
|
2609
2640
|
emits: ["update"],
|
|
2610
2641
|
setup(t, { emit: n }) {
|
|
2611
|
-
let r = n, { t: i } =
|
|
2642
|
+
let r = n, { t: i } = H();
|
|
2612
2643
|
function a(e, t) {
|
|
2613
2644
|
r("update", { [e]: t });
|
|
2614
2645
|
}
|
|
2615
2646
|
return (n, r) => (e(), v(y, null, [
|
|
2616
|
-
_("div",
|
|
2617
|
-
class: p(T(
|
|
2647
|
+
_("div", zo, [_("label", { class: p(T(G)) }, D(T(i).title.level), 3), _("select", {
|
|
2648
|
+
class: p(T(W)),
|
|
2618
2649
|
value: t.block.level,
|
|
2619
2650
|
onChange: r[0] ||= (e) => a("level", Number(e.target.value))
|
|
2620
2651
|
}, [
|
|
2621
|
-
_("option",
|
|
2622
|
-
_("option",
|
|
2623
|
-
_("option",
|
|
2624
|
-
_("option",
|
|
2625
|
-
], 42,
|
|
2626
|
-
_("div",
|
|
2627
|
-
class: p(T(
|
|
2652
|
+
_("option", Vo, D(T(i).title.heading1), 1),
|
|
2653
|
+
_("option", Ho, D(T(i).title.heading2), 1),
|
|
2654
|
+
_("option", Uo, D(T(i).title.heading3), 1),
|
|
2655
|
+
_("option", Wo, D(T(i).title.heading4), 1)
|
|
2656
|
+
], 42, Bo)]),
|
|
2657
|
+
_("div", Go, [_("label", { class: p(T(G)) }, D(T(i).title.fontFamily), 3), _("select", {
|
|
2658
|
+
class: p(T(W)),
|
|
2628
2659
|
value: t.block.fontFamily || "",
|
|
2629
2660
|
onChange: r[1] ||= (e) => a("fontFamily", e.target.value || void 0)
|
|
2630
|
-
}, [_("option",
|
|
2661
|
+
}, [_("option", qo, D(T(i).title.inheritFont), 1), (e(!0), v(y, null, o(t.fontFamilies, (t) => (e(), v("option", {
|
|
2631
2662
|
key: t.value,
|
|
2632
2663
|
value: t.value
|
|
2633
|
-
}, D(t.label), 9,
|
|
2634
|
-
_("div",
|
|
2664
|
+
}, D(t.label), 9, Jo))), 128))], 42, Ko)]),
|
|
2665
|
+
_("div", Yo, [_("label", { class: p(T(G)) }, D(T(i).title.color), 3), k(J, {
|
|
2635
2666
|
"model-value": t.block.color,
|
|
2636
2667
|
"onUpdate:modelValue": r[2] ||= (e) => a("color", e)
|
|
2637
2668
|
}, null, 8, ["model-value"])]),
|
|
2638
|
-
_("div",
|
|
2669
|
+
_("div", Xo, [_("label", { class: p(T(G)) }, D(T(i).title.align), 3), k(X, {
|
|
2639
2670
|
options: [
|
|
2640
2671
|
{
|
|
2641
2672
|
value: "left",
|
|
2642
2673
|
label: T(i).title.alignLeft,
|
|
2643
|
-
icon: T(
|
|
2674
|
+
icon: T(ot)
|
|
2644
2675
|
},
|
|
2645
2676
|
{
|
|
2646
2677
|
value: "center",
|
|
2647
2678
|
label: T(i).title.alignCenter,
|
|
2648
|
-
icon: T(
|
|
2679
|
+
icon: T(at)
|
|
2649
2680
|
},
|
|
2650
2681
|
{
|
|
2651
2682
|
value: "right",
|
|
2652
2683
|
label: T(i).title.alignRight,
|
|
2653
|
-
icon: T(
|
|
2684
|
+
icon: T(it)
|
|
2654
2685
|
}
|
|
2655
2686
|
],
|
|
2656
2687
|
"model-value": t.block.textAlign,
|
|
@@ -2658,22 +2689,22 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2658
2689
|
}, null, 8, ["options", "model-value"])])
|
|
2659
2690
|
], 64));
|
|
2660
2691
|
}
|
|
2661
|
-
}),
|
|
2692
|
+
}), Qo = { class: "tpl:mb-3.5" }, $o = {
|
|
2662
2693
|
key: 0,
|
|
2663
2694
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
2664
|
-
},
|
|
2695
|
+
}, es = ["checked"], ts = {
|
|
2665
2696
|
key: 0,
|
|
2666
2697
|
class: "tpl:mb-3.5"
|
|
2667
|
-
},
|
|
2698
|
+
}, ns = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, rs = [
|
|
2668
2699
|
"value",
|
|
2669
2700
|
"placeholder",
|
|
2670
2701
|
"title"
|
|
2671
|
-
],
|
|
2702
|
+
], is = { class: "tpl:mb-3.5" }, as = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, os = { class: "tpl:mb-3.5" }, ss = { class: "tpl:mb-3.5" }, cs = ["value"], ls = { value: "full" }, us = { class: "tpl:mb-3.5" }, ds = /* @__PURE__ */ m({
|
|
2672
2703
|
__name: "VideoToolbar",
|
|
2673
2704
|
props: { block: {} },
|
|
2674
2705
|
emits: ["update"],
|
|
2675
2706
|
setup(t, { emit: n }) {
|
|
2676
|
-
let r = t, i = n, { t: a } =
|
|
2707
|
+
let r = t, i = n, { t: a } = H(), o = A(Oe, null), s = A(je, z.liquid), c = ft(), l = g(() => !!o), f = g(() => L(r.block.url, s)), m = u(!1), { start: h } = Ee(() => {
|
|
2677
2708
|
m.value = !1;
|
|
2678
2709
|
}, 1e3, { immediate: !1 });
|
|
2679
2710
|
function x(e, t) {
|
|
@@ -2684,32 +2715,32 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2684
2715
|
c.alive && e && (x("thumbnailUrl", e.url), m.value = !0, h());
|
|
2685
2716
|
}
|
|
2686
2717
|
return (n, r) => (e(), v(y, null, [
|
|
2687
|
-
_("div",
|
|
2688
|
-
_("label", { class: p(T(
|
|
2689
|
-
k(
|
|
2718
|
+
_("div", Qo, [
|
|
2719
|
+
_("label", { class: p(T(G)) }, D(T(a).video.videoUrl), 3),
|
|
2720
|
+
k(Q, {
|
|
2690
2721
|
"model-value": t.block.url,
|
|
2691
2722
|
type: "url",
|
|
2692
2723
|
placeholder: T(a).video.videoUrlPlaceholder,
|
|
2693
2724
|
"onUpdate:modelValue": r[0] ||= (e) => x("url", e)
|
|
2694
2725
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2695
|
-
t.block.url ? (e(), v("label",
|
|
2726
|
+
t.block.url ? (e(), v("label", $o, [_("input", {
|
|
2696
2727
|
type: "checkbox",
|
|
2697
2728
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2698
2729
|
checked: t.block.openInNewTab ?? !1,
|
|
2699
2730
|
onChange: r[1] ||= (e) => x("openInNewTab", e.target.checked)
|
|
2700
|
-
}, null, 40,
|
|
2731
|
+
}, null, 40, es), d(" " + D(T(a).video.openInNewTab), 1)])) : b("", !0)
|
|
2701
2732
|
]),
|
|
2702
|
-
f.value ? (e(), v("div",
|
|
2733
|
+
f.value ? (e(), v("div", ts, [_("label", { class: p(T(G)) }, [d(D(T(a).video.placeholderUrl) + " ", 1), _("span", ns, D(T(a).video.optional), 1)], 2), _("input", {
|
|
2703
2734
|
type: "url",
|
|
2704
|
-
class: p(T(
|
|
2735
|
+
class: p(T(W)),
|
|
2705
2736
|
value: t.block.placeholderUrl || "",
|
|
2706
2737
|
placeholder: T(a).video.placeholderUrlPlaceholder,
|
|
2707
2738
|
title: T(a).video.placeholderUrlTooltip,
|
|
2708
2739
|
onInput: r[2] ||= (e) => x("placeholderUrl", e.target.value)
|
|
2709
|
-
}, null, 42,
|
|
2710
|
-
_("div",
|
|
2711
|
-
_("label", { class: p(T(
|
|
2712
|
-
k(
|
|
2740
|
+
}, null, 42, rs)])) : b("", !0),
|
|
2741
|
+
_("div", is, [
|
|
2742
|
+
_("label", { class: p(T(G)) }, [d(D(T(a).video.customThumbnail) + " ", 1), _("span", as, D(T(a).video.optional), 1)], 2),
|
|
2743
|
+
k(Q, {
|
|
2713
2744
|
"model-value": t.block.thumbnailUrl,
|
|
2714
2745
|
type: "url",
|
|
2715
2746
|
placeholder: T(a).video.thumbnailPlaceholder,
|
|
@@ -2734,23 +2765,23 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2734
2765
|
"stroke-width": 1.5
|
|
2735
2766
|
}), d(" " + D(T(a).image.browseMedia), 1)])) : b("", !0)
|
|
2736
2767
|
]),
|
|
2737
|
-
_("div",
|
|
2768
|
+
_("div", os, [_("label", { class: p(T(G)) }, D(T(a).video.altText), 3), k(Q, {
|
|
2738
2769
|
"model-value": t.block.alt,
|
|
2739
2770
|
type: "text",
|
|
2740
2771
|
placeholder: T(a).video.altTextPlaceholder,
|
|
2741
2772
|
"onUpdate:modelValue": r[4] ||= (e) => x("alt", e)
|
|
2742
2773
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2743
|
-
_("div",
|
|
2744
|
-
class: p(T(
|
|
2774
|
+
_("div", ss, [_("label", { class: p(T(G)) }, D(T(a).video.width), 3), _("select", {
|
|
2775
|
+
class: p(T(W)),
|
|
2745
2776
|
value: t.block.width,
|
|
2746
2777
|
onChange: r[5] ||= (e) => x("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
2747
2778
|
}, [
|
|
2748
|
-
_("option",
|
|
2779
|
+
_("option", ls, D(T(a).video.fullWidth), 1),
|
|
2749
2780
|
r[7] ||= _("option", { value: "300" }, "300px", -1),
|
|
2750
2781
|
r[8] ||= _("option", { value: "400" }, "400px", -1),
|
|
2751
2782
|
r[9] ||= _("option", { value: "500" }, "500px", -1)
|
|
2752
|
-
], 42,
|
|
2753
|
-
_("div",
|
|
2783
|
+
], 42, cs)]),
|
|
2784
|
+
_("div", us, [_("label", { class: p(T(G)) }, D(T(a).title.align), 3), k(X, {
|
|
2754
2785
|
options: [
|
|
2755
2786
|
{
|
|
2756
2787
|
value: "left",
|
|
@@ -2770,7 +2801,7 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2770
2801
|
}, null, 8, ["options", "model-value"])])
|
|
2771
2802
|
], 64));
|
|
2772
2803
|
}
|
|
2773
|
-
}),
|
|
2804
|
+
}), fs = ["aria-label"], ps = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, ms = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, hs = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, gs = { class: "tpl:flex tpl:gap-1" }, _s = ["title"], vs = ["title"], ys = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, bs = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
2774
2805
|
__name: "Toolbar",
|
|
2775
2806
|
props: { block: {} },
|
|
2776
2807
|
emits: [
|
|
@@ -2779,87 +2810,87 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2779
2810
|
"duplicate"
|
|
2780
2811
|
],
|
|
2781
2812
|
setup(t, { emit: n }) {
|
|
2782
|
-
let i = j(() => import("./CountdownToolbar-
|
|
2813
|
+
let i = j(() => import("./CountdownToolbar-BGTkFky9.js")), a = t, o = n, { t: s } = H(), c = Ae(Ie, "Toolbar"), l = A(Pe, []), u = g(() => a.block.type), d = g(() => F(a.block)), f = g(() => {
|
|
2783
2814
|
if (d.value) return l.find((e) => e.type === a.block.customType);
|
|
2784
|
-
}), p = g(() => d.value ? f.value?.name ?? a.block.customType :
|
|
2815
|
+
}), p = g(() => d.value ? f.value?.name ?? a.block.customType : te(u.value, s)), m = c.fonts;
|
|
2785
2816
|
function h(e) {
|
|
2786
2817
|
o("update", e);
|
|
2787
2818
|
}
|
|
2788
2819
|
return (n, a) => (e(), v("aside", {
|
|
2789
2820
|
"aria-label": T(s).landmarks.blockToolbar,
|
|
2790
2821
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2791
|
-
}, [_("div",
|
|
2822
|
+
}, [_("div", ps, [_("div", ms, [T(Xe)[u.value] ? (e(), C(r(T(Xe)[u.value]), {
|
|
2792
2823
|
key: 0,
|
|
2793
2824
|
size: 16,
|
|
2794
2825
|
"stroke-width": 1.5
|
|
2795
|
-
})) : d.value ? (e(), C(T(
|
|
2826
|
+
})) : d.value ? (e(), C(T(re), {
|
|
2796
2827
|
key: 1,
|
|
2797
2828
|
size: 16,
|
|
2798
2829
|
"stroke-width": 1.5
|
|
2799
|
-
})) : b("", !0), _("h3",
|
|
2830
|
+
})) : b("", !0), _("h3", hs, D(p.value), 1)]), _("div", gs, [_("button", {
|
|
2800
2831
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
|
|
2801
2832
|
title: T(s).toolbar.duplicate,
|
|
2802
2833
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
2803
2834
|
}, [k(T(pe), {
|
|
2804
2835
|
size: 14,
|
|
2805
2836
|
"stroke-width": 2
|
|
2806
|
-
})], 8,
|
|
2837
|
+
})], 8, _s), _("button", {
|
|
2807
2838
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
2808
2839
|
title: T(s).toolbar.delete,
|
|
2809
2840
|
onClick: a[1] ||= (e) => o("delete")
|
|
2810
|
-
}, [k(T(
|
|
2841
|
+
}, [k(T(st), {
|
|
2811
2842
|
size: 14,
|
|
2812
2843
|
"stroke-width": 2
|
|
2813
|
-
})], 8,
|
|
2844
|
+
})], 8, vs)])]), _("div", ys, [d.value ? (e(), C(Gi, {
|
|
2814
2845
|
key: 0,
|
|
2815
2846
|
block: t.block,
|
|
2816
2847
|
onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
|
|
2817
2848
|
onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
|
|
2818
|
-
}, null, 8, ["block"])) : u.value === "section" ? (e(), C(
|
|
2849
|
+
}, null, 8, ["block"])) : u.value === "section" ? (e(), C(Pa, {
|
|
2819
2850
|
key: 1,
|
|
2820
2851
|
block: t.block,
|
|
2821
2852
|
onUpdate: h
|
|
2822
|
-
}, null, 8, ["block"])) : u.value === "title" ? (e(), C(
|
|
2853
|
+
}, null, 8, ["block"])) : u.value === "title" ? (e(), C(Zo, {
|
|
2823
2854
|
key: 2,
|
|
2824
2855
|
block: t.block,
|
|
2825
2856
|
"font-families": T(m),
|
|
2826
2857
|
onUpdate: h
|
|
2827
|
-
}, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (e(), v(y, { key: 3 }, [], 64)) : u.value === "image" ? (e(), C(
|
|
2858
|
+
}, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (e(), v(y, { key: 3 }, [], 64)) : u.value === "image" ? (e(), C(ga, {
|
|
2828
2859
|
key: 4,
|
|
2829
2860
|
block: t.block,
|
|
2830
2861
|
onUpdate: h
|
|
2831
|
-
}, null, 8, ["block"])) : u.value === "video" ? (e(), C(
|
|
2862
|
+
}, null, 8, ["block"])) : u.value === "video" ? (e(), C(ds, {
|
|
2832
2863
|
key: 5,
|
|
2833
2864
|
block: t.block,
|
|
2834
2865
|
onUpdate: h
|
|
2835
|
-
}, null, 8, ["block"])) : u.value === "button" ? (e(), C(
|
|
2866
|
+
}, null, 8, ["block"])) : u.value === "button" ? (e(), C(_r, {
|
|
2836
2867
|
key: 6,
|
|
2837
2868
|
block: t.block,
|
|
2838
2869
|
"font-families": T(m),
|
|
2839
2870
|
onUpdate: h
|
|
2840
|
-
}, null, 8, ["block", "font-families"])) : u.value === "divider" ? (e(), C(
|
|
2871
|
+
}, null, 8, ["block", "font-families"])) : u.value === "divider" ? (e(), C(Zi, {
|
|
2841
2872
|
key: 7,
|
|
2842
2873
|
block: t.block,
|
|
2843
2874
|
onUpdate: h
|
|
2844
|
-
}, null, 8, ["block"])) : u.value === "social" ? (e(), C(
|
|
2875
|
+
}, null, 8, ["block"])) : u.value === "social" ? (e(), C($a, {
|
|
2845
2876
|
key: 8,
|
|
2846
2877
|
block: t.block,
|
|
2847
2878
|
onUpdate: h
|
|
2848
|
-
}, null, 8, ["block"])) : u.value === "menu" ? (e(), C(
|
|
2879
|
+
}, null, 8, ["block"])) : u.value === "menu" ? (e(), C(Oa, {
|
|
2849
2880
|
key: 9,
|
|
2850
2881
|
block: t.block,
|
|
2851
2882
|
"font-families": T(m),
|
|
2852
2883
|
onUpdate: h
|
|
2853
|
-
}, null, 8, ["block", "font-families"])) : u.value === "table" ? (e(), C(
|
|
2884
|
+
}, null, 8, ["block", "font-families"])) : u.value === "table" ? (e(), C(Ro, {
|
|
2854
2885
|
key: 10,
|
|
2855
2886
|
block: t.block,
|
|
2856
2887
|
"font-families": T(m),
|
|
2857
2888
|
onUpdate: h
|
|
2858
|
-
}, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (e(), C(
|
|
2889
|
+
}, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (e(), C(io, {
|
|
2859
2890
|
key: 11,
|
|
2860
2891
|
block: t.block,
|
|
2861
2892
|
onUpdate: h
|
|
2862
|
-
}, null, 8, ["block"])) : u.value === "html" ? (e(), C(
|
|
2893
|
+
}, null, 8, ["block"])) : u.value === "html" ? (e(), C(ta, {
|
|
2863
2894
|
key: 12,
|
|
2864
2895
|
block: t.block,
|
|
2865
2896
|
onUpdate: h
|
|
@@ -2868,52 +2899,52 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2868
2899
|
block: t.block,
|
|
2869
2900
|
"font-families": T(m),
|
|
2870
2901
|
onUpdate: h
|
|
2871
|
-
}, null, 8, ["block", "font-families"])) : b("", !0), k(
|
|
2902
|
+
}, null, 8, ["block", "font-families"])) : b("", !0), k(si, {
|
|
2872
2903
|
block: t.block,
|
|
2873
2904
|
"is-first-section": u.value === "paragraph",
|
|
2874
2905
|
onUpdate: h
|
|
2875
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
2906
|
+
}, null, 8, ["block", "is-first-section"])])], 8, fs));
|
|
2876
2907
|
}
|
|
2877
|
-
}), [["__scopeId", "data-v-2ac88283"]]),
|
|
2908
|
+
}), [["__scopeId", "data-v-2ac88283"]]), xs = ["aria-label"], Ss = {
|
|
2878
2909
|
role: "tablist",
|
|
2879
2910
|
class: "tpl:relative tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-active)] tpl:p-1.5"
|
|
2880
|
-
},
|
|
2911
|
+
}, Cs = [
|
|
2881
2912
|
"aria-selected",
|
|
2882
2913
|
"aria-label",
|
|
2883
2914
|
"title"
|
|
2884
|
-
],
|
|
2915
|
+
], ws = { key: 0 }, Ts = [
|
|
2885
2916
|
"aria-selected",
|
|
2886
2917
|
"aria-label",
|
|
2887
2918
|
"title"
|
|
2888
|
-
],
|
|
2919
|
+
], Es = { key: 0 }, Ds = [
|
|
2889
2920
|
"aria-selected",
|
|
2890
2921
|
"aria-label",
|
|
2891
2922
|
"title"
|
|
2892
|
-
],
|
|
2923
|
+
], Os = { key: 0 }, ks = {
|
|
2893
2924
|
key: 1,
|
|
2894
2925
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
2895
|
-
},
|
|
2926
|
+
}, As = {
|
|
2896
2927
|
key: 0,
|
|
2897
2928
|
id: "tpl-tabpanel-content",
|
|
2898
2929
|
role: "tabpanel",
|
|
2899
2930
|
"aria-labelledby": "tpl-tab-content",
|
|
2900
2931
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2901
|
-
},
|
|
2932
|
+
}, js = {
|
|
2902
2933
|
key: 1,
|
|
2903
2934
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:px-6 tpl:py-10 tpl:text-center tpl:text-[var(--tpl-text-muted)]"
|
|
2904
|
-
},
|
|
2935
|
+
}, Ms = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Ns = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ps = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Fs = {
|
|
2905
2936
|
key: 1,
|
|
2906
2937
|
id: "tpl-tabpanel-settings",
|
|
2907
2938
|
role: "tabpanel",
|
|
2908
2939
|
"aria-labelledby": "tpl-tab-settings",
|
|
2909
2940
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2910
|
-
},
|
|
2941
|
+
}, Is = {
|
|
2911
2942
|
key: 2,
|
|
2912
2943
|
id: "tpl-tabpanel-issues",
|
|
2913
2944
|
role: "tabpanel",
|
|
2914
2945
|
"aria-labelledby": "tpl-tab-issues",
|
|
2915
2946
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2916
|
-
},
|
|
2947
|
+
}, Ls = /* @__PURE__ */ m({
|
|
2917
2948
|
__name: "RightSidebar",
|
|
2918
2949
|
props: {
|
|
2919
2950
|
selectedBlock: {},
|
|
@@ -2927,7 +2958,7 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2927
2958
|
"update-settings"
|
|
2928
2959
|
],
|
|
2929
2960
|
setup(t, { emit: n }) {
|
|
2930
|
-
let r = j(() => import("./IssuesPanel-
|
|
2961
|
+
let r = j(() => import("./IssuesPanel-CPBbR8yp.js")), i = t, o = n, { t: s } = H(), c = u("content"), l = A(Le, null), d = g(() => l !== null), f = g(() => l?.issues.value.length ?? 0);
|
|
2931
2962
|
function m(e) {
|
|
2932
2963
|
return c.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
|
|
2933
2964
|
}
|
|
@@ -2943,7 +2974,7 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2943
2974
|
"aria-label": T(s).landmarks.rightSidebar,
|
|
2944
2975
|
class: p(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", t.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
|
|
2945
2976
|
}, [
|
|
2946
|
-
_("div",
|
|
2977
|
+
_("div", Ss, [
|
|
2947
2978
|
_("button", {
|
|
2948
2979
|
id: "tpl-tab-content",
|
|
2949
2980
|
role: "tab",
|
|
@@ -2954,10 +2985,10 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2954
2985
|
class: p(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", m("content")]),
|
|
2955
2986
|
style: S(h("content")),
|
|
2956
2987
|
onClick: i[0] ||= (e) => c.value = "content"
|
|
2957
|
-
}, [k(T(
|
|
2988
|
+
}, [k(T(kt), {
|
|
2958
2989
|
size: 14,
|
|
2959
2990
|
"stroke-width": 2
|
|
2960
|
-
}), c.value === "content" ? (e(), v("span",
|
|
2991
|
+
}), c.value === "content" ? (e(), v("span", ws, D(T(s).sidebar.content), 1)) : b("", !0)], 14, Cs),
|
|
2961
2992
|
_("button", {
|
|
2962
2993
|
id: "tpl-tab-settings",
|
|
2963
2994
|
role: "tab",
|
|
@@ -2968,10 +2999,10 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2968
2999
|
class: p(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", m("settings")]),
|
|
2969
3000
|
style: S(h("settings")),
|
|
2970
3001
|
onClick: i[1] ||= (e) => c.value = "settings"
|
|
2971
|
-
}, [k(T(
|
|
3002
|
+
}, [k(T(jt), {
|
|
2972
3003
|
size: 14,
|
|
2973
3004
|
"stroke-width": 1.5
|
|
2974
|
-
}), c.value === "settings" ? (e(), v("span",
|
|
3005
|
+
}), c.value === "settings" ? (e(), v("span", Es, D(T(s).sidebar.settings), 1)) : b("", !0)], 14, Ts),
|
|
2975
3006
|
d.value ? (e(), v("button", {
|
|
2976
3007
|
key: 0,
|
|
2977
3008
|
id: "tpl-tab-issues",
|
|
@@ -2984,46 +3015,46 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
2984
3015
|
style: S(h("issues")),
|
|
2985
3016
|
onClick: i[2] ||= (e) => c.value = "issues"
|
|
2986
3017
|
}, [
|
|
2987
|
-
k(T(
|
|
3018
|
+
k(T(tt), {
|
|
2988
3019
|
size: 14,
|
|
2989
3020
|
"stroke-width": 1.5
|
|
2990
3021
|
}),
|
|
2991
|
-
c.value === "issues" ? (e(), v("span",
|
|
2992
|
-
f.value > 0 ? (e(), v("span",
|
|
2993
|
-
], 14,
|
|
3022
|
+
c.value === "issues" ? (e(), v("span", Os, D(T(s).issues.panelTabLabel), 1)) : b("", !0),
|
|
3023
|
+
f.value > 0 ? (e(), v("span", ks, D(f.value), 1)) : b("", !0)
|
|
3024
|
+
], 14, Ds)) : b("", !0)
|
|
2994
3025
|
]),
|
|
2995
|
-
c.value === "content" ? (e(), v("div",
|
|
3026
|
+
c.value === "content" ? (e(), v("div", As, [t.selectedBlock ? (e(), C(bs, {
|
|
2996
3027
|
key: 0,
|
|
2997
3028
|
block: t.selectedBlock,
|
|
2998
3029
|
onUpdate: i[3] ||= (e) => o("update-block", e),
|
|
2999
3030
|
onDelete: i[4] ||= (e) => o("delete-block"),
|
|
3000
3031
|
onDuplicate: i[5] ||= (e) => o("duplicate-block")
|
|
3001
|
-
}, null, 8, ["block"])) : (e(), v("div",
|
|
3002
|
-
_("div",
|
|
3032
|
+
}, null, 8, ["block"])) : (e(), v("div", js, [
|
|
3033
|
+
_("div", Ms, [k(T(wt), {
|
|
3003
3034
|
size: 40,
|
|
3004
3035
|
"stroke-width": 1.5
|
|
3005
3036
|
})]),
|
|
3006
|
-
_("h3",
|
|
3007
|
-
_("p",
|
|
3037
|
+
_("h3", Ns, D(T(s).sidebar.noSelection), 1),
|
|
3038
|
+
_("p", Ps, D(T(s).sidebar.noSelectionHint), 1)
|
|
3008
3039
|
]))])) : b("", !0),
|
|
3009
|
-
c.value === "settings" ? (e(), v("div",
|
|
3040
|
+
c.value === "settings" ? (e(), v("div", Fs, [k(Jn, {
|
|
3010
3041
|
settings: t.settings,
|
|
3011
3042
|
onUpdate: i[6] ||= (e) => o("update-settings", e)
|
|
3012
3043
|
}, null, 8, ["settings"])])) : b("", !0),
|
|
3013
|
-
c.value === "issues" && d.value ? (e(), v("div",
|
|
3014
|
-
], 10,
|
|
3044
|
+
c.value === "issues" && d.value ? (e(), v("div", Is, [k(T(r))])) : b("", !0)
|
|
3045
|
+
], 10, xs));
|
|
3015
3046
|
}
|
|
3016
|
-
}),
|
|
3047
|
+
}), Rs = ["aria-label"], zs = [
|
|
3017
3048
|
"aria-checked",
|
|
3018
3049
|
"aria-label",
|
|
3019
3050
|
"title",
|
|
3020
3051
|
"onClick"
|
|
3021
|
-
],
|
|
3052
|
+
], Bs = /* @__PURE__ */ m({
|
|
3022
3053
|
__name: "ViewportToggle",
|
|
3023
3054
|
props: { viewport: {} },
|
|
3024
3055
|
emits: ["change"],
|
|
3025
3056
|
setup(t, { emit: n }) {
|
|
3026
|
-
let r = t, i = n, { t: a } =
|
|
3057
|
+
let r = t, i = n, { t: a } = H(), s = g(() => [{
|
|
3027
3058
|
value: "desktop",
|
|
3028
3059
|
label: a.viewport.desktop
|
|
3029
3060
|
}, {
|
|
@@ -3060,26 +3091,26 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
3060
3091
|
}),
|
|
3061
3092
|
title: n.label,
|
|
3062
3093
|
onClick: (e) => i("change", n.value)
|
|
3063
|
-
}, [n.value === "desktop" ? (e(), C(T(
|
|
3094
|
+
}, [n.value === "desktop" ? (e(), C(T(Dt), {
|
|
3064
3095
|
key: 0,
|
|
3065
3096
|
size: 18,
|
|
3066
3097
|
"stroke-width": 1.5
|
|
3067
|
-
})) : (e(), C(T(
|
|
3098
|
+
})) : (e(), C(T(Mt), {
|
|
3068
3099
|
key: 1,
|
|
3069
3100
|
size: 18,
|
|
3070
3101
|
"stroke-width": 1.5
|
|
3071
|
-
})), _("span", null, D(n.label), 1)], 12,
|
|
3102
|
+
})), _("span", null, D(n.label), 1)], 12, zs))), 128))], 12, Rs));
|
|
3072
3103
|
}
|
|
3073
|
-
}),
|
|
3104
|
+
}), Vs = [
|
|
3074
3105
|
"aria-label",
|
|
3075
3106
|
"title",
|
|
3076
3107
|
"aria-pressed"
|
|
3077
|
-
],
|
|
3108
|
+
], Hs = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
3078
3109
|
__name: "PreviewToggle",
|
|
3079
3110
|
props: { previewMode: { type: Boolean } },
|
|
3080
3111
|
emits: ["change"],
|
|
3081
3112
|
setup(t, { emit: n }) {
|
|
3082
|
-
let r = n, { t: i } =
|
|
3113
|
+
let r = n, { t: i } = H();
|
|
3083
3114
|
return (n, a) => (e(), v("button", {
|
|
3084
3115
|
class: "tpl-preview-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all tpl:duration-150",
|
|
3085
3116
|
style: S({
|
|
@@ -3097,28 +3128,28 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
3097
3128
|
"leave-to-class": "tpl-icon-leave-to",
|
|
3098
3129
|
mode: "out-in"
|
|
3099
3130
|
}, {
|
|
3100
|
-
default: M(() => [t.previewMode ? (e(), C(T(
|
|
3131
|
+
default: M(() => [t.previewMode ? (e(), C(T(Ze), {
|
|
3101
3132
|
key: "eye",
|
|
3102
3133
|
size: 18,
|
|
3103
3134
|
"stroke-width": 1.5
|
|
3104
|
-
})) : (e(), C(T(
|
|
3135
|
+
})) : (e(), C(T(ee), {
|
|
3105
3136
|
key: "eye-off",
|
|
3106
3137
|
size: 18,
|
|
3107
3138
|
"stroke-width": 1.5
|
|
3108
3139
|
}))]),
|
|
3109
3140
|
_: 1
|
|
3110
|
-
})], 12,
|
|
3141
|
+
})], 12, Vs));
|
|
3111
3142
|
}
|
|
3112
|
-
}), [["__scopeId", "data-v-af87d02a"]]),
|
|
3143
|
+
}), [["__scopeId", "data-v-af87d02a"]]), Us = [
|
|
3113
3144
|
"aria-label",
|
|
3114
3145
|
"title",
|
|
3115
3146
|
"aria-pressed"
|
|
3116
|
-
],
|
|
3147
|
+
], Ws = /*#__PURE__*/ lt(/* @__PURE__ */ m({
|
|
3117
3148
|
__name: "DarkModeToggle",
|
|
3118
3149
|
props: { darkMode: { type: Boolean } },
|
|
3119
3150
|
emits: ["change"],
|
|
3120
3151
|
setup(t, { emit: n }) {
|
|
3121
|
-
let r = n, { t: i } =
|
|
3152
|
+
let r = n, { t: i } = H();
|
|
3122
3153
|
return (n, a) => (e(), v("button", {
|
|
3123
3154
|
class: "tpl-dark-mode-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all tpl:duration-150",
|
|
3124
3155
|
style: S({
|
|
@@ -3136,37 +3167,37 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
3136
3167
|
"leave-to-class": "tpl-icon-leave-to",
|
|
3137
3168
|
mode: "out-in"
|
|
3138
3169
|
}, {
|
|
3139
|
-
default: M(() => [t.darkMode ? (e(), C(T(
|
|
3170
|
+
default: M(() => [t.darkMode ? (e(), C(T(Ot), {
|
|
3140
3171
|
key: "moon",
|
|
3141
3172
|
size: 18,
|
|
3142
3173
|
"stroke-width": 1.5
|
|
3143
|
-
})) : (e(), C(T(
|
|
3174
|
+
})) : (e(), C(T(Ft), {
|
|
3144
3175
|
key: "sun",
|
|
3145
3176
|
size: 18,
|
|
3146
3177
|
"stroke-width": 1.5
|
|
3147
3178
|
}))]),
|
|
3148
3179
|
_: 1
|
|
3149
|
-
})], 12,
|
|
3180
|
+
})], 12, Us));
|
|
3150
3181
|
}
|
|
3151
|
-
}), [["__scopeId", "data-v-f8694f76"]]),
|
|
3182
|
+
}), [["__scopeId", "data-v-f8694f76"]]), Gs = {
|
|
3152
3183
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
3153
3184
|
style: {
|
|
3154
3185
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
3155
3186
|
"backdrop-filter": "blur(8px)",
|
|
3156
3187
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
3157
3188
|
}
|
|
3158
|
-
},
|
|
3189
|
+
}, Ks = {
|
|
3159
3190
|
href: "https://github.com/templatical/sdk",
|
|
3160
3191
|
target: "_blank",
|
|
3161
3192
|
rel: "noopener noreferrer",
|
|
3162
3193
|
class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
|
|
3163
3194
|
style: { "text-decoration": "none" }
|
|
3164
|
-
},
|
|
3195
|
+
}, qs = /* @__PURE__ */ m({
|
|
3165
3196
|
__name: "EditorFooter",
|
|
3166
3197
|
props: { positionClass: {} },
|
|
3167
3198
|
setup(t) {
|
|
3168
|
-
let { t: n } =
|
|
3169
|
-
return (r, i) => (e(), v("footer", { class: p(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", t.positionClass]) }, [_("div",
|
|
3199
|
+
let { t: n } = H();
|
|
3200
|
+
return (r, i) => (e(), v("footer", { class: p(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", t.positionClass]) }, [_("div", Gs, [
|
|
3170
3201
|
_("span", null, D(T(n).footer.poweredBy), 1),
|
|
3171
3202
|
i[0] ||= _("a", {
|
|
3172
3203
|
href: "https://templatical.com",
|
|
@@ -3181,32 +3212,32 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
3181
3212
|
alt: ""
|
|
3182
3213
|
}), d(" Templatical ")], -1),
|
|
3183
3214
|
i[1] ||= _("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
|
|
3184
|
-
_("a",
|
|
3215
|
+
_("a", Ks, D(T(n).footer.openSource), 1)
|
|
3185
3216
|
])], 2));
|
|
3186
3217
|
}
|
|
3187
|
-
}),
|
|
3218
|
+
}), Js = ["aria-labelledby", "data-tpl-theme"], Ys = { 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" }, Xs = ["id"], Zs = ["aria-label"], Qs = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, $s = [
|
|
3188
3219
|
"id",
|
|
3189
3220
|
"placeholder",
|
|
3190
3221
|
"aria-label",
|
|
3191
3222
|
"aria-activedescendant"
|
|
3192
|
-
],
|
|
3223
|
+
], ec = {
|
|
3193
3224
|
key: 0,
|
|
3194
3225
|
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",
|
|
3195
3226
|
"data-testid": "merge-tag-picker-group-pills"
|
|
3196
|
-
},
|
|
3227
|
+
}, tc = ["data-group-name", "onClick"], nc = ["aria-label"], rc = {
|
|
3197
3228
|
key: 0,
|
|
3198
3229
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3199
3230
|
"data-testid": "merge-tag-picker-empty"
|
|
3200
|
-
},
|
|
3231
|
+
}, ic = {
|
|
3201
3232
|
key: 1,
|
|
3202
3233
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3203
3234
|
"data-testid": "merge-tag-picker-empty"
|
|
3204
|
-
},
|
|
3235
|
+
}, ac = [
|
|
3205
3236
|
"aria-expanded",
|
|
3206
3237
|
"data-group-name",
|
|
3207
3238
|
"data-group-collapsed",
|
|
3208
3239
|
"onClick"
|
|
3209
|
-
],
|
|
3240
|
+
], oc = { class: "tpl:ml-1 tpl:font-normal" }, sc = [
|
|
3210
3241
|
"id",
|
|
3211
3242
|
"aria-selected",
|
|
3212
3243
|
"data-selected",
|
|
@@ -3215,13 +3246,13 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
3215
3246
|
"title",
|
|
3216
3247
|
"onMousemove",
|
|
3217
3248
|
"onClick"
|
|
3218
|
-
],
|
|
3249
|
+
], cc = { class: "tpl:text-sm tpl:font-medium" }, lc = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, uc = {
|
|
3219
3250
|
key: 0,
|
|
3220
3251
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3221
|
-
},
|
|
3252
|
+
}, dc = "tpl-merge-tag-picker-list", fc = /* @__PURE__ */ m({
|
|
3222
3253
|
__name: "MergeTagPickerModal",
|
|
3223
3254
|
setup(r) {
|
|
3224
|
-
let i =
|
|
3255
|
+
let i = Ae(We, "MergeTagPickerModal"), { t: s, format: c } = H(), l = A(De, null), d = A(ke, null), m = u(""), x = Te(m, 200), w = u(null), O = g(() => x.value.trim().length > 0), j = u(0), N = g(() => i.tags.value.some((e) => !!e.group)), P = u(/* @__PURE__ */ new Set());
|
|
3225
3256
|
function F(e) {
|
|
3226
3257
|
return P.value.has(e);
|
|
3227
3258
|
}
|
|
@@ -3236,7 +3267,7 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
3236
3267
|
t.value,
|
|
3237
3268
|
t.description ?? ""
|
|
3238
3269
|
].join(" ").toLowerCase().includes(e)) : i.tags.value;
|
|
3239
|
-
}),
|
|
3270
|
+
}), R = g(() => {
|
|
3240
3271
|
if (!N.value) return [];
|
|
3241
3272
|
let e = s.mergeTag.picker.otherGroup, t = /* @__PURE__ */ new Set(), n = [];
|
|
3242
3273
|
for (let r of i.tags.value) {
|
|
@@ -3244,7 +3275,7 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
3244
3275
|
t.has(i) || (t.add(i), n.push(i));
|
|
3245
3276
|
}
|
|
3246
3277
|
return n;
|
|
3247
|
-
}),
|
|
3278
|
+
}), z = g(() => {
|
|
3248
3279
|
let e = L.value;
|
|
3249
3280
|
if (!N.value || O.value) return e.map((e, t) => ({
|
|
3250
3281
|
kind: "tag",
|
|
@@ -3270,42 +3301,42 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
3270
3301
|
}), a++;
|
|
3271
3302
|
}
|
|
3272
3303
|
return i;
|
|
3273
|
-
}),
|
|
3304
|
+
}), B = g(() => z.value.flatMap((e) => e.kind === "tag" ? [e.tag] : []));
|
|
3274
3305
|
a(() => i.isOpen.value, (e) => {
|
|
3275
3306
|
e && (m.value = "", j.value = 0, P.value = /* @__PURE__ */ new Set(), n(() => {
|
|
3276
3307
|
w.value?.focus();
|
|
3277
3308
|
}));
|
|
3278
|
-
}), a(
|
|
3309
|
+
}), a(B, (e) => {
|
|
3279
3310
|
j.value >= e.length && (j.value = Math.max(0, e.length - 1));
|
|
3280
3311
|
});
|
|
3281
|
-
function
|
|
3312
|
+
function ee(e) {
|
|
3282
3313
|
i.resolve(e);
|
|
3283
3314
|
}
|
|
3284
|
-
function
|
|
3315
|
+
function te() {
|
|
3285
3316
|
i.resolve(null);
|
|
3286
3317
|
}
|
|
3287
|
-
function
|
|
3288
|
-
if (
|
|
3318
|
+
function ne(e) {
|
|
3319
|
+
if (B.value.length === 0) return;
|
|
3289
3320
|
let t = j.value + e;
|
|
3290
|
-
j.value = Math.max(0, Math.min(
|
|
3321
|
+
j.value = Math.max(0, Math.min(B.value.length - 1, t)), ae();
|
|
3291
3322
|
}
|
|
3292
|
-
let
|
|
3293
|
-
function
|
|
3323
|
+
let re = u(null), ie = u({});
|
|
3324
|
+
function V(e, t) {
|
|
3294
3325
|
ie.value[e] = t ?? null;
|
|
3295
3326
|
}
|
|
3296
|
-
function
|
|
3327
|
+
function ae() {
|
|
3297
3328
|
n(() => {
|
|
3298
|
-
let e =
|
|
3329
|
+
let e = re.value;
|
|
3299
3330
|
e && e.querySelector(`[data-merge-tag-index="${j.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
3300
3331
|
});
|
|
3301
3332
|
}
|
|
3302
|
-
function
|
|
3333
|
+
function oe(e) {
|
|
3303
3334
|
if (P.value.has(e)) {
|
|
3304
3335
|
let t = new Set(P.value);
|
|
3305
3336
|
t.delete(e), P.value = t;
|
|
3306
3337
|
}
|
|
3307
3338
|
n(() => {
|
|
3308
|
-
let t =
|
|
3339
|
+
let t = re.value;
|
|
3309
3340
|
if (!t) return;
|
|
3310
3341
|
let n = 0, r = !1;
|
|
3311
3342
|
for (let i of Array.from(t.children)) {
|
|
@@ -3321,55 +3352,55 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
3321
3352
|
});
|
|
3322
3353
|
});
|
|
3323
3354
|
}
|
|
3324
|
-
function
|
|
3325
|
-
if (e.key === "ArrowDown") e.preventDefault(),
|
|
3326
|
-
else if (e.key === "ArrowUp") e.preventDefault(),
|
|
3355
|
+
function se(e) {
|
|
3356
|
+
if (e.key === "ArrowDown") e.preventDefault(), ne(1);
|
|
3357
|
+
else if (e.key === "ArrowUp") e.preventDefault(), ne(-1);
|
|
3327
3358
|
else if (e.key === "Enter") {
|
|
3328
3359
|
e.preventDefault();
|
|
3329
|
-
let t =
|
|
3330
|
-
t &&
|
|
3360
|
+
let t = B.value[j.value];
|
|
3361
|
+
t && ee(t);
|
|
3331
3362
|
}
|
|
3332
3363
|
}
|
|
3333
|
-
function
|
|
3334
|
-
if (
|
|
3364
|
+
function ce() {
|
|
3365
|
+
if (B.value.length !== 0) return `${dc}-opt-${j.value}`;
|
|
3335
3366
|
}
|
|
3336
|
-
function
|
|
3337
|
-
return `${
|
|
3367
|
+
function le(e) {
|
|
3368
|
+
return `${dc}-opt-${e}`;
|
|
3338
3369
|
}
|
|
3339
|
-
let
|
|
3340
|
-
return (n, r) => (e(), C(
|
|
3370
|
+
let ue = g(() => i.tags.value.length === 0), de = g(() => !ue.value && L.value.length === 0), fe = g(() => N.value && R.value.length > 1 && !O.value);
|
|
3371
|
+
return (n, r) => (e(), C(xt, {
|
|
3341
3372
|
visible: T(i).isOpen.value,
|
|
3342
|
-
onClose:
|
|
3343
|
-
onKeydown:
|
|
3373
|
+
onClose: te,
|
|
3374
|
+
onKeydown: se
|
|
3344
3375
|
}, {
|
|
3345
3376
|
default: M(() => [_("div", {
|
|
3346
3377
|
role: "dialog",
|
|
3347
3378
|
"aria-modal": "true",
|
|
3348
|
-
"aria-labelledby": `${
|
|
3379
|
+
"aria-labelledby": `${dc}-title`,
|
|
3349
3380
|
"data-tpl-theme": T(d),
|
|
3350
3381
|
"data-testid": "merge-tag-picker-modal",
|
|
3351
3382
|
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)]",
|
|
3352
3383
|
style: S(T(l))
|
|
3353
3384
|
}, [
|
|
3354
|
-
_("header",
|
|
3355
|
-
id: `${
|
|
3385
|
+
_("header", Ys, [_("h2", {
|
|
3386
|
+
id: `${dc}-title`,
|
|
3356
3387
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3357
|
-
}, D(T(s).mergeTag.picker.title), 9,
|
|
3388
|
+
}, D(T(s).mergeTag.picker.title), 9, Xs), _("button", {
|
|
3358
3389
|
type: "button",
|
|
3359
3390
|
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)]",
|
|
3360
3391
|
"aria-label": T(s).mergeTag.picker.close,
|
|
3361
3392
|
"data-testid": "merge-tag-picker-close",
|
|
3362
|
-
onClick:
|
|
3363
|
-
}, [k(T(
|
|
3393
|
+
onClick: te
|
|
3394
|
+
}, [k(T(ct), {
|
|
3364
3395
|
size: 16,
|
|
3365
3396
|
"stroke-width": 2
|
|
3366
|
-
})], 8,
|
|
3367
|
-
_("div",
|
|
3397
|
+
})], 8, Zs)]),
|
|
3398
|
+
_("div", Qs, [k(T(Je), {
|
|
3368
3399
|
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)]",
|
|
3369
3400
|
size: 14,
|
|
3370
3401
|
"stroke-width": 2
|
|
3371
3402
|
}), t(_("input", {
|
|
3372
|
-
id: `${
|
|
3403
|
+
id: `${dc}-search`,
|
|
3373
3404
|
ref_key: "searchInputRef",
|
|
3374
3405
|
ref: w,
|
|
3375
3406
|
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
@@ -3377,50 +3408,50 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
3377
3408
|
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)]",
|
|
3378
3409
|
placeholder: T(s).mergeTag.picker.searchPlaceholder,
|
|
3379
3410
|
"aria-label": T(s).mergeTag.picker.searchAriaLabel,
|
|
3380
|
-
"aria-controls":
|
|
3381
|
-
"aria-activedescendant":
|
|
3411
|
+
"aria-controls": dc,
|
|
3412
|
+
"aria-activedescendant": ce(),
|
|
3382
3413
|
"data-testid": "merge-tag-picker-search",
|
|
3383
3414
|
onKeydown: r[1] ||= E(h(() => {}, ["prevent"]), ["enter"])
|
|
3384
|
-
}, null, 40,
|
|
3385
|
-
|
|
3415
|
+
}, null, 40, $s), [[f, m.value]])]),
|
|
3416
|
+
fe.value ? (e(), v("div", ec, [(e(!0), v(y, null, o(R.value, (t) => (e(), v("button", {
|
|
3386
3417
|
key: t,
|
|
3387
3418
|
type: "button",
|
|
3388
3419
|
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)]",
|
|
3389
3420
|
"data-testid": "merge-tag-picker-group-pill",
|
|
3390
3421
|
"data-group-name": t,
|
|
3391
|
-
onClick: (e) =>
|
|
3392
|
-
}, D(t), 9,
|
|
3422
|
+
onClick: (e) => oe(t)
|
|
3423
|
+
}, D(t), 9, tc))), 128))])) : b("", !0),
|
|
3393
3424
|
_("div", {
|
|
3394
|
-
id:
|
|
3425
|
+
id: dc,
|
|
3395
3426
|
ref_key: "listRef",
|
|
3396
|
-
ref:
|
|
3427
|
+
ref: re,
|
|
3397
3428
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3398
3429
|
role: "listbox",
|
|
3399
3430
|
"aria-label": T(s).mergeTag.picker.title,
|
|
3400
3431
|
"data-testid": "merge-tag-picker-list"
|
|
3401
|
-
}, [
|
|
3432
|
+
}, [ue.value ? (e(), v("div", rc, D(T(s).mergeTag.picker.empty), 1)) : de.value ? (e(), v("div", ic, D(T(s).mergeTag.picker.noResults), 1)) : (e(!0), v(y, { key: 2 }, o(z.value, (t, n) => (e(), v(y, { key: n }, [t.kind === "header" ? (e(), v("button", {
|
|
3402
3433
|
key: 0,
|
|
3403
3434
|
ref_for: !0,
|
|
3404
|
-
ref: (e) =>
|
|
3435
|
+
ref: (e) => V(t.group, e),
|
|
3405
3436
|
type: "button",
|
|
3406
3437
|
"aria-expanded": !F(t.group),
|
|
3407
|
-
"aria-controls":
|
|
3438
|
+
"aria-controls": dc,
|
|
3408
3439
|
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)]",
|
|
3409
3440
|
"data-testid": "merge-tag-picker-group-header",
|
|
3410
3441
|
"data-group-name": t.group,
|
|
3411
3442
|
"data-group-collapsed": F(t.group) ? "true" : "false",
|
|
3412
3443
|
onClick: (e) => I(t.group)
|
|
3413
3444
|
}, [
|
|
3414
|
-
k(T(
|
|
3445
|
+
k(T(Ge), {
|
|
3415
3446
|
size: 12,
|
|
3416
3447
|
"stroke-width": 2,
|
|
3417
3448
|
class: p(["tpl:transition-transform", F(t.group) ? "tpl:-rotate-90" : ""])
|
|
3418
3449
|
}, null, 8, ["class"]),
|
|
3419
3450
|
_("span", null, D(t.group), 1),
|
|
3420
|
-
_("span",
|
|
3421
|
-
], 8,
|
|
3451
|
+
_("span", oc, " (" + D(T(c)(T(s).mergeTag.picker.groupCount, { count: t.count })) + ") ", 1)
|
|
3452
|
+
], 8, ac)) : (e(), v("button", {
|
|
3422
3453
|
key: 1,
|
|
3423
|
-
id:
|
|
3454
|
+
id: le(t.index),
|
|
3424
3455
|
type: "button",
|
|
3425
3456
|
role: "option",
|
|
3426
3457
|
"aria-selected": t.index === j.value,
|
|
@@ -3431,16 +3462,16 @@ var Oa = { class: "tpl:mb-3.5" }, ka = ["value"], Aa = ["value"], ja = /* @__PUR
|
|
|
3431
3462
|
class: p(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", t.index === j.value ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:bg-transparent tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
3432
3463
|
"data-testid": "merge-tag-picker-item",
|
|
3433
3464
|
onMousemove: (e) => j.value = t.index,
|
|
3434
|
-
onClick: (e) =>
|
|
3465
|
+
onClick: (e) => ee(t.tag)
|
|
3435
3466
|
}, [
|
|
3436
|
-
_("span",
|
|
3437
|
-
_("span",
|
|
3438
|
-
t.tag.description ? (e(), v("span",
|
|
3439
|
-
], 42,
|
|
3440
|
-
], 12,
|
|
3467
|
+
_("span", cc, D(t.tag.label), 1),
|
|
3468
|
+
_("span", lc, D(t.tag.value), 1),
|
|
3469
|
+
t.tag.description ? (e(), v("span", uc, D(t.tag.description), 1)) : b("", !0)
|
|
3470
|
+
], 42, sc))], 64))), 128))], 8, nc)
|
|
3471
|
+
], 12, Js)]),
|
|
3441
3472
|
_: 1
|
|
3442
3473
|
}, 8, ["visible"]));
|
|
3443
3474
|
}
|
|
3444
3475
|
});
|
|
3445
3476
|
//#endregion
|
|
3446
|
-
export {
|
|
3477
|
+
export { Bs as a, Jt as c, At as d, Hs as i, qt as l, qs as n, Ls as o, Ws as r, an as s, fc as t, It as u };
|