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