@templatical/editor 0.55.0 → 0.56.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-D5QosKvB.js → AiAltTextPopover-CpZ7UeAZ.js} +4 -4
- package/dist/{AiAltTextReview-D1W_lrI_.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
- package/dist/{AiChatPanel-C8SeEJRP.js → AiChatPanel-Cy05P-iO.js} +56 -56
- package/dist/{AiPanels-CR6zphjP.js → AiPanels-CwKmXzyr.js} +1 -1
- package/dist/{AiRewriteMenu-BwztoMov.js → AiRewriteMenu-DgqJHnza.js} +13 -13
- package/dist/{BlockIssueBadge-DaPTq1RE.js → BlockIssueBadge-CxHJmuOh.js} +5 -5
- package/dist/BlockPreviewCanvas-DEmNZkEG.js +154 -0
- package/dist/{CloudHeaderExtras-XpjJjn3o.js → CloudHeaderExtras-Cqhw-jMz.js} +1 -1
- package/dist/{CloudPanels-Baoaj6Xf.js → CloudPanels-Bmlf05Il.js} +12 -12
- package/dist/{CollaborationNotices-Cnx0XHzZ.js → CollaborationNotices-C27GCMvK.js} +8 -8
- package/dist/{CollaboratorBar-BaBoNhwB.js → CollaboratorBar-CLQjksX-.js} +2 -2
- package/dist/{CommentsPanel-Ck3QmqiC.js → CommentsPanel-B5NqPMmY.js} +1 -1
- package/dist/{CommentsSidebar-CHknhOar.js → CommentsSidebar-BDrcrDxS.js} +42 -42
- package/dist/{CountdownBlock-BMezkFbJ.js → CountdownBlock-D8dqjm3F.js} +6 -6
- package/dist/{CountdownToolbar-CA_gDIdZ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
- package/dist/{IssuesPanel-nmFhWG1p.js → IssuesPanel-uwuzeMSW.js} +89 -89
- package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
- package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CDK_9D7P.js} +10 -10
- package/dist/{LogicTagInsertButton-qZ82VMFx.js → LogicTagInsertButton-BSolF7Fd.js} +24 -24
- package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-C8yc9dxt.js} +7 -7
- package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-FI4I8asn.js} +1 -1
- package/dist/{MergeTagInput-JJeZbFkD.js → MergeTagInput-B1nl2ZMT.js} +12 -12
- package/dist/{MergeTagModeToggle-DDucd1eC.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
- package/dist/{MergeTagTextarea-dQ2LRrNB.js → MergeTagTextarea-DJlf3VbS.js} +5 -5
- package/dist/{ParagraphEditor-VXYwGoz_.js → ParagraphEditor-Dqco128s.js} +173 -173
- package/dist/{RestoreVersionDialog-BibNvAaJ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
- package/dist/{RichTextEditorContent-CU5EOlM_.js → RichTextEditorContent-xIEF0Y3Z.js} +8 -8
- package/dist/{SaveBlockDialog-S9aFi0cy.js → SaveBlockDialog-CQlCP_XC.js} +47 -47
- package/dist/{SavedBlocksBrowserModal-DIdn6B0J.js → SavedBlocksBrowserModal-BXA32Fx6.js} +24 -24
- package/dist/{SavedBlocksPanels-Cme2M6u8.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
- package/dist/{SavedBlocksPickBar-BDmA7r3m.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
- package/dist/{TemplateSettings-C_LHLm5M.js → TemplateSettings-CYFtR8zv.js} +41 -41
- package/dist/{TestEmailModal-CLIRn7eL.js → TestEmailModal-BbaL17HO.js} +20 -20
- package/dist/{TestEmailPanel-frdtjC8h.js → TestEmailPanel-DhB1CSpg.js} +1 -1
- package/dist/{TitleEditor-D5kC56Jl.js → TitleEditor-3BRl8u5l.js} +22 -22
- package/dist/{Toolbar-D904Yw_R.js → Toolbar-pzNIakGM.js} +1090 -856
- package/dist/{TplModal-BBdotDf1.js → TplModal-WNuWhHZm.js} +4 -4
- package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu--T-Qp_mH.js} +17 -17
- package/dist/{VersionHistoryPanels-DhagEgOk.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
- package/dist/{VersionPreviewBanner-BPP939cD.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
- package/dist/WrapperBlock-CjfCPceb.js +56 -0
- package/dist/{blockTypeIcons-CoRQV_hP.js → blockTypeIcons-12OMwVyN.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +8 -0
- package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js → AiAltTextPopover-PFjTrl0y.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js → AiAltTextReview-BMjzvApH.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js → AiChatPanel-C2gpq4kP.js} +107 -107
- package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-BblCSkQy.js → AiPanels-Cx3PE2mE.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-BblCSkQy.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js → AiRewriteMenu-CnkyjPEu.js} +13 -13
- package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js → BlockIssueBadge-DncZ-HDf.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js → CloudHeaderExtras-uUJYJFJ6.js} +2 -2
- package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js.map → CloudHeaderExtras-uUJYJFJ6.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js → CloudPanels-CRztnw4M.js} +4 -4
- package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js → CollaborationNotices-IuLYT2x7.js} +9 -9
- package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js.map → CollaborationNotices-IuLYT2x7.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js → CollaboratorBar-C1ZI2xwa.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js.map → CollaboratorBar-C1ZI2xwa.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js → CommentsPanel-lgjJNrrY.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js → CommentsSidebar-DTold7iy.js} +214 -214
- package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js → CountdownBlock-8aPSExrv.js} +7 -7
- package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js → CountdownToolbar-CnWQEW5g.js} +50 -50
- package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js → IssuesPanel-CrplCzo8.js} +13 -13
- package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js → LanguageMenu-B6MNInCL.js} +57 -57
- package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js → LocaleNotices-TxeAl8Iq.js} +10 -10
- package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-Bt2PXbQ0.js → LogicTagInsertButton-DvSVx2DB.js} +30 -30
- package/dist/cdn/chunks/LogicTagInsertButton-DvSVx2DB.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js → MediaEditModal-tGK6htBl.js} +8 -8
- package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js → MediaPanels-BVrQYz2C.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js → MergeTagInput-DeuNH3re.js} +13 -13
- package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
- package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js → MergeTagTextarea-B2xxIU3e.js} +6 -6
- package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
- package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
- package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js → RichTextEditorContent-Dze4C9VI.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
- package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
- package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js → TemplateSettings-YwwRbxPc.js} +102 -102
- package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js → TestEmailModal-BiFP2Cbx.js} +20 -20
- package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js → TestEmailPanel-BrivPMk2.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js → TitleEditor-CzPkkL2s.js} +19 -19
- package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-NEE8qxYh.js → Toolbar-VH07SzX7.js} +1153 -919
- package/dist/cdn/chunks/Toolbar-VH07SzX7.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-B1MgvtX8.js → TplModal-DMe6J811.js} +6 -6
- package/dist/cdn/chunks/{TplModal-B1MgvtX8.js.map → TplModal-DMe6J811.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js → VersionHistoryMenu-DkwbKhBl.js} +16 -16
- package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
- package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-CCCIcqe2.js +58 -0
- package/dist/cdn/chunks/WrapperBlock-CCCIcqe2.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js → blockTypeIcons-CzYA5DF9.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js.map → blockTypeIcons-CzYA5DF9.js.map} +1 -1
- package/dist/cdn/chunks/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +9 -1
- package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
- package/dist/cdn/chunks/composables-D3lsO7Io.js +3101 -0
- package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js → createCloudRuntime-CE79GB1H.js} +16 -16
- package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
- package/dist/{de-Cc6Ue0UD.js → cdn/chunks/de-BLFp3nWx.js} +10 -0
- package/dist/cdn/chunks/de-BLFp3nWx.js.map +1 -0
- package/dist/cdn/chunks/dist-Cf1pSluo.js +405 -0
- package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-Cf1pSluo.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-erQEOHZN.js → editor-modal-CN69NlOK.js} +187 -187
- package/dist/cdn/chunks/{editor-modal-erQEOHZN.js.map → editor-modal-CN69NlOK.js.map} +1 -1
- package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
- package/dist/cdn/chunks/{en-BX4FujAQ.js → en-DGGQJGbm.js} +9 -1
- package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
- package/dist/cdn/chunks/{es-Do5b-MKU.js → es-DTY9qgLv.js} +9 -1
- package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BcwkOjVq.js → extensions-8dlM-fU4.js} +112 -112
- package/dist/cdn/chunks/extensions-8dlM-fU4.js.map +1 -0
- package/dist/{fr-S1n2Ebzp.js → cdn/chunks/fr-L4FqO9Gp.js} +10 -0
- package/dist/cdn/chunks/{fr-S1n2Ebzp.js.map → fr-L4FqO9Gp.js.map} +1 -1
- package/dist/cdn/chunks/{icons-Da9GKjPx.js → icons-DHExFLlT.js} +43 -43
- package/dist/cdn/chunks/{icons-Da9GKjPx.js.map → icons-DHExFLlT.js.map} +1 -1
- package/dist/cdn/chunks/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +9 -1
- package/dist/cdn/chunks/ja-6uOXkh4v.js.map +1 -0
- package/dist/cdn/chunks/{keys-CoQtCqNv.js → keys-BUmIvYy3.js} +4 -4
- package/dist/cdn/chunks/keys-BUmIvYy3.js.map +1 -0
- package/dist/{nl-0JSWaZpT.js → cdn/chunks/nl-DCxuxwNq.js} +10 -0
- package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-BrGw5jxk.js → normalizeMergeTagMarkup-aWjkotui.js} +67 -67
- package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js → preRenderCustomBlocks-Dn6dFUwx.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
- package/dist/{pt-BR-D3VlIMDZ.js → cdn/chunks/pt-BR-CBkcrebr.js} +10 -0
- package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js → sanitizeHtml-B3njfkSy.js} +11 -11
- package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js → socialIcons-BFgc3qqJ.js} +354 -341
- package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Diw9SLIe.js → src-C9JWWxAk.js} +419 -423
- package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
- package/dist/cdn/chunks/src-GgKlXNxy.js +710 -0
- package/dist/cdn/chunks/src-GgKlXNxy.js.map +1 -0
- package/dist/cdn/chunks/{src-v47QHNmB.js → src-mXG-Of9A.js} +669 -662
- package/dist/cdn/chunks/src-mXG-Of9A.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-C940SvId.js} +3 -3
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js.map → tiptap-C940SvId.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js → useCloudI18n-Xsih9yRH.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js.map → useCloudI18n-Xsih9yRH.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js → useEditorRoot-Beau2Z_T.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js.map → useEditorRoot-Beau2Z_T.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-BnJYydPv.js → useI18n-D8s7HtTn.js} +2 -2
- package/dist/cdn/chunks/{useI18n-BnJYydPv.js.map → useI18n-D8s7HtTn.js.map} +1 -1
- package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js → useLocalizedDisplay-Bgg4qpev.js} +6 -6
- package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js → useLogicTag-B0PDeDxl.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js → useMergeTag-BSU75bKk.js} +8 -8
- package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js → usePopoverPosition-esO6wjvU.js} +5 -5
- package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js.map → usePopoverPosition-esO6wjvU.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js → useScrollToBlock-CJuUu7Xj.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js.map → useScrollToBlock-CJuUu7Xj.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js → withCurrentFont-QqBilClC.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +814 -817
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-XMnOOIEC.js → check-CcuCoJDh.js} +1 -1
- package/dist/{chevron-down-DmamTEWQ.js → chevron-down-BfYIbFbC.js} +1 -1
- package/dist/{chevron-right-BEFXOH27.js → chevron-right-DyjFqY35.js} +1 -1
- package/dist/{chevron-up-Dw7woXj8.js → chevron-up-BHEIxuS-.js} +1 -1
- package/dist/{circle-alert-BTKC9vkq.js → circle-alert-Tq7kAh9S.js} +1 -1
- package/dist/{clock-BVT5u2uG.js → clock-Df0ZiXwQ.js} +1 -1
- package/dist/{composables-DPgNn9GZ.js → composables-DreAt_0A.js} +1660 -1620
- package/dist/{createCloudRuntime-Bw8TLmQ8.js → createCloudRuntime-CL4tUlDC.js} +15 -15
- package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
- package/dist/{cdn/chunks/de-Cc6Ue0UD.js → de-BLFp3nWx.js} +8 -2
- package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
- package/dist/{dist-CBdk1Vcb.js → dist-BMUUt3zJ.js} +284 -277
- package/dist/{dist-6DU0me3E.js → dist-B_0FPmoy.js} +1 -1
- package/dist/{dist-B8dY8drK.js → dist-BjzK1g4Z.js} +1 -1
- package/dist/{dist-54VCNoC0.js → dist-BsumKKh9.js} +1 -1
- package/dist/{dist-BWflWcpW.js → dist-C3avsUq9.js} +2 -2
- package/dist/{dist-fqSers8_.js → dist-CCLRTtJP.js} +197 -197
- package/dist/dist-CiYotUR8.js +406 -0
- package/dist/{dist-C3hu_C3w.js → dist-Cr1CLCmx.js} +1 -1
- package/dist/{dist-D_XrUEET.js → dist-CsknfjrZ.js} +3 -3
- package/dist/{dist-TAv500j6.js → dist-DDytHU_6.js} +1 -1
- package/dist/{dist-CcOn7WCo.js → dist-DKV9m4Uu.js} +1 -1
- package/dist/{dist-B9a7iVye.js → dist-Dq9VnANT.js} +1 -1
- package/dist/{dist-DZ3X-uB8.js → dist-ZrT0vAB6.js} +1 -1
- package/dist/{editor-modal-BeX6otLk.js → editor-modal-BD32TXws.js} +107 -107
- package/dist/{en-BX4FujAQ.js → en-DGGQJGbm.js} +8 -0
- package/dist/en-Dgs_-NBw.js +1 -0
- package/dist/{es-Do5b-MKU.js → es-DTY9qgLv.js} +8 -0
- package/dist/{extensions-QFAARrjF.js → extensions-DKxHlSd7.js} +385 -385
- package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
- package/dist/{cdn/chunks/fr-S1n2Ebzp.js → fr-L4FqO9Gp.js} +8 -2
- package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
- package/dist/index.d.ts +60 -12
- package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
- package/dist/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +8 -0
- package/dist/{keys-BCqskl51.js → keys-w_VRjoMu.js} +3 -3
- package/dist/{link-oDn9AR2w.js → link-DhzPI4Hn.js} +1 -1
- package/dist/{list-C5t07dp8.js → list-DVGn7Ik2.js} +1 -1
- package/dist/{loader-circle-k6xvKgUB.js → loader-circle-DqKWsMHO.js} +1 -1
- package/dist/{message-circle-C23R6OJR.js → message-circle-C4TonoBs.js} +1 -1
- package/dist/{cdn/chunks/nl-0JSWaZpT.js → nl-DCxuxwNq.js} +8 -2
- package/dist/{normalizeMergeTagMarkup-BS0nRvhq.js → normalizeMergeTagMarkup-Da9JAgx7.js} +75 -75
- package/dist/{package-C90eQ7NU.js → package-9OkiEO4S.js} +1 -1
- package/dist/{pencil-BK7GrQuA.js → pencil-M9vkOB7C.js} +1 -1
- package/dist/{plus-Cr0Mis63.js → plus-DxZiv9YC.js} +1 -1
- package/dist/{preRenderCustomBlocks-CiKvKd8V.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-D3VlIMDZ.js → pt-BR-CBkcrebr.js} +8 -2
- package/dist/{refresh-cw-_ZLOIEvA.js → refresh-cw-UY8_sdFG.js} +1 -1
- package/dist/{rotate-ccw-CB5wsHwv.js → rotate-ccw-BFTGCpHn.js} +1 -1
- package/dist/{sanitizeHtml-USjTyALR.js → sanitizeHtml-wBibnBF4.js} +6 -6
- package/dist/{search-BmrQNox8.js → search-RuGJnMEn.js} +1 -1
- package/dist/{send-blAsIBBg.js → send-DGB1ar02.js} +1 -1
- package/dist/{smartphone-BPpWYrwV.js → smartphone-CVA29CU_.js} +1 -1
- package/dist/{socialIcons-NvIg5ahU.js → socialIcons-oo4uL16Y.js} +427 -414
- package/dist/{sparkles-OqIxrNp-.js → sparkles-IHfEwEcd.js} +1 -1
- package/dist/{square-BP-V7iT-.js → square-_Cl44UU6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +922 -925
- package/dist/{text-align-start-4mwX2o-F.js → text-align-start-Dqk2Xt_Q.js} +13 -13
- package/dist/{trash-B99WixTA.js → trash-Cr7rD5Hh.js} +1 -1
- package/dist/{triangle-alert-CHMiDkHa.js → triangle-alert-CKcpwtUj.js} +1 -1
- package/dist/{upload-Cp8o-hrN.js → upload-DR9pqVON.js} +1 -1
- package/dist/{useCloudI18n-Dh2iydo1.js → useCloudI18n-BczJoFf4.js} +1 -1
- package/dist/{useEditorRoot-DY3mgcHm.js → useEditorRoot-BcXKhM_8.js} +1 -1
- package/dist/{useI18n-CgtvtF4C.js → useI18n-zeWYtWSv.js} +1 -1
- package/dist/useLocalizedDisplay-Cbhx208c.js +31 -0
- package/dist/{useLogicTag-D8zgkXfb.js → useLogicTag-B4Zpk3eo.js} +4 -4
- package/dist/{useMergeTag-k7Kr0nMd.js → useMergeTag-B5qlq8px.js} +8 -8
- package/dist/{usePopoverPosition-VDQjyX_A.js → usePopoverPosition-Br3zt_MQ.js} +4 -4
- package/dist/{useScrollToBlock-B35ObCGK.js → useScrollToBlock-BfOzc1Z6.js} +2 -2
- package/dist/{withCurrentFont-Bzeg_gfH.js → withCurrentFont-m_PHcOD0.js} +1 -1
- package/dist/{x-BIBStNMS.js → x-DZSFHafL.js} +1 -1
- package/package.json +10 -10
- package/dist/BlockPreviewCanvas-C23A6FRm.js +0 -140
- package/dist/LanguageMenu-DcABUYop.js +0 -403
- package/dist/WrapperBlock-BAT3T0Cz.js +0 -44
- package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js +0 -142
- package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js.map +0 -1
- package/dist/cdn/chunks/ca-DIkMxYCN.js.map +0 -1
- package/dist/cdn/chunks/composables-nyxwrM27.js +0 -3061
- package/dist/cdn/chunks/composables-nyxwrM27.js.map +0 -1
- package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +0 -1
- package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
- package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
- package/dist/cdn/chunks/en-BX4FujAQ.js.map +0 -1
- package/dist/cdn/chunks/es-Do5b-MKU.js.map +0 -1
- package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +0 -1
- package/dist/cdn/chunks/ja-DLwcq4bA.js.map +0 -1
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
- package/dist/cdn/chunks/nl-0JSWaZpT.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +0 -1
- package/dist/cdn/chunks/src-Diw9SLIe.js.map +0 -1
- package/dist/cdn/chunks/src-UR3AQocX.js +0 -683
- package/dist/cdn/chunks/src-UR3AQocX.js.map +0 -1
- package/dist/cdn/chunks/src-v47QHNmB.js.map +0 -1
- package/dist/dist-0alKVRc_.js +0 -406
- package/dist/en-Do0SU6tR.js +0 -1
- package/dist/useLocalizedDisplay-LdjosX4w.js +0 -31
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { B as t, F as n, Ft as r, L as i, M as a, Mt as o, P as s, Pt as c, Q as l, U as u, W as d, Z as f, _ as p, c as m, ct as h, d as g, et as _, f as v, g as y, l as b, m as x, r as S,
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { c as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import { t as
|
|
24
|
-
import {
|
|
25
|
-
import { t as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { n as
|
|
30
|
-
import {
|
|
31
|
-
import { n as
|
|
32
|
-
import { t as
|
|
33
|
-
|
|
2
|
+
import { B as t, F as n, Ft as r, L as i, M as a, Mt as o, P as s, Pt as c, Q as l, U as u, W as d, Z as f, _ as p, c as m, ct as h, d as g, et as _, f as v, g as y, l as b, m as x, r as S, rt as C, u as w, v as T, w as E, y as D } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
3
|
+
import { a as O, o as k } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
4
|
+
import { n as A, t as j } from "./MergeTagTextarea-DJlf3VbS.js";
|
|
5
|
+
import { c as M } from "./LogicTagInsertButton-BSolF7Fd.js";
|
|
6
|
+
import { t as N } from "./MergeTagInput-B1nl2ZMT.js";
|
|
7
|
+
import { t as P } from "./ToggleSwitch-R3wCCYE6.js";
|
|
8
|
+
import { C as F, S as I, _ as L, b as ee, c as te, g as R, h as z, r as ne, v as B, y as re } from "./styleConstants-CgiNKdnc.js";
|
|
9
|
+
import { t as ie } from "./link-DhzPI4Hn.js";
|
|
10
|
+
import { t as ae } from "./createLucideIcon-CfBdtoUw.js";
|
|
11
|
+
import { t as V } from "./useI18n-zeWYtWSv.js";
|
|
12
|
+
import { A as oe, Ht as se, _t as ce, ct as le, f as ue, g as de, ht as fe, i as pe, in as me, k as H, kt as he, n as U, on as W, qt as G, r as K, st as q, t as J } from "./dist-BMUUt3zJ.js";
|
|
13
|
+
import { n as ge, t as Y } from "./withCurrentFont-m_PHcOD0.js";
|
|
14
|
+
import { t as _e } from "./languageName-DEEOhDWI.js";
|
|
15
|
+
import { n as X, t as ve } from "./blockTypeIcons-12OMwVyN.js";
|
|
16
|
+
import { t as Z } from "./plus-DxZiv9YC.js";
|
|
17
|
+
import { t as ye } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
18
|
+
import { B as be, T as xe, _ as Se, b as Ce, d as we, f as Te, g as Ee, h as Q, i as De, k as Oe, l as ke, m as Ae, p as je, r as Me, s as Ne, u as Pe, v as Fe } from "./socialIcons-oo4uL16Y.js";
|
|
19
|
+
import { t as Ie } from "./image-C3yuPDxx.js";
|
|
20
|
+
import { B as Le, C as Re, H as ze, O as Be, T as Ve, W as He, Z as Ue, _ as We, b as Ge, h as Ke, p as qe, r as Je, st as Ye, v as Xe } from "./keys-w_VRjoMu.js";
|
|
21
|
+
import { t as Ze } from "./chevron-down-BfYIbFbC.js";
|
|
22
|
+
import { n as Qe, t as $e } from "./smartphone-CVA29CU_.js";
|
|
23
|
+
import { t as et } from "./logger-BOu7oEtk.js";
|
|
24
|
+
import { t as tt } from "./circle-alert-Tq7kAh9S.js";
|
|
25
|
+
import { t as nt } from "./refresh-cw-UY8_sdFG.js";
|
|
26
|
+
import { c as rt, r as it } from "./usePopoverPosition-Br3zt_MQ.js";
|
|
27
|
+
import { t as at } from "./trash-Cr7rD5Hh.js";
|
|
28
|
+
import { t as ot } from "./info-DKja7A68.js";
|
|
29
|
+
import { n as st } from "./useLocalizedDisplay-Cbhx208c.js";
|
|
30
|
+
import { _ as ct } from "./dist-CX7skkvG.js";
|
|
31
|
+
import { n as lt, r as ut, t as dt } from "./text-align-start-Dqk2Xt_Q.js";
|
|
32
|
+
import { t as ft } from "./x-DZSFHafL.js";
|
|
33
|
+
import { n as pt } from "./upload-DR9pqVON.js";
|
|
34
|
+
var mt = ae({
|
|
34
35
|
name: "lock-open",
|
|
35
36
|
size: 24,
|
|
36
37
|
node: [["rect", {
|
|
@@ -46,7 +47,7 @@ var ut = B({
|
|
|
46
47
|
key: "1mm8w8"
|
|
47
48
|
}]],
|
|
48
49
|
aliases: ["unlock"]
|
|
49
|
-
}),
|
|
50
|
+
}), ht = ae({
|
|
50
51
|
name: "lock",
|
|
51
52
|
size: 24,
|
|
52
53
|
node: [["rect", {
|
|
@@ -61,7 +62,7 @@ var ut = B({
|
|
|
61
62
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
62
63
|
key: "fwvmzm"
|
|
63
64
|
}]]
|
|
64
|
-
}),
|
|
65
|
+
}), gt = ae({
|
|
65
66
|
name: "unlink",
|
|
66
67
|
size: 24,
|
|
67
68
|
node: [
|
|
@@ -102,14 +103,14 @@ var ut = B({
|
|
|
102
103
|
key: "ox905f"
|
|
103
104
|
}]
|
|
104
105
|
]
|
|
105
|
-
}),
|
|
106
|
+
}), _t = [
|
|
106
107
|
"aria-checked",
|
|
107
108
|
"aria-label",
|
|
108
109
|
"disabled",
|
|
109
110
|
"aria-disabled",
|
|
110
111
|
"title",
|
|
111
112
|
"onClick"
|
|
112
|
-
],
|
|
113
|
+
], vt = { key: 1 }, $ = /* @__PURE__ */ D({
|
|
113
114
|
__name: "SlidingPillSelect",
|
|
114
115
|
props: {
|
|
115
116
|
options: {},
|
|
@@ -150,18 +151,18 @@ var ut = B({
|
|
|
150
151
|
}),
|
|
151
152
|
title: t.label,
|
|
152
153
|
onClick: (e) => t.disabled || o("update:modelValue", t.value)
|
|
153
|
-
}, [t.icon ? (a(),
|
|
154
|
+
}, [t.icon ? (a(), w(i(t.icon), {
|
|
154
155
|
key: 0,
|
|
155
156
|
size: 14,
|
|
156
157
|
"stroke-width": 2
|
|
157
|
-
})) : (a(), v("span",
|
|
158
|
+
})) : (a(), v("span", vt, r(t.label), 1))], 12, _t))), 128))], 4));
|
|
158
159
|
}
|
|
159
|
-
}),
|
|
160
|
+
}), yt = { class: "tpl:flex tpl:items-stretch" }, bt = [
|
|
160
161
|
"data-testid",
|
|
161
162
|
"value",
|
|
162
163
|
"min",
|
|
163
164
|
"max"
|
|
164
|
-
],
|
|
165
|
+
], xt = /* @__PURE__ */ D({
|
|
165
166
|
__name: "NumberWithSuffix",
|
|
166
167
|
props: {
|
|
167
168
|
modelValue: {},
|
|
@@ -177,22 +178,22 @@ var ut = B({
|
|
|
177
178
|
let t = e.target;
|
|
178
179
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
179
180
|
}
|
|
180
|
-
return (t, n) => (a(), v("div",
|
|
181
|
+
return (t, n) => (a(), v("div", yt, [b("input", {
|
|
181
182
|
type: "number",
|
|
182
183
|
"data-testid": e.testid,
|
|
183
|
-
class: o(h(
|
|
184
|
+
class: o(h(R)),
|
|
184
185
|
value: e.modelValue,
|
|
185
186
|
min: e.min,
|
|
186
187
|
max: e.max,
|
|
187
188
|
onInput: i
|
|
188
|
-
}, null, 42,
|
|
189
|
+
}, null, 42, bt), b("span", { class: o(h(L)) }, r(e.suffix), 3)]));
|
|
189
190
|
}
|
|
190
|
-
}),
|
|
191
|
+
}), St = [
|
|
191
192
|
"aria-pressed",
|
|
192
193
|
"aria-label",
|
|
193
194
|
"title",
|
|
194
195
|
"data-testid"
|
|
195
|
-
],
|
|
196
|
+
], Ct = /* @__PURE__ */ D({
|
|
196
197
|
__name: "LinkToggle",
|
|
197
198
|
props: {
|
|
198
199
|
linked: { type: Boolean },
|
|
@@ -211,20 +212,20 @@ var ut = B({
|
|
|
211
212
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
212
213
|
"data-testid": e.testid,
|
|
213
214
|
onClick: r[0] ||= (e) => n("toggle")
|
|
214
|
-
}, [e.linked ? (a(),
|
|
215
|
+
}, [e.linked ? (a(), w(h(ie), {
|
|
215
216
|
key: 0,
|
|
216
217
|
size: 14,
|
|
217
218
|
"stroke-width": 2
|
|
218
|
-
})) : (a(),
|
|
219
|
+
})) : (a(), w(h(gt), {
|
|
219
220
|
key: 1,
|
|
220
221
|
size: 14,
|
|
221
222
|
"stroke-width": 2
|
|
222
|
-
}))], 10,
|
|
223
|
+
}))], 10, St));
|
|
223
224
|
}
|
|
224
|
-
}),
|
|
225
|
+
}), wt = {
|
|
225
226
|
key: 0,
|
|
226
227
|
class: "tpl:mb-3.5"
|
|
227
|
-
},
|
|
228
|
+
}, Tt = { class: "tpl:mb-3.5" }, Et = { class: "tpl:mb-3.5" }, Dt = /* @__PURE__ */ D({
|
|
228
229
|
__name: "BorderControl",
|
|
229
230
|
props: {
|
|
230
231
|
path: {},
|
|
@@ -233,7 +234,7 @@ var ut = B({
|
|
|
233
234
|
},
|
|
234
235
|
emits: ["update:modelValue"],
|
|
235
236
|
setup(e, { emit: n }) {
|
|
236
|
-
let i = e, s = n, { t: c } =
|
|
237
|
+
let i = e, s = n, { t: c } = V(), l = {
|
|
237
238
|
width: 0,
|
|
238
239
|
style: "solid",
|
|
239
240
|
color: "#000000"
|
|
@@ -243,35 +244,35 @@ var ut = B({
|
|
|
243
244
|
}
|
|
244
245
|
let f = m(() => {
|
|
245
246
|
let e = i.modelValue;
|
|
246
|
-
return !e ||
|
|
247
|
+
return !e || pe.every((t) => d(e[t], e.top));
|
|
247
248
|
}), y = _(f.value);
|
|
248
249
|
t(f, (e) => {
|
|
249
250
|
!e && y.value && (y.value = !1);
|
|
250
251
|
});
|
|
251
|
-
let x = _("top"),
|
|
252
|
+
let x = _("top"), C = m(() => {
|
|
252
253
|
let e = y.value ? "top" : x.value;
|
|
253
254
|
return i.modelValue?.[e] ?? l;
|
|
254
255
|
}), T = (e) => !!e && e.width > 0;
|
|
255
256
|
function E(e) {
|
|
256
257
|
if (y.value) {
|
|
257
|
-
s("update:modelValue", T(e) ?
|
|
258
|
+
s("update:modelValue", T(e) ? W(e) : void 0);
|
|
258
259
|
return;
|
|
259
260
|
}
|
|
260
261
|
let t = {
|
|
261
|
-
...i.modelValue ??
|
|
262
|
+
...i.modelValue ?? W(l),
|
|
262
263
|
[x.value]: e
|
|
263
|
-
}, n =
|
|
264
|
+
}, n = pe.some((e) => T(t[e]));
|
|
264
265
|
s("update:modelValue", n ? t : void 0);
|
|
265
266
|
}
|
|
266
267
|
function D(e) {
|
|
267
268
|
E({
|
|
268
|
-
...
|
|
269
|
+
...C.value,
|
|
269
270
|
width: e > 0 ? e : 0
|
|
270
271
|
});
|
|
271
272
|
}
|
|
272
273
|
function O(e) {
|
|
273
274
|
E({
|
|
274
|
-
...
|
|
275
|
+
...C.value,
|
|
275
276
|
...e
|
|
276
277
|
});
|
|
277
278
|
}
|
|
@@ -283,18 +284,18 @@ var ut = B({
|
|
|
283
284
|
y.value = !0;
|
|
284
285
|
let e = i.modelValue;
|
|
285
286
|
if (!e) return;
|
|
286
|
-
let t = T(e[x.value]) ? e[x.value] :
|
|
287
|
-
s("update:modelValue", t ?
|
|
287
|
+
let t = T(e[x.value]) ? e[x.value] : pe.map((t) => e[t]).find(T);
|
|
288
|
+
s("update:modelValue", t ? W(t) : void 0);
|
|
288
289
|
}
|
|
289
|
-
let
|
|
290
|
+
let j = m(() => pe.map((e) => ({
|
|
290
291
|
value: e,
|
|
291
292
|
label: c.spacingControl[e]
|
|
292
293
|
})));
|
|
293
|
-
return (t, n) => (a(),
|
|
294
|
+
return (t, n) => (a(), w(A, {
|
|
294
295
|
path: e.path,
|
|
295
296
|
label: h(c).blockSettings.border
|
|
296
297
|
}, {
|
|
297
|
-
"label-actions": u(() => [p(
|
|
298
|
+
"label-actions": u(() => [p(Ct, {
|
|
298
299
|
linked: y.value,
|
|
299
300
|
"link-label": h(c).blockSettings.linkSides,
|
|
300
301
|
"unlink-label": h(c).blockSettings.unlinkSides,
|
|
@@ -307,19 +308,19 @@ var ut = B({
|
|
|
307
308
|
"testid"
|
|
308
309
|
])]),
|
|
309
310
|
default: u(() => [
|
|
310
|
-
y.value ? g("", !0) : (a(), v("div",
|
|
311
|
-
options:
|
|
311
|
+
y.value ? g("", !0) : (a(), v("div", wt, [b("label", { class: o(h(B)) }, r(h(c).blockSettings.borderSide), 3), p($, {
|
|
312
|
+
options: j.value,
|
|
312
313
|
"model-value": x.value,
|
|
313
314
|
"onUpdate:modelValue": n[0] ||= (e) => x.value = e
|
|
314
315
|
}, null, 8, ["options", "model-value"])])),
|
|
315
|
-
b("div",
|
|
316
|
-
"model-value":
|
|
316
|
+
b("div", Tt, [b("label", { class: o(h(B)) }, r(h(c).blockSettings.borderWidth), 3), p(xt, {
|
|
317
|
+
"model-value": C.value.width,
|
|
317
318
|
min: 0,
|
|
318
319
|
suffix: "px",
|
|
319
320
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
320
321
|
"onUpdate:modelValue": D
|
|
321
322
|
}, null, 8, ["model-value", "testid"])]),
|
|
322
|
-
|
|
323
|
+
C.value.width > 0 ? (a(), v(S, { key: 1 }, [b("div", Et, [b("label", { class: o(h(B)) }, r(h(c).blockSettings.borderStyle), 3), p($, {
|
|
323
324
|
options: [
|
|
324
325
|
{
|
|
325
326
|
value: "solid",
|
|
@@ -334,20 +335,20 @@ var ut = B({
|
|
|
334
335
|
label: h(c).divider.dotted
|
|
335
336
|
}
|
|
336
337
|
],
|
|
337
|
-
"model-value":
|
|
338
|
+
"model-value": C.value.style,
|
|
338
339
|
"onUpdate:modelValue": n[1] ||= (e) => O({ style: e })
|
|
339
|
-
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: o(h(
|
|
340
|
-
"model-value":
|
|
340
|
+
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: o(h(B)) }, r(h(c).blockSettings.borderColor), 3), p(M, {
|
|
341
|
+
"model-value": C.value.color,
|
|
341
342
|
"onUpdate:modelValue": n[2] ||= (e) => O({ color: e })
|
|
342
343
|
}, null, 8, ["model-value"])])], 64)) : g("", !0)
|
|
343
344
|
]),
|
|
344
345
|
_: 1
|
|
345
346
|
}, 8, ["path", "label"]));
|
|
346
347
|
}
|
|
347
|
-
}),
|
|
348
|
+
}), Ot = {
|
|
348
349
|
key: 1,
|
|
349
350
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
350
|
-
},
|
|
351
|
+
}, kt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, At = /* @__PURE__ */ D({
|
|
351
352
|
__name: "RadiusControl",
|
|
352
353
|
props: {
|
|
353
354
|
path: {},
|
|
@@ -358,7 +359,7 @@ var ut = B({
|
|
|
358
359
|
},
|
|
359
360
|
emits: ["update:modelValue"],
|
|
360
361
|
setup(e, { emit: n }) {
|
|
361
|
-
let i = e, o = n, { t: c } =
|
|
362
|
+
let i = e, o = n, { t: c } = V(), l = {
|
|
362
363
|
topLeft: "cornerTopLeft",
|
|
363
364
|
topRight: "cornerTopRight",
|
|
364
365
|
bottomRight: "cornerBottomRight",
|
|
@@ -376,14 +377,14 @@ var ut = B({
|
|
|
376
377
|
bottomRight: e,
|
|
377
378
|
bottomLeft: e
|
|
378
379
|
} : e;
|
|
379
|
-
}), g = m(() =>
|
|
380
|
+
}), g = m(() => K.every((e) => f.value[e] === f.value.topLeft)), y = _(g.value);
|
|
380
381
|
t(g, (e) => {
|
|
381
382
|
!e && y.value && (y.value = !1);
|
|
382
383
|
});
|
|
383
384
|
function x(e) {
|
|
384
385
|
return Number.isFinite(e) && e >= 0;
|
|
385
386
|
}
|
|
386
|
-
function
|
|
387
|
+
function C(e) {
|
|
387
388
|
x(e) && o("update:modelValue", e);
|
|
388
389
|
}
|
|
389
390
|
function T(e, t) {
|
|
@@ -395,11 +396,11 @@ var ut = B({
|
|
|
395
396
|
function E() {
|
|
396
397
|
y.value = !y.value, y.value && o("update:modelValue", f.value.topLeft);
|
|
397
398
|
}
|
|
398
|
-
return (t, n) => (a(),
|
|
399
|
+
return (t, n) => (a(), w(A, {
|
|
399
400
|
path: e.path,
|
|
400
401
|
label: e.label
|
|
401
402
|
}, {
|
|
402
|
-
"label-actions": u(() => [p(
|
|
403
|
+
"label-actions": u(() => [p(Ct, {
|
|
403
404
|
linked: y.value,
|
|
404
405
|
"link-label": h(c).blockSettings.linkCorners,
|
|
405
406
|
"unlink-label": h(c).blockSettings.unlinkCorners,
|
|
@@ -411,19 +412,19 @@ var ut = B({
|
|
|
411
412
|
"unlink-label",
|
|
412
413
|
"testid"
|
|
413
414
|
])]),
|
|
414
|
-
default: u(() => [y.value ? (a(),
|
|
415
|
+
default: u(() => [y.value ? (a(), w(xt, {
|
|
415
416
|
key: 0,
|
|
416
417
|
"model-value": f.value.topLeft,
|
|
417
418
|
min: 0,
|
|
418
419
|
max: e.max,
|
|
419
420
|
suffix: "px",
|
|
420
421
|
testid: `${e.testidPrefix}-border-radius-input`,
|
|
421
|
-
"onUpdate:modelValue":
|
|
422
|
+
"onUpdate:modelValue": C
|
|
422
423
|
}, null, 8, [
|
|
423
424
|
"model-value",
|
|
424
425
|
"max",
|
|
425
426
|
"testid"
|
|
426
|
-
])) : (a(), v("div",
|
|
427
|
+
])) : (a(), v("div", Ot, [(a(), v(S, null, s(d, (t) => b("div", { key: t }, [b("label", kt, r(h(c).blockSettings[l[t]]), 1), p(xt, {
|
|
427
428
|
"model-value": f.value[t],
|
|
428
429
|
min: 0,
|
|
429
430
|
max: e.max,
|
|
@@ -439,10 +440,10 @@ var ut = B({
|
|
|
439
440
|
_: 1
|
|
440
441
|
}, 8, ["path", "label"]));
|
|
441
442
|
}
|
|
442
|
-
}),
|
|
443
|
+
}), jt = ["value"], Mt = { value: "" }, Nt = ["value"], Pt = { class: "tpl:flex tpl:items-stretch" }, Ft = ["value"], It = ["value"], Lt = { value: "auto" }, Rt = { value: "full" }, zt = { value: "custom" }, Bt = {
|
|
443
444
|
key: 0,
|
|
444
445
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
445
|
-
},
|
|
446
|
+
}, Vt = ["value"], Ht = 200, Ut = /* @__PURE__ */ D({
|
|
446
447
|
__name: "ButtonToolbar",
|
|
447
448
|
props: {
|
|
448
449
|
block: {},
|
|
@@ -450,12 +451,12 @@ var ut = B({
|
|
|
450
451
|
},
|
|
451
452
|
emits: ["update"],
|
|
452
453
|
setup(e, { emit: t }) {
|
|
453
|
-
let n = e, i = t, { t: c } =
|
|
454
|
+
let n = e, i = t, { t: c } = V(), l = m(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
454
455
|
function d(e, t) {
|
|
455
456
|
i("update", { [e]: t });
|
|
456
457
|
}
|
|
457
458
|
function f(e) {
|
|
458
|
-
e === "full" ? d("width", "full") : e === "custom" ? d("width", typeof n.block.width == "number" ? n.block.width :
|
|
459
|
+
e === "full" ? d("width", "full") : e === "custom" ? d("width", typeof n.block.width == "number" ? n.block.width : Ht) : d("width", void 0);
|
|
459
460
|
}
|
|
460
461
|
function _(e) {
|
|
461
462
|
d("fontWeight", e === "bold" ? void 0 : e);
|
|
@@ -465,49 +466,49 @@ var ut = B({
|
|
|
465
466
|
!Number.isFinite(t) || t <= 0 || d("width", t);
|
|
466
467
|
}
|
|
467
468
|
return (t, n) => (a(), v(S, null, [
|
|
468
|
-
p(
|
|
469
|
+
p(A, {
|
|
469
470
|
label: h(c).button.fontFamily,
|
|
470
471
|
class: "tpl:mb-3.5",
|
|
471
472
|
path: "fontFamily"
|
|
472
473
|
}, {
|
|
473
474
|
default: u(() => [b("select", {
|
|
474
|
-
class: o(h(
|
|
475
|
-
value: h(
|
|
475
|
+
class: o(h(z)),
|
|
476
|
+
value: h(Y)(e.block.fontFamily),
|
|
476
477
|
onChange: n[0] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
477
|
-
}, [b("option",
|
|
478
|
+
}, [b("option", Mt, r(h(c).button.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
478
479
|
key: e.value,
|
|
479
480
|
value: e.value
|
|
480
|
-
}, r(e.label), 9,
|
|
481
|
+
}, r(e.label), 9, Nt))), 128))], 42, jt)]),
|
|
481
482
|
_: 1
|
|
482
483
|
}, 8, ["label"]),
|
|
483
|
-
p(
|
|
484
|
+
p(A, {
|
|
484
485
|
label: h(c).button.text,
|
|
485
486
|
class: "tpl:mb-3.5",
|
|
486
487
|
path: "text"
|
|
487
488
|
}, {
|
|
488
|
-
default: u(() => [p(
|
|
489
|
+
default: u(() => [p(N, {
|
|
489
490
|
"model-value": e.block.text,
|
|
490
491
|
type: "text",
|
|
491
492
|
"onUpdate:modelValue": n[1] ||= (e) => d("text", e)
|
|
492
493
|
}, null, 8, ["model-value"])]),
|
|
493
494
|
_: 1
|
|
494
495
|
}, 8, ["label"]),
|
|
495
|
-
p(
|
|
496
|
+
p(A, {
|
|
496
497
|
label: h(c).button.url,
|
|
497
498
|
class: "tpl:mb-3.5",
|
|
498
499
|
path: "url"
|
|
499
500
|
}, {
|
|
500
|
-
default: u(() => [p(
|
|
501
|
+
default: u(() => [p(N, {
|
|
501
502
|
"model-value": e.block.url,
|
|
502
503
|
type: "url",
|
|
503
504
|
placeholder: h(c).button.urlPlaceholder,
|
|
504
505
|
"onUpdate:modelValue": n[2] ||= (e) => d("url", e)
|
|
505
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(),
|
|
506
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(), w(A, {
|
|
506
507
|
key: 0,
|
|
507
508
|
path: "openInNewTab",
|
|
508
509
|
label: h(c).button.openInNewTab
|
|
509
510
|
}, {
|
|
510
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
511
|
+
"label-actions": u(({ controlId: t }) => [p(P, {
|
|
511
512
|
"control-id": t,
|
|
512
513
|
"hide-label": "",
|
|
513
514
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -523,36 +524,36 @@ var ut = B({
|
|
|
523
524
|
}, 8, ["label"])) : g("", !0)]),
|
|
524
525
|
_: 1
|
|
525
526
|
}, 8, ["label"]),
|
|
526
|
-
p(
|
|
527
|
+
p(A, {
|
|
527
528
|
label: h(c).button.background,
|
|
528
529
|
class: "tpl:mb-3.5",
|
|
529
530
|
path: "backgroundColor"
|
|
530
531
|
}, {
|
|
531
|
-
default: u(() => [p(
|
|
532
|
+
default: u(() => [p(M, {
|
|
532
533
|
"model-value": e.block.backgroundColor,
|
|
533
534
|
"allow-transparent": "",
|
|
534
535
|
"onUpdate:modelValue": n[4] ||= (e) => d("backgroundColor", e)
|
|
535
536
|
}, null, 8, ["model-value"])]),
|
|
536
537
|
_: 1
|
|
537
538
|
}, 8, ["label"]),
|
|
538
|
-
p(
|
|
539
|
+
p(A, {
|
|
539
540
|
label: h(c).button.textColor,
|
|
540
541
|
class: "tpl:mb-3.5",
|
|
541
542
|
path: "textColor"
|
|
542
543
|
}, {
|
|
543
|
-
default: u(() => [p(
|
|
544
|
+
default: u(() => [p(M, {
|
|
544
545
|
"model-value": e.block.textColor,
|
|
545
546
|
"onUpdate:modelValue": n[5] ||= (e) => d("textColor", e)
|
|
546
547
|
}, null, 8, ["model-value"])]),
|
|
547
548
|
_: 1
|
|
548
549
|
}, 8, ["label"]),
|
|
549
|
-
p(
|
|
550
|
+
p(Dt, {
|
|
550
551
|
path: "border",
|
|
551
552
|
"model-value": e.block.border,
|
|
552
553
|
"testid-prefix": "button",
|
|
553
554
|
"onUpdate:modelValue": n[6] ||= (e) => d("border", e)
|
|
554
555
|
}, null, 8, ["model-value"]),
|
|
555
|
-
p(
|
|
556
|
+
p(At, {
|
|
556
557
|
path: "borderRadius",
|
|
557
558
|
"model-value": e.block.borderRadius,
|
|
558
559
|
label: h(c).button.borderRadius,
|
|
@@ -560,27 +561,27 @@ var ut = B({
|
|
|
560
561
|
"testid-prefix": "button",
|
|
561
562
|
"onUpdate:modelValue": n[7] ||= (e) => d("borderRadius", e)
|
|
562
563
|
}, null, 8, ["model-value", "label"]),
|
|
563
|
-
p(
|
|
564
|
+
p(A, {
|
|
564
565
|
label: h(c).button.fontSize,
|
|
565
566
|
class: "tpl:mb-3.5",
|
|
566
567
|
path: "fontSize"
|
|
567
568
|
}, {
|
|
568
|
-
default: u(() => [b("div",
|
|
569
|
+
default: u(() => [b("div", Pt, [b("input", {
|
|
569
570
|
type: "number",
|
|
570
|
-
class: o(h(
|
|
571
|
+
class: o(h(R)),
|
|
571
572
|
value: e.block.fontSize,
|
|
572
573
|
min: "10",
|
|
573
574
|
max: "36",
|
|
574
575
|
onInput: n[8] ||= (e) => d("fontSize", Number(e.target.value))
|
|
575
|
-
}, null, 42,
|
|
576
|
+
}, null, 42, Ft), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
576
577
|
_: 1
|
|
577
578
|
}, 8, ["label"]),
|
|
578
|
-
p(
|
|
579
|
+
p(A, {
|
|
579
580
|
label: h(c).button.fontWeight,
|
|
580
581
|
class: "tpl:mb-3.5",
|
|
581
582
|
path: "fontWeight"
|
|
582
583
|
}, {
|
|
583
|
-
default: u(() => [p(
|
|
584
|
+
default: u(() => [p($, {
|
|
584
585
|
options: [
|
|
585
586
|
{
|
|
586
587
|
value: "regular",
|
|
@@ -600,34 +601,34 @@ var ut = B({
|
|
|
600
601
|
}, null, 8, ["options", "model-value"])]),
|
|
601
602
|
_: 1
|
|
602
603
|
}, 8, ["label"]),
|
|
603
|
-
p(
|
|
604
|
+
p(A, {
|
|
604
605
|
label: h(c).button.width,
|
|
605
606
|
class: "tpl:mb-3.5",
|
|
606
607
|
path: "width"
|
|
607
608
|
}, {
|
|
608
609
|
default: u(() => [b("select", {
|
|
609
|
-
class: o(h(
|
|
610
|
+
class: o(h(z)),
|
|
610
611
|
value: l.value,
|
|
611
612
|
onChange: n[9] ||= (e) => f(e.target.value)
|
|
612
613
|
}, [
|
|
613
|
-
b("option",
|
|
614
|
-
b("option",
|
|
615
|
-
b("option",
|
|
616
|
-
], 42,
|
|
614
|
+
b("option", Lt, r(h(c).button.widthAuto), 1),
|
|
615
|
+
b("option", Rt, r(h(c).button.fullWidth), 1),
|
|
616
|
+
b("option", zt, r(h(c).button.widthCustom), 1)
|
|
617
|
+
], 42, It), l.value === "custom" ? (a(), v("div", Bt, [b("input", {
|
|
617
618
|
type: "number",
|
|
618
|
-
class: o(h(
|
|
619
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
619
|
+
class: o(h(R)),
|
|
620
|
+
value: typeof e.block.width == "number" ? e.block.width : Ht,
|
|
620
621
|
min: "20",
|
|
621
622
|
onInput: n[10] ||= (e) => y(e.target.value)
|
|
622
|
-
}, null, 42,
|
|
623
|
+
}, null, 42, Vt), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)]),
|
|
623
624
|
_: 1
|
|
624
625
|
}, 8, ["label"]),
|
|
625
|
-
p(
|
|
626
|
+
p(A, {
|
|
626
627
|
label: h(c).title.align,
|
|
627
628
|
class: "tpl:mb-3.5",
|
|
628
629
|
path: "align"
|
|
629
630
|
}, {
|
|
630
|
-
default: u(() => [p(
|
|
631
|
+
default: u(() => [p($, {
|
|
631
632
|
options: [
|
|
632
633
|
{
|
|
633
634
|
value: "left",
|
|
@@ -649,7 +650,7 @@ var ut = B({
|
|
|
649
650
|
}, 8, ["label"])
|
|
650
651
|
], 64));
|
|
651
652
|
}
|
|
652
|
-
}),
|
|
653
|
+
}), Wt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Gt = { class: "tpl:flex tpl:items-center" }, Kt = ["aria-label"], qt = ["value", "aria-label"], Jt = ["aria-label"], Yt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Xt = { class: "tpl:flex tpl:items-center" }, Zt = ["aria-label"], Qt = ["value", "aria-label"], $t = ["aria-label"], en = ["aria-label", "title"], tn = { class: "tpl:flex tpl:items-center" }, nn = ["aria-label"], rn = ["value", "aria-label"], an = ["aria-label"], on = { class: "tpl:flex tpl:items-center" }, sn = ["aria-label"], cn = ["value", "aria-label"], ln = ["aria-label"], un = "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)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", dn = "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] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", fn = /*#__PURE__*/ ye(/* @__PURE__ */ D({
|
|
653
654
|
__name: "SpacingControl",
|
|
654
655
|
props: {
|
|
655
656
|
path: {},
|
|
@@ -658,7 +659,7 @@ var ut = B({
|
|
|
658
659
|
},
|
|
659
660
|
emits: ["update:modelValue"],
|
|
660
661
|
setup(e, { emit: n }) {
|
|
661
|
-
let r = e, i = n, { t: s } =
|
|
662
|
+
let r = e, i = n, { t: s } = V(), c = m(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), l = _(c.value);
|
|
662
663
|
t(c, (e) => {
|
|
663
664
|
!e && l.value && (l.value = !1);
|
|
664
665
|
});
|
|
@@ -697,131 +698,131 @@ var ut = B({
|
|
|
697
698
|
});
|
|
698
699
|
}
|
|
699
700
|
}
|
|
700
|
-
return (t, n) => (a(),
|
|
701
|
+
return (t, n) => (a(), w(A, {
|
|
701
702
|
class: "spacing-control",
|
|
702
703
|
path: e.path,
|
|
703
704
|
label: e.label
|
|
704
705
|
}, {
|
|
705
|
-
default: u(() => [b("div",
|
|
706
|
-
b("div",
|
|
706
|
+
default: u(() => [b("div", Wt, [
|
|
707
|
+
b("div", Gt, [
|
|
707
708
|
b("button", {
|
|
708
709
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
709
|
-
class: o([
|
|
710
|
+
class: o([un, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
710
711
|
onClick: n[0] ||= (e) => d("top", -1)
|
|
711
|
-
}, [p(h(
|
|
712
|
+
}, [p(h(X), {
|
|
712
713
|
size: 12,
|
|
713
714
|
"stroke-width": 2
|
|
714
|
-
})], 10,
|
|
715
|
+
})], 10, Kt),
|
|
715
716
|
b("input", {
|
|
716
717
|
type: "number",
|
|
717
|
-
class: o(
|
|
718
|
+
class: o(dn),
|
|
718
719
|
value: e.modelValue.top,
|
|
719
720
|
"aria-label": h(s).spacingControl.top,
|
|
720
721
|
min: "0",
|
|
721
722
|
onInput: n[1] ||= (e) => f("top", Number(e.target.value))
|
|
722
|
-
}, null, 40,
|
|
723
|
+
}, null, 40, qt),
|
|
723
724
|
b("button", {
|
|
724
725
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
725
|
-
class: o([
|
|
726
|
+
class: o([un, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
726
727
|
onClick: n[2] ||= (e) => d("top", 1)
|
|
727
|
-
}, [p(h(
|
|
728
|
+
}, [p(h(Z), {
|
|
728
729
|
size: 12,
|
|
729
730
|
"stroke-width": 2
|
|
730
|
-
})], 10,
|
|
731
|
+
})], 10, Jt)
|
|
731
732
|
]),
|
|
732
|
-
b("div",
|
|
733
|
-
b("div",
|
|
733
|
+
b("div", Yt, [
|
|
734
|
+
b("div", Xt, [
|
|
734
735
|
b("button", {
|
|
735
736
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
736
|
-
class: o([
|
|
737
|
+
class: o([un, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
737
738
|
onClick: n[3] ||= (e) => d("left", -1)
|
|
738
|
-
}, [p(h(
|
|
739
|
+
}, [p(h(X), {
|
|
739
740
|
size: 12,
|
|
740
741
|
"stroke-width": 2
|
|
741
|
-
})], 10,
|
|
742
|
+
})], 10, Zt),
|
|
742
743
|
b("input", {
|
|
743
744
|
type: "number",
|
|
744
|
-
class: o(
|
|
745
|
+
class: o(dn),
|
|
745
746
|
value: e.modelValue.left,
|
|
746
747
|
"aria-label": h(s).spacingControl.left,
|
|
747
748
|
min: "0",
|
|
748
749
|
onInput: n[4] ||= (e) => f("left", Number(e.target.value))
|
|
749
|
-
}, null, 40,
|
|
750
|
+
}, null, 40, Qt),
|
|
750
751
|
b("button", {
|
|
751
752
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
752
|
-
class: o([
|
|
753
|
+
class: o([un, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
753
754
|
onClick: n[5] ||= (e) => d("left", 1)
|
|
754
|
-
}, [p(h(
|
|
755
|
+
}, [p(h(Z), {
|
|
755
756
|
size: 12,
|
|
756
757
|
"stroke-width": 2
|
|
757
|
-
})], 10,
|
|
758
|
+
})], 10, $t)
|
|
758
759
|
]),
|
|
759
760
|
b("button", {
|
|
760
761
|
class: o(["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)]", l.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)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
761
762
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
762
763
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
763
764
|
onClick: g
|
|
764
|
-
}, [l.value ? (a(),
|
|
765
|
+
}, [l.value ? (a(), w(h(ht), {
|
|
765
766
|
key: 0,
|
|
766
767
|
size: 14,
|
|
767
768
|
"stroke-width": 2
|
|
768
|
-
})) : (a(),
|
|
769
|
+
})) : (a(), w(h(mt), {
|
|
769
770
|
key: 1,
|
|
770
771
|
size: 14,
|
|
771
772
|
"stroke-width": 2
|
|
772
|
-
}))], 10,
|
|
773
|
-
b("div",
|
|
773
|
+
}))], 10, en),
|
|
774
|
+
b("div", tn, [
|
|
774
775
|
b("button", {
|
|
775
776
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
776
|
-
class: o([
|
|
777
|
+
class: o([un, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
777
778
|
onClick: n[6] ||= (e) => d("right", -1)
|
|
778
|
-
}, [p(h(
|
|
779
|
+
}, [p(h(X), {
|
|
779
780
|
size: 12,
|
|
780
781
|
"stroke-width": 2
|
|
781
|
-
})], 10,
|
|
782
|
+
})], 10, nn),
|
|
782
783
|
b("input", {
|
|
783
784
|
type: "number",
|
|
784
|
-
class: o(
|
|
785
|
+
class: o(dn),
|
|
785
786
|
value: e.modelValue.right,
|
|
786
787
|
"aria-label": h(s).spacingControl.right,
|
|
787
788
|
min: "0",
|
|
788
789
|
onInput: n[7] ||= (e) => f("right", Number(e.target.value))
|
|
789
|
-
}, null, 40,
|
|
790
|
+
}, null, 40, rn),
|
|
790
791
|
b("button", {
|
|
791
792
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
792
|
-
class: o([
|
|
793
|
+
class: o([un, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
793
794
|
onClick: n[8] ||= (e) => d("right", 1)
|
|
794
|
-
}, [p(h(
|
|
795
|
+
}, [p(h(Z), {
|
|
795
796
|
size: 12,
|
|
796
797
|
"stroke-width": 2
|
|
797
|
-
})], 10,
|
|
798
|
+
})], 10, an)
|
|
798
799
|
])
|
|
799
800
|
]),
|
|
800
|
-
b("div",
|
|
801
|
+
b("div", on, [
|
|
801
802
|
b("button", {
|
|
802
803
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
803
|
-
class: o([
|
|
804
|
+
class: o([un, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
804
805
|
onClick: n[9] ||= (e) => d("bottom", -1)
|
|
805
|
-
}, [p(h(
|
|
806
|
+
}, [p(h(X), {
|
|
806
807
|
size: 12,
|
|
807
808
|
"stroke-width": 2
|
|
808
|
-
})], 10,
|
|
809
|
+
})], 10, sn),
|
|
809
810
|
b("input", {
|
|
810
811
|
type: "number",
|
|
811
|
-
class: o(
|
|
812
|
+
class: o(dn),
|
|
812
813
|
value: e.modelValue.bottom,
|
|
813
814
|
"aria-label": h(s).spacingControl.bottom,
|
|
814
815
|
min: "0",
|
|
815
816
|
onInput: n[10] ||= (e) => f("bottom", Number(e.target.value))
|
|
816
|
-
}, null, 40,
|
|
817
|
+
}, null, 40, cn),
|
|
817
818
|
b("button", {
|
|
818
819
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
819
|
-
class: o([
|
|
820
|
+
class: o([un, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
820
821
|
onClick: n[11] ||= (e) => d("bottom", 1)
|
|
821
|
-
}, [p(h(
|
|
822
|
+
}, [p(h(Z), {
|
|
822
823
|
size: 12,
|
|
823
824
|
"stroke-width": 2
|
|
824
|
-
})], 10,
|
|
825
|
+
})], 10, ln)
|
|
825
826
|
])
|
|
826
827
|
])]),
|
|
827
828
|
_: 1
|
|
@@ -829,19 +830,19 @@ var ut = B({
|
|
|
829
830
|
}
|
|
830
831
|
}), [["__scopeId", "data-v-94c2e6ff"]]);
|
|
831
832
|
// src/composables/useNaturalImageSize.ts
|
|
832
|
-
function
|
|
833
|
+
function pn(e) {
|
|
833
834
|
let n = _(null), r = () => {};
|
|
834
835
|
return t(e, (e) => {
|
|
835
|
-
r(), n.value = null, e && (r =
|
|
836
|
+
r(), n.value = null, e && (r = je(e, (e) => {
|
|
836
837
|
n.value = e;
|
|
837
838
|
}));
|
|
838
839
|
}, { immediate: !0 }), n;
|
|
839
840
|
}
|
|
840
|
-
function
|
|
841
|
-
let e =
|
|
842
|
-
return async (t) =>
|
|
841
|
+
function mn() {
|
|
842
|
+
let e = E(Re, null);
|
|
843
|
+
return async (t) => Ae(e ? await hn(e, t) : t);
|
|
843
844
|
}
|
|
844
|
-
function
|
|
845
|
+
function hn(e, n) {
|
|
845
846
|
let r = (e) => typeof e == "string" && e.length > 0 ? e : n;
|
|
846
847
|
e.lookup(n);
|
|
847
848
|
let i = e.get(n);
|
|
@@ -852,13 +853,13 @@ function un(e, n) {
|
|
|
852
853
|
}) : Promise.resolve(r(i));
|
|
853
854
|
}
|
|
854
855
|
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
855
|
-
var
|
|
856
|
+
var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"], yn = ["data-testid"], bn = ["aria-label", "data-testid"], xn = [
|
|
856
857
|
"aria-label",
|
|
857
858
|
"title",
|
|
858
859
|
"aria-pressed",
|
|
859
860
|
"data-testid",
|
|
860
861
|
"onClick"
|
|
861
|
-
],
|
|
862
|
+
], Sn = ["data-testid"], Cn = /* @__PURE__ */ D({
|
|
862
863
|
__name: "BackgroundImageControl",
|
|
863
864
|
props: {
|
|
864
865
|
hideLabel: { type: Boolean },
|
|
@@ -869,28 +870,28 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
869
870
|
},
|
|
870
871
|
emits: ["update:modelValue"],
|
|
871
872
|
setup(e, { emit: t }) {
|
|
872
|
-
let n = e, i = t, { t: c } =
|
|
873
|
-
f(() => clearTimeout(
|
|
874
|
-
function
|
|
875
|
-
n.measure && !
|
|
873
|
+
let n = e, i = t, { t: c } = V(), l = E(Le, de.liquid), u = m(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = m(() => u.value.trim() !== ""), x = mn(), C;
|
|
874
|
+
f(() => clearTimeout(C));
|
|
875
|
+
function T(e) {
|
|
876
|
+
n.measure && !H(e, l) && (C = setTimeout(async () => {
|
|
876
877
|
let t = await x(e), r = n.modelValue;
|
|
877
878
|
t && r?.url === e && i("update:modelValue", {
|
|
878
879
|
...r,
|
|
879
|
-
...
|
|
880
|
+
...Q(t)
|
|
880
881
|
});
|
|
881
882
|
}, 300));
|
|
882
883
|
}
|
|
883
884
|
function D(e, t = null) {
|
|
884
|
-
if (clearTimeout(
|
|
885
|
+
if (clearTimeout(C), e.trim() === "") {
|
|
885
886
|
i("update:modelValue", void 0);
|
|
886
887
|
return;
|
|
887
888
|
}
|
|
888
|
-
let { naturalWidth: r, naturalHeight: a, ...o } = n.modelValue ??
|
|
889
|
+
let { naturalWidth: r, naturalHeight: a, ...o } = n.modelValue ?? oe(e), s = n.measure ? t : null;
|
|
889
890
|
i("update:modelValue", {
|
|
890
891
|
...o,
|
|
891
892
|
url: e,
|
|
892
|
-
...s ?
|
|
893
|
-
}), s ||
|
|
893
|
+
...s ? Q(s) : {}
|
|
894
|
+
}), s || T(e);
|
|
894
895
|
}
|
|
895
896
|
function O(e) {
|
|
896
897
|
n.modelValue && i("update:modelValue", {
|
|
@@ -898,7 +899,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
898
899
|
...e
|
|
899
900
|
});
|
|
900
901
|
}
|
|
901
|
-
let
|
|
902
|
+
let k = m(() => [
|
|
902
903
|
{
|
|
903
904
|
value: "cover",
|
|
904
905
|
label: c.blockSettings.backgroundSizeCover
|
|
@@ -911,7 +912,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
911
912
|
value: "auto",
|
|
912
913
|
label: c.blockSettings.backgroundSizeAuto
|
|
913
914
|
}
|
|
914
|
-
]),
|
|
915
|
+
]), A = m(() => ({
|
|
915
916
|
"top-left": c.blockSettings.backgroundPositionTopLeft,
|
|
916
917
|
"top-center": c.blockSettings.backgroundPositionTopCenter,
|
|
917
918
|
"top-right": c.blockSettings.backgroundPositionTopRight,
|
|
@@ -921,33 +922,33 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
921
922
|
"bottom-left": c.blockSettings.backgroundPositionBottomLeft,
|
|
922
923
|
"bottom-center": c.blockSettings.backgroundPositionBottomCenter,
|
|
923
924
|
"bottom-right": c.blockSettings.backgroundPositionBottomRight
|
|
924
|
-
})),
|
|
925
|
+
})), j = m(() => U.flatMap((e) => J.map((t) => ({
|
|
925
926
|
x: t,
|
|
926
927
|
y: e,
|
|
927
|
-
label:
|
|
928
|
+
label: A.value[`${e}-${t}`]
|
|
928
929
|
}))));
|
|
929
|
-
function
|
|
930
|
+
function M(e) {
|
|
930
931
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
931
932
|
}
|
|
932
|
-
let F = _(), { canBrowse: I, isUploading:
|
|
933
|
+
let F = _(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: te } = Pe({
|
|
933
934
|
target: F,
|
|
934
|
-
blocked: () =>
|
|
935
|
-
apply: (e) => D(e.url,
|
|
935
|
+
blocked: () => H(u.value, l),
|
|
936
|
+
apply: (e) => D(e.url, Se(e.width, e.height))
|
|
936
937
|
});
|
|
937
|
-
return (t, n) => (a(), v("div",
|
|
938
|
+
return (t, n) => (a(), v("div", gn, [b("div", null, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
938
939
|
key: 0,
|
|
939
|
-
class: o(h(
|
|
940
|
+
class: o(h(B))
|
|
940
941
|
}, r(h(c).blockSettings.backgroundImage), 3)), b("div", {
|
|
941
942
|
ref_key: "dropZoneRef",
|
|
942
943
|
ref: F,
|
|
943
944
|
class: "tpl:relative",
|
|
944
945
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
945
946
|
}, [
|
|
946
|
-
h(
|
|
947
|
+
h(ee) ? (a(), w(Te, {
|
|
947
948
|
key: 0,
|
|
948
|
-
uploading: h(
|
|
949
|
+
uploading: h(L)
|
|
949
950
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
950
|
-
p(
|
|
951
|
+
p(N, {
|
|
951
952
|
"model-value": u.value,
|
|
952
953
|
type: "url",
|
|
953
954
|
placeholder: h(c).blockSettings.backgroundImagePlaceholder,
|
|
@@ -963,50 +964,50 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
963
964
|
color: "var(--tpl-primary)",
|
|
964
965
|
"background-color": "var(--tpl-bg)"
|
|
965
966
|
},
|
|
966
|
-
onClick: n[0] ||= (...e) => h(
|
|
967
|
-
}, [p(h(
|
|
967
|
+
onClick: n[0] ||= (...e) => h(te) && h(te)(...e)
|
|
968
|
+
}, [p(h(Ie), {
|
|
968
969
|
size: 14,
|
|
969
970
|
"stroke-width": 1.5
|
|
970
|
-
}), y(" " + r(h(c).image.browseMedia), 1)], 8,
|
|
971
|
-
], 8,
|
|
971
|
+
}), y(" " + r(h(c).image.browseMedia), 1)], 8, vn)) : g("", !0)
|
|
972
|
+
], 8, _n)]), d.value && e.modelValue ? (a(), v(S, { key: 0 }, [
|
|
972
973
|
e.heroMode ? g("", !0) : (a(), v("div", {
|
|
973
974
|
key: 0,
|
|
974
975
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
975
|
-
}, [b("label", { class: o(h(
|
|
976
|
-
options:
|
|
976
|
+
}, [b("label", { class: o(h(B)) }, r(h(c).blockSettings.backgroundSize), 3), p($, {
|
|
977
|
+
options: k.value,
|
|
977
978
|
"model-value": e.modelValue.size,
|
|
978
979
|
"onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
|
|
979
|
-
}, null, 8, ["options", "model-value"])], 8,
|
|
980
|
-
b("div", null, [b("label", { class: o(h(
|
|
980
|
+
}, null, 8, ["options", "model-value"])], 8, yn)),
|
|
981
|
+
b("div", null, [b("label", { class: o(h(B)) }, r(h(c).blockSettings.backgroundPosition), 3), b("div", {
|
|
981
982
|
role: "group",
|
|
982
983
|
"aria-label": h(c).blockSettings.backgroundPosition,
|
|
983
984
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
984
985
|
class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
|
|
985
|
-
}, [(a(!0), v(S, null, s(
|
|
986
|
+
}, [(a(!0), v(S, null, s(j.value, (t) => (a(), v("button", {
|
|
986
987
|
key: `${t.y}-${t.x}`,
|
|
987
988
|
type: "button",
|
|
988
989
|
"aria-label": t.label,
|
|
989
990
|
title: t.label,
|
|
990
|
-
"aria-pressed":
|
|
991
|
+
"aria-pressed": M(t),
|
|
991
992
|
"data-testid": `${e.testidPrefix}-bg-position-${t.y}-${t.x}`,
|
|
992
|
-
class: o(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors",
|
|
993
|
+
class: o(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors", M(t) ? "tpl:border-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
993
994
|
onClick: (e) => O({ position: {
|
|
994
995
|
x: t.x,
|
|
995
996
|
y: t.y
|
|
996
997
|
} })
|
|
997
|
-
}, [b("span", { class: o(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full",
|
|
998
|
+
}, [b("span", { class: o(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", M(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, xn))), 128))], 8, bn)]),
|
|
998
999
|
e.heroMode ? g("", !0) : (a(), v("div", {
|
|
999
1000
|
key: 1,
|
|
1000
1001
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
1001
|
-
}, [p(
|
|
1002
|
+
}, [p(P, {
|
|
1002
1003
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1003
1004
|
"model-value": e.modelValue.repeat,
|
|
1004
1005
|
label: h(c).blockSettings.backgroundRepeat,
|
|
1005
1006
|
"onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
|
|
1006
|
-
}, null, 8, ["model-value", "label"])], 8,
|
|
1007
|
+
}, null, 8, ["model-value", "label"])], 8, Sn))
|
|
1007
1008
|
], 64)) : g("", !0)]));
|
|
1008
1009
|
}
|
|
1009
|
-
}),
|
|
1010
|
+
}), wn = ["data-testid"], Tn = ["data-testid"], En = /* @__PURE__ */ D({
|
|
1010
1011
|
__name: "CollapsibleSection",
|
|
1011
1012
|
props: {
|
|
1012
1013
|
title: {},
|
|
@@ -1021,30 +1022,33 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1021
1022
|
"data-testid": e.headerTestId,
|
|
1022
1023
|
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)]",
|
|
1023
1024
|
onClick: i[0] ||= (e) => t.$emit("toggle")
|
|
1024
|
-
}, [p(h(
|
|
1025
|
+
}, [p(h(Ze), {
|
|
1025
1026
|
class: o(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1026
1027
|
size: 12,
|
|
1027
1028
|
"stroke-width": 2
|
|
1028
|
-
}, null, 8, ["class"]), b("span", null, r(e.title), 1)], 8,
|
|
1029
|
+
}, null, 8, ["class"]), b("span", null, r(e.title), 1)], 8, wn), d(b("div", {
|
|
1030
|
+
class: "tpl:mt-3",
|
|
1031
|
+
"data-testid": e.headerTestId ? `${e.headerTestId}-content` : void 0
|
|
1032
|
+
}, [n(t.$slots, "default")], 8, Tn), [[k, e.open]])], 2));
|
|
1029
1033
|
}
|
|
1030
|
-
}),
|
|
1034
|
+
}), Dn = {
|
|
1031
1035
|
key: 0,
|
|
1032
1036
|
"data-testid": "section-hero-columns-note",
|
|
1033
1037
|
class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1034
|
-
},
|
|
1038
|
+
}, On = {
|
|
1035
1039
|
key: 1,
|
|
1036
1040
|
"data-testid": "section-hero",
|
|
1037
1041
|
class: "tpl:mt-3.5 tpl:space-y-3.5"
|
|
1038
|
-
},
|
|
1042
|
+
}, kn = { "data-testid": "section-hero-height" }, An = {
|
|
1039
1043
|
key: 0,
|
|
1040
1044
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1041
|
-
},
|
|
1045
|
+
}, jn = {
|
|
1042
1046
|
key: 1,
|
|
1043
1047
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1044
|
-
},
|
|
1048
|
+
}, Mn = {
|
|
1045
1049
|
key: 1,
|
|
1046
1050
|
"data-testid": "section-hero-align"
|
|
1047
|
-
},
|
|
1051
|
+
}, Nn = 300, Pn = /* @__PURE__ */ D({
|
|
1048
1052
|
__name: "HeroControl",
|
|
1049
1053
|
props: { section: {} },
|
|
1050
1054
|
emits: ["update"],
|
|
@@ -1052,7 +1056,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1052
1056
|
function n(e) {
|
|
1053
1057
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
1054
1058
|
}
|
|
1055
|
-
let i = e, s = t, { t: c } =
|
|
1059
|
+
let i = e, s = t, { t: c } = V(), l = E(Le, de.liquid), u = E(Xe, null), d = E(Ve, void 0), f = mn(), _ = m(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), y = m(() => _.value.trim() !== ""), x = m(() => H(_.value, l)), S = m(() => i.section.hero), C = m(() => i.section.columns === "1"), T = m(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), D = m(() => n(S.value?.height) ? S.value.height : Nn), O = m(() => [
|
|
1056
1060
|
{
|
|
1057
1061
|
value: "fit",
|
|
1058
1062
|
label: c.blockSettings.heroHeightFit
|
|
@@ -1066,7 +1070,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1066
1070
|
value: "fixed",
|
|
1067
1071
|
label: c.blockSettings.heroHeightFixed
|
|
1068
1072
|
}
|
|
1069
|
-
]),
|
|
1073
|
+
]), k = m(() => [
|
|
1070
1074
|
{
|
|
1071
1075
|
value: "top",
|
|
1072
1076
|
label: c.blockSettings.heroAlignTop
|
|
@@ -1079,89 +1083,165 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1079
1083
|
value: "bottom",
|
|
1080
1084
|
label: c.blockSettings.heroAlignBottom
|
|
1081
1085
|
}
|
|
1082
|
-
]),
|
|
1083
|
-
function
|
|
1084
|
-
return (u ?
|
|
1086
|
+
]), A = m(() => T.value === "image" && y.value && !x.value && fe(i.section.backgroundImage) === null);
|
|
1087
|
+
function j() {
|
|
1088
|
+
return (u ? Ne(u.content.value, i.section.id, d, u.activeLocale?.value ?? void 0) : null) ?? ke(u?.state.content.settings);
|
|
1085
1089
|
}
|
|
1086
|
-
function
|
|
1090
|
+
function M(e) {
|
|
1087
1091
|
let t = S.value?.verticalAlign ?? "middle";
|
|
1088
1092
|
if (e === "image") {
|
|
1089
|
-
|
|
1093
|
+
T.value !== "image" && s("update", { hero: {
|
|
1090
1094
|
height: "image",
|
|
1091
1095
|
verticalAlign: t
|
|
1092
|
-
} }),
|
|
1096
|
+
} }), N();
|
|
1093
1097
|
return;
|
|
1094
1098
|
}
|
|
1095
|
-
if (e ===
|
|
1099
|
+
if (e === T.value) return;
|
|
1096
1100
|
if (e === "fit") {
|
|
1097
1101
|
s("update", { hero: void 0 });
|
|
1098
1102
|
return;
|
|
1099
1103
|
}
|
|
1100
|
-
let n =
|
|
1104
|
+
let n = fe(i.section.backgroundImage), r = n === null ? Nn : Math.round(j() * n);
|
|
1101
1105
|
s("update", { hero: {
|
|
1102
1106
|
height: r,
|
|
1103
1107
|
verticalAlign: t
|
|
1104
1108
|
} });
|
|
1105
1109
|
}
|
|
1106
|
-
async function
|
|
1110
|
+
async function N() {
|
|
1107
1111
|
let e = i.section.backgroundImage;
|
|
1108
|
-
if (!e || !y.value || x.value ||
|
|
1112
|
+
if (!e || !y.value || x.value || fe(e) !== null) return;
|
|
1109
1113
|
let t = e.url, n = await f(t), r = i.section.backgroundImage;
|
|
1110
1114
|
n && r && r.url === t && s("update", { backgroundImage: {
|
|
1111
1115
|
...r,
|
|
1112
|
-
...
|
|
1116
|
+
...Q(n)
|
|
1113
1117
|
} });
|
|
1114
1118
|
}
|
|
1115
|
-
function
|
|
1119
|
+
function P(e) {
|
|
1116
1120
|
!S.value || !Number.isFinite(e) || e < 1 || s("update", { hero: {
|
|
1117
1121
|
...S.value,
|
|
1118
1122
|
height: Math.round(e)
|
|
1119
1123
|
} });
|
|
1120
1124
|
}
|
|
1121
|
-
function
|
|
1125
|
+
function F(e) {
|
|
1122
1126
|
S.value && s("update", { hero: {
|
|
1123
1127
|
...S.value,
|
|
1124
1128
|
verticalAlign: e
|
|
1125
1129
|
} });
|
|
1126
1130
|
}
|
|
1127
|
-
return (e, t) => !
|
|
1128
|
-
b("div",
|
|
1129
|
-
b("label", { class: o(h(
|
|
1130
|
-
p(
|
|
1131
|
+
return (e, t) => !C.value && S.value ? (a(), v("p", Dn, r(h(c).section.heroNeedsOneColumn), 1)) : C.value && (y.value || S.value) ? (a(), v("div", On, [
|
|
1132
|
+
b("div", kn, [
|
|
1133
|
+
b("label", { class: o(h(B)) }, r(h(c).blockSettings.heroHeight), 3),
|
|
1134
|
+
p($, {
|
|
1131
1135
|
options: O.value,
|
|
1132
|
-
"model-value":
|
|
1133
|
-
"onUpdate:modelValue":
|
|
1136
|
+
"model-value": T.value,
|
|
1137
|
+
"onUpdate:modelValue": M
|
|
1134
1138
|
}, null, 8, ["options", "model-value"]),
|
|
1135
|
-
x.value ? (a(), v("p",
|
|
1139
|
+
x.value ? (a(), v("p", An, r(h(c).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (a(), v("p", jn, r(h(c).blockSettings.heroSizeUnknown), 1)) : g("", !0)
|
|
1136
1140
|
]),
|
|
1137
|
-
|
|
1141
|
+
T.value === "fixed" ? (a(), w(xt, {
|
|
1138
1142
|
key: 0,
|
|
1139
1143
|
"model-value": D.value,
|
|
1140
1144
|
min: 1,
|
|
1141
1145
|
suffix: "px",
|
|
1142
1146
|
testid: "section-hero-height-px",
|
|
1143
|
-
"onUpdate:modelValue":
|
|
1147
|
+
"onUpdate:modelValue": P
|
|
1144
1148
|
}, null, 8, ["model-value"])) : g("", !0),
|
|
1145
|
-
S.value ? (a(), v("div",
|
|
1146
|
-
options:
|
|
1149
|
+
S.value ? (a(), v("div", Mn, [b("label", { class: o(h(B)) }, r(h(c).blockSettings.heroAlign), 3), p($, {
|
|
1150
|
+
options: k.value,
|
|
1147
1151
|
"model-value": S.value.verticalAlign,
|
|
1148
|
-
"onUpdate:modelValue":
|
|
1152
|
+
"onUpdate:modelValue": F
|
|
1149
1153
|
}, null, 8, ["options", "model-value"])])) : g("", !0)
|
|
1150
1154
|
])) : g("", !0);
|
|
1151
1155
|
}
|
|
1152
|
-
}),
|
|
1156
|
+
}), Fn = /* @__PURE__ */ new Set([
|
|
1157
|
+
"fullWidth",
|
|
1158
|
+
"backgroundColor",
|
|
1159
|
+
"backgroundImage",
|
|
1160
|
+
"padding",
|
|
1161
|
+
"borderRadius"
|
|
1162
|
+
]);
|
|
1163
|
+
function In(e) {
|
|
1164
|
+
return typeof e == "string" && e !== "";
|
|
1165
|
+
}
|
|
1166
|
+
function Ln(e) {
|
|
1167
|
+
return e ? [
|
|
1168
|
+
e.top,
|
|
1169
|
+
e.right,
|
|
1170
|
+
e.bottom,
|
|
1171
|
+
e.left
|
|
1172
|
+
].some((e) => e !== 0) : !1;
|
|
1173
|
+
}
|
|
1174
|
+
function Rn(e) {
|
|
1175
|
+
return In(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1176
|
+
}
|
|
1177
|
+
function zn(e) {
|
|
1178
|
+
return e.fullWidth !== !0 || Ln(e.padding) || me(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Fn.has(e));
|
|
1179
|
+
}
|
|
1180
|
+
function Bn(e, t = {}) {
|
|
1181
|
+
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && he(t.layout);
|
|
1182
|
+
}
|
|
1183
|
+
function Vn(e) {
|
|
1184
|
+
let t = {};
|
|
1185
|
+
return In(e.styles.backgroundColor) && (t.backgroundColor = e.styles.backgroundColor), e.backgroundImage && (t.backgroundImage = e.backgroundImage), t;
|
|
1186
|
+
}
|
|
1187
|
+
function Hn(e) {
|
|
1188
|
+
let t = { ...e.styles };
|
|
1189
|
+
return delete t.backgroundColor, t;
|
|
1190
|
+
}
|
|
1191
|
+
function Un(e, t) {
|
|
1192
|
+
if (t) return e.wrapper ? { wrapper: {
|
|
1193
|
+
...e.wrapper,
|
|
1194
|
+
fullWidth: !0
|
|
1195
|
+
} } : {
|
|
1196
|
+
wrapper: {
|
|
1197
|
+
fullWidth: !0,
|
|
1198
|
+
...Vn(e)
|
|
1199
|
+
},
|
|
1200
|
+
styles: Hn(e),
|
|
1201
|
+
backgroundImage: void 0
|
|
1202
|
+
};
|
|
1203
|
+
let n = e.wrapper;
|
|
1204
|
+
if (!n) return {};
|
|
1205
|
+
if (zn(n) && !Rn(e)) {
|
|
1206
|
+
let t = { ...e.styles };
|
|
1207
|
+
return In(n.backgroundColor) && (t.backgroundColor = n.backgroundColor), {
|
|
1208
|
+
wrapper: void 0,
|
|
1209
|
+
styles: t,
|
|
1210
|
+
backgroundImage: n.backgroundImage
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
return { wrapper: {
|
|
1214
|
+
...n,
|
|
1215
|
+
fullWidth: !1
|
|
1216
|
+
} };
|
|
1217
|
+
}
|
|
1218
|
+
function Wn(e) {
|
|
1219
|
+
let t = e.wrapper;
|
|
1220
|
+
return t && zn(t) && !Rn(e) ? Un(e, !1) : { wrapper: void 0 };
|
|
1221
|
+
}
|
|
1222
|
+
// src/components/toolbar/CommonBlockSettings.vue?vue&type=script&setup=true&lang.ts
|
|
1223
|
+
var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, qn = {
|
|
1224
|
+
key: 0,
|
|
1225
|
+
class: "tpl:space-y-2"
|
|
1226
|
+
}, Jn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Yn = {
|
|
1227
|
+
key: 0,
|
|
1228
|
+
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1229
|
+
}, Xn = { class: "tpl:flex tpl:gap-2" }, Zn = ["disabled"], Qn = ["disabled"], $n = ["disabled"], er = {
|
|
1230
|
+
key: 1,
|
|
1231
|
+
class: "tpl:space-y-2"
|
|
1232
|
+
}, tr = ["value"], nr = { value: "" }, rr = ["label"], ir = ["value"], ar = ["value"], or = {
|
|
1153
1233
|
key: 0,
|
|
1154
1234
|
value: "__custom__"
|
|
1155
|
-
},
|
|
1235
|
+
}, sr = {
|
|
1156
1236
|
key: 0,
|
|
1157
1237
|
class: "tpl:space-y-2"
|
|
1158
|
-
},
|
|
1238
|
+
}, cr = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, lr = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ur = { class: "tpl:flex tpl:justify-end" }, dr = ["disabled"], fr = {
|
|
1159
1239
|
key: 0,
|
|
1160
1240
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1161
|
-
},
|
|
1241
|
+
}, pr = { class: "tpl:space-y-1" }, mr = { 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)]" }, hr = {
|
|
1162
1242
|
key: 0,
|
|
1163
1243
|
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)]"
|
|
1164
|
-
},
|
|
1244
|
+
}, gr = /* @__PURE__ */ D({
|
|
1165
1245
|
__name: "CommonBlockSettings",
|
|
1166
1246
|
props: {
|
|
1167
1247
|
block: {},
|
|
@@ -1169,76 +1249,133 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1169
1249
|
},
|
|
1170
1250
|
emits: ["update"],
|
|
1171
1251
|
setup(e, { emit: n }) {
|
|
1172
|
-
let c = e, f = n, { t: x, format:
|
|
1252
|
+
let c = e, f = n, { t: x, format: T } = V(), D = E(Xe, null), k = E(Be, void 0), j = m(() => D?.activeLocale?.value), N = m(() => !!(j.value && D?.selectedBlock?.value?.l10n?.[j.value]?.hidden)), I = E(We, []), L = E(Je, !1), te = E(Ve, void 0), R = E(Ue, void 0), z = m(() => c.block.type === "section" || c.block.type === "wrapper"), ne = m(() => c.block.type === "wrapper" ? c.block.fullWidth === !0 : c.block.type === "section" && c.block.wrapper?.fullWidth === !0), B = m(() => c.block.type === "section" && Bn(c.block, {
|
|
1253
|
+
sectionWrapper: R,
|
|
1254
|
+
layout: te
|
|
1255
|
+
})), ie = m(() => c.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
1256
|
+
function ae(e) {
|
|
1257
|
+
c.block.type === "wrapper" ? f("update", { fullWidth: e }) : c.block.type === "section" && f("update", Un(c.block, e));
|
|
1258
|
+
}
|
|
1259
|
+
let oe = m(() => c.block.type === "section" && c.block.wrapper?.fullWidth === !0), ce = m(() => oe.value ? "wrapper.backgroundColor" : "styles.backgroundColor"), le = m(() => oe.value ? "wrapper.backgroundImage" : "backgroundImage"), ue = m(() => {
|
|
1260
|
+
let e = c.block;
|
|
1261
|
+
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundColor ?? "" : e.styles.backgroundColor ?? "";
|
|
1262
|
+
}), de = m(() => {
|
|
1263
|
+
let e = c.block;
|
|
1264
|
+
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundImage : e.type === "section" ? e.backgroundImage : void 0;
|
|
1265
|
+
});
|
|
1266
|
+
function fe(e, t) {
|
|
1267
|
+
f("update", { wrapper: {
|
|
1268
|
+
...e,
|
|
1269
|
+
...t
|
|
1270
|
+
} });
|
|
1271
|
+
}
|
|
1272
|
+
function pe(e) {
|
|
1273
|
+
let t = c.block;
|
|
1274
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? fe(t.wrapper, { backgroundColor: e }) : Ee("backgroundColor", e);
|
|
1275
|
+
}
|
|
1276
|
+
function me(e) {
|
|
1277
|
+
let t = c.block;
|
|
1278
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? fe(t.wrapper, { backgroundImage: e }) : f("update", { backgroundImage: e });
|
|
1279
|
+
}
|
|
1280
|
+
let H = E(ze, null), he = we(), U = _(!1), W = l(/* @__PURE__ */ new Set()), K = _(!1), q = _(""), J = _(""), ge = [{
|
|
1173
1281
|
key: "desktop",
|
|
1174
|
-
icon:
|
|
1282
|
+
icon: Qe,
|
|
1175
1283
|
labelKey: "showOnDesktop"
|
|
1176
1284
|
}, {
|
|
1177
1285
|
key: "mobile",
|
|
1178
|
-
icon:
|
|
1286
|
+
icon: $e,
|
|
1179
1287
|
labelKey: "showOnMobile"
|
|
1180
1288
|
}];
|
|
1181
|
-
function
|
|
1182
|
-
|
|
1289
|
+
function Y(e) {
|
|
1290
|
+
W.has(e) ? W.delete(e) : W.add(e);
|
|
1291
|
+
}
|
|
1292
|
+
let X = m(() => !!H || I.length > 0 || L);
|
|
1293
|
+
function ve(e) {
|
|
1294
|
+
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
1295
|
+
let t = e;
|
|
1296
|
+
return typeof t.label == "string" && typeof t.before == "string" && typeof t.after == "string";
|
|
1297
|
+
}
|
|
1298
|
+
function Z(e, t) {
|
|
1299
|
+
let n = D?.state?.selectedBlockId;
|
|
1300
|
+
c.block.id === e && (n === void 0 || n === e) ? f("update", { displayCondition: t }) : D && D.findBlockLocation(e) && D.updateBlock(e, { displayCondition: t });
|
|
1301
|
+
}
|
|
1302
|
+
async function ye() {
|
|
1303
|
+
if (!H || U.value) return;
|
|
1304
|
+
let e = c.block.id, t = D?.activeLocale?.value ?? null, n = G(C(c.block)), r = c.block.displayCondition ? G(C(c.block.displayCondition)) : void 0;
|
|
1305
|
+
U.value = !0;
|
|
1306
|
+
try {
|
|
1307
|
+
let i = await H(r ? {
|
|
1308
|
+
current: r,
|
|
1309
|
+
block: n
|
|
1310
|
+
} : { block: n });
|
|
1311
|
+
if (!he.alive || (D?.activeLocale?.value ?? null) !== t || i === null) return;
|
|
1312
|
+
if (!ve(i)) {
|
|
1313
|
+
et.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
|
|
1314
|
+
return;
|
|
1315
|
+
}
|
|
1316
|
+
Z(e, G(i));
|
|
1317
|
+
} finally {
|
|
1318
|
+
he.alive && (U.value = !1);
|
|
1319
|
+
}
|
|
1183
1320
|
}
|
|
1184
|
-
let
|
|
1185
|
-
function
|
|
1186
|
-
|
|
1321
|
+
let be = m(() => c.block.displayCondition ? !I.some((e) => e.label === c.block.displayCondition?.label) : !1);
|
|
1322
|
+
function xe() {
|
|
1323
|
+
K.value = !0, be.value && c.block.displayCondition ? (q.value = c.block.displayCondition.before, J.value = c.block.displayCondition.after ?? "") : (q.value = "", J.value = "");
|
|
1187
1324
|
}
|
|
1188
|
-
function
|
|
1189
|
-
let e =
|
|
1325
|
+
function Se() {
|
|
1326
|
+
let e = q.value.trim(), t = J.value.trim();
|
|
1190
1327
|
e && (f("update", { displayCondition: {
|
|
1191
1328
|
label: x.blockSettings.customCondition,
|
|
1192
1329
|
before: e,
|
|
1193
1330
|
after: t
|
|
1194
|
-
} }),
|
|
1331
|
+
} }), K.value = !1, q.value = e, J.value = t);
|
|
1195
1332
|
}
|
|
1196
1333
|
t([
|
|
1197
|
-
() =>
|
|
1334
|
+
() => D?.state?.template?.id,
|
|
1198
1335
|
() => c.block.id,
|
|
1199
1336
|
() => c.block.displayCondition?.label,
|
|
1200
1337
|
() => c.block.displayCondition?.before,
|
|
1201
1338
|
() => c.block.displayCondition?.after
|
|
1202
1339
|
], () => {
|
|
1203
1340
|
let e = c.block.displayCondition;
|
|
1204
|
-
!e || !
|
|
1341
|
+
!e || !be.value ? (K.value = !1, q.value = "", J.value = "") : (q.value = e.before, J.value = e.after ?? "");
|
|
1205
1342
|
}, { immediate: !0 });
|
|
1206
|
-
let
|
|
1343
|
+
let Ce = m(() => {
|
|
1207
1344
|
let e = {};
|
|
1208
|
-
for (let t of
|
|
1345
|
+
for (let t of I) {
|
|
1209
1346
|
let n = t.group ?? "";
|
|
1210
1347
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1211
1348
|
}
|
|
1212
1349
|
return e;
|
|
1213
|
-
}),
|
|
1214
|
-
function
|
|
1350
|
+
}), Te = m(() => c.block.type === "section" && se(c.block)?.applied === !0);
|
|
1351
|
+
function Ee(e, t) {
|
|
1215
1352
|
f("update", { styles: {
|
|
1216
1353
|
...c.block.styles,
|
|
1217
1354
|
[e]: t
|
|
1218
1355
|
} });
|
|
1219
1356
|
}
|
|
1220
|
-
function
|
|
1357
|
+
function Q(e) {
|
|
1221
1358
|
return c.block.visibility?.[e] !== !1;
|
|
1222
1359
|
}
|
|
1223
|
-
function
|
|
1360
|
+
function De(e) {
|
|
1224
1361
|
let t = {
|
|
1225
|
-
desktop:
|
|
1226
|
-
mobile:
|
|
1362
|
+
desktop: Q("desktop"),
|
|
1363
|
+
mobile: Q("mobile")
|
|
1227
1364
|
};
|
|
1228
1365
|
t[e] = !t[e], f("update", { visibility: t });
|
|
1229
1366
|
}
|
|
1230
1367
|
return (t, n) => (a(), v("div", { class: o(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1231
|
-
p(
|
|
1368
|
+
p(En, {
|
|
1232
1369
|
title: h(x).blockSettings.spacing,
|
|
1233
|
-
open:
|
|
1370
|
+
open: W.has("spacing"),
|
|
1234
1371
|
"no-border": e.isFirstSection,
|
|
1235
|
-
onToggle: n[1] ||= (e) =>
|
|
1372
|
+
onToggle: n[1] ||= (e) => Y("spacing")
|
|
1236
1373
|
}, {
|
|
1237
|
-
default: u(() => [p(
|
|
1374
|
+
default: u(() => [p(fn, {
|
|
1238
1375
|
path: "styles.padding",
|
|
1239
1376
|
label: h(x).blockSettings.padding,
|
|
1240
1377
|
"model-value": e.block.styles.padding,
|
|
1241
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1378
|
+
"onUpdate:modelValue": n[0] ||= (e) => Ee("padding", e)
|
|
1242
1379
|
}, null, 8, ["label", "model-value"])]),
|
|
1243
1380
|
_: 1
|
|
1244
1381
|
}, 8, [
|
|
@@ -1246,86 +1383,122 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1246
1383
|
"open",
|
|
1247
1384
|
"no-border"
|
|
1248
1385
|
]),
|
|
1249
|
-
p(
|
|
1386
|
+
p(En, {
|
|
1250
1387
|
title: h(x).blockSettings.background,
|
|
1251
|
-
open:
|
|
1388
|
+
open: W.has("bg"),
|
|
1252
1389
|
"header-test-id": "block-settings-background",
|
|
1253
|
-
onToggle: n[
|
|
1390
|
+
onToggle: n[4] ||= (e) => Y("bg")
|
|
1254
1391
|
}, {
|
|
1255
1392
|
default: u(() => [
|
|
1256
|
-
p(
|
|
1257
|
-
path:
|
|
1393
|
+
p(A, {
|
|
1394
|
+
path: ce.value,
|
|
1258
1395
|
label: h(x).blockSettings.color
|
|
1259
1396
|
}, {
|
|
1260
|
-
default: u(() => [p(
|
|
1261
|
-
"model-value":
|
|
1397
|
+
default: u(() => [p(M, {
|
|
1398
|
+
"model-value": ue.value,
|
|
1262
1399
|
"allow-transparent": "",
|
|
1263
|
-
"onUpdate:modelValue":
|
|
1400
|
+
"onUpdate:modelValue": pe
|
|
1264
1401
|
}, null, 8, ["model-value"])]),
|
|
1265
1402
|
_: 1
|
|
1266
|
-
}, 8, ["label"]),
|
|
1267
|
-
|
|
1403
|
+
}, 8, ["path", "label"]),
|
|
1404
|
+
z.value ? (a(), w(A, {
|
|
1268
1405
|
key: 0,
|
|
1269
|
-
path: "
|
|
1406
|
+
path: e.block.type === "section" ? "wrapper.fullWidth" : "fullWidth",
|
|
1407
|
+
label: h(x).blockSettings.fullWidthBackground
|
|
1408
|
+
}, {
|
|
1409
|
+
"label-actions": u(({ controlId: e }) => [p(P, {
|
|
1410
|
+
"data-testid": ie.value,
|
|
1411
|
+
"control-id": e,
|
|
1412
|
+
"hide-label": "",
|
|
1413
|
+
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1414
|
+
"model-value": ne.value,
|
|
1415
|
+
disabled: B.value,
|
|
1416
|
+
label: h(x).blockSettings.fullWidthBackground,
|
|
1417
|
+
"onUpdate:modelValue": ae
|
|
1418
|
+
}, null, 8, [
|
|
1419
|
+
"data-testid",
|
|
1420
|
+
"control-id",
|
|
1421
|
+
"model-value",
|
|
1422
|
+
"disabled",
|
|
1423
|
+
"label"
|
|
1424
|
+
])]),
|
|
1425
|
+
_: 1
|
|
1426
|
+
}, 8, ["path", "label"])) : g("", !0),
|
|
1427
|
+
e.block.type === "section" ? (a(), w(A, {
|
|
1428
|
+
key: 1,
|
|
1429
|
+
path: le.value,
|
|
1270
1430
|
label: h(x).blockSettings.backgroundImage
|
|
1271
1431
|
}, {
|
|
1272
|
-
default: u(() => [p(
|
|
1432
|
+
default: u(() => [p(Cn, {
|
|
1273
1433
|
"hide-label": "",
|
|
1274
1434
|
class: "tpl:mt-3.5",
|
|
1275
|
-
"model-value":
|
|
1435
|
+
"model-value": de.value,
|
|
1276
1436
|
"testid-prefix": "section",
|
|
1277
1437
|
measure: "",
|
|
1278
|
-
"hero-mode":
|
|
1279
|
-
"onUpdate:modelValue":
|
|
1438
|
+
"hero-mode": Te.value,
|
|
1439
|
+
"onUpdate:modelValue": me
|
|
1280
1440
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1281
1441
|
_: 1
|
|
1442
|
+
}, 8, ["path", "label"])) : g("", !0),
|
|
1443
|
+
oe.value ? (a(), w(A, {
|
|
1444
|
+
key: 2,
|
|
1445
|
+
path: "styles.backgroundColor",
|
|
1446
|
+
label: h(x).blockSettings.contentBackground
|
|
1447
|
+
}, {
|
|
1448
|
+
default: u(() => [p(M, {
|
|
1449
|
+
"data-testid": "section-content-background",
|
|
1450
|
+
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1451
|
+
"allow-transparent": "",
|
|
1452
|
+
"onUpdate:modelValue": n[2] ||= (e) => Ee("backgroundColor", e)
|
|
1453
|
+
}, null, 8, ["model-value"])]),
|
|
1454
|
+
_: 1
|
|
1282
1455
|
}, 8, ["label"])) : g("", !0),
|
|
1283
|
-
e.block.type === "section" ? (a(),
|
|
1284
|
-
key:
|
|
1456
|
+
e.block.type === "section" ? (a(), w(A, {
|
|
1457
|
+
key: 3,
|
|
1285
1458
|
path: "hero",
|
|
1286
1459
|
label: h(x).blocks.hero
|
|
1287
1460
|
}, {
|
|
1288
|
-
default: u(() => [p(
|
|
1461
|
+
default: u(() => [p(Pn, {
|
|
1289
1462
|
section: e.block,
|
|
1290
|
-
onUpdate: n[
|
|
1463
|
+
onUpdate: n[3] ||= (e) => f("update", e)
|
|
1291
1464
|
}, null, 8, ["section"])]),
|
|
1292
1465
|
_: 1
|
|
1293
1466
|
}, 8, ["label"])) : g("", !0)
|
|
1294
1467
|
]),
|
|
1295
1468
|
_: 1
|
|
1296
1469
|
}, 8, ["title", "open"]),
|
|
1297
|
-
p(
|
|
1470
|
+
p(En, {
|
|
1298
1471
|
title: h(x).blockSettings.display,
|
|
1299
|
-
open:
|
|
1300
|
-
onToggle: n[
|
|
1472
|
+
open: W.has("display"),
|
|
1473
|
+
onToggle: n[6] ||= (e) => Y("display")
|
|
1301
1474
|
}, {
|
|
1302
|
-
default: u(() => [b("div",
|
|
1475
|
+
default: u(() => [b("div", Gn, [j.value && h(k) ? (a(), w(P, {
|
|
1303
1476
|
key: 0,
|
|
1304
1477
|
"data-testid": "locale-hide",
|
|
1305
|
-
disabled: !h(
|
|
1306
|
-
"model-value":
|
|
1307
|
-
label: h(
|
|
1308
|
-
"onUpdate:modelValue": n[
|
|
1478
|
+
disabled: !h(k).locales.includes(j.value),
|
|
1479
|
+
"model-value": N.value,
|
|
1480
|
+
label: h(T)(h(x).localization.hide, { language: h(_e)(j.value) }),
|
|
1481
|
+
"onUpdate:modelValue": n[5] ||= (t) => h(D)?.setBlockHidden?.(e.block.id, t)
|
|
1309
1482
|
}, null, 8, [
|
|
1310
1483
|
"disabled",
|
|
1311
1484
|
"model-value",
|
|
1312
1485
|
"label"
|
|
1313
|
-
])) : g("", !0), (a(), v(S, null, s(
|
|
1486
|
+
])) : g("", !0), (a(), v(S, null, s(ge, (e) => p(A, {
|
|
1314
1487
|
key: e.key,
|
|
1315
1488
|
path: `visibility.${e.key}`,
|
|
1316
1489
|
label: h(x).blockSettings[e.labelKey]
|
|
1317
1490
|
}, {
|
|
1318
|
-
label: u(() => [b("span",
|
|
1491
|
+
label: u(() => [b("span", Kn, [(a(), w(i(e.icon), {
|
|
1319
1492
|
size: 14,
|
|
1320
1493
|
"stroke-width": 1.5
|
|
1321
1494
|
})), y(" " + r(h(x).blockSettings[e.labelKey]), 1)])]),
|
|
1322
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
1495
|
+
"label-actions": u(({ controlId: t }) => [p(P, {
|
|
1323
1496
|
"control-id": t,
|
|
1324
1497
|
"hide-label": "",
|
|
1325
1498
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1326
|
-
"model-value":
|
|
1499
|
+
"model-value": Q(e.key),
|
|
1327
1500
|
label: h(x).blockSettings[e.labelKey],
|
|
1328
|
-
"onUpdate:modelValue": (t) =>
|
|
1501
|
+
"onUpdate:modelValue": (t) => De(e.key)
|
|
1329
1502
|
}, null, 8, [
|
|
1330
1503
|
"control-id",
|
|
1331
1504
|
"model-value",
|
|
@@ -1336,72 +1509,95 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1336
1509
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1337
1510
|
_: 1
|
|
1338
1511
|
}, 8, ["title", "open"]),
|
|
1339
|
-
|
|
1512
|
+
X.value ? (a(), w(En, {
|
|
1340
1513
|
key: 0,
|
|
1341
1514
|
"header-test-id": "display-condition-section",
|
|
1342
1515
|
title: h(x).blockSettings.displayCondition,
|
|
1343
|
-
open:
|
|
1344
|
-
onToggle: n[11] ||= (e) =>
|
|
1516
|
+
open: W.has("condition"),
|
|
1517
|
+
onToggle: n[11] ||= (e) => Y("condition")
|
|
1345
1518
|
}, {
|
|
1346
|
-
default: u(() => [
|
|
1519
|
+
default: u(() => [h(H) ? (a(), v("div", qn, [e.block.displayCondition ? (a(), v(S, { key: 0 }, [
|
|
1520
|
+
b("p", Jn, r(e.block.displayCondition.label), 1),
|
|
1521
|
+
e.block.displayCondition.description ? (a(), v("p", Yn, r(e.block.displayCondition.description), 1)) : g("", !0),
|
|
1522
|
+
b("div", Xn, [b("button", {
|
|
1523
|
+
type: "button",
|
|
1524
|
+
"data-testid": "display-condition-edit",
|
|
1525
|
+
class: o(h(F)),
|
|
1526
|
+
disabled: U.value,
|
|
1527
|
+
onClick: ye
|
|
1528
|
+
}, r(h(x).blockSettings.editCondition), 11, Zn), b("button", {
|
|
1529
|
+
type: "button",
|
|
1530
|
+
"data-testid": "display-condition-remove",
|
|
1531
|
+
class: o(h(F)),
|
|
1532
|
+
disabled: U.value,
|
|
1533
|
+
onClick: n[7] ||= (e) => f("update", { displayCondition: void 0 })
|
|
1534
|
+
}, r(h(x).blockSettings.removeCondition), 11, Qn)])
|
|
1535
|
+
], 64)) : (a(), v("button", {
|
|
1536
|
+
key: 1,
|
|
1537
|
+
type: "button",
|
|
1538
|
+
"data-testid": "display-condition-request",
|
|
1539
|
+
class: o(h(F)),
|
|
1540
|
+
disabled: U.value,
|
|
1541
|
+
onClick: ye
|
|
1542
|
+
}, r(h(x).blockSettings.addCondition), 11, $n))])) : (a(), v("div", er, [p(A, {
|
|
1347
1543
|
path: "displayCondition",
|
|
1348
1544
|
label: h(x).blockSettings.displayCondition
|
|
1349
1545
|
}, {
|
|
1350
1546
|
default: u(() => [b("select", {
|
|
1351
1547
|
"data-testid": "display-condition-select",
|
|
1352
1548
|
class: o(["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:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1353
|
-
value:
|
|
1549
|
+
value: K.value || be.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1354
1550
|
onChange: n[8] ||= (e) => {
|
|
1355
1551
|
let t = e.target.value;
|
|
1356
1552
|
if (t === "__custom__") {
|
|
1357
|
-
|
|
1553
|
+
xe();
|
|
1358
1554
|
return;
|
|
1359
1555
|
}
|
|
1360
|
-
if (
|
|
1556
|
+
if (K.value = !1, !t) {
|
|
1361
1557
|
f("update", { displayCondition: void 0 });
|
|
1362
1558
|
return;
|
|
1363
1559
|
}
|
|
1364
|
-
let n = h(
|
|
1560
|
+
let n = h(I).find((e) => e.label === t);
|
|
1365
1561
|
n && f("update", { displayCondition: n });
|
|
1366
1562
|
}
|
|
1367
1563
|
}, [
|
|
1368
|
-
b("option",
|
|
1369
|
-
(a(!0), v(S, null, s(
|
|
1564
|
+
b("option", nr, r(h(x).blockSettings.noCondition), 1),
|
|
1565
|
+
(a(!0), v(S, null, s(Ce.value, (e, t) => (a(), v(S, { key: t }, [t ? (a(), v("optgroup", {
|
|
1370
1566
|
key: 0,
|
|
1371
1567
|
label: String(t)
|
|
1372
1568
|
}, [(a(!0), v(S, null, s(e, (e) => (a(), v("option", {
|
|
1373
1569
|
key: e.label,
|
|
1374
1570
|
value: e.label
|
|
1375
|
-
}, r(e.label), 9,
|
|
1571
|
+
}, r(e.label), 9, ir))), 128))], 8, rr)) : (a(!0), v(S, { key: 1 }, s(e, (e) => (a(), v("option", {
|
|
1376
1572
|
key: e.label,
|
|
1377
1573
|
value: e.label
|
|
1378
|
-
}, r(e.label), 9,
|
|
1379
|
-
h(
|
|
1380
|
-
], 42,
|
|
1574
|
+
}, r(e.label), 9, ar))), 128))], 64))), 128)),
|
|
1575
|
+
h(L) ? (a(), v("option", or, r(h(x).blockSettings.customCondition), 1)) : g("", !0)
|
|
1576
|
+
], 42, tr)]),
|
|
1381
1577
|
_: 1
|
|
1382
|
-
}, 8, ["label"]),
|
|
1383
|
-
b("div", null, [b("label",
|
|
1384
|
-
"onUpdate:modelValue": n[9] ||= (e) =>
|
|
1578
|
+
}, 8, ["label"]), K.value || be.value ? (a(), v("div", sr, [
|
|
1579
|
+
b("div", null, [b("label", cr, r(h(x).blockSettings.customConditionBefore), 1), d(b("textarea", {
|
|
1580
|
+
"onUpdate:modelValue": n[9] ||= (e) => q.value = e,
|
|
1385
1581
|
rows: "2",
|
|
1386
|
-
class: o(h(
|
|
1387
|
-
}, null, 2), [[
|
|
1388
|
-
b("div", null, [b("label",
|
|
1389
|
-
"onUpdate:modelValue": n[10] ||= (e) =>
|
|
1582
|
+
class: o(h(re))
|
|
1583
|
+
}, null, 2), [[O, q.value]])]),
|
|
1584
|
+
b("div", null, [b("label", lr, r(h(x).blockSettings.customConditionAfter), 1), d(b("textarea", {
|
|
1585
|
+
"onUpdate:modelValue": n[10] ||= (e) => J.value = e,
|
|
1390
1586
|
rows: "2",
|
|
1391
|
-
class: o(h(
|
|
1392
|
-
}, null, 2), [[
|
|
1393
|
-
b("div",
|
|
1587
|
+
class: o(h(re))
|
|
1588
|
+
}, null, 2), [[O, J.value]])]),
|
|
1589
|
+
b("div", ur, [b("button", {
|
|
1394
1590
|
type: "button",
|
|
1395
|
-
class: o(h(
|
|
1396
|
-
disabled: !
|
|
1397
|
-
onClick:
|
|
1398
|
-
}, r(h(x).blockSettings.applyCondition), 11,
|
|
1399
|
-
])) : e.block.displayCondition && !
|
|
1591
|
+
class: o(h(ee)),
|
|
1592
|
+
disabled: !q.value.trim(),
|
|
1593
|
+
onClick: Se
|
|
1594
|
+
}, r(h(x).blockSettings.applyCondition), 11, dr)])
|
|
1595
|
+
])) : e.block.displayCondition && !be.value ? (a(), v(S, { key: 1 }, [e.block.displayCondition.description ? (a(), v("p", fr, r(e.block.displayCondition.description), 1)) : g("", !0), b("div", pr, [b("pre", mr, r(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (a(), v("pre", hr, r(e.block.displayCondition.after), 1)) : g("", !0)])], 64)) : g("", !0)]))]),
|
|
1400
1596
|
_: 1
|
|
1401
1597
|
}, 8, ["title", "open"])) : g("", !0)
|
|
1402
1598
|
], 2));
|
|
1403
1599
|
}
|
|
1404
|
-
}),
|
|
1600
|
+
}), _r = ["title"], vr = { class: "tpl-sr-only" }, yr = ["title"], br = { class: "tpl-sr-only" }, xr = /* @__PURE__ */ D({
|
|
1405
1601
|
__name: "FieldLabel",
|
|
1406
1602
|
props: {
|
|
1407
1603
|
label: {},
|
|
@@ -1409,25 +1605,25 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1409
1605
|
readOnly: { type: Boolean }
|
|
1410
1606
|
},
|
|
1411
1607
|
setup(e) {
|
|
1412
|
-
let { t } =
|
|
1608
|
+
let { t } = V();
|
|
1413
1609
|
return (n, i) => (a(), v("span", null, [
|
|
1414
1610
|
y(r(e.label) + " ", 1),
|
|
1415
1611
|
e.readOnly ? (a(), v("span", {
|
|
1416
1612
|
key: 0,
|
|
1417
1613
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1418
|
-
}, [p(h(
|
|
1614
|
+
}, [p(h(ht), {
|
|
1419
1615
|
size: 12,
|
|
1420
1616
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1421
1617
|
"aria-hidden": "true"
|
|
1422
|
-
}), b("span",
|
|
1618
|
+
}), b("span", vr, r(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, _r)) : g("", !0),
|
|
1423
1619
|
e.required ? (a(), v("span", {
|
|
1424
1620
|
key: 1,
|
|
1425
1621
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1426
1622
|
title: h(t).customBlocks.fields.required
|
|
1427
|
-
}, [i[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span",
|
|
1623
|
+
}, [i[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span", br, r(h(t).customBlocks.fields.required), 1)], 8, yr)) : g("", !0)
|
|
1428
1624
|
]));
|
|
1429
1625
|
}
|
|
1430
|
-
}),
|
|
1626
|
+
}), Sr = ["title"], Cr = /* @__PURE__ */ D({
|
|
1431
1627
|
__name: "BooleanField",
|
|
1432
1628
|
props: {
|
|
1433
1629
|
field: {},
|
|
@@ -1438,11 +1634,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1438
1634
|
},
|
|
1439
1635
|
emits: ["update:modelValue"],
|
|
1440
1636
|
setup(e, { emit: t }) {
|
|
1441
|
-
let n = t, { t: i } =
|
|
1637
|
+
let n = t, { t: i } = V();
|
|
1442
1638
|
return (t, o) => (a(), v("div", {
|
|
1443
1639
|
class: "tpl:mb-3.5",
|
|
1444
1640
|
title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1445
|
-
}, [p(
|
|
1641
|
+
}, [p(P, {
|
|
1446
1642
|
"hide-label": e.hideLabel,
|
|
1447
1643
|
"control-id": e.controlId,
|
|
1448
1644
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -1452,7 +1648,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1452
1648
|
disabled: e.readOnly,
|
|
1453
1649
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1454
1650
|
}, {
|
|
1455
|
-
default: u(() => [y(r(e.field.label) + " ", 1), e.readOnly ? (a(),
|
|
1651
|
+
default: u(() => [y(r(e.field.label) + " ", 1), e.readOnly ? (a(), w(h(ht), {
|
|
1456
1652
|
key: 0,
|
|
1457
1653
|
size: 12,
|
|
1458
1654
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1465,9 +1661,9 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1465
1661
|
"label",
|
|
1466
1662
|
"required",
|
|
1467
1663
|
"disabled"
|
|
1468
|
-
])], 8,
|
|
1664
|
+
])], 8, Sr));
|
|
1469
1665
|
}
|
|
1470
|
-
}),
|
|
1666
|
+
}), wr = { class: "tpl:mb-3.5" }, Tr = /* @__PURE__ */ D({
|
|
1471
1667
|
__name: "FieldWrapper",
|
|
1472
1668
|
props: {
|
|
1473
1669
|
label: {},
|
|
@@ -1476,10 +1672,10 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1476
1672
|
readOnly: { type: Boolean }
|
|
1477
1673
|
},
|
|
1478
1674
|
setup(e) {
|
|
1479
|
-
return (t, r) => (a(), v("div",
|
|
1675
|
+
return (t, r) => (a(), v("div", wr, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
1480
1676
|
key: 0,
|
|
1481
|
-
class: o(h(
|
|
1482
|
-
}, [p(
|
|
1677
|
+
class: o(h(B))
|
|
1678
|
+
}, [p(xr, {
|
|
1483
1679
|
label: e.label,
|
|
1484
1680
|
required: e.required,
|
|
1485
1681
|
"read-only": e.readOnly
|
|
@@ -1489,7 +1685,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1489
1685
|
"read-only"
|
|
1490
1686
|
])], 2)), n(t.$slots, "default")]));
|
|
1491
1687
|
}
|
|
1492
|
-
}),
|
|
1688
|
+
}), Er = /* @__PURE__ */ D({
|
|
1493
1689
|
__name: "ColorField",
|
|
1494
1690
|
props: {
|
|
1495
1691
|
field: {},
|
|
@@ -1499,14 +1695,14 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1499
1695
|
},
|
|
1500
1696
|
emits: ["update:modelValue"],
|
|
1501
1697
|
setup(e, { emit: t }) {
|
|
1502
|
-
let n = e, r = t, { t: i } =
|
|
1503
|
-
return (t, n) => (a(),
|
|
1698
|
+
let n = e, r = t, { t: i } = V(), o = E(qe, it), s = m(() => Fe(n.field, o));
|
|
1699
|
+
return (t, n) => (a(), w(Tr, {
|
|
1504
1700
|
"hide-label": e.hideLabel,
|
|
1505
1701
|
label: e.field.label,
|
|
1506
1702
|
required: e.field.required,
|
|
1507
1703
|
"read-only": e.readOnly
|
|
1508
1704
|
}, {
|
|
1509
|
-
default: u(() => [p(
|
|
1705
|
+
default: u(() => [p(M, {
|
|
1510
1706
|
"model-value": e.modelValue,
|
|
1511
1707
|
placeholder: e.field.placeholder,
|
|
1512
1708
|
disabled: e.readOnly,
|
|
@@ -1530,11 +1726,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1530
1726
|
"read-only"
|
|
1531
1727
|
]));
|
|
1532
1728
|
}
|
|
1533
|
-
}),
|
|
1729
|
+
}), Dr = [
|
|
1534
1730
|
"value",
|
|
1535
1731
|
"placeholder",
|
|
1536
1732
|
"title"
|
|
1537
|
-
],
|
|
1733
|
+
], Or = ["value", "placeholder"], kr = /* @__PURE__ */ D({
|
|
1538
1734
|
__name: "ImageField",
|
|
1539
1735
|
props: {
|
|
1540
1736
|
field: {},
|
|
@@ -1544,12 +1740,12 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1544
1740
|
},
|
|
1545
1741
|
emits: ["update:modelValue"],
|
|
1546
1742
|
setup(e, { emit: t }) {
|
|
1547
|
-
let n = e, i = t, { t: s } =
|
|
1743
|
+
let n = e, i = t, { t: s } = V(), c = _(), { canBrowse: l, isUploading: d, showOverlay: f, openMediaBrowser: m } = Pe({
|
|
1548
1744
|
target: c,
|
|
1549
1745
|
blocked: () => !!n.readOnly,
|
|
1550
1746
|
apply: (e) => i("update:modelValue", e.url)
|
|
1551
1747
|
});
|
|
1552
|
-
return (t, n) => (a(),
|
|
1748
|
+
return (t, n) => (a(), w(Tr, {
|
|
1553
1749
|
"hide-label": e.hideLabel,
|
|
1554
1750
|
label: e.field.label,
|
|
1555
1751
|
required: e.field.required,
|
|
@@ -1560,31 +1756,31 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1560
1756
|
ref: c,
|
|
1561
1757
|
class: "tpl:relative"
|
|
1562
1758
|
}, [
|
|
1563
|
-
h(f) ? (a(),
|
|
1759
|
+
h(f) ? (a(), w(Te, {
|
|
1564
1760
|
key: 0,
|
|
1565
1761
|
uploading: h(d)
|
|
1566
1762
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
1567
1763
|
e.readOnly ? (a(), v("input", {
|
|
1568
1764
|
key: 1,
|
|
1569
1765
|
type: "url",
|
|
1570
|
-
class: o([h(
|
|
1766
|
+
class: o([h(z), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1571
1767
|
value: e.modelValue,
|
|
1572
1768
|
placeholder: e.field.placeholder || "https://...",
|
|
1573
1769
|
disabled: "",
|
|
1574
1770
|
title: h(s).customBlocks.dataSource.readOnlyTooltip
|
|
1575
|
-
}, null, 10,
|
|
1771
|
+
}, null, 10, Dr)) : (a(), v("input", {
|
|
1576
1772
|
key: 2,
|
|
1577
1773
|
type: "url",
|
|
1578
|
-
class: o(h(
|
|
1774
|
+
class: o(h(z)),
|
|
1579
1775
|
value: e.modelValue,
|
|
1580
1776
|
placeholder: e.field.placeholder || "https://...",
|
|
1581
1777
|
onInput: n[0] ||= (e) => i("update:modelValue", e.target.value)
|
|
1582
|
-
}, null, 42,
|
|
1778
|
+
}, null, 42, Or)),
|
|
1583
1779
|
h(l) && !e.readOnly ? (a(), v("button", {
|
|
1584
1780
|
key: 3,
|
|
1585
1781
|
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:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1586
1782
|
onClick: n[1] ||= (e) => h(m)()
|
|
1587
|
-
}, [p(h(
|
|
1783
|
+
}, [p(h(Ie), {
|
|
1588
1784
|
size: 14,
|
|
1589
1785
|
"stroke-width": 1.5
|
|
1590
1786
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
|
|
@@ -1597,7 +1793,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1597
1793
|
"read-only"
|
|
1598
1794
|
]));
|
|
1599
1795
|
}
|
|
1600
|
-
}),
|
|
1796
|
+
}), Ar = [
|
|
1601
1797
|
"value",
|
|
1602
1798
|
"placeholder",
|
|
1603
1799
|
"min",
|
|
@@ -1605,7 +1801,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1605
1801
|
"step",
|
|
1606
1802
|
"disabled",
|
|
1607
1803
|
"title"
|
|
1608
|
-
],
|
|
1804
|
+
], jr = /* @__PURE__ */ D({
|
|
1609
1805
|
__name: "NumberField",
|
|
1610
1806
|
props: {
|
|
1611
1807
|
field: {},
|
|
@@ -1615,8 +1811,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1615
1811
|
},
|
|
1616
1812
|
emits: ["update:modelValue"],
|
|
1617
1813
|
setup(e, { emit: t }) {
|
|
1618
|
-
let n = t, { t: r } =
|
|
1619
|
-
return (t, i) => (a(),
|
|
1814
|
+
let n = t, { t: r } = V();
|
|
1815
|
+
return (t, i) => (a(), w(Tr, {
|
|
1620
1816
|
"hide-label": e.hideLabel,
|
|
1621
1817
|
label: e.field.label,
|
|
1622
1818
|
required: e.field.required,
|
|
@@ -1624,7 +1820,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1624
1820
|
}, {
|
|
1625
1821
|
default: u(() => [b("input", {
|
|
1626
1822
|
type: "number",
|
|
1627
|
-
class: o([h(
|
|
1823
|
+
class: o([h(z), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1628
1824
|
value: e.modelValue,
|
|
1629
1825
|
placeholder: e.field.placeholder,
|
|
1630
1826
|
min: e.field.min,
|
|
@@ -1633,7 +1829,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1633
1829
|
disabled: e.readOnly,
|
|
1634
1830
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1635
1831
|
onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1636
|
-
}, null, 42,
|
|
1832
|
+
}, null, 42, Ar)]),
|
|
1637
1833
|
_: 1
|
|
1638
1834
|
}, 8, [
|
|
1639
1835
|
"hide-label",
|
|
@@ -1642,13 +1838,13 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1642
1838
|
"read-only"
|
|
1643
1839
|
]));
|
|
1644
1840
|
}
|
|
1645
|
-
}),
|
|
1841
|
+
}), Mr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Nr = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Pr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Fr = ["title", "onClick"], Ir = {
|
|
1646
1842
|
key: 1,
|
|
1647
1843
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1648
|
-
},
|
|
1844
|
+
}, Lr = {
|
|
1649
1845
|
key: 2,
|
|
1650
1846
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1651
|
-
},
|
|
1847
|
+
}, Rr = /* @__PURE__ */ D({
|
|
1652
1848
|
__name: "RepeatableField",
|
|
1653
1849
|
props: {
|
|
1654
1850
|
field: {},
|
|
@@ -1658,8 +1854,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1658
1854
|
},
|
|
1659
1855
|
emits: ["update:modelValue"],
|
|
1660
1856
|
setup(e, { emit: t }) {
|
|
1661
|
-
let n = e, c = t, { t: l, format: d } =
|
|
1662
|
-
function
|
|
1857
|
+
let n = e, c = t, { t: l, format: d } = V(), f = m(() => n.modelValue || []), _ = m(() => !n.field.maxItems || f.value.length < n.field.maxItems), x = m(() => !n.field.minItems || f.value.length > n.field.minItems);
|
|
1858
|
+
function C() {
|
|
1663
1859
|
if (!_.value || n.readOnly) return;
|
|
1664
1860
|
let e = {};
|
|
1665
1861
|
for (let t of n.field.fields) e[t.key] = t.default ?? "";
|
|
@@ -1677,26 +1873,26 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1677
1873
|
} : r);
|
|
1678
1874
|
c("update:modelValue", r);
|
|
1679
1875
|
}
|
|
1680
|
-
return (t, n) => (a(),
|
|
1876
|
+
return (t, n) => (a(), w(Tr, {
|
|
1681
1877
|
"hide-label": e.hideLabel,
|
|
1682
1878
|
label: e.field.label,
|
|
1683
1879
|
required: e.field.required,
|
|
1684
1880
|
"read-only": e.readOnly
|
|
1685
1881
|
}, {
|
|
1686
|
-
default: u(() => [b("div",
|
|
1882
|
+
default: u(() => [b("div", Mr, [
|
|
1687
1883
|
(a(!0), v(S, null, s(f.value, (t, n) => (a(), v("div", {
|
|
1688
1884
|
key: `${e.field.key}-${n}`,
|
|
1689
1885
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1690
|
-
}, [b("div",
|
|
1886
|
+
}, [b("div", Nr, [b("span", Pr, " #" + r(n + 1), 1), x.value && !e.readOnly ? (a(), v("button", {
|
|
1691
1887
|
key: 0,
|
|
1692
1888
|
type: "button",
|
|
1693
1889
|
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:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
1694
1890
|
title: h(l).customBlocks.fields.removeItem,
|
|
1695
1891
|
onClick: (e) => T(n)
|
|
1696
|
-
}, [p(h(
|
|
1892
|
+
}, [p(h(at), {
|
|
1697
1893
|
size: 12,
|
|
1698
1894
|
"stroke-width": 2
|
|
1699
|
-
})], 8,
|
|
1895
|
+
})], 8, Fr)) : g("", !0)]), (a(!0), v(S, null, s(e.field.fields, (r) => (a(), w(i(h(qr)(r.type)), {
|
|
1700
1896
|
key: r.key,
|
|
1701
1897
|
field: r,
|
|
1702
1898
|
"model-value": t[r.key],
|
|
@@ -1711,14 +1907,14 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1711
1907
|
_.value && !e.readOnly ? (a(), v("button", {
|
|
1712
1908
|
key: 0,
|
|
1713
1909
|
type: "button",
|
|
1714
|
-
class: o(h(
|
|
1715
|
-
onClick:
|
|
1716
|
-
}, [p(h(
|
|
1910
|
+
class: o(h(te)),
|
|
1911
|
+
onClick: C
|
|
1912
|
+
}, [p(h(Z), {
|
|
1717
1913
|
size: 14,
|
|
1718
1914
|
"stroke-width": 2
|
|
1719
1915
|
}), y(" " + r(h(l).customBlocks.fields.addItem), 1)], 2)) : g("", !0),
|
|
1720
|
-
!_.value && !e.readOnly ? (a(), v("p",
|
|
1721
|
-
!x.value && !e.readOnly ? (a(), v("p",
|
|
1916
|
+
!_.value && !e.readOnly ? (a(), v("p", Ir, r(h(l).customBlocks.fields.maxItemsReached), 1)) : g("", !0),
|
|
1917
|
+
!x.value && !e.readOnly ? (a(), v("p", Lr, r(h(d)(h(l).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : g("", !0)
|
|
1722
1918
|
])]),
|
|
1723
1919
|
_: 1
|
|
1724
1920
|
}, 8, [
|
|
@@ -1728,11 +1924,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1728
1924
|
"read-only"
|
|
1729
1925
|
]));
|
|
1730
1926
|
}
|
|
1731
|
-
}),
|
|
1927
|
+
}), zr = [
|
|
1732
1928
|
"value",
|
|
1733
1929
|
"disabled",
|
|
1734
1930
|
"title"
|
|
1735
|
-
],
|
|
1931
|
+
], Br = ["value"], Vr = /* @__PURE__ */ D({
|
|
1736
1932
|
__name: "SelectField",
|
|
1737
1933
|
props: {
|
|
1738
1934
|
field: {},
|
|
@@ -1742,15 +1938,15 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1742
1938
|
},
|
|
1743
1939
|
emits: ["update:modelValue"],
|
|
1744
1940
|
setup(e, { emit: t }) {
|
|
1745
|
-
let n = t, { t: i } =
|
|
1746
|
-
return (t, c) => (a(),
|
|
1941
|
+
let n = t, { t: i } = V();
|
|
1942
|
+
return (t, c) => (a(), w(Tr, {
|
|
1747
1943
|
"hide-label": e.hideLabel,
|
|
1748
1944
|
label: e.field.label,
|
|
1749
1945
|
required: e.field.required,
|
|
1750
1946
|
"read-only": e.readOnly
|
|
1751
1947
|
}, {
|
|
1752
1948
|
default: u(() => [b("select", {
|
|
1753
|
-
class: o([h(
|
|
1949
|
+
class: o([h(z), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1754
1950
|
value: e.modelValue,
|
|
1755
1951
|
disabled: e.readOnly,
|
|
1756
1952
|
title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
@@ -1758,7 +1954,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1758
1954
|
}, [(a(!0), v(S, null, s(e.field.options, (e) => (a(), v("option", {
|
|
1759
1955
|
key: e.value,
|
|
1760
1956
|
value: e.value
|
|
1761
|
-
}, r(e.label), 9,
|
|
1957
|
+
}, r(e.label), 9, Br))), 128))], 42, zr)]),
|
|
1762
1958
|
_: 1
|
|
1763
1959
|
}, 8, [
|
|
1764
1960
|
"hide-label",
|
|
@@ -1767,11 +1963,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1767
1963
|
"read-only"
|
|
1768
1964
|
]));
|
|
1769
1965
|
}
|
|
1770
|
-
}),
|
|
1966
|
+
}), Hr = [
|
|
1771
1967
|
"value",
|
|
1772
1968
|
"placeholder",
|
|
1773
1969
|
"title"
|
|
1774
|
-
],
|
|
1970
|
+
], Ur = /* @__PURE__ */ D({
|
|
1775
1971
|
__name: "TextField",
|
|
1776
1972
|
props: {
|
|
1777
1973
|
field: {},
|
|
@@ -1781,8 +1977,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1781
1977
|
},
|
|
1782
1978
|
emits: ["update:modelValue"],
|
|
1783
1979
|
setup(e, { emit: t }) {
|
|
1784
|
-
let n = t, { t: r } =
|
|
1785
|
-
return (t, i) => (a(),
|
|
1980
|
+
let n = t, { t: r } = V();
|
|
1981
|
+
return (t, i) => (a(), w(Tr, {
|
|
1786
1982
|
"hide-label": e.hideLabel,
|
|
1787
1983
|
label: e.field.label,
|
|
1788
1984
|
required: e.field.required,
|
|
@@ -1791,12 +1987,12 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1791
1987
|
default: u(() => [e.readOnly ? (a(), v("input", {
|
|
1792
1988
|
key: 0,
|
|
1793
1989
|
type: "text",
|
|
1794
|
-
class: o([h(
|
|
1990
|
+
class: o([h(z), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1795
1991
|
value: e.modelValue,
|
|
1796
1992
|
placeholder: e.field.placeholder,
|
|
1797
1993
|
disabled: "",
|
|
1798
1994
|
title: h(r).customBlocks.dataSource.readOnlyTooltip
|
|
1799
|
-
}, null, 10,
|
|
1995
|
+
}, null, 10, Hr)) : (a(), w(N, {
|
|
1800
1996
|
key: 1,
|
|
1801
1997
|
"model-value": e.modelValue,
|
|
1802
1998
|
placeholder: e.field.placeholder,
|
|
@@ -1810,13 +2006,13 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1810
2006
|
"read-only"
|
|
1811
2007
|
]));
|
|
1812
2008
|
}
|
|
1813
|
-
}),
|
|
2009
|
+
}), Wr = [
|
|
1814
2010
|
"value",
|
|
1815
2011
|
"placeholder",
|
|
1816
2012
|
"title"
|
|
1817
|
-
],
|
|
1818
|
-
text:
|
|
1819
|
-
textarea: /* @__PURE__ */
|
|
2013
|
+
], Gr = "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", Kr = {
|
|
2014
|
+
text: Ur,
|
|
2015
|
+
textarea: /* @__PURE__ */ D({
|
|
1820
2016
|
__name: "TextareaField",
|
|
1821
2017
|
props: {
|
|
1822
2018
|
field: {},
|
|
@@ -1826,8 +2022,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1826
2022
|
},
|
|
1827
2023
|
emits: ["update:modelValue"],
|
|
1828
2024
|
setup(e, { emit: t }) {
|
|
1829
|
-
let n = t, { t: r } =
|
|
1830
|
-
return (t, i) => (a(),
|
|
2025
|
+
let n = t, { t: r } = V();
|
|
2026
|
+
return (t, i) => (a(), w(Tr, {
|
|
1831
2027
|
"hide-label": e.hideLabel,
|
|
1832
2028
|
label: e.field.label,
|
|
1833
2029
|
required: e.field.required,
|
|
@@ -1840,8 +2036,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1840
2036
|
rows: "3",
|
|
1841
2037
|
disabled: "",
|
|
1842
2038
|
title: h(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1843
|
-
class: o(
|
|
1844
|
-
}, null, 8,
|
|
2039
|
+
class: o(Gr)
|
|
2040
|
+
}, null, 8, Wr)) : (a(), w(j, {
|
|
1845
2041
|
key: 1,
|
|
1846
2042
|
"model-value": e.modelValue,
|
|
1847
2043
|
placeholder: e.field.placeholder,
|
|
@@ -1856,41 +2052,41 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1856
2052
|
]));
|
|
1857
2053
|
}
|
|
1858
2054
|
}),
|
|
1859
|
-
image:
|
|
1860
|
-
color:
|
|
1861
|
-
number:
|
|
1862
|
-
select:
|
|
1863
|
-
boolean:
|
|
1864
|
-
repeatable:
|
|
2055
|
+
image: kr,
|
|
2056
|
+
color: Er,
|
|
2057
|
+
number: jr,
|
|
2058
|
+
select: Vr,
|
|
2059
|
+
boolean: Cr,
|
|
2060
|
+
repeatable: Rr
|
|
1865
2061
|
};
|
|
1866
|
-
function
|
|
1867
|
-
return
|
|
2062
|
+
function qr(e) {
|
|
2063
|
+
return Kr[e] ?? Ur;
|
|
1868
2064
|
}
|
|
1869
2065
|
// src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1870
|
-
var
|
|
2066
|
+
var Jr = {
|
|
1871
2067
|
key: 0,
|
|
1872
2068
|
class: "tpl:p-4"
|
|
1873
|
-
},
|
|
2069
|
+
}, Yr = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Xr = { key: 1 }, Zr = {
|
|
1874
2070
|
key: 0,
|
|
1875
2071
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1876
|
-
},
|
|
2072
|
+
}, Qr = {
|
|
1877
2073
|
key: 1,
|
|
1878
2074
|
class: "tpl:mb-4"
|
|
1879
|
-
},
|
|
2075
|
+
}, $r = {
|
|
1880
2076
|
key: 1,
|
|
1881
2077
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1882
|
-
},
|
|
2078
|
+
}, ei = {
|
|
1883
2079
|
key: 0,
|
|
1884
2080
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1885
|
-
},
|
|
2081
|
+
}, ti = {
|
|
1886
2082
|
key: 2,
|
|
1887
2083
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1888
|
-
},
|
|
2084
|
+
}, ni = /* @__PURE__ */ D({
|
|
1889
2085
|
__name: "CustomBlockToolbar",
|
|
1890
2086
|
props: { block: {} },
|
|
1891
2087
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1892
2088
|
setup(e, { emit: t }) {
|
|
1893
|
-
let n = e, o = t, { t: c } =
|
|
2089
|
+
let n = e, o = t, { t: c } = V(), l = E(Ke, []), d = m(() => l.find((e) => e.type === n.block.customType)), f = m(() => n.block), { isFetching: _, fetchError: x, fetch: C, hasDataSource: T, needsFetch: D } = be({
|
|
1894
2090
|
definition: d,
|
|
1895
2091
|
block: f,
|
|
1896
2092
|
onUpdate: (e, t) => {
|
|
@@ -1898,7 +2094,7 @@ var Er = {
|
|
|
1898
2094
|
}
|
|
1899
2095
|
});
|
|
1900
2096
|
function O(e) {
|
|
1901
|
-
return e.readOnly === !0 &&
|
|
2097
|
+
return e.readOnly === !0 && T.value && !!n.block.dataSourceFetched;
|
|
1902
2098
|
}
|
|
1903
2099
|
function k(e, t) {
|
|
1904
2100
|
o("updateFieldValues", {
|
|
@@ -1906,28 +2102,28 @@ var Er = {
|
|
|
1906
2102
|
[e]: t
|
|
1907
2103
|
});
|
|
1908
2104
|
}
|
|
1909
|
-
return (t, n) => d.value ? (a(), v("div",
|
|
1910
|
-
d.value.description ? (a(), v("p",
|
|
1911
|
-
h(
|
|
2105
|
+
return (t, n) => d.value ? (a(), v("div", Xr, [
|
|
2106
|
+
d.value.description ? (a(), v("p", Zr, r(d.value.description), 1)) : g("", !0),
|
|
2107
|
+
h(T) ? (a(), v("div", Qr, [h(D) && !h(_) ? (a(), v("button", {
|
|
1912
2108
|
key: 0,
|
|
1913
2109
|
type: "button",
|
|
1914
2110
|
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-on-primary)] tpl:transition-all tpl:bg-[var(--tpl-primary)]",
|
|
1915
|
-
onClick: n[0] ||= (...e) => h(
|
|
1916
|
-
}, r(d.value?.dataSource?.label || h(c).customBlocks.dataSource.fetchButton), 1)) : (a(), v("div",
|
|
2111
|
+
onClick: n[0] ||= (...e) => h(C) && h(C)(...e)
|
|
2112
|
+
}, r(d.value?.dataSource?.label || h(c).customBlocks.dataSource.fetchButton), 1)) : (a(), v("div", $r, [h(_) ? (a(), v("div", ei, r(h(c).customBlocks.dataSource.fetching), 1)) : (a(), v("button", {
|
|
1917
2113
|
key: 1,
|
|
1918
2114
|
type: "button",
|
|
1919
2115
|
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:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
|
|
1920
|
-
onClick: n[1] ||= (...e) => h(
|
|
1921
|
-
}, [p(h(
|
|
2116
|
+
onClick: n[1] ||= (...e) => h(C) && h(C)(...e)
|
|
2117
|
+
}, [p(h(nt), { size: 12 }), y(" " + r(h(c).customBlocks.dataSource.changeButton), 1)]))])), h(x) ? (a(), v("p", ti, [p(h(tt), {
|
|
1922
2118
|
size: 14,
|
|
1923
2119
|
class: "tpl:shrink-0"
|
|
1924
2120
|
}), y(" " + r(h(c).customBlocks.dataSource.fetchError), 1)])) : g("", !0)])) : g("", !0),
|
|
1925
|
-
(a(!0), v(S, null, s(d.value.fields, (t) => (a(),
|
|
2121
|
+
(a(!0), v(S, null, s(d.value.fields, (t) => (a(), w(A, {
|
|
1926
2122
|
key: t.key,
|
|
1927
2123
|
path: `fieldValues.${t.key}`,
|
|
1928
2124
|
label: t.label
|
|
1929
2125
|
}, {
|
|
1930
|
-
label: u(() => [p(
|
|
2126
|
+
label: u(() => [p(xr, {
|
|
1931
2127
|
label: t.label,
|
|
1932
2128
|
required: t.required,
|
|
1933
2129
|
"read-only": O(t)
|
|
@@ -1936,7 +2132,7 @@ var Er = {
|
|
|
1936
2132
|
"required",
|
|
1937
2133
|
"read-only"
|
|
1938
2134
|
])]),
|
|
1939
|
-
default: u(({ controlId: n }) => [(a(),
|
|
2135
|
+
default: u(({ controlId: n }) => [(a(), w(i(h(qr)(t.type)), {
|
|
1940
2136
|
"control-id": t.type === "boolean" ? n : void 0,
|
|
1941
2137
|
field: t,
|
|
1942
2138
|
"hide-label": "",
|
|
@@ -1952,24 +2148,24 @@ var Er = {
|
|
|
1952
2148
|
]))]),
|
|
1953
2149
|
_: 2
|
|
1954
2150
|
}, 1032, ["path", "label"]))), 128))
|
|
1955
|
-
])) : (a(), v("div",
|
|
2151
|
+
])) : (a(), v("div", Jr, [b("p", Yr, r(h(c).customBlocks.toolbar.noDefinition), 1)]));
|
|
1956
2152
|
}
|
|
1957
|
-
}),
|
|
2153
|
+
}), ri = { class: "tpl:flex tpl:items-stretch" }, ii = ["value"], ai = /* @__PURE__ */ D({
|
|
1958
2154
|
__name: "DividerToolbar",
|
|
1959
2155
|
props: { block: {} },
|
|
1960
2156
|
emits: ["update"],
|
|
1961
2157
|
setup(e, { emit: t }) {
|
|
1962
|
-
let n = t, { t: r } =
|
|
2158
|
+
let n = t, { t: r } = V();
|
|
1963
2159
|
function i(e, t) {
|
|
1964
2160
|
n("update", { [e]: t });
|
|
1965
2161
|
}
|
|
1966
2162
|
return (t, n) => (a(), v(S, null, [
|
|
1967
|
-
p(
|
|
2163
|
+
p(A, {
|
|
1968
2164
|
label: h(r).divider.style,
|
|
1969
2165
|
class: "tpl:mb-3.5",
|
|
1970
2166
|
path: "lineStyle"
|
|
1971
2167
|
}, {
|
|
1972
|
-
default: u(() => [p(
|
|
2168
|
+
default: u(() => [p($, {
|
|
1973
2169
|
options: [
|
|
1974
2170
|
{
|
|
1975
2171
|
value: "solid",
|
|
@@ -1989,41 +2185,41 @@ var Er = {
|
|
|
1989
2185
|
}, null, 8, ["options", "model-value"])]),
|
|
1990
2186
|
_: 1
|
|
1991
2187
|
}, 8, ["label"]),
|
|
1992
|
-
p(
|
|
2188
|
+
p(A, {
|
|
1993
2189
|
label: h(r).divider.color,
|
|
1994
2190
|
class: "tpl:mb-3.5",
|
|
1995
2191
|
path: "color"
|
|
1996
2192
|
}, {
|
|
1997
|
-
default: u(() => [p(
|
|
2193
|
+
default: u(() => [p(M, {
|
|
1998
2194
|
"model-value": e.block.color,
|
|
1999
2195
|
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
2000
2196
|
}, null, 8, ["model-value"])]),
|
|
2001
2197
|
_: 1
|
|
2002
2198
|
}, 8, ["label"]),
|
|
2003
|
-
p(
|
|
2199
|
+
p(A, {
|
|
2004
2200
|
label: h(r).divider.thickness,
|
|
2005
2201
|
class: "tpl:mb-3.5",
|
|
2006
2202
|
path: "thickness"
|
|
2007
2203
|
}, {
|
|
2008
|
-
default: u(() => [b("div",
|
|
2204
|
+
default: u(() => [b("div", ri, [b("input", {
|
|
2009
2205
|
type: "number",
|
|
2010
|
-
class: o(h(
|
|
2206
|
+
class: o(h(R)),
|
|
2011
2207
|
value: e.block.thickness,
|
|
2012
2208
|
min: "1",
|
|
2013
2209
|
max: "10",
|
|
2014
2210
|
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
2015
|
-
}, null, 42,
|
|
2211
|
+
}, null, 42, ii), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
2016
2212
|
_: 1
|
|
2017
2213
|
}, 8, ["label"])
|
|
2018
2214
|
], 64));
|
|
2019
2215
|
}
|
|
2020
|
-
}),
|
|
2216
|
+
}), oi = ["value"], si = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ci = /* @__PURE__ */ D({
|
|
2021
2217
|
__name: "HtmlToolbar",
|
|
2022
2218
|
props: { block: {} },
|
|
2023
2219
|
emits: ["update"],
|
|
2024
2220
|
setup(e, { emit: t }) {
|
|
2025
|
-
let n = t, { t: i } =
|
|
2026
|
-
return (t, s) => (a(),
|
|
2221
|
+
let n = t, { t: i } = V();
|
|
2222
|
+
return (t, s) => (a(), w(A, {
|
|
2027
2223
|
label: h(i).html.content,
|
|
2028
2224
|
class: "tpl:mb-3.5",
|
|
2029
2225
|
path: "content"
|
|
@@ -2032,9 +2228,9 @@ var Er = {
|
|
|
2032
2228
|
value: e.block.content,
|
|
2033
2229
|
placeholder: "<div>...</div>",
|
|
2034
2230
|
rows: "10",
|
|
2035
|
-
class: o(h(
|
|
2231
|
+
class: o(h(re)),
|
|
2036
2232
|
onInput: s[0] ||= (e) => n("update", { content: e.target.value })
|
|
2037
|
-
}, null, 42,
|
|
2233
|
+
}, null, 42, oi), b("p", si, [p(h(ot), {
|
|
2038
2234
|
size: 12,
|
|
2039
2235
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2040
2236
|
}), y(" " + r(h(i).html.sanitizationHint), 1)])]),
|
|
@@ -2043,12 +2239,12 @@ var Er = {
|
|
|
2043
2239
|
}
|
|
2044
2240
|
});
|
|
2045
2241
|
// src/composables/useImageAspectLock.ts
|
|
2046
|
-
function
|
|
2242
|
+
function li(e) {
|
|
2047
2243
|
let n = _(!1), r = _(null);
|
|
2048
2244
|
t(() => e.block().id, () => {
|
|
2049
2245
|
n.value = !1, r.value = null;
|
|
2050
2246
|
});
|
|
2051
|
-
let i = m(() =>
|
|
2247
|
+
let i = m(() => Ee(e.block()) ?? e.measured()), a = m(() => {
|
|
2052
2248
|
let t = e.block().width;
|
|
2053
2249
|
return t === "full" ? e.room() : t;
|
|
2054
2250
|
}), o = m(() => {
|
|
@@ -2059,9 +2255,9 @@ function Vr(e) {
|
|
|
2059
2255
|
return t === void 0 || o.value !== null && Math.abs(o.value - t) <= 1;
|
|
2060
2256
|
}), l = m(() => s.value && !n.value && c.value);
|
|
2061
2257
|
function u() {
|
|
2062
|
-
if (
|
|
2258
|
+
if (Ee(e.block())) return {};
|
|
2063
2259
|
let t = e.measured();
|
|
2064
|
-
return t ?
|
|
2260
|
+
return t ? Q(t) : {};
|
|
2065
2261
|
}
|
|
2066
2262
|
function d(t) {
|
|
2067
2263
|
if (r.value = null, !t) return n.value = !0, null;
|
|
@@ -2103,114 +2299,114 @@ function Vr(e) {
|
|
|
2103
2299
|
};
|
|
2104
2300
|
}
|
|
2105
2301
|
// src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2106
|
-
var
|
|
2302
|
+
var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
2107
2303
|
"value",
|
|
2108
2304
|
"placeholder",
|
|
2109
2305
|
"title"
|
|
2110
|
-
],
|
|
2306
|
+
], fi = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, pi = ["value"], mi = { value: "full" }, hi = { value: "custom" }, gi = {
|
|
2111
2307
|
key: 0,
|
|
2112
2308
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2113
|
-
},
|
|
2309
|
+
}, _i = ["value"], vi = ["value"], yi = { value: "auto" }, bi = { value: "always" }, xi = { value: "never" }, Si = { class: "tpl:flex tpl:items-stretch" }, Ci = ["value"], wi = {
|
|
2114
2310
|
key: 0,
|
|
2115
2311
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
2116
2312
|
role: "status",
|
|
2117
2313
|
"data-testid": "image-height-capped"
|
|
2118
|
-
},
|
|
2314
|
+
}, Ti = ["value"], Ei = { value: "auto" }, Di = { value: "custom" }, Oi = {
|
|
2119
2315
|
key: 2,
|
|
2120
2316
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2121
|
-
},
|
|
2317
|
+
}, ki = ["value"], Ai = 350, ji = 200, Mi = /* @__PURE__ */ D({
|
|
2122
2318
|
__name: "ImageToolbar",
|
|
2123
2319
|
props: { block: {} },
|
|
2124
2320
|
emits: ["update"],
|
|
2125
2321
|
setup(e, { emit: t }) {
|
|
2126
|
-
let n = e, i = t, { t: s, format: c } =
|
|
2127
|
-
|
|
2128
|
-
}, 1e3, { immediate: !1 }),
|
|
2322
|
+
let n = e, i = t, { t: s, format: c } = V(), l = E(Le, de.liquid), d = E(Xe, null), f = d ? st(d) : null, C = E(Ve, void 0), T = _(!1), D = _(!1), { start: O } = ct(() => {
|
|
2323
|
+
T.value = !1, D.value = !1;
|
|
2324
|
+
}, 1e3, { immediate: !1 }), k = [
|
|
2129
2325
|
300,
|
|
2130
2326
|
400,
|
|
2131
2327
|
500
|
|
2132
2328
|
], j = m(() => {
|
|
2133
2329
|
let e = n.block.width;
|
|
2134
|
-
return e === "full" ? "full" :
|
|
2135
|
-
}), M = m(() => typeof n.block.height == "number" ? "custom" : "auto"),
|
|
2136
|
-
function
|
|
2330
|
+
return e === "full" ? "full" : k.includes(e) ? String(e) : "custom";
|
|
2331
|
+
}), M = m(() => typeof n.block.height == "number" ? "custom" : "auto"), F = m(() => n.block.fluidOnMobile === !0 ? "always" : n.block.fluidOnMobile === !1 ? "never" : "auto");
|
|
2332
|
+
function I(e, t) {
|
|
2137
2333
|
i("update", { [e]: t });
|
|
2138
2334
|
}
|
|
2139
|
-
function
|
|
2335
|
+
function ee(e) {
|
|
2140
2336
|
if (e === "custom") {
|
|
2141
2337
|
let e = n.block.width;
|
|
2142
|
-
(typeof e != "number" ||
|
|
2143
|
-
} else i("update",
|
|
2338
|
+
(typeof e != "number" || k.includes(e)) && i("update", G.widthUpdates(Ai));
|
|
2339
|
+
} else i("update", G.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2144
2340
|
}
|
|
2145
|
-
function
|
|
2146
|
-
|
|
2341
|
+
function te(e) {
|
|
2342
|
+
I("height", e === "custom" ? ji : void 0);
|
|
2147
2343
|
}
|
|
2148
|
-
function
|
|
2149
|
-
|
|
2344
|
+
function ne(e) {
|
|
2345
|
+
I("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
2150
2346
|
}
|
|
2151
|
-
function
|
|
2347
|
+
function B(e) {
|
|
2152
2348
|
let t = Number(e);
|
|
2153
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
2349
|
+
!Number.isFinite(t) || t <= 0 || I("height", t);
|
|
2154
2350
|
}
|
|
2155
|
-
function
|
|
2156
|
-
|
|
2351
|
+
function re(e) {
|
|
2352
|
+
I("borderRadius", me(e) === null ? void 0 : e);
|
|
2157
2353
|
}
|
|
2158
|
-
function
|
|
2354
|
+
function ie(e) {
|
|
2159
2355
|
let t = Number(e);
|
|
2160
|
-
!Number.isFinite(t) || t <= 0 || i("update",
|
|
2356
|
+
!Number.isFinite(t) || t <= 0 || i("update", G.widthUpdates(t));
|
|
2161
2357
|
}
|
|
2162
|
-
function
|
|
2358
|
+
function ae(e) {
|
|
2163
2359
|
e !== n.block.src && i("update", {
|
|
2164
2360
|
src: e,
|
|
2165
|
-
...
|
|
2361
|
+
...Q(null)
|
|
2166
2362
|
});
|
|
2167
2363
|
}
|
|
2168
|
-
function
|
|
2364
|
+
function oe(e) {
|
|
2169
2365
|
i("update", {
|
|
2170
2366
|
src: e.url,
|
|
2171
|
-
...
|
|
2172
|
-
}), e.alt && (
|
|
2367
|
+
...Q(Se(e.width, e.height))
|
|
2368
|
+
}), e.alt && (I("alt", e.alt), D.value = !0), T.value = !0, O();
|
|
2173
2369
|
}
|
|
2174
|
-
let
|
|
2175
|
-
target:
|
|
2370
|
+
let se = _(), ce = m(() => H(n.block.src, l)), { canBrowse: le, isUploading: ue, showOverlay: fe, openMediaBrowser: pe } = Pe({
|
|
2371
|
+
target: se,
|
|
2176
2372
|
blocked: ce,
|
|
2177
|
-
apply:
|
|
2178
|
-
}),
|
|
2373
|
+
apply: oe
|
|
2374
|
+
}), he = xe(() => ce.value || !n.block.src || Ee(n.block) ? void 0 : n.block.src), U = pn(() => he.value), W = m(() => f ? De(f.content.value, n.block.id, C) : null), G = li({
|
|
2179
2375
|
block: () => n.block,
|
|
2180
|
-
room: () =>
|
|
2181
|
-
measured: () =>
|
|
2182
|
-
}), { available:
|
|
2183
|
-
function
|
|
2184
|
-
let e =
|
|
2376
|
+
room: () => W.value,
|
|
2377
|
+
measured: () => U.value
|
|
2378
|
+
}), { available: K, locked: q, derivedHeight: J, cappedHeight: ge } = G;
|
|
2379
|
+
function Y() {
|
|
2380
|
+
let e = G.setLocked(!q.value);
|
|
2185
2381
|
e && i("update", e);
|
|
2186
2382
|
}
|
|
2187
|
-
let
|
|
2188
|
-
function
|
|
2189
|
-
|
|
2190
|
-
let t =
|
|
2383
|
+
let _e = _(null);
|
|
2384
|
+
function X(e) {
|
|
2385
|
+
_e.value = e;
|
|
2386
|
+
let t = G.heightUpdates(Number(e));
|
|
2191
2387
|
t && i("update", t);
|
|
2192
2388
|
}
|
|
2193
2389
|
return (t, n) => (a(), v(S, null, [
|
|
2194
|
-
p(
|
|
2390
|
+
p(A, {
|
|
2195
2391
|
label: h(s).image.imageUrl,
|
|
2196
2392
|
class: "tpl:mb-3.5",
|
|
2197
2393
|
path: "src"
|
|
2198
2394
|
}, {
|
|
2199
2395
|
default: u(() => [b("div", {
|
|
2200
2396
|
ref_key: "dropZoneRef",
|
|
2201
|
-
ref:
|
|
2397
|
+
ref: se,
|
|
2202
2398
|
class: "tpl:relative"
|
|
2203
2399
|
}, [
|
|
2204
|
-
h(
|
|
2400
|
+
h(fe) ? (a(), w(Te, {
|
|
2205
2401
|
key: 0,
|
|
2206
|
-
uploading: h(
|
|
2402
|
+
uploading: h(ue)
|
|
2207
2403
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
2208
|
-
p(
|
|
2404
|
+
p(N, {
|
|
2209
2405
|
"model-value": e.block.src,
|
|
2210
2406
|
type: "url",
|
|
2211
2407
|
placeholder: h(s).image.imageUrlPlaceholder,
|
|
2212
|
-
pulse:
|
|
2213
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2408
|
+
pulse: T.value,
|
|
2409
|
+
"onUpdate:modelValue": n[0] ||= (e) => ae(e)
|
|
2214
2410
|
}, null, 8, [
|
|
2215
2411
|
"model-value",
|
|
2216
2412
|
"placeholder",
|
|
@@ -2224,59 +2420,59 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2224
2420
|
color: "var(--tpl-primary)",
|
|
2225
2421
|
"background-color": "var(--tpl-bg)"
|
|
2226
2422
|
},
|
|
2227
|
-
onClick: n[1] ||= (...e) => h(
|
|
2228
|
-
}, [p(h(
|
|
2423
|
+
onClick: n[1] ||= (...e) => h(pe) && h(pe)(...e)
|
|
2424
|
+
}, [p(h(Ie), {
|
|
2229
2425
|
size: 14,
|
|
2230
2426
|
"stroke-width": 1.5
|
|
2231
2427
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
|
|
2232
2428
|
], 512)]),
|
|
2233
2429
|
_: 1
|
|
2234
2430
|
}, 8, ["label"]),
|
|
2235
|
-
h(
|
|
2431
|
+
h(H)(e.block.src, h(l)) ? (a(), w(A, {
|
|
2236
2432
|
key: 0,
|
|
2237
2433
|
class: "tpl:mb-3.5",
|
|
2238
2434
|
path: "placeholderUrl"
|
|
2239
2435
|
}, {
|
|
2240
|
-
label: u(() => [y(r(h(s).image.placeholderUrl) + " ", 1), b("span",
|
|
2436
|
+
label: u(() => [y(r(h(s).image.placeholderUrl) + " ", 1), b("span", ui, r(h(s).image.optional), 1)]),
|
|
2241
2437
|
default: u(() => [b("input", {
|
|
2242
2438
|
type: "url",
|
|
2243
|
-
class: o(h(
|
|
2439
|
+
class: o(h(z)),
|
|
2244
2440
|
value: e.block.placeholderUrl || "",
|
|
2245
2441
|
placeholder: h(s).image.placeholderUrlPlaceholder,
|
|
2246
2442
|
title: h(s).image.placeholderUrlTooltip,
|
|
2247
|
-
onInput: n[2] ||= (e) =>
|
|
2248
|
-
}, null, 42,
|
|
2443
|
+
onInput: n[2] ||= (e) => I("placeholderUrl", e.target.value)
|
|
2444
|
+
}, null, 42, di)]),
|
|
2249
2445
|
_: 1
|
|
2250
2446
|
})) : g("", !0),
|
|
2251
|
-
p(
|
|
2447
|
+
p(A, {
|
|
2252
2448
|
label: h(s).image.altText,
|
|
2253
2449
|
class: "tpl:mb-3.5",
|
|
2254
2450
|
path: "alt"
|
|
2255
2451
|
}, {
|
|
2256
|
-
default: u(() => [p(
|
|
2452
|
+
default: u(() => [p(N, {
|
|
2257
2453
|
"model-value": e.block.alt,
|
|
2258
2454
|
type: "text",
|
|
2259
2455
|
placeholder: h(s).image.altTextPlaceholder,
|
|
2260
2456
|
pulse: D.value,
|
|
2261
2457
|
disabled: e.block.decorative === !0,
|
|
2262
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
2458
|
+
"onUpdate:modelValue": n[3] ||= (e) => I("alt", e)
|
|
2263
2459
|
}, null, 8, [
|
|
2264
2460
|
"model-value",
|
|
2265
2461
|
"placeholder",
|
|
2266
2462
|
"pulse",
|
|
2267
2463
|
"disabled"
|
|
2268
|
-
]), p(
|
|
2464
|
+
]), p(A, {
|
|
2269
2465
|
path: "decorative",
|
|
2270
2466
|
label: h(s).image.decorative
|
|
2271
2467
|
}, {
|
|
2272
|
-
label: u(() => [b("span", null, [y(r(h(s).image.decorative) + " ", 1), b("span",
|
|
2273
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
2468
|
+
label: u(() => [b("span", null, [y(r(h(s).image.decorative) + " ", 1), b("span", fi, r(h(s).image.decorativeHint), 1)])]),
|
|
2469
|
+
"label-actions": u(({ controlId: t }) => [p(P, {
|
|
2274
2470
|
"control-id": t,
|
|
2275
2471
|
"hide-label": "",
|
|
2276
2472
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2277
2473
|
"model-value": e.block.decorative === !0,
|
|
2278
2474
|
label: h(s).image.decorative,
|
|
2279
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
2475
|
+
"onUpdate:modelValue": n[4] ||= (e) => I("decorative", e)
|
|
2280
2476
|
}, null, 8, [
|
|
2281
2477
|
"control-id",
|
|
2282
2478
|
"model-value",
|
|
@@ -2286,89 +2482,89 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2286
2482
|
}, 8, ["label"])]),
|
|
2287
2483
|
_: 1
|
|
2288
2484
|
}, 8, ["label"]),
|
|
2289
|
-
p(
|
|
2485
|
+
p(A, {
|
|
2290
2486
|
label: h(s).image.width,
|
|
2291
2487
|
class: "tpl:mb-3.5",
|
|
2292
2488
|
path: "width"
|
|
2293
2489
|
}, {
|
|
2294
2490
|
default: u(() => [b("select", {
|
|
2295
|
-
class: o(h(
|
|
2491
|
+
class: o(h(z)),
|
|
2296
2492
|
"data-testid": "image-width-mode",
|
|
2297
2493
|
value: j.value,
|
|
2298
|
-
onChange: n[5] ||= (e) =>
|
|
2494
|
+
onChange: n[5] ||= (e) => ee(e.target.value)
|
|
2299
2495
|
}, [
|
|
2300
|
-
b("option",
|
|
2496
|
+
b("option", mi, r(h(s).image.fullWidth), 1),
|
|
2301
2497
|
n[16] ||= b("option", { value: "300" }, "300px", -1),
|
|
2302
2498
|
n[17] ||= b("option", { value: "400" }, "400px", -1),
|
|
2303
2499
|
n[18] ||= b("option", { value: "500" }, "500px", -1),
|
|
2304
|
-
b("option",
|
|
2305
|
-
], 42,
|
|
2500
|
+
b("option", hi, r(h(s).image.widthCustom), 1)
|
|
2501
|
+
], 42, pi), j.value === "custom" ? (a(), v("div", gi, [b("input", {
|
|
2306
2502
|
type: "number",
|
|
2307
2503
|
"data-testid": "image-width-input",
|
|
2308
|
-
class: o(h(
|
|
2309
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2504
|
+
class: o(h(R)),
|
|
2505
|
+
value: typeof e.block.width == "number" ? e.block.width : Ai,
|
|
2310
2506
|
min: "20",
|
|
2311
|
-
onInput: n[6] ||= (e) =>
|
|
2312
|
-
}, null, 42,
|
|
2507
|
+
onInput: n[6] ||= (e) => ie(e.target.value)
|
|
2508
|
+
}, null, 42, _i), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)]),
|
|
2313
2509
|
_: 1
|
|
2314
2510
|
}, 8, ["label"]),
|
|
2315
|
-
p(
|
|
2511
|
+
p(A, {
|
|
2316
2512
|
label: h(s).image.fluidOnMobile,
|
|
2317
2513
|
class: "tpl:mb-3.5",
|
|
2318
2514
|
path: "fluidOnMobile"
|
|
2319
2515
|
}, {
|
|
2320
2516
|
default: u(() => [b("select", {
|
|
2321
|
-
class: o(h(
|
|
2517
|
+
class: o(h(z)),
|
|
2322
2518
|
"data-testid": "image-fluid-on-mobile",
|
|
2323
|
-
value:
|
|
2324
|
-
onChange: n[7] ||= (e) =>
|
|
2519
|
+
value: F.value,
|
|
2520
|
+
onChange: n[7] ||= (e) => ne(e.target.value)
|
|
2325
2521
|
}, [
|
|
2326
|
-
b("option",
|
|
2327
|
-
b("option",
|
|
2328
|
-
b("option",
|
|
2329
|
-
], 42,
|
|
2522
|
+
b("option", yi, r(h(s).image.fluidOnMobileAuto), 1),
|
|
2523
|
+
b("option", bi, r(h(s).image.fluidOnMobileAlways), 1),
|
|
2524
|
+
b("option", xi, r(h(s).image.fluidOnMobileNever), 1)
|
|
2525
|
+
], 42, vi)]),
|
|
2330
2526
|
_: 1
|
|
2331
2527
|
}, 8, ["label"]),
|
|
2332
|
-
p(
|
|
2528
|
+
p(A, {
|
|
2333
2529
|
class: "tpl:mb-3.5",
|
|
2334
2530
|
path: "height",
|
|
2335
2531
|
label: h(s).image.height
|
|
2336
2532
|
}, x({
|
|
2337
2533
|
default: u(() => [
|
|
2338
|
-
h(
|
|
2534
|
+
h(q) ? (a(), v(S, { key: 0 }, [b("div", Si, [b("input", {
|
|
2339
2535
|
type: "number",
|
|
2340
2536
|
"data-testid": "image-locked-height-input",
|
|
2341
|
-
class: o(h(
|
|
2342
|
-
value:
|
|
2537
|
+
class: o(h(R)),
|
|
2538
|
+
value: _e.value ?? h(J) ?? "",
|
|
2343
2539
|
min: "1",
|
|
2344
|
-
onInput: n[8] ||= (e) =>
|
|
2345
|
-
onBlur: n[9] ||= (e) =>
|
|
2346
|
-
}, null, 42,
|
|
2347
|
-
h(
|
|
2540
|
+
onInput: n[8] ||= (e) => X(e.target.value),
|
|
2541
|
+
onBlur: n[9] ||= (e) => _e.value = null
|
|
2542
|
+
}, null, 42, Ci), b("span", { class: o(h(L)) }, "px", 2)]), h(ge) === null ? g("", !0) : (a(), v("p", wi, r(h(c)(h(s).image.heightCapped, { height: h(ge) })), 1))], 64)) : g("", !0),
|
|
2543
|
+
h(q) ? g("", !0) : (a(), v("select", {
|
|
2348
2544
|
key: 1,
|
|
2349
|
-
class: o(h(
|
|
2545
|
+
class: o(h(z)),
|
|
2350
2546
|
"data-testid": "image-height-mode",
|
|
2351
2547
|
value: M.value,
|
|
2352
|
-
onChange: n[10] ||= (e) =>
|
|
2353
|
-
}, [b("option",
|
|
2354
|
-
!h(
|
|
2548
|
+
onChange: n[10] ||= (e) => te(e.target.value)
|
|
2549
|
+
}, [b("option", Ei, r(h(s).image.heightAuto), 1), b("option", Di, r(h(s).image.heightCustom), 1)], 42, Ti)),
|
|
2550
|
+
!h(q) && M.value === "custom" ? (a(), v("div", Oi, [b("input", {
|
|
2355
2551
|
type: "number",
|
|
2356
2552
|
"data-testid": "image-height-input",
|
|
2357
|
-
class: o(h(
|
|
2553
|
+
class: o(h(R)),
|
|
2358
2554
|
value: e.block.height,
|
|
2359
2555
|
min: "20",
|
|
2360
|
-
onInput: n[11] ||= (e) =>
|
|
2361
|
-
}, null, 42,
|
|
2556
|
+
onInput: n[11] ||= (e) => B(e.target.value)
|
|
2557
|
+
}, null, 42, ki), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)
|
|
2362
2558
|
]),
|
|
2363
2559
|
_: 2
|
|
2364
|
-
}, [h(
|
|
2560
|
+
}, [h(K) ? {
|
|
2365
2561
|
name: "label-actions",
|
|
2366
|
-
fn: u(() => [p(
|
|
2367
|
-
linked: h(
|
|
2562
|
+
fn: u(() => [p(Ct, {
|
|
2563
|
+
linked: h(q),
|
|
2368
2564
|
"link-label": h(s).image.lockAspectRatio,
|
|
2369
2565
|
"unlink-label": h(s).image.unlockAspectRatio,
|
|
2370
2566
|
testid: "image-aspect-lock",
|
|
2371
|
-
onToggle:
|
|
2567
|
+
onToggle: Y
|
|
2372
2568
|
}, null, 8, [
|
|
2373
2569
|
"linked",
|
|
2374
2570
|
"link-label",
|
|
@@ -2376,25 +2572,25 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2376
2572
|
])]),
|
|
2377
2573
|
key: "0"
|
|
2378
2574
|
} : void 0]), 1032, ["label"]),
|
|
2379
|
-
p(
|
|
2575
|
+
p(At, {
|
|
2380
2576
|
path: "borderRadius",
|
|
2381
2577
|
"model-value": e.block.borderRadius,
|
|
2382
2578
|
label: h(s).image.borderRadius,
|
|
2383
2579
|
"testid-prefix": "image",
|
|
2384
|
-
"onUpdate:modelValue":
|
|
2580
|
+
"onUpdate:modelValue": re
|
|
2385
2581
|
}, null, 8, ["model-value", "label"]),
|
|
2386
|
-
p(
|
|
2582
|
+
p(Dt, {
|
|
2387
2583
|
path: "border",
|
|
2388
2584
|
"model-value": e.block.border,
|
|
2389
2585
|
"testid-prefix": "image",
|
|
2390
|
-
"onUpdate:modelValue": n[12] ||= (e) =>
|
|
2586
|
+
"onUpdate:modelValue": n[12] ||= (e) => I("border", e)
|
|
2391
2587
|
}, null, 8, ["model-value"]),
|
|
2392
|
-
p(
|
|
2588
|
+
p(A, {
|
|
2393
2589
|
label: h(s).title.align,
|
|
2394
2590
|
class: "tpl:mb-3.5",
|
|
2395
2591
|
path: "align"
|
|
2396
2592
|
}, {
|
|
2397
|
-
default: u(() => [p(
|
|
2593
|
+
default: u(() => [p($, {
|
|
2398
2594
|
options: [
|
|
2399
2595
|
{
|
|
2400
2596
|
value: "left",
|
|
@@ -2410,32 +2606,32 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2410
2606
|
}
|
|
2411
2607
|
],
|
|
2412
2608
|
"model-value": e.block.align,
|
|
2413
|
-
"onUpdate:modelValue": n[13] ||= (e) =>
|
|
2609
|
+
"onUpdate:modelValue": n[13] ||= (e) => I("align", e)
|
|
2414
2610
|
}, null, 8, ["options", "model-value"])]),
|
|
2415
2611
|
_: 1
|
|
2416
2612
|
}, 8, ["label"]),
|
|
2417
|
-
p(
|
|
2613
|
+
p(A, {
|
|
2418
2614
|
label: h(s).image.linkUrl,
|
|
2419
2615
|
class: "tpl:mb-3.5",
|
|
2420
2616
|
path: "linkUrl"
|
|
2421
2617
|
}, {
|
|
2422
|
-
default: u(() => [p(
|
|
2618
|
+
default: u(() => [p(N, {
|
|
2423
2619
|
"model-value": e.block.linkUrl || "",
|
|
2424
2620
|
type: "url",
|
|
2425
2621
|
placeholder: h(s).image.imageUrlPlaceholder,
|
|
2426
|
-
"onUpdate:modelValue": n[14] ||= (e) =>
|
|
2427
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (a(),
|
|
2622
|
+
"onUpdate:modelValue": n[14] ||= (e) => I("linkUrl", e)
|
|
2623
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (a(), w(A, {
|
|
2428
2624
|
key: 0,
|
|
2429
2625
|
path: "linkOpenInNewTab",
|
|
2430
2626
|
label: h(s).image.openInNewTab
|
|
2431
2627
|
}, {
|
|
2432
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
2628
|
+
"label-actions": u(({ controlId: t }) => [p(P, {
|
|
2433
2629
|
"control-id": t,
|
|
2434
2630
|
"hide-label": "",
|
|
2435
2631
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2436
2632
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2437
2633
|
label: h(s).image.openInNewTab,
|
|
2438
|
-
"onUpdate:modelValue": n[15] ||= (e) =>
|
|
2634
|
+
"onUpdate:modelValue": n[15] ||= (e) => I("linkOpenInNewTab", e)
|
|
2439
2635
|
}, null, 8, [
|
|
2440
2636
|
"control-id",
|
|
2441
2637
|
"model-value",
|
|
@@ -2447,11 +2643,11 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2447
2643
|
}, 8, ["label"])
|
|
2448
2644
|
], 64));
|
|
2449
2645
|
}
|
|
2450
|
-
}),
|
|
2646
|
+
}), Ni = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Pi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Fi = [
|
|
2451
2647
|
"value",
|
|
2452
2648
|
"placeholder",
|
|
2453
2649
|
"onInput"
|
|
2454
|
-
],
|
|
2650
|
+
], Ii = ["title", "onClick"], Li = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ri = { class: "tpl:flex tpl:items-center tpl:gap-2" }, zi = ["value"], Bi = { value: "" }, Vi = ["value"], Hi = ["value"], Ui = /* @__PURE__ */ D({
|
|
2455
2651
|
__name: "MenuToolbar",
|
|
2456
2652
|
props: {
|
|
2457
2653
|
block: {},
|
|
@@ -2459,7 +2655,7 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2459
2655
|
},
|
|
2460
2656
|
emits: ["update"],
|
|
2461
2657
|
setup(e, { emit: t }) {
|
|
2462
|
-
let n = e, i = t, { t: c } =
|
|
2658
|
+
let n = e, i = t, { t: c } = V(), l = m(() => [
|
|
2463
2659
|
{
|
|
2464
2660
|
key: "openInNewTab",
|
|
2465
2661
|
label: c.menu.openInNewTab
|
|
@@ -2476,17 +2672,17 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2476
2672
|
{
|
|
2477
2673
|
value: "left",
|
|
2478
2674
|
label: c.title.alignLeft,
|
|
2479
|
-
icon:
|
|
2675
|
+
icon: dt
|
|
2480
2676
|
},
|
|
2481
2677
|
{
|
|
2482
2678
|
value: "center",
|
|
2483
2679
|
label: c.title.alignCenter,
|
|
2484
|
-
icon:
|
|
2680
|
+
icon: ut
|
|
2485
2681
|
},
|
|
2486
2682
|
{
|
|
2487
2683
|
value: "right",
|
|
2488
2684
|
label: c.title.alignRight,
|
|
2489
|
-
icon:
|
|
2685
|
+
icon: lt
|
|
2490
2686
|
}
|
|
2491
2687
|
]);
|
|
2492
2688
|
function f(e, t) {
|
|
@@ -2494,7 +2690,7 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2494
2690
|
}
|
|
2495
2691
|
function g() {
|
|
2496
2692
|
let e = {
|
|
2497
|
-
id:
|
|
2693
|
+
id: q(),
|
|
2498
2694
|
text: "",
|
|
2499
2695
|
url: "",
|
|
2500
2696
|
openInNewTab: !1,
|
|
@@ -2514,36 +2710,36 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2514
2710
|
i("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2515
2711
|
}
|
|
2516
2712
|
return (t, n) => (a(), v(S, null, [
|
|
2517
|
-
p(
|
|
2518
|
-
default: u(() => [b("div",
|
|
2713
|
+
p(A, { label: h(c).menu.items }, {
|
|
2714
|
+
default: u(() => [b("div", Ni, [(a(!0), v(S, null, s(e.block.items, (t) => (a(), v("div", {
|
|
2519
2715
|
key: t.id,
|
|
2520
2716
|
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"
|
|
2521
2717
|
}, [
|
|
2522
|
-
b("div",
|
|
2718
|
+
b("div", Pi, [p(A, {
|
|
2523
2719
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
|
|
2524
2720
|
label: h(c).menu.text
|
|
2525
2721
|
}, {
|
|
2526
2722
|
default: u(() => [b("input", {
|
|
2527
2723
|
type: "text",
|
|
2528
|
-
class: o([h(
|
|
2724
|
+
class: o([h(z), "tpl:flex-1"]),
|
|
2529
2725
|
value: t.text,
|
|
2530
2726
|
placeholder: h(c).menu.text,
|
|
2531
2727
|
onInput: (e) => _(t.id, "text", e.target.value)
|
|
2532
|
-
}, null, 42,
|
|
2728
|
+
}, null, 42, Fi)]),
|
|
2533
2729
|
_: 2
|
|
2534
2730
|
}, 1032, ["path", "label"]), b("button", {
|
|
2535
|
-
class: o(h(
|
|
2731
|
+
class: o(h(I)),
|
|
2536
2732
|
title: h(c).menu.removeItem,
|
|
2537
2733
|
onClick: (e) => x(t.id)
|
|
2538
|
-
}, [p(h(
|
|
2734
|
+
}, [p(h(ft), {
|
|
2539
2735
|
size: 14,
|
|
2540
2736
|
"stroke-width": 2
|
|
2541
|
-
})], 10,
|
|
2542
|
-
p(
|
|
2737
|
+
})], 10, Ii)]),
|
|
2738
|
+
p(A, {
|
|
2543
2739
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
|
|
2544
2740
|
label: h(c).button.url
|
|
2545
2741
|
}, {
|
|
2546
|
-
default: u(() => [p(
|
|
2742
|
+
default: u(() => [p(N, {
|
|
2547
2743
|
"model-value": t.url,
|
|
2548
2744
|
type: "url",
|
|
2549
2745
|
placeholder: h(c).menu.urlPlaceholder,
|
|
@@ -2555,12 +2751,12 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2555
2751
|
])]),
|
|
2556
2752
|
_: 2
|
|
2557
2753
|
}, 1032, ["path", "label"]),
|
|
2558
|
-
b("div",
|
|
2754
|
+
b("div", Li, [(a(!0), v(S, null, s(l.value, (e) => (a(), w(A, {
|
|
2559
2755
|
key: e.key,
|
|
2560
2756
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
|
|
2561
2757
|
label: e.label
|
|
2562
2758
|
}, {
|
|
2563
|
-
"label-actions": u(({ controlId: n }) => [p(
|
|
2759
|
+
"label-actions": u(({ controlId: n }) => [p(P, {
|
|
2564
2760
|
"control-id": n,
|
|
2565
2761
|
"hide-label": "",
|
|
2566
2762
|
"model-value": t[e.key],
|
|
@@ -2574,11 +2770,11 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2574
2770
|
])]),
|
|
2575
2771
|
_: 2
|
|
2576
2772
|
}, 1032, ["path", "label"]))), 128))]),
|
|
2577
|
-
b("div",
|
|
2773
|
+
b("div", Ri, [p(A, {
|
|
2578
2774
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
|
|
2579
2775
|
label: h(c).menu.color
|
|
2580
2776
|
}, {
|
|
2581
|
-
default: u(() => [p(
|
|
2777
|
+
default: u(() => [p(M, {
|
|
2582
2778
|
"swatch-only": "",
|
|
2583
2779
|
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2584
2780
|
"onUpdate:modelValue": (e) => _(t.id, "color", e)
|
|
@@ -2586,33 +2782,33 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2586
2782
|
_: 2
|
|
2587
2783
|
}, 1032, ["path", "label"])])
|
|
2588
2784
|
]))), 128)), b("button", {
|
|
2589
|
-
class: o(h(
|
|
2785
|
+
class: o(h(te)),
|
|
2590
2786
|
onClick: g
|
|
2591
|
-
}, [p(h(
|
|
2787
|
+
}, [p(h(Z), {
|
|
2592
2788
|
size: 14,
|
|
2593
2789
|
"stroke-width": 2
|
|
2594
2790
|
}), y(" " + r(h(c).menu.addItem), 1)], 2)])]),
|
|
2595
2791
|
_: 1
|
|
2596
2792
|
}, 8, ["label"]),
|
|
2597
|
-
p(
|
|
2793
|
+
p(A, {
|
|
2598
2794
|
path: "fontFamily",
|
|
2599
2795
|
label: h(c).menu.fontFamily
|
|
2600
2796
|
}, {
|
|
2601
2797
|
default: u(() => [b("select", {
|
|
2602
|
-
class: o(h(
|
|
2603
|
-
value: h(
|
|
2798
|
+
class: o(h(z)),
|
|
2799
|
+
value: h(Y)(e.block.fontFamily),
|
|
2604
2800
|
onChange: n[0] ||= (e) => f("fontFamily", e.target.value || void 0)
|
|
2605
|
-
}, [b("option",
|
|
2801
|
+
}, [b("option", Bi, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
2606
2802
|
key: e.value,
|
|
2607
2803
|
value: e.value
|
|
2608
|
-
}, r(e.label), 9,
|
|
2804
|
+
}, r(e.label), 9, Vi))), 128))], 42, zi)]),
|
|
2609
2805
|
_: 1
|
|
2610
2806
|
}, 8, ["label"]),
|
|
2611
|
-
p(
|
|
2807
|
+
p(A, {
|
|
2612
2808
|
path: "fontSize",
|
|
2613
2809
|
label: h(c).menu.fontSize
|
|
2614
2810
|
}, {
|
|
2615
|
-
default: u(() => [p(
|
|
2811
|
+
default: u(() => [p(xt, {
|
|
2616
2812
|
"model-value": e.block.fontSize,
|
|
2617
2813
|
min: 8,
|
|
2618
2814
|
max: 48,
|
|
@@ -2621,64 +2817,64 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2621
2817
|
}, null, 8, ["model-value"])]),
|
|
2622
2818
|
_: 1
|
|
2623
2819
|
}, 8, ["label"]),
|
|
2624
|
-
p(
|
|
2820
|
+
p(A, {
|
|
2625
2821
|
path: "color",
|
|
2626
2822
|
label: h(c).menu.color
|
|
2627
2823
|
}, {
|
|
2628
|
-
default: u(() => [p(
|
|
2824
|
+
default: u(() => [p(M, {
|
|
2629
2825
|
"model-value": e.block.color ?? "",
|
|
2630
2826
|
"onUpdate:modelValue": n[2] ||= (e) => f("color", e || void 0)
|
|
2631
2827
|
}, null, 8, ["model-value"])]),
|
|
2632
2828
|
_: 1
|
|
2633
2829
|
}, 8, ["label"]),
|
|
2634
|
-
p(
|
|
2830
|
+
p(A, {
|
|
2635
2831
|
path: "linkColor",
|
|
2636
2832
|
label: h(c).menu.linkColor
|
|
2637
2833
|
}, {
|
|
2638
|
-
default: u(() => [p(
|
|
2834
|
+
default: u(() => [p(M, {
|
|
2639
2835
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
2640
2836
|
"onUpdate:modelValue": n[3] ||= (e) => f("linkColor", e || void 0)
|
|
2641
2837
|
}, null, 8, ["model-value"])]),
|
|
2642
2838
|
_: 1
|
|
2643
2839
|
}, 8, ["label"]),
|
|
2644
|
-
p(
|
|
2840
|
+
p(A, {
|
|
2645
2841
|
path: "textAlign",
|
|
2646
2842
|
label: h(c).menu.textAlign
|
|
2647
2843
|
}, {
|
|
2648
|
-
default: u(() => [p(
|
|
2844
|
+
default: u(() => [p($, {
|
|
2649
2845
|
options: d.value,
|
|
2650
2846
|
"model-value": e.block.textAlign,
|
|
2651
2847
|
"onUpdate:modelValue": n[4] ||= (e) => f("textAlign", e)
|
|
2652
2848
|
}, null, 8, ["options", "model-value"])]),
|
|
2653
2849
|
_: 1
|
|
2654
2850
|
}, 8, ["label"]),
|
|
2655
|
-
p(
|
|
2851
|
+
p(A, {
|
|
2656
2852
|
path: "separator",
|
|
2657
2853
|
label: h(c).menu.separator
|
|
2658
2854
|
}, {
|
|
2659
2855
|
default: u(() => [b("input", {
|
|
2660
2856
|
type: "text",
|
|
2661
|
-
class: o(h(
|
|
2857
|
+
class: o(h(z)),
|
|
2662
2858
|
value: e.block.separator,
|
|
2663
2859
|
onInput: n[5] ||= (e) => f("separator", e.target.value)
|
|
2664
|
-
}, null, 42,
|
|
2860
|
+
}, null, 42, Hi)]),
|
|
2665
2861
|
_: 1
|
|
2666
2862
|
}, 8, ["label"]),
|
|
2667
|
-
p(
|
|
2863
|
+
p(A, {
|
|
2668
2864
|
path: "separatorColor",
|
|
2669
2865
|
label: h(c).menu.separatorColor
|
|
2670
2866
|
}, {
|
|
2671
|
-
default: u(() => [p(
|
|
2867
|
+
default: u(() => [p(M, {
|
|
2672
2868
|
"model-value": e.block.separatorColor,
|
|
2673
2869
|
"onUpdate:modelValue": n[6] ||= (e) => f("separatorColor", e)
|
|
2674
2870
|
}, null, 8, ["model-value"])]),
|
|
2675
2871
|
_: 1
|
|
2676
2872
|
}, 8, ["label"]),
|
|
2677
|
-
p(
|
|
2873
|
+
p(A, {
|
|
2678
2874
|
path: "spacing",
|
|
2679
2875
|
label: h(c).menu.spacing
|
|
2680
2876
|
}, {
|
|
2681
|
-
default: u(() => [p(
|
|
2877
|
+
default: u(() => [p(xt, {
|
|
2682
2878
|
"model-value": e.block.spacing,
|
|
2683
2879
|
min: 0,
|
|
2684
2880
|
max: 50,
|
|
@@ -2689,33 +2885,33 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2689
2885
|
}, 8, ["label"])
|
|
2690
2886
|
], 64));
|
|
2691
2887
|
}
|
|
2692
|
-
}),
|
|
2888
|
+
}), Wi = { class: "tpl:flex tpl:items-stretch" }, Gi = ["value"], Ki = /* @__PURE__ */ D({
|
|
2693
2889
|
__name: "ParagraphToolbar",
|
|
2694
2890
|
props: { block: {} },
|
|
2695
2891
|
emits: ["update"],
|
|
2696
2892
|
setup(e, { emit: t }) {
|
|
2697
|
-
let n = t, { t: r } =
|
|
2698
|
-
return (t, i) => (a(),
|
|
2893
|
+
let n = t, { t: r } = V();
|
|
2894
|
+
return (t, i) => (a(), w(A, {
|
|
2699
2895
|
label: h(r).paragraph.paragraphSpacing,
|
|
2700
2896
|
class: "tpl:mb-3.5",
|
|
2701
2897
|
"data-testid": "paragraph-spacing",
|
|
2702
2898
|
path: "paragraphSpacing"
|
|
2703
2899
|
}, {
|
|
2704
|
-
default: u(() => [b("div",
|
|
2900
|
+
default: u(() => [b("div", Wi, [b("input", {
|
|
2705
2901
|
type: "number",
|
|
2706
|
-
class: o(h(
|
|
2707
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2902
|
+
class: o(h(R)),
|
|
2903
|
+
value: e.block.paragraphSpacing ?? h(ue).paragraphGap,
|
|
2708
2904
|
min: "0",
|
|
2709
2905
|
max: "64",
|
|
2710
2906
|
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2711
|
-
}, null, 42,
|
|
2907
|
+
}, null, 42, Gi), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
2712
2908
|
_: 1
|
|
2713
2909
|
}, 8, ["label"]));
|
|
2714
2910
|
}
|
|
2715
2911
|
});
|
|
2716
2912
|
// src/utils/rebalanceColumnChildren.ts
|
|
2717
|
-
function
|
|
2718
|
-
let n =
|
|
2913
|
+
function qi(e, t) {
|
|
2914
|
+
let n = le(t);
|
|
2719
2915
|
if (e.length === n) return e;
|
|
2720
2916
|
if (e.length < n) {
|
|
2721
2917
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2725,21 +2921,21 @@ function Ti(e, t) {
|
|
|
2725
2921
|
return [...r.slice(0, n - 1), a];
|
|
2726
2922
|
}
|
|
2727
2923
|
// src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2728
|
-
var
|
|
2924
|
+
var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
2729
2925
|
key: 2,
|
|
2730
2926
|
class: "tpl:mb-3.5"
|
|
2731
|
-
},
|
|
2927
|
+
}, Qi = {
|
|
2732
2928
|
key: 0,
|
|
2733
2929
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2734
|
-
},
|
|
2930
|
+
}, $i = {
|
|
2735
2931
|
key: 1,
|
|
2736
2932
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2737
|
-
},
|
|
2933
|
+
}, ea = /* @__PURE__ */ D({
|
|
2738
2934
|
__name: "SectionToolbar",
|
|
2739
2935
|
props: { block: {} },
|
|
2740
2936
|
emits: ["update"],
|
|
2741
2937
|
setup(e, { emit: t }) {
|
|
2742
|
-
let n = e, i = t, { t: c } =
|
|
2938
|
+
let n = e, i = t, { t: c } = V(), l = E(Ve, void 0), d = E(Ue, void 0), f = l !== void 0 && he(l), _ = m(() => d !== !1 || !!n.block.wrapper), y = m(() => f && !n.block.wrapper), x = m(() => f && _.value), C = m(() => se(n.block)?.applied === !0), T = m(() => [
|
|
2743
2939
|
{
|
|
2744
2940
|
value: "1",
|
|
2745
2941
|
label: c.section.column1
|
|
@@ -2752,6 +2948,10 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
2752
2948
|
value: "3",
|
|
2753
2949
|
label: c.section.column3
|
|
2754
2950
|
},
|
|
2951
|
+
{
|
|
2952
|
+
value: "4",
|
|
2953
|
+
label: c.section.column4
|
|
2954
|
+
},
|
|
2755
2955
|
{
|
|
2756
2956
|
value: "1-2",
|
|
2757
2957
|
label: c.section.ratio12
|
|
@@ -2759,10 +2959,22 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
2759
2959
|
{
|
|
2760
2960
|
value: "2-1",
|
|
2761
2961
|
label: c.section.ratio21
|
|
2962
|
+
},
|
|
2963
|
+
{
|
|
2964
|
+
value: "1-3",
|
|
2965
|
+
label: c.section.ratio13
|
|
2966
|
+
},
|
|
2967
|
+
{
|
|
2968
|
+
value: "3-1",
|
|
2969
|
+
label: c.section.ratio31
|
|
2970
|
+
},
|
|
2971
|
+
{
|
|
2972
|
+
value: "1-2-1",
|
|
2973
|
+
label: c.section.ratio121
|
|
2762
2974
|
}
|
|
2763
2975
|
]);
|
|
2764
2976
|
function D(e) {
|
|
2765
|
-
let t = e.target.value, r =
|
|
2977
|
+
let t = e.target.value, r = qi(n.block.children, t);
|
|
2766
2978
|
i("update", {
|
|
2767
2979
|
columns: t,
|
|
2768
2980
|
children: r
|
|
@@ -2774,42 +2986,45 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
2774
2986
|
function k(e) {
|
|
2775
2987
|
i("update", { borderRadius: e });
|
|
2776
2988
|
}
|
|
2777
|
-
function
|
|
2778
|
-
i("update", { wrapper:
|
|
2989
|
+
function j(e) {
|
|
2990
|
+
e ? i("update", { wrapper: { padding: {
|
|
2779
2991
|
top: 20,
|
|
2780
2992
|
right: 20,
|
|
2781
2993
|
bottom: 20,
|
|
2782
2994
|
left: 20
|
|
2783
|
-
} } :
|
|
2995
|
+
} } }) : i("update", Wn(n.block));
|
|
2784
2996
|
}
|
|
2785
2997
|
function N(e) {
|
|
2998
|
+
i("update", Un(n.block, e));
|
|
2999
|
+
}
|
|
3000
|
+
function F(e) {
|
|
2786
3001
|
i("update", { wrapper: {
|
|
2787
3002
|
...n.block.wrapper,
|
|
2788
3003
|
...e
|
|
2789
3004
|
} });
|
|
2790
3005
|
}
|
|
2791
|
-
function
|
|
2792
|
-
|
|
3006
|
+
function I(e) {
|
|
3007
|
+
F({ padding: e });
|
|
2793
3008
|
}
|
|
2794
|
-
function
|
|
2795
|
-
|
|
3009
|
+
function L(e) {
|
|
3010
|
+
F({ borderRadius: e });
|
|
2796
3011
|
}
|
|
2797
3012
|
return (t, n) => (a(), v(S, null, [
|
|
2798
|
-
b("div",
|
|
2799
|
-
class: o(h(
|
|
3013
|
+
b("div", Ji, [b("label", { class: o(h(B)) }, r(h(c).section.columns), 3), b("select", {
|
|
3014
|
+
class: o(h(z)),
|
|
2800
3015
|
value: e.block.columns,
|
|
2801
3016
|
onChange: D
|
|
2802
|
-
}, [(a(!0), v(S, null, s(
|
|
3017
|
+
}, [(a(!0), v(S, null, s(T.value, (e) => (a(), v("option", {
|
|
2803
3018
|
key: e.value,
|
|
2804
3019
|
value: e.value
|
|
2805
|
-
}, r(e.label), 9,
|
|
2806
|
-
e.block.columns === "1" ? g("", !0) : (a(),
|
|
3020
|
+
}, r(e.label), 9, Xi))), 128))], 42, Yi)]),
|
|
3021
|
+
e.block.columns === "1" ? g("", !0) : (a(), w(A, {
|
|
2807
3022
|
key: 0,
|
|
2808
3023
|
class: "tpl:mb-3.5",
|
|
2809
3024
|
path: "stackOnMobile",
|
|
2810
3025
|
label: h(c).section.stackOnMobile
|
|
2811
3026
|
}, {
|
|
2812
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
3027
|
+
"label-actions": u(({ controlId: t }) => [p(P, {
|
|
2813
3028
|
"control-id": t,
|
|
2814
3029
|
"hide-label": "",
|
|
2815
3030
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
@@ -2823,7 +3038,7 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
2823
3038
|
])]),
|
|
2824
3039
|
_: 1
|
|
2825
3040
|
}, 8, ["label"])),
|
|
2826
|
-
p(
|
|
3041
|
+
p(At, {
|
|
2827
3042
|
path: "borderRadius",
|
|
2828
3043
|
"model-value": e.block.borderRadius,
|
|
2829
3044
|
label: h(c).section.borderRadius,
|
|
@@ -2831,26 +3046,26 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
2831
3046
|
"testid-prefix": "section",
|
|
2832
3047
|
"onUpdate:modelValue": k
|
|
2833
3048
|
}, null, 8, ["model-value", "label"]),
|
|
2834
|
-
|
|
3049
|
+
C.value ? g("", !0) : (a(), w(Dt, {
|
|
2835
3050
|
key: 1,
|
|
2836
3051
|
path: "border",
|
|
2837
3052
|
"model-value": e.block.border,
|
|
2838
3053
|
"testid-prefix": "section",
|
|
2839
3054
|
"onUpdate:modelValue": n[1] ||= (e) => i("update", { border: e })
|
|
2840
3055
|
}, null, 8, ["model-value"])),
|
|
2841
|
-
_.value ? (a(), v("div",
|
|
2842
|
-
p(
|
|
3056
|
+
_.value ? (a(), v("div", Zi, [
|
|
3057
|
+
p(A, {
|
|
2843
3058
|
path: "wrapper",
|
|
2844
3059
|
label: h(c).section.wrapperEnable
|
|
2845
3060
|
}, {
|
|
2846
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
3061
|
+
"label-actions": u(({ controlId: t }) => [p(P, {
|
|
2847
3062
|
"control-id": t,
|
|
2848
3063
|
"hide-label": "",
|
|
2849
3064
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2850
3065
|
"model-value": !!e.block.wrapper,
|
|
2851
3066
|
label: h(c).section.wrapperEnable,
|
|
2852
3067
|
disabled: y.value,
|
|
2853
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
3068
|
+
"onUpdate:modelValue": n[2] ||= (e) => j(e)
|
|
2854
3069
|
}, null, 8, [
|
|
2855
3070
|
"control-id",
|
|
2856
3071
|
"model-value",
|
|
@@ -2859,32 +3074,51 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
2859
3074
|
])]),
|
|
2860
3075
|
_: 1
|
|
2861
3076
|
}, 8, ["label"]),
|
|
2862
|
-
x.value ? (a(), v("p",
|
|
2863
|
-
e.block.wrapper ? (a(), v("div",
|
|
2864
|
-
|
|
3077
|
+
x.value ? (a(), v("p", Qi, r(h(c).section.wrapperLayoutConflict), 1)) : g("", !0),
|
|
3078
|
+
e.block.wrapper ? (a(), v("div", $i, [
|
|
3079
|
+
p(A, {
|
|
3080
|
+
path: "wrapper.fullWidth",
|
|
3081
|
+
label: h(c).blockSettings.fullWidthBackground
|
|
3082
|
+
}, {
|
|
3083
|
+
"label-actions": u(({ controlId: t }) => [p(P, {
|
|
3084
|
+
"data-testid": "section-wrapper-full-width",
|
|
3085
|
+
"control-id": t,
|
|
3086
|
+
"hide-label": "",
|
|
3087
|
+
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
3088
|
+
"model-value": e.block.wrapper.fullWidth === !0,
|
|
3089
|
+
label: h(c).blockSettings.fullWidthBackground,
|
|
3090
|
+
"onUpdate:modelValue": N
|
|
3091
|
+
}, null, 8, [
|
|
3092
|
+
"control-id",
|
|
3093
|
+
"model-value",
|
|
3094
|
+
"label"
|
|
3095
|
+
])]),
|
|
3096
|
+
_: 1
|
|
3097
|
+
}, 8, ["label"]),
|
|
3098
|
+
b("div", null, [p(A, {
|
|
2865
3099
|
path: "wrapper.backgroundColor",
|
|
2866
3100
|
label: h(c).blockSettings.color
|
|
2867
3101
|
}, {
|
|
2868
|
-
default: u(() => [p(
|
|
3102
|
+
default: u(() => [p(M, {
|
|
2869
3103
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2870
3104
|
"allow-transparent": "",
|
|
2871
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
3105
|
+
"onUpdate:modelValue": n[3] ||= (e) => F({ backgroundColor: e })
|
|
2872
3106
|
}, null, 8, ["model-value"])]),
|
|
2873
3107
|
_: 1
|
|
2874
3108
|
}, 8, ["label"])]),
|
|
2875
|
-
p(
|
|
3109
|
+
p(A, {
|
|
2876
3110
|
path: "wrapper.backgroundImage",
|
|
2877
3111
|
label: h(c).blockSettings.backgroundImage
|
|
2878
3112
|
}, {
|
|
2879
|
-
default: u(() => [p(
|
|
3113
|
+
default: u(() => [p(Cn, {
|
|
2880
3114
|
"hide-label": "",
|
|
2881
3115
|
"model-value": e.block.wrapper.backgroundImage,
|
|
2882
3116
|
"testid-prefix": "section-wrapper",
|
|
2883
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
3117
|
+
"onUpdate:modelValue": n[4] ||= (e) => F({ backgroundImage: e })
|
|
2884
3118
|
}, null, 8, ["model-value"])]),
|
|
2885
3119
|
_: 1
|
|
2886
3120
|
}, 8, ["label"]),
|
|
2887
|
-
p(
|
|
3121
|
+
p(fn, {
|
|
2888
3122
|
path: "wrapper.padding",
|
|
2889
3123
|
label: h(c).blockSettings.padding,
|
|
2890
3124
|
"model-value": e.block.wrapper.padding ?? {
|
|
@@ -2893,32 +3127,32 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
2893
3127
|
bottom: 0,
|
|
2894
3128
|
left: 0
|
|
2895
3129
|
},
|
|
2896
|
-
"onUpdate:modelValue":
|
|
3130
|
+
"onUpdate:modelValue": I
|
|
2897
3131
|
}, null, 8, ["label", "model-value"]),
|
|
2898
|
-
p(
|
|
3132
|
+
p(At, {
|
|
2899
3133
|
path: "wrapper.borderRadius",
|
|
2900
3134
|
"model-value": e.block.wrapper.borderRadius,
|
|
2901
3135
|
label: h(c).section.borderRadius,
|
|
2902
3136
|
max: 50,
|
|
2903
3137
|
"testid-prefix": "section-wrapper",
|
|
2904
|
-
"onUpdate:modelValue":
|
|
3138
|
+
"onUpdate:modelValue": L
|
|
2905
3139
|
}, null, 8, ["model-value", "label"])
|
|
2906
3140
|
])) : g("", !0)
|
|
2907
3141
|
])) : g("", !0)
|
|
2908
3142
|
], 64));
|
|
2909
3143
|
}
|
|
2910
|
-
}),
|
|
3144
|
+
}), ta = { class: "tpl:mb-3.5" }, na = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ra = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ia = ["value", "onChange"], aa = ["value"], oa = ["title", "onClick"], sa = ["value"], ca = { value: "solid" }, la = { value: "outlined" }, ua = { value: "rounded" }, da = { value: "square" }, fa = { value: "circle" }, pa = { value: "plain" }, ma = ["value"], ha = { value: "brand" }, ga = { value: "dark" }, _a = { value: "light" }, va = { class: "tpl:flex tpl:items-stretch" }, ya = ["value"], ba = /* @__PURE__ */ D({
|
|
2911
3145
|
__name: "SocialToolbar",
|
|
2912
3146
|
props: { block: {} },
|
|
2913
3147
|
emits: ["update"],
|
|
2914
3148
|
setup(e, { emit: t }) {
|
|
2915
|
-
let n = e, i = t, { t: c } =
|
|
3149
|
+
let n = e, i = t, { t: c } = V();
|
|
2916
3150
|
function l(e, t) {
|
|
2917
3151
|
i("update", { [e]: t });
|
|
2918
3152
|
}
|
|
2919
3153
|
function d() {
|
|
2920
3154
|
let e = {
|
|
2921
|
-
id:
|
|
3155
|
+
id: q(),
|
|
2922
3156
|
platform: "facebook",
|
|
2923
3157
|
url: ""
|
|
2924
3158
|
};
|
|
@@ -2935,35 +3169,35 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
2935
3169
|
i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2936
3170
|
}
|
|
2937
3171
|
return (t, n) => (a(), v(S, null, [
|
|
2938
|
-
b("div",
|
|
3172
|
+
b("div", ta, [b("label", { class: o(h(B)) }, r(h(c).social.icons), 3), b("div", na, [(a(!0), v(S, null, s(e.block.icons, (e) => (a(), v("div", {
|
|
2939
3173
|
key: e.id,
|
|
2940
3174
|
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"
|
|
2941
|
-
}, [b("div",
|
|
3175
|
+
}, [b("div", ra, [p(A, {
|
|
2942
3176
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
|
|
2943
3177
|
label: h(c).social.icons
|
|
2944
3178
|
}, {
|
|
2945
3179
|
default: u(() => [b("select", {
|
|
2946
3180
|
"data-testid": "social-platform-select",
|
|
2947
|
-
class: o([h(
|
|
3181
|
+
class: o([h(z), "tpl:flex-1"]),
|
|
2948
3182
|
value: e.platform,
|
|
2949
3183
|
onChange: (t) => f(e.id, "platform", t.target.value)
|
|
2950
|
-
}, [(a(!0), v(S, null, s(h(
|
|
3184
|
+
}, [(a(!0), v(S, null, s(h(Me), (e) => (a(), v("option", {
|
|
2951
3185
|
key: e,
|
|
2952
3186
|
value: e
|
|
2953
|
-
}, r(h(c).social.platforms[e]), 9,
|
|
3187
|
+
}, r(h(c).social.platforms[e]), 9, aa))), 128))], 42, ia)]),
|
|
2954
3188
|
_: 2
|
|
2955
3189
|
}, 1032, ["path", "label"]), b("button", {
|
|
2956
|
-
class: o(h(
|
|
3190
|
+
class: o(h(I)),
|
|
2957
3191
|
title: h(c).social.removeIcon,
|
|
2958
3192
|
onClick: (t) => m(e.id)
|
|
2959
|
-
}, [p(h(
|
|
3193
|
+
}, [p(h(ft), {
|
|
2960
3194
|
size: 14,
|
|
2961
3195
|
"stroke-width": 2
|
|
2962
|
-
})], 10,
|
|
3196
|
+
})], 10, oa)]), p(A, {
|
|
2963
3197
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
|
|
2964
3198
|
label: h(c).button.url
|
|
2965
3199
|
}, {
|
|
2966
|
-
default: u(() => [p(
|
|
3200
|
+
default: u(() => [p(N, {
|
|
2967
3201
|
"model-value": e.url,
|
|
2968
3202
|
type: "url",
|
|
2969
3203
|
placeholder: h(c).social.urlPlaceholder,
|
|
@@ -2975,54 +3209,54 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
2975
3209
|
])]),
|
|
2976
3210
|
_: 2
|
|
2977
3211
|
}, 1032, ["path", "label"])]))), 128)), b("button", {
|
|
2978
|
-
class: o(h(
|
|
3212
|
+
class: o(h(te)),
|
|
2979
3213
|
onClick: d
|
|
2980
|
-
}, [p(h(
|
|
3214
|
+
}, [p(h(Z), {
|
|
2981
3215
|
size: 14,
|
|
2982
3216
|
"stroke-width": 2
|
|
2983
3217
|
}), y(" " + r(h(c).social.addIcon), 1)], 2)])]),
|
|
2984
|
-
p(
|
|
3218
|
+
p(A, {
|
|
2985
3219
|
label: h(c).social.style,
|
|
2986
3220
|
class: "tpl:mb-3.5",
|
|
2987
3221
|
path: "iconStyle"
|
|
2988
3222
|
}, {
|
|
2989
3223
|
default: u(() => [b("select", {
|
|
2990
|
-
class: o(h(
|
|
3224
|
+
class: o(h(z)),
|
|
2991
3225
|
value: e.block.iconStyle,
|
|
2992
3226
|
onChange: n[0] ||= (e) => l("iconStyle", e.target.value)
|
|
2993
3227
|
}, [
|
|
2994
|
-
b("option",
|
|
2995
|
-
b("option",
|
|
2996
|
-
b("option",
|
|
2997
|
-
b("option",
|
|
2998
|
-
b("option",
|
|
2999
|
-
b("option",
|
|
3000
|
-
], 42,
|
|
3228
|
+
b("option", ca, r(h(c).social.styleSolid), 1),
|
|
3229
|
+
b("option", la, r(h(c).social.styleOutlined), 1),
|
|
3230
|
+
b("option", ua, r(h(c).social.styleRounded), 1),
|
|
3231
|
+
b("option", da, r(h(c).social.styleSquare), 1),
|
|
3232
|
+
b("option", fa, r(h(c).social.styleCircle), 1),
|
|
3233
|
+
b("option", pa, r(h(c).social.stylePlain), 1)
|
|
3234
|
+
], 42, sa)]),
|
|
3001
3235
|
_: 1
|
|
3002
3236
|
}, 8, ["label"]),
|
|
3003
|
-
p(
|
|
3237
|
+
p(A, {
|
|
3004
3238
|
label: h(c).social.color,
|
|
3005
3239
|
class: "tpl:mb-3.5",
|
|
3006
3240
|
path: "iconTone"
|
|
3007
3241
|
}, {
|
|
3008
3242
|
default: u(() => [b("select", {
|
|
3009
3243
|
"data-testid": "social-tone-select",
|
|
3010
|
-
class: o(h(
|
|
3244
|
+
class: o(h(z)),
|
|
3011
3245
|
value: e.block.iconTone ?? "brand",
|
|
3012
3246
|
onChange: n[1] ||= (e) => l("iconTone", e.target.value)
|
|
3013
3247
|
}, [
|
|
3014
|
-
b("option",
|
|
3015
|
-
b("option",
|
|
3016
|
-
b("option",
|
|
3017
|
-
], 42,
|
|
3248
|
+
b("option", ha, r(h(c).social.colorBrand), 1),
|
|
3249
|
+
b("option", ga, r(h(c).social.colorDark), 1),
|
|
3250
|
+
b("option", _a, r(h(c).social.colorLight), 1)
|
|
3251
|
+
], 42, ma)]),
|
|
3018
3252
|
_: 1
|
|
3019
3253
|
}, 8, ["label"]),
|
|
3020
|
-
p(
|
|
3254
|
+
p(A, {
|
|
3021
3255
|
label: h(c).social.size,
|
|
3022
3256
|
class: "tpl:mb-3.5",
|
|
3023
3257
|
path: "iconSize"
|
|
3024
3258
|
}, {
|
|
3025
|
-
default: u(() => [p(
|
|
3259
|
+
default: u(() => [p($, {
|
|
3026
3260
|
options: [
|
|
3027
3261
|
{
|
|
3028
3262
|
value: "small",
|
|
@@ -3042,42 +3276,42 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3042
3276
|
}, null, 8, ["options", "model-value"])]),
|
|
3043
3277
|
_: 1
|
|
3044
3278
|
}, 8, ["label"]),
|
|
3045
|
-
p(
|
|
3279
|
+
p(A, {
|
|
3046
3280
|
label: h(c).social.spacing,
|
|
3047
3281
|
class: "tpl:mb-3.5",
|
|
3048
3282
|
path: "spacing"
|
|
3049
3283
|
}, {
|
|
3050
|
-
default: u(() => [b("div",
|
|
3284
|
+
default: u(() => [b("div", va, [b("input", {
|
|
3051
3285
|
type: "number",
|
|
3052
|
-
class: o(h(
|
|
3286
|
+
class: o(h(R)),
|
|
3053
3287
|
value: e.block.spacing,
|
|
3054
3288
|
min: "0",
|
|
3055
3289
|
max: "50",
|
|
3056
3290
|
onInput: n[3] ||= (e) => l("spacing", Number(e.target.value))
|
|
3057
|
-
}, null, 42,
|
|
3291
|
+
}, null, 42, ya), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3058
3292
|
_: 1
|
|
3059
3293
|
}, 8, ["label"]),
|
|
3060
|
-
p(
|
|
3294
|
+
p(A, {
|
|
3061
3295
|
label: h(c).social.align,
|
|
3062
3296
|
class: "tpl:mb-3.5",
|
|
3063
3297
|
path: "align"
|
|
3064
3298
|
}, {
|
|
3065
|
-
default: u(() => [p(
|
|
3299
|
+
default: u(() => [p($, {
|
|
3066
3300
|
options: [
|
|
3067
3301
|
{
|
|
3068
3302
|
value: "left",
|
|
3069
3303
|
label: h(c).title.alignLeft,
|
|
3070
|
-
icon: h(
|
|
3304
|
+
icon: h(dt)
|
|
3071
3305
|
},
|
|
3072
3306
|
{
|
|
3073
3307
|
value: "center",
|
|
3074
3308
|
label: h(c).title.alignCenter,
|
|
3075
|
-
icon: h(
|
|
3309
|
+
icon: h(ut)
|
|
3076
3310
|
},
|
|
3077
3311
|
{
|
|
3078
3312
|
value: "right",
|
|
3079
3313
|
label: h(c).title.alignRight,
|
|
3080
|
-
icon: h(
|
|
3314
|
+
icon: h(lt)
|
|
3081
3315
|
}
|
|
3082
3316
|
],
|
|
3083
3317
|
"model-value": e.block.align,
|
|
@@ -3087,36 +3321,36 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3087
3321
|
}, 8, ["label"])
|
|
3088
3322
|
], 64));
|
|
3089
3323
|
}
|
|
3090
|
-
}),
|
|
3324
|
+
}), xa = { class: "tpl:flex tpl:items-stretch" }, Sa = ["value"], Ca = ["value"], wa = /* @__PURE__ */ D({
|
|
3091
3325
|
__name: "SpacerToolbar",
|
|
3092
3326
|
props: { block: {} },
|
|
3093
3327
|
emits: ["update"],
|
|
3094
3328
|
setup(e, { emit: t }) {
|
|
3095
|
-
let n = t, { t: r } =
|
|
3096
|
-
return (t, i) => (a(),
|
|
3329
|
+
let n = t, { t: r } = V();
|
|
3330
|
+
return (t, i) => (a(), w(A, {
|
|
3097
3331
|
label: h(r).spacer.height,
|
|
3098
3332
|
class: "tpl:mb-3.5",
|
|
3099
3333
|
path: "height"
|
|
3100
3334
|
}, {
|
|
3101
|
-
default: u(() => [b("div",
|
|
3335
|
+
default: u(() => [b("div", xa, [b("input", {
|
|
3102
3336
|
type: "number",
|
|
3103
|
-
class: o(h(
|
|
3337
|
+
class: o(h(R)),
|
|
3104
3338
|
value: e.block.height,
|
|
3105
3339
|
min: "10",
|
|
3106
3340
|
max: "100",
|
|
3107
3341
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3108
|
-
}, null, 42,
|
|
3342
|
+
}, null, 42, Sa), b("span", { class: o(h(L)) }, "px", 2)]), b("input", {
|
|
3109
3343
|
type: "range",
|
|
3110
3344
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
3111
3345
|
value: e.block.height,
|
|
3112
3346
|
min: "10",
|
|
3113
3347
|
max: "100",
|
|
3114
3348
|
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3115
|
-
}, null, 40,
|
|
3349
|
+
}, null, 40, Ca)]),
|
|
3116
3350
|
_: 1
|
|
3117
3351
|
}, 8, ["label"]));
|
|
3118
3352
|
}
|
|
3119
|
-
}),
|
|
3353
|
+
}), Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Da = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Oa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ka = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Aa = ["disabled"], ja = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ma = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Na = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Pa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Fa = ["disabled"], Ia = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, La = { class: "tpl:flex tpl:items-stretch" }, Ra = ["value"], za = { class: "tpl:flex tpl:items-stretch" }, Ba = ["value"], Va = ["value"], Ha = { value: "" }, Ua = ["value"], Wa = { class: "tpl:flex tpl:items-stretch" }, Ga = ["value"], Ka = /* @__PURE__ */ D({
|
|
3120
3354
|
__name: "TableToolbar",
|
|
3121
3355
|
props: {
|
|
3122
3356
|
block: {},
|
|
@@ -3124,15 +3358,15 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3124
3358
|
},
|
|
3125
3359
|
emits: ["update"],
|
|
3126
3360
|
setup(e, { emit: t }) {
|
|
3127
|
-
let n = e, i = t, { t: c } =
|
|
3361
|
+
let n = e, i = t, { t: c } = V(), l = m(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
3128
3362
|
function d(e, t) {
|
|
3129
3363
|
i("update", { [e]: t });
|
|
3130
3364
|
}
|
|
3131
3365
|
function f() {
|
|
3132
3366
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
3133
|
-
id:
|
|
3367
|
+
id: q(),
|
|
3134
3368
|
cells: Array.from({ length: e }, () => ({
|
|
3135
|
-
id:
|
|
3369
|
+
id: q(),
|
|
3136
3370
|
content: ""
|
|
3137
3371
|
}))
|
|
3138
3372
|
};
|
|
@@ -3145,7 +3379,7 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3145
3379
|
let e = n.block.rows.map((e) => ({
|
|
3146
3380
|
...e,
|
|
3147
3381
|
cells: [...e.cells, {
|
|
3148
|
-
id:
|
|
3382
|
+
id: q(),
|
|
3149
3383
|
content: ""
|
|
3150
3384
|
}]
|
|
3151
3385
|
}));
|
|
@@ -3159,47 +3393,47 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3159
3393
|
i("update", { rows: t });
|
|
3160
3394
|
}
|
|
3161
3395
|
return (t, n) => (a(), v(S, null, [
|
|
3162
|
-
b("div",
|
|
3396
|
+
b("div", Ta, [b("label", { class: o(h(B)) }, r(h(c).table.dimensions), 3), b("div", Ea, [b("div", Da, [b("span", Oa, r(h(c).table.rows), 1), b("div", ka, [
|
|
3163
3397
|
b("button", {
|
|
3164
3398
|
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:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
3165
3399
|
disabled: e.block.rows.length <= 1,
|
|
3166
3400
|
onClick: n[0] ||= (t) => _(e.block.rows[e.block.rows.length - 1].id)
|
|
3167
|
-
}, [p(h(
|
|
3401
|
+
}, [p(h(X), {
|
|
3168
3402
|
size: 12,
|
|
3169
3403
|
"stroke-width": 2
|
|
3170
|
-
})], 8,
|
|
3171
|
-
b("span",
|
|
3404
|
+
})], 8, Aa),
|
|
3405
|
+
b("span", ja, r(e.block.rows.length), 1),
|
|
3172
3406
|
b("button", {
|
|
3173
3407
|
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:hover:text-[var(--tpl-primary)]",
|
|
3174
3408
|
onClick: f
|
|
3175
|
-
}, [p(h(
|
|
3409
|
+
}, [p(h(Z), {
|
|
3176
3410
|
size: 12,
|
|
3177
3411
|
"stroke-width": 2
|
|
3178
3412
|
})])
|
|
3179
|
-
])]), b("div",
|
|
3413
|
+
])]), b("div", Ma, [b("span", Na, r(h(c).table.columns), 1), b("div", Pa, [
|
|
3180
3414
|
b("button", {
|
|
3181
3415
|
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:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
3182
3416
|
disabled: l.value <= 1,
|
|
3183
3417
|
onClick: n[1] ||= (e) => x(l.value - 1)
|
|
3184
|
-
}, [p(h(
|
|
3418
|
+
}, [p(h(X), {
|
|
3185
3419
|
size: 12,
|
|
3186
3420
|
"stroke-width": 2
|
|
3187
|
-
})], 8,
|
|
3188
|
-
b("span",
|
|
3421
|
+
})], 8, Fa),
|
|
3422
|
+
b("span", Ia, r(l.value), 1),
|
|
3189
3423
|
b("button", {
|
|
3190
3424
|
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:hover:text-[var(--tpl-primary)]",
|
|
3191
3425
|
onClick: y
|
|
3192
|
-
}, [p(h(
|
|
3426
|
+
}, [p(h(Z), {
|
|
3193
3427
|
size: 12,
|
|
3194
3428
|
"stroke-width": 2
|
|
3195
3429
|
})])
|
|
3196
3430
|
])])])]),
|
|
3197
|
-
p(
|
|
3431
|
+
p(A, {
|
|
3198
3432
|
class: "tpl:mb-3.5",
|
|
3199
3433
|
path: "hasHeaderRow",
|
|
3200
3434
|
label: h(c).table.hasHeaderRow
|
|
3201
3435
|
}, {
|
|
3202
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
3436
|
+
"label-actions": u(({ controlId: t }) => [p(P, {
|
|
3203
3437
|
"control-id": t,
|
|
3204
3438
|
"hide-label": "",
|
|
3205
3439
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -3213,15 +3447,15 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3213
3447
|
])]),
|
|
3214
3448
|
_: 1
|
|
3215
3449
|
}, 8, ["label"]),
|
|
3216
|
-
e.block.hasHeaderRow ? (a(),
|
|
3450
|
+
e.block.hasHeaderRow ? (a(), w(A, {
|
|
3217
3451
|
key: 0,
|
|
3218
3452
|
label: h(c).table.headerBackgroundColor,
|
|
3219
3453
|
class: "tpl:mb-3.5",
|
|
3220
3454
|
path: "headerBackgroundColor"
|
|
3221
3455
|
}, {
|
|
3222
|
-
default: u(() => [p(
|
|
3456
|
+
default: u(() => [p(M, {
|
|
3223
3457
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
3224
|
-
"seed-color": h(
|
|
3458
|
+
"seed-color": h(ne),
|
|
3225
3459
|
placeholder: h(c).table.noHeaderBg,
|
|
3226
3460
|
"onUpdate:modelValue": n[3] ||= (e) => d("headerBackgroundColor", e || null)
|
|
3227
3461
|
}, null, 8, [
|
|
@@ -3231,109 +3465,109 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3231
3465
|
])]),
|
|
3232
3466
|
_: 1
|
|
3233
3467
|
}, 8, ["label"])) : g("", !0),
|
|
3234
|
-
p(
|
|
3468
|
+
p(A, {
|
|
3235
3469
|
label: h(c).table.borderColor,
|
|
3236
3470
|
class: "tpl:mb-3.5",
|
|
3237
3471
|
path: "borderColor"
|
|
3238
3472
|
}, {
|
|
3239
|
-
default: u(() => [p(
|
|
3473
|
+
default: u(() => [p(M, {
|
|
3240
3474
|
"model-value": e.block.borderColor,
|
|
3241
3475
|
"onUpdate:modelValue": n[4] ||= (e) => d("borderColor", e)
|
|
3242
3476
|
}, null, 8, ["model-value"])]),
|
|
3243
3477
|
_: 1
|
|
3244
3478
|
}, 8, ["label"]),
|
|
3245
|
-
p(
|
|
3479
|
+
p(A, {
|
|
3246
3480
|
label: h(c).table.borderWidth,
|
|
3247
3481
|
class: "tpl:mb-3.5",
|
|
3248
3482
|
path: "borderWidth"
|
|
3249
3483
|
}, {
|
|
3250
|
-
default: u(() => [b("div",
|
|
3484
|
+
default: u(() => [b("div", La, [b("input", {
|
|
3251
3485
|
type: "number",
|
|
3252
|
-
class: o(h(
|
|
3486
|
+
class: o(h(R)),
|
|
3253
3487
|
value: e.block.borderWidth,
|
|
3254
3488
|
min: "0",
|
|
3255
3489
|
max: "10",
|
|
3256
3490
|
onInput: n[5] ||= (e) => d("borderWidth", Number(e.target.value))
|
|
3257
|
-
}, null, 42,
|
|
3491
|
+
}, null, 42, Ra), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3258
3492
|
_: 1
|
|
3259
3493
|
}, 8, ["label"]),
|
|
3260
|
-
p(
|
|
3494
|
+
p(A, {
|
|
3261
3495
|
label: h(c).table.cellPadding,
|
|
3262
3496
|
class: "tpl:mb-3.5",
|
|
3263
3497
|
path: "cellPadding"
|
|
3264
3498
|
}, {
|
|
3265
|
-
default: u(() => [b("div",
|
|
3499
|
+
default: u(() => [b("div", za, [b("input", {
|
|
3266
3500
|
type: "number",
|
|
3267
|
-
class: o(h(
|
|
3501
|
+
class: o(h(R)),
|
|
3268
3502
|
value: e.block.cellPadding,
|
|
3269
3503
|
min: "0",
|
|
3270
3504
|
max: "30",
|
|
3271
3505
|
onInput: n[6] ||= (e) => d("cellPadding", Number(e.target.value))
|
|
3272
|
-
}, null, 42,
|
|
3506
|
+
}, null, 42, Ba), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3273
3507
|
_: 1
|
|
3274
3508
|
}, 8, ["label"]),
|
|
3275
|
-
p(
|
|
3509
|
+
p(A, {
|
|
3276
3510
|
label: h(c).table.fontFamily,
|
|
3277
3511
|
class: "tpl:mb-3.5",
|
|
3278
3512
|
path: "fontFamily"
|
|
3279
3513
|
}, {
|
|
3280
3514
|
default: u(() => [b("select", {
|
|
3281
|
-
class: o(h(
|
|
3282
|
-
value: h(
|
|
3515
|
+
class: o(h(z)),
|
|
3516
|
+
value: h(Y)(e.block.fontFamily),
|
|
3283
3517
|
onChange: n[7] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
3284
|
-
}, [b("option",
|
|
3518
|
+
}, [b("option", Ha, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3285
3519
|
key: e.value,
|
|
3286
3520
|
value: e.value
|
|
3287
|
-
}, r(e.label), 9,
|
|
3521
|
+
}, r(e.label), 9, Ua))), 128))], 42, Va)]),
|
|
3288
3522
|
_: 1
|
|
3289
3523
|
}, 8, ["label"]),
|
|
3290
|
-
p(
|
|
3524
|
+
p(A, {
|
|
3291
3525
|
label: h(c).table.fontSize,
|
|
3292
3526
|
class: "tpl:mb-3.5",
|
|
3293
3527
|
path: "fontSize"
|
|
3294
3528
|
}, {
|
|
3295
|
-
default: u(() => [b("div",
|
|
3529
|
+
default: u(() => [b("div", Wa, [b("input", {
|
|
3296
3530
|
type: "number",
|
|
3297
|
-
class: o(h(
|
|
3531
|
+
class: o(h(R)),
|
|
3298
3532
|
value: e.block.fontSize,
|
|
3299
3533
|
min: "10",
|
|
3300
3534
|
max: "32",
|
|
3301
3535
|
onInput: n[8] ||= (e) => d("fontSize", Number(e.target.value))
|
|
3302
|
-
}, null, 42,
|
|
3536
|
+
}, null, 42, Ga), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3303
3537
|
_: 1
|
|
3304
3538
|
}, 8, ["label"]),
|
|
3305
|
-
p(
|
|
3539
|
+
p(A, {
|
|
3306
3540
|
label: h(c).table.color,
|
|
3307
3541
|
class: "tpl:mb-3.5",
|
|
3308
3542
|
path: "color"
|
|
3309
3543
|
}, {
|
|
3310
|
-
default: u(() => [p(
|
|
3544
|
+
default: u(() => [p(M, {
|
|
3311
3545
|
"model-value": e.block.color ?? "",
|
|
3312
3546
|
"onUpdate:modelValue": n[9] ||= (e) => d("color", e || void 0)
|
|
3313
3547
|
}, null, 8, ["model-value"])]),
|
|
3314
3548
|
_: 1
|
|
3315
3549
|
}, 8, ["label"]),
|
|
3316
|
-
p(
|
|
3550
|
+
p(A, {
|
|
3317
3551
|
label: h(c).table.textAlign,
|
|
3318
3552
|
class: "tpl:mb-3.5",
|
|
3319
3553
|
path: "textAlign"
|
|
3320
3554
|
}, {
|
|
3321
|
-
default: u(() => [p(
|
|
3555
|
+
default: u(() => [p($, {
|
|
3322
3556
|
options: [
|
|
3323
3557
|
{
|
|
3324
3558
|
value: "left",
|
|
3325
3559
|
label: h(c).title.alignLeft,
|
|
3326
|
-
icon: h(
|
|
3560
|
+
icon: h(dt)
|
|
3327
3561
|
},
|
|
3328
3562
|
{
|
|
3329
3563
|
value: "center",
|
|
3330
3564
|
label: h(c).title.alignCenter,
|
|
3331
|
-
icon: h(
|
|
3565
|
+
icon: h(ut)
|
|
3332
3566
|
},
|
|
3333
3567
|
{
|
|
3334
3568
|
value: "right",
|
|
3335
3569
|
label: h(c).title.alignRight,
|
|
3336
|
-
icon: h(
|
|
3570
|
+
icon: h(lt)
|
|
3337
3571
|
}
|
|
3338
3572
|
],
|
|
3339
3573
|
"model-value": e.block.textAlign,
|
|
@@ -3343,7 +3577,7 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3343
3577
|
}, 8, ["label"])
|
|
3344
3578
|
], 64));
|
|
3345
3579
|
}
|
|
3346
|
-
}),
|
|
3580
|
+
}), qa = ["value"], Ja = { value: 1 }, Ya = { value: 2 }, Xa = { value: 3 }, Za = { value: 4 }, Qa = ["value"], $a = { value: "" }, eo = ["value"], to = /* @__PURE__ */ D({
|
|
3347
3581
|
__name: "TitleToolbar",
|
|
3348
3582
|
props: {
|
|
3349
3583
|
block: {},
|
|
@@ -3351,75 +3585,75 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3351
3585
|
},
|
|
3352
3586
|
emits: ["update"],
|
|
3353
3587
|
setup(e, { emit: t }) {
|
|
3354
|
-
let n = t, { t: i } =
|
|
3588
|
+
let n = t, { t: i } = V();
|
|
3355
3589
|
function c(e, t) {
|
|
3356
3590
|
n("update", { [e]: t });
|
|
3357
3591
|
}
|
|
3358
3592
|
return (t, n) => (a(), v(S, null, [
|
|
3359
|
-
p(
|
|
3593
|
+
p(A, {
|
|
3360
3594
|
label: h(i).title.level,
|
|
3361
3595
|
class: "tpl:mb-3.5",
|
|
3362
3596
|
path: "level"
|
|
3363
3597
|
}, {
|
|
3364
3598
|
default: u(() => [b("select", {
|
|
3365
|
-
class: o(h(
|
|
3599
|
+
class: o(h(z)),
|
|
3366
3600
|
value: e.block.level,
|
|
3367
3601
|
onChange: n[0] ||= (e) => c("level", Number(e.target.value))
|
|
3368
3602
|
}, [
|
|
3369
|
-
b("option",
|
|
3370
|
-
b("option",
|
|
3371
|
-
b("option",
|
|
3372
|
-
b("option",
|
|
3373
|
-
], 42,
|
|
3603
|
+
b("option", Ja, r(h(i).title.heading1), 1),
|
|
3604
|
+
b("option", Ya, r(h(i).title.heading2), 1),
|
|
3605
|
+
b("option", Xa, r(h(i).title.heading3), 1),
|
|
3606
|
+
b("option", Za, r(h(i).title.heading4), 1)
|
|
3607
|
+
], 42, qa)]),
|
|
3374
3608
|
_: 1
|
|
3375
3609
|
}, 8, ["label"]),
|
|
3376
|
-
p(
|
|
3610
|
+
p(A, {
|
|
3377
3611
|
label: h(i).title.fontFamily,
|
|
3378
3612
|
class: "tpl:mb-3.5",
|
|
3379
3613
|
path: "fontFamily"
|
|
3380
3614
|
}, {
|
|
3381
3615
|
default: u(() => [b("select", {
|
|
3382
|
-
class: o(h(
|
|
3383
|
-
value: h(
|
|
3616
|
+
class: o(h(z)),
|
|
3617
|
+
value: h(Y)(e.block.fontFamily),
|
|
3384
3618
|
onChange: n[1] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
3385
|
-
}, [b("option",
|
|
3619
|
+
}, [b("option", $a, r(h(i).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3386
3620
|
key: e.value,
|
|
3387
3621
|
value: e.value
|
|
3388
|
-
}, r(e.label), 9,
|
|
3622
|
+
}, r(e.label), 9, eo))), 128))], 42, Qa)]),
|
|
3389
3623
|
_: 1
|
|
3390
3624
|
}, 8, ["label"]),
|
|
3391
|
-
p(
|
|
3625
|
+
p(A, {
|
|
3392
3626
|
label: h(i).title.color,
|
|
3393
3627
|
class: "tpl:mb-3.5",
|
|
3394
3628
|
path: "color"
|
|
3395
3629
|
}, {
|
|
3396
|
-
default: u(() => [p(
|
|
3630
|
+
default: u(() => [p(M, {
|
|
3397
3631
|
"model-value": e.block.color ?? "",
|
|
3398
3632
|
"onUpdate:modelValue": n[2] ||= (e) => c("color", e || void 0)
|
|
3399
3633
|
}, null, 8, ["model-value"])]),
|
|
3400
3634
|
_: 1
|
|
3401
3635
|
}, 8, ["label"]),
|
|
3402
|
-
p(
|
|
3636
|
+
p(A, {
|
|
3403
3637
|
label: h(i).title.align,
|
|
3404
3638
|
class: "tpl:mb-3.5",
|
|
3405
3639
|
path: "textAlign"
|
|
3406
3640
|
}, {
|
|
3407
|
-
default: u(() => [p(
|
|
3641
|
+
default: u(() => [p($, {
|
|
3408
3642
|
options: [
|
|
3409
3643
|
{
|
|
3410
3644
|
value: "left",
|
|
3411
3645
|
label: h(i).title.alignLeft,
|
|
3412
|
-
icon: h(
|
|
3646
|
+
icon: h(dt)
|
|
3413
3647
|
},
|
|
3414
3648
|
{
|
|
3415
3649
|
value: "center",
|
|
3416
3650
|
label: h(i).title.alignCenter,
|
|
3417
|
-
icon: h(
|
|
3651
|
+
icon: h(ut)
|
|
3418
3652
|
},
|
|
3419
3653
|
{
|
|
3420
3654
|
value: "right",
|
|
3421
3655
|
label: h(i).title.alignRight,
|
|
3422
|
-
icon: h(
|
|
3656
|
+
icon: h(lt)
|
|
3423
3657
|
}
|
|
3424
3658
|
],
|
|
3425
3659
|
"model-value": e.block.textAlign,
|
|
@@ -3429,29 +3663,29 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3429
3663
|
}, 8, ["label"])
|
|
3430
3664
|
], 64));
|
|
3431
3665
|
}
|
|
3432
|
-
}),
|
|
3666
|
+
}), no = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ro = [
|
|
3433
3667
|
"value",
|
|
3434
3668
|
"placeholder",
|
|
3435
3669
|
"title"
|
|
3436
|
-
],
|
|
3670
|
+
], io = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ao = ["value"], oo = { value: "full" }, so = { value: "custom" }, co = {
|
|
3437
3671
|
key: 0,
|
|
3438
3672
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3439
|
-
},
|
|
3673
|
+
}, lo = ["value"], uo = ["value"], fo = { value: "auto" }, po = { value: "custom" }, mo = {
|
|
3440
3674
|
key: 0,
|
|
3441
3675
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3442
|
-
},
|
|
3676
|
+
}, ho = ["value"], go = 350, _o = 200, vo = /* @__PURE__ */ D({
|
|
3443
3677
|
__name: "VideoToolbar",
|
|
3444
3678
|
props: { block: {} },
|
|
3445
3679
|
emits: ["update"],
|
|
3446
3680
|
setup(e, { emit: t }) {
|
|
3447
|
-
let n = e, i = t, { t: s } =
|
|
3681
|
+
let n = e, i = t, { t: s } = V(), c = E(He, null), l = E(Le, de.liquid), d = we(), f = [
|
|
3448
3682
|
300,
|
|
3449
3683
|
400,
|
|
3450
3684
|
500
|
|
3451
|
-
], x = m(() => !!c),
|
|
3685
|
+
], x = m(() => !!c), C = m(() => H(n.block.url, l)), T = m(() => {
|
|
3452
3686
|
let e = n.block.width;
|
|
3453
3687
|
return e === "full" ? "full" : f.includes(e) ? String(e) : "custom";
|
|
3454
|
-
}), D = m(() => typeof n.block.height == "number" ? "custom" : "auto"), O = _(!1), { start:
|
|
3688
|
+
}), D = m(() => typeof n.block.height == "number" ? "custom" : "auto"), O = _(!1), { start: k } = ct(() => {
|
|
3455
3689
|
O.value = !1;
|
|
3456
3690
|
}, 1e3, { immediate: !1 });
|
|
3457
3691
|
function j(e, t) {
|
|
@@ -3460,41 +3694,41 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3460
3694
|
function M(e) {
|
|
3461
3695
|
if (e === "custom") {
|
|
3462
3696
|
let e = n.block.width;
|
|
3463
|
-
(typeof e != "number" || f.includes(e)) && j("width",
|
|
3697
|
+
(typeof e != "number" || f.includes(e)) && j("width", go);
|
|
3464
3698
|
} else j("width", e === "full" ? "full" : Number(e));
|
|
3465
3699
|
}
|
|
3466
|
-
function
|
|
3700
|
+
function F(e) {
|
|
3467
3701
|
let t = Number(e);
|
|
3468
3702
|
!Number.isFinite(t) || t <= 0 || j("width", t);
|
|
3469
3703
|
}
|
|
3470
|
-
function F(e) {
|
|
3471
|
-
j("height", e === "custom" ? Ja : void 0);
|
|
3472
|
-
}
|
|
3473
3704
|
function I(e) {
|
|
3705
|
+
j("height", e === "custom" ? _o : void 0);
|
|
3706
|
+
}
|
|
3707
|
+
function ee(e) {
|
|
3474
3708
|
let t = Number(e);
|
|
3475
3709
|
!Number.isFinite(t) || t <= 0 || j("height", t);
|
|
3476
3710
|
}
|
|
3477
|
-
async function
|
|
3711
|
+
async function te() {
|
|
3478
3712
|
let e = await c?.({ accept: ["images"] });
|
|
3479
|
-
d.alive && e && (j("thumbnailUrl", e.url), O.value = !0,
|
|
3713
|
+
d.alive && e && (j("thumbnailUrl", e.url), O.value = !0, k());
|
|
3480
3714
|
}
|
|
3481
3715
|
return (t, n) => (a(), v(S, null, [
|
|
3482
|
-
p(
|
|
3716
|
+
p(A, {
|
|
3483
3717
|
label: h(s).video.videoUrl,
|
|
3484
3718
|
class: "tpl:mb-3.5",
|
|
3485
3719
|
path: "url"
|
|
3486
3720
|
}, {
|
|
3487
|
-
default: u(() => [p(
|
|
3721
|
+
default: u(() => [p(N, {
|
|
3488
3722
|
"model-value": e.block.url,
|
|
3489
3723
|
type: "url",
|
|
3490
3724
|
placeholder: h(s).video.videoUrlPlaceholder,
|
|
3491
3725
|
"onUpdate:modelValue": n[0] ||= (e) => j("url", e)
|
|
3492
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(),
|
|
3726
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(), w(A, {
|
|
3493
3727
|
key: 0,
|
|
3494
3728
|
path: "openInNewTab",
|
|
3495
3729
|
label: h(s).video.openInNewTab
|
|
3496
3730
|
}, {
|
|
3497
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
3731
|
+
"label-actions": u(({ controlId: t }) => [p(P, {
|
|
3498
3732
|
"control-id": t,
|
|
3499
3733
|
"hide-label": "",
|
|
3500
3734
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -3510,28 +3744,28 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3510
3744
|
}, 8, ["label"])) : g("", !0)]),
|
|
3511
3745
|
_: 1
|
|
3512
3746
|
}, 8, ["label"]),
|
|
3513
|
-
|
|
3747
|
+
C.value ? (a(), w(A, {
|
|
3514
3748
|
key: 0,
|
|
3515
3749
|
class: "tpl:mb-3.5",
|
|
3516
3750
|
path: "placeholderUrl"
|
|
3517
3751
|
}, {
|
|
3518
|
-
label: u(() => [y(r(h(s).video.placeholderUrl) + " ", 1), b("span",
|
|
3752
|
+
label: u(() => [y(r(h(s).video.placeholderUrl) + " ", 1), b("span", no, r(h(s).video.optional), 1)]),
|
|
3519
3753
|
default: u(() => [b("input", {
|
|
3520
3754
|
type: "url",
|
|
3521
|
-
class: o(h(
|
|
3755
|
+
class: o(h(z)),
|
|
3522
3756
|
value: e.block.placeholderUrl || "",
|
|
3523
3757
|
placeholder: h(s).video.placeholderUrlPlaceholder,
|
|
3524
3758
|
title: h(s).video.placeholderUrlTooltip,
|
|
3525
3759
|
onInput: n[2] ||= (e) => j("placeholderUrl", e.target.value)
|
|
3526
|
-
}, null, 42,
|
|
3760
|
+
}, null, 42, ro)]),
|
|
3527
3761
|
_: 1
|
|
3528
3762
|
})) : g("", !0),
|
|
3529
|
-
p(
|
|
3763
|
+
p(A, {
|
|
3530
3764
|
class: "tpl:mb-3.5",
|
|
3531
3765
|
path: "thumbnailUrl"
|
|
3532
3766
|
}, {
|
|
3533
|
-
label: u(() => [y(r(h(s).video.customThumbnail) + " ", 1), b("span",
|
|
3534
|
-
default: u(() => [p(
|
|
3767
|
+
label: u(() => [y(r(h(s).video.customThumbnail) + " ", 1), b("span", io, r(h(s).video.optional), 1)]),
|
|
3768
|
+
default: u(() => [p(N, {
|
|
3535
3769
|
"model-value": e.block.thumbnailUrl,
|
|
3536
3770
|
type: "url",
|
|
3537
3771
|
placeholder: h(s).video.thumbnailPlaceholder,
|
|
@@ -3549,19 +3783,19 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3549
3783
|
color: "var(--tpl-primary)",
|
|
3550
3784
|
"background-color": "var(--tpl-bg)"
|
|
3551
3785
|
},
|
|
3552
|
-
onClick:
|
|
3553
|
-
}, [p(h(
|
|
3786
|
+
onClick: te
|
|
3787
|
+
}, [p(h(Ie), {
|
|
3554
3788
|
size: 14,
|
|
3555
3789
|
"stroke-width": 1.5
|
|
3556
3790
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)]),
|
|
3557
3791
|
_: 1
|
|
3558
3792
|
}),
|
|
3559
|
-
p(
|
|
3793
|
+
p(A, {
|
|
3560
3794
|
label: h(s).video.altText,
|
|
3561
3795
|
class: "tpl:mb-3.5",
|
|
3562
3796
|
path: "alt"
|
|
3563
3797
|
}, {
|
|
3564
|
-
default: u(() => [p(
|
|
3798
|
+
default: u(() => [p(N, {
|
|
3565
3799
|
"model-value": e.block.alt,
|
|
3566
3800
|
type: "text",
|
|
3567
3801
|
placeholder: h(s).video.altTextPlaceholder,
|
|
@@ -3569,58 +3803,58 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3569
3803
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
3570
3804
|
_: 1
|
|
3571
3805
|
}, 8, ["label"]),
|
|
3572
|
-
p(
|
|
3806
|
+
p(A, {
|
|
3573
3807
|
label: h(s).video.width,
|
|
3574
3808
|
class: "tpl:mb-3.5",
|
|
3575
3809
|
path: "width"
|
|
3576
3810
|
}, {
|
|
3577
3811
|
default: u(() => [b("select", {
|
|
3578
|
-
class: o(h(
|
|
3812
|
+
class: o(h(z)),
|
|
3579
3813
|
"data-testid": "video-width-mode",
|
|
3580
|
-
value:
|
|
3814
|
+
value: T.value,
|
|
3581
3815
|
onChange: n[5] ||= (e) => M(e.target.value)
|
|
3582
3816
|
}, [
|
|
3583
|
-
b("option",
|
|
3817
|
+
b("option", oo, r(h(s).video.fullWidth), 1),
|
|
3584
3818
|
n[10] ||= b("option", { value: "300" }, "300px", -1),
|
|
3585
3819
|
n[11] ||= b("option", { value: "400" }, "400px", -1),
|
|
3586
3820
|
n[12] ||= b("option", { value: "500" }, "500px", -1),
|
|
3587
|
-
b("option",
|
|
3588
|
-
], 42,
|
|
3821
|
+
b("option", so, r(h(s).video.widthCustom), 1)
|
|
3822
|
+
], 42, ao), T.value === "custom" ? (a(), v("div", co, [b("input", {
|
|
3589
3823
|
type: "number",
|
|
3590
3824
|
"data-testid": "video-width-input",
|
|
3591
|
-
class: o(h(
|
|
3825
|
+
class: o(h(R)),
|
|
3592
3826
|
value: e.block.width,
|
|
3593
3827
|
min: "20",
|
|
3594
|
-
onInput: n[6] ||= (e) =>
|
|
3595
|
-
}, null, 42,
|
|
3828
|
+
onInput: n[6] ||= (e) => F(e.target.value)
|
|
3829
|
+
}, null, 42, lo), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)]),
|
|
3596
3830
|
_: 1
|
|
3597
3831
|
}, 8, ["label"]),
|
|
3598
|
-
p(
|
|
3832
|
+
p(A, {
|
|
3599
3833
|
label: h(s).video.height,
|
|
3600
3834
|
class: "tpl:mb-3.5",
|
|
3601
3835
|
path: "height"
|
|
3602
3836
|
}, {
|
|
3603
3837
|
default: u(() => [b("select", {
|
|
3604
|
-
class: o(h(
|
|
3838
|
+
class: o(h(z)),
|
|
3605
3839
|
"data-testid": "video-height-mode",
|
|
3606
3840
|
value: D.value,
|
|
3607
|
-
onChange: n[7] ||= (e) =>
|
|
3608
|
-
}, [b("option",
|
|
3841
|
+
onChange: n[7] ||= (e) => I(e.target.value)
|
|
3842
|
+
}, [b("option", fo, r(h(s).video.heightAuto), 1), b("option", po, r(h(s).video.heightCustom), 1)], 42, uo), D.value === "custom" ? (a(), v("div", mo, [b("input", {
|
|
3609
3843
|
type: "number",
|
|
3610
3844
|
"data-testid": "video-height-input",
|
|
3611
|
-
class: o(h(
|
|
3845
|
+
class: o(h(R)),
|
|
3612
3846
|
value: e.block.height,
|
|
3613
3847
|
min: "20",
|
|
3614
|
-
onInput: n[8] ||= (e) =>
|
|
3615
|
-
}, null, 42,
|
|
3848
|
+
onInput: n[8] ||= (e) => ee(e.target.value)
|
|
3849
|
+
}, null, 42, ho), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)]),
|
|
3616
3850
|
_: 1
|
|
3617
3851
|
}, 8, ["label"]),
|
|
3618
|
-
p(
|
|
3852
|
+
p(A, {
|
|
3619
3853
|
label: h(s).title.align,
|
|
3620
3854
|
class: "tpl:mb-3.5",
|
|
3621
3855
|
path: "align"
|
|
3622
3856
|
}, {
|
|
3623
|
-
default: u(() => [p(
|
|
3857
|
+
default: u(() => [p($, {
|
|
3624
3858
|
options: [
|
|
3625
3859
|
{
|
|
3626
3860
|
value: "left",
|
|
@@ -3642,7 +3876,7 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3642
3876
|
}, 8, ["label"])
|
|
3643
3877
|
], 64));
|
|
3644
3878
|
}
|
|
3645
|
-
}),
|
|
3879
|
+
}), yo = ["aria-label"], bo = ["disabled", "inert"], xo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, So = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Co = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wo = { class: "tpl:flex tpl:gap-1" }, To = ["title"], Eo = ["title"], Do = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Oo = /*@__PURE__*/ D({
|
|
3646
3880
|
__name: "Toolbar",
|
|
3647
3881
|
props: { block: {} },
|
|
3648
3882
|
emits: [
|
|
@@ -3651,10 +3885,10 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3651
3885
|
"duplicate"
|
|
3652
3886
|
],
|
|
3653
3887
|
setup(e, { emit: t }) {
|
|
3654
|
-
let n =
|
|
3888
|
+
let n = T(() => import("./CountdownToolbar-IjpCOjCd.js")), o = e, s = t, { t: c } = V(), l = rt(), u = Ye(Ge, "Toolbar"), d = E(Ke, []), f = m(() => o.block.type), _ = m(() => ce(o.block)), y = m(() => {
|
|
3655
3889
|
if (_.value) return d.find((e) => e.type === o.block.customType);
|
|
3656
|
-
}), x = m(() => _.value ? y.value?.name ?? o.block.customType :
|
|
3657
|
-
function
|
|
3890
|
+
}), x = m(() => _.value ? y.value?.name ?? o.block.customType : Ce(f.value, c)), S = m(() => ge(u.fonts.value, "fontFamily" in o.block ? o.block.fontFamily : void 0));
|
|
3891
|
+
function C(e) {
|
|
3658
3892
|
l.value && s("update", e);
|
|
3659
3893
|
}
|
|
3660
3894
|
return (t, o) => (a(), v("aside", {
|
|
@@ -3665,95 +3899,95 @@ var Ei = { class: "tpl:mb-3.5" }, Di = ["value"], Oi = ["value"], ki = {
|
|
|
3665
3899
|
disabled: !h(l),
|
|
3666
3900
|
inert: !h(l),
|
|
3667
3901
|
class: "tpl:contents"
|
|
3668
|
-
}, [b("div",
|
|
3902
|
+
}, [b("div", xo, [b("div", So, [h(ve)[f.value] ? (a(), w(i(h(ve)[f.value]), {
|
|
3669
3903
|
key: 0,
|
|
3670
3904
|
size: 16,
|
|
3671
3905
|
"stroke-width": 1.5
|
|
3672
|
-
})) : _.value ? (a(),
|
|
3906
|
+
})) : _.value ? (a(), w(h(Oe), {
|
|
3673
3907
|
key: 1,
|
|
3674
3908
|
size: 16,
|
|
3675
3909
|
"stroke-width": 1.5
|
|
3676
|
-
})) : g("", !0), b("h3",
|
|
3910
|
+
})) : g("", !0), b("h3", Co, r(x.value), 1)]), b("div", wo, [b("button", {
|
|
3677
3911
|
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:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
|
|
3678
3912
|
title: h(c).toolbar.duplicate,
|
|
3679
3913
|
onClick: o[0] ||= (e) => s("duplicate")
|
|
3680
|
-
}, [p(h(
|
|
3914
|
+
}, [p(h(pt), {
|
|
3681
3915
|
size: 14,
|
|
3682
3916
|
"stroke-width": 2
|
|
3683
|
-
})], 8,
|
|
3917
|
+
})], 8, To), b("button", {
|
|
3684
3918
|
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:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
3685
3919
|
title: h(c).toolbar.delete,
|
|
3686
3920
|
onClick: o[1] ||= (e) => s("delete")
|
|
3687
|
-
}, [p(h(
|
|
3921
|
+
}, [p(h(at), {
|
|
3688
3922
|
size: 14,
|
|
3689
3923
|
"stroke-width": 2
|
|
3690
|
-
})], 8,
|
|
3924
|
+
})], 8, Eo)])]), b("div", Do, [_.value ? (a(), w(ni, {
|
|
3691
3925
|
key: 0,
|
|
3692
3926
|
block: e.block,
|
|
3693
3927
|
onUpdateFieldValues: o[2] ||= (e) => s("update", { fieldValues: e }),
|
|
3694
3928
|
onUpdateDataSourceFetched: o[3] ||= (e) => s("update", { dataSourceFetched: e })
|
|
3695
|
-
}, null, 8, ["block"])) : f.value === "section" ? (a(),
|
|
3929
|
+
}, null, 8, ["block"])) : f.value === "section" ? (a(), w(ea, {
|
|
3696
3930
|
key: 1,
|
|
3697
3931
|
block: e.block,
|
|
3698
|
-
onUpdate:
|
|
3699
|
-
}, null, 8, ["block"])) : f.value === "title" ? (a(),
|
|
3932
|
+
onUpdate: C
|
|
3933
|
+
}, null, 8, ["block"])) : f.value === "title" ? (a(), w(to, {
|
|
3700
3934
|
key: 2,
|
|
3701
3935
|
block: e.block,
|
|
3702
3936
|
"font-families": S.value,
|
|
3703
|
-
onUpdate:
|
|
3704
|
-
}, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (a(),
|
|
3937
|
+
onUpdate: C
|
|
3938
|
+
}, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (a(), w(Ki, {
|
|
3705
3939
|
key: 3,
|
|
3706
3940
|
block: e.block,
|
|
3707
|
-
onUpdate:
|
|
3708
|
-
}, null, 8, ["block"])) : f.value === "image" ? (a(),
|
|
3941
|
+
onUpdate: C
|
|
3942
|
+
}, null, 8, ["block"])) : f.value === "image" ? (a(), w(Mi, {
|
|
3709
3943
|
key: 4,
|
|
3710
3944
|
block: e.block,
|
|
3711
|
-
onUpdate:
|
|
3712
|
-
}, null, 8, ["block"])) : f.value === "video" ? (a(),
|
|
3945
|
+
onUpdate: C
|
|
3946
|
+
}, null, 8, ["block"])) : f.value === "video" ? (a(), w(vo, {
|
|
3713
3947
|
key: 5,
|
|
3714
3948
|
block: e.block,
|
|
3715
|
-
onUpdate:
|
|
3716
|
-
}, null, 8, ["block"])) : f.value === "button" ? (a(),
|
|
3949
|
+
onUpdate: C
|
|
3950
|
+
}, null, 8, ["block"])) : f.value === "button" ? (a(), w(Ut, {
|
|
3717
3951
|
key: 6,
|
|
3718
3952
|
block: e.block,
|
|
3719
3953
|
"font-families": S.value,
|
|
3720
|
-
onUpdate:
|
|
3721
|
-
}, null, 8, ["block", "font-families"])) : f.value === "divider" ? (a(),
|
|
3954
|
+
onUpdate: C
|
|
3955
|
+
}, null, 8, ["block", "font-families"])) : f.value === "divider" ? (a(), w(ai, {
|
|
3722
3956
|
key: 7,
|
|
3723
3957
|
block: e.block,
|
|
3724
|
-
onUpdate:
|
|
3725
|
-
}, null, 8, ["block"])) : f.value === "social" ? (a(),
|
|
3958
|
+
onUpdate: C
|
|
3959
|
+
}, null, 8, ["block"])) : f.value === "social" ? (a(), w(ba, {
|
|
3726
3960
|
key: 8,
|
|
3727
3961
|
block: e.block,
|
|
3728
|
-
onUpdate:
|
|
3729
|
-
}, null, 8, ["block"])) : f.value === "menu" ? (a(),
|
|
3962
|
+
onUpdate: C
|
|
3963
|
+
}, null, 8, ["block"])) : f.value === "menu" ? (a(), w(Ui, {
|
|
3730
3964
|
key: 9,
|
|
3731
3965
|
block: e.block,
|
|
3732
3966
|
"font-families": S.value,
|
|
3733
|
-
onUpdate:
|
|
3734
|
-
}, null, 8, ["block", "font-families"])) : f.value === "table" ? (a(),
|
|
3967
|
+
onUpdate: C
|
|
3968
|
+
}, null, 8, ["block", "font-families"])) : f.value === "table" ? (a(), w(Ka, {
|
|
3735
3969
|
key: 10,
|
|
3736
3970
|
block: e.block,
|
|
3737
3971
|
"font-families": S.value,
|
|
3738
|
-
onUpdate:
|
|
3739
|
-
}, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (a(),
|
|
3972
|
+
onUpdate: C
|
|
3973
|
+
}, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (a(), w(wa, {
|
|
3740
3974
|
key: 11,
|
|
3741
3975
|
block: e.block,
|
|
3742
|
-
onUpdate:
|
|
3743
|
-
}, null, 8, ["block"])) : f.value === "html" ? (a(),
|
|
3976
|
+
onUpdate: C
|
|
3977
|
+
}, null, 8, ["block"])) : f.value === "html" ? (a(), w(ci, {
|
|
3744
3978
|
key: 12,
|
|
3745
3979
|
block: e.block,
|
|
3746
|
-
onUpdate:
|
|
3747
|
-
}, null, 8, ["block"])) : f.value === "countdown" ? (a(),
|
|
3980
|
+
onUpdate: C
|
|
3981
|
+
}, null, 8, ["block"])) : f.value === "countdown" ? (a(), w(h(n), {
|
|
3748
3982
|
key: 13,
|
|
3749
3983
|
block: e.block,
|
|
3750
3984
|
"font-families": S.value,
|
|
3751
|
-
onUpdate:
|
|
3752
|
-
}, null, 8, ["block", "font-families"])) : g("", !0), p(
|
|
3985
|
+
onUpdate: C
|
|
3986
|
+
}, null, 8, ["block", "font-families"])) : g("", !0), p(gr, {
|
|
3753
3987
|
block: e.block,
|
|
3754
3988
|
"is-first-section": f.value === "paragraph",
|
|
3755
|
-
onUpdate:
|
|
3756
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
3989
|
+
onUpdate: C
|
|
3990
|
+
}, null, 8, ["block", "is-first-section"])])], 8, bo)], 8, yo));
|
|
3757
3991
|
}
|
|
3758
|
-
}),
|
|
3759
|
-
export {
|
|
3992
|
+
}), ko = /* @__PURE__ */ e({ default: () => Ao }), Ao = /*#__PURE__*/ ye(Oo, [["__scopeId", "data-v-206f038f"]]);
|
|
3993
|
+
export { Ao as default, xt as n, $ as r, ko as t };
|