@templatical/editor 0.60.0 → 0.60.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-DiIaqDtB.js → AiAltTextPopover-DSA1wiiW.js} +1 -1
- package/dist/{AiAltTextReview-DIe0WBbj.js → AiAltTextReview-B9-vfzCj.js} +1 -1
- package/dist/{AiChatPanel-aj2TPO9F.js → AiChatPanel-DPoq2Til.js} +8 -8
- package/dist/{AiPanels-CRM3jf82.js → AiPanels-UdfhAzzu.js} +1 -1
- package/dist/{AiRewriteMenu-F3GyXBsk.js → AiRewriteMenu-BaeMlSEx.js} +8 -8
- package/dist/{BlockIssueBadge-DlhA_I6J.js → BlockIssueBadge-DQ_6NI4p.js} +2 -2
- package/dist/{BlockPreviewCanvas-DYspUXMO.js → BlockPreviewCanvas-DWDfih6j.js} +4 -4
- package/dist/{CloudPanels-CAMn545-.js → CloudPanels-ClHDM3ge.js} +3 -3
- package/dist/{CollaborationNotices-CnfS8BQy.js → CollaborationNotices-PqWv0q8W.js} +1 -1
- package/dist/{CollaboratorBar-DufLdLQP.js → CollaboratorBar-p-_PWqXW.js} +1 -1
- package/dist/{CommentsPanel-C2hFFs0o.js → CommentsPanel-BUo-YhSX.js} +1 -1
- package/dist/{CommentsSidebar-CgEwxt2T.js → CommentsSidebar-D_Pz7FPz.js} +10 -10
- package/dist/{CountdownToolbar-CNqYDevp.js → CountdownToolbar-DYFSFwkD.js} +4 -4
- package/dist/{IssuesPanel-cPKhimE9.js → IssuesPanel-C7mBrK6a.js} +9 -9
- package/dist/{LanguageMenu-zxlpmw2x.js → LanguageMenu-f7js1FF8.js} +10 -10
- package/dist/{LocaleNotices-PIfpvCCI.js → LocaleNotices-CAvDAawJ.js} +2 -2
- package/dist/{LogicTagInsertButton-DqTkGJSR.js → LogicTagInsertButton-Clc3JTg_.js} +6 -6
- package/dist/{MediaEditModal-C2Bn8WGb.js → MediaEditModal-YXOL0d_y.js} +1 -1
- package/dist/{MediaPanels-BAZByHRA.js → MediaPanels-VCv5epgs.js} +1 -1
- package/dist/{MergeTagInput-Jly1Pw0v.js → MergeTagInput-B5a9noTB.js} +1 -1
- package/dist/{MergeTagModeToggle-5kaFLRAm.js → MergeTagModeToggle-D1r2aH5x.js} +4 -4
- package/dist/{MergeTagTextarea-CCfirhcR.js → MergeTagTextarea-CA9dPfMH.js} +3 -3
- package/dist/{ParagraphEditor-DTdnxgDZ.js → ParagraphEditor-ByzfpepN.js} +13 -13
- package/dist/{RestoreVersionDialog-cUYu3Xqs.js → RestoreVersionDialog-Da5sTCFI.js} +3 -3
- package/dist/{RichTextEditorContent-Aub9tOHF.js → RichTextEditorContent-gnRxu4-L.js} +4 -4
- package/dist/{SaveBlockDialog-D_ie3uIF.js → SaveBlockDialog-BM1Fki_2.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-fhSnYT1l.js → SavedBlocksBrowserModal-DHOTdJKB.js} +9 -9
- package/dist/{SavedBlocksPanels-Lklqy4XI.js → SavedBlocksPanels-BJ2OM0cG.js} +1 -1
- package/dist/{SavedBlocksPickBar-CpWkCa8G.js → SavedBlocksPickBar-C4Bv1K_9.js} +2 -2
- package/dist/{TemplateSettings-BJ4a8RBr.js → TemplateSettings-DsaSsCC8.js} +8 -8
- package/dist/{TestEmailModal-BEoapoDc.js → TestEmailModal-CMo0cJik.js} +8 -8
- package/dist/{TestEmailPanel-DgyzokCf.js → TestEmailPanel-B2OoOy9K.js} +1 -1
- package/dist/{TitleEditor-BQoSPgOi.js → TitleEditor--gFbrR7V.js} +6 -6
- package/dist/{Toolbar-KhPpWyX1.js → Toolbar-UXT03-Dc.js} +552 -442
- package/dist/{TplModal-F_kA7luG.js → TplModal-DkoyIwy1.js} +1 -1
- package/dist/{VersionHistoryMenu-Bz4G8cNm.js → VersionHistoryMenu-D-RCk3oB.js} +5 -5
- package/dist/{VersionHistoryPanels-DmVRyWv9.js → VersionHistoryPanels-TzzRlmqK.js} +1 -1
- package/dist/{VersionPreviewBanner-BeppXZyn.js → VersionPreviewBanner-DMg2sw3V.js} +1 -1
- package/dist/{WrapperBlock-Ds7yfbhg.js → WrapperBlock-B4mdW2CP.js} +3 -3
- package/dist/{blockTypeIcons-Do1QqDjg.js → blockTypeIcons-MX-xQH_Z.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{cdn/chunks/ca-Ce3NmK9v.js → ca-C8N05sCU.js} +4 -3
- package/dist/cdn/chunks/{AiAltTextPopover-CUzIaLRK.js → AiAltTextPopover-BLNN_Pnd.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextPopover-CUzIaLRK.js.map → AiAltTextPopover-BLNN_Pnd.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BXBlE71X.js → AiAltTextReview-Db8vSNpe.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextReview-BXBlE71X.js.map → AiAltTextReview-Db8vSNpe.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BKydciDQ.js → AiChatPanel-cIT2haLo.js} +2 -2
- package/dist/cdn/chunks/{AiChatPanel-BKydciDQ.js.map → AiChatPanel-cIT2haLo.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-De-cIZ4p.js → AiPanels-B4GG8w3J.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-De-cIZ4p.js.map → AiPanels-B4GG8w3J.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-C9vBUTIB.js → AiRewriteMenu-C34wZVcW.js} +6 -6
- package/dist/cdn/chunks/{AiRewriteMenu-C9vBUTIB.js.map → AiRewriteMenu-C34wZVcW.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-B3CTTvgw.js → BlockIssueBadge-C50pmOMZ.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-B3CTTvgw.js.map → BlockIssueBadge-C50pmOMZ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-B4Bj--kc.js → BlockPreviewCanvas-CUOrwkWR.js} +5 -5
- package/dist/cdn/chunks/{BlockPreviewCanvas-B4Bj--kc.js.map → BlockPreviewCanvas-CUOrwkWR.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-CQ75I3hQ.js → CloudPanels-BAGDHObm.js} +3 -3
- package/dist/cdn/chunks/{CloudPanels-CQ75I3hQ.js.map → CloudPanels-BAGDHObm.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CgLea-hu.js → CollaborationNotices-CTmjjbHv.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-CgLea-hu.js.map → CollaborationNotices-CTmjjbHv.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CjRcbebT.js → CollaboratorBar-CzHjawjF.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-CjRcbebT.js.map → CollaboratorBar-CzHjawjF.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-D_ud9GMN.js → CommentsPanel-Dh0_eRBe.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-D_ud9GMN.js.map → CommentsPanel-Dh0_eRBe.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CXn1EGAI.js → CommentsSidebar-JxZ-O2mY.js} +2 -2
- package/dist/cdn/chunks/{CommentsSidebar-CXn1EGAI.js.map → CommentsSidebar-JxZ-O2mY.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BOyk_4k7.js → CountdownToolbar-BBiK9EaU.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-BOyk_4k7.js.map → CountdownToolbar-BBiK9EaU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DOC94ZsH.js → IssuesPanel-BtAn12hl.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-DOC94ZsH.js.map → IssuesPanel-BtAn12hl.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-DktneIpL.js → LanguageMenu-BDldm-Hp.js} +5 -5
- package/dist/cdn/chunks/{LanguageMenu-DktneIpL.js.map → LanguageMenu-BDldm-Hp.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-B2NgnHoP.js → LocaleNotices-CzrNKR-N.js} +2 -2
- package/dist/cdn/chunks/{LocaleNotices-B2NgnHoP.js.map → LocaleNotices-CzrNKR-N.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CQ8RiOou.js → LogicTagInsertButton-B4wuPoMa.js} +5 -5
- package/dist/cdn/chunks/{LogicTagInsertButton-CQ8RiOou.js.map → LogicTagInsertButton-B4wuPoMa.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-Cs7_Om7e.js → MediaEditModal-DJ2wxInt.js} +2 -2
- package/dist/cdn/chunks/{MediaEditModal-Cs7_Om7e.js.map → MediaEditModal-DJ2wxInt.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-BeekGmql.js → MediaPanels-BJawNjr9.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-BeekGmql.js.map → MediaPanels-BJawNjr9.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-D7FZ0ca0.js → MergeTagInput-DZD-p4nR.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-D7FZ0ca0.js.map → MergeTagInput-DZD-p4nR.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-CySCCEDs.js → MergeTagModeToggle-DGuJCgqO.js} +3 -3
- package/dist/cdn/chunks/{MergeTagModeToggle-CySCCEDs.js.map → MergeTagModeToggle-DGuJCgqO.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DJbWTYVH.js → MergeTagTextarea-BRiaRBr_.js} +4 -4
- package/dist/cdn/chunks/{MergeTagTextarea-DJbWTYVH.js.map → MergeTagTextarea-BRiaRBr_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DAQUWqQJ.js → ParagraphEditor-CPYQXRIc.js} +10 -10
- package/dist/cdn/chunks/{ParagraphEditor-DAQUWqQJ.js.map → ParagraphEditor-CPYQXRIc.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-COTRe_rM.js → RestoreVersionDialog-NjbHial9.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-COTRe_rM.js.map → RestoreVersionDialog-NjbHial9.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DeWPMd9V.js → RichTextEditorContent-CtV0Q0SO.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-DeWPMd9V.js.map → RichTextEditorContent-CtV0Q0SO.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-adQMbKR1.js → SaveBlockDialog-BZqPkGrE.js} +6 -6
- package/dist/cdn/chunks/{SaveBlockDialog-adQMbKR1.js.map → SaveBlockDialog-BZqPkGrE.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CGIFCRAx.js → SavedBlocksBrowserModal-CqfyRtlX.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CGIFCRAx.js.map → SavedBlocksBrowserModal-CqfyRtlX.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Du0RYlEf.js → SavedBlocksPanels-BILHEdkP.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-Du0RYlEf.js.map → SavedBlocksPanels-BILHEdkP.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DmleyUrn.js → SavedBlocksPickBar-C9NKqOEU.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-DmleyUrn.js.map → SavedBlocksPickBar-C9NKqOEU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-Csjef99q.js → TemplateSettings--_ZfbhnU.js} +6 -6
- package/dist/cdn/chunks/{TemplateSettings-Csjef99q.js.map → TemplateSettings--_ZfbhnU.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-ClkexOtF.js → TestEmailModal-CtfoV82K.js} +7 -7
- package/dist/cdn/chunks/{TestEmailModal-ClkexOtF.js.map → TestEmailModal-CtfoV82K.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-DYEYzhU2.js → TestEmailPanel-NK26SU2u.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-DYEYzhU2.js.map → TestEmailPanel-NK26SU2u.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-opvaIgVr.js → TitleEditor-DXN_aOn0.js} +5 -5
- package/dist/cdn/chunks/{TitleEditor-opvaIgVr.js.map → TitleEditor-DXN_aOn0.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DbqkKRXy.js → Toolbar-HCxD4Ifc.js} +532 -422
- package/dist/cdn/chunks/Toolbar-HCxD4Ifc.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DLV5OeMD.js → TplModal-DzHoLmGo.js} +2 -2
- package/dist/cdn/chunks/{TplModal-DLV5OeMD.js.map → TplModal-DzHoLmGo.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DBd0zwjE.js → VersionHistoryMenu-CVGlUPwS.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryMenu-DBd0zwjE.js.map → VersionHistoryMenu-CVGlUPwS.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-hy_Ybxie.js → VersionHistoryPanels-Du8sQry2.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-hy_Ybxie.js.map → VersionHistoryPanels-Du8sQry2.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-D-yHxWWY.js → VersionPreviewBanner-5RFz4AQx.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-D-yHxWWY.js.map → VersionPreviewBanner-5RFz4AQx.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-Ce_k8m_x.js → WrapperBlock-DTayPD6Q.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-Ce_k8m_x.js.map → WrapperBlock-DTayPD6Q.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DBoP1HkR.js → blockTypeIcons-BOonB9gK.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DBoP1HkR.js.map → blockTypeIcons-BOonB9gK.js.map} +1 -1
- package/dist/{ca-Ce3NmK9v.js → cdn/chunks/ca-C8N05sCU.js} +6 -1
- package/dist/cdn/chunks/ca-C8N05sCU.js.map +1 -0
- package/dist/cdn/chunks/{composables-Brr4m0Sg.js → composables-BJBr8B4t.js} +110 -66
- package/dist/cdn/chunks/composables-BJBr8B4t.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-QPeg45XL.js → createCloudRuntime-CUlw09ix.js} +3 -3
- package/dist/cdn/chunks/{createCloudRuntime-QPeg45XL.js.map → createCloudRuntime-CUlw09ix.js.map} +1 -1
- package/dist/{da-4YwDAuEr.js → cdn/chunks/da-Dno_4nGy.js} +6 -1
- package/dist/cdn/chunks/da-Dno_4nGy.js.map +1 -0
- package/dist/{de-BlQ0vdZJ.js → cdn/chunks/de-DRR5JSkh.js} +6 -1
- package/dist/cdn/chunks/de-DRR5JSkh.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-BCcbvIxc.js → editor-modal-BVM_0uoL.js} +4 -4
- package/dist/cdn/chunks/{editor-modal-BCcbvIxc.js.map → editor-modal-BVM_0uoL.js.map} +1 -1
- package/dist/cdn/chunks/{en-MlNeQVSG.js → en-DAcLbbpg.js} +5 -2
- package/dist/cdn/chunks/en-DAcLbbpg.js.map +1 -0
- package/dist/cdn/chunks/en-DlDEofnd.js +1 -0
- package/dist/cdn/chunks/{es-2s8x4OM2.js → es-BcEQLQxe.js} +5 -2
- package/dist/cdn/chunks/es-BcEQLQxe.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BpuyqKVY.js → extensions-BPZirXpF.js} +4 -4
- package/dist/cdn/chunks/{extensions-BpuyqKVY.js.map → extensions-BPZirXpF.js.map} +1 -1
- package/dist/{fr-D3MjrsgQ.js → cdn/chunks/fr-CNQG7ESr.js} +6 -1
- package/dist/cdn/chunks/fr-CNQG7ESr.js.map +1 -0
- package/dist/cdn/chunks/{icons-BJ6AtVgu.js → icons-CWEBTtbR.js} +6 -6
- package/dist/cdn/chunks/{icons-BJ6AtVgu.js.map → icons-CWEBTtbR.js.map} +1 -1
- package/dist/{ja-B4Kx7uBX.js → cdn/chunks/ja-CMxWxqSH.js} +6 -1
- package/dist/cdn/chunks/ja-CMxWxqSH.js.map +1 -0
- package/dist/{nl-U65iX7wN.js → cdn/chunks/nl-BjyYZDkC.js} +6 -1
- package/dist/cdn/chunks/nl-BjyYZDkC.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-B81BAWKT.js → normalizeMergeTagMarkup-CExCfSYI.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-B81BAWKT.js.map → normalizeMergeTagMarkup-CExCfSYI.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-CQuaMxuv.js → preRenderCustomBlocks-BLVFtvl8.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-CQuaMxuv.js.map → preRenderCustomBlocks-BLVFtvl8.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-_jsX1xLv.js → pt-BR-DC2A3C0v.js} +5 -2
- package/dist/cdn/chunks/pt-BR-DC2A3C0v.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-BdAjvU9I.js → sanitizeHtml-Db0S2JVP.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-BdAjvU9I.js.map → sanitizeHtml-Db0S2JVP.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-Df9dNe7I.js → socialIcons-WD1cjZDr.js} +3 -3
- package/dist/cdn/chunks/{socialIcons-Df9dNe7I.js.map → socialIcons-WD1cjZDr.js.map} +1 -1
- package/dist/cdn/chunks/{src-BHgVGOTi.js → src-A0kzK-pR.js} +5 -1
- package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -0
- package/dist/cdn/chunks/{src-C5V_yzAU.js → src-C9opbQj_.js} +207 -196
- package/dist/cdn/chunks/src-C9opbQj_.js.map +1 -0
- package/dist/cdn/chunks/{src-B3v_3j9b.js → src-edESkGqO.js} +366 -293
- package/dist/cdn/chunks/src-edESkGqO.js.map +1 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-C3lIetmX.js → useLocalizedDisplay-Brdkp3KH.js} +2 -2
- package/dist/cdn/chunks/{useLocalizedDisplay-C3lIetmX.js.map → useLocalizedDisplay-Brdkp3KH.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-DOIlsGk8.js → useLogicTag-CKtQlJDa.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-DOIlsGk8.js.map → useLogicTag-CKtQlJDa.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-DUNl364g.js → useMergeTag-Dwy3U0PI.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-DUNl364g.js.map → useMergeTag-Dwy3U0PI.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-ufGLu2Vt.js → withCurrentFont-C4pIesdB.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-ufGLu2Vt.js.map → withCurrentFont-C4pIesdB.js.map} +1 -1
- package/dist/cdn/editor.js +21 -21
- package/dist/{check-CWq6Nfjj.js → check-C82yyyf1.js} +1 -1
- package/dist/{chevron-down-B9t0SK_-.js → chevron-down-BaBVjNbM.js} +1 -1
- package/dist/{chevron-right-B_qslOCS.js → chevron-right-DkS-bw8X.js} +1 -1
- package/dist/{chevron-up-CxZ2teV2.js → chevron-up-C1KzUIK4.js} +1 -1
- package/dist/{circle-exclamation-point-B1tbhkNb.js → circle-exclamation-point-DsmqtTUQ.js} +1 -1
- package/dist/{clock-Rw4btQn-.js → clock-dpIs7vo0.js} +1 -1
- package/dist/{composables-5KJV0O9T.js → composables-DjCuq6RV.js} +1307 -1263
- package/dist/{createCloudRuntime-BdoKeYJi.js → createCloudRuntime-CiEo0wkr.js} +2 -2
- package/dist/{createLucideIcon-B6Zkn9r0.js → createLucideIcon-BSam2AUu.js} +5 -5
- package/dist/{cdn/chunks/da-4YwDAuEr.js → da-Dno_4nGy.js} +4 -3
- package/dist/{cdn/chunks/de-BlQ0vdZJ.js → de-DRR5JSkh.js} +4 -3
- package/dist/{dist-DsA7NeIy.js → dist-DX_IQgcU.js} +4 -0
- package/dist/{editor-modal-_ylhrf4g.js → editor-modal-odubnc9x.js} +15 -15
- package/dist/en-CAImT1hl.js +1 -0
- package/dist/{en-MlNeQVSG.js → en-DAcLbbpg.js} +4 -1
- package/dist/{es-2s8x4OM2.js → es-BcEQLQxe.js} +4 -1
- package/dist/{extensions-DCJGAZ9z.js → extensions-C7OLgMEj.js} +3 -3
- package/dist/{eye-BE-DeEqG.js → eye-CxCHEszj.js} +1 -1
- package/dist/{cdn/chunks/fr-D3MjrsgQ.js → fr-CNQG7ESr.js} +4 -3
- package/dist/{image-DfRxUmUh.js → image-DvXPzqNd.js} +1 -1
- package/dist/index.d.ts +35 -6
- package/dist/{info-D1PS-81D.js → info-2KHWaZ2L.js} +1 -1
- package/dist/{cdn/chunks/ja-B4Kx7uBX.js → ja-CMxWxqSH.js} +4 -3
- package/dist/{link-DLaACaIz.js → link-_OmrcJMv.js} +1 -1
- package/dist/{list-CvtzVlvM.js → list-Dekd7JE8.js} +1 -1
- package/dist/{loader-circle-DCkSXApP.js → loader-circle-D_hT5mFS.js} +1 -1
- package/dist/{message-circle-Bj4F9bBO.js → message-circle-DDbiG-jz.js} +1 -1
- package/dist/{cdn/chunks/nl-U65iX7wN.js → nl-BjyYZDkC.js} +4 -3
- package/dist/{normalizeMergeTagMarkup-B7n_-4Dz.js → normalizeMergeTagMarkup-Cv5Wvs5f.js} +1 -1
- package/dist/{package-By1au8Wi.js → package-cORUe57D.js} +1 -1
- package/dist/{pencil-T4qqyRLl.js → pencil-D67H4fxq.js} +1 -1
- package/dist/{plus-3Zry-1gs.js → plus-BpTZAx28.js} +1 -1
- package/dist/{preRenderCustomBlocks-D3GzENVB.js → preRenderCustomBlocks-6CLw2rP6.js} +1 -1
- package/dist/{pt-BR-_jsX1xLv.js → pt-BR-DC2A3C0v.js} +4 -1
- package/dist/{refresh-cw-BwaO0ioc.js → refresh-cw-B4T0IFwI.js} +1 -1
- package/dist/{rotate-ccw-C3E0W5q-.js → rotate-ccw-BDQgjpuo.js} +1 -1
- package/dist/{sanitizeHtml-BcbjlypU.js → sanitizeHtml-Ru5_-IbM.js} +2 -2
- package/dist/{search-DfExisVv.js → search-Dp9pkaVt.js} +1 -1
- package/dist/{send-FRC7Giap.js → send-DO9GhgCH.js} +1 -1
- package/dist/{smartphone-BlYU_z_x.js → smartphone-CPW3I3hV.js} +1 -1
- package/dist/{socialIcons-By2LPWOQ.js → socialIcons-CPBiLTjY.js} +4 -4
- package/dist/{sparkles-DSi61skE.js → sparkles-CIBjNfij.js} +1 -1
- package/dist/{square-DEE8tT2w.js → square-3W65qrrH.js} +1 -1
- package/dist/templatical-editor.js +35 -35
- package/dist/{text-align-start-DGdrmKcG.js → text-align-start-Bs70tpRU.js} +1 -1
- package/dist/{trash-YZPJMZc7.js → trash-CTzhAm1o.js} +1 -1
- package/dist/{triangle-exclamation-point-BR-W6pQm.js → triangle-exclamation-point-D_13CuJY.js} +1 -1
- package/dist/{upload-B_Eoqj-4.js → upload-DFxkP9MI.js} +1 -1
- package/dist/{useLocalizedDisplay-_P6-hXaO.js → useLocalizedDisplay-DfiE-KjV.js} +1 -1
- package/dist/{useLogicTag-f0SJ1Cd2.js → useLogicTag-K5CPoMTk.js} +1 -1
- package/dist/{useMergeTag-0-EudwkV.js → useMergeTag-tsU_Sw2x.js} +1 -1
- package/dist/{useScrollToBlock-CtM_ydOS.js → useScrollToBlock-194ePl4q.js} +1 -1
- package/dist/{withCurrentFont-BOg3jmCT.js → withCurrentFont-C-_IYTqP.js} +1 -1
- package/dist/{x-C0X5MoK3.js → x-D7L8mLHJ.js} +1 -1
- package/package.json +9 -9
- package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +0 -1
- package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +0 -1
- package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +0 -1
- package/dist/cdn/chunks/da-4YwDAuEr.js.map +0 -1
- package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +0 -1
- package/dist/cdn/chunks/en-DkulseE1.js +0 -1
- package/dist/cdn/chunks/en-MlNeQVSG.js.map +0 -1
- package/dist/cdn/chunks/es-2s8x4OM2.js.map +0 -1
- package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +0 -1
- package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +0 -1
- package/dist/cdn/chunks/nl-U65iX7wN.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +0 -1
- package/dist/cdn/chunks/src-B3v_3j9b.js.map +0 -1
- package/dist/cdn/chunks/src-BHgVGOTi.js.map +0 -1
- package/dist/cdn/chunks/src-C5V_yzAU.js.map +0 -1
- package/dist/en-DwxgN_-Y.js +0 -1
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
2
|
import { $ as t, B as n, C as r, F as i, G as a, H as o, K as s, L as c, O as l, Q as u, R as d, S as f, _ as p, b as m, ct as h, dt as g, g as _, h as v, it as y, m as b, mt as x, o as S, p as C, pt as w, s as T, tt as E, u as D, v as O, x as k } from "./draggable-IRVFEZ-b.js";
|
|
3
|
-
import { n as A, t as j } from "./MergeTagTextarea-
|
|
4
|
-
import { c as M } from "./LogicTagInsertButton-
|
|
5
|
-
import { t as N } from "./MergeTagInput-
|
|
3
|
+
import { n as A, t as j } from "./MergeTagTextarea-BRiaRBr_.js";
|
|
4
|
+
import { c as M } from "./LogicTagInsertButton-B4wuPoMa.js";
|
|
5
|
+
import { t as N } from "./MergeTagInput-DZD-p4nR.js";
|
|
6
6
|
import { t as P } from "./ToggleSwitch-C0w0srN_.js";
|
|
7
7
|
import { C as F, S as I, _ as L, b as ee, c as R, g as z, h as B, r as te, s as ne, v as V, y as H } from "./styleConstants-Br6CIRoS.js";
|
|
8
|
-
import { $ as re, At as ie, Bt as ae, Ft as oe, H as U, Mt as se, O as ce, R as le, _ as ue, _t as de, c as fe, et as W, f as G, gt as K, h as q, it as J, lt as Y, rt as X, t as pe, v as Z } from "./icons-
|
|
8
|
+
import { $ as re, At as ie, Bt as ae, Ft as oe, H as U, Mt as se, O as ce, R as le, _ as ue, _t as de, c as fe, et as W, f as G, gt as K, h as q, it as J, lt as Y, rt as X, t as pe, v as Z } from "./icons-CWEBTtbR.js";
|
|
9
9
|
import { t as Q } from "./useI18n-DPg6rPbu.js";
|
|
10
|
-
import { Bt as me, Cn as he, Dn as ge, H as _e, Ht as ve, I as ye, Jt as be, Mn as xe, Nn as Se, Sn as Ce, Ut as we, Vt as Te, W as Ee, Wt as De, Yt as Oe, bn as ke, g as Ae, kn as je, qt as Me, tn as Ne, wn as Pe, xn as Fe, yt as Ie } from "./src-
|
|
11
|
-
import { n as Le } from "./useLocalizedDisplay-
|
|
10
|
+
import { Bt as me, Cn as he, Dn as ge, H as _e, Ht as ve, I as ye, Jt as be, Mn as xe, Nn as Se, Sn as Ce, Ut as we, Vt as Te, W as Ee, Wt as De, Yt as Oe, bn as ke, g as Ae, kn as je, qt as Me, tn as Ne, wn as Pe, xn as Fe, yt as Ie } from "./src-A0kzK-pR.js";
|
|
11
|
+
import { n as Le } from "./useLocalizedDisplay-Brdkp3KH.js";
|
|
12
12
|
import { $ as Re, B as ze, C as Be, H as Ve, O as He, T as Ue, W as We, _ as Ge, b as Ke, h as qe, p as Je, r as Ye, ut as Xe, v as Ze } from "./keys-ywH4jHJ2.js";
|
|
13
|
-
import { F as Qe, T as $e, _ as et, b as tt, d as nt, f as rt, g as it, h as at, i as ot, l as st, m as ct, p as lt, r as ut, s as dt, u as ft, v as pt } from "./socialIcons-
|
|
14
|
-
import { n as mt, t as ht } from "./withCurrentFont-
|
|
13
|
+
import { F as Qe, T as $e, _ as et, b as tt, d as nt, f as rt, g as it, h as at, i as ot, l as st, m as ct, p as lt, r as ut, s as dt, u as ft, v as pt } from "./socialIcons-WD1cjZDr.js";
|
|
14
|
+
import { n as mt, t as ht } from "./withCurrentFont-C4pIesdB.js";
|
|
15
15
|
import { t as gt } from "./languageName-DEEOhDWI.js";
|
|
16
16
|
import { t as _t } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
17
17
|
import { t as vt } from "./logger-CqQTfJGx.js";
|
|
18
18
|
import { c as yt, r as bt } from "./usePopoverPosition-CBp9uwjV.js";
|
|
19
19
|
import { _ as xt } from "./dist-BtWMy7UQ.js";
|
|
20
|
-
import { t as St } from "./
|
|
20
|
+
import { t as St } from "./useMergeTag-Dwy3U0PI.js";
|
|
21
|
+
import { t as Ct } from "./blockTypeIcons-BOonB9gK.js";
|
|
21
22
|
// src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
22
|
-
var
|
|
23
|
+
var wt = [
|
|
23
24
|
"aria-checked",
|
|
24
25
|
"aria-label",
|
|
25
26
|
"disabled",
|
|
26
27
|
"aria-disabled",
|
|
27
28
|
"title",
|
|
28
29
|
"onClick"
|
|
29
|
-
],
|
|
30
|
+
], Tt = { key: 1 }, $ = /* @__PURE__ */ r({
|
|
30
31
|
__name: "SlidingPillSelect",
|
|
31
32
|
props: {
|
|
32
33
|
options: {},
|
|
@@ -71,14 +72,14 @@ var Ct = [
|
|
|
71
72
|
key: 0,
|
|
72
73
|
size: 14,
|
|
73
74
|
"stroke-width": 2
|
|
74
|
-
})) : (i(), p("span",
|
|
75
|
+
})) : (i(), p("span", Tt, x(t.label), 1))], 12, wt))), 128))], 4));
|
|
75
76
|
}
|
|
76
|
-
}),
|
|
77
|
+
}), Et = { class: "tpl:flex tpl:items-stretch" }, Dt = [
|
|
77
78
|
"data-testid",
|
|
78
79
|
"value",
|
|
79
80
|
"min",
|
|
80
81
|
"max"
|
|
81
|
-
],
|
|
82
|
+
], Ot = /* @__PURE__ */ r({
|
|
82
83
|
__name: "NumberWithSuffix",
|
|
83
84
|
props: {
|
|
84
85
|
modelValue: {},
|
|
@@ -94,7 +95,7 @@ var Ct = [
|
|
|
94
95
|
let t = e.target;
|
|
95
96
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
96
97
|
}
|
|
97
|
-
return (t, n) => (i(), p("div",
|
|
98
|
+
return (t, n) => (i(), p("div", Et, [b("input", {
|
|
98
99
|
type: "number",
|
|
99
100
|
"data-testid": e.testid,
|
|
100
101
|
class: g(h(z)),
|
|
@@ -102,14 +103,14 @@ var Ct = [
|
|
|
102
103
|
min: e.min,
|
|
103
104
|
max: e.max,
|
|
104
105
|
onInput: r
|
|
105
|
-
}, null, 42,
|
|
106
|
+
}, null, 42, Dt), b("span", { class: g(h(L)) }, x(e.suffix), 3)]));
|
|
106
107
|
}
|
|
107
|
-
}),
|
|
108
|
+
}), kt = [
|
|
108
109
|
"aria-pressed",
|
|
109
110
|
"aria-label",
|
|
110
111
|
"title",
|
|
111
112
|
"data-testid"
|
|
112
|
-
],
|
|
113
|
+
], At = /* @__PURE__ */ r({
|
|
113
114
|
__name: "LinkToggle",
|
|
114
115
|
props: {
|
|
115
116
|
linked: { type: Boolean },
|
|
@@ -136,12 +137,12 @@ var Ct = [
|
|
|
136
137
|
key: 1,
|
|
137
138
|
size: 14,
|
|
138
139
|
"stroke-width": 2
|
|
139
|
-
}))], 10,
|
|
140
|
+
}))], 10, kt));
|
|
140
141
|
}
|
|
141
|
-
}),
|
|
142
|
+
}), jt = {
|
|
142
143
|
key: 0,
|
|
143
144
|
class: "tpl:mb-3.5"
|
|
144
|
-
},
|
|
145
|
+
}, Mt = { class: "tpl:mb-3.5" }, Nt = { class: "tpl:mb-3.5" }, Pt = /* @__PURE__ */ r({
|
|
145
146
|
__name: "BorderControl",
|
|
146
147
|
props: {
|
|
147
148
|
path: {},
|
|
@@ -208,7 +209,7 @@ var Ct = [
|
|
|
208
209
|
path: e.path,
|
|
209
210
|
label: h(s).blockSettings.border
|
|
210
211
|
}, {
|
|
211
|
-
"label-actions": a(() => [k(
|
|
212
|
+
"label-actions": a(() => [k(At, {
|
|
212
213
|
linked: d.value,
|
|
213
214
|
"link-label": h(s).blockSettings.linkSides,
|
|
214
215
|
"unlink-label": h(s).blockSettings.unlinkSides,
|
|
@@ -221,19 +222,19 @@ var Ct = [
|
|
|
221
222
|
"testid"
|
|
222
223
|
])]),
|
|
223
224
|
default: a(() => [
|
|
224
|
-
d.value ? _("", !0) : (i(), p("div",
|
|
225
|
+
d.value ? _("", !0) : (i(), p("div", jt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderSide), 3), k($, {
|
|
225
226
|
options: j.value,
|
|
226
227
|
"model-value": f.value,
|
|
227
228
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e
|
|
228
229
|
}, null, 8, ["options", "model-value"])])),
|
|
229
|
-
b("div",
|
|
230
|
+
b("div", Mt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderWidth), 3), k(Ot, {
|
|
230
231
|
"model-value": m.value.width,
|
|
231
232
|
min: 0,
|
|
232
233
|
suffix: "px",
|
|
233
234
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
234
235
|
"onUpdate:modelValue": w
|
|
235
236
|
}, null, 8, ["model-value", "testid"])]),
|
|
236
|
-
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div",
|
|
237
|
+
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div", Nt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderStyle), 3), k($, {
|
|
237
238
|
options: [
|
|
238
239
|
{
|
|
239
240
|
value: "solid",
|
|
@@ -258,10 +259,10 @@ var Ct = [
|
|
|
258
259
|
_: 1
|
|
259
260
|
}, 8, ["path", "label"]));
|
|
260
261
|
}
|
|
261
|
-
}),
|
|
262
|
+
}), Ft = {
|
|
262
263
|
key: 1,
|
|
263
264
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
264
|
-
},
|
|
265
|
+
}, It = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Lt = /* @__PURE__ */ r({
|
|
265
266
|
__name: "RadiusControl",
|
|
266
267
|
props: {
|
|
267
268
|
path: {},
|
|
@@ -313,7 +314,7 @@ var Ct = [
|
|
|
313
314
|
path: e.path,
|
|
314
315
|
label: e.label
|
|
315
316
|
}, {
|
|
316
|
-
"label-actions": a(() => [k(
|
|
317
|
+
"label-actions": a(() => [k(At, {
|
|
317
318
|
linked: m.value,
|
|
318
319
|
"link-label": h(s).blockSettings.linkCorners,
|
|
319
320
|
"unlink-label": h(s).blockSettings.unlinkCorners,
|
|
@@ -325,7 +326,7 @@ var Ct = [
|
|
|
325
326
|
"unlink-label",
|
|
326
327
|
"testid"
|
|
327
328
|
])]),
|
|
328
|
-
default: a(() => [m.value ? (i(), v(
|
|
329
|
+
default: a(() => [m.value ? (i(), v(Ot, {
|
|
329
330
|
key: 0,
|
|
330
331
|
"model-value": d.value.topLeft,
|
|
331
332
|
min: 0,
|
|
@@ -337,7 +338,7 @@ var Ct = [
|
|
|
337
338
|
"model-value",
|
|
338
339
|
"max",
|
|
339
340
|
"testid"
|
|
340
|
-
])) : (i(), p("div",
|
|
341
|
+
])) : (i(), p("div", Ft, [(i(), p(D, null, c(u, (t) => b("div", { key: t }, [b("label", It, x(h(s).blockSettings[l[t]]), 1), k(Ot, {
|
|
341
342
|
"model-value": d.value[t],
|
|
342
343
|
min: 0,
|
|
343
344
|
max: e.max,
|
|
@@ -353,14 +354,14 @@ var Ct = [
|
|
|
353
354
|
_: 1
|
|
354
355
|
}, 8, ["path", "label"]));
|
|
355
356
|
}
|
|
356
|
-
}),
|
|
357
|
+
}), Rt = ["value"], zt = { value: "" }, Bt = ["value"], Vt = { class: "tpl:flex tpl:items-stretch" }, Ht = ["value"], Ut = ["value"], Wt = ["value"], Gt = ["value"], Kt = { value: "auto" }, qt = { value: "full" }, Jt = { value: "custom" }, Yt = {
|
|
357
358
|
key: 0,
|
|
358
359
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch tpl:gap-2"
|
|
359
|
-
},
|
|
360
|
+
}, Xt = [
|
|
360
361
|
"value",
|
|
361
362
|
"min",
|
|
362
363
|
"max"
|
|
363
|
-
],
|
|
364
|
+
], Zt = 200, Qt = /* @__PURE__ */ r({
|
|
364
365
|
__name: "ButtonToolbar",
|
|
365
366
|
props: {
|
|
366
367
|
block: {},
|
|
@@ -373,7 +374,7 @@ var Ct = [
|
|
|
373
374
|
r("update", { [e]: t });
|
|
374
375
|
}
|
|
375
376
|
function T(e) {
|
|
376
|
-
e === "full" ? w("width", "full") : e === "custom" ? w("width", typeof n.block.width == "number" ? n.block.width :
|
|
377
|
+
e === "full" ? w("width", "full") : e === "custom" ? w("width", typeof n.block.width == "number" ? n.block.width : Zt) : w("width", void 0);
|
|
377
378
|
}
|
|
378
379
|
let E = C(() => String(je(n.block))), O = C(() => {
|
|
379
380
|
let e = E.value;
|
|
@@ -406,7 +407,7 @@ var Ct = [
|
|
|
406
407
|
return;
|
|
407
408
|
}
|
|
408
409
|
let i = Fe(t);
|
|
409
|
-
r === null ? w("width",
|
|
410
|
+
r === null ? w("width", Zt) : w("width", Math.max(1, Math.round(r * i / 100)));
|
|
410
411
|
}
|
|
411
412
|
return (t, n) => (i(), p(D, null, [
|
|
412
413
|
k(A, {
|
|
@@ -418,10 +419,10 @@ var Ct = [
|
|
|
418
419
|
class: g(h(B)),
|
|
419
420
|
value: h(ht)(e.block.fontFamily),
|
|
420
421
|
onChange: n[0] ||= (e) => w("fontFamily", e.target.value || void 0)
|
|
421
|
-
}, [b("option",
|
|
422
|
+
}, [b("option", zt, x(h(o).button.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
422
423
|
key: e.value,
|
|
423
424
|
value: e.value
|
|
424
|
-
}, x(e.label), 9,
|
|
425
|
+
}, x(e.label), 9, Bt))), 128))], 42, Rt)]),
|
|
425
426
|
_: 1
|
|
426
427
|
}, 8, ["label"]),
|
|
427
428
|
k(A, {
|
|
@@ -490,13 +491,13 @@ var Ct = [
|
|
|
490
491
|
}, null, 8, ["model-value"])]),
|
|
491
492
|
_: 1
|
|
492
493
|
}, 8, ["label"]),
|
|
493
|
-
k(
|
|
494
|
+
k(Pt, {
|
|
494
495
|
path: "border",
|
|
495
496
|
"model-value": e.block.border,
|
|
496
497
|
"testid-prefix": "button",
|
|
497
498
|
"onUpdate:modelValue": n[6] ||= (e) => w("border", e)
|
|
498
499
|
}, null, 8, ["model-value"]),
|
|
499
|
-
k(
|
|
500
|
+
k(Lt, {
|
|
500
501
|
path: "borderRadius",
|
|
501
502
|
"model-value": e.block.borderRadius,
|
|
502
503
|
label: h(o).button.borderRadius,
|
|
@@ -509,14 +510,14 @@ var Ct = [
|
|
|
509
510
|
class: "tpl:mb-3.5",
|
|
510
511
|
path: "fontSize"
|
|
511
512
|
}, {
|
|
512
|
-
default: a(() => [b("div",
|
|
513
|
+
default: a(() => [b("div", Vt, [b("input", {
|
|
513
514
|
type: "number",
|
|
514
515
|
class: g(h(z)),
|
|
515
516
|
value: e.block.fontSize,
|
|
516
517
|
min: "10",
|
|
517
518
|
max: "36",
|
|
518
519
|
onInput: n[8] ||= (e) => w("fontSize", Number(e.target.value))
|
|
519
|
-
}, null, 42,
|
|
520
|
+
}, null, 42, Ht), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
520
521
|
_: 1
|
|
521
522
|
}, 8, ["label"]),
|
|
522
523
|
k(A, {
|
|
@@ -531,7 +532,7 @@ var Ct = [
|
|
|
531
532
|
}, [(i(!0), p(D, null, c(O.value, (e) => (i(), p("option", {
|
|
532
533
|
key: e,
|
|
533
534
|
value: e
|
|
534
|
-
}, x(e), 9,
|
|
535
|
+
}, x(e), 9, Wt))), 128))], 42, Ut)]),
|
|
535
536
|
_: 1
|
|
536
537
|
}, 8, ["label"]),
|
|
537
538
|
k(A, {
|
|
@@ -569,17 +570,17 @@ var Ct = [
|
|
|
569
570
|
value: f.value,
|
|
570
571
|
onChange: n[10] ||= (e) => T(e.target.value)
|
|
571
572
|
}, [
|
|
572
|
-
b("option",
|
|
573
|
-
b("option",
|
|
574
|
-
b("option",
|
|
575
|
-
], 42,
|
|
573
|
+
b("option", Kt, x(h(o).button.widthAuto), 1),
|
|
574
|
+
b("option", qt, x(h(o).button.fullWidth), 1),
|
|
575
|
+
b("option", Jt, x(h(o).button.widthCustom), 1)
|
|
576
|
+
], 42, Gt), f.value === "custom" ? (i(), p("div", Yt, [b("input", {
|
|
576
577
|
type: "number",
|
|
577
578
|
class: g([h(B), "tpl:min-w-0 tpl:flex-1"]),
|
|
578
579
|
value: y.value,
|
|
579
580
|
min: m.value === "%" ? 1 : 20,
|
|
580
581
|
max: m.value === "%" ? 100 : void 0,
|
|
581
582
|
onInput: n[11] ||= (e) => I(e.target.value)
|
|
582
|
-
}, null, 42,
|
|
583
|
+
}, null, 42, Xt), k($, {
|
|
583
584
|
class: "tpl:w-24 tpl:shrink-0",
|
|
584
585
|
"aria-label": h(o).button.widthUnit,
|
|
585
586
|
options: [{
|
|
@@ -621,7 +622,7 @@ var Ct = [
|
|
|
621
622
|
}, 8, ["label"])
|
|
622
623
|
], 64));
|
|
623
624
|
}
|
|
624
|
-
}),
|
|
625
|
+
}), $t = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, en = { class: "tpl:flex tpl:items-center" }, tn = ["aria-label"], nn = ["value", "aria-label"], rn = ["aria-label"], an = { class: "tpl:flex tpl:items-center tpl:gap-2" }, on = { class: "tpl:flex tpl:items-center" }, sn = ["aria-label"], cn = ["value", "aria-label"], ln = ["aria-label"], un = ["aria-label", "title"], dn = { class: "tpl:flex tpl:items-center" }, fn = ["aria-label"], pn = ["value", "aria-label"], mn = ["aria-label"], hn = { class: "tpl:flex tpl:items-center" }, gn = ["aria-label"], _n = ["value", "aria-label"], vn = ["aria-label"], yn = "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)]", bn = "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)]", xn = /*#__PURE__*/ _t(/* @__PURE__ */ r({
|
|
625
626
|
__name: "SpacingControl",
|
|
626
627
|
props: {
|
|
627
628
|
path: {},
|
|
@@ -674,59 +675,59 @@ var Ct = [
|
|
|
674
675
|
path: e.path,
|
|
675
676
|
label: e.label
|
|
676
677
|
}, {
|
|
677
|
-
default: a(() => [b("div",
|
|
678
|
-
b("div",
|
|
678
|
+
default: a(() => [b("div", $t, [
|
|
679
|
+
b("div", en, [
|
|
679
680
|
b("button", {
|
|
680
681
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
681
|
-
class: g([
|
|
682
|
+
class: g([yn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
682
683
|
onClick: n[0] ||= (e) => u("top", -1)
|
|
683
684
|
}, [k(h(W), {
|
|
684
685
|
size: 12,
|
|
685
686
|
"stroke-width": 2
|
|
686
|
-
})], 10,
|
|
687
|
+
})], 10, tn),
|
|
687
688
|
b("input", {
|
|
688
689
|
type: "number",
|
|
689
|
-
class: g(
|
|
690
|
+
class: g(bn),
|
|
690
691
|
value: e.modelValue.top,
|
|
691
692
|
"aria-label": h(s).spacingControl.top,
|
|
692
693
|
min: "0",
|
|
693
694
|
onInput: n[1] ||= (e) => d("top", Number(e.target.value))
|
|
694
|
-
}, null, 40,
|
|
695
|
+
}, null, 40, nn),
|
|
695
696
|
b("button", {
|
|
696
697
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
697
|
-
class: g([
|
|
698
|
+
class: g([yn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
698
699
|
onClick: n[2] ||= (e) => u("top", 1)
|
|
699
700
|
}, [k(h(U), {
|
|
700
701
|
size: 12,
|
|
701
702
|
"stroke-width": 2
|
|
702
|
-
})], 10,
|
|
703
|
+
})], 10, rn)
|
|
703
704
|
]),
|
|
704
|
-
b("div",
|
|
705
|
-
b("div",
|
|
705
|
+
b("div", an, [
|
|
706
|
+
b("div", on, [
|
|
706
707
|
b("button", {
|
|
707
708
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
708
|
-
class: g([
|
|
709
|
+
class: g([yn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
709
710
|
onClick: n[3] ||= (e) => u("left", -1)
|
|
710
711
|
}, [k(h(W), {
|
|
711
712
|
size: 12,
|
|
712
713
|
"stroke-width": 2
|
|
713
|
-
})], 10,
|
|
714
|
+
})], 10, sn),
|
|
714
715
|
b("input", {
|
|
715
716
|
type: "number",
|
|
716
|
-
class: g(
|
|
717
|
+
class: g(bn),
|
|
717
718
|
value: e.modelValue.left,
|
|
718
719
|
"aria-label": h(s).spacingControl.left,
|
|
719
720
|
min: "0",
|
|
720
721
|
onInput: n[4] ||= (e) => d("left", Number(e.target.value))
|
|
721
|
-
}, null, 40,
|
|
722
|
+
}, null, 40, cn),
|
|
722
723
|
b("button", {
|
|
723
724
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
724
|
-
class: g([
|
|
725
|
+
class: g([yn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
725
726
|
onClick: n[5] ||= (e) => u("left", 1)
|
|
726
727
|
}, [k(h(U), {
|
|
727
728
|
size: 12,
|
|
728
729
|
"stroke-width": 2
|
|
729
|
-
})], 10,
|
|
730
|
+
})], 10, ln)
|
|
730
731
|
]),
|
|
731
732
|
b("button", {
|
|
732
733
|
class: g(["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)]"]),
|
|
@@ -741,59 +742,59 @@ var Ct = [
|
|
|
741
742
|
key: 1,
|
|
742
743
|
size: 14,
|
|
743
744
|
"stroke-width": 2
|
|
744
|
-
}))], 10,
|
|
745
|
-
b("div",
|
|
745
|
+
}))], 10, un),
|
|
746
|
+
b("div", dn, [
|
|
746
747
|
b("button", {
|
|
747
748
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
748
|
-
class: g([
|
|
749
|
+
class: g([yn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
749
750
|
onClick: n[6] ||= (e) => u("right", -1)
|
|
750
751
|
}, [k(h(W), {
|
|
751
752
|
size: 12,
|
|
752
753
|
"stroke-width": 2
|
|
753
|
-
})], 10,
|
|
754
|
+
})], 10, fn),
|
|
754
755
|
b("input", {
|
|
755
756
|
type: "number",
|
|
756
|
-
class: g(
|
|
757
|
+
class: g(bn),
|
|
757
758
|
value: e.modelValue.right,
|
|
758
759
|
"aria-label": h(s).spacingControl.right,
|
|
759
760
|
min: "0",
|
|
760
761
|
onInput: n[7] ||= (e) => d("right", Number(e.target.value))
|
|
761
|
-
}, null, 40,
|
|
762
|
+
}, null, 40, pn),
|
|
762
763
|
b("button", {
|
|
763
764
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
764
|
-
class: g([
|
|
765
|
+
class: g([yn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
765
766
|
onClick: n[8] ||= (e) => u("right", 1)
|
|
766
767
|
}, [k(h(U), {
|
|
767
768
|
size: 12,
|
|
768
769
|
"stroke-width": 2
|
|
769
|
-
})], 10,
|
|
770
|
+
})], 10, mn)
|
|
770
771
|
])
|
|
771
772
|
]),
|
|
772
|
-
b("div",
|
|
773
|
+
b("div", hn, [
|
|
773
774
|
b("button", {
|
|
774
775
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
775
|
-
class: g([
|
|
776
|
+
class: g([yn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
776
777
|
onClick: n[9] ||= (e) => u("bottom", -1)
|
|
777
778
|
}, [k(h(W), {
|
|
778
779
|
size: 12,
|
|
779
780
|
"stroke-width": 2
|
|
780
|
-
})], 10,
|
|
781
|
+
})], 10, gn),
|
|
781
782
|
b("input", {
|
|
782
783
|
type: "number",
|
|
783
|
-
class: g(
|
|
784
|
+
class: g(bn),
|
|
784
785
|
value: e.modelValue.bottom,
|
|
785
786
|
"aria-label": h(s).spacingControl.bottom,
|
|
786
787
|
min: "0",
|
|
787
788
|
onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
788
|
-
}, null, 40,
|
|
789
|
+
}, null, 40, _n),
|
|
789
790
|
b("button", {
|
|
790
791
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
791
|
-
class: g([
|
|
792
|
+
class: g([yn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
792
793
|
onClick: n[11] ||= (e) => u("bottom", 1)
|
|
793
794
|
}, [k(h(U), {
|
|
794
795
|
size: 12,
|
|
795
796
|
"stroke-width": 2
|
|
796
|
-
})], 10,
|
|
797
|
+
})], 10, vn)
|
|
797
798
|
])
|
|
798
799
|
])]),
|
|
799
800
|
_: 1
|
|
@@ -801,7 +802,7 @@ var Ct = [
|
|
|
801
802
|
}
|
|
802
803
|
}), [["__scopeId", "data-v-94c2e6ff"]]);
|
|
803
804
|
// src/composables/useNaturalImageSize.ts
|
|
804
|
-
function
|
|
805
|
+
function Sn(e) {
|
|
805
806
|
let t = E(null), n = () => {};
|
|
806
807
|
return o(e, (e) => {
|
|
807
808
|
n(), t.value = null, e && (n = lt(e, (e) => {
|
|
@@ -809,11 +810,11 @@ function xn(e) {
|
|
|
809
810
|
}));
|
|
810
811
|
}, { immediate: !0 }), t;
|
|
811
812
|
}
|
|
812
|
-
function
|
|
813
|
+
function Cn() {
|
|
813
814
|
let e = l(Be, null);
|
|
814
|
-
return async (t) => ct(e ? await
|
|
815
|
+
return async (t) => ct(e ? await wn(e, t) : t);
|
|
815
816
|
}
|
|
816
|
-
function
|
|
817
|
+
function wn(e, t) {
|
|
817
818
|
let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
|
|
818
819
|
e.lookup(t);
|
|
819
820
|
let r = e.get(t);
|
|
@@ -824,13 +825,13 @@ function Cn(e, t) {
|
|
|
824
825
|
}) : Promise.resolve(n(r));
|
|
825
826
|
}
|
|
826
827
|
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
827
|
-
var
|
|
828
|
+
var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"], On = ["data-testid"], kn = ["aria-label", "data-testid"], An = [
|
|
828
829
|
"aria-label",
|
|
829
830
|
"title",
|
|
830
831
|
"aria-pressed",
|
|
831
832
|
"data-testid",
|
|
832
833
|
"onClick"
|
|
833
|
-
],
|
|
834
|
+
], jn = ["data-testid"], Mn = /* @__PURE__ */ r({
|
|
834
835
|
__name: "BackgroundImageControl",
|
|
835
836
|
props: {
|
|
836
837
|
hideLabel: { type: Boolean },
|
|
@@ -841,7 +842,7 @@ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"
|
|
|
841
842
|
},
|
|
842
843
|
emits: ["update:modelValue"],
|
|
843
844
|
setup(e, { emit: t }) {
|
|
844
|
-
let n = e, r = t, { t: a } = Q(), o = l(ze, _e.liquid), s = C(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = C(() => s.value.trim() !== ""), f =
|
|
845
|
+
let n = e, r = t, { t: a } = Q(), o = l(ze, _e.liquid), s = C(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = C(() => s.value.trim() !== ""), f = Cn(), y;
|
|
845
846
|
u(() => clearTimeout(y));
|
|
846
847
|
function S(e) {
|
|
847
848
|
n.measure && !Ee(e, o) && (y = setTimeout(async () => {
|
|
@@ -906,7 +907,7 @@ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"
|
|
|
906
907
|
blocked: () => Ee(s.value, o),
|
|
907
908
|
apply: (e) => w(e.url, et(e.width, e.height))
|
|
908
909
|
});
|
|
909
|
-
return (t, n) => (i(), p("div",
|
|
910
|
+
return (t, n) => (i(), p("div", Tn, [b("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
910
911
|
key: 0,
|
|
911
912
|
class: g(h(V))
|
|
912
913
|
}, x(h(a).blockSettings.backgroundImage), 3)), b("div", {
|
|
@@ -939,8 +940,8 @@ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"
|
|
|
939
940
|
}, [k(h(de), {
|
|
940
941
|
size: 14,
|
|
941
942
|
"stroke-width": 1.5
|
|
942
|
-
}), m(" " + x(h(a).image.browseMedia), 1)], 8,
|
|
943
|
-
], 8,
|
|
943
|
+
}), m(" " + x(h(a).image.browseMedia), 1)], 8, Dn)) : _("", !0)
|
|
944
|
+
], 8, En)]), d.value && e.modelValue ? (i(), p(D, { key: 0 }, [
|
|
944
945
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
945
946
|
key: 0,
|
|
946
947
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
@@ -948,7 +949,7 @@ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"
|
|
|
948
949
|
options: O.value,
|
|
949
950
|
"model-value": e.modelValue.size,
|
|
950
951
|
"onUpdate:modelValue": n[1] ||= (e) => T({ size: e })
|
|
951
|
-
}, null, 8, ["options", "model-value"])], 8,
|
|
952
|
+
}, null, 8, ["options", "model-value"])], 8, On)),
|
|
952
953
|
b("div", null, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundPosition), 3), b("div", {
|
|
953
954
|
role: "group",
|
|
954
955
|
"aria-label": h(a).blockSettings.backgroundPosition,
|
|
@@ -966,7 +967,7 @@ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"
|
|
|
966
967
|
x: t.x,
|
|
967
968
|
y: t.y
|
|
968
969
|
} })
|
|
969
|
-
}, [b("span", { class: g(["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,
|
|
970
|
+
}, [b("span", { class: g(["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, An))), 128))], 8, kn)]),
|
|
970
971
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
971
972
|
key: 1,
|
|
972
973
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
@@ -975,10 +976,10 @@ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"
|
|
|
975
976
|
"model-value": e.modelValue.repeat,
|
|
976
977
|
label: h(a).blockSettings.backgroundRepeat,
|
|
977
978
|
"onUpdate:modelValue": n[2] ||= (e) => T({ repeat: e })
|
|
978
|
-
}, null, 8, ["model-value", "label"])], 8,
|
|
979
|
+
}, null, 8, ["model-value", "label"])], 8, jn))
|
|
979
980
|
], 64)) : _("", !0)]));
|
|
980
981
|
}
|
|
981
|
-
}),
|
|
982
|
+
}), Nn = ["data-testid"], Pn = ["data-testid"], Fn = /* @__PURE__ */ r({
|
|
982
983
|
__name: "CollapsibleSection",
|
|
983
984
|
props: {
|
|
984
985
|
title: {},
|
|
@@ -997,29 +998,29 @@ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"
|
|
|
997
998
|
class: g(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
998
999
|
size: 12,
|
|
999
1000
|
"stroke-width": 2
|
|
1000
|
-
}, null, 8, ["class"]), b("span", null, x(e.title), 1)], 8,
|
|
1001
|
+
}, null, 8, ["class"]), b("span", null, x(e.title), 1)], 8, Nn), s(b("div", {
|
|
1001
1002
|
class: "tpl:mt-3",
|
|
1002
1003
|
"data-testid": e.headerTestId ? `${e.headerTestId}-content` : void 0
|
|
1003
|
-
}, [d(t.$slots, "default")], 8,
|
|
1004
|
+
}, [d(t.$slots, "default")], 8, Pn), [[T, e.open]])], 2));
|
|
1004
1005
|
}
|
|
1005
|
-
}),
|
|
1006
|
+
}), In = {
|
|
1006
1007
|
key: 0,
|
|
1007
1008
|
"data-testid": "section-hero-columns-note",
|
|
1008
1009
|
class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1009
|
-
},
|
|
1010
|
+
}, Ln = {
|
|
1010
1011
|
key: 1,
|
|
1011
1012
|
"data-testid": "section-hero",
|
|
1012
1013
|
class: "tpl:mt-3.5 tpl:space-y-3.5"
|
|
1013
|
-
},
|
|
1014
|
+
}, Rn = { "data-testid": "section-hero-height" }, zn = {
|
|
1014
1015
|
key: 0,
|
|
1015
1016
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1016
|
-
},
|
|
1017
|
+
}, Bn = {
|
|
1017
1018
|
key: 1,
|
|
1018
1019
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1019
|
-
},
|
|
1020
|
+
}, Vn = {
|
|
1020
1021
|
key: 1,
|
|
1021
1022
|
"data-testid": "section-hero-align"
|
|
1022
|
-
},
|
|
1023
|
+
}, Hn = 300, Un = /* @__PURE__ */ r({
|
|
1023
1024
|
__name: "HeroControl",
|
|
1024
1025
|
props: { section: {} },
|
|
1025
1026
|
emits: ["update"],
|
|
@@ -1027,7 +1028,7 @@ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"
|
|
|
1027
1028
|
function n(e) {
|
|
1028
1029
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
1029
1030
|
}
|
|
1030
|
-
let r = e, a = t, { t: o } = Q(), s = l(ze, _e.liquid), c = l(Ze, null), u = l(Ue, void 0), d =
|
|
1031
|
+
let r = e, a = t, { t: o } = Q(), s = l(ze, _e.liquid), c = l(Ze, null), u = l(Ue, void 0), d = Cn(), f = C(() => typeof r.section.backgroundImage?.url == "string" ? r.section.backgroundImage.url : ""), m = C(() => f.value.trim() !== ""), y = C(() => Ee(f.value, s)), S = C(() => r.section.hero), w = C(() => r.section.columns === "1"), T = C(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), E = C(() => n(S.value?.height) ? S.value.height : Hn), D = C(() => [
|
|
1031
1032
|
{
|
|
1032
1033
|
value: "fit",
|
|
1033
1034
|
label: o.blockSettings.heroHeightFit
|
|
@@ -1072,7 +1073,7 @@ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"
|
|
|
1072
1073
|
a("update", { hero: void 0 });
|
|
1073
1074
|
return;
|
|
1074
1075
|
}
|
|
1075
|
-
let n = me(r.section.backgroundImage), i = n === null ?
|
|
1076
|
+
let n = me(r.section.backgroundImage), i = n === null ? Hn : Math.round(j() * n);
|
|
1076
1077
|
a("update", { hero: {
|
|
1077
1078
|
height: i,
|
|
1078
1079
|
verticalAlign: t
|
|
@@ -1099,17 +1100,17 @@ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"
|
|
|
1099
1100
|
verticalAlign: e
|
|
1100
1101
|
} });
|
|
1101
1102
|
}
|
|
1102
|
-
return (e, t) => !w.value && S.value ? (i(), p("p",
|
|
1103
|
-
b("div",
|
|
1103
|
+
return (e, t) => !w.value && S.value ? (i(), p("p", In, x(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || S.value) ? (i(), p("div", Ln, [
|
|
1104
|
+
b("div", Rn, [
|
|
1104
1105
|
b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroHeight), 3),
|
|
1105
1106
|
k($, {
|
|
1106
1107
|
options: D.value,
|
|
1107
1108
|
"model-value": T.value,
|
|
1108
1109
|
"onUpdate:modelValue": M
|
|
1109
1110
|
}, null, 8, ["options", "model-value"]),
|
|
1110
|
-
y.value ? (i(), p("p",
|
|
1111
|
+
y.value ? (i(), p("p", zn, x(h(o).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (i(), p("p", Bn, x(h(o).blockSettings.heroSizeUnknown), 1)) : _("", !0)
|
|
1111
1112
|
]),
|
|
1112
|
-
T.value === "fixed" ? (i(), v(
|
|
1113
|
+
T.value === "fixed" ? (i(), v(Ot, {
|
|
1113
1114
|
key: 0,
|
|
1114
1115
|
"model-value": E.value,
|
|
1115
1116
|
min: 1,
|
|
@@ -1117,24 +1118,24 @@ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"
|
|
|
1117
1118
|
testid: "section-hero-height-px",
|
|
1118
1119
|
"onUpdate:modelValue": P
|
|
1119
1120
|
}, null, 8, ["model-value"])) : _("", !0),
|
|
1120
|
-
S.value ? (i(), p("div",
|
|
1121
|
+
S.value ? (i(), p("div", Vn, [b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroAlign), 3), k($, {
|
|
1121
1122
|
options: O.value,
|
|
1122
1123
|
"model-value": S.value.verticalAlign,
|
|
1123
1124
|
"onUpdate:modelValue": F
|
|
1124
1125
|
}, null, 8, ["options", "model-value"])])) : _("", !0)
|
|
1125
1126
|
])) : _("", !0);
|
|
1126
1127
|
}
|
|
1127
|
-
}),
|
|
1128
|
+
}), Wn = /* @__PURE__ */ new Set([
|
|
1128
1129
|
"fullWidth",
|
|
1129
1130
|
"backgroundColor",
|
|
1130
1131
|
"backgroundImage",
|
|
1131
1132
|
"padding",
|
|
1132
1133
|
"borderRadius"
|
|
1133
1134
|
]);
|
|
1134
|
-
function
|
|
1135
|
+
function Gn(e) {
|
|
1135
1136
|
return typeof e == "string" && e !== "";
|
|
1136
1137
|
}
|
|
1137
|
-
function
|
|
1138
|
+
function Kn(e) {
|
|
1138
1139
|
return e ? [
|
|
1139
1140
|
e.top,
|
|
1140
1141
|
e.right,
|
|
@@ -1142,40 +1143,40 @@ function Gn(e) {
|
|
|
1142
1143
|
e.left
|
|
1143
1144
|
].some((e) => e !== 0) : !1;
|
|
1144
1145
|
}
|
|
1145
|
-
function Kn(e) {
|
|
1146
|
-
return Wn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1147
|
-
}
|
|
1148
1146
|
function qn(e) {
|
|
1149
|
-
return
|
|
1147
|
+
return Gn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1150
1148
|
}
|
|
1151
|
-
function Jn(e
|
|
1149
|
+
function Jn(e) {
|
|
1150
|
+
return e.fullWidth !== !0 || Kn(e.padding) || xe(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Wn.has(e));
|
|
1151
|
+
}
|
|
1152
|
+
function Yn(e, t = {}) {
|
|
1152
1153
|
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && Ae(t.layout);
|
|
1153
1154
|
}
|
|
1154
|
-
function
|
|
1155
|
+
function Xn(e) {
|
|
1155
1156
|
let t = {};
|
|
1156
|
-
return
|
|
1157
|
+
return Gn(e.styles.backgroundColor) && (t.backgroundColor = e.styles.backgroundColor), e.backgroundImage && (t.backgroundImage = e.backgroundImage), t;
|
|
1157
1158
|
}
|
|
1158
|
-
function
|
|
1159
|
+
function Zn(e) {
|
|
1159
1160
|
let t = { ...e.styles };
|
|
1160
1161
|
return delete t.backgroundColor, t;
|
|
1161
1162
|
}
|
|
1162
|
-
function
|
|
1163
|
+
function Qn(e, t) {
|
|
1163
1164
|
if (t) return e.wrapper ? { wrapper: {
|
|
1164
1165
|
...e.wrapper,
|
|
1165
1166
|
fullWidth: !0
|
|
1166
1167
|
} } : {
|
|
1167
1168
|
wrapper: {
|
|
1168
1169
|
fullWidth: !0,
|
|
1169
|
-
...
|
|
1170
|
+
...Xn(e)
|
|
1170
1171
|
},
|
|
1171
|
-
styles:
|
|
1172
|
+
styles: Zn(e),
|
|
1172
1173
|
backgroundImage: void 0
|
|
1173
1174
|
};
|
|
1174
1175
|
let n = e.wrapper;
|
|
1175
1176
|
if (!n) return {};
|
|
1176
|
-
if (
|
|
1177
|
+
if (Jn(n) && !qn(e)) {
|
|
1177
1178
|
let t = { ...e.styles };
|
|
1178
|
-
return
|
|
1179
|
+
return Gn(n.backgroundColor) && (t.backgroundColor = n.backgroundColor), {
|
|
1179
1180
|
wrapper: void 0,
|
|
1180
1181
|
styles: t,
|
|
1181
1182
|
backgroundImage: n.backgroundImage
|
|
@@ -1186,33 +1187,33 @@ function Zn(e, t) {
|
|
|
1186
1187
|
fullWidth: !1
|
|
1187
1188
|
} };
|
|
1188
1189
|
}
|
|
1189
|
-
function
|
|
1190
|
+
function $n(e) {
|
|
1190
1191
|
let t = e.wrapper;
|
|
1191
|
-
return t &&
|
|
1192
|
+
return t && Jn(t) && !qn(e) ? Qn(e, !1) : { wrapper: void 0 };
|
|
1192
1193
|
}
|
|
1193
1194
|
// src/components/toolbar/CommonBlockSettings.vue?vue&type=script&setup=true&lang.ts
|
|
1194
|
-
var
|
|
1195
|
+
var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, nr = {
|
|
1195
1196
|
key: 0,
|
|
1196
1197
|
class: "tpl:space-y-2"
|
|
1197
|
-
},
|
|
1198
|
+
}, rr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ir = {
|
|
1198
1199
|
key: 0,
|
|
1199
1200
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1200
|
-
},
|
|
1201
|
+
}, ar = { class: "tpl:flex tpl:gap-2" }, or = ["disabled"], sr = ["disabled"], cr = ["disabled"], lr = {
|
|
1201
1202
|
key: 1,
|
|
1202
1203
|
class: "tpl:space-y-2"
|
|
1203
|
-
},
|
|
1204
|
+
}, ur = ["value"], dr = { value: "" }, fr = ["label"], pr = ["value"], mr = ["value"], hr = {
|
|
1204
1205
|
key: 0,
|
|
1205
1206
|
value: "__custom__"
|
|
1206
|
-
},
|
|
1207
|
+
}, gr = {
|
|
1207
1208
|
key: 0,
|
|
1208
1209
|
class: "tpl:space-y-2"
|
|
1209
|
-
},
|
|
1210
|
+
}, _r = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, vr = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, yr = { class: "tpl:flex tpl:justify-end" }, br = ["disabled"], xr = {
|
|
1210
1211
|
key: 0,
|
|
1211
1212
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1212
|
-
},
|
|
1213
|
+
}, Sr = { class: "tpl:space-y-1" }, Cr = { 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)]" }, wr = {
|
|
1213
1214
|
key: 0,
|
|
1214
1215
|
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)]"
|
|
1215
|
-
},
|
|
1216
|
+
}, Tr = /* @__PURE__ */ r({
|
|
1216
1217
|
__name: "CommonBlockSettings",
|
|
1217
1218
|
props: {
|
|
1218
1219
|
block: {},
|
|
@@ -1220,12 +1221,12 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1220
1221
|
},
|
|
1221
1222
|
emits: ["update"],
|
|
1222
1223
|
setup(e, { emit: r }) {
|
|
1223
|
-
let u = e, d = r, { t: f, format: w } = Q(), T = l(Ze, null), O = l(He, void 0), j = C(() => T?.activeLocale?.value), N = C(() => !!(j.value && T?.selectedBlock?.value?.l10n?.[j.value]?.hidden)), I = l(Ge, []), L = l(Ye, !1), R = l(Ue, void 0), z = l(Re, void 0), B = C(() => u.block.type === "section" || u.block.type === "wrapper"), te = C(() => u.block.type === "wrapper" ? u.block.fullWidth === !0 : u.block.type === "section" && u.block.wrapper?.fullWidth === !0), ne = C(() => u.block.type === "section" &&
|
|
1224
|
+
let u = e, d = r, { t: f, format: w } = Q(), T = l(Ze, null), O = l(He, void 0), j = C(() => T?.activeLocale?.value), N = C(() => !!(j.value && T?.selectedBlock?.value?.l10n?.[j.value]?.hidden)), I = l(Ge, []), L = l(Ye, !1), R = l(Ue, void 0), z = l(Re, void 0), B = C(() => u.block.type === "section" || u.block.type === "wrapper"), te = C(() => u.block.type === "wrapper" ? u.block.fullWidth === !0 : u.block.type === "section" && u.block.wrapper?.fullWidth === !0), ne = C(() => u.block.type === "section" && Yn(u.block, {
|
|
1224
1225
|
sectionWrapper: z,
|
|
1225
1226
|
layout: R
|
|
1226
1227
|
})), V = C(() => u.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
1227
1228
|
function ie(e) {
|
|
1228
|
-
u.block.type === "wrapper" ? d("update", { fullWidth: e }) : u.block.type === "section" && d("update",
|
|
1229
|
+
u.block.type === "wrapper" ? d("update", { fullWidth: e }) : u.block.type === "section" && d("update", Qn(u.block, e));
|
|
1229
1230
|
}
|
|
1230
1231
|
let ae = C(() => u.block.type === "section" && u.block.wrapper?.fullWidth === !0), oe = C(() => ae.value ? "wrapper.backgroundColor" : "styles.backgroundColor"), U = C(() => ae.value ? "wrapper.backgroundImage" : "backgroundImage"), se = C(() => {
|
|
1231
1232
|
let e = u.block;
|
|
@@ -1336,13 +1337,13 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1336
1337
|
t[e] = !t[e], d("update", { visibility: t });
|
|
1337
1338
|
}
|
|
1338
1339
|
return (t, r) => (i(), p("div", { class: g(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1339
|
-
k(
|
|
1340
|
+
k(Fn, {
|
|
1340
1341
|
title: h(f).blockSettings.spacing,
|
|
1341
1342
|
open: q.has("spacing"),
|
|
1342
1343
|
"no-border": e.isFirstSection,
|
|
1343
1344
|
onToggle: r[1] ||= (e) => Z("spacing")
|
|
1344
1345
|
}, {
|
|
1345
|
-
default: a(() => [k(
|
|
1346
|
+
default: a(() => [k(xn, {
|
|
1346
1347
|
path: "styles.padding",
|
|
1347
1348
|
label: h(f).blockSettings.padding,
|
|
1348
1349
|
"model-value": e.block.styles.padding,
|
|
@@ -1354,7 +1355,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1354
1355
|
"open",
|
|
1355
1356
|
"no-border"
|
|
1356
1357
|
]),
|
|
1357
|
-
k(
|
|
1358
|
+
k(Fn, {
|
|
1358
1359
|
title: h(f).blockSettings.background,
|
|
1359
1360
|
open: q.has("bg"),
|
|
1360
1361
|
"header-test-id": "block-settings-background",
|
|
@@ -1400,7 +1401,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1400
1401
|
path: U.value,
|
|
1401
1402
|
label: h(f).blockSettings.backgroundImage
|
|
1402
1403
|
}, {
|
|
1403
|
-
default: a(() => [k(
|
|
1404
|
+
default: a(() => [k(Mn, {
|
|
1404
1405
|
"hide-label": "",
|
|
1405
1406
|
class: "tpl:mt-3.5",
|
|
1406
1407
|
"model-value": le.value,
|
|
@@ -1429,7 +1430,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1429
1430
|
path: "hero",
|
|
1430
1431
|
label: h(f).blocks.hero
|
|
1431
1432
|
}, {
|
|
1432
|
-
default: a(() => [k(
|
|
1433
|
+
default: a(() => [k(Un, {
|
|
1433
1434
|
section: e.block,
|
|
1434
1435
|
onUpdate: r[3] ||= (e) => d("update", e)
|
|
1435
1436
|
}, null, 8, ["section"])]),
|
|
@@ -1438,12 +1439,12 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1438
1439
|
]),
|
|
1439
1440
|
_: 1
|
|
1440
1441
|
}, 8, ["title", "open"]),
|
|
1441
|
-
k(
|
|
1442
|
+
k(Fn, {
|
|
1442
1443
|
title: h(f).blockSettings.display,
|
|
1443
1444
|
open: q.has("display"),
|
|
1444
1445
|
onToggle: r[6] ||= (e) => Z("display")
|
|
1445
1446
|
}, {
|
|
1446
|
-
default: a(() => [b("div",
|
|
1447
|
+
default: a(() => [b("div", er, [j.value && h(O) ? (i(), v(P, {
|
|
1447
1448
|
key: 0,
|
|
1448
1449
|
"data-testid": "locale-hide",
|
|
1449
1450
|
disabled: !h(O).locales.includes(j.value),
|
|
@@ -1459,7 +1460,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1459
1460
|
path: `visibility.${e.key}`,
|
|
1460
1461
|
label: h(f).blockSettings[e.labelKey]
|
|
1461
1462
|
}, {
|
|
1462
|
-
label: a(() => [b("span",
|
|
1463
|
+
label: a(() => [b("span", tr, [(i(), v(n(e.icon), {
|
|
1463
1464
|
size: 14,
|
|
1464
1465
|
"stroke-width": 1.5
|
|
1465
1466
|
})), m(" " + x(h(f).blockSettings[e.labelKey]), 1)])]),
|
|
@@ -1480,29 +1481,29 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1480
1481
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1481
1482
|
_: 1
|
|
1482
1483
|
}, 8, ["title", "open"]),
|
|
1483
|
-
me.value ? (i(), v(
|
|
1484
|
+
me.value ? (i(), v(Fn, {
|
|
1484
1485
|
key: 0,
|
|
1485
1486
|
"header-test-id": "display-condition-section",
|
|
1486
1487
|
title: h(f).blockSettings.displayCondition,
|
|
1487
1488
|
open: q.has("condition"),
|
|
1488
1489
|
onToggle: r[11] ||= (e) => Z("condition")
|
|
1489
1490
|
}, {
|
|
1490
|
-
default: a(() => [h(W) ? (i(), p("div",
|
|
1491
|
-
b("p",
|
|
1492
|
-
e.block.displayCondition.description ? (i(), p("p",
|
|
1493
|
-
b("div",
|
|
1491
|
+
default: a(() => [h(W) ? (i(), p("div", nr, [e.block.displayCondition ? (i(), p(D, { key: 0 }, [
|
|
1492
|
+
b("p", rr, x(e.block.displayCondition.label), 1),
|
|
1493
|
+
e.block.displayCondition.description ? (i(), p("p", ir, x(e.block.displayCondition.description), 1)) : _("", !0),
|
|
1494
|
+
b("div", ar, [b("button", {
|
|
1494
1495
|
type: "button",
|
|
1495
1496
|
"data-testid": "display-condition-edit",
|
|
1496
1497
|
class: g(h(F)),
|
|
1497
1498
|
disabled: K.value,
|
|
1498
1499
|
onClick: _e
|
|
1499
|
-
}, x(h(f).blockSettings.editCondition), 11,
|
|
1500
|
+
}, x(h(f).blockSettings.editCondition), 11, or), b("button", {
|
|
1500
1501
|
type: "button",
|
|
1501
1502
|
"data-testid": "display-condition-remove",
|
|
1502
1503
|
class: g(h(F)),
|
|
1503
1504
|
disabled: K.value,
|
|
1504
1505
|
onClick: r[7] ||= (e) => d("update", { displayCondition: void 0 })
|
|
1505
|
-
}, x(h(f).blockSettings.removeCondition), 11,
|
|
1506
|
+
}, x(h(f).blockSettings.removeCondition), 11, sr)])
|
|
1506
1507
|
], 64)) : (i(), p("button", {
|
|
1507
1508
|
key: 1,
|
|
1508
1509
|
type: "button",
|
|
@@ -1510,7 +1511,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1510
1511
|
class: g(h(F)),
|
|
1511
1512
|
disabled: K.value,
|
|
1512
1513
|
onClick: _e
|
|
1513
|
-
}, x(h(f).blockSettings.addCondition), 11,
|
|
1514
|
+
}, x(h(f).blockSettings.addCondition), 11, cr))])) : (i(), p("div", lr, [k(A, {
|
|
1514
1515
|
path: "displayCondition",
|
|
1515
1516
|
label: h(f).blockSettings.displayCondition
|
|
1516
1517
|
}, {
|
|
@@ -1532,43 +1533,43 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1532
1533
|
n && d("update", { displayCondition: n });
|
|
1533
1534
|
}
|
|
1534
1535
|
}, [
|
|
1535
|
-
b("option",
|
|
1536
|
+
b("option", dr, x(h(f).blockSettings.noCondition), 1),
|
|
1536
1537
|
(i(!0), p(D, null, c(xe.value, (e, t) => (i(), p(D, { key: t }, [t ? (i(), p("optgroup", {
|
|
1537
1538
|
key: 0,
|
|
1538
1539
|
label: String(t)
|
|
1539
1540
|
}, [(i(!0), p(D, null, c(e, (e) => (i(), p("option", {
|
|
1540
1541
|
key: e.label,
|
|
1541
1542
|
value: e.label
|
|
1542
|
-
}, x(e.label), 9,
|
|
1543
|
+
}, x(e.label), 9, pr))), 128))], 8, fr)) : (i(!0), p(D, { key: 1 }, c(e, (e) => (i(), p("option", {
|
|
1543
1544
|
key: e.label,
|
|
1544
1545
|
value: e.label
|
|
1545
|
-
}, x(e.label), 9,
|
|
1546
|
-
h(L) ? (i(), p("option",
|
|
1547
|
-
], 42,
|
|
1546
|
+
}, x(e.label), 9, mr))), 128))], 64))), 128)),
|
|
1547
|
+
h(L) ? (i(), p("option", hr, x(h(f).blockSettings.customCondition), 1)) : _("", !0)
|
|
1548
|
+
], 42, ur)]),
|
|
1548
1549
|
_: 1
|
|
1549
|
-
}, 8, ["label"]), J.value || ve.value ? (i(), p("div",
|
|
1550
|
-
b("div", null, [b("label",
|
|
1550
|
+
}, 8, ["label"]), J.value || ve.value ? (i(), p("div", gr, [
|
|
1551
|
+
b("div", null, [b("label", _r, x(h(f).blockSettings.customConditionBefore), 1), s(b("textarea", {
|
|
1551
1552
|
"onUpdate:modelValue": r[9] ||= (e) => Y.value = e,
|
|
1552
1553
|
rows: "2",
|
|
1553
1554
|
class: g(h(H))
|
|
1554
1555
|
}, null, 2), [[S, Y.value]])]),
|
|
1555
|
-
b("div", null, [b("label",
|
|
1556
|
+
b("div", null, [b("label", vr, x(h(f).blockSettings.customConditionAfter), 1), s(b("textarea", {
|
|
1556
1557
|
"onUpdate:modelValue": r[10] ||= (e) => X.value = e,
|
|
1557
1558
|
rows: "2",
|
|
1558
1559
|
class: g(h(H))
|
|
1559
1560
|
}, null, 2), [[S, X.value]])]),
|
|
1560
|
-
b("div",
|
|
1561
|
+
b("div", yr, [b("button", {
|
|
1561
1562
|
type: "button",
|
|
1562
1563
|
class: g(h(ee)),
|
|
1563
1564
|
disabled: !Y.value.trim(),
|
|
1564
1565
|
onClick: be
|
|
1565
|
-
}, x(h(f).blockSettings.applyCondition), 11,
|
|
1566
|
-
])) : e.block.displayCondition && !ve.value ? (i(), p(D, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p",
|
|
1566
|
+
}, x(h(f).blockSettings.applyCondition), 11, br)])
|
|
1567
|
+
])) : e.block.displayCondition && !ve.value ? (i(), p(D, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", xr, x(e.block.displayCondition.description), 1)) : _("", !0), b("div", Sr, [b("pre", Cr, x(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", wr, x(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)]))]),
|
|
1567
1568
|
_: 1
|
|
1568
1569
|
}, 8, ["title", "open"])) : _("", !0)
|
|
1569
1570
|
], 2));
|
|
1570
1571
|
}
|
|
1571
|
-
}),
|
|
1572
|
+
}), Er = ["title"], Dr = { class: "tpl-sr-only" }, Or = ["title"], kr = { class: "tpl-sr-only" }, Ar = /* @__PURE__ */ r({
|
|
1572
1573
|
__name: "FieldLabel",
|
|
1573
1574
|
props: {
|
|
1574
1575
|
label: {},
|
|
@@ -1586,15 +1587,15 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1586
1587
|
size: 12,
|
|
1587
1588
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1588
1589
|
"aria-hidden": "true"
|
|
1589
|
-
}), b("span",
|
|
1590
|
+
}), b("span", Dr, x(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Er)) : _("", !0),
|
|
1590
1591
|
e.required ? (i(), p("span", {
|
|
1591
1592
|
key: 1,
|
|
1592
1593
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1593
1594
|
title: h(t).customBlocks.fields.required
|
|
1594
|
-
}, [r[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span",
|
|
1595
|
+
}, [r[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span", kr, x(h(t).customBlocks.fields.required), 1)], 8, Or)) : _("", !0)
|
|
1595
1596
|
]));
|
|
1596
1597
|
}
|
|
1597
|
-
}),
|
|
1598
|
+
}), jr = ["title"], Mr = /* @__PURE__ */ r({
|
|
1598
1599
|
__name: "BooleanField",
|
|
1599
1600
|
props: {
|
|
1600
1601
|
field: {},
|
|
@@ -1632,9 +1633,9 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1632
1633
|
"label",
|
|
1633
1634
|
"required",
|
|
1634
1635
|
"disabled"
|
|
1635
|
-
])], 8,
|
|
1636
|
+
])], 8, jr));
|
|
1636
1637
|
}
|
|
1637
|
-
}),
|
|
1638
|
+
}), Nr = { class: "tpl:mb-3.5" }, Pr = /* @__PURE__ */ r({
|
|
1638
1639
|
__name: "FieldWrapper",
|
|
1639
1640
|
props: {
|
|
1640
1641
|
label: {},
|
|
@@ -1643,10 +1644,10 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1643
1644
|
readOnly: { type: Boolean }
|
|
1644
1645
|
},
|
|
1645
1646
|
setup(e) {
|
|
1646
|
-
return (t, n) => (i(), p("div",
|
|
1647
|
+
return (t, n) => (i(), p("div", Nr, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
1647
1648
|
key: 0,
|
|
1648
1649
|
class: g(h(V))
|
|
1649
|
-
}, [k(
|
|
1650
|
+
}, [k(Ar, {
|
|
1650
1651
|
label: e.label,
|
|
1651
1652
|
required: e.required,
|
|
1652
1653
|
"read-only": e.readOnly
|
|
@@ -1656,7 +1657,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1656
1657
|
"read-only"
|
|
1657
1658
|
])], 2)), d(t.$slots, "default")]));
|
|
1658
1659
|
}
|
|
1659
|
-
}),
|
|
1660
|
+
}), Fr = /* @__PURE__ */ r({
|
|
1660
1661
|
__name: "ColorField",
|
|
1661
1662
|
props: {
|
|
1662
1663
|
field: {},
|
|
@@ -1667,7 +1668,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1667
1668
|
emits: ["update:modelValue"],
|
|
1668
1669
|
setup(e, { emit: t }) {
|
|
1669
1670
|
let n = e, r = t, { t: o } = Q(), s = l(Je, bt), c = C(() => pt(n.field, s));
|
|
1670
|
-
return (t, n) => (i(), v(
|
|
1671
|
+
return (t, n) => (i(), v(Pr, {
|
|
1671
1672
|
"hide-label": e.hideLabel,
|
|
1672
1673
|
label: e.field.label,
|
|
1673
1674
|
required: e.field.required,
|
|
@@ -1697,11 +1698,11 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1697
1698
|
"read-only"
|
|
1698
1699
|
]));
|
|
1699
1700
|
}
|
|
1700
|
-
}),
|
|
1701
|
+
}), Ir = [
|
|
1701
1702
|
"value",
|
|
1702
1703
|
"placeholder",
|
|
1703
1704
|
"title"
|
|
1704
|
-
],
|
|
1705
|
+
], Lr = ["value", "placeholder"], Rr = /* @__PURE__ */ r({
|
|
1705
1706
|
__name: "ImageField",
|
|
1706
1707
|
props: {
|
|
1707
1708
|
field: {},
|
|
@@ -1716,7 +1717,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1716
1717
|
blocked: () => !!n.readOnly,
|
|
1717
1718
|
apply: (e) => r("update:modelValue", e.url)
|
|
1718
1719
|
});
|
|
1719
|
-
return (t, n) => (i(), v(
|
|
1720
|
+
return (t, n) => (i(), v(Pr, {
|
|
1720
1721
|
"hide-label": e.hideLabel,
|
|
1721
1722
|
label: e.field.label,
|
|
1722
1723
|
required: e.field.required,
|
|
@@ -1739,14 +1740,14 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1739
1740
|
placeholder: e.field.placeholder || "https://...",
|
|
1740
1741
|
disabled: "",
|
|
1741
1742
|
title: h(o).customBlocks.dataSource.readOnlyTooltip
|
|
1742
|
-
}, null, 10,
|
|
1743
|
+
}, null, 10, Ir)) : (i(), p("input", {
|
|
1743
1744
|
key: 2,
|
|
1744
1745
|
type: "url",
|
|
1745
1746
|
class: g(h(B)),
|
|
1746
1747
|
value: e.modelValue,
|
|
1747
1748
|
placeholder: e.field.placeholder || "https://...",
|
|
1748
1749
|
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
1749
|
-
}, null, 42,
|
|
1750
|
+
}, null, 42, Lr)),
|
|
1750
1751
|
h(c) && !e.readOnly ? (i(), p("button", {
|
|
1751
1752
|
key: 3,
|
|
1752
1753
|
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)]",
|
|
@@ -1764,7 +1765,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1764
1765
|
"read-only"
|
|
1765
1766
|
]));
|
|
1766
1767
|
}
|
|
1767
|
-
}),
|
|
1768
|
+
}), zr = [
|
|
1768
1769
|
"value",
|
|
1769
1770
|
"placeholder",
|
|
1770
1771
|
"min",
|
|
@@ -1772,7 +1773,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1772
1773
|
"step",
|
|
1773
1774
|
"disabled",
|
|
1774
1775
|
"title"
|
|
1775
|
-
],
|
|
1776
|
+
], Br = /* @__PURE__ */ r({
|
|
1776
1777
|
__name: "NumberField",
|
|
1777
1778
|
props: {
|
|
1778
1779
|
field: {},
|
|
@@ -1783,7 +1784,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1783
1784
|
emits: ["update:modelValue"],
|
|
1784
1785
|
setup(e, { emit: t }) {
|
|
1785
1786
|
let n = t, { t: r } = Q();
|
|
1786
|
-
return (t, o) => (i(), v(
|
|
1787
|
+
return (t, o) => (i(), v(Pr, {
|
|
1787
1788
|
"hide-label": e.hideLabel,
|
|
1788
1789
|
label: e.field.label,
|
|
1789
1790
|
required: e.field.required,
|
|
@@ -1800,7 +1801,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1800
1801
|
disabled: e.readOnly,
|
|
1801
1802
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1802
1803
|
onInput: o[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1803
|
-
}, null, 42,
|
|
1804
|
+
}, null, 42, zr)]),
|
|
1804
1805
|
_: 1
|
|
1805
1806
|
}, 8, [
|
|
1806
1807
|
"hide-label",
|
|
@@ -1809,13 +1810,13 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1809
1810
|
"read-only"
|
|
1810
1811
|
]));
|
|
1811
1812
|
}
|
|
1812
|
-
}),
|
|
1813
|
+
}), Vr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Hr = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Ur = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Wr = ["title", "onClick"], Gr = {
|
|
1813
1814
|
key: 1,
|
|
1814
1815
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1815
|
-
},
|
|
1816
|
+
}, Kr = {
|
|
1816
1817
|
key: 2,
|
|
1817
1818
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1818
|
-
},
|
|
1819
|
+
}, qr = /* @__PURE__ */ r({
|
|
1819
1820
|
__name: "RepeatableField",
|
|
1820
1821
|
props: {
|
|
1821
1822
|
field: {},
|
|
@@ -1844,17 +1845,17 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1844
1845
|
} : r);
|
|
1845
1846
|
o("update:modelValue", r);
|
|
1846
1847
|
}
|
|
1847
|
-
return (t, r) => (i(), v(
|
|
1848
|
+
return (t, r) => (i(), v(Pr, {
|
|
1848
1849
|
"hide-label": e.hideLabel,
|
|
1849
1850
|
label: e.field.label,
|
|
1850
1851
|
required: e.field.required,
|
|
1851
1852
|
"read-only": e.readOnly
|
|
1852
1853
|
}, {
|
|
1853
|
-
default: a(() => [b("div",
|
|
1854
|
+
default: a(() => [b("div", Vr, [
|
|
1854
1855
|
(i(!0), p(D, null, c(u.value, (t, r) => (i(), p("div", {
|
|
1855
1856
|
key: `${e.field.key}-${r}`,
|
|
1856
1857
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1857
|
-
}, [b("div",
|
|
1858
|
+
}, [b("div", Hr, [b("span", Ur, " #" + x(r + 1), 1), f.value && !e.readOnly ? (i(), p("button", {
|
|
1858
1859
|
key: 0,
|
|
1859
1860
|
type: "button",
|
|
1860
1861
|
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)]",
|
|
@@ -1863,7 +1864,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1863
1864
|
}, [k(h(G), {
|
|
1864
1865
|
size: 12,
|
|
1865
1866
|
"stroke-width": 2
|
|
1866
|
-
})], 8,
|
|
1867
|
+
})], 8, Wr)) : _("", !0)]), (i(!0), p(D, null, c(e.field.fields, (a) => (i(), v(n(h(ni)(a.type)), {
|
|
1867
1868
|
key: a.key,
|
|
1868
1869
|
field: a,
|
|
1869
1870
|
"model-value": t[a.key],
|
|
@@ -1884,8 +1885,8 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1884
1885
|
size: 14,
|
|
1885
1886
|
"stroke-width": 2
|
|
1886
1887
|
}), m(" " + x(h(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
|
|
1887
|
-
!d.value && !e.readOnly ? (i(), p("p",
|
|
1888
|
-
!f.value && !e.readOnly ? (i(), p("p",
|
|
1888
|
+
!d.value && !e.readOnly ? (i(), p("p", Gr, x(h(s).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
|
|
1889
|
+
!f.value && !e.readOnly ? (i(), p("p", Kr, x(h(l)(h(s).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !0)
|
|
1889
1890
|
])]),
|
|
1890
1891
|
_: 1
|
|
1891
1892
|
}, 8, [
|
|
@@ -1895,11 +1896,11 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1895
1896
|
"read-only"
|
|
1896
1897
|
]));
|
|
1897
1898
|
}
|
|
1898
|
-
}),
|
|
1899
|
+
}), Jr = [
|
|
1899
1900
|
"value",
|
|
1900
1901
|
"disabled",
|
|
1901
1902
|
"title"
|
|
1902
|
-
],
|
|
1903
|
+
], Yr = ["value"], Xr = /* @__PURE__ */ r({
|
|
1903
1904
|
__name: "SelectField",
|
|
1904
1905
|
props: {
|
|
1905
1906
|
field: {},
|
|
@@ -1910,7 +1911,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1910
1911
|
emits: ["update:modelValue"],
|
|
1911
1912
|
setup(e, { emit: t }) {
|
|
1912
1913
|
let n = t, { t: r } = Q();
|
|
1913
|
-
return (t, o) => (i(), v(
|
|
1914
|
+
return (t, o) => (i(), v(Pr, {
|
|
1914
1915
|
"hide-label": e.hideLabel,
|
|
1915
1916
|
label: e.field.label,
|
|
1916
1917
|
required: e.field.required,
|
|
@@ -1925,7 +1926,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1925
1926
|
}, [(i(!0), p(D, null, c(e.field.options, (e) => (i(), p("option", {
|
|
1926
1927
|
key: e.value,
|
|
1927
1928
|
value: e.value
|
|
1928
|
-
}, x(e.label), 9,
|
|
1929
|
+
}, x(e.label), 9, Yr))), 128))], 42, Jr)]),
|
|
1929
1930
|
_: 1
|
|
1930
1931
|
}, 8, [
|
|
1931
1932
|
"hide-label",
|
|
@@ -1934,11 +1935,11 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1934
1935
|
"read-only"
|
|
1935
1936
|
]));
|
|
1936
1937
|
}
|
|
1937
|
-
}),
|
|
1938
|
+
}), Zr = [
|
|
1938
1939
|
"value",
|
|
1939
1940
|
"placeholder",
|
|
1940
1941
|
"title"
|
|
1941
|
-
],
|
|
1942
|
+
], Qr = /* @__PURE__ */ r({
|
|
1942
1943
|
__name: "TextField",
|
|
1943
1944
|
props: {
|
|
1944
1945
|
field: {},
|
|
@@ -1949,7 +1950,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1949
1950
|
emits: ["update:modelValue"],
|
|
1950
1951
|
setup(e, { emit: t }) {
|
|
1951
1952
|
let n = t, { t: r } = Q();
|
|
1952
|
-
return (t, o) => (i(), v(
|
|
1953
|
+
return (t, o) => (i(), v(Pr, {
|
|
1953
1954
|
"hide-label": e.hideLabel,
|
|
1954
1955
|
label: e.field.label,
|
|
1955
1956
|
required: e.field.required,
|
|
@@ -1963,7 +1964,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1963
1964
|
placeholder: e.field.placeholder,
|
|
1964
1965
|
disabled: "",
|
|
1965
1966
|
title: h(r).customBlocks.dataSource.readOnlyTooltip
|
|
1966
|
-
}, null, 10,
|
|
1967
|
+
}, null, 10, Zr)) : (i(), v(N, {
|
|
1967
1968
|
key: 1,
|
|
1968
1969
|
"model-value": e.modelValue,
|
|
1969
1970
|
placeholder: e.field.placeholder,
|
|
@@ -1977,12 +1978,12 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1977
1978
|
"read-only"
|
|
1978
1979
|
]));
|
|
1979
1980
|
}
|
|
1980
|
-
}),
|
|
1981
|
+
}), $r = [
|
|
1981
1982
|
"value",
|
|
1982
1983
|
"placeholder",
|
|
1983
1984
|
"title"
|
|
1984
|
-
],
|
|
1985
|
-
text:
|
|
1985
|
+
], ei = "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", ti = {
|
|
1986
|
+
text: Qr,
|
|
1986
1987
|
textarea: /* @__PURE__ */ r({
|
|
1987
1988
|
__name: "TextareaField",
|
|
1988
1989
|
props: {
|
|
@@ -1994,7 +1995,7 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
1994
1995
|
emits: ["update:modelValue"],
|
|
1995
1996
|
setup(e, { emit: t }) {
|
|
1996
1997
|
let n = t, { t: r } = Q();
|
|
1997
|
-
return (t, o) => (i(), v(
|
|
1998
|
+
return (t, o) => (i(), v(Pr, {
|
|
1998
1999
|
"hide-label": e.hideLabel,
|
|
1999
2000
|
label: e.field.label,
|
|
2000
2001
|
required: e.field.required,
|
|
@@ -2007,8 +2008,8 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
2007
2008
|
rows: "3",
|
|
2008
2009
|
disabled: "",
|
|
2009
2010
|
title: h(r).customBlocks.dataSource.readOnlyTooltip,
|
|
2010
|
-
class: g(
|
|
2011
|
-
}, null, 8,
|
|
2011
|
+
class: g(ei)
|
|
2012
|
+
}, null, 8, $r)) : (i(), v(j, {
|
|
2012
2013
|
key: 1,
|
|
2013
2014
|
"model-value": e.modelValue,
|
|
2014
2015
|
placeholder: e.field.placeholder,
|
|
@@ -2023,36 +2024,36 @@ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tp
|
|
|
2023
2024
|
]));
|
|
2024
2025
|
}
|
|
2025
2026
|
}),
|
|
2026
|
-
image:
|
|
2027
|
-
color:
|
|
2028
|
-
number:
|
|
2029
|
-
select:
|
|
2030
|
-
boolean:
|
|
2031
|
-
repeatable:
|
|
2027
|
+
image: Rr,
|
|
2028
|
+
color: Fr,
|
|
2029
|
+
number: Br,
|
|
2030
|
+
select: Xr,
|
|
2031
|
+
boolean: Mr,
|
|
2032
|
+
repeatable: qr
|
|
2032
2033
|
};
|
|
2033
|
-
function
|
|
2034
|
-
return
|
|
2034
|
+
function ni(e) {
|
|
2035
|
+
return ti[e] ?? Qr;
|
|
2035
2036
|
}
|
|
2036
2037
|
// src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2037
|
-
var
|
|
2038
|
+
var ri = {
|
|
2038
2039
|
key: 0,
|
|
2039
2040
|
class: "tpl:p-4"
|
|
2040
|
-
},
|
|
2041
|
+
}, ii = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ai = { key: 1 }, oi = {
|
|
2041
2042
|
key: 0,
|
|
2042
2043
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
2043
|
-
},
|
|
2044
|
+
}, si = {
|
|
2044
2045
|
key: 1,
|
|
2045
2046
|
class: "tpl:mb-4"
|
|
2046
|
-
},
|
|
2047
|
+
}, ci = {
|
|
2047
2048
|
key: 1,
|
|
2048
2049
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
2049
|
-
},
|
|
2050
|
+
}, li = {
|
|
2050
2051
|
key: 0,
|
|
2051
2052
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2052
|
-
},
|
|
2053
|
+
}, ui = {
|
|
2053
2054
|
key: 2,
|
|
2054
2055
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
2055
|
-
},
|
|
2056
|
+
}, di = /* @__PURE__ */ r({
|
|
2056
2057
|
__name: "CustomBlockToolbar",
|
|
2057
2058
|
props: { block: {} },
|
|
2058
2059
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
@@ -2073,19 +2074,19 @@ var ni = {
|
|
|
2073
2074
|
[e]: t
|
|
2074
2075
|
});
|
|
2075
2076
|
}
|
|
2076
|
-
return (t, r) => d.value ? (i(), p("div",
|
|
2077
|
-
d.value.description ? (i(), p("p",
|
|
2078
|
-
h(w) ? (i(), p("div",
|
|
2077
|
+
return (t, r) => d.value ? (i(), p("div", ai, [
|
|
2078
|
+
d.value.description ? (i(), p("p", oi, x(d.value.description), 1)) : _("", !0),
|
|
2079
|
+
h(w) ? (i(), p("div", si, [h(T) && !h(g) ? (i(), p("button", {
|
|
2079
2080
|
key: 0,
|
|
2080
2081
|
type: "button",
|
|
2081
2082
|
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)]",
|
|
2082
2083
|
onClick: r[0] ||= (...e) => h(S) && h(S)(...e)
|
|
2083
|
-
}, x(d.value?.dataSource?.label || h(s).customBlocks.dataSource.fetchButton), 1)) : (i(), p("div",
|
|
2084
|
+
}, x(d.value?.dataSource?.label || h(s).customBlocks.dataSource.fetchButton), 1)) : (i(), p("div", ci, [h(g) ? (i(), p("div", li, x(h(s).customBlocks.dataSource.fetching), 1)) : (i(), p("button", {
|
|
2084
2085
|
key: 1,
|
|
2085
2086
|
type: "button",
|
|
2086
2087
|
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)]",
|
|
2087
2088
|
onClick: r[1] ||= (...e) => h(S) && h(S)(...e)
|
|
2088
|
-
}, [k(h(le), { size: 12 }), m(" " + x(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(y) ? (i(), p("p",
|
|
2089
|
+
}, [k(h(le), { size: 12 }), m(" " + x(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(y) ? (i(), p("p", ui, [k(h(oe), {
|
|
2089
2090
|
size: 14,
|
|
2090
2091
|
class: "tpl:shrink-0"
|
|
2091
2092
|
}), m(" " + x(h(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
@@ -2094,7 +2095,7 @@ var ni = {
|
|
|
2094
2095
|
path: `fieldValues.${t.key}`,
|
|
2095
2096
|
label: t.label
|
|
2096
2097
|
}, {
|
|
2097
|
-
label: a(() => [k(
|
|
2098
|
+
label: a(() => [k(Ar, {
|
|
2098
2099
|
label: t.label,
|
|
2099
2100
|
required: t.required,
|
|
2100
2101
|
"read-only": E(t)
|
|
@@ -2103,7 +2104,7 @@ var ni = {
|
|
|
2103
2104
|
"required",
|
|
2104
2105
|
"read-only"
|
|
2105
2106
|
])]),
|
|
2106
|
-
default: a(({ controlId: r }) => [(i(), v(n(h(
|
|
2107
|
+
default: a(({ controlId: r }) => [(i(), v(n(h(ni)(t.type)), {
|
|
2107
2108
|
"control-id": t.type === "boolean" ? r : void 0,
|
|
2108
2109
|
field: t,
|
|
2109
2110
|
"hide-label": "",
|
|
@@ -2119,9 +2120,9 @@ var ni = {
|
|
|
2119
2120
|
]))]),
|
|
2120
2121
|
_: 2
|
|
2121
2122
|
}, 1032, ["path", "label"]))), 128))
|
|
2122
|
-
])) : (i(), p("div",
|
|
2123
|
+
])) : (i(), p("div", ri, [b("p", ii, x(h(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
2123
2124
|
}
|
|
2124
|
-
}),
|
|
2125
|
+
}), fi = { class: "tpl:flex tpl:items-stretch" }, pi = ["value"], mi = /* @__PURE__ */ r({
|
|
2125
2126
|
__name: "DividerToolbar",
|
|
2126
2127
|
props: { block: {} },
|
|
2127
2128
|
emits: ["update"],
|
|
@@ -2172,19 +2173,19 @@ var ni = {
|
|
|
2172
2173
|
class: "tpl:mb-3.5",
|
|
2173
2174
|
path: "thickness"
|
|
2174
2175
|
}, {
|
|
2175
|
-
default: a(() => [b("div",
|
|
2176
|
+
default: a(() => [b("div", fi, [b("input", {
|
|
2176
2177
|
type: "number",
|
|
2177
2178
|
class: g(h(z)),
|
|
2178
2179
|
value: e.block.thickness,
|
|
2179
2180
|
min: "1",
|
|
2180
2181
|
max: "10",
|
|
2181
2182
|
onInput: n[2] ||= (e) => o("thickness", Number(e.target.value))
|
|
2182
|
-
}, null, 42,
|
|
2183
|
+
}, null, 42, pi), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
2183
2184
|
_: 1
|
|
2184
2185
|
}, 8, ["label"])
|
|
2185
2186
|
], 64));
|
|
2186
2187
|
}
|
|
2187
|
-
}),
|
|
2188
|
+
}), hi = ["value"], gi = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, _i = /* @__PURE__ */ r({
|
|
2188
2189
|
__name: "HtmlToolbar",
|
|
2189
2190
|
props: { block: {} },
|
|
2190
2191
|
emits: ["update"],
|
|
@@ -2201,7 +2202,7 @@ var ni = {
|
|
|
2201
2202
|
rows: "10",
|
|
2202
2203
|
class: g(h(H)),
|
|
2203
2204
|
onInput: o[0] ||= (e) => n("update", { content: e.target.value })
|
|
2204
|
-
}, null, 42,
|
|
2205
|
+
}, null, 42, hi), b("p", gi, [k(h(K), {
|
|
2205
2206
|
size: 12,
|
|
2206
2207
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2207
2208
|
}), m(" " + x(h(r).html.sanitizationHint), 1)])]),
|
|
@@ -2210,7 +2211,7 @@ var ni = {
|
|
|
2210
2211
|
}
|
|
2211
2212
|
});
|
|
2212
2213
|
// src/composables/useImageAspectLock.ts
|
|
2213
|
-
function
|
|
2214
|
+
function vi(e) {
|
|
2214
2215
|
let t = E(!1), n = E(null);
|
|
2215
2216
|
o(() => e.block().id, () => {
|
|
2216
2217
|
t.value = !1, n.value = null;
|
|
@@ -2270,22 +2271,22 @@ function _i(e) {
|
|
|
2270
2271
|
};
|
|
2271
2272
|
}
|
|
2272
2273
|
// src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2273
|
-
var
|
|
2274
|
+
var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
2274
2275
|
"value",
|
|
2275
2276
|
"placeholder",
|
|
2276
2277
|
"title"
|
|
2277
|
-
],
|
|
2278
|
+
], xi = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Si = ["value"], Ci = { value: "full" }, wi = { value: "custom" }, Ti = {
|
|
2278
2279
|
key: 0,
|
|
2279
2280
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2280
|
-
},
|
|
2281
|
+
}, Ei = ["value"], Di = ["value"], Oi = { value: "auto" }, ki = { value: "always" }, Ai = { value: "never" }, ji = { class: "tpl:flex tpl:items-stretch" }, Mi = ["value"], Ni = {
|
|
2281
2282
|
key: 0,
|
|
2282
2283
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
2283
2284
|
role: "status",
|
|
2284
2285
|
"data-testid": "image-height-capped"
|
|
2285
|
-
},
|
|
2286
|
+
}, Pi = ["value"], Fi = { value: "auto" }, Ii = { value: "custom" }, Li = {
|
|
2286
2287
|
key: 2,
|
|
2287
2288
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2288
|
-
},
|
|
2289
|
+
}, Ri = ["value"], zi = 350, Bi = 200, Vi = /* @__PURE__ */ r({
|
|
2289
2290
|
__name: "ImageToolbar",
|
|
2290
2291
|
props: { block: {} },
|
|
2291
2292
|
emits: ["update"],
|
|
@@ -2306,11 +2307,11 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2306
2307
|
function ee(e) {
|
|
2307
2308
|
if (e === "custom") {
|
|
2308
2309
|
let e = n.block.width;
|
|
2309
|
-
(typeof e != "number" || T.includes(e)) && r("update", G.widthUpdates(
|
|
2310
|
+
(typeof e != "number" || T.includes(e)) && r("update", G.widthUpdates(zi));
|
|
2310
2311
|
} else r("update", G.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2311
2312
|
}
|
|
2312
2313
|
function R(e) {
|
|
2313
|
-
I("height", e === "custom" ?
|
|
2314
|
+
I("height", e === "custom" ? Bi : void 0);
|
|
2314
2315
|
}
|
|
2315
2316
|
function te(e) {
|
|
2316
2317
|
I("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
@@ -2342,7 +2343,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2342
2343
|
target: ae,
|
|
2343
2344
|
blocked: oe,
|
|
2344
2345
|
apply: ie
|
|
2345
|
-
}), ue = $e(() => oe.value || !n.block.src || it(n.block) ? void 0 : n.block.src), fe =
|
|
2346
|
+
}), ue = $e(() => oe.value || !n.block.src || it(n.block) ? void 0 : n.block.src), fe = Sn(() => ue.value), W = C(() => d ? ot(d.content.value, n.block.id, f) : null), G = vi({
|
|
2346
2347
|
block: () => n.block,
|
|
2347
2348
|
room: () => W.value,
|
|
2348
2349
|
measured: () => fe.value
|
|
@@ -2404,7 +2405,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2404
2405
|
class: "tpl:mb-3.5",
|
|
2405
2406
|
path: "placeholderUrl"
|
|
2406
2407
|
}, {
|
|
2407
|
-
label: a(() => [m(x(h(o).image.placeholderUrl) + " ", 1), b("span",
|
|
2408
|
+
label: a(() => [m(x(h(o).image.placeholderUrl) + " ", 1), b("span", yi, x(h(o).image.optional), 1)]),
|
|
2408
2409
|
default: a(() => [b("input", {
|
|
2409
2410
|
type: "url",
|
|
2410
2411
|
class: g(h(B)),
|
|
@@ -2412,7 +2413,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2412
2413
|
placeholder: h(o).image.placeholderUrlPlaceholder,
|
|
2413
2414
|
title: h(o).image.placeholderUrlTooltip,
|
|
2414
2415
|
onInput: n[2] ||= (e) => I("placeholderUrl", e.target.value)
|
|
2415
|
-
}, null, 42,
|
|
2416
|
+
}, null, 42, bi)]),
|
|
2416
2417
|
_: 1
|
|
2417
2418
|
})) : _("", !0),
|
|
2418
2419
|
k(A, {
|
|
@@ -2436,7 +2437,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2436
2437
|
path: "decorative",
|
|
2437
2438
|
label: h(o).image.decorative
|
|
2438
2439
|
}, {
|
|
2439
|
-
label: a(() => [b("span", null, [m(x(h(o).image.decorative) + " ", 1), b("span",
|
|
2440
|
+
label: a(() => [b("span", null, [m(x(h(o).image.decorative) + " ", 1), b("span", xi, x(h(o).image.decorativeHint), 1)])]),
|
|
2440
2441
|
"label-actions": a(({ controlId: t }) => [k(P, {
|
|
2441
2442
|
"control-id": t,
|
|
2442
2443
|
"hide-label": "",
|
|
@@ -2464,19 +2465,19 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2464
2465
|
value: j.value,
|
|
2465
2466
|
onChange: n[5] ||= (e) => ee(e.target.value)
|
|
2466
2467
|
}, [
|
|
2467
|
-
b("option",
|
|
2468
|
+
b("option", Ci, x(h(o).image.fullWidth), 1),
|
|
2468
2469
|
n[16] ||= b("option", { value: "300" }, "300px", -1),
|
|
2469
2470
|
n[17] ||= b("option", { value: "400" }, "400px", -1),
|
|
2470
2471
|
n[18] ||= b("option", { value: "500" }, "500px", -1),
|
|
2471
|
-
b("option",
|
|
2472
|
-
], 42,
|
|
2472
|
+
b("option", wi, x(h(o).image.widthCustom), 1)
|
|
2473
|
+
], 42, Si), j.value === "custom" ? (i(), p("div", Ti, [b("input", {
|
|
2473
2474
|
type: "number",
|
|
2474
2475
|
"data-testid": "image-width-input",
|
|
2475
2476
|
class: g(h(z)),
|
|
2476
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2477
|
+
value: typeof e.block.width == "number" ? e.block.width : zi,
|
|
2477
2478
|
min: "20",
|
|
2478
2479
|
onInput: n[6] ||= (e) => H(e.target.value)
|
|
2479
|
-
}, null, 42,
|
|
2480
|
+
}, null, 42, Ei), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
2480
2481
|
_: 1
|
|
2481
2482
|
}, 8, ["label"]),
|
|
2482
2483
|
k(A, {
|
|
@@ -2490,10 +2491,10 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2490
2491
|
value: F.value,
|
|
2491
2492
|
onChange: n[7] ||= (e) => te(e.target.value)
|
|
2492
2493
|
}, [
|
|
2493
|
-
b("option",
|
|
2494
|
-
b("option",
|
|
2495
|
-
b("option",
|
|
2496
|
-
], 42,
|
|
2494
|
+
b("option", Oi, x(h(o).image.fluidOnMobileAuto), 1),
|
|
2495
|
+
b("option", ki, x(h(o).image.fluidOnMobileAlways), 1),
|
|
2496
|
+
b("option", Ai, x(h(o).image.fluidOnMobileNever), 1)
|
|
2497
|
+
], 42, Di)]),
|
|
2497
2498
|
_: 1
|
|
2498
2499
|
}, 8, ["label"]),
|
|
2499
2500
|
k(A, {
|
|
@@ -2502,7 +2503,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2502
2503
|
label: h(o).image.height
|
|
2503
2504
|
}, O({
|
|
2504
2505
|
default: a(() => [
|
|
2505
|
-
h(q) ? (i(), p(D, { key: 0 }, [b("div",
|
|
2506
|
+
h(q) ? (i(), p(D, { key: 0 }, [b("div", ji, [b("input", {
|
|
2506
2507
|
type: "number",
|
|
2507
2508
|
"data-testid": "image-locked-height-input",
|
|
2508
2509
|
class: g(h(z)),
|
|
@@ -2510,27 +2511,27 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2510
2511
|
min: "1",
|
|
2511
2512
|
onInput: n[8] ||= (e) => Z(e.target.value),
|
|
2512
2513
|
onBlur: n[9] ||= (e) => pe.value = null
|
|
2513
|
-
}, null, 42,
|
|
2514
|
+
}, null, 42, Mi), b("span", { class: g(h(L)) }, "px", 2)]), h(Y) === null ? _("", !0) : (i(), p("p", Ni, x(h(s)(h(o).image.heightCapped, { height: h(Y) })), 1))], 64)) : _("", !0),
|
|
2514
2515
|
h(q) ? _("", !0) : (i(), p("select", {
|
|
2515
2516
|
key: 1,
|
|
2516
2517
|
class: g(h(B)),
|
|
2517
2518
|
"data-testid": "image-height-mode",
|
|
2518
2519
|
value: M.value,
|
|
2519
2520
|
onChange: n[10] ||= (e) => R(e.target.value)
|
|
2520
|
-
}, [b("option",
|
|
2521
|
-
!h(q) && M.value === "custom" ? (i(), p("div",
|
|
2521
|
+
}, [b("option", Fi, x(h(o).image.heightAuto), 1), b("option", Ii, x(h(o).image.heightCustom), 1)], 42, Pi)),
|
|
2522
|
+
!h(q) && M.value === "custom" ? (i(), p("div", Li, [b("input", {
|
|
2522
2523
|
type: "number",
|
|
2523
2524
|
"data-testid": "image-height-input",
|
|
2524
2525
|
class: g(h(z)),
|
|
2525
2526
|
value: e.block.height,
|
|
2526
2527
|
min: "20",
|
|
2527
2528
|
onInput: n[11] ||= (e) => ne(e.target.value)
|
|
2528
|
-
}, null, 42,
|
|
2529
|
+
}, null, 42, Ri), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)
|
|
2529
2530
|
]),
|
|
2530
2531
|
_: 2
|
|
2531
2532
|
}, [h(K) ? {
|
|
2532
2533
|
name: "label-actions",
|
|
2533
|
-
fn: a(() => [k(
|
|
2534
|
+
fn: a(() => [k(At, {
|
|
2534
2535
|
linked: h(q),
|
|
2535
2536
|
"link-label": h(o).image.lockAspectRatio,
|
|
2536
2537
|
"unlink-label": h(o).image.unlockAspectRatio,
|
|
@@ -2543,14 +2544,14 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2543
2544
|
])]),
|
|
2544
2545
|
key: "0"
|
|
2545
2546
|
} : void 0]), 1032, ["label"]),
|
|
2546
|
-
k(
|
|
2547
|
+
k(Lt, {
|
|
2547
2548
|
path: "borderRadius",
|
|
2548
2549
|
"model-value": e.block.borderRadius,
|
|
2549
2550
|
label: h(o).image.borderRadius,
|
|
2550
2551
|
"testid-prefix": "image",
|
|
2551
2552
|
"onUpdate:modelValue": V
|
|
2552
2553
|
}, null, 8, ["model-value", "label"]),
|
|
2553
|
-
k(
|
|
2554
|
+
k(Pt, {
|
|
2554
2555
|
path: "border",
|
|
2555
2556
|
"model-value": e.block.border,
|
|
2556
2557
|
"testid-prefix": "image",
|
|
@@ -2614,11 +2615,11 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2614
2615
|
}, 8, ["label"])
|
|
2615
2616
|
], 64));
|
|
2616
2617
|
}
|
|
2617
|
-
}),
|
|
2618
|
+
}), Hi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ui = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Wi = [
|
|
2618
2619
|
"value",
|
|
2619
2620
|
"placeholder",
|
|
2620
2621
|
"onInput"
|
|
2621
|
-
],
|
|
2622
|
+
], Gi = ["title", "onClick"], Ki = { 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)]" }, qi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ji = ["value"], Yi = { value: "" }, Xi = ["value"], Zi = ["value"], Qi = /* @__PURE__ */ r({
|
|
2622
2623
|
__name: "MenuToolbar",
|
|
2623
2624
|
props: {
|
|
2624
2625
|
block: {},
|
|
@@ -2682,11 +2683,11 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2682
2683
|
}
|
|
2683
2684
|
return (t, n) => (i(), p(D, null, [
|
|
2684
2685
|
k(A, { label: h(o).menu.items }, {
|
|
2685
|
-
default: a(() => [b("div",
|
|
2686
|
+
default: a(() => [b("div", Hi, [(i(!0), p(D, null, c(e.block.items, (t) => (i(), p("div", {
|
|
2686
2687
|
key: t.id,
|
|
2687
2688
|
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"
|
|
2688
2689
|
}, [
|
|
2689
|
-
b("div",
|
|
2690
|
+
b("div", Ui, [k(A, {
|
|
2690
2691
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
|
|
2691
2692
|
label: h(o).menu.text
|
|
2692
2693
|
}, {
|
|
@@ -2696,7 +2697,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2696
2697
|
value: t.text,
|
|
2697
2698
|
placeholder: h(o).menu.text,
|
|
2698
2699
|
onInput: (e) => f(t.id, "text", e.target.value)
|
|
2699
|
-
}, null, 42,
|
|
2700
|
+
}, null, 42, Wi)]),
|
|
2700
2701
|
_: 2
|
|
2701
2702
|
}, 1032, ["path", "label"]), b("button", {
|
|
2702
2703
|
class: g(h(I)),
|
|
@@ -2705,7 +2706,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2705
2706
|
}, [k(h(pe), {
|
|
2706
2707
|
size: 14,
|
|
2707
2708
|
"stroke-width": 2
|
|
2708
|
-
})], 10,
|
|
2709
|
+
})], 10, Gi)]),
|
|
2709
2710
|
k(A, {
|
|
2710
2711
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
|
|
2711
2712
|
label: h(o).button.url
|
|
@@ -2722,7 +2723,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2722
2723
|
])]),
|
|
2723
2724
|
_: 2
|
|
2724
2725
|
}, 1032, ["path", "label"]),
|
|
2725
|
-
b("div",
|
|
2726
|
+
b("div", Ki, [(i(!0), p(D, null, c(s.value, (e) => (i(), v(A, {
|
|
2726
2727
|
key: e.key,
|
|
2727
2728
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
|
|
2728
2729
|
label: e.label
|
|
@@ -2741,7 +2742,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2741
2742
|
])]),
|
|
2742
2743
|
_: 2
|
|
2743
2744
|
}, 1032, ["path", "label"]))), 128))]),
|
|
2744
|
-
b("div",
|
|
2745
|
+
b("div", qi, [k(A, {
|
|
2745
2746
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
|
|
2746
2747
|
label: h(o).menu.color
|
|
2747
2748
|
}, {
|
|
@@ -2769,17 +2770,17 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2769
2770
|
class: g(h(B)),
|
|
2770
2771
|
value: h(ht)(e.block.fontFamily),
|
|
2771
2772
|
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2772
|
-
}, [b("option",
|
|
2773
|
+
}, [b("option", Yi, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
2773
2774
|
key: e.value,
|
|
2774
2775
|
value: e.value
|
|
2775
|
-
}, x(e.label), 9,
|
|
2776
|
+
}, x(e.label), 9, Xi))), 128))], 42, Ji)]),
|
|
2776
2777
|
_: 1
|
|
2777
2778
|
}, 8, ["label"]),
|
|
2778
2779
|
k(A, {
|
|
2779
2780
|
path: "fontSize",
|
|
2780
2781
|
label: h(o).menu.fontSize
|
|
2781
2782
|
}, {
|
|
2782
|
-
default: a(() => [k(
|
|
2783
|
+
default: a(() => [k(Ot, {
|
|
2783
2784
|
"model-value": e.block.fontSize,
|
|
2784
2785
|
min: 8,
|
|
2785
2786
|
max: 48,
|
|
@@ -2828,7 +2829,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2828
2829
|
class: g(h(B)),
|
|
2829
2830
|
value: e.block.separator,
|
|
2830
2831
|
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
2831
|
-
}, null, 42,
|
|
2832
|
+
}, null, 42, Zi)]),
|
|
2832
2833
|
_: 1
|
|
2833
2834
|
}, 8, ["label"]),
|
|
2834
2835
|
k(A, {
|
|
@@ -2845,7 +2846,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2845
2846
|
path: "spacing",
|
|
2846
2847
|
label: h(o).menu.spacing
|
|
2847
2848
|
}, {
|
|
2848
|
-
default: a(() => [k(
|
|
2849
|
+
default: a(() => [k(Ot, {
|
|
2849
2850
|
"model-value": e.block.spacing,
|
|
2850
2851
|
min: 0,
|
|
2851
2852
|
max: 50,
|
|
@@ -2856,7 +2857,7 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2856
2857
|
}, 8, ["label"])
|
|
2857
2858
|
], 64));
|
|
2858
2859
|
}
|
|
2859
|
-
}),
|
|
2860
|
+
}), $i = { class: "tpl:flex tpl:items-stretch" }, ea = ["value"], ta = /* @__PURE__ */ r({
|
|
2860
2861
|
__name: "ParagraphToolbar",
|
|
2861
2862
|
props: { block: {} },
|
|
2862
2863
|
emits: ["update"],
|
|
@@ -2868,20 +2869,20 @@ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
|
2868
2869
|
"data-testid": "paragraph-spacing",
|
|
2869
2870
|
path: "paragraphSpacing"
|
|
2870
2871
|
}, {
|
|
2871
|
-
default: a(() => [b("div",
|
|
2872
|
+
default: a(() => [b("div", $i, [b("input", {
|
|
2872
2873
|
type: "number",
|
|
2873
2874
|
class: g(h(z)),
|
|
2874
2875
|
value: e.block.paragraphSpacing ?? h(ge).paragraphGap,
|
|
2875
2876
|
min: "0",
|
|
2876
2877
|
max: "64",
|
|
2877
2878
|
onInput: o[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2878
|
-
}, null, 42,
|
|
2879
|
+
}, null, 42, ea), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
2879
2880
|
_: 1
|
|
2880
2881
|
}, 8, ["label"]));
|
|
2881
2882
|
}
|
|
2882
2883
|
});
|
|
2883
2884
|
// src/utils/rebalanceColumnChildren.ts
|
|
2884
|
-
function
|
|
2885
|
+
function na(e, t) {
|
|
2885
2886
|
let n = Ne(t);
|
|
2886
2887
|
if (e.length === n) return e;
|
|
2887
2888
|
if (e.length < n) {
|
|
@@ -2892,23 +2893,23 @@ function ta(e, t) {
|
|
|
2892
2893
|
return [...r.slice(0, n - 1), a];
|
|
2893
2894
|
}
|
|
2894
2895
|
// src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2895
|
-
var
|
|
2896
|
+
var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
2896
2897
|
key: 0,
|
|
2897
2898
|
value: "custom"
|
|
2898
|
-
},
|
|
2899
|
+
}, sa = { class: "tpl:flex tpl:gap-2" }, ca = [
|
|
2899
2900
|
"value",
|
|
2900
2901
|
"aria-label",
|
|
2901
2902
|
"onChange"
|
|
2902
|
-
],
|
|
2903
|
+
], la = {
|
|
2903
2904
|
key: 3,
|
|
2904
2905
|
class: "tpl:mb-3.5"
|
|
2905
|
-
},
|
|
2906
|
+
}, ua = {
|
|
2906
2907
|
key: 0,
|
|
2907
2908
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2908
|
-
},
|
|
2909
|
+
}, da = {
|
|
2909
2910
|
key: 1,
|
|
2910
2911
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2911
|
-
},
|
|
2912
|
+
}, fa = /* @__PURE__ */ r({
|
|
2912
2913
|
__name: "SectionToolbar",
|
|
2913
2914
|
props: { block: {} },
|
|
2914
2915
|
emits: ["update"],
|
|
@@ -2954,7 +2955,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
2954
2955
|
function N(e) {
|
|
2955
2956
|
let t = e.target.value;
|
|
2956
2957
|
if (t === "custom") return;
|
|
2957
|
-
let i = t, a =
|
|
2958
|
+
let i = t, a = na(n.block.children, i);
|
|
2958
2959
|
r("update", {
|
|
2959
2960
|
columns: i,
|
|
2960
2961
|
children: a,
|
|
@@ -2988,10 +2989,10 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
2988
2989
|
right: 20,
|
|
2989
2990
|
bottom: 20,
|
|
2990
2991
|
left: 20
|
|
2991
|
-
} } }) : r("update",
|
|
2992
|
+
} } }) : r("update", $n(n.block));
|
|
2992
2993
|
}
|
|
2993
2994
|
function ne(e) {
|
|
2994
|
-
r("update",
|
|
2995
|
+
r("update", Qn(n.block, e));
|
|
2995
2996
|
}
|
|
2996
2997
|
function H(e) {
|
|
2997
2998
|
r("update", { wrapper: {
|
|
@@ -3006,20 +3007,20 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3006
3007
|
H({ borderRadius: e });
|
|
3007
3008
|
}
|
|
3008
3009
|
return (t, n) => (i(), p(D, null, [
|
|
3009
|
-
b("div",
|
|
3010
|
+
b("div", ra, [b("label", { class: g(h(V)) }, x(h(o).section.columns), 3), b("select", {
|
|
3010
3011
|
class: g(h(B)),
|
|
3011
3012
|
value: j.value,
|
|
3012
3013
|
onChange: N
|
|
3013
3014
|
}, [(i(!0), p(D, null, c(T.value, (e) => (i(), p("option", {
|
|
3014
3015
|
key: e.value,
|
|
3015
3016
|
value: e.value
|
|
3016
|
-
}, x(e.label), 9,
|
|
3017
|
+
}, x(e.label), 9, aa))), 128)), O.value ? (i(), p("option", oa, x(h(o).section.columnsCustom), 1)) : _("", !0)], 42, ia)]),
|
|
3017
3018
|
E.value.length > 1 ? (i(), v(A, {
|
|
3018
3019
|
key: 0,
|
|
3019
3020
|
path: "columnWidths",
|
|
3020
3021
|
label: h(o).section.columnWidths
|
|
3021
3022
|
}, {
|
|
3022
|
-
default: a(() => [b("div",
|
|
3023
|
+
default: a(() => [b("div", sa, [(i(!0), p(D, null, c(E.value, (e, t) => (i(), p("div", {
|
|
3023
3024
|
key: t,
|
|
3024
3025
|
class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:items-stretch"
|
|
3025
3026
|
}, [b("input", {
|
|
@@ -3029,7 +3030,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3029
3030
|
value: e,
|
|
3030
3031
|
"aria-label": h(s)(h(o).section.columnWidthAria, { index: t + 1 }),
|
|
3031
3032
|
onChange: (e) => I(t, e)
|
|
3032
|
-
}, null, 42,
|
|
3033
|
+
}, null, 42, ca), b("span", { class: g(h(L)) }, "%", 2)]))), 128))])]),
|
|
3033
3034
|
_: 1
|
|
3034
3035
|
}, 8, ["label"])) : _("", !0),
|
|
3035
3036
|
e.block.columns === "1" ? _("", !0) : (i(), v(A, {
|
|
@@ -3052,7 +3053,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3052
3053
|
])]),
|
|
3053
3054
|
_: 1
|
|
3054
3055
|
}, 8, ["label"])),
|
|
3055
|
-
k(
|
|
3056
|
+
k(Lt, {
|
|
3056
3057
|
path: "borderRadius",
|
|
3057
3058
|
"model-value": e.block.borderRadius,
|
|
3058
3059
|
label: h(o).section.borderRadius,
|
|
@@ -3060,14 +3061,14 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3060
3061
|
"testid-prefix": "section",
|
|
3061
3062
|
"onUpdate:modelValue": R
|
|
3062
3063
|
}, null, 8, ["model-value", "label"]),
|
|
3063
|
-
w.value ? _("", !0) : (i(), v(
|
|
3064
|
+
w.value ? _("", !0) : (i(), v(Pt, {
|
|
3064
3065
|
key: 2,
|
|
3065
3066
|
path: "border",
|
|
3066
3067
|
"model-value": e.block.border,
|
|
3067
3068
|
"testid-prefix": "section",
|
|
3068
3069
|
"onUpdate:modelValue": n[1] ||= (e) => r("update", { border: e })
|
|
3069
3070
|
}, null, 8, ["model-value"])),
|
|
3070
|
-
m.value ? (i(), p("div",
|
|
3071
|
+
m.value ? (i(), p("div", la, [
|
|
3071
3072
|
k(A, {
|
|
3072
3073
|
path: "wrapper",
|
|
3073
3074
|
label: h(o).section.wrapperEnable
|
|
@@ -3088,8 +3089,8 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3088
3089
|
])]),
|
|
3089
3090
|
_: 1
|
|
3090
3091
|
}, 8, ["label"]),
|
|
3091
|
-
S.value ? (i(), p("p",
|
|
3092
|
-
e.block.wrapper ? (i(), p("div",
|
|
3092
|
+
S.value ? (i(), p("p", ua, x(h(o).section.wrapperLayoutConflict), 1)) : _("", !0),
|
|
3093
|
+
e.block.wrapper ? (i(), p("div", da, [
|
|
3093
3094
|
k(A, {
|
|
3094
3095
|
path: "wrapper.fullWidth",
|
|
3095
3096
|
label: h(o).blockSettings.fullWidthBackground
|
|
@@ -3124,7 +3125,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3124
3125
|
path: "wrapper.backgroundImage",
|
|
3125
3126
|
label: h(o).blockSettings.backgroundImage
|
|
3126
3127
|
}, {
|
|
3127
|
-
default: a(() => [k(
|
|
3128
|
+
default: a(() => [k(Mn, {
|
|
3128
3129
|
"hide-label": "",
|
|
3129
3130
|
"model-value": e.block.wrapper.backgroundImage,
|
|
3130
3131
|
"testid-prefix": "section-wrapper",
|
|
@@ -3132,7 +3133,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3132
3133
|
}, null, 8, ["model-value"])]),
|
|
3133
3134
|
_: 1
|
|
3134
3135
|
}, 8, ["label"]),
|
|
3135
|
-
k(
|
|
3136
|
+
k(xn, {
|
|
3136
3137
|
path: "wrapper.padding",
|
|
3137
3138
|
label: h(o).blockSettings.padding,
|
|
3138
3139
|
"model-value": e.block.wrapper.padding ?? {
|
|
@@ -3143,7 +3144,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3143
3144
|
},
|
|
3144
3145
|
"onUpdate:modelValue": re
|
|
3145
3146
|
}, null, 8, ["label", "model-value"]),
|
|
3146
|
-
k(
|
|
3147
|
+
k(Lt, {
|
|
3147
3148
|
path: "wrapper.borderRadius",
|
|
3148
3149
|
"model-value": e.block.wrapper.borderRadius,
|
|
3149
3150
|
label: h(o).section.borderRadius,
|
|
@@ -3155,7 +3156,90 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3155
3156
|
])) : _("", !0)
|
|
3156
3157
|
], 64));
|
|
3157
3158
|
}
|
|
3158
|
-
}),
|
|
3159
|
+
}), pa = /* @__PURE__ */ r({
|
|
3160
|
+
__name: "SocialCustomIconFields",
|
|
3161
|
+
props: { icon: {} },
|
|
3162
|
+
emits: ["update"],
|
|
3163
|
+
setup(e, { emit: t }) {
|
|
3164
|
+
let n = e, r = t, { t: o } = Q(), { syntax: s } = St(), c = E(), l = C(() => typeof n.icon.imageUrl == "string" ? n.icon.imageUrl : ""), u = C(() => Ee(l.value, s));
|
|
3165
|
+
function d(e) {
|
|
3166
|
+
return n.icon.id.includes(".") ? void 0 : `icons.${n.icon.id}.${e}`;
|
|
3167
|
+
}
|
|
3168
|
+
function f(e) {
|
|
3169
|
+
e !== l.value && r("update", {
|
|
3170
|
+
...n.icon,
|
|
3171
|
+
imageUrl: e
|
|
3172
|
+
});
|
|
3173
|
+
}
|
|
3174
|
+
function g(e) {
|
|
3175
|
+
r("update", {
|
|
3176
|
+
...n.icon,
|
|
3177
|
+
alt: e
|
|
3178
|
+
});
|
|
3179
|
+
}
|
|
3180
|
+
function y(e) {
|
|
3181
|
+
let t = {
|
|
3182
|
+
...n.icon,
|
|
3183
|
+
imageUrl: e.url
|
|
3184
|
+
};
|
|
3185
|
+
e.alt && (t.alt = e.alt), r("update", t);
|
|
3186
|
+
}
|
|
3187
|
+
let { canBrowse: S, isUploading: w, showOverlay: T, openMediaBrowser: O } = ft({
|
|
3188
|
+
target: c,
|
|
3189
|
+
blocked: u,
|
|
3190
|
+
apply: y
|
|
3191
|
+
});
|
|
3192
|
+
return (t, n) => (i(), p(D, null, [k(A, {
|
|
3193
|
+
path: d("imageUrl"),
|
|
3194
|
+
label: h(o).image.imageUrl
|
|
3195
|
+
}, {
|
|
3196
|
+
default: a(() => [b("div", {
|
|
3197
|
+
ref_key: "dropZoneRef",
|
|
3198
|
+
ref: c,
|
|
3199
|
+
class: "tpl:relative"
|
|
3200
|
+
}, [
|
|
3201
|
+
h(T) ? (i(), v(rt, {
|
|
3202
|
+
key: 0,
|
|
3203
|
+
uploading: h(w)
|
|
3204
|
+
}, null, 8, ["uploading"])) : _("", !0),
|
|
3205
|
+
k(N, {
|
|
3206
|
+
"model-value": l.value,
|
|
3207
|
+
type: "url",
|
|
3208
|
+
placeholder: h(o).image.imageUrlPlaceholder,
|
|
3209
|
+
"onUpdate:modelValue": f
|
|
3210
|
+
}, null, 8, ["model-value", "placeholder"]),
|
|
3211
|
+
h(S) ? (i(), p("button", {
|
|
3212
|
+
key: 1,
|
|
3213
|
+
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",
|
|
3214
|
+
style: {
|
|
3215
|
+
"border-color": "var(--tpl-border)",
|
|
3216
|
+
color: "var(--tpl-primary)",
|
|
3217
|
+
"background-color": "var(--tpl-bg)"
|
|
3218
|
+
},
|
|
3219
|
+
onClick: n[0] ||= (...e) => h(O) && h(O)(...e)
|
|
3220
|
+
}, [k(h(de), {
|
|
3221
|
+
size: 14,
|
|
3222
|
+
"stroke-width": 1.5
|
|
3223
|
+
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)
|
|
3224
|
+
], 512)]),
|
|
3225
|
+
_: 1
|
|
3226
|
+
}, 8, ["path", "label"]), k(A, {
|
|
3227
|
+
path: d("alt"),
|
|
3228
|
+
label: h(o).image.altText
|
|
3229
|
+
}, {
|
|
3230
|
+
default: a(() => [k(N, {
|
|
3231
|
+
"model-value": e.icon.alt ?? "",
|
|
3232
|
+
type: "text",
|
|
3233
|
+
placeholder: h(o).image.altTextPlaceholder,
|
|
3234
|
+
"onUpdate:modelValue": g
|
|
3235
|
+
}, null, 8, ["model-value", "placeholder"])]),
|
|
3236
|
+
_: 1
|
|
3237
|
+
}, 8, ["path", "label"])], 64));
|
|
3238
|
+
}
|
|
3239
|
+
}), ma = { class: "tpl:mb-3.5" }, ha = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ga = { class: "tpl:flex tpl:items-center tpl:gap-2" }, _a = ["value", "onChange"], va = ["value"], ya = { value: "custom" }, ba = ["title", "onClick"], xa = {
|
|
3240
|
+
key: 1,
|
|
3241
|
+
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
3242
|
+
}, Sa = ["value"], Ca = { value: "solid" }, wa = { value: "outlined" }, Ta = { value: "rounded" }, Ea = { value: "square" }, Da = { value: "circle" }, Oa = { value: "plain" }, ka = ["value"], Aa = { value: "brand" }, ja = { value: "dark" }, Ma = { value: "light" }, Na = { class: "tpl:flex tpl:items-stretch" }, Pa = ["value"], Fa = /* @__PURE__ */ r({
|
|
3159
3243
|
__name: "SocialToolbar",
|
|
3160
3244
|
props: { block: {} },
|
|
3161
3245
|
emits: ["update"],
|
|
@@ -3172,57 +3256,83 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3172
3256
|
};
|
|
3173
3257
|
r("update", { icons: [...n.block.icons, e] });
|
|
3174
3258
|
}
|
|
3175
|
-
function u(e
|
|
3176
|
-
|
|
3259
|
+
function u(e) {
|
|
3260
|
+
r("update", { icons: n.block.icons.map((t) => t.id === e.id ? e : t) });
|
|
3261
|
+
}
|
|
3262
|
+
function d(e, t, i) {
|
|
3263
|
+
r("update", { icons: n.block.icons.map((n) => n.id === e ? {
|
|
3177
3264
|
...n,
|
|
3178
3265
|
[t]: i
|
|
3179
|
-
} : n);
|
|
3180
|
-
r("update", { icons: a });
|
|
3266
|
+
} : n) });
|
|
3181
3267
|
}
|
|
3182
|
-
function
|
|
3268
|
+
function f(e) {
|
|
3269
|
+
return e.platform === "custom";
|
|
3270
|
+
}
|
|
3271
|
+
function y(e, t) {
|
|
3272
|
+
t !== e.platform && u(t === "custom" ? {
|
|
3273
|
+
id: e.id,
|
|
3274
|
+
platform: "custom",
|
|
3275
|
+
url: e.url,
|
|
3276
|
+
imageUrl: ""
|
|
3277
|
+
} : {
|
|
3278
|
+
id: e.id,
|
|
3279
|
+
platform: t,
|
|
3280
|
+
url: e.url
|
|
3281
|
+
});
|
|
3282
|
+
}
|
|
3283
|
+
function S(e) {
|
|
3183
3284
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
3184
3285
|
}
|
|
3185
3286
|
return (t, n) => (i(), p(D, null, [
|
|
3186
|
-
b("div",
|
|
3287
|
+
b("div", ma, [b("label", { class: g(h(V)) }, x(h(o).social.icons), 3), b("div", ha, [(i(!0), p(D, null, c(e.block.icons, (e) => (i(), p("div", {
|
|
3187
3288
|
key: e.id,
|
|
3188
3289
|
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"
|
|
3189
|
-
}, [
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3290
|
+
}, [
|
|
3291
|
+
b("div", ga, [k(A, {
|
|
3292
|
+
path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
|
|
3293
|
+
label: h(o).social.icons
|
|
3294
|
+
}, {
|
|
3295
|
+
default: a(() => [b("select", {
|
|
3296
|
+
"data-testid": "social-platform-select",
|
|
3297
|
+
class: g([h(B), "tpl:flex-1"]),
|
|
3298
|
+
value: e.platform,
|
|
3299
|
+
onChange: (t) => y(e, t.target.value)
|
|
3300
|
+
}, [(i(!0), p(D, null, c(h(ut), (e) => (i(), p("option", {
|
|
3301
|
+
key: e,
|
|
3302
|
+
value: e
|
|
3303
|
+
}, x(h(o).social.platforms[e]), 9, va))), 128)), b("option", ya, x(h(o).social.platforms.custom), 1)], 42, _a)]),
|
|
3304
|
+
_: 2
|
|
3305
|
+
}, 1032, ["path", "label"]), b("button", {
|
|
3306
|
+
class: g(h(I)),
|
|
3307
|
+
title: h(o).social.removeIcon,
|
|
3308
|
+
onClick: (t) => S(e.id)
|
|
3309
|
+
}, [k(h(pe), {
|
|
3310
|
+
size: 14,
|
|
3311
|
+
"stroke-width": 2
|
|
3312
|
+
})], 10, ba)]),
|
|
3313
|
+
f(e) ? (i(), v(pa, {
|
|
3314
|
+
key: 0,
|
|
3315
|
+
icon: e,
|
|
3316
|
+
onUpdate: u
|
|
3317
|
+
}, null, 8, ["icon"])) : _("", !0),
|
|
3318
|
+
k(A, {
|
|
3319
|
+
path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
|
|
3320
|
+
label: h(o).button.url
|
|
3321
|
+
}, {
|
|
3322
|
+
default: a(() => [k(N, {
|
|
3323
|
+
"model-value": e.url,
|
|
3324
|
+
type: "url",
|
|
3325
|
+
placeholder: h(o).social.urlPlaceholder,
|
|
3326
|
+
"onUpdate:modelValue": (t) => d(e.id, "url", t)
|
|
3327
|
+
}, null, 8, [
|
|
3328
|
+
"model-value",
|
|
3329
|
+
"placeholder",
|
|
3330
|
+
"onUpdate:modelValue"
|
|
3331
|
+
])]),
|
|
3332
|
+
_: 2
|
|
3333
|
+
}, 1032, ["path", "label"]),
|
|
3334
|
+
f(e) ? (i(), p("p", xa, x(h(o).social.customIconHint), 1)) : _("", !0)
|
|
3335
|
+
]))), 128)), b("button", {
|
|
3226
3336
|
class: g(h(R)),
|
|
3227
3337
|
onClick: l
|
|
3228
3338
|
}, [k(h(U), {
|
|
@@ -3239,13 +3349,13 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3239
3349
|
value: e.block.iconStyle,
|
|
3240
3350
|
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
3241
3351
|
}, [
|
|
3242
|
-
b("option",
|
|
3243
|
-
b("option",
|
|
3244
|
-
b("option",
|
|
3245
|
-
b("option",
|
|
3246
|
-
b("option",
|
|
3247
|
-
b("option",
|
|
3248
|
-
], 42,
|
|
3352
|
+
b("option", Ca, x(h(o).social.styleSolid), 1),
|
|
3353
|
+
b("option", wa, x(h(o).social.styleOutlined), 1),
|
|
3354
|
+
b("option", Ta, x(h(o).social.styleRounded), 1),
|
|
3355
|
+
b("option", Ea, x(h(o).social.styleSquare), 1),
|
|
3356
|
+
b("option", Da, x(h(o).social.styleCircle), 1),
|
|
3357
|
+
b("option", Oa, x(h(o).social.stylePlain), 1)
|
|
3358
|
+
], 42, Sa)]),
|
|
3249
3359
|
_: 1
|
|
3250
3360
|
}, 8, ["label"]),
|
|
3251
3361
|
k(A, {
|
|
@@ -3259,10 +3369,10 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3259
3369
|
value: e.block.iconTone ?? "brand",
|
|
3260
3370
|
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
3261
3371
|
}, [
|
|
3262
|
-
b("option",
|
|
3263
|
-
b("option",
|
|
3264
|
-
b("option",
|
|
3265
|
-
], 42,
|
|
3372
|
+
b("option", Aa, x(h(o).social.colorBrand), 1),
|
|
3373
|
+
b("option", ja, x(h(o).social.colorDark), 1),
|
|
3374
|
+
b("option", Ma, x(h(o).social.colorLight), 1)
|
|
3375
|
+
], 42, ka)]),
|
|
3266
3376
|
_: 1
|
|
3267
3377
|
}, 8, ["label"]),
|
|
3268
3378
|
k(A, {
|
|
@@ -3295,14 +3405,14 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3295
3405
|
class: "tpl:mb-3.5",
|
|
3296
3406
|
path: "spacing"
|
|
3297
3407
|
}, {
|
|
3298
|
-
default: a(() => [b("div",
|
|
3408
|
+
default: a(() => [b("div", Na, [b("input", {
|
|
3299
3409
|
type: "number",
|
|
3300
3410
|
class: g(h(z)),
|
|
3301
3411
|
value: e.block.spacing,
|
|
3302
3412
|
min: "0",
|
|
3303
3413
|
max: "50",
|
|
3304
3414
|
onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
|
|
3305
|
-
}, null, 42,
|
|
3415
|
+
}, null, 42, Pa), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3306
3416
|
_: 1
|
|
3307
3417
|
}, 8, ["label"]),
|
|
3308
3418
|
k(A, {
|
|
@@ -3335,7 +3445,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3335
3445
|
}, 8, ["label"])
|
|
3336
3446
|
], 64));
|
|
3337
3447
|
}
|
|
3338
|
-
}),
|
|
3448
|
+
}), Ia = { class: "tpl:flex tpl:items-stretch" }, La = ["value"], Ra = ["value"], za = /* @__PURE__ */ r({
|
|
3339
3449
|
__name: "SpacerToolbar",
|
|
3340
3450
|
props: { block: {} },
|
|
3341
3451
|
emits: ["update"],
|
|
@@ -3346,25 +3456,25 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3346
3456
|
class: "tpl:mb-3.5",
|
|
3347
3457
|
path: "height"
|
|
3348
3458
|
}, {
|
|
3349
|
-
default: a(() => [b("div",
|
|
3459
|
+
default: a(() => [b("div", Ia, [b("input", {
|
|
3350
3460
|
type: "number",
|
|
3351
3461
|
class: g(h(z)),
|
|
3352
3462
|
value: e.block.height,
|
|
3353
3463
|
min: "10",
|
|
3354
3464
|
max: "100",
|
|
3355
3465
|
onInput: o[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3356
|
-
}, null, 42,
|
|
3466
|
+
}, null, 42, La), b("span", { class: g(h(L)) }, "px", 2)]), b("input", {
|
|
3357
3467
|
type: "range",
|
|
3358
3468
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
3359
3469
|
value: e.block.height,
|
|
3360
3470
|
min: "10",
|
|
3361
3471
|
max: "100",
|
|
3362
3472
|
onInput: o[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3363
|
-
}, null, 40,
|
|
3473
|
+
}, null, 40, Ra)]),
|
|
3364
3474
|
_: 1
|
|
3365
3475
|
}, 8, ["label"]));
|
|
3366
3476
|
}
|
|
3367
|
-
}),
|
|
3477
|
+
}), Ba = { class: "tpl:mb-3.5" }, Va = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ha = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ua = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Wa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ga = ["disabled"], Ka = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, qa = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ja = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ya = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Xa = ["disabled"], Za = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Qa = { class: "tpl:flex tpl:items-stretch" }, $a = ["value"], eo = { class: "tpl:flex tpl:items-stretch" }, to = ["value"], no = ["value"], ro = { value: "" }, io = ["value"], ao = { class: "tpl:flex tpl:items-stretch" }, oo = ["value"], so = /* @__PURE__ */ r({
|
|
3368
3478
|
__name: "TableToolbar",
|
|
3369
3479
|
props: {
|
|
3370
3480
|
block: {},
|
|
@@ -3407,7 +3517,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3407
3517
|
r("update", { rows: t });
|
|
3408
3518
|
}
|
|
3409
3519
|
return (t, n) => (i(), p(D, null, [
|
|
3410
|
-
b("div",
|
|
3520
|
+
b("div", Ba, [b("label", { class: g(h(V)) }, x(h(o).table.dimensions), 3), b("div", Va, [b("div", Ha, [b("span", Ua, x(h(o).table.rows), 1), b("div", Wa, [
|
|
3411
3521
|
b("button", {
|
|
3412
3522
|
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",
|
|
3413
3523
|
disabled: e.block.rows.length <= 1,
|
|
@@ -3415,8 +3525,8 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3415
3525
|
}, [k(h(W), {
|
|
3416
3526
|
size: 12,
|
|
3417
3527
|
"stroke-width": 2
|
|
3418
|
-
})], 8,
|
|
3419
|
-
b("span",
|
|
3528
|
+
})], 8, Ga),
|
|
3529
|
+
b("span", Ka, x(e.block.rows.length), 1),
|
|
3420
3530
|
b("button", {
|
|
3421
3531
|
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)]",
|
|
3422
3532
|
onClick: u
|
|
@@ -3424,7 +3534,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3424
3534
|
size: 12,
|
|
3425
3535
|
"stroke-width": 2
|
|
3426
3536
|
})])
|
|
3427
|
-
])]), b("div",
|
|
3537
|
+
])]), b("div", qa, [b("span", Ja, x(h(o).table.columns), 1), b("div", Ya, [
|
|
3428
3538
|
b("button", {
|
|
3429
3539
|
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",
|
|
3430
3540
|
disabled: s.value <= 1,
|
|
@@ -3432,8 +3542,8 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3432
3542
|
}, [k(h(W), {
|
|
3433
3543
|
size: 12,
|
|
3434
3544
|
"stroke-width": 2
|
|
3435
|
-
})], 8,
|
|
3436
|
-
b("span",
|
|
3545
|
+
})], 8, Xa),
|
|
3546
|
+
b("span", Za, x(s.value), 1),
|
|
3437
3547
|
b("button", {
|
|
3438
3548
|
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)]",
|
|
3439
3549
|
onClick: f
|
|
@@ -3495,14 +3605,14 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3495
3605
|
class: "tpl:mb-3.5",
|
|
3496
3606
|
path: "borderWidth"
|
|
3497
3607
|
}, {
|
|
3498
|
-
default: a(() => [b("div",
|
|
3608
|
+
default: a(() => [b("div", Qa, [b("input", {
|
|
3499
3609
|
type: "number",
|
|
3500
3610
|
class: g(h(z)),
|
|
3501
3611
|
value: e.block.borderWidth,
|
|
3502
3612
|
min: "0",
|
|
3503
3613
|
max: "10",
|
|
3504
3614
|
onInput: n[5] ||= (e) => l("borderWidth", Number(e.target.value))
|
|
3505
|
-
}, null, 42,
|
|
3615
|
+
}, null, 42, $a), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3506
3616
|
_: 1
|
|
3507
3617
|
}, 8, ["label"]),
|
|
3508
3618
|
k(A, {
|
|
@@ -3510,14 +3620,14 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3510
3620
|
class: "tpl:mb-3.5",
|
|
3511
3621
|
path: "cellPadding"
|
|
3512
3622
|
}, {
|
|
3513
|
-
default: a(() => [b("div",
|
|
3623
|
+
default: a(() => [b("div", eo, [b("input", {
|
|
3514
3624
|
type: "number",
|
|
3515
3625
|
class: g(h(z)),
|
|
3516
3626
|
value: e.block.cellPadding,
|
|
3517
3627
|
min: "0",
|
|
3518
3628
|
max: "30",
|
|
3519
3629
|
onInput: n[6] ||= (e) => l("cellPadding", Number(e.target.value))
|
|
3520
|
-
}, null, 42,
|
|
3630
|
+
}, null, 42, to), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3521
3631
|
_: 1
|
|
3522
3632
|
}, 8, ["label"]),
|
|
3523
3633
|
k(A, {
|
|
@@ -3529,10 +3639,10 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3529
3639
|
class: g(h(B)),
|
|
3530
3640
|
value: h(ht)(e.block.fontFamily),
|
|
3531
3641
|
onChange: n[7] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
3532
|
-
}, [b("option",
|
|
3642
|
+
}, [b("option", ro, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3533
3643
|
key: e.value,
|
|
3534
3644
|
value: e.value
|
|
3535
|
-
}, x(e.label), 9,
|
|
3645
|
+
}, x(e.label), 9, io))), 128))], 42, no)]),
|
|
3536
3646
|
_: 1
|
|
3537
3647
|
}, 8, ["label"]),
|
|
3538
3648
|
k(A, {
|
|
@@ -3540,14 +3650,14 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3540
3650
|
class: "tpl:mb-3.5",
|
|
3541
3651
|
path: "fontSize"
|
|
3542
3652
|
}, {
|
|
3543
|
-
default: a(() => [b("div",
|
|
3653
|
+
default: a(() => [b("div", ao, [b("input", {
|
|
3544
3654
|
type: "number",
|
|
3545
3655
|
class: g(h(z)),
|
|
3546
3656
|
value: e.block.fontSize,
|
|
3547
3657
|
min: "10",
|
|
3548
3658
|
max: "32",
|
|
3549
3659
|
onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
|
|
3550
|
-
}, null, 42,
|
|
3660
|
+
}, null, 42, oo), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3551
3661
|
_: 1
|
|
3552
3662
|
}, 8, ["label"]),
|
|
3553
3663
|
k(A, {
|
|
@@ -3591,7 +3701,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3591
3701
|
}, 8, ["label"])
|
|
3592
3702
|
], 64));
|
|
3593
3703
|
}
|
|
3594
|
-
}),
|
|
3704
|
+
}), co = ["value"], lo = { value: 1 }, uo = { value: 2 }, fo = { value: 3 }, po = { value: 4 }, mo = ["value"], ho = { value: "" }, go = ["value"], _o = /* @__PURE__ */ r({
|
|
3595
3705
|
__name: "TitleToolbar",
|
|
3596
3706
|
props: {
|
|
3597
3707
|
block: {},
|
|
@@ -3614,11 +3724,11 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3614
3724
|
value: e.block.level,
|
|
3615
3725
|
onChange: n[0] ||= (e) => o("level", Number(e.target.value))
|
|
3616
3726
|
}, [
|
|
3617
|
-
b("option",
|
|
3618
|
-
b("option",
|
|
3619
|
-
b("option",
|
|
3620
|
-
b("option",
|
|
3621
|
-
], 42,
|
|
3727
|
+
b("option", lo, x(h(r).title.heading1), 1),
|
|
3728
|
+
b("option", uo, x(h(r).title.heading2), 1),
|
|
3729
|
+
b("option", fo, x(h(r).title.heading3), 1),
|
|
3730
|
+
b("option", po, x(h(r).title.heading4), 1)
|
|
3731
|
+
], 42, co)]),
|
|
3622
3732
|
_: 1
|
|
3623
3733
|
}, 8, ["label"]),
|
|
3624
3734
|
k(A, {
|
|
@@ -3630,10 +3740,10 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3630
3740
|
class: g(h(B)),
|
|
3631
3741
|
value: h(ht)(e.block.fontFamily),
|
|
3632
3742
|
onChange: n[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
3633
|
-
}, [b("option",
|
|
3743
|
+
}, [b("option", ho, x(h(r).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3634
3744
|
key: e.value,
|
|
3635
3745
|
value: e.value
|
|
3636
|
-
}, x(e.label), 9,
|
|
3746
|
+
}, x(e.label), 9, go))), 128))], 42, mo)]),
|
|
3637
3747
|
_: 1
|
|
3638
3748
|
}, 8, ["label"]),
|
|
3639
3749
|
k(A, {
|
|
@@ -3677,17 +3787,17 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3677
3787
|
}, 8, ["label"])
|
|
3678
3788
|
], 64));
|
|
3679
3789
|
}
|
|
3680
|
-
}),
|
|
3790
|
+
}), vo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yo = [
|
|
3681
3791
|
"value",
|
|
3682
3792
|
"placeholder",
|
|
3683
3793
|
"title"
|
|
3684
|
-
],
|
|
3794
|
+
], bo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xo = ["value"], So = { value: "full" }, Co = { value: "custom" }, wo = {
|
|
3685
3795
|
key: 0,
|
|
3686
3796
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3687
|
-
},
|
|
3797
|
+
}, To = ["value"], Eo = ["value"], Do = { value: "auto" }, Oo = { value: "custom" }, ko = {
|
|
3688
3798
|
key: 0,
|
|
3689
3799
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3690
|
-
},
|
|
3800
|
+
}, Ao = ["value"], jo = 350, Mo = 200, No = /* @__PURE__ */ r({
|
|
3691
3801
|
__name: "VideoToolbar",
|
|
3692
3802
|
props: { block: {} },
|
|
3693
3803
|
emits: ["update"],
|
|
@@ -3708,7 +3818,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3708
3818
|
function M(e) {
|
|
3709
3819
|
if (e === "custom") {
|
|
3710
3820
|
let e = n.block.width;
|
|
3711
|
-
(typeof e != "number" || d.includes(e)) && j("width",
|
|
3821
|
+
(typeof e != "number" || d.includes(e)) && j("width", jo);
|
|
3712
3822
|
} else j("width", e === "full" ? "full" : Number(e));
|
|
3713
3823
|
}
|
|
3714
3824
|
function F(e) {
|
|
@@ -3716,7 +3826,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3716
3826
|
!Number.isFinite(t) || t <= 0 || j("width", t);
|
|
3717
3827
|
}
|
|
3718
3828
|
function I(e) {
|
|
3719
|
-
j("height", e === "custom" ?
|
|
3829
|
+
j("height", e === "custom" ? Mo : void 0);
|
|
3720
3830
|
}
|
|
3721
3831
|
function ee(e) {
|
|
3722
3832
|
let t = Number(e);
|
|
@@ -3763,7 +3873,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3763
3873
|
class: "tpl:mb-3.5",
|
|
3764
3874
|
path: "placeholderUrl"
|
|
3765
3875
|
}, {
|
|
3766
|
-
label: a(() => [m(x(h(o).video.placeholderUrl) + " ", 1), b("span",
|
|
3876
|
+
label: a(() => [m(x(h(o).video.placeholderUrl) + " ", 1), b("span", vo, x(h(o).video.optional), 1)]),
|
|
3767
3877
|
default: a(() => [b("input", {
|
|
3768
3878
|
type: "url",
|
|
3769
3879
|
class: g(h(B)),
|
|
@@ -3771,14 +3881,14 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3771
3881
|
placeholder: h(o).video.placeholderUrlPlaceholder,
|
|
3772
3882
|
title: h(o).video.placeholderUrlTooltip,
|
|
3773
3883
|
onInput: n[2] ||= (e) => j("placeholderUrl", e.target.value)
|
|
3774
|
-
}, null, 42,
|
|
3884
|
+
}, null, 42, yo)]),
|
|
3775
3885
|
_: 1
|
|
3776
3886
|
})) : _("", !0),
|
|
3777
3887
|
k(A, {
|
|
3778
3888
|
class: "tpl:mb-3.5",
|
|
3779
3889
|
path: "thumbnailUrl"
|
|
3780
3890
|
}, {
|
|
3781
|
-
label: a(() => [m(x(h(o).video.customThumbnail) + " ", 1), b("span",
|
|
3891
|
+
label: a(() => [m(x(h(o).video.customThumbnail) + " ", 1), b("span", bo, x(h(o).video.optional), 1)]),
|
|
3782
3892
|
default: a(() => [k(N, {
|
|
3783
3893
|
"model-value": e.block.thumbnailUrl,
|
|
3784
3894
|
type: "url",
|
|
@@ -3828,19 +3938,19 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3828
3938
|
value: S.value,
|
|
3829
3939
|
onChange: n[5] ||= (e) => M(e.target.value)
|
|
3830
3940
|
}, [
|
|
3831
|
-
b("option",
|
|
3941
|
+
b("option", So, x(h(o).video.fullWidth), 1),
|
|
3832
3942
|
n[10] ||= b("option", { value: "300" }, "300px", -1),
|
|
3833
3943
|
n[11] ||= b("option", { value: "400" }, "400px", -1),
|
|
3834
3944
|
n[12] ||= b("option", { value: "500" }, "500px", -1),
|
|
3835
|
-
b("option",
|
|
3836
|
-
], 42,
|
|
3945
|
+
b("option", Co, x(h(o).video.widthCustom), 1)
|
|
3946
|
+
], 42, xo), S.value === "custom" ? (i(), p("div", wo, [b("input", {
|
|
3837
3947
|
type: "number",
|
|
3838
3948
|
"data-testid": "video-width-input",
|
|
3839
3949
|
class: g(h(z)),
|
|
3840
3950
|
value: e.block.width,
|
|
3841
3951
|
min: "20",
|
|
3842
3952
|
onInput: n[6] ||= (e) => F(e.target.value)
|
|
3843
|
-
}, null, 42,
|
|
3953
|
+
}, null, 42, To), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
3844
3954
|
_: 1
|
|
3845
3955
|
}, 8, ["label"]),
|
|
3846
3956
|
k(A, {
|
|
@@ -3853,14 +3963,14 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3853
3963
|
"data-testid": "video-height-mode",
|
|
3854
3964
|
value: w.value,
|
|
3855
3965
|
onChange: n[7] ||= (e) => I(e.target.value)
|
|
3856
|
-
}, [b("option",
|
|
3966
|
+
}, [b("option", Do, x(h(o).video.heightAuto), 1), b("option", Oo, x(h(o).video.heightCustom), 1)], 42, Eo), w.value === "custom" ? (i(), p("div", ko, [b("input", {
|
|
3857
3967
|
type: "number",
|
|
3858
3968
|
"data-testid": "video-height-input",
|
|
3859
3969
|
class: g(h(z)),
|
|
3860
3970
|
value: e.block.height,
|
|
3861
3971
|
min: "20",
|
|
3862
3972
|
onInput: n[8] ||= (e) => ee(e.target.value)
|
|
3863
|
-
}, null, 42,
|
|
3973
|
+
}, null, 42, Ao), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
3864
3974
|
_: 1
|
|
3865
3975
|
}, 8, ["label"]),
|
|
3866
3976
|
k(A, {
|
|
@@ -3890,7 +4000,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3890
4000
|
}, 8, ["label"])
|
|
3891
4001
|
], 64));
|
|
3892
4002
|
}
|
|
3893
|
-
}),
|
|
4003
|
+
}), Po = ["aria-label"], Fo = ["disabled", "inert"], Io = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Lo = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Ro = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, zo = { class: "tpl:flex tpl:gap-1" }, Bo = ["title"], Vo = ["title"], Ho = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Uo = /*@__PURE__*/ r({
|
|
3894
4004
|
__name: "Toolbar",
|
|
3895
4005
|
props: { block: {} },
|
|
3896
4006
|
emits: [
|
|
@@ -3899,7 +4009,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3899
4009
|
"duplicate"
|
|
3900
4010
|
],
|
|
3901
4011
|
setup(e, { emit: t }) {
|
|
3902
|
-
let r = f(() => import("./CountdownToolbar-
|
|
4012
|
+
let r = f(() => import("./CountdownToolbar-BBiK9EaU.js")), a = e, o = t, { t: s } = Q(), c = yt(), u = Xe(Ke, "Toolbar"), d = l(qe, []), m = C(() => a.block.type), g = C(() => Ie(a.block)), y = C(() => {
|
|
3903
4013
|
if (g.value) return d.find((e) => e.type === a.block.customType);
|
|
3904
4014
|
}), S = C(() => g.value ? y.value?.name ?? a.block.customType : tt(m.value, s)), w = C(() => mt(u.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
3905
4015
|
function T(e) {
|
|
@@ -3913,7 +4023,7 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3913
4023
|
disabled: !h(c),
|
|
3914
4024
|
inert: !h(c),
|
|
3915
4025
|
class: "tpl:contents"
|
|
3916
|
-
}, [b("div",
|
|
4026
|
+
}, [b("div", Io, [b("div", Lo, [h(Ct)[m.value] ? (i(), v(n(h(Ct)[m.value]), {
|
|
3917
4027
|
key: 0,
|
|
3918
4028
|
size: 16,
|
|
3919
4029
|
"stroke-width": 1.5
|
|
@@ -3921,74 +4031,74 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3921
4031
|
key: 1,
|
|
3922
4032
|
size: 16,
|
|
3923
4033
|
"stroke-width": 1.5
|
|
3924
|
-
})) : _("", !0), b("h3",
|
|
4034
|
+
})) : _("", !0), b("h3", Ro, x(S.value), 1)]), b("div", zo, [b("button", {
|
|
3925
4035
|
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)]",
|
|
3926
4036
|
title: h(s).toolbar.duplicate,
|
|
3927
4037
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
3928
4038
|
}, [k(h(ie), {
|
|
3929
4039
|
size: 14,
|
|
3930
4040
|
"stroke-width": 2
|
|
3931
|
-
})], 8,
|
|
4041
|
+
})], 8, Bo), b("button", {
|
|
3932
4042
|
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)]",
|
|
3933
4043
|
title: h(s).toolbar.delete,
|
|
3934
4044
|
onClick: a[1] ||= (e) => o("delete")
|
|
3935
4045
|
}, [k(h(G), {
|
|
3936
4046
|
size: 14,
|
|
3937
4047
|
"stroke-width": 2
|
|
3938
|
-
})], 8,
|
|
4048
|
+
})], 8, Vo)])]), b("div", Ho, [g.value ? (i(), v(di, {
|
|
3939
4049
|
key: 0,
|
|
3940
4050
|
block: e.block,
|
|
3941
4051
|
onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
|
|
3942
4052
|
onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
|
|
3943
|
-
}, null, 8, ["block"])) : m.value === "section" ? (i(), v(
|
|
4053
|
+
}, null, 8, ["block"])) : m.value === "section" ? (i(), v(fa, {
|
|
3944
4054
|
key: 1,
|
|
3945
4055
|
block: e.block,
|
|
3946
4056
|
onUpdate: T
|
|
3947
|
-
}, null, 8, ["block"])) : m.value === "title" ? (i(), v(
|
|
4057
|
+
}, null, 8, ["block"])) : m.value === "title" ? (i(), v(_o, {
|
|
3948
4058
|
key: 2,
|
|
3949
4059
|
block: e.block,
|
|
3950
4060
|
"font-families": w.value,
|
|
3951
4061
|
onUpdate: T
|
|
3952
|
-
}, null, 8, ["block", "font-families"])) : m.value === "paragraph" ? (i(), v(
|
|
4062
|
+
}, null, 8, ["block", "font-families"])) : m.value === "paragraph" ? (i(), v(ta, {
|
|
3953
4063
|
key: 3,
|
|
3954
4064
|
block: e.block,
|
|
3955
4065
|
onUpdate: T
|
|
3956
|
-
}, null, 8, ["block"])) : m.value === "image" ? (i(), v(
|
|
4066
|
+
}, null, 8, ["block"])) : m.value === "image" ? (i(), v(Vi, {
|
|
3957
4067
|
key: 4,
|
|
3958
4068
|
block: e.block,
|
|
3959
4069
|
onUpdate: T
|
|
3960
|
-
}, null, 8, ["block"])) : m.value === "video" ? (i(), v(
|
|
4070
|
+
}, null, 8, ["block"])) : m.value === "video" ? (i(), v(No, {
|
|
3961
4071
|
key: 5,
|
|
3962
4072
|
block: e.block,
|
|
3963
4073
|
onUpdate: T
|
|
3964
|
-
}, null, 8, ["block"])) : m.value === "button" ? (i(), v(
|
|
4074
|
+
}, null, 8, ["block"])) : m.value === "button" ? (i(), v(Qt, {
|
|
3965
4075
|
key: 6,
|
|
3966
4076
|
block: e.block,
|
|
3967
4077
|
"font-families": w.value,
|
|
3968
4078
|
onUpdate: T
|
|
3969
|
-
}, null, 8, ["block", "font-families"])) : m.value === "divider" ? (i(), v(
|
|
4079
|
+
}, null, 8, ["block", "font-families"])) : m.value === "divider" ? (i(), v(mi, {
|
|
3970
4080
|
key: 7,
|
|
3971
4081
|
block: e.block,
|
|
3972
4082
|
onUpdate: T
|
|
3973
|
-
}, null, 8, ["block"])) : m.value === "social" ? (i(), v(
|
|
4083
|
+
}, null, 8, ["block"])) : m.value === "social" ? (i(), v(Fa, {
|
|
3974
4084
|
key: 8,
|
|
3975
4085
|
block: e.block,
|
|
3976
4086
|
onUpdate: T
|
|
3977
|
-
}, null, 8, ["block"])) : m.value === "menu" ? (i(), v(
|
|
4087
|
+
}, null, 8, ["block"])) : m.value === "menu" ? (i(), v(Qi, {
|
|
3978
4088
|
key: 9,
|
|
3979
4089
|
block: e.block,
|
|
3980
4090
|
"font-families": w.value,
|
|
3981
4091
|
onUpdate: T
|
|
3982
|
-
}, null, 8, ["block", "font-families"])) : m.value === "table" ? (i(), v(
|
|
4092
|
+
}, null, 8, ["block", "font-families"])) : m.value === "table" ? (i(), v(so, {
|
|
3983
4093
|
key: 10,
|
|
3984
4094
|
block: e.block,
|
|
3985
4095
|
"font-families": w.value,
|
|
3986
4096
|
onUpdate: T
|
|
3987
|
-
}, null, 8, ["block", "font-families"])) : m.value === "spacer" ? (i(), v(
|
|
4097
|
+
}, null, 8, ["block", "font-families"])) : m.value === "spacer" ? (i(), v(za, {
|
|
3988
4098
|
key: 11,
|
|
3989
4099
|
block: e.block,
|
|
3990
4100
|
onUpdate: T
|
|
3991
|
-
}, null, 8, ["block"])) : m.value === "html" ? (i(), v(
|
|
4101
|
+
}, null, 8, ["block"])) : m.value === "html" ? (i(), v(_i, {
|
|
3992
4102
|
key: 12,
|
|
3993
4103
|
block: e.block,
|
|
3994
4104
|
onUpdate: T
|
|
@@ -3997,13 +4107,13 @@ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
|
3997
4107
|
block: e.block,
|
|
3998
4108
|
"font-families": w.value,
|
|
3999
4109
|
onUpdate: T
|
|
4000
|
-
}, null, 8, ["block", "font-families"])) : _("", !0), k(
|
|
4110
|
+
}, null, 8, ["block", "font-families"])) : _("", !0), k(Tr, {
|
|
4001
4111
|
block: e.block,
|
|
4002
4112
|
"is-first-section": m.value === "paragraph",
|
|
4003
4113
|
onUpdate: T
|
|
4004
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
4114
|
+
}, null, 8, ["block", "is-first-section"])])], 8, Fo)], 8, Po));
|
|
4005
4115
|
}
|
|
4006
|
-
}),
|
|
4007
|
-
export {
|
|
4116
|
+
}), Wo = /* @__PURE__ */ e({ default: () => Go }), Go = /*#__PURE__*/ _t(Uo, [["__scopeId", "data-v-206f038f"]]);
|
|
4117
|
+
export { Go as default, Ot as n, $ as r, Wo as t };
|
|
4008
4118
|
|
|
4009
|
-
//# sourceMappingURL=Toolbar-
|
|
4119
|
+
//# sourceMappingURL=Toolbar-HCxD4Ifc.js.map
|