@templatical/editor 0.45.0 → 0.47.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/{AiChatSidebar-BlFWWhBv.js → AiChatSidebar-BPOv5Ra8.js} +14 -14
- package/dist/{AiFeatureMenu-CvWygUmC.js → AiFeatureMenu-H_WT4YR8.js} +7 -7
- package/dist/{BlockIssueBadge-CZA1XvAh.js → BlockIssueBadge-AgO5abEB.js} +5 -5
- package/dist/BlockPreviewCanvas-CZDBSPoG.js +136 -0
- package/dist/{CloudHeaderExtras-BzM1QU1r.js → CloudHeaderExtras-gXsTYoGG.js} +5 -5
- package/dist/{CloudPanels-d36YXXyn.js → CloudPanels-H_GdbOfZ.js} +9 -9
- package/dist/{CollaboratorBar-rwXe_Qd2.js → CollaboratorBar-BazGNMqN.js} +4 -4
- package/dist/{CommentsPanel-Bn6P5crU.js → CommentsPanel-CMgsG_yh.js} +2 -2
- package/dist/{CommentsSidebar-B8wT932T.js → CommentsSidebar-DCh8DTP8.js} +14 -14
- package/dist/CountdownBlock-zx39Dyby.js +92 -0
- package/dist/{CountdownToolbar-lbjCc8ik.js → CountdownToolbar-DVuucA3v.js} +7 -7
- package/dist/{DesignReferenceSidebar-zlJQsP0X.js → DesignReferenceSidebar-DxNV4lQp.js} +12 -12
- package/dist/{IssuesPanel-CHx3m8SP.js → IssuesPanel-CUpW54P4.js} +8 -8
- package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
- package/dist/{LogicTagInsertButton-BvftbkL4.js → LogicTagInsertButton-DDYKnqmj.js} +22 -22
- package/dist/{MediaEditModal-EY1YYcpw.js → MediaEditModal-D_we0Scr.js} +4 -4
- package/dist/{MediaPanels-CRVFGFZW.js → MediaPanels-L95BwWV1.js} +2 -2
- package/dist/{MergeTagInput-CR1kcj8X.js → MergeTagInput-DAL998tx.js} +3 -3
- package/dist/{MergeTagModeToggle-DssKrVYb.js → MergeTagModeToggle-CjHO26rb.js} +7 -7
- package/dist/{ParagraphEditor-DFizsZRc.js → ParagraphEditor-CcEN1N6n.js} +165 -150
- package/dist/{RestoreVersionDialog-Cp3q2mU4.js → RestoreVersionDialog-B2OH5rgs.js} +6 -6
- package/dist/{RichTextEditorContent-Cj3oaPMk.js → RichTextEditorContent-BGeTg-QL.js} +12 -12
- package/dist/{SaveBlockDialog-BR8vW_XF.js → SaveBlockDialog-CCVyU-7y.js} +13 -13
- package/dist/{SavedBlocksBrowserModal-DmwbmKxI.js → SavedBlocksBrowserModal-_WmSeqIh.js} +14 -14
- package/dist/{SavedBlocksPanels-D4XKrs-a.js → SavedBlocksPanels-DVX_ruQ7.js} +2 -2
- package/dist/{SavedBlocksPickBar-gfc-o5sR.js → SavedBlocksPickBar-DVJC28hP.js} +5 -5
- package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-U0QFiwdI.js} +16 -16
- package/dist/{TemplateSettings-D7aNrd0d.js → TemplateSettings-CdhTm9JQ.js} +12 -12
- package/dist/{TestEmailModal-DUmtcSm-.js → TestEmailModal-BqToA_ls.js} +14 -14
- package/dist/{TestEmailPanel-s9gISTI8.js → TestEmailPanel-Cn4Ptq0j.js} +2 -2
- package/dist/{TitleEditor-C-uHqtml.js → TitleEditor-CZdqeltH.js} +13 -13
- package/dist/{ToggleSwitch-CTwwCIVA.js → ToggleSwitch-BR8Sgzib.js} +2 -2
- package/dist/{Toolbar-CLpA36RO.js → Toolbar-OGakTBEg.js} +748 -629
- package/dist/{TplModal-D6XtxusQ.js → TplModal-CoczSDma.js} +6 -6
- package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-DY5z5FZr.js} +10 -10
- package/dist/{VersionHistoryPanels-Dvowtt7V.js → VersionHistoryPanels-DowHeDAQ.js} +2 -2
- package/dist/{VersionPreviewBanner-BUKb9gc6.js → VersionPreviewBanner-Bo8NxBbh.js} +4 -4
- package/dist/WrapperBlock-BOABSX9W.js +46 -0
- package/dist/{blockTypeIcons-D3aj5u_5.js → blockTypeIcons-4E1U8f99.js} +5 -5
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +21 -0
- package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js → AiChatSidebar-B72rI0be.js} +12 -12
- package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js.map → AiChatSidebar-B72rI0be.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js → AiFeatureMenu-BqSG9iEd.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js.map → AiFeatureMenu-BqSG9iEd.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js → BlockIssueBadge-CS7ytN-z.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js.map → BlockIssueBadge-CS7ytN-z.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +138 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js → CloudHeaderExtras-DJXLTUHc.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js.map → CloudHeaderExtras-DJXLTUHc.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js → CloudPanels-D1fPLjG8.js} +8 -8
- package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js.map → CloudPanels-D1fPLjG8.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js → CollaboratorBar-MeRQB1eN.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js.map → CollaboratorBar-MeRQB1eN.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js → CommentsPanel-CmxPylNf.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js.map → CommentsPanel-CmxPylNf.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js → CommentsSidebar-CrleQTbo.js} +13 -13
- package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js.map → CommentsSidebar-CrleQTbo.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-Dasj191h.js +94 -0
- package/dist/cdn/chunks/CountdownBlock-Dasj191h.js.map +1 -0
- package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js → CountdownToolbar-DPIOtlN0.js} +8 -8
- package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js.map → CountdownToolbar-DPIOtlN0.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js → DesignReferenceSidebar-BgTNqgCy.js} +8 -8
- package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js.map → DesignReferenceSidebar-BgTNqgCy.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js → IssuesPanel-BGjLcNpQ.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js.map → IssuesPanel-BGjLcNpQ.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js → LoadingTrack-DbH97JR9.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js.map → LoadingTrack-DbH97JR9.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js → LogicTagInsertButton-BEsqPhMr.js} +11 -11
- package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js.map → LogicTagInsertButton-BEsqPhMr.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js → MediaEditModal-C1Ao0i2c.js} +4 -4
- package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js.map → MediaEditModal-C1Ao0i2c.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js → MediaPanels-1GPYiZZ0.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js.map → MediaPanels-1GPYiZZ0.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js → MergeTagInput-Dy13_OLc.js} +4 -4
- package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js.map → MergeTagInput-Dy13_OLc.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js → MergeTagModeToggle-B2CPZOeF.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js.map → MergeTagModeToggle-B2CPZOeF.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js → ParagraphEditor-BGLIw7kg.js} +91 -76
- package/dist/cdn/chunks/ParagraphEditor-BGLIw7kg.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js → RestoreVersionDialog-BhykE8En.js} +8 -8
- package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js.map → RestoreVersionDialog-BhykE8En.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js → RichTextEditorContent-B-txUvPL.js} +11 -11
- package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js.map → RichTextEditorContent-B-txUvPL.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js → SaveBlockDialog-BHqEp7jw.js} +40 -40
- package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js.map → SaveBlockDialog-BHqEp7jw.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js → SavedBlocksBrowserModal-BhR6AI0f.js} +10 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js.map → SavedBlocksBrowserModal-BhR6AI0f.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js → SavedBlocksPanels-YwffJtfY.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js.map → SavedBlocksPanels-YwffJtfY.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js → SavedBlocksPickBar-BtpFU7es.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js.map → SavedBlocksPickBar-BtpFU7es.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js → TemplateScoringPanel-N4ySFh5w.js} +12 -12
- package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js.map → TemplateScoringPanel-N4ySFh5w.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js → TemplateSettings-C7b5X34U.js} +13 -13
- package/dist/cdn/chunks/TemplateSettings-C7b5X34U.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js → TestEmailModal-DHJKI5y5.js} +11 -11
- package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js.map → TestEmailModal-DHJKI5y5.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js → TestEmailPanel-lYtzTXpR.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js.map → TestEmailPanel-lYtzTXpR.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js → TitleEditor-5eY01ypW.js} +15 -15
- package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js.map → TitleEditor-5eY01ypW.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js → ToggleSwitch-BN8rMC2m.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js.map → ToggleSwitch-BN8rMC2m.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js → Toolbar-Ik54UO_-.js} +696 -575
- package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-OOT36AjS.js → TplModal-WIBiBrGy.js} +6 -6
- package/dist/cdn/chunks/TplModal-WIBiBrGy.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js → VersionHistoryMenu-CZnlS9K5.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js.map → VersionHistoryMenu-CZnlS9K5.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js → VersionHistoryPanels-xjLSpR1e.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js.map → VersionHistoryPanels-xjLSpR1e.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js → VersionPreviewBanner-sARpn4hh.js} +5 -5
- package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js.map → VersionPreviewBanner-sARpn4hh.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +48 -0
- package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js → blockTypeIcons-D3g5QzdT.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js.map → blockTypeIcons-D3g5QzdT.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +22 -1
- package/dist/cdn/chunks/ca-DMoGGP9L.js.map +1 -0
- package/dist/cdn/chunks/{cloud-bhW8qTnh.js → cloud-Cd7ptfhL.js} +3 -3
- package/dist/cdn/chunks/{cloud-bhW8qTnh.js.map → cloud-Cd7ptfhL.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js → createCloudRuntime-DtIZ2Lee.js} +17 -8
- package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +1 -0
- package/dist/cdn/chunks/{de-CGjbQ2mt.js → de-DgAelLbM.js} +22 -1
- package/dist/cdn/chunks/de-DgAelLbM.js.map +1 -0
- package/dist/cdn/chunks/{dist-B7W-Lb65.js → dist-CjL6JHML.js} +3 -3
- package/dist/cdn/chunks/{dist-B7W-Lb65.js.map → dist-CjL6JHML.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C5nRd_ua.js → dist-MNQYSEWU.js} +4 -4
- package/dist/cdn/chunks/{dist-C5nRd_ua.js.map → dist-MNQYSEWU.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BUTN5vZC.js → draggable-DrsNwZuB.js} +1673 -1595
- package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js → editor-modal-Bcwo0orC.js} +34 -34
- package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js.map → editor-modal-Bcwo0orC.js.map} +1 -1
- package/dist/cdn/chunks/en-BANFWZdr.js +1 -0
- package/dist/cdn/chunks/{en-BTiiAC-B.js → en-Dekrl7HA.js} +22 -1
- package/dist/cdn/chunks/en-Dekrl7HA.js.map +1 -0
- package/dist/cdn/chunks/{es-CdTOcSTf.js → es-BaZzyidV.js} +22 -1
- package/dist/cdn/chunks/es-BaZzyidV.js.map +1 -0
- package/dist/cdn/chunks/{extensions-xjRsIjMP.js → extensions-T-t8MKDb.js} +9 -9
- package/dist/cdn/chunks/extensions-T-t8MKDb.js.map +1 -0
- package/dist/cdn/chunks/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +22 -1
- package/dist/cdn/chunks/fr-C5ucb1HK.js.map +1 -0
- package/dist/cdn/chunks/{icons-Dr9erFGs.js → icons-C4fX9Bwy.js} +27 -27
- package/dist/cdn/chunks/{icons-Dr9erFGs.js.map → icons-C4fX9Bwy.js.map} +1 -1
- package/dist/cdn/chunks/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +22 -1
- package/dist/cdn/chunks/ja-CUgR3mV0.js.map +1 -0
- package/dist/cdn/chunks/{keys-BKu-LOk5.js → keys-HI-INbkz.js} +2 -2
- package/dist/cdn/chunks/{keys-BKu-LOk5.js.map → keys-HI-INbkz.js.map} +1 -1
- package/dist/{nl-CE3YItYg.js → cdn/chunks/nl-qrLY7hMS.js} +23 -0
- package/dist/cdn/chunks/nl-qrLY7hMS.js.map +1 -0
- package/dist/{preRenderCustomBlocks-DAS48ZCp.js → cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js} +7 -3
- package/dist/cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +22 -1
- package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-DACw1wA8.js +1103 -0
- package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +1 -0
- package/dist/cdn/chunks/{src-BcqNlDMe.js → src-BnJlDuyB.js} +361 -206
- package/dist/cdn/chunks/src-BnJlDuyB.js.map +1 -0
- package/dist/cdn/chunks/{src-CkXmV2I2.js → src-Bu0qBpbf.js} +202 -202
- package/dist/cdn/chunks/src-Bu0qBpbf.js.map +1 -0
- package/dist/cdn/chunks/{src-HA9F2kvk.js → src-CHlVFp7r.js} +368 -311
- package/dist/cdn/chunks/src-CHlVFp7r.js.map +1 -0
- package/dist/{styleConstants-C_YAPdQS.js → cdn/chunks/styleConstants-D1Jz-TFU.js} +9 -28
- package/dist/cdn/chunks/{styleConstants-C_YAPdQS.js.map → styleConstants-D1Jz-TFU.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CYDXLO17.js → tiptap-BPigZk5G.js} +3258 -3098
- package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js → useAliveFlag-DCB96vzR.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js.map → useAliveFlag-DCB96vzR.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js → useCloudI18n-BBF4waXO.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js.map → useCloudI18n-BBF4waXO.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-BF1ZhcGu.js → useEditorCore-Bf2d1DKI.js} +622 -607
- package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-DDPIcEOO.js.map → useEditorRoot-CTc6O8al.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DO4NTunW.js → useI18n-DUlyyIJJ.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DO4NTunW.js.map → useI18n-DUlyyIJJ.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js → useLogicTag-3S63go4E.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js.map → useLogicTag-3S63go4E.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-hwifK582.js → useMergeTag-BQtxUHq1.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-hwifK582.js.map → useMergeTag-BQtxUHq1.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js → usePopoverPosition-IbaW6-Ao.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js.map → usePopoverPosition-IbaW6-Ao.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-BDNJ25X1.js → useScrollToBlock-uUa601I4.js} +4 -5
- package/dist/cdn/chunks/useScrollToBlock-uUa601I4.js.map +1 -0
- package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js +21 -0
- package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +602 -580
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ZKvtMdpe.js → check-B5R4zXr7.js} +1 -1
- package/dist/{chevron-down-RrwkYMlp.js → chevron-down-BKyl85NV.js} +1 -1
- package/dist/{chevron-right-CklHaa1U.js → chevron-right-BmToZ8qX.js} +1 -1
- package/dist/{chevron-up-DjN2NTbo.js → chevron-up-DNYdOxPC.js} +1 -1
- package/dist/{circle-alert-BR1_Yfb-.js → circle-alert-Dx9ju3YZ.js} +1 -1
- package/dist/{clock-BEagNj21.js → clock-Dv9bxsSH.js} +1 -1
- package/dist/{cloud-CVfwPu19.js → cloud-DwjaAdwK.js} +2 -2
- package/dist/{copy-D6DNoSq1.js → copy-BsKl4dcy.js} +1 -1
- package/dist/{createCloudRuntime-GRv_TDb2.js → createCloudRuntime-C8gpPsSi.js} +16 -7
- package/dist/{createLucideIcon-BAPyioGd.js → createLucideIcon-DziKp5iU.js} +6 -6
- package/dist/{de-CGjbQ2mt.js → de-DgAelLbM.js} +21 -0
- package/dist/{dist-Bd7khQsg.js → dist-3HpYixwF.js} +2 -2
- package/dist/{dist-lL3nVbxV.js → dist-BC-ZEYLd.js} +2 -2
- package/dist/dist-BPFcLKTw.js +5 -0
- package/dist/{dist-CSaWqmWM.js → dist-C8koXLhl.js} +390 -241
- package/dist/{dist-C-VFTX82.js → dist-CUWI-IvA.js} +2 -2
- package/dist/{dist-Bc30883t.js → dist-Cr7RPxI9.js} +5 -5
- package/dist/{dist-DapsJxn_.js → dist-CuLwJF7H.js} +2 -2
- package/dist/{dist-5KNKxglR.js → dist-CyBwSiAa.js} +2 -2
- package/dist/dist-D7Yj7E-F.js +5 -0
- package/dist/{dist-B_vYjCsk.js → dist-DAAJogrx.js} +3 -3
- package/dist/{dist-CMcFD7gP.js → dist-DBxgrOeo.js} +1906 -1746
- package/dist/{dist-DHensKDY.js → dist-DPcf6XZ8.js} +2 -2
- package/dist/{dist-5DAb7bYT.js → dist-DVNjPKsH.js} +2 -2
- package/dist/{dist-C3eH9-N2.js → dist-DXyGqIDE.js} +2 -2
- package/dist/{dist-1H4cnaoD.js → dist-DuufrR8O.js} +4 -4
- package/dist/{editor-modal-oRmkDlUs.js → editor-modal-BwyIUnV_.js} +27 -27
- package/dist/en-CC-57eC_.js +1 -0
- package/dist/{en-BTiiAC-B.js → en-Dekrl7HA.js} +21 -0
- package/dist/{es-CdTOcSTf.js → es-BaZzyidV.js} +21 -0
- package/dist/{extensions-B65sfZRk.js → extensions-DHyKjsNZ.js} +19 -19
- package/dist/{eye-DvsTBI57.js → eye-DQuinb9k.js} +1 -1
- package/dist/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +21 -0
- package/dist/{image-up-BoFGZm5Q.js → image-up-yTfLjOrj.js} +1 -1
- package/dist/index.d.ts +92 -20
- package/dist/{info-0bQQGjTV.js → info-C7OjlS11.js} +1 -1
- package/dist/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +21 -0
- package/dist/{keys-injl74ob.js → keys-BKFq19a2.js} +1 -1
- package/dist/{link-Cstrr3Ep.js → link-CrUFaZ0t.js} +1 -1
- package/dist/{list-Dx9Rmy5s.js → list-CLgv6M-k.js} +1 -1
- package/dist/{loader-circle-D8Qqs0MG.js → loader-circle-BXM5VO0K.js} +1 -1
- package/dist/{message-circle-D78ELX6I.js → message-circle-BisdQ8H9.js} +1 -1
- package/dist/{cdn/chunks/nl-CE3YItYg.js → nl-qrLY7hMS.js} +21 -2
- package/dist/{package-DOvM9sHE.js → package-C1T4AxV1.js} +1 -1
- package/dist/{pencil-B6m0OG0n.js → pencil-oo2mwf4C.js} +1 -1
- package/dist/{plus-D-nEKxTc.js → plus-BIilXopD.js} +1 -1
- package/dist/{cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js → preRenderCustomBlocks-lFX0HHiV.js} +3 -3
- package/dist/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +21 -0
- package/dist/{refresh-cw-CXZS-R1U.js → refresh-cw-DrLlkEVC.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CO67ema2.js → runtime-dom.esm-bundler-lFF-QG3j.js} +3 -3
- package/dist/{search-DSvil0jo.js → search-DNu9lImk.js} +1 -1
- package/dist/{send-BBR28V94.js → send-DDNh3LoJ.js} +1 -1
- package/dist/{shield-check-ByxUnaU9.js → shield-check-aXM3o14f.js} +1 -1
- package/dist/{smartphone-CNOwGf5T.js → smartphone-isccgDee.js} +1 -1
- package/dist/socialIcons-BctavKBN.js +1180 -0
- package/dist/{sparkles-DO1hzwzf.js → sparkles-CIMfFxKv.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-C_YAPdQS.js → styleConstants-D1Jz-TFU.js} +7 -30
- package/dist/templatical-editor.js +509 -487
- package/dist/{text-align-start-BKEKMheq.js → text-align-start-C4JFeqsq.js} +1 -1
- package/dist/{trash-CKEQH4vH.js → trash-8ZD9pK_c.js} +1 -1
- package/dist/{triangle-alert-BHnfd3fV.js → triangle-alert-pq45xEHl.js} +1 -1
- package/dist/{upload-C8uO7KsR.js → upload-DrNFmVes.js} +1 -1
- package/dist/{useAliveFlag-6PtarpNZ.js → useAliveFlag-Dd06mRxe.js} +1 -1
- package/dist/{useCloudI18n-GvIOLziA.js → useCloudI18n-Nwqo7pI_.js} +2 -2
- package/dist/{useEditorCore-DQSeKPE9.js → useEditorCore-BcT7UI4e.js} +1027 -1018
- package/dist/{useEditorRoot-OWzNpDdT.js → useEditorRoot-BD3piYtD.js} +2 -2
- package/dist/{useI18n-uF11q85g.js → useI18n-CxVEpurs.js} +2 -2
- package/dist/{useLogicTag-BH87j1vZ.js → useLogicTag-D-dI8H6p.js} +3 -3
- package/dist/{useMergeTag-DfPKX2Tk.js → useMergeTag-5wMeDBi-.js} +3 -3
- package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
- package/dist/{useScrollToBlock-Dr7Sb6Tr.js → useScrollToBlock-Do3suaqp.js} +4 -5
- package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
- package/dist/withCurrentFont-B4YnsG_2.js +19 -0
- package/dist/{x-gEC0yMci.js → x-CBFKGLB1.js} +1 -1
- package/package.json +24 -24
- package/dist/BlockPreviewCanvas-DwxJOTzH.js +0 -133
- package/dist/CountdownBlock-RNx3hIu0.js +0 -91
- package/dist/WrapperBlock-CzJa2Mxw.js +0 -34
- package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.js +0 -135
- package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.js.map +0 -1
- package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js +0 -93
- package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B5DN4Sy4.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-G-yV7C1C.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-K4tIkpG1.js.map +0 -1
- package/dist/cdn/chunks/TplModal-OOT36AjS.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js +0 -36
- package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js.map +0 -1
- package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-CeRJkLR2.js.map +0 -1
- package/dist/cdn/chunks/de-CGjbQ2mt.js.map +0 -1
- package/dist/cdn/chunks/draggable-BUTN5vZC.js.map +0 -1
- package/dist/cdn/chunks/en-BTiiAC-B.js.map +0 -1
- package/dist/cdn/chunks/en-CAt6y87e.js +0 -1
- package/dist/cdn/chunks/es-CdTOcSTf.js.map +0 -1
- package/dist/cdn/chunks/extensions-xjRsIjMP.js.map +0 -1
- package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
- package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
- package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-CsYnPPll.js +0 -1050
- package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +0 -1
- package/dist/cdn/chunks/src-BcqNlDMe.js.map +0 -1
- package/dist/cdn/chunks/src-CkXmV2I2.js.map +0 -1
- package/dist/cdn/chunks/src-HA9F2kvk.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
- package/dist/cdn/chunks/useScrollToBlock-BDNJ25X1.js.map +0 -1
- package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +0 -32
- package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +0 -1
- package/dist/dist-CFC4pg2o.js +0 -5
- package/dist/dist-j2FavQmU.js +0 -5
- package/dist/en-Bk4iCfjp.js +0 -1
- package/dist/socialIcons-CvAixjj8.js +0 -1126
- package/dist/withCurrentFont-DeCbPVaE.js +0 -30
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { A as t, At as n, B as r, F as i, M as a, N as o, R as s, S as c, V as l, Y as u, Z as d, _ as f, at as p, c as m, d as h, g, h as _, jt as v, kt as y, l as b, r as x, s as S, u as C, v as w } from "./vue.runtime.esm-bundler-
|
|
3
|
-
import { a as T, o as E } from "./runtime-dom.esm-bundler-
|
|
4
|
-
import { J as D,
|
|
5
|
-
import {
|
|
6
|
-
import { _ as le } from "./dist-
|
|
7
|
-
import { $ as
|
|
8
|
-
import { t as
|
|
9
|
-
import { o as be } from "./usePopoverPosition-
|
|
10
|
-
import { t as xe } from "./createLucideIcon-
|
|
11
|
-
import { c as
|
|
12
|
-
import { t as Se } from "./chevron-down-
|
|
13
|
-
import { t as Ce } from "./circle-alert-
|
|
14
|
-
import { n as
|
|
15
|
-
import { t as Te } from "./copy-
|
|
16
|
-
import { t as Ee } from "./info-
|
|
17
|
-
import { t as De } from "./link-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import {
|
|
27
|
-
import { t as
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
|
|
31
|
-
import { t as J } from "./MergeTagInput-CR1kcj8X.js";
|
|
32
|
-
var Ge = xe({
|
|
2
|
+
import { A as t, At as n, B as r, F as i, M as a, N as o, R as s, S as c, V as l, Y as u, Z as d, _ as f, at as p, c as m, d as h, g, h as _, jt as v, kt as y, l as b, r as x, s as S, u as C, v as w } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
|
|
3
|
+
import { a as T, o as E } from "./runtime-dom.esm-bundler-lFF-QG3j.js";
|
|
4
|
+
import { J as D, V as O, _ as k, _t as A, c as j, i as M, n as N, r as P, t as F, tt as I, u as ee, v as te, vt as L } from "./dist-C8koXLhl.js";
|
|
5
|
+
import { S as R, a as ne, d as re, i as ie, l as ae, p as oe, r as se, u as ce } from "./socialIcons-BctavKBN.js";
|
|
6
|
+
import { _ as le } from "./dist-CUWI-IvA.js";
|
|
7
|
+
import { $ as ue, C as de, G as fe, L as pe, P as me, d as he, h as ge, n as _e, p as ve, v as ye } from "./keys-BKFq19a2.js";
|
|
8
|
+
import { t as z } from "./useI18n-CxVEpurs.js";
|
|
9
|
+
import { o as be } from "./usePopoverPosition-CwnH1o5g.js";
|
|
10
|
+
import { t as xe } from "./createLucideIcon-DziKp5iU.js";
|
|
11
|
+
import { c as B } from "./LogicTagInsertButton-DDYKnqmj.js";
|
|
12
|
+
import { t as Se } from "./chevron-down-BKyl85NV.js";
|
|
13
|
+
import { t as Ce } from "./circle-alert-Dx9ju3YZ.js";
|
|
14
|
+
import { n as V, t as we } from "./blockTypeIcons-4E1U8f99.js";
|
|
15
|
+
import { t as Te } from "./copy-BsKl4dcy.js";
|
|
16
|
+
import { t as Ee } from "./info-C7OjlS11.js";
|
|
17
|
+
import { t as De } from "./link-CrUFaZ0t.js";
|
|
18
|
+
import { n as Oe, t as ke } from "./smartphone-isccgDee.js";
|
|
19
|
+
import { t as H } from "./plus-BIilXopD.js";
|
|
20
|
+
import { t as Ae } from "./refresh-cw-DrLlkEVC.js";
|
|
21
|
+
import { n as je, r as Me, t as Ne } from "./text-align-start-C4JFeqsq.js";
|
|
22
|
+
import { t as Pe } from "./trash-8ZD9pK_c.js";
|
|
23
|
+
import { t as Fe } from "./x-CBFKGLB1.js";
|
|
24
|
+
import { t as Ie } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
25
|
+
import { t as Le } from "./useAliveFlag-Dd06mRxe.js";
|
|
26
|
+
import { _ as Re, b as ze, c as Be, g as U, h as W, m as G, p as K, r as Ve, v as He } from "./styleConstants-D1Jz-TFU.js";
|
|
27
|
+
import { n as Ue, t as q } from "./ToggleSwitch-BR8Sgzib.js";
|
|
28
|
+
import { n as We, t as Ge } from "./withCurrentFont-B4YnsG_2.js";
|
|
29
|
+
import { t as J } from "./MergeTagInput-DAL998tx.js";
|
|
30
|
+
var Ke = xe({
|
|
33
31
|
name: "lock-open",
|
|
34
32
|
size: 24,
|
|
35
33
|
node: [["rect", {
|
|
@@ -45,7 +43,7 @@ var Ge = xe({
|
|
|
45
43
|
key: "1mm8w8"
|
|
46
44
|
}]],
|
|
47
45
|
aliases: ["unlock"]
|
|
48
|
-
}),
|
|
46
|
+
}), qe = xe({
|
|
49
47
|
name: "lock",
|
|
50
48
|
size: 24,
|
|
51
49
|
node: [["rect", {
|
|
@@ -60,7 +58,7 @@ var Ge = xe({
|
|
|
60
58
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
61
59
|
key: "fwvmzm"
|
|
62
60
|
}]]
|
|
63
|
-
}),
|
|
61
|
+
}), Je = xe({
|
|
64
62
|
name: "unlink",
|
|
65
63
|
size: 24,
|
|
66
64
|
node: [
|
|
@@ -101,12 +99,12 @@ var Ge = xe({
|
|
|
101
99
|
key: "ox905f"
|
|
102
100
|
}]
|
|
103
101
|
]
|
|
104
|
-
}),
|
|
102
|
+
}), Ye = [
|
|
105
103
|
"aria-checked",
|
|
106
104
|
"aria-label",
|
|
107
105
|
"title",
|
|
108
106
|
"onClick"
|
|
109
|
-
],
|
|
107
|
+
], Xe = { key: 1 }, Y = /* @__PURE__ */ w({
|
|
110
108
|
__name: "SlidingPillSelect",
|
|
111
109
|
props: {
|
|
112
110
|
options: {},
|
|
@@ -149,9 +147,9 @@ var Ge = xe({
|
|
|
149
147
|
key: 0,
|
|
150
148
|
size: 14,
|
|
151
149
|
"stroke-width": 2
|
|
152
|
-
})) : (t(), h("span",
|
|
150
|
+
})) : (t(), h("span", Xe, v(r.label), 1))], 12, Ye))), 128))], 4));
|
|
153
151
|
}
|
|
154
|
-
}),
|
|
152
|
+
}), Ze = { class: "tpl:flex tpl:items-stretch" }, Qe = [
|
|
155
153
|
"data-testid",
|
|
156
154
|
"value",
|
|
157
155
|
"min",
|
|
@@ -172,7 +170,7 @@ var Ge = xe({
|
|
|
172
170
|
let t = e.target;
|
|
173
171
|
t.validity?.badInput || r("update:modelValue", Number(t.value));
|
|
174
172
|
}
|
|
175
|
-
return (n, r) => (t(), h("div",
|
|
173
|
+
return (n, r) => (t(), h("div", Ze, [m("input", {
|
|
176
174
|
type: "number",
|
|
177
175
|
"data-testid": e.testid,
|
|
178
176
|
class: y(p(G)),
|
|
@@ -180,14 +178,14 @@ var Ge = xe({
|
|
|
180
178
|
min: e.min,
|
|
181
179
|
max: e.max,
|
|
182
180
|
onInput: i
|
|
183
|
-
}, null, 42,
|
|
181
|
+
}, null, 42, Qe), m("span", { class: y(p(W)) }, v(e.suffix), 3)]));
|
|
184
182
|
}
|
|
185
|
-
}),
|
|
183
|
+
}), $e = [
|
|
186
184
|
"aria-pressed",
|
|
187
185
|
"aria-label",
|
|
188
186
|
"title",
|
|
189
187
|
"data-testid"
|
|
190
|
-
],
|
|
188
|
+
], et = /* @__PURE__ */ w({
|
|
191
189
|
__name: "LinkToggle",
|
|
192
190
|
props: {
|
|
193
191
|
linked: { type: Boolean },
|
|
@@ -210,16 +208,16 @@ var Ge = xe({
|
|
|
210
208
|
key: 0,
|
|
211
209
|
size: 14,
|
|
212
210
|
"stroke-width": 2
|
|
213
|
-
})) : (t(), b(p(
|
|
211
|
+
})) : (t(), b(p(Je), {
|
|
214
212
|
key: 1,
|
|
215
213
|
size: 14,
|
|
216
214
|
"stroke-width": 2
|
|
217
|
-
}))], 10,
|
|
215
|
+
}))], 10, $e));
|
|
218
216
|
}
|
|
219
|
-
}),
|
|
217
|
+
}), tt = { class: "tpl:mb-3.5" }, nt = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, rt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, it = {
|
|
220
218
|
key: 0,
|
|
221
219
|
class: "tpl:mb-3.5"
|
|
222
|
-
},
|
|
220
|
+
}, at = { class: "tpl:mb-3.5" }, ot = { class: "tpl:mb-3.5" }, st = /* @__PURE__ */ w({
|
|
223
221
|
__name: "BorderControl",
|
|
224
222
|
props: {
|
|
225
223
|
modelValue: {},
|
|
@@ -227,7 +225,7 @@ var Ge = xe({
|
|
|
227
225
|
},
|
|
228
226
|
emits: ["update:modelValue"],
|
|
229
227
|
setup(e, { emit: n }) {
|
|
230
|
-
let r = e, i = n, { t: a } =
|
|
228
|
+
let r = e, i = n, { t: a } = z(), o = {
|
|
231
229
|
width: 0,
|
|
232
230
|
style: "solid",
|
|
233
231
|
color: "#000000"
|
|
@@ -248,11 +246,11 @@ var Ge = xe({
|
|
|
248
246
|
}), b = (e) => !!e && e.width > 0;
|
|
249
247
|
function w(e) {
|
|
250
248
|
if (u.value) {
|
|
251
|
-
i("update:modelValue", b(e) ?
|
|
249
|
+
i("update:modelValue", b(e) ? L(e) : void 0);
|
|
252
250
|
return;
|
|
253
251
|
}
|
|
254
252
|
let t = {
|
|
255
|
-
...r.modelValue ??
|
|
253
|
+
...r.modelValue ?? L(o),
|
|
256
254
|
[f.value]: e
|
|
257
255
|
}, n = M.some((e) => b(t[e]));
|
|
258
256
|
i("update:modelValue", n ? t : void 0);
|
|
@@ -278,14 +276,14 @@ var Ge = xe({
|
|
|
278
276
|
let e = r.modelValue;
|
|
279
277
|
if (!e) return;
|
|
280
278
|
let t = b(e[f.value]) ? e[f.value] : M.map((t) => e[t]).find(b);
|
|
281
|
-
i("update:modelValue", t ?
|
|
279
|
+
i("update:modelValue", t ? L(t) : void 0);
|
|
282
280
|
}
|
|
283
281
|
let O = S(() => M.map((e) => ({
|
|
284
282
|
value: e,
|
|
285
283
|
label: a.spacingControl[e]
|
|
286
284
|
})));
|
|
287
|
-
return (n, r) => (t(), h("div",
|
|
288
|
-
m("div",
|
|
285
|
+
return (n, r) => (t(), h("div", tt, [
|
|
286
|
+
m("div", nt, [m("span", rt, v(p(a).blockSettings.border), 1), g(et, {
|
|
289
287
|
linked: u.value,
|
|
290
288
|
"link-label": p(a).blockSettings.linkSides,
|
|
291
289
|
"unlink-label": p(a).blockSettings.unlinkSides,
|
|
@@ -297,19 +295,19 @@ var Ge = xe({
|
|
|
297
295
|
"unlink-label",
|
|
298
296
|
"testid"
|
|
299
297
|
])]),
|
|
300
|
-
u.value ? C("", !0) : (t(), h("div",
|
|
298
|
+
u.value ? C("", !0) : (t(), h("div", it, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderSide), 3), g(Y, {
|
|
301
299
|
options: O.value,
|
|
302
300
|
"model-value": f.value,
|
|
303
301
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e
|
|
304
302
|
}, null, 8, ["options", "model-value"])])),
|
|
305
|
-
m("div",
|
|
303
|
+
m("div", at, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderWidth), 3), g(X, {
|
|
306
304
|
"model-value": _.value.width,
|
|
307
305
|
min: 0,
|
|
308
306
|
suffix: "px",
|
|
309
307
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
310
308
|
"onUpdate:modelValue": T
|
|
311
309
|
}, null, 8, ["model-value", "testid"])]),
|
|
312
|
-
_.value.width > 0 ? (t(), h(x, { key: 1 }, [m("div",
|
|
310
|
+
_.value.width > 0 ? (t(), h(x, { key: 1 }, [m("div", ot, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderStyle), 3), g(Y, {
|
|
313
311
|
options: [
|
|
314
312
|
{
|
|
315
313
|
value: "solid",
|
|
@@ -326,16 +324,16 @@ var Ge = xe({
|
|
|
326
324
|
],
|
|
327
325
|
"model-value": _.value.style,
|
|
328
326
|
"onUpdate:modelValue": r[1] ||= (e) => E({ style: e })
|
|
329
|
-
}, null, 8, ["options", "model-value"])]), m("div", null, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderColor), 3), g(
|
|
327
|
+
}, null, 8, ["options", "model-value"])]), m("div", null, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderColor), 3), g(B, {
|
|
330
328
|
"model-value": _.value.color,
|
|
331
329
|
"onUpdate:modelValue": r[2] ||= (e) => E({ color: e })
|
|
332
330
|
}, null, 8, ["model-value"])])], 64)) : C("", !0)
|
|
333
331
|
]));
|
|
334
332
|
}
|
|
335
|
-
}),
|
|
333
|
+
}), ct = { class: "tpl:mb-3.5" }, lt = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ut = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, dt = {
|
|
336
334
|
key: 1,
|
|
337
335
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
338
|
-
},
|
|
336
|
+
}, ft = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, pt = /* @__PURE__ */ w({
|
|
339
337
|
__name: "RadiusControl",
|
|
340
338
|
props: {
|
|
341
339
|
modelValue: {},
|
|
@@ -345,7 +343,7 @@ var Ge = xe({
|
|
|
345
343
|
},
|
|
346
344
|
emits: ["update:modelValue"],
|
|
347
345
|
setup(e, { emit: n }) {
|
|
348
|
-
let r = e, i = n, { t: o } =
|
|
346
|
+
let r = e, i = n, { t: o } = z(), c = {
|
|
349
347
|
topLeft: "cornerTopLeft",
|
|
350
348
|
topRight: "cornerTopRight",
|
|
351
349
|
bottomRight: "cornerBottomRight",
|
|
@@ -363,7 +361,7 @@ var Ge = xe({
|
|
|
363
361
|
bottomRight: e,
|
|
364
362
|
bottomLeft: e
|
|
365
363
|
} : e;
|
|
366
|
-
}), f = S(() =>
|
|
364
|
+
}), f = S(() => P.every((e) => u.value[e] === u.value.topLeft)), _ = d(f.value);
|
|
367
365
|
s(f, (e) => {
|
|
368
366
|
!e && _.value && (_.value = !1);
|
|
369
367
|
});
|
|
@@ -382,7 +380,7 @@ var Ge = xe({
|
|
|
382
380
|
function T() {
|
|
383
381
|
_.value = !_.value, _.value && i("update:modelValue", u.value.topLeft);
|
|
384
382
|
}
|
|
385
|
-
return (n, r) => (t(), h("div",
|
|
383
|
+
return (n, r) => (t(), h("div", ct, [m("div", lt, [m("span", ut, v(e.label), 1), g(et, {
|
|
386
384
|
linked: _.value,
|
|
387
385
|
"link-label": p(o).blockSettings.linkCorners,
|
|
388
386
|
"unlink-label": p(o).blockSettings.unlinkCorners,
|
|
@@ -405,7 +403,7 @@ var Ge = xe({
|
|
|
405
403
|
"model-value",
|
|
406
404
|
"max",
|
|
407
405
|
"testid"
|
|
408
|
-
])) : (t(), h("div",
|
|
406
|
+
])) : (t(), h("div", dt, [(t(), h(x, null, a(l, (t) => m("div", { key: t }, [m("label", ft, v(p(o).blockSettings[c[t]]), 1), g(X, {
|
|
409
407
|
"model-value": u.value[t],
|
|
410
408
|
min: 0,
|
|
411
409
|
max: e.max,
|
|
@@ -419,10 +417,10 @@ var Ge = xe({
|
|
|
419
417
|
"onUpdate:modelValue"
|
|
420
418
|
])])), 64))]))]));
|
|
421
419
|
}
|
|
422
|
-
}),
|
|
420
|
+
}), mt = { class: "tpl:mb-3.5" }, ht = ["value"], gt = { value: "" }, _t = ["value"], vt = { class: "tpl:mb-3.5" }, yt = { class: "tpl:mb-3.5" }, bt = { class: "tpl:mb-3.5" }, xt = { class: "tpl:mb-3.5" }, St = { class: "tpl:mb-3.5" }, Ct = { class: "tpl:flex tpl:items-stretch" }, wt = ["value"], Tt = { class: "tpl:mb-3.5" }, Et = ["value"], Dt = { value: "auto" }, Ot = { value: "full" }, kt = { value: "custom" }, At = {
|
|
423
421
|
key: 0,
|
|
424
422
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
425
|
-
},
|
|
423
|
+
}, jt = ["value"], Mt = { class: "tpl:mb-3.5" }, Nt = 200, Pt = /* @__PURE__ */ w({
|
|
426
424
|
__name: "ButtonToolbar",
|
|
427
425
|
props: {
|
|
428
426
|
block: {},
|
|
@@ -430,32 +428,32 @@ var Ge = xe({
|
|
|
430
428
|
},
|
|
431
429
|
emits: ["update"],
|
|
432
430
|
setup(e, { emit: n }) {
|
|
433
|
-
let r = e, i = n, { t: o } =
|
|
431
|
+
let r = e, i = n, { t: o } = z(), s = S(() => r.block.width === "full" ? "full" : typeof r.block.width == "number" ? "custom" : "auto");
|
|
434
432
|
function c(e, t) {
|
|
435
433
|
i("update", { [e]: t });
|
|
436
434
|
}
|
|
437
435
|
function l(e) {
|
|
438
|
-
e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof r.block.width == "number" ? r.block.width :
|
|
436
|
+
e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof r.block.width == "number" ? r.block.width : Nt) : c("width", void 0);
|
|
439
437
|
}
|
|
440
438
|
function u(e) {
|
|
441
439
|
let t = Number(e);
|
|
442
440
|
!Number.isFinite(t) || t <= 0 || c("width", t);
|
|
443
441
|
}
|
|
444
442
|
return (n, r) => (t(), h(x, null, [
|
|
445
|
-
m("div",
|
|
443
|
+
m("div", mt, [m("label", { class: y(p(U)) }, v(p(o).button.fontFamily), 3), m("select", {
|
|
446
444
|
class: y(p(K)),
|
|
447
|
-
value: p(
|
|
445
|
+
value: p(Ge)(e.block.fontFamily),
|
|
448
446
|
onChange: r[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
449
|
-
}, [m("option",
|
|
447
|
+
}, [m("option", gt, v(p(o).button.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
|
|
450
448
|
key: e.value,
|
|
451
449
|
value: e.value
|
|
452
|
-
}, v(e.label), 9,
|
|
453
|
-
m("div",
|
|
450
|
+
}, v(e.label), 9, _t))), 128))], 42, ht)]),
|
|
451
|
+
m("div", vt, [m("label", { class: y(p(U)) }, v(p(o).button.text), 3), g(J, {
|
|
454
452
|
"model-value": e.block.text,
|
|
455
453
|
type: "text",
|
|
456
454
|
"onUpdate:modelValue": r[1] ||= (e) => c("text", e)
|
|
457
455
|
}, null, 8, ["model-value"])]),
|
|
458
|
-
m("div",
|
|
456
|
+
m("div", yt, [
|
|
459
457
|
m("label", { class: y(p(U)) }, v(p(o).button.url), 3),
|
|
460
458
|
g(J, {
|
|
461
459
|
"model-value": e.block.url,
|
|
@@ -471,55 +469,55 @@ var Ge = xe({
|
|
|
471
469
|
"onUpdate:modelValue": r[3] ||= (e) => c("openInNewTab", e)
|
|
472
470
|
}, null, 8, ["model-value", "label"])) : C("", !0)
|
|
473
471
|
]),
|
|
474
|
-
m("div",
|
|
472
|
+
m("div", bt, [m("label", { class: y(p(U)) }, v(p(o).button.background), 3), g(B, {
|
|
475
473
|
"model-value": e.block.backgroundColor,
|
|
476
474
|
"allow-transparent": "",
|
|
477
475
|
"onUpdate:modelValue": r[4] ||= (e) => c("backgroundColor", e)
|
|
478
476
|
}, null, 8, ["model-value"])]),
|
|
479
|
-
m("div",
|
|
477
|
+
m("div", xt, [m("label", { class: y(p(U)) }, v(p(o).button.textColor), 3), g(B, {
|
|
480
478
|
"model-value": e.block.textColor,
|
|
481
479
|
"onUpdate:modelValue": r[5] ||= (e) => c("textColor", e)
|
|
482
480
|
}, null, 8, ["model-value"])]),
|
|
483
|
-
g(
|
|
481
|
+
g(st, {
|
|
484
482
|
"model-value": e.block.border,
|
|
485
483
|
"testid-prefix": "button",
|
|
486
484
|
"onUpdate:modelValue": r[6] ||= (e) => c("border", e)
|
|
487
485
|
}, null, 8, ["model-value"]),
|
|
488
|
-
g(
|
|
486
|
+
g(pt, {
|
|
489
487
|
"model-value": e.block.borderRadius,
|
|
490
488
|
label: p(o).button.borderRadius,
|
|
491
489
|
max: 50,
|
|
492
490
|
"testid-prefix": "button",
|
|
493
491
|
"onUpdate:modelValue": r[7] ||= (e) => c("borderRadius", e)
|
|
494
492
|
}, null, 8, ["model-value", "label"]),
|
|
495
|
-
m("div",
|
|
493
|
+
m("div", St, [m("label", { class: y(p(U)) }, v(p(o).button.fontSize), 3), m("div", Ct, [m("input", {
|
|
496
494
|
type: "number",
|
|
497
495
|
class: y(p(G)),
|
|
498
496
|
value: e.block.fontSize,
|
|
499
497
|
min: "10",
|
|
500
498
|
max: "36",
|
|
501
499
|
onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
502
|
-
}, null, 42,
|
|
503
|
-
m("div",
|
|
500
|
+
}, null, 42, wt), m("span", { class: y(p(W)) }, "px", 2)])]),
|
|
501
|
+
m("div", Tt, [
|
|
504
502
|
m("label", { class: y(p(U)) }, v(p(o).button.width), 3),
|
|
505
503
|
m("select", {
|
|
506
504
|
class: y(p(K)),
|
|
507
505
|
value: s.value,
|
|
508
506
|
onChange: r[9] ||= (e) => l(e.target.value)
|
|
509
507
|
}, [
|
|
510
|
-
m("option",
|
|
511
|
-
m("option",
|
|
512
|
-
m("option",
|
|
513
|
-
], 42,
|
|
514
|
-
s.value === "custom" ? (t(), h("div",
|
|
508
|
+
m("option", Dt, v(p(o).button.widthAuto), 1),
|
|
509
|
+
m("option", Ot, v(p(o).button.fullWidth), 1),
|
|
510
|
+
m("option", kt, v(p(o).button.widthCustom), 1)
|
|
511
|
+
], 42, Et),
|
|
512
|
+
s.value === "custom" ? (t(), h("div", At, [m("input", {
|
|
515
513
|
type: "number",
|
|
516
514
|
class: y(p(G)),
|
|
517
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
515
|
+
value: typeof e.block.width == "number" ? e.block.width : Nt,
|
|
518
516
|
min: "20",
|
|
519
517
|
onInput: r[10] ||= (e) => u(e.target.value)
|
|
520
|
-
}, null, 42,
|
|
518
|
+
}, null, 42, jt), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
|
|
521
519
|
]),
|
|
522
|
-
m("div",
|
|
520
|
+
m("div", Mt, [m("label", { class: y(p(U)) }, v(p(o).title.align), 3), g(Y, {
|
|
523
521
|
options: [
|
|
524
522
|
{
|
|
525
523
|
value: "left",
|
|
@@ -539,7 +537,7 @@ var Ge = xe({
|
|
|
539
537
|
}, null, 8, ["options", "model-value"])])
|
|
540
538
|
], 64));
|
|
541
539
|
}
|
|
542
|
-
}),
|
|
540
|
+
}), Ft = { class: "spacing-control" }, It = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Lt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Rt = { class: "tpl:flex tpl:items-center" }, zt = ["aria-label"], Bt = ["value", "aria-label"], Vt = ["aria-label"], Ht = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ut = { class: "tpl:flex tpl:items-center" }, Wt = ["aria-label"], Gt = ["value", "aria-label"], Kt = ["aria-label"], qt = ["aria-label", "title"], Jt = { class: "tpl:flex tpl:items-center" }, Yt = ["aria-label"], Xt = ["value", "aria-label"], Zt = ["aria-label"], Qt = { class: "tpl:flex tpl:items-center" }, $t = ["aria-label"], en = ["value", "aria-label"], tn = ["aria-label"], Z = "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)]", nn = "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)]", rn = /*#__PURE__*/ Ie(/* @__PURE__ */ w({
|
|
543
541
|
__name: "SpacingControl",
|
|
544
542
|
props: {
|
|
545
543
|
modelValue: {},
|
|
@@ -547,7 +545,7 @@ var Ge = xe({
|
|
|
547
545
|
},
|
|
548
546
|
emits: ["update:modelValue"],
|
|
549
547
|
setup(e, { emit: n }) {
|
|
550
|
-
let r = e, i = n, { t: a } =
|
|
548
|
+
let r = e, i = n, { t: a } = z(), o = S(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), c = d(o.value);
|
|
551
549
|
s(o, (e) => {
|
|
552
550
|
!e && c.value && (c.value = !1);
|
|
553
551
|
});
|
|
@@ -586,130 +584,256 @@ var Ge = xe({
|
|
|
586
584
|
});
|
|
587
585
|
}
|
|
588
586
|
}
|
|
589
|
-
return (n, r) => (t(), h("div",
|
|
590
|
-
m("div",
|
|
587
|
+
return (n, r) => (t(), h("div", Ft, [m("label", It, v(e.label), 1), m("div", Lt, [
|
|
588
|
+
m("div", Rt, [
|
|
591
589
|
m("button", {
|
|
592
590
|
"aria-label": p(a).spacingControl.decreaseTop,
|
|
593
591
|
class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
594
592
|
onClick: r[0] ||= (e) => l("top", -1)
|
|
595
|
-
}, [g(p(
|
|
593
|
+
}, [g(p(V), {
|
|
596
594
|
size: 12,
|
|
597
595
|
"stroke-width": 2
|
|
598
|
-
})], 10,
|
|
596
|
+
})], 10, zt),
|
|
599
597
|
m("input", {
|
|
600
598
|
type: "number",
|
|
601
|
-
class: y(
|
|
599
|
+
class: y(nn),
|
|
602
600
|
value: e.modelValue.top,
|
|
603
601
|
"aria-label": p(a).spacingControl.top,
|
|
604
602
|
min: "0",
|
|
605
603
|
onInput: r[1] ||= (e) => u("top", Number(e.target.value))
|
|
606
|
-
}, null, 40,
|
|
604
|
+
}, null, 40, Bt),
|
|
607
605
|
m("button", {
|
|
608
606
|
"aria-label": p(a).spacingControl.increaseTop,
|
|
609
607
|
class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
610
608
|
onClick: r[2] ||= (e) => l("top", 1)
|
|
611
|
-
}, [g(p(
|
|
609
|
+
}, [g(p(H), {
|
|
612
610
|
size: 12,
|
|
613
611
|
"stroke-width": 2
|
|
614
|
-
})], 10,
|
|
612
|
+
})], 10, Vt)
|
|
615
613
|
]),
|
|
616
|
-
m("div",
|
|
617
|
-
m("div",
|
|
614
|
+
m("div", Ht, [
|
|
615
|
+
m("div", Ut, [
|
|
618
616
|
m("button", {
|
|
619
617
|
"aria-label": p(a).spacingControl.decreaseLeft,
|
|
620
618
|
class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
621
619
|
onClick: r[3] ||= (e) => l("left", -1)
|
|
622
|
-
}, [g(p(
|
|
620
|
+
}, [g(p(V), {
|
|
623
621
|
size: 12,
|
|
624
622
|
"stroke-width": 2
|
|
625
|
-
})], 10,
|
|
623
|
+
})], 10, Wt),
|
|
626
624
|
m("input", {
|
|
627
625
|
type: "number",
|
|
628
|
-
class: y(
|
|
626
|
+
class: y(nn),
|
|
629
627
|
value: e.modelValue.left,
|
|
630
628
|
"aria-label": p(a).spacingControl.left,
|
|
631
629
|
min: "0",
|
|
632
630
|
onInput: r[4] ||= (e) => u("left", Number(e.target.value))
|
|
633
|
-
}, null, 40,
|
|
631
|
+
}, null, 40, Gt),
|
|
634
632
|
m("button", {
|
|
635
633
|
"aria-label": p(a).spacingControl.increaseLeft,
|
|
636
634
|
class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
637
635
|
onClick: r[5] ||= (e) => l("left", 1)
|
|
638
|
-
}, [g(p(
|
|
636
|
+
}, [g(p(H), {
|
|
639
637
|
size: 12,
|
|
640
638
|
"stroke-width": 2
|
|
641
|
-
})], 10,
|
|
639
|
+
})], 10, Kt)
|
|
642
640
|
]),
|
|
643
641
|
m("button", {
|
|
644
642
|
class: y(["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)]", c.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)]"]),
|
|
645
643
|
"aria-label": c.value ? p(a).spacingControl.unlock : p(a).spacingControl.lockAll,
|
|
646
644
|
title: c.value ? p(a).spacingControl.unlock : p(a).spacingControl.lockAll,
|
|
647
645
|
onClick: f
|
|
648
|
-
}, [c.value ? (t(), b(p(
|
|
646
|
+
}, [c.value ? (t(), b(p(qe), {
|
|
649
647
|
key: 0,
|
|
650
648
|
size: 14,
|
|
651
649
|
"stroke-width": 2
|
|
652
|
-
})) : (t(), b(p(
|
|
650
|
+
})) : (t(), b(p(Ke), {
|
|
653
651
|
key: 1,
|
|
654
652
|
size: 14,
|
|
655
653
|
"stroke-width": 2
|
|
656
|
-
}))], 10,
|
|
657
|
-
m("div",
|
|
654
|
+
}))], 10, qt),
|
|
655
|
+
m("div", Jt, [
|
|
658
656
|
m("button", {
|
|
659
657
|
"aria-label": p(a).spacingControl.decreaseRight,
|
|
660
658
|
class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
661
659
|
onClick: r[6] ||= (e) => l("right", -1)
|
|
662
|
-
}, [g(p(
|
|
660
|
+
}, [g(p(V), {
|
|
663
661
|
size: 12,
|
|
664
662
|
"stroke-width": 2
|
|
665
|
-
})], 10,
|
|
663
|
+
})], 10, Yt),
|
|
666
664
|
m("input", {
|
|
667
665
|
type: "number",
|
|
668
|
-
class: y(
|
|
666
|
+
class: y(nn),
|
|
669
667
|
value: e.modelValue.right,
|
|
670
668
|
"aria-label": p(a).spacingControl.right,
|
|
671
669
|
min: "0",
|
|
672
670
|
onInput: r[7] ||= (e) => u("right", Number(e.target.value))
|
|
673
|
-
}, null, 40,
|
|
671
|
+
}, null, 40, Xt),
|
|
674
672
|
m("button", {
|
|
675
673
|
"aria-label": p(a).spacingControl.increaseRight,
|
|
676
674
|
class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
677
675
|
onClick: r[8] ||= (e) => l("right", 1)
|
|
678
|
-
}, [g(p(
|
|
676
|
+
}, [g(p(H), {
|
|
679
677
|
size: 12,
|
|
680
678
|
"stroke-width": 2
|
|
681
|
-
})], 10,
|
|
679
|
+
})], 10, Zt)
|
|
682
680
|
])
|
|
683
681
|
]),
|
|
684
|
-
m("div",
|
|
682
|
+
m("div", Qt, [
|
|
685
683
|
m("button", {
|
|
686
684
|
"aria-label": p(a).spacingControl.decreaseBottom,
|
|
687
685
|
class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
688
686
|
onClick: r[9] ||= (e) => l("bottom", -1)
|
|
689
|
-
}, [g(p(
|
|
687
|
+
}, [g(p(V), {
|
|
690
688
|
size: 12,
|
|
691
689
|
"stroke-width": 2
|
|
692
|
-
})], 10,
|
|
690
|
+
})], 10, $t),
|
|
693
691
|
m("input", {
|
|
694
692
|
type: "number",
|
|
695
|
-
class: y(
|
|
693
|
+
class: y(nn),
|
|
696
694
|
value: e.modelValue.bottom,
|
|
697
695
|
"aria-label": p(a).spacingControl.bottom,
|
|
698
696
|
min: "0",
|
|
699
697
|
onInput: r[10] ||= (e) => u("bottom", Number(e.target.value))
|
|
700
|
-
}, null, 40,
|
|
698
|
+
}, null, 40, en),
|
|
701
699
|
m("button", {
|
|
702
700
|
"aria-label": p(a).spacingControl.increaseBottom,
|
|
703
701
|
class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
704
702
|
onClick: r[11] ||= (e) => l("bottom", 1)
|
|
705
|
-
}, [g(p(
|
|
703
|
+
}, [g(p(H), {
|
|
706
704
|
size: 12,
|
|
707
705
|
"stroke-width": 2
|
|
708
|
-
})], 10,
|
|
706
|
+
})], 10, tn)
|
|
709
707
|
])
|
|
710
708
|
])]));
|
|
711
709
|
}
|
|
712
|
-
}), [["__scopeId", "data-v-69591c1e"]]),
|
|
710
|
+
}), [["__scopeId", "data-v-69591c1e"]]), an = { class: "tpl:space-y-3.5" }, on = ["data-testid"], sn = ["data-testid"], cn = ["data-testid"], ln = ["aria-label", "data-testid"], un = [
|
|
711
|
+
"aria-label",
|
|
712
|
+
"title",
|
|
713
|
+
"aria-pressed",
|
|
714
|
+
"data-testid",
|
|
715
|
+
"onClick"
|
|
716
|
+
], dn = ["data-testid"], fn = /* @__PURE__ */ w({
|
|
717
|
+
__name: "BackgroundImageControl",
|
|
718
|
+
props: {
|
|
719
|
+
modelValue: {},
|
|
720
|
+
testidPrefix: {}
|
|
721
|
+
},
|
|
722
|
+
emits: ["update:modelValue"],
|
|
723
|
+
setup(e, { emit: n }) {
|
|
724
|
+
let r = e, i = n, { t: o } = z(), s = c(me, ee.liquid), l = S(() => typeof r.modelValue?.url == "string" ? r.modelValue.url : ""), u = S(() => l.value.trim() !== "");
|
|
725
|
+
function f(e) {
|
|
726
|
+
e.trim() === "" ? i("update:modelValue", void 0) : i("update:modelValue", r.modelValue ? {
|
|
727
|
+
...r.modelValue,
|
|
728
|
+
url: e
|
|
729
|
+
} : te(e));
|
|
730
|
+
}
|
|
731
|
+
function w(e) {
|
|
732
|
+
r.modelValue && i("update:modelValue", {
|
|
733
|
+
...r.modelValue,
|
|
734
|
+
...e
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
let T = S(() => [
|
|
738
|
+
{
|
|
739
|
+
value: "cover",
|
|
740
|
+
label: o.blockSettings.backgroundSizeCover
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
value: "contain",
|
|
744
|
+
label: o.blockSettings.backgroundSizeContain
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
value: "auto",
|
|
748
|
+
label: o.blockSettings.backgroundSizeAuto
|
|
749
|
+
}
|
|
750
|
+
]), E = S(() => ({
|
|
751
|
+
"top-left": o.blockSettings.backgroundPositionTopLeft,
|
|
752
|
+
"top-center": o.blockSettings.backgroundPositionTopCenter,
|
|
753
|
+
"top-right": o.blockSettings.backgroundPositionTopRight,
|
|
754
|
+
"center-left": o.blockSettings.backgroundPositionCenterLeft,
|
|
755
|
+
"center-center": o.blockSettings.backgroundPositionCenter,
|
|
756
|
+
"center-right": o.blockSettings.backgroundPositionCenterRight,
|
|
757
|
+
"bottom-left": o.blockSettings.backgroundPositionBottomLeft,
|
|
758
|
+
"bottom-center": o.blockSettings.backgroundPositionBottomCenter,
|
|
759
|
+
"bottom-right": o.blockSettings.backgroundPositionBottomRight
|
|
760
|
+
})), D = S(() => N.flatMap((e) => F.map((t) => ({
|
|
761
|
+
x: t,
|
|
762
|
+
y: e,
|
|
763
|
+
label: E.value[`${e}-${t}`]
|
|
764
|
+
}))));
|
|
765
|
+
function O(e) {
|
|
766
|
+
return r.modelValue?.position?.x === e.x && r.modelValue?.position?.y === e.y;
|
|
767
|
+
}
|
|
768
|
+
let A = d(), { canBrowse: j, isUploading: M, showOverlay: P, openMediaBrowser: I } = ie({
|
|
769
|
+
target: A,
|
|
770
|
+
blocked: () => k(l.value, s),
|
|
771
|
+
apply: (e) => f(e.url)
|
|
772
|
+
});
|
|
773
|
+
return (n, r) => (t(), h("div", an, [m("div", null, [m("label", { class: y(p(U)) }, v(p(o).blockSettings.backgroundImage), 3), m("div", {
|
|
774
|
+
ref_key: "dropZoneRef",
|
|
775
|
+
ref: A,
|
|
776
|
+
class: "tpl:relative",
|
|
777
|
+
"data-testid": `${e.testidPrefix}-bg-url`
|
|
778
|
+
}, [
|
|
779
|
+
p(P) ? (t(), b(ne, {
|
|
780
|
+
key: 0,
|
|
781
|
+
uploading: p(M)
|
|
782
|
+
}, null, 8, ["uploading"])) : C("", !0),
|
|
783
|
+
g(J, {
|
|
784
|
+
"model-value": l.value,
|
|
785
|
+
type: "url",
|
|
786
|
+
placeholder: p(o).blockSettings.backgroundImagePlaceholder,
|
|
787
|
+
"onUpdate:modelValue": f
|
|
788
|
+
}, null, 8, ["model-value", "placeholder"]),
|
|
789
|
+
p(j) ? (t(), h("button", {
|
|
790
|
+
key: 1,
|
|
791
|
+
type: "button",
|
|
792
|
+
"data-testid": `${e.testidPrefix}-bg-browse`,
|
|
793
|
+
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",
|
|
794
|
+
style: {
|
|
795
|
+
"border-color": "var(--tpl-border)",
|
|
796
|
+
color: "var(--tpl-primary)",
|
|
797
|
+
"background-color": "var(--tpl-bg)"
|
|
798
|
+
},
|
|
799
|
+
onClick: r[0] ||= (...e) => p(I) && p(I)(...e)
|
|
800
|
+
}, [g(p(ae), {
|
|
801
|
+
size: 14,
|
|
802
|
+
"stroke-width": 1.5
|
|
803
|
+
}), _(" " + v(p(o).image.browseMedia), 1)], 8, sn)) : C("", !0)
|
|
804
|
+
], 8, on)]), u.value && e.modelValue ? (t(), h(x, { key: 0 }, [
|
|
805
|
+
m("div", { "data-testid": `${e.testidPrefix}-bg-size` }, [m("label", { class: y(p(U)) }, v(p(o).blockSettings.backgroundSize), 3), g(Y, {
|
|
806
|
+
options: T.value,
|
|
807
|
+
"model-value": e.modelValue.size,
|
|
808
|
+
"onUpdate:modelValue": r[1] ||= (e) => w({ size: e })
|
|
809
|
+
}, null, 8, ["options", "model-value"])], 8, cn),
|
|
810
|
+
m("div", null, [m("label", { class: y(p(U)) }, v(p(o).blockSettings.backgroundPosition), 3), m("div", {
|
|
811
|
+
role: "group",
|
|
812
|
+
"aria-label": p(o).blockSettings.backgroundPosition,
|
|
813
|
+
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
814
|
+
class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
|
|
815
|
+
}, [(t(!0), h(x, null, a(D.value, (n) => (t(), h("button", {
|
|
816
|
+
key: `${n.y}-${n.x}`,
|
|
817
|
+
type: "button",
|
|
818
|
+
"aria-label": n.label,
|
|
819
|
+
title: n.label,
|
|
820
|
+
"aria-pressed": O(n),
|
|
821
|
+
"data-testid": `${e.testidPrefix}-bg-position-${n.y}-${n.x}`,
|
|
822
|
+
class: y(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors", O(n) ? "tpl:border-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
823
|
+
onClick: (e) => w({ position: {
|
|
824
|
+
x: n.x,
|
|
825
|
+
y: n.y
|
|
826
|
+
} })
|
|
827
|
+
}, [m("span", { class: y(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", O(n) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, un))), 128))], 8, ln)]),
|
|
828
|
+
m("div", { "data-testid": `${e.testidPrefix}-bg-repeat` }, [g(q, {
|
|
829
|
+
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
830
|
+
"model-value": e.modelValue.repeat,
|
|
831
|
+
label: p(o).blockSettings.backgroundRepeat,
|
|
832
|
+
"onUpdate:modelValue": r[2] ||= (e) => w({ repeat: e })
|
|
833
|
+
}, null, 8, ["model-value", "label"])], 8, dn)
|
|
834
|
+
], 64)) : C("", !0)]));
|
|
835
|
+
}
|
|
836
|
+
}), pn = ["data-testid"], mn = { class: "tpl:mt-3" }, hn = /* @__PURE__ */ w({
|
|
713
837
|
__name: "CollapsibleSection",
|
|
714
838
|
props: {
|
|
715
839
|
title: {},
|
|
@@ -728,21 +852,21 @@ var Ge = xe({
|
|
|
728
852
|
class: y(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
729
853
|
size: 12,
|
|
730
854
|
"stroke-width": 2
|
|
731
|
-
}, null, 8, ["class"]), m("span", null, v(e.title), 1)], 8,
|
|
855
|
+
}, null, 8, ["class"]), m("span", null, v(e.title), 1)], 8, pn), l(m("div", mn, [o(n.$slots, "default")], 512), [[E, e.open]])], 2));
|
|
732
856
|
}
|
|
733
|
-
}),
|
|
857
|
+
}), gn = { class: "tpl:space-y-2" }, _n = { class: "tpl:flex tpl:items-center tpl:gap-2" }, vn = { class: "tpl:space-y-2" }, yn = ["value"], bn = { value: "" }, xn = ["label"], Sn = ["value"], Cn = ["value"], wn = {
|
|
734
858
|
key: 0,
|
|
735
859
|
value: "__custom__"
|
|
736
|
-
},
|
|
860
|
+
}, Tn = {
|
|
737
861
|
key: 0,
|
|
738
862
|
class: "tpl:space-y-2"
|
|
739
|
-
},
|
|
863
|
+
}, En = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Dn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, On = { class: "tpl:flex tpl:justify-end" }, kn = ["disabled"], An = {
|
|
740
864
|
key: 0,
|
|
741
865
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
742
|
-
},
|
|
866
|
+
}, jn = { class: "tpl:space-y-1" }, Mn = { 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)]" }, Nn = {
|
|
743
867
|
key: 0,
|
|
744
868
|
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)]"
|
|
745
|
-
},
|
|
869
|
+
}, Pn = /* @__PURE__ */ w({
|
|
746
870
|
__name: "CommonBlockSettings",
|
|
747
871
|
props: {
|
|
748
872
|
block: {},
|
|
@@ -750,23 +874,23 @@ var Ge = xe({
|
|
|
750
874
|
},
|
|
751
875
|
emits: ["update"],
|
|
752
876
|
setup(e, { emit: n }) {
|
|
753
|
-
let o = e, f = n, { t: w } =
|
|
877
|
+
let o = e, f = n, { t: w } = z(), E = c(ge, []), D = c(_e, !1), O = u(/* @__PURE__ */ new Set()), k = d(!1), A = d(""), j = d(""), M = [{
|
|
754
878
|
key: "desktop",
|
|
755
|
-
icon:
|
|
879
|
+
icon: Oe,
|
|
756
880
|
labelKey: "showOnDesktop"
|
|
757
881
|
}, {
|
|
758
882
|
key: "mobile",
|
|
759
|
-
icon:
|
|
883
|
+
icon: ke,
|
|
760
884
|
labelKey: "showOnMobile"
|
|
761
885
|
}];
|
|
762
|
-
function
|
|
886
|
+
function N(e) {
|
|
763
887
|
O.has(e) ? O.delete(e) : O.add(e);
|
|
764
888
|
}
|
|
765
|
-
let
|
|
766
|
-
function
|
|
767
|
-
k.value = !0,
|
|
889
|
+
let P = S(() => E.length > 0 || D), F = S(() => o.block.displayCondition ? !E.some((e) => e.label === o.block.displayCondition?.label) : !1);
|
|
890
|
+
function I() {
|
|
891
|
+
k.value = !0, F.value && o.block.displayCondition ? (A.value = o.block.displayCondition.before, j.value = o.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
|
|
768
892
|
}
|
|
769
|
-
function
|
|
893
|
+
function ee() {
|
|
770
894
|
A.value.trim() && (f("update", { displayCondition: {
|
|
771
895
|
label: w.blockSettings.customCondition,
|
|
772
896
|
before: A.value.trim(),
|
|
@@ -774,9 +898,9 @@ var Ge = xe({
|
|
|
774
898
|
} }), k.value = !1, A.value = "", j.value = "");
|
|
775
899
|
}
|
|
776
900
|
s(() => o.block.displayCondition, (e) => {
|
|
777
|
-
e ?
|
|
901
|
+
e ? F.value && (A.value = e.before, j.value = e.after ?? "") : (k.value = !1, A.value = "", j.value = "");
|
|
778
902
|
}, { immediate: !0 });
|
|
779
|
-
let
|
|
903
|
+
let te = S(() => {
|
|
780
904
|
let e = {};
|
|
781
905
|
for (let t of E) {
|
|
782
906
|
let n = t.group ?? "";
|
|
@@ -784,33 +908,33 @@ var Ge = xe({
|
|
|
784
908
|
}
|
|
785
909
|
return e;
|
|
786
910
|
});
|
|
787
|
-
function
|
|
911
|
+
function L(e, t) {
|
|
788
912
|
f("update", { styles: {
|
|
789
913
|
...o.block.styles,
|
|
790
914
|
[e]: t
|
|
791
915
|
} });
|
|
792
916
|
}
|
|
793
|
-
function
|
|
917
|
+
function R(e) {
|
|
794
918
|
return o.block.visibility?.[e] !== !1;
|
|
795
919
|
}
|
|
796
|
-
function
|
|
920
|
+
function ne(e) {
|
|
797
921
|
let t = {
|
|
798
|
-
desktop:
|
|
799
|
-
mobile:
|
|
922
|
+
desktop: R("desktop"),
|
|
923
|
+
mobile: R("mobile")
|
|
800
924
|
};
|
|
801
925
|
t[e] = !t[e], f("update", { visibility: t });
|
|
802
926
|
}
|
|
803
927
|
return (n, o) => (t(), h("div", { class: y(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
804
|
-
g(
|
|
928
|
+
g(hn, {
|
|
805
929
|
title: p(w).blockSettings.spacing,
|
|
806
930
|
open: O.has("spacing"),
|
|
807
931
|
"no-border": e.isFirstSection,
|
|
808
|
-
onToggle: o[1] ||= (e) =>
|
|
932
|
+
onToggle: o[1] ||= (e) => N("spacing")
|
|
809
933
|
}, {
|
|
810
|
-
default: r(() => [g(
|
|
934
|
+
default: r(() => [g(rn, {
|
|
811
935
|
label: p(w).blockSettings.padding,
|
|
812
936
|
"model-value": e.block.styles.padding,
|
|
813
|
-
"onUpdate:modelValue": o[0] ||= (e) =>
|
|
937
|
+
"onUpdate:modelValue": o[0] ||= (e) => L("padding", e)
|
|
814
938
|
}, null, 8, ["label", "model-value"])]),
|
|
815
939
|
_: 1
|
|
816
940
|
}, 8, [
|
|
@@ -818,31 +942,42 @@ var Ge = xe({
|
|
|
818
942
|
"open",
|
|
819
943
|
"no-border"
|
|
820
944
|
]),
|
|
821
|
-
g(
|
|
945
|
+
g(hn, {
|
|
822
946
|
title: p(w).blockSettings.background,
|
|
823
947
|
open: O.has("bg"),
|
|
824
|
-
|
|
948
|
+
"header-test-id": "block-settings-background",
|
|
949
|
+
onToggle: o[4] ||= (e) => N("bg")
|
|
825
950
|
}, {
|
|
826
|
-
default: r(() => [
|
|
827
|
-
"
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
951
|
+
default: r(() => [
|
|
952
|
+
m("label", { class: y(p(U)) }, v(p(w).blockSettings.color), 3),
|
|
953
|
+
g(B, {
|
|
954
|
+
"model-value": e.block.styles.backgroundColor ?? "",
|
|
955
|
+
"allow-transparent": "",
|
|
956
|
+
"onUpdate:modelValue": o[2] ||= (e) => L("backgroundColor", e)
|
|
957
|
+
}, null, 8, ["model-value"]),
|
|
958
|
+
e.block.type === "section" ? (t(), b(fn, {
|
|
959
|
+
key: 0,
|
|
960
|
+
class: "tpl:mt-3.5",
|
|
961
|
+
"model-value": e.block.backgroundImage,
|
|
962
|
+
"testid-prefix": "section",
|
|
963
|
+
"onUpdate:modelValue": o[3] ||= (e) => f("update", { backgroundImage: e })
|
|
964
|
+
}, null, 8, ["model-value"])) : C("", !0)
|
|
965
|
+
]),
|
|
831
966
|
_: 1
|
|
832
967
|
}, 8, ["title", "open"]),
|
|
833
|
-
g(
|
|
968
|
+
g(hn, {
|
|
834
969
|
title: p(w).blockSettings.display,
|
|
835
970
|
open: O.has("display"),
|
|
836
|
-
onToggle: o[
|
|
971
|
+
onToggle: o[5] ||= (e) => N("display")
|
|
837
972
|
}, {
|
|
838
|
-
default: r(() => [m("div",
|
|
973
|
+
default: r(() => [m("div", gn, [(t(), h(x, null, a(M, (e) => g(q, {
|
|
839
974
|
key: e.key,
|
|
840
975
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
841
|
-
"model-value":
|
|
976
|
+
"model-value": R(e.key),
|
|
842
977
|
label: p(w).blockSettings[e.labelKey],
|
|
843
|
-
"onUpdate:modelValue": (t) =>
|
|
978
|
+
"onUpdate:modelValue": (t) => ne(e.key)
|
|
844
979
|
}, {
|
|
845
|
-
default: r(() => [m("span",
|
|
980
|
+
default: r(() => [m("span", _n, [(t(), b(i(e.icon), {
|
|
846
981
|
size: 14,
|
|
847
982
|
"stroke-width": 1.5
|
|
848
983
|
})), _(" " + v(p(w).blockSettings[e.labelKey]), 1)])]),
|
|
@@ -854,21 +989,21 @@ var Ge = xe({
|
|
|
854
989
|
])), 64))])]),
|
|
855
990
|
_: 1
|
|
856
991
|
}, 8, ["title", "open"]),
|
|
857
|
-
|
|
992
|
+
P.value ? (t(), b(hn, {
|
|
858
993
|
key: 0,
|
|
859
994
|
"header-test-id": "display-condition-section",
|
|
860
995
|
title: p(w).blockSettings.displayCondition,
|
|
861
996
|
open: O.has("condition"),
|
|
862
|
-
onToggle: o[
|
|
997
|
+
onToggle: o[9] ||= (e) => N("condition")
|
|
863
998
|
}, {
|
|
864
|
-
default: r(() => [m("div",
|
|
999
|
+
default: r(() => [m("div", vn, [m("select", {
|
|
865
1000
|
"data-testid": "display-condition-select",
|
|
866
1001
|
class: y(["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)]"]),
|
|
867
|
-
value: k.value ||
|
|
868
|
-
onChange: o[
|
|
1002
|
+
value: k.value || F.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1003
|
+
onChange: o[6] ||= (e) => {
|
|
869
1004
|
let t = e.target.value;
|
|
870
1005
|
if (t === "__custom__") {
|
|
871
|
-
|
|
1006
|
+
I();
|
|
872
1007
|
return;
|
|
873
1008
|
}
|
|
874
1009
|
if (k.value = !1, !t) {
|
|
@@ -879,41 +1014,41 @@ var Ge = xe({
|
|
|
879
1014
|
n && f("update", { displayCondition: n });
|
|
880
1015
|
}
|
|
881
1016
|
}, [
|
|
882
|
-
m("option",
|
|
883
|
-
(t(!0), h(x, null, a(
|
|
1017
|
+
m("option", bn, v(p(w).blockSettings.noCondition), 1),
|
|
1018
|
+
(t(!0), h(x, null, a(te.value, (e, n) => (t(), h(x, { key: n }, [n ? (t(), h("optgroup", {
|
|
884
1019
|
key: 0,
|
|
885
1020
|
label: String(n)
|
|
886
1021
|
}, [(t(!0), h(x, null, a(e, (e) => (t(), h("option", {
|
|
887
1022
|
key: e.label,
|
|
888
1023
|
value: e.label
|
|
889
|
-
}, v(e.label), 9,
|
|
1024
|
+
}, v(e.label), 9, Sn))), 128))], 8, xn)) : (t(!0), h(x, { key: 1 }, a(e, (e) => (t(), h("option", {
|
|
890
1025
|
key: e.label,
|
|
891
1026
|
value: e.label
|
|
892
|
-
}, v(e.label), 9,
|
|
893
|
-
p(D) ? (t(), h("option",
|
|
894
|
-
], 42,
|
|
895
|
-
m("div", null, [m("label",
|
|
896
|
-
"onUpdate:modelValue": o[
|
|
1027
|
+
}, v(e.label), 9, Cn))), 128))], 64))), 128)),
|
|
1028
|
+
p(D) ? (t(), h("option", wn, v(p(w).blockSettings.customCondition), 1)) : C("", !0)
|
|
1029
|
+
], 42, yn), k.value || F.value ? (t(), h("div", Tn, [
|
|
1030
|
+
m("div", null, [m("label", En, v(p(w).blockSettings.customConditionBefore), 1), l(m("textarea", {
|
|
1031
|
+
"onUpdate:modelValue": o[7] ||= (e) => A.value = e,
|
|
897
1032
|
rows: "2",
|
|
898
|
-
class: y(p(
|
|
1033
|
+
class: y(p(Re))
|
|
899
1034
|
}, null, 2), [[T, A.value]])]),
|
|
900
|
-
m("div", null, [m("label",
|
|
901
|
-
"onUpdate:modelValue": o[
|
|
1035
|
+
m("div", null, [m("label", Dn, v(p(w).blockSettings.customConditionAfter), 1), l(m("textarea", {
|
|
1036
|
+
"onUpdate:modelValue": o[8] ||= (e) => j.value = e,
|
|
902
1037
|
rows: "2",
|
|
903
|
-
class: y(p(
|
|
1038
|
+
class: y(p(Re))
|
|
904
1039
|
}, null, 2), [[T, j.value]])]),
|
|
905
|
-
m("div",
|
|
1040
|
+
m("div", On, [m("button", {
|
|
906
1041
|
type: "button",
|
|
907
|
-
class: y(p(
|
|
1042
|
+
class: y(p(He)),
|
|
908
1043
|
disabled: !A.value.trim(),
|
|
909
|
-
onClick:
|
|
910
|
-
}, v(p(w).blockSettings.applyCondition), 11,
|
|
911
|
-
])) : e.block.displayCondition && !
|
|
1044
|
+
onClick: ee
|
|
1045
|
+
}, v(p(w).blockSettings.applyCondition), 11, kn)])
|
|
1046
|
+
])) : e.block.displayCondition && !F.value ? (t(), h(x, { key: 1 }, [e.block.displayCondition.description ? (t(), h("p", An, v(e.block.displayCondition.description), 1)) : C("", !0), m("div", jn, [m("pre", Mn, v(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (t(), h("pre", Nn, v(e.block.displayCondition.after), 1)) : C("", !0)])], 64)) : C("", !0)])]),
|
|
912
1047
|
_: 1
|
|
913
1048
|
}, 8, ["title", "open"])) : C("", !0)
|
|
914
1049
|
], 2));
|
|
915
1050
|
}
|
|
916
|
-
}),
|
|
1051
|
+
}), Fn = ["title"], In = /* @__PURE__ */ w({
|
|
917
1052
|
__name: "BooleanField",
|
|
918
1053
|
props: {
|
|
919
1054
|
field: {},
|
|
@@ -922,7 +1057,7 @@ var Ge = xe({
|
|
|
922
1057
|
},
|
|
923
1058
|
emits: ["update:modelValue"],
|
|
924
1059
|
setup(e, { emit: n }) {
|
|
925
|
-
let i = n, { t: a } =
|
|
1060
|
+
let i = n, { t: a } = z();
|
|
926
1061
|
return (n, o) => (t(), h("div", {
|
|
927
1062
|
class: "tpl:mb-3.5",
|
|
928
1063
|
title: e.readOnly ? p(a).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
@@ -934,7 +1069,7 @@ var Ge = xe({
|
|
|
934
1069
|
disabled: e.readOnly,
|
|
935
1070
|
"onUpdate:modelValue": o[0] ||= (e) => i("update:modelValue", e)
|
|
936
1071
|
}, {
|
|
937
|
-
default: r(() => [_(v(e.field.label) + " ", 1), e.readOnly ? (t(), b(p(
|
|
1072
|
+
default: r(() => [_(v(e.field.label) + " ", 1), e.readOnly ? (t(), b(p(qe), {
|
|
938
1073
|
key: 0,
|
|
939
1074
|
size: 12,
|
|
940
1075
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -945,9 +1080,9 @@ var Ge = xe({
|
|
|
945
1080
|
"label",
|
|
946
1081
|
"required",
|
|
947
1082
|
"disabled"
|
|
948
|
-
])], 8,
|
|
1083
|
+
])], 8, Fn));
|
|
949
1084
|
}
|
|
950
|
-
}),
|
|
1085
|
+
}), Ln = { class: "tpl:mb-3.5" }, Rn = ["title"], zn = { class: "tpl-sr-only" }, Bn = ["title"], Vn = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ w({
|
|
951
1086
|
__name: "FieldWrapper",
|
|
952
1087
|
props: {
|
|
953
1088
|
label: {},
|
|
@@ -955,25 +1090,25 @@ var Ge = xe({
|
|
|
955
1090
|
readOnly: { type: Boolean }
|
|
956
1091
|
},
|
|
957
1092
|
setup(e) {
|
|
958
|
-
let { t: n } =
|
|
959
|
-
return (r, i) => (t(), h("div",
|
|
1093
|
+
let { t: n } = z();
|
|
1094
|
+
return (r, i) => (t(), h("div", Ln, [m("label", { class: y(p(U)) }, [
|
|
960
1095
|
_(v(e.label) + " ", 1),
|
|
961
1096
|
e.readOnly ? (t(), h("span", {
|
|
962
1097
|
key: 0,
|
|
963
1098
|
title: p(n).customBlocks.dataSource.readOnlyTooltip
|
|
964
|
-
}, [g(p(
|
|
1099
|
+
}, [g(p(qe), {
|
|
965
1100
|
size: 12,
|
|
966
1101
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
967
1102
|
"aria-hidden": "true"
|
|
968
|
-
}), m("span",
|
|
1103
|
+
}), m("span", zn, v(p(n).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Rn)) : C("", !0),
|
|
969
1104
|
e.required ? (t(), h("span", {
|
|
970
1105
|
key: 1,
|
|
971
1106
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
972
1107
|
title: p(n).customBlocks.fields.required
|
|
973
|
-
}, [i[0] ||= m("span", { "aria-hidden": "true" }, "*", -1), m("span",
|
|
1108
|
+
}, [i[0] ||= m("span", { "aria-hidden": "true" }, "*", -1), m("span", Vn, v(p(n).customBlocks.fields.required), 1)], 8, Bn)) : C("", !0)
|
|
974
1109
|
], 2), o(r.$slots, "default")]));
|
|
975
1110
|
}
|
|
976
|
-
}),
|
|
1111
|
+
}), Hn = /* @__PURE__ */ w({
|
|
977
1112
|
__name: "ColorField",
|
|
978
1113
|
props: {
|
|
979
1114
|
field: {},
|
|
@@ -982,13 +1117,13 @@ var Ge = xe({
|
|
|
982
1117
|
},
|
|
983
1118
|
emits: ["update:modelValue"],
|
|
984
1119
|
setup(e, { emit: n }) {
|
|
985
|
-
let i = e, a = n, { t: o } =
|
|
1120
|
+
let i = e, a = n, { t: o } = z(), s = c(he, be), l = S(() => re(i.field, s));
|
|
986
1121
|
return (n, i) => (t(), b(Q, {
|
|
987
1122
|
label: e.field.label,
|
|
988
1123
|
required: e.field.required,
|
|
989
1124
|
"read-only": e.readOnly
|
|
990
1125
|
}, {
|
|
991
|
-
default: r(() => [g(
|
|
1126
|
+
default: r(() => [g(B, {
|
|
992
1127
|
"model-value": e.modelValue,
|
|
993
1128
|
placeholder: e.field.placeholder,
|
|
994
1129
|
disabled: e.readOnly,
|
|
@@ -1011,15 +1146,11 @@ var Ge = xe({
|
|
|
1011
1146
|
"read-only"
|
|
1012
1147
|
]));
|
|
1013
1148
|
}
|
|
1014
|
-
}),
|
|
1015
|
-
key: 0,
|
|
1016
|
-
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
1017
|
-
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
1018
|
-
}, Fn = [
|
|
1149
|
+
}), Un = [
|
|
1019
1150
|
"value",
|
|
1020
1151
|
"placeholder",
|
|
1021
1152
|
"title"
|
|
1022
|
-
],
|
|
1153
|
+
], Wn = ["value", "placeholder"], Gn = /* @__PURE__ */ w({
|
|
1023
1154
|
__name: "ImageField",
|
|
1024
1155
|
props: {
|
|
1025
1156
|
field: {},
|
|
@@ -1028,31 +1159,10 @@ var Ge = xe({
|
|
|
1028
1159
|
},
|
|
1029
1160
|
emits: ["update:modelValue"],
|
|
1030
1161
|
setup(e, { emit: n }) {
|
|
1031
|
-
let i = e, a = n, { t: o } =
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
}
|
|
1036
|
-
let T = d(), E = d(!1), D = S(() => (l?.value ?? !!s) && !E.value && !i.readOnly);
|
|
1037
|
-
async function O(e) {
|
|
1038
|
-
if (s) {
|
|
1039
|
-
E.value = !0;
|
|
1040
|
-
try {
|
|
1041
|
-
let t = await s({
|
|
1042
|
-
accept: ["images"],
|
|
1043
|
-
files: e
|
|
1044
|
-
});
|
|
1045
|
-
if (!u.alive) return;
|
|
1046
|
-
t && a("update:modelValue", t.url);
|
|
1047
|
-
} finally {
|
|
1048
|
-
u.alive && (E.value = !1);
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
let { isOver: k } = ae({
|
|
1053
|
-
target: T,
|
|
1054
|
-
enabled: D,
|
|
1055
|
-
onFiles: O
|
|
1162
|
+
let i = e, a = n, { t: o } = z(), s = d(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: f } = ie({
|
|
1163
|
+
target: s,
|
|
1164
|
+
blocked: () => !!i.readOnly,
|
|
1165
|
+
apply: (e) => a("update:modelValue", e.url)
|
|
1056
1166
|
});
|
|
1057
1167
|
return (n, i) => (t(), b(Q, {
|
|
1058
1168
|
label: e.field.label,
|
|
@@ -1061,17 +1171,13 @@ var Ge = xe({
|
|
|
1061
1171
|
}, {
|
|
1062
1172
|
default: r(() => [m("div", {
|
|
1063
1173
|
ref_key: "dropZoneRef",
|
|
1064
|
-
ref:
|
|
1174
|
+
ref: s,
|
|
1065
1175
|
class: "tpl:relative"
|
|
1066
1176
|
}, [
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
}), _(" " + v(p(o).image.uploading), 1)], 64)) : (t(), h(x, { key: 1 }, [g(p(Ne), {
|
|
1072
|
-
size: 18,
|
|
1073
|
-
"stroke-width": 1.5
|
|
1074
|
-
}), _(" " + v(p(o).image.dropToUpload), 1)], 64))])) : C("", !0),
|
|
1177
|
+
p(u) ? (t(), b(ne, {
|
|
1178
|
+
key: 0,
|
|
1179
|
+
uploading: p(l)
|
|
1180
|
+
}, null, 8, ["uploading"])) : C("", !0),
|
|
1075
1181
|
e.readOnly ? (t(), h("input", {
|
|
1076
1182
|
key: 1,
|
|
1077
1183
|
type: "url",
|
|
@@ -1080,19 +1186,19 @@ var Ge = xe({
|
|
|
1080
1186
|
placeholder: e.field.placeholder || "https://...",
|
|
1081
1187
|
disabled: "",
|
|
1082
1188
|
title: p(o).customBlocks.dataSource.readOnlyTooltip
|
|
1083
|
-
}, null, 10,
|
|
1189
|
+
}, null, 10, Un)) : (t(), h("input", {
|
|
1084
1190
|
key: 2,
|
|
1085
1191
|
type: "url",
|
|
1086
1192
|
class: y(p(K)),
|
|
1087
1193
|
value: e.modelValue,
|
|
1088
1194
|
placeholder: e.field.placeholder || "https://...",
|
|
1089
1195
|
onInput: i[0] ||= (e) => a("update:modelValue", e.target.value)
|
|
1090
|
-
}, null, 42,
|
|
1091
|
-
|
|
1196
|
+
}, null, 42, Wn)),
|
|
1197
|
+
p(c) && !e.readOnly ? (t(), h("button", {
|
|
1092
1198
|
key: 3,
|
|
1093
1199
|
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)]",
|
|
1094
|
-
onClick: i[1] ||= (e) =>
|
|
1095
|
-
}, [g(p(
|
|
1200
|
+
onClick: i[1] ||= (e) => p(f)()
|
|
1201
|
+
}, [g(p(ae), {
|
|
1096
1202
|
size: 14,
|
|
1097
1203
|
"stroke-width": 1.5
|
|
1098
1204
|
}), _(" " + v(p(o).image.browseMedia), 1)])) : C("", !0)
|
|
@@ -1104,7 +1210,7 @@ var Ge = xe({
|
|
|
1104
1210
|
"read-only"
|
|
1105
1211
|
]));
|
|
1106
1212
|
}
|
|
1107
|
-
}),
|
|
1213
|
+
}), Kn = [
|
|
1108
1214
|
"value",
|
|
1109
1215
|
"placeholder",
|
|
1110
1216
|
"min",
|
|
@@ -1112,7 +1218,7 @@ var Ge = xe({
|
|
|
1112
1218
|
"step",
|
|
1113
1219
|
"disabled",
|
|
1114
1220
|
"title"
|
|
1115
|
-
],
|
|
1221
|
+
], qn = /* @__PURE__ */ w({
|
|
1116
1222
|
__name: "NumberField",
|
|
1117
1223
|
props: {
|
|
1118
1224
|
field: {},
|
|
@@ -1121,7 +1227,7 @@ var Ge = xe({
|
|
|
1121
1227
|
},
|
|
1122
1228
|
emits: ["update:modelValue"],
|
|
1123
1229
|
setup(e, { emit: n }) {
|
|
1124
|
-
let i = n, { t: a } =
|
|
1230
|
+
let i = n, { t: a } = z();
|
|
1125
1231
|
return (n, o) => (t(), b(Q, {
|
|
1126
1232
|
label: e.field.label,
|
|
1127
1233
|
required: e.field.required,
|
|
@@ -1138,7 +1244,7 @@ var Ge = xe({
|
|
|
1138
1244
|
disabled: e.readOnly,
|
|
1139
1245
|
title: e.readOnly ? p(a).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1140
1246
|
onInput: o[0] ||= (t) => !e.readOnly && i("update:modelValue", Number(t.target.value))
|
|
1141
|
-
}, null, 42,
|
|
1247
|
+
}, null, 42, Kn)]),
|
|
1142
1248
|
_: 1
|
|
1143
1249
|
}, 8, [
|
|
1144
1250
|
"label",
|
|
@@ -1146,13 +1252,13 @@ var Ge = xe({
|
|
|
1146
1252
|
"read-only"
|
|
1147
1253
|
]));
|
|
1148
1254
|
}
|
|
1149
|
-
}),
|
|
1255
|
+
}), Jn = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Yn = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Xn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Zn = ["title", "onClick"], Qn = {
|
|
1150
1256
|
key: 1,
|
|
1151
1257
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1152
|
-
},
|
|
1258
|
+
}, $n = {
|
|
1153
1259
|
key: 2,
|
|
1154
1260
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1155
|
-
},
|
|
1261
|
+
}, er = /* @__PURE__ */ w({
|
|
1156
1262
|
__name: "RepeatableField",
|
|
1157
1263
|
props: {
|
|
1158
1264
|
field: {},
|
|
@@ -1161,7 +1267,7 @@ var Ge = xe({
|
|
|
1161
1267
|
},
|
|
1162
1268
|
emits: ["update:modelValue"],
|
|
1163
1269
|
setup(e, { emit: n }) {
|
|
1164
|
-
let o = e, s = n, { t: c, format: l } =
|
|
1270
|
+
let o = e, s = n, { t: c, format: l } = z(), u = S(() => o.modelValue || []), d = S(() => !o.field.maxItems || u.value.length < o.field.maxItems), f = S(() => !o.field.minItems || u.value.length > o.field.minItems);
|
|
1165
1271
|
function w() {
|
|
1166
1272
|
if (!d.value || o.readOnly) return;
|
|
1167
1273
|
let e = {};
|
|
@@ -1185,20 +1291,20 @@ var Ge = xe({
|
|
|
1185
1291
|
required: e.field.required,
|
|
1186
1292
|
"read-only": e.readOnly
|
|
1187
1293
|
}, {
|
|
1188
|
-
default: r(() => [m("div",
|
|
1294
|
+
default: r(() => [m("div", Jn, [
|
|
1189
1295
|
(t(!0), h(x, null, a(u.value, (n, r) => (t(), h("div", {
|
|
1190
1296
|
key: `${e.field.key}-${r}`,
|
|
1191
1297
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1192
|
-
}, [m("div",
|
|
1298
|
+
}, [m("div", Yn, [m("span", Xn, " #" + v(r + 1), 1), f.value && !e.readOnly ? (t(), h("button", {
|
|
1193
1299
|
key: 0,
|
|
1194
1300
|
type: "button",
|
|
1195
1301
|
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)]",
|
|
1196
1302
|
title: p(c).customBlocks.fields.removeItem,
|
|
1197
1303
|
onClick: (e) => T(r)
|
|
1198
|
-
}, [g(p(
|
|
1304
|
+
}, [g(p(Pe), {
|
|
1199
1305
|
size: 12,
|
|
1200
1306
|
"stroke-width": 2
|
|
1201
|
-
})], 8,
|
|
1307
|
+
})], 8, Zn)) : C("", !0)]), (t(!0), h(x, null, a(e.field.fields, (a) => (t(), b(i(p(lr)(a.type)), {
|
|
1202
1308
|
key: a.key,
|
|
1203
1309
|
field: a,
|
|
1204
1310
|
"model-value": n[a.key],
|
|
@@ -1213,14 +1319,14 @@ var Ge = xe({
|
|
|
1213
1319
|
d.value && !e.readOnly ? (t(), h("button", {
|
|
1214
1320
|
key: 0,
|
|
1215
1321
|
type: "button",
|
|
1216
|
-
class: y(p(
|
|
1322
|
+
class: y(p(Be)),
|
|
1217
1323
|
onClick: w
|
|
1218
|
-
}, [g(p(
|
|
1324
|
+
}, [g(p(H), {
|
|
1219
1325
|
size: 14,
|
|
1220
1326
|
"stroke-width": 2
|
|
1221
1327
|
}), _(" " + v(p(c).customBlocks.fields.addItem), 1)], 2)) : C("", !0),
|
|
1222
|
-
!d.value && !e.readOnly ? (t(), h("p",
|
|
1223
|
-
!f.value && !e.readOnly ? (t(), h("p",
|
|
1328
|
+
!d.value && !e.readOnly ? (t(), h("p", Qn, v(p(c).customBlocks.fields.maxItemsReached), 1)) : C("", !0),
|
|
1329
|
+
!f.value && !e.readOnly ? (t(), h("p", $n, v(p(l)(p(c).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : C("", !0)
|
|
1224
1330
|
])]),
|
|
1225
1331
|
_: 1
|
|
1226
1332
|
}, 8, [
|
|
@@ -1229,11 +1335,11 @@ var Ge = xe({
|
|
|
1229
1335
|
"read-only"
|
|
1230
1336
|
]));
|
|
1231
1337
|
}
|
|
1232
|
-
}),
|
|
1338
|
+
}), tr = [
|
|
1233
1339
|
"value",
|
|
1234
1340
|
"disabled",
|
|
1235
1341
|
"title"
|
|
1236
|
-
],
|
|
1342
|
+
], nr = ["value"], rr = /* @__PURE__ */ w({
|
|
1237
1343
|
__name: "SelectField",
|
|
1238
1344
|
props: {
|
|
1239
1345
|
field: {},
|
|
@@ -1242,7 +1348,7 @@ var Ge = xe({
|
|
|
1242
1348
|
},
|
|
1243
1349
|
emits: ["update:modelValue"],
|
|
1244
1350
|
setup(e, { emit: n }) {
|
|
1245
|
-
let i = n, { t: o } =
|
|
1351
|
+
let i = n, { t: o } = z();
|
|
1246
1352
|
return (n, s) => (t(), b(Q, {
|
|
1247
1353
|
label: e.field.label,
|
|
1248
1354
|
required: e.field.required,
|
|
@@ -1257,7 +1363,7 @@ var Ge = xe({
|
|
|
1257
1363
|
}, [(t(!0), h(x, null, a(e.field.options, (e) => (t(), h("option", {
|
|
1258
1364
|
key: e.value,
|
|
1259
1365
|
value: e.value
|
|
1260
|
-
}, v(e.label), 9,
|
|
1366
|
+
}, v(e.label), 9, nr))), 128))], 42, tr)]),
|
|
1261
1367
|
_: 1
|
|
1262
1368
|
}, 8, [
|
|
1263
1369
|
"label",
|
|
@@ -1265,11 +1371,11 @@ var Ge = xe({
|
|
|
1265
1371
|
"read-only"
|
|
1266
1372
|
]));
|
|
1267
1373
|
}
|
|
1268
|
-
}),
|
|
1374
|
+
}), ir = [
|
|
1269
1375
|
"value",
|
|
1270
1376
|
"placeholder",
|
|
1271
1377
|
"title"
|
|
1272
|
-
],
|
|
1378
|
+
], ar = /* @__PURE__ */ w({
|
|
1273
1379
|
__name: "TextField",
|
|
1274
1380
|
props: {
|
|
1275
1381
|
field: {},
|
|
@@ -1278,7 +1384,7 @@ var Ge = xe({
|
|
|
1278
1384
|
},
|
|
1279
1385
|
emits: ["update:modelValue"],
|
|
1280
1386
|
setup(e, { emit: n }) {
|
|
1281
|
-
let i = n, { t: a } =
|
|
1387
|
+
let i = n, { t: a } = z();
|
|
1282
1388
|
return (n, o) => (t(), b(Q, {
|
|
1283
1389
|
label: e.field.label,
|
|
1284
1390
|
required: e.field.required,
|
|
@@ -1292,7 +1398,7 @@ var Ge = xe({
|
|
|
1292
1398
|
placeholder: e.field.placeholder,
|
|
1293
1399
|
disabled: "",
|
|
1294
1400
|
title: p(a).customBlocks.dataSource.readOnlyTooltip
|
|
1295
|
-
}, null, 10,
|
|
1401
|
+
}, null, 10, ir)) : (t(), b(J, {
|
|
1296
1402
|
key: 1,
|
|
1297
1403
|
"model-value": e.modelValue,
|
|
1298
1404
|
placeholder: e.field.placeholder,
|
|
@@ -1305,12 +1411,12 @@ var Ge = xe({
|
|
|
1305
1411
|
"read-only"
|
|
1306
1412
|
]));
|
|
1307
1413
|
}
|
|
1308
|
-
}),
|
|
1414
|
+
}), or = [
|
|
1309
1415
|
"value",
|
|
1310
1416
|
"placeholder",
|
|
1311
1417
|
"title"
|
|
1312
|
-
],
|
|
1313
|
-
text:
|
|
1418
|
+
], sr = "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", cr = {
|
|
1419
|
+
text: ar,
|
|
1314
1420
|
textarea: /* @__PURE__ */ w({
|
|
1315
1421
|
__name: "TextareaField",
|
|
1316
1422
|
props: {
|
|
@@ -1320,7 +1426,7 @@ var Ge = xe({
|
|
|
1320
1426
|
},
|
|
1321
1427
|
emits: ["update:modelValue"],
|
|
1322
1428
|
setup(e, { emit: n }) {
|
|
1323
|
-
let i = n, { t: a } =
|
|
1429
|
+
let i = n, { t: a } = z();
|
|
1324
1430
|
return (n, o) => (t(), b(Q, {
|
|
1325
1431
|
label: e.field.label,
|
|
1326
1432
|
required: e.field.required,
|
|
@@ -1333,8 +1439,8 @@ var Ge = xe({
|
|
|
1333
1439
|
rows: "3",
|
|
1334
1440
|
disabled: "",
|
|
1335
1441
|
title: p(a).customBlocks.dataSource.readOnlyTooltip,
|
|
1336
|
-
class: y(
|
|
1337
|
-
}, null, 8,
|
|
1442
|
+
class: y(sr)
|
|
1443
|
+
}, null, 8, or)) : (t(), b(Ue, {
|
|
1338
1444
|
key: 1,
|
|
1339
1445
|
"model-value": e.modelValue,
|
|
1340
1446
|
placeholder: e.field.placeholder,
|
|
@@ -1348,42 +1454,42 @@ var Ge = xe({
|
|
|
1348
1454
|
]));
|
|
1349
1455
|
}
|
|
1350
1456
|
}),
|
|
1351
|
-
image:
|
|
1352
|
-
color:
|
|
1353
|
-
number:
|
|
1354
|
-
select:
|
|
1355
|
-
boolean:
|
|
1356
|
-
repeatable:
|
|
1457
|
+
image: Gn,
|
|
1458
|
+
color: Hn,
|
|
1459
|
+
number: qn,
|
|
1460
|
+
select: rr,
|
|
1461
|
+
boolean: In,
|
|
1462
|
+
repeatable: er
|
|
1357
1463
|
};
|
|
1358
|
-
function
|
|
1359
|
-
return
|
|
1464
|
+
function lr(e) {
|
|
1465
|
+
return cr[e] ?? ar;
|
|
1360
1466
|
}
|
|
1361
1467
|
//#endregion
|
|
1362
1468
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1363
|
-
var
|
|
1469
|
+
var ur = {
|
|
1364
1470
|
key: 0,
|
|
1365
1471
|
class: "tpl:p-4"
|
|
1366
|
-
},
|
|
1472
|
+
}, dr = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, fr = { key: 1 }, pr = {
|
|
1367
1473
|
key: 0,
|
|
1368
1474
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1369
|
-
},
|
|
1475
|
+
}, mr = {
|
|
1370
1476
|
key: 1,
|
|
1371
1477
|
class: "tpl:mb-4"
|
|
1372
|
-
},
|
|
1478
|
+
}, hr = {
|
|
1373
1479
|
key: 1,
|
|
1374
1480
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1375
|
-
},
|
|
1481
|
+
}, gr = {
|
|
1376
1482
|
key: 0,
|
|
1377
1483
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1378
|
-
},
|
|
1484
|
+
}, _r = {
|
|
1379
1485
|
key: 2,
|
|
1380
1486
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1381
|
-
},
|
|
1487
|
+
}, vr = /* @__PURE__ */ w({
|
|
1382
1488
|
__name: "CustomBlockToolbar",
|
|
1383
1489
|
props: { block: {} },
|
|
1384
1490
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1385
1491
|
setup(e, { emit: n }) {
|
|
1386
|
-
let r = e, o = n, { t: s } =
|
|
1492
|
+
let r = e, o = n, { t: s } = z(), l = c(ve, []), u = S(() => l.find((e) => e.type === r.block.customType)), d = S(() => r.block), { isFetching: f, fetchError: y, fetch: w, hasDataSource: T, needsFetch: E } = R({
|
|
1387
1493
|
definition: u,
|
|
1388
1494
|
block: d,
|
|
1389
1495
|
onUpdate: (e, t) => {
|
|
@@ -1399,23 +1505,23 @@ var nr = {
|
|
|
1399
1505
|
[e]: t
|
|
1400
1506
|
});
|
|
1401
1507
|
}
|
|
1402
|
-
return (n, r) => u.value ? (t(), h("div",
|
|
1403
|
-
u.value.description ? (t(), h("p",
|
|
1404
|
-
p(T) ? (t(), h("div",
|
|
1508
|
+
return (n, r) => u.value ? (t(), h("div", fr, [
|
|
1509
|
+
u.value.description ? (t(), h("p", pr, v(u.value.description), 1)) : C("", !0),
|
|
1510
|
+
p(T) ? (t(), h("div", mr, [p(E) && !p(f) ? (t(), h("button", {
|
|
1405
1511
|
key: 0,
|
|
1406
1512
|
type: "button",
|
|
1407
1513
|
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)]",
|
|
1408
1514
|
onClick: r[0] ||= (...e) => p(w) && p(w)(...e)
|
|
1409
|
-
}, v(u.value?.dataSource?.label || p(s).customBlocks.dataSource.fetchButton), 1)) : (t(), h("div",
|
|
1515
|
+
}, v(u.value?.dataSource?.label || p(s).customBlocks.dataSource.fetchButton), 1)) : (t(), h("div", hr, [p(f) ? (t(), h("div", gr, v(p(s).customBlocks.dataSource.fetching), 1)) : (t(), h("button", {
|
|
1410
1516
|
key: 1,
|
|
1411
1517
|
type: "button",
|
|
1412
1518
|
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)]",
|
|
1413
1519
|
onClick: r[1] ||= (...e) => p(w) && p(w)(...e)
|
|
1414
|
-
}, [g(p(
|
|
1520
|
+
}, [g(p(Ae), { size: 12 }), _(" " + v(p(s).customBlocks.dataSource.changeButton), 1)]))])), p(y) ? (t(), h("p", _r, [g(p(Ce), {
|
|
1415
1521
|
size: 14,
|
|
1416
1522
|
class: "tpl:shrink-0"
|
|
1417
1523
|
}), _(" " + v(p(s).customBlocks.dataSource.fetchError), 1)])) : C("", !0)])) : C("", !0),
|
|
1418
|
-
(t(!0), h(x, null, a(u.value.fields, (n) => (t(), b(i(p(
|
|
1524
|
+
(t(!0), h(x, null, a(u.value.fields, (n) => (t(), b(i(p(lr)(n.type)), {
|
|
1419
1525
|
key: n.key,
|
|
1420
1526
|
field: n,
|
|
1421
1527
|
"model-value": e.block.fieldValues[n.key],
|
|
@@ -1427,19 +1533,19 @@ var nr = {
|
|
|
1427
1533
|
"read-only",
|
|
1428
1534
|
"onUpdate:modelValue"
|
|
1429
1535
|
]))), 128))
|
|
1430
|
-
])) : (t(), h("div",
|
|
1536
|
+
])) : (t(), h("div", ur, [m("p", dr, v(p(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
1431
1537
|
}
|
|
1432
|
-
}),
|
|
1538
|
+
}), yr = { class: "tpl:mb-3.5" }, br = { class: "tpl:mb-3.5" }, xr = { class: "tpl:mb-3.5" }, Sr = { class: "tpl:flex tpl:items-stretch" }, Cr = ["value"], wr = /* @__PURE__ */ w({
|
|
1433
1539
|
__name: "DividerToolbar",
|
|
1434
1540
|
props: { block: {} },
|
|
1435
1541
|
emits: ["update"],
|
|
1436
1542
|
setup(e, { emit: n }) {
|
|
1437
|
-
let r = n, { t: i } =
|
|
1543
|
+
let r = n, { t: i } = z();
|
|
1438
1544
|
function a(e, t) {
|
|
1439
1545
|
r("update", { [e]: t });
|
|
1440
1546
|
}
|
|
1441
1547
|
return (n, r) => (t(), h(x, null, [
|
|
1442
|
-
m("div",
|
|
1548
|
+
m("div", yr, [m("label", { class: y(p(U)) }, v(p(i).divider.style), 3), g(Y, {
|
|
1443
1549
|
options: [
|
|
1444
1550
|
{
|
|
1445
1551
|
value: "solid",
|
|
@@ -1457,147 +1563,122 @@ var nr = {
|
|
|
1457
1563
|
"model-value": e.block.lineStyle,
|
|
1458
1564
|
"onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
|
|
1459
1565
|
}, null, 8, ["options", "model-value"])]),
|
|
1460
|
-
m("div",
|
|
1566
|
+
m("div", br, [m("label", { class: y(p(U)) }, v(p(i).divider.color), 3), g(B, {
|
|
1461
1567
|
"model-value": e.block.color,
|
|
1462
1568
|
"onUpdate:modelValue": r[1] ||= (e) => a("color", e)
|
|
1463
1569
|
}, null, 8, ["model-value"])]),
|
|
1464
|
-
m("div",
|
|
1570
|
+
m("div", xr, [m("label", { class: y(p(U)) }, v(p(i).divider.thickness), 3), m("div", Sr, [m("input", {
|
|
1465
1571
|
type: "number",
|
|
1466
1572
|
class: y(p(G)),
|
|
1467
1573
|
value: e.block.thickness,
|
|
1468
1574
|
min: "1",
|
|
1469
1575
|
max: "10",
|
|
1470
1576
|
onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
|
|
1471
|
-
}, null, 42,
|
|
1577
|
+
}, null, 42, Cr), m("span", { class: y(p(W)) }, "px", 2)])])
|
|
1472
1578
|
], 64));
|
|
1473
1579
|
}
|
|
1474
|
-
}),
|
|
1580
|
+
}), Tr = { class: "tpl:mb-3.5" }, Er = ["value"], Dr = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Or = /* @__PURE__ */ w({
|
|
1475
1581
|
__name: "HtmlToolbar",
|
|
1476
1582
|
props: { block: {} },
|
|
1477
1583
|
emits: ["update"],
|
|
1478
1584
|
setup(e, { emit: n }) {
|
|
1479
|
-
let r = n, { t: i } =
|
|
1480
|
-
return (n, a) => (t(), h("div",
|
|
1585
|
+
let r = n, { t: i } = z();
|
|
1586
|
+
return (n, a) => (t(), h("div", Tr, [
|
|
1481
1587
|
m("label", { class: y(p(U)) }, v(p(i).html.content), 3),
|
|
1482
1588
|
m("textarea", {
|
|
1483
1589
|
value: e.block.content,
|
|
1484
1590
|
placeholder: "<div>...</div>",
|
|
1485
1591
|
rows: "10",
|
|
1486
|
-
class: y(p(
|
|
1592
|
+
class: y(p(Re)),
|
|
1487
1593
|
onInput: a[0] ||= (e) => r("update", { content: e.target.value })
|
|
1488
|
-
}, null, 42,
|
|
1489
|
-
m("p",
|
|
1594
|
+
}, null, 42, Er),
|
|
1595
|
+
m("p", Dr, [g(p(Ee), {
|
|
1490
1596
|
size: 12,
|
|
1491
1597
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1492
1598
|
}), _(" " + v(p(i).html.sanitizationHint), 1)])
|
|
1493
1599
|
]));
|
|
1494
1600
|
}
|
|
1495
|
-
}),
|
|
1496
|
-
key: 0,
|
|
1497
|
-
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
1498
|
-
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
1499
|
-
}, Cr = {
|
|
1601
|
+
}), kr = { class: "tpl:mb-3.5" }, Ar = {
|
|
1500
1602
|
key: 0,
|
|
1501
1603
|
class: "tpl:mb-3.5"
|
|
1502
|
-
},
|
|
1604
|
+
}, jr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Mr = [
|
|
1503
1605
|
"value",
|
|
1504
1606
|
"placeholder",
|
|
1505
1607
|
"title"
|
|
1506
|
-
],
|
|
1608
|
+
], Nr = { class: "tpl:mb-3.5" }, Pr = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Fr = { class: "tpl:mb-3.5" }, Ir = ["value"], Lr = { value: "full" }, Rr = { value: "custom" }, zr = {
|
|
1507
1609
|
key: 0,
|
|
1508
1610
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1509
|
-
},
|
|
1611
|
+
}, Br = ["value"], Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = { value: "auto" }, Wr = { value: "custom" }, Gr = {
|
|
1510
1612
|
key: 0,
|
|
1511
1613
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1512
|
-
},
|
|
1614
|
+
}, Kr = ["value"], qr = { class: "tpl:mb-3.5" }, Jr = { class: "tpl:mb-3.5" }, Yr = 350, Xr = 200, Zr = /* @__PURE__ */ w({
|
|
1513
1615
|
__name: "ImageToolbar",
|
|
1514
1616
|
props: { block: {} },
|
|
1515
1617
|
emits: ["update"],
|
|
1516
1618
|
setup(e, { emit: n }) {
|
|
1517
|
-
let i = e, a = n, { t: o } =
|
|
1518
|
-
|
|
1519
|
-
}, 1e3, { immediate: !1 }),
|
|
1619
|
+
let i = e, a = n, { t: o } = z(), s = c(me, ee.liquid), l = d(!1), u = d(!1), { start: f } = le(() => {
|
|
1620
|
+
l.value = !1, u.value = !1;
|
|
1621
|
+
}, 1e3, { immediate: !1 }), w = [
|
|
1520
1622
|
300,
|
|
1521
1623
|
400,
|
|
1522
1624
|
500
|
|
1523
|
-
],
|
|
1625
|
+
], T = S(() => {
|
|
1524
1626
|
let e = i.block.width;
|
|
1525
|
-
return e === "full" ? "full" :
|
|
1526
|
-
}),
|
|
1527
|
-
function
|
|
1627
|
+
return e === "full" ? "full" : w.includes(e) ? String(e) : "custom";
|
|
1628
|
+
}), E = S(() => typeof i.block.height == "number" ? "custom" : "auto");
|
|
1629
|
+
function D(e, t) {
|
|
1528
1630
|
a("update", { [e]: t });
|
|
1529
1631
|
}
|
|
1530
|
-
function
|
|
1632
|
+
function O(e) {
|
|
1531
1633
|
if (e === "custom") {
|
|
1532
1634
|
let e = i.block.width;
|
|
1533
|
-
(typeof e != "number" ||
|
|
1534
|
-
} else
|
|
1635
|
+
(typeof e != "number" || w.includes(e)) && D("width", Yr);
|
|
1636
|
+
} else D("width", e === "full" ? "full" : Number(e));
|
|
1535
1637
|
}
|
|
1536
|
-
function
|
|
1537
|
-
|
|
1638
|
+
function j(e) {
|
|
1639
|
+
D("height", e === "custom" ? Xr : void 0);
|
|
1538
1640
|
}
|
|
1539
|
-
function
|
|
1641
|
+
function M(e) {
|
|
1540
1642
|
let t = Number(e);
|
|
1541
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1643
|
+
!Number.isFinite(t) || t <= 0 || D("height", t);
|
|
1542
1644
|
}
|
|
1543
|
-
function
|
|
1544
|
-
|
|
1645
|
+
function N(e) {
|
|
1646
|
+
D("borderRadius", A(e) === null ? void 0 : e);
|
|
1545
1647
|
}
|
|
1546
|
-
function
|
|
1648
|
+
function P(e) {
|
|
1547
1649
|
let t = Number(e);
|
|
1548
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1549
|
-
}
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
f.alive && e && (M("src", e.url), e.alt && (M("alt", e.alt), E.value = !0), T.value = !0, D());
|
|
1553
|
-
}
|
|
1554
|
-
let ce = d(), F = d(!1), ue = S(() => ee(i.block.src, u)), de = S(() => (l?.value ?? !!s) && !F.value && !ue.value);
|
|
1555
|
-
async function he(e) {
|
|
1556
|
-
if (s) {
|
|
1557
|
-
F.value = !0;
|
|
1558
|
-
try {
|
|
1559
|
-
let t = await s({
|
|
1560
|
-
accept: ["images"],
|
|
1561
|
-
files: e
|
|
1562
|
-
});
|
|
1563
|
-
if (!f.alive) return;
|
|
1564
|
-
t && (M("src", t.url), t.alt && (M("alt", t.alt), E.value = !0), T.value = !0, D());
|
|
1565
|
-
} finally {
|
|
1566
|
-
f.alive && (F.value = !1);
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1650
|
+
!Number.isFinite(t) || t <= 0 || D("width", t);
|
|
1651
|
+
}
|
|
1652
|
+
function F(e) {
|
|
1653
|
+
D("src", e.url), e.alt && (D("alt", e.alt), u.value = !0), l.value = !0, f();
|
|
1569
1654
|
}
|
|
1570
|
-
let {
|
|
1571
|
-
target:
|
|
1572
|
-
|
|
1573
|
-
|
|
1655
|
+
let I = d(), te = S(() => k(i.block.src, s)), { canBrowse: L, isUploading: R, showOverlay: re, openMediaBrowser: oe } = ie({
|
|
1656
|
+
target: I,
|
|
1657
|
+
blocked: te,
|
|
1658
|
+
apply: F
|
|
1574
1659
|
});
|
|
1575
1660
|
return (n, i) => (t(), h(x, null, [
|
|
1576
|
-
m("div",
|
|
1661
|
+
m("div", kr, [m("label", { class: y(p(U)) }, v(p(o).image.imageUrl), 3), m("div", {
|
|
1577
1662
|
ref_key: "dropZoneRef",
|
|
1578
|
-
ref:
|
|
1663
|
+
ref: I,
|
|
1579
1664
|
class: "tpl:relative"
|
|
1580
1665
|
}, [
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
}), _(" " + v(p(o).image.uploading), 1)], 64)) : (t(), h(x, { key: 1 }, [g(p(Ne), {
|
|
1586
|
-
size: 18,
|
|
1587
|
-
"stroke-width": 1.5
|
|
1588
|
-
}), _(" " + v(p(o).image.dropToUpload), 1)], 64))])) : C("", !0),
|
|
1666
|
+
p(re) ? (t(), b(ne, {
|
|
1667
|
+
key: 0,
|
|
1668
|
+
uploading: p(R)
|
|
1669
|
+
}, null, 8, ["uploading"])) : C("", !0),
|
|
1589
1670
|
g(J, {
|
|
1590
1671
|
"model-value": e.block.src,
|
|
1591
1672
|
type: "url",
|
|
1592
1673
|
placeholder: p(o).image.imageUrlPlaceholder,
|
|
1593
|
-
pulse:
|
|
1594
|
-
"onUpdate:modelValue": i[0] ||= (e) =>
|
|
1674
|
+
pulse: l.value,
|
|
1675
|
+
"onUpdate:modelValue": i[0] ||= (e) => D("src", e)
|
|
1595
1676
|
}, null, 8, [
|
|
1596
1677
|
"model-value",
|
|
1597
1678
|
"placeholder",
|
|
1598
1679
|
"pulse"
|
|
1599
1680
|
]),
|
|
1600
|
-
|
|
1681
|
+
p(L) ? (t(), h("button", {
|
|
1601
1682
|
key: 1,
|
|
1602
1683
|
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",
|
|
1603
1684
|
style: {
|
|
@@ -1605,29 +1686,29 @@ var nr = {
|
|
|
1605
1686
|
color: "var(--tpl-primary)",
|
|
1606
1687
|
"background-color": "var(--tpl-bg)"
|
|
1607
1688
|
},
|
|
1608
|
-
onClick:
|
|
1609
|
-
}, [g(p(
|
|
1689
|
+
onClick: i[1] ||= (...e) => p(oe) && p(oe)(...e)
|
|
1690
|
+
}, [g(p(ae), {
|
|
1610
1691
|
size: 14,
|
|
1611
1692
|
"stroke-width": 1.5
|
|
1612
1693
|
}), _(" " + v(p(o).image.browseMedia), 1)])) : C("", !0)
|
|
1613
1694
|
], 512)]),
|
|
1614
|
-
p(
|
|
1695
|
+
p(k)(e.block.src, p(s)) ? (t(), h("div", Ar, [m("label", { class: y(p(U)) }, [_(v(p(o).image.placeholderUrl) + " ", 1), m("span", jr, v(p(o).image.optional), 1)], 2), m("input", {
|
|
1615
1696
|
type: "url",
|
|
1616
1697
|
class: y(p(K)),
|
|
1617
1698
|
value: e.block.placeholderUrl || "",
|
|
1618
1699
|
placeholder: p(o).image.placeholderUrlPlaceholder,
|
|
1619
1700
|
title: p(o).image.placeholderUrlTooltip,
|
|
1620
|
-
onInput: i[
|
|
1621
|
-
}, null, 42,
|
|
1622
|
-
m("div",
|
|
1701
|
+
onInput: i[2] ||= (e) => D("placeholderUrl", e.target.value)
|
|
1702
|
+
}, null, 42, Mr)])) : C("", !0),
|
|
1703
|
+
m("div", Nr, [
|
|
1623
1704
|
m("label", { class: y(p(U)) }, v(p(o).image.altText), 3),
|
|
1624
1705
|
g(J, {
|
|
1625
1706
|
"model-value": e.block.alt,
|
|
1626
1707
|
type: "text",
|
|
1627
1708
|
placeholder: p(o).image.altTextPlaceholder,
|
|
1628
|
-
pulse:
|
|
1709
|
+
pulse: u.value,
|
|
1629
1710
|
disabled: e.block.decorative === !0,
|
|
1630
|
-
"onUpdate:modelValue": i[
|
|
1711
|
+
"onUpdate:modelValue": i[3] ||= (e) => D("alt", e)
|
|
1631
1712
|
}, null, 8, [
|
|
1632
1713
|
"model-value",
|
|
1633
1714
|
"placeholder",
|
|
@@ -1638,62 +1719,62 @@ var nr = {
|
|
|
1638
1719
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1639
1720
|
"model-value": e.block.decorative === !0,
|
|
1640
1721
|
label: p(o).image.decorative,
|
|
1641
|
-
"onUpdate:modelValue": i[
|
|
1722
|
+
"onUpdate:modelValue": i[4] ||= (e) => D("decorative", e)
|
|
1642
1723
|
}, {
|
|
1643
|
-
default: r(() => [m("span", null, [_(v(p(o).image.decorative) + " ", 1), m("span",
|
|
1724
|
+
default: r(() => [m("span", null, [_(v(p(o).image.decorative) + " ", 1), m("span", Pr, v(p(o).image.decorativeHint), 1)])]),
|
|
1644
1725
|
_: 1
|
|
1645
1726
|
}, 8, ["model-value", "label"])
|
|
1646
1727
|
]),
|
|
1647
|
-
m("div",
|
|
1728
|
+
m("div", Fr, [
|
|
1648
1729
|
m("label", { class: y(p(U)) }, v(p(o).image.width), 3),
|
|
1649
1730
|
m("select", {
|
|
1650
1731
|
class: y(p(K)),
|
|
1651
|
-
value:
|
|
1652
|
-
onChange: i[
|
|
1732
|
+
value: T.value,
|
|
1733
|
+
onChange: i[5] ||= (e) => O(e.target.value)
|
|
1653
1734
|
}, [
|
|
1654
|
-
m("option",
|
|
1655
|
-
i[
|
|
1656
|
-
i[
|
|
1657
|
-
i[
|
|
1658
|
-
m("option",
|
|
1659
|
-
], 42,
|
|
1660
|
-
|
|
1735
|
+
m("option", Lr, v(p(o).image.fullWidth), 1),
|
|
1736
|
+
i[13] ||= m("option", { value: "300" }, "300px", -1),
|
|
1737
|
+
i[14] ||= m("option", { value: "400" }, "400px", -1),
|
|
1738
|
+
i[15] ||= m("option", { value: "500" }, "500px", -1),
|
|
1739
|
+
m("option", Rr, v(p(o).image.widthCustom), 1)
|
|
1740
|
+
], 42, Ir),
|
|
1741
|
+
T.value === "custom" ? (t(), h("div", zr, [m("input", {
|
|
1661
1742
|
type: "number",
|
|
1662
1743
|
class: y(p(G)),
|
|
1663
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
1744
|
+
value: typeof e.block.width == "number" ? e.block.width : Yr,
|
|
1664
1745
|
min: "20",
|
|
1665
|
-
onInput: i[
|
|
1666
|
-
}, null, 42,
|
|
1746
|
+
onInput: i[6] ||= (e) => P(e.target.value)
|
|
1747
|
+
}, null, 42, Br), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
|
|
1667
1748
|
]),
|
|
1668
|
-
m("div",
|
|
1749
|
+
m("div", Vr, [
|
|
1669
1750
|
m("label", { class: y(p(U)) }, v(p(o).image.height), 3),
|
|
1670
1751
|
m("select", {
|
|
1671
1752
|
class: y(p(K)),
|
|
1672
1753
|
"data-testid": "image-height-mode",
|
|
1673
|
-
value:
|
|
1674
|
-
onChange: i[
|
|
1675
|
-
}, [m("option",
|
|
1676
|
-
|
|
1754
|
+
value: E.value,
|
|
1755
|
+
onChange: i[7] ||= (e) => j(e.target.value)
|
|
1756
|
+
}, [m("option", Ur, v(p(o).image.heightAuto), 1), m("option", Wr, v(p(o).image.heightCustom), 1)], 42, Hr),
|
|
1757
|
+
E.value === "custom" ? (t(), h("div", Gr, [m("input", {
|
|
1677
1758
|
type: "number",
|
|
1678
1759
|
"data-testid": "image-height-input",
|
|
1679
1760
|
class: y(p(G)),
|
|
1680
1761
|
value: e.block.height,
|
|
1681
1762
|
min: "20",
|
|
1682
|
-
onInput: i[
|
|
1683
|
-
}, null, 42,
|
|
1763
|
+
onInput: i[8] ||= (e) => M(e.target.value)
|
|
1764
|
+
}, null, 42, Kr), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
|
|
1684
1765
|
]),
|
|
1685
|
-
g(
|
|
1766
|
+
g(pt, {
|
|
1686
1767
|
"model-value": e.block.borderRadius,
|
|
1687
1768
|
label: p(o).image.borderRadius,
|
|
1688
1769
|
"testid-prefix": "image",
|
|
1689
|
-
"onUpdate:modelValue":
|
|
1770
|
+
"onUpdate:modelValue": N
|
|
1690
1771
|
}, null, 8, ["model-value", "label"]),
|
|
1691
|
-
g(
|
|
1772
|
+
g(st, {
|
|
1692
1773
|
"model-value": e.block.border,
|
|
1693
1774
|
"testid-prefix": "image",
|
|
1694
|
-
"onUpdate:modelValue": i[
|
|
1775
|
+
"onUpdate:modelValue": i[9] ||= (e) => D("border", e)
|
|
1695
1776
|
}, null, 8, ["model-value"]),
|
|
1696
|
-
m("div",
|
|
1777
|
+
m("div", qr, [m("label", { class: y(p(U)) }, v(p(o).title.align), 3), g(Y, {
|
|
1697
1778
|
options: [
|
|
1698
1779
|
{
|
|
1699
1780
|
value: "left",
|
|
@@ -1709,40 +1790,40 @@ var nr = {
|
|
|
1709
1790
|
}
|
|
1710
1791
|
],
|
|
1711
1792
|
"model-value": e.block.align,
|
|
1712
|
-
"onUpdate:modelValue": i[
|
|
1793
|
+
"onUpdate:modelValue": i[10] ||= (e) => D("align", e)
|
|
1713
1794
|
}, null, 8, ["options", "model-value"])]),
|
|
1714
|
-
m("div",
|
|
1795
|
+
m("div", Jr, [
|
|
1715
1796
|
m("label", { class: y(p(U)) }, v(p(o).image.linkUrl), 3),
|
|
1716
1797
|
g(J, {
|
|
1717
1798
|
"model-value": e.block.linkUrl || "",
|
|
1718
1799
|
type: "url",
|
|
1719
1800
|
placeholder: p(o).image.imageUrlPlaceholder,
|
|
1720
|
-
"onUpdate:modelValue": i[
|
|
1801
|
+
"onUpdate:modelValue": i[11] ||= (e) => D("linkUrl", e)
|
|
1721
1802
|
}, null, 8, ["model-value", "placeholder"]),
|
|
1722
1803
|
e.block.linkUrl ? (t(), b(q, {
|
|
1723
1804
|
key: 0,
|
|
1724
1805
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1725
1806
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
1726
1807
|
label: p(o).image.openInNewTab,
|
|
1727
|
-
"onUpdate:modelValue": i[
|
|
1808
|
+
"onUpdate:modelValue": i[12] ||= (e) => D("linkOpenInNewTab", e)
|
|
1728
1809
|
}, null, 8, ["model-value", "label"])) : C("", !0)
|
|
1729
1810
|
])
|
|
1730
1811
|
], 64));
|
|
1731
1812
|
}
|
|
1732
|
-
}),
|
|
1813
|
+
}), Qr = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ w({
|
|
1733
1814
|
__name: "FieldRow",
|
|
1734
1815
|
props: { label: {} },
|
|
1735
1816
|
setup(e) {
|
|
1736
|
-
return (n, r) => (t(), h("div",
|
|
1817
|
+
return (n, r) => (t(), h("div", Qr, [e.label ? (t(), h("label", {
|
|
1737
1818
|
key: 0,
|
|
1738
1819
|
class: y(p(U))
|
|
1739
1820
|
}, v(e.label), 3)) : C("", !0), o(n.$slots, "default")]));
|
|
1740
1821
|
}
|
|
1741
|
-
}),
|
|
1822
|
+
}), $r = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ei = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ti = [
|
|
1742
1823
|
"value",
|
|
1743
1824
|
"placeholder",
|
|
1744
1825
|
"onInput"
|
|
1745
|
-
],
|
|
1826
|
+
], ni = ["title", "onClick"], ri = { 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)]" }, ii = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ai = ["value"], oi = { value: "" }, si = ["value"], ci = ["value"], li = /* @__PURE__ */ w({
|
|
1746
1827
|
__name: "MenuToolbar",
|
|
1747
1828
|
props: {
|
|
1748
1829
|
block: {},
|
|
@@ -1750,7 +1831,7 @@ var nr = {
|
|
|
1750
1831
|
},
|
|
1751
1832
|
emits: ["update"],
|
|
1752
1833
|
setup(e, { emit: n }) {
|
|
1753
|
-
let i = e, o = n, { t: s } =
|
|
1834
|
+
let i = e, o = n, { t: s } = z(), c = S(() => [
|
|
1754
1835
|
{
|
|
1755
1836
|
key: "openInNewTab",
|
|
1756
1837
|
label: s.menu.openInNewTab
|
|
@@ -1767,17 +1848,17 @@ var nr = {
|
|
|
1767
1848
|
{
|
|
1768
1849
|
value: "left",
|
|
1769
1850
|
label: s.title.alignLeft,
|
|
1770
|
-
icon:
|
|
1851
|
+
icon: Ne
|
|
1771
1852
|
},
|
|
1772
1853
|
{
|
|
1773
1854
|
value: "center",
|
|
1774
1855
|
label: s.title.alignCenter,
|
|
1775
|
-
icon:
|
|
1856
|
+
icon: Me
|
|
1776
1857
|
},
|
|
1777
1858
|
{
|
|
1778
1859
|
value: "right",
|
|
1779
1860
|
label: s.title.alignRight,
|
|
1780
|
-
icon:
|
|
1861
|
+
icon: je
|
|
1781
1862
|
}
|
|
1782
1863
|
]);
|
|
1783
1864
|
function u(e, t) {
|
|
@@ -1806,24 +1887,24 @@ var nr = {
|
|
|
1806
1887
|
}
|
|
1807
1888
|
return (n, i) => (t(), h(x, null, [
|
|
1808
1889
|
g($, { label: p(s).menu.items }, {
|
|
1809
|
-
default: r(() => [m("div",
|
|
1890
|
+
default: r(() => [m("div", $r, [(t(!0), h(x, null, a(e.block.items, (n) => (t(), h("div", {
|
|
1810
1891
|
key: n.id,
|
|
1811
1892
|
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"
|
|
1812
1893
|
}, [
|
|
1813
|
-
m("div",
|
|
1894
|
+
m("div", ei, [m("input", {
|
|
1814
1895
|
type: "text",
|
|
1815
1896
|
class: y([p(K), "tpl:flex-1"]),
|
|
1816
1897
|
value: n.text,
|
|
1817
1898
|
placeholder: p(s).menu.text,
|
|
1818
1899
|
onInput: (e) => f(n.id, "text", e.target.value)
|
|
1819
|
-
}, null, 42,
|
|
1820
|
-
class: y(p(
|
|
1900
|
+
}, null, 42, ti), m("button", {
|
|
1901
|
+
class: y(p(ze)),
|
|
1821
1902
|
title: p(s).menu.removeItem,
|
|
1822
1903
|
onClick: (e) => C(n.id)
|
|
1823
|
-
}, [g(p(
|
|
1904
|
+
}, [g(p(Fe), {
|
|
1824
1905
|
size: 14,
|
|
1825
1906
|
"stroke-width": 2
|
|
1826
|
-
})], 10,
|
|
1907
|
+
})], 10, ni)]),
|
|
1827
1908
|
g(J, {
|
|
1828
1909
|
"model-value": n.url,
|
|
1829
1910
|
type: "url",
|
|
@@ -1834,7 +1915,7 @@ var nr = {
|
|
|
1834
1915
|
"placeholder",
|
|
1835
1916
|
"onUpdate:modelValue"
|
|
1836
1917
|
]),
|
|
1837
|
-
m("div",
|
|
1918
|
+
m("div", ri, [(t(!0), h(x, null, a(c.value, (e) => (t(), b(q, {
|
|
1838
1919
|
key: e.key,
|
|
1839
1920
|
"model-value": n[e.key],
|
|
1840
1921
|
label: e.label,
|
|
@@ -1844,15 +1925,15 @@ var nr = {
|
|
|
1844
1925
|
"label",
|
|
1845
1926
|
"onUpdate:modelValue"
|
|
1846
1927
|
]))), 128))]),
|
|
1847
|
-
m("div",
|
|
1928
|
+
m("div", ii, [m("label", { class: y([p(U), "tpl:!mb-0"]) }, v(p(s).menu.color), 3), g(B, {
|
|
1848
1929
|
"swatch-only": "",
|
|
1849
1930
|
"model-value": n.color || e.block.linkColor || e.block.color || "",
|
|
1850
1931
|
"onUpdate:modelValue": (e) => f(n.id, "color", e)
|
|
1851
1932
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
1852
1933
|
]))), 128)), m("button", {
|
|
1853
|
-
class: y(p(
|
|
1934
|
+
class: y(p(Be)),
|
|
1854
1935
|
onClick: d
|
|
1855
|
-
}, [g(p(
|
|
1936
|
+
}, [g(p(H), {
|
|
1856
1937
|
size: 14,
|
|
1857
1938
|
"stroke-width": 2
|
|
1858
1939
|
}), _(" " + v(p(s).menu.addItem), 1)], 2)])]),
|
|
@@ -1861,12 +1942,12 @@ var nr = {
|
|
|
1861
1942
|
g($, { label: p(s).menu.fontFamily }, {
|
|
1862
1943
|
default: r(() => [m("select", {
|
|
1863
1944
|
class: y(p(K)),
|
|
1864
|
-
value: p(
|
|
1945
|
+
value: p(Ge)(e.block.fontFamily),
|
|
1865
1946
|
onChange: i[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
1866
|
-
}, [m("option",
|
|
1947
|
+
}, [m("option", oi, v(p(s).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
|
|
1867
1948
|
key: e.value,
|
|
1868
1949
|
value: e.value
|
|
1869
|
-
}, v(e.label), 9,
|
|
1950
|
+
}, v(e.label), 9, si))), 128))], 42, ai)]),
|
|
1870
1951
|
_: 1
|
|
1871
1952
|
}, 8, ["label"]),
|
|
1872
1953
|
g($, { label: p(s).menu.fontSize }, {
|
|
@@ -1880,14 +1961,14 @@ var nr = {
|
|
|
1880
1961
|
_: 1
|
|
1881
1962
|
}, 8, ["label"]),
|
|
1882
1963
|
g($, { label: p(s).menu.color }, {
|
|
1883
|
-
default: r(() => [g(
|
|
1964
|
+
default: r(() => [g(B, {
|
|
1884
1965
|
"model-value": e.block.color ?? "",
|
|
1885
1966
|
"onUpdate:modelValue": i[2] ||= (e) => u("color", e || void 0)
|
|
1886
1967
|
}, null, 8, ["model-value"])]),
|
|
1887
1968
|
_: 1
|
|
1888
1969
|
}, 8, ["label"]),
|
|
1889
1970
|
g($, { label: p(s).menu.linkColor }, {
|
|
1890
|
-
default: r(() => [g(
|
|
1971
|
+
default: r(() => [g(B, {
|
|
1891
1972
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
1892
1973
|
"onUpdate:modelValue": i[3] ||= (e) => u("linkColor", e || void 0)
|
|
1893
1974
|
}, null, 8, ["model-value"])]),
|
|
@@ -1907,11 +1988,11 @@ var nr = {
|
|
|
1907
1988
|
class: y(p(K)),
|
|
1908
1989
|
value: e.block.separator,
|
|
1909
1990
|
onInput: i[5] ||= (e) => u("separator", e.target.value)
|
|
1910
|
-
}, null, 42,
|
|
1991
|
+
}, null, 42, ci)]),
|
|
1911
1992
|
_: 1
|
|
1912
1993
|
}, 8, ["label"]),
|
|
1913
1994
|
g($, { label: p(s).menu.separatorColor }, {
|
|
1914
|
-
default: r(() => [g(
|
|
1995
|
+
default: r(() => [g(B, {
|
|
1915
1996
|
"model-value": e.block.separatorColor,
|
|
1916
1997
|
"onUpdate:modelValue": i[6] ||= (e) => u("separatorColor", e)
|
|
1917
1998
|
}, null, 8, ["model-value"])]),
|
|
@@ -1929,32 +2010,32 @@ var nr = {
|
|
|
1929
2010
|
}, 8, ["label"])
|
|
1930
2011
|
], 64));
|
|
1931
2012
|
}
|
|
1932
|
-
}),
|
|
2013
|
+
}), ui = {
|
|
1933
2014
|
class: "tpl:mb-3.5",
|
|
1934
2015
|
"data-testid": "paragraph-spacing"
|
|
1935
|
-
},
|
|
2016
|
+
}, di = { class: "tpl:flex tpl:items-stretch" }, fi = ["value"], pi = /* @__PURE__ */ w({
|
|
1936
2017
|
__name: "ParagraphToolbar",
|
|
1937
2018
|
props: { block: {} },
|
|
1938
2019
|
emits: ["update"],
|
|
1939
2020
|
setup(e, { emit: n }) {
|
|
1940
|
-
let r = n, { t: i } =
|
|
1941
|
-
return (n, a) => (t(), h("div",
|
|
2021
|
+
let r = n, { t: i } = z();
|
|
2022
|
+
return (n, a) => (t(), h("div", ui, [m("label", { class: y(p(U)) }, v(p(i).paragraph.paragraphSpacing), 3), m("div", di, [m("input", {
|
|
1942
2023
|
type: "number",
|
|
1943
2024
|
class: y(p(G)),
|
|
1944
|
-
value: e.block.paragraphSpacing ?? p(
|
|
2025
|
+
value: e.block.paragraphSpacing ?? p(j).paragraphGap,
|
|
1945
2026
|
min: "0",
|
|
1946
2027
|
max: "64",
|
|
1947
2028
|
onInput: a[0] ||= (e) => r("update", { paragraphSpacing: Number(e.target.value) })
|
|
1948
|
-
}, null, 42,
|
|
2029
|
+
}, null, 42, fi), m("span", { class: y(p(W)) }, "px", 2)])]));
|
|
1949
2030
|
}
|
|
1950
2031
|
});
|
|
1951
2032
|
//#endregion
|
|
1952
2033
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
1953
|
-
function
|
|
2034
|
+
function mi(e) {
|
|
1954
2035
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
1955
2036
|
}
|
|
1956
|
-
function
|
|
1957
|
-
let n =
|
|
2037
|
+
function hi(e, t) {
|
|
2038
|
+
let n = mi(t);
|
|
1958
2039
|
if (e.length === n) return e;
|
|
1959
2040
|
if (e.length < n) {
|
|
1960
2041
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -1965,24 +2046,24 @@ function ci(e, t) {
|
|
|
1965
2046
|
}
|
|
1966
2047
|
//#endregion
|
|
1967
2048
|
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1968
|
-
var
|
|
2049
|
+
var gi = { class: "tpl:mb-3.5" }, _i = ["value"], vi = ["value"], yi = {
|
|
1969
2050
|
key: 0,
|
|
1970
2051
|
class: "tpl:mb-3.5"
|
|
1971
|
-
},
|
|
2052
|
+
}, bi = {
|
|
1972
2053
|
key: 1,
|
|
1973
2054
|
class: "tpl:mb-3.5"
|
|
1974
|
-
},
|
|
2055
|
+
}, xi = {
|
|
1975
2056
|
key: 0,
|
|
1976
2057
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1977
|
-
},
|
|
2058
|
+
}, Si = {
|
|
1978
2059
|
key: 1,
|
|
1979
2060
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
1980
|
-
},
|
|
2061
|
+
}, Ci = /* @__PURE__ */ w({
|
|
1981
2062
|
__name: "SectionToolbar",
|
|
1982
2063
|
props: { block: {} },
|
|
1983
2064
|
emits: ["update"],
|
|
1984
2065
|
setup(e, { emit: n }) {
|
|
1985
|
-
let r = e, i = n, { t: o } =
|
|
2066
|
+
let r = e, i = n, { t: o } = z(), s = c(de, void 0), l = c(fe, void 0), u = s !== void 0 && I(s), d = S(() => l !== !1 || !!r.block.wrapper), f = S(() => u && !r.block.wrapper), _ = S(() => u && d.value), b = S(() => [
|
|
1986
2067
|
{
|
|
1987
2068
|
value: "1",
|
|
1988
2069
|
label: o.section.column1
|
|
@@ -2005,7 +2086,7 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2005
2086
|
}
|
|
2006
2087
|
]);
|
|
2007
2088
|
function w(e) {
|
|
2008
|
-
let t = e.target.value, n =
|
|
2089
|
+
let t = e.target.value, n = hi(r.block.children, t);
|
|
2009
2090
|
i("update", {
|
|
2010
2091
|
columns: t,
|
|
2011
2092
|
children: n
|
|
@@ -2017,7 +2098,7 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2017
2098
|
function E(e) {
|
|
2018
2099
|
i("update", { borderRadius: e });
|
|
2019
2100
|
}
|
|
2020
|
-
function
|
|
2101
|
+
function D(e) {
|
|
2021
2102
|
i("update", { wrapper: e ? { padding: {
|
|
2022
2103
|
top: 20,
|
|
2023
2104
|
right: 20,
|
|
@@ -2025,65 +2106,70 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2025
2106
|
left: 20
|
|
2026
2107
|
} } : void 0 });
|
|
2027
2108
|
}
|
|
2028
|
-
function
|
|
2109
|
+
function O(e) {
|
|
2029
2110
|
i("update", { wrapper: {
|
|
2030
2111
|
...r.block.wrapper,
|
|
2031
2112
|
...e
|
|
2032
2113
|
} });
|
|
2033
2114
|
}
|
|
2034
|
-
function
|
|
2035
|
-
|
|
2115
|
+
function k(e) {
|
|
2116
|
+
O({ padding: e });
|
|
2036
2117
|
}
|
|
2037
|
-
function
|
|
2038
|
-
|
|
2118
|
+
function A(e) {
|
|
2119
|
+
O({ borderRadius: e });
|
|
2039
2120
|
}
|
|
2040
2121
|
return (n, r) => (t(), h(x, null, [
|
|
2041
|
-
m("div",
|
|
2122
|
+
m("div", gi, [m("label", { class: y(p(U)) }, v(p(o).section.columns), 3), m("select", {
|
|
2042
2123
|
class: y(p(K)),
|
|
2043
2124
|
value: e.block.columns,
|
|
2044
2125
|
onChange: w
|
|
2045
2126
|
}, [(t(!0), h(x, null, a(b.value, (e) => (t(), h("option", {
|
|
2046
2127
|
key: e.value,
|
|
2047
2128
|
value: e.value
|
|
2048
|
-
}, v(e.label), 9,
|
|
2049
|
-
e.block.columns === "1" ? C("", !0) : (t(), h("div",
|
|
2129
|
+
}, v(e.label), 9, vi))), 128))], 42, _i)]),
|
|
2130
|
+
e.block.columns === "1" ? C("", !0) : (t(), h("div", yi, [g(q, {
|
|
2050
2131
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2051
2132
|
"model-value": e.block.stackOnMobile !== !1,
|
|
2052
2133
|
label: p(o).section.stackOnMobile,
|
|
2053
2134
|
"onUpdate:modelValue": r[0] ||= (e) => T(e)
|
|
2054
2135
|
}, null, 8, ["model-value", "label"])])),
|
|
2055
|
-
g(
|
|
2136
|
+
g(pt, {
|
|
2056
2137
|
"model-value": e.block.borderRadius,
|
|
2057
2138
|
label: p(o).section.borderRadius,
|
|
2058
2139
|
max: 50,
|
|
2059
2140
|
"testid-prefix": "section",
|
|
2060
2141
|
"onUpdate:modelValue": E
|
|
2061
2142
|
}, null, 8, ["model-value", "label"]),
|
|
2062
|
-
g(
|
|
2143
|
+
g(st, {
|
|
2063
2144
|
"model-value": e.block.border,
|
|
2064
2145
|
"testid-prefix": "section",
|
|
2065
2146
|
"onUpdate:modelValue": r[1] ||= (e) => i("update", { border: e })
|
|
2066
2147
|
}, null, 8, ["model-value"]),
|
|
2067
|
-
d.value ? (t(), h("div",
|
|
2148
|
+
d.value ? (t(), h("div", bi, [
|
|
2068
2149
|
g(q, {
|
|
2069
2150
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2070
2151
|
"model-value": !!e.block.wrapper,
|
|
2071
2152
|
label: p(o).section.wrapperEnable,
|
|
2072
2153
|
disabled: f.value,
|
|
2073
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
2154
|
+
"onUpdate:modelValue": r[2] ||= (e) => D(e)
|
|
2074
2155
|
}, null, 8, [
|
|
2075
2156
|
"model-value",
|
|
2076
2157
|
"label",
|
|
2077
2158
|
"disabled"
|
|
2078
2159
|
]),
|
|
2079
|
-
_.value ? (t(), h("p",
|
|
2080
|
-
e.block.wrapper ? (t(), h("div",
|
|
2081
|
-
m("div", null, [m("label", { class: y(p(U)) }, v(p(o).blockSettings.color), 3), g(
|
|
2160
|
+
_.value ? (t(), h("p", xi, v(p(o).section.wrapperLayoutConflict), 1)) : C("", !0),
|
|
2161
|
+
e.block.wrapper ? (t(), h("div", Si, [
|
|
2162
|
+
m("div", null, [m("label", { class: y(p(U)) }, v(p(o).blockSettings.color), 3), g(B, {
|
|
2082
2163
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2083
2164
|
"allow-transparent": "",
|
|
2084
|
-
"onUpdate:modelValue": r[3] ||= (e) =>
|
|
2165
|
+
"onUpdate:modelValue": r[3] ||= (e) => O({ backgroundColor: e })
|
|
2085
2166
|
}, null, 8, ["model-value"])]),
|
|
2086
|
-
g(
|
|
2167
|
+
g(fn, {
|
|
2168
|
+
"model-value": e.block.wrapper.backgroundImage,
|
|
2169
|
+
"testid-prefix": "section-wrapper",
|
|
2170
|
+
"onUpdate:modelValue": r[4] ||= (e) => O({ backgroundImage: e })
|
|
2171
|
+
}, null, 8, ["model-value"]),
|
|
2172
|
+
g(rn, {
|
|
2087
2173
|
label: p(o).blockSettings.padding,
|
|
2088
2174
|
"model-value": e.block.wrapper.padding ?? {
|
|
2089
2175
|
top: 0,
|
|
@@ -2091,25 +2177,25 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2091
2177
|
bottom: 0,
|
|
2092
2178
|
left: 0
|
|
2093
2179
|
},
|
|
2094
|
-
"onUpdate:modelValue":
|
|
2180
|
+
"onUpdate:modelValue": k
|
|
2095
2181
|
}, null, 8, ["label", "model-value"]),
|
|
2096
|
-
g(
|
|
2182
|
+
g(pt, {
|
|
2097
2183
|
"model-value": e.block.wrapper.borderRadius,
|
|
2098
2184
|
label: p(o).section.borderRadius,
|
|
2099
2185
|
max: 50,
|
|
2100
2186
|
"testid-prefix": "section-wrapper",
|
|
2101
|
-
"onUpdate:modelValue":
|
|
2187
|
+
"onUpdate:modelValue": A
|
|
2102
2188
|
}, null, 8, ["model-value", "label"])
|
|
2103
2189
|
])) : C("", !0)
|
|
2104
2190
|
])) : C("", !0)
|
|
2105
2191
|
], 64));
|
|
2106
2192
|
}
|
|
2107
|
-
}),
|
|
2193
|
+
}), wi = { class: "tpl:mb-3.5" }, Ti = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ei = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Di = ["value", "onChange"], Oi = ["value"], ki = ["title", "onClick"], Ai = { class: "tpl:mb-3.5" }, ji = ["value"], Mi = { value: "solid" }, Ni = { value: "outlined" }, Pi = { value: "rounded" }, Fi = { value: "square" }, Ii = { value: "circle" }, Li = { value: "plain" }, Ri = { class: "tpl:mb-3.5" }, zi = ["value"], Bi = { value: "brand" }, Vi = { value: "dark" }, Hi = { value: "light" }, Ui = { class: "tpl:mb-3.5" }, Wi = { class: "tpl:mb-3.5" }, Gi = { class: "tpl:flex tpl:items-stretch" }, Ki = ["value"], qi = { class: "tpl:mb-3.5" }, Ji = /* @__PURE__ */ w({
|
|
2108
2194
|
__name: "SocialToolbar",
|
|
2109
2195
|
props: { block: {} },
|
|
2110
2196
|
emits: ["update"],
|
|
2111
2197
|
setup(e, { emit: n }) {
|
|
2112
|
-
let r = e, i = n, { t: o } =
|
|
2198
|
+
let r = e, i = n, { t: o } = z();
|
|
2113
2199
|
function s(e, t) {
|
|
2114
2200
|
i("update", { [e]: t });
|
|
2115
2201
|
}
|
|
@@ -2132,25 +2218,25 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2132
2218
|
i("update", { icons: r.block.icons.filter((t) => t.id !== e) });
|
|
2133
2219
|
}
|
|
2134
2220
|
return (n, r) => (t(), h(x, null, [
|
|
2135
|
-
m("div",
|
|
2221
|
+
m("div", wi, [m("label", { class: y(p(U)) }, v(p(o).social.icons), 3), m("div", Ti, [(t(!0), h(x, null, a(e.block.icons, (e) => (t(), h("div", {
|
|
2136
2222
|
key: e.id,
|
|
2137
2223
|
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"
|
|
2138
|
-
}, [m("div",
|
|
2224
|
+
}, [m("div", Ei, [m("select", {
|
|
2139
2225
|
"data-testid": "social-platform-select",
|
|
2140
2226
|
class: y([p(K), "tpl:flex-1"]),
|
|
2141
2227
|
value: e.platform,
|
|
2142
2228
|
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
2143
|
-
}, [(t(!0), h(x, null, a(p(
|
|
2229
|
+
}, [(t(!0), h(x, null, a(p(se), (e) => (t(), h("option", {
|
|
2144
2230
|
key: e,
|
|
2145
2231
|
value: e
|
|
2146
|
-
}, v(p(o).social.platforms[e]), 9,
|
|
2147
|
-
class: y(p(
|
|
2232
|
+
}, v(p(o).social.platforms[e]), 9, Oi))), 128))], 42, Di), m("button", {
|
|
2233
|
+
class: y(p(ze)),
|
|
2148
2234
|
title: p(o).social.removeIcon,
|
|
2149
2235
|
onClick: (t) => u(e.id)
|
|
2150
|
-
}, [g(p(
|
|
2236
|
+
}, [g(p(Fe), {
|
|
2151
2237
|
size: 14,
|
|
2152
2238
|
"stroke-width": 2
|
|
2153
|
-
})], 10,
|
|
2239
|
+
})], 10, ki)]), g(J, {
|
|
2154
2240
|
"model-value": e.url,
|
|
2155
2241
|
type: "url",
|
|
2156
2242
|
placeholder: p(o).social.urlPlaceholder,
|
|
@@ -2160,35 +2246,35 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2160
2246
|
"placeholder",
|
|
2161
2247
|
"onUpdate:modelValue"
|
|
2162
2248
|
])]))), 128)), m("button", {
|
|
2163
|
-
class: y(p(
|
|
2249
|
+
class: y(p(Be)),
|
|
2164
2250
|
onClick: c
|
|
2165
|
-
}, [g(p(
|
|
2251
|
+
}, [g(p(H), {
|
|
2166
2252
|
size: 14,
|
|
2167
2253
|
"stroke-width": 2
|
|
2168
2254
|
}), _(" " + v(p(o).social.addIcon), 1)], 2)])]),
|
|
2169
|
-
m("div",
|
|
2255
|
+
m("div", Ai, [m("label", { class: y(p(U)) }, v(p(o).social.style), 3), m("select", {
|
|
2170
2256
|
class: y(p(K)),
|
|
2171
2257
|
value: e.block.iconStyle,
|
|
2172
2258
|
onChange: r[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2173
2259
|
}, [
|
|
2174
|
-
m("option",
|
|
2175
|
-
m("option",
|
|
2176
|
-
m("option",
|
|
2177
|
-
m("option",
|
|
2178
|
-
m("option",
|
|
2179
|
-
m("option",
|
|
2180
|
-
], 42,
|
|
2181
|
-
m("div",
|
|
2260
|
+
m("option", Mi, v(p(o).social.styleSolid), 1),
|
|
2261
|
+
m("option", Ni, v(p(o).social.styleOutlined), 1),
|
|
2262
|
+
m("option", Pi, v(p(o).social.styleRounded), 1),
|
|
2263
|
+
m("option", Fi, v(p(o).social.styleSquare), 1),
|
|
2264
|
+
m("option", Ii, v(p(o).social.styleCircle), 1),
|
|
2265
|
+
m("option", Li, v(p(o).social.stylePlain), 1)
|
|
2266
|
+
], 42, ji)]),
|
|
2267
|
+
m("div", Ri, [m("label", { class: y(p(U)) }, v(p(o).social.color), 3), m("select", {
|
|
2182
2268
|
"data-testid": "social-tone-select",
|
|
2183
2269
|
class: y(p(K)),
|
|
2184
2270
|
value: e.block.iconTone ?? "brand",
|
|
2185
2271
|
onChange: r[1] ||= (e) => s("iconTone", e.target.value)
|
|
2186
2272
|
}, [
|
|
2187
|
-
m("option",
|
|
2188
|
-
m("option",
|
|
2189
|
-
m("option",
|
|
2190
|
-
], 42,
|
|
2191
|
-
m("div",
|
|
2273
|
+
m("option", Bi, v(p(o).social.colorBrand), 1),
|
|
2274
|
+
m("option", Vi, v(p(o).social.colorDark), 1),
|
|
2275
|
+
m("option", Hi, v(p(o).social.colorLight), 1)
|
|
2276
|
+
], 42, zi)]),
|
|
2277
|
+
m("div", Ui, [m("label", { class: y(p(U)) }, v(p(o).social.size), 3), g(Y, {
|
|
2192
2278
|
options: [
|
|
2193
2279
|
{
|
|
2194
2280
|
value: "small",
|
|
@@ -2206,30 +2292,30 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2206
2292
|
"model-value": e.block.iconSize,
|
|
2207
2293
|
"onUpdate:modelValue": r[2] ||= (e) => s("iconSize", e)
|
|
2208
2294
|
}, null, 8, ["options", "model-value"])]),
|
|
2209
|
-
m("div",
|
|
2295
|
+
m("div", Wi, [m("label", { class: y(p(U)) }, v(p(o).social.spacing), 3), m("div", Gi, [m("input", {
|
|
2210
2296
|
type: "number",
|
|
2211
2297
|
class: y(p(G)),
|
|
2212
2298
|
value: e.block.spacing,
|
|
2213
2299
|
min: "0",
|
|
2214
2300
|
max: "50",
|
|
2215
2301
|
onInput: r[3] ||= (e) => s("spacing", Number(e.target.value))
|
|
2216
|
-
}, null, 42,
|
|
2217
|
-
m("div",
|
|
2302
|
+
}, null, 42, Ki), m("span", { class: y(p(W)) }, "px", 2)])]),
|
|
2303
|
+
m("div", qi, [m("label", { class: y(p(U)) }, v(p(o).social.align), 3), g(Y, {
|
|
2218
2304
|
options: [
|
|
2219
2305
|
{
|
|
2220
2306
|
value: "left",
|
|
2221
2307
|
label: p(o).title.alignLeft,
|
|
2222
|
-
icon: p(
|
|
2308
|
+
icon: p(Ne)
|
|
2223
2309
|
},
|
|
2224
2310
|
{
|
|
2225
2311
|
value: "center",
|
|
2226
2312
|
label: p(o).title.alignCenter,
|
|
2227
|
-
icon: p(
|
|
2313
|
+
icon: p(Me)
|
|
2228
2314
|
},
|
|
2229
2315
|
{
|
|
2230
2316
|
value: "right",
|
|
2231
2317
|
label: p(o).title.alignRight,
|
|
2232
|
-
icon: p(
|
|
2318
|
+
icon: p(je)
|
|
2233
2319
|
}
|
|
2234
2320
|
],
|
|
2235
2321
|
"model-value": e.block.align,
|
|
@@ -2237,22 +2323,22 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2237
2323
|
}, null, 8, ["options", "model-value"])])
|
|
2238
2324
|
], 64));
|
|
2239
2325
|
}
|
|
2240
|
-
}),
|
|
2326
|
+
}), Yi = { class: "tpl:mb-3.5" }, Xi = { class: "tpl:flex tpl:items-stretch" }, Zi = ["value"], Qi = ["value"], $i = /* @__PURE__ */ w({
|
|
2241
2327
|
__name: "SpacerToolbar",
|
|
2242
2328
|
props: { block: {} },
|
|
2243
2329
|
emits: ["update"],
|
|
2244
2330
|
setup(e, { emit: n }) {
|
|
2245
|
-
let r = n, { t: i } =
|
|
2246
|
-
return (n, a) => (t(), h("div",
|
|
2331
|
+
let r = n, { t: i } = z();
|
|
2332
|
+
return (n, a) => (t(), h("div", Yi, [
|
|
2247
2333
|
m("label", { class: y(p(U)) }, v(p(i).spacer.height), 3),
|
|
2248
|
-
m("div",
|
|
2334
|
+
m("div", Xi, [m("input", {
|
|
2249
2335
|
type: "number",
|
|
2250
2336
|
class: y(p(G)),
|
|
2251
2337
|
value: e.block.height,
|
|
2252
2338
|
min: "10",
|
|
2253
2339
|
max: "100",
|
|
2254
2340
|
onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2255
|
-
}, null, 42,
|
|
2341
|
+
}, null, 42, Zi), m("span", { class: y(p(W)) }, "px", 2)]),
|
|
2256
2342
|
m("input", {
|
|
2257
2343
|
type: "range",
|
|
2258
2344
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2260,13 +2346,13 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2260
2346
|
min: "10",
|
|
2261
2347
|
max: "100",
|
|
2262
2348
|
onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2263
|
-
}, null, 40,
|
|
2349
|
+
}, null, 40, Qi)
|
|
2264
2350
|
]));
|
|
2265
2351
|
}
|
|
2266
|
-
}),
|
|
2352
|
+
}), ea = { class: "tpl:mb-3.5" }, ta = { class: "tpl:flex tpl:items-center tpl:gap-3" }, na = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ra = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ia = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, aa = ["disabled"], oa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, sa = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ca = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, la = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ua = ["disabled"], da = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, fa = { class: "tpl:mb-3.5" }, pa = {
|
|
2267
2353
|
key: 0,
|
|
2268
2354
|
class: "tpl:mb-3.5"
|
|
2269
|
-
},
|
|
2355
|
+
}, ma = { class: "tpl:mb-3.5" }, ha = { class: "tpl:mb-3.5" }, ga = { class: "tpl:flex tpl:items-stretch" }, _a = ["value"], va = { class: "tpl:mb-3.5" }, ya = { class: "tpl:flex tpl:items-stretch" }, ba = ["value"], xa = { class: "tpl:mb-3.5" }, Sa = ["value"], Ca = { value: "" }, wa = ["value"], Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:flex tpl:items-stretch" }, Da = ["value"], Oa = { class: "tpl:mb-3.5" }, ka = { class: "tpl:mb-3.5" }, Aa = /* @__PURE__ */ w({
|
|
2270
2356
|
__name: "TableToolbar",
|
|
2271
2357
|
props: {
|
|
2272
2358
|
block: {},
|
|
@@ -2274,7 +2360,7 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2274
2360
|
},
|
|
2275
2361
|
emits: ["update"],
|
|
2276
2362
|
setup(e, { emit: n }) {
|
|
2277
|
-
let r = e, i = n, { t: o } =
|
|
2363
|
+
let r = e, i = n, { t: o } = z(), s = S(() => r.block.rows.length > 0 ? r.block.rows[0].cells.length : 0);
|
|
2278
2364
|
function c(e, t) {
|
|
2279
2365
|
i("update", { [e]: t });
|
|
2280
2366
|
}
|
|
@@ -2309,50 +2395,50 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2309
2395
|
i("update", { rows: t });
|
|
2310
2396
|
}
|
|
2311
2397
|
return (n, r) => (t(), h(x, null, [
|
|
2312
|
-
m("div",
|
|
2398
|
+
m("div", ea, [m("label", { class: y(p(U)) }, v(p(o).table.dimensions), 3), m("div", ta, [m("div", na, [m("span", ra, v(p(o).table.rows), 1), m("div", ia, [
|
|
2313
2399
|
m("button", {
|
|
2314
2400
|
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",
|
|
2315
2401
|
disabled: e.block.rows.length <= 1,
|
|
2316
2402
|
onClick: r[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
|
|
2317
|
-
}, [g(p(
|
|
2403
|
+
}, [g(p(V), {
|
|
2318
2404
|
size: 12,
|
|
2319
2405
|
"stroke-width": 2
|
|
2320
|
-
})], 8,
|
|
2321
|
-
m("span",
|
|
2406
|
+
})], 8, aa),
|
|
2407
|
+
m("span", oa, v(e.block.rows.length), 1),
|
|
2322
2408
|
m("button", {
|
|
2323
2409
|
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)]",
|
|
2324
2410
|
onClick: l
|
|
2325
|
-
}, [g(p(
|
|
2411
|
+
}, [g(p(H), {
|
|
2326
2412
|
size: 12,
|
|
2327
2413
|
"stroke-width": 2
|
|
2328
2414
|
})])
|
|
2329
|
-
])]), m("div",
|
|
2415
|
+
])]), m("div", sa, [m("span", ca, v(p(o).table.columns), 1), m("div", la, [
|
|
2330
2416
|
m("button", {
|
|
2331
2417
|
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",
|
|
2332
2418
|
disabled: s.value <= 1,
|
|
2333
2419
|
onClick: r[1] ||= (e) => f(s.value - 1)
|
|
2334
|
-
}, [g(p(
|
|
2420
|
+
}, [g(p(V), {
|
|
2335
2421
|
size: 12,
|
|
2336
2422
|
"stroke-width": 2
|
|
2337
|
-
})], 8,
|
|
2338
|
-
m("span",
|
|
2423
|
+
})], 8, ua),
|
|
2424
|
+
m("span", da, v(s.value), 1),
|
|
2339
2425
|
m("button", {
|
|
2340
2426
|
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)]",
|
|
2341
2427
|
onClick: d
|
|
2342
|
-
}, [g(p(
|
|
2428
|
+
}, [g(p(H), {
|
|
2343
2429
|
size: 12,
|
|
2344
2430
|
"stroke-width": 2
|
|
2345
2431
|
})])
|
|
2346
2432
|
])])])]),
|
|
2347
|
-
m("div",
|
|
2433
|
+
m("div", fa, [g(q, {
|
|
2348
2434
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2349
2435
|
"model-value": e.block.hasHeaderRow,
|
|
2350
2436
|
label: p(o).table.hasHeaderRow,
|
|
2351
2437
|
"onUpdate:modelValue": r[2] ||= (e) => c("hasHeaderRow", e)
|
|
2352
2438
|
}, null, 8, ["model-value", "label"])]),
|
|
2353
|
-
e.block.hasHeaderRow ? (t(), h("div",
|
|
2439
|
+
e.block.hasHeaderRow ? (t(), h("div", pa, [m("label", { class: y(p(U)) }, v(p(o).table.headerBackgroundColor), 3), g(B, {
|
|
2354
2440
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2355
|
-
"seed-color": p(
|
|
2441
|
+
"seed-color": p(Ve),
|
|
2356
2442
|
placeholder: p(o).table.noHeaderBg,
|
|
2357
2443
|
"onUpdate:modelValue": r[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2358
2444
|
}, null, 8, [
|
|
@@ -2360,62 +2446,62 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2360
2446
|
"seed-color",
|
|
2361
2447
|
"placeholder"
|
|
2362
2448
|
])])) : C("", !0),
|
|
2363
|
-
m("div",
|
|
2449
|
+
m("div", ma, [m("label", { class: y(p(U)) }, v(p(o).table.borderColor), 3), g(B, {
|
|
2364
2450
|
"model-value": e.block.borderColor,
|
|
2365
2451
|
"onUpdate:modelValue": r[4] ||= (e) => c("borderColor", e)
|
|
2366
2452
|
}, null, 8, ["model-value"])]),
|
|
2367
|
-
m("div",
|
|
2453
|
+
m("div", ha, [m("label", { class: y(p(U)) }, v(p(o).table.borderWidth), 3), m("div", ga, [m("input", {
|
|
2368
2454
|
type: "number",
|
|
2369
2455
|
class: y(p(G)),
|
|
2370
2456
|
value: e.block.borderWidth,
|
|
2371
2457
|
min: "0",
|
|
2372
2458
|
max: "10",
|
|
2373
2459
|
onInput: r[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2374
|
-
}, null, 42,
|
|
2375
|
-
m("div",
|
|
2460
|
+
}, null, 42, _a), m("span", { class: y(p(W)) }, "px", 2)])]),
|
|
2461
|
+
m("div", va, [m("label", { class: y(p(U)) }, v(p(o).table.cellPadding), 3), m("div", ya, [m("input", {
|
|
2376
2462
|
type: "number",
|
|
2377
2463
|
class: y(p(G)),
|
|
2378
2464
|
value: e.block.cellPadding,
|
|
2379
2465
|
min: "0",
|
|
2380
2466
|
max: "30",
|
|
2381
2467
|
onInput: r[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2382
|
-
}, null, 42,
|
|
2383
|
-
m("div",
|
|
2468
|
+
}, null, 42, ba), m("span", { class: y(p(W)) }, "px", 2)])]),
|
|
2469
|
+
m("div", xa, [m("label", { class: y(p(U)) }, v(p(o).table.fontFamily), 3), m("select", {
|
|
2384
2470
|
class: y(p(K)),
|
|
2385
|
-
value: p(
|
|
2471
|
+
value: p(Ge)(e.block.fontFamily),
|
|
2386
2472
|
onChange: r[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2387
|
-
}, [m("option",
|
|
2473
|
+
}, [m("option", Ca, v(p(o).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
|
|
2388
2474
|
key: e.value,
|
|
2389
2475
|
value: e.value
|
|
2390
|
-
}, v(e.label), 9,
|
|
2391
|
-
m("div",
|
|
2476
|
+
}, v(e.label), 9, wa))), 128))], 42, Sa)]),
|
|
2477
|
+
m("div", Ta, [m("label", { class: y(p(U)) }, v(p(o).table.fontSize), 3), m("div", Ea, [m("input", {
|
|
2392
2478
|
type: "number",
|
|
2393
2479
|
class: y(p(G)),
|
|
2394
2480
|
value: e.block.fontSize,
|
|
2395
2481
|
min: "10",
|
|
2396
2482
|
max: "32",
|
|
2397
2483
|
onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2398
|
-
}, null, 42,
|
|
2399
|
-
m("div",
|
|
2484
|
+
}, null, 42, Da), m("span", { class: y(p(W)) }, "px", 2)])]),
|
|
2485
|
+
m("div", Oa, [m("label", { class: y(p(U)) }, v(p(o).table.color), 3), g(B, {
|
|
2400
2486
|
"model-value": e.block.color ?? "",
|
|
2401
2487
|
"onUpdate:modelValue": r[9] ||= (e) => c("color", e || void 0)
|
|
2402
2488
|
}, null, 8, ["model-value"])]),
|
|
2403
|
-
m("div",
|
|
2489
|
+
m("div", ka, [m("label", { class: y(p(U)) }, v(p(o).table.textAlign), 3), g(Y, {
|
|
2404
2490
|
options: [
|
|
2405
2491
|
{
|
|
2406
2492
|
value: "left",
|
|
2407
2493
|
label: p(o).title.alignLeft,
|
|
2408
|
-
icon: p(
|
|
2494
|
+
icon: p(Ne)
|
|
2409
2495
|
},
|
|
2410
2496
|
{
|
|
2411
2497
|
value: "center",
|
|
2412
2498
|
label: p(o).title.alignCenter,
|
|
2413
|
-
icon: p(
|
|
2499
|
+
icon: p(Me)
|
|
2414
2500
|
},
|
|
2415
2501
|
{
|
|
2416
2502
|
value: "right",
|
|
2417
2503
|
label: p(o).title.alignRight,
|
|
2418
|
-
icon: p(
|
|
2504
|
+
icon: p(je)
|
|
2419
2505
|
}
|
|
2420
2506
|
],
|
|
2421
2507
|
"model-value": e.block.textAlign,
|
|
@@ -2423,7 +2509,7 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2423
2509
|
}, null, 8, ["options", "model-value"])])
|
|
2424
2510
|
], 64));
|
|
2425
2511
|
}
|
|
2426
|
-
}),
|
|
2512
|
+
}), ja = { class: "tpl:mb-3.5" }, Ma = ["value"], Na = { value: 1 }, Pa = { value: 2 }, Fa = { value: 3 }, Ia = { value: 4 }, La = { class: "tpl:mb-3.5" }, Ra = ["value"], za = { value: "" }, Ba = ["value"], Va = { class: "tpl:mb-3.5" }, Ha = { class: "tpl:mb-3.5" }, Ua = /* @__PURE__ */ w({
|
|
2427
2513
|
__name: "TitleToolbar",
|
|
2428
2514
|
props: {
|
|
2429
2515
|
block: {},
|
|
@@ -2431,49 +2517,49 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2431
2517
|
},
|
|
2432
2518
|
emits: ["update"],
|
|
2433
2519
|
setup(e, { emit: n }) {
|
|
2434
|
-
let r = n, { t: i } =
|
|
2520
|
+
let r = n, { t: i } = z();
|
|
2435
2521
|
function o(e, t) {
|
|
2436
2522
|
r("update", { [e]: t });
|
|
2437
2523
|
}
|
|
2438
2524
|
return (n, r) => (t(), h(x, null, [
|
|
2439
|
-
m("div",
|
|
2525
|
+
m("div", ja, [m("label", { class: y(p(U)) }, v(p(i).title.level), 3), m("select", {
|
|
2440
2526
|
class: y(p(K)),
|
|
2441
2527
|
value: e.block.level,
|
|
2442
2528
|
onChange: r[0] ||= (e) => o("level", Number(e.target.value))
|
|
2443
2529
|
}, [
|
|
2444
|
-
m("option",
|
|
2445
|
-
m("option",
|
|
2446
|
-
m("option",
|
|
2447
|
-
m("option",
|
|
2448
|
-
], 42,
|
|
2449
|
-
m("div",
|
|
2530
|
+
m("option", Na, v(p(i).title.heading1), 1),
|
|
2531
|
+
m("option", Pa, v(p(i).title.heading2), 1),
|
|
2532
|
+
m("option", Fa, v(p(i).title.heading3), 1),
|
|
2533
|
+
m("option", Ia, v(p(i).title.heading4), 1)
|
|
2534
|
+
], 42, Ma)]),
|
|
2535
|
+
m("div", La, [m("label", { class: y(p(U)) }, v(p(i).title.fontFamily), 3), m("select", {
|
|
2450
2536
|
class: y(p(K)),
|
|
2451
|
-
value: p(
|
|
2537
|
+
value: p(Ge)(e.block.fontFamily),
|
|
2452
2538
|
onChange: r[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
2453
|
-
}, [m("option",
|
|
2539
|
+
}, [m("option", za, v(p(i).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
|
|
2454
2540
|
key: e.value,
|
|
2455
2541
|
value: e.value
|
|
2456
|
-
}, v(e.label), 9,
|
|
2457
|
-
m("div",
|
|
2542
|
+
}, v(e.label), 9, Ba))), 128))], 42, Ra)]),
|
|
2543
|
+
m("div", Va, [m("label", { class: y(p(U)) }, v(p(i).title.color), 3), g(B, {
|
|
2458
2544
|
"model-value": e.block.color ?? "",
|
|
2459
2545
|
"onUpdate:modelValue": r[2] ||= (e) => o("color", e || void 0)
|
|
2460
2546
|
}, null, 8, ["model-value"])]),
|
|
2461
|
-
m("div",
|
|
2547
|
+
m("div", Ha, [m("label", { class: y(p(U)) }, v(p(i).title.align), 3), g(Y, {
|
|
2462
2548
|
options: [
|
|
2463
2549
|
{
|
|
2464
2550
|
value: "left",
|
|
2465
2551
|
label: p(i).title.alignLeft,
|
|
2466
|
-
icon: p(
|
|
2552
|
+
icon: p(Ne)
|
|
2467
2553
|
},
|
|
2468
2554
|
{
|
|
2469
2555
|
value: "center",
|
|
2470
2556
|
label: p(i).title.alignCenter,
|
|
2471
|
-
icon: p(
|
|
2557
|
+
icon: p(Me)
|
|
2472
2558
|
},
|
|
2473
2559
|
{
|
|
2474
2560
|
value: "right",
|
|
2475
2561
|
label: p(i).title.alignRight,
|
|
2476
|
-
icon: p(
|
|
2562
|
+
icon: p(je)
|
|
2477
2563
|
}
|
|
2478
2564
|
],
|
|
2479
2565
|
"model-value": e.block.textAlign,
|
|
@@ -2481,77 +2567,97 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2481
2567
|
}, null, 8, ["options", "model-value"])])
|
|
2482
2568
|
], 64));
|
|
2483
2569
|
}
|
|
2484
|
-
}),
|
|
2570
|
+
}), Wa = { class: "tpl:mb-3.5" }, Ga = {
|
|
2485
2571
|
key: 0,
|
|
2486
2572
|
class: "tpl:mb-3.5"
|
|
2487
|
-
},
|
|
2573
|
+
}, Ka = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, qa = [
|
|
2488
2574
|
"value",
|
|
2489
2575
|
"placeholder",
|
|
2490
2576
|
"title"
|
|
2491
|
-
],
|
|
2577
|
+
], Ja = { class: "tpl:mb-3.5" }, Ya = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Xa = { class: "tpl:mb-3.5" }, Za = { class: "tpl:mb-3.5" }, Qa = ["value"], $a = { value: "full" }, eo = { value: "custom" }, to = {
|
|
2578
|
+
key: 0,
|
|
2579
|
+
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2580
|
+
}, no = ["value"], ro = { class: "tpl:mb-3.5" }, io = ["value"], ao = { value: "auto" }, oo = { value: "custom" }, so = {
|
|
2492
2581
|
key: 0,
|
|
2493
2582
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2494
|
-
},
|
|
2583
|
+
}, co = ["value"], lo = { class: "tpl:mb-3.5" }, uo = 350, fo = 200, po = /* @__PURE__ */ w({
|
|
2495
2584
|
__name: "VideoToolbar",
|
|
2496
2585
|
props: { block: {} },
|
|
2497
2586
|
emits: ["update"],
|
|
2498
2587
|
setup(e, { emit: n }) {
|
|
2499
|
-
let r = e, i = n, { t: a } =
|
|
2500
|
-
|
|
2588
|
+
let r = e, i = n, { t: a } = z(), o = c(pe, null), s = c(me, ee.liquid), l = Le(), u = [
|
|
2589
|
+
300,
|
|
2590
|
+
400,
|
|
2591
|
+
500
|
|
2592
|
+
], f = S(() => !!o), w = S(() => k(r.block.url, s)), T = S(() => {
|
|
2593
|
+
let e = r.block.width;
|
|
2594
|
+
return e === "full" ? "full" : u.includes(e) ? String(e) : "custom";
|
|
2595
|
+
}), E = S(() => typeof r.block.height == "number" ? "custom" : "auto"), D = d(!1), { start: O } = le(() => {
|
|
2596
|
+
D.value = !1;
|
|
2501
2597
|
}, 1e3, { immediate: !1 });
|
|
2502
|
-
function
|
|
2598
|
+
function A(e, t) {
|
|
2503
2599
|
i("update", { [e]: t });
|
|
2504
2600
|
}
|
|
2505
|
-
function
|
|
2506
|
-
|
|
2601
|
+
function j(e) {
|
|
2602
|
+
if (e === "custom") {
|
|
2603
|
+
let e = r.block.width;
|
|
2604
|
+
(typeof e != "number" || u.includes(e)) && A("width", uo);
|
|
2605
|
+
} else A("width", e === "full" ? "full" : Number(e));
|
|
2507
2606
|
}
|
|
2508
|
-
function
|
|
2607
|
+
function M(e) {
|
|
2509
2608
|
let t = Number(e);
|
|
2510
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
2609
|
+
!Number.isFinite(t) || t <= 0 || A("width", t);
|
|
2511
2610
|
}
|
|
2512
|
-
|
|
2611
|
+
function N(e) {
|
|
2612
|
+
A("height", e === "custom" ? fo : void 0);
|
|
2613
|
+
}
|
|
2614
|
+
function P(e) {
|
|
2615
|
+
let t = Number(e);
|
|
2616
|
+
!Number.isFinite(t) || t <= 0 || A("height", t);
|
|
2617
|
+
}
|
|
2618
|
+
async function F() {
|
|
2513
2619
|
let e = await o?.({ accept: ["images"] });
|
|
2514
|
-
l.alive && e && (
|
|
2620
|
+
l.alive && e && (A("thumbnailUrl", e.url), D.value = !0, O());
|
|
2515
2621
|
}
|
|
2516
2622
|
return (n, r) => (t(), h(x, null, [
|
|
2517
|
-
m("div",
|
|
2623
|
+
m("div", Wa, [
|
|
2518
2624
|
m("label", { class: y(p(U)) }, v(p(a).video.videoUrl), 3),
|
|
2519
2625
|
g(J, {
|
|
2520
2626
|
"model-value": e.block.url,
|
|
2521
2627
|
type: "url",
|
|
2522
2628
|
placeholder: p(a).video.videoUrlPlaceholder,
|
|
2523
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
2629
|
+
"onUpdate:modelValue": r[0] ||= (e) => A("url", e)
|
|
2524
2630
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2525
2631
|
e.block.url ? (t(), b(q, {
|
|
2526
2632
|
key: 0,
|
|
2527
2633
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2528
2634
|
"model-value": e.block.openInNewTab ?? !1,
|
|
2529
2635
|
label: p(a).video.openInNewTab,
|
|
2530
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
2636
|
+
"onUpdate:modelValue": r[1] ||= (e) => A("openInNewTab", e)
|
|
2531
2637
|
}, null, 8, ["model-value", "label"])) : C("", !0)
|
|
2532
2638
|
]),
|
|
2533
|
-
|
|
2639
|
+
w.value ? (t(), h("div", Ga, [m("label", { class: y(p(U)) }, [_(v(p(a).video.placeholderUrl) + " ", 1), m("span", Ka, v(p(a).video.optional), 1)], 2), m("input", {
|
|
2534
2640
|
type: "url",
|
|
2535
2641
|
class: y(p(K)),
|
|
2536
2642
|
value: e.block.placeholderUrl || "",
|
|
2537
2643
|
placeholder: p(a).video.placeholderUrlPlaceholder,
|
|
2538
2644
|
title: p(a).video.placeholderUrlTooltip,
|
|
2539
|
-
onInput: r[2] ||= (e) =>
|
|
2540
|
-
}, null, 42,
|
|
2541
|
-
m("div",
|
|
2542
|
-
m("label", { class: y(p(U)) }, [_(v(p(a).video.customThumbnail) + " ", 1), m("span",
|
|
2645
|
+
onInput: r[2] ||= (e) => A("placeholderUrl", e.target.value)
|
|
2646
|
+
}, null, 42, qa)])) : C("", !0),
|
|
2647
|
+
m("div", Ja, [
|
|
2648
|
+
m("label", { class: y(p(U)) }, [_(v(p(a).video.customThumbnail) + " ", 1), m("span", Ya, v(p(a).video.optional), 1)], 2),
|
|
2543
2649
|
g(J, {
|
|
2544
2650
|
"model-value": e.block.thumbnailUrl,
|
|
2545
2651
|
type: "url",
|
|
2546
2652
|
placeholder: p(a).video.thumbnailPlaceholder,
|
|
2547
|
-
pulse:
|
|
2548
|
-
"onUpdate:modelValue": r[3] ||= (e) =>
|
|
2653
|
+
pulse: D.value,
|
|
2654
|
+
"onUpdate:modelValue": r[3] ||= (e) => A("thumbnailUrl", e)
|
|
2549
2655
|
}, null, 8, [
|
|
2550
2656
|
"model-value",
|
|
2551
2657
|
"placeholder",
|
|
2552
2658
|
"pulse"
|
|
2553
2659
|
]),
|
|
2554
|
-
|
|
2660
|
+
f.value ? (t(), h("button", {
|
|
2555
2661
|
key: 0,
|
|
2556
2662
|
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",
|
|
2557
2663
|
style: {
|
|
@@ -2559,46 +2665,59 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2559
2665
|
color: "var(--tpl-primary)",
|
|
2560
2666
|
"background-color": "var(--tpl-bg)"
|
|
2561
2667
|
},
|
|
2562
|
-
onClick:
|
|
2563
|
-
}, [g(p(
|
|
2668
|
+
onClick: F
|
|
2669
|
+
}, [g(p(ae), {
|
|
2564
2670
|
size: 14,
|
|
2565
2671
|
"stroke-width": 1.5
|
|
2566
2672
|
}), _(" " + v(p(a).image.browseMedia), 1)])) : C("", !0)
|
|
2567
2673
|
]),
|
|
2568
|
-
m("div",
|
|
2674
|
+
m("div", Xa, [m("label", { class: y(p(U)) }, v(p(a).video.altText), 3), g(J, {
|
|
2569
2675
|
"model-value": e.block.alt,
|
|
2570
2676
|
type: "text",
|
|
2571
2677
|
placeholder: p(a).video.altTextPlaceholder,
|
|
2572
|
-
"onUpdate:modelValue": r[4] ||= (e) =>
|
|
2678
|
+
"onUpdate:modelValue": r[4] ||= (e) => A("alt", e)
|
|
2573
2679
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2574
|
-
m("div",
|
|
2575
|
-
class: y(p(
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2680
|
+
m("div", Za, [
|
|
2681
|
+
m("label", { class: y(p(U)) }, v(p(a).video.width), 3),
|
|
2682
|
+
m("select", {
|
|
2683
|
+
class: y(p(K)),
|
|
2684
|
+
"data-testid": "video-width-mode",
|
|
2685
|
+
value: T.value,
|
|
2686
|
+
onChange: r[5] ||= (e) => j(e.target.value)
|
|
2687
|
+
}, [
|
|
2688
|
+
m("option", $a, v(p(a).video.fullWidth), 1),
|
|
2689
|
+
r[10] ||= m("option", { value: "300" }, "300px", -1),
|
|
2690
|
+
r[11] ||= m("option", { value: "400" }, "400px", -1),
|
|
2691
|
+
r[12] ||= m("option", { value: "500" }, "500px", -1),
|
|
2692
|
+
m("option", eo, v(p(a).video.widthCustom), 1)
|
|
2693
|
+
], 42, Qa),
|
|
2694
|
+
T.value === "custom" ? (t(), h("div", to, [m("input", {
|
|
2695
|
+
type: "number",
|
|
2696
|
+
"data-testid": "video-width-input",
|
|
2697
|
+
class: y(p(G)),
|
|
2698
|
+
value: e.block.width,
|
|
2699
|
+
min: "20",
|
|
2700
|
+
onInput: r[6] ||= (e) => M(e.target.value)
|
|
2701
|
+
}, null, 42, no), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
|
|
2702
|
+
]),
|
|
2703
|
+
m("div", ro, [
|
|
2585
2704
|
m("label", { class: y(p(U)) }, v(p(a).video.height), 3),
|
|
2586
2705
|
m("select", {
|
|
2587
2706
|
class: y(p(K)),
|
|
2588
2707
|
"data-testid": "video-height-mode",
|
|
2589
|
-
value:
|
|
2590
|
-
onChange: r[
|
|
2591
|
-
}, [m("option",
|
|
2592
|
-
|
|
2708
|
+
value: E.value,
|
|
2709
|
+
onChange: r[7] ||= (e) => N(e.target.value)
|
|
2710
|
+
}, [m("option", ao, v(p(a).video.heightAuto), 1), m("option", oo, v(p(a).video.heightCustom), 1)], 42, io),
|
|
2711
|
+
E.value === "custom" ? (t(), h("div", so, [m("input", {
|
|
2593
2712
|
type: "number",
|
|
2594
2713
|
"data-testid": "video-height-input",
|
|
2595
2714
|
class: y(p(G)),
|
|
2596
2715
|
value: e.block.height,
|
|
2597
2716
|
min: "20",
|
|
2598
|
-
onInput: r[
|
|
2599
|
-
}, null, 42,
|
|
2717
|
+
onInput: r[8] ||= (e) => P(e.target.value)
|
|
2718
|
+
}, null, 42, co), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
|
|
2600
2719
|
]),
|
|
2601
|
-
m("div",
|
|
2720
|
+
m("div", lo, [m("label", { class: y(p(U)) }, v(p(a).title.align), 3), g(Y, {
|
|
2602
2721
|
options: [
|
|
2603
2722
|
{
|
|
2604
2723
|
value: "left",
|
|
@@ -2614,11 +2733,11 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2614
2733
|
}
|
|
2615
2734
|
],
|
|
2616
2735
|
"model-value": e.block.align,
|
|
2617
|
-
"onUpdate:modelValue": r[
|
|
2736
|
+
"onUpdate:modelValue": r[9] ||= (e) => A("align", e)
|
|
2618
2737
|
}, null, 8, ["options", "model-value"])])
|
|
2619
2738
|
], 64));
|
|
2620
2739
|
}
|
|
2621
|
-
}),
|
|
2740
|
+
}), mo = ["aria-label"], ho = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, go = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, _o = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, vo = { class: "tpl:flex tpl:gap-1" }, yo = ["title"], bo = ["title"], xo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, So = /*@__PURE__*/ w({
|
|
2622
2741
|
__name: "Toolbar",
|
|
2623
2742
|
props: { block: {} },
|
|
2624
2743
|
emits: [
|
|
@@ -2627,9 +2746,9 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2627
2746
|
"duplicate"
|
|
2628
2747
|
],
|
|
2629
2748
|
setup(e, { emit: n }) {
|
|
2630
|
-
let r = f(() => import("./CountdownToolbar-
|
|
2749
|
+
let r = f(() => import("./CountdownToolbar-DVuucA3v.js")), a = e, o = n, { t: s } = z(), l = ue(ye, "Toolbar"), u = c(ve, []), d = S(() => a.block.type), _ = S(() => D(a.block)), y = S(() => {
|
|
2631
2750
|
if (_.value) return u.find((e) => e.type === a.block.customType);
|
|
2632
|
-
}), x = S(() => _.value ? y.value?.name ?? a.block.customType :
|
|
2751
|
+
}), x = S(() => _.value ? y.value?.name ?? a.block.customType : oe(d.value, s)), w = S(() => We(l.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
2633
2752
|
function T(e) {
|
|
2634
2753
|
o("update", e);
|
|
2635
2754
|
}
|
|
@@ -2637,82 +2756,82 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2637
2756
|
"data-testid": "block-toolbar",
|
|
2638
2757
|
"aria-label": p(s).landmarks.blockToolbar,
|
|
2639
2758
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2640
|
-
}, [m("div",
|
|
2759
|
+
}, [m("div", ho, [m("div", go, [p(we)[d.value] ? (t(), b(i(p(we)[d.value]), {
|
|
2641
2760
|
key: 0,
|
|
2642
2761
|
size: 16,
|
|
2643
2762
|
"stroke-width": 1.5
|
|
2644
|
-
})) : _.value ? (t(), b(p(
|
|
2763
|
+
})) : _.value ? (t(), b(p(ce), {
|
|
2645
2764
|
key: 1,
|
|
2646
2765
|
size: 16,
|
|
2647
2766
|
"stroke-width": 1.5
|
|
2648
|
-
})) : C("", !0), m("h3",
|
|
2767
|
+
})) : C("", !0), m("h3", _o, v(x.value), 1)]), m("div", vo, [m("button", {
|
|
2649
2768
|
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)]",
|
|
2650
2769
|
title: p(s).toolbar.duplicate,
|
|
2651
2770
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
2652
2771
|
}, [g(p(Te), {
|
|
2653
2772
|
size: 14,
|
|
2654
2773
|
"stroke-width": 2
|
|
2655
|
-
})], 8,
|
|
2774
|
+
})], 8, yo), m("button", {
|
|
2656
2775
|
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)]",
|
|
2657
2776
|
title: p(s).toolbar.delete,
|
|
2658
2777
|
onClick: a[1] ||= (e) => o("delete")
|
|
2659
|
-
}, [g(p(
|
|
2778
|
+
}, [g(p(Pe), {
|
|
2660
2779
|
size: 14,
|
|
2661
2780
|
"stroke-width": 2
|
|
2662
|
-
})], 8,
|
|
2781
|
+
})], 8, bo)])]), m("div", xo, [_.value ? (t(), b(vr, {
|
|
2663
2782
|
key: 0,
|
|
2664
2783
|
block: e.block,
|
|
2665
2784
|
onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
|
|
2666
2785
|
onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
|
|
2667
|
-
}, null, 8, ["block"])) : d.value === "section" ? (t(), b(
|
|
2786
|
+
}, null, 8, ["block"])) : d.value === "section" ? (t(), b(Ci, {
|
|
2668
2787
|
key: 1,
|
|
2669
2788
|
block: e.block,
|
|
2670
2789
|
onUpdate: T
|
|
2671
|
-
}, null, 8, ["block"])) : d.value === "title" ? (t(), b(
|
|
2790
|
+
}, null, 8, ["block"])) : d.value === "title" ? (t(), b(Ua, {
|
|
2672
2791
|
key: 2,
|
|
2673
2792
|
block: e.block,
|
|
2674
2793
|
"font-families": w.value,
|
|
2675
2794
|
onUpdate: T
|
|
2676
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (t(), b(
|
|
2795
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (t(), b(pi, {
|
|
2677
2796
|
key: 3,
|
|
2678
2797
|
block: e.block,
|
|
2679
2798
|
onUpdate: T
|
|
2680
|
-
}, null, 8, ["block"])) : d.value === "image" ? (t(), b(
|
|
2799
|
+
}, null, 8, ["block"])) : d.value === "image" ? (t(), b(Zr, {
|
|
2681
2800
|
key: 4,
|
|
2682
2801
|
block: e.block,
|
|
2683
2802
|
onUpdate: T
|
|
2684
|
-
}, null, 8, ["block"])) : d.value === "video" ? (t(), b(
|
|
2803
|
+
}, null, 8, ["block"])) : d.value === "video" ? (t(), b(po, {
|
|
2685
2804
|
key: 5,
|
|
2686
2805
|
block: e.block,
|
|
2687
2806
|
onUpdate: T
|
|
2688
|
-
}, null, 8, ["block"])) : d.value === "button" ? (t(), b(
|
|
2807
|
+
}, null, 8, ["block"])) : d.value === "button" ? (t(), b(Pt, {
|
|
2689
2808
|
key: 6,
|
|
2690
2809
|
block: e.block,
|
|
2691
2810
|
"font-families": w.value,
|
|
2692
2811
|
onUpdate: T
|
|
2693
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (t(), b(
|
|
2812
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (t(), b(wr, {
|
|
2694
2813
|
key: 7,
|
|
2695
2814
|
block: e.block,
|
|
2696
2815
|
onUpdate: T
|
|
2697
|
-
}, null, 8, ["block"])) : d.value === "social" ? (t(), b(
|
|
2816
|
+
}, null, 8, ["block"])) : d.value === "social" ? (t(), b(Ji, {
|
|
2698
2817
|
key: 8,
|
|
2699
2818
|
block: e.block,
|
|
2700
2819
|
onUpdate: T
|
|
2701
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (t(), b(
|
|
2820
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (t(), b(li, {
|
|
2702
2821
|
key: 9,
|
|
2703
2822
|
block: e.block,
|
|
2704
2823
|
"font-families": w.value,
|
|
2705
2824
|
onUpdate: T
|
|
2706
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (t(), b(
|
|
2825
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (t(), b(Aa, {
|
|
2707
2826
|
key: 10,
|
|
2708
2827
|
block: e.block,
|
|
2709
2828
|
"font-families": w.value,
|
|
2710
2829
|
onUpdate: T
|
|
2711
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (t(), b(
|
|
2830
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (t(), b($i, {
|
|
2712
2831
|
key: 11,
|
|
2713
2832
|
block: e.block,
|
|
2714
2833
|
onUpdate: T
|
|
2715
|
-
}, null, 8, ["block"])) : d.value === "html" ? (t(), b(
|
|
2834
|
+
}, null, 8, ["block"])) : d.value === "html" ? (t(), b(Or, {
|
|
2716
2835
|
key: 12,
|
|
2717
2836
|
block: e.block,
|
|
2718
2837
|
onUpdate: T
|
|
@@ -2721,12 +2840,12 @@ var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
|
2721
2840
|
block: e.block,
|
|
2722
2841
|
"font-families": w.value,
|
|
2723
2842
|
onUpdate: T
|
|
2724
|
-
}, null, 8, ["block", "font-families"])) : C("", !0), g(
|
|
2843
|
+
}, null, 8, ["block", "font-families"])) : C("", !0), g(Pn, {
|
|
2725
2844
|
block: e.block,
|
|
2726
2845
|
"is-first-section": d.value === "paragraph",
|
|
2727
2846
|
onUpdate: T
|
|
2728
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
2847
|
+
}, null, 8, ["block", "is-first-section"])])], 8, mo));
|
|
2729
2848
|
}
|
|
2730
|
-
}),
|
|
2849
|
+
}), Co = /* @__PURE__ */ e({ default: () => wo }), wo = /*#__PURE__*/ Ie(So, [["__scopeId", "data-v-e2d2c22f"]]);
|
|
2731
2850
|
//#endregion
|
|
2732
|
-
export {
|
|
2851
|
+
export { wo as default, Y as i, $ as n, X as r, Co as t };
|