@templatical/editor 0.59.2 → 0.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-BhWHOOKX.js → AiAltTextPopover-DiIaqDtB.js} +1 -1
- package/dist/{AiAltTextReview-CmW7pLmo.js → AiAltTextReview-DIe0WBbj.js} +1 -1
- package/dist/{AiChatPanel-CV0mCtad.js → AiChatPanel-aj2TPO9F.js} +8 -8
- package/dist/{AiPanels-C8M7q_vM.js → AiPanels-CRM3jf82.js} +1 -1
- package/dist/{AiRewriteMenu-DC2ZLH5L.js → AiRewriteMenu-F3GyXBsk.js} +8 -8
- package/dist/{BlockIssueBadge-B8sl9BM1.js → BlockIssueBadge-DlhA_I6J.js} +2 -2
- package/dist/{BlockPreviewCanvas-yhOQAQhJ.js → BlockPreviewCanvas-DYspUXMO.js} +19 -44
- package/dist/{CloudPanels-CD0lsL0R.js → CloudPanels-CAMn545-.js} +3 -3
- package/dist/{CollaborationNotices-DrMrP73M.js → CollaborationNotices-CnfS8BQy.js} +1 -1
- package/dist/{CollaboratorBar-TsK872uC.js → CollaboratorBar-DufLdLQP.js} +1 -1
- package/dist/{CommentsPanel-BX8JVrXU.js → CommentsPanel-C2hFFs0o.js} +1 -1
- package/dist/{CommentsSidebar-BUlseNwL.js → CommentsSidebar-CgEwxt2T.js} +10 -10
- package/dist/{CountdownToolbar-dx3FVRjh.js → CountdownToolbar-CNqYDevp.js} +4 -4
- package/dist/{IssuesPanel-BwnvXxBC.js → IssuesPanel-cPKhimE9.js} +9 -9
- package/dist/{LanguageMenu-Cf5bKocE.js → LanguageMenu-zxlpmw2x.js} +12 -12
- package/dist/{LocaleNotices-CGEp0pQ8.js → LocaleNotices-PIfpvCCI.js} +2 -2
- package/dist/{LogicTagInsertButton-BdDe-vrZ.js → LogicTagInsertButton-DqTkGJSR.js} +16 -16
- package/dist/{MediaEditModal-BWOqjEZN.js → MediaEditModal-C2Bn8WGb.js} +1 -1
- package/dist/{MediaPanels-C-XrldMu.js → MediaPanels-BAZByHRA.js} +1 -1
- package/dist/{MergeTagInput-CTTi-eB0.js → MergeTagInput-Jly1Pw0v.js} +1 -1
- package/dist/{MergeTagModeToggle-Bd0svGQm.js → MergeTagModeToggle-5kaFLRAm.js} +4 -4
- package/dist/{MergeTagTextarea-DiahMV-3.js → MergeTagTextarea-CCfirhcR.js} +5 -5
- package/dist/{ParagraphEditor-Db1cmj8Y.js → ParagraphEditor-DTdnxgDZ.js} +43 -43
- package/dist/{RestoreVersionDialog-DA1Z0q9Z.js → RestoreVersionDialog-cUYu3Xqs.js} +3 -3
- package/dist/{RichTextEditorContent-CyO6e4ZG.js → RichTextEditorContent-Aub9tOHF.js} +4 -4
- package/dist/{SaveBlockDialog-D7SaFxa_.js → SaveBlockDialog-D_ie3uIF.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-B5r3LWWG.js → SavedBlocksBrowserModal-fhSnYT1l.js} +9 -9
- package/dist/{SavedBlocksPanels-BH2f7jm-.js → SavedBlocksPanels-Lklqy4XI.js} +1 -1
- package/dist/{SavedBlocksPickBar-B24TScw0.js → SavedBlocksPickBar-CpWkCa8G.js} +2 -2
- package/dist/{TemplateSettings-CuN9Vkl_.js → TemplateSettings-BJ4a8RBr.js} +8 -8
- package/dist/{TestEmailModal-C4DAaohi.js → TestEmailModal-BEoapoDc.js} +8 -8
- package/dist/{TestEmailPanel-DoMcVJSE.js → TestEmailPanel-DgyzokCf.js} +1 -1
- package/dist/{TitleEditor-b5Pr_m9j.js → TitleEditor-BQoSPgOi.js} +9 -9
- package/dist/{Toolbar-BOf7Y862.js → Toolbar-KhPpWyX1.js} +857 -756
- package/dist/{TplModal-DAcXzBJh.js → TplModal-F_kA7luG.js} +1 -1
- package/dist/{VersionHistoryMenu-TbIGteNi.js → VersionHistoryMenu-Bz4G8cNm.js} +5 -5
- package/dist/{VersionHistoryPanels-Ia6ipOqG.js → VersionHistoryPanels-DmVRyWv9.js} +1 -1
- package/dist/{VersionPreviewBanner-CRfu6quf.js → VersionPreviewBanner-BeppXZyn.js} +1 -1
- package/dist/{WrapperBlock-BZenrXM6.js → WrapperBlock-Ds7yfbhg.js} +3 -3
- package/dist/{blockTypeIcons-DdYZy8yG.js → blockTypeIcons-Do1QqDjg.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{cdn/chunks/ca-YfIxwO1G.js → ca-Ce3NmK9v.js} +6 -3
- package/dist/cdn/chunks/{AiAltTextPopover-CcX_OMUU.js → AiAltTextPopover-CUzIaLRK.js} +2 -2
- package/dist/cdn/chunks/AiAltTextPopover-CUzIaLRK.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-Dmm3h0jd.js → AiAltTextReview-BXBlE71X.js} +2 -2
- package/dist/cdn/chunks/AiAltTextReview-BXBlE71X.js.map +1 -0
- package/dist/cdn/chunks/{AiChatPanel-DV23DJ-2.js → AiChatPanel-BKydciDQ.js} +2 -2
- package/dist/cdn/chunks/AiChatPanel-BKydciDQ.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-CxhOpMAp.js → AiPanels-De-cIZ4p.js} +2 -2
- package/dist/cdn/chunks/AiPanels-De-cIZ4p.js.map +1 -0
- package/dist/cdn/chunks/{AiRewriteMenu-87-O514r.js → AiRewriteMenu-C9vBUTIB.js} +6 -6
- package/dist/cdn/chunks/AiRewriteMenu-C9vBUTIB.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-Dp06vQd3.js → BlockIssueBadge-B3CTTvgw.js} +2 -2
- package/dist/cdn/chunks/BlockIssueBadge-B3CTTvgw.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-DQGzUvZ5.js → BlockPreviewCanvas-B4Bj--kc.js} +20 -45
- package/dist/cdn/chunks/BlockPreviewCanvas-B4Bj--kc.js.map +1 -0
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +1 -1
- package/dist/cdn/chunks/{CloudPanels-D8fchoYt.js → CloudPanels-CQ75I3hQ.js} +3 -3
- package/dist/cdn/chunks/CloudPanels-CQ75I3hQ.js.map +1 -0
- package/dist/cdn/chunks/{CollaborationNotices-DNEs3g9B.js → CollaborationNotices-CgLea-hu.js} +2 -2
- package/dist/cdn/chunks/CollaborationNotices-CgLea-hu.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CN6XAlbn.js → CollaboratorBar-CjRcbebT.js} +2 -2
- package/dist/cdn/chunks/CollaboratorBar-CjRcbebT.js.map +1 -0
- package/dist/cdn/chunks/{CommentsPanel-CxZ1kFcK.js → CommentsPanel-D_ud9GMN.js} +2 -2
- package/dist/cdn/chunks/CommentsPanel-D_ud9GMN.js.map +1 -0
- package/dist/cdn/chunks/{CommentsSidebar-DCr2mV8b.js → CommentsSidebar-CXn1EGAI.js} +2 -2
- package/dist/cdn/chunks/CommentsSidebar-CXn1EGAI.js.map +1 -0
- package/dist/cdn/chunks/CountdownBlock--hlKE2aj.js.map +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CUTbVPPV.js → CountdownToolbar-BOyk_4k7.js} +5 -5
- package/dist/cdn/chunks/CountdownToolbar-BOyk_4k7.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-BhcSzwuL.js → IssuesPanel-DOC94ZsH.js} +4 -4
- package/dist/cdn/chunks/IssuesPanel-DOC94ZsH.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-6wGhkyFT.js → LanguageMenu-DktneIpL.js} +7 -7
- package/dist/cdn/chunks/LanguageMenu-DktneIpL.js.map +1 -0
- package/dist/cdn/chunks/{LocaleNotices-Br92Xueo.js → LocaleNotices-B2NgnHoP.js} +2 -2
- package/dist/cdn/chunks/LocaleNotices-B2NgnHoP.js.map +1 -0
- package/dist/cdn/chunks/{LogicTagInsertButton-r2EVUtDU.js → LogicTagInsertButton-CQ8RiOou.js} +5 -5
- package/dist/cdn/chunks/LogicTagInsertButton-CQ8RiOou.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-CfgN7Jyi.js → MediaEditModal-Cs7_Om7e.js} +2 -2
- package/dist/cdn/chunks/MediaEditModal-Cs7_Om7e.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-Cb5vsgb-.js → MediaPanels-BeekGmql.js} +2 -2
- package/dist/cdn/chunks/MediaPanels-BeekGmql.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagInput-Dh3N6CEV.js → MergeTagInput-D7FZ0ca0.js} +2 -2
- package/dist/cdn/chunks/MergeTagInput-D7FZ0ca0.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagModeToggle-D6u3hMrI.js → MergeTagModeToggle-CySCCEDs.js} +3 -3
- package/dist/cdn/chunks/MergeTagModeToggle-CySCCEDs.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagTextarea-BpVtpiNL.js → MergeTagTextarea-DJbWTYVH.js} +7 -7
- package/dist/cdn/chunks/MergeTagTextarea-DJbWTYVH.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-DGJmPAC1.js → ParagraphEditor-DAQUWqQJ.js} +23 -23
- package/dist/cdn/chunks/ParagraphEditor-DAQUWqQJ.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-D5qeCa0F.js → RestoreVersionDialog-COTRe_rM.js} +3 -3
- package/dist/cdn/chunks/RestoreVersionDialog-COTRe_rM.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DyGiXKKI.js → RichTextEditorContent-DeWPMd9V.js} +4 -4
- package/dist/cdn/chunks/RichTextEditorContent-DeWPMd9V.js.map +1 -0
- package/dist/cdn/chunks/{SaveBlockDialog-B0TJYxd8.js → SaveBlockDialog-adQMbKR1.js} +6 -6
- package/dist/cdn/chunks/SaveBlockDialog-adQMbKR1.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-D8Ly7LrA.js → SavedBlocksBrowserModal-CGIFCRAx.js} +6 -6
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CGIFCRAx.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-Co1cbWR8.js → SavedBlocksPanels-Du0RYlEf.js} +2 -2
- package/dist/cdn/chunks/SavedBlocksPanels-Du0RYlEf.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPickBar-DNtVbpm-.js → SavedBlocksPickBar-DmleyUrn.js} +3 -3
- package/dist/cdn/chunks/SavedBlocksPickBar-DmleyUrn.js.map +1 -0
- package/dist/cdn/chunks/{TemplateSettings-BRc878ZF.js → TemplateSettings-Csjef99q.js} +6 -6
- package/dist/cdn/chunks/TemplateSettings-Csjef99q.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-CIui7VfS.js → TestEmailModal-ClkexOtF.js} +7 -7
- package/dist/cdn/chunks/TestEmailModal-ClkexOtF.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-vKvruW_r.js → TestEmailPanel-DYEYzhU2.js} +2 -2
- package/dist/cdn/chunks/TestEmailPanel-DYEYzhU2.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-BI-9Nnj3.js → TitleEditor-opvaIgVr.js} +8 -8
- package/dist/cdn/chunks/TitleEditor-opvaIgVr.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-C0w0srN_.js.map +1 -1
- package/dist/cdn/chunks/{Toolbar-CYnnArxv.js → Toolbar-DbqkKRXy.js} +771 -670
- package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-B3nZeGWK.js → TplModal-DLV5OeMD.js} +2 -2
- package/dist/cdn/chunks/TplModal-DLV5OeMD.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryMenu-CMGfAKuV.js → VersionHistoryMenu-DBd0zwjE.js} +2 -2
- package/dist/cdn/chunks/VersionHistoryMenu-DBd0zwjE.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-Bb2ouQg7.js → VersionHistoryPanels-hy_Ybxie.js} +2 -2
- package/dist/cdn/chunks/VersionHistoryPanels-hy_Ybxie.js.map +1 -0
- package/dist/cdn/chunks/{VersionPreviewBanner-573UP-g4.js → VersionPreviewBanner-D-yHxWWY.js} +2 -2
- package/dist/cdn/chunks/VersionPreviewBanner-D-yHxWWY.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-DVu632LD.js → WrapperBlock-Ce_k8m_x.js} +4 -4
- package/dist/cdn/chunks/WrapperBlock-Ce_k8m_x.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js → blockTypeIcons-DBoP1HkR.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js.map → blockTypeIcons-DBoP1HkR.js.map} +1 -1
- package/dist/{ca-YfIxwO1G.js → cdn/chunks/ca-Ce3NmK9v.js} +8 -1
- package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +1 -0
- package/dist/cdn/chunks/{composables-DY3anqHO.js → composables-Brr4m0Sg.js} +566 -591
- package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js → createCloudRuntime-QPeg45XL.js} +3 -3
- package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js.map → createCloudRuntime-QPeg45XL.js.map} +1 -1
- package/dist/cdn/chunks/{da-CM6DCvRG.js → da-4YwDAuEr.js} +7 -2
- package/dist/cdn/chunks/da-4YwDAuEr.js.map +1 -0
- package/dist/{de-Dugz1zXC.js → cdn/chunks/de-BlQ0vdZJ.js} +8 -1
- package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CXSSZplR.js → editor-modal-BCcbvIxc.js} +4 -4
- package/dist/cdn/chunks/editor-modal-BCcbvIxc.js.map +1 -0
- package/dist/cdn/chunks/en-DkulseE1.js +1 -0
- package/dist/{en-BykoFuFY.js → cdn/chunks/en-MlNeQVSG.js} +8 -1
- package/dist/cdn/chunks/en-MlNeQVSG.js.map +1 -0
- package/dist/{es-DaWsTkpj.js → cdn/chunks/es-2s8x4OM2.js} +8 -1
- package/dist/cdn/chunks/es-2s8x4OM2.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BWVlr8Ga.js → extensions-BpuyqKVY.js} +5 -5
- package/dist/cdn/chunks/extensions-BpuyqKVY.js.map +1 -0
- package/dist/{fr-DqwQHtJo.js → cdn/chunks/fr-D3MjrsgQ.js} +8 -1
- package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +1 -0
- package/dist/cdn/chunks/{icons-C7vjUBLn.js → icons-BJ6AtVgu.js} +23 -23
- package/dist/cdn/chunks/{icons-C7vjUBLn.js.map → icons-BJ6AtVgu.js.map} +1 -1
- package/dist/cdn/chunks/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +7 -2
- package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +1 -0
- package/dist/{nl-BQl1_UHv.js → cdn/chunks/nl-U65iX7wN.js} +8 -1
- package/dist/cdn/chunks/nl-U65iX7wN.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js → normalizeMergeTagMarkup-B81BAWKT.js} +64 -64
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js.map → normalizeMergeTagMarkup-B81BAWKT.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js → preRenderCustomBlocks-CQuaMxuv.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js.map → preRenderCustomBlocks-CQuaMxuv.js.map} +1 -1
- package/dist/{pt-BR-eyzmU9Vs.js → cdn/chunks/pt-BR-_jsX1xLv.js} +8 -1
- package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js → sanitizeHtml-BdAjvU9I.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js.map → sanitizeHtml-BdAjvU9I.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-kYhdXJ9P.js → socialIcons-Df9dNe7I.js} +495 -517
- package/dist/cdn/chunks/socialIcons-Df9dNe7I.js.map +1 -0
- package/dist/cdn/chunks/{src-BmzzkUf7.js → src-B3v_3j9b.js} +436 -404
- package/dist/cdn/chunks/src-B3v_3j9b.js.map +1 -0
- package/dist/cdn/chunks/{src-DY2kMjoD.js → src-BHgVGOTi.js} +771 -667
- package/dist/cdn/chunks/src-BHgVGOTi.js.map +1 -0
- package/dist/cdn/chunks/src-C5V_yzAU.js +673 -0
- package/dist/cdn/chunks/src-C5V_yzAU.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-B7gxx0aJ.js → tiptap-D9amDW4u.js} +1030 -1027
- package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +1 -0
- package/dist/cdn/chunks/useLocalizedDisplay-C3lIetmX.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-B5wMJLru.js.map → useLocalizedDisplay-C3lIetmX.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js → useLogicTag-DOIlsGk8.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js.map → useLogicTag-DOIlsGk8.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js → useMergeTag-DUNl364g.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js.map → useMergeTag-DUNl364g.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js → withCurrentFont-ufGLu2Vt.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js.map → withCurrentFont-ufGLu2Vt.js.map} +1 -1
- package/dist/cdn/editor.js +109 -109
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ErKdPXG6.js → check-CWq6Nfjj.js} +1 -1
- package/dist/{chevron-down-C_vv5fZE.js → chevron-down-B9t0SK_-.js} +1 -1
- package/dist/{chevron-right-Cw4GpjFA.js → chevron-right-B_qslOCS.js} +1 -1
- package/dist/{chevron-up-uijYZoph.js → chevron-up-CxZ2teV2.js} +1 -1
- package/dist/{circle-exclamation-point-CIYHx5Tw.js → circle-exclamation-point-B1tbhkNb.js} +1 -1
- package/dist/{clock-tnC1IvZk.js → clock-Rw4btQn-.js} +1 -1
- package/dist/{composables-CFTH0Nqb.js → composables-5KJV0O9T.js} +914 -939
- package/dist/{createCloudRuntime-BvWlm_38.js → createCloudRuntime-BdoKeYJi.js} +2 -2
- package/dist/{createLucideIcon-CssArtUe.js → createLucideIcon-B6Zkn9r0.js} +5 -5
- package/dist/{da-CM6DCvRG.js → da-4YwDAuEr.js} +6 -1
- package/dist/{cdn/chunks/de-Dugz1zXC.js → de-BlQ0vdZJ.js} +6 -3
- package/dist/dist-AyAOL8Bj.js +4 -0
- package/dist/{dist-BTUMr4Pb.js → dist-BNrGwgev.js} +2 -2
- package/dist/{dist-CsplpC_6.js → dist-BPVNNdTv.js} +2 -2
- package/dist/{dist-bWIkrMkM.js → dist-C7YLw60i.js} +2 -2
- package/dist/{dist-Clfx1JeL.js → dist-CBnAqr27.js} +2 -2
- package/dist/{dist-CkHJRChP.js → dist-COvAA64n.js} +2 -2
- package/dist/{dist-C-NRkFsp.js → dist-CuRjmtWu.js} +5 -5
- package/dist/{dist-HKEDfp__.js → dist-DG_AWt8v.js} +2 -2
- package/dist/{dist-DY3WbyCO.js → dist-DYtuc3jc.js} +2 -2
- package/dist/dist-DkPTWQuO.js +4 -0
- package/dist/{dist-DwpKFWF4.js → dist-DoWk1r7z.js} +77 -74
- package/dist/{dist-CMo4K5So.js → dist-DsA7NeIy.js} +798 -696
- package/dist/{dist-BlrlMP8f.js → dist-fDsB6dCL.js} +2 -2
- package/dist/{editor-modal-BWvxfSj8.js → editor-modal-_ylhrf4g.js} +15 -15
- package/dist/en-DwxgN_-Y.js +1 -0
- package/dist/{cdn/chunks/en-BykoFuFY.js → en-MlNeQVSG.js} +6 -3
- package/dist/{cdn/chunks/es-DaWsTkpj.js → es-2s8x4OM2.js} +6 -3
- package/dist/{extensions-BPVackEE.js → extensions-DCJGAZ9z.js} +73 -73
- package/dist/{eye-DK4--qHk.js → eye-BE-DeEqG.js} +1 -1
- package/dist/{cdn/chunks/fr-DqwQHtJo.js → fr-D3MjrsgQ.js} +6 -3
- package/dist/{image-B5pJOw5Q.js → image-DfRxUmUh.js} +1 -1
- package/dist/index.d.ts +37 -7
- package/dist/{info-DKM0_thN.js → info-D1PS-81D.js} +1 -1
- package/dist/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +6 -1
- package/dist/{link-BNgTZ_Sw.js → link-DLaACaIz.js} +1 -1
- package/dist/{list-Bqynqm7o.js → list-CvtzVlvM.js} +1 -1
- package/dist/{loader-circle-BMc3fVpa.js → loader-circle-DCkSXApP.js} +1 -1
- package/dist/{message-circle-D_TpvAJh.js → message-circle-Bj4F9bBO.js} +1 -1
- package/dist/{cdn/chunks/nl-BQl1_UHv.js → nl-U65iX7wN.js} +6 -3
- package/dist/{normalizeMergeTagMarkup-PQqrbfmt.js → normalizeMergeTagMarkup-B7n_-4Dz.js} +45 -45
- package/dist/{package-D2fov5PU.js → package-By1au8Wi.js} +1 -1
- package/dist/{pencil-BNdkJyfY.js → pencil-T4qqyRLl.js} +1 -1
- package/dist/{plus-CWmBmMx-.js → plus-3Zry-1gs.js} +1 -1
- package/dist/{preRenderCustomBlocks-Dg5GBNi2.js → preRenderCustomBlocks-D3GzENVB.js} +3 -3
- package/dist/{cdn/chunks/pt-BR-eyzmU9Vs.js → pt-BR-_jsX1xLv.js} +6 -3
- package/dist/{refresh-cw-Ryg1j66N.js → refresh-cw-BwaO0ioc.js} +1 -1
- package/dist/{rotate-ccw-D8j7gXXv.js → rotate-ccw-C3E0W5q-.js} +1 -1
- package/dist/{sanitizeHtml-DVdfdxOz.js → sanitizeHtml-BcbjlypU.js} +6 -6
- package/dist/{search-CX2JkSHz.js → search-DfExisVv.js} +1 -1
- package/dist/{send-BLR1b-p5.js → send-FRC7Giap.js} +1 -1
- package/dist/{smartphone-Co8m0LLg.js → smartphone-BlYU_z_x.js} +1 -1
- package/dist/{socialIcons-DBHv_ntg.js → socialIcons-By2LPWOQ.js} +561 -583
- package/dist/{sparkles-Dc3Undp5.js → sparkles-DSi61skE.js} +1 -1
- package/dist/{square-CPw_cyX8.js → square-DEE8tT2w.js} +1 -1
- package/dist/templatical-editor.js +139 -139
- package/dist/{text-align-start-2VZGhCiK.js → text-align-start-DGdrmKcG.js} +1 -1
- package/dist/{trash-t6XXliVc.js → trash-YZPJMZc7.js} +1 -1
- package/dist/{triangle-exclamation-point-_YYWE2ZH.js → triangle-exclamation-point-BR-W6pQm.js} +1 -1
- package/dist/{upload-BWYXWYHb.js → upload-B_Eoqj-4.js} +1 -1
- package/dist/useLocalizedDisplay-_P6-hXaO.js +31 -0
- package/dist/{useLogicTag-CVOj0VUv.js → useLogicTag-f0SJ1Cd2.js} +1 -1
- package/dist/{useMergeTag-Bams_kam.js → useMergeTag-0-EudwkV.js} +3 -3
- package/dist/{useScrollToBlock-CwUQ_nKz.js → useScrollToBlock-CtM_ydOS.js} +1 -1
- package/dist/withCurrentFont-BOg3jmCT.js +18 -0
- package/dist/{x-CTKOxIyZ.js → x-C0X5MoK3.js} +1 -1
- package/package.json +22 -22
- package/dist/cdn/chunks/AiAltTextPopover-CcX_OMUU.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-Dmm3h0jd.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DV23DJ-2.js.map +0 -1
- package/dist/cdn/chunks/AiPanels-CxhOpMAp.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-87-O514r.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-Dp06vQd3.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-DQGzUvZ5.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-D8fchoYt.js.map +0 -1
- package/dist/cdn/chunks/CollaborationNotices-DNEs3g9B.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-CN6XAlbn.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-CxZ1kFcK.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-DCr2mV8b.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-CUTbVPPV.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-BhcSzwuL.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-6wGhkyFT.js.map +0 -1
- package/dist/cdn/chunks/LocaleNotices-Br92Xueo.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-r2EVUtDU.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-CfgN7Jyi.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-Cb5vsgb-.js.map +0 -1
- package/dist/cdn/chunks/MergeTagInput-Dh3N6CEV.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-D6u3hMrI.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-BpVtpiNL.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DGJmPAC1.js.map +0 -1
- package/dist/cdn/chunks/RestoreVersionDialog-D5qeCa0F.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-DyGiXKKI.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-B0TJYxd8.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-D8Ly7LrA.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-Co1cbWR8.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPickBar-DNtVbpm-.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-BRc878ZF.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CIui7VfS.js.map +0 -1
- package/dist/cdn/chunks/TestEmailPanel-vKvruW_r.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BI-9Nnj3.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CYnnArxv.js.map +0 -1
- package/dist/cdn/chunks/TplModal-B3nZeGWK.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryMenu-CMGfAKuV.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-Bb2ouQg7.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-573UP-g4.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-DVu632LD.js.map +0 -1
- package/dist/cdn/chunks/ca-YfIxwO1G.js.map +0 -1
- package/dist/cdn/chunks/composables-DY3anqHO.js.map +0 -1
- package/dist/cdn/chunks/da-CM6DCvRG.js.map +0 -1
- package/dist/cdn/chunks/de-Dugz1zXC.js.map +0 -1
- package/dist/cdn/chunks/editor-modal-CXSSZplR.js.map +0 -1
- package/dist/cdn/chunks/en-BykoFuFY.js.map +0 -1
- package/dist/cdn/chunks/en-DYMYt1TN.js +0 -1
- package/dist/cdn/chunks/es-DaWsTkpj.js.map +0 -1
- package/dist/cdn/chunks/extensions-BWVlr8Ga.js.map +0 -1
- package/dist/cdn/chunks/fr-DqwQHtJo.js.map +0 -1
- package/dist/cdn/chunks/ja-BH4MS1Ye.js.map +0 -1
- package/dist/cdn/chunks/nl-BQl1_UHv.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-eyzmU9Vs.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-kYhdXJ9P.js.map +0 -1
- package/dist/cdn/chunks/src-B7X7x_ST.js +0 -707
- package/dist/cdn/chunks/src-B7X7x_ST.js.map +0 -1
- package/dist/cdn/chunks/src-BmzzkUf7.js.map +0 -1
- package/dist/cdn/chunks/src-DY2kMjoD.js.map +0 -1
- package/dist/cdn/chunks/tiptap-B7gxx0aJ.js.map +0 -1
- package/dist/cdn/chunks/useLocalizedDisplay-B5wMJLru.js +0 -33
- package/dist/dist-CkIeJEsa.js +0 -4
- package/dist/dist-eAgG-nCb.js +0 -4
- package/dist/en-DvCaYqiR.js +0 -1
- package/dist/useLocalizedDisplay-CbFM0cCV.js +0 -31
- package/dist/withCurrentFont-y0O5kOLW.js +0 -18
|
@@ -1,32 +1,32 @@
|
|
|
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-DJbWTYVH.js";
|
|
4
|
+
import { c as M } from "./LogicTagInsertButton-CQ8RiOou.js";
|
|
5
|
+
import { t as N } from "./MergeTagInput-D7FZ0ca0.js";
|
|
6
6
|
import { t as P } from "./ToggleSwitch-C0w0srN_.js";
|
|
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, v as V, y as
|
|
8
|
-
import { $ as re, At as ie, Bt as ae, Ft as oe, H, Mt as se, O as ce, R as le, _ as ue, _t as de, c as fe, et as
|
|
9
|
-
import { t as
|
|
10
|
-
import { Bt as me,
|
|
11
|
-
import { n as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { _ as
|
|
20
|
-
import { t as
|
|
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-BJ6AtVgu.js";
|
|
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-BHgVGOTi.js";
|
|
11
|
+
import { n as Le } from "./useLocalizedDisplay-C3lIetmX.js";
|
|
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-Df9dNe7I.js";
|
|
14
|
+
import { n as mt, t as ht } from "./withCurrentFont-ufGLu2Vt.js";
|
|
15
|
+
import { t as gt } from "./languageName-DEEOhDWI.js";
|
|
16
|
+
import { t as _t } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
17
|
+
import { t as vt } from "./logger-CqQTfJGx.js";
|
|
18
|
+
import { c as yt, r as bt } from "./usePopoverPosition-CBp9uwjV.js";
|
|
19
|
+
import { _ as xt } from "./dist-BtWMy7UQ.js";
|
|
20
|
+
import { t as St } from "./blockTypeIcons-DBoP1HkR.js";
|
|
21
21
|
// src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
22
|
-
var
|
|
22
|
+
var Ct = [
|
|
23
23
|
"aria-checked",
|
|
24
24
|
"aria-label",
|
|
25
25
|
"disabled",
|
|
26
26
|
"aria-disabled",
|
|
27
27
|
"title",
|
|
28
28
|
"onClick"
|
|
29
|
-
],
|
|
29
|
+
], wt = { key: 1 }, $ = /* @__PURE__ */ r({
|
|
30
30
|
__name: "SlidingPillSelect",
|
|
31
31
|
props: {
|
|
32
32
|
options: {},
|
|
@@ -71,14 +71,14 @@ var _t = [
|
|
|
71
71
|
key: 0,
|
|
72
72
|
size: 14,
|
|
73
73
|
"stroke-width": 2
|
|
74
|
-
})) : (i(), p("span",
|
|
74
|
+
})) : (i(), p("span", wt, x(t.label), 1))], 12, Ct))), 128))], 4));
|
|
75
75
|
}
|
|
76
|
-
}),
|
|
76
|
+
}), Tt = { class: "tpl:flex tpl:items-stretch" }, Et = [
|
|
77
77
|
"data-testid",
|
|
78
78
|
"value",
|
|
79
79
|
"min",
|
|
80
80
|
"max"
|
|
81
|
-
],
|
|
81
|
+
], Dt = /* @__PURE__ */ r({
|
|
82
82
|
__name: "NumberWithSuffix",
|
|
83
83
|
props: {
|
|
84
84
|
modelValue: {},
|
|
@@ -94,7 +94,7 @@ var _t = [
|
|
|
94
94
|
let t = e.target;
|
|
95
95
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
96
96
|
}
|
|
97
|
-
return (t, n) => (i(), p("div",
|
|
97
|
+
return (t, n) => (i(), p("div", Tt, [b("input", {
|
|
98
98
|
type: "number",
|
|
99
99
|
"data-testid": e.testid,
|
|
100
100
|
class: g(h(z)),
|
|
@@ -102,14 +102,14 @@ var _t = [
|
|
|
102
102
|
min: e.min,
|
|
103
103
|
max: e.max,
|
|
104
104
|
onInput: r
|
|
105
|
-
}, null, 42,
|
|
105
|
+
}, null, 42, Et), b("span", { class: g(h(L)) }, x(e.suffix), 3)]));
|
|
106
106
|
}
|
|
107
|
-
}),
|
|
107
|
+
}), Ot = [
|
|
108
108
|
"aria-pressed",
|
|
109
109
|
"aria-label",
|
|
110
110
|
"title",
|
|
111
111
|
"data-testid"
|
|
112
|
-
],
|
|
112
|
+
], kt = /* @__PURE__ */ r({
|
|
113
113
|
__name: "LinkToggle",
|
|
114
114
|
props: {
|
|
115
115
|
linked: { type: Boolean },
|
|
@@ -128,7 +128,7 @@ var _t = [
|
|
|
128
128
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
129
129
|
"data-testid": e.testid,
|
|
130
130
|
onClick: r[0] ||= (e) => n("toggle")
|
|
131
|
-
}, [e.linked ? (i(), v(h(
|
|
131
|
+
}, [e.linked ? (i(), v(h(Y), {
|
|
132
132
|
key: 0,
|
|
133
133
|
size: 14,
|
|
134
134
|
"stroke-width": 2
|
|
@@ -136,12 +136,12 @@ var _t = [
|
|
|
136
136
|
key: 1,
|
|
137
137
|
size: 14,
|
|
138
138
|
"stroke-width": 2
|
|
139
|
-
}))], 10,
|
|
139
|
+
}))], 10, Ot));
|
|
140
140
|
}
|
|
141
|
-
}),
|
|
141
|
+
}), At = {
|
|
142
142
|
key: 0,
|
|
143
143
|
class: "tpl:mb-3.5"
|
|
144
|
-
},
|
|
144
|
+
}, jt = { class: "tpl:mb-3.5" }, Mt = { class: "tpl:mb-3.5" }, Nt = /* @__PURE__ */ r({
|
|
145
145
|
__name: "BorderControl",
|
|
146
146
|
props: {
|
|
147
147
|
path: {},
|
|
@@ -150,7 +150,7 @@ var _t = [
|
|
|
150
150
|
},
|
|
151
151
|
emits: ["update:modelValue"],
|
|
152
152
|
setup(e, { emit: t }) {
|
|
153
|
-
let n = e, r = t, { t: s } =
|
|
153
|
+
let n = e, r = t, { t: s } = Q(), c = {
|
|
154
154
|
width: 0,
|
|
155
155
|
style: "solid",
|
|
156
156
|
color: "#000000"
|
|
@@ -160,7 +160,7 @@ var _t = [
|
|
|
160
160
|
}
|
|
161
161
|
let u = C(() => {
|
|
162
162
|
let e = n.modelValue;
|
|
163
|
-
return !e ||
|
|
163
|
+
return !e || Pe.every((t) => l(e[t], e.top));
|
|
164
164
|
}), d = E(u.value);
|
|
165
165
|
o(u, (e) => {
|
|
166
166
|
!e && d.value && (d.value = !1);
|
|
@@ -168,13 +168,13 @@ var _t = [
|
|
|
168
168
|
let f = E("top"), m = C(() => n.modelValue?.[d.value ? "top" : f.value] ?? c), y = (e) => !!e && e.width > 0;
|
|
169
169
|
function S(e) {
|
|
170
170
|
if (d.value) {
|
|
171
|
-
r("update:modelValue", y(e) ?
|
|
171
|
+
r("update:modelValue", y(e) ? Se(e) : void 0);
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
let t = {
|
|
175
|
-
...n.modelValue ??
|
|
175
|
+
...n.modelValue ?? Se(c),
|
|
176
176
|
[f.value]: e
|
|
177
|
-
}, i =
|
|
177
|
+
}, i = Pe.some((e) => y(t[e]));
|
|
178
178
|
r("update:modelValue", i ? t : void 0);
|
|
179
179
|
}
|
|
180
180
|
function w(e) {
|
|
@@ -197,10 +197,10 @@ var _t = [
|
|
|
197
197
|
d.value = !0;
|
|
198
198
|
let e = n.modelValue;
|
|
199
199
|
if (!e) return;
|
|
200
|
-
let t = y(e[f.value]) ? e[f.value] :
|
|
201
|
-
r("update:modelValue", t ?
|
|
200
|
+
let t = y(e[f.value]) ? e[f.value] : Pe.map((t) => e[t]).find(y);
|
|
201
|
+
r("update:modelValue", t ? Se(t) : void 0);
|
|
202
202
|
}
|
|
203
|
-
let j = C(() =>
|
|
203
|
+
let j = C(() => Pe.map((e) => ({
|
|
204
204
|
value: e,
|
|
205
205
|
label: s.spacingControl[e]
|
|
206
206
|
})));
|
|
@@ -208,7 +208,7 @@ var _t = [
|
|
|
208
208
|
path: e.path,
|
|
209
209
|
label: h(s).blockSettings.border
|
|
210
210
|
}, {
|
|
211
|
-
"label-actions": a(() => [k(
|
|
211
|
+
"label-actions": a(() => [k(kt, {
|
|
212
212
|
linked: d.value,
|
|
213
213
|
"link-label": h(s).blockSettings.linkSides,
|
|
214
214
|
"unlink-label": h(s).blockSettings.unlinkSides,
|
|
@@ -221,19 +221,19 @@ var _t = [
|
|
|
221
221
|
"testid"
|
|
222
222
|
])]),
|
|
223
223
|
default: a(() => [
|
|
224
|
-
d.value ? _("", !0) : (i(), p("div",
|
|
224
|
+
d.value ? _("", !0) : (i(), p("div", At, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderSide), 3), k($, {
|
|
225
225
|
options: j.value,
|
|
226
226
|
"model-value": f.value,
|
|
227
227
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e
|
|
228
228
|
}, null, 8, ["options", "model-value"])])),
|
|
229
|
-
b("div",
|
|
229
|
+
b("div", jt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderWidth), 3), k(Dt, {
|
|
230
230
|
"model-value": m.value.width,
|
|
231
231
|
min: 0,
|
|
232
232
|
suffix: "px",
|
|
233
233
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
234
234
|
"onUpdate:modelValue": w
|
|
235
235
|
}, null, 8, ["model-value", "testid"])]),
|
|
236
|
-
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div",
|
|
236
|
+
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div", Mt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderStyle), 3), k($, {
|
|
237
237
|
options: [
|
|
238
238
|
{
|
|
239
239
|
value: "solid",
|
|
@@ -258,10 +258,10 @@ var _t = [
|
|
|
258
258
|
_: 1
|
|
259
259
|
}, 8, ["path", "label"]));
|
|
260
260
|
}
|
|
261
|
-
}),
|
|
261
|
+
}), Pt = {
|
|
262
262
|
key: 1,
|
|
263
263
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
264
|
-
},
|
|
264
|
+
}, Ft = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, It = /* @__PURE__ */ r({
|
|
265
265
|
__name: "RadiusControl",
|
|
266
266
|
props: {
|
|
267
267
|
path: {},
|
|
@@ -272,7 +272,7 @@ var _t = [
|
|
|
272
272
|
},
|
|
273
273
|
emits: ["update:modelValue"],
|
|
274
274
|
setup(e, { emit: t }) {
|
|
275
|
-
let n = e, r = t, { t: s } =
|
|
275
|
+
let n = e, r = t, { t: s } = Q(), l = {
|
|
276
276
|
topLeft: "cornerTopLeft",
|
|
277
277
|
topRight: "cornerTopRight",
|
|
278
278
|
bottomRight: "cornerBottomRight",
|
|
@@ -290,7 +290,7 @@ var _t = [
|
|
|
290
290
|
bottomRight: e,
|
|
291
291
|
bottomLeft: e
|
|
292
292
|
} : e;
|
|
293
|
-
}), f = C(() =>
|
|
293
|
+
}), f = C(() => he.every((e) => d.value[e] === d.value.topLeft)), m = E(f.value);
|
|
294
294
|
o(f, (e) => {
|
|
295
295
|
!e && m.value && (m.value = !1);
|
|
296
296
|
});
|
|
@@ -313,7 +313,7 @@ var _t = [
|
|
|
313
313
|
path: e.path,
|
|
314
314
|
label: e.label
|
|
315
315
|
}, {
|
|
316
|
-
"label-actions": a(() => [k(
|
|
316
|
+
"label-actions": a(() => [k(kt, {
|
|
317
317
|
linked: m.value,
|
|
318
318
|
"link-label": h(s).blockSettings.linkCorners,
|
|
319
319
|
"unlink-label": h(s).blockSettings.unlinkCorners,
|
|
@@ -325,7 +325,7 @@ var _t = [
|
|
|
325
325
|
"unlink-label",
|
|
326
326
|
"testid"
|
|
327
327
|
])]),
|
|
328
|
-
default: a(() => [m.value ? (i(), v(
|
|
328
|
+
default: a(() => [m.value ? (i(), v(Dt, {
|
|
329
329
|
key: 0,
|
|
330
330
|
"model-value": d.value.topLeft,
|
|
331
331
|
min: 0,
|
|
@@ -337,7 +337,7 @@ var _t = [
|
|
|
337
337
|
"model-value",
|
|
338
338
|
"max",
|
|
339
339
|
"testid"
|
|
340
|
-
])) : (i(), p("div",
|
|
340
|
+
])) : (i(), p("div", Pt, [(i(), p(D, null, c(u, (t) => b("div", { key: t }, [b("label", Ft, x(h(s).blockSettings[l[t]]), 1), k(Dt, {
|
|
341
341
|
"model-value": d.value[t],
|
|
342
342
|
min: 0,
|
|
343
343
|
max: e.max,
|
|
@@ -353,10 +353,14 @@ var _t = [
|
|
|
353
353
|
_: 1
|
|
354
354
|
}, 8, ["path", "label"]));
|
|
355
355
|
}
|
|
356
|
-
}),
|
|
356
|
+
}), Lt = ["value"], Rt = { value: "" }, zt = ["value"], Bt = { class: "tpl:flex tpl:items-stretch" }, Vt = ["value"], Ht = ["value"], Ut = ["value"], Wt = ["value"], Gt = { value: "auto" }, Kt = { value: "full" }, qt = { value: "custom" }, Jt = {
|
|
357
357
|
key: 0,
|
|
358
|
-
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
359
|
-
},
|
|
358
|
+
class: "tpl:mt-2 tpl:flex tpl:items-stretch tpl:gap-2"
|
|
359
|
+
}, Yt = [
|
|
360
|
+
"value",
|
|
361
|
+
"min",
|
|
362
|
+
"max"
|
|
363
|
+
], Xt = 200, Zt = /* @__PURE__ */ r({
|
|
360
364
|
__name: "ButtonToolbar",
|
|
361
365
|
props: {
|
|
362
366
|
block: {},
|
|
@@ -364,19 +368,45 @@ var _t = [
|
|
|
364
368
|
},
|
|
365
369
|
emits: ["update"],
|
|
366
370
|
setup(e, { emit: t }) {
|
|
367
|
-
let n = e, r = t, { t: o } =
|
|
368
|
-
function
|
|
371
|
+
let n = e, r = t, { t: o } = Q(), s = l(Ze, null), u = s ? Le(s) : null, d = l(Ue, null), f = C(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" || Fe(n.block.width) !== null ? "custom" : "auto"), m = C(() => Fe(n.block.width) === null ? "px" : "%"), y = C(() => typeof n.block.width == "number" ? n.block.width : String(n.block.width).slice(0, -1)), S = C(() => u ? ot(u.content.value, n.block.id, d ?? void 0) : null);
|
|
372
|
+
function w(e, t) {
|
|
369
373
|
r("update", { [e]: t });
|
|
370
374
|
}
|
|
371
|
-
function
|
|
372
|
-
e === "full" ?
|
|
375
|
+
function T(e) {
|
|
376
|
+
e === "full" ? w("width", "full") : e === "custom" ? w("width", typeof n.block.width == "number" ? n.block.width : Xt) : w("width", void 0);
|
|
373
377
|
}
|
|
374
|
-
|
|
375
|
-
|
|
378
|
+
let E = C(() => String(je(n.block))), O = C(() => {
|
|
379
|
+
let e = E.value;
|
|
380
|
+
return ne.includes(e) ? ne : [...ne, e];
|
|
381
|
+
});
|
|
382
|
+
function j(e) {
|
|
383
|
+
let t = Number(e);
|
|
384
|
+
w("lineHeight", t === 1.2 ? void 0 : t);
|
|
376
385
|
}
|
|
377
|
-
function
|
|
386
|
+
function F(e) {
|
|
387
|
+
w("fontWeight", e === "bold" ? void 0 : e);
|
|
388
|
+
}
|
|
389
|
+
function I(e) {
|
|
378
390
|
let t = Number(e);
|
|
379
|
-
|
|
391
|
+
if (m.value === "%") {
|
|
392
|
+
if (!Number.isInteger(t) || t < 1 || t > 100) return;
|
|
393
|
+
w("width", `${t}%`);
|
|
394
|
+
} else !Number.isFinite(t) || t <= 0 || w("width", t);
|
|
395
|
+
}
|
|
396
|
+
function ee(e) {
|
|
397
|
+
if (e === m.value) return;
|
|
398
|
+
let t = n.block.width, r = S.value;
|
|
399
|
+
if (e === "%") {
|
|
400
|
+
let e = t;
|
|
401
|
+
if (r === null) {
|
|
402
|
+
w("width", "50%");
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
w("width", `${Math.min(100, Math.max(1, Math.round(e / r * 100)))}%`);
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
let i = Fe(t);
|
|
409
|
+
r === null ? w("width", Xt) : w("width", Math.max(1, Math.round(r * i / 100)));
|
|
380
410
|
}
|
|
381
411
|
return (t, n) => (i(), p(D, null, [
|
|
382
412
|
k(A, {
|
|
@@ -386,12 +416,12 @@ var _t = [
|
|
|
386
416
|
}, {
|
|
387
417
|
default: a(() => [b("select", {
|
|
388
418
|
class: g(h(B)),
|
|
389
|
-
value: h(
|
|
390
|
-
onChange: n[0] ||= (e) =>
|
|
391
|
-
}, [b("option",
|
|
419
|
+
value: h(ht)(e.block.fontFamily),
|
|
420
|
+
onChange: n[0] ||= (e) => w("fontFamily", e.target.value || void 0)
|
|
421
|
+
}, [b("option", Rt, x(h(o).button.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
392
422
|
key: e.value,
|
|
393
423
|
value: e.value
|
|
394
|
-
}, x(e.label), 9,
|
|
424
|
+
}, x(e.label), 9, zt))), 128))], 42, Lt)]),
|
|
395
425
|
_: 1
|
|
396
426
|
}, 8, ["label"]),
|
|
397
427
|
k(A, {
|
|
@@ -402,7 +432,7 @@ var _t = [
|
|
|
402
432
|
default: a(() => [k(N, {
|
|
403
433
|
"model-value": e.block.text,
|
|
404
434
|
type: "text",
|
|
405
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
435
|
+
"onUpdate:modelValue": n[1] ||= (e) => w("text", e)
|
|
406
436
|
}, null, 8, ["model-value"])]),
|
|
407
437
|
_: 1
|
|
408
438
|
}, 8, ["label"]),
|
|
@@ -415,7 +445,7 @@ var _t = [
|
|
|
415
445
|
"model-value": e.block.url,
|
|
416
446
|
type: "url",
|
|
417
447
|
placeholder: h(o).button.urlPlaceholder,
|
|
418
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
448
|
+
"onUpdate:modelValue": n[2] ||= (e) => w("url", e)
|
|
419
449
|
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(A, {
|
|
420
450
|
key: 0,
|
|
421
451
|
path: "openInNewTab",
|
|
@@ -427,7 +457,7 @@ var _t = [
|
|
|
427
457
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
428
458
|
"model-value": e.block.openInNewTab ?? !1,
|
|
429
459
|
label: h(o).button.openInNewTab,
|
|
430
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
460
|
+
"onUpdate:modelValue": n[3] ||= (e) => w("openInNewTab", e)
|
|
431
461
|
}, null, 8, [
|
|
432
462
|
"control-id",
|
|
433
463
|
"model-value",
|
|
@@ -445,7 +475,7 @@ var _t = [
|
|
|
445
475
|
default: a(() => [k(M, {
|
|
446
476
|
"model-value": e.block.backgroundColor,
|
|
447
477
|
"allow-transparent": "",
|
|
448
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
478
|
+
"onUpdate:modelValue": n[4] ||= (e) => w("backgroundColor", e)
|
|
449
479
|
}, null, 8, ["model-value"])]),
|
|
450
480
|
_: 1
|
|
451
481
|
}, 8, ["label"]),
|
|
@@ -456,37 +486,52 @@ var _t = [
|
|
|
456
486
|
}, {
|
|
457
487
|
default: a(() => [k(M, {
|
|
458
488
|
"model-value": e.block.textColor,
|
|
459
|
-
"onUpdate:modelValue": n[5] ||= (e) =>
|
|
489
|
+
"onUpdate:modelValue": n[5] ||= (e) => w("textColor", e)
|
|
460
490
|
}, null, 8, ["model-value"])]),
|
|
461
491
|
_: 1
|
|
462
492
|
}, 8, ["label"]),
|
|
463
|
-
k(
|
|
493
|
+
k(Nt, {
|
|
464
494
|
path: "border",
|
|
465
495
|
"model-value": e.block.border,
|
|
466
496
|
"testid-prefix": "button",
|
|
467
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
497
|
+
"onUpdate:modelValue": n[6] ||= (e) => w("border", e)
|
|
468
498
|
}, null, 8, ["model-value"]),
|
|
469
|
-
k(
|
|
499
|
+
k(It, {
|
|
470
500
|
path: "borderRadius",
|
|
471
501
|
"model-value": e.block.borderRadius,
|
|
472
502
|
label: h(o).button.borderRadius,
|
|
473
503
|
max: 50,
|
|
474
504
|
"testid-prefix": "button",
|
|
475
|
-
"onUpdate:modelValue": n[7] ||= (e) =>
|
|
505
|
+
"onUpdate:modelValue": n[7] ||= (e) => w("borderRadius", e)
|
|
476
506
|
}, null, 8, ["model-value", "label"]),
|
|
477
507
|
k(A, {
|
|
478
508
|
label: h(o).button.fontSize,
|
|
479
509
|
class: "tpl:mb-3.5",
|
|
480
510
|
path: "fontSize"
|
|
481
511
|
}, {
|
|
482
|
-
default: a(() => [b("div",
|
|
512
|
+
default: a(() => [b("div", Bt, [b("input", {
|
|
483
513
|
type: "number",
|
|
484
514
|
class: g(h(z)),
|
|
485
515
|
value: e.block.fontSize,
|
|
486
516
|
min: "10",
|
|
487
517
|
max: "36",
|
|
488
|
-
onInput: n[8] ||= (e) =>
|
|
489
|
-
}, null, 42,
|
|
518
|
+
onInput: n[8] ||= (e) => w("fontSize", Number(e.target.value))
|
|
519
|
+
}, null, 42, Vt), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
520
|
+
_: 1
|
|
521
|
+
}, 8, ["label"]),
|
|
522
|
+
k(A, {
|
|
523
|
+
label: h(o).button.lineHeight,
|
|
524
|
+
class: "tpl:mb-3.5",
|
|
525
|
+
path: "lineHeight"
|
|
526
|
+
}, {
|
|
527
|
+
default: a(() => [b("select", {
|
|
528
|
+
class: g(h(B)),
|
|
529
|
+
value: E.value,
|
|
530
|
+
onChange: n[9] ||= (e) => j(e.target.value)
|
|
531
|
+
}, [(i(!0), p(D, null, c(O.value, (e) => (i(), p("option", {
|
|
532
|
+
key: e,
|
|
533
|
+
value: e
|
|
534
|
+
}, x(e), 9, Ut))), 128))], 42, Ht)]),
|
|
490
535
|
_: 1
|
|
491
536
|
}, 8, ["label"]),
|
|
492
537
|
k(A, {
|
|
@@ -494,7 +539,7 @@ var _t = [
|
|
|
494
539
|
class: "tpl:mb-3.5",
|
|
495
540
|
path: "fontWeight"
|
|
496
541
|
}, {
|
|
497
|
-
default: a(() => [k(
|
|
542
|
+
default: a(() => [k($, {
|
|
498
543
|
options: [
|
|
499
544
|
{
|
|
500
545
|
value: "regular",
|
|
@@ -510,7 +555,7 @@ var _t = [
|
|
|
510
555
|
}
|
|
511
556
|
],
|
|
512
557
|
"model-value": e.block.fontWeight ?? "bold",
|
|
513
|
-
"onUpdate:modelValue":
|
|
558
|
+
"onUpdate:modelValue": F
|
|
514
559
|
}, null, 8, ["options", "model-value"])]),
|
|
515
560
|
_: 1
|
|
516
561
|
}, 8, ["label"]),
|
|
@@ -521,19 +566,32 @@ var _t = [
|
|
|
521
566
|
}, {
|
|
522
567
|
default: a(() => [b("select", {
|
|
523
568
|
class: g(h(B)),
|
|
524
|
-
value:
|
|
525
|
-
onChange: n[
|
|
569
|
+
value: f.value,
|
|
570
|
+
onChange: n[10] ||= (e) => T(e.target.value)
|
|
526
571
|
}, [
|
|
527
|
-
b("option",
|
|
528
|
-
b("option",
|
|
529
|
-
b("option",
|
|
530
|
-
], 42,
|
|
572
|
+
b("option", Gt, x(h(o).button.widthAuto), 1),
|
|
573
|
+
b("option", Kt, x(h(o).button.fullWidth), 1),
|
|
574
|
+
b("option", qt, x(h(o).button.widthCustom), 1)
|
|
575
|
+
], 42, Wt), f.value === "custom" ? (i(), p("div", Jt, [b("input", {
|
|
531
576
|
type: "number",
|
|
532
|
-
class: g(h(
|
|
533
|
-
value:
|
|
534
|
-
min: "20
|
|
535
|
-
|
|
536
|
-
|
|
577
|
+
class: g([h(B), "tpl:min-w-0 tpl:flex-1"]),
|
|
578
|
+
value: y.value,
|
|
579
|
+
min: m.value === "%" ? 1 : 20,
|
|
580
|
+
max: m.value === "%" ? 100 : void 0,
|
|
581
|
+
onInput: n[11] ||= (e) => I(e.target.value)
|
|
582
|
+
}, null, 42, Yt), k($, {
|
|
583
|
+
class: "tpl:w-24 tpl:shrink-0",
|
|
584
|
+
"aria-label": h(o).button.widthUnit,
|
|
585
|
+
options: [{
|
|
586
|
+
value: "px",
|
|
587
|
+
label: "px"
|
|
588
|
+
}, {
|
|
589
|
+
value: "%",
|
|
590
|
+
label: "%"
|
|
591
|
+
}],
|
|
592
|
+
"model-value": m.value,
|
|
593
|
+
"onUpdate:modelValue": ee
|
|
594
|
+
}, null, 8, ["aria-label", "model-value"])])) : _("", !0)]),
|
|
537
595
|
_: 1
|
|
538
596
|
}, 8, ["label"]),
|
|
539
597
|
k(A, {
|
|
@@ -541,7 +599,7 @@ var _t = [
|
|
|
541
599
|
class: "tpl:mb-3.5",
|
|
542
600
|
path: "align"
|
|
543
601
|
}, {
|
|
544
|
-
default: a(() => [k(
|
|
602
|
+
default: a(() => [k($, {
|
|
545
603
|
options: [
|
|
546
604
|
{
|
|
547
605
|
value: "left",
|
|
@@ -557,13 +615,13 @@ var _t = [
|
|
|
557
615
|
}
|
|
558
616
|
],
|
|
559
617
|
"model-value": e.block.align ?? "center",
|
|
560
|
-
"onUpdate:modelValue": n[
|
|
618
|
+
"onUpdate:modelValue": n[12] ||= (e) => w("align", e)
|
|
561
619
|
}, null, 8, ["options", "model-value"])]),
|
|
562
620
|
_: 1
|
|
563
621
|
}, 8, ["label"])
|
|
564
622
|
], 64));
|
|
565
623
|
}
|
|
566
|
-
}),
|
|
624
|
+
}), Qt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, $t = { class: "tpl:flex tpl:items-center" }, en = ["aria-label"], tn = ["value", "aria-label"], nn = ["aria-label"], rn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, an = { class: "tpl:flex tpl:items-center" }, on = ["aria-label"], sn = ["value", "aria-label"], cn = ["aria-label"], ln = ["aria-label", "title"], un = { class: "tpl:flex tpl:items-center" }, dn = ["aria-label"], fn = ["value", "aria-label"], pn = ["aria-label"], mn = { class: "tpl:flex tpl:items-center" }, hn = ["aria-label"], gn = ["value", "aria-label"], _n = ["aria-label"], vn = "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)]", yn = "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)]", bn = /*#__PURE__*/ _t(/* @__PURE__ */ r({
|
|
567
625
|
__name: "SpacingControl",
|
|
568
626
|
props: {
|
|
569
627
|
path: {},
|
|
@@ -572,7 +630,7 @@ var _t = [
|
|
|
572
630
|
},
|
|
573
631
|
emits: ["update:modelValue"],
|
|
574
632
|
setup(e, { emit: t }) {
|
|
575
|
-
let n = e, r = t, { t: s } =
|
|
633
|
+
let n = e, r = t, { t: s } = Q(), c = C(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), l = E(c.value);
|
|
576
634
|
o(c, (e) => {
|
|
577
635
|
!e && l.value && (l.value = !1);
|
|
578
636
|
});
|
|
@@ -616,126 +674,126 @@ var _t = [
|
|
|
616
674
|
path: e.path,
|
|
617
675
|
label: e.label
|
|
618
676
|
}, {
|
|
619
|
-
default: a(() => [b("div",
|
|
620
|
-
b("div",
|
|
677
|
+
default: a(() => [b("div", Qt, [
|
|
678
|
+
b("div", $t, [
|
|
621
679
|
b("button", {
|
|
622
680
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
623
|
-
class: g([
|
|
681
|
+
class: g([vn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
624
682
|
onClick: n[0] ||= (e) => u("top", -1)
|
|
625
|
-
}, [k(h(
|
|
683
|
+
}, [k(h(W), {
|
|
626
684
|
size: 12,
|
|
627
685
|
"stroke-width": 2
|
|
628
|
-
})], 10,
|
|
686
|
+
})], 10, en),
|
|
629
687
|
b("input", {
|
|
630
688
|
type: "number",
|
|
631
|
-
class: g(
|
|
689
|
+
class: g(yn),
|
|
632
690
|
value: e.modelValue.top,
|
|
633
691
|
"aria-label": h(s).spacingControl.top,
|
|
634
692
|
min: "0",
|
|
635
693
|
onInput: n[1] ||= (e) => d("top", Number(e.target.value))
|
|
636
|
-
}, null, 40,
|
|
694
|
+
}, null, 40, tn),
|
|
637
695
|
b("button", {
|
|
638
696
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
639
|
-
class: g([
|
|
697
|
+
class: g([vn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
640
698
|
onClick: n[2] ||= (e) => u("top", 1)
|
|
641
|
-
}, [k(h(
|
|
699
|
+
}, [k(h(U), {
|
|
642
700
|
size: 12,
|
|
643
701
|
"stroke-width": 2
|
|
644
|
-
})], 10,
|
|
702
|
+
})], 10, nn)
|
|
645
703
|
]),
|
|
646
|
-
b("div",
|
|
647
|
-
b("div",
|
|
704
|
+
b("div", rn, [
|
|
705
|
+
b("div", an, [
|
|
648
706
|
b("button", {
|
|
649
707
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
650
|
-
class: g([
|
|
708
|
+
class: g([vn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
651
709
|
onClick: n[3] ||= (e) => u("left", -1)
|
|
652
|
-
}, [k(h(
|
|
710
|
+
}, [k(h(W), {
|
|
653
711
|
size: 12,
|
|
654
712
|
"stroke-width": 2
|
|
655
|
-
})], 10,
|
|
713
|
+
})], 10, on),
|
|
656
714
|
b("input", {
|
|
657
715
|
type: "number",
|
|
658
|
-
class: g(
|
|
716
|
+
class: g(yn),
|
|
659
717
|
value: e.modelValue.left,
|
|
660
718
|
"aria-label": h(s).spacingControl.left,
|
|
661
719
|
min: "0",
|
|
662
720
|
onInput: n[4] ||= (e) => d("left", Number(e.target.value))
|
|
663
|
-
}, null, 40,
|
|
721
|
+
}, null, 40, sn),
|
|
664
722
|
b("button", {
|
|
665
723
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
666
|
-
class: g([
|
|
724
|
+
class: g([vn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
667
725
|
onClick: n[5] ||= (e) => u("left", 1)
|
|
668
|
-
}, [k(h(
|
|
726
|
+
}, [k(h(U), {
|
|
669
727
|
size: 12,
|
|
670
728
|
"stroke-width": 2
|
|
671
|
-
})], 10,
|
|
729
|
+
})], 10, cn)
|
|
672
730
|
]),
|
|
673
731
|
b("button", {
|
|
674
732
|
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)]"]),
|
|
675
733
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
676
734
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
677
735
|
onClick: f
|
|
678
|
-
}, [l.value ? (i(), v(h(
|
|
736
|
+
}, [l.value ? (i(), v(h(X), {
|
|
679
737
|
key: 0,
|
|
680
738
|
size: 14,
|
|
681
739
|
"stroke-width": 2
|
|
682
|
-
})) : (i(), v(h(
|
|
740
|
+
})) : (i(), v(h(J), {
|
|
683
741
|
key: 1,
|
|
684
742
|
size: 14,
|
|
685
743
|
"stroke-width": 2
|
|
686
|
-
}))], 10,
|
|
687
|
-
b("div",
|
|
744
|
+
}))], 10, ln),
|
|
745
|
+
b("div", un, [
|
|
688
746
|
b("button", {
|
|
689
747
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
690
|
-
class: g([
|
|
748
|
+
class: g([vn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
691
749
|
onClick: n[6] ||= (e) => u("right", -1)
|
|
692
|
-
}, [k(h(
|
|
750
|
+
}, [k(h(W), {
|
|
693
751
|
size: 12,
|
|
694
752
|
"stroke-width": 2
|
|
695
|
-
})], 10,
|
|
753
|
+
})], 10, dn),
|
|
696
754
|
b("input", {
|
|
697
755
|
type: "number",
|
|
698
|
-
class: g(
|
|
756
|
+
class: g(yn),
|
|
699
757
|
value: e.modelValue.right,
|
|
700
758
|
"aria-label": h(s).spacingControl.right,
|
|
701
759
|
min: "0",
|
|
702
760
|
onInput: n[7] ||= (e) => d("right", Number(e.target.value))
|
|
703
|
-
}, null, 40,
|
|
761
|
+
}, null, 40, fn),
|
|
704
762
|
b("button", {
|
|
705
763
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
706
|
-
class: g([
|
|
764
|
+
class: g([vn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
707
765
|
onClick: n[8] ||= (e) => u("right", 1)
|
|
708
|
-
}, [k(h(
|
|
766
|
+
}, [k(h(U), {
|
|
709
767
|
size: 12,
|
|
710
768
|
"stroke-width": 2
|
|
711
|
-
})], 10,
|
|
769
|
+
})], 10, pn)
|
|
712
770
|
])
|
|
713
771
|
]),
|
|
714
|
-
b("div",
|
|
772
|
+
b("div", mn, [
|
|
715
773
|
b("button", {
|
|
716
774
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
717
|
-
class: g([
|
|
775
|
+
class: g([vn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
718
776
|
onClick: n[9] ||= (e) => u("bottom", -1)
|
|
719
|
-
}, [k(h(
|
|
777
|
+
}, [k(h(W), {
|
|
720
778
|
size: 12,
|
|
721
779
|
"stroke-width": 2
|
|
722
|
-
})], 10,
|
|
780
|
+
})], 10, hn),
|
|
723
781
|
b("input", {
|
|
724
782
|
type: "number",
|
|
725
|
-
class: g(
|
|
783
|
+
class: g(yn),
|
|
726
784
|
value: e.modelValue.bottom,
|
|
727
785
|
"aria-label": h(s).spacingControl.bottom,
|
|
728
786
|
min: "0",
|
|
729
787
|
onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
730
|
-
}, null, 40,
|
|
788
|
+
}, null, 40, gn),
|
|
731
789
|
b("button", {
|
|
732
790
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
733
|
-
class: g([
|
|
791
|
+
class: g([vn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
734
792
|
onClick: n[11] ||= (e) => u("bottom", 1)
|
|
735
|
-
}, [k(h(
|
|
793
|
+
}, [k(h(U), {
|
|
736
794
|
size: 12,
|
|
737
795
|
"stroke-width": 2
|
|
738
|
-
})], 10,
|
|
796
|
+
})], 10, _n)
|
|
739
797
|
])
|
|
740
798
|
])]),
|
|
741
799
|
_: 1
|
|
@@ -743,19 +801,19 @@ var _t = [
|
|
|
743
801
|
}
|
|
744
802
|
}), [["__scopeId", "data-v-94c2e6ff"]]);
|
|
745
803
|
// src/composables/useNaturalImageSize.ts
|
|
746
|
-
function
|
|
804
|
+
function xn(e) {
|
|
747
805
|
let t = E(null), n = () => {};
|
|
748
806
|
return o(e, (e) => {
|
|
749
|
-
n(), t.value = null, e && (n =
|
|
807
|
+
n(), t.value = null, e && (n = lt(e, (e) => {
|
|
750
808
|
t.value = e;
|
|
751
809
|
}));
|
|
752
810
|
}, { immediate: !0 }), t;
|
|
753
811
|
}
|
|
754
|
-
function
|
|
755
|
-
let e = l(
|
|
756
|
-
return async (t) =>
|
|
812
|
+
function Sn() {
|
|
813
|
+
let e = l(Be, null);
|
|
814
|
+
return async (t) => ct(e ? await Cn(e, t) : t);
|
|
757
815
|
}
|
|
758
|
-
function
|
|
816
|
+
function Cn(e, t) {
|
|
759
817
|
let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
|
|
760
818
|
e.lookup(t);
|
|
761
819
|
let r = e.get(t);
|
|
@@ -766,13 +824,13 @@ function mn(e, t) {
|
|
|
766
824
|
}) : Promise.resolve(n(r));
|
|
767
825
|
}
|
|
768
826
|
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
769
|
-
var
|
|
827
|
+
var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"], Dn = ["data-testid"], On = ["aria-label", "data-testid"], kn = [
|
|
770
828
|
"aria-label",
|
|
771
829
|
"title",
|
|
772
830
|
"aria-pressed",
|
|
773
831
|
"data-testid",
|
|
774
832
|
"onClick"
|
|
775
|
-
],
|
|
833
|
+
], An = ["data-testid"], jn = /* @__PURE__ */ r({
|
|
776
834
|
__name: "BackgroundImageControl",
|
|
777
835
|
props: {
|
|
778
836
|
hideLabel: { type: Boolean },
|
|
@@ -783,14 +841,14 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
783
841
|
},
|
|
784
842
|
emits: ["update:modelValue"],
|
|
785
843
|
setup(e, { emit: t }) {
|
|
786
|
-
let n = e, r = t, { t: a } =
|
|
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 = Sn(), y;
|
|
787
845
|
u(() => clearTimeout(y));
|
|
788
846
|
function S(e) {
|
|
789
|
-
n.measure && !
|
|
847
|
+
n.measure && !Ee(e, o) && (y = setTimeout(async () => {
|
|
790
848
|
let t = await f(e), i = n.modelValue;
|
|
791
849
|
t && i?.url === e && r("update:modelValue", {
|
|
792
850
|
...i,
|
|
793
|
-
...
|
|
851
|
+
...at(t)
|
|
794
852
|
});
|
|
795
853
|
}, 300));
|
|
796
854
|
}
|
|
@@ -799,11 +857,11 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
799
857
|
r("update:modelValue", void 0);
|
|
800
858
|
return;
|
|
801
859
|
}
|
|
802
|
-
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ??
|
|
860
|
+
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ?? De(e), s = n.measure ? t : null;
|
|
803
861
|
r("update:modelValue", {
|
|
804
862
|
...o,
|
|
805
863
|
url: e,
|
|
806
|
-
...s ?
|
|
864
|
+
...s ? at(s) : {}
|
|
807
865
|
}), s || S(e);
|
|
808
866
|
}
|
|
809
867
|
function T(e) {
|
|
@@ -835,7 +893,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
835
893
|
"bottom-left": a.blockSettings.backgroundPositionBottomLeft,
|
|
836
894
|
"bottom-center": a.blockSettings.backgroundPositionBottomCenter,
|
|
837
895
|
"bottom-right": a.blockSettings.backgroundPositionBottomRight
|
|
838
|
-
})), j = C(() =>
|
|
896
|
+
})), j = C(() => we.flatMap((e) => ve.map((t) => ({
|
|
839
897
|
x: t,
|
|
840
898
|
y: e,
|
|
841
899
|
label: A.value[`${e}-${t}`]
|
|
@@ -843,12 +901,12 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
843
901
|
function M(e) {
|
|
844
902
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
845
903
|
}
|
|
846
|
-
let F = E(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } =
|
|
904
|
+
let F = E(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } = ft({
|
|
847
905
|
target: F,
|
|
848
|
-
blocked: () =>
|
|
849
|
-
apply: (e) => w(e.url,
|
|
906
|
+
blocked: () => Ee(s.value, o),
|
|
907
|
+
apply: (e) => w(e.url, et(e.width, e.height))
|
|
850
908
|
});
|
|
851
|
-
return (t, n) => (i(), p("div",
|
|
909
|
+
return (t, n) => (i(), p("div", wn, [b("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
852
910
|
key: 0,
|
|
853
911
|
class: g(h(V))
|
|
854
912
|
}, x(h(a).blockSettings.backgroundImage), 3)), b("div", {
|
|
@@ -857,7 +915,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
857
915
|
class: "tpl:relative",
|
|
858
916
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
859
917
|
}, [
|
|
860
|
-
h(ee) ? (i(), v(
|
|
918
|
+
h(ee) ? (i(), v(rt, {
|
|
861
919
|
key: 0,
|
|
862
920
|
uploading: h(L)
|
|
863
921
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
@@ -881,16 +939,16 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
881
939
|
}, [k(h(de), {
|
|
882
940
|
size: 14,
|
|
883
941
|
"stroke-width": 1.5
|
|
884
|
-
}), m(" " + x(h(a).image.browseMedia), 1)], 8,
|
|
885
|
-
], 8,
|
|
942
|
+
}), m(" " + x(h(a).image.browseMedia), 1)], 8, En)) : _("", !0)
|
|
943
|
+
], 8, Tn)]), d.value && e.modelValue ? (i(), p(D, { key: 0 }, [
|
|
886
944
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
887
945
|
key: 0,
|
|
888
946
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
889
|
-
}, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundSize), 3), k(
|
|
947
|
+
}, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundSize), 3), k($, {
|
|
890
948
|
options: O.value,
|
|
891
949
|
"model-value": e.modelValue.size,
|
|
892
950
|
"onUpdate:modelValue": n[1] ||= (e) => T({ size: e })
|
|
893
|
-
}, null, 8, ["options", "model-value"])], 8,
|
|
951
|
+
}, null, 8, ["options", "model-value"])], 8, Dn)),
|
|
894
952
|
b("div", null, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundPosition), 3), b("div", {
|
|
895
953
|
role: "group",
|
|
896
954
|
"aria-label": h(a).blockSettings.backgroundPosition,
|
|
@@ -908,7 +966,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
908
966
|
x: t.x,
|
|
909
967
|
y: t.y
|
|
910
968
|
} })
|
|
911
|
-
}, [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,
|
|
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, kn))), 128))], 8, On)]),
|
|
912
970
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
913
971
|
key: 1,
|
|
914
972
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
@@ -917,10 +975,10 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
917
975
|
"model-value": e.modelValue.repeat,
|
|
918
976
|
label: h(a).blockSettings.backgroundRepeat,
|
|
919
977
|
"onUpdate:modelValue": n[2] ||= (e) => T({ repeat: e })
|
|
920
|
-
}, null, 8, ["model-value", "label"])], 8,
|
|
978
|
+
}, null, 8, ["model-value", "label"])], 8, An))
|
|
921
979
|
], 64)) : _("", !0)]));
|
|
922
980
|
}
|
|
923
|
-
}),
|
|
981
|
+
}), Mn = ["data-testid"], Nn = ["data-testid"], Pn = /* @__PURE__ */ r({
|
|
924
982
|
__name: "CollapsibleSection",
|
|
925
983
|
props: {
|
|
926
984
|
title: {},
|
|
@@ -939,29 +997,29 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
939
997
|
class: g(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
940
998
|
size: 12,
|
|
941
999
|
"stroke-width": 2
|
|
942
|
-
}, null, 8, ["class"]), b("span", null, x(e.title), 1)], 8,
|
|
1000
|
+
}, null, 8, ["class"]), b("span", null, x(e.title), 1)], 8, Mn), s(b("div", {
|
|
943
1001
|
class: "tpl:mt-3",
|
|
944
1002
|
"data-testid": e.headerTestId ? `${e.headerTestId}-content` : void 0
|
|
945
|
-
}, [d(t.$slots, "default")], 8,
|
|
1003
|
+
}, [d(t.$slots, "default")], 8, Nn), [[T, e.open]])], 2));
|
|
946
1004
|
}
|
|
947
|
-
}),
|
|
1005
|
+
}), Fn = {
|
|
948
1006
|
key: 0,
|
|
949
1007
|
"data-testid": "section-hero-columns-note",
|
|
950
1008
|
class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
951
|
-
},
|
|
1009
|
+
}, In = {
|
|
952
1010
|
key: 1,
|
|
953
1011
|
"data-testid": "section-hero",
|
|
954
1012
|
class: "tpl:mt-3.5 tpl:space-y-3.5"
|
|
955
|
-
},
|
|
1013
|
+
}, Ln = { "data-testid": "section-hero-height" }, Rn = {
|
|
956
1014
|
key: 0,
|
|
957
1015
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
958
|
-
},
|
|
1016
|
+
}, zn = {
|
|
959
1017
|
key: 1,
|
|
960
1018
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
961
|
-
},
|
|
1019
|
+
}, Bn = {
|
|
962
1020
|
key: 1,
|
|
963
1021
|
"data-testid": "section-hero-align"
|
|
964
|
-
},
|
|
1022
|
+
}, Vn = 300, Hn = /* @__PURE__ */ r({
|
|
965
1023
|
__name: "HeroControl",
|
|
966
1024
|
props: { section: {} },
|
|
967
1025
|
emits: ["update"],
|
|
@@ -969,7 +1027,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
969
1027
|
function n(e) {
|
|
970
1028
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
971
1029
|
}
|
|
972
|
-
let r = e, a = t, { t: o } =
|
|
1030
|
+
let r = e, a = t, { t: o } = Q(), s = l(ze, _e.liquid), c = l(Ze, null), u = l(Ue, void 0), d = Sn(), 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 : Vn), D = C(() => [
|
|
973
1031
|
{
|
|
974
1032
|
value: "fit",
|
|
975
1033
|
label: o.blockSettings.heroHeightFit
|
|
@@ -996,9 +1054,9 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
996
1054
|
value: "bottom",
|
|
997
1055
|
label: o.blockSettings.heroAlignBottom
|
|
998
1056
|
}
|
|
999
|
-
]), A = C(() => T.value === "image" && m.value && !y.value &&
|
|
1057
|
+
]), A = C(() => T.value === "image" && m.value && !y.value && me(r.section.backgroundImage) === null);
|
|
1000
1058
|
function j() {
|
|
1001
|
-
return (c ?
|
|
1059
|
+
return (c ? dt(c.content.value, r.section.id, u, c.activeLocale?.value ?? void 0) : null) ?? st(c?.state.content.settings);
|
|
1002
1060
|
}
|
|
1003
1061
|
function M(e) {
|
|
1004
1062
|
let t = S.value?.verticalAlign ?? "middle";
|
|
@@ -1014,7 +1072,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1014
1072
|
a("update", { hero: void 0 });
|
|
1015
1073
|
return;
|
|
1016
1074
|
}
|
|
1017
|
-
let n =
|
|
1075
|
+
let n = me(r.section.backgroundImage), i = n === null ? Vn : Math.round(j() * n);
|
|
1018
1076
|
a("update", { hero: {
|
|
1019
1077
|
height: i,
|
|
1020
1078
|
verticalAlign: t
|
|
@@ -1022,11 +1080,11 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1022
1080
|
}
|
|
1023
1081
|
async function N() {
|
|
1024
1082
|
let e = r.section.backgroundImage;
|
|
1025
|
-
if (!e || !m.value || y.value ||
|
|
1083
|
+
if (!e || !m.value || y.value || me(e) !== null) return;
|
|
1026
1084
|
let t = e.url, n = await d(t), i = r.section.backgroundImage;
|
|
1027
1085
|
n && i && i.url === t && a("update", { backgroundImage: {
|
|
1028
1086
|
...i,
|
|
1029
|
-
...
|
|
1087
|
+
...at(n)
|
|
1030
1088
|
} });
|
|
1031
1089
|
}
|
|
1032
1090
|
function P(e) {
|
|
@@ -1041,17 +1099,17 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1041
1099
|
verticalAlign: e
|
|
1042
1100
|
} });
|
|
1043
1101
|
}
|
|
1044
|
-
return (e, t) => !w.value && S.value ? (i(), p("p",
|
|
1045
|
-
b("div",
|
|
1102
|
+
return (e, t) => !w.value && S.value ? (i(), p("p", Fn, x(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || S.value) ? (i(), p("div", In, [
|
|
1103
|
+
b("div", Ln, [
|
|
1046
1104
|
b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroHeight), 3),
|
|
1047
|
-
k(
|
|
1105
|
+
k($, {
|
|
1048
1106
|
options: D.value,
|
|
1049
1107
|
"model-value": T.value,
|
|
1050
1108
|
"onUpdate:modelValue": M
|
|
1051
1109
|
}, null, 8, ["options", "model-value"]),
|
|
1052
|
-
y.value ? (i(), p("p",
|
|
1110
|
+
y.value ? (i(), p("p", Rn, x(h(o).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (i(), p("p", zn, x(h(o).blockSettings.heroSizeUnknown), 1)) : _("", !0)
|
|
1053
1111
|
]),
|
|
1054
|
-
T.value === "fixed" ? (i(), v(
|
|
1112
|
+
T.value === "fixed" ? (i(), v(Dt, {
|
|
1055
1113
|
key: 0,
|
|
1056
1114
|
"model-value": E.value,
|
|
1057
1115
|
min: 1,
|
|
@@ -1059,24 +1117,24 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1059
1117
|
testid: "section-hero-height-px",
|
|
1060
1118
|
"onUpdate:modelValue": P
|
|
1061
1119
|
}, null, 8, ["model-value"])) : _("", !0),
|
|
1062
|
-
S.value ? (i(), p("div",
|
|
1120
|
+
S.value ? (i(), p("div", Bn, [b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroAlign), 3), k($, {
|
|
1063
1121
|
options: O.value,
|
|
1064
1122
|
"model-value": S.value.verticalAlign,
|
|
1065
1123
|
"onUpdate:modelValue": F
|
|
1066
1124
|
}, null, 8, ["options", "model-value"])])) : _("", !0)
|
|
1067
1125
|
])) : _("", !0);
|
|
1068
1126
|
}
|
|
1069
|
-
}),
|
|
1127
|
+
}), Un = /* @__PURE__ */ new Set([
|
|
1070
1128
|
"fullWidth",
|
|
1071
1129
|
"backgroundColor",
|
|
1072
1130
|
"backgroundImage",
|
|
1073
1131
|
"padding",
|
|
1074
1132
|
"borderRadius"
|
|
1075
1133
|
]);
|
|
1076
|
-
function
|
|
1134
|
+
function Wn(e) {
|
|
1077
1135
|
return typeof e == "string" && e !== "";
|
|
1078
1136
|
}
|
|
1079
|
-
function
|
|
1137
|
+
function Gn(e) {
|
|
1080
1138
|
return e ? [
|
|
1081
1139
|
e.top,
|
|
1082
1140
|
e.right,
|
|
@@ -1084,40 +1142,40 @@ function In(e) {
|
|
|
1084
1142
|
e.left
|
|
1085
1143
|
].some((e) => e !== 0) : !1;
|
|
1086
1144
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return
|
|
1145
|
+
function Kn(e) {
|
|
1146
|
+
return Wn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1089
1147
|
}
|
|
1090
|
-
function
|
|
1091
|
-
return e.fullWidth !== !0 ||
|
|
1148
|
+
function qn(e) {
|
|
1149
|
+
return e.fullWidth !== !0 || Gn(e.padding) || xe(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Un.has(e));
|
|
1092
1150
|
}
|
|
1093
|
-
function
|
|
1094
|
-
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 &&
|
|
1151
|
+
function Jn(e, t = {}) {
|
|
1152
|
+
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && Ae(t.layout);
|
|
1095
1153
|
}
|
|
1096
|
-
function
|
|
1154
|
+
function Yn(e) {
|
|
1097
1155
|
let t = {};
|
|
1098
|
-
return
|
|
1156
|
+
return Wn(e.styles.backgroundColor) && (t.backgroundColor = e.styles.backgroundColor), e.backgroundImage && (t.backgroundImage = e.backgroundImage), t;
|
|
1099
1157
|
}
|
|
1100
|
-
function
|
|
1158
|
+
function Xn(e) {
|
|
1101
1159
|
let t = { ...e.styles };
|
|
1102
1160
|
return delete t.backgroundColor, t;
|
|
1103
1161
|
}
|
|
1104
|
-
function
|
|
1162
|
+
function Zn(e, t) {
|
|
1105
1163
|
if (t) return e.wrapper ? { wrapper: {
|
|
1106
1164
|
...e.wrapper,
|
|
1107
1165
|
fullWidth: !0
|
|
1108
1166
|
} } : {
|
|
1109
1167
|
wrapper: {
|
|
1110
1168
|
fullWidth: !0,
|
|
1111
|
-
...
|
|
1169
|
+
...Yn(e)
|
|
1112
1170
|
},
|
|
1113
|
-
styles:
|
|
1171
|
+
styles: Xn(e),
|
|
1114
1172
|
backgroundImage: void 0
|
|
1115
1173
|
};
|
|
1116
1174
|
let n = e.wrapper;
|
|
1117
1175
|
if (!n) return {};
|
|
1118
|
-
if (
|
|
1176
|
+
if (qn(n) && !Kn(e)) {
|
|
1119
1177
|
let t = { ...e.styles };
|
|
1120
|
-
return
|
|
1178
|
+
return Wn(n.backgroundColor) && (t.backgroundColor = n.backgroundColor), {
|
|
1121
1179
|
wrapper: void 0,
|
|
1122
1180
|
styles: t,
|
|
1123
1181
|
backgroundImage: n.backgroundImage
|
|
@@ -1128,33 +1186,33 @@ function Hn(e, t) {
|
|
|
1128
1186
|
fullWidth: !1
|
|
1129
1187
|
} };
|
|
1130
1188
|
}
|
|
1131
|
-
function
|
|
1189
|
+
function Qn(e) {
|
|
1132
1190
|
let t = e.wrapper;
|
|
1133
|
-
return t &&
|
|
1191
|
+
return t && qn(t) && !Kn(e) ? Zn(e, !1) : { wrapper: void 0 };
|
|
1134
1192
|
}
|
|
1135
1193
|
// src/components/toolbar/CommonBlockSettings.vue?vue&type=script&setup=true&lang.ts
|
|
1136
|
-
var
|
|
1194
|
+
var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tpl:gap-2" }, tr = {
|
|
1137
1195
|
key: 0,
|
|
1138
1196
|
class: "tpl:space-y-2"
|
|
1139
|
-
},
|
|
1197
|
+
}, nr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, rr = {
|
|
1140
1198
|
key: 0,
|
|
1141
1199
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1142
|
-
},
|
|
1200
|
+
}, ir = { class: "tpl:flex tpl:gap-2" }, ar = ["disabled"], or = ["disabled"], sr = ["disabled"], cr = {
|
|
1143
1201
|
key: 1,
|
|
1144
1202
|
class: "tpl:space-y-2"
|
|
1145
|
-
},
|
|
1203
|
+
}, lr = ["value"], ur = { value: "" }, dr = ["label"], fr = ["value"], pr = ["value"], mr = {
|
|
1146
1204
|
key: 0,
|
|
1147
1205
|
value: "__custom__"
|
|
1148
|
-
},
|
|
1206
|
+
}, hr = {
|
|
1149
1207
|
key: 0,
|
|
1150
1208
|
class: "tpl:space-y-2"
|
|
1151
|
-
},
|
|
1209
|
+
}, gr = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, _r = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, vr = { class: "tpl:flex tpl:justify-end" }, yr = ["disabled"], br = {
|
|
1152
1210
|
key: 0,
|
|
1153
1211
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1154
|
-
},
|
|
1212
|
+
}, xr = { class: "tpl:space-y-1" }, Sr = { 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)]" }, Cr = {
|
|
1155
1213
|
key: 0,
|
|
1156
1214
|
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)]"
|
|
1157
|
-
},
|
|
1215
|
+
}, wr = /* @__PURE__ */ r({
|
|
1158
1216
|
__name: "CommonBlockSettings",
|
|
1159
1217
|
props: {
|
|
1160
1218
|
block: {},
|
|
@@ -1162,35 +1220,35 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1162
1220
|
},
|
|
1163
1221
|
emits: ["update"],
|
|
1164
1222
|
setup(e, { emit: r }) {
|
|
1165
|
-
let u = e, d = r, { t: f, format: w } =
|
|
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" && Jn(u.block, {
|
|
1166
1224
|
sectionWrapper: z,
|
|
1167
1225
|
layout: R
|
|
1168
|
-
})),
|
|
1169
|
-
function
|
|
1170
|
-
u.block.type === "wrapper" ? d("update", { fullWidth: e }) : u.block.type === "section" && d("update",
|
|
1226
|
+
})), V = C(() => u.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
1227
|
+
function ie(e) {
|
|
1228
|
+
u.block.type === "wrapper" ? d("update", { fullWidth: e }) : u.block.type === "section" && d("update", Zn(u.block, e));
|
|
1171
1229
|
}
|
|
1172
|
-
let
|
|
1230
|
+
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(() => {
|
|
1173
1231
|
let e = u.block;
|
|
1174
1232
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundColor ?? "" : e.styles.backgroundColor ?? "";
|
|
1175
|
-
}),
|
|
1233
|
+
}), le = C(() => {
|
|
1176
1234
|
let e = u.block;
|
|
1177
1235
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundImage : e.type === "section" ? e.backgroundImage : void 0;
|
|
1178
1236
|
});
|
|
1179
|
-
function
|
|
1237
|
+
function ue(e, t) {
|
|
1180
1238
|
d("update", { wrapper: {
|
|
1181
1239
|
...e,
|
|
1182
1240
|
...t
|
|
1183
1241
|
} });
|
|
1184
1242
|
}
|
|
1185
|
-
function
|
|
1243
|
+
function de(e) {
|
|
1186
1244
|
let t = u.block;
|
|
1187
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1245
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? ue(t.wrapper, { backgroundColor: e }) : Ce("backgroundColor", e);
|
|
1188
1246
|
}
|
|
1189
|
-
function
|
|
1247
|
+
function fe(e) {
|
|
1190
1248
|
let t = u.block;
|
|
1191
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1249
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? ue(t.wrapper, { backgroundImage: e }) : d("update", { backgroundImage: e });
|
|
1192
1250
|
}
|
|
1193
|
-
let
|
|
1251
|
+
let W = l(Ve, null), G = nt(), K = E(!1), q = t(/* @__PURE__ */ new Set()), J = E(!1), Y = E(""), X = E(""), pe = [{
|
|
1194
1252
|
key: "desktop",
|
|
1195
1253
|
icon: re,
|
|
1196
1254
|
labelKey: "showOnDesktop"
|
|
@@ -1199,49 +1257,49 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1199
1257
|
icon: ce,
|
|
1200
1258
|
labelKey: "showOnMobile"
|
|
1201
1259
|
}];
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1260
|
+
function Z(e) {
|
|
1261
|
+
q.has(e) ? q.delete(e) : q.add(e);
|
|
1204
1262
|
}
|
|
1205
|
-
let
|
|
1206
|
-
function
|
|
1263
|
+
let me = C(() => !!W || I.length > 0 || L);
|
|
1264
|
+
function he(e) {
|
|
1207
1265
|
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
1208
1266
|
let t = e;
|
|
1209
1267
|
return typeof t.label == "string" && typeof t.before == "string" && typeof t.after == "string";
|
|
1210
1268
|
}
|
|
1211
|
-
function
|
|
1269
|
+
function ge(e, t) {
|
|
1212
1270
|
let n = T?.state?.selectedBlockId;
|
|
1213
1271
|
u.block.id === e && (n === void 0 || n === e) ? d("update", { displayCondition: t }) : T && T.findBlockLocation(e) && T.updateBlock(e, { displayCondition: t });
|
|
1214
1272
|
}
|
|
1215
|
-
async function
|
|
1216
|
-
if (!
|
|
1217
|
-
let e = u.block.id, t = T?.activeLocale?.value ?? null, n =
|
|
1218
|
-
|
|
1273
|
+
async function _e() {
|
|
1274
|
+
if (!W || K.value) return;
|
|
1275
|
+
let e = u.block.id, t = T?.activeLocale?.value ?? null, n = ke(y(u.block)), r = u.block.displayCondition ? ke(y(u.block.displayCondition)) : void 0;
|
|
1276
|
+
K.value = !0;
|
|
1219
1277
|
try {
|
|
1220
|
-
let i = await
|
|
1278
|
+
let i = await W(r ? {
|
|
1221
1279
|
current: r,
|
|
1222
1280
|
block: n
|
|
1223
1281
|
} : { block: n });
|
|
1224
|
-
if (!
|
|
1225
|
-
if (!
|
|
1226
|
-
|
|
1282
|
+
if (!G.alive || (T?.activeLocale?.value ?? null) !== t || i === null) return;
|
|
1283
|
+
if (!he(i)) {
|
|
1284
|
+
vt.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
|
|
1227
1285
|
return;
|
|
1228
1286
|
}
|
|
1229
|
-
|
|
1287
|
+
ge(e, ke(i));
|
|
1230
1288
|
} finally {
|
|
1231
|
-
|
|
1289
|
+
G.alive && (K.value = !1);
|
|
1232
1290
|
}
|
|
1233
1291
|
}
|
|
1234
|
-
let
|
|
1235
|
-
function
|
|
1236
|
-
|
|
1292
|
+
let ve = C(() => u.block.displayCondition ? !I.some((e) => e.label === u.block.displayCondition?.label) : !1);
|
|
1293
|
+
function ye() {
|
|
1294
|
+
J.value = !0, ve.value && u.block.displayCondition ? (Y.value = u.block.displayCondition.before, X.value = u.block.displayCondition.after ?? "") : (Y.value = "", X.value = "");
|
|
1237
1295
|
}
|
|
1238
|
-
function
|
|
1239
|
-
let e =
|
|
1296
|
+
function be() {
|
|
1297
|
+
let e = Y.value.trim(), t = X.value.trim();
|
|
1240
1298
|
e && (d("update", { displayCondition: {
|
|
1241
1299
|
label: f.blockSettings.customCondition,
|
|
1242
1300
|
before: e,
|
|
1243
1301
|
after: t
|
|
1244
|
-
} }),
|
|
1302
|
+
} }), J.value = !1, Y.value = e, X.value = t);
|
|
1245
1303
|
}
|
|
1246
1304
|
o([
|
|
1247
1305
|
() => T?.state?.template?.id,
|
|
@@ -1251,44 +1309,44 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1251
1309
|
() => u.block.displayCondition?.after
|
|
1252
1310
|
], () => {
|
|
1253
1311
|
let e = u.block.displayCondition;
|
|
1254
|
-
!e || !
|
|
1312
|
+
!e || !ve.value ? (J.value = !1, Y.value = "", X.value = "") : (Y.value = e.before, X.value = e.after ?? "");
|
|
1255
1313
|
}, { immediate: !0 });
|
|
1256
|
-
let
|
|
1314
|
+
let xe = C(() => {
|
|
1257
1315
|
let e = {};
|
|
1258
1316
|
for (let t of I) {
|
|
1259
1317
|
let n = t.group ?? "";
|
|
1260
1318
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1261
1319
|
}
|
|
1262
1320
|
return e;
|
|
1263
|
-
}),
|
|
1264
|
-
function
|
|
1321
|
+
}), Se = C(() => u.block.type === "section" && Te(u.block)?.applied === !0);
|
|
1322
|
+
function Ce(e, t) {
|
|
1265
1323
|
d("update", { styles: {
|
|
1266
1324
|
...u.block.styles,
|
|
1267
1325
|
[e]: t
|
|
1268
1326
|
} });
|
|
1269
1327
|
}
|
|
1270
|
-
function
|
|
1328
|
+
function we(e) {
|
|
1271
1329
|
return u.block.visibility?.[e] !== !1;
|
|
1272
1330
|
}
|
|
1273
|
-
function
|
|
1331
|
+
function Ee(e) {
|
|
1274
1332
|
let t = {
|
|
1275
|
-
desktop:
|
|
1276
|
-
mobile:
|
|
1333
|
+
desktop: we("desktop"),
|
|
1334
|
+
mobile: we("mobile")
|
|
1277
1335
|
};
|
|
1278
1336
|
t[e] = !t[e], d("update", { visibility: t });
|
|
1279
1337
|
}
|
|
1280
1338
|
return (t, r) => (i(), p("div", { class: g(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1281
|
-
k(
|
|
1339
|
+
k(Pn, {
|
|
1282
1340
|
title: h(f).blockSettings.spacing,
|
|
1283
|
-
open:
|
|
1341
|
+
open: q.has("spacing"),
|
|
1284
1342
|
"no-border": e.isFirstSection,
|
|
1285
|
-
onToggle: r[1] ||= (e) =>
|
|
1343
|
+
onToggle: r[1] ||= (e) => Z("spacing")
|
|
1286
1344
|
}, {
|
|
1287
|
-
default: a(() => [k(
|
|
1345
|
+
default: a(() => [k(bn, {
|
|
1288
1346
|
path: "styles.padding",
|
|
1289
1347
|
label: h(f).blockSettings.padding,
|
|
1290
1348
|
"model-value": e.block.styles.padding,
|
|
1291
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
1349
|
+
"onUpdate:modelValue": r[0] ||= (e) => Ce("padding", e)
|
|
1292
1350
|
}, null, 8, ["label", "model-value"])]),
|
|
1293
1351
|
_: 1
|
|
1294
1352
|
}, 8, [
|
|
@@ -1296,21 +1354,21 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1296
1354
|
"open",
|
|
1297
1355
|
"no-border"
|
|
1298
1356
|
]),
|
|
1299
|
-
k(
|
|
1357
|
+
k(Pn, {
|
|
1300
1358
|
title: h(f).blockSettings.background,
|
|
1301
|
-
open:
|
|
1359
|
+
open: q.has("bg"),
|
|
1302
1360
|
"header-test-id": "block-settings-background",
|
|
1303
|
-
onToggle: r[4] ||= (e) =>
|
|
1361
|
+
onToggle: r[4] ||= (e) => Z("bg")
|
|
1304
1362
|
}, {
|
|
1305
1363
|
default: a(() => [
|
|
1306
1364
|
k(A, {
|
|
1307
|
-
path:
|
|
1365
|
+
path: oe.value,
|
|
1308
1366
|
label: h(f).blockSettings.color
|
|
1309
1367
|
}, {
|
|
1310
1368
|
default: a(() => [k(M, {
|
|
1311
|
-
"model-value":
|
|
1369
|
+
"model-value": se.value,
|
|
1312
1370
|
"allow-transparent": "",
|
|
1313
|
-
"onUpdate:modelValue":
|
|
1371
|
+
"onUpdate:modelValue": de
|
|
1314
1372
|
}, null, 8, ["model-value"])]),
|
|
1315
1373
|
_: 1
|
|
1316
1374
|
}, 8, ["path", "label"]),
|
|
@@ -1320,14 +1378,14 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1320
1378
|
label: h(f).blockSettings.fullWidthBackground
|
|
1321
1379
|
}, {
|
|
1322
1380
|
"label-actions": a(({ controlId: e }) => [k(P, {
|
|
1323
|
-
"data-testid":
|
|
1381
|
+
"data-testid": V.value,
|
|
1324
1382
|
"control-id": e,
|
|
1325
1383
|
"hide-label": "",
|
|
1326
1384
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1327
1385
|
"model-value": te.value,
|
|
1328
|
-
disabled:
|
|
1386
|
+
disabled: ne.value,
|
|
1329
1387
|
label: h(f).blockSettings.fullWidthBackground,
|
|
1330
|
-
"onUpdate:modelValue":
|
|
1388
|
+
"onUpdate:modelValue": ie
|
|
1331
1389
|
}, null, 8, [
|
|
1332
1390
|
"data-testid",
|
|
1333
1391
|
"control-id",
|
|
@@ -1339,21 +1397,21 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1339
1397
|
}, 8, ["path", "label"])) : _("", !0),
|
|
1340
1398
|
e.block.type === "section" ? (i(), v(A, {
|
|
1341
1399
|
key: 1,
|
|
1342
|
-
path:
|
|
1400
|
+
path: U.value,
|
|
1343
1401
|
label: h(f).blockSettings.backgroundImage
|
|
1344
1402
|
}, {
|
|
1345
|
-
default: a(() => [k(
|
|
1403
|
+
default: a(() => [k(jn, {
|
|
1346
1404
|
"hide-label": "",
|
|
1347
1405
|
class: "tpl:mt-3.5",
|
|
1348
|
-
"model-value":
|
|
1406
|
+
"model-value": le.value,
|
|
1349
1407
|
"testid-prefix": "section",
|
|
1350
1408
|
measure: "",
|
|
1351
|
-
"hero-mode":
|
|
1352
|
-
"onUpdate:modelValue":
|
|
1409
|
+
"hero-mode": Se.value,
|
|
1410
|
+
"onUpdate:modelValue": fe
|
|
1353
1411
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1354
1412
|
_: 1
|
|
1355
1413
|
}, 8, ["path", "label"])) : _("", !0),
|
|
1356
|
-
|
|
1414
|
+
ae.value ? (i(), v(A, {
|
|
1357
1415
|
key: 2,
|
|
1358
1416
|
path: "styles.backgroundColor",
|
|
1359
1417
|
label: h(f).blockSettings.contentBackground
|
|
@@ -1362,7 +1420,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1362
1420
|
"data-testid": "section-content-background",
|
|
1363
1421
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1364
1422
|
"allow-transparent": "",
|
|
1365
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
1423
|
+
"onUpdate:modelValue": r[2] ||= (e) => Ce("backgroundColor", e)
|
|
1366
1424
|
}, null, 8, ["model-value"])]),
|
|
1367
1425
|
_: 1
|
|
1368
1426
|
}, 8, ["label"])) : _("", !0),
|
|
@@ -1371,7 +1429,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1371
1429
|
path: "hero",
|
|
1372
1430
|
label: h(f).blocks.hero
|
|
1373
1431
|
}, {
|
|
1374
|
-
default: a(() => [k(
|
|
1432
|
+
default: a(() => [k(Hn, {
|
|
1375
1433
|
section: e.block,
|
|
1376
1434
|
onUpdate: r[3] ||= (e) => d("update", e)
|
|
1377
1435
|
}, null, 8, ["section"])]),
|
|
@@ -1380,28 +1438,28 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1380
1438
|
]),
|
|
1381
1439
|
_: 1
|
|
1382
1440
|
}, 8, ["title", "open"]),
|
|
1383
|
-
k(
|
|
1441
|
+
k(Pn, {
|
|
1384
1442
|
title: h(f).blockSettings.display,
|
|
1385
|
-
open:
|
|
1386
|
-
onToggle: r[6] ||= (e) =>
|
|
1443
|
+
open: q.has("display"),
|
|
1444
|
+
onToggle: r[6] ||= (e) => Z("display")
|
|
1387
1445
|
}, {
|
|
1388
|
-
default: a(() => [b("div",
|
|
1446
|
+
default: a(() => [b("div", $n, [j.value && h(O) ? (i(), v(P, {
|
|
1389
1447
|
key: 0,
|
|
1390
1448
|
"data-testid": "locale-hide",
|
|
1391
1449
|
disabled: !h(O).locales.includes(j.value),
|
|
1392
1450
|
"model-value": N.value,
|
|
1393
|
-
label: h(w)(h(f).localization.hide, { language: h(
|
|
1451
|
+
label: h(w)(h(f).localization.hide, { language: h(gt)(j.value) }),
|
|
1394
1452
|
"onUpdate:modelValue": r[5] ||= (t) => h(T)?.setBlockHidden?.(e.block.id, t)
|
|
1395
1453
|
}, null, 8, [
|
|
1396
1454
|
"disabled",
|
|
1397
1455
|
"model-value",
|
|
1398
1456
|
"label"
|
|
1399
|
-
])) : _("", !0), (i(), p(D, null, c(
|
|
1457
|
+
])) : _("", !0), (i(), p(D, null, c(pe, (e) => k(A, {
|
|
1400
1458
|
key: e.key,
|
|
1401
1459
|
path: `visibility.${e.key}`,
|
|
1402
1460
|
label: h(f).blockSettings[e.labelKey]
|
|
1403
1461
|
}, {
|
|
1404
|
-
label: a(() => [b("span",
|
|
1462
|
+
label: a(() => [b("span", er, [(i(), v(n(e.icon), {
|
|
1405
1463
|
size: 14,
|
|
1406
1464
|
"stroke-width": 1.5
|
|
1407
1465
|
})), m(" " + x(h(f).blockSettings[e.labelKey]), 1)])]),
|
|
@@ -1409,9 +1467,9 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1409
1467
|
"control-id": t,
|
|
1410
1468
|
"hide-label": "",
|
|
1411
1469
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1412
|
-
"model-value":
|
|
1470
|
+
"model-value": we(e.key),
|
|
1413
1471
|
label: h(f).blockSettings[e.labelKey],
|
|
1414
|
-
"onUpdate:modelValue": (t) =>
|
|
1472
|
+
"onUpdate:modelValue": (t) => Ee(e.key)
|
|
1415
1473
|
}, null, 8, [
|
|
1416
1474
|
"control-id",
|
|
1417
1475
|
"model-value",
|
|
@@ -1422,51 +1480,51 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1422
1480
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1423
1481
|
_: 1
|
|
1424
1482
|
}, 8, ["title", "open"]),
|
|
1425
|
-
|
|
1483
|
+
me.value ? (i(), v(Pn, {
|
|
1426
1484
|
key: 0,
|
|
1427
1485
|
"header-test-id": "display-condition-section",
|
|
1428
1486
|
title: h(f).blockSettings.displayCondition,
|
|
1429
|
-
open:
|
|
1430
|
-
onToggle: r[11] ||= (e) =>
|
|
1487
|
+
open: q.has("condition"),
|
|
1488
|
+
onToggle: r[11] ||= (e) => Z("condition")
|
|
1431
1489
|
}, {
|
|
1432
|
-
default: a(() => [h(
|
|
1433
|
-
b("p",
|
|
1434
|
-
e.block.displayCondition.description ? (i(), p("p",
|
|
1435
|
-
b("div",
|
|
1490
|
+
default: a(() => [h(W) ? (i(), p("div", tr, [e.block.displayCondition ? (i(), p(D, { key: 0 }, [
|
|
1491
|
+
b("p", nr, x(e.block.displayCondition.label), 1),
|
|
1492
|
+
e.block.displayCondition.description ? (i(), p("p", rr, x(e.block.displayCondition.description), 1)) : _("", !0),
|
|
1493
|
+
b("div", ir, [b("button", {
|
|
1436
1494
|
type: "button",
|
|
1437
1495
|
"data-testid": "display-condition-edit",
|
|
1438
1496
|
class: g(h(F)),
|
|
1439
|
-
disabled:
|
|
1440
|
-
onClick:
|
|
1441
|
-
}, x(h(f).blockSettings.editCondition), 11,
|
|
1497
|
+
disabled: K.value,
|
|
1498
|
+
onClick: _e
|
|
1499
|
+
}, x(h(f).blockSettings.editCondition), 11, ar), b("button", {
|
|
1442
1500
|
type: "button",
|
|
1443
1501
|
"data-testid": "display-condition-remove",
|
|
1444
1502
|
class: g(h(F)),
|
|
1445
|
-
disabled:
|
|
1503
|
+
disabled: K.value,
|
|
1446
1504
|
onClick: r[7] ||= (e) => d("update", { displayCondition: void 0 })
|
|
1447
|
-
}, x(h(f).blockSettings.removeCondition), 11,
|
|
1505
|
+
}, x(h(f).blockSettings.removeCondition), 11, or)])
|
|
1448
1506
|
], 64)) : (i(), p("button", {
|
|
1449
1507
|
key: 1,
|
|
1450
1508
|
type: "button",
|
|
1451
1509
|
"data-testid": "display-condition-request",
|
|
1452
1510
|
class: g(h(F)),
|
|
1453
|
-
disabled:
|
|
1454
|
-
onClick:
|
|
1455
|
-
}, x(h(f).blockSettings.addCondition), 11,
|
|
1511
|
+
disabled: K.value,
|
|
1512
|
+
onClick: _e
|
|
1513
|
+
}, x(h(f).blockSettings.addCondition), 11, sr))])) : (i(), p("div", cr, [k(A, {
|
|
1456
1514
|
path: "displayCondition",
|
|
1457
1515
|
label: h(f).blockSettings.displayCondition
|
|
1458
1516
|
}, {
|
|
1459
1517
|
default: a(() => [b("select", {
|
|
1460
1518
|
"data-testid": "display-condition-select",
|
|
1461
1519
|
class: g(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1462
|
-
value:
|
|
1520
|
+
value: J.value || ve.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1463
1521
|
onChange: r[8] ||= (e) => {
|
|
1464
1522
|
let t = e.target.value;
|
|
1465
1523
|
if (t === "__custom__") {
|
|
1466
|
-
|
|
1524
|
+
ye();
|
|
1467
1525
|
return;
|
|
1468
1526
|
}
|
|
1469
|
-
if (
|
|
1527
|
+
if (J.value = !1, !t) {
|
|
1470
1528
|
d("update", { displayCondition: void 0 });
|
|
1471
1529
|
return;
|
|
1472
1530
|
}
|
|
@@ -1474,43 +1532,43 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1474
1532
|
n && d("update", { displayCondition: n });
|
|
1475
1533
|
}
|
|
1476
1534
|
}, [
|
|
1477
|
-
b("option",
|
|
1478
|
-
(i(!0), p(D, null, c(
|
|
1535
|
+
b("option", ur, x(h(f).blockSettings.noCondition), 1),
|
|
1536
|
+
(i(!0), p(D, null, c(xe.value, (e, t) => (i(), p(D, { key: t }, [t ? (i(), p("optgroup", {
|
|
1479
1537
|
key: 0,
|
|
1480
1538
|
label: String(t)
|
|
1481
1539
|
}, [(i(!0), p(D, null, c(e, (e) => (i(), p("option", {
|
|
1482
1540
|
key: e.label,
|
|
1483
1541
|
value: e.label
|
|
1484
|
-
}, x(e.label), 9,
|
|
1542
|
+
}, x(e.label), 9, fr))), 128))], 8, dr)) : (i(!0), p(D, { key: 1 }, c(e, (e) => (i(), p("option", {
|
|
1485
1543
|
key: e.label,
|
|
1486
1544
|
value: e.label
|
|
1487
|
-
}, x(e.label), 9,
|
|
1488
|
-
h(L) ? (i(), p("option",
|
|
1489
|
-
], 42,
|
|
1545
|
+
}, x(e.label), 9, pr))), 128))], 64))), 128)),
|
|
1546
|
+
h(L) ? (i(), p("option", mr, x(h(f).blockSettings.customCondition), 1)) : _("", !0)
|
|
1547
|
+
], 42, lr)]),
|
|
1490
1548
|
_: 1
|
|
1491
|
-
}, 8, ["label"]),
|
|
1492
|
-
b("div", null, [b("label",
|
|
1493
|
-
"onUpdate:modelValue": r[9] ||= (e) =>
|
|
1494
|
-
rows: "2",
|
|
1495
|
-
class: g(h(ne))
|
|
1496
|
-
}, null, 2), [[S, J.value]])]),
|
|
1497
|
-
b("div", null, [b("label", cr, x(h(f).blockSettings.customConditionAfter), 1), s(b("textarea", {
|
|
1498
|
-
"onUpdate:modelValue": r[10] ||= (e) => Y.value = e,
|
|
1549
|
+
}, 8, ["label"]), J.value || ve.value ? (i(), p("div", hr, [
|
|
1550
|
+
b("div", null, [b("label", gr, x(h(f).blockSettings.customConditionBefore), 1), s(b("textarea", {
|
|
1551
|
+
"onUpdate:modelValue": r[9] ||= (e) => Y.value = e,
|
|
1499
1552
|
rows: "2",
|
|
1500
|
-
class: g(h(
|
|
1553
|
+
class: g(h(H))
|
|
1501
1554
|
}, null, 2), [[S, Y.value]])]),
|
|
1502
|
-
b("div",
|
|
1555
|
+
b("div", null, [b("label", _r, x(h(f).blockSettings.customConditionAfter), 1), s(b("textarea", {
|
|
1556
|
+
"onUpdate:modelValue": r[10] ||= (e) => X.value = e,
|
|
1557
|
+
rows: "2",
|
|
1558
|
+
class: g(h(H))
|
|
1559
|
+
}, null, 2), [[S, X.value]])]),
|
|
1560
|
+
b("div", vr, [b("button", {
|
|
1503
1561
|
type: "button",
|
|
1504
1562
|
class: g(h(ee)),
|
|
1505
|
-
disabled: !
|
|
1506
|
-
onClick:
|
|
1507
|
-
}, x(h(f).blockSettings.applyCondition), 11,
|
|
1508
|
-
])) : e.block.displayCondition && !
|
|
1563
|
+
disabled: !Y.value.trim(),
|
|
1564
|
+
onClick: be
|
|
1565
|
+
}, x(h(f).blockSettings.applyCondition), 11, yr)])
|
|
1566
|
+
])) : e.block.displayCondition && !ve.value ? (i(), p(D, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", br, x(e.block.displayCondition.description), 1)) : _("", !0), b("div", xr, [b("pre", Sr, x(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", Cr, x(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)]))]),
|
|
1509
1567
|
_: 1
|
|
1510
1568
|
}, 8, ["title", "open"])) : _("", !0)
|
|
1511
1569
|
], 2));
|
|
1512
1570
|
}
|
|
1513
|
-
}),
|
|
1571
|
+
}), Tr = ["title"], Er = { class: "tpl-sr-only" }, Dr = ["title"], Or = { class: "tpl-sr-only" }, kr = /* @__PURE__ */ r({
|
|
1514
1572
|
__name: "FieldLabel",
|
|
1515
1573
|
props: {
|
|
1516
1574
|
label: {},
|
|
@@ -1518,25 +1576,25 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1518
1576
|
readOnly: { type: Boolean }
|
|
1519
1577
|
},
|
|
1520
1578
|
setup(e) {
|
|
1521
|
-
let { t } =
|
|
1579
|
+
let { t } = Q();
|
|
1522
1580
|
return (n, r) => (i(), p("span", null, [
|
|
1523
1581
|
m(x(e.label) + " ", 1),
|
|
1524
1582
|
e.readOnly ? (i(), p("span", {
|
|
1525
1583
|
key: 0,
|
|
1526
1584
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1527
|
-
}, [k(h(
|
|
1585
|
+
}, [k(h(X), {
|
|
1528
1586
|
size: 12,
|
|
1529
1587
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1530
1588
|
"aria-hidden": "true"
|
|
1531
|
-
}), b("span",
|
|
1589
|
+
}), b("span", Er, x(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Tr)) : _("", !0),
|
|
1532
1590
|
e.required ? (i(), p("span", {
|
|
1533
1591
|
key: 1,
|
|
1534
1592
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1535
1593
|
title: h(t).customBlocks.fields.required
|
|
1536
|
-
}, [r[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span",
|
|
1594
|
+
}, [r[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span", Or, x(h(t).customBlocks.fields.required), 1)], 8, Dr)) : _("", !0)
|
|
1537
1595
|
]));
|
|
1538
1596
|
}
|
|
1539
|
-
}),
|
|
1597
|
+
}), Ar = ["title"], jr = /* @__PURE__ */ r({
|
|
1540
1598
|
__name: "BooleanField",
|
|
1541
1599
|
props: {
|
|
1542
1600
|
field: {},
|
|
@@ -1547,7 +1605,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1547
1605
|
},
|
|
1548
1606
|
emits: ["update:modelValue"],
|
|
1549
1607
|
setup(e, { emit: t }) {
|
|
1550
|
-
let n = t, { t: r } =
|
|
1608
|
+
let n = t, { t: r } = Q();
|
|
1551
1609
|
return (t, o) => (i(), p("div", {
|
|
1552
1610
|
class: "tpl:mb-3.5",
|
|
1553
1611
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
@@ -1561,7 +1619,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1561
1619
|
disabled: e.readOnly,
|
|
1562
1620
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1563
1621
|
}, {
|
|
1564
|
-
default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(
|
|
1622
|
+
default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(X), {
|
|
1565
1623
|
key: 0,
|
|
1566
1624
|
size: 12,
|
|
1567
1625
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1574,9 +1632,9 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1574
1632
|
"label",
|
|
1575
1633
|
"required",
|
|
1576
1634
|
"disabled"
|
|
1577
|
-
])], 8,
|
|
1635
|
+
])], 8, Ar));
|
|
1578
1636
|
}
|
|
1579
|
-
}),
|
|
1637
|
+
}), Mr = { class: "tpl:mb-3.5" }, Nr = /* @__PURE__ */ r({
|
|
1580
1638
|
__name: "FieldWrapper",
|
|
1581
1639
|
props: {
|
|
1582
1640
|
label: {},
|
|
@@ -1585,10 +1643,10 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1585
1643
|
readOnly: { type: Boolean }
|
|
1586
1644
|
},
|
|
1587
1645
|
setup(e) {
|
|
1588
|
-
return (t, n) => (i(), p("div",
|
|
1646
|
+
return (t, n) => (i(), p("div", Mr, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
1589
1647
|
key: 0,
|
|
1590
1648
|
class: g(h(V))
|
|
1591
|
-
}, [k(
|
|
1649
|
+
}, [k(kr, {
|
|
1592
1650
|
label: e.label,
|
|
1593
1651
|
required: e.required,
|
|
1594
1652
|
"read-only": e.readOnly
|
|
@@ -1598,7 +1656,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1598
1656
|
"read-only"
|
|
1599
1657
|
])], 2)), d(t.$slots, "default")]));
|
|
1600
1658
|
}
|
|
1601
|
-
}),
|
|
1659
|
+
}), Pr = /* @__PURE__ */ r({
|
|
1602
1660
|
__name: "ColorField",
|
|
1603
1661
|
props: {
|
|
1604
1662
|
field: {},
|
|
@@ -1608,8 +1666,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1608
1666
|
},
|
|
1609
1667
|
emits: ["update:modelValue"],
|
|
1610
1668
|
setup(e, { emit: t }) {
|
|
1611
|
-
let n = e, r = t, { t: o } =
|
|
1612
|
-
return (t, n) => (i(), v(
|
|
1669
|
+
let n = e, r = t, { t: o } = Q(), s = l(Je, bt), c = C(() => pt(n.field, s));
|
|
1670
|
+
return (t, n) => (i(), v(Nr, {
|
|
1613
1671
|
"hide-label": e.hideLabel,
|
|
1614
1672
|
label: e.field.label,
|
|
1615
1673
|
required: e.field.required,
|
|
@@ -1639,11 +1697,11 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1639
1697
|
"read-only"
|
|
1640
1698
|
]));
|
|
1641
1699
|
}
|
|
1642
|
-
}),
|
|
1700
|
+
}), Fr = [
|
|
1643
1701
|
"value",
|
|
1644
1702
|
"placeholder",
|
|
1645
1703
|
"title"
|
|
1646
|
-
],
|
|
1704
|
+
], Ir = ["value", "placeholder"], Lr = /* @__PURE__ */ r({
|
|
1647
1705
|
__name: "ImageField",
|
|
1648
1706
|
props: {
|
|
1649
1707
|
field: {},
|
|
@@ -1653,12 +1711,12 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1653
1711
|
},
|
|
1654
1712
|
emits: ["update:modelValue"],
|
|
1655
1713
|
setup(e, { emit: t }) {
|
|
1656
|
-
let n = e, r = t, { t: o } =
|
|
1714
|
+
let n = e, r = t, { t: o } = Q(), s = E(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: d } = ft({
|
|
1657
1715
|
target: s,
|
|
1658
1716
|
blocked: () => !!n.readOnly,
|
|
1659
1717
|
apply: (e) => r("update:modelValue", e.url)
|
|
1660
1718
|
});
|
|
1661
|
-
return (t, n) => (i(), v(
|
|
1719
|
+
return (t, n) => (i(), v(Nr, {
|
|
1662
1720
|
"hide-label": e.hideLabel,
|
|
1663
1721
|
label: e.field.label,
|
|
1664
1722
|
required: e.field.required,
|
|
@@ -1669,7 +1727,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1669
1727
|
ref: s,
|
|
1670
1728
|
class: "tpl:relative"
|
|
1671
1729
|
}, [
|
|
1672
|
-
h(u) ? (i(), v(
|
|
1730
|
+
h(u) ? (i(), v(rt, {
|
|
1673
1731
|
key: 0,
|
|
1674
1732
|
uploading: h(l)
|
|
1675
1733
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
@@ -1681,14 +1739,14 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1681
1739
|
placeholder: e.field.placeholder || "https://...",
|
|
1682
1740
|
disabled: "",
|
|
1683
1741
|
title: h(o).customBlocks.dataSource.readOnlyTooltip
|
|
1684
|
-
}, null, 10,
|
|
1742
|
+
}, null, 10, Fr)) : (i(), p("input", {
|
|
1685
1743
|
key: 2,
|
|
1686
1744
|
type: "url",
|
|
1687
1745
|
class: g(h(B)),
|
|
1688
1746
|
value: e.modelValue,
|
|
1689
1747
|
placeholder: e.field.placeholder || "https://...",
|
|
1690
1748
|
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
1691
|
-
}, null, 42,
|
|
1749
|
+
}, null, 42, Ir)),
|
|
1692
1750
|
h(c) && !e.readOnly ? (i(), p("button", {
|
|
1693
1751
|
key: 3,
|
|
1694
1752
|
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)]",
|
|
@@ -1706,7 +1764,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1706
1764
|
"read-only"
|
|
1707
1765
|
]));
|
|
1708
1766
|
}
|
|
1709
|
-
}),
|
|
1767
|
+
}), Rr = [
|
|
1710
1768
|
"value",
|
|
1711
1769
|
"placeholder",
|
|
1712
1770
|
"min",
|
|
@@ -1714,7 +1772,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1714
1772
|
"step",
|
|
1715
1773
|
"disabled",
|
|
1716
1774
|
"title"
|
|
1717
|
-
],
|
|
1775
|
+
], zr = /* @__PURE__ */ r({
|
|
1718
1776
|
__name: "NumberField",
|
|
1719
1777
|
props: {
|
|
1720
1778
|
field: {},
|
|
@@ -1724,8 +1782,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1724
1782
|
},
|
|
1725
1783
|
emits: ["update:modelValue"],
|
|
1726
1784
|
setup(e, { emit: t }) {
|
|
1727
|
-
let n = t, { t: r } =
|
|
1728
|
-
return (t, o) => (i(), v(
|
|
1785
|
+
let n = t, { t: r } = Q();
|
|
1786
|
+
return (t, o) => (i(), v(Nr, {
|
|
1729
1787
|
"hide-label": e.hideLabel,
|
|
1730
1788
|
label: e.field.label,
|
|
1731
1789
|
required: e.field.required,
|
|
@@ -1742,7 +1800,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1742
1800
|
disabled: e.readOnly,
|
|
1743
1801
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1744
1802
|
onInput: o[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1745
|
-
}, null, 42,
|
|
1803
|
+
}, null, 42, Rr)]),
|
|
1746
1804
|
_: 1
|
|
1747
1805
|
}, 8, [
|
|
1748
1806
|
"hide-label",
|
|
@@ -1751,13 +1809,13 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1751
1809
|
"read-only"
|
|
1752
1810
|
]));
|
|
1753
1811
|
}
|
|
1754
|
-
}),
|
|
1812
|
+
}), Br = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Vr = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Hr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Ur = ["title", "onClick"], Wr = {
|
|
1755
1813
|
key: 1,
|
|
1756
1814
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1757
|
-
},
|
|
1815
|
+
}, Gr = {
|
|
1758
1816
|
key: 2,
|
|
1759
1817
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1760
|
-
},
|
|
1818
|
+
}, Kr = /* @__PURE__ */ r({
|
|
1761
1819
|
__name: "RepeatableField",
|
|
1762
1820
|
props: {
|
|
1763
1821
|
field: {},
|
|
@@ -1767,7 +1825,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1767
1825
|
},
|
|
1768
1826
|
emits: ["update:modelValue"],
|
|
1769
1827
|
setup(e, { emit: t }) {
|
|
1770
|
-
let r = e, o = t, { t: s, format: l } =
|
|
1828
|
+
let r = e, o = t, { t: s, format: l } = Q(), u = C(() => r.modelValue || []), d = C(() => !r.field.maxItems || u.value.length < r.field.maxItems), f = C(() => !r.field.minItems || u.value.length > r.field.minItems);
|
|
1771
1829
|
function y() {
|
|
1772
1830
|
if (!d.value || r.readOnly) return;
|
|
1773
1831
|
let e = {};
|
|
@@ -1786,26 +1844,26 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1786
1844
|
} : r);
|
|
1787
1845
|
o("update:modelValue", r);
|
|
1788
1846
|
}
|
|
1789
|
-
return (t, r) => (i(), v(
|
|
1847
|
+
return (t, r) => (i(), v(Nr, {
|
|
1790
1848
|
"hide-label": e.hideLabel,
|
|
1791
1849
|
label: e.field.label,
|
|
1792
1850
|
required: e.field.required,
|
|
1793
1851
|
"read-only": e.readOnly
|
|
1794
1852
|
}, {
|
|
1795
|
-
default: a(() => [b("div",
|
|
1853
|
+
default: a(() => [b("div", Br, [
|
|
1796
1854
|
(i(!0), p(D, null, c(u.value, (t, r) => (i(), p("div", {
|
|
1797
1855
|
key: `${e.field.key}-${r}`,
|
|
1798
1856
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1799
|
-
}, [b("div",
|
|
1857
|
+
}, [b("div", Vr, [b("span", Hr, " #" + x(r + 1), 1), f.value && !e.readOnly ? (i(), p("button", {
|
|
1800
1858
|
key: 0,
|
|
1801
1859
|
type: "button",
|
|
1802
1860
|
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)]",
|
|
1803
1861
|
title: h(s).customBlocks.fields.removeItem,
|
|
1804
1862
|
onClick: (e) => S(r)
|
|
1805
|
-
}, [k(h(
|
|
1863
|
+
}, [k(h(G), {
|
|
1806
1864
|
size: 12,
|
|
1807
1865
|
"stroke-width": 2
|
|
1808
|
-
})], 8,
|
|
1866
|
+
})], 8, Ur)) : _("", !0)]), (i(!0), p(D, null, c(e.field.fields, (a) => (i(), v(n(h(ti)(a.type)), {
|
|
1809
1867
|
key: a.key,
|
|
1810
1868
|
field: a,
|
|
1811
1869
|
"model-value": t[a.key],
|
|
@@ -1822,12 +1880,12 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1822
1880
|
type: "button",
|
|
1823
1881
|
class: g(h(R)),
|
|
1824
1882
|
onClick: y
|
|
1825
|
-
}, [k(h(
|
|
1883
|
+
}, [k(h(U), {
|
|
1826
1884
|
size: 14,
|
|
1827
1885
|
"stroke-width": 2
|
|
1828
1886
|
}), m(" " + x(h(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
|
|
1829
|
-
!d.value && !e.readOnly ? (i(), p("p",
|
|
1830
|
-
!f.value && !e.readOnly ? (i(), p("p",
|
|
1887
|
+
!d.value && !e.readOnly ? (i(), p("p", Wr, x(h(s).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
|
|
1888
|
+
!f.value && !e.readOnly ? (i(), p("p", Gr, x(h(l)(h(s).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !0)
|
|
1831
1889
|
])]),
|
|
1832
1890
|
_: 1
|
|
1833
1891
|
}, 8, [
|
|
@@ -1837,11 +1895,11 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1837
1895
|
"read-only"
|
|
1838
1896
|
]));
|
|
1839
1897
|
}
|
|
1840
|
-
}),
|
|
1898
|
+
}), qr = [
|
|
1841
1899
|
"value",
|
|
1842
1900
|
"disabled",
|
|
1843
1901
|
"title"
|
|
1844
|
-
],
|
|
1902
|
+
], Jr = ["value"], Yr = /* @__PURE__ */ r({
|
|
1845
1903
|
__name: "SelectField",
|
|
1846
1904
|
props: {
|
|
1847
1905
|
field: {},
|
|
@@ -1851,8 +1909,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1851
1909
|
},
|
|
1852
1910
|
emits: ["update:modelValue"],
|
|
1853
1911
|
setup(e, { emit: t }) {
|
|
1854
|
-
let n = t, { t: r } =
|
|
1855
|
-
return (t, o) => (i(), v(
|
|
1912
|
+
let n = t, { t: r } = Q();
|
|
1913
|
+
return (t, o) => (i(), v(Nr, {
|
|
1856
1914
|
"hide-label": e.hideLabel,
|
|
1857
1915
|
label: e.field.label,
|
|
1858
1916
|
required: e.field.required,
|
|
@@ -1867,7 +1925,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1867
1925
|
}, [(i(!0), p(D, null, c(e.field.options, (e) => (i(), p("option", {
|
|
1868
1926
|
key: e.value,
|
|
1869
1927
|
value: e.value
|
|
1870
|
-
}, x(e.label), 9,
|
|
1928
|
+
}, x(e.label), 9, Jr))), 128))], 42, qr)]),
|
|
1871
1929
|
_: 1
|
|
1872
1930
|
}, 8, [
|
|
1873
1931
|
"hide-label",
|
|
@@ -1876,11 +1934,11 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1876
1934
|
"read-only"
|
|
1877
1935
|
]));
|
|
1878
1936
|
}
|
|
1879
|
-
}),
|
|
1937
|
+
}), Xr = [
|
|
1880
1938
|
"value",
|
|
1881
1939
|
"placeholder",
|
|
1882
1940
|
"title"
|
|
1883
|
-
],
|
|
1941
|
+
], Zr = /* @__PURE__ */ r({
|
|
1884
1942
|
__name: "TextField",
|
|
1885
1943
|
props: {
|
|
1886
1944
|
field: {},
|
|
@@ -1890,8 +1948,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1890
1948
|
},
|
|
1891
1949
|
emits: ["update:modelValue"],
|
|
1892
1950
|
setup(e, { emit: t }) {
|
|
1893
|
-
let n = t, { t: r } =
|
|
1894
|
-
return (t, o) => (i(), v(
|
|
1951
|
+
let n = t, { t: r } = Q();
|
|
1952
|
+
return (t, o) => (i(), v(Nr, {
|
|
1895
1953
|
"hide-label": e.hideLabel,
|
|
1896
1954
|
label: e.field.label,
|
|
1897
1955
|
required: e.field.required,
|
|
@@ -1905,7 +1963,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1905
1963
|
placeholder: e.field.placeholder,
|
|
1906
1964
|
disabled: "",
|
|
1907
1965
|
title: h(r).customBlocks.dataSource.readOnlyTooltip
|
|
1908
|
-
}, null, 10,
|
|
1966
|
+
}, null, 10, Xr)) : (i(), v(N, {
|
|
1909
1967
|
key: 1,
|
|
1910
1968
|
"model-value": e.modelValue,
|
|
1911
1969
|
placeholder: e.field.placeholder,
|
|
@@ -1919,12 +1977,12 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1919
1977
|
"read-only"
|
|
1920
1978
|
]));
|
|
1921
1979
|
}
|
|
1922
|
-
}),
|
|
1980
|
+
}), Qr = [
|
|
1923
1981
|
"value",
|
|
1924
1982
|
"placeholder",
|
|
1925
1983
|
"title"
|
|
1926
|
-
],
|
|
1927
|
-
text:
|
|
1984
|
+
], $r = "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", ei = {
|
|
1985
|
+
text: Zr,
|
|
1928
1986
|
textarea: /* @__PURE__ */ r({
|
|
1929
1987
|
__name: "TextareaField",
|
|
1930
1988
|
props: {
|
|
@@ -1935,8 +1993,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1935
1993
|
},
|
|
1936
1994
|
emits: ["update:modelValue"],
|
|
1937
1995
|
setup(e, { emit: t }) {
|
|
1938
|
-
let n = t, { t: r } =
|
|
1939
|
-
return (t, o) => (i(), v(
|
|
1996
|
+
let n = t, { t: r } = Q();
|
|
1997
|
+
return (t, o) => (i(), v(Nr, {
|
|
1940
1998
|
"hide-label": e.hideLabel,
|
|
1941
1999
|
label: e.field.label,
|
|
1942
2000
|
required: e.field.required,
|
|
@@ -1949,8 +2007,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1949
2007
|
rows: "3",
|
|
1950
2008
|
disabled: "",
|
|
1951
2009
|
title: h(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1952
|
-
class: g(
|
|
1953
|
-
}, null, 8,
|
|
2010
|
+
class: g($r)
|
|
2011
|
+
}, null, 8, Qr)) : (i(), v(j, {
|
|
1954
2012
|
key: 1,
|
|
1955
2013
|
"model-value": e.modelValue,
|
|
1956
2014
|
placeholder: e.field.placeholder,
|
|
@@ -1965,41 +2023,41 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1965
2023
|
]));
|
|
1966
2024
|
}
|
|
1967
2025
|
}),
|
|
1968
|
-
image:
|
|
1969
|
-
color:
|
|
1970
|
-
number:
|
|
1971
|
-
select:
|
|
1972
|
-
boolean:
|
|
1973
|
-
repeatable:
|
|
2026
|
+
image: Lr,
|
|
2027
|
+
color: Pr,
|
|
2028
|
+
number: zr,
|
|
2029
|
+
select: Yr,
|
|
2030
|
+
boolean: jr,
|
|
2031
|
+
repeatable: Kr
|
|
1974
2032
|
};
|
|
1975
|
-
function
|
|
1976
|
-
return
|
|
2033
|
+
function ti(e) {
|
|
2034
|
+
return ei[e] ?? Zr;
|
|
1977
2035
|
}
|
|
1978
2036
|
// src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1979
|
-
var
|
|
2037
|
+
var ni = {
|
|
1980
2038
|
key: 0,
|
|
1981
2039
|
class: "tpl:p-4"
|
|
1982
|
-
},
|
|
2040
|
+
}, ri = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ii = { key: 1 }, ai = {
|
|
1983
2041
|
key: 0,
|
|
1984
2042
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1985
|
-
},
|
|
2043
|
+
}, oi = {
|
|
1986
2044
|
key: 1,
|
|
1987
2045
|
class: "tpl:mb-4"
|
|
1988
|
-
},
|
|
2046
|
+
}, si = {
|
|
1989
2047
|
key: 1,
|
|
1990
2048
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1991
|
-
},
|
|
2049
|
+
}, ci = {
|
|
1992
2050
|
key: 0,
|
|
1993
2051
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1994
|
-
},
|
|
2052
|
+
}, li = {
|
|
1995
2053
|
key: 2,
|
|
1996
2054
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1997
|
-
},
|
|
2055
|
+
}, ui = /* @__PURE__ */ r({
|
|
1998
2056
|
__name: "CustomBlockToolbar",
|
|
1999
2057
|
props: { block: {} },
|
|
2000
2058
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
2001
2059
|
setup(e, { emit: t }) {
|
|
2002
|
-
let r = e, o = t, { t: s } =
|
|
2060
|
+
let r = e, o = t, { t: s } = Q(), u = l(qe, []), d = C(() => u.find((e) => e.type === r.block.customType)), f = C(() => r.block), { isFetching: g, fetchError: y, fetch: S, hasDataSource: w, needsFetch: T } = Qe({
|
|
2003
2061
|
definition: d,
|
|
2004
2062
|
block: f,
|
|
2005
2063
|
onUpdate: (e, t) => {
|
|
@@ -2015,19 +2073,19 @@ var qr = {
|
|
|
2015
2073
|
[e]: t
|
|
2016
2074
|
});
|
|
2017
2075
|
}
|
|
2018
|
-
return (t, r) => d.value ? (i(), p("div",
|
|
2019
|
-
d.value.description ? (i(), p("p",
|
|
2020
|
-
h(w) ? (i(), p("div",
|
|
2076
|
+
return (t, r) => d.value ? (i(), p("div", ii, [
|
|
2077
|
+
d.value.description ? (i(), p("p", ai, x(d.value.description), 1)) : _("", !0),
|
|
2078
|
+
h(w) ? (i(), p("div", oi, [h(T) && !h(g) ? (i(), p("button", {
|
|
2021
2079
|
key: 0,
|
|
2022
2080
|
type: "button",
|
|
2023
2081
|
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)]",
|
|
2024
2082
|
onClick: r[0] ||= (...e) => h(S) && h(S)(...e)
|
|
2025
|
-
}, x(d.value?.dataSource?.label || h(s).customBlocks.dataSource.fetchButton), 1)) : (i(), p("div",
|
|
2083
|
+
}, x(d.value?.dataSource?.label || h(s).customBlocks.dataSource.fetchButton), 1)) : (i(), p("div", si, [h(g) ? (i(), p("div", ci, x(h(s).customBlocks.dataSource.fetching), 1)) : (i(), p("button", {
|
|
2026
2084
|
key: 1,
|
|
2027
2085
|
type: "button",
|
|
2028
2086
|
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)]",
|
|
2029
2087
|
onClick: r[1] ||= (...e) => h(S) && h(S)(...e)
|
|
2030
|
-
}, [k(h(le), { size: 12 }), m(" " + x(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(y) ? (i(), p("p",
|
|
2088
|
+
}, [k(h(le), { size: 12 }), m(" " + x(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(y) ? (i(), p("p", li, [k(h(oe), {
|
|
2031
2089
|
size: 14,
|
|
2032
2090
|
class: "tpl:shrink-0"
|
|
2033
2091
|
}), m(" " + x(h(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
@@ -2036,7 +2094,7 @@ var qr = {
|
|
|
2036
2094
|
path: `fieldValues.${t.key}`,
|
|
2037
2095
|
label: t.label
|
|
2038
2096
|
}, {
|
|
2039
|
-
label: a(() => [k(
|
|
2097
|
+
label: a(() => [k(kr, {
|
|
2040
2098
|
label: t.label,
|
|
2041
2099
|
required: t.required,
|
|
2042
2100
|
"read-only": E(t)
|
|
@@ -2045,7 +2103,7 @@ var qr = {
|
|
|
2045
2103
|
"required",
|
|
2046
2104
|
"read-only"
|
|
2047
2105
|
])]),
|
|
2048
|
-
default: a(({ controlId: r }) => [(i(), v(n(h(
|
|
2106
|
+
default: a(({ controlId: r }) => [(i(), v(n(h(ti)(t.type)), {
|
|
2049
2107
|
"control-id": t.type === "boolean" ? r : void 0,
|
|
2050
2108
|
field: t,
|
|
2051
2109
|
"hide-label": "",
|
|
@@ -2061,14 +2119,14 @@ var qr = {
|
|
|
2061
2119
|
]))]),
|
|
2062
2120
|
_: 2
|
|
2063
2121
|
}, 1032, ["path", "label"]))), 128))
|
|
2064
|
-
])) : (i(), p("div",
|
|
2122
|
+
])) : (i(), p("div", ni, [b("p", ri, x(h(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
2065
2123
|
}
|
|
2066
|
-
}),
|
|
2124
|
+
}), di = { class: "tpl:flex tpl:items-stretch" }, fi = ["value"], pi = /* @__PURE__ */ r({
|
|
2067
2125
|
__name: "DividerToolbar",
|
|
2068
2126
|
props: { block: {} },
|
|
2069
2127
|
emits: ["update"],
|
|
2070
2128
|
setup(e, { emit: t }) {
|
|
2071
|
-
let n = t, { t: r } =
|
|
2129
|
+
let n = t, { t: r } = Q();
|
|
2072
2130
|
function o(e, t) {
|
|
2073
2131
|
n("update", { [e]: t });
|
|
2074
2132
|
}
|
|
@@ -2078,7 +2136,7 @@ var qr = {
|
|
|
2078
2136
|
class: "tpl:mb-3.5",
|
|
2079
2137
|
path: "lineStyle"
|
|
2080
2138
|
}, {
|
|
2081
|
-
default: a(() => [k(
|
|
2139
|
+
default: a(() => [k($, {
|
|
2082
2140
|
options: [
|
|
2083
2141
|
{
|
|
2084
2142
|
value: "solid",
|
|
@@ -2114,24 +2172,24 @@ var qr = {
|
|
|
2114
2172
|
class: "tpl:mb-3.5",
|
|
2115
2173
|
path: "thickness"
|
|
2116
2174
|
}, {
|
|
2117
|
-
default: a(() => [b("div",
|
|
2175
|
+
default: a(() => [b("div", di, [b("input", {
|
|
2118
2176
|
type: "number",
|
|
2119
2177
|
class: g(h(z)),
|
|
2120
2178
|
value: e.block.thickness,
|
|
2121
2179
|
min: "1",
|
|
2122
2180
|
max: "10",
|
|
2123
2181
|
onInput: n[2] ||= (e) => o("thickness", Number(e.target.value))
|
|
2124
|
-
}, null, 42,
|
|
2182
|
+
}, null, 42, fi), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
2125
2183
|
_: 1
|
|
2126
2184
|
}, 8, ["label"])
|
|
2127
2185
|
], 64));
|
|
2128
2186
|
}
|
|
2129
|
-
}),
|
|
2187
|
+
}), mi = ["value"], hi = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, gi = /* @__PURE__ */ r({
|
|
2130
2188
|
__name: "HtmlToolbar",
|
|
2131
2189
|
props: { block: {} },
|
|
2132
2190
|
emits: ["update"],
|
|
2133
2191
|
setup(e, { emit: t }) {
|
|
2134
|
-
let n = t, { t: r } =
|
|
2192
|
+
let n = t, { t: r } = Q();
|
|
2135
2193
|
return (t, o) => (i(), v(A, {
|
|
2136
2194
|
label: h(r).html.content,
|
|
2137
2195
|
class: "tpl:mb-3.5",
|
|
@@ -2141,9 +2199,9 @@ var qr = {
|
|
|
2141
2199
|
value: e.block.content,
|
|
2142
2200
|
placeholder: "<div>...</div>",
|
|
2143
2201
|
rows: "10",
|
|
2144
|
-
class: g(h(
|
|
2202
|
+
class: g(h(H)),
|
|
2145
2203
|
onInput: o[0] ||= (e) => n("update", { content: e.target.value })
|
|
2146
|
-
}, null, 42,
|
|
2204
|
+
}, null, 42, mi), b("p", hi, [k(h(K), {
|
|
2147
2205
|
size: 12,
|
|
2148
2206
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2149
2207
|
}), m(" " + x(h(r).html.sanitizationHint), 1)])]),
|
|
@@ -2152,12 +2210,12 @@ var qr = {
|
|
|
2152
2210
|
}
|
|
2153
2211
|
});
|
|
2154
2212
|
// src/composables/useImageAspectLock.ts
|
|
2155
|
-
function
|
|
2213
|
+
function _i(e) {
|
|
2156
2214
|
let t = E(!1), n = E(null);
|
|
2157
2215
|
o(() => e.block().id, () => {
|
|
2158
2216
|
t.value = !1, n.value = null;
|
|
2159
2217
|
});
|
|
2160
|
-
let r = C(() =>
|
|
2218
|
+
let r = C(() => it(e.block()) ?? e.measured()), i = C(() => {
|
|
2161
2219
|
let t = e.block().width;
|
|
2162
2220
|
return t === "full" ? e.room() : t;
|
|
2163
2221
|
}), a = C(() => {
|
|
@@ -2168,9 +2226,9 @@ function ci(e) {
|
|
|
2168
2226
|
return t === void 0 || a.value !== null && Math.abs(a.value - t) <= 1;
|
|
2169
2227
|
}), l = C(() => s.value && !t.value && c.value);
|
|
2170
2228
|
function u() {
|
|
2171
|
-
if (
|
|
2229
|
+
if (it(e.block())) return {};
|
|
2172
2230
|
let t = e.measured();
|
|
2173
|
-
return t ?
|
|
2231
|
+
return t ? at(t) : {};
|
|
2174
2232
|
}
|
|
2175
2233
|
function d(r) {
|
|
2176
2234
|
if (n.value = null, !r) return t.value = !0, null;
|
|
@@ -2212,27 +2270,27 @@ function ci(e) {
|
|
|
2212
2270
|
};
|
|
2213
2271
|
}
|
|
2214
2272
|
// src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2215
|
-
var
|
|
2273
|
+
var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
|
|
2216
2274
|
"value",
|
|
2217
2275
|
"placeholder",
|
|
2218
2276
|
"title"
|
|
2219
|
-
],
|
|
2277
|
+
], bi = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, xi = ["value"], Si = { value: "full" }, Ci = { value: "custom" }, wi = {
|
|
2220
2278
|
key: 0,
|
|
2221
2279
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2222
|
-
},
|
|
2280
|
+
}, Ti = ["value"], Ei = ["value"], Di = { value: "auto" }, Oi = { value: "always" }, ki = { value: "never" }, Ai = { class: "tpl:flex tpl:items-stretch" }, ji = ["value"], Mi = {
|
|
2223
2281
|
key: 0,
|
|
2224
2282
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
2225
2283
|
role: "status",
|
|
2226
2284
|
"data-testid": "image-height-capped"
|
|
2227
|
-
},
|
|
2285
|
+
}, Ni = ["value"], Pi = { value: "auto" }, Fi = { value: "custom" }, Ii = {
|
|
2228
2286
|
key: 2,
|
|
2229
2287
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2230
|
-
},
|
|
2288
|
+
}, Li = ["value"], Ri = 350, zi = 200, Bi = /* @__PURE__ */ r({
|
|
2231
2289
|
__name: "ImageToolbar",
|
|
2232
2290
|
props: { block: {} },
|
|
2233
2291
|
emits: ["update"],
|
|
2234
2292
|
setup(e, { emit: t }) {
|
|
2235
|
-
let n = e, r = t, { t: o, format: s } =
|
|
2293
|
+
let n = e, r = t, { t: o, format: s } = Q(), c = l(ze, _e.liquid), u = l(Ze, null), d = u ? Le(u) : null, f = l(Ue, void 0), y = E(!1), S = E(!1), { start: w } = xt(() => {
|
|
2236
2294
|
y.value = !1, S.value = !1;
|
|
2237
2295
|
}, 1e3, { immediate: !1 }), T = [
|
|
2238
2296
|
300,
|
|
@@ -2248,55 +2306,55 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2248
2306
|
function ee(e) {
|
|
2249
2307
|
if (e === "custom") {
|
|
2250
2308
|
let e = n.block.width;
|
|
2251
|
-
(typeof e != "number" || T.includes(e)) && r("update",
|
|
2252
|
-
} else r("update",
|
|
2309
|
+
(typeof e != "number" || T.includes(e)) && r("update", G.widthUpdates(Ri));
|
|
2310
|
+
} else r("update", G.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2253
2311
|
}
|
|
2254
2312
|
function R(e) {
|
|
2255
|
-
I("height", e === "custom" ?
|
|
2313
|
+
I("height", e === "custom" ? zi : void 0);
|
|
2256
2314
|
}
|
|
2257
2315
|
function te(e) {
|
|
2258
2316
|
I("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
2259
2317
|
}
|
|
2260
|
-
function
|
|
2318
|
+
function ne(e) {
|
|
2261
2319
|
let t = Number(e);
|
|
2262
2320
|
!Number.isFinite(t) || t <= 0 || I("height", t);
|
|
2263
2321
|
}
|
|
2264
|
-
function
|
|
2265
|
-
I("borderRadius",
|
|
2322
|
+
function V(e) {
|
|
2323
|
+
I("borderRadius", xe(e) === null ? void 0 : e);
|
|
2266
2324
|
}
|
|
2267
|
-
function
|
|
2325
|
+
function H(e) {
|
|
2268
2326
|
let t = Number(e);
|
|
2269
|
-
!Number.isFinite(t) || t <= 0 || r("update",
|
|
2327
|
+
!Number.isFinite(t) || t <= 0 || r("update", G.widthUpdates(t));
|
|
2270
2328
|
}
|
|
2271
|
-
function
|
|
2329
|
+
function re(e) {
|
|
2272
2330
|
e !== n.block.src && r("update", {
|
|
2273
2331
|
src: e,
|
|
2274
|
-
...
|
|
2332
|
+
...at(null)
|
|
2275
2333
|
});
|
|
2276
2334
|
}
|
|
2277
|
-
function
|
|
2335
|
+
function ie(e) {
|
|
2278
2336
|
r("update", {
|
|
2279
2337
|
src: e.url,
|
|
2280
|
-
...
|
|
2338
|
+
...at(et(e.width, e.height))
|
|
2281
2339
|
}), e.alt && (I("alt", e.alt), S.value = !0), y.value = !0, w();
|
|
2282
2340
|
}
|
|
2283
|
-
let
|
|
2284
|
-
target:
|
|
2285
|
-
blocked:
|
|
2286
|
-
apply:
|
|
2287
|
-
}),
|
|
2341
|
+
let ae = E(), oe = C(() => Ee(n.block.src, c)), { canBrowse: U, isUploading: se, showOverlay: ce, openMediaBrowser: le } = ft({
|
|
2342
|
+
target: ae,
|
|
2343
|
+
blocked: oe,
|
|
2344
|
+
apply: ie
|
|
2345
|
+
}), ue = $e(() => oe.value || !n.block.src || it(n.block) ? void 0 : n.block.src), fe = xn(() => ue.value), W = C(() => d ? ot(d.content.value, n.block.id, f) : null), G = _i({
|
|
2288
2346
|
block: () => n.block,
|
|
2289
|
-
room: () =>
|
|
2290
|
-
measured: () =>
|
|
2291
|
-
}), { available:
|
|
2292
|
-
function
|
|
2293
|
-
let e =
|
|
2347
|
+
room: () => W.value,
|
|
2348
|
+
measured: () => fe.value
|
|
2349
|
+
}), { available: K, locked: q, derivedHeight: J, cappedHeight: Y } = G;
|
|
2350
|
+
function X() {
|
|
2351
|
+
let e = G.setLocked(!q.value);
|
|
2294
2352
|
e && r("update", e);
|
|
2295
2353
|
}
|
|
2296
|
-
let
|
|
2297
|
-
function
|
|
2298
|
-
|
|
2299
|
-
let t =
|
|
2354
|
+
let pe = E(null);
|
|
2355
|
+
function Z(e) {
|
|
2356
|
+
pe.value = e;
|
|
2357
|
+
let t = G.heightUpdates(Number(e));
|
|
2300
2358
|
t && r("update", t);
|
|
2301
2359
|
}
|
|
2302
2360
|
return (t, n) => (i(), p(D, null, [
|
|
@@ -2307,25 +2365,25 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2307
2365
|
}, {
|
|
2308
2366
|
default: a(() => [b("div", {
|
|
2309
2367
|
ref_key: "dropZoneRef",
|
|
2310
|
-
ref:
|
|
2368
|
+
ref: ae,
|
|
2311
2369
|
class: "tpl:relative"
|
|
2312
2370
|
}, [
|
|
2313
|
-
h(
|
|
2371
|
+
h(ce) ? (i(), v(rt, {
|
|
2314
2372
|
key: 0,
|
|
2315
|
-
uploading: h(
|
|
2373
|
+
uploading: h(se)
|
|
2316
2374
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
2317
2375
|
k(N, {
|
|
2318
2376
|
"model-value": e.block.src,
|
|
2319
2377
|
type: "url",
|
|
2320
2378
|
placeholder: h(o).image.imageUrlPlaceholder,
|
|
2321
2379
|
pulse: y.value,
|
|
2322
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2380
|
+
"onUpdate:modelValue": n[0] ||= (e) => re(e)
|
|
2323
2381
|
}, null, 8, [
|
|
2324
2382
|
"model-value",
|
|
2325
2383
|
"placeholder",
|
|
2326
2384
|
"pulse"
|
|
2327
2385
|
]),
|
|
2328
|
-
h(
|
|
2386
|
+
h(U) ? (i(), p("button", {
|
|
2329
2387
|
key: 1,
|
|
2330
2388
|
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",
|
|
2331
2389
|
style: {
|
|
@@ -2333,7 +2391,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2333
2391
|
color: "var(--tpl-primary)",
|
|
2334
2392
|
"background-color": "var(--tpl-bg)"
|
|
2335
2393
|
},
|
|
2336
|
-
onClick: n[1] ||= (...e) => h(
|
|
2394
|
+
onClick: n[1] ||= (...e) => h(le) && h(le)(...e)
|
|
2337
2395
|
}, [k(h(de), {
|
|
2338
2396
|
size: 14,
|
|
2339
2397
|
"stroke-width": 1.5
|
|
@@ -2341,12 +2399,12 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2341
2399
|
], 512)]),
|
|
2342
2400
|
_: 1
|
|
2343
2401
|
}, 8, ["label"]),
|
|
2344
|
-
h(
|
|
2402
|
+
h(Ee)(e.block.src, h(c)) ? (i(), v(A, {
|
|
2345
2403
|
key: 0,
|
|
2346
2404
|
class: "tpl:mb-3.5",
|
|
2347
2405
|
path: "placeholderUrl"
|
|
2348
2406
|
}, {
|
|
2349
|
-
label: a(() => [m(x(h(o).image.placeholderUrl) + " ", 1), b("span",
|
|
2407
|
+
label: a(() => [m(x(h(o).image.placeholderUrl) + " ", 1), b("span", vi, x(h(o).image.optional), 1)]),
|
|
2350
2408
|
default: a(() => [b("input", {
|
|
2351
2409
|
type: "url",
|
|
2352
2410
|
class: g(h(B)),
|
|
@@ -2354,7 +2412,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2354
2412
|
placeholder: h(o).image.placeholderUrlPlaceholder,
|
|
2355
2413
|
title: h(o).image.placeholderUrlTooltip,
|
|
2356
2414
|
onInput: n[2] ||= (e) => I("placeholderUrl", e.target.value)
|
|
2357
|
-
}, null, 42,
|
|
2415
|
+
}, null, 42, yi)]),
|
|
2358
2416
|
_: 1
|
|
2359
2417
|
})) : _("", !0),
|
|
2360
2418
|
k(A, {
|
|
@@ -2378,7 +2436,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2378
2436
|
path: "decorative",
|
|
2379
2437
|
label: h(o).image.decorative
|
|
2380
2438
|
}, {
|
|
2381
|
-
label: a(() => [b("span", null, [m(x(h(o).image.decorative) + " ", 1), b("span",
|
|
2439
|
+
label: a(() => [b("span", null, [m(x(h(o).image.decorative) + " ", 1), b("span", bi, x(h(o).image.decorativeHint), 1)])]),
|
|
2382
2440
|
"label-actions": a(({ controlId: t }) => [k(P, {
|
|
2383
2441
|
"control-id": t,
|
|
2384
2442
|
"hide-label": "",
|
|
@@ -2406,19 +2464,19 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2406
2464
|
value: j.value,
|
|
2407
2465
|
onChange: n[5] ||= (e) => ee(e.target.value)
|
|
2408
2466
|
}, [
|
|
2409
|
-
b("option",
|
|
2467
|
+
b("option", Si, x(h(o).image.fullWidth), 1),
|
|
2410
2468
|
n[16] ||= b("option", { value: "300" }, "300px", -1),
|
|
2411
2469
|
n[17] ||= b("option", { value: "400" }, "400px", -1),
|
|
2412
2470
|
n[18] ||= b("option", { value: "500" }, "500px", -1),
|
|
2413
|
-
b("option",
|
|
2414
|
-
], 42,
|
|
2471
|
+
b("option", Ci, x(h(o).image.widthCustom), 1)
|
|
2472
|
+
], 42, xi), j.value === "custom" ? (i(), p("div", wi, [b("input", {
|
|
2415
2473
|
type: "number",
|
|
2416
2474
|
"data-testid": "image-width-input",
|
|
2417
2475
|
class: g(h(z)),
|
|
2418
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2476
|
+
value: typeof e.block.width == "number" ? e.block.width : Ri,
|
|
2419
2477
|
min: "20",
|
|
2420
|
-
onInput: n[6] ||= (e) =>
|
|
2421
|
-
}, null, 42,
|
|
2478
|
+
onInput: n[6] ||= (e) => H(e.target.value)
|
|
2479
|
+
}, null, 42, Ti), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
2422
2480
|
_: 1
|
|
2423
2481
|
}, 8, ["label"]),
|
|
2424
2482
|
k(A, {
|
|
@@ -2432,10 +2490,10 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2432
2490
|
value: F.value,
|
|
2433
2491
|
onChange: n[7] ||= (e) => te(e.target.value)
|
|
2434
2492
|
}, [
|
|
2435
|
-
b("option",
|
|
2436
|
-
b("option",
|
|
2437
|
-
b("option",
|
|
2438
|
-
], 42,
|
|
2493
|
+
b("option", Di, x(h(o).image.fluidOnMobileAuto), 1),
|
|
2494
|
+
b("option", Oi, x(h(o).image.fluidOnMobileAlways), 1),
|
|
2495
|
+
b("option", ki, x(h(o).image.fluidOnMobileNever), 1)
|
|
2496
|
+
], 42, Ei)]),
|
|
2439
2497
|
_: 1
|
|
2440
2498
|
}, 8, ["label"]),
|
|
2441
2499
|
k(A, {
|
|
@@ -2444,40 +2502,40 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2444
2502
|
label: h(o).image.height
|
|
2445
2503
|
}, O({
|
|
2446
2504
|
default: a(() => [
|
|
2447
|
-
h(
|
|
2505
|
+
h(q) ? (i(), p(D, { key: 0 }, [b("div", Ai, [b("input", {
|
|
2448
2506
|
type: "number",
|
|
2449
2507
|
"data-testid": "image-locked-height-input",
|
|
2450
2508
|
class: g(h(z)),
|
|
2451
|
-
value:
|
|
2509
|
+
value: pe.value ?? h(J) ?? "",
|
|
2452
2510
|
min: "1",
|
|
2453
|
-
onInput: n[8] ||= (e) =>
|
|
2454
|
-
onBlur: n[9] ||= (e) =>
|
|
2455
|
-
}, null, 42,
|
|
2456
|
-
h(
|
|
2511
|
+
onInput: n[8] ||= (e) => Z(e.target.value),
|
|
2512
|
+
onBlur: n[9] ||= (e) => pe.value = null
|
|
2513
|
+
}, null, 42, ji), b("span", { class: g(h(L)) }, "px", 2)]), h(Y) === null ? _("", !0) : (i(), p("p", Mi, x(h(s)(h(o).image.heightCapped, { height: h(Y) })), 1))], 64)) : _("", !0),
|
|
2514
|
+
h(q) ? _("", !0) : (i(), p("select", {
|
|
2457
2515
|
key: 1,
|
|
2458
2516
|
class: g(h(B)),
|
|
2459
2517
|
"data-testid": "image-height-mode",
|
|
2460
2518
|
value: M.value,
|
|
2461
2519
|
onChange: n[10] ||= (e) => R(e.target.value)
|
|
2462
|
-
}, [b("option",
|
|
2463
|
-
!h(
|
|
2520
|
+
}, [b("option", Pi, x(h(o).image.heightAuto), 1), b("option", Fi, x(h(o).image.heightCustom), 1)], 42, Ni)),
|
|
2521
|
+
!h(q) && M.value === "custom" ? (i(), p("div", Ii, [b("input", {
|
|
2464
2522
|
type: "number",
|
|
2465
2523
|
"data-testid": "image-height-input",
|
|
2466
2524
|
class: g(h(z)),
|
|
2467
2525
|
value: e.block.height,
|
|
2468
2526
|
min: "20",
|
|
2469
|
-
onInput: n[11] ||= (e) =>
|
|
2470
|
-
}, null, 42,
|
|
2527
|
+
onInput: n[11] ||= (e) => ne(e.target.value)
|
|
2528
|
+
}, null, 42, Li), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)
|
|
2471
2529
|
]),
|
|
2472
2530
|
_: 2
|
|
2473
|
-
}, [h(
|
|
2531
|
+
}, [h(K) ? {
|
|
2474
2532
|
name: "label-actions",
|
|
2475
|
-
fn: a(() => [k(
|
|
2476
|
-
linked: h(
|
|
2533
|
+
fn: a(() => [k(kt, {
|
|
2534
|
+
linked: h(q),
|
|
2477
2535
|
"link-label": h(o).image.lockAspectRatio,
|
|
2478
2536
|
"unlink-label": h(o).image.unlockAspectRatio,
|
|
2479
2537
|
testid: "image-aspect-lock",
|
|
2480
|
-
onToggle:
|
|
2538
|
+
onToggle: X
|
|
2481
2539
|
}, null, 8, [
|
|
2482
2540
|
"linked",
|
|
2483
2541
|
"link-label",
|
|
@@ -2485,14 +2543,14 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2485
2543
|
])]),
|
|
2486
2544
|
key: "0"
|
|
2487
2545
|
} : void 0]), 1032, ["label"]),
|
|
2488
|
-
k(
|
|
2546
|
+
k(It, {
|
|
2489
2547
|
path: "borderRadius",
|
|
2490
2548
|
"model-value": e.block.borderRadius,
|
|
2491
2549
|
label: h(o).image.borderRadius,
|
|
2492
2550
|
"testid-prefix": "image",
|
|
2493
|
-
"onUpdate:modelValue":
|
|
2551
|
+
"onUpdate:modelValue": V
|
|
2494
2552
|
}, null, 8, ["model-value", "label"]),
|
|
2495
|
-
k(
|
|
2553
|
+
k(Nt, {
|
|
2496
2554
|
path: "border",
|
|
2497
2555
|
"model-value": e.block.border,
|
|
2498
2556
|
"testid-prefix": "image",
|
|
@@ -2503,7 +2561,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2503
2561
|
class: "tpl:mb-3.5",
|
|
2504
2562
|
path: "align"
|
|
2505
2563
|
}, {
|
|
2506
|
-
default: a(() => [k(
|
|
2564
|
+
default: a(() => [k($, {
|
|
2507
2565
|
options: [
|
|
2508
2566
|
{
|
|
2509
2567
|
value: "left",
|
|
@@ -2556,11 +2614,11 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2556
2614
|
}, 8, ["label"])
|
|
2557
2615
|
], 64));
|
|
2558
2616
|
}
|
|
2559
|
-
}),
|
|
2617
|
+
}), Vi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Hi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ui = [
|
|
2560
2618
|
"value",
|
|
2561
2619
|
"placeholder",
|
|
2562
2620
|
"onInput"
|
|
2563
|
-
],
|
|
2621
|
+
], Wi = ["title", "onClick"], Gi = { 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)]" }, Ki = { class: "tpl:flex tpl:items-center tpl:gap-2" }, qi = ["value"], Ji = { value: "" }, Yi = ["value"], Xi = ["value"], Zi = /* @__PURE__ */ r({
|
|
2564
2622
|
__name: "MenuToolbar",
|
|
2565
2623
|
props: {
|
|
2566
2624
|
block: {},
|
|
@@ -2568,7 +2626,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2568
2626
|
},
|
|
2569
2627
|
emits: ["update"],
|
|
2570
2628
|
setup(e, { emit: t }) {
|
|
2571
|
-
let n = e, r = t, { t: o } =
|
|
2629
|
+
let n = e, r = t, { t: o } = Q(), s = C(() => [
|
|
2572
2630
|
{
|
|
2573
2631
|
key: "openInNewTab",
|
|
2574
2632
|
label: o.menu.openInNewTab
|
|
@@ -2585,12 +2643,12 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2585
2643
|
{
|
|
2586
2644
|
value: "left",
|
|
2587
2645
|
label: o.title.alignLeft,
|
|
2588
|
-
icon:
|
|
2646
|
+
icon: q
|
|
2589
2647
|
},
|
|
2590
2648
|
{
|
|
2591
2649
|
value: "center",
|
|
2592
2650
|
label: o.title.alignCenter,
|
|
2593
|
-
icon:
|
|
2651
|
+
icon: Z
|
|
2594
2652
|
},
|
|
2595
2653
|
{
|
|
2596
2654
|
value: "right",
|
|
@@ -2603,7 +2661,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2603
2661
|
}
|
|
2604
2662
|
function d() {
|
|
2605
2663
|
let e = {
|
|
2606
|
-
id:
|
|
2664
|
+
id: ye(),
|
|
2607
2665
|
text: "",
|
|
2608
2666
|
url: "",
|
|
2609
2667
|
openInNewTab: !1,
|
|
@@ -2624,11 +2682,11 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2624
2682
|
}
|
|
2625
2683
|
return (t, n) => (i(), p(D, null, [
|
|
2626
2684
|
k(A, { label: h(o).menu.items }, {
|
|
2627
|
-
default: a(() => [b("div",
|
|
2685
|
+
default: a(() => [b("div", Vi, [(i(!0), p(D, null, c(e.block.items, (t) => (i(), p("div", {
|
|
2628
2686
|
key: t.id,
|
|
2629
2687
|
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"
|
|
2630
2688
|
}, [
|
|
2631
|
-
b("div",
|
|
2689
|
+
b("div", Hi, [k(A, {
|
|
2632
2690
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
|
|
2633
2691
|
label: h(o).menu.text
|
|
2634
2692
|
}, {
|
|
@@ -2638,16 +2696,16 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2638
2696
|
value: t.text,
|
|
2639
2697
|
placeholder: h(o).menu.text,
|
|
2640
2698
|
onInput: (e) => f(t.id, "text", e.target.value)
|
|
2641
|
-
}, null, 42,
|
|
2699
|
+
}, null, 42, Ui)]),
|
|
2642
2700
|
_: 2
|
|
2643
2701
|
}, 1032, ["path", "label"]), b("button", {
|
|
2644
2702
|
class: g(h(I)),
|
|
2645
2703
|
title: h(o).menu.removeItem,
|
|
2646
2704
|
onClick: (e) => _(t.id)
|
|
2647
|
-
}, [k(h(
|
|
2705
|
+
}, [k(h(pe), {
|
|
2648
2706
|
size: 14,
|
|
2649
2707
|
"stroke-width": 2
|
|
2650
|
-
})], 10,
|
|
2708
|
+
})], 10, Wi)]),
|
|
2651
2709
|
k(A, {
|
|
2652
2710
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
|
|
2653
2711
|
label: h(o).button.url
|
|
@@ -2664,7 +2722,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2664
2722
|
])]),
|
|
2665
2723
|
_: 2
|
|
2666
2724
|
}, 1032, ["path", "label"]),
|
|
2667
|
-
b("div",
|
|
2725
|
+
b("div", Gi, [(i(!0), p(D, null, c(s.value, (e) => (i(), v(A, {
|
|
2668
2726
|
key: e.key,
|
|
2669
2727
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
|
|
2670
2728
|
label: e.label
|
|
@@ -2683,7 +2741,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2683
2741
|
])]),
|
|
2684
2742
|
_: 2
|
|
2685
2743
|
}, 1032, ["path", "label"]))), 128))]),
|
|
2686
|
-
b("div",
|
|
2744
|
+
b("div", Ki, [k(A, {
|
|
2687
2745
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
|
|
2688
2746
|
label: h(o).menu.color
|
|
2689
2747
|
}, {
|
|
@@ -2697,7 +2755,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2697
2755
|
]))), 128)), b("button", {
|
|
2698
2756
|
class: g(h(R)),
|
|
2699
2757
|
onClick: d
|
|
2700
|
-
}, [k(h(
|
|
2758
|
+
}, [k(h(U), {
|
|
2701
2759
|
size: 14,
|
|
2702
2760
|
"stroke-width": 2
|
|
2703
2761
|
}), m(" " + x(h(o).menu.addItem), 1)], 2)])]),
|
|
@@ -2709,19 +2767,19 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2709
2767
|
}, {
|
|
2710
2768
|
default: a(() => [b("select", {
|
|
2711
2769
|
class: g(h(B)),
|
|
2712
|
-
value: h(
|
|
2770
|
+
value: h(ht)(e.block.fontFamily),
|
|
2713
2771
|
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2714
|
-
}, [b("option",
|
|
2772
|
+
}, [b("option", Ji, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
2715
2773
|
key: e.value,
|
|
2716
2774
|
value: e.value
|
|
2717
|
-
}, x(e.label), 9,
|
|
2775
|
+
}, x(e.label), 9, Yi))), 128))], 42, qi)]),
|
|
2718
2776
|
_: 1
|
|
2719
2777
|
}, 8, ["label"]),
|
|
2720
2778
|
k(A, {
|
|
2721
2779
|
path: "fontSize",
|
|
2722
2780
|
label: h(o).menu.fontSize
|
|
2723
2781
|
}, {
|
|
2724
|
-
default: a(() => [k(
|
|
2782
|
+
default: a(() => [k(Dt, {
|
|
2725
2783
|
"model-value": e.block.fontSize,
|
|
2726
2784
|
min: 8,
|
|
2727
2785
|
max: 48,
|
|
@@ -2754,7 +2812,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2754
2812
|
path: "textAlign",
|
|
2755
2813
|
label: h(o).menu.textAlign
|
|
2756
2814
|
}, {
|
|
2757
|
-
default: a(() => [k(
|
|
2815
|
+
default: a(() => [k($, {
|
|
2758
2816
|
options: l.value,
|
|
2759
2817
|
"model-value": e.block.textAlign,
|
|
2760
2818
|
"onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
|
|
@@ -2770,7 +2828,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2770
2828
|
class: g(h(B)),
|
|
2771
2829
|
value: e.block.separator,
|
|
2772
2830
|
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
2773
|
-
}, null, 42,
|
|
2831
|
+
}, null, 42, Xi)]),
|
|
2774
2832
|
_: 1
|
|
2775
2833
|
}, 8, ["label"]),
|
|
2776
2834
|
k(A, {
|
|
@@ -2787,7 +2845,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2787
2845
|
path: "spacing",
|
|
2788
2846
|
label: h(o).menu.spacing
|
|
2789
2847
|
}, {
|
|
2790
|
-
default: a(() => [k(
|
|
2848
|
+
default: a(() => [k(Dt, {
|
|
2791
2849
|
"model-value": e.block.spacing,
|
|
2792
2850
|
min: 0,
|
|
2793
2851
|
max: 50,
|
|
@@ -2798,33 +2856,33 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2798
2856
|
}, 8, ["label"])
|
|
2799
2857
|
], 64));
|
|
2800
2858
|
}
|
|
2801
|
-
}),
|
|
2859
|
+
}), Qi = { class: "tpl:flex tpl:items-stretch" }, $i = ["value"], ea = /* @__PURE__ */ r({
|
|
2802
2860
|
__name: "ParagraphToolbar",
|
|
2803
2861
|
props: { block: {} },
|
|
2804
2862
|
emits: ["update"],
|
|
2805
2863
|
setup(e, { emit: t }) {
|
|
2806
|
-
let n = t, { t: r } =
|
|
2864
|
+
let n = t, { t: r } = Q();
|
|
2807
2865
|
return (t, o) => (i(), v(A, {
|
|
2808
2866
|
label: h(r).paragraph.paragraphSpacing,
|
|
2809
2867
|
class: "tpl:mb-3.5",
|
|
2810
2868
|
"data-testid": "paragraph-spacing",
|
|
2811
2869
|
path: "paragraphSpacing"
|
|
2812
2870
|
}, {
|
|
2813
|
-
default: a(() => [b("div",
|
|
2871
|
+
default: a(() => [b("div", Qi, [b("input", {
|
|
2814
2872
|
type: "number",
|
|
2815
2873
|
class: g(h(z)),
|
|
2816
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2874
|
+
value: e.block.paragraphSpacing ?? h(ge).paragraphGap,
|
|
2817
2875
|
min: "0",
|
|
2818
2876
|
max: "64",
|
|
2819
2877
|
onInput: o[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2820
|
-
}, null, 42,
|
|
2878
|
+
}, null, 42, $i), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
2821
2879
|
_: 1
|
|
2822
2880
|
}, 8, ["label"]));
|
|
2823
2881
|
}
|
|
2824
2882
|
});
|
|
2825
2883
|
// src/utils/rebalanceColumnChildren.ts
|
|
2826
|
-
function
|
|
2827
|
-
let n =
|
|
2884
|
+
function ta(e, t) {
|
|
2885
|
+
let n = Ne(t);
|
|
2828
2886
|
if (e.length === n) return e;
|
|
2829
2887
|
if (e.length < n) {
|
|
2830
2888
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2834,21 +2892,28 @@ function Ki(e, t) {
|
|
|
2834
2892
|
return [...r.slice(0, n - 1), a];
|
|
2835
2893
|
}
|
|
2836
2894
|
// src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2837
|
-
var
|
|
2838
|
-
key:
|
|
2895
|
+
var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
|
|
2896
|
+
key: 0,
|
|
2897
|
+
value: "custom"
|
|
2898
|
+
}, oa = { class: "tpl:flex tpl:gap-2" }, sa = [
|
|
2899
|
+
"value",
|
|
2900
|
+
"aria-label",
|
|
2901
|
+
"onChange"
|
|
2902
|
+
], ca = {
|
|
2903
|
+
key: 3,
|
|
2839
2904
|
class: "tpl:mb-3.5"
|
|
2840
|
-
},
|
|
2905
|
+
}, la = {
|
|
2841
2906
|
key: 0,
|
|
2842
2907
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2843
|
-
},
|
|
2908
|
+
}, ua = {
|
|
2844
2909
|
key: 1,
|
|
2845
2910
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2846
|
-
},
|
|
2911
|
+
}, da = /* @__PURE__ */ r({
|
|
2847
2912
|
__name: "SectionToolbar",
|
|
2848
2913
|
props: { block: {} },
|
|
2849
2914
|
emits: ["update"],
|
|
2850
2915
|
setup(e, { emit: t }) {
|
|
2851
|
-
let n = e, r = t, { t: o } =
|
|
2916
|
+
let n = e, r = t, { t: o, format: s } = Q(), u = l(Ue, void 0), d = l(Re, void 0), f = u !== void 0 && Ae(u), m = C(() => d !== !1 || !!n.block.wrapper), y = C(() => f && !n.block.wrapper), S = C(() => f && m.value), w = C(() => Te(n.block)?.applied === !0), T = C(() => [
|
|
2852
2917
|
{
|
|
2853
2918
|
value: "1",
|
|
2854
2919
|
label: o.section.column1
|
|
@@ -2885,54 +2950,90 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2885
2950
|
value: "1-2-1",
|
|
2886
2951
|
label: o.section.ratio121
|
|
2887
2952
|
}
|
|
2888
|
-
]);
|
|
2889
|
-
function
|
|
2890
|
-
let t = e.target.value
|
|
2953
|
+
]), E = C(() => Oe(n.block)), O = C(() => n.block.columnWidths !== void 0 && be(n.block) === null), j = C(() => O.value ? "custom" : n.block.columns);
|
|
2954
|
+
function N(e) {
|
|
2955
|
+
let t = e.target.value;
|
|
2956
|
+
if (t === "custom") return;
|
|
2957
|
+
let i = t, a = ta(n.block.children, i);
|
|
2891
2958
|
r("update", {
|
|
2892
|
-
columns:
|
|
2893
|
-
children:
|
|
2959
|
+
columns: i,
|
|
2960
|
+
children: a,
|
|
2961
|
+
columnWidths: void 0
|
|
2894
2962
|
});
|
|
2895
2963
|
}
|
|
2896
|
-
function
|
|
2964
|
+
function F(e) {
|
|
2965
|
+
let t = Number(`${String(e)}e2`);
|
|
2966
|
+
return Number(`${Math.floor(t)}e-2`);
|
|
2967
|
+
}
|
|
2968
|
+
function I(e, t) {
|
|
2969
|
+
let i = t.target, a = i.value.trim(), o = Number(a), s = E.value;
|
|
2970
|
+
if (a === "" || !Number.isFinite(o)) {
|
|
2971
|
+
i.value = String(s[e]);
|
|
2972
|
+
return;
|
|
2973
|
+
}
|
|
2974
|
+
let c = s.slice(), l = e === c.length - 1 ? e - 1 : e + 1, u = c[e] + c[l], d = Math.max(.01, F(Math.min(5, u / 2))), f = Math.min(Math.max(o, d), u - d);
|
|
2975
|
+
c[e] = Ce(f), c[l] = Ce(u - c[e]);
|
|
2976
|
+
let p = Me[n.block.columns], m = p !== void 0 && p.every((e, t) => e === c[t]);
|
|
2977
|
+
r("update", { columnWidths: m ? void 0 : c });
|
|
2978
|
+
}
|
|
2979
|
+
function ee(e) {
|
|
2897
2980
|
r("update", { stackOnMobile: e });
|
|
2898
2981
|
}
|
|
2899
|
-
function
|
|
2982
|
+
function R(e) {
|
|
2900
2983
|
r("update", { borderRadius: e });
|
|
2901
2984
|
}
|
|
2902
|
-
function
|
|
2985
|
+
function te(e) {
|
|
2903
2986
|
e ? r("update", { wrapper: { padding: {
|
|
2904
2987
|
top: 20,
|
|
2905
2988
|
right: 20,
|
|
2906
2989
|
bottom: 20,
|
|
2907
2990
|
left: 20
|
|
2908
|
-
} } }) : r("update",
|
|
2991
|
+
} } }) : r("update", Qn(n.block));
|
|
2909
2992
|
}
|
|
2910
|
-
function
|
|
2911
|
-
r("update",
|
|
2993
|
+
function ne(e) {
|
|
2994
|
+
r("update", Zn(n.block, e));
|
|
2912
2995
|
}
|
|
2913
|
-
function
|
|
2996
|
+
function H(e) {
|
|
2914
2997
|
r("update", { wrapper: {
|
|
2915
2998
|
...n.block.wrapper,
|
|
2916
2999
|
...e
|
|
2917
3000
|
} });
|
|
2918
3001
|
}
|
|
2919
|
-
function
|
|
2920
|
-
|
|
3002
|
+
function re(e) {
|
|
3003
|
+
H({ padding: e });
|
|
2921
3004
|
}
|
|
2922
|
-
function
|
|
2923
|
-
|
|
3005
|
+
function ie(e) {
|
|
3006
|
+
H({ borderRadius: e });
|
|
2924
3007
|
}
|
|
2925
3008
|
return (t, n) => (i(), p(D, null, [
|
|
2926
|
-
b("div",
|
|
3009
|
+
b("div", na, [b("label", { class: g(h(V)) }, x(h(o).section.columns), 3), b("select", {
|
|
2927
3010
|
class: g(h(B)),
|
|
2928
|
-
value:
|
|
2929
|
-
onChange:
|
|
2930
|
-
}, [(i(!0), p(D, null, c(
|
|
3011
|
+
value: j.value,
|
|
3012
|
+
onChange: N
|
|
3013
|
+
}, [(i(!0), p(D, null, c(T.value, (e) => (i(), p("option", {
|
|
2931
3014
|
key: e.value,
|
|
2932
3015
|
value: e.value
|
|
2933
|
-
}, x(e.label), 9,
|
|
2934
|
-
|
|
3016
|
+
}, x(e.label), 9, ia))), 128)), O.value ? (i(), p("option", aa, x(h(o).section.columnsCustom), 1)) : _("", !0)], 42, ra)]),
|
|
3017
|
+
E.value.length > 1 ? (i(), v(A, {
|
|
2935
3018
|
key: 0,
|
|
3019
|
+
path: "columnWidths",
|
|
3020
|
+
label: h(o).section.columnWidths
|
|
3021
|
+
}, {
|
|
3022
|
+
default: a(() => [b("div", oa, [(i(!0), p(D, null, c(E.value, (e, t) => (i(), p("div", {
|
|
3023
|
+
key: t,
|
|
3024
|
+
class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:items-stretch"
|
|
3025
|
+
}, [b("input", {
|
|
3026
|
+
type: "number",
|
|
3027
|
+
step: "any",
|
|
3028
|
+
class: g(h(z)),
|
|
3029
|
+
value: e,
|
|
3030
|
+
"aria-label": h(s)(h(o).section.columnWidthAria, { index: t + 1 }),
|
|
3031
|
+
onChange: (e) => I(t, e)
|
|
3032
|
+
}, null, 42, sa), b("span", { class: g(h(L)) }, "%", 2)]))), 128))])]),
|
|
3033
|
+
_: 1
|
|
3034
|
+
}, 8, ["label"])) : _("", !0),
|
|
3035
|
+
e.block.columns === "1" ? _("", !0) : (i(), v(A, {
|
|
3036
|
+
key: 1,
|
|
2936
3037
|
class: "tpl:mb-3.5",
|
|
2937
3038
|
path: "stackOnMobile",
|
|
2938
3039
|
label: h(o).section.stackOnMobile
|
|
@@ -2943,7 +3044,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2943
3044
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2944
3045
|
"model-value": e.block.stackOnMobile !== !1,
|
|
2945
3046
|
label: h(o).section.stackOnMobile,
|
|
2946
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
3047
|
+
"onUpdate:modelValue": n[0] ||= (e) => ee(e)
|
|
2947
3048
|
}, null, 8, [
|
|
2948
3049
|
"control-id",
|
|
2949
3050
|
"model-value",
|
|
@@ -2951,22 +3052,22 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2951
3052
|
])]),
|
|
2952
3053
|
_: 1
|
|
2953
3054
|
}, 8, ["label"])),
|
|
2954
|
-
k(
|
|
3055
|
+
k(It, {
|
|
2955
3056
|
path: "borderRadius",
|
|
2956
3057
|
"model-value": e.block.borderRadius,
|
|
2957
3058
|
label: h(o).section.borderRadius,
|
|
2958
3059
|
max: 50,
|
|
2959
3060
|
"testid-prefix": "section",
|
|
2960
|
-
"onUpdate:modelValue":
|
|
3061
|
+
"onUpdate:modelValue": R
|
|
2961
3062
|
}, null, 8, ["model-value", "label"]),
|
|
2962
|
-
|
|
2963
|
-
key:
|
|
3063
|
+
w.value ? _("", !0) : (i(), v(Nt, {
|
|
3064
|
+
key: 2,
|
|
2964
3065
|
path: "border",
|
|
2965
3066
|
"model-value": e.block.border,
|
|
2966
3067
|
"testid-prefix": "section",
|
|
2967
3068
|
"onUpdate:modelValue": n[1] ||= (e) => r("update", { border: e })
|
|
2968
3069
|
}, null, 8, ["model-value"])),
|
|
2969
|
-
|
|
3070
|
+
m.value ? (i(), p("div", ca, [
|
|
2970
3071
|
k(A, {
|
|
2971
3072
|
path: "wrapper",
|
|
2972
3073
|
label: h(o).section.wrapperEnable
|
|
@@ -2977,8 +3078,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2977
3078
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2978
3079
|
"model-value": !!e.block.wrapper,
|
|
2979
3080
|
label: h(o).section.wrapperEnable,
|
|
2980
|
-
disabled:
|
|
2981
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
3081
|
+
disabled: y.value,
|
|
3082
|
+
"onUpdate:modelValue": n[2] ||= (e) => te(e)
|
|
2982
3083
|
}, null, 8, [
|
|
2983
3084
|
"control-id",
|
|
2984
3085
|
"model-value",
|
|
@@ -2987,8 +3088,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2987
3088
|
])]),
|
|
2988
3089
|
_: 1
|
|
2989
3090
|
}, 8, ["label"]),
|
|
2990
|
-
|
|
2991
|
-
e.block.wrapper ? (i(), p("div",
|
|
3091
|
+
S.value ? (i(), p("p", la, x(h(o).section.wrapperLayoutConflict), 1)) : _("", !0),
|
|
3092
|
+
e.block.wrapper ? (i(), p("div", ua, [
|
|
2992
3093
|
k(A, {
|
|
2993
3094
|
path: "wrapper.fullWidth",
|
|
2994
3095
|
label: h(o).blockSettings.fullWidthBackground
|
|
@@ -3000,7 +3101,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3000
3101
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
3001
3102
|
"model-value": e.block.wrapper.fullWidth === !0,
|
|
3002
3103
|
label: h(o).blockSettings.fullWidthBackground,
|
|
3003
|
-
"onUpdate:modelValue":
|
|
3104
|
+
"onUpdate:modelValue": ne
|
|
3004
3105
|
}, null, 8, [
|
|
3005
3106
|
"control-id",
|
|
3006
3107
|
"model-value",
|
|
@@ -3015,7 +3116,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3015
3116
|
default: a(() => [k(M, {
|
|
3016
3117
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
3017
3118
|
"allow-transparent": "",
|
|
3018
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
3119
|
+
"onUpdate:modelValue": n[3] ||= (e) => H({ backgroundColor: e })
|
|
3019
3120
|
}, null, 8, ["model-value"])]),
|
|
3020
3121
|
_: 1
|
|
3021
3122
|
}, 8, ["label"])]),
|
|
@@ -3023,15 +3124,15 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3023
3124
|
path: "wrapper.backgroundImage",
|
|
3024
3125
|
label: h(o).blockSettings.backgroundImage
|
|
3025
3126
|
}, {
|
|
3026
|
-
default: a(() => [k(
|
|
3127
|
+
default: a(() => [k(jn, {
|
|
3027
3128
|
"hide-label": "",
|
|
3028
3129
|
"model-value": e.block.wrapper.backgroundImage,
|
|
3029
3130
|
"testid-prefix": "section-wrapper",
|
|
3030
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
3131
|
+
"onUpdate:modelValue": n[4] ||= (e) => H({ backgroundImage: e })
|
|
3031
3132
|
}, null, 8, ["model-value"])]),
|
|
3032
3133
|
_: 1
|
|
3033
3134
|
}, 8, ["label"]),
|
|
3034
|
-
k(
|
|
3135
|
+
k(bn, {
|
|
3035
3136
|
path: "wrapper.padding",
|
|
3036
3137
|
label: h(o).blockSettings.padding,
|
|
3037
3138
|
"model-value": e.block.wrapper.padding ?? {
|
|
@@ -3040,32 +3141,32 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3040
3141
|
bottom: 0,
|
|
3041
3142
|
left: 0
|
|
3042
3143
|
},
|
|
3043
|
-
"onUpdate:modelValue":
|
|
3144
|
+
"onUpdate:modelValue": re
|
|
3044
3145
|
}, null, 8, ["label", "model-value"]),
|
|
3045
|
-
k(
|
|
3146
|
+
k(It, {
|
|
3046
3147
|
path: "wrapper.borderRadius",
|
|
3047
3148
|
"model-value": e.block.wrapper.borderRadius,
|
|
3048
3149
|
label: h(o).section.borderRadius,
|
|
3049
3150
|
max: 50,
|
|
3050
3151
|
"testid-prefix": "section-wrapper",
|
|
3051
|
-
"onUpdate:modelValue":
|
|
3152
|
+
"onUpdate:modelValue": ie
|
|
3052
3153
|
}, null, 8, ["model-value", "label"])
|
|
3053
3154
|
])) : _("", !0)
|
|
3054
3155
|
])) : _("", !0)
|
|
3055
3156
|
], 64));
|
|
3056
3157
|
}
|
|
3057
|
-
}),
|
|
3158
|
+
}), fa = { class: "tpl:mb-3.5" }, pa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ma = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ha = ["value", "onChange"], ga = ["value"], _a = ["title", "onClick"], va = ["value"], ya = { value: "solid" }, ba = { value: "outlined" }, xa = { value: "rounded" }, Sa = { value: "square" }, Ca = { value: "circle" }, wa = { value: "plain" }, Ta = ["value"], Ea = { value: "brand" }, Da = { value: "dark" }, Oa = { value: "light" }, ka = { class: "tpl:flex tpl:items-stretch" }, Aa = ["value"], ja = /* @__PURE__ */ r({
|
|
3058
3159
|
__name: "SocialToolbar",
|
|
3059
3160
|
props: { block: {} },
|
|
3060
3161
|
emits: ["update"],
|
|
3061
3162
|
setup(e, { emit: t }) {
|
|
3062
|
-
let n = e, r = t, { t: o } =
|
|
3163
|
+
let n = e, r = t, { t: o } = Q();
|
|
3063
3164
|
function s(e, t) {
|
|
3064
3165
|
r("update", { [e]: t });
|
|
3065
3166
|
}
|
|
3066
3167
|
function l() {
|
|
3067
3168
|
let e = {
|
|
3068
|
-
id:
|
|
3169
|
+
id: ye(),
|
|
3069
3170
|
platform: "facebook",
|
|
3070
3171
|
url: ""
|
|
3071
3172
|
};
|
|
@@ -3082,10 +3183,10 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3082
3183
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
3083
3184
|
}
|
|
3084
3185
|
return (t, n) => (i(), p(D, null, [
|
|
3085
|
-
b("div",
|
|
3186
|
+
b("div", fa, [b("label", { class: g(h(V)) }, x(h(o).social.icons), 3), b("div", pa, [(i(!0), p(D, null, c(e.block.icons, (e) => (i(), p("div", {
|
|
3086
3187
|
key: e.id,
|
|
3087
3188
|
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"
|
|
3088
|
-
}, [b("div",
|
|
3189
|
+
}, [b("div", ma, [k(A, {
|
|
3089
3190
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
|
|
3090
3191
|
label: h(o).social.icons
|
|
3091
3192
|
}, {
|
|
@@ -3094,19 +3195,19 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3094
3195
|
class: g([h(B), "tpl:flex-1"]),
|
|
3095
3196
|
value: e.platform,
|
|
3096
3197
|
onChange: (t) => u(e.id, "platform", t.target.value)
|
|
3097
|
-
}, [(i(!0), p(D, null, c(h(
|
|
3198
|
+
}, [(i(!0), p(D, null, c(h(ut), (e) => (i(), p("option", {
|
|
3098
3199
|
key: e,
|
|
3099
3200
|
value: e
|
|
3100
|
-
}, x(h(o).social.platforms[e]), 9,
|
|
3201
|
+
}, x(h(o).social.platforms[e]), 9, ga))), 128))], 42, ha)]),
|
|
3101
3202
|
_: 2
|
|
3102
3203
|
}, 1032, ["path", "label"]), b("button", {
|
|
3103
3204
|
class: g(h(I)),
|
|
3104
3205
|
title: h(o).social.removeIcon,
|
|
3105
3206
|
onClick: (t) => d(e.id)
|
|
3106
|
-
}, [k(h(
|
|
3207
|
+
}, [k(h(pe), {
|
|
3107
3208
|
size: 14,
|
|
3108
3209
|
"stroke-width": 2
|
|
3109
|
-
})], 10,
|
|
3210
|
+
})], 10, _a)]), k(A, {
|
|
3110
3211
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
|
|
3111
3212
|
label: h(o).button.url
|
|
3112
3213
|
}, {
|
|
@@ -3124,7 +3225,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3124
3225
|
}, 1032, ["path", "label"])]))), 128)), b("button", {
|
|
3125
3226
|
class: g(h(R)),
|
|
3126
3227
|
onClick: l
|
|
3127
|
-
}, [k(h(
|
|
3228
|
+
}, [k(h(U), {
|
|
3128
3229
|
size: 14,
|
|
3129
3230
|
"stroke-width": 2
|
|
3130
3231
|
}), m(" " + x(h(o).social.addIcon), 1)], 2)])]),
|
|
@@ -3138,13 +3239,13 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3138
3239
|
value: e.block.iconStyle,
|
|
3139
3240
|
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
3140
3241
|
}, [
|
|
3141
|
-
b("option",
|
|
3142
|
-
b("option",
|
|
3143
|
-
b("option",
|
|
3144
|
-
b("option",
|
|
3145
|
-
b("option",
|
|
3146
|
-
b("option",
|
|
3147
|
-
], 42,
|
|
3242
|
+
b("option", ya, x(h(o).social.styleSolid), 1),
|
|
3243
|
+
b("option", ba, x(h(o).social.styleOutlined), 1),
|
|
3244
|
+
b("option", xa, x(h(o).social.styleRounded), 1),
|
|
3245
|
+
b("option", Sa, x(h(o).social.styleSquare), 1),
|
|
3246
|
+
b("option", Ca, x(h(o).social.styleCircle), 1),
|
|
3247
|
+
b("option", wa, x(h(o).social.stylePlain), 1)
|
|
3248
|
+
], 42, va)]),
|
|
3148
3249
|
_: 1
|
|
3149
3250
|
}, 8, ["label"]),
|
|
3150
3251
|
k(A, {
|
|
@@ -3158,10 +3259,10 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3158
3259
|
value: e.block.iconTone ?? "brand",
|
|
3159
3260
|
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
3160
3261
|
}, [
|
|
3161
|
-
b("option",
|
|
3162
|
-
b("option",
|
|
3163
|
-
b("option",
|
|
3164
|
-
], 42,
|
|
3262
|
+
b("option", Ea, x(h(o).social.colorBrand), 1),
|
|
3263
|
+
b("option", Da, x(h(o).social.colorDark), 1),
|
|
3264
|
+
b("option", Oa, x(h(o).social.colorLight), 1)
|
|
3265
|
+
], 42, Ta)]),
|
|
3165
3266
|
_: 1
|
|
3166
3267
|
}, 8, ["label"]),
|
|
3167
3268
|
k(A, {
|
|
@@ -3169,7 +3270,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3169
3270
|
class: "tpl:mb-3.5",
|
|
3170
3271
|
path: "iconSize"
|
|
3171
3272
|
}, {
|
|
3172
|
-
default: a(() => [k(
|
|
3273
|
+
default: a(() => [k($, {
|
|
3173
3274
|
options: [
|
|
3174
3275
|
{
|
|
3175
3276
|
value: "small",
|
|
@@ -3194,14 +3295,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3194
3295
|
class: "tpl:mb-3.5",
|
|
3195
3296
|
path: "spacing"
|
|
3196
3297
|
}, {
|
|
3197
|
-
default: a(() => [b("div",
|
|
3298
|
+
default: a(() => [b("div", ka, [b("input", {
|
|
3198
3299
|
type: "number",
|
|
3199
3300
|
class: g(h(z)),
|
|
3200
3301
|
value: e.block.spacing,
|
|
3201
3302
|
min: "0",
|
|
3202
3303
|
max: "50",
|
|
3203
3304
|
onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
|
|
3204
|
-
}, null, 42,
|
|
3305
|
+
}, null, 42, Aa), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3205
3306
|
_: 1
|
|
3206
3307
|
}, 8, ["label"]),
|
|
3207
3308
|
k(A, {
|
|
@@ -3209,17 +3310,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3209
3310
|
class: "tpl:mb-3.5",
|
|
3210
3311
|
path: "align"
|
|
3211
3312
|
}, {
|
|
3212
|
-
default: a(() => [k(
|
|
3313
|
+
default: a(() => [k($, {
|
|
3213
3314
|
options: [
|
|
3214
3315
|
{
|
|
3215
3316
|
value: "left",
|
|
3216
3317
|
label: h(o).title.alignLeft,
|
|
3217
|
-
icon: h(
|
|
3318
|
+
icon: h(q)
|
|
3218
3319
|
},
|
|
3219
3320
|
{
|
|
3220
3321
|
value: "center",
|
|
3221
3322
|
label: h(o).title.alignCenter,
|
|
3222
|
-
icon: h(
|
|
3323
|
+
icon: h(Z)
|
|
3223
3324
|
},
|
|
3224
3325
|
{
|
|
3225
3326
|
value: "right",
|
|
@@ -3234,36 +3335,36 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3234
3335
|
}, 8, ["label"])
|
|
3235
3336
|
], 64));
|
|
3236
3337
|
}
|
|
3237
|
-
}),
|
|
3338
|
+
}), Ma = { class: "tpl:flex tpl:items-stretch" }, Na = ["value"], Pa = ["value"], Fa = /* @__PURE__ */ r({
|
|
3238
3339
|
__name: "SpacerToolbar",
|
|
3239
3340
|
props: { block: {} },
|
|
3240
3341
|
emits: ["update"],
|
|
3241
3342
|
setup(e, { emit: t }) {
|
|
3242
|
-
let n = t, { t: r } =
|
|
3343
|
+
let n = t, { t: r } = Q();
|
|
3243
3344
|
return (t, o) => (i(), v(A, {
|
|
3244
3345
|
label: h(r).spacer.height,
|
|
3245
3346
|
class: "tpl:mb-3.5",
|
|
3246
3347
|
path: "height"
|
|
3247
3348
|
}, {
|
|
3248
|
-
default: a(() => [b("div",
|
|
3349
|
+
default: a(() => [b("div", Ma, [b("input", {
|
|
3249
3350
|
type: "number",
|
|
3250
3351
|
class: g(h(z)),
|
|
3251
3352
|
value: e.block.height,
|
|
3252
3353
|
min: "10",
|
|
3253
3354
|
max: "100",
|
|
3254
3355
|
onInput: o[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3255
|
-
}, null, 42,
|
|
3356
|
+
}, null, 42, Na), b("span", { class: g(h(L)) }, "px", 2)]), b("input", {
|
|
3256
3357
|
type: "range",
|
|
3257
3358
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
3258
3359
|
value: e.block.height,
|
|
3259
3360
|
min: "10",
|
|
3260
3361
|
max: "100",
|
|
3261
3362
|
onInput: o[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3262
|
-
}, null, 40,
|
|
3363
|
+
}, null, 40, Pa)]),
|
|
3263
3364
|
_: 1
|
|
3264
3365
|
}, 8, ["label"]));
|
|
3265
3366
|
}
|
|
3266
|
-
}),
|
|
3367
|
+
}), Ia = { class: "tpl:mb-3.5" }, La = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ra = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, za = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ba = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Va = ["disabled"], Ha = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ua = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Wa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ga = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ka = ["disabled"], qa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ja = { class: "tpl:flex tpl:items-stretch" }, Ya = ["value"], Xa = { class: "tpl:flex tpl:items-stretch" }, Za = ["value"], Qa = ["value"], $a = { value: "" }, eo = ["value"], to = { class: "tpl:flex tpl:items-stretch" }, no = ["value"], ro = /* @__PURE__ */ r({
|
|
3267
3368
|
__name: "TableToolbar",
|
|
3268
3369
|
props: {
|
|
3269
3370
|
block: {},
|
|
@@ -3271,15 +3372,15 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3271
3372
|
},
|
|
3272
3373
|
emits: ["update"],
|
|
3273
3374
|
setup(e, { emit: t }) {
|
|
3274
|
-
let n = e, r = t, { t: o } =
|
|
3375
|
+
let n = e, r = t, { t: o } = Q(), s = C(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
3275
3376
|
function l(e, t) {
|
|
3276
3377
|
r("update", { [e]: t });
|
|
3277
3378
|
}
|
|
3278
3379
|
function u() {
|
|
3279
3380
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
3280
|
-
id:
|
|
3381
|
+
id: ye(),
|
|
3281
3382
|
cells: Array.from({ length: e }, () => ({
|
|
3282
|
-
id:
|
|
3383
|
+
id: ye(),
|
|
3283
3384
|
content: ""
|
|
3284
3385
|
}))
|
|
3285
3386
|
};
|
|
@@ -3292,7 +3393,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3292
3393
|
let e = n.block.rows.map((e) => ({
|
|
3293
3394
|
...e,
|
|
3294
3395
|
cells: [...e.cells, {
|
|
3295
|
-
id:
|
|
3396
|
+
id: ye(),
|
|
3296
3397
|
content: ""
|
|
3297
3398
|
}]
|
|
3298
3399
|
}));
|
|
@@ -3306,37 +3407,37 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3306
3407
|
r("update", { rows: t });
|
|
3307
3408
|
}
|
|
3308
3409
|
return (t, n) => (i(), p(D, null, [
|
|
3309
|
-
b("div",
|
|
3410
|
+
b("div", Ia, [b("label", { class: g(h(V)) }, x(h(o).table.dimensions), 3), b("div", La, [b("div", Ra, [b("span", za, x(h(o).table.rows), 1), b("div", Ba, [
|
|
3310
3411
|
b("button", {
|
|
3311
3412
|
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",
|
|
3312
3413
|
disabled: e.block.rows.length <= 1,
|
|
3313
3414
|
onClick: n[0] ||= (t) => d(e.block.rows[e.block.rows.length - 1].id)
|
|
3314
|
-
}, [k(h(
|
|
3415
|
+
}, [k(h(W), {
|
|
3315
3416
|
size: 12,
|
|
3316
3417
|
"stroke-width": 2
|
|
3317
|
-
})], 8,
|
|
3318
|
-
b("span",
|
|
3418
|
+
})], 8, Va),
|
|
3419
|
+
b("span", Ha, x(e.block.rows.length), 1),
|
|
3319
3420
|
b("button", {
|
|
3320
3421
|
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)]",
|
|
3321
3422
|
onClick: u
|
|
3322
|
-
}, [k(h(
|
|
3423
|
+
}, [k(h(U), {
|
|
3323
3424
|
size: 12,
|
|
3324
3425
|
"stroke-width": 2
|
|
3325
3426
|
})])
|
|
3326
|
-
])]), b("div",
|
|
3427
|
+
])]), b("div", Ua, [b("span", Wa, x(h(o).table.columns), 1), b("div", Ga, [
|
|
3327
3428
|
b("button", {
|
|
3328
3429
|
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",
|
|
3329
3430
|
disabled: s.value <= 1,
|
|
3330
3431
|
onClick: n[1] ||= (e) => m(s.value - 1)
|
|
3331
|
-
}, [k(h(
|
|
3432
|
+
}, [k(h(W), {
|
|
3332
3433
|
size: 12,
|
|
3333
3434
|
"stroke-width": 2
|
|
3334
|
-
})], 8,
|
|
3335
|
-
b("span",
|
|
3435
|
+
})], 8, Ka),
|
|
3436
|
+
b("span", qa, x(s.value), 1),
|
|
3336
3437
|
b("button", {
|
|
3337
3438
|
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)]",
|
|
3338
3439
|
onClick: f
|
|
3339
|
-
}, [k(h(
|
|
3440
|
+
}, [k(h(U), {
|
|
3340
3441
|
size: 12,
|
|
3341
3442
|
"stroke-width": 2
|
|
3342
3443
|
})])
|
|
@@ -3394,14 +3495,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3394
3495
|
class: "tpl:mb-3.5",
|
|
3395
3496
|
path: "borderWidth"
|
|
3396
3497
|
}, {
|
|
3397
|
-
default: a(() => [b("div",
|
|
3498
|
+
default: a(() => [b("div", Ja, [b("input", {
|
|
3398
3499
|
type: "number",
|
|
3399
3500
|
class: g(h(z)),
|
|
3400
3501
|
value: e.block.borderWidth,
|
|
3401
3502
|
min: "0",
|
|
3402
3503
|
max: "10",
|
|
3403
3504
|
onInput: n[5] ||= (e) => l("borderWidth", Number(e.target.value))
|
|
3404
|
-
}, null, 42,
|
|
3505
|
+
}, null, 42, Ya), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3405
3506
|
_: 1
|
|
3406
3507
|
}, 8, ["label"]),
|
|
3407
3508
|
k(A, {
|
|
@@ -3409,14 +3510,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3409
3510
|
class: "tpl:mb-3.5",
|
|
3410
3511
|
path: "cellPadding"
|
|
3411
3512
|
}, {
|
|
3412
|
-
default: a(() => [b("div",
|
|
3513
|
+
default: a(() => [b("div", Xa, [b("input", {
|
|
3413
3514
|
type: "number",
|
|
3414
3515
|
class: g(h(z)),
|
|
3415
3516
|
value: e.block.cellPadding,
|
|
3416
3517
|
min: "0",
|
|
3417
3518
|
max: "30",
|
|
3418
3519
|
onInput: n[6] ||= (e) => l("cellPadding", Number(e.target.value))
|
|
3419
|
-
}, null, 42,
|
|
3520
|
+
}, null, 42, Za), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3420
3521
|
_: 1
|
|
3421
3522
|
}, 8, ["label"]),
|
|
3422
3523
|
k(A, {
|
|
@@ -3426,12 +3527,12 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3426
3527
|
}, {
|
|
3427
3528
|
default: a(() => [b("select", {
|
|
3428
3529
|
class: g(h(B)),
|
|
3429
|
-
value: h(
|
|
3530
|
+
value: h(ht)(e.block.fontFamily),
|
|
3430
3531
|
onChange: n[7] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
3431
|
-
}, [b("option",
|
|
3532
|
+
}, [b("option", $a, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3432
3533
|
key: e.value,
|
|
3433
3534
|
value: e.value
|
|
3434
|
-
}, x(e.label), 9,
|
|
3535
|
+
}, x(e.label), 9, eo))), 128))], 42, Qa)]),
|
|
3435
3536
|
_: 1
|
|
3436
3537
|
}, 8, ["label"]),
|
|
3437
3538
|
k(A, {
|
|
@@ -3439,14 +3540,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3439
3540
|
class: "tpl:mb-3.5",
|
|
3440
3541
|
path: "fontSize"
|
|
3441
3542
|
}, {
|
|
3442
|
-
default: a(() => [b("div",
|
|
3543
|
+
default: a(() => [b("div", to, [b("input", {
|
|
3443
3544
|
type: "number",
|
|
3444
3545
|
class: g(h(z)),
|
|
3445
3546
|
value: e.block.fontSize,
|
|
3446
3547
|
min: "10",
|
|
3447
3548
|
max: "32",
|
|
3448
3549
|
onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
|
|
3449
|
-
}, null, 42,
|
|
3550
|
+
}, null, 42, no), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
3450
3551
|
_: 1
|
|
3451
3552
|
}, 8, ["label"]),
|
|
3452
3553
|
k(A, {
|
|
@@ -3465,17 +3566,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3465
3566
|
class: "tpl:mb-3.5",
|
|
3466
3567
|
path: "textAlign"
|
|
3467
3568
|
}, {
|
|
3468
|
-
default: a(() => [k(
|
|
3569
|
+
default: a(() => [k($, {
|
|
3469
3570
|
options: [
|
|
3470
3571
|
{
|
|
3471
3572
|
value: "left",
|
|
3472
3573
|
label: h(o).title.alignLeft,
|
|
3473
|
-
icon: h(
|
|
3574
|
+
icon: h(q)
|
|
3474
3575
|
},
|
|
3475
3576
|
{
|
|
3476
3577
|
value: "center",
|
|
3477
3578
|
label: h(o).title.alignCenter,
|
|
3478
|
-
icon: h(
|
|
3579
|
+
icon: h(Z)
|
|
3479
3580
|
},
|
|
3480
3581
|
{
|
|
3481
3582
|
value: "right",
|
|
@@ -3490,7 +3591,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3490
3591
|
}, 8, ["label"])
|
|
3491
3592
|
], 64));
|
|
3492
3593
|
}
|
|
3493
|
-
}),
|
|
3594
|
+
}), io = ["value"], ao = { value: 1 }, oo = { value: 2 }, so = { value: 3 }, co = { value: 4 }, lo = ["value"], uo = { value: "" }, fo = ["value"], po = /* @__PURE__ */ r({
|
|
3494
3595
|
__name: "TitleToolbar",
|
|
3495
3596
|
props: {
|
|
3496
3597
|
block: {},
|
|
@@ -3498,7 +3599,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3498
3599
|
},
|
|
3499
3600
|
emits: ["update"],
|
|
3500
3601
|
setup(e, { emit: t }) {
|
|
3501
|
-
let n = t, { t: r } =
|
|
3602
|
+
let n = t, { t: r } = Q();
|
|
3502
3603
|
function o(e, t) {
|
|
3503
3604
|
n("update", { [e]: t });
|
|
3504
3605
|
}
|
|
@@ -3513,11 +3614,11 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3513
3614
|
value: e.block.level,
|
|
3514
3615
|
onChange: n[0] ||= (e) => o("level", Number(e.target.value))
|
|
3515
3616
|
}, [
|
|
3516
|
-
b("option",
|
|
3517
|
-
b("option",
|
|
3518
|
-
b("option",
|
|
3519
|
-
b("option",
|
|
3520
|
-
], 42,
|
|
3617
|
+
b("option", ao, x(h(r).title.heading1), 1),
|
|
3618
|
+
b("option", oo, x(h(r).title.heading2), 1),
|
|
3619
|
+
b("option", so, x(h(r).title.heading3), 1),
|
|
3620
|
+
b("option", co, x(h(r).title.heading4), 1)
|
|
3621
|
+
], 42, io)]),
|
|
3521
3622
|
_: 1
|
|
3522
3623
|
}, 8, ["label"]),
|
|
3523
3624
|
k(A, {
|
|
@@ -3527,12 +3628,12 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3527
3628
|
}, {
|
|
3528
3629
|
default: a(() => [b("select", {
|
|
3529
3630
|
class: g(h(B)),
|
|
3530
|
-
value: h(
|
|
3631
|
+
value: h(ht)(e.block.fontFamily),
|
|
3531
3632
|
onChange: n[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
3532
|
-
}, [b("option",
|
|
3633
|
+
}, [b("option", uo, x(h(r).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3533
3634
|
key: e.value,
|
|
3534
3635
|
value: e.value
|
|
3535
|
-
}, x(e.label), 9,
|
|
3636
|
+
}, x(e.label), 9, fo))), 128))], 42, lo)]),
|
|
3536
3637
|
_: 1
|
|
3537
3638
|
}, 8, ["label"]),
|
|
3538
3639
|
k(A, {
|
|
@@ -3551,17 +3652,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3551
3652
|
class: "tpl:mb-3.5",
|
|
3552
3653
|
path: "textAlign"
|
|
3553
3654
|
}, {
|
|
3554
|
-
default: a(() => [k(
|
|
3655
|
+
default: a(() => [k($, {
|
|
3555
3656
|
options: [
|
|
3556
3657
|
{
|
|
3557
3658
|
value: "left",
|
|
3558
3659
|
label: h(r).title.alignLeft,
|
|
3559
|
-
icon: h(
|
|
3660
|
+
icon: h(q)
|
|
3560
3661
|
},
|
|
3561
3662
|
{
|
|
3562
3663
|
value: "center",
|
|
3563
3664
|
label: h(r).title.alignCenter,
|
|
3564
|
-
icon: h(
|
|
3665
|
+
icon: h(Z)
|
|
3565
3666
|
},
|
|
3566
3667
|
{
|
|
3567
3668
|
value: "right",
|
|
@@ -3576,29 +3677,29 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3576
3677
|
}, 8, ["label"])
|
|
3577
3678
|
], 64));
|
|
3578
3679
|
}
|
|
3579
|
-
}),
|
|
3680
|
+
}), mo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ho = [
|
|
3580
3681
|
"value",
|
|
3581
3682
|
"placeholder",
|
|
3582
3683
|
"title"
|
|
3583
|
-
],
|
|
3684
|
+
], go = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, _o = ["value"], vo = { value: "full" }, yo = { value: "custom" }, bo = {
|
|
3584
3685
|
key: 0,
|
|
3585
3686
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3586
|
-
},
|
|
3687
|
+
}, xo = ["value"], So = ["value"], Co = { value: "auto" }, wo = { value: "custom" }, To = {
|
|
3587
3688
|
key: 0,
|
|
3588
3689
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3589
|
-
},
|
|
3690
|
+
}, Eo = ["value"], Do = 350, Oo = 200, ko = /* @__PURE__ */ r({
|
|
3590
3691
|
__name: "VideoToolbar",
|
|
3591
3692
|
props: { block: {} },
|
|
3592
3693
|
emits: ["update"],
|
|
3593
3694
|
setup(e, { emit: t }) {
|
|
3594
|
-
let n = e, r = t, { t: o } =
|
|
3695
|
+
let n = e, r = t, { t: o } = Q(), s = l(We, null), c = l(ze, _e.liquid), u = nt(), d = [
|
|
3595
3696
|
300,
|
|
3596
3697
|
400,
|
|
3597
3698
|
500
|
|
3598
|
-
], f = C(() => !!s), y = C(() =>
|
|
3699
|
+
], f = C(() => !!s), y = C(() => Ee(n.block.url, c)), S = C(() => {
|
|
3599
3700
|
let e = n.block.width;
|
|
3600
3701
|
return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
|
|
3601
|
-
}), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } =
|
|
3702
|
+
}), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } = xt(() => {
|
|
3602
3703
|
T.value = !1;
|
|
3603
3704
|
}, 1e3, { immediate: !1 });
|
|
3604
3705
|
function j(e, t) {
|
|
@@ -3607,7 +3708,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3607
3708
|
function M(e) {
|
|
3608
3709
|
if (e === "custom") {
|
|
3609
3710
|
let e = n.block.width;
|
|
3610
|
-
(typeof e != "number" || d.includes(e)) && j("width",
|
|
3711
|
+
(typeof e != "number" || d.includes(e)) && j("width", Do);
|
|
3611
3712
|
} else j("width", e === "full" ? "full" : Number(e));
|
|
3612
3713
|
}
|
|
3613
3714
|
function F(e) {
|
|
@@ -3615,7 +3716,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3615
3716
|
!Number.isFinite(t) || t <= 0 || j("width", t);
|
|
3616
3717
|
}
|
|
3617
3718
|
function I(e) {
|
|
3618
|
-
j("height", e === "custom" ?
|
|
3719
|
+
j("height", e === "custom" ? Oo : void 0);
|
|
3619
3720
|
}
|
|
3620
3721
|
function ee(e) {
|
|
3621
3722
|
let t = Number(e);
|
|
@@ -3662,7 +3763,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3662
3763
|
class: "tpl:mb-3.5",
|
|
3663
3764
|
path: "placeholderUrl"
|
|
3664
3765
|
}, {
|
|
3665
|
-
label: a(() => [m(x(h(o).video.placeholderUrl) + " ", 1), b("span",
|
|
3766
|
+
label: a(() => [m(x(h(o).video.placeholderUrl) + " ", 1), b("span", mo, x(h(o).video.optional), 1)]),
|
|
3666
3767
|
default: a(() => [b("input", {
|
|
3667
3768
|
type: "url",
|
|
3668
3769
|
class: g(h(B)),
|
|
@@ -3670,14 +3771,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3670
3771
|
placeholder: h(o).video.placeholderUrlPlaceholder,
|
|
3671
3772
|
title: h(o).video.placeholderUrlTooltip,
|
|
3672
3773
|
onInput: n[2] ||= (e) => j("placeholderUrl", e.target.value)
|
|
3673
|
-
}, null, 42,
|
|
3774
|
+
}, null, 42, ho)]),
|
|
3674
3775
|
_: 1
|
|
3675
3776
|
})) : _("", !0),
|
|
3676
3777
|
k(A, {
|
|
3677
3778
|
class: "tpl:mb-3.5",
|
|
3678
3779
|
path: "thumbnailUrl"
|
|
3679
3780
|
}, {
|
|
3680
|
-
label: a(() => [m(x(h(o).video.customThumbnail) + " ", 1), b("span",
|
|
3781
|
+
label: a(() => [m(x(h(o).video.customThumbnail) + " ", 1), b("span", go, x(h(o).video.optional), 1)]),
|
|
3681
3782
|
default: a(() => [k(N, {
|
|
3682
3783
|
"model-value": e.block.thumbnailUrl,
|
|
3683
3784
|
type: "url",
|
|
@@ -3727,19 +3828,19 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3727
3828
|
value: S.value,
|
|
3728
3829
|
onChange: n[5] ||= (e) => M(e.target.value)
|
|
3729
3830
|
}, [
|
|
3730
|
-
b("option",
|
|
3831
|
+
b("option", vo, x(h(o).video.fullWidth), 1),
|
|
3731
3832
|
n[10] ||= b("option", { value: "300" }, "300px", -1),
|
|
3732
3833
|
n[11] ||= b("option", { value: "400" }, "400px", -1),
|
|
3733
3834
|
n[12] ||= b("option", { value: "500" }, "500px", -1),
|
|
3734
|
-
b("option",
|
|
3735
|
-
], 42,
|
|
3835
|
+
b("option", yo, x(h(o).video.widthCustom), 1)
|
|
3836
|
+
], 42, _o), S.value === "custom" ? (i(), p("div", bo, [b("input", {
|
|
3736
3837
|
type: "number",
|
|
3737
3838
|
"data-testid": "video-width-input",
|
|
3738
3839
|
class: g(h(z)),
|
|
3739
3840
|
value: e.block.width,
|
|
3740
3841
|
min: "20",
|
|
3741
3842
|
onInput: n[6] ||= (e) => F(e.target.value)
|
|
3742
|
-
}, null, 42,
|
|
3843
|
+
}, null, 42, xo), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
3743
3844
|
_: 1
|
|
3744
3845
|
}, 8, ["label"]),
|
|
3745
3846
|
k(A, {
|
|
@@ -3752,14 +3853,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3752
3853
|
"data-testid": "video-height-mode",
|
|
3753
3854
|
value: w.value,
|
|
3754
3855
|
onChange: n[7] ||= (e) => I(e.target.value)
|
|
3755
|
-
}, [b("option",
|
|
3856
|
+
}, [b("option", Co, x(h(o).video.heightAuto), 1), b("option", wo, x(h(o).video.heightCustom), 1)], 42, So), w.value === "custom" ? (i(), p("div", To, [b("input", {
|
|
3756
3857
|
type: "number",
|
|
3757
3858
|
"data-testid": "video-height-input",
|
|
3758
3859
|
class: g(h(z)),
|
|
3759
3860
|
value: e.block.height,
|
|
3760
3861
|
min: "20",
|
|
3761
3862
|
onInput: n[8] ||= (e) => ee(e.target.value)
|
|
3762
|
-
}, null, 42,
|
|
3863
|
+
}, null, 42, Eo), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
3763
3864
|
_: 1
|
|
3764
3865
|
}, 8, ["label"]),
|
|
3765
3866
|
k(A, {
|
|
@@ -3767,7 +3868,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3767
3868
|
class: "tpl:mb-3.5",
|
|
3768
3869
|
path: "align"
|
|
3769
3870
|
}, {
|
|
3770
|
-
default: a(() => [k(
|
|
3871
|
+
default: a(() => [k($, {
|
|
3771
3872
|
options: [
|
|
3772
3873
|
{
|
|
3773
3874
|
value: "left",
|
|
@@ -3789,7 +3890,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3789
3890
|
}, 8, ["label"])
|
|
3790
3891
|
], 64));
|
|
3791
3892
|
}
|
|
3792
|
-
}),
|
|
3893
|
+
}), Ao = ["aria-label"], jo = ["disabled", "inert"], Mo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, No = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Po = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fo = { class: "tpl:flex tpl:gap-1" }, Io = ["title"], Lo = ["title"], Ro = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, zo = /*@__PURE__*/ r({
|
|
3793
3894
|
__name: "Toolbar",
|
|
3794
3895
|
props: { block: {} },
|
|
3795
3896
|
emits: [
|
|
@@ -3798,9 +3899,9 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3798
3899
|
"duplicate"
|
|
3799
3900
|
],
|
|
3800
3901
|
setup(e, { emit: t }) {
|
|
3801
|
-
let r = f(() => import("./CountdownToolbar-
|
|
3902
|
+
let r = f(() => import("./CountdownToolbar-BOyk_4k7.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(() => {
|
|
3802
3903
|
if (g.value) return d.find((e) => e.type === a.block.customType);
|
|
3803
|
-
}), S = C(() => g.value ? y.value?.name ?? a.block.customType :
|
|
3904
|
+
}), 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));
|
|
3804
3905
|
function T(e) {
|
|
3805
3906
|
c.value && o("update", e);
|
|
3806
3907
|
}
|
|
@@ -3812,7 +3913,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3812
3913
|
disabled: !h(c),
|
|
3813
3914
|
inert: !h(c),
|
|
3814
3915
|
class: "tpl:contents"
|
|
3815
|
-
}, [b("div",
|
|
3916
|
+
}, [b("div", Mo, [b("div", No, [h(St)[m.value] ? (i(), v(n(h(St)[m.value]), {
|
|
3816
3917
|
key: 0,
|
|
3817
3918
|
size: 16,
|
|
3818
3919
|
"stroke-width": 1.5
|
|
@@ -3820,74 +3921,74 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3820
3921
|
key: 1,
|
|
3821
3922
|
size: 16,
|
|
3822
3923
|
"stroke-width": 1.5
|
|
3823
|
-
})) : _("", !0), b("h3",
|
|
3924
|
+
})) : _("", !0), b("h3", Po, x(S.value), 1)]), b("div", Fo, [b("button", {
|
|
3824
3925
|
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)]",
|
|
3825
3926
|
title: h(s).toolbar.duplicate,
|
|
3826
3927
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
3827
3928
|
}, [k(h(ie), {
|
|
3828
3929
|
size: 14,
|
|
3829
3930
|
"stroke-width": 2
|
|
3830
|
-
})], 8,
|
|
3931
|
+
})], 8, Io), b("button", {
|
|
3831
3932
|
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)]",
|
|
3832
3933
|
title: h(s).toolbar.delete,
|
|
3833
3934
|
onClick: a[1] ||= (e) => o("delete")
|
|
3834
|
-
}, [k(h(
|
|
3935
|
+
}, [k(h(G), {
|
|
3835
3936
|
size: 14,
|
|
3836
3937
|
"stroke-width": 2
|
|
3837
|
-
})], 8,
|
|
3938
|
+
})], 8, Lo)])]), b("div", Ro, [g.value ? (i(), v(ui, {
|
|
3838
3939
|
key: 0,
|
|
3839
3940
|
block: e.block,
|
|
3840
3941
|
onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
|
|
3841
3942
|
onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
|
|
3842
|
-
}, null, 8, ["block"])) : m.value === "section" ? (i(), v(
|
|
3943
|
+
}, null, 8, ["block"])) : m.value === "section" ? (i(), v(da, {
|
|
3843
3944
|
key: 1,
|
|
3844
3945
|
block: e.block,
|
|
3845
3946
|
onUpdate: T
|
|
3846
|
-
}, null, 8, ["block"])) : m.value === "title" ? (i(), v(
|
|
3947
|
+
}, null, 8, ["block"])) : m.value === "title" ? (i(), v(po, {
|
|
3847
3948
|
key: 2,
|
|
3848
3949
|
block: e.block,
|
|
3849
3950
|
"font-families": w.value,
|
|
3850
3951
|
onUpdate: T
|
|
3851
|
-
}, null, 8, ["block", "font-families"])) : m.value === "paragraph" ? (i(), v(
|
|
3952
|
+
}, null, 8, ["block", "font-families"])) : m.value === "paragraph" ? (i(), v(ea, {
|
|
3852
3953
|
key: 3,
|
|
3853
3954
|
block: e.block,
|
|
3854
3955
|
onUpdate: T
|
|
3855
|
-
}, null, 8, ["block"])) : m.value === "image" ? (i(), v(
|
|
3956
|
+
}, null, 8, ["block"])) : m.value === "image" ? (i(), v(Bi, {
|
|
3856
3957
|
key: 4,
|
|
3857
3958
|
block: e.block,
|
|
3858
3959
|
onUpdate: T
|
|
3859
|
-
}, null, 8, ["block"])) : m.value === "video" ? (i(), v(
|
|
3960
|
+
}, null, 8, ["block"])) : m.value === "video" ? (i(), v(ko, {
|
|
3860
3961
|
key: 5,
|
|
3861
3962
|
block: e.block,
|
|
3862
3963
|
onUpdate: T
|
|
3863
|
-
}, null, 8, ["block"])) : m.value === "button" ? (i(), v(
|
|
3964
|
+
}, null, 8, ["block"])) : m.value === "button" ? (i(), v(Zt, {
|
|
3864
3965
|
key: 6,
|
|
3865
3966
|
block: e.block,
|
|
3866
3967
|
"font-families": w.value,
|
|
3867
3968
|
onUpdate: T
|
|
3868
|
-
}, null, 8, ["block", "font-families"])) : m.value === "divider" ? (i(), v(
|
|
3969
|
+
}, null, 8, ["block", "font-families"])) : m.value === "divider" ? (i(), v(pi, {
|
|
3869
3970
|
key: 7,
|
|
3870
3971
|
block: e.block,
|
|
3871
3972
|
onUpdate: T
|
|
3872
|
-
}, null, 8, ["block"])) : m.value === "social" ? (i(), v(
|
|
3973
|
+
}, null, 8, ["block"])) : m.value === "social" ? (i(), v(ja, {
|
|
3873
3974
|
key: 8,
|
|
3874
3975
|
block: e.block,
|
|
3875
3976
|
onUpdate: T
|
|
3876
|
-
}, null, 8, ["block"])) : m.value === "menu" ? (i(), v(
|
|
3977
|
+
}, null, 8, ["block"])) : m.value === "menu" ? (i(), v(Zi, {
|
|
3877
3978
|
key: 9,
|
|
3878
3979
|
block: e.block,
|
|
3879
3980
|
"font-families": w.value,
|
|
3880
3981
|
onUpdate: T
|
|
3881
|
-
}, null, 8, ["block", "font-families"])) : m.value === "table" ? (i(), v(
|
|
3982
|
+
}, null, 8, ["block", "font-families"])) : m.value === "table" ? (i(), v(ro, {
|
|
3882
3983
|
key: 10,
|
|
3883
3984
|
block: e.block,
|
|
3884
3985
|
"font-families": w.value,
|
|
3885
3986
|
onUpdate: T
|
|
3886
|
-
}, null, 8, ["block", "font-families"])) : m.value === "spacer" ? (i(), v(
|
|
3987
|
+
}, null, 8, ["block", "font-families"])) : m.value === "spacer" ? (i(), v(Fa, {
|
|
3887
3988
|
key: 11,
|
|
3888
3989
|
block: e.block,
|
|
3889
3990
|
onUpdate: T
|
|
3890
|
-
}, null, 8, ["block"])) : m.value === "html" ? (i(), v(
|
|
3991
|
+
}, null, 8, ["block"])) : m.value === "html" ? (i(), v(gi, {
|
|
3891
3992
|
key: 12,
|
|
3892
3993
|
block: e.block,
|
|
3893
3994
|
onUpdate: T
|
|
@@ -3896,13 +3997,13 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3896
3997
|
block: e.block,
|
|
3897
3998
|
"font-families": w.value,
|
|
3898
3999
|
onUpdate: T
|
|
3899
|
-
}, null, 8, ["block", "font-families"])) : _("", !0), k(
|
|
4000
|
+
}, null, 8, ["block", "font-families"])) : _("", !0), k(wr, {
|
|
3900
4001
|
block: e.block,
|
|
3901
4002
|
"is-first-section": m.value === "paragraph",
|
|
3902
4003
|
onUpdate: T
|
|
3903
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
4004
|
+
}, null, 8, ["block", "is-first-section"])])], 8, jo)], 8, Ao));
|
|
3904
4005
|
}
|
|
3905
|
-
}),
|
|
3906
|
-
export {
|
|
4006
|
+
}), Bo = /* @__PURE__ */ e({ default: () => Vo }), Vo = /*#__PURE__*/ _t(zo, [["__scopeId", "data-v-206f038f"]]);
|
|
4007
|
+
export { Vo as default, Dt as n, $ as r, Bo as t };
|
|
3907
4008
|
|
|
3908
|
-
//# sourceMappingURL=Toolbar-
|
|
4009
|
+
//# sourceMappingURL=Toolbar-DbqkKRXy.js.map
|