@templatical/editor 0.54.2 → 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-BBKVJ6HA.js → AiAltTextPopover-DdsvhE78.js} +4 -4
- package/dist/{AiAltTextReview-BuVbeQh-.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-ZpYJfm-O.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-DQRWMc59.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-DTpMEDyh.js → CountdownToolbar-CP-pkntQ.js} +5 -5
- package/dist/{IssuesPanel-BZn7-p9e.js → IssuesPanel-CiiNBzH0.js} +12 -12
- package/dist/{LanguageMenu-OOmQWVzO.js → LanguageMenu-B981Av-6.js} +15 -15
- package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CTCZ7BYv.js} +4 -4
- package/dist/{LogicTagInsertButton-XESwnJia.js → LogicTagInsertButton-DEOPc4RC.js} +284 -279
- package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-DJsPLTwP.js} +1 -1
- package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-D2WD2aE2.js} +1 -1
- package/dist/{MergeTagInput-CAsBRoSm.js → MergeTagInput-C9icdxw7.js} +1 -1
- package/dist/{MergeTagModeToggle-bOf27Hg1.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
- package/dist/{MergeTagTextarea-DH_6JFui.js → MergeTagTextarea-CrAcmT3A.js} +5 -5
- package/dist/{ParagraphEditor-XGUkV5Uw.js → ParagraphEditor-BWBQ3jKz.js} +55 -55
- package/dist/{RestoreVersionDialog-C72kWccI.js → RestoreVersionDialog-CqAp16yQ.js} +4 -4
- package/dist/{RichTextEditorContent-BZN8KRvR.js → RichTextEditorContent-xbBjVPVQ.js} +8 -8
- package/dist/{SaveBlockDialog-CKOnTMTU.js → SaveBlockDialog-pebNJBTc.js} +9 -9
- package/dist/{SavedBlocksBrowserModal-BrlNxqDH.js → SavedBlocksBrowserModal-CvagMcv7.js} +11 -11
- package/dist/{SavedBlocksPanels--lPR6gdh.js → SavedBlocksPanels-B9AAVBDm.js} +1 -1
- package/dist/{SavedBlocksPickBar-4ON4_KKl.js → SavedBlocksPickBar-BIANWe3i.js} +3 -3
- package/dist/{TemplateSettings-BE0jZmRJ.js → TemplateSettings-ORq4PbCN.js} +12 -12
- package/dist/{TestEmailModal-BKmNGrZN.js → TestEmailModal-DRjCpcPl.js} +11 -11
- package/dist/{TestEmailPanel-DT1wllX3.js → TestEmailPanel-H0v8El__.js} +1 -1
- package/dist/{TitleEditor-HjVZuUTB.js → TitleEditor-CEGbJXeU.js} +11 -11
- package/dist/{Toolbar-BppchV2k.js → Toolbar-XT-uGA9J.js} +1134 -852
- package/dist/{TplModal-BFWOoK8l.js → TplModal-7NQq5-VW.js} +4 -4
- package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu-C8BE3Pr-.js} +7 -7
- package/dist/{VersionHistoryPanels-D4yNVLvq.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-D91v9k0x.js → blockTypeIcons-CGplGmmr.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-DOuIxWRv.js → ca-BJn8lcJx.js} +18 -1
- package/dist/cdn/chunks/{AiAltTextPopover-CAI18sdv.js → AiAltTextPopover-x999Gimz.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextPopover-CAI18sdv.js.map → AiAltTextPopover-x999Gimz.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-CWEyMOF-.js → AiAltTextReview-DjnFz1wO.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextReview-CWEyMOF-.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-BEepu1vo.js → AiRewriteMenu-s79rmHFy.js} +10 -10
- package/dist/cdn/chunks/{AiRewriteMenu-BEepu1vo.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-B6ndvof2.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-BGwDb0jB.js → CloudPanels-DQnlH_YJ.js} +4 -4
- package/dist/cdn/chunks/{CloudPanels-BGwDb0jB.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-B-0FsTj-.js → CountdownToolbar-Ddj2erNm.js} +6 -6
- package/dist/cdn/chunks/{CountdownToolbar-B-0FsTj-.js.map → CountdownToolbar-Ddj2erNm.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-LyjMBDok.js → IssuesPanel-DnSnEh1X.js} +8 -8
- package/dist/cdn/chunks/{IssuesPanel-LyjMBDok.js.map → IssuesPanel-DnSnEh1X.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-CGwMCOQ5.js → LanguageMenu-C2I_yTL5.js} +110 -110
- package/dist/cdn/chunks/{LanguageMenu-CGwMCOQ5.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-PDKuo2J3.js → LogicTagInsertButton-BdzE9-l7.js} +260 -255
- 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-DoQHBJk2.js → MergeTagInput-CmrX8Md6.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-DoQHBJk2.js.map → MergeTagInput-CmrX8Md6.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Ct5IG4VW.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
- package/dist/cdn/chunks/{MergeTagModeToggle-Ct5IG4VW.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-BMsnjphR.js → MergeTagTextarea-KOnd2teB.js} +8 -8
- package/dist/cdn/chunks/{MergeTagTextarea-BMsnjphR.js.map → MergeTagTextarea-KOnd2teB.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CVW-kuHW.js → ParagraphEditor-I9lbKaPk.js} +19 -19
- package/dist/cdn/chunks/{ParagraphEditor-CVW-kuHW.js.map → ParagraphEditor-I9lbKaPk.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-7MFZz-Sb.js → RestoreVersionDialog-DqbULAbc.js} +4 -4
- package/dist/cdn/chunks/{RestoreVersionDialog-7MFZz-Sb.js.map → RestoreVersionDialog-DqbULAbc.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CiL-SkZg.js → RichTextEditorContent-_O22z0pn.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-CiL-SkZg.js.map → RichTextEditorContent-_O22z0pn.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CxdekCYy.js → SaveBlockDialog-CClRLXgF.js} +8 -8
- package/dist/cdn/chunks/{SaveBlockDialog-CxdekCYy.js.map → SaveBlockDialog-CClRLXgF.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-D9CAa2U3.js → SavedBlocksBrowserModal-BIaxaxw9.js} +8 -8
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-D9CAa2U3.js.map → SavedBlocksBrowserModal-BIaxaxw9.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-jfkYWtss.js → SavedBlocksPanels-Dfu9N6YW.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-jfkYWtss.js.map → SavedBlocksPanels-Dfu9N6YW.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-yaCumC4j.js → SavedBlocksPickBar-DiMW_dbJ.js} +4 -4
- package/dist/cdn/chunks/{SavedBlocksPickBar-yaCumC4j.js.map → SavedBlocksPickBar-DiMW_dbJ.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-SaV2UVh_.js → TemplateSettings-JMUo0LIV.js} +10 -10
- package/dist/cdn/chunks/{TemplateSettings-SaV2UVh_.js.map → TemplateSettings-JMUo0LIV.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-ByfhP_sm.js → TestEmailModal-D52VtwBZ.js} +12 -12
- package/dist/cdn/chunks/{TestEmailModal-ByfhP_sm.js.map → TestEmailModal-D52VtwBZ.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-CfzpqpDs.js → TestEmailPanel-D9ezVDHd.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-CfzpqpDs.js.map → TestEmailPanel-D9ezVDHd.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Ceb0YfWv.js → TitleEditor-D04vvbUc.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-Ceb0YfWv.js.map → TitleEditor-D04vvbUc.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-Cv6Rv1S-.js → Toolbar-C_Hfsher.js} +1196 -914
- package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DGpGdwgf.js → TplModal-d6fEZGJ5.js} +5 -5
- package/dist/cdn/chunks/{TplModal-DGpGdwgf.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-BJnHCMAH.js → VersionHistoryPanels-BAdzmhvH.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-BJnHCMAH.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-DOuIxWRv.js → ca-BJn8lcJx.js} +19 -2
- package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
- package/dist/cdn/chunks/{composables-BxikPuC1.js → composables-CsfQlmcf.js} +676 -620
- package/dist/cdn/chunks/composables-CsfQlmcf.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D2DUaudp.js → createCloudRuntime-PpIFCDfj.js} +4 -4
- package/dist/cdn/chunks/{createCloudRuntime-D2DUaudp.js.map → createCloudRuntime-PpIFCDfj.js.map} +1 -1
- package/dist/{de-DaOUfYBX.js → cdn/chunks/de-BLFp3nWx.js} +20 -1
- 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-C0pHHMiR.js → en-DGGQJGbm.js} +19 -2
- package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
- package/dist/{es-CxyEKr6n.js → cdn/chunks/es-DTY9qgLv.js} +20 -1
- package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
- package/dist/cdn/chunks/{extensions-DuDWpKo7.js → extensions-BM6ZSnsQ.js} +82 -76
- package/dist/cdn/chunks/extensions-BM6ZSnsQ.js.map +1 -0
- package/dist/{fr-CYbamiI6.js → cdn/chunks/fr-L4FqO9Gp.js} +20 -1
- package/dist/cdn/chunks/fr-L4FqO9Gp.js.map +1 -0
- 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-DfaIAoGI.js → ja-6uOXkh4v.js} +19 -2
- 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/cdn/chunks/{nl-DkrB-VKZ.js → nl-DCxuxwNq.js} +19 -2
- package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js +300 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-C9oavydG.js → preRenderCustomBlocks-Dn6dFUwx.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-C9oavydG.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CY5Ye7eP.js → pt-BR-CBkcrebr.js} +19 -2
- package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-DfXoetOm.js → sanitizeHtml-DJI7vvET.js} +3 -3
- package/dist/cdn/chunks/{sanitizeHtml-DfXoetOm.js.map → sanitizeHtml-DJI7vvET.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-DPwkrn5v.js → socialIcons-Qw9rHc8C.js} +420 -406
- package/dist/cdn/chunks/{socialIcons-DPwkrn5v.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-712f3ofG.js → src-C9JWWxAk.js} +683 -568
- package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
- package/dist/cdn/chunks/{src-ZFw5fg_z.js → src-mXG-Of9A.js} +892 -735
- 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-Bgg4qpev.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-DiNjT22M.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-SvMW4g00.js → useLogicTag-DLvWzWsp.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-SvMW4g00.js.map → useLogicTag-DLvWzWsp.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-JLz3Pqcw.js → useMergeTag-B4FHCGGm.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-JLz3Pqcw.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-BcoPpkDS.js → withCurrentFont-QqBilClC.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-BcoPpkDS.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +761 -764
- 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-BbPFRlBf.js → composables-CRX6rncm.js} +1044 -988
- package/dist/{createCloudRuntime-Dlrg88gS.js → createCloudRuntime-DplyIlsy.js} +3 -3
- package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
- package/dist/{cdn/chunks/de-DaOUfYBX.js → de-BLFp3nWx.js} +18 -3
- package/dist/{dist-C34cYI5S.js → dist-BMUUt3zJ.js} +964 -807
- package/dist/{editor-modal-BeX6otLk.js → editor-modal-D9HT9bD6.js} +15 -15
- package/dist/{en-C0pHHMiR.js → en-DGGQJGbm.js} +18 -1
- package/dist/en-De3uAutQ.js +1 -0
- package/dist/{cdn/chunks/es-CxyEKr6n.js → es-DTY9qgLv.js} +18 -3
- package/dist/{extensions-xCiyqSg7.js → extensions-Cm6K4SRX.js} +344 -338
- package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
- package/dist/{cdn/chunks/fr-CYbamiI6.js → fr-L4FqO9Gp.js} +18 -3
- package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
- package/dist/index.d.ts +74 -13
- package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
- package/dist/{ja-DfaIAoGI.js → ja-6uOXkh4v.js} +18 -1
- 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/{nl-DkrB-VKZ.js → nl-DCxuxwNq.js} +18 -1
- package/dist/normalizeMergeTagMarkup-Da9JAgx7.js +298 -0
- 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-DvbRa3L3.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
- package/dist/{pt-BR-CY5Ye7eP.js → pt-BR-CBkcrebr.js} +18 -1
- 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-D_ab7dD6.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-DhAolBjt.js → socialIcons-CJD6OsI7.js} +283 -269
- 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-BmuakZBd.js → useLogicTag-DLkYos2Q.js} +3 -3
- package/dist/{useMergeTag-DC4a8b_v.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-BSxJai99.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-DtOo5y3U.js +0 -140
- package/dist/WrapperBlock-BUzQTZuu.js +0 -44
- package/dist/cdn/chunks/BlockPreviewCanvas-B6ndvof2.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-PDKuo2J3.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-Cv6Rv1S-.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-C_uE5rPJ.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-C_uE5rPJ.js.map +0 -1
- package/dist/cdn/chunks/ca-DOuIxWRv.js.map +0 -1
- package/dist/cdn/chunks/composables-BxikPuC1.js.map +0 -1
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +0 -1
- package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +0 -1
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +0 -1
- package/dist/cdn/chunks/extensions-DuDWpKo7.js.map +0 -1
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +0 -1
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +0 -1
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-Bn_hl4jd.js +0 -290
- package/dist/cdn/chunks/normalizeMergeTagMarkup-Bn_hl4jd.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +0 -1
- package/dist/cdn/chunks/src-712f3ofG.js.map +0 -1
- package/dist/cdn/chunks/src-B2tQbzf6.js +0 -677
- package/dist/cdn/chunks/src-B2tQbzf6.js.map +0 -1
- package/dist/cdn/chunks/src-ZFw5fg_z.js.map +0 -1
- package/dist/cdn/chunks/useLocalizedDisplay-DiNjT22M.js +0 -33
- package/dist/en-Do0SU6tR.js +0 -1
- package/dist/normalizeMergeTagMarkup-C7FGNURu.js +0 -288
- package/dist/useLocalizedDisplay-C9MBFUr4.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
|
|
18
|
-
import { t as
|
|
19
|
-
import { n as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { B as
|
|
23
|
-
import { t as
|
|
24
|
-
import { n as
|
|
25
|
-
import { t as
|
|
26
|
-
import { S as
|
|
27
|
-
import { _ as
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { t as
|
|
33
|
-
|
|
2
|
+
import { B as t, F as n, Ft as r, L as i, M as a, Mt as o, P as s, Pt as c, Q as l, U as u, W as d, Z as f, _ as p, c as m, ct as h, d as g, et as _, f as v, g as y, l as b, m as x, r as S, rt as C, u as w, v as T, w as E, y as D } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
3
|
+
import { a as O, o as k } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
4
|
+
import { 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";
|
|
31
|
+
import { t as X } from "./ToggleSwitch-R3wCCYE6.js";
|
|
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 dt = Se({
|
|
|
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 dt = Se({
|
|
|
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 dt = Se({
|
|
|
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 dt = Se({
|
|
|
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,22 +178,22 @@ var dt = Se({
|
|
|
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
|
-
class: o(h(
|
|
184
|
+
class: o(h(K)),
|
|
184
185
|
value: e.modelValue,
|
|
185
186
|
min: e.min,
|
|
186
187
|
max: e.max,
|
|
187
188
|
onInput: i
|
|
188
|
-
}, null, 42,
|
|
189
|
+
}, null, 42, 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 dt = Se({
|
|
|
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: {},
|
|
@@ -233,7 +234,7 @@ var dt = Se({
|
|
|
233
234
|
},
|
|
234
235
|
emits: ["update:modelValue"],
|
|
235
236
|
setup(e, { emit: n }) {
|
|
236
|
-
let i = e, s = n, { t: c } =
|
|
237
|
+
let i = e, s = n, { t: c } = W(), l = {
|
|
237
238
|
width: 0,
|
|
238
239
|
style: "solid",
|
|
239
240
|
color: "#000000"
|
|
@@ -243,35 +244,35 @@ var dt = Se({
|
|
|
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 dt = Se({
|
|
|
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 dt = Se({
|
|
|
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 dt = Se({
|
|
|
334
335
|
label: h(c).divider.dotted
|
|
335
336
|
}
|
|
336
337
|
],
|
|
337
|
-
"model-value":
|
|
338
|
+
"model-value": C.value.style,
|
|
338
339
|
"onUpdate:modelValue": n[1] ||= (e) => O({ style: e })
|
|
339
|
-
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: o(h(
|
|
340
|
-
"model-value":
|
|
340
|
+
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: o(h(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: {},
|
|
@@ -358,7 +359,7 @@ var dt = Se({
|
|
|
358
359
|
},
|
|
359
360
|
emits: ["update:modelValue"],
|
|
360
361
|
setup(e, { emit: n }) {
|
|
361
|
-
let i = e, o = n, { t: c } =
|
|
362
|
+
let i = e, o = n, { t: c } = W(), l = {
|
|
362
363
|
topLeft: "cornerTopLeft",
|
|
363
364
|
topRight: "cornerTopRight",
|
|
364
365
|
bottomRight: "cornerBottomRight",
|
|
@@ -376,14 +377,14 @@ var dt = Se({
|
|
|
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 dt = Se({
|
|
|
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 dt = Se({
|
|
|
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 dt = Se({
|
|
|
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: {},
|
|
@@ -450,61 +451,64 @@ var dt = Se({
|
|
|
450
451
|
},
|
|
451
452
|
emits: ["update"],
|
|
452
453
|
setup(e, { emit: t }) {
|
|
453
|
-
let n = e, i = t, { t: c } =
|
|
454
|
+
let n = e, i = t, { t: c } = W(), l = m(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
454
455
|
function d(e, t) {
|
|
455
456
|
i("update", { [e]: t });
|
|
456
457
|
}
|
|
457
458
|
function f(e) {
|
|
458
|
-
e === "full" ? d("width", "full") : e === "custom" ? d("width", typeof n.block.width == "number" ? n.block.width :
|
|
459
|
+
e === "full" ? d("width", "full") : e === "custom" ? d("width", typeof n.block.width == "number" ? n.block.width : Ut) : d("width", void 0);
|
|
459
460
|
}
|
|
460
461
|
function _(e) {
|
|
462
|
+
d("fontWeight", e === "bold" ? void 0 : e);
|
|
463
|
+
}
|
|
464
|
+
function y(e) {
|
|
461
465
|
let t = Number(e);
|
|
462
466
|
!Number.isFinite(t) || t <= 0 || d("width", t);
|
|
463
467
|
}
|
|
464
468
|
return (t, n) => (a(), v(S, null, [
|
|
465
|
-
p(
|
|
469
|
+
p(Y, {
|
|
466
470
|
label: h(c).button.fontFamily,
|
|
467
471
|
class: "tpl:mb-3.5",
|
|
468
472
|
path: "fontFamily"
|
|
469
473
|
}, {
|
|
470
474
|
default: u(() => [b("select", {
|
|
471
|
-
class: o(h(
|
|
472
|
-
value: h(
|
|
475
|
+
class: o(h(q)),
|
|
476
|
+
value: h(mt)(e.block.fontFamily),
|
|
473
477
|
onChange: n[0] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
474
|
-
}, [b("option",
|
|
478
|
+
}, [b("option", Nt, r(h(c).button.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
475
479
|
key: e.value,
|
|
476
480
|
value: e.value
|
|
477
|
-
}, r(e.label), 9,
|
|
481
|
+
}, r(e.label), 9, Pt))), 128))], 42, Mt)]),
|
|
478
482
|
_: 1
|
|
479
483
|
}, 8, ["label"]),
|
|
480
|
-
p(
|
|
484
|
+
p(Y, {
|
|
481
485
|
label: h(c).button.text,
|
|
482
486
|
class: "tpl:mb-3.5",
|
|
483
487
|
path: "text"
|
|
484
488
|
}, {
|
|
485
|
-
default: u(() => [p(
|
|
489
|
+
default: u(() => [p(Z, {
|
|
486
490
|
"model-value": e.block.text,
|
|
487
491
|
type: "text",
|
|
488
492
|
"onUpdate:modelValue": n[1] ||= (e) => d("text", e)
|
|
489
493
|
}, null, 8, ["model-value"])]),
|
|
490
494
|
_: 1
|
|
491
495
|
}, 8, ["label"]),
|
|
492
|
-
p(
|
|
496
|
+
p(Y, {
|
|
493
497
|
label: h(c).button.url,
|
|
494
498
|
class: "tpl:mb-3.5",
|
|
495
499
|
path: "url"
|
|
496
500
|
}, {
|
|
497
|
-
default: u(() => [p(
|
|
501
|
+
default: u(() => [p(Z, {
|
|
498
502
|
"model-value": e.block.url,
|
|
499
503
|
type: "url",
|
|
500
504
|
placeholder: h(c).button.urlPlaceholder,
|
|
501
505
|
"onUpdate:modelValue": n[2] ||= (e) => d("url", e)
|
|
502
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(),
|
|
506
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(), w(Y, {
|
|
503
507
|
key: 0,
|
|
504
508
|
path: "openInNewTab",
|
|
505
509
|
label: h(c).button.openInNewTab
|
|
506
510
|
}, {
|
|
507
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
511
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
508
512
|
"control-id": t,
|
|
509
513
|
"hide-label": "",
|
|
510
514
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -520,36 +524,36 @@ var dt = Se({
|
|
|
520
524
|
}, 8, ["label"])) : g("", !0)]),
|
|
521
525
|
_: 1
|
|
522
526
|
}, 8, ["label"]),
|
|
523
|
-
p(
|
|
527
|
+
p(Y, {
|
|
524
528
|
label: h(c).button.background,
|
|
525
529
|
class: "tpl:mb-3.5",
|
|
526
530
|
path: "backgroundColor"
|
|
527
531
|
}, {
|
|
528
|
-
default: u(() => [p(
|
|
532
|
+
default: u(() => [p(H, {
|
|
529
533
|
"model-value": e.block.backgroundColor,
|
|
530
534
|
"allow-transparent": "",
|
|
531
535
|
"onUpdate:modelValue": n[4] ||= (e) => d("backgroundColor", e)
|
|
532
536
|
}, null, 8, ["model-value"])]),
|
|
533
537
|
_: 1
|
|
534
538
|
}, 8, ["label"]),
|
|
535
|
-
p(
|
|
539
|
+
p(Y, {
|
|
536
540
|
label: h(c).button.textColor,
|
|
537
541
|
class: "tpl:mb-3.5",
|
|
538
542
|
path: "textColor"
|
|
539
543
|
}, {
|
|
540
|
-
default: u(() => [p(
|
|
544
|
+
default: u(() => [p(H, {
|
|
541
545
|
"model-value": e.block.textColor,
|
|
542
546
|
"onUpdate:modelValue": n[5] ||= (e) => d("textColor", e)
|
|
543
547
|
}, null, 8, ["model-value"])]),
|
|
544
548
|
_: 1
|
|
545
549
|
}, 8, ["label"]),
|
|
546
|
-
p(
|
|
550
|
+
p(Ot, {
|
|
547
551
|
path: "border",
|
|
548
552
|
"model-value": e.block.border,
|
|
549
553
|
"testid-prefix": "button",
|
|
550
554
|
"onUpdate:modelValue": n[6] ||= (e) => d("border", e)
|
|
551
555
|
}, null, 8, ["model-value"]),
|
|
552
|
-
p(
|
|
556
|
+
p(jt, {
|
|
553
557
|
path: "borderRadius",
|
|
554
558
|
"model-value": e.block.borderRadius,
|
|
555
559
|
label: h(c).button.borderRadius,
|
|
@@ -557,49 +561,74 @@ var dt = Se({
|
|
|
557
561
|
"testid-prefix": "button",
|
|
558
562
|
"onUpdate:modelValue": n[7] ||= (e) => d("borderRadius", e)
|
|
559
563
|
}, null, 8, ["model-value", "label"]),
|
|
560
|
-
p(
|
|
564
|
+
p(Y, {
|
|
561
565
|
label: h(c).button.fontSize,
|
|
562
566
|
class: "tpl:mb-3.5",
|
|
563
567
|
path: "fontSize"
|
|
564
568
|
}, {
|
|
565
|
-
default: u(() => [b("div",
|
|
569
|
+
default: u(() => [b("div", Ft, [b("input", {
|
|
566
570
|
type: "number",
|
|
567
|
-
class: o(h(
|
|
571
|
+
class: o(h(K)),
|
|
568
572
|
value: e.block.fontSize,
|
|
569
573
|
min: "10",
|
|
570
574
|
max: "36",
|
|
571
575
|
onInput: n[8] ||= (e) => d("fontSize", Number(e.target.value))
|
|
572
|
-
}, null, 42,
|
|
576
|
+
}, null, 42, It), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
577
|
+
_: 1
|
|
578
|
+
}, 8, ["label"]),
|
|
579
|
+
p(Y, {
|
|
580
|
+
label: h(c).button.fontWeight,
|
|
581
|
+
class: "tpl:mb-3.5",
|
|
582
|
+
path: "fontWeight"
|
|
583
|
+
}, {
|
|
584
|
+
default: u(() => [p(Q, {
|
|
585
|
+
options: [
|
|
586
|
+
{
|
|
587
|
+
value: "regular",
|
|
588
|
+
label: h(c).button.fontWeightRegular
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
value: "medium",
|
|
592
|
+
label: h(c).button.fontWeightMedium
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
value: "bold",
|
|
596
|
+
label: h(c).button.fontWeightBold
|
|
597
|
+
}
|
|
598
|
+
],
|
|
599
|
+
"model-value": e.block.fontWeight ?? "bold",
|
|
600
|
+
"onUpdate:modelValue": _
|
|
601
|
+
}, null, 8, ["options", "model-value"])]),
|
|
573
602
|
_: 1
|
|
574
603
|
}, 8, ["label"]),
|
|
575
|
-
p(
|
|
604
|
+
p(Y, {
|
|
576
605
|
label: h(c).button.width,
|
|
577
606
|
class: "tpl:mb-3.5",
|
|
578
607
|
path: "width"
|
|
579
608
|
}, {
|
|
580
609
|
default: u(() => [b("select", {
|
|
581
|
-
class: o(h(
|
|
610
|
+
class: o(h(q)),
|
|
582
611
|
value: l.value,
|
|
583
612
|
onChange: n[9] ||= (e) => f(e.target.value)
|
|
584
613
|
}, [
|
|
585
|
-
b("option",
|
|
586
|
-
b("option",
|
|
587
|
-
b("option",
|
|
588
|
-
], 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", {
|
|
589
618
|
type: "number",
|
|
590
|
-
class: o(h(
|
|
591
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
619
|
+
class: o(h(K)),
|
|
620
|
+
value: typeof e.block.width == "number" ? e.block.width : Ut,
|
|
592
621
|
min: "20",
|
|
593
|
-
onInput: n[10] ||= (e) =>
|
|
594
|
-
}, null, 42,
|
|
622
|
+
onInput: n[10] ||= (e) => y(e.target.value)
|
|
623
|
+
}, null, 42, Ht), b("span", { class: o(h(G)) }, "px", 2)])) : g("", !0)]),
|
|
595
624
|
_: 1
|
|
596
625
|
}, 8, ["label"]),
|
|
597
|
-
p(
|
|
626
|
+
p(Y, {
|
|
598
627
|
label: h(c).title.align,
|
|
599
628
|
class: "tpl:mb-3.5",
|
|
600
629
|
path: "align"
|
|
601
630
|
}, {
|
|
602
|
-
default: u(() => [p(
|
|
631
|
+
default: u(() => [p(Q, {
|
|
603
632
|
options: [
|
|
604
633
|
{
|
|
605
634
|
value: "left",
|
|
@@ -621,7 +650,7 @@ var dt = Se({
|
|
|
621
650
|
}, 8, ["label"])
|
|
622
651
|
], 64));
|
|
623
652
|
}
|
|
624
|
-
}),
|
|
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({
|
|
625
654
|
__name: "SpacingControl",
|
|
626
655
|
props: {
|
|
627
656
|
path: {},
|
|
@@ -630,7 +659,7 @@ var dt = Se({
|
|
|
630
659
|
},
|
|
631
660
|
emits: ["update:modelValue"],
|
|
632
661
|
setup(e, { emit: n }) {
|
|
633
|
-
let r = e, i = n, { t: s } =
|
|
662
|
+
let r = e, i = n, { t: s } = W(), c = m(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), l = _(c.value);
|
|
634
663
|
t(c, (e) => {
|
|
635
664
|
!e && l.value && (l.value = !1);
|
|
636
665
|
});
|
|
@@ -669,131 +698,131 @@ var dt = Se({
|
|
|
669
698
|
});
|
|
670
699
|
}
|
|
671
700
|
}
|
|
672
|
-
return (t, n) => (a(),
|
|
701
|
+
return (t, n) => (a(), w(Y, {
|
|
673
702
|
class: "spacing-control",
|
|
674
703
|
path: e.path,
|
|
675
704
|
label: e.label
|
|
676
705
|
}, {
|
|
677
|
-
default: u(() => [b("div",
|
|
678
|
-
b("div",
|
|
706
|
+
default: u(() => [b("div", Gt, [
|
|
707
|
+
b("div", Kt, [
|
|
679
708
|
b("button", {
|
|
680
709
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
681
710
|
class: o([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
682
711
|
onClick: n[0] ||= (e) => d("top", -1)
|
|
683
|
-
}, [p(h(
|
|
712
|
+
}, [p(h(Ee), {
|
|
684
713
|
size: 12,
|
|
685
714
|
"stroke-width": 2
|
|
686
|
-
})], 10,
|
|
715
|
+
})], 10, qt),
|
|
687
716
|
b("input", {
|
|
688
717
|
type: "number",
|
|
689
|
-
class: o(
|
|
718
|
+
class: o(dn),
|
|
690
719
|
value: e.modelValue.top,
|
|
691
720
|
"aria-label": h(s).spacingControl.top,
|
|
692
721
|
min: "0",
|
|
693
722
|
onInput: n[1] ||= (e) => f("top", Number(e.target.value))
|
|
694
|
-
}, null, 40,
|
|
723
|
+
}, null, 40, Jt),
|
|
695
724
|
b("button", {
|
|
696
725
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
697
726
|
class: o([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
698
727
|
onClick: n[2] ||= (e) => d("top", 1)
|
|
699
|
-
}, [p(h(
|
|
728
|
+
}, [p(h(U), {
|
|
700
729
|
size: 12,
|
|
701
730
|
"stroke-width": 2
|
|
702
|
-
})], 10,
|
|
731
|
+
})], 10, Yt)
|
|
703
732
|
]),
|
|
704
|
-
b("div",
|
|
705
|
-
b("div",
|
|
733
|
+
b("div", Xt, [
|
|
734
|
+
b("div", Zt, [
|
|
706
735
|
b("button", {
|
|
707
736
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
708
737
|
class: o([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
709
738
|
onClick: n[3] ||= (e) => d("left", -1)
|
|
710
|
-
}, [p(h(
|
|
739
|
+
}, [p(h(Ee), {
|
|
711
740
|
size: 12,
|
|
712
741
|
"stroke-width": 2
|
|
713
|
-
})], 10,
|
|
742
|
+
})], 10, Qt),
|
|
714
743
|
b("input", {
|
|
715
744
|
type: "number",
|
|
716
|
-
class: o(
|
|
745
|
+
class: o(dn),
|
|
717
746
|
value: e.modelValue.left,
|
|
718
747
|
"aria-label": h(s).spacingControl.left,
|
|
719
748
|
min: "0",
|
|
720
749
|
onInput: n[4] ||= (e) => f("left", Number(e.target.value))
|
|
721
|
-
}, null, 40,
|
|
750
|
+
}, null, 40, $t),
|
|
722
751
|
b("button", {
|
|
723
752
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
724
753
|
class: o([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
725
754
|
onClick: n[5] ||= (e) => d("left", 1)
|
|
726
|
-
}, [p(h(
|
|
755
|
+
}, [p(h(U), {
|
|
727
756
|
size: 12,
|
|
728
757
|
"stroke-width": 2
|
|
729
|
-
})], 10,
|
|
758
|
+
})], 10, en)
|
|
730
759
|
]),
|
|
731
760
|
b("button", {
|
|
732
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)]"]),
|
|
733
762
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
734
763
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
735
764
|
onClick: g
|
|
736
|
-
}, [l.value ? (a(),
|
|
765
|
+
}, [l.value ? (a(), w(h(gt), {
|
|
737
766
|
key: 0,
|
|
738
767
|
size: 14,
|
|
739
768
|
"stroke-width": 2
|
|
740
|
-
})) : (a(),
|
|
769
|
+
})) : (a(), w(h(ht), {
|
|
741
770
|
key: 1,
|
|
742
771
|
size: 14,
|
|
743
772
|
"stroke-width": 2
|
|
744
|
-
}))], 10,
|
|
745
|
-
b("div",
|
|
773
|
+
}))], 10, tn),
|
|
774
|
+
b("div", nn, [
|
|
746
775
|
b("button", {
|
|
747
776
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
748
777
|
class: o([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
749
778
|
onClick: n[6] ||= (e) => d("right", -1)
|
|
750
|
-
}, [p(h(
|
|
779
|
+
}, [p(h(Ee), {
|
|
751
780
|
size: 12,
|
|
752
781
|
"stroke-width": 2
|
|
753
|
-
})], 10,
|
|
782
|
+
})], 10, rn),
|
|
754
783
|
b("input", {
|
|
755
784
|
type: "number",
|
|
756
|
-
class: o(
|
|
785
|
+
class: o(dn),
|
|
757
786
|
value: e.modelValue.right,
|
|
758
787
|
"aria-label": h(s).spacingControl.right,
|
|
759
788
|
min: "0",
|
|
760
789
|
onInput: n[7] ||= (e) => f("right", Number(e.target.value))
|
|
761
|
-
}, null, 40,
|
|
790
|
+
}, null, 40, an),
|
|
762
791
|
b("button", {
|
|
763
792
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
764
793
|
class: o([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
765
794
|
onClick: n[8] ||= (e) => d("right", 1)
|
|
766
|
-
}, [p(h(
|
|
795
|
+
}, [p(h(U), {
|
|
767
796
|
size: 12,
|
|
768
797
|
"stroke-width": 2
|
|
769
|
-
})], 10,
|
|
798
|
+
})], 10, on)
|
|
770
799
|
])
|
|
771
800
|
]),
|
|
772
|
-
b("div",
|
|
801
|
+
b("div", sn, [
|
|
773
802
|
b("button", {
|
|
774
803
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
775
804
|
class: o([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
776
805
|
onClick: n[9] ||= (e) => d("bottom", -1)
|
|
777
|
-
}, [p(h(
|
|
806
|
+
}, [p(h(Ee), {
|
|
778
807
|
size: 12,
|
|
779
808
|
"stroke-width": 2
|
|
780
|
-
})], 10,
|
|
809
|
+
})], 10, cn),
|
|
781
810
|
b("input", {
|
|
782
811
|
type: "number",
|
|
783
|
-
class: o(
|
|
812
|
+
class: o(dn),
|
|
784
813
|
value: e.modelValue.bottom,
|
|
785
814
|
"aria-label": h(s).spacingControl.bottom,
|
|
786
815
|
min: "0",
|
|
787
816
|
onInput: n[10] ||= (e) => f("bottom", Number(e.target.value))
|
|
788
|
-
}, null, 40,
|
|
817
|
+
}, null, 40, ln),
|
|
789
818
|
b("button", {
|
|
790
819
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
791
820
|
class: o([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
792
821
|
onClick: n[11] ||= (e) => d("bottom", 1)
|
|
793
|
-
}, [p(h(
|
|
822
|
+
}, [p(h(U), {
|
|
794
823
|
size: 12,
|
|
795
824
|
"stroke-width": 2
|
|
796
|
-
})], 10,
|
|
825
|
+
})], 10, un)
|
|
797
826
|
])
|
|
798
827
|
])]),
|
|
799
828
|
_: 1
|
|
@@ -801,19 +830,19 @@ var dt = Se({
|
|
|
801
830
|
}
|
|
802
831
|
}), [["__scopeId", "data-v-94c2e6ff"]]);
|
|
803
832
|
// src/composables/useNaturalImageSize.ts
|
|
804
|
-
function
|
|
833
|
+
function pn(e) {
|
|
805
834
|
let n = _(null), r = () => {};
|
|
806
835
|
return t(e, (e) => {
|
|
807
|
-
r(), n.value = null, e && (r =
|
|
836
|
+
r(), n.value = null, e && (r = ye(e, (e) => {
|
|
808
837
|
n.value = e;
|
|
809
838
|
}));
|
|
810
839
|
}, { immediate: !0 }), n;
|
|
811
840
|
}
|
|
812
|
-
function
|
|
813
|
-
let e =
|
|
814
|
-
return async (t) =>
|
|
841
|
+
function mn() {
|
|
842
|
+
let e = E(Ve, null);
|
|
843
|
+
return async (t) => z(e ? await hn(e, t) : t);
|
|
815
844
|
}
|
|
816
|
-
function
|
|
845
|
+
function hn(e, n) {
|
|
817
846
|
let r = (e) => typeof e == "string" && e.length > 0 ? e : n;
|
|
818
847
|
e.lookup(n);
|
|
819
848
|
let i = e.get(n);
|
|
@@ -824,13 +853,13 @@ function un(e, n) {
|
|
|
824
853
|
}) : Promise.resolve(r(i));
|
|
825
854
|
}
|
|
826
855
|
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
827
|
-
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 = [
|
|
828
857
|
"aria-label",
|
|
829
858
|
"title",
|
|
830
859
|
"aria-pressed",
|
|
831
860
|
"data-testid",
|
|
832
861
|
"onClick"
|
|
833
|
-
],
|
|
862
|
+
], Sn = ["data-testid"], Cn = /* @__PURE__ */ D({
|
|
834
863
|
__name: "BackgroundImageControl",
|
|
835
864
|
props: {
|
|
836
865
|
hideLabel: { type: Boolean },
|
|
@@ -841,28 +870,28 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
841
870
|
},
|
|
842
871
|
emits: ["update:modelValue"],
|
|
843
872
|
setup(e, { emit: t }) {
|
|
844
|
-
let n = e, i = t, { t: c } =
|
|
845
|
-
f(() => clearTimeout(
|
|
846
|
-
function
|
|
847
|
-
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 () => {
|
|
848
877
|
let t = await x(e), r = n.modelValue;
|
|
849
878
|
t && r?.url === e && i("update:modelValue", {
|
|
850
879
|
...r,
|
|
851
|
-
...
|
|
880
|
+
...F(t)
|
|
852
881
|
});
|
|
853
882
|
}, 300));
|
|
854
883
|
}
|
|
855
884
|
function D(e, t = null) {
|
|
856
|
-
if (clearTimeout(
|
|
885
|
+
if (clearTimeout(C), e.trim() === "") {
|
|
857
886
|
i("update:modelValue", void 0);
|
|
858
887
|
return;
|
|
859
888
|
}
|
|
860
|
-
let { naturalWidth: r, naturalHeight: a, ...o } = n.modelValue ??
|
|
889
|
+
let { naturalWidth: r, naturalHeight: a, ...o } = n.modelValue ?? A(e), s = n.measure ? t : null;
|
|
861
890
|
i("update:modelValue", {
|
|
862
891
|
...o,
|
|
863
892
|
url: e,
|
|
864
|
-
...s ?
|
|
865
|
-
}), s ||
|
|
893
|
+
...s ? F(s) : {}
|
|
894
|
+
}), s || T(e);
|
|
866
895
|
}
|
|
867
896
|
function O(e) {
|
|
868
897
|
n.modelValue && i("update:modelValue", {
|
|
@@ -870,7 +899,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
870
899
|
...e
|
|
871
900
|
});
|
|
872
901
|
}
|
|
873
|
-
let
|
|
902
|
+
let k = m(() => [
|
|
874
903
|
{
|
|
875
904
|
value: "cover",
|
|
876
905
|
label: c.blockSettings.backgroundSizeCover
|
|
@@ -883,7 +912,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
883
912
|
value: "auto",
|
|
884
913
|
label: c.blockSettings.backgroundSizeAuto
|
|
885
914
|
}
|
|
886
|
-
]),
|
|
915
|
+
]), ee = m(() => ({
|
|
887
916
|
"top-left": c.blockSettings.backgroundPositionTopLeft,
|
|
888
917
|
"top-center": c.blockSettings.backgroundPositionTopCenter,
|
|
889
918
|
"top-right": c.blockSettings.backgroundPositionTopRight,
|
|
@@ -893,39 +922,39 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
893
922
|
"bottom-left": c.blockSettings.backgroundPositionBottomLeft,
|
|
894
923
|
"bottom-center": c.blockSettings.backgroundPositionBottomCenter,
|
|
895
924
|
"bottom-right": c.blockSettings.backgroundPositionBottomRight
|
|
896
|
-
})),
|
|
925
|
+
})), te = m(() => se.flatMap((e) => de.map((t) => ({
|
|
897
926
|
x: t,
|
|
898
927
|
y: e,
|
|
899
|
-
label:
|
|
928
|
+
label: ee.value[`${e}-${t}`]
|
|
900
929
|
}))));
|
|
901
|
-
function
|
|
930
|
+
function j(e) {
|
|
902
931
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
903
932
|
}
|
|
904
|
-
let
|
|
905
|
-
target:
|
|
906
|
-
blocked: () =>
|
|
907
|
-
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))
|
|
908
937
|
});
|
|
909
|
-
return (t, n) => (a(), v("div",
|
|
938
|
+
return (t, n) => (a(), v("div", gn, [b("div", null, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
910
939
|
key: 0,
|
|
911
|
-
class: o(h(
|
|
940
|
+
class: o(h(J))
|
|
912
941
|
}, r(h(c).blockSettings.backgroundImage), 3)), b("div", {
|
|
913
942
|
ref_key: "dropZoneRef",
|
|
914
|
-
ref:
|
|
943
|
+
ref: M,
|
|
915
944
|
class: "tpl:relative",
|
|
916
945
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
917
946
|
}, [
|
|
918
|
-
h(
|
|
947
|
+
h(ie) ? (a(), w(_e, {
|
|
919
948
|
key: 0,
|
|
920
|
-
uploading: h(
|
|
949
|
+
uploading: h(N)
|
|
921
950
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
922
|
-
p(
|
|
951
|
+
p(Z, {
|
|
923
952
|
"model-value": u.value,
|
|
924
953
|
type: "url",
|
|
925
954
|
placeholder: h(c).blockSettings.backgroundImagePlaceholder,
|
|
926
955
|
"onUpdate:modelValue": D
|
|
927
956
|
}, null, 8, ["model-value", "placeholder"]),
|
|
928
|
-
h(
|
|
957
|
+
h(re) ? (a(), v("button", {
|
|
929
958
|
key: 1,
|
|
930
959
|
type: "button",
|
|
931
960
|
"data-testid": `${e.testidPrefix}-bg-browse`,
|
|
@@ -935,50 +964,50 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
935
964
|
color: "var(--tpl-primary)",
|
|
936
965
|
"background-color": "var(--tpl-bg)"
|
|
937
966
|
},
|
|
938
|
-
onClick: n[0] ||= (...e) => h(
|
|
939
|
-
}, [p(h(
|
|
967
|
+
onClick: n[0] ||= (...e) => h(oe) && h(oe)(...e)
|
|
968
|
+
}, [p(h(ke), {
|
|
940
969
|
size: 14,
|
|
941
970
|
"stroke-width": 1.5
|
|
942
|
-
}), y(" " + r(h(c).image.browseMedia), 1)], 8,
|
|
943
|
-
], 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 }, [
|
|
944
973
|
e.heroMode ? g("", !0) : (a(), v("div", {
|
|
945
974
|
key: 0,
|
|
946
975
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
947
|
-
}, [b("label", { class: o(h(
|
|
948
|
-
options:
|
|
976
|
+
}, [b("label", { class: o(h(J)) }, r(h(c).blockSettings.backgroundSize), 3), p(Q, {
|
|
977
|
+
options: k.value,
|
|
949
978
|
"model-value": e.modelValue.size,
|
|
950
979
|
"onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
|
|
951
|
-
}, null, 8, ["options", "model-value"])], 8,
|
|
952
|
-
b("div", null, [b("label", { class: o(h(
|
|
980
|
+
}, null, 8, ["options", "model-value"])], 8, yn)),
|
|
981
|
+
b("div", null, [b("label", { class: o(h(J)) }, r(h(c).blockSettings.backgroundPosition), 3), b("div", {
|
|
953
982
|
role: "group",
|
|
954
983
|
"aria-label": h(c).blockSettings.backgroundPosition,
|
|
955
984
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
956
985
|
class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
|
|
957
|
-
}, [(a(!0), v(S, null, s(
|
|
986
|
+
}, [(a(!0), v(S, null, s(te.value, (t) => (a(), v("button", {
|
|
958
987
|
key: `${t.y}-${t.x}`,
|
|
959
988
|
type: "button",
|
|
960
989
|
"aria-label": t.label,
|
|
961
990
|
title: t.label,
|
|
962
|
-
"aria-pressed":
|
|
991
|
+
"aria-pressed": j(t),
|
|
963
992
|
"data-testid": `${e.testidPrefix}-bg-position-${t.y}-${t.x}`,
|
|
964
|
-
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)]"]),
|
|
965
994
|
onClick: (e) => O({ position: {
|
|
966
995
|
x: t.x,
|
|
967
996
|
y: t.y
|
|
968
997
|
} })
|
|
969
|
-
}, [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)]),
|
|
970
999
|
e.heroMode ? g("", !0) : (a(), v("div", {
|
|
971
1000
|
key: 1,
|
|
972
1001
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
973
|
-
}, [p(
|
|
1002
|
+
}, [p(X, {
|
|
974
1003
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
975
1004
|
"model-value": e.modelValue.repeat,
|
|
976
1005
|
label: h(c).blockSettings.backgroundRepeat,
|
|
977
1006
|
"onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
|
|
978
|
-
}, null, 8, ["model-value", "label"])], 8,
|
|
1007
|
+
}, null, 8, ["model-value", "label"])], 8, Sn))
|
|
979
1008
|
], 64)) : g("", !0)]));
|
|
980
1009
|
}
|
|
981
|
-
}),
|
|
1010
|
+
}), wn = ["data-testid"], Tn = ["data-testid"], En = /* @__PURE__ */ D({
|
|
982
1011
|
__name: "CollapsibleSection",
|
|
983
1012
|
props: {
|
|
984
1013
|
title: {},
|
|
@@ -993,30 +1022,33 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
993
1022
|
"data-testid": e.headerTestId,
|
|
994
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)]",
|
|
995
1024
|
onClick: i[0] ||= (e) => t.$emit("toggle")
|
|
996
|
-
}, [p(h(
|
|
1025
|
+
}, [p(h(we), {
|
|
997
1026
|
class: o(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
998
1027
|
size: 12,
|
|
999
1028
|
"stroke-width": 2
|
|
1000
|
-
}, 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));
|
|
1001
1033
|
}
|
|
1002
|
-
}),
|
|
1034
|
+
}), Dn = {
|
|
1003
1035
|
key: 0,
|
|
1004
1036
|
"data-testid": "section-hero-columns-note",
|
|
1005
1037
|
class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1006
|
-
},
|
|
1038
|
+
}, On = {
|
|
1007
1039
|
key: 1,
|
|
1008
1040
|
"data-testid": "section-hero",
|
|
1009
1041
|
class: "tpl:mt-3.5 tpl:space-y-3.5"
|
|
1010
|
-
},
|
|
1042
|
+
}, kn = { "data-testid": "section-hero-height" }, An = {
|
|
1011
1043
|
key: 0,
|
|
1012
1044
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1013
|
-
},
|
|
1045
|
+
}, jn = {
|
|
1014
1046
|
key: 1,
|
|
1015
1047
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1016
|
-
},
|
|
1048
|
+
}, Mn = {
|
|
1017
1049
|
key: 1,
|
|
1018
1050
|
"data-testid": "section-hero-align"
|
|
1019
|
-
},
|
|
1051
|
+
}, Nn = 300, Pn = /* @__PURE__ */ D({
|
|
1020
1052
|
__name: "HeroControl",
|
|
1021
1053
|
props: { section: {} },
|
|
1022
1054
|
emits: ["update"],
|
|
@@ -1024,7 +1056,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1024
1056
|
function n(e) {
|
|
1025
1057
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
1026
1058
|
}
|
|
1027
|
-
let i = e, s = t, { t: c } =
|
|
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(() => [
|
|
1028
1060
|
{
|
|
1029
1061
|
value: "fit",
|
|
1030
1062
|
label: c.blockSettings.heroHeightFit
|
|
@@ -1038,7 +1070,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1038
1070
|
value: "fixed",
|
|
1039
1071
|
label: c.blockSettings.heroHeightFixed
|
|
1040
1072
|
}
|
|
1041
|
-
]),
|
|
1073
|
+
]), k = m(() => [
|
|
1042
1074
|
{
|
|
1043
1075
|
value: "top",
|
|
1044
1076
|
label: c.blockSettings.heroAlignTop
|
|
@@ -1051,89 +1083,165 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1051
1083
|
value: "bottom",
|
|
1052
1084
|
label: c.blockSettings.heroAlignBottom
|
|
1053
1085
|
}
|
|
1054
|
-
]),
|
|
1055
|
-
function
|
|
1056
|
-
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);
|
|
1057
1089
|
}
|
|
1058
|
-
function
|
|
1090
|
+
function te(e) {
|
|
1059
1091
|
let t = S.value?.verticalAlign ?? "middle";
|
|
1060
1092
|
if (e === "image") {
|
|
1061
|
-
|
|
1093
|
+
T.value !== "image" && s("update", { hero: {
|
|
1062
1094
|
height: "image",
|
|
1063
1095
|
verticalAlign: t
|
|
1064
|
-
} }),
|
|
1096
|
+
} }), j();
|
|
1065
1097
|
return;
|
|
1066
1098
|
}
|
|
1067
|
-
if (e ===
|
|
1099
|
+
if (e === T.value) return;
|
|
1068
1100
|
if (e === "fit") {
|
|
1069
1101
|
s("update", { hero: void 0 });
|
|
1070
1102
|
return;
|
|
1071
1103
|
}
|
|
1072
|
-
let n =
|
|
1104
|
+
let n = re(i.section.backgroundImage), r = n === null ? Nn : Math.round(ee() * n);
|
|
1073
1105
|
s("update", { hero: {
|
|
1074
1106
|
height: r,
|
|
1075
1107
|
verticalAlign: t
|
|
1076
1108
|
} });
|
|
1077
1109
|
}
|
|
1078
|
-
async function
|
|
1110
|
+
async function j() {
|
|
1079
1111
|
let e = i.section.backgroundImage;
|
|
1080
|
-
if (!e || !y.value || x.value ||
|
|
1112
|
+
if (!e || !y.value || x.value || re(e) !== null) return;
|
|
1081
1113
|
let t = e.url, n = await f(t), r = i.section.backgroundImage;
|
|
1082
1114
|
n && r && r.url === t && s("update", { backgroundImage: {
|
|
1083
1115
|
...r,
|
|
1084
|
-
...
|
|
1116
|
+
...F(n)
|
|
1085
1117
|
} });
|
|
1086
1118
|
}
|
|
1087
|
-
function
|
|
1119
|
+
function M(e) {
|
|
1088
1120
|
!S.value || !Number.isFinite(e) || e < 1 || s("update", { hero: {
|
|
1089
1121
|
...S.value,
|
|
1090
1122
|
height: Math.round(e)
|
|
1091
1123
|
} });
|
|
1092
1124
|
}
|
|
1093
|
-
function
|
|
1125
|
+
function N(e) {
|
|
1094
1126
|
S.value && s("update", { hero: {
|
|
1095
1127
|
...S.value,
|
|
1096
1128
|
verticalAlign: e
|
|
1097
1129
|
} });
|
|
1098
1130
|
}
|
|
1099
|
-
return (e, t) => !
|
|
1100
|
-
b("div",
|
|
1101
|
-
b("label", { class: o(h(
|
|
1102
|
-
p(
|
|
1131
|
+
return (e, t) => !C.value && S.value ? (a(), v("p", Dn, r(h(c).section.heroNeedsOneColumn), 1)) : C.value && (y.value || S.value) ? (a(), v("div", On, [
|
|
1132
|
+
b("div", kn, [
|
|
1133
|
+
b("label", { class: o(h(J)) }, r(h(c).blockSettings.heroHeight), 3),
|
|
1134
|
+
p(Q, {
|
|
1103
1135
|
options: O.value,
|
|
1104
|
-
"model-value":
|
|
1105
|
-
"onUpdate:modelValue":
|
|
1136
|
+
"model-value": T.value,
|
|
1137
|
+
"onUpdate:modelValue": te
|
|
1106
1138
|
}, null, 8, ["options", "model-value"]),
|
|
1107
|
-
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)
|
|
1108
1140
|
]),
|
|
1109
|
-
|
|
1141
|
+
T.value === "fixed" ? (a(), w(St, {
|
|
1110
1142
|
key: 0,
|
|
1111
1143
|
"model-value": D.value,
|
|
1112
1144
|
min: 1,
|
|
1113
1145
|
suffix: "px",
|
|
1114
1146
|
testid: "section-hero-height-px",
|
|
1115
|
-
"onUpdate:modelValue":
|
|
1147
|
+
"onUpdate:modelValue": M
|
|
1116
1148
|
}, null, 8, ["model-value"])) : g("", !0),
|
|
1117
|
-
S.value ? (a(), v("div",
|
|
1118
|
-
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,
|
|
1119
1151
|
"model-value": S.value.verticalAlign,
|
|
1120
|
-
"onUpdate:modelValue":
|
|
1152
|
+
"onUpdate:modelValue": N
|
|
1121
1153
|
}, null, 8, ["options", "model-value"])])) : g("", !0)
|
|
1122
1154
|
])) : g("", !0);
|
|
1123
1155
|
}
|
|
1124
|
-
}),
|
|
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 = {
|
|
1125
1233
|
key: 0,
|
|
1126
1234
|
value: "__custom__"
|
|
1127
|
-
},
|
|
1235
|
+
}, sr = {
|
|
1128
1236
|
key: 0,
|
|
1129
1237
|
class: "tpl:space-y-2"
|
|
1130
|
-
},
|
|
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 = {
|
|
1131
1239
|
key: 0,
|
|
1132
1240
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1133
|
-
},
|
|
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 = {
|
|
1134
1242
|
key: 0,
|
|
1135
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)]"
|
|
1136
|
-
},
|
|
1244
|
+
}, gr = /* @__PURE__ */ D({
|
|
1137
1245
|
__name: "CommonBlockSettings",
|
|
1138
1246
|
props: {
|
|
1139
1247
|
block: {},
|
|
@@ -1141,76 +1249,133 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1141
1249
|
},
|
|
1142
1250
|
emits: ["update"],
|
|
1143
1251
|
setup(e, { emit: n }) {
|
|
1144
|
-
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 = [{
|
|
1145
1281
|
key: "desktop",
|
|
1146
|
-
icon:
|
|
1282
|
+
icon: Me,
|
|
1147
1283
|
labelKey: "showOnDesktop"
|
|
1148
1284
|
}, {
|
|
1149
1285
|
key: "mobile",
|
|
1150
|
-
icon:
|
|
1286
|
+
icon: Ne,
|
|
1151
1287
|
labelKey: "showOnMobile"
|
|
1152
1288
|
}];
|
|
1153
|
-
function
|
|
1154
|
-
|
|
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
|
+
}
|
|
1155
1320
|
}
|
|
1156
|
-
let
|
|
1157
|
-
function
|
|
1158
|
-
|
|
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 = "");
|
|
1159
1324
|
}
|
|
1160
|
-
function
|
|
1161
|
-
let e =
|
|
1325
|
+
function Te() {
|
|
1326
|
+
let e = R.value.trim(), t = z.value.trim();
|
|
1162
1327
|
e && (f("update", { displayCondition: {
|
|
1163
1328
|
label: x.blockSettings.customCondition,
|
|
1164
1329
|
before: e,
|
|
1165
1330
|
after: t
|
|
1166
|
-
} }),
|
|
1331
|
+
} }), L.value = !1, R.value = e, z.value = t);
|
|
1167
1332
|
}
|
|
1168
1333
|
t([
|
|
1169
|
-
() =>
|
|
1334
|
+
() => D?.state?.template?.id,
|
|
1170
1335
|
() => c.block.id,
|
|
1171
1336
|
() => c.block.displayCondition?.label,
|
|
1172
1337
|
() => c.block.displayCondition?.before,
|
|
1173
1338
|
() => c.block.displayCondition?.after
|
|
1174
1339
|
], () => {
|
|
1175
1340
|
let e = c.block.displayCondition;
|
|
1176
|
-
!e || !
|
|
1341
|
+
!e || !V.value ? (L.value = !1, R.value = "", z.value = "") : (R.value = e.before, z.value = e.after ?? "");
|
|
1177
1342
|
}, { immediate: !0 });
|
|
1178
|
-
let
|
|
1343
|
+
let Ee = m(() => {
|
|
1179
1344
|
let e = {};
|
|
1180
|
-
for (let t of
|
|
1345
|
+
for (let t of j) {
|
|
1181
1346
|
let n = t.group ?? "";
|
|
1182
1347
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1183
1348
|
}
|
|
1184
1349
|
return e;
|
|
1185
|
-
}),
|
|
1186
|
-
function
|
|
1350
|
+
}), De = m(() => c.block.type === "section" && ee(c.block)?.applied === !0);
|
|
1351
|
+
function Oe(e, t) {
|
|
1187
1352
|
f("update", { styles: {
|
|
1188
1353
|
...c.block.styles,
|
|
1189
1354
|
[e]: t
|
|
1190
1355
|
} });
|
|
1191
1356
|
}
|
|
1192
|
-
function
|
|
1357
|
+
function ke(e) {
|
|
1193
1358
|
return c.block.visibility?.[e] !== !1;
|
|
1194
1359
|
}
|
|
1195
|
-
function
|
|
1360
|
+
function Ae(e) {
|
|
1196
1361
|
let t = {
|
|
1197
|
-
desktop:
|
|
1198
|
-
mobile:
|
|
1362
|
+
desktop: ke("desktop"),
|
|
1363
|
+
mobile: ke("mobile")
|
|
1199
1364
|
};
|
|
1200
1365
|
t[e] = !t[e], f("update", { visibility: t });
|
|
1201
1366
|
}
|
|
1202
1367
|
return (t, n) => (a(), v("div", { class: o(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1203
|
-
p(
|
|
1368
|
+
p(En, {
|
|
1204
1369
|
title: h(x).blockSettings.spacing,
|
|
1205
|
-
open:
|
|
1370
|
+
open: I.has("spacing"),
|
|
1206
1371
|
"no-border": e.isFirstSection,
|
|
1207
|
-
onToggle: n[1] ||= (e) =>
|
|
1372
|
+
onToggle: n[1] ||= (e) => B("spacing")
|
|
1208
1373
|
}, {
|
|
1209
|
-
default: u(() => [p(
|
|
1374
|
+
default: u(() => [p(fn, {
|
|
1210
1375
|
path: "styles.padding",
|
|
1211
1376
|
label: h(x).blockSettings.padding,
|
|
1212
1377
|
"model-value": e.block.styles.padding,
|
|
1213
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1378
|
+
"onUpdate:modelValue": n[0] ||= (e) => Oe("padding", e)
|
|
1214
1379
|
}, null, 8, ["label", "model-value"])]),
|
|
1215
1380
|
_: 1
|
|
1216
1381
|
}, 8, [
|
|
@@ -1218,86 +1383,122 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1218
1383
|
"open",
|
|
1219
1384
|
"no-border"
|
|
1220
1385
|
]),
|
|
1221
|
-
p(
|
|
1386
|
+
p(En, {
|
|
1222
1387
|
title: h(x).blockSettings.background,
|
|
1223
|
-
open:
|
|
1388
|
+
open: I.has("bg"),
|
|
1224
1389
|
"header-test-id": "block-settings-background",
|
|
1225
|
-
onToggle: n[
|
|
1390
|
+
onToggle: n[4] ||= (e) => B("bg")
|
|
1226
1391
|
}, {
|
|
1227
1392
|
default: u(() => [
|
|
1228
|
-
p(
|
|
1229
|
-
path:
|
|
1393
|
+
p(Y, {
|
|
1394
|
+
path: ue.value,
|
|
1230
1395
|
label: h(x).blockSettings.color
|
|
1231
1396
|
}, {
|
|
1232
|
-
default: u(() => [p(
|
|
1233
|
-
"model-value":
|
|
1397
|
+
default: u(() => [p(H, {
|
|
1398
|
+
"model-value": de.value,
|
|
1234
1399
|
"allow-transparent": "",
|
|
1235
|
-
"onUpdate:modelValue":
|
|
1400
|
+
"onUpdate:modelValue": me
|
|
1236
1401
|
}, null, 8, ["model-value"])]),
|
|
1237
1402
|
_: 1
|
|
1238
|
-
}, 8, ["label"]),
|
|
1239
|
-
|
|
1403
|
+
}, 8, ["path", "label"]),
|
|
1404
|
+
N.value ? (a(), w(Y, {
|
|
1240
1405
|
key: 0,
|
|
1241
|
-
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,
|
|
1242
1430
|
label: h(x).blockSettings.backgroundImage
|
|
1243
1431
|
}, {
|
|
1244
|
-
default: u(() => [p(
|
|
1432
|
+
default: u(() => [p(Cn, {
|
|
1245
1433
|
"hide-label": "",
|
|
1246
1434
|
class: "tpl:mt-3.5",
|
|
1247
|
-
"model-value":
|
|
1435
|
+
"model-value": fe.value,
|
|
1248
1436
|
"testid-prefix": "section",
|
|
1249
1437
|
measure: "",
|
|
1250
|
-
"hero-mode":
|
|
1251
|
-
"onUpdate:modelValue":
|
|
1438
|
+
"hero-mode": De.value,
|
|
1439
|
+
"onUpdate:modelValue": he
|
|
1252
1440
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1253
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
|
|
1254
1455
|
}, 8, ["label"])) : g("", !0),
|
|
1255
|
-
e.block.type === "section" ? (a(),
|
|
1256
|
-
key:
|
|
1456
|
+
e.block.type === "section" ? (a(), w(Y, {
|
|
1457
|
+
key: 3,
|
|
1257
1458
|
path: "hero",
|
|
1258
1459
|
label: h(x).blocks.hero
|
|
1259
1460
|
}, {
|
|
1260
|
-
default: u(() => [p(
|
|
1461
|
+
default: u(() => [p(Pn, {
|
|
1261
1462
|
section: e.block,
|
|
1262
|
-
onUpdate: n[
|
|
1463
|
+
onUpdate: n[3] ||= (e) => f("update", e)
|
|
1263
1464
|
}, null, 8, ["section"])]),
|
|
1264
1465
|
_: 1
|
|
1265
1466
|
}, 8, ["label"])) : g("", !0)
|
|
1266
1467
|
]),
|
|
1267
1468
|
_: 1
|
|
1268
1469
|
}, 8, ["title", "open"]),
|
|
1269
|
-
p(
|
|
1470
|
+
p(En, {
|
|
1270
1471
|
title: h(x).blockSettings.display,
|
|
1271
|
-
open:
|
|
1272
|
-
onToggle: n[
|
|
1472
|
+
open: I.has("display"),
|
|
1473
|
+
onToggle: n[6] ||= (e) => B("display")
|
|
1273
1474
|
}, {
|
|
1274
|
-
default: u(() => [b("div",
|
|
1475
|
+
default: u(() => [b("div", Gn, [A.value && h(k) ? (a(), w(X, {
|
|
1275
1476
|
key: 0,
|
|
1276
1477
|
"data-testid": "locale-hide",
|
|
1277
|
-
disabled: !h(
|
|
1278
|
-
"model-value":
|
|
1279
|
-
label: h(
|
|
1280
|
-
"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)
|
|
1281
1482
|
}, null, 8, [
|
|
1282
1483
|
"disabled",
|
|
1283
1484
|
"model-value",
|
|
1284
1485
|
"label"
|
|
1285
|
-
])) : g("", !0), (a(), v(S, null, s(
|
|
1486
|
+
])) : g("", !0), (a(), v(S, null, s(ye, (e) => p(Y, {
|
|
1286
1487
|
key: e.key,
|
|
1287
1488
|
path: `visibility.${e.key}`,
|
|
1288
1489
|
label: h(x).blockSettings[e.labelKey]
|
|
1289
1490
|
}, {
|
|
1290
|
-
label: u(() => [b("span",
|
|
1491
|
+
label: u(() => [b("span", Kn, [(a(), w(i(e.icon), {
|
|
1291
1492
|
size: 14,
|
|
1292
1493
|
"stroke-width": 1.5
|
|
1293
1494
|
})), y(" " + r(h(x).blockSettings[e.labelKey]), 1)])]),
|
|
1294
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
1495
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
1295
1496
|
"control-id": t,
|
|
1296
1497
|
"hide-label": "",
|
|
1297
1498
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1298
|
-
"model-value":
|
|
1499
|
+
"model-value": ke(e.key),
|
|
1299
1500
|
label: h(x).blockSettings[e.labelKey],
|
|
1300
|
-
"onUpdate:modelValue": (t) =>
|
|
1501
|
+
"onUpdate:modelValue": (t) => Ae(e.key)
|
|
1301
1502
|
}, null, 8, [
|
|
1302
1503
|
"control-id",
|
|
1303
1504
|
"model-value",
|
|
@@ -1308,72 +1509,95 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1308
1509
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1309
1510
|
_: 1
|
|
1310
1511
|
}, 8, ["title", "open"]),
|
|
1311
|
-
|
|
1512
|
+
be.value ? (a(), w(En, {
|
|
1312
1513
|
key: 0,
|
|
1313
1514
|
"header-test-id": "display-condition-section",
|
|
1314
1515
|
title: h(x).blockSettings.displayCondition,
|
|
1315
|
-
open:
|
|
1316
|
-
onToggle: n[11] ||= (e) =>
|
|
1516
|
+
open: I.has("condition"),
|
|
1517
|
+
onToggle: n[11] ||= (e) => B("condition")
|
|
1317
1518
|
}, {
|
|
1318
|
-
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, {
|
|
1319
1543
|
path: "displayCondition",
|
|
1320
1544
|
label: h(x).blockSettings.displayCondition
|
|
1321
1545
|
}, {
|
|
1322
1546
|
default: u(() => [b("select", {
|
|
1323
1547
|
"data-testid": "display-condition-select",
|
|
1324
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)]"]),
|
|
1325
|
-
value:
|
|
1549
|
+
value: L.value || V.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1326
1550
|
onChange: n[8] ||= (e) => {
|
|
1327
1551
|
let t = e.target.value;
|
|
1328
1552
|
if (t === "__custom__") {
|
|
1329
|
-
|
|
1553
|
+
we();
|
|
1330
1554
|
return;
|
|
1331
1555
|
}
|
|
1332
|
-
if (
|
|
1556
|
+
if (L.value = !1, !t) {
|
|
1333
1557
|
f("update", { displayCondition: void 0 });
|
|
1334
1558
|
return;
|
|
1335
1559
|
}
|
|
1336
|
-
let n = h(
|
|
1560
|
+
let n = h(j).find((e) => e.label === t);
|
|
1337
1561
|
n && f("update", { displayCondition: n });
|
|
1338
1562
|
}
|
|
1339
1563
|
}, [
|
|
1340
|
-
b("option",
|
|
1341
|
-
(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", {
|
|
1342
1566
|
key: 0,
|
|
1343
1567
|
label: String(t)
|
|
1344
1568
|
}, [(a(!0), v(S, null, s(e, (e) => (a(), v("option", {
|
|
1345
1569
|
key: e.label,
|
|
1346
1570
|
value: e.label
|
|
1347
|
-
}, 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", {
|
|
1348
1572
|
key: e.label,
|
|
1349
1573
|
value: e.label
|
|
1350
|
-
}, r(e.label), 9,
|
|
1351
|
-
h(
|
|
1352
|
-
], 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)]),
|
|
1353
1577
|
_: 1
|
|
1354
|
-
}, 8, ["label"]),
|
|
1355
|
-
b("div", null, [b("label",
|
|
1356
|
-
"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,
|
|
1357
1581
|
rows: "2",
|
|
1358
|
-
class: o(h(
|
|
1359
|
-
}, null, 2), [[
|
|
1360
|
-
b("div", null, [b("label",
|
|
1361
|
-
"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,
|
|
1362
1586
|
rows: "2",
|
|
1363
|
-
class: o(h(
|
|
1364
|
-
}, null, 2), [[
|
|
1365
|
-
b("div",
|
|
1587
|
+
class: o(h(st))
|
|
1588
|
+
}, null, 2), [[O, z.value]])]),
|
|
1589
|
+
b("div", ur, [b("button", {
|
|
1366
1590
|
type: "button",
|
|
1367
|
-
class: o(h(
|
|
1368
|
-
disabled: !
|
|
1369
|
-
onClick:
|
|
1370
|
-
}, r(h(x).blockSettings.applyCondition), 11,
|
|
1371
|
-
])) : 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)]))]),
|
|
1372
1596
|
_: 1
|
|
1373
1597
|
}, 8, ["title", "open"])) : g("", !0)
|
|
1374
1598
|
], 2));
|
|
1375
1599
|
}
|
|
1376
|
-
}),
|
|
1600
|
+
}), _r = ["title"], vr = { class: "tpl-sr-only" }, yr = ["title"], br = { class: "tpl-sr-only" }, xr = /* @__PURE__ */ D({
|
|
1377
1601
|
__name: "FieldLabel",
|
|
1378
1602
|
props: {
|
|
1379
1603
|
label: {},
|
|
@@ -1381,25 +1605,25 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1381
1605
|
readOnly: { type: Boolean }
|
|
1382
1606
|
},
|
|
1383
1607
|
setup(e) {
|
|
1384
|
-
let { t } =
|
|
1608
|
+
let { t } = W();
|
|
1385
1609
|
return (n, i) => (a(), v("span", null, [
|
|
1386
1610
|
y(r(e.label) + " ", 1),
|
|
1387
1611
|
e.readOnly ? (a(), v("span", {
|
|
1388
1612
|
key: 0,
|
|
1389
1613
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1390
|
-
}, [p(h(
|
|
1614
|
+
}, [p(h(gt), {
|
|
1391
1615
|
size: 12,
|
|
1392
1616
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1393
1617
|
"aria-hidden": "true"
|
|
1394
|
-
}), b("span",
|
|
1618
|
+
}), b("span", vr, r(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, _r)) : g("", !0),
|
|
1395
1619
|
e.required ? (a(), v("span", {
|
|
1396
1620
|
key: 1,
|
|
1397
1621
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1398
1622
|
title: h(t).customBlocks.fields.required
|
|
1399
|
-
}, [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)
|
|
1400
1624
|
]));
|
|
1401
1625
|
}
|
|
1402
|
-
}),
|
|
1626
|
+
}), Sr = ["title"], Cr = /* @__PURE__ */ D({
|
|
1403
1627
|
__name: "BooleanField",
|
|
1404
1628
|
props: {
|
|
1405
1629
|
field: {},
|
|
@@ -1410,11 +1634,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1410
1634
|
},
|
|
1411
1635
|
emits: ["update:modelValue"],
|
|
1412
1636
|
setup(e, { emit: t }) {
|
|
1413
|
-
let n = t, { t: i } =
|
|
1637
|
+
let n = t, { t: i } = W();
|
|
1414
1638
|
return (t, o) => (a(), v("div", {
|
|
1415
1639
|
class: "tpl:mb-3.5",
|
|
1416
1640
|
title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1417
|
-
}, [p(
|
|
1641
|
+
}, [p(X, {
|
|
1418
1642
|
"hide-label": e.hideLabel,
|
|
1419
1643
|
"control-id": e.controlId,
|
|
1420
1644
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -1424,7 +1648,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1424
1648
|
disabled: e.readOnly,
|
|
1425
1649
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1426
1650
|
}, {
|
|
1427
|
-
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), {
|
|
1428
1652
|
key: 0,
|
|
1429
1653
|
size: 12,
|
|
1430
1654
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1437,9 +1661,9 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1437
1661
|
"label",
|
|
1438
1662
|
"required",
|
|
1439
1663
|
"disabled"
|
|
1440
|
-
])], 8,
|
|
1664
|
+
])], 8, Sr));
|
|
1441
1665
|
}
|
|
1442
|
-
}),
|
|
1666
|
+
}), wr = { class: "tpl:mb-3.5" }, Tr = /* @__PURE__ */ D({
|
|
1443
1667
|
__name: "FieldWrapper",
|
|
1444
1668
|
props: {
|
|
1445
1669
|
label: {},
|
|
@@ -1448,10 +1672,10 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1448
1672
|
readOnly: { type: Boolean }
|
|
1449
1673
|
},
|
|
1450
1674
|
setup(e) {
|
|
1451
|
-
return (t, r) => (a(), v("div",
|
|
1675
|
+
return (t, r) => (a(), v("div", wr, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
1452
1676
|
key: 0,
|
|
1453
|
-
class: o(h(
|
|
1454
|
-
}, [p(
|
|
1677
|
+
class: o(h(J))
|
|
1678
|
+
}, [p(xr, {
|
|
1455
1679
|
label: e.label,
|
|
1456
1680
|
required: e.required,
|
|
1457
1681
|
"read-only": e.readOnly
|
|
@@ -1461,7 +1685,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1461
1685
|
"read-only"
|
|
1462
1686
|
])], 2)), n(t.$slots, "default")]));
|
|
1463
1687
|
}
|
|
1464
|
-
}),
|
|
1688
|
+
}), Er = /* @__PURE__ */ D({
|
|
1465
1689
|
__name: "ColorField",
|
|
1466
1690
|
props: {
|
|
1467
1691
|
field: {},
|
|
@@ -1471,14 +1695,14 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1471
1695
|
},
|
|
1472
1696
|
emits: ["update:modelValue"],
|
|
1473
1697
|
setup(e, { emit: t }) {
|
|
1474
|
-
let n = e, r = t, { t: i } =
|
|
1475
|
-
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, {
|
|
1476
1700
|
"hide-label": e.hideLabel,
|
|
1477
1701
|
label: e.field.label,
|
|
1478
1702
|
required: e.field.required,
|
|
1479
1703
|
"read-only": e.readOnly
|
|
1480
1704
|
}, {
|
|
1481
|
-
default: u(() => [p(
|
|
1705
|
+
default: u(() => [p(H, {
|
|
1482
1706
|
"model-value": e.modelValue,
|
|
1483
1707
|
placeholder: e.field.placeholder,
|
|
1484
1708
|
disabled: e.readOnly,
|
|
@@ -1502,11 +1726,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1502
1726
|
"read-only"
|
|
1503
1727
|
]));
|
|
1504
1728
|
}
|
|
1505
|
-
}),
|
|
1729
|
+
}), Dr = [
|
|
1506
1730
|
"value",
|
|
1507
1731
|
"placeholder",
|
|
1508
1732
|
"title"
|
|
1509
|
-
],
|
|
1733
|
+
], Or = ["value", "placeholder"], kr = /* @__PURE__ */ D({
|
|
1510
1734
|
__name: "ImageField",
|
|
1511
1735
|
props: {
|
|
1512
1736
|
field: {},
|
|
@@ -1516,12 +1740,12 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1516
1740
|
},
|
|
1517
1741
|
emits: ["update:modelValue"],
|
|
1518
1742
|
setup(e, { emit: t }) {
|
|
1519
|
-
let n = e, i = t, { t: s } =
|
|
1743
|
+
let n = e, i = t, { t: s } = W(), c = _(), { canBrowse: l, isUploading: d, showOverlay: f, openMediaBrowser: m } = xe({
|
|
1520
1744
|
target: c,
|
|
1521
1745
|
blocked: () => !!n.readOnly,
|
|
1522
1746
|
apply: (e) => i("update:modelValue", e.url)
|
|
1523
1747
|
});
|
|
1524
|
-
return (t, n) => (a(),
|
|
1748
|
+
return (t, n) => (a(), w(Tr, {
|
|
1525
1749
|
"hide-label": e.hideLabel,
|
|
1526
1750
|
label: e.field.label,
|
|
1527
1751
|
required: e.field.required,
|
|
@@ -1532,31 +1756,31 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1532
1756
|
ref: c,
|
|
1533
1757
|
class: "tpl:relative"
|
|
1534
1758
|
}, [
|
|
1535
|
-
h(f) ? (a(),
|
|
1759
|
+
h(f) ? (a(), w(_e, {
|
|
1536
1760
|
key: 0,
|
|
1537
1761
|
uploading: h(d)
|
|
1538
1762
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
1539
1763
|
e.readOnly ? (a(), v("input", {
|
|
1540
1764
|
key: 1,
|
|
1541
1765
|
type: "url",
|
|
1542
|
-
class: o([h(
|
|
1766
|
+
class: o([h(q), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1543
1767
|
value: e.modelValue,
|
|
1544
1768
|
placeholder: e.field.placeholder || "https://...",
|
|
1545
1769
|
disabled: "",
|
|
1546
1770
|
title: h(s).customBlocks.dataSource.readOnlyTooltip
|
|
1547
|
-
}, null, 10,
|
|
1771
|
+
}, null, 10, Dr)) : (a(), v("input", {
|
|
1548
1772
|
key: 2,
|
|
1549
1773
|
type: "url",
|
|
1550
|
-
class: o(h(
|
|
1774
|
+
class: o(h(q)),
|
|
1551
1775
|
value: e.modelValue,
|
|
1552
1776
|
placeholder: e.field.placeholder || "https://...",
|
|
1553
1777
|
onInput: n[0] ||= (e) => i("update:modelValue", e.target.value)
|
|
1554
|
-
}, null, 42,
|
|
1778
|
+
}, null, 42, Or)),
|
|
1555
1779
|
h(l) && !e.readOnly ? (a(), v("button", {
|
|
1556
1780
|
key: 3,
|
|
1557
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)]",
|
|
1558
1782
|
onClick: n[1] ||= (e) => h(m)()
|
|
1559
|
-
}, [p(h(
|
|
1783
|
+
}, [p(h(ke), {
|
|
1560
1784
|
size: 14,
|
|
1561
1785
|
"stroke-width": 1.5
|
|
1562
1786
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
|
|
@@ -1569,7 +1793,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1569
1793
|
"read-only"
|
|
1570
1794
|
]));
|
|
1571
1795
|
}
|
|
1572
|
-
}),
|
|
1796
|
+
}), Ar = [
|
|
1573
1797
|
"value",
|
|
1574
1798
|
"placeholder",
|
|
1575
1799
|
"min",
|
|
@@ -1577,7 +1801,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1577
1801
|
"step",
|
|
1578
1802
|
"disabled",
|
|
1579
1803
|
"title"
|
|
1580
|
-
],
|
|
1804
|
+
], jr = /* @__PURE__ */ D({
|
|
1581
1805
|
__name: "NumberField",
|
|
1582
1806
|
props: {
|
|
1583
1807
|
field: {},
|
|
@@ -1587,8 +1811,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1587
1811
|
},
|
|
1588
1812
|
emits: ["update:modelValue"],
|
|
1589
1813
|
setup(e, { emit: t }) {
|
|
1590
|
-
let n = t, { t: r } =
|
|
1591
|
-
return (t, i) => (a(),
|
|
1814
|
+
let n = t, { t: r } = W();
|
|
1815
|
+
return (t, i) => (a(), w(Tr, {
|
|
1592
1816
|
"hide-label": e.hideLabel,
|
|
1593
1817
|
label: e.field.label,
|
|
1594
1818
|
required: e.field.required,
|
|
@@ -1596,7 +1820,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1596
1820
|
}, {
|
|
1597
1821
|
default: u(() => [b("input", {
|
|
1598
1822
|
type: "number",
|
|
1599
|
-
class: o([h(
|
|
1823
|
+
class: o([h(q), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1600
1824
|
value: e.modelValue,
|
|
1601
1825
|
placeholder: e.field.placeholder,
|
|
1602
1826
|
min: e.field.min,
|
|
@@ -1605,7 +1829,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1605
1829
|
disabled: e.readOnly,
|
|
1606
1830
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1607
1831
|
onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1608
|
-
}, null, 42,
|
|
1832
|
+
}, null, 42, Ar)]),
|
|
1609
1833
|
_: 1
|
|
1610
1834
|
}, 8, [
|
|
1611
1835
|
"hide-label",
|
|
@@ -1614,13 +1838,13 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1614
1838
|
"read-only"
|
|
1615
1839
|
]));
|
|
1616
1840
|
}
|
|
1617
|
-
}),
|
|
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 = {
|
|
1618
1842
|
key: 1,
|
|
1619
1843
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1620
|
-
},
|
|
1844
|
+
}, Lr = {
|
|
1621
1845
|
key: 2,
|
|
1622
1846
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1623
|
-
},
|
|
1847
|
+
}, Rr = /* @__PURE__ */ D({
|
|
1624
1848
|
__name: "RepeatableField",
|
|
1625
1849
|
props: {
|
|
1626
1850
|
field: {},
|
|
@@ -1630,8 +1854,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1630
1854
|
},
|
|
1631
1855
|
emits: ["update:modelValue"],
|
|
1632
1856
|
setup(e, { emit: t }) {
|
|
1633
|
-
let n = e, c = t, { t: l, format: d } =
|
|
1634
|
-
function
|
|
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);
|
|
1858
|
+
function C() {
|
|
1635
1859
|
if (!_.value || n.readOnly) return;
|
|
1636
1860
|
let e = {};
|
|
1637
1861
|
for (let t of n.field.fields) e[t.key] = t.default ?? "";
|
|
@@ -1649,26 +1873,26 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1649
1873
|
} : r);
|
|
1650
1874
|
c("update:modelValue", r);
|
|
1651
1875
|
}
|
|
1652
|
-
return (t, n) => (a(),
|
|
1876
|
+
return (t, n) => (a(), w(Tr, {
|
|
1653
1877
|
"hide-label": e.hideLabel,
|
|
1654
1878
|
label: e.field.label,
|
|
1655
1879
|
required: e.field.required,
|
|
1656
1880
|
"read-only": e.readOnly
|
|
1657
1881
|
}, {
|
|
1658
|
-
default: u(() => [b("div",
|
|
1882
|
+
default: u(() => [b("div", Mr, [
|
|
1659
1883
|
(a(!0), v(S, null, s(f.value, (t, n) => (a(), v("div", {
|
|
1660
1884
|
key: `${e.field.key}-${n}`,
|
|
1661
1885
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1662
|
-
}, [b("div",
|
|
1886
|
+
}, [b("div", Nr, [b("span", Pr, " #" + r(n + 1), 1), x.value && !e.readOnly ? (a(), v("button", {
|
|
1663
1887
|
key: 0,
|
|
1664
1888
|
type: "button",
|
|
1665
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)]",
|
|
1666
1890
|
title: h(l).customBlocks.fields.removeItem,
|
|
1667
1891
|
onClick: (e) => T(n)
|
|
1668
|
-
}, [p(h(
|
|
1892
|
+
}, [p(h(Re), {
|
|
1669
1893
|
size: 12,
|
|
1670
1894
|
"stroke-width": 2
|
|
1671
|
-
})], 8,
|
|
1895
|
+
})], 8, Fr)) : g("", !0)]), (a(!0), v(S, null, s(e.field.fields, (r) => (a(), w(i(h(qr)(r.type)), {
|
|
1672
1896
|
key: r.key,
|
|
1673
1897
|
field: r,
|
|
1674
1898
|
"model-value": t[r.key],
|
|
@@ -1683,14 +1907,14 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1683
1907
|
_.value && !e.readOnly ? (a(), v("button", {
|
|
1684
1908
|
key: 0,
|
|
1685
1909
|
type: "button",
|
|
1686
|
-
class: o(h(
|
|
1687
|
-
onClick:
|
|
1688
|
-
}, [p(h(
|
|
1910
|
+
class: o(h(at)),
|
|
1911
|
+
onClick: C
|
|
1912
|
+
}, [p(h(U), {
|
|
1689
1913
|
size: 14,
|
|
1690
1914
|
"stroke-width": 2
|
|
1691
1915
|
}), y(" " + r(h(l).customBlocks.fields.addItem), 1)], 2)) : g("", !0),
|
|
1692
|
-
!_.value && !e.readOnly ? (a(), v("p",
|
|
1693
|
-
!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)
|
|
1694
1918
|
])]),
|
|
1695
1919
|
_: 1
|
|
1696
1920
|
}, 8, [
|
|
@@ -1700,11 +1924,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1700
1924
|
"read-only"
|
|
1701
1925
|
]));
|
|
1702
1926
|
}
|
|
1703
|
-
}),
|
|
1927
|
+
}), zr = [
|
|
1704
1928
|
"value",
|
|
1705
1929
|
"disabled",
|
|
1706
1930
|
"title"
|
|
1707
|
-
],
|
|
1931
|
+
], Br = ["value"], Vr = /* @__PURE__ */ D({
|
|
1708
1932
|
__name: "SelectField",
|
|
1709
1933
|
props: {
|
|
1710
1934
|
field: {},
|
|
@@ -1714,15 +1938,15 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1714
1938
|
},
|
|
1715
1939
|
emits: ["update:modelValue"],
|
|
1716
1940
|
setup(e, { emit: t }) {
|
|
1717
|
-
let n = t, { t: i } =
|
|
1718
|
-
return (t, c) => (a(),
|
|
1941
|
+
let n = t, { t: i } = W();
|
|
1942
|
+
return (t, c) => (a(), w(Tr, {
|
|
1719
1943
|
"hide-label": e.hideLabel,
|
|
1720
1944
|
label: e.field.label,
|
|
1721
1945
|
required: e.field.required,
|
|
1722
1946
|
"read-only": e.readOnly
|
|
1723
1947
|
}, {
|
|
1724
1948
|
default: u(() => [b("select", {
|
|
1725
|
-
class: o([h(
|
|
1949
|
+
class: o([h(q), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1726
1950
|
value: e.modelValue,
|
|
1727
1951
|
disabled: e.readOnly,
|
|
1728
1952
|
title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
@@ -1730,7 +1954,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1730
1954
|
}, [(a(!0), v(S, null, s(e.field.options, (e) => (a(), v("option", {
|
|
1731
1955
|
key: e.value,
|
|
1732
1956
|
value: e.value
|
|
1733
|
-
}, r(e.label), 9,
|
|
1957
|
+
}, r(e.label), 9, Br))), 128))], 42, zr)]),
|
|
1734
1958
|
_: 1
|
|
1735
1959
|
}, 8, [
|
|
1736
1960
|
"hide-label",
|
|
@@ -1739,11 +1963,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1739
1963
|
"read-only"
|
|
1740
1964
|
]));
|
|
1741
1965
|
}
|
|
1742
|
-
}),
|
|
1966
|
+
}), Hr = [
|
|
1743
1967
|
"value",
|
|
1744
1968
|
"placeholder",
|
|
1745
1969
|
"title"
|
|
1746
|
-
],
|
|
1970
|
+
], Ur = /* @__PURE__ */ D({
|
|
1747
1971
|
__name: "TextField",
|
|
1748
1972
|
props: {
|
|
1749
1973
|
field: {},
|
|
@@ -1753,8 +1977,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1753
1977
|
},
|
|
1754
1978
|
emits: ["update:modelValue"],
|
|
1755
1979
|
setup(e, { emit: t }) {
|
|
1756
|
-
let n = t, { t: r } =
|
|
1757
|
-
return (t, i) => (a(),
|
|
1980
|
+
let n = t, { t: r } = W();
|
|
1981
|
+
return (t, i) => (a(), w(Tr, {
|
|
1758
1982
|
"hide-label": e.hideLabel,
|
|
1759
1983
|
label: e.field.label,
|
|
1760
1984
|
required: e.field.required,
|
|
@@ -1763,12 +1987,12 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1763
1987
|
default: u(() => [e.readOnly ? (a(), v("input", {
|
|
1764
1988
|
key: 0,
|
|
1765
1989
|
type: "text",
|
|
1766
|
-
class: o([h(
|
|
1990
|
+
class: o([h(q), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1767
1991
|
value: e.modelValue,
|
|
1768
1992
|
placeholder: e.field.placeholder,
|
|
1769
1993
|
disabled: "",
|
|
1770
1994
|
title: h(r).customBlocks.dataSource.readOnlyTooltip
|
|
1771
|
-
}, null, 10,
|
|
1995
|
+
}, null, 10, Hr)) : (a(), w(Z, {
|
|
1772
1996
|
key: 1,
|
|
1773
1997
|
"model-value": e.modelValue,
|
|
1774
1998
|
placeholder: e.field.placeholder,
|
|
@@ -1782,13 +2006,13 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1782
2006
|
"read-only"
|
|
1783
2007
|
]));
|
|
1784
2008
|
}
|
|
1785
|
-
}),
|
|
2009
|
+
}), Wr = [
|
|
1786
2010
|
"value",
|
|
1787
2011
|
"placeholder",
|
|
1788
2012
|
"title"
|
|
1789
|
-
],
|
|
1790
|
-
text:
|
|
1791
|
-
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({
|
|
1792
2016
|
__name: "TextareaField",
|
|
1793
2017
|
props: {
|
|
1794
2018
|
field: {},
|
|
@@ -1798,8 +2022,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1798
2022
|
},
|
|
1799
2023
|
emits: ["update:modelValue"],
|
|
1800
2024
|
setup(e, { emit: t }) {
|
|
1801
|
-
let n = t, { t: r } =
|
|
1802
|
-
return (t, i) => (a(),
|
|
2025
|
+
let n = t, { t: r } = W();
|
|
2026
|
+
return (t, i) => (a(), w(Tr, {
|
|
1803
2027
|
"hide-label": e.hideLabel,
|
|
1804
2028
|
label: e.field.label,
|
|
1805
2029
|
required: e.field.required,
|
|
@@ -1812,8 +2036,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1812
2036
|
rows: "3",
|
|
1813
2037
|
disabled: "",
|
|
1814
2038
|
title: h(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1815
|
-
class: o(
|
|
1816
|
-
}, null, 8,
|
|
2039
|
+
class: o(Gr)
|
|
2040
|
+
}, null, 8, Wr)) : (a(), w(ft, {
|
|
1817
2041
|
key: 1,
|
|
1818
2042
|
"model-value": e.modelValue,
|
|
1819
2043
|
placeholder: e.field.placeholder,
|
|
@@ -1828,41 +2052,41 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1828
2052
|
]));
|
|
1829
2053
|
}
|
|
1830
2054
|
}),
|
|
1831
|
-
image:
|
|
1832
|
-
color:
|
|
1833
|
-
number:
|
|
1834
|
-
select:
|
|
1835
|
-
boolean:
|
|
1836
|
-
repeatable:
|
|
2055
|
+
image: kr,
|
|
2056
|
+
color: Er,
|
|
2057
|
+
number: jr,
|
|
2058
|
+
select: Vr,
|
|
2059
|
+
boolean: Cr,
|
|
2060
|
+
repeatable: Rr
|
|
1837
2061
|
};
|
|
1838
|
-
function
|
|
1839
|
-
return
|
|
2062
|
+
function qr(e) {
|
|
2063
|
+
return Kr[e] ?? Ur;
|
|
1840
2064
|
}
|
|
1841
2065
|
// src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1842
|
-
var
|
|
2066
|
+
var Jr = {
|
|
1843
2067
|
key: 0,
|
|
1844
2068
|
class: "tpl:p-4"
|
|
1845
|
-
},
|
|
2069
|
+
}, Yr = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Xr = { key: 1 }, Zr = {
|
|
1846
2070
|
key: 0,
|
|
1847
2071
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1848
|
-
},
|
|
2072
|
+
}, Qr = {
|
|
1849
2073
|
key: 1,
|
|
1850
2074
|
class: "tpl:mb-4"
|
|
1851
|
-
},
|
|
2075
|
+
}, $r = {
|
|
1852
2076
|
key: 1,
|
|
1853
2077
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1854
|
-
},
|
|
2078
|
+
}, ei = {
|
|
1855
2079
|
key: 0,
|
|
1856
2080
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1857
|
-
},
|
|
2081
|
+
}, ti = {
|
|
1858
2082
|
key: 2,
|
|
1859
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)]"
|
|
1860
|
-
},
|
|
2084
|
+
}, ni = /* @__PURE__ */ D({
|
|
1861
2085
|
__name: "CustomBlockToolbar",
|
|
1862
2086
|
props: { block: {} },
|
|
1863
2087
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1864
2088
|
setup(e, { emit: t }) {
|
|
1865
|
-
let n = e, o = t, { t: c } =
|
|
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({
|
|
1866
2090
|
definition: d,
|
|
1867
2091
|
block: f,
|
|
1868
2092
|
onUpdate: (e, t) => {
|
|
@@ -1870,7 +2094,7 @@ var Er = {
|
|
|
1870
2094
|
}
|
|
1871
2095
|
});
|
|
1872
2096
|
function O(e) {
|
|
1873
|
-
return e.readOnly === !0 &&
|
|
2097
|
+
return e.readOnly === !0 && T.value && !!n.block.dataSourceFetched;
|
|
1874
2098
|
}
|
|
1875
2099
|
function k(e, t) {
|
|
1876
2100
|
o("updateFieldValues", {
|
|
@@ -1878,28 +2102,28 @@ var Er = {
|
|
|
1878
2102
|
[e]: t
|
|
1879
2103
|
});
|
|
1880
2104
|
}
|
|
1881
|
-
return (t, n) => d.value ? (a(), v("div",
|
|
1882
|
-
d.value.description ? (a(), v("p",
|
|
1883
|
-
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", {
|
|
1884
2108
|
key: 0,
|
|
1885
2109
|
type: "button",
|
|
1886
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)]",
|
|
1887
|
-
onClick: n[0] ||= (...e) => h(
|
|
1888
|
-
}, 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", {
|
|
1889
2113
|
key: 1,
|
|
1890
2114
|
type: "button",
|
|
1891
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)]",
|
|
1892
|
-
onClick: n[1] ||= (...e) => h(
|
|
1893
|
-
}, [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), {
|
|
1894
2118
|
size: 14,
|
|
1895
2119
|
class: "tpl:shrink-0"
|
|
1896
2120
|
}), y(" " + r(h(c).customBlocks.dataSource.fetchError), 1)])) : g("", !0)])) : g("", !0),
|
|
1897
|
-
(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, {
|
|
1898
2122
|
key: t.key,
|
|
1899
2123
|
path: `fieldValues.${t.key}`,
|
|
1900
2124
|
label: t.label
|
|
1901
2125
|
}, {
|
|
1902
|
-
label: u(() => [p(
|
|
2126
|
+
label: u(() => [p(xr, {
|
|
1903
2127
|
label: t.label,
|
|
1904
2128
|
required: t.required,
|
|
1905
2129
|
"read-only": O(t)
|
|
@@ -1908,7 +2132,7 @@ var Er = {
|
|
|
1908
2132
|
"required",
|
|
1909
2133
|
"read-only"
|
|
1910
2134
|
])]),
|
|
1911
|
-
default: u(({ controlId: n }) => [(a(),
|
|
2135
|
+
default: u(({ controlId: n }) => [(a(), w(i(h(qr)(t.type)), {
|
|
1912
2136
|
"control-id": t.type === "boolean" ? n : void 0,
|
|
1913
2137
|
field: t,
|
|
1914
2138
|
"hide-label": "",
|
|
@@ -1924,24 +2148,24 @@ var Er = {
|
|
|
1924
2148
|
]))]),
|
|
1925
2149
|
_: 2
|
|
1926
2150
|
}, 1032, ["path", "label"]))), 128))
|
|
1927
|
-
])) : (a(), v("div",
|
|
2151
|
+
])) : (a(), v("div", Jr, [b("p", Yr, r(h(c).customBlocks.toolbar.noDefinition), 1)]));
|
|
1928
2152
|
}
|
|
1929
|
-
}),
|
|
2153
|
+
}), ri = { class: "tpl:flex tpl:items-stretch" }, ii = ["value"], ai = /* @__PURE__ */ D({
|
|
1930
2154
|
__name: "DividerToolbar",
|
|
1931
2155
|
props: { block: {} },
|
|
1932
2156
|
emits: ["update"],
|
|
1933
2157
|
setup(e, { emit: t }) {
|
|
1934
|
-
let n = t, { t: r } =
|
|
2158
|
+
let n = t, { t: r } = W();
|
|
1935
2159
|
function i(e, t) {
|
|
1936
2160
|
n("update", { [e]: t });
|
|
1937
2161
|
}
|
|
1938
2162
|
return (t, n) => (a(), v(S, null, [
|
|
1939
|
-
p(
|
|
2163
|
+
p(Y, {
|
|
1940
2164
|
label: h(r).divider.style,
|
|
1941
2165
|
class: "tpl:mb-3.5",
|
|
1942
2166
|
path: "lineStyle"
|
|
1943
2167
|
}, {
|
|
1944
|
-
default: u(() => [p(
|
|
2168
|
+
default: u(() => [p(Q, {
|
|
1945
2169
|
options: [
|
|
1946
2170
|
{
|
|
1947
2171
|
value: "solid",
|
|
@@ -1961,41 +2185,41 @@ var Er = {
|
|
|
1961
2185
|
}, null, 8, ["options", "model-value"])]),
|
|
1962
2186
|
_: 1
|
|
1963
2187
|
}, 8, ["label"]),
|
|
1964
|
-
p(
|
|
2188
|
+
p(Y, {
|
|
1965
2189
|
label: h(r).divider.color,
|
|
1966
2190
|
class: "tpl:mb-3.5",
|
|
1967
2191
|
path: "color"
|
|
1968
2192
|
}, {
|
|
1969
|
-
default: u(() => [p(
|
|
2193
|
+
default: u(() => [p(H, {
|
|
1970
2194
|
"model-value": e.block.color,
|
|
1971
2195
|
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
1972
2196
|
}, null, 8, ["model-value"])]),
|
|
1973
2197
|
_: 1
|
|
1974
2198
|
}, 8, ["label"]),
|
|
1975
|
-
p(
|
|
2199
|
+
p(Y, {
|
|
1976
2200
|
label: h(r).divider.thickness,
|
|
1977
2201
|
class: "tpl:mb-3.5",
|
|
1978
2202
|
path: "thickness"
|
|
1979
2203
|
}, {
|
|
1980
|
-
default: u(() => [b("div",
|
|
2204
|
+
default: u(() => [b("div", ri, [b("input", {
|
|
1981
2205
|
type: "number",
|
|
1982
|
-
class: o(h(
|
|
2206
|
+
class: o(h(K)),
|
|
1983
2207
|
value: e.block.thickness,
|
|
1984
2208
|
min: "1",
|
|
1985
2209
|
max: "10",
|
|
1986
2210
|
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
1987
|
-
}, null, 42,
|
|
2211
|
+
}, null, 42, ii), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
1988
2212
|
_: 1
|
|
1989
2213
|
}, 8, ["label"])
|
|
1990
2214
|
], 64));
|
|
1991
2215
|
}
|
|
1992
|
-
}),
|
|
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({
|
|
1993
2217
|
__name: "HtmlToolbar",
|
|
1994
2218
|
props: { block: {} },
|
|
1995
2219
|
emits: ["update"],
|
|
1996
2220
|
setup(e, { emit: t }) {
|
|
1997
|
-
let n = t, { t: i } =
|
|
1998
|
-
return (t, s) => (a(),
|
|
2221
|
+
let n = t, { t: i } = W();
|
|
2222
|
+
return (t, s) => (a(), w(Y, {
|
|
1999
2223
|
label: h(i).html.content,
|
|
2000
2224
|
class: "tpl:mb-3.5",
|
|
2001
2225
|
path: "content"
|
|
@@ -2004,9 +2228,9 @@ var Er = {
|
|
|
2004
2228
|
value: e.block.content,
|
|
2005
2229
|
placeholder: "<div>...</div>",
|
|
2006
2230
|
rows: "10",
|
|
2007
|
-
class: o(h(
|
|
2231
|
+
class: o(h(st)),
|
|
2008
2232
|
onInput: s[0] ||= (e) => n("update", { content: e.target.value })
|
|
2009
|
-
}, null, 42,
|
|
2233
|
+
}, null, 42, oi), b("p", si, [p(h(Ae), {
|
|
2010
2234
|
size: 12,
|
|
2011
2235
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2012
2236
|
}), y(" " + r(h(i).html.sanitizationHint), 1)])]),
|
|
@@ -2015,12 +2239,12 @@ var Er = {
|
|
|
2015
2239
|
}
|
|
2016
2240
|
});
|
|
2017
2241
|
// src/composables/useImageAspectLock.ts
|
|
2018
|
-
function
|
|
2242
|
+
function li(e) {
|
|
2019
2243
|
let n = _(!1), r = _(null);
|
|
2020
2244
|
t(() => e.block().id, () => {
|
|
2021
2245
|
n.value = !1, r.value = null;
|
|
2022
2246
|
});
|
|
2023
|
-
let i = m(() =>
|
|
2247
|
+
let i = m(() => ve(e.block()) ?? e.measured()), a = m(() => {
|
|
2024
2248
|
let t = e.block().width;
|
|
2025
2249
|
return t === "full" ? e.room() : t;
|
|
2026
2250
|
}), o = m(() => {
|
|
@@ -2031,9 +2255,9 @@ function Vr(e) {
|
|
|
2031
2255
|
return t === void 0 || o.value !== null && Math.abs(o.value - t) <= 1;
|
|
2032
2256
|
}), l = m(() => s.value && !n.value && c.value);
|
|
2033
2257
|
function u() {
|
|
2034
|
-
if (
|
|
2258
|
+
if (ve(e.block())) return {};
|
|
2035
2259
|
let t = e.measured();
|
|
2036
|
-
return t ?
|
|
2260
|
+
return t ? F(t) : {};
|
|
2037
2261
|
}
|
|
2038
2262
|
function d(t) {
|
|
2039
2263
|
if (r.value = null, !t) return n.value = !0, null;
|
|
@@ -2075,117 +2299,120 @@ function Vr(e) {
|
|
|
2075
2299
|
};
|
|
2076
2300
|
}
|
|
2077
2301
|
// src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2078
|
-
var
|
|
2302
|
+
var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
2079
2303
|
"value",
|
|
2080
2304
|
"placeholder",
|
|
2081
2305
|
"title"
|
|
2082
|
-
],
|
|
2306
|
+
], fi = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, pi = ["value"], mi = { value: "full" }, hi = { value: "custom" }, gi = {
|
|
2083
2307
|
key: 0,
|
|
2084
2308
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2085
|
-
},
|
|
2309
|
+
}, _i = ["value"], vi = ["value"], yi = { value: "auto" }, bi = { value: "always" }, xi = { value: "never" }, Si = { class: "tpl:flex tpl:items-stretch" }, Ci = ["value"], wi = {
|
|
2086
2310
|
key: 0,
|
|
2087
2311
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
2088
2312
|
role: "status",
|
|
2089
2313
|
"data-testid": "image-height-capped"
|
|
2090
|
-
},
|
|
2314
|
+
}, Ti = ["value"], Ei = { value: "auto" }, Di = { value: "custom" }, Oi = {
|
|
2091
2315
|
key: 2,
|
|
2092
2316
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2093
|
-
},
|
|
2317
|
+
}, ki = ["value"], Ai = 350, ji = 200, Mi = /* @__PURE__ */ D({
|
|
2094
2318
|
__name: "ImageToolbar",
|
|
2095
2319
|
props: { block: {} },
|
|
2096
2320
|
emits: ["update"],
|
|
2097
2321
|
setup(e, { emit: t }) {
|
|
2098
|
-
let n = e, i = t, { t: s, format: c } =
|
|
2099
|
-
|
|
2100
|
-
}, 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 = [
|
|
2101
2325
|
300,
|
|
2102
2326
|
400,
|
|
2103
2327
|
500
|
|
2104
|
-
],
|
|
2328
|
+
], A = m(() => {
|
|
2105
2329
|
let e = n.block.width;
|
|
2106
|
-
return e === "full" ? "full" :
|
|
2107
|
-
}),
|
|
2108
|
-
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) {
|
|
2109
2333
|
i("update", { [e]: t });
|
|
2110
2334
|
}
|
|
2111
|
-
function
|
|
2335
|
+
function M(e) {
|
|
2112
2336
|
if (e === "custom") {
|
|
2113
2337
|
let e = n.block.width;
|
|
2114
|
-
(typeof e != "number" ||
|
|
2338
|
+
(typeof e != "number" || k.includes(e)) && i("update", B.widthUpdates(Ai));
|
|
2115
2339
|
} else i("update", B.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2116
2340
|
}
|
|
2117
|
-
function
|
|
2118
|
-
|
|
2341
|
+
function re(e) {
|
|
2342
|
+
j("height", e === "custom" ? ji : void 0);
|
|
2343
|
+
}
|
|
2344
|
+
function N(e) {
|
|
2345
|
+
j("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
2119
2346
|
}
|
|
2120
|
-
function
|
|
2347
|
+
function oe(e) {
|
|
2121
2348
|
let t = Number(e);
|
|
2122
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
2349
|
+
!Number.isFinite(t) || t <= 0 || j("height", t);
|
|
2123
2350
|
}
|
|
2124
|
-
function
|
|
2125
|
-
|
|
2351
|
+
function se(e) {
|
|
2352
|
+
j("borderRadius", ie(e) === null ? void 0 : e);
|
|
2126
2353
|
}
|
|
2127
|
-
function
|
|
2354
|
+
function ce(e) {
|
|
2128
2355
|
let t = Number(e);
|
|
2129
2356
|
!Number.isFinite(t) || t <= 0 || i("update", B.widthUpdates(t));
|
|
2130
2357
|
}
|
|
2131
|
-
function
|
|
2358
|
+
function le(e) {
|
|
2132
2359
|
e !== n.block.src && i("update", {
|
|
2133
2360
|
src: e,
|
|
2134
|
-
...
|
|
2361
|
+
...F(null)
|
|
2135
2362
|
});
|
|
2136
2363
|
}
|
|
2137
|
-
function
|
|
2364
|
+
function ue(e) {
|
|
2138
2365
|
i("update", {
|
|
2139
2366
|
src: e.url,
|
|
2140
|
-
...
|
|
2141
|
-
}), e.alt && (
|
|
2142
|
-
}
|
|
2143
|
-
let
|
|
2144
|
-
target:
|
|
2145
|
-
blocked:
|
|
2146
|
-
apply:
|
|
2147
|
-
}),
|
|
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({
|
|
2148
2375
|
block: () => n.block,
|
|
2149
|
-
room: () =>
|
|
2150
|
-
measured: () =>
|
|
2151
|
-
}), { available:
|
|
2152
|
-
function
|
|
2153
|
-
let e = B.setLocked(!
|
|
2376
|
+
room: () => ye.value,
|
|
2377
|
+
measured: () => z.value
|
|
2378
|
+
}), { available: be, locked: Se, derivedHeight: Ce, cappedHeight: V } = B;
|
|
2379
|
+
function H() {
|
|
2380
|
+
let e = B.setLocked(!Se.value);
|
|
2154
2381
|
e && i("update", e);
|
|
2155
2382
|
}
|
|
2156
|
-
let
|
|
2157
|
-
function
|
|
2158
|
-
|
|
2383
|
+
let we = _(null);
|
|
2384
|
+
function Te(e) {
|
|
2385
|
+
we.value = e;
|
|
2159
2386
|
let t = B.heightUpdates(Number(e));
|
|
2160
2387
|
t && i("update", t);
|
|
2161
2388
|
}
|
|
2162
2389
|
return (t, n) => (a(), v(S, null, [
|
|
2163
|
-
p(
|
|
2390
|
+
p(Y, {
|
|
2164
2391
|
label: h(s).image.imageUrl,
|
|
2165
2392
|
class: "tpl:mb-3.5",
|
|
2166
2393
|
path: "src"
|
|
2167
2394
|
}, {
|
|
2168
2395
|
default: u(() => [b("div", {
|
|
2169
2396
|
ref_key: "dropZoneRef",
|
|
2170
|
-
ref:
|
|
2397
|
+
ref: P,
|
|
2171
2398
|
class: "tpl:relative"
|
|
2172
2399
|
}, [
|
|
2173
|
-
h(
|
|
2400
|
+
h(ge) ? (a(), w(_e, {
|
|
2174
2401
|
key: 0,
|
|
2175
|
-
uploading: h(
|
|
2402
|
+
uploading: h(he)
|
|
2176
2403
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
2177
|
-
p(
|
|
2404
|
+
p(Z, {
|
|
2178
2405
|
"model-value": e.block.src,
|
|
2179
2406
|
type: "url",
|
|
2180
2407
|
placeholder: h(s).image.imageUrlPlaceholder,
|
|
2181
|
-
pulse:
|
|
2182
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2408
|
+
pulse: T.value,
|
|
2409
|
+
"onUpdate:modelValue": n[0] ||= (e) => le(e)
|
|
2183
2410
|
}, null, 8, [
|
|
2184
2411
|
"model-value",
|
|
2185
2412
|
"placeholder",
|
|
2186
2413
|
"pulse"
|
|
2187
2414
|
]),
|
|
2188
|
-
h(
|
|
2415
|
+
h(fe) ? (a(), v("button", {
|
|
2189
2416
|
key: 1,
|
|
2190
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",
|
|
2191
2418
|
style: {
|
|
@@ -2193,59 +2420,59 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2193
2420
|
color: "var(--tpl-primary)",
|
|
2194
2421
|
"background-color": "var(--tpl-bg)"
|
|
2195
2422
|
},
|
|
2196
|
-
onClick: n[1] ||= (...e) => h(
|
|
2197
|
-
}, [p(h(
|
|
2423
|
+
onClick: n[1] ||= (...e) => h(L) && h(L)(...e)
|
|
2424
|
+
}, [p(h(ke), {
|
|
2198
2425
|
size: 14,
|
|
2199
2426
|
"stroke-width": 1.5
|
|
2200
2427
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
|
|
2201
2428
|
], 512)]),
|
|
2202
2429
|
_: 1
|
|
2203
2430
|
}, 8, ["label"]),
|
|
2204
|
-
h(
|
|
2431
|
+
h(ae)(e.block.src, h(l)) ? (a(), w(Y, {
|
|
2205
2432
|
key: 0,
|
|
2206
2433
|
class: "tpl:mb-3.5",
|
|
2207
2434
|
path: "placeholderUrl"
|
|
2208
2435
|
}, {
|
|
2209
|
-
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)]),
|
|
2210
2437
|
default: u(() => [b("input", {
|
|
2211
2438
|
type: "url",
|
|
2212
|
-
class: o(h(
|
|
2439
|
+
class: o(h(q)),
|
|
2213
2440
|
value: e.block.placeholderUrl || "",
|
|
2214
2441
|
placeholder: h(s).image.placeholderUrlPlaceholder,
|
|
2215
2442
|
title: h(s).image.placeholderUrlTooltip,
|
|
2216
|
-
onInput: n[2] ||= (e) =>
|
|
2217
|
-
}, null, 42,
|
|
2443
|
+
onInput: n[2] ||= (e) => j("placeholderUrl", e.target.value)
|
|
2444
|
+
}, null, 42, di)]),
|
|
2218
2445
|
_: 1
|
|
2219
2446
|
})) : g("", !0),
|
|
2220
|
-
p(
|
|
2447
|
+
p(Y, {
|
|
2221
2448
|
label: h(s).image.altText,
|
|
2222
2449
|
class: "tpl:mb-3.5",
|
|
2223
2450
|
path: "alt"
|
|
2224
2451
|
}, {
|
|
2225
|
-
default: u(() => [p(
|
|
2452
|
+
default: u(() => [p(Z, {
|
|
2226
2453
|
"model-value": e.block.alt,
|
|
2227
2454
|
type: "text",
|
|
2228
2455
|
placeholder: h(s).image.altTextPlaceholder,
|
|
2229
2456
|
pulse: D.value,
|
|
2230
2457
|
disabled: e.block.decorative === !0,
|
|
2231
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
2458
|
+
"onUpdate:modelValue": n[3] ||= (e) => j("alt", e)
|
|
2232
2459
|
}, null, 8, [
|
|
2233
2460
|
"model-value",
|
|
2234
2461
|
"placeholder",
|
|
2235
2462
|
"pulse",
|
|
2236
2463
|
"disabled"
|
|
2237
|
-
]), p(
|
|
2464
|
+
]), p(Y, {
|
|
2238
2465
|
path: "decorative",
|
|
2239
2466
|
label: h(s).image.decorative
|
|
2240
2467
|
}, {
|
|
2241
|
-
label: u(() => [b("span", null, [y(r(h(s).image.decorative) + " ", 1), b("span",
|
|
2242
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
2468
|
+
label: u(() => [b("span", null, [y(r(h(s).image.decorative) + " ", 1), b("span", fi, r(h(s).image.decorativeHint), 1)])]),
|
|
2469
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
2243
2470
|
"control-id": t,
|
|
2244
2471
|
"hide-label": "",
|
|
2245
2472
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2246
2473
|
"model-value": e.block.decorative === !0,
|
|
2247
2474
|
label: h(s).image.decorative,
|
|
2248
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
2475
|
+
"onUpdate:modelValue": n[4] ||= (e) => j("decorative", e)
|
|
2249
2476
|
}, null, 8, [
|
|
2250
2477
|
"control-id",
|
|
2251
2478
|
"model-value",
|
|
@@ -2255,72 +2482,89 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2255
2482
|
}, 8, ["label"])]),
|
|
2256
2483
|
_: 1
|
|
2257
2484
|
}, 8, ["label"]),
|
|
2258
|
-
p(
|
|
2485
|
+
p(Y, {
|
|
2259
2486
|
label: h(s).image.width,
|
|
2260
2487
|
class: "tpl:mb-3.5",
|
|
2261
2488
|
path: "width"
|
|
2262
2489
|
}, {
|
|
2263
2490
|
default: u(() => [b("select", {
|
|
2264
|
-
class: o(h(
|
|
2491
|
+
class: o(h(q)),
|
|
2265
2492
|
"data-testid": "image-width-mode",
|
|
2266
|
-
value:
|
|
2267
|
-
onChange: n[5] ||= (e) =>
|
|
2493
|
+
value: A.value,
|
|
2494
|
+
onChange: n[5] ||= (e) => M(e.target.value)
|
|
2268
2495
|
}, [
|
|
2269
|
-
b("option",
|
|
2270
|
-
n[
|
|
2271
|
-
n[
|
|
2272
|
-
n[
|
|
2273
|
-
b("option",
|
|
2274
|
-
], 42,
|
|
2496
|
+
b("option", mi, r(h(s).image.fullWidth), 1),
|
|
2497
|
+
n[16] ||= b("option", { value: "300" }, "300px", -1),
|
|
2498
|
+
n[17] ||= b("option", { value: "400" }, "400px", -1),
|
|
2499
|
+
n[18] ||= b("option", { value: "500" }, "500px", -1),
|
|
2500
|
+
b("option", hi, r(h(s).image.widthCustom), 1)
|
|
2501
|
+
], 42, pi), A.value === "custom" ? (a(), v("div", gi, [b("input", {
|
|
2275
2502
|
type: "number",
|
|
2276
2503
|
"data-testid": "image-width-input",
|
|
2277
|
-
class: o(h(
|
|
2278
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2504
|
+
class: o(h(K)),
|
|
2505
|
+
value: typeof e.block.width == "number" ? e.block.width : Ai,
|
|
2279
2506
|
min: "20",
|
|
2280
|
-
onInput: n[6] ||= (e) =>
|
|
2281
|
-
}, 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)]),
|
|
2509
|
+
_: 1
|
|
2510
|
+
}, 8, ["label"]),
|
|
2511
|
+
p(Y, {
|
|
2512
|
+
label: h(s).image.fluidOnMobile,
|
|
2513
|
+
class: "tpl:mb-3.5",
|
|
2514
|
+
path: "fluidOnMobile"
|
|
2515
|
+
}, {
|
|
2516
|
+
default: u(() => [b("select", {
|
|
2517
|
+
class: o(h(q)),
|
|
2518
|
+
"data-testid": "image-fluid-on-mobile",
|
|
2519
|
+
value: te.value,
|
|
2520
|
+
onChange: n[7] ||= (e) => N(e.target.value)
|
|
2521
|
+
}, [
|
|
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)]),
|
|
2282
2526
|
_: 1
|
|
2283
2527
|
}, 8, ["label"]),
|
|
2284
|
-
p(
|
|
2528
|
+
p(Y, {
|
|
2285
2529
|
class: "tpl:mb-3.5",
|
|
2286
2530
|
path: "height",
|
|
2287
2531
|
label: h(s).image.height
|
|
2288
2532
|
}, x({
|
|
2289
2533
|
default: u(() => [
|
|
2290
|
-
h(
|
|
2534
|
+
h(Se) ? (a(), v(S, { key: 0 }, [b("div", Si, [b("input", {
|
|
2291
2535
|
type: "number",
|
|
2292
2536
|
"data-testid": "image-locked-height-input",
|
|
2293
|
-
class: o(h(
|
|
2294
|
-
value:
|
|
2537
|
+
class: o(h(K)),
|
|
2538
|
+
value: we.value ?? h(Ce) ?? "",
|
|
2295
2539
|
min: "1",
|
|
2296
|
-
onInput: n[
|
|
2297
|
-
onBlur: n[
|
|
2298
|
-
}, null, 42,
|
|
2299
|
-
h(
|
|
2540
|
+
onInput: n[8] ||= (e) => Te(e.target.value),
|
|
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", {
|
|
2300
2544
|
key: 1,
|
|
2301
|
-
class: o(h(
|
|
2545
|
+
class: o(h(q)),
|
|
2302
2546
|
"data-testid": "image-height-mode",
|
|
2303
|
-
value:
|
|
2304
|
-
onChange: n[
|
|
2305
|
-
}, [b("option",
|
|
2306
|
-
!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", {
|
|
2307
2551
|
type: "number",
|
|
2308
2552
|
"data-testid": "image-height-input",
|
|
2309
|
-
class: o(h(
|
|
2553
|
+
class: o(h(K)),
|
|
2310
2554
|
value: e.block.height,
|
|
2311
2555
|
min: "20",
|
|
2312
|
-
onInput: n[
|
|
2313
|
-
}, 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)
|
|
2314
2558
|
]),
|
|
2315
2559
|
_: 2
|
|
2316
|
-
}, [h(
|
|
2560
|
+
}, [h(be) ? {
|
|
2317
2561
|
name: "label-actions",
|
|
2318
|
-
fn: u(() => [p(
|
|
2319
|
-
linked: h(
|
|
2562
|
+
fn: u(() => [p(wt, {
|
|
2563
|
+
linked: h(Se),
|
|
2320
2564
|
"link-label": h(s).image.lockAspectRatio,
|
|
2321
2565
|
"unlink-label": h(s).image.unlockAspectRatio,
|
|
2322
2566
|
testid: "image-aspect-lock",
|
|
2323
|
-
onToggle:
|
|
2567
|
+
onToggle: H
|
|
2324
2568
|
}, null, 8, [
|
|
2325
2569
|
"linked",
|
|
2326
2570
|
"link-label",
|
|
@@ -2328,25 +2572,25 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2328
2572
|
])]),
|
|
2329
2573
|
key: "0"
|
|
2330
2574
|
} : void 0]), 1032, ["label"]),
|
|
2331
|
-
p(
|
|
2575
|
+
p(jt, {
|
|
2332
2576
|
path: "borderRadius",
|
|
2333
2577
|
"model-value": e.block.borderRadius,
|
|
2334
2578
|
label: h(s).image.borderRadius,
|
|
2335
2579
|
"testid-prefix": "image",
|
|
2336
|
-
"onUpdate:modelValue":
|
|
2580
|
+
"onUpdate:modelValue": se
|
|
2337
2581
|
}, null, 8, ["model-value", "label"]),
|
|
2338
|
-
p(
|
|
2582
|
+
p(Ot, {
|
|
2339
2583
|
path: "border",
|
|
2340
2584
|
"model-value": e.block.border,
|
|
2341
2585
|
"testid-prefix": "image",
|
|
2342
|
-
"onUpdate:modelValue": n[
|
|
2586
|
+
"onUpdate:modelValue": n[12] ||= (e) => j("border", e)
|
|
2343
2587
|
}, null, 8, ["model-value"]),
|
|
2344
|
-
p(
|
|
2588
|
+
p(Y, {
|
|
2345
2589
|
label: h(s).title.align,
|
|
2346
2590
|
class: "tpl:mb-3.5",
|
|
2347
2591
|
path: "align"
|
|
2348
2592
|
}, {
|
|
2349
|
-
default: u(() => [p(
|
|
2593
|
+
default: u(() => [p(Q, {
|
|
2350
2594
|
options: [
|
|
2351
2595
|
{
|
|
2352
2596
|
value: "left",
|
|
@@ -2362,32 +2606,32 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2362
2606
|
}
|
|
2363
2607
|
],
|
|
2364
2608
|
"model-value": e.block.align,
|
|
2365
|
-
"onUpdate:modelValue": n[
|
|
2609
|
+
"onUpdate:modelValue": n[13] ||= (e) => j("align", e)
|
|
2366
2610
|
}, null, 8, ["options", "model-value"])]),
|
|
2367
2611
|
_: 1
|
|
2368
2612
|
}, 8, ["label"]),
|
|
2369
|
-
p(
|
|
2613
|
+
p(Y, {
|
|
2370
2614
|
label: h(s).image.linkUrl,
|
|
2371
2615
|
class: "tpl:mb-3.5",
|
|
2372
2616
|
path: "linkUrl"
|
|
2373
2617
|
}, {
|
|
2374
|
-
default: u(() => [p(
|
|
2618
|
+
default: u(() => [p(Z, {
|
|
2375
2619
|
"model-value": e.block.linkUrl || "",
|
|
2376
2620
|
type: "url",
|
|
2377
2621
|
placeholder: h(s).image.imageUrlPlaceholder,
|
|
2378
|
-
"onUpdate:modelValue": n[
|
|
2379
|
-
}, 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, {
|
|
2380
2624
|
key: 0,
|
|
2381
2625
|
path: "linkOpenInNewTab",
|
|
2382
2626
|
label: h(s).image.openInNewTab
|
|
2383
2627
|
}, {
|
|
2384
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
2628
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
2385
2629
|
"control-id": t,
|
|
2386
2630
|
"hide-label": "",
|
|
2387
2631
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2388
2632
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2389
2633
|
label: h(s).image.openInNewTab,
|
|
2390
|
-
"onUpdate:modelValue": n[
|
|
2634
|
+
"onUpdate:modelValue": n[15] ||= (e) => j("linkOpenInNewTab", e)
|
|
2391
2635
|
}, null, 8, [
|
|
2392
2636
|
"control-id",
|
|
2393
2637
|
"model-value",
|
|
@@ -2399,11 +2643,11 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2399
2643
|
}, 8, ["label"])
|
|
2400
2644
|
], 64));
|
|
2401
2645
|
}
|
|
2402
|
-
}),
|
|
2646
|
+
}), Ni = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Pi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Fi = [
|
|
2403
2647
|
"value",
|
|
2404
2648
|
"placeholder",
|
|
2405
2649
|
"onInput"
|
|
2406
|
-
],
|
|
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({
|
|
2407
2651
|
__name: "MenuToolbar",
|
|
2408
2652
|
props: {
|
|
2409
2653
|
block: {},
|
|
@@ -2411,7 +2655,7 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2411
2655
|
},
|
|
2412
2656
|
emits: ["update"],
|
|
2413
2657
|
setup(e, { emit: t }) {
|
|
2414
|
-
let n = e, i = t, { t: c } =
|
|
2658
|
+
let n = e, i = t, { t: c } = W(), l = m(() => [
|
|
2415
2659
|
{
|
|
2416
2660
|
key: "openInNewTab",
|
|
2417
2661
|
label: c.menu.openInNewTab
|
|
@@ -2428,12 +2672,12 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2428
2672
|
{
|
|
2429
2673
|
value: "left",
|
|
2430
2674
|
label: c.title.alignLeft,
|
|
2431
|
-
icon:
|
|
2675
|
+
icon: Le
|
|
2432
2676
|
},
|
|
2433
2677
|
{
|
|
2434
2678
|
value: "center",
|
|
2435
2679
|
label: c.title.alignCenter,
|
|
2436
|
-
icon:
|
|
2680
|
+
icon: Ie
|
|
2437
2681
|
},
|
|
2438
2682
|
{
|
|
2439
2683
|
value: "right",
|
|
@@ -2446,7 +2690,7 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2446
2690
|
}
|
|
2447
2691
|
function g() {
|
|
2448
2692
|
let e = {
|
|
2449
|
-
id:
|
|
2693
|
+
id: P(),
|
|
2450
2694
|
text: "",
|
|
2451
2695
|
url: "",
|
|
2452
2696
|
openInNewTab: !1,
|
|
@@ -2466,36 +2710,36 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2466
2710
|
i("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2467
2711
|
}
|
|
2468
2712
|
return (t, n) => (a(), v(S, null, [
|
|
2469
|
-
p(
|
|
2470
|
-
default: u(() => [b("div",
|
|
2713
|
+
p(Y, { label: h(c).menu.items }, {
|
|
2714
|
+
default: u(() => [b("div", Ni, [(a(!0), v(S, null, s(e.block.items, (t) => (a(), v("div", {
|
|
2471
2715
|
key: t.id,
|
|
2472
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"
|
|
2473
2717
|
}, [
|
|
2474
|
-
b("div",
|
|
2718
|
+
b("div", Pi, [p(Y, {
|
|
2475
2719
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
|
|
2476
2720
|
label: h(c).menu.text
|
|
2477
2721
|
}, {
|
|
2478
2722
|
default: u(() => [b("input", {
|
|
2479
2723
|
type: "text",
|
|
2480
|
-
class: o([h(
|
|
2724
|
+
class: o([h(q), "tpl:flex-1"]),
|
|
2481
2725
|
value: t.text,
|
|
2482
2726
|
placeholder: h(c).menu.text,
|
|
2483
2727
|
onInput: (e) => _(t.id, "text", e.target.value)
|
|
2484
|
-
}, null, 42,
|
|
2728
|
+
}, null, 42, Fi)]),
|
|
2485
2729
|
_: 2
|
|
2486
2730
|
}, 1032, ["path", "label"]), b("button", {
|
|
2487
|
-
class: o(h(
|
|
2731
|
+
class: o(h(rt)),
|
|
2488
2732
|
title: h(c).menu.removeItem,
|
|
2489
2733
|
onClick: (e) => x(t.id)
|
|
2490
|
-
}, [p(h(
|
|
2734
|
+
}, [p(h(ze), {
|
|
2491
2735
|
size: 14,
|
|
2492
2736
|
"stroke-width": 2
|
|
2493
|
-
})], 10,
|
|
2494
|
-
p(
|
|
2737
|
+
})], 10, Ii)]),
|
|
2738
|
+
p(Y, {
|
|
2495
2739
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
|
|
2496
2740
|
label: h(c).button.url
|
|
2497
2741
|
}, {
|
|
2498
|
-
default: u(() => [p(
|
|
2742
|
+
default: u(() => [p(Z, {
|
|
2499
2743
|
"model-value": t.url,
|
|
2500
2744
|
type: "url",
|
|
2501
2745
|
placeholder: h(c).menu.urlPlaceholder,
|
|
@@ -2507,12 +2751,12 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2507
2751
|
])]),
|
|
2508
2752
|
_: 2
|
|
2509
2753
|
}, 1032, ["path", "label"]),
|
|
2510
|
-
b("div",
|
|
2754
|
+
b("div", Li, [(a(!0), v(S, null, s(l.value, (e) => (a(), w(Y, {
|
|
2511
2755
|
key: e.key,
|
|
2512
2756
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
|
|
2513
2757
|
label: e.label
|
|
2514
2758
|
}, {
|
|
2515
|
-
"label-actions": u(({ controlId: n }) => [p(
|
|
2759
|
+
"label-actions": u(({ controlId: n }) => [p(X, {
|
|
2516
2760
|
"control-id": n,
|
|
2517
2761
|
"hide-label": "",
|
|
2518
2762
|
"model-value": t[e.key],
|
|
@@ -2526,11 +2770,11 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2526
2770
|
])]),
|
|
2527
2771
|
_: 2
|
|
2528
2772
|
}, 1032, ["path", "label"]))), 128))]),
|
|
2529
|
-
b("div",
|
|
2773
|
+
b("div", Ri, [p(Y, {
|
|
2530
2774
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
|
|
2531
2775
|
label: h(c).menu.color
|
|
2532
2776
|
}, {
|
|
2533
|
-
default: u(() => [p(
|
|
2777
|
+
default: u(() => [p(H, {
|
|
2534
2778
|
"swatch-only": "",
|
|
2535
2779
|
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2536
2780
|
"onUpdate:modelValue": (e) => _(t.id, "color", e)
|
|
@@ -2538,33 +2782,33 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2538
2782
|
_: 2
|
|
2539
2783
|
}, 1032, ["path", "label"])])
|
|
2540
2784
|
]))), 128)), b("button", {
|
|
2541
|
-
class: o(h(
|
|
2785
|
+
class: o(h(at)),
|
|
2542
2786
|
onClick: g
|
|
2543
|
-
}, [p(h(
|
|
2787
|
+
}, [p(h(U), {
|
|
2544
2788
|
size: 14,
|
|
2545
2789
|
"stroke-width": 2
|
|
2546
2790
|
}), y(" " + r(h(c).menu.addItem), 1)], 2)])]),
|
|
2547
2791
|
_: 1
|
|
2548
2792
|
}, 8, ["label"]),
|
|
2549
|
-
p(
|
|
2793
|
+
p(Y, {
|
|
2550
2794
|
path: "fontFamily",
|
|
2551
2795
|
label: h(c).menu.fontFamily
|
|
2552
2796
|
}, {
|
|
2553
2797
|
default: u(() => [b("select", {
|
|
2554
|
-
class: o(h(
|
|
2555
|
-
value: h(
|
|
2798
|
+
class: o(h(q)),
|
|
2799
|
+
value: h(mt)(e.block.fontFamily),
|
|
2556
2800
|
onChange: n[0] ||= (e) => f("fontFamily", e.target.value || void 0)
|
|
2557
|
-
}, [b("option",
|
|
2801
|
+
}, [b("option", Bi, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
2558
2802
|
key: e.value,
|
|
2559
2803
|
value: e.value
|
|
2560
|
-
}, r(e.label), 9,
|
|
2804
|
+
}, r(e.label), 9, Vi))), 128))], 42, zi)]),
|
|
2561
2805
|
_: 1
|
|
2562
2806
|
}, 8, ["label"]),
|
|
2563
|
-
p(
|
|
2807
|
+
p(Y, {
|
|
2564
2808
|
path: "fontSize",
|
|
2565
2809
|
label: h(c).menu.fontSize
|
|
2566
2810
|
}, {
|
|
2567
|
-
default: u(() => [p(
|
|
2811
|
+
default: u(() => [p(St, {
|
|
2568
2812
|
"model-value": e.block.fontSize,
|
|
2569
2813
|
min: 8,
|
|
2570
2814
|
max: 48,
|
|
@@ -2573,64 +2817,64 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2573
2817
|
}, null, 8, ["model-value"])]),
|
|
2574
2818
|
_: 1
|
|
2575
2819
|
}, 8, ["label"]),
|
|
2576
|
-
p(
|
|
2820
|
+
p(Y, {
|
|
2577
2821
|
path: "color",
|
|
2578
2822
|
label: h(c).menu.color
|
|
2579
2823
|
}, {
|
|
2580
|
-
default: u(() => [p(
|
|
2824
|
+
default: u(() => [p(H, {
|
|
2581
2825
|
"model-value": e.block.color ?? "",
|
|
2582
2826
|
"onUpdate:modelValue": n[2] ||= (e) => f("color", e || void 0)
|
|
2583
2827
|
}, null, 8, ["model-value"])]),
|
|
2584
2828
|
_: 1
|
|
2585
2829
|
}, 8, ["label"]),
|
|
2586
|
-
p(
|
|
2830
|
+
p(Y, {
|
|
2587
2831
|
path: "linkColor",
|
|
2588
2832
|
label: h(c).menu.linkColor
|
|
2589
2833
|
}, {
|
|
2590
|
-
default: u(() => [p(
|
|
2834
|
+
default: u(() => [p(H, {
|
|
2591
2835
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
2592
2836
|
"onUpdate:modelValue": n[3] ||= (e) => f("linkColor", e || void 0)
|
|
2593
2837
|
}, null, 8, ["model-value"])]),
|
|
2594
2838
|
_: 1
|
|
2595
2839
|
}, 8, ["label"]),
|
|
2596
|
-
p(
|
|
2840
|
+
p(Y, {
|
|
2597
2841
|
path: "textAlign",
|
|
2598
2842
|
label: h(c).menu.textAlign
|
|
2599
2843
|
}, {
|
|
2600
|
-
default: u(() => [p(
|
|
2844
|
+
default: u(() => [p(Q, {
|
|
2601
2845
|
options: d.value,
|
|
2602
2846
|
"model-value": e.block.textAlign,
|
|
2603
2847
|
"onUpdate:modelValue": n[4] ||= (e) => f("textAlign", e)
|
|
2604
2848
|
}, null, 8, ["options", "model-value"])]),
|
|
2605
2849
|
_: 1
|
|
2606
2850
|
}, 8, ["label"]),
|
|
2607
|
-
p(
|
|
2851
|
+
p(Y, {
|
|
2608
2852
|
path: "separator",
|
|
2609
2853
|
label: h(c).menu.separator
|
|
2610
2854
|
}, {
|
|
2611
2855
|
default: u(() => [b("input", {
|
|
2612
2856
|
type: "text",
|
|
2613
|
-
class: o(h(
|
|
2857
|
+
class: o(h(q)),
|
|
2614
2858
|
value: e.block.separator,
|
|
2615
2859
|
onInput: n[5] ||= (e) => f("separator", e.target.value)
|
|
2616
|
-
}, null, 42,
|
|
2860
|
+
}, null, 42, Hi)]),
|
|
2617
2861
|
_: 1
|
|
2618
2862
|
}, 8, ["label"]),
|
|
2619
|
-
p(
|
|
2863
|
+
p(Y, {
|
|
2620
2864
|
path: "separatorColor",
|
|
2621
2865
|
label: h(c).menu.separatorColor
|
|
2622
2866
|
}, {
|
|
2623
|
-
default: u(() => [p(
|
|
2867
|
+
default: u(() => [p(H, {
|
|
2624
2868
|
"model-value": e.block.separatorColor,
|
|
2625
2869
|
"onUpdate:modelValue": n[6] ||= (e) => f("separatorColor", e)
|
|
2626
2870
|
}, null, 8, ["model-value"])]),
|
|
2627
2871
|
_: 1
|
|
2628
2872
|
}, 8, ["label"]),
|
|
2629
|
-
p(
|
|
2873
|
+
p(Y, {
|
|
2630
2874
|
path: "spacing",
|
|
2631
2875
|
label: h(c).menu.spacing
|
|
2632
2876
|
}, {
|
|
2633
|
-
default: u(() => [p(
|
|
2877
|
+
default: u(() => [p(St, {
|
|
2634
2878
|
"model-value": e.block.spacing,
|
|
2635
2879
|
min: 0,
|
|
2636
2880
|
max: 50,
|
|
@@ -2641,33 +2885,33 @@ var Hr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ur = [
|
|
|
2641
2885
|
}, 8, ["label"])
|
|
2642
2886
|
], 64));
|
|
2643
2887
|
}
|
|
2644
|
-
}),
|
|
2888
|
+
}), Wi = { class: "tpl:flex tpl:items-stretch" }, Gi = ["value"], Ki = /* @__PURE__ */ D({
|
|
2645
2889
|
__name: "ParagraphToolbar",
|
|
2646
2890
|
props: { block: {} },
|
|
2647
2891
|
emits: ["update"],
|
|
2648
2892
|
setup(e, { emit: t }) {
|
|
2649
|
-
let n = t, { t: r } =
|
|
2650
|
-
return (t, i) => (a(),
|
|
2893
|
+
let n = t, { t: r } = W();
|
|
2894
|
+
return (t, i) => (a(), w(Y, {
|
|
2651
2895
|
label: h(r).paragraph.paragraphSpacing,
|
|
2652
2896
|
class: "tpl:mb-3.5",
|
|
2653
2897
|
"data-testid": "paragraph-spacing",
|
|
2654
2898
|
path: "paragraphSpacing"
|
|
2655
2899
|
}, {
|
|
2656
|
-
default: u(() => [b("div",
|
|
2900
|
+
default: u(() => [b("div", Wi, [b("input", {
|
|
2657
2901
|
type: "number",
|
|
2658
|
-
class: o(h(
|
|
2902
|
+
class: o(h(K)),
|
|
2659
2903
|
value: e.block.paragraphSpacing ?? h(M).paragraphGap,
|
|
2660
2904
|
min: "0",
|
|
2661
2905
|
max: "64",
|
|
2662
2906
|
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2663
|
-
}, null, 42,
|
|
2907
|
+
}, null, 42, Gi), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
2664
2908
|
_: 1
|
|
2665
2909
|
}, 8, ["label"]));
|
|
2666
2910
|
}
|
|
2667
2911
|
});
|
|
2668
2912
|
// src/utils/rebalanceColumnChildren.ts
|
|
2669
|
-
function
|
|
2670
|
-
let n =
|
|
2913
|
+
function qi(e, t) {
|
|
2914
|
+
let n = j(t);
|
|
2671
2915
|
if (e.length === n) return e;
|
|
2672
2916
|
if (e.length < n) {
|
|
2673
2917
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2677,21 +2921,21 @@ function xi(e, t) {
|
|
|
2677
2921
|
return [...r.slice(0, n - 1), a];
|
|
2678
2922
|
}
|
|
2679
2923
|
// src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2680
|
-
var
|
|
2924
|
+
var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
2681
2925
|
key: 2,
|
|
2682
2926
|
class: "tpl:mb-3.5"
|
|
2683
|
-
},
|
|
2927
|
+
}, Qi = {
|
|
2684
2928
|
key: 0,
|
|
2685
2929
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2686
|
-
},
|
|
2930
|
+
}, $i = {
|
|
2687
2931
|
key: 1,
|
|
2688
2932
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2689
|
-
},
|
|
2933
|
+
}, ea = /* @__PURE__ */ D({
|
|
2690
2934
|
__name: "SectionToolbar",
|
|
2691
2935
|
props: { block: {} },
|
|
2692
2936
|
emits: ["update"],
|
|
2693
2937
|
setup(e, { emit: t }) {
|
|
2694
|
-
let n = e, i = t, { t: c } =
|
|
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(() => [
|
|
2695
2939
|
{
|
|
2696
2940
|
value: "1",
|
|
2697
2941
|
label: c.section.column1
|
|
@@ -2704,6 +2948,10 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2704
2948
|
value: "3",
|
|
2705
2949
|
label: c.section.column3
|
|
2706
2950
|
},
|
|
2951
|
+
{
|
|
2952
|
+
value: "4",
|
|
2953
|
+
label: c.section.column4
|
|
2954
|
+
},
|
|
2707
2955
|
{
|
|
2708
2956
|
value: "1-2",
|
|
2709
2957
|
label: c.section.ratio12
|
|
@@ -2711,10 +2959,22 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2711
2959
|
{
|
|
2712
2960
|
value: "2-1",
|
|
2713
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
|
|
2714
2974
|
}
|
|
2715
2975
|
]);
|
|
2716
2976
|
function D(e) {
|
|
2717
|
-
let t = e.target.value, r =
|
|
2977
|
+
let t = e.target.value, r = qi(n.block.children, t);
|
|
2718
2978
|
i("update", {
|
|
2719
2979
|
columns: t,
|
|
2720
2980
|
children: r
|
|
@@ -2726,42 +2986,45 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2726
2986
|
function k(e) {
|
|
2727
2987
|
i("update", { borderRadius: e });
|
|
2728
2988
|
}
|
|
2729
|
-
function
|
|
2730
|
-
i("update", { wrapper:
|
|
2989
|
+
function A(e) {
|
|
2990
|
+
e ? i("update", { wrapper: { padding: {
|
|
2731
2991
|
top: 20,
|
|
2732
2992
|
right: 20,
|
|
2733
2993
|
bottom: 20,
|
|
2734
2994
|
left: 20
|
|
2735
|
-
} } :
|
|
2995
|
+
} } }) : i("update", Wn(n.block));
|
|
2736
2996
|
}
|
|
2737
|
-
function
|
|
2997
|
+
function te(e) {
|
|
2998
|
+
i("update", Un(n.block, e));
|
|
2999
|
+
}
|
|
3000
|
+
function j(e) {
|
|
2738
3001
|
i("update", { wrapper: {
|
|
2739
3002
|
...n.block.wrapper,
|
|
2740
3003
|
...e
|
|
2741
3004
|
} });
|
|
2742
3005
|
}
|
|
2743
|
-
function
|
|
2744
|
-
|
|
3006
|
+
function M(e) {
|
|
3007
|
+
j({ padding: e });
|
|
2745
3008
|
}
|
|
2746
|
-
function
|
|
2747
|
-
|
|
3009
|
+
function ne(e) {
|
|
3010
|
+
j({ borderRadius: e });
|
|
2748
3011
|
}
|
|
2749
3012
|
return (t, n) => (a(), v(S, null, [
|
|
2750
|
-
b("div",
|
|
2751
|
-
class: o(h(
|
|
3013
|
+
b("div", Ji, [b("label", { class: o(h(J)) }, r(h(c).section.columns), 3), b("select", {
|
|
3014
|
+
class: o(h(q)),
|
|
2752
3015
|
value: e.block.columns,
|
|
2753
3016
|
onChange: D
|
|
2754
|
-
}, [(a(!0), v(S, null, s(
|
|
3017
|
+
}, [(a(!0), v(S, null, s(T.value, (e) => (a(), v("option", {
|
|
2755
3018
|
key: e.value,
|
|
2756
3019
|
value: e.value
|
|
2757
|
-
}, r(e.label), 9,
|
|
2758
|
-
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, {
|
|
2759
3022
|
key: 0,
|
|
2760
3023
|
class: "tpl:mb-3.5",
|
|
2761
3024
|
path: "stackOnMobile",
|
|
2762
3025
|
label: h(c).section.stackOnMobile
|
|
2763
3026
|
}, {
|
|
2764
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
3027
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
2765
3028
|
"control-id": t,
|
|
2766
3029
|
"hide-label": "",
|
|
2767
3030
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
@@ -2775,7 +3038,7 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2775
3038
|
])]),
|
|
2776
3039
|
_: 1
|
|
2777
3040
|
}, 8, ["label"])),
|
|
2778
|
-
p(
|
|
3041
|
+
p(jt, {
|
|
2779
3042
|
path: "borderRadius",
|
|
2780
3043
|
"model-value": e.block.borderRadius,
|
|
2781
3044
|
label: h(c).section.borderRadius,
|
|
@@ -2783,26 +3046,26 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2783
3046
|
"testid-prefix": "section",
|
|
2784
3047
|
"onUpdate:modelValue": k
|
|
2785
3048
|
}, null, 8, ["model-value", "label"]),
|
|
2786
|
-
|
|
3049
|
+
C.value ? g("", !0) : (a(), w(Ot, {
|
|
2787
3050
|
key: 1,
|
|
2788
3051
|
path: "border",
|
|
2789
3052
|
"model-value": e.block.border,
|
|
2790
3053
|
"testid-prefix": "section",
|
|
2791
3054
|
"onUpdate:modelValue": n[1] ||= (e) => i("update", { border: e })
|
|
2792
3055
|
}, null, 8, ["model-value"])),
|
|
2793
|
-
_.value ? (a(), v("div",
|
|
2794
|
-
p(
|
|
3056
|
+
_.value ? (a(), v("div", Zi, [
|
|
3057
|
+
p(Y, {
|
|
2795
3058
|
path: "wrapper",
|
|
2796
3059
|
label: h(c).section.wrapperEnable
|
|
2797
3060
|
}, {
|
|
2798
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
3061
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
2799
3062
|
"control-id": t,
|
|
2800
3063
|
"hide-label": "",
|
|
2801
3064
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2802
3065
|
"model-value": !!e.block.wrapper,
|
|
2803
3066
|
label: h(c).section.wrapperEnable,
|
|
2804
3067
|
disabled: y.value,
|
|
2805
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
3068
|
+
"onUpdate:modelValue": n[2] ||= (e) => A(e)
|
|
2806
3069
|
}, null, 8, [
|
|
2807
3070
|
"control-id",
|
|
2808
3071
|
"model-value",
|
|
@@ -2811,32 +3074,51 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2811
3074
|
])]),
|
|
2812
3075
|
_: 1
|
|
2813
3076
|
}, 8, ["label"]),
|
|
2814
|
-
x.value ? (a(), v("p",
|
|
2815
|
-
e.block.wrapper ? (a(), v("div",
|
|
2816
|
-
|
|
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"]),
|
|
3098
|
+
b("div", null, [p(Y, {
|
|
2817
3099
|
path: "wrapper.backgroundColor",
|
|
2818
3100
|
label: h(c).blockSettings.color
|
|
2819
3101
|
}, {
|
|
2820
|
-
default: u(() => [p(
|
|
3102
|
+
default: u(() => [p(H, {
|
|
2821
3103
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2822
3104
|
"allow-transparent": "",
|
|
2823
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
3105
|
+
"onUpdate:modelValue": n[3] ||= (e) => j({ backgroundColor: e })
|
|
2824
3106
|
}, null, 8, ["model-value"])]),
|
|
2825
3107
|
_: 1
|
|
2826
3108
|
}, 8, ["label"])]),
|
|
2827
|
-
p(
|
|
3109
|
+
p(Y, {
|
|
2828
3110
|
path: "wrapper.backgroundImage",
|
|
2829
3111
|
label: h(c).blockSettings.backgroundImage
|
|
2830
3112
|
}, {
|
|
2831
|
-
default: u(() => [p(
|
|
3113
|
+
default: u(() => [p(Cn, {
|
|
2832
3114
|
"hide-label": "",
|
|
2833
3115
|
"model-value": e.block.wrapper.backgroundImage,
|
|
2834
3116
|
"testid-prefix": "section-wrapper",
|
|
2835
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
3117
|
+
"onUpdate:modelValue": n[4] ||= (e) => j({ backgroundImage: e })
|
|
2836
3118
|
}, null, 8, ["model-value"])]),
|
|
2837
3119
|
_: 1
|
|
2838
3120
|
}, 8, ["label"]),
|
|
2839
|
-
p(
|
|
3121
|
+
p(fn, {
|
|
2840
3122
|
path: "wrapper.padding",
|
|
2841
3123
|
label: h(c).blockSettings.padding,
|
|
2842
3124
|
"model-value": e.block.wrapper.padding ?? {
|
|
@@ -2845,32 +3127,32 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2845
3127
|
bottom: 0,
|
|
2846
3128
|
left: 0
|
|
2847
3129
|
},
|
|
2848
|
-
"onUpdate:modelValue":
|
|
3130
|
+
"onUpdate:modelValue": M
|
|
2849
3131
|
}, null, 8, ["label", "model-value"]),
|
|
2850
|
-
p(
|
|
3132
|
+
p(jt, {
|
|
2851
3133
|
path: "wrapper.borderRadius",
|
|
2852
3134
|
"model-value": e.block.wrapper.borderRadius,
|
|
2853
3135
|
label: h(c).section.borderRadius,
|
|
2854
3136
|
max: 50,
|
|
2855
3137
|
"testid-prefix": "section-wrapper",
|
|
2856
|
-
"onUpdate:modelValue":
|
|
3138
|
+
"onUpdate:modelValue": ne
|
|
2857
3139
|
}, null, 8, ["model-value", "label"])
|
|
2858
3140
|
])) : g("", !0)
|
|
2859
3141
|
])) : g("", !0)
|
|
2860
3142
|
], 64));
|
|
2861
3143
|
}
|
|
2862
|
-
}),
|
|
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({
|
|
2863
3145
|
__name: "SocialToolbar",
|
|
2864
3146
|
props: { block: {} },
|
|
2865
3147
|
emits: ["update"],
|
|
2866
3148
|
setup(e, { emit: t }) {
|
|
2867
|
-
let n = e, i = t, { t: c } =
|
|
3149
|
+
let n = e, i = t, { t: c } = W();
|
|
2868
3150
|
function l(e, t) {
|
|
2869
3151
|
i("update", { [e]: t });
|
|
2870
3152
|
}
|
|
2871
3153
|
function d() {
|
|
2872
3154
|
let e = {
|
|
2873
|
-
id:
|
|
3155
|
+
id: P(),
|
|
2874
3156
|
platform: "facebook",
|
|
2875
3157
|
url: ""
|
|
2876
3158
|
};
|
|
@@ -2887,35 +3169,35 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2887
3169
|
i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2888
3170
|
}
|
|
2889
3171
|
return (t, n) => (a(), v(S, null, [
|
|
2890
|
-
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", {
|
|
2891
3173
|
key: e.id,
|
|
2892
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"
|
|
2893
|
-
}, [b("div",
|
|
3175
|
+
}, [b("div", ra, [p(Y, {
|
|
2894
3176
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
|
|
2895
3177
|
label: h(c).social.icons
|
|
2896
3178
|
}, {
|
|
2897
3179
|
default: u(() => [b("select", {
|
|
2898
3180
|
"data-testid": "social-platform-select",
|
|
2899
|
-
class: o([h(
|
|
3181
|
+
class: o([h(q), "tpl:flex-1"]),
|
|
2900
3182
|
value: e.platform,
|
|
2901
3183
|
onChange: (t) => f(e.id, "platform", t.target.value)
|
|
2902
3184
|
}, [(a(!0), v(S, null, s(h(B), (e) => (a(), v("option", {
|
|
2903
3185
|
key: e,
|
|
2904
3186
|
value: e
|
|
2905
|
-
}, r(h(c).social.platforms[e]), 9,
|
|
3187
|
+
}, r(h(c).social.platforms[e]), 9, aa))), 128))], 42, ia)]),
|
|
2906
3188
|
_: 2
|
|
2907
3189
|
}, 1032, ["path", "label"]), b("button", {
|
|
2908
|
-
class: o(h(
|
|
3190
|
+
class: o(h(rt)),
|
|
2909
3191
|
title: h(c).social.removeIcon,
|
|
2910
3192
|
onClick: (t) => m(e.id)
|
|
2911
|
-
}, [p(h(
|
|
3193
|
+
}, [p(h(ze), {
|
|
2912
3194
|
size: 14,
|
|
2913
3195
|
"stroke-width": 2
|
|
2914
|
-
})], 10,
|
|
3196
|
+
})], 10, oa)]), p(Y, {
|
|
2915
3197
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
|
|
2916
3198
|
label: h(c).button.url
|
|
2917
3199
|
}, {
|
|
2918
|
-
default: u(() => [p(
|
|
3200
|
+
default: u(() => [p(Z, {
|
|
2919
3201
|
"model-value": e.url,
|
|
2920
3202
|
type: "url",
|
|
2921
3203
|
placeholder: h(c).social.urlPlaceholder,
|
|
@@ -2927,54 +3209,54 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2927
3209
|
])]),
|
|
2928
3210
|
_: 2
|
|
2929
3211
|
}, 1032, ["path", "label"])]))), 128)), b("button", {
|
|
2930
|
-
class: o(h(
|
|
3212
|
+
class: o(h(at)),
|
|
2931
3213
|
onClick: d
|
|
2932
|
-
}, [p(h(
|
|
3214
|
+
}, [p(h(U), {
|
|
2933
3215
|
size: 14,
|
|
2934
3216
|
"stroke-width": 2
|
|
2935
3217
|
}), y(" " + r(h(c).social.addIcon), 1)], 2)])]),
|
|
2936
|
-
p(
|
|
3218
|
+
p(Y, {
|
|
2937
3219
|
label: h(c).social.style,
|
|
2938
3220
|
class: "tpl:mb-3.5",
|
|
2939
3221
|
path: "iconStyle"
|
|
2940
3222
|
}, {
|
|
2941
3223
|
default: u(() => [b("select", {
|
|
2942
|
-
class: o(h(
|
|
3224
|
+
class: o(h(q)),
|
|
2943
3225
|
value: e.block.iconStyle,
|
|
2944
3226
|
onChange: n[0] ||= (e) => l("iconStyle", e.target.value)
|
|
2945
3227
|
}, [
|
|
2946
|
-
b("option",
|
|
2947
|
-
b("option",
|
|
2948
|
-
b("option",
|
|
2949
|
-
b("option",
|
|
2950
|
-
b("option",
|
|
2951
|
-
b("option",
|
|
2952
|
-
], 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)]),
|
|
2953
3235
|
_: 1
|
|
2954
3236
|
}, 8, ["label"]),
|
|
2955
|
-
p(
|
|
3237
|
+
p(Y, {
|
|
2956
3238
|
label: h(c).social.color,
|
|
2957
3239
|
class: "tpl:mb-3.5",
|
|
2958
3240
|
path: "iconTone"
|
|
2959
3241
|
}, {
|
|
2960
3242
|
default: u(() => [b("select", {
|
|
2961
3243
|
"data-testid": "social-tone-select",
|
|
2962
|
-
class: o(h(
|
|
3244
|
+
class: o(h(q)),
|
|
2963
3245
|
value: e.block.iconTone ?? "brand",
|
|
2964
3246
|
onChange: n[1] ||= (e) => l("iconTone", e.target.value)
|
|
2965
3247
|
}, [
|
|
2966
|
-
b("option",
|
|
2967
|
-
b("option",
|
|
2968
|
-
b("option",
|
|
2969
|
-
], 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)]),
|
|
2970
3252
|
_: 1
|
|
2971
3253
|
}, 8, ["label"]),
|
|
2972
|
-
p(
|
|
3254
|
+
p(Y, {
|
|
2973
3255
|
label: h(c).social.size,
|
|
2974
3256
|
class: "tpl:mb-3.5",
|
|
2975
3257
|
path: "iconSize"
|
|
2976
3258
|
}, {
|
|
2977
|
-
default: u(() => [p(
|
|
3259
|
+
default: u(() => [p(Q, {
|
|
2978
3260
|
options: [
|
|
2979
3261
|
{
|
|
2980
3262
|
value: "small",
|
|
@@ -2994,37 +3276,37 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
2994
3276
|
}, null, 8, ["options", "model-value"])]),
|
|
2995
3277
|
_: 1
|
|
2996
3278
|
}, 8, ["label"]),
|
|
2997
|
-
p(
|
|
3279
|
+
p(Y, {
|
|
2998
3280
|
label: h(c).social.spacing,
|
|
2999
3281
|
class: "tpl:mb-3.5",
|
|
3000
3282
|
path: "spacing"
|
|
3001
3283
|
}, {
|
|
3002
|
-
default: u(() => [b("div",
|
|
3284
|
+
default: u(() => [b("div", va, [b("input", {
|
|
3003
3285
|
type: "number",
|
|
3004
|
-
class: o(h(
|
|
3286
|
+
class: o(h(K)),
|
|
3005
3287
|
value: e.block.spacing,
|
|
3006
3288
|
min: "0",
|
|
3007
3289
|
max: "50",
|
|
3008
3290
|
onInput: n[3] ||= (e) => l("spacing", Number(e.target.value))
|
|
3009
|
-
}, null, 42,
|
|
3291
|
+
}, null, 42, ya), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
3010
3292
|
_: 1
|
|
3011
3293
|
}, 8, ["label"]),
|
|
3012
|
-
p(
|
|
3294
|
+
p(Y, {
|
|
3013
3295
|
label: h(c).social.align,
|
|
3014
3296
|
class: "tpl:mb-3.5",
|
|
3015
3297
|
path: "align"
|
|
3016
3298
|
}, {
|
|
3017
|
-
default: u(() => [p(
|
|
3299
|
+
default: u(() => [p(Q, {
|
|
3018
3300
|
options: [
|
|
3019
3301
|
{
|
|
3020
3302
|
value: "left",
|
|
3021
3303
|
label: h(c).title.alignLeft,
|
|
3022
|
-
icon: h(
|
|
3304
|
+
icon: h(Le)
|
|
3023
3305
|
},
|
|
3024
3306
|
{
|
|
3025
3307
|
value: "center",
|
|
3026
3308
|
label: h(c).title.alignCenter,
|
|
3027
|
-
icon: h(
|
|
3309
|
+
icon: h(Ie)
|
|
3028
3310
|
},
|
|
3029
3311
|
{
|
|
3030
3312
|
value: "right",
|
|
@@ -3039,36 +3321,36 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3039
3321
|
}, 8, ["label"])
|
|
3040
3322
|
], 64));
|
|
3041
3323
|
}
|
|
3042
|
-
}),
|
|
3324
|
+
}), xa = { class: "tpl:flex tpl:items-stretch" }, Sa = ["value"], Ca = ["value"], wa = /* @__PURE__ */ D({
|
|
3043
3325
|
__name: "SpacerToolbar",
|
|
3044
3326
|
props: { block: {} },
|
|
3045
3327
|
emits: ["update"],
|
|
3046
3328
|
setup(e, { emit: t }) {
|
|
3047
|
-
let n = t, { t: r } =
|
|
3048
|
-
return (t, i) => (a(),
|
|
3329
|
+
let n = t, { t: r } = W();
|
|
3330
|
+
return (t, i) => (a(), w(Y, {
|
|
3049
3331
|
label: h(r).spacer.height,
|
|
3050
3332
|
class: "tpl:mb-3.5",
|
|
3051
3333
|
path: "height"
|
|
3052
3334
|
}, {
|
|
3053
|
-
default: u(() => [b("div",
|
|
3335
|
+
default: u(() => [b("div", xa, [b("input", {
|
|
3054
3336
|
type: "number",
|
|
3055
|
-
class: o(h(
|
|
3337
|
+
class: o(h(K)),
|
|
3056
3338
|
value: e.block.height,
|
|
3057
3339
|
min: "10",
|
|
3058
3340
|
max: "100",
|
|
3059
3341
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3060
|
-
}, null, 42,
|
|
3342
|
+
}, null, 42, Sa), b("span", { class: o(h(G)) }, "px", 2)]), b("input", {
|
|
3061
3343
|
type: "range",
|
|
3062
3344
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
3063
3345
|
value: e.block.height,
|
|
3064
3346
|
min: "10",
|
|
3065
3347
|
max: "100",
|
|
3066
3348
|
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3067
|
-
}, null, 40,
|
|
3349
|
+
}, null, 40, Ca)]),
|
|
3068
3350
|
_: 1
|
|
3069
3351
|
}, 8, ["label"]));
|
|
3070
3352
|
}
|
|
3071
|
-
}),
|
|
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({
|
|
3072
3354
|
__name: "TableToolbar",
|
|
3073
3355
|
props: {
|
|
3074
3356
|
block: {},
|
|
@@ -3076,15 +3358,15 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3076
3358
|
},
|
|
3077
3359
|
emits: ["update"],
|
|
3078
3360
|
setup(e, { emit: t }) {
|
|
3079
|
-
let n = e, i = t, { t: c } =
|
|
3361
|
+
let n = e, i = t, { t: c } = W(), l = m(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
3080
3362
|
function d(e, t) {
|
|
3081
3363
|
i("update", { [e]: t });
|
|
3082
3364
|
}
|
|
3083
3365
|
function f() {
|
|
3084
3366
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
3085
|
-
id:
|
|
3367
|
+
id: P(),
|
|
3086
3368
|
cells: Array.from({ length: e }, () => ({
|
|
3087
|
-
id:
|
|
3369
|
+
id: P(),
|
|
3088
3370
|
content: ""
|
|
3089
3371
|
}))
|
|
3090
3372
|
};
|
|
@@ -3097,7 +3379,7 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3097
3379
|
let e = n.block.rows.map((e) => ({
|
|
3098
3380
|
...e,
|
|
3099
3381
|
cells: [...e.cells, {
|
|
3100
|
-
id:
|
|
3382
|
+
id: P(),
|
|
3101
3383
|
content: ""
|
|
3102
3384
|
}]
|
|
3103
3385
|
}));
|
|
@@ -3111,47 +3393,47 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3111
3393
|
i("update", { rows: t });
|
|
3112
3394
|
}
|
|
3113
3395
|
return (t, n) => (a(), v(S, null, [
|
|
3114
|
-
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, [
|
|
3115
3397
|
b("button", {
|
|
3116
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",
|
|
3117
3399
|
disabled: e.block.rows.length <= 1,
|
|
3118
3400
|
onClick: n[0] ||= (t) => _(e.block.rows[e.block.rows.length - 1].id)
|
|
3119
|
-
}, [p(h(
|
|
3401
|
+
}, [p(h(Ee), {
|
|
3120
3402
|
size: 12,
|
|
3121
3403
|
"stroke-width": 2
|
|
3122
|
-
})], 8,
|
|
3123
|
-
b("span",
|
|
3404
|
+
})], 8, Aa),
|
|
3405
|
+
b("span", ja, r(e.block.rows.length), 1),
|
|
3124
3406
|
b("button", {
|
|
3125
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)]",
|
|
3126
3408
|
onClick: f
|
|
3127
|
-
}, [p(h(
|
|
3409
|
+
}, [p(h(U), {
|
|
3128
3410
|
size: 12,
|
|
3129
3411
|
"stroke-width": 2
|
|
3130
3412
|
})])
|
|
3131
|
-
])]), b("div",
|
|
3413
|
+
])]), b("div", Ma, [b("span", Na, r(h(c).table.columns), 1), b("div", Pa, [
|
|
3132
3414
|
b("button", {
|
|
3133
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",
|
|
3134
3416
|
disabled: l.value <= 1,
|
|
3135
3417
|
onClick: n[1] ||= (e) => x(l.value - 1)
|
|
3136
|
-
}, [p(h(
|
|
3418
|
+
}, [p(h(Ee), {
|
|
3137
3419
|
size: 12,
|
|
3138
3420
|
"stroke-width": 2
|
|
3139
|
-
})], 8,
|
|
3140
|
-
b("span",
|
|
3421
|
+
})], 8, Fa),
|
|
3422
|
+
b("span", Ia, r(l.value), 1),
|
|
3141
3423
|
b("button", {
|
|
3142
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)]",
|
|
3143
3425
|
onClick: y
|
|
3144
|
-
}, [p(h(
|
|
3426
|
+
}, [p(h(U), {
|
|
3145
3427
|
size: 12,
|
|
3146
3428
|
"stroke-width": 2
|
|
3147
3429
|
})])
|
|
3148
3430
|
])])])]),
|
|
3149
|
-
p(
|
|
3431
|
+
p(Y, {
|
|
3150
3432
|
class: "tpl:mb-3.5",
|
|
3151
3433
|
path: "hasHeaderRow",
|
|
3152
3434
|
label: h(c).table.hasHeaderRow
|
|
3153
3435
|
}, {
|
|
3154
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
3436
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
3155
3437
|
"control-id": t,
|
|
3156
3438
|
"hide-label": "",
|
|
3157
3439
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -3165,15 +3447,15 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3165
3447
|
])]),
|
|
3166
3448
|
_: 1
|
|
3167
3449
|
}, 8, ["label"]),
|
|
3168
|
-
e.block.hasHeaderRow ? (a(),
|
|
3450
|
+
e.block.hasHeaderRow ? (a(), w(Y, {
|
|
3169
3451
|
key: 0,
|
|
3170
3452
|
label: h(c).table.headerBackgroundColor,
|
|
3171
3453
|
class: "tpl:mb-3.5",
|
|
3172
3454
|
path: "headerBackgroundColor"
|
|
3173
3455
|
}, {
|
|
3174
|
-
default: u(() => [p(
|
|
3456
|
+
default: u(() => [p(H, {
|
|
3175
3457
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
3176
|
-
"seed-color": h(
|
|
3458
|
+
"seed-color": h(ot),
|
|
3177
3459
|
placeholder: h(c).table.noHeaderBg,
|
|
3178
3460
|
"onUpdate:modelValue": n[3] ||= (e) => d("headerBackgroundColor", e || null)
|
|
3179
3461
|
}, null, 8, [
|
|
@@ -3183,104 +3465,104 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3183
3465
|
])]),
|
|
3184
3466
|
_: 1
|
|
3185
3467
|
}, 8, ["label"])) : g("", !0),
|
|
3186
|
-
p(
|
|
3468
|
+
p(Y, {
|
|
3187
3469
|
label: h(c).table.borderColor,
|
|
3188
3470
|
class: "tpl:mb-3.5",
|
|
3189
3471
|
path: "borderColor"
|
|
3190
3472
|
}, {
|
|
3191
|
-
default: u(() => [p(
|
|
3473
|
+
default: u(() => [p(H, {
|
|
3192
3474
|
"model-value": e.block.borderColor,
|
|
3193
3475
|
"onUpdate:modelValue": n[4] ||= (e) => d("borderColor", e)
|
|
3194
3476
|
}, null, 8, ["model-value"])]),
|
|
3195
3477
|
_: 1
|
|
3196
3478
|
}, 8, ["label"]),
|
|
3197
|
-
p(
|
|
3479
|
+
p(Y, {
|
|
3198
3480
|
label: h(c).table.borderWidth,
|
|
3199
3481
|
class: "tpl:mb-3.5",
|
|
3200
3482
|
path: "borderWidth"
|
|
3201
3483
|
}, {
|
|
3202
|
-
default: u(() => [b("div",
|
|
3484
|
+
default: u(() => [b("div", La, [b("input", {
|
|
3203
3485
|
type: "number",
|
|
3204
|
-
class: o(h(
|
|
3486
|
+
class: o(h(K)),
|
|
3205
3487
|
value: e.block.borderWidth,
|
|
3206
3488
|
min: "0",
|
|
3207
3489
|
max: "10",
|
|
3208
3490
|
onInput: n[5] ||= (e) => d("borderWidth", Number(e.target.value))
|
|
3209
|
-
}, null, 42,
|
|
3491
|
+
}, null, 42, Ra), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
3210
3492
|
_: 1
|
|
3211
3493
|
}, 8, ["label"]),
|
|
3212
|
-
p(
|
|
3494
|
+
p(Y, {
|
|
3213
3495
|
label: h(c).table.cellPadding,
|
|
3214
3496
|
class: "tpl:mb-3.5",
|
|
3215
3497
|
path: "cellPadding"
|
|
3216
3498
|
}, {
|
|
3217
|
-
default: u(() => [b("div",
|
|
3499
|
+
default: u(() => [b("div", za, [b("input", {
|
|
3218
3500
|
type: "number",
|
|
3219
|
-
class: o(h(
|
|
3501
|
+
class: o(h(K)),
|
|
3220
3502
|
value: e.block.cellPadding,
|
|
3221
3503
|
min: "0",
|
|
3222
3504
|
max: "30",
|
|
3223
3505
|
onInput: n[6] ||= (e) => d("cellPadding", Number(e.target.value))
|
|
3224
|
-
}, null, 42,
|
|
3506
|
+
}, null, 42, Ba), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
3225
3507
|
_: 1
|
|
3226
3508
|
}, 8, ["label"]),
|
|
3227
|
-
p(
|
|
3509
|
+
p(Y, {
|
|
3228
3510
|
label: h(c).table.fontFamily,
|
|
3229
3511
|
class: "tpl:mb-3.5",
|
|
3230
3512
|
path: "fontFamily"
|
|
3231
3513
|
}, {
|
|
3232
3514
|
default: u(() => [b("select", {
|
|
3233
|
-
class: o(h(
|
|
3234
|
-
value: h(
|
|
3515
|
+
class: o(h(q)),
|
|
3516
|
+
value: h(mt)(e.block.fontFamily),
|
|
3235
3517
|
onChange: n[7] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
3236
|
-
}, [b("option",
|
|
3518
|
+
}, [b("option", Ha, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3237
3519
|
key: e.value,
|
|
3238
3520
|
value: e.value
|
|
3239
|
-
}, r(e.label), 9,
|
|
3521
|
+
}, r(e.label), 9, Ua))), 128))], 42, Va)]),
|
|
3240
3522
|
_: 1
|
|
3241
3523
|
}, 8, ["label"]),
|
|
3242
|
-
p(
|
|
3524
|
+
p(Y, {
|
|
3243
3525
|
label: h(c).table.fontSize,
|
|
3244
3526
|
class: "tpl:mb-3.5",
|
|
3245
3527
|
path: "fontSize"
|
|
3246
3528
|
}, {
|
|
3247
|
-
default: u(() => [b("div",
|
|
3529
|
+
default: u(() => [b("div", Wa, [b("input", {
|
|
3248
3530
|
type: "number",
|
|
3249
|
-
class: o(h(
|
|
3531
|
+
class: o(h(K)),
|
|
3250
3532
|
value: e.block.fontSize,
|
|
3251
3533
|
min: "10",
|
|
3252
3534
|
max: "32",
|
|
3253
3535
|
onInput: n[8] ||= (e) => d("fontSize", Number(e.target.value))
|
|
3254
|
-
}, null, 42,
|
|
3536
|
+
}, null, 42, Ga), b("span", { class: o(h(G)) }, "px", 2)])]),
|
|
3255
3537
|
_: 1
|
|
3256
3538
|
}, 8, ["label"]),
|
|
3257
|
-
p(
|
|
3539
|
+
p(Y, {
|
|
3258
3540
|
label: h(c).table.color,
|
|
3259
3541
|
class: "tpl:mb-3.5",
|
|
3260
3542
|
path: "color"
|
|
3261
3543
|
}, {
|
|
3262
|
-
default: u(() => [p(
|
|
3544
|
+
default: u(() => [p(H, {
|
|
3263
3545
|
"model-value": e.block.color ?? "",
|
|
3264
3546
|
"onUpdate:modelValue": n[9] ||= (e) => d("color", e || void 0)
|
|
3265
3547
|
}, null, 8, ["model-value"])]),
|
|
3266
3548
|
_: 1
|
|
3267
3549
|
}, 8, ["label"]),
|
|
3268
|
-
p(
|
|
3550
|
+
p(Y, {
|
|
3269
3551
|
label: h(c).table.textAlign,
|
|
3270
3552
|
class: "tpl:mb-3.5",
|
|
3271
3553
|
path: "textAlign"
|
|
3272
3554
|
}, {
|
|
3273
|
-
default: u(() => [p(
|
|
3555
|
+
default: u(() => [p(Q, {
|
|
3274
3556
|
options: [
|
|
3275
3557
|
{
|
|
3276
3558
|
value: "left",
|
|
3277
3559
|
label: h(c).title.alignLeft,
|
|
3278
|
-
icon: h(
|
|
3560
|
+
icon: h(Le)
|
|
3279
3561
|
},
|
|
3280
3562
|
{
|
|
3281
3563
|
value: "center",
|
|
3282
3564
|
label: h(c).title.alignCenter,
|
|
3283
|
-
icon: h(
|
|
3565
|
+
icon: h(Ie)
|
|
3284
3566
|
},
|
|
3285
3567
|
{
|
|
3286
3568
|
value: "right",
|
|
@@ -3295,7 +3577,7 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3295
3577
|
}, 8, ["label"])
|
|
3296
3578
|
], 64));
|
|
3297
3579
|
}
|
|
3298
|
-
}),
|
|
3580
|
+
}), qa = ["value"], Ja = { value: 1 }, Ya = { value: 2 }, Xa = { value: 3 }, Za = { value: 4 }, Qa = ["value"], $a = { value: "" }, eo = ["value"], to = /* @__PURE__ */ D({
|
|
3299
3581
|
__name: "TitleToolbar",
|
|
3300
3582
|
props: {
|
|
3301
3583
|
block: {},
|
|
@@ -3303,70 +3585,70 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3303
3585
|
},
|
|
3304
3586
|
emits: ["update"],
|
|
3305
3587
|
setup(e, { emit: t }) {
|
|
3306
|
-
let n = t, { t: i } =
|
|
3588
|
+
let n = t, { t: i } = W();
|
|
3307
3589
|
function c(e, t) {
|
|
3308
3590
|
n("update", { [e]: t });
|
|
3309
3591
|
}
|
|
3310
3592
|
return (t, n) => (a(), v(S, null, [
|
|
3311
|
-
p(
|
|
3593
|
+
p(Y, {
|
|
3312
3594
|
label: h(i).title.level,
|
|
3313
3595
|
class: "tpl:mb-3.5",
|
|
3314
3596
|
path: "level"
|
|
3315
3597
|
}, {
|
|
3316
3598
|
default: u(() => [b("select", {
|
|
3317
|
-
class: o(h(
|
|
3599
|
+
class: o(h(q)),
|
|
3318
3600
|
value: e.block.level,
|
|
3319
3601
|
onChange: n[0] ||= (e) => c("level", Number(e.target.value))
|
|
3320
3602
|
}, [
|
|
3321
|
-
b("option",
|
|
3322
|
-
b("option",
|
|
3323
|
-
b("option",
|
|
3324
|
-
b("option",
|
|
3325
|
-
], 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)]),
|
|
3326
3608
|
_: 1
|
|
3327
3609
|
}, 8, ["label"]),
|
|
3328
|
-
p(
|
|
3610
|
+
p(Y, {
|
|
3329
3611
|
label: h(i).title.fontFamily,
|
|
3330
3612
|
class: "tpl:mb-3.5",
|
|
3331
3613
|
path: "fontFamily"
|
|
3332
3614
|
}, {
|
|
3333
3615
|
default: u(() => [b("select", {
|
|
3334
|
-
class: o(h(
|
|
3335
|
-
value: h(
|
|
3616
|
+
class: o(h(q)),
|
|
3617
|
+
value: h(mt)(e.block.fontFamily),
|
|
3336
3618
|
onChange: n[1] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
3337
|
-
}, [b("option",
|
|
3619
|
+
}, [b("option", $a, r(h(i).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3338
3620
|
key: e.value,
|
|
3339
3621
|
value: e.value
|
|
3340
|
-
}, r(e.label), 9,
|
|
3622
|
+
}, r(e.label), 9, eo))), 128))], 42, Qa)]),
|
|
3341
3623
|
_: 1
|
|
3342
3624
|
}, 8, ["label"]),
|
|
3343
|
-
p(
|
|
3625
|
+
p(Y, {
|
|
3344
3626
|
label: h(i).title.color,
|
|
3345
3627
|
class: "tpl:mb-3.5",
|
|
3346
3628
|
path: "color"
|
|
3347
3629
|
}, {
|
|
3348
|
-
default: u(() => [p(
|
|
3630
|
+
default: u(() => [p(H, {
|
|
3349
3631
|
"model-value": e.block.color ?? "",
|
|
3350
3632
|
"onUpdate:modelValue": n[2] ||= (e) => c("color", e || void 0)
|
|
3351
3633
|
}, null, 8, ["model-value"])]),
|
|
3352
3634
|
_: 1
|
|
3353
3635
|
}, 8, ["label"]),
|
|
3354
|
-
p(
|
|
3636
|
+
p(Y, {
|
|
3355
3637
|
label: h(i).title.align,
|
|
3356
3638
|
class: "tpl:mb-3.5",
|
|
3357
3639
|
path: "textAlign"
|
|
3358
3640
|
}, {
|
|
3359
|
-
default: u(() => [p(
|
|
3641
|
+
default: u(() => [p(Q, {
|
|
3360
3642
|
options: [
|
|
3361
3643
|
{
|
|
3362
3644
|
value: "left",
|
|
3363
3645
|
label: h(i).title.alignLeft,
|
|
3364
|
-
icon: h(
|
|
3646
|
+
icon: h(Le)
|
|
3365
3647
|
},
|
|
3366
3648
|
{
|
|
3367
3649
|
value: "center",
|
|
3368
3650
|
label: h(i).title.alignCenter,
|
|
3369
|
-
icon: h(
|
|
3651
|
+
icon: h(Ie)
|
|
3370
3652
|
},
|
|
3371
3653
|
{
|
|
3372
3654
|
value: "right",
|
|
@@ -3381,78 +3663,78 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3381
3663
|
}, 8, ["label"])
|
|
3382
3664
|
], 64));
|
|
3383
3665
|
}
|
|
3384
|
-
}),
|
|
3666
|
+
}), no = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ro = [
|
|
3385
3667
|
"value",
|
|
3386
3668
|
"placeholder",
|
|
3387
3669
|
"title"
|
|
3388
|
-
],
|
|
3670
|
+
], io = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ao = ["value"], oo = { value: "full" }, so = { value: "custom" }, co = {
|
|
3389
3671
|
key: 0,
|
|
3390
3672
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3391
|
-
},
|
|
3673
|
+
}, lo = ["value"], uo = ["value"], fo = { value: "auto" }, po = { value: "custom" }, mo = {
|
|
3392
3674
|
key: 0,
|
|
3393
3675
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3394
|
-
},
|
|
3676
|
+
}, ho = ["value"], go = 350, _o = 200, vo = /* @__PURE__ */ D({
|
|
3395
3677
|
__name: "VideoToolbar",
|
|
3396
3678
|
props: { block: {} },
|
|
3397
3679
|
emits: ["update"],
|
|
3398
3680
|
setup(e, { emit: t }) {
|
|
3399
|
-
let n = e, i = t, { t: s } =
|
|
3681
|
+
let n = e, i = t, { t: s } = W(), c = E(Ge, null), l = E(Be, ne.liquid), d = ge(), f = [
|
|
3400
3682
|
300,
|
|
3401
3683
|
400,
|
|
3402
3684
|
500
|
|
3403
|
-
], x = m(() => !!c),
|
|
3685
|
+
], x = m(() => !!c), C = m(() => ae(n.block.url, l)), T = m(() => {
|
|
3404
3686
|
let e = n.block.width;
|
|
3405
3687
|
return e === "full" ? "full" : f.includes(e) ? String(e) : "custom";
|
|
3406
|
-
}), 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(() => {
|
|
3407
3689
|
O.value = !1;
|
|
3408
3690
|
}, 1e3, { immediate: !1 });
|
|
3409
|
-
function
|
|
3691
|
+
function A(e, t) {
|
|
3410
3692
|
i("update", { [e]: t });
|
|
3411
3693
|
}
|
|
3412
|
-
function
|
|
3694
|
+
function ee(e) {
|
|
3413
3695
|
if (e === "custom") {
|
|
3414
3696
|
let e = n.block.width;
|
|
3415
|
-
(typeof e != "number" || f.includes(e)) &&
|
|
3416
|
-
} else
|
|
3697
|
+
(typeof e != "number" || f.includes(e)) && A("width", go);
|
|
3698
|
+
} else A("width", e === "full" ? "full" : Number(e));
|
|
3417
3699
|
}
|
|
3418
|
-
function
|
|
3700
|
+
function te(e) {
|
|
3419
3701
|
let t = Number(e);
|
|
3420
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
3702
|
+
!Number.isFinite(t) || t <= 0 || A("width", t);
|
|
3421
3703
|
}
|
|
3422
|
-
function
|
|
3423
|
-
|
|
3704
|
+
function j(e) {
|
|
3705
|
+
A("height", e === "custom" ? _o : void 0);
|
|
3424
3706
|
}
|
|
3425
|
-
function
|
|
3707
|
+
function M(e) {
|
|
3426
3708
|
let t = Number(e);
|
|
3427
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
3709
|
+
!Number.isFinite(t) || t <= 0 || A("height", t);
|
|
3428
3710
|
}
|
|
3429
|
-
async function
|
|
3711
|
+
async function re() {
|
|
3430
3712
|
let e = await c?.({ accept: ["images"] });
|
|
3431
|
-
d.alive && e && (
|
|
3713
|
+
d.alive && e && (A("thumbnailUrl", e.url), O.value = !0, k());
|
|
3432
3714
|
}
|
|
3433
3715
|
return (t, n) => (a(), v(S, null, [
|
|
3434
|
-
p(
|
|
3716
|
+
p(Y, {
|
|
3435
3717
|
label: h(s).video.videoUrl,
|
|
3436
3718
|
class: "tpl:mb-3.5",
|
|
3437
3719
|
path: "url"
|
|
3438
3720
|
}, {
|
|
3439
|
-
default: u(() => [p(
|
|
3721
|
+
default: u(() => [p(Z, {
|
|
3440
3722
|
"model-value": e.block.url,
|
|
3441
3723
|
type: "url",
|
|
3442
3724
|
placeholder: h(s).video.videoUrlPlaceholder,
|
|
3443
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
3444
|
-
}, 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, {
|
|
3445
3727
|
key: 0,
|
|
3446
3728
|
path: "openInNewTab",
|
|
3447
3729
|
label: h(s).video.openInNewTab
|
|
3448
3730
|
}, {
|
|
3449
|
-
"label-actions": u(({ controlId: t }) => [p(
|
|
3731
|
+
"label-actions": u(({ controlId: t }) => [p(X, {
|
|
3450
3732
|
"control-id": t,
|
|
3451
3733
|
"hide-label": "",
|
|
3452
3734
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
3453
3735
|
"model-value": e.block.openInNewTab ?? !1,
|
|
3454
3736
|
label: h(s).video.openInNewTab,
|
|
3455
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
3737
|
+
"onUpdate:modelValue": n[1] ||= (e) => A("openInNewTab", e)
|
|
3456
3738
|
}, null, 8, [
|
|
3457
3739
|
"control-id",
|
|
3458
3740
|
"model-value",
|
|
@@ -3462,33 +3744,33 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3462
3744
|
}, 8, ["label"])) : g("", !0)]),
|
|
3463
3745
|
_: 1
|
|
3464
3746
|
}, 8, ["label"]),
|
|
3465
|
-
|
|
3747
|
+
C.value ? (a(), w(Y, {
|
|
3466
3748
|
key: 0,
|
|
3467
3749
|
class: "tpl:mb-3.5",
|
|
3468
3750
|
path: "placeholderUrl"
|
|
3469
3751
|
}, {
|
|
3470
|
-
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)]),
|
|
3471
3753
|
default: u(() => [b("input", {
|
|
3472
3754
|
type: "url",
|
|
3473
|
-
class: o(h(
|
|
3755
|
+
class: o(h(q)),
|
|
3474
3756
|
value: e.block.placeholderUrl || "",
|
|
3475
3757
|
placeholder: h(s).video.placeholderUrlPlaceholder,
|
|
3476
3758
|
title: h(s).video.placeholderUrlTooltip,
|
|
3477
|
-
onInput: n[2] ||= (e) =>
|
|
3478
|
-
}, null, 42,
|
|
3759
|
+
onInput: n[2] ||= (e) => A("placeholderUrl", e.target.value)
|
|
3760
|
+
}, null, 42, ro)]),
|
|
3479
3761
|
_: 1
|
|
3480
3762
|
})) : g("", !0),
|
|
3481
|
-
p(
|
|
3763
|
+
p(Y, {
|
|
3482
3764
|
class: "tpl:mb-3.5",
|
|
3483
3765
|
path: "thumbnailUrl"
|
|
3484
3766
|
}, {
|
|
3485
|
-
label: u(() => [y(r(h(s).video.customThumbnail) + " ", 1), b("span",
|
|
3486
|
-
default: u(() => [p(
|
|
3767
|
+
label: u(() => [y(r(h(s).video.customThumbnail) + " ", 1), b("span", io, r(h(s).video.optional), 1)]),
|
|
3768
|
+
default: u(() => [p(Z, {
|
|
3487
3769
|
"model-value": e.block.thumbnailUrl,
|
|
3488
3770
|
type: "url",
|
|
3489
3771
|
placeholder: h(s).video.thumbnailPlaceholder,
|
|
3490
3772
|
pulse: O.value,
|
|
3491
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
3773
|
+
"onUpdate:modelValue": n[3] ||= (e) => A("thumbnailUrl", e)
|
|
3492
3774
|
}, null, 8, [
|
|
3493
3775
|
"model-value",
|
|
3494
3776
|
"placeholder",
|
|
@@ -3501,78 +3783,78 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3501
3783
|
color: "var(--tpl-primary)",
|
|
3502
3784
|
"background-color": "var(--tpl-bg)"
|
|
3503
3785
|
},
|
|
3504
|
-
onClick:
|
|
3505
|
-
}, [p(h(
|
|
3786
|
+
onClick: re
|
|
3787
|
+
}, [p(h(ke), {
|
|
3506
3788
|
size: 14,
|
|
3507
3789
|
"stroke-width": 1.5
|
|
3508
3790
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)]),
|
|
3509
3791
|
_: 1
|
|
3510
3792
|
}),
|
|
3511
|
-
p(
|
|
3793
|
+
p(Y, {
|
|
3512
3794
|
label: h(s).video.altText,
|
|
3513
3795
|
class: "tpl:mb-3.5",
|
|
3514
3796
|
path: "alt"
|
|
3515
3797
|
}, {
|
|
3516
|
-
default: u(() => [p(
|
|
3798
|
+
default: u(() => [p(Z, {
|
|
3517
3799
|
"model-value": e.block.alt,
|
|
3518
3800
|
type: "text",
|
|
3519
3801
|
placeholder: h(s).video.altTextPlaceholder,
|
|
3520
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
3802
|
+
"onUpdate:modelValue": n[4] ||= (e) => A("alt", e)
|
|
3521
3803
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
3522
3804
|
_: 1
|
|
3523
3805
|
}, 8, ["label"]),
|
|
3524
|
-
p(
|
|
3806
|
+
p(Y, {
|
|
3525
3807
|
label: h(s).video.width,
|
|
3526
3808
|
class: "tpl:mb-3.5",
|
|
3527
3809
|
path: "width"
|
|
3528
3810
|
}, {
|
|
3529
3811
|
default: u(() => [b("select", {
|
|
3530
|
-
class: o(h(
|
|
3812
|
+
class: o(h(q)),
|
|
3531
3813
|
"data-testid": "video-width-mode",
|
|
3532
|
-
value:
|
|
3533
|
-
onChange: n[5] ||= (e) =>
|
|
3814
|
+
value: T.value,
|
|
3815
|
+
onChange: n[5] ||= (e) => ee(e.target.value)
|
|
3534
3816
|
}, [
|
|
3535
|
-
b("option",
|
|
3817
|
+
b("option", oo, r(h(s).video.fullWidth), 1),
|
|
3536
3818
|
n[10] ||= b("option", { value: "300" }, "300px", -1),
|
|
3537
3819
|
n[11] ||= b("option", { value: "400" }, "400px", -1),
|
|
3538
3820
|
n[12] ||= b("option", { value: "500" }, "500px", -1),
|
|
3539
|
-
b("option",
|
|
3540
|
-
], 42,
|
|
3821
|
+
b("option", so, r(h(s).video.widthCustom), 1)
|
|
3822
|
+
], 42, ao), T.value === "custom" ? (a(), v("div", co, [b("input", {
|
|
3541
3823
|
type: "number",
|
|
3542
3824
|
"data-testid": "video-width-input",
|
|
3543
|
-
class: o(h(
|
|
3825
|
+
class: o(h(K)),
|
|
3544
3826
|
value: e.block.width,
|
|
3545
3827
|
min: "20",
|
|
3546
|
-
onInput: n[6] ||= (e) =>
|
|
3547
|
-
}, 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)]),
|
|
3548
3830
|
_: 1
|
|
3549
3831
|
}, 8, ["label"]),
|
|
3550
|
-
p(
|
|
3832
|
+
p(Y, {
|
|
3551
3833
|
label: h(s).video.height,
|
|
3552
3834
|
class: "tpl:mb-3.5",
|
|
3553
3835
|
path: "height"
|
|
3554
3836
|
}, {
|
|
3555
3837
|
default: u(() => [b("select", {
|
|
3556
|
-
class: o(h(
|
|
3838
|
+
class: o(h(q)),
|
|
3557
3839
|
"data-testid": "video-height-mode",
|
|
3558
3840
|
value: D.value,
|
|
3559
|
-
onChange: n[7] ||= (e) =>
|
|
3560
|
-
}, [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", {
|
|
3561
3843
|
type: "number",
|
|
3562
3844
|
"data-testid": "video-height-input",
|
|
3563
|
-
class: o(h(
|
|
3845
|
+
class: o(h(K)),
|
|
3564
3846
|
value: e.block.height,
|
|
3565
3847
|
min: "20",
|
|
3566
|
-
onInput: n[8] ||= (e) =>
|
|
3567
|
-
}, 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)]),
|
|
3568
3850
|
_: 1
|
|
3569
3851
|
}, 8, ["label"]),
|
|
3570
|
-
p(
|
|
3852
|
+
p(Y, {
|
|
3571
3853
|
label: h(s).title.align,
|
|
3572
3854
|
class: "tpl:mb-3.5",
|
|
3573
3855
|
path: "align"
|
|
3574
3856
|
}, {
|
|
3575
|
-
default: u(() => [p(
|
|
3857
|
+
default: u(() => [p(Q, {
|
|
3576
3858
|
options: [
|
|
3577
3859
|
{
|
|
3578
3860
|
value: "left",
|
|
@@ -3588,13 +3870,13 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3588
3870
|
}
|
|
3589
3871
|
],
|
|
3590
3872
|
"model-value": e.block.align,
|
|
3591
|
-
"onUpdate:modelValue": n[9] ||= (e) =>
|
|
3873
|
+
"onUpdate:modelValue": n[9] ||= (e) => A("align", e)
|
|
3592
3874
|
}, null, 8, ["options", "model-value"])]),
|
|
3593
3875
|
_: 1
|
|
3594
3876
|
}, 8, ["label"])
|
|
3595
3877
|
], 64));
|
|
3596
3878
|
}
|
|
3597
|
-
}),
|
|
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({
|
|
3598
3880
|
__name: "Toolbar",
|
|
3599
3881
|
props: { block: {} },
|
|
3600
3882
|
emits: [
|
|
@@ -3603,10 +3885,10 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3603
3885
|
"duplicate"
|
|
3604
3886
|
],
|
|
3605
3887
|
setup(e, { emit: t }) {
|
|
3606
|
-
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(() => {
|
|
3607
3889
|
if (_.value) return d.find((e) => e.type === o.block.customType);
|
|
3608
|
-
}), x = m(() => _.value ? y.value?.name ?? o.block.customType :
|
|
3609
|
-
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) {
|
|
3610
3892
|
l.value && s("update", e);
|
|
3611
3893
|
}
|
|
3612
3894
|
return (t, o) => (a(), v("aside", {
|
|
@@ -3617,95 +3899,95 @@ var Si = { class: "tpl:mb-3.5" }, Ci = ["value"], wi = ["value"], Ti = {
|
|
|
3617
3899
|
disabled: !h(l),
|
|
3618
3900
|
inert: !h(l),
|
|
3619
3901
|
class: "tpl:contents"
|
|
3620
|
-
}, [b("div",
|
|
3902
|
+
}, [b("div", xo, [b("div", So, [h(De)[f.value] ? (a(), w(i(h(De)[f.value]), {
|
|
3621
3903
|
key: 0,
|
|
3622
3904
|
size: 16,
|
|
3623
3905
|
"stroke-width": 1.5
|
|
3624
|
-
})) : _.value ? (a(),
|
|
3906
|
+
})) : _.value ? (a(), w(h(L), {
|
|
3625
3907
|
key: 1,
|
|
3626
3908
|
size: 16,
|
|
3627
3909
|
"stroke-width": 1.5
|
|
3628
|
-
})) : g("", !0), b("h3",
|
|
3910
|
+
})) : g("", !0), b("h3", Co, r(x.value), 1)]), b("div", wo, [b("button", {
|
|
3629
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)]",
|
|
3630
3912
|
title: h(c).toolbar.duplicate,
|
|
3631
3913
|
onClick: o[0] ||= (e) => s("duplicate")
|
|
3632
|
-
}, [p(h(
|
|
3914
|
+
}, [p(h(Oe), {
|
|
3633
3915
|
size: 14,
|
|
3634
3916
|
"stroke-width": 2
|
|
3635
|
-
})], 8,
|
|
3917
|
+
})], 8, To), b("button", {
|
|
3636
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)]",
|
|
3637
3919
|
title: h(c).toolbar.delete,
|
|
3638
3920
|
onClick: o[1] ||= (e) => s("delete")
|
|
3639
|
-
}, [p(h(
|
|
3921
|
+
}, [p(h(Re), {
|
|
3640
3922
|
size: 14,
|
|
3641
3923
|
"stroke-width": 2
|
|
3642
|
-
})], 8,
|
|
3924
|
+
})], 8, Eo)])]), b("div", Do, [_.value ? (a(), w(ni, {
|
|
3643
3925
|
key: 0,
|
|
3644
3926
|
block: e.block,
|
|
3645
3927
|
onUpdateFieldValues: o[2] ||= (e) => s("update", { fieldValues: e }),
|
|
3646
3928
|
onUpdateDataSourceFetched: o[3] ||= (e) => s("update", { dataSourceFetched: e })
|
|
3647
|
-
}, null, 8, ["block"])) : f.value === "section" ? (a(),
|
|
3929
|
+
}, null, 8, ["block"])) : f.value === "section" ? (a(), w(ea, {
|
|
3648
3930
|
key: 1,
|
|
3649
3931
|
block: e.block,
|
|
3650
|
-
onUpdate:
|
|
3651
|
-
}, null, 8, ["block"])) : f.value === "title" ? (a(),
|
|
3932
|
+
onUpdate: C
|
|
3933
|
+
}, null, 8, ["block"])) : f.value === "title" ? (a(), w(to, {
|
|
3652
3934
|
key: 2,
|
|
3653
3935
|
block: e.block,
|
|
3654
3936
|
"font-families": S.value,
|
|
3655
|
-
onUpdate:
|
|
3656
|
-
}, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (a(),
|
|
3937
|
+
onUpdate: C
|
|
3938
|
+
}, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (a(), w(Ki, {
|
|
3657
3939
|
key: 3,
|
|
3658
3940
|
block: e.block,
|
|
3659
|
-
onUpdate:
|
|
3660
|
-
}, null, 8, ["block"])) : f.value === "image" ? (a(),
|
|
3941
|
+
onUpdate: C
|
|
3942
|
+
}, null, 8, ["block"])) : f.value === "image" ? (a(), w(Mi, {
|
|
3661
3943
|
key: 4,
|
|
3662
3944
|
block: e.block,
|
|
3663
|
-
onUpdate:
|
|
3664
|
-
}, null, 8, ["block"])) : f.value === "video" ? (a(),
|
|
3945
|
+
onUpdate: C
|
|
3946
|
+
}, null, 8, ["block"])) : f.value === "video" ? (a(), w(vo, {
|
|
3665
3947
|
key: 5,
|
|
3666
3948
|
block: e.block,
|
|
3667
|
-
onUpdate:
|
|
3668
|
-
}, null, 8, ["block"])) : f.value === "button" ? (a(),
|
|
3949
|
+
onUpdate: C
|
|
3950
|
+
}, null, 8, ["block"])) : f.value === "button" ? (a(), w(Wt, {
|
|
3669
3951
|
key: 6,
|
|
3670
3952
|
block: e.block,
|
|
3671
3953
|
"font-families": S.value,
|
|
3672
|
-
onUpdate:
|
|
3673
|
-
}, null, 8, ["block", "font-families"])) : f.value === "divider" ? (a(),
|
|
3954
|
+
onUpdate: C
|
|
3955
|
+
}, null, 8, ["block", "font-families"])) : f.value === "divider" ? (a(), w(ai, {
|
|
3674
3956
|
key: 7,
|
|
3675
3957
|
block: e.block,
|
|
3676
|
-
onUpdate:
|
|
3677
|
-
}, null, 8, ["block"])) : f.value === "social" ? (a(),
|
|
3958
|
+
onUpdate: C
|
|
3959
|
+
}, null, 8, ["block"])) : f.value === "social" ? (a(), w(ba, {
|
|
3678
3960
|
key: 8,
|
|
3679
3961
|
block: e.block,
|
|
3680
|
-
onUpdate:
|
|
3681
|
-
}, null, 8, ["block"])) : f.value === "menu" ? (a(),
|
|
3962
|
+
onUpdate: C
|
|
3963
|
+
}, null, 8, ["block"])) : f.value === "menu" ? (a(), w(Ui, {
|
|
3682
3964
|
key: 9,
|
|
3683
3965
|
block: e.block,
|
|
3684
3966
|
"font-families": S.value,
|
|
3685
|
-
onUpdate:
|
|
3686
|
-
}, null, 8, ["block", "font-families"])) : f.value === "table" ? (a(),
|
|
3967
|
+
onUpdate: C
|
|
3968
|
+
}, null, 8, ["block", "font-families"])) : f.value === "table" ? (a(), w(Ka, {
|
|
3687
3969
|
key: 10,
|
|
3688
3970
|
block: e.block,
|
|
3689
3971
|
"font-families": S.value,
|
|
3690
|
-
onUpdate:
|
|
3691
|
-
}, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (a(),
|
|
3972
|
+
onUpdate: C
|
|
3973
|
+
}, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (a(), w(wa, {
|
|
3692
3974
|
key: 11,
|
|
3693
3975
|
block: e.block,
|
|
3694
|
-
onUpdate:
|
|
3695
|
-
}, null, 8, ["block"])) : f.value === "html" ? (a(),
|
|
3976
|
+
onUpdate: C
|
|
3977
|
+
}, null, 8, ["block"])) : f.value === "html" ? (a(), w(ci, {
|
|
3696
3978
|
key: 12,
|
|
3697
3979
|
block: e.block,
|
|
3698
|
-
onUpdate:
|
|
3699
|
-
}, null, 8, ["block"])) : f.value === "countdown" ? (a(),
|
|
3980
|
+
onUpdate: C
|
|
3981
|
+
}, null, 8, ["block"])) : f.value === "countdown" ? (a(), w(h(n), {
|
|
3700
3982
|
key: 13,
|
|
3701
3983
|
block: e.block,
|
|
3702
3984
|
"font-families": S.value,
|
|
3703
|
-
onUpdate:
|
|
3704
|
-
}, null, 8, ["block", "font-families"])) : g("", !0), p(
|
|
3985
|
+
onUpdate: C
|
|
3986
|
+
}, null, 8, ["block", "font-families"])) : g("", !0), p(gr, {
|
|
3705
3987
|
block: e.block,
|
|
3706
3988
|
"is-first-section": f.value === "paragraph",
|
|
3707
|
-
onUpdate:
|
|
3708
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
3989
|
+
onUpdate: C
|
|
3990
|
+
}, null, 8, ["block", "is-first-section"])])], 8, bo)], 8, yo));
|
|
3709
3991
|
}
|
|
3710
|
-
}),
|
|
3711
|
-
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 };
|