@templatical/editor 0.41.0 → 0.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-a8TPBAl2.js → AiChatSidebar-DOCvzGBe.js} +8 -8
- package/dist/{AiFeatureMenu-CroDMqRG.js → AiFeatureMenu-CfijAx4G.js} +4 -4
- package/dist/{BlockIssueBadge-D8KsGWY6.js → BlockIssueBadge-BJ3A6mqh.js} +2 -2
- package/dist/{BlockPreviewCanvas-Z9SZIgfA.js → BlockPreviewCanvas-DggfBaoJ.js} +33 -33
- package/dist/{CloudHeaderExtras-CVqHeqc6.js → CloudHeaderExtras-dFbdqBr5.js} +2 -2
- package/dist/{CloudPanels-CmEpQUJB.js → CloudPanels-DmMxhzzZ.js} +4 -4
- package/dist/{CollaboratorBar-AIQC9fEF.js → CollaboratorBar-XXk1tOC5.js} +2 -2
- package/dist/{CommentsPanel-9k1q-79y.js → CommentsPanel-CGEhbjx0.js} +1 -1
- package/dist/{CommentsSidebar-Bc7nORmD.js → CommentsSidebar-CUpst9ou.js} +10 -10
- package/dist/{CountdownToolbar-DkC-qSgq.js → CountdownToolbar-B1a_UIuB.js} +3 -3
- package/dist/{DesignReferenceSidebar-OoiYJAKS.js → DesignReferenceSidebar-DkAmsBgM.js} +6 -6
- package/dist/{IssuesPanel-Dnns3O9z.js → IssuesPanel-lTpsCV4a.js} +5 -5
- package/dist/{LogicTagInsertButton-BimKobaG.js → LogicTagInsertButton-B5YymR4U.js} +243 -219
- package/dist/{MediaEditModal-C-InB-H2.js → MediaEditModal-B1X8qtJb.js} +1 -1
- package/dist/{MediaPanels-CTosUpeo.js → MediaPanels-DO30L1KS.js} +1 -1
- package/dist/{MergeTagInput-DqpVzhy7.js → MergeTagInput-B0M_-X0K.js} +1 -1
- package/dist/{MergeTagModeToggle-BkIiAgpQ.js → MergeTagModeToggle-B-8W1tK7.js} +4 -4
- package/dist/{ParagraphEditor-DaZ03d1U.js → ParagraphEditor-BhhpXgoO.js} +35 -35
- package/dist/{RestoreVersionDialog-DHb1mPoF.js → RestoreVersionDialog-DE8aqmdi.js} +3 -3
- package/dist/{RichTextEditorContent-AEtfKvLz.js → RichTextEditorContent-AaLAArA0.js} +5 -5
- package/dist/{SaveBlockDialog-hGwLDWfE.js → SaveBlockDialog-BJ-hEwLv.js} +8 -8
- package/dist/{SavedBlocksBrowserModal-C0lYVBFi.js → SavedBlocksBrowserModal-nLI8aAQ5.js} +9 -9
- package/dist/{SavedBlocksPanels-CaTbeVDv.js → SavedBlocksPanels-RnzUMUJI.js} +1 -1
- package/dist/{SavedBlocksPickBar-DR2afid2.js → SavedBlocksPickBar-D3QA3Tgy.js} +2 -2
- package/dist/{TemplateScoringPanel-Cs0TGtRF.js → TemplateScoringPanel-C6ellAcs.js} +11 -11
- package/dist/{TemplateSettings-BD1WNP4C.js → TemplateSettings-C_0qK-zs.js} +6 -6
- package/dist/{TestEmailModal-DqoosG1u.js → TestEmailModal-CnyxLhWJ.js} +7 -7
- package/dist/{TestEmailPanel-DpozqyHF.js → TestEmailPanel-BRisIL4G.js} +1 -1
- package/dist/{TitleEditor-BCBdZLt_.js → TitleEditor-lPITPzw6.js} +12 -12
- package/dist/{ToggleSwitch-CJfQ8u57.js → ToggleSwitch-CtZ6adlX.js} +1 -1
- package/dist/{Toolbar-C7SjilzH.js → Toolbar-B6dG5_IP.js} +847 -554
- package/dist/{TplModal-CVO-2KrU.js → TplModal-BiAf7tWe.js} +2 -2
- package/dist/{VersionHistoryMenu-b0A8mS2_.js → VersionHistoryMenu-DdspCRSA.js} +5 -5
- package/dist/{VersionHistoryPanels-BzF7dmwa.js → VersionHistoryPanels-C589Jm_B.js} +1 -1
- package/dist/{VersionPreviewBanner-xB9r83r0.js → VersionPreviewBanner-XUuLe36h.js} +1 -1
- package/dist/{WrapperBlock-BDjOn3fY.js → WrapperBlock-CVQ4t1tY.js} +4 -4
- package/dist/{blockTypeIcons-B0Bq1WT1.js → blockTypeIcons-Sg8SY1NQ.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/{cdn/chunks/ca-Ckgw9yd0.js → ca--zGWn9AU.js} +14 -2
- package/dist/cdn/chunks/{AiChatSidebar-mKImUXi6.js → AiChatSidebar-DiG-EQ-E.js} +8 -8
- package/dist/cdn/chunks/AiChatSidebar-DiG-EQ-E.js.map +1 -0
- package/dist/cdn/chunks/{AiFeatureMenu-Cx3qdStQ.js → AiFeatureMenu-BXSPgOzA.js} +5 -5
- package/dist/cdn/chunks/AiFeatureMenu-BXSPgOzA.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-DS1pUf5g.js → BlockIssueBadge-ChQ0mPf5.js} +2 -2
- package/dist/cdn/chunks/BlockIssueBadge-ChQ0mPf5.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-D31TNib3.js → BlockPreviewCanvas-CMmv1FTA.js} +28 -28
- package/dist/cdn/chunks/BlockPreviewCanvas-CMmv1FTA.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-0zdlKiq7.js → CloudHeaderExtras-yvFz2_e-.js} +3 -3
- package/dist/cdn/chunks/CloudHeaderExtras-yvFz2_e-.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-DPh71yOO.js → CloudPanels-DpKck9Na.js} +4 -4
- package/dist/cdn/chunks/CloudPanels-DpKck9Na.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-lCZU8qkg.js → CollaboratorBar-Clm1ZVXQ.js} +3 -3
- package/dist/cdn/chunks/CollaboratorBar-Clm1ZVXQ.js.map +1 -0
- package/dist/cdn/chunks/{CommentsPanel-BtAGZfF6.js → CommentsPanel-CjhxGMjL.js} +2 -2
- package/dist/cdn/chunks/CommentsPanel-CjhxGMjL.js.map +1 -0
- package/dist/cdn/chunks/{CommentsSidebar-Ws07MXYj.js → CommentsSidebar-D9bqMnlt.js} +16 -16
- package/dist/cdn/chunks/CommentsSidebar-D9bqMnlt.js.map +1 -0
- package/dist/cdn/chunks/CountdownBlock-sVDjKkRw.js.map +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Bu93WiS8.js → CountdownToolbar-CIRx5w1U.js} +4 -4
- package/dist/cdn/chunks/CountdownToolbar-CIRx5w1U.js.map +1 -0
- package/dist/cdn/chunks/{DesignReferenceSidebar-BlSdh5B7.js → DesignReferenceSidebar-C1-SbE_R.js} +9 -9
- package/dist/cdn/chunks/DesignReferenceSidebar-C1-SbE_R.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-CKkv9z9g.js → IssuesPanel-qKY6UDd-.js} +8 -8
- package/dist/cdn/chunks/IssuesPanel-qKY6UDd-.js.map +1 -0
- package/dist/cdn/chunks/LoadingTrack-_7DH_5aw.js.map +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CHc1yZ9v.js → LogicTagInsertButton-CItDS_U1.js} +250 -226
- package/dist/cdn/chunks/LogicTagInsertButton-CItDS_U1.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cw9MhjVz.js → MediaEditModal-CzUtXkpk.js} +2 -2
- package/dist/cdn/chunks/MediaEditModal-CzUtXkpk.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-FD_aX3H5.js → MediaPanels-DOLsh7WC.js} +2 -2
- package/dist/cdn/chunks/MediaPanels-DOLsh7WC.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagInput--qTYfCWk.js → MergeTagInput-B33u3nxj.js} +2 -2
- package/dist/cdn/chunks/MergeTagInput-B33u3nxj.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagModeToggle-CdWIGo3Q.js → MergeTagModeToggle-Bz1CH3NT.js} +10 -10
- package/dist/cdn/chunks/MergeTagModeToggle-Bz1CH3NT.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-w2qEZTkM.js → ParagraphEditor-J74SIn-m.js} +51 -51
- package/dist/cdn/chunks/ParagraphEditor-J74SIn-m.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-cnWVN3nX.js → RestoreVersionDialog-CFE7jqDB.js} +3 -3
- package/dist/cdn/chunks/RestoreVersionDialog-CFE7jqDB.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-Fzuu9pLP.js → RichTextEditorContent-dOg1xFqv.js} +5 -5
- package/dist/cdn/chunks/RichTextEditorContent-dOg1xFqv.js.map +1 -0
- package/dist/cdn/chunks/{SaveBlockDialog-jxQtKnVs.js → SaveBlockDialog-DZOmDCC8.js} +38 -38
- package/dist/cdn/chunks/SaveBlockDialog-DZOmDCC8.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DpXWf4Pi.js → SavedBlocksBrowserModal-B43H5zKA.js} +10 -10
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B43H5zKA.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-B-ASmf1P.js → SavedBlocksPanels-uTSb2xO_.js} +2 -2
- package/dist/cdn/chunks/SavedBlocksPanels-uTSb2xO_.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPickBar-CEFIQ8Nd.js → SavedBlocksPickBar-BUvmGqHK.js} +3 -3
- package/dist/cdn/chunks/SavedBlocksPickBar-BUvmGqHK.js.map +1 -0
- package/dist/cdn/chunks/{TemplateScoringPanel-d_Ppowsq.js → TemplateScoringPanel-ebsrVge3.js} +19 -19
- package/dist/cdn/chunks/TemplateScoringPanel-ebsrVge3.js.map +1 -0
- package/dist/cdn/chunks/{TemplateSettings-Dr5OJ0Gi.js → TemplateSettings-BaEVdUTM.js} +9 -9
- package/dist/cdn/chunks/TemplateSettings-BaEVdUTM.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-CrjzVw8e.js → TestEmailModal-ide7UP_H.js} +7 -7
- package/dist/cdn/chunks/TestEmailModal-ide7UP_H.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-k9vdulTu.js → TestEmailPanel-Cqdsnufx.js} +2 -2
- package/dist/cdn/chunks/TestEmailPanel-Cqdsnufx.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-laILWfKh.js → TitleEditor-CoFzxLPA.js} +16 -16
- package/dist/cdn/chunks/TitleEditor-CoFzxLPA.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-0dGCYnRY.js → ToggleSwitch-D-8dCEbI.js} +2 -2
- package/dist/cdn/chunks/ToggleSwitch-D-8dCEbI.js.map +1 -0
- package/dist/cdn/chunks/{Toolbar-BsiHW9gY.js → Toolbar-BDzhrmGV.js} +814 -566
- package/dist/cdn/chunks/Toolbar-BDzhrmGV.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-D8DoPbFa.js → TplModal-mLMmolQp.js} +3 -3
- package/dist/cdn/chunks/TplModal-mLMmolQp.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryMenu-B3-hNu9c.js → VersionHistoryMenu-C_bBKOYU.js} +7 -7
- package/dist/cdn/chunks/VersionHistoryMenu-C_bBKOYU.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-zw1AtzGN.js → VersionHistoryPanels-B9LwOKxm.js} +2 -2
- package/dist/cdn/chunks/VersionHistoryPanels-B9LwOKxm.js.map +1 -0
- package/dist/cdn/chunks/{VersionPreviewBanner-PzVQSBJE.js → VersionPreviewBanner-CKyrcgxJ.js} +2 -2
- package/dist/cdn/chunks/VersionPreviewBanner-CKyrcgxJ.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-CpRvfAV0.js → WrapperBlock-DI8vSvTO.js} +4 -4
- package/dist/cdn/chunks/WrapperBlock-DI8vSvTO.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-CdfCfqHE.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-CdfCfqHE.js.map +1 -0
- package/dist/{ca-Ckgw9yd0.js → cdn/chunks/ca--zGWn9AU.js} +16 -0
- package/dist/cdn/chunks/ca--zGWn9AU.js.map +1 -0
- package/dist/cdn/chunks/ca-BTf1Zbqb.js.map +1 -1
- package/dist/cdn/chunks/{cloud-CIT4yPp4.js → cloud-De-eh1u6.js} +2 -2
- package/dist/cdn/chunks/cloud-De-eh1u6.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-COUxbPvd.js → createCloudRuntime-DsaUaWvr.js} +3 -3
- package/dist/cdn/chunks/createCloudRuntime-DsaUaWvr.js.map +1 -0
- package/dist/cdn/chunks/{de-D4dweQw8.js → de-BRNLKcDl.js} +15 -1
- package/dist/cdn/chunks/de-BRNLKcDl.js.map +1 -0
- package/dist/cdn/chunks/de-mMY5yQJu.js.map +1 -1
- package/dist/cdn/chunks/de-xzrh9PA3.js.map +1 -1
- package/dist/cdn/chunks/dist-BRZhN8qJ.js.map +1 -1
- package/dist/cdn/chunks/dist-CXB2_kBa.js.map +1 -1
- package/dist/cdn/chunks/draggable-IB4x6w2O.js.map +1 -1
- package/dist/cdn/chunks/{editor-modal-CKu8HhiB.js → editor-modal-CZQArGNj.js} +88 -88
- package/dist/cdn/chunks/editor-modal-CZQArGNj.js.map +1 -0
- package/dist/cdn/chunks/emojiData-6m0DBh7O.js.map +1 -1
- package/dist/cdn/chunks/en-9unxBjV8.js +2 -0
- package/dist/cdn/chunks/en-ChVeGQBY.js.map +1 -1
- package/dist/{en-VE7R7NyL.js → cdn/chunks/en-JJjqHMjy.js} +16 -0
- package/dist/cdn/chunks/en-JJjqHMjy.js.map +1 -0
- package/dist/cdn/chunks/{es-B9OhP8H3.js → es-BIh8BxV9.js} +15 -1
- package/dist/cdn/chunks/es-BIh8BxV9.js.map +1 -0
- package/dist/cdn/chunks/es-BT4LSpE2.js.map +1 -1
- package/dist/cdn/chunks/{extensions-CafoGF65.js → extensions-Dy251lPd.js} +5 -5
- package/dist/cdn/chunks/extensions-Dy251lPd.js.map +1 -0
- package/dist/cdn/chunks/formatAbsoluteDateTime-DMmop3C-.js.map +1 -1
- package/dist/cdn/chunks/formatRelativeTime-CtUU-QZ8.js.map +1 -1
- package/dist/{fr-wrXhIi00.js → cdn/chunks/fr-C5VUZogP.js} +16 -0
- package/dist/cdn/chunks/fr-C5VUZogP.js.map +1 -0
- package/dist/cdn/chunks/fr-CI7OJoql.js.map +1 -1
- package/dist/cdn/chunks/htmlparser-ClUZ6waR.js.map +1 -1
- package/dist/cdn/chunks/{icons-BKkJ-5xF.js → icons-CQnjugjy.js} +86 -45
- package/dist/cdn/chunks/icons-CQnjugjy.js.map +1 -0
- package/dist/cdn/chunks/ja-DhlWUfke.js.map +1 -1
- package/dist/cdn/chunks/{ja-fKnVWXHC.js → ja-x5JYxaCW.js} +15 -1
- package/dist/cdn/chunks/ja-x5JYxaCW.js.map +1 -0
- package/dist/cdn/chunks/keys-DCWeHkSF.js.map +1 -1
- package/dist/cdn/chunks/liquid.browser-BypTT2oc.js.map +1 -1
- package/dist/cdn/chunks/logger-ByvdoAwq.js.map +1 -1
- package/dist/cdn/chunks/nl-D8y5OWGB.js.map +1 -1
- package/dist/cdn/chunks/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +15 -1
- package/dist/cdn/chunks/nl-UXxFyXV6.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dpj-_cOj.js → preRenderCustomBlocks-h4ZFBKbD.js} +2 -2
- package/dist/cdn/chunks/preRenderCustomBlocks-h4ZFBKbD.js.map +1 -0
- package/dist/cdn/chunks/pt-BR-CoCwRUi0.js.map +1 -1
- package/dist/{pt-BR-Bh1J8ey6.js → cdn/chunks/pt-BR-DHm3SP6W.js} +16 -0
- package/dist/cdn/chunks/pt-BR-DHm3SP6W.js.map +1 -0
- package/dist/cdn/chunks/pt-BR-DMCbUBvJ.js.map +1 -1
- package/dist/cdn/chunks/pusher-BbIHJKf3.js.map +1 -1
- package/dist/cdn/chunks/readableTextColor-f8Kykfnh.js.map +1 -1
- package/dist/cdn/chunks/{socialIcons-BvYNMn1G.js → socialIcons-ZOCwCCyn.js} +3 -3
- package/dist/cdn/chunks/socialIcons-ZOCwCCyn.js.map +1 -0
- package/dist/cdn/chunks/{src-DveVYoWS.js → src-BR3I3gOW.js} +265 -224
- package/dist/cdn/chunks/src-BR3I3gOW.js.map +1 -0
- package/dist/cdn/chunks/{src-Cnc5E71L.js → src-fZSLjhjy.js} +12 -12
- package/dist/cdn/chunks/src-fZSLjhjy.js.map +1 -0
- package/dist/cdn/chunks/{src-L6HEdwFn.js → src-nhIF5-mf.js} +179 -166
- package/dist/cdn/chunks/src-nhIF5-mf.js.map +1 -0
- package/dist/cdn/chunks/styleConstants-C_YAPdQS.js.map +1 -1
- package/dist/cdn/chunks/templateSettingsFields-YCFVBVYh.js.map +1 -1
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-DhLuKyDc.js → tiptap-D1u8JIUW.js} +1916 -1917
- package/dist/cdn/chunks/tiptap-D1u8JIUW.js.map +1 -0
- package/dist/cdn/chunks/useAliveFlag-DAlQLbM2.js.map +1 -1
- package/dist/cdn/chunks/useCloudI18n-CrjWbpbu.js.map +1 -1
- package/dist/cdn/chunks/{useEditorCore-DZmtKwJh.js → useEditorCore-D4kzTMtQ.js} +458 -446
- package/dist/cdn/chunks/useEditorCore-D4kzTMtQ.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-CshefZLP.js.map +1 -1
- package/dist/cdn/chunks/useI18n-CyO_Nmca.js.map +1 -1
- package/dist/cdn/chunks/{useLogicTag-DF7-l66G.js → useLogicTag-J_i_hvZg.js} +2 -2
- package/dist/cdn/chunks/useLogicTag-J_i_hvZg.js.map +1 -0
- package/dist/cdn/chunks/{useMergeTag-DbIHw4NG.js → useMergeTag-C5MyHYxJ.js} +2 -2
- package/dist/cdn/chunks/useMergeTag-C5MyHYxJ.js.map +1 -0
- package/dist/cdn/chunks/{usePopoverPosition-BJRvAb-h.js → usePopoverPosition-DGXjXKjM.js} +25 -12
- package/dist/cdn/chunks/usePopoverPosition-DGXjXKjM.js.map +1 -0
- package/dist/cdn/chunks/useScrollToBlock-DgHZJvID.js.map +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +493 -464
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-eqb2JhqU.js → check-BMx_TLAS.js} +1 -1
- package/dist/{chevron-down-Dkr-7Ywl.js → chevron-down-KZf5mh9_.js} +1 -1
- package/dist/{chevron-right-Bge4XF_B.js → chevron-right-BLZ60Vxw.js} +1 -1
- package/dist/{chevron-up-CQAyl0kC.js → chevron-up-B9ynB8eU.js} +1 -1
- package/dist/{circle-alert-CYgTHKWr.js → circle-alert-pjvFFDrF.js} +1 -1
- package/dist/{clock-BgSJZJP5.js → clock-CiiTBfF3.js} +1 -1
- package/dist/{cloud-DsqqUfzh.js → cloud-AO_X8T9g.js} +1 -1
- package/dist/{copy-mw6PVnOJ.js → copy-BF0_pQjH.js} +1 -1
- package/dist/{createCloudRuntime-iLflkYzP.js → createCloudRuntime-D641nhri.js} +2 -2
- package/dist/{createLucideIcon-BxY5yz5u.js → createLucideIcon-C2YOVVWx.js} +8 -8
- package/dist/{de-D4dweQw8.js → de-BRNLKcDl.js} +14 -0
- package/dist/{dist-CQSVro7b.js → dist-B0dkvy7z.js} +1 -1
- package/dist/{dist-BJM3eFyT.js → dist-BPWuzECC.js} +1 -1
- package/dist/{dist-EDkj3Ub1.js → dist-BUHovM4k.js} +1 -1
- package/dist/{dist-BmsLcnrO.js → dist-BwoEME8p.js} +1 -1
- package/dist/{dist-DerFNpDY.js → dist-C2Ge44fD.js} +760 -761
- package/dist/{dist-BdHF7nyq.js → dist-CIxmOOSG.js} +5 -5
- package/dist/{dist-wyXxj3R1.js → dist-CJ7RZARo.js} +1 -1
- package/dist/{dist-Bl4rxpX9.js → dist-CxmLZQso.js} +1 -1
- package/dist/{dist-DyrEOKEJ.js → dist-DRmafAUz.js} +1 -1
- package/dist/{dist-Djmzp6wi.js → dist-DdOAotfz.js} +1 -1
- package/dist/{dist-BxVnMgXZ.js → dist-W_ERo6c_.js} +1 -1
- package/dist/{dist-DbUZvK04.js → dist-iLUVPysa.js} +263 -222
- package/dist/{dist-DQbOebGW.js → dist-p-LkiWIQ.js} +1 -1
- package/dist/{editor-modal-qzmEVcIk.js → editor-modal-99FB40dl.js} +16 -16
- package/dist/en-BvOjRLiw.js +2 -0
- package/dist/{cdn/chunks/en-VE7R7NyL.js → en-JJjqHMjy.js} +14 -2
- package/dist/{es-B9OhP8H3.js → es-BIh8BxV9.js} +14 -0
- package/dist/{extensions-DDhjuVKy.js → extensions-DqQXxrvP.js} +13 -13
- package/dist/{eye-DphkRtAD.js → eye-RdXYgrQZ.js} +1 -1
- package/dist/{cdn/chunks/fr-wrXhIi00.js → fr-C5VUZogP.js} +14 -2
- package/dist/{image-up-Qi2BXD7T.js → image-up-BwdoReQt.js} +1 -1
- package/dist/{info-VSyAs02q.js → info-zFMSGrL1.js} +1 -1
- package/dist/{ja-fKnVWXHC.js → ja-x5JYxaCW.js} +14 -0
- package/dist/{link-CNuozGqD.js → link-D7orqFBT.js} +1 -1
- package/dist/{list-BA0I5Wmu.js → list-BGt4Pgxc.js} +1 -1
- package/dist/{loader-circle-z5eeqasv.js → loader-circle-BVBgkRGz.js} +1 -1
- package/dist/{message-circle-BsQ9hEup.js → message-circle-D8YLsarv.js} +1 -1
- package/dist/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +14 -0
- package/dist/{package-OkXfuRoO.js → package-CuFvk0L5.js} +1 -1
- package/dist/{pencil-DFVFA7Dj.js → pencil-DRYbmZW7.js} +1 -1
- package/dist/{plus-D8bkVjZ7.js → plus-Dv0b3kh0.js} +1 -1
- package/dist/{preRenderCustomBlocks-BBSqQgke.js → preRenderCustomBlocks-CTstI3Q-.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-Bh1J8ey6.js → pt-BR-DHm3SP6W.js} +14 -2
- package/dist/{refresh-cw-DPB7YFuz.js → refresh-cw-gYTIS5bJ.js} +1 -1
- package/dist/{search-C-dCgqIa.js → search-D84_Ki_a.js} +1 -1
- package/dist/{send-Cm2fy2zm.js → send-Cn-8_H_U.js} +1 -1
- package/dist/{shield-check-COgBYFDF.js → shield-check-BOoVWJtD.js} +1 -1
- package/dist/{smartphone-v0u_MOEV.js → smartphone-4Ej3PBw5.js} +1 -1
- package/dist/{socialIcons-O7PZCW2P.js → socialIcons-CzRJskEk.js} +47 -47
- package/dist/{sparkles-Ds0RF8Iu.js → sparkles-D3vnNe7O.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +432 -403
- package/dist/{text-align-start-DiavaIm6.js → text-align-start-Ci2h_Xly.js} +1 -1
- package/dist/{trash-DnOkfu2V.js → trash-wmi4UKvv.js} +1 -1
- package/dist/{triangle-alert-DGLAyXnh.js → triangle-alert-DJ0r2wmQ.js} +1 -1
- package/dist/{upload-BBDme2cy.js → upload-XMde-TXf.js} +1 -1
- package/dist/{useEditorCore-dcdHB_7H.js → useEditorCore-Dhit8Ygg.js} +894 -882
- package/dist/{useLogicTag-D9pvgxQR.js → useLogicTag-BaH8gey0.js} +1 -1
- package/dist/{useMergeTag-BaVFPdlq.js → useMergeTag-Cyad1yBE.js} +1 -1
- package/dist/{usePopoverPosition-DH7z3Ghm.js → usePopoverPosition-BYmd-lhR.js} +24 -11
- package/dist/{useScrollToBlock-Dj4v3rxr.js → useScrollToBlock-B4F7KCrf.js} +1 -1
- package/dist/{x-3BHV3Q6K.js → x-BWrtpVl-.js} +1 -1
- package/package.json +10 -10
- package/dist/cdn/chunks/AiChatSidebar-mKImUXi6.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-Cx3qdStQ.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DS1pUf5g.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-D31TNib3.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-0zdlKiq7.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-DPh71yOO.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-lCZU8qkg.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-BtAGZfF6.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-Ws07MXYj.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-Bu93WiS8.js.map +0 -1
- package/dist/cdn/chunks/DesignReferenceSidebar-BlSdh5B7.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-CKkv9z9g.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-CHc1yZ9v.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cw9MhjVz.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-FD_aX3H5.js.map +0 -1
- package/dist/cdn/chunks/MergeTagInput--qTYfCWk.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-CdWIGo3Q.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-w2qEZTkM.js.map +0 -1
- package/dist/cdn/chunks/RestoreVersionDialog-cnWVN3nX.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-Fzuu9pLP.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-jxQtKnVs.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DpXWf4Pi.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-B-ASmf1P.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPickBar-CEFIQ8Nd.js.map +0 -1
- package/dist/cdn/chunks/TemplateScoringPanel-d_Ppowsq.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-Dr5OJ0Gi.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CrjzVw8e.js.map +0 -1
- package/dist/cdn/chunks/TestEmailPanel-k9vdulTu.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-laILWfKh.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-0dGCYnRY.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-BsiHW9gY.js.map +0 -1
- package/dist/cdn/chunks/TplModal-D8DoPbFa.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryMenu-B3-hNu9c.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-zw1AtzGN.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-PzVQSBJE.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-CpRvfAV0.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-raBjStuv.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-raBjStuv.js.map +0 -1
- package/dist/cdn/chunks/ca-Ckgw9yd0.js.map +0 -1
- package/dist/cdn/chunks/cloud-CIT4yPp4.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-COUxbPvd.js.map +0 -1
- package/dist/cdn/chunks/de-D4dweQw8.js.map +0 -1
- package/dist/cdn/chunks/editor-modal-CKu8HhiB.js.map +0 -1
- package/dist/cdn/chunks/en-DqzAdO8F.js +0 -2
- package/dist/cdn/chunks/en-VE7R7NyL.js.map +0 -1
- package/dist/cdn/chunks/es-B9OhP8H3.js.map +0 -1
- package/dist/cdn/chunks/extensions-CafoGF65.js.map +0 -1
- package/dist/cdn/chunks/fr-wrXhIi00.js.map +0 -1
- package/dist/cdn/chunks/icons-BKkJ-5xF.js.map +0 -1
- package/dist/cdn/chunks/ja-fKnVWXHC.js.map +0 -1
- package/dist/cdn/chunks/nl-DeFatKJe.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-Bh1J8ey6.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-BvYNMn1G.js.map +0 -1
- package/dist/cdn/chunks/src-Cnc5E71L.js.map +0 -1
- package/dist/cdn/chunks/src-DveVYoWS.js.map +0 -1
- package/dist/cdn/chunks/src-L6HEdwFn.js.map +0 -1
- package/dist/cdn/chunks/tiptap-DhLuKyDc.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DZmtKwJh.js.map +0 -1
- package/dist/cdn/chunks/useLogicTag-DF7-l66G.js.map +0 -1
- package/dist/cdn/chunks/useMergeTag-DbIHw4NG.js.map +0 -1
- package/dist/cdn/chunks/usePopoverPosition-BJRvAb-h.js.map +0 -1
- package/dist/en-1tgLzB8q.js +0 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
2
|
import { B as t, E as n, F as r, H as i, I as a, N as o, Q as s, R as c, S as l, U as u, X as d, at as f, b as p, ct as m, f as h, g, h as _, lt as v, m as y, o as b, p as x, s as S, u as C, ut as w, x as T, y as E } from "./draggable-IB4x6w2O.js";
|
|
3
|
-
import { C as D, W as O, Z as k,
|
|
4
|
-
import { a as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { $ as
|
|
3
|
+
import { C as D, W as O, Z as k, ft as A, ht as j, i as ee, pt as M, r as te, vt as N, yt as P } from "./src-BR3I3gOW.js";
|
|
4
|
+
import { a as ne, h as re, i as ie, r as F, s as ae } from "./socialIcons-ZOCwCCyn.js";
|
|
5
|
+
import { _ as oe } from "./dist-BRZhN8qJ.js";
|
|
6
|
+
import { $ as se, C as I, G as ce, L as le, P as ue, c as de, d as fe, h as pe, n as me, p as he, v as ge } from "./keys-DCWeHkSF.js";
|
|
7
7
|
import { t as L } from "./useI18n-CyO_Nmca.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { t as
|
|
14
|
-
import { c as
|
|
15
|
-
import { n as
|
|
16
|
-
import { t as
|
|
8
|
+
import { o as _e } from "./usePopoverPosition-DGXjXKjM.js";
|
|
9
|
+
import { B as ve, Dt as ye, Lt as be, Nt as xe, O as Se, W as R, _ as z, at as Ce, c as we, et as Te, f as Ee, ft as De, h as Oe, it as ke, kt as Ae, lt as je, n as Me, pt as Ne, rt as Pe, s as Fe, tt as B, v as Ie } from "./icons-CQnjugjy.js";
|
|
10
|
+
import { t as Le } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
|
+
import { t as Re } from "./useAliveFlag-DAlQLbM2.js";
|
|
12
|
+
import { _ as ze, b as Be, c as Ve, g as V, h as H, m as U, p as W, r as He, v as Ue } from "./styleConstants-C_YAPdQS.js";
|
|
13
|
+
import { t as We } from "./blockTypeIcons-CdfCfqHE.js";
|
|
14
|
+
import { c as G } from "./LogicTagInsertButton-CItDS_U1.js";
|
|
15
|
+
import { n as Ge, t as K } from "./ToggleSwitch-D-8dCEbI.js";
|
|
16
|
+
import { t as q } from "./MergeTagInput-B33u3nxj.js";
|
|
17
17
|
//#region src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
18
|
-
var
|
|
18
|
+
var Ke = [
|
|
19
19
|
"aria-checked",
|
|
20
20
|
"aria-label",
|
|
21
21
|
"title",
|
|
22
22
|
"onClick"
|
|
23
|
-
],
|
|
23
|
+
], qe = { key: 1 }, J = /* @__PURE__ */ l({
|
|
24
24
|
__name: "SlidingPillSelect",
|
|
25
25
|
props: {
|
|
26
26
|
options: {},
|
|
@@ -63,12 +63,277 @@ var Re = [
|
|
|
63
63
|
key: 0,
|
|
64
64
|
size: 14,
|
|
65
65
|
"stroke-width": 2
|
|
66
|
-
})) : (o(), g("span",
|
|
66
|
+
})) : (o(), g("span", qe, w(t.label), 1))], 12, Ke))), 128))], 4));
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
68
|
+
}), Je = { class: "tpl:flex tpl:items-stretch" }, Ye = [
|
|
69
|
+
"data-testid",
|
|
70
|
+
"value",
|
|
71
|
+
"min",
|
|
72
|
+
"max"
|
|
73
|
+
], Y = /* @__PURE__ */ l({
|
|
74
|
+
__name: "NumberWithSuffix",
|
|
75
|
+
props: {
|
|
76
|
+
modelValue: {},
|
|
77
|
+
min: {},
|
|
78
|
+
max: {},
|
|
79
|
+
suffix: {},
|
|
80
|
+
testid: {}
|
|
81
|
+
},
|
|
82
|
+
emits: ["update:modelValue"],
|
|
83
|
+
setup(e, { emit: t }) {
|
|
84
|
+
let n = t;
|
|
85
|
+
function r(e) {
|
|
86
|
+
let t = e.target;
|
|
87
|
+
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
88
|
+
}
|
|
89
|
+
return (t, n) => (o(), g("div", Je, [x("input", {
|
|
90
|
+
type: "number",
|
|
91
|
+
"data-testid": e.testid,
|
|
92
|
+
class: m(f(U)),
|
|
93
|
+
value: e.modelValue,
|
|
94
|
+
min: e.min,
|
|
95
|
+
max: e.max,
|
|
96
|
+
onInput: r
|
|
97
|
+
}, null, 42, Ye), x("span", { class: m(f(H)) }, w(e.suffix), 3)]));
|
|
98
|
+
}
|
|
99
|
+
}), Xe = [
|
|
100
|
+
"aria-pressed",
|
|
101
|
+
"aria-label",
|
|
102
|
+
"title",
|
|
103
|
+
"data-testid"
|
|
104
|
+
], Ze = /* @__PURE__ */ l({
|
|
105
|
+
__name: "LinkToggle",
|
|
106
|
+
props: {
|
|
107
|
+
linked: { type: Boolean },
|
|
108
|
+
linkLabel: {},
|
|
109
|
+
unlinkLabel: {},
|
|
110
|
+
testid: {}
|
|
111
|
+
},
|
|
112
|
+
emits: ["toggle"],
|
|
113
|
+
setup(e, { emit: t }) {
|
|
114
|
+
let n = t;
|
|
115
|
+
return (t, r) => (o(), g("button", {
|
|
116
|
+
type: "button",
|
|
117
|
+
class: m(["tpl:flex tpl:h-7 tpl:w-7 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)]", e.linked ? "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)]"]),
|
|
118
|
+
"aria-pressed": e.linked ? "true" : "false",
|
|
119
|
+
"aria-label": e.linked ? e.unlinkLabel : e.linkLabel,
|
|
120
|
+
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
121
|
+
"data-testid": e.testid,
|
|
122
|
+
onClick: r[0] ||= (e) => n("toggle")
|
|
123
|
+
}, [e.linked ? (o(), y(f(je), {
|
|
124
|
+
key: 0,
|
|
125
|
+
size: 14,
|
|
126
|
+
"stroke-width": 2
|
|
127
|
+
})) : (o(), y(f(we), {
|
|
128
|
+
key: 1,
|
|
129
|
+
size: 14,
|
|
130
|
+
"stroke-width": 2
|
|
131
|
+
}))], 10, Xe));
|
|
132
|
+
}
|
|
133
|
+
}), Qe = { class: "tpl:mb-3.5" }, $e = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, et = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, tt = {
|
|
134
|
+
key: 0,
|
|
135
|
+
class: "tpl:mb-3.5"
|
|
136
|
+
}, nt = { class: "tpl:mb-3.5" }, rt = { class: "tpl:mb-3.5" }, it = /* @__PURE__ */ l({
|
|
137
|
+
__name: "BorderControl",
|
|
138
|
+
props: {
|
|
139
|
+
modelValue: {},
|
|
140
|
+
testidPrefix: {}
|
|
141
|
+
},
|
|
142
|
+
emits: ["update:modelValue"],
|
|
143
|
+
setup(e, { emit: n }) {
|
|
144
|
+
let r = e, i = n, { t: a } = L(), c = {
|
|
145
|
+
width: 0,
|
|
146
|
+
style: "solid",
|
|
147
|
+
color: "#000000"
|
|
148
|
+
};
|
|
149
|
+
function l(e, t) {
|
|
150
|
+
return e.width === t.width && e.style === t.style && e.color === t.color;
|
|
151
|
+
}
|
|
152
|
+
let u = h(() => {
|
|
153
|
+
let e = r.modelValue;
|
|
154
|
+
return !e || M.every((t) => l(e[t], e.top));
|
|
155
|
+
}), d = s(u.value);
|
|
156
|
+
t(u, (e) => {
|
|
157
|
+
!e && d.value && (d.value = !1);
|
|
158
|
+
});
|
|
159
|
+
let v = s("top"), y = h(() => r.modelValue?.[d.value ? "top" : v.value] ?? c), b = (e) => !!e && e.width > 0;
|
|
160
|
+
function S(e) {
|
|
161
|
+
if (d.value) {
|
|
162
|
+
i("update:modelValue", b(e) ? P(e) : void 0);
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
let t = {
|
|
166
|
+
...r.modelValue ?? P(c),
|
|
167
|
+
[v.value]: e
|
|
168
|
+
}, n = M.some((e) => b(t[e]));
|
|
169
|
+
i("update:modelValue", n ? t : void 0);
|
|
170
|
+
}
|
|
171
|
+
function T(e) {
|
|
172
|
+
S({
|
|
173
|
+
...y.value,
|
|
174
|
+
width: e > 0 ? e : 0
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
function E(e) {
|
|
178
|
+
S({
|
|
179
|
+
...y.value,
|
|
180
|
+
...e
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
function D() {
|
|
184
|
+
if (d.value) {
|
|
185
|
+
d.value = !1;
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
d.value = !0;
|
|
189
|
+
let e = r.modelValue;
|
|
190
|
+
if (!e) return;
|
|
191
|
+
let t = b(e[v.value]) ? e[v.value] : M.map((t) => e[t]).find(b);
|
|
192
|
+
i("update:modelValue", t ? P(t) : void 0);
|
|
193
|
+
}
|
|
194
|
+
let O = h(() => M.map((e) => ({
|
|
195
|
+
value: e,
|
|
196
|
+
label: a.spacingControl[e]
|
|
197
|
+
})));
|
|
198
|
+
return (t, n) => (o(), g("div", Qe, [
|
|
199
|
+
x("div", $e, [x("span", et, w(f(a).blockSettings.border), 1), p(Ze, {
|
|
200
|
+
linked: d.value,
|
|
201
|
+
"link-label": f(a).blockSettings.linkSides,
|
|
202
|
+
"unlink-label": f(a).blockSettings.unlinkSides,
|
|
203
|
+
testid: `${e.testidPrefix}-border-link`,
|
|
204
|
+
onToggle: D
|
|
205
|
+
}, null, 8, [
|
|
206
|
+
"linked",
|
|
207
|
+
"link-label",
|
|
208
|
+
"unlink-label",
|
|
209
|
+
"testid"
|
|
210
|
+
])]),
|
|
211
|
+
d.value ? _("", !0) : (o(), g("div", tt, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderSide), 3), p(J, {
|
|
212
|
+
options: O.value,
|
|
213
|
+
"model-value": v.value,
|
|
214
|
+
"onUpdate:modelValue": n[0] ||= (e) => v.value = e
|
|
215
|
+
}, null, 8, ["options", "model-value"])])),
|
|
216
|
+
x("div", nt, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderWidth), 3), p(Y, {
|
|
217
|
+
"model-value": y.value.width,
|
|
218
|
+
min: 0,
|
|
219
|
+
suffix: "px",
|
|
220
|
+
testid: `${e.testidPrefix}-border-width-input`,
|
|
221
|
+
"onUpdate:modelValue": T
|
|
222
|
+
}, null, 8, ["model-value", "testid"])]),
|
|
223
|
+
y.value.width > 0 ? (o(), g(C, { key: 1 }, [x("div", rt, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderStyle), 3), p(J, {
|
|
224
|
+
options: [
|
|
225
|
+
{
|
|
226
|
+
value: "solid",
|
|
227
|
+
label: f(a).divider.solid
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
value: "dashed",
|
|
231
|
+
label: f(a).divider.dashed
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
value: "dotted",
|
|
235
|
+
label: f(a).divider.dotted
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"model-value": y.value.style,
|
|
239
|
+
"onUpdate:modelValue": n[1] ||= (e) => E({ style: e })
|
|
240
|
+
}, null, 8, ["options", "model-value"])]), x("div", null, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderColor), 3), p(G, {
|
|
241
|
+
"model-value": y.value.color,
|
|
242
|
+
"onUpdate:modelValue": n[2] ||= (e) => E({ color: e })
|
|
243
|
+
}, null, 8, ["model-value"])])], 64)) : _("", !0)
|
|
244
|
+
]));
|
|
245
|
+
}
|
|
246
|
+
}), at = { class: "tpl:mb-3.5" }, ot = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, st = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ct = {
|
|
247
|
+
key: 1,
|
|
248
|
+
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
249
|
+
}, lt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ut = /* @__PURE__ */ l({
|
|
250
|
+
__name: "RadiusControl",
|
|
251
|
+
props: {
|
|
252
|
+
modelValue: {},
|
|
253
|
+
label: {},
|
|
254
|
+
testidPrefix: {},
|
|
255
|
+
max: {}
|
|
256
|
+
},
|
|
257
|
+
emits: ["update:modelValue"],
|
|
258
|
+
setup(e, { emit: n }) {
|
|
259
|
+
let i = e, a = n, { t: c } = L(), l = {
|
|
260
|
+
topLeft: "cornerTopLeft",
|
|
261
|
+
topRight: "cornerTopRight",
|
|
262
|
+
bottomRight: "cornerBottomRight",
|
|
263
|
+
bottomLeft: "cornerBottomLeft"
|
|
264
|
+
}, u = [
|
|
265
|
+
"topLeft",
|
|
266
|
+
"topRight",
|
|
267
|
+
"bottomLeft",
|
|
268
|
+
"bottomRight"
|
|
269
|
+
], d = h(() => {
|
|
270
|
+
let e = i.modelValue ?? 0;
|
|
271
|
+
return typeof e == "number" ? {
|
|
272
|
+
topLeft: e,
|
|
273
|
+
topRight: e,
|
|
274
|
+
bottomRight: e,
|
|
275
|
+
bottomLeft: e
|
|
276
|
+
} : e;
|
|
277
|
+
}), m = h(() => A.every((e) => d.value[e] === d.value.topLeft)), _ = s(m.value);
|
|
278
|
+
t(m, (e) => {
|
|
279
|
+
!e && _.value && (_.value = !1);
|
|
280
|
+
});
|
|
281
|
+
function v(e) {
|
|
282
|
+
return Number.isFinite(e) && e >= 0;
|
|
283
|
+
}
|
|
284
|
+
function b(e) {
|
|
285
|
+
v(e) && a("update:modelValue", e);
|
|
286
|
+
}
|
|
287
|
+
function S(e, t) {
|
|
288
|
+
v(t) && a("update:modelValue", {
|
|
289
|
+
...d.value,
|
|
290
|
+
[e]: t
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
function T() {
|
|
294
|
+
_.value = !_.value, _.value && a("update:modelValue", d.value.topLeft);
|
|
295
|
+
}
|
|
296
|
+
return (t, n) => (o(), g("div", at, [x("div", ot, [x("span", st, w(e.label), 1), p(Ze, {
|
|
297
|
+
linked: _.value,
|
|
298
|
+
"link-label": f(c).blockSettings.linkCorners,
|
|
299
|
+
"unlink-label": f(c).blockSettings.unlinkCorners,
|
|
300
|
+
testid: `${e.testidPrefix}-border-radius-link`,
|
|
301
|
+
onToggle: T
|
|
302
|
+
}, null, 8, [
|
|
303
|
+
"linked",
|
|
304
|
+
"link-label",
|
|
305
|
+
"unlink-label",
|
|
306
|
+
"testid"
|
|
307
|
+
])]), _.value ? (o(), y(Y, {
|
|
308
|
+
key: 0,
|
|
309
|
+
"model-value": d.value.topLeft,
|
|
310
|
+
min: 0,
|
|
311
|
+
max: e.max,
|
|
312
|
+
suffix: "px",
|
|
313
|
+
testid: `${e.testidPrefix}-border-radius-input`,
|
|
314
|
+
"onUpdate:modelValue": b
|
|
315
|
+
}, null, 8, [
|
|
316
|
+
"model-value",
|
|
317
|
+
"max",
|
|
318
|
+
"testid"
|
|
319
|
+
])) : (o(), g("div", ct, [(o(), g(C, null, r(u, (t) => x("div", { key: t }, [x("label", lt, w(f(c).blockSettings[l[t]]), 1), p(Y, {
|
|
320
|
+
"model-value": d.value[t],
|
|
321
|
+
min: 0,
|
|
322
|
+
max: e.max,
|
|
323
|
+
suffix: "px",
|
|
324
|
+
testid: `${e.testidPrefix}-border-radius-${t}-input`,
|
|
325
|
+
"onUpdate:modelValue": (e) => S(t, e)
|
|
326
|
+
}, null, 8, [
|
|
327
|
+
"model-value",
|
|
328
|
+
"max",
|
|
329
|
+
"testid",
|
|
330
|
+
"onUpdate:modelValue"
|
|
331
|
+
])])), 64))]))]));
|
|
332
|
+
}
|
|
333
|
+
}), dt = { class: "tpl:mb-3.5" }, ft = ["value"], pt = { value: "" }, mt = ["value"], ht = { class: "tpl:mb-3.5" }, gt = { class: "tpl:mb-3.5" }, _t = { class: "tpl:mb-3.5" }, vt = { class: "tpl:mb-3.5" }, yt = { class: "tpl:mb-3.5" }, bt = { class: "tpl:flex tpl:items-stretch" }, xt = ["value"], St = { class: "tpl:mb-3.5" }, Ct = ["value"], wt = { value: "auto" }, Tt = { value: "full" }, Et = { value: "custom" }, Dt = {
|
|
69
334
|
key: 0,
|
|
70
335
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
71
|
-
},
|
|
336
|
+
}, Ot = ["value"], kt = { class: "tpl:mb-3.5" }, At = 200, jt = /* @__PURE__ */ l({
|
|
72
337
|
__name: "ButtonToolbar",
|
|
73
338
|
props: {
|
|
74
339
|
block: {},
|
|
@@ -86,7 +351,7 @@ var Re = [
|
|
|
86
351
|
return;
|
|
87
352
|
}
|
|
88
353
|
if (e === "custom") {
|
|
89
|
-
c("width", typeof n.block.width == "number" ? n.block.width :
|
|
354
|
+
c("width", typeof n.block.width == "number" ? n.block.width : At);
|
|
90
355
|
return;
|
|
91
356
|
}
|
|
92
357
|
c("width", void 0);
|
|
@@ -96,28 +361,28 @@ var Re = [
|
|
|
96
361
|
!Number.isFinite(t) || t <= 0 || c("width", t);
|
|
97
362
|
}
|
|
98
363
|
return (t, n) => (o(), g(C, null, [
|
|
99
|
-
x("div",
|
|
100
|
-
class: m(f(
|
|
364
|
+
x("div", dt, [x("label", { class: m(f(V)) }, w(f(a).button.fontFamily), 3), x("select", {
|
|
365
|
+
class: m(f(W)),
|
|
101
366
|
value: e.block.fontFamily || "",
|
|
102
367
|
onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
103
|
-
}, [x("option",
|
|
368
|
+
}, [x("option", pt, w(f(a).button.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
|
|
104
369
|
key: e.value,
|
|
105
370
|
value: e.value
|
|
106
|
-
}, w(e.label), 9,
|
|
107
|
-
x("div",
|
|
371
|
+
}, w(e.label), 9, mt))), 128))], 42, ft)]),
|
|
372
|
+
x("div", ht, [x("label", { class: m(f(V)) }, w(f(a).button.text), 3), p(q, {
|
|
108
373
|
"model-value": e.block.text,
|
|
109
374
|
type: "text",
|
|
110
375
|
"onUpdate:modelValue": n[1] ||= (e) => c("text", e)
|
|
111
376
|
}, null, 8, ["model-value"])]),
|
|
112
|
-
x("div",
|
|
113
|
-
x("label", { class: m(f(
|
|
114
|
-
p(
|
|
377
|
+
x("div", gt, [
|
|
378
|
+
x("label", { class: m(f(V)) }, w(f(a).button.url), 3),
|
|
379
|
+
p(q, {
|
|
115
380
|
"model-value": e.block.url,
|
|
116
381
|
type: "url",
|
|
117
382
|
placeholder: f(a).button.urlPlaceholder,
|
|
118
383
|
"onUpdate:modelValue": n[2] ||= (e) => c("url", e)
|
|
119
384
|
}, null, 8, ["model-value", "placeholder"]),
|
|
120
|
-
e.block.url ? (o(), y(
|
|
385
|
+
e.block.url ? (o(), y(K, {
|
|
121
386
|
key: 0,
|
|
122
387
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
123
388
|
"model-value": e.block.openInNewTab ?? !1,
|
|
@@ -125,49 +390,55 @@ var Re = [
|
|
|
125
390
|
"onUpdate:modelValue": n[3] ||= (e) => c("openInNewTab", e)
|
|
126
391
|
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
127
392
|
]),
|
|
128
|
-
x("div",
|
|
393
|
+
x("div", _t, [x("label", { class: m(f(V)) }, w(f(a).button.background), 3), p(G, {
|
|
129
394
|
"model-value": e.block.backgroundColor,
|
|
395
|
+
"allow-transparent": "",
|
|
130
396
|
"onUpdate:modelValue": n[4] ||= (e) => c("backgroundColor", e)
|
|
131
397
|
}, null, 8, ["model-value"])]),
|
|
132
|
-
x("div",
|
|
398
|
+
x("div", vt, [x("label", { class: m(f(V)) }, w(f(a).button.textColor), 3), p(G, {
|
|
133
399
|
"model-value": e.block.textColor,
|
|
134
400
|
"onUpdate:modelValue": n[5] ||= (e) => c("textColor", e)
|
|
135
401
|
}, null, 8, ["model-value"])]),
|
|
136
|
-
|
|
402
|
+
p(it, {
|
|
403
|
+
"model-value": e.block.border,
|
|
404
|
+
"testid-prefix": "button",
|
|
405
|
+
"onUpdate:modelValue": n[6] ||= (e) => c("border", e)
|
|
406
|
+
}, null, 8, ["model-value"]),
|
|
407
|
+
p(ut, {
|
|
408
|
+
"model-value": e.block.borderRadius,
|
|
409
|
+
label: f(a).button.borderRadius,
|
|
410
|
+
max: 50,
|
|
411
|
+
"testid-prefix": "button",
|
|
412
|
+
"onUpdate:modelValue": n[7] ||= (e) => c("borderRadius", e)
|
|
413
|
+
}, null, 8, ["model-value", "label"]),
|
|
414
|
+
x("div", yt, [x("label", { class: m(f(V)) }, w(f(a).button.fontSize), 3), x("div", bt, [x("input", {
|
|
137
415
|
type: "number",
|
|
138
|
-
class: m(f(
|
|
139
|
-
value: e.block.borderRadius,
|
|
140
|
-
min: "0",
|
|
141
|
-
max: "50",
|
|
142
|
-
onInput: n[6] ||= (e) => c("borderRadius", Number(e.target.value))
|
|
143
|
-
}, null, 42, Ze), x("span", { class: m(f(W)) }, "px", 2)])]), x("div", Qe, [x("label", { class: m(f(U)) }, w(f(a).button.fontSize), 3), x("div", $e, [x("input", {
|
|
144
|
-
type: "number",
|
|
145
|
-
class: m(f(G)),
|
|
416
|
+
class: m(f(U)),
|
|
146
417
|
value: e.block.fontSize,
|
|
147
418
|
min: "10",
|
|
148
419
|
max: "36",
|
|
149
|
-
onInput: n[
|
|
150
|
-
}, null, 42,
|
|
151
|
-
x("div",
|
|
152
|
-
x("label", { class: m(f(
|
|
420
|
+
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
421
|
+
}, null, 42, xt), x("span", { class: m(f(H)) }, "px", 2)])]),
|
|
422
|
+
x("div", St, [
|
|
423
|
+
x("label", { class: m(f(V)) }, w(f(a).button.width), 3),
|
|
153
424
|
x("select", {
|
|
154
|
-
class: m(f(
|
|
425
|
+
class: m(f(W)),
|
|
155
426
|
value: s.value,
|
|
156
|
-
onChange: n[
|
|
427
|
+
onChange: n[9] ||= (e) => l(e.target.value)
|
|
157
428
|
}, [
|
|
158
|
-
x("option",
|
|
159
|
-
x("option",
|
|
160
|
-
x("option",
|
|
161
|
-
], 42,
|
|
162
|
-
s.value === "custom" ? (o(), g("div",
|
|
429
|
+
x("option", wt, w(f(a).button.widthAuto), 1),
|
|
430
|
+
x("option", Tt, w(f(a).button.fullWidth), 1),
|
|
431
|
+
x("option", Et, w(f(a).button.widthCustom), 1)
|
|
432
|
+
], 42, Ct),
|
|
433
|
+
s.value === "custom" ? (o(), g("div", Dt, [x("input", {
|
|
163
434
|
type: "number",
|
|
164
|
-
class: m(f(
|
|
165
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
435
|
+
class: m(f(U)),
|
|
436
|
+
value: typeof e.block.width == "number" ? e.block.width : At,
|
|
166
437
|
min: "20",
|
|
167
|
-
onInput: n[
|
|
168
|
-
}, null, 42,
|
|
438
|
+
onInput: n[10] ||= (e) => u(e.target.value)
|
|
439
|
+
}, null, 42, Ot), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
|
|
169
440
|
]),
|
|
170
|
-
x("div",
|
|
441
|
+
x("div", kt, [x("label", { class: m(f(V)) }, w(f(a).title.align), 3), p(J, {
|
|
171
442
|
options: [
|
|
172
443
|
{
|
|
173
444
|
value: "left",
|
|
@@ -183,11 +454,11 @@ var Re = [
|
|
|
183
454
|
}
|
|
184
455
|
],
|
|
185
456
|
"model-value": e.block.align ?? "center",
|
|
186
|
-
"onUpdate:modelValue": n[
|
|
457
|
+
"onUpdate:modelValue": n[11] ||= (e) => c("align", e)
|
|
187
458
|
}, null, 8, ["options", "model-value"])])
|
|
188
459
|
], 64));
|
|
189
460
|
}
|
|
190
|
-
}),
|
|
461
|
+
}), Mt = { class: "spacing-control" }, Nt = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Pt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Ft = { class: "tpl:flex tpl:items-center" }, It = ["aria-label"], Lt = ["value", "aria-label"], Rt = ["aria-label"], zt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Bt = { class: "tpl:flex tpl:items-center" }, Vt = ["aria-label"], Ht = ["value", "aria-label"], Ut = ["aria-label"], Wt = ["aria-label", "title"], Gt = { class: "tpl:flex tpl:items-center" }, Kt = ["aria-label"], qt = ["value", "aria-label"], Jt = ["aria-label"], Yt = { class: "tpl:flex tpl:items-center" }, Xt = ["aria-label"], Zt = ["value", "aria-label"], Qt = ["aria-label"], X = "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)]", Z = "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)]", $t = /*#__PURE__*/ Le(/* @__PURE__ */ l({
|
|
191
462
|
__name: "SpacingControl",
|
|
192
463
|
props: {
|
|
193
464
|
modelValue: {},
|
|
@@ -234,130 +505,130 @@ var Re = [
|
|
|
234
505
|
});
|
|
235
506
|
}
|
|
236
507
|
}
|
|
237
|
-
return (t, n) => (o(), g("div",
|
|
238
|
-
x("div",
|
|
508
|
+
return (t, n) => (o(), g("div", Mt, [x("label", Nt, w(e.label), 1), x("div", Pt, [
|
|
509
|
+
x("div", Ft, [
|
|
239
510
|
x("button", {
|
|
240
511
|
"aria-label": f(a).spacingControl.decreaseTop,
|
|
241
|
-
class: m([
|
|
512
|
+
class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
242
513
|
onClick: n[0] ||= (e) => u("top", -1)
|
|
243
|
-
}, [p(f(
|
|
514
|
+
}, [p(f(B), {
|
|
244
515
|
size: 12,
|
|
245
516
|
"stroke-width": 2
|
|
246
|
-
})], 10,
|
|
517
|
+
})], 10, It),
|
|
247
518
|
x("input", {
|
|
248
519
|
type: "number",
|
|
249
|
-
class: m(
|
|
520
|
+
class: m(Z),
|
|
250
521
|
value: e.modelValue.top,
|
|
251
522
|
"aria-label": f(a).spacingControl.top,
|
|
252
523
|
min: "0",
|
|
253
524
|
onInput: n[1] ||= (e) => d("top", Number(e.target.value))
|
|
254
|
-
}, null, 40,
|
|
525
|
+
}, null, 40, Lt),
|
|
255
526
|
x("button", {
|
|
256
527
|
"aria-label": f(a).spacingControl.increaseTop,
|
|
257
|
-
class: m([
|
|
528
|
+
class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
258
529
|
onClick: n[2] ||= (e) => u("top", 1)
|
|
259
530
|
}, [p(f(R), {
|
|
260
531
|
size: 12,
|
|
261
532
|
"stroke-width": 2
|
|
262
|
-
})], 10,
|
|
533
|
+
})], 10, Rt)
|
|
263
534
|
]),
|
|
264
|
-
x("div",
|
|
265
|
-
x("div",
|
|
535
|
+
x("div", zt, [
|
|
536
|
+
x("div", Bt, [
|
|
266
537
|
x("button", {
|
|
267
538
|
"aria-label": f(a).spacingControl.decreaseLeft,
|
|
268
|
-
class: m([
|
|
539
|
+
class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
269
540
|
onClick: n[3] ||= (e) => u("left", -1)
|
|
270
|
-
}, [p(f(
|
|
541
|
+
}, [p(f(B), {
|
|
271
542
|
size: 12,
|
|
272
543
|
"stroke-width": 2
|
|
273
|
-
})], 10,
|
|
544
|
+
})], 10, Vt),
|
|
274
545
|
x("input", {
|
|
275
546
|
type: "number",
|
|
276
|
-
class: m(
|
|
547
|
+
class: m(Z),
|
|
277
548
|
value: e.modelValue.left,
|
|
278
549
|
"aria-label": f(a).spacingControl.left,
|
|
279
550
|
min: "0",
|
|
280
551
|
onInput: n[4] ||= (e) => d("left", Number(e.target.value))
|
|
281
|
-
}, null, 40,
|
|
552
|
+
}, null, 40, Ht),
|
|
282
553
|
x("button", {
|
|
283
554
|
"aria-label": f(a).spacingControl.increaseLeft,
|
|
284
|
-
class: m([
|
|
555
|
+
class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
285
556
|
onClick: n[5] ||= (e) => u("left", 1)
|
|
286
557
|
}, [p(f(R), {
|
|
287
558
|
size: 12,
|
|
288
559
|
"stroke-width": 2
|
|
289
|
-
})], 10,
|
|
560
|
+
})], 10, Ut)
|
|
290
561
|
]),
|
|
291
562
|
x("button", {
|
|
292
563
|
class: m(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", l.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
293
564
|
"aria-label": l.value ? f(a).spacingControl.unlock : f(a).spacingControl.lockAll,
|
|
294
565
|
title: l.value ? f(a).spacingControl.unlock : f(a).spacingControl.lockAll,
|
|
295
566
|
onClick: _
|
|
296
|
-
}, [l.value ? (o(), y(f(
|
|
567
|
+
}, [l.value ? (o(), y(f(Pe), {
|
|
297
568
|
key: 0,
|
|
298
569
|
size: 14,
|
|
299
570
|
"stroke-width": 2
|
|
300
|
-
})) : (o(), y(f(
|
|
571
|
+
})) : (o(), y(f(ke), {
|
|
301
572
|
key: 1,
|
|
302
573
|
size: 14,
|
|
303
574
|
"stroke-width": 2
|
|
304
|
-
}))], 10,
|
|
305
|
-
x("div",
|
|
575
|
+
}))], 10, Wt),
|
|
576
|
+
x("div", Gt, [
|
|
306
577
|
x("button", {
|
|
307
578
|
"aria-label": f(a).spacingControl.decreaseRight,
|
|
308
|
-
class: m([
|
|
579
|
+
class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
309
580
|
onClick: n[6] ||= (e) => u("right", -1)
|
|
310
|
-
}, [p(f(
|
|
581
|
+
}, [p(f(B), {
|
|
311
582
|
size: 12,
|
|
312
583
|
"stroke-width": 2
|
|
313
|
-
})], 10,
|
|
584
|
+
})], 10, Kt),
|
|
314
585
|
x("input", {
|
|
315
586
|
type: "number",
|
|
316
|
-
class: m(
|
|
587
|
+
class: m(Z),
|
|
317
588
|
value: e.modelValue.right,
|
|
318
589
|
"aria-label": f(a).spacingControl.right,
|
|
319
590
|
min: "0",
|
|
320
591
|
onInput: n[7] ||= (e) => d("right", Number(e.target.value))
|
|
321
|
-
}, null, 40,
|
|
592
|
+
}, null, 40, qt),
|
|
322
593
|
x("button", {
|
|
323
594
|
"aria-label": f(a).spacingControl.increaseRight,
|
|
324
|
-
class: m([
|
|
595
|
+
class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
325
596
|
onClick: n[8] ||= (e) => u("right", 1)
|
|
326
597
|
}, [p(f(R), {
|
|
327
598
|
size: 12,
|
|
328
599
|
"stroke-width": 2
|
|
329
|
-
})], 10,
|
|
600
|
+
})], 10, Jt)
|
|
330
601
|
])
|
|
331
602
|
]),
|
|
332
|
-
x("div",
|
|
603
|
+
x("div", Yt, [
|
|
333
604
|
x("button", {
|
|
334
605
|
"aria-label": f(a).spacingControl.decreaseBottom,
|
|
335
|
-
class: m([
|
|
606
|
+
class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
336
607
|
onClick: n[9] ||= (e) => u("bottom", -1)
|
|
337
|
-
}, [p(f(
|
|
608
|
+
}, [p(f(B), {
|
|
338
609
|
size: 12,
|
|
339
610
|
"stroke-width": 2
|
|
340
|
-
})], 10,
|
|
611
|
+
})], 10, Xt),
|
|
341
612
|
x("input", {
|
|
342
613
|
type: "number",
|
|
343
|
-
class: m(
|
|
614
|
+
class: m(Z),
|
|
344
615
|
value: e.modelValue.bottom,
|
|
345
616
|
"aria-label": f(a).spacingControl.bottom,
|
|
346
617
|
min: "0",
|
|
347
618
|
onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
348
|
-
}, null, 40,
|
|
619
|
+
}, null, 40, Zt),
|
|
349
620
|
x("button", {
|
|
350
621
|
"aria-label": f(a).spacingControl.increaseBottom,
|
|
351
|
-
class: m([
|
|
622
|
+
class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
352
623
|
onClick: n[11] ||= (e) => u("bottom", 1)
|
|
353
624
|
}, [p(f(R), {
|
|
354
625
|
size: 12,
|
|
355
626
|
"stroke-width": 2
|
|
356
|
-
})], 10,
|
|
627
|
+
})], 10, Qt)
|
|
357
628
|
])
|
|
358
629
|
])]));
|
|
359
630
|
}
|
|
360
|
-
}), [["__scopeId", "data-v-69591c1e"]]),
|
|
631
|
+
}), [["__scopeId", "data-v-69591c1e"]]), en = ["data-testid"], tn = { class: "tpl:mt-3" }, nn = /* @__PURE__ */ l({
|
|
361
632
|
__name: "CollapsibleSection",
|
|
362
633
|
props: {
|
|
363
634
|
title: {},
|
|
@@ -372,25 +643,25 @@ var Re = [
|
|
|
372
643
|
"data-testid": e.headerTestId,
|
|
373
644
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
374
645
|
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
375
|
-
}, [p(f(
|
|
646
|
+
}, [p(f(be), {
|
|
376
647
|
class: m(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
377
648
|
size: 12,
|
|
378
649
|
"stroke-width": 2
|
|
379
|
-
}, null, 8, ["class"]), x("span", null, w(e.title), 1)], 8,
|
|
650
|
+
}, null, 8, ["class"]), x("span", null, w(e.title), 1)], 8, en), u(x("div", tn, [a(t.$slots, "default")], 512), [[S, e.open]])], 2));
|
|
380
651
|
}
|
|
381
|
-
}),
|
|
652
|
+
}), rn = { class: "tpl:space-y-2" }, an = { class: "tpl:flex tpl:items-center tpl:gap-2" }, on = { class: "tpl:space-y-2" }, sn = ["value"], cn = { value: "" }, ln = ["label"], un = ["value"], dn = ["value"], fn = {
|
|
382
653
|
key: 0,
|
|
383
654
|
value: "__custom__"
|
|
384
|
-
},
|
|
655
|
+
}, pn = {
|
|
385
656
|
key: 0,
|
|
386
657
|
class: "tpl:space-y-2"
|
|
387
|
-
},
|
|
658
|
+
}, mn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, hn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, gn = { class: "tpl:flex tpl:justify-end" }, _n = ["disabled"], vn = {
|
|
388
659
|
key: 0,
|
|
389
660
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
390
|
-
},
|
|
661
|
+
}, yn = { class: "tpl:space-y-1" }, bn = { 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)]" }, xn = {
|
|
391
662
|
key: 0,
|
|
392
663
|
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)]"
|
|
393
|
-
},
|
|
664
|
+
}, Sn = /* @__PURE__ */ l({
|
|
394
665
|
__name: "CommonBlockSettings",
|
|
395
666
|
props: {
|
|
396
667
|
block: {},
|
|
@@ -398,23 +669,23 @@ var Re = [
|
|
|
398
669
|
},
|
|
399
670
|
emits: ["update"],
|
|
400
671
|
setup(e, { emit: a }) {
|
|
401
|
-
let l = e, v = a, { t: S } = L(), T = n(
|
|
672
|
+
let l = e, v = a, { t: S } = L(), T = n(pe, []), D = n(me, !1), O = d(/* @__PURE__ */ new Set()), k = s(!1), A = s(""), j = s(""), ee = [{
|
|
402
673
|
key: "desktop",
|
|
403
|
-
icon:
|
|
674
|
+
icon: Te,
|
|
404
675
|
labelKey: "showOnDesktop"
|
|
405
676
|
}, {
|
|
406
677
|
key: "mobile",
|
|
407
|
-
icon:
|
|
678
|
+
icon: Se,
|
|
408
679
|
labelKey: "showOnMobile"
|
|
409
680
|
}];
|
|
410
681
|
function M(e) {
|
|
411
682
|
O.has(e) ? O.delete(e) : O.add(e);
|
|
412
683
|
}
|
|
413
684
|
let te = h(() => T.length > 0 || D), N = h(() => l.block.displayCondition ? !T.some((e) => e.label === l.block.displayCondition?.label) : !1);
|
|
414
|
-
function
|
|
685
|
+
function P() {
|
|
415
686
|
k.value = !0, N.value && l.block.displayCondition ? (A.value = l.block.displayCondition.before, j.value = l.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
|
|
416
687
|
}
|
|
417
|
-
function
|
|
688
|
+
function ne() {
|
|
418
689
|
A.value.trim() && (v("update", { displayCondition: {
|
|
419
690
|
label: S.blockSettings.customCondition,
|
|
420
691
|
before: A.value.trim(),
|
|
@@ -428,7 +699,7 @@ var Re = [
|
|
|
428
699
|
}
|
|
429
700
|
N.value && (A.value = e.before, j.value = e.after ?? "");
|
|
430
701
|
}, { immediate: !0 });
|
|
431
|
-
let
|
|
702
|
+
let re = h(() => {
|
|
432
703
|
let e = {};
|
|
433
704
|
for (let t of T) {
|
|
434
705
|
let n = t.group ?? "";
|
|
@@ -436,33 +707,33 @@ var Re = [
|
|
|
436
707
|
}
|
|
437
708
|
return e;
|
|
438
709
|
});
|
|
439
|
-
function
|
|
710
|
+
function ie(e, t) {
|
|
440
711
|
v("update", { styles: {
|
|
441
712
|
...l.block.styles,
|
|
442
713
|
[e]: t
|
|
443
714
|
} });
|
|
444
715
|
}
|
|
445
|
-
function
|
|
716
|
+
function F(e) {
|
|
446
717
|
return l.block.visibility?.[e] !== !1;
|
|
447
718
|
}
|
|
448
|
-
function
|
|
719
|
+
function ae(e) {
|
|
449
720
|
let t = {
|
|
450
|
-
desktop:
|
|
451
|
-
mobile:
|
|
721
|
+
desktop: F("desktop"),
|
|
722
|
+
mobile: F("mobile")
|
|
452
723
|
};
|
|
453
724
|
t[e] = !t[e], v("update", { visibility: t });
|
|
454
725
|
}
|
|
455
726
|
return (t, n) => (o(), g("div", { class: m(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
456
|
-
p(
|
|
727
|
+
p(nn, {
|
|
457
728
|
title: f(S).blockSettings.spacing,
|
|
458
729
|
open: O.has("spacing"),
|
|
459
730
|
"no-border": e.isFirstSection,
|
|
460
731
|
onToggle: n[1] ||= (e) => M("spacing")
|
|
461
732
|
}, {
|
|
462
|
-
default: i(() => [p(
|
|
733
|
+
default: i(() => [p($t, {
|
|
463
734
|
label: f(S).blockSettings.padding,
|
|
464
735
|
"model-value": e.block.styles.padding,
|
|
465
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
736
|
+
"onUpdate:modelValue": n[0] ||= (e) => ie("padding", e)
|
|
466
737
|
}, null, 8, ["label", "model-value"])]),
|
|
467
738
|
_: 1
|
|
468
739
|
}, 8, [
|
|
@@ -470,30 +741,31 @@ var Re = [
|
|
|
470
741
|
"open",
|
|
471
742
|
"no-border"
|
|
472
743
|
]),
|
|
473
|
-
p(
|
|
744
|
+
p(nn, {
|
|
474
745
|
title: f(S).blockSettings.background,
|
|
475
746
|
open: O.has("bg"),
|
|
476
747
|
onToggle: n[3] ||= (e) => M("bg")
|
|
477
748
|
}, {
|
|
478
|
-
default: i(() => [x("label", { class: m(f(
|
|
749
|
+
default: i(() => [x("label", { class: m(f(V)) }, w(f(S).blockSettings.color), 3), p(G, {
|
|
479
750
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
480
|
-
"
|
|
751
|
+
"allow-transparent": "",
|
|
752
|
+
"onUpdate:modelValue": n[2] ||= (e) => ie("backgroundColor", e)
|
|
481
753
|
}, null, 8, ["model-value"])]),
|
|
482
754
|
_: 1
|
|
483
755
|
}, 8, ["title", "open"]),
|
|
484
|
-
p(
|
|
756
|
+
p(nn, {
|
|
485
757
|
title: f(S).blockSettings.display,
|
|
486
758
|
open: O.has("display"),
|
|
487
759
|
onToggle: n[4] ||= (e) => M("display")
|
|
488
760
|
}, {
|
|
489
|
-
default: i(() => [x("div",
|
|
761
|
+
default: i(() => [x("div", rn, [(o(), g(C, null, r(ee, (e) => p(K, {
|
|
490
762
|
key: e.key,
|
|
491
763
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
492
|
-
"model-value":
|
|
764
|
+
"model-value": F(e.key),
|
|
493
765
|
label: f(S).blockSettings[e.labelKey],
|
|
494
|
-
"onUpdate:modelValue": (t) =>
|
|
766
|
+
"onUpdate:modelValue": (t) => ae(e.key)
|
|
495
767
|
}, {
|
|
496
|
-
default: i(() => [x("span",
|
|
768
|
+
default: i(() => [x("span", an, [(o(), y(c(e.icon), {
|
|
497
769
|
size: 14,
|
|
498
770
|
"stroke-width": 1.5
|
|
499
771
|
})), E(" " + w(f(S).blockSettings[e.labelKey]), 1)])]),
|
|
@@ -505,21 +777,21 @@ var Re = [
|
|
|
505
777
|
])), 64))])]),
|
|
506
778
|
_: 1
|
|
507
779
|
}, 8, ["title", "open"]),
|
|
508
|
-
te.value ? (o(), y(
|
|
780
|
+
te.value ? (o(), y(nn, {
|
|
509
781
|
key: 0,
|
|
510
782
|
"header-test-id": "display-condition-section",
|
|
511
783
|
title: f(S).blockSettings.displayCondition,
|
|
512
784
|
open: O.has("condition"),
|
|
513
785
|
onToggle: n[8] ||= (e) => M("condition")
|
|
514
786
|
}, {
|
|
515
|
-
default: i(() => [x("div",
|
|
787
|
+
default: i(() => [x("div", on, [x("select", {
|
|
516
788
|
"data-testid": "display-condition-select",
|
|
517
789
|
class: m(["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)]"]),
|
|
518
790
|
value: k.value || N.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
519
791
|
onChange: n[5] ||= (e) => {
|
|
520
792
|
let t = e.target.value;
|
|
521
793
|
if (t === "__custom__") {
|
|
522
|
-
|
|
794
|
+
P();
|
|
523
795
|
return;
|
|
524
796
|
}
|
|
525
797
|
if (k.value = !1, !t) {
|
|
@@ -530,41 +802,41 @@ var Re = [
|
|
|
530
802
|
n && v("update", { displayCondition: n });
|
|
531
803
|
}
|
|
532
804
|
}, [
|
|
533
|
-
x("option",
|
|
534
|
-
(o(!0), g(C, null, r(
|
|
805
|
+
x("option", cn, w(f(S).blockSettings.noCondition), 1),
|
|
806
|
+
(o(!0), g(C, null, r(re.value, (e, t) => (o(), g(C, { key: t }, [t ? (o(), g("optgroup", {
|
|
535
807
|
key: 0,
|
|
536
808
|
label: String(t)
|
|
537
809
|
}, [(o(!0), g(C, null, r(e, (e) => (o(), g("option", {
|
|
538
810
|
key: e.label,
|
|
539
811
|
value: e.label
|
|
540
|
-
}, w(e.label), 9,
|
|
812
|
+
}, w(e.label), 9, un))), 128))], 8, ln)) : (o(!0), g(C, { key: 1 }, r(e, (e) => (o(), g("option", {
|
|
541
813
|
key: e.label,
|
|
542
814
|
value: e.label
|
|
543
|
-
}, w(e.label), 9,
|
|
544
|
-
f(D) ? (o(), g("option",
|
|
545
|
-
], 42,
|
|
546
|
-
x("div", null, [x("label",
|
|
815
|
+
}, w(e.label), 9, dn))), 128))], 64))), 128)),
|
|
816
|
+
f(D) ? (o(), g("option", fn, w(f(S).blockSettings.customCondition), 1)) : _("", !0)
|
|
817
|
+
], 42, sn), k.value || N.value ? (o(), g("div", pn, [
|
|
818
|
+
x("div", null, [x("label", mn, w(f(S).blockSettings.customConditionBefore), 1), u(x("textarea", {
|
|
547
819
|
"onUpdate:modelValue": n[6] ||= (e) => A.value = e,
|
|
548
820
|
rows: "2",
|
|
549
|
-
class: m(f(
|
|
821
|
+
class: m(f(ze))
|
|
550
822
|
}, null, 2), [[b, A.value]])]),
|
|
551
|
-
x("div", null, [x("label",
|
|
823
|
+
x("div", null, [x("label", hn, w(f(S).blockSettings.customConditionAfter), 1), u(x("textarea", {
|
|
552
824
|
"onUpdate:modelValue": n[7] ||= (e) => j.value = e,
|
|
553
825
|
rows: "2",
|
|
554
|
-
class: m(f(
|
|
826
|
+
class: m(f(ze))
|
|
555
827
|
}, null, 2), [[b, j.value]])]),
|
|
556
|
-
x("div",
|
|
828
|
+
x("div", gn, [x("button", {
|
|
557
829
|
type: "button",
|
|
558
|
-
class: m(f(
|
|
830
|
+
class: m(f(Ue)),
|
|
559
831
|
disabled: !A.value.trim(),
|
|
560
|
-
onClick:
|
|
561
|
-
}, w(f(S).blockSettings.applyCondition), 11,
|
|
562
|
-
])) : e.block.displayCondition && !N.value ? (o(), g(C, { key: 1 }, [e.block.displayCondition.description ? (o(), g("p",
|
|
832
|
+
onClick: ne
|
|
833
|
+
}, w(f(S).blockSettings.applyCondition), 11, _n)])
|
|
834
|
+
])) : e.block.displayCondition && !N.value ? (o(), g(C, { key: 1 }, [e.block.displayCondition.description ? (o(), g("p", vn, w(e.block.displayCondition.description), 1)) : _("", !0), x("div", yn, [x("pre", bn, w(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), g("pre", xn, w(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)])]),
|
|
563
835
|
_: 1
|
|
564
836
|
}, 8, ["title", "open"])) : _("", !0)
|
|
565
837
|
], 2));
|
|
566
838
|
}
|
|
567
|
-
}),
|
|
839
|
+
}), Cn = ["title"], wn = /* @__PURE__ */ l({
|
|
568
840
|
__name: "BooleanField",
|
|
569
841
|
props: {
|
|
570
842
|
field: {},
|
|
@@ -577,7 +849,7 @@ var Re = [
|
|
|
577
849
|
return (t, a) => (o(), g("div", {
|
|
578
850
|
class: "tpl:mb-3.5",
|
|
579
851
|
title: e.readOnly ? f(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
580
|
-
}, [p(
|
|
852
|
+
}, [p(K, {
|
|
581
853
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
582
854
|
"model-value": e.modelValue,
|
|
583
855
|
label: e.field.label,
|
|
@@ -585,7 +857,7 @@ var Re = [
|
|
|
585
857
|
disabled: e.readOnly,
|
|
586
858
|
"onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
|
|
587
859
|
}, {
|
|
588
|
-
default: i(() => [E(w(e.field.label) + " ", 1), e.readOnly ? (o(), y(f(
|
|
860
|
+
default: i(() => [E(w(e.field.label) + " ", 1), e.readOnly ? (o(), y(f(Pe), {
|
|
589
861
|
key: 0,
|
|
590
862
|
size: 12,
|
|
591
863
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -596,9 +868,9 @@ var Re = [
|
|
|
596
868
|
"label",
|
|
597
869
|
"required",
|
|
598
870
|
"disabled"
|
|
599
|
-
])], 8,
|
|
871
|
+
])], 8, Cn));
|
|
600
872
|
}
|
|
601
|
-
}),
|
|
873
|
+
}), Tn = { class: "tpl:mb-3.5" }, En = ["title"], Dn = { class: "tpl-sr-only" }, On = ["title"], kn = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ l({
|
|
602
874
|
__name: "FieldWrapper",
|
|
603
875
|
props: {
|
|
604
876
|
label: {},
|
|
@@ -607,24 +879,24 @@ var Re = [
|
|
|
607
879
|
},
|
|
608
880
|
setup(e) {
|
|
609
881
|
let { t } = L();
|
|
610
|
-
return (n, r) => (o(), g("div",
|
|
882
|
+
return (n, r) => (o(), g("div", Tn, [x("label", { class: m(f(V)) }, [
|
|
611
883
|
E(w(e.label) + " ", 1),
|
|
612
884
|
e.readOnly ? (o(), g("span", {
|
|
613
885
|
key: 0,
|
|
614
886
|
title: f(t).customBlocks.dataSource.readOnlyTooltip
|
|
615
|
-
}, [p(f(
|
|
887
|
+
}, [p(f(Pe), {
|
|
616
888
|
size: 12,
|
|
617
889
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
618
890
|
"aria-hidden": "true"
|
|
619
|
-
}), x("span",
|
|
891
|
+
}), x("span", Dn, w(f(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, En)) : _("", !0),
|
|
620
892
|
e.required ? (o(), g("span", {
|
|
621
893
|
key: 1,
|
|
622
894
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
623
895
|
title: f(t).customBlocks.fields.required
|
|
624
|
-
}, [r[0] ||= x("span", { "aria-hidden": "true" }, "*", -1), x("span",
|
|
896
|
+
}, [r[0] ||= x("span", { "aria-hidden": "true" }, "*", -1), x("span", kn, w(f(t).customBlocks.fields.required), 1)], 8, On)) : _("", !0)
|
|
625
897
|
], 2), a(n.$slots, "default")]));
|
|
626
898
|
}
|
|
627
|
-
}),
|
|
899
|
+
}), An = /* @__PURE__ */ l({
|
|
628
900
|
__name: "ColorField",
|
|
629
901
|
props: {
|
|
630
902
|
field: {},
|
|
@@ -633,13 +905,13 @@ var Re = [
|
|
|
633
905
|
},
|
|
634
906
|
emits: ["update:modelValue"],
|
|
635
907
|
setup(e, { emit: t }) {
|
|
636
|
-
let r = e, a = t, { t: s } = L(), c = n(
|
|
908
|
+
let r = e, a = t, { t: s } = L(), c = n(fe, _e), l = h(() => ne(r.field, c));
|
|
637
909
|
return (t, n) => (o(), y(Q, {
|
|
638
910
|
label: e.field.label,
|
|
639
911
|
required: e.field.required,
|
|
640
912
|
"read-only": e.readOnly
|
|
641
913
|
}, {
|
|
642
|
-
default: i(() => [p(
|
|
914
|
+
default: i(() => [p(G, {
|
|
643
915
|
"model-value": e.modelValue,
|
|
644
916
|
placeholder: e.field.placeholder,
|
|
645
917
|
disabled: e.readOnly,
|
|
@@ -662,15 +934,15 @@ var Re = [
|
|
|
662
934
|
"read-only"
|
|
663
935
|
]));
|
|
664
936
|
}
|
|
665
|
-
}),
|
|
937
|
+
}), jn = {
|
|
666
938
|
key: 0,
|
|
667
939
|
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)]",
|
|
668
940
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
669
|
-
},
|
|
941
|
+
}, Mn = [
|
|
670
942
|
"value",
|
|
671
943
|
"placeholder",
|
|
672
944
|
"title"
|
|
673
|
-
],
|
|
945
|
+
], Nn = ["value", "placeholder"], Pn = /* @__PURE__ */ l({
|
|
674
946
|
__name: "ImageField",
|
|
675
947
|
props: {
|
|
676
948
|
field: {},
|
|
@@ -679,7 +951,7 @@ var Re = [
|
|
|
679
951
|
},
|
|
680
952
|
emits: ["update:modelValue"],
|
|
681
953
|
setup(e, { emit: t }) {
|
|
682
|
-
let r = e, a = t, { t: c } = L(), l = n(
|
|
954
|
+
let r = e, a = t, { t: c } = L(), l = n(le, null), u = n(de, null), d = Re(), v = h(() => !!l);
|
|
683
955
|
async function b() {
|
|
684
956
|
let e = await l?.({ accept: ["images"] });
|
|
685
957
|
d.alive && e && a("update:modelValue", e.url);
|
|
@@ -700,7 +972,7 @@ var Re = [
|
|
|
700
972
|
}
|
|
701
973
|
}
|
|
702
974
|
}
|
|
703
|
-
let { isOver: k } =
|
|
975
|
+
let { isOver: k } = ie({
|
|
704
976
|
target: S,
|
|
705
977
|
enabled: D,
|
|
706
978
|
onFiles: O
|
|
@@ -715,35 +987,35 @@ var Re = [
|
|
|
715
987
|
ref: S,
|
|
716
988
|
class: "tpl:relative"
|
|
717
989
|
}, [
|
|
718
|
-
D.value && (f(k) || T.value) ? (o(), g("div",
|
|
990
|
+
D.value && (f(k) || T.value) ? (o(), g("div", jn, [T.value ? (o(), g(C, { key: 0 }, [p(f(Ce), {
|
|
719
991
|
class: "tpl-spinner",
|
|
720
992
|
size: 18,
|
|
721
993
|
"stroke-width": 2
|
|
722
|
-
}), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(
|
|
994
|
+
}), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(Fe), {
|
|
723
995
|
size: 18,
|
|
724
996
|
"stroke-width": 1.5
|
|
725
997
|
}), E(" " + w(f(c).image.dropToUpload), 1)], 64))])) : _("", !0),
|
|
726
998
|
e.readOnly ? (o(), g("input", {
|
|
727
999
|
key: 1,
|
|
728
1000
|
type: "url",
|
|
729
|
-
class: m([f(
|
|
1001
|
+
class: m([f(W), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
730
1002
|
value: e.modelValue,
|
|
731
1003
|
placeholder: e.field.placeholder || "https://...",
|
|
732
1004
|
disabled: "",
|
|
733
1005
|
title: f(c).customBlocks.dataSource.readOnlyTooltip
|
|
734
|
-
}, null, 10,
|
|
1006
|
+
}, null, 10, Mn)) : (o(), g("input", {
|
|
735
1007
|
key: 2,
|
|
736
1008
|
type: "url",
|
|
737
|
-
class: m(f(
|
|
1009
|
+
class: m(f(W)),
|
|
738
1010
|
value: e.modelValue,
|
|
739
1011
|
placeholder: e.field.placeholder || "https://...",
|
|
740
1012
|
onInput: n[0] ||= (e) => a("update:modelValue", e.target.value)
|
|
741
|
-
}, null, 42,
|
|
1013
|
+
}, null, 42, Nn)),
|
|
742
1014
|
v.value && !e.readOnly ? (o(), g("button", {
|
|
743
1015
|
key: 3,
|
|
744
1016
|
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)]",
|
|
745
1017
|
onClick: n[1] ||= (e) => b()
|
|
746
|
-
}, [p(f(
|
|
1018
|
+
}, [p(f(Ne), {
|
|
747
1019
|
size: 14,
|
|
748
1020
|
"stroke-width": 1.5
|
|
749
1021
|
}), E(" " + w(f(c).image.browseMedia), 1)])) : _("", !0)
|
|
@@ -755,7 +1027,7 @@ var Re = [
|
|
|
755
1027
|
"read-only"
|
|
756
1028
|
]));
|
|
757
1029
|
}
|
|
758
|
-
}),
|
|
1030
|
+
}), Fn = [
|
|
759
1031
|
"value",
|
|
760
1032
|
"placeholder",
|
|
761
1033
|
"min",
|
|
@@ -763,7 +1035,7 @@ var Re = [
|
|
|
763
1035
|
"step",
|
|
764
1036
|
"disabled",
|
|
765
1037
|
"title"
|
|
766
|
-
],
|
|
1038
|
+
], In = /* @__PURE__ */ l({
|
|
767
1039
|
__name: "NumberField",
|
|
768
1040
|
props: {
|
|
769
1041
|
field: {},
|
|
@@ -780,7 +1052,7 @@ var Re = [
|
|
|
780
1052
|
}, {
|
|
781
1053
|
default: i(() => [x("input", {
|
|
782
1054
|
type: "number",
|
|
783
|
-
class: m([f(
|
|
1055
|
+
class: m([f(W), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
784
1056
|
value: e.modelValue,
|
|
785
1057
|
placeholder: e.field.placeholder,
|
|
786
1058
|
min: e.field.min,
|
|
@@ -789,7 +1061,7 @@ var Re = [
|
|
|
789
1061
|
disabled: e.readOnly,
|
|
790
1062
|
title: e.readOnly ? f(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
791
1063
|
onInput: a[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
792
|
-
}, null, 42,
|
|
1064
|
+
}, null, 42, Fn)]),
|
|
793
1065
|
_: 1
|
|
794
1066
|
}, 8, [
|
|
795
1067
|
"label",
|
|
@@ -797,13 +1069,13 @@ var Re = [
|
|
|
797
1069
|
"read-only"
|
|
798
1070
|
]));
|
|
799
1071
|
}
|
|
800
|
-
}),
|
|
1072
|
+
}), Ln = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Rn = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, zn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Bn = ["title", "onClick"], Vn = {
|
|
801
1073
|
key: 1,
|
|
802
1074
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
803
|
-
},
|
|
1075
|
+
}, Hn = {
|
|
804
1076
|
key: 2,
|
|
805
1077
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
806
|
-
},
|
|
1078
|
+
}, Un = /* @__PURE__ */ l({
|
|
807
1079
|
__name: "RepeatableField",
|
|
808
1080
|
props: {
|
|
809
1081
|
field: {},
|
|
@@ -836,20 +1108,20 @@ var Re = [
|
|
|
836
1108
|
required: e.field.required,
|
|
837
1109
|
"read-only": e.readOnly
|
|
838
1110
|
}, {
|
|
839
|
-
default: i(() => [x("div",
|
|
1111
|
+
default: i(() => [x("div", Ln, [
|
|
840
1112
|
(o(!0), g(C, null, r(u.value, (t, n) => (o(), g("div", {
|
|
841
1113
|
key: `${e.field.key}-${n}`,
|
|
842
1114
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
843
|
-
}, [x("div",
|
|
1115
|
+
}, [x("div", Rn, [x("span", zn, " #" + w(n + 1), 1), v.value && !e.readOnly ? (o(), g("button", {
|
|
844
1116
|
key: 0,
|
|
845
1117
|
type: "button",
|
|
846
1118
|
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)]",
|
|
847
1119
|
title: f(s).customBlocks.fields.removeItem,
|
|
848
1120
|
onClick: (e) => S(n)
|
|
849
|
-
}, [p(f(
|
|
1121
|
+
}, [p(f(Ee), {
|
|
850
1122
|
size: 12,
|
|
851
1123
|
"stroke-width": 2
|
|
852
|
-
})], 8,
|
|
1124
|
+
})], 8, Bn)) : _("", !0)]), (o(!0), g(C, null, r(e.field.fields, (r) => (o(), y(c(f(Qn)(r.type)), {
|
|
853
1125
|
key: r.key,
|
|
854
1126
|
field: r,
|
|
855
1127
|
"model-value": t[r.key],
|
|
@@ -864,14 +1136,14 @@ var Re = [
|
|
|
864
1136
|
d.value && !e.readOnly ? (o(), g("button", {
|
|
865
1137
|
key: 0,
|
|
866
1138
|
type: "button",
|
|
867
|
-
class: m(f(
|
|
1139
|
+
class: m(f(Ve)),
|
|
868
1140
|
onClick: b
|
|
869
1141
|
}, [p(f(R), {
|
|
870
1142
|
size: 14,
|
|
871
1143
|
"stroke-width": 2
|
|
872
1144
|
}), E(" " + w(f(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
|
|
873
|
-
!d.value && !e.readOnly ? (o(), g("p",
|
|
874
|
-
!v.value && !e.readOnly ? (o(), g("p",
|
|
1145
|
+
!d.value && !e.readOnly ? (o(), g("p", Vn, w(f(s).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
|
|
1146
|
+
!v.value && !e.readOnly ? (o(), g("p", Hn, w(f(l)(f(s).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !0)
|
|
875
1147
|
])]),
|
|
876
1148
|
_: 1
|
|
877
1149
|
}, 8, [
|
|
@@ -880,11 +1152,11 @@ var Re = [
|
|
|
880
1152
|
"read-only"
|
|
881
1153
|
]));
|
|
882
1154
|
}
|
|
883
|
-
}),
|
|
1155
|
+
}), Wn = [
|
|
884
1156
|
"value",
|
|
885
1157
|
"disabled",
|
|
886
1158
|
"title"
|
|
887
|
-
],
|
|
1159
|
+
], Gn = ["value"], Kn = /* @__PURE__ */ l({
|
|
888
1160
|
__name: "SelectField",
|
|
889
1161
|
props: {
|
|
890
1162
|
field: {},
|
|
@@ -900,7 +1172,7 @@ var Re = [
|
|
|
900
1172
|
"read-only": e.readOnly
|
|
901
1173
|
}, {
|
|
902
1174
|
default: i(() => [x("select", {
|
|
903
|
-
class: m([f(
|
|
1175
|
+
class: m([f(W), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
904
1176
|
value: e.modelValue,
|
|
905
1177
|
disabled: e.readOnly,
|
|
906
1178
|
title: e.readOnly ? f(a).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
@@ -908,7 +1180,7 @@ var Re = [
|
|
|
908
1180
|
}, [(o(!0), g(C, null, r(e.field.options, (e) => (o(), g("option", {
|
|
909
1181
|
key: e.value,
|
|
910
1182
|
value: e.value
|
|
911
|
-
}, w(e.label), 9,
|
|
1183
|
+
}, w(e.label), 9, Gn))), 128))], 42, Wn)]),
|
|
912
1184
|
_: 1
|
|
913
1185
|
}, 8, [
|
|
914
1186
|
"label",
|
|
@@ -916,11 +1188,11 @@ var Re = [
|
|
|
916
1188
|
"read-only"
|
|
917
1189
|
]));
|
|
918
1190
|
}
|
|
919
|
-
}),
|
|
1191
|
+
}), qn = [
|
|
920
1192
|
"value",
|
|
921
1193
|
"placeholder",
|
|
922
1194
|
"title"
|
|
923
|
-
],
|
|
1195
|
+
], Jn = /* @__PURE__ */ l({
|
|
924
1196
|
__name: "TextField",
|
|
925
1197
|
props: {
|
|
926
1198
|
field: {},
|
|
@@ -938,12 +1210,12 @@ var Re = [
|
|
|
938
1210
|
default: i(() => [e.readOnly ? (o(), g("input", {
|
|
939
1211
|
key: 0,
|
|
940
1212
|
type: "text",
|
|
941
|
-
class: m([f(
|
|
1213
|
+
class: m([f(W), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
942
1214
|
value: e.modelValue,
|
|
943
1215
|
placeholder: e.field.placeholder,
|
|
944
1216
|
disabled: "",
|
|
945
1217
|
title: f(r).customBlocks.dataSource.readOnlyTooltip
|
|
946
|
-
}, null, 10,
|
|
1218
|
+
}, null, 10, qn)) : (o(), y(q, {
|
|
947
1219
|
key: 1,
|
|
948
1220
|
"model-value": e.modelValue,
|
|
949
1221
|
placeholder: e.field.placeholder,
|
|
@@ -956,12 +1228,12 @@ var Re = [
|
|
|
956
1228
|
"read-only"
|
|
957
1229
|
]));
|
|
958
1230
|
}
|
|
959
|
-
}),
|
|
1231
|
+
}), Yn = [
|
|
960
1232
|
"value",
|
|
961
1233
|
"placeholder",
|
|
962
1234
|
"title"
|
|
963
|
-
],
|
|
964
|
-
text:
|
|
1235
|
+
], Xn = "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", Zn = {
|
|
1236
|
+
text: Jn,
|
|
965
1237
|
textarea: /* @__PURE__ */ l({
|
|
966
1238
|
__name: "TextareaField",
|
|
967
1239
|
props: {
|
|
@@ -984,8 +1256,8 @@ var Re = [
|
|
|
984
1256
|
rows: "3",
|
|
985
1257
|
disabled: "",
|
|
986
1258
|
title: f(r).customBlocks.dataSource.readOnlyTooltip,
|
|
987
|
-
class: m(
|
|
988
|
-
}, null, 8,
|
|
1259
|
+
class: m(Xn)
|
|
1260
|
+
}, null, 8, Yn)) : (o(), y(Ge, {
|
|
989
1261
|
key: 1,
|
|
990
1262
|
"model-value": e.modelValue,
|
|
991
1263
|
placeholder: e.field.placeholder,
|
|
@@ -999,42 +1271,42 @@ var Re = [
|
|
|
999
1271
|
]));
|
|
1000
1272
|
}
|
|
1001
1273
|
}),
|
|
1002
|
-
image:
|
|
1003
|
-
color:
|
|
1004
|
-
number:
|
|
1005
|
-
select:
|
|
1006
|
-
boolean:
|
|
1007
|
-
repeatable:
|
|
1274
|
+
image: Pn,
|
|
1275
|
+
color: An,
|
|
1276
|
+
number: In,
|
|
1277
|
+
select: Kn,
|
|
1278
|
+
boolean: wn,
|
|
1279
|
+
repeatable: Un
|
|
1008
1280
|
};
|
|
1009
|
-
function
|
|
1010
|
-
return
|
|
1281
|
+
function Qn(e) {
|
|
1282
|
+
return Zn[e] ?? Jn;
|
|
1011
1283
|
}
|
|
1012
1284
|
//#endregion
|
|
1013
1285
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1014
|
-
var
|
|
1286
|
+
var $n = {
|
|
1015
1287
|
key: 0,
|
|
1016
1288
|
class: "tpl:p-4"
|
|
1017
|
-
},
|
|
1289
|
+
}, er = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, tr = { key: 1 }, nr = {
|
|
1018
1290
|
key: 0,
|
|
1019
1291
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1020
|
-
},
|
|
1292
|
+
}, rr = {
|
|
1021
1293
|
key: 1,
|
|
1022
1294
|
class: "tpl:mb-4"
|
|
1023
|
-
},
|
|
1295
|
+
}, ir = {
|
|
1024
1296
|
key: 1,
|
|
1025
1297
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1026
|
-
},
|
|
1298
|
+
}, ar = {
|
|
1027
1299
|
key: 0,
|
|
1028
1300
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1029
|
-
},
|
|
1301
|
+
}, or = {
|
|
1030
1302
|
key: 2,
|
|
1031
1303
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1032
|
-
},
|
|
1304
|
+
}, sr = /* @__PURE__ */ l({
|
|
1033
1305
|
__name: "CustomBlockToolbar",
|
|
1034
1306
|
props: { block: {} },
|
|
1035
1307
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1036
1308
|
setup(e, { emit: t }) {
|
|
1037
|
-
let i = e, a = t, { t: s } = L(), l = n(
|
|
1309
|
+
let i = e, a = t, { t: s } = L(), l = n(he, []), u = h(() => l.find((e) => e.type === i.block.customType)), d = h(() => i.block), { isFetching: m, fetchError: v, fetch: b, hasDataSource: S, needsFetch: T } = re({
|
|
1038
1310
|
definition: u,
|
|
1039
1311
|
block: d,
|
|
1040
1312
|
onUpdate: (e, t) => {
|
|
@@ -1050,23 +1322,23 @@ var Nn = {
|
|
|
1050
1322
|
[e]: t
|
|
1051
1323
|
});
|
|
1052
1324
|
}
|
|
1053
|
-
return (t, n) => u.value ? (o(), g("div",
|
|
1054
|
-
u.value.description ? (o(), g("p",
|
|
1055
|
-
f(S) ? (o(), g("div",
|
|
1325
|
+
return (t, n) => u.value ? (o(), g("div", tr, [
|
|
1326
|
+
u.value.description ? (o(), g("p", nr, w(u.value.description), 1)) : _("", !0),
|
|
1327
|
+
f(S) ? (o(), g("div", rr, [f(T) && !f(m) ? (o(), g("button", {
|
|
1056
1328
|
key: 0,
|
|
1057
1329
|
type: "button",
|
|
1058
1330
|
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)]",
|
|
1059
1331
|
onClick: n[0] ||= (...e) => f(b) && f(b)(...e)
|
|
1060
|
-
}, w(u.value?.dataSource?.label || f(s).customBlocks.dataSource.fetchButton), 1)) : (o(), g("div",
|
|
1332
|
+
}, w(u.value?.dataSource?.label || f(s).customBlocks.dataSource.fetchButton), 1)) : (o(), g("div", ir, [f(m) ? (o(), g("div", ar, w(f(s).customBlocks.dataSource.fetching), 1)) : (o(), g("button", {
|
|
1061
1333
|
key: 1,
|
|
1062
1334
|
type: "button",
|
|
1063
1335
|
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)]",
|
|
1064
1336
|
onClick: n[1] ||= (...e) => f(b) && f(b)(...e)
|
|
1065
|
-
}, [p(f(
|
|
1337
|
+
}, [p(f(ve), { size: 12 }), E(" " + w(f(s).customBlocks.dataSource.changeButton), 1)]))])), f(v) ? (o(), g("p", or, [p(f(xe), {
|
|
1066
1338
|
size: 14,
|
|
1067
1339
|
class: "tpl:shrink-0"
|
|
1068
1340
|
}), E(" " + w(f(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
1069
|
-
(o(!0), g(C, null, r(u.value.fields, (t) => (o(), y(c(f(
|
|
1341
|
+
(o(!0), g(C, null, r(u.value.fields, (t) => (o(), y(c(f(Qn)(t.type)), {
|
|
1070
1342
|
key: t.key,
|
|
1071
1343
|
field: t,
|
|
1072
1344
|
"model-value": e.block.fieldValues[t.key],
|
|
@@ -1078,9 +1350,9 @@ var Nn = {
|
|
|
1078
1350
|
"read-only",
|
|
1079
1351
|
"onUpdate:modelValue"
|
|
1080
1352
|
]))), 128))
|
|
1081
|
-
])) : (o(), g("div",
|
|
1353
|
+
])) : (o(), g("div", $n, [x("p", er, w(f(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
1082
1354
|
}
|
|
1083
|
-
}),
|
|
1355
|
+
}), cr = { class: "tpl:mb-3.5" }, lr = { class: "tpl:mb-3.5" }, ur = { class: "tpl:mb-3.5" }, dr = { class: "tpl:flex tpl:items-stretch" }, fr = ["value"], pr = /* @__PURE__ */ l({
|
|
1084
1356
|
__name: "DividerToolbar",
|
|
1085
1357
|
props: { block: {} },
|
|
1086
1358
|
emits: ["update"],
|
|
@@ -1090,7 +1362,7 @@ var Nn = {
|
|
|
1090
1362
|
n("update", { [e]: t });
|
|
1091
1363
|
}
|
|
1092
1364
|
return (t, n) => (o(), g(C, null, [
|
|
1093
|
-
x("div",
|
|
1365
|
+
x("div", cr, [x("label", { class: m(f(V)) }, w(f(r).divider.style), 3), p(J, {
|
|
1094
1366
|
options: [
|
|
1095
1367
|
{
|
|
1096
1368
|
value: "solid",
|
|
@@ -1108,95 +1380,64 @@ var Nn = {
|
|
|
1108
1380
|
"model-value": e.block.lineStyle,
|
|
1109
1381
|
"onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
|
|
1110
1382
|
}, null, 8, ["options", "model-value"])]),
|
|
1111
|
-
x("div",
|
|
1383
|
+
x("div", lr, [x("label", { class: m(f(V)) }, w(f(r).divider.color), 3), p(G, {
|
|
1112
1384
|
"model-value": e.block.color,
|
|
1113
1385
|
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
1114
1386
|
}, null, 8, ["model-value"])]),
|
|
1115
|
-
x("div",
|
|
1387
|
+
x("div", ur, [x("label", { class: m(f(V)) }, w(f(r).divider.thickness), 3), x("div", dr, [x("input", {
|
|
1116
1388
|
type: "number",
|
|
1117
|
-
class: m(f(
|
|
1389
|
+
class: m(f(U)),
|
|
1118
1390
|
value: e.block.thickness,
|
|
1119
1391
|
min: "1",
|
|
1120
1392
|
max: "10",
|
|
1121
1393
|
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
1122
|
-
}, null, 42,
|
|
1394
|
+
}, null, 42, fr), x("span", { class: m(f(H)) }, "px", 2)])])
|
|
1123
1395
|
], 64));
|
|
1124
1396
|
}
|
|
1125
|
-
}),
|
|
1397
|
+
}), mr = { class: "tpl:mb-3.5" }, hr = ["value"], gr = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, _r = /* @__PURE__ */ l({
|
|
1126
1398
|
__name: "HtmlToolbar",
|
|
1127
1399
|
props: { block: {} },
|
|
1128
1400
|
emits: ["update"],
|
|
1129
1401
|
setup(e, { emit: t }) {
|
|
1130
1402
|
let n = t, { t: r } = L();
|
|
1131
|
-
return (t, i) => (o(), g("div",
|
|
1132
|
-
x("label", { class: m(f(
|
|
1403
|
+
return (t, i) => (o(), g("div", mr, [
|
|
1404
|
+
x("label", { class: m(f(V)) }, w(f(r).html.content), 3),
|
|
1133
1405
|
x("textarea", {
|
|
1134
1406
|
value: e.block.content,
|
|
1135
1407
|
placeholder: "<div>...</div>",
|
|
1136
1408
|
rows: "10",
|
|
1137
|
-
class: m(f(
|
|
1409
|
+
class: m(f(ze)),
|
|
1138
1410
|
onInput: i[0] ||= (e) => n("update", { content: e.target.value })
|
|
1139
|
-
}, null, 42,
|
|
1140
|
-
x("p",
|
|
1411
|
+
}, null, 42, hr),
|
|
1412
|
+
x("p", gr, [p(f(De), {
|
|
1141
1413
|
size: 12,
|
|
1142
1414
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1143
1415
|
}), E(" " + w(f(r).html.sanitizationHint), 1)])
|
|
1144
1416
|
]));
|
|
1145
1417
|
}
|
|
1146
|
-
}),
|
|
1147
|
-
"data-testid",
|
|
1148
|
-
"value",
|
|
1149
|
-
"min",
|
|
1150
|
-
"max"
|
|
1151
|
-
], er = /* @__PURE__ */ l({
|
|
1152
|
-
__name: "NumberWithSuffix",
|
|
1153
|
-
props: {
|
|
1154
|
-
modelValue: {},
|
|
1155
|
-
min: {},
|
|
1156
|
-
max: {},
|
|
1157
|
-
suffix: {},
|
|
1158
|
-
testid: {}
|
|
1159
|
-
},
|
|
1160
|
-
emits: ["update:modelValue"],
|
|
1161
|
-
setup(e, { emit: t }) {
|
|
1162
|
-
let n = t;
|
|
1163
|
-
function r(e) {
|
|
1164
|
-
let t = e.target;
|
|
1165
|
-
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
1166
|
-
}
|
|
1167
|
-
return (t, n) => (o(), g("div", Qn, [x("input", {
|
|
1168
|
-
type: "number",
|
|
1169
|
-
"data-testid": e.testid,
|
|
1170
|
-
class: m(f(G)),
|
|
1171
|
-
value: e.modelValue,
|
|
1172
|
-
min: e.min,
|
|
1173
|
-
max: e.max,
|
|
1174
|
-
onInput: r
|
|
1175
|
-
}, null, 42, $n), x("span", { class: m(f(W)) }, w(e.suffix), 3)]));
|
|
1176
|
-
}
|
|
1177
|
-
}), tr = { class: "tpl:mb-3.5" }, nr = {
|
|
1418
|
+
}), vr = { class: "tpl:mb-3.5" }, yr = {
|
|
1178
1419
|
key: 0,
|
|
1179
1420
|
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)]",
|
|
1180
1421
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
1181
|
-
},
|
|
1422
|
+
}, br = {
|
|
1182
1423
|
key: 0,
|
|
1183
1424
|
class: "tpl:mb-3.5"
|
|
1184
|
-
},
|
|
1425
|
+
}, xr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Sr = [
|
|
1185
1426
|
"value",
|
|
1186
1427
|
"placeholder",
|
|
1187
1428
|
"title"
|
|
1188
|
-
],
|
|
1429
|
+
], Cr = { class: "tpl:mb-3.5" }, wr = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Tr = { class: "tpl:mb-3.5" }, Er = ["value"], Dr = { value: "full" }, Or = { value: "custom" }, kr = {
|
|
1189
1430
|
key: 0,
|
|
1190
1431
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1191
|
-
},
|
|
1432
|
+
}, Ar = ["value"], jr = { class: "tpl:mb-3.5" }, Mr = ["value"], Nr = { value: "auto" }, Pr = { value: "custom" }, Fr = {
|
|
1192
1433
|
key: 0,
|
|
1193
1434
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1194
|
-
},
|
|
1435
|
+
}, Ir = ["value"], Lr = { class: "tpl:mb-3.5" }, Rr = { class: "tpl:mb-3.5" }, zr = 350, Br = 200, Vr = /* @__PURE__ */ l({
|
|
1195
1436
|
__name: "ImageToolbar",
|
|
1196
1437
|
props: { block: {} },
|
|
1197
1438
|
emits: ["update"],
|
|
1198
1439
|
setup(e, { emit: t }) {
|
|
1199
|
-
let r = e, a = t, { t: c } = L(), l = n(
|
|
1440
|
+
let r = e, a = t, { t: c } = L(), l = n(le, null), u = n(de, null), d = n(ue, te.liquid), v = Re(), b = h(() => !!l), S = s(!1), T = s(!1), { start: D } = oe(() => {
|
|
1200
1441
|
S.value = !1;
|
|
1201
1442
|
}, 1e3, { immediate: !1 }), O = [
|
|
1202
1443
|
300,
|
|
@@ -1205,77 +1446,77 @@ var Nn = {
|
|
|
1205
1446
|
], k = h(() => {
|
|
1206
1447
|
let e = r.block.width;
|
|
1207
1448
|
return e === "full" ? "full" : O.includes(e) ? String(e) : "custom";
|
|
1208
|
-
}),
|
|
1209
|
-
function
|
|
1449
|
+
}), A = h(() => typeof r.block.height == "number" ? "custom" : "auto");
|
|
1450
|
+
function j(e, t) {
|
|
1210
1451
|
a("update", { [e]: t });
|
|
1211
1452
|
}
|
|
1212
|
-
function
|
|
1453
|
+
function M(e) {
|
|
1213
1454
|
if (e === "custom") {
|
|
1214
1455
|
let e = r.block.width;
|
|
1215
|
-
(typeof e != "number" || O.includes(e)) &&
|
|
1456
|
+
(typeof e != "number" || O.includes(e)) && j("width", zr);
|
|
1216
1457
|
return;
|
|
1217
1458
|
}
|
|
1218
|
-
|
|
1459
|
+
j("width", e === "full" ? "full" : Number(e));
|
|
1219
1460
|
}
|
|
1220
|
-
function
|
|
1221
|
-
|
|
1461
|
+
function P(e) {
|
|
1462
|
+
j("height", e === "custom" ? Br : void 0);
|
|
1222
1463
|
}
|
|
1223
|
-
function
|
|
1464
|
+
function ne(e) {
|
|
1224
1465
|
let t = Number(e);
|
|
1225
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1466
|
+
!Number.isFinite(t) || t <= 0 || j("height", t);
|
|
1226
1467
|
}
|
|
1227
|
-
function
|
|
1228
|
-
|
|
1468
|
+
function re(e) {
|
|
1469
|
+
j("borderRadius", N(e) === null ? void 0 : e);
|
|
1229
1470
|
}
|
|
1230
|
-
function
|
|
1471
|
+
function F(e) {
|
|
1231
1472
|
let t = Number(e);
|
|
1232
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1473
|
+
!Number.isFinite(t) || t <= 0 || j("width", t);
|
|
1233
1474
|
}
|
|
1234
|
-
async function
|
|
1475
|
+
async function ae() {
|
|
1235
1476
|
let e = await l?.({ accept: ["images"] });
|
|
1236
|
-
v.alive && e && (
|
|
1477
|
+
v.alive && e && (j("src", e.url), e.alt && (j("alt", e.alt), T.value = !0), S.value = !0, D());
|
|
1237
1478
|
}
|
|
1238
|
-
let
|
|
1239
|
-
async function
|
|
1479
|
+
let se = s(), I = s(!1), ce = h(() => ee(r.block.src, d)), fe = h(() => (u?.value ?? !!l) && !I.value && !ce.value);
|
|
1480
|
+
async function pe(e) {
|
|
1240
1481
|
if (l) {
|
|
1241
|
-
|
|
1482
|
+
I.value = !0;
|
|
1242
1483
|
try {
|
|
1243
1484
|
let t = await l({
|
|
1244
1485
|
accept: ["images"],
|
|
1245
1486
|
files: e
|
|
1246
1487
|
});
|
|
1247
1488
|
if (!v.alive) return;
|
|
1248
|
-
t && (
|
|
1489
|
+
t && (j("src", t.url), t.alt && (j("alt", t.alt), T.value = !0), S.value = !0, D());
|
|
1249
1490
|
} finally {
|
|
1250
|
-
v.alive && (
|
|
1491
|
+
v.alive && (I.value = !1);
|
|
1251
1492
|
}
|
|
1252
1493
|
}
|
|
1253
1494
|
}
|
|
1254
|
-
let { isOver:
|
|
1255
|
-
target:
|
|
1256
|
-
enabled:
|
|
1257
|
-
onFiles:
|
|
1495
|
+
let { isOver: me } = ie({
|
|
1496
|
+
target: se,
|
|
1497
|
+
enabled: fe,
|
|
1498
|
+
onFiles: pe
|
|
1258
1499
|
});
|
|
1259
1500
|
return (t, n) => (o(), g(C, null, [
|
|
1260
|
-
x("div",
|
|
1501
|
+
x("div", vr, [x("label", { class: m(f(V)) }, w(f(c).image.imageUrl), 3), x("div", {
|
|
1261
1502
|
ref_key: "dropZoneRef",
|
|
1262
|
-
ref:
|
|
1503
|
+
ref: se,
|
|
1263
1504
|
class: "tpl:relative"
|
|
1264
1505
|
}, [
|
|
1265
|
-
|
|
1506
|
+
fe.value && (f(me) || I.value) ? (o(), g("div", yr, [I.value ? (o(), g(C, { key: 0 }, [p(f(Ce), {
|
|
1266
1507
|
class: "tpl-spinner",
|
|
1267
1508
|
size: 18,
|
|
1268
1509
|
"stroke-width": 2
|
|
1269
|
-
}), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(
|
|
1510
|
+
}), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(Fe), {
|
|
1270
1511
|
size: 18,
|
|
1271
1512
|
"stroke-width": 1.5
|
|
1272
1513
|
}), E(" " + w(f(c).image.dropToUpload), 1)], 64))])) : _("", !0),
|
|
1273
|
-
p(
|
|
1514
|
+
p(q, {
|
|
1274
1515
|
"model-value": e.block.src,
|
|
1275
1516
|
type: "url",
|
|
1276
1517
|
placeholder: f(c).image.imageUrlPlaceholder,
|
|
1277
1518
|
pulse: S.value,
|
|
1278
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1519
|
+
"onUpdate:modelValue": n[0] ||= (e) => j("src", e)
|
|
1279
1520
|
}, null, 8, [
|
|
1280
1521
|
"model-value",
|
|
1281
1522
|
"placeholder",
|
|
@@ -1289,91 +1530,95 @@ var Nn = {
|
|
|
1289
1530
|
color: "var(--tpl-primary)",
|
|
1290
1531
|
"background-color": "var(--tpl-bg)"
|
|
1291
1532
|
},
|
|
1292
|
-
onClick:
|
|
1293
|
-
}, [p(f(
|
|
1533
|
+
onClick: ae
|
|
1534
|
+
}, [p(f(Ne), {
|
|
1294
1535
|
size: 14,
|
|
1295
1536
|
"stroke-width": 1.5
|
|
1296
1537
|
}), E(" " + w(f(c).image.browseMedia), 1)])) : _("", !0)
|
|
1297
1538
|
], 512)]),
|
|
1298
|
-
f(
|
|
1539
|
+
f(ee)(e.block.src, f(d)) ? (o(), g("div", br, [x("label", { class: m(f(V)) }, [E(w(f(c).image.placeholderUrl) + " ", 1), x("span", xr, w(f(c).image.optional), 1)], 2), x("input", {
|
|
1299
1540
|
type: "url",
|
|
1300
|
-
class: m(f(
|
|
1541
|
+
class: m(f(W)),
|
|
1301
1542
|
value: e.block.placeholderUrl || "",
|
|
1302
1543
|
placeholder: f(c).image.placeholderUrlPlaceholder,
|
|
1303
1544
|
title: f(c).image.placeholderUrlTooltip,
|
|
1304
|
-
onInput: n[1] ||= (e) =>
|
|
1305
|
-
}, null, 42,
|
|
1306
|
-
x("div",
|
|
1307
|
-
x("label", { class: m(f(
|
|
1308
|
-
p(
|
|
1545
|
+
onInput: n[1] ||= (e) => j("placeholderUrl", e.target.value)
|
|
1546
|
+
}, null, 42, Sr)])) : _("", !0),
|
|
1547
|
+
x("div", Cr, [
|
|
1548
|
+
x("label", { class: m(f(V)) }, w(f(c).image.altText), 3),
|
|
1549
|
+
p(q, {
|
|
1309
1550
|
"model-value": e.block.alt,
|
|
1310
1551
|
type: "text",
|
|
1311
1552
|
placeholder: f(c).image.altTextPlaceholder,
|
|
1312
1553
|
pulse: T.value,
|
|
1313
1554
|
disabled: e.block.decorative === !0,
|
|
1314
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
1555
|
+
"onUpdate:modelValue": n[2] ||= (e) => j("alt", e)
|
|
1315
1556
|
}, null, 8, [
|
|
1316
1557
|
"model-value",
|
|
1317
1558
|
"placeholder",
|
|
1318
1559
|
"pulse",
|
|
1319
1560
|
"disabled"
|
|
1320
1561
|
]),
|
|
1321
|
-
p(
|
|
1562
|
+
p(K, {
|
|
1322
1563
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1323
1564
|
"model-value": e.block.decorative === !0,
|
|
1324
1565
|
label: f(c).image.decorative,
|
|
1325
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
1566
|
+
"onUpdate:modelValue": n[3] ||= (e) => j("decorative", e)
|
|
1326
1567
|
}, {
|
|
1327
|
-
default: i(() => [x("span", null, [E(w(f(c).image.decorative) + " ", 1), x("span",
|
|
1568
|
+
default: i(() => [x("span", null, [E(w(f(c).image.decorative) + " ", 1), x("span", wr, w(f(c).image.decorativeHint), 1)])]),
|
|
1328
1569
|
_: 1
|
|
1329
1570
|
}, 8, ["model-value", "label"])
|
|
1330
1571
|
]),
|
|
1331
|
-
x("div",
|
|
1332
|
-
x("label", { class: m(f(
|
|
1572
|
+
x("div", Tr, [
|
|
1573
|
+
x("label", { class: m(f(V)) }, w(f(c).image.width), 3),
|
|
1333
1574
|
x("select", {
|
|
1334
|
-
class: m(f(
|
|
1575
|
+
class: m(f(W)),
|
|
1335
1576
|
value: k.value,
|
|
1336
|
-
onChange: n[4] ||= (e) =>
|
|
1577
|
+
onChange: n[4] ||= (e) => M(e.target.value)
|
|
1337
1578
|
}, [
|
|
1338
|
-
x("option",
|
|
1339
|
-
n[
|
|
1340
|
-
n[
|
|
1341
|
-
n[
|
|
1342
|
-
x("option",
|
|
1343
|
-
], 42,
|
|
1344
|
-
k.value === "custom" ? (o(), g("div",
|
|
1579
|
+
x("option", Dr, w(f(c).image.fullWidth), 1),
|
|
1580
|
+
n[12] ||= x("option", { value: "300" }, "300px", -1),
|
|
1581
|
+
n[13] ||= x("option", { value: "400" }, "400px", -1),
|
|
1582
|
+
n[14] ||= x("option", { value: "500" }, "500px", -1),
|
|
1583
|
+
x("option", Or, w(f(c).image.widthCustom), 1)
|
|
1584
|
+
], 42, Er),
|
|
1585
|
+
k.value === "custom" ? (o(), g("div", kr, [x("input", {
|
|
1345
1586
|
type: "number",
|
|
1346
|
-
class: m(f(
|
|
1347
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
1587
|
+
class: m(f(U)),
|
|
1588
|
+
value: typeof e.block.width == "number" ? e.block.width : zr,
|
|
1348
1589
|
min: "20",
|
|
1349
|
-
onInput: n[5] ||= (e) =>
|
|
1350
|
-
}, null, 42,
|
|
1590
|
+
onInput: n[5] ||= (e) => F(e.target.value)
|
|
1591
|
+
}, null, 42, Ar), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
|
|
1351
1592
|
]),
|
|
1352
|
-
x("div",
|
|
1353
|
-
x("label", { class: m(f(
|
|
1593
|
+
x("div", jr, [
|
|
1594
|
+
x("label", { class: m(f(V)) }, w(f(c).image.height), 3),
|
|
1354
1595
|
x("select", {
|
|
1355
|
-
class: m(f(
|
|
1596
|
+
class: m(f(W)),
|
|
1356
1597
|
"data-testid": "image-height-mode",
|
|
1357
|
-
value:
|
|
1358
|
-
onChange: n[6] ||= (e) =>
|
|
1359
|
-
}, [x("option",
|
|
1360
|
-
|
|
1598
|
+
value: A.value,
|
|
1599
|
+
onChange: n[6] ||= (e) => P(e.target.value)
|
|
1600
|
+
}, [x("option", Nr, w(f(c).image.heightAuto), 1), x("option", Pr, w(f(c).image.heightCustom), 1)], 42, Mr),
|
|
1601
|
+
A.value === "custom" ? (o(), g("div", Fr, [x("input", {
|
|
1361
1602
|
type: "number",
|
|
1362
1603
|
"data-testid": "image-height-input",
|
|
1363
|
-
class: m(f(
|
|
1604
|
+
class: m(f(U)),
|
|
1364
1605
|
value: e.block.height,
|
|
1365
1606
|
min: "20",
|
|
1366
|
-
onInput: n[7] ||= (e) =>
|
|
1367
|
-
}, null, 42,
|
|
1607
|
+
onInput: n[7] ||= (e) => ne(e.target.value)
|
|
1608
|
+
}, null, 42, Ir), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
|
|
1368
1609
|
]),
|
|
1369
|
-
|
|
1370
|
-
"model-value": e.block.borderRadius
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1610
|
+
p(ut, {
|
|
1611
|
+
"model-value": e.block.borderRadius,
|
|
1612
|
+
label: f(c).image.borderRadius,
|
|
1613
|
+
"testid-prefix": "image",
|
|
1614
|
+
"onUpdate:modelValue": re
|
|
1615
|
+
}, null, 8, ["model-value", "label"]),
|
|
1616
|
+
p(it, {
|
|
1617
|
+
"model-value": e.block.border,
|
|
1618
|
+
"testid-prefix": "image",
|
|
1619
|
+
"onUpdate:modelValue": n[8] ||= (e) => j("border", e)
|
|
1620
|
+
}, null, 8, ["model-value"]),
|
|
1621
|
+
x("div", Lr, [x("label", { class: m(f(V)) }, w(f(c).title.align), 3), p(J, {
|
|
1377
1622
|
options: [
|
|
1378
1623
|
{
|
|
1379
1624
|
value: "left",
|
|
@@ -1389,40 +1634,40 @@ var Nn = {
|
|
|
1389
1634
|
}
|
|
1390
1635
|
],
|
|
1391
1636
|
"model-value": e.block.align,
|
|
1392
|
-
"onUpdate:modelValue": n[
|
|
1637
|
+
"onUpdate:modelValue": n[9] ||= (e) => j("align", e)
|
|
1393
1638
|
}, null, 8, ["options", "model-value"])]),
|
|
1394
|
-
x("div",
|
|
1395
|
-
x("label", { class: m(f(
|
|
1396
|
-
p(
|
|
1639
|
+
x("div", Rr, [
|
|
1640
|
+
x("label", { class: m(f(V)) }, w(f(c).image.linkUrl), 3),
|
|
1641
|
+
p(q, {
|
|
1397
1642
|
"model-value": e.block.linkUrl || "",
|
|
1398
1643
|
type: "url",
|
|
1399
1644
|
placeholder: f(c).image.imageUrlPlaceholder,
|
|
1400
|
-
"onUpdate:modelValue": n[
|
|
1645
|
+
"onUpdate:modelValue": n[10] ||= (e) => j("linkUrl", e)
|
|
1401
1646
|
}, null, 8, ["model-value", "placeholder"]),
|
|
1402
|
-
e.block.linkUrl ? (o(), y(
|
|
1647
|
+
e.block.linkUrl ? (o(), y(K, {
|
|
1403
1648
|
key: 0,
|
|
1404
1649
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1405
1650
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
1406
1651
|
label: f(c).image.openInNewTab,
|
|
1407
|
-
"onUpdate:modelValue": n[
|
|
1652
|
+
"onUpdate:modelValue": n[11] ||= (e) => j("linkOpenInNewTab", e)
|
|
1408
1653
|
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
1409
1654
|
])
|
|
1410
1655
|
], 64));
|
|
1411
1656
|
}
|
|
1412
|
-
}),
|
|
1657
|
+
}), Hr = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ l({
|
|
1413
1658
|
__name: "FieldRow",
|
|
1414
1659
|
props: { label: {} },
|
|
1415
1660
|
setup(e) {
|
|
1416
|
-
return (t, n) => (o(), g("div",
|
|
1661
|
+
return (t, n) => (o(), g("div", Hr, [e.label ? (o(), g("label", {
|
|
1417
1662
|
key: 0,
|
|
1418
|
-
class: m(f(
|
|
1663
|
+
class: m(f(V))
|
|
1419
1664
|
}, w(e.label), 3)) : _("", !0), a(t.$slots, "default")]));
|
|
1420
1665
|
}
|
|
1421
|
-
}),
|
|
1666
|
+
}), Ur = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Wr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Gr = [
|
|
1422
1667
|
"value",
|
|
1423
1668
|
"placeholder",
|
|
1424
1669
|
"onInput"
|
|
1425
|
-
],
|
|
1670
|
+
], Kr = ["title", "onClick"], qr = { 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)]" }, Jr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Yr = ["value"], Xr = { value: "" }, Zr = ["value"], Qr = ["value"], $r = /* @__PURE__ */ l({
|
|
1426
1671
|
__name: "MenuToolbar",
|
|
1427
1672
|
props: {
|
|
1428
1673
|
block: {},
|
|
@@ -1447,17 +1692,17 @@ var Nn = {
|
|
|
1447
1692
|
{
|
|
1448
1693
|
value: "left",
|
|
1449
1694
|
label: s.title.alignLeft,
|
|
1450
|
-
icon:
|
|
1695
|
+
icon: Oe
|
|
1451
1696
|
},
|
|
1452
1697
|
{
|
|
1453
1698
|
value: "center",
|
|
1454
1699
|
label: s.title.alignCenter,
|
|
1455
|
-
icon:
|
|
1700
|
+
icon: Ie
|
|
1456
1701
|
},
|
|
1457
1702
|
{
|
|
1458
1703
|
value: "right",
|
|
1459
1704
|
label: s.title.alignRight,
|
|
1460
|
-
icon:
|
|
1705
|
+
icon: z
|
|
1461
1706
|
}
|
|
1462
1707
|
]);
|
|
1463
1708
|
function u(e, t) {
|
|
@@ -1486,25 +1731,25 @@ var Nn = {
|
|
|
1486
1731
|
}
|
|
1487
1732
|
return (t, n) => (o(), g(C, null, [
|
|
1488
1733
|
p($, { label: f(s).menu.items }, {
|
|
1489
|
-
default: i(() => [x("div",
|
|
1734
|
+
default: i(() => [x("div", Ur, [(o(!0), g(C, null, r(e.block.items, (t) => (o(), g("div", {
|
|
1490
1735
|
key: t.id,
|
|
1491
1736
|
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"
|
|
1492
1737
|
}, [
|
|
1493
|
-
x("div",
|
|
1738
|
+
x("div", Wr, [x("input", {
|
|
1494
1739
|
type: "text",
|
|
1495
|
-
class: m([f(
|
|
1740
|
+
class: m([f(W), "tpl:flex-1"]),
|
|
1496
1741
|
value: t.text,
|
|
1497
1742
|
placeholder: f(s).menu.text,
|
|
1498
1743
|
onInput: (e) => _(t.id, "text", e.target.value)
|
|
1499
|
-
}, null, 42,
|
|
1500
|
-
class: m(f(
|
|
1744
|
+
}, null, 42, Gr), x("button", {
|
|
1745
|
+
class: m(f(Be)),
|
|
1501
1746
|
title: f(s).menu.removeItem,
|
|
1502
1747
|
onClick: (e) => v(t.id)
|
|
1503
|
-
}, [p(f(
|
|
1748
|
+
}, [p(f(Me), {
|
|
1504
1749
|
size: 14,
|
|
1505
1750
|
"stroke-width": 2
|
|
1506
|
-
})], 10,
|
|
1507
|
-
p(
|
|
1751
|
+
})], 10, Kr)]),
|
|
1752
|
+
p(q, {
|
|
1508
1753
|
"model-value": t.url,
|
|
1509
1754
|
type: "url",
|
|
1510
1755
|
placeholder: f(s).menu.urlPlaceholder,
|
|
@@ -1514,7 +1759,7 @@ var Nn = {
|
|
|
1514
1759
|
"placeholder",
|
|
1515
1760
|
"onUpdate:modelValue"
|
|
1516
1761
|
]),
|
|
1517
|
-
x("div",
|
|
1762
|
+
x("div", qr, [(o(!0), g(C, null, r(c.value, (e) => (o(), y(K, {
|
|
1518
1763
|
key: e.key,
|
|
1519
1764
|
"model-value": t[e.key],
|
|
1520
1765
|
label: e.label,
|
|
@@ -1524,13 +1769,13 @@ var Nn = {
|
|
|
1524
1769
|
"label",
|
|
1525
1770
|
"onUpdate:modelValue"
|
|
1526
1771
|
]))), 128))]),
|
|
1527
|
-
x("div",
|
|
1772
|
+
x("div", Jr, [x("label", { class: m([f(V), "tpl:!mb-0"]) }, w(f(s).menu.color), 3), p(G, {
|
|
1528
1773
|
"swatch-only": "",
|
|
1529
1774
|
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
1530
1775
|
"onUpdate:modelValue": (e) => _(t.id, "color", e)
|
|
1531
1776
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
1532
1777
|
]))), 128)), x("button", {
|
|
1533
|
-
class: m(f(
|
|
1778
|
+
class: m(f(Ve)),
|
|
1534
1779
|
onClick: d
|
|
1535
1780
|
}, [p(f(R), {
|
|
1536
1781
|
size: 14,
|
|
@@ -1540,17 +1785,17 @@ var Nn = {
|
|
|
1540
1785
|
}, 8, ["label"]),
|
|
1541
1786
|
p($, { label: f(s).menu.fontFamily }, {
|
|
1542
1787
|
default: i(() => [x("select", {
|
|
1543
|
-
class: m(f(
|
|
1788
|
+
class: m(f(W)),
|
|
1544
1789
|
value: e.block.fontFamily || "",
|
|
1545
1790
|
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
1546
|
-
}, [x("option",
|
|
1791
|
+
}, [x("option", Xr, w(f(s).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
|
|
1547
1792
|
key: e.value,
|
|
1548
1793
|
value: e.value
|
|
1549
|
-
}, w(e.label), 9,
|
|
1794
|
+
}, w(e.label), 9, Zr))), 128))], 42, Yr)]),
|
|
1550
1795
|
_: 1
|
|
1551
1796
|
}, 8, ["label"]),
|
|
1552
1797
|
p($, { label: f(s).menu.fontSize }, {
|
|
1553
|
-
default: i(() => [p(
|
|
1798
|
+
default: i(() => [p(Y, {
|
|
1554
1799
|
"model-value": e.block.fontSize,
|
|
1555
1800
|
min: 8,
|
|
1556
1801
|
max: 48,
|
|
@@ -1560,21 +1805,21 @@ var Nn = {
|
|
|
1560
1805
|
_: 1
|
|
1561
1806
|
}, 8, ["label"]),
|
|
1562
1807
|
p($, { label: f(s).menu.color }, {
|
|
1563
|
-
default: i(() => [p(
|
|
1808
|
+
default: i(() => [p(G, {
|
|
1564
1809
|
"model-value": e.block.color ?? "",
|
|
1565
1810
|
"onUpdate:modelValue": n[2] ||= (e) => u("color", e || void 0)
|
|
1566
1811
|
}, null, 8, ["model-value"])]),
|
|
1567
1812
|
_: 1
|
|
1568
1813
|
}, 8, ["label"]),
|
|
1569
1814
|
p($, { label: f(s).menu.linkColor }, {
|
|
1570
|
-
default: i(() => [p(
|
|
1815
|
+
default: i(() => [p(G, {
|
|
1571
1816
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
1572
1817
|
"onUpdate:modelValue": n[3] ||= (e) => u("linkColor", e || void 0)
|
|
1573
1818
|
}, null, 8, ["model-value"])]),
|
|
1574
1819
|
_: 1
|
|
1575
1820
|
}, 8, ["label"]),
|
|
1576
1821
|
p($, { label: f(s).menu.textAlign }, {
|
|
1577
|
-
default: i(() => [p(
|
|
1822
|
+
default: i(() => [p(J, {
|
|
1578
1823
|
options: l.value,
|
|
1579
1824
|
"model-value": e.block.textAlign,
|
|
1580
1825
|
"onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
|
|
@@ -1584,21 +1829,21 @@ var Nn = {
|
|
|
1584
1829
|
p($, { label: f(s).menu.separator }, {
|
|
1585
1830
|
default: i(() => [x("input", {
|
|
1586
1831
|
type: "text",
|
|
1587
|
-
class: m(f(
|
|
1832
|
+
class: m(f(W)),
|
|
1588
1833
|
value: e.block.separator,
|
|
1589
1834
|
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
1590
|
-
}, null, 42,
|
|
1835
|
+
}, null, 42, Qr)]),
|
|
1591
1836
|
_: 1
|
|
1592
1837
|
}, 8, ["label"]),
|
|
1593
1838
|
p($, { label: f(s).menu.separatorColor }, {
|
|
1594
|
-
default: i(() => [p(
|
|
1839
|
+
default: i(() => [p(G, {
|
|
1595
1840
|
"model-value": e.block.separatorColor,
|
|
1596
1841
|
"onUpdate:modelValue": n[6] ||= (e) => u("separatorColor", e)
|
|
1597
1842
|
}, null, 8, ["model-value"])]),
|
|
1598
1843
|
_: 1
|
|
1599
1844
|
}, 8, ["label"]),
|
|
1600
1845
|
p($, { label: f(s).menu.spacing }, {
|
|
1601
|
-
default: i(() => [p(
|
|
1846
|
+
default: i(() => [p(Y, {
|
|
1602
1847
|
"model-value": e.block.spacing,
|
|
1603
1848
|
min: 0,
|
|
1604
1849
|
max: 50,
|
|
@@ -1609,32 +1854,32 @@ var Nn = {
|
|
|
1609
1854
|
}, 8, ["label"])
|
|
1610
1855
|
], 64));
|
|
1611
1856
|
}
|
|
1612
|
-
}),
|
|
1857
|
+
}), ei = {
|
|
1613
1858
|
class: "tpl:mb-3.5",
|
|
1614
1859
|
"data-testid": "paragraph-spacing"
|
|
1615
|
-
},
|
|
1860
|
+
}, ti = { class: "tpl:flex tpl:items-stretch" }, ni = ["value"], ri = /* @__PURE__ */ l({
|
|
1616
1861
|
__name: "ParagraphToolbar",
|
|
1617
1862
|
props: { block: {} },
|
|
1618
1863
|
emits: ["update"],
|
|
1619
1864
|
setup(e, { emit: t }) {
|
|
1620
1865
|
let n = t, { t: r } = L();
|
|
1621
|
-
return (t, i) => (o(), g("div",
|
|
1866
|
+
return (t, i) => (o(), g("div", ei, [x("label", { class: m(f(V)) }, w(f(r).paragraph.paragraphSpacing), 3), x("div", ti, [x("input", {
|
|
1622
1867
|
type: "number",
|
|
1623
|
-
class: m(f(
|
|
1868
|
+
class: m(f(U)),
|
|
1624
1869
|
value: e.block.paragraphSpacing ?? f(j).paragraphGap,
|
|
1625
1870
|
min: "0",
|
|
1626
1871
|
max: "64",
|
|
1627
1872
|
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
1628
|
-
}, null, 42,
|
|
1873
|
+
}, null, 42, ni), x("span", { class: m(f(H)) }, "px", 2)])]));
|
|
1629
1874
|
}
|
|
1630
1875
|
});
|
|
1631
1876
|
//#endregion
|
|
1632
1877
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
1633
|
-
function
|
|
1878
|
+
function ii(e) {
|
|
1634
1879
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
1635
1880
|
}
|
|
1636
|
-
function
|
|
1637
|
-
let n =
|
|
1881
|
+
function ai(e, t) {
|
|
1882
|
+
let n = ii(t);
|
|
1638
1883
|
if (e.length === n) return e;
|
|
1639
1884
|
if (e.length < n) {
|
|
1640
1885
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -1645,24 +1890,24 @@ function Ur(e, t) {
|
|
|
1645
1890
|
}
|
|
1646
1891
|
//#endregion
|
|
1647
1892
|
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1648
|
-
var
|
|
1893
|
+
var oi = { class: "tpl:mb-3.5" }, si = ["value"], ci = ["value"], li = {
|
|
1649
1894
|
key: 0,
|
|
1650
1895
|
class: "tpl:mb-3.5"
|
|
1651
|
-
},
|
|
1896
|
+
}, ui = {
|
|
1652
1897
|
key: 1,
|
|
1653
1898
|
class: "tpl:mb-3.5"
|
|
1654
|
-
},
|
|
1899
|
+
}, di = {
|
|
1655
1900
|
key: 0,
|
|
1656
1901
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1657
|
-
},
|
|
1902
|
+
}, fi = {
|
|
1658
1903
|
key: 1,
|
|
1659
1904
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
1660
|
-
},
|
|
1905
|
+
}, pi = /* @__PURE__ */ l({
|
|
1661
1906
|
__name: "SectionToolbar",
|
|
1662
1907
|
props: { block: {} },
|
|
1663
1908
|
emits: ["update"],
|
|
1664
1909
|
setup(e, { emit: t }) {
|
|
1665
|
-
let i = e, a = t, { t: s } = L(), c = n(
|
|
1910
|
+
let i = e, a = t, { t: s } = L(), c = n(I, void 0), l = n(ce, void 0), u = c !== void 0 && D(c), d = h(() => l !== !1 || !!i.block.wrapper), v = h(() => u && !i.block.wrapper), y = h(() => u && d.value), b = h(() => [
|
|
1666
1911
|
{
|
|
1667
1912
|
value: "1",
|
|
1668
1913
|
label: s.section.column1
|
|
@@ -1685,7 +1930,7 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
1685
1930
|
}
|
|
1686
1931
|
]);
|
|
1687
1932
|
function S(e) {
|
|
1688
|
-
let t = e.target.value, n =
|
|
1933
|
+
let t = e.target.value, n = ai(i.block.children, t);
|
|
1689
1934
|
a("update", {
|
|
1690
1935
|
columns: t,
|
|
1691
1936
|
children: n
|
|
@@ -1695,8 +1940,7 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
1695
1940
|
a("update", { stackOnMobile: e });
|
|
1696
1941
|
}
|
|
1697
1942
|
function E(e) {
|
|
1698
|
-
|
|
1699
|
-
a("update", { borderRadius: t });
|
|
1943
|
+
a("update", { borderRadius: e });
|
|
1700
1944
|
}
|
|
1701
1945
|
function O(e) {
|
|
1702
1946
|
a("update", { wrapper: e ? { padding: {
|
|
@@ -1716,50 +1960,55 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
1716
1960
|
k({ padding: e });
|
|
1717
1961
|
}
|
|
1718
1962
|
function j(e) {
|
|
1719
|
-
k({ borderRadius:
|
|
1963
|
+
k({ borderRadius: e });
|
|
1720
1964
|
}
|
|
1721
1965
|
return (t, n) => (o(), g(C, null, [
|
|
1722
|
-
x("div",
|
|
1723
|
-
class: m(f(
|
|
1966
|
+
x("div", oi, [x("label", { class: m(f(V)) }, w(f(s).section.columns), 3), x("select", {
|
|
1967
|
+
class: m(f(W)),
|
|
1724
1968
|
value: e.block.columns,
|
|
1725
1969
|
onChange: S
|
|
1726
1970
|
}, [(o(!0), g(C, null, r(b.value, (e) => (o(), g("option", {
|
|
1727
1971
|
key: e.value,
|
|
1728
1972
|
value: e.value
|
|
1729
|
-
}, w(e.label), 9,
|
|
1730
|
-
e.block.columns === "1" ? _("", !0) : (o(), g("div",
|
|
1973
|
+
}, w(e.label), 9, ci))), 128))], 42, si)]),
|
|
1974
|
+
e.block.columns === "1" ? _("", !0) : (o(), g("div", li, [p(K, {
|
|
1731
1975
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1732
1976
|
"model-value": e.block.stackOnMobile !== !1,
|
|
1733
1977
|
label: f(s).section.stackOnMobile,
|
|
1734
1978
|
"onUpdate:modelValue": n[0] ||= (e) => T(e)
|
|
1735
1979
|
}, null, 8, ["model-value", "label"])])),
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1980
|
+
p(ut, {
|
|
1981
|
+
"model-value": e.block.borderRadius,
|
|
1982
|
+
label: f(s).section.borderRadius,
|
|
1983
|
+
max: 50,
|
|
1984
|
+
"testid-prefix": "section",
|
|
1985
|
+
"onUpdate:modelValue": E
|
|
1986
|
+
}, null, 8, ["model-value", "label"]),
|
|
1987
|
+
p(it, {
|
|
1988
|
+
"model-value": e.block.border,
|
|
1989
|
+
"testid-prefix": "section",
|
|
1990
|
+
"onUpdate:modelValue": n[1] ||= (e) => a("update", { border: e })
|
|
1991
|
+
}, null, 8, ["model-value"]),
|
|
1992
|
+
d.value ? (o(), g("div", ui, [
|
|
1993
|
+
p(K, {
|
|
1746
1994
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1747
1995
|
"model-value": !!e.block.wrapper,
|
|
1748
1996
|
label: f(s).section.wrapperEnable,
|
|
1749
1997
|
disabled: v.value,
|
|
1750
|
-
"onUpdate:modelValue": n[
|
|
1998
|
+
"onUpdate:modelValue": n[2] ||= (e) => O(e)
|
|
1751
1999
|
}, null, 8, [
|
|
1752
2000
|
"model-value",
|
|
1753
2001
|
"label",
|
|
1754
2002
|
"disabled"
|
|
1755
2003
|
]),
|
|
1756
|
-
y.value ? (o(), g("p",
|
|
1757
|
-
e.block.wrapper ? (o(), g("div",
|
|
1758
|
-
x("div", null, [x("label", { class: m(f(
|
|
2004
|
+
y.value ? (o(), g("p", di, w(f(s).section.wrapperLayoutConflict), 1)) : _("", !0),
|
|
2005
|
+
e.block.wrapper ? (o(), g("div", fi, [
|
|
2006
|
+
x("div", null, [x("label", { class: m(f(V)) }, w(f(s).blockSettings.color), 3), p(G, {
|
|
1759
2007
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
1760
|
-
"
|
|
2008
|
+
"allow-transparent": "",
|
|
2009
|
+
"onUpdate:modelValue": n[3] ||= (e) => k({ backgroundColor: e })
|
|
1761
2010
|
}, null, 8, ["model-value"])]),
|
|
1762
|
-
p(
|
|
2011
|
+
p($t, {
|
|
1763
2012
|
label: f(s).blockSettings.padding,
|
|
1764
2013
|
"model-value": e.block.wrapper.padding ?? {
|
|
1765
2014
|
top: 0,
|
|
@@ -1769,19 +2018,18 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
1769
2018
|
},
|
|
1770
2019
|
"onUpdate:modelValue": A
|
|
1771
2020
|
}, null, 8, ["label", "model-value"]),
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
}, null, 42, ti), x("span", { class: m(f(W)) }, "px", 2)])])
|
|
2021
|
+
p(ut, {
|
|
2022
|
+
"model-value": e.block.wrapper.borderRadius,
|
|
2023
|
+
label: f(s).section.borderRadius,
|
|
2024
|
+
max: 50,
|
|
2025
|
+
"testid-prefix": "section-wrapper",
|
|
2026
|
+
"onUpdate:modelValue": j
|
|
2027
|
+
}, null, 8, ["model-value", "label"])
|
|
1780
2028
|
])) : _("", !0)
|
|
1781
2029
|
])) : _("", !0)
|
|
1782
2030
|
], 64));
|
|
1783
2031
|
}
|
|
1784
|
-
}),
|
|
2032
|
+
}), mi = { class: "tpl:mb-3.5" }, hi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, gi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, _i = ["value", "onChange"], vi = ["value"], yi = ["title", "onClick"], bi = { class: "tpl:mb-3.5" }, xi = ["value"], Si = { value: "solid" }, Ci = { value: "outlined" }, wi = { value: "rounded" }, Ti = { value: "square" }, Ei = { value: "circle" }, Di = { class: "tpl:mb-3.5" }, Oi = { class: "tpl:mb-3.5" }, ki = { class: "tpl:flex tpl:items-stretch" }, Ai = ["value"], ji = { class: "tpl:mb-3.5" }, Mi = /* @__PURE__ */ l({
|
|
1785
2033
|
__name: "SocialToolbar",
|
|
1786
2034
|
props: { block: {} },
|
|
1787
2035
|
emits: ["update"],
|
|
@@ -1809,25 +2057,25 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
1809
2057
|
i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
1810
2058
|
}
|
|
1811
2059
|
return (t, n) => (o(), g(C, null, [
|
|
1812
|
-
x("div",
|
|
2060
|
+
x("div", mi, [x("label", { class: m(f(V)) }, w(f(a).social.icons), 3), x("div", hi, [(o(!0), g(C, null, r(e.block.icons, (e) => (o(), g("div", {
|
|
1813
2061
|
key: e.id,
|
|
1814
2062
|
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"
|
|
1815
|
-
}, [x("div",
|
|
2063
|
+
}, [x("div", gi, [x("select", {
|
|
1816
2064
|
"data-testid": "social-platform-select",
|
|
1817
|
-
class: m([f(
|
|
2065
|
+
class: m([f(W), "tpl:flex-1"]),
|
|
1818
2066
|
value: e.platform,
|
|
1819
2067
|
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
1820
|
-
}, [(o(!0), g(C, null, r(f(
|
|
2068
|
+
}, [(o(!0), g(C, null, r(f(F), (e) => (o(), g("option", {
|
|
1821
2069
|
key: e,
|
|
1822
2070
|
value: e
|
|
1823
|
-
}, w(f(a).social.platforms[e]), 9,
|
|
1824
|
-
class: m(f(
|
|
2071
|
+
}, w(f(a).social.platforms[e]), 9, vi))), 128))], 42, _i), x("button", {
|
|
2072
|
+
class: m(f(Be)),
|
|
1825
2073
|
title: f(a).social.removeIcon,
|
|
1826
2074
|
onClick: (t) => u(e.id)
|
|
1827
|
-
}, [p(f(
|
|
2075
|
+
}, [p(f(Me), {
|
|
1828
2076
|
size: 14,
|
|
1829
2077
|
"stroke-width": 2
|
|
1830
|
-
})], 10,
|
|
2078
|
+
})], 10, yi)]), p(q, {
|
|
1831
2079
|
"model-value": e.url,
|
|
1832
2080
|
type: "url",
|
|
1833
2081
|
placeholder: f(a).social.urlPlaceholder,
|
|
@@ -1837,24 +2085,24 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
1837
2085
|
"placeholder",
|
|
1838
2086
|
"onUpdate:modelValue"
|
|
1839
2087
|
])]))), 128)), x("button", {
|
|
1840
|
-
class: m(f(
|
|
2088
|
+
class: m(f(Ve)),
|
|
1841
2089
|
onClick: c
|
|
1842
2090
|
}, [p(f(R), {
|
|
1843
2091
|
size: 14,
|
|
1844
2092
|
"stroke-width": 2
|
|
1845
2093
|
}), E(" " + w(f(a).social.addIcon), 1)], 2)])]),
|
|
1846
|
-
x("div",
|
|
1847
|
-
class: m(f(
|
|
2094
|
+
x("div", bi, [x("label", { class: m(f(V)) }, w(f(a).social.style), 3), x("select", {
|
|
2095
|
+
class: m(f(W)),
|
|
1848
2096
|
value: e.block.iconStyle,
|
|
1849
2097
|
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
1850
2098
|
}, [
|
|
1851
|
-
x("option",
|
|
1852
|
-
x("option",
|
|
1853
|
-
x("option",
|
|
1854
|
-
x("option",
|
|
1855
|
-
x("option",
|
|
1856
|
-
], 42,
|
|
1857
|
-
x("div",
|
|
2099
|
+
x("option", Si, w(f(a).social.styleSolid), 1),
|
|
2100
|
+
x("option", Ci, w(f(a).social.styleOutlined), 1),
|
|
2101
|
+
x("option", wi, w(f(a).social.styleRounded), 1),
|
|
2102
|
+
x("option", Ti, w(f(a).social.styleSquare), 1),
|
|
2103
|
+
x("option", Ei, w(f(a).social.styleCircle), 1)
|
|
2104
|
+
], 42, xi)]),
|
|
2105
|
+
x("div", Di, [x("label", { class: m(f(V)) }, w(f(a).social.size), 3), p(J, {
|
|
1858
2106
|
options: [
|
|
1859
2107
|
{
|
|
1860
2108
|
value: "small",
|
|
@@ -1872,30 +2120,30 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
1872
2120
|
"model-value": e.block.iconSize,
|
|
1873
2121
|
"onUpdate:modelValue": n[1] ||= (e) => s("iconSize", e)
|
|
1874
2122
|
}, null, 8, ["options", "model-value"])]),
|
|
1875
|
-
x("div",
|
|
2123
|
+
x("div", Oi, [x("label", { class: m(f(V)) }, w(f(a).social.spacing), 3), x("div", ki, [x("input", {
|
|
1876
2124
|
type: "number",
|
|
1877
|
-
class: m(f(
|
|
2125
|
+
class: m(f(U)),
|
|
1878
2126
|
value: e.block.spacing,
|
|
1879
2127
|
min: "0",
|
|
1880
2128
|
max: "50",
|
|
1881
2129
|
onInput: n[2] ||= (e) => s("spacing", Number(e.target.value))
|
|
1882
|
-
}, null, 42,
|
|
1883
|
-
x("div",
|
|
2130
|
+
}, null, 42, Ai), x("span", { class: m(f(H)) }, "px", 2)])]),
|
|
2131
|
+
x("div", ji, [x("label", { class: m(f(V)) }, w(f(a).social.align), 3), p(J, {
|
|
1884
2132
|
options: [
|
|
1885
2133
|
{
|
|
1886
2134
|
value: "left",
|
|
1887
2135
|
label: f(a).title.alignLeft,
|
|
1888
|
-
icon: f(
|
|
2136
|
+
icon: f(Oe)
|
|
1889
2137
|
},
|
|
1890
2138
|
{
|
|
1891
2139
|
value: "center",
|
|
1892
2140
|
label: f(a).title.alignCenter,
|
|
1893
|
-
icon: f(
|
|
2141
|
+
icon: f(Ie)
|
|
1894
2142
|
},
|
|
1895
2143
|
{
|
|
1896
2144
|
value: "right",
|
|
1897
2145
|
label: f(a).title.alignRight,
|
|
1898
|
-
icon: f(
|
|
2146
|
+
icon: f(z)
|
|
1899
2147
|
}
|
|
1900
2148
|
],
|
|
1901
2149
|
"model-value": e.block.align,
|
|
@@ -1903,22 +2151,22 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
1903
2151
|
}, null, 8, ["options", "model-value"])])
|
|
1904
2152
|
], 64));
|
|
1905
2153
|
}
|
|
1906
|
-
}),
|
|
2154
|
+
}), Ni = { class: "tpl:mb-3.5" }, Pi = { class: "tpl:flex tpl:items-stretch" }, Fi = ["value"], Ii = ["value"], Li = /* @__PURE__ */ l({
|
|
1907
2155
|
__name: "SpacerToolbar",
|
|
1908
2156
|
props: { block: {} },
|
|
1909
2157
|
emits: ["update"],
|
|
1910
2158
|
setup(e, { emit: t }) {
|
|
1911
2159
|
let n = t, { t: r } = L();
|
|
1912
|
-
return (t, i) => (o(), g("div",
|
|
1913
|
-
x("label", { class: m(f(
|
|
1914
|
-
x("div",
|
|
2160
|
+
return (t, i) => (o(), g("div", Ni, [
|
|
2161
|
+
x("label", { class: m(f(V)) }, w(f(r).spacer.height), 3),
|
|
2162
|
+
x("div", Pi, [x("input", {
|
|
1915
2163
|
type: "number",
|
|
1916
|
-
class: m(f(
|
|
2164
|
+
class: m(f(U)),
|
|
1917
2165
|
value: e.block.height,
|
|
1918
2166
|
min: "10",
|
|
1919
2167
|
max: "100",
|
|
1920
2168
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
1921
|
-
}, null, 42,
|
|
2169
|
+
}, null, 42, Fi), x("span", { class: m(f(H)) }, "px", 2)]),
|
|
1922
2170
|
x("input", {
|
|
1923
2171
|
type: "range",
|
|
1924
2172
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -1926,13 +2174,13 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
1926
2174
|
min: "10",
|
|
1927
2175
|
max: "100",
|
|
1928
2176
|
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
1929
|
-
}, null, 40,
|
|
2177
|
+
}, null, 40, Ii)
|
|
1930
2178
|
]));
|
|
1931
2179
|
}
|
|
1932
|
-
}),
|
|
2180
|
+
}), Ri = { class: "tpl:mb-3.5" }, zi = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Bi = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Vi = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Hi = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ui = ["disabled"], Wi = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Gi = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ki = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, qi = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ji = ["disabled"], Yi = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Xi = { class: "tpl:mb-3.5" }, Zi = {
|
|
1933
2181
|
key: 0,
|
|
1934
2182
|
class: "tpl:mb-3.5"
|
|
1935
|
-
},
|
|
2183
|
+
}, Qi = { class: "tpl:mb-3.5" }, $i = { class: "tpl:mb-3.5" }, ea = { class: "tpl:flex tpl:items-stretch" }, ta = ["value"], na = { class: "tpl:mb-3.5" }, ra = { class: "tpl:flex tpl:items-stretch" }, ia = ["value"], aa = { class: "tpl:mb-3.5" }, oa = ["value"], sa = { value: "" }, ca = ["value"], la = { class: "tpl:mb-3.5" }, ua = { class: "tpl:flex tpl:items-stretch" }, da = ["value"], fa = { class: "tpl:mb-3.5" }, pa = { class: "tpl:mb-3.5" }, ma = /* @__PURE__ */ l({
|
|
1936
2184
|
__name: "TableToolbar",
|
|
1937
2185
|
props: {
|
|
1938
2186
|
block: {},
|
|
@@ -1975,16 +2223,16 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
1975
2223
|
i("update", { rows: t });
|
|
1976
2224
|
}
|
|
1977
2225
|
return (t, n) => (o(), g(C, null, [
|
|
1978
|
-
x("div",
|
|
2226
|
+
x("div", Ri, [x("label", { class: m(f(V)) }, w(f(a).table.dimensions), 3), x("div", zi, [x("div", Bi, [x("span", Vi, w(f(a).table.rows), 1), x("div", Hi, [
|
|
1979
2227
|
x("button", {
|
|
1980
2228
|
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",
|
|
1981
2229
|
disabled: e.block.rows.length <= 1,
|
|
1982
2230
|
onClick: n[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
|
|
1983
|
-
}, [p(f(
|
|
2231
|
+
}, [p(f(B), {
|
|
1984
2232
|
size: 12,
|
|
1985
2233
|
"stroke-width": 2
|
|
1986
|
-
})], 8,
|
|
1987
|
-
x("span",
|
|
2234
|
+
})], 8, Ui),
|
|
2235
|
+
x("span", Wi, w(e.block.rows.length), 1),
|
|
1988
2236
|
x("button", {
|
|
1989
2237
|
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)]",
|
|
1990
2238
|
onClick: l
|
|
@@ -1992,16 +2240,16 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
1992
2240
|
size: 12,
|
|
1993
2241
|
"stroke-width": 2
|
|
1994
2242
|
})])
|
|
1995
|
-
])]), x("div",
|
|
2243
|
+
])]), x("div", Gi, [x("span", Ki, w(f(a).table.columns), 1), x("div", qi, [
|
|
1996
2244
|
x("button", {
|
|
1997
2245
|
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",
|
|
1998
2246
|
disabled: s.value <= 1,
|
|
1999
2247
|
onClick: n[1] ||= (e) => v(s.value - 1)
|
|
2000
|
-
}, [p(f(
|
|
2248
|
+
}, [p(f(B), {
|
|
2001
2249
|
size: 12,
|
|
2002
2250
|
"stroke-width": 2
|
|
2003
|
-
})], 8,
|
|
2004
|
-
x("span",
|
|
2251
|
+
})], 8, Ji),
|
|
2252
|
+
x("span", Yi, w(s.value), 1),
|
|
2005
2253
|
x("button", {
|
|
2006
2254
|
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)]",
|
|
2007
2255
|
onClick: d
|
|
@@ -2010,15 +2258,15 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
2010
2258
|
"stroke-width": 2
|
|
2011
2259
|
})])
|
|
2012
2260
|
])])])]),
|
|
2013
|
-
x("div",
|
|
2261
|
+
x("div", Xi, [p(K, {
|
|
2014
2262
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2015
2263
|
"model-value": e.block.hasHeaderRow,
|
|
2016
2264
|
label: f(a).table.hasHeaderRow,
|
|
2017
2265
|
"onUpdate:modelValue": n[2] ||= (e) => c("hasHeaderRow", e)
|
|
2018
2266
|
}, null, 8, ["model-value", "label"])]),
|
|
2019
|
-
e.block.hasHeaderRow ? (o(), g("div",
|
|
2267
|
+
e.block.hasHeaderRow ? (o(), g("div", Zi, [x("label", { class: m(f(V)) }, w(f(a).table.headerBackgroundColor), 3), p(G, {
|
|
2020
2268
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2021
|
-
"seed-color": f(
|
|
2269
|
+
"seed-color": f(He),
|
|
2022
2270
|
placeholder: f(a).table.noHeaderBg,
|
|
2023
2271
|
"onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2024
2272
|
}, null, 8, [
|
|
@@ -2026,62 +2274,62 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
2026
2274
|
"seed-color",
|
|
2027
2275
|
"placeholder"
|
|
2028
2276
|
])])) : _("", !0),
|
|
2029
|
-
x("div",
|
|
2277
|
+
x("div", Qi, [x("label", { class: m(f(V)) }, w(f(a).table.borderColor), 3), p(G, {
|
|
2030
2278
|
"model-value": e.block.borderColor,
|
|
2031
2279
|
"onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
|
|
2032
2280
|
}, null, 8, ["model-value"])]),
|
|
2033
|
-
x("div",
|
|
2281
|
+
x("div", $i, [x("label", { class: m(f(V)) }, w(f(a).table.borderWidth), 3), x("div", ea, [x("input", {
|
|
2034
2282
|
type: "number",
|
|
2035
|
-
class: m(f(
|
|
2283
|
+
class: m(f(U)),
|
|
2036
2284
|
value: e.block.borderWidth,
|
|
2037
2285
|
min: "0",
|
|
2038
2286
|
max: "10",
|
|
2039
2287
|
onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2040
|
-
}, null, 42,
|
|
2041
|
-
x("div",
|
|
2288
|
+
}, null, 42, ta), x("span", { class: m(f(H)) }, "px", 2)])]),
|
|
2289
|
+
x("div", na, [x("label", { class: m(f(V)) }, w(f(a).table.cellPadding), 3), x("div", ra, [x("input", {
|
|
2042
2290
|
type: "number",
|
|
2043
|
-
class: m(f(
|
|
2291
|
+
class: m(f(U)),
|
|
2044
2292
|
value: e.block.cellPadding,
|
|
2045
2293
|
min: "0",
|
|
2046
2294
|
max: "30",
|
|
2047
2295
|
onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2048
|
-
}, null, 42,
|
|
2049
|
-
x("div",
|
|
2050
|
-
class: m(f(
|
|
2296
|
+
}, null, 42, ia), x("span", { class: m(f(H)) }, "px", 2)])]),
|
|
2297
|
+
x("div", aa, [x("label", { class: m(f(V)) }, w(f(a).table.fontFamily), 3), x("select", {
|
|
2298
|
+
class: m(f(W)),
|
|
2051
2299
|
value: e.block.fontFamily || "",
|
|
2052
2300
|
onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2053
|
-
}, [x("option",
|
|
2301
|
+
}, [x("option", sa, w(f(a).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
|
|
2054
2302
|
key: e.value,
|
|
2055
2303
|
value: e.value
|
|
2056
|
-
}, w(e.label), 9,
|
|
2057
|
-
x("div",
|
|
2304
|
+
}, w(e.label), 9, ca))), 128))], 42, oa)]),
|
|
2305
|
+
x("div", la, [x("label", { class: m(f(V)) }, w(f(a).table.fontSize), 3), x("div", ua, [x("input", {
|
|
2058
2306
|
type: "number",
|
|
2059
|
-
class: m(f(
|
|
2307
|
+
class: m(f(U)),
|
|
2060
2308
|
value: e.block.fontSize,
|
|
2061
2309
|
min: "10",
|
|
2062
2310
|
max: "32",
|
|
2063
2311
|
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2064
|
-
}, null, 42,
|
|
2065
|
-
x("div",
|
|
2312
|
+
}, null, 42, da), x("span", { class: m(f(H)) }, "px", 2)])]),
|
|
2313
|
+
x("div", fa, [x("label", { class: m(f(V)) }, w(f(a).table.color), 3), p(G, {
|
|
2066
2314
|
"model-value": e.block.color ?? "",
|
|
2067
2315
|
"onUpdate:modelValue": n[9] ||= (e) => c("color", e || void 0)
|
|
2068
2316
|
}, null, 8, ["model-value"])]),
|
|
2069
|
-
x("div",
|
|
2317
|
+
x("div", pa, [x("label", { class: m(f(V)) }, w(f(a).table.textAlign), 3), p(J, {
|
|
2070
2318
|
options: [
|
|
2071
2319
|
{
|
|
2072
2320
|
value: "left",
|
|
2073
2321
|
label: f(a).title.alignLeft,
|
|
2074
|
-
icon: f(
|
|
2322
|
+
icon: f(Oe)
|
|
2075
2323
|
},
|
|
2076
2324
|
{
|
|
2077
2325
|
value: "center",
|
|
2078
2326
|
label: f(a).title.alignCenter,
|
|
2079
|
-
icon: f(
|
|
2327
|
+
icon: f(Ie)
|
|
2080
2328
|
},
|
|
2081
2329
|
{
|
|
2082
2330
|
value: "right",
|
|
2083
2331
|
label: f(a).title.alignRight,
|
|
2084
|
-
icon: f(
|
|
2332
|
+
icon: f(z)
|
|
2085
2333
|
}
|
|
2086
2334
|
],
|
|
2087
2335
|
"model-value": e.block.textAlign,
|
|
@@ -2089,7 +2337,7 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
2089
2337
|
}, null, 8, ["options", "model-value"])])
|
|
2090
2338
|
], 64));
|
|
2091
2339
|
}
|
|
2092
|
-
}),
|
|
2340
|
+
}), ha = { class: "tpl:mb-3.5" }, ga = ["value"], _a = { value: 1 }, va = { value: 2 }, ya = { value: 3 }, ba = { value: 4 }, xa = { class: "tpl:mb-3.5" }, Sa = ["value"], Ca = { value: "" }, wa = ["value"], Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:mb-3.5" }, Da = /* @__PURE__ */ l({
|
|
2093
2341
|
__name: "TitleToolbar",
|
|
2094
2342
|
props: {
|
|
2095
2343
|
block: {},
|
|
@@ -2102,44 +2350,44 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
2102
2350
|
n("update", { [e]: t });
|
|
2103
2351
|
}
|
|
2104
2352
|
return (t, n) => (o(), g(C, null, [
|
|
2105
|
-
x("div",
|
|
2106
|
-
class: m(f(
|
|
2353
|
+
x("div", ha, [x("label", { class: m(f(V)) }, w(f(i).title.level), 3), x("select", {
|
|
2354
|
+
class: m(f(W)),
|
|
2107
2355
|
value: e.block.level,
|
|
2108
2356
|
onChange: n[0] ||= (e) => a("level", Number(e.target.value))
|
|
2109
2357
|
}, [
|
|
2110
|
-
x("option",
|
|
2111
|
-
x("option",
|
|
2112
|
-
x("option",
|
|
2113
|
-
x("option",
|
|
2114
|
-
], 42,
|
|
2115
|
-
x("div",
|
|
2116
|
-
class: m(f(
|
|
2358
|
+
x("option", _a, w(f(i).title.heading1), 1),
|
|
2359
|
+
x("option", va, w(f(i).title.heading2), 1),
|
|
2360
|
+
x("option", ya, w(f(i).title.heading3), 1),
|
|
2361
|
+
x("option", ba, w(f(i).title.heading4), 1)
|
|
2362
|
+
], 42, ga)]),
|
|
2363
|
+
x("div", xa, [x("label", { class: m(f(V)) }, w(f(i).title.fontFamily), 3), x("select", {
|
|
2364
|
+
class: m(f(W)),
|
|
2117
2365
|
value: e.block.fontFamily || "",
|
|
2118
2366
|
onChange: n[1] ||= (e) => a("fontFamily", e.target.value || void 0)
|
|
2119
|
-
}, [x("option",
|
|
2367
|
+
}, [x("option", Ca, w(f(i).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
|
|
2120
2368
|
key: e.value,
|
|
2121
2369
|
value: e.value
|
|
2122
|
-
}, w(e.label), 9,
|
|
2123
|
-
x("div",
|
|
2370
|
+
}, w(e.label), 9, wa))), 128))], 42, Sa)]),
|
|
2371
|
+
x("div", Ta, [x("label", { class: m(f(V)) }, w(f(i).title.color), 3), p(G, {
|
|
2124
2372
|
"model-value": e.block.color ?? "",
|
|
2125
2373
|
"onUpdate:modelValue": n[2] ||= (e) => a("color", e || void 0)
|
|
2126
2374
|
}, null, 8, ["model-value"])]),
|
|
2127
|
-
x("div",
|
|
2375
|
+
x("div", Ea, [x("label", { class: m(f(V)) }, w(f(i).title.align), 3), p(J, {
|
|
2128
2376
|
options: [
|
|
2129
2377
|
{
|
|
2130
2378
|
value: "left",
|
|
2131
2379
|
label: f(i).title.alignLeft,
|
|
2132
|
-
icon: f(
|
|
2380
|
+
icon: f(Oe)
|
|
2133
2381
|
},
|
|
2134
2382
|
{
|
|
2135
2383
|
value: "center",
|
|
2136
2384
|
label: f(i).title.alignCenter,
|
|
2137
|
-
icon: f(
|
|
2385
|
+
icon: f(Ie)
|
|
2138
2386
|
},
|
|
2139
2387
|
{
|
|
2140
2388
|
value: "right",
|
|
2141
2389
|
label: f(i).title.alignRight,
|
|
2142
|
-
icon: f(
|
|
2390
|
+
icon: f(z)
|
|
2143
2391
|
}
|
|
2144
2392
|
],
|
|
2145
2393
|
"model-value": e.block.textAlign,
|
|
@@ -2147,48 +2395,48 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
2147
2395
|
}, null, 8, ["options", "model-value"])])
|
|
2148
2396
|
], 64));
|
|
2149
2397
|
}
|
|
2150
|
-
}),
|
|
2398
|
+
}), Oa = { class: "tpl:mb-3.5" }, ka = {
|
|
2151
2399
|
key: 0,
|
|
2152
2400
|
class: "tpl:mb-3.5"
|
|
2153
|
-
},
|
|
2401
|
+
}, Aa = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ja = [
|
|
2154
2402
|
"value",
|
|
2155
2403
|
"placeholder",
|
|
2156
2404
|
"title"
|
|
2157
|
-
],
|
|
2405
|
+
], Ma = { class: "tpl:mb-3.5" }, Na = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Pa = { class: "tpl:mb-3.5" }, Fa = { class: "tpl:mb-3.5" }, Ia = ["value"], La = { value: "full" }, Ra = { class: "tpl:mb-3.5" }, za = ["value"], Ba = { value: "auto" }, Va = { value: "custom" }, Ha = {
|
|
2158
2406
|
key: 0,
|
|
2159
2407
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2160
|
-
},
|
|
2408
|
+
}, Ua = ["value"], Wa = { class: "tpl:mb-3.5" }, Ga = 200, Ka = /* @__PURE__ */ l({
|
|
2161
2409
|
__name: "VideoToolbar",
|
|
2162
2410
|
props: { block: {} },
|
|
2163
2411
|
emits: ["update"],
|
|
2164
2412
|
setup(e, { emit: t }) {
|
|
2165
|
-
let r = e, i = t, { t: a } = L(), c = n(
|
|
2413
|
+
let r = e, i = t, { t: a } = L(), c = n(le, null), l = n(ue, te.liquid), u = Re(), d = h(() => !!c), v = h(() => ee(r.block.url, l)), b = h(() => typeof r.block.height == "number" ? "custom" : "auto"), S = s(!1), { start: T } = oe(() => {
|
|
2166
2414
|
S.value = !1;
|
|
2167
2415
|
}, 1e3, { immediate: !1 });
|
|
2168
2416
|
function D(e, t) {
|
|
2169
2417
|
i("update", { [e]: t });
|
|
2170
2418
|
}
|
|
2171
2419
|
function O(e) {
|
|
2172
|
-
D("height", e === "custom" ?
|
|
2420
|
+
D("height", e === "custom" ? Ga : void 0);
|
|
2173
2421
|
}
|
|
2174
2422
|
function k(e) {
|
|
2175
2423
|
let t = Number(e);
|
|
2176
2424
|
!Number.isFinite(t) || t <= 0 || D("height", t);
|
|
2177
2425
|
}
|
|
2178
|
-
async function
|
|
2426
|
+
async function A() {
|
|
2179
2427
|
let e = await c?.({ accept: ["images"] });
|
|
2180
2428
|
u.alive && e && (D("thumbnailUrl", e.url), S.value = !0, T());
|
|
2181
2429
|
}
|
|
2182
2430
|
return (t, n) => (o(), g(C, null, [
|
|
2183
|
-
x("div",
|
|
2184
|
-
x("label", { class: m(f(
|
|
2185
|
-
p(
|
|
2431
|
+
x("div", Oa, [
|
|
2432
|
+
x("label", { class: m(f(V)) }, w(f(a).video.videoUrl), 3),
|
|
2433
|
+
p(q, {
|
|
2186
2434
|
"model-value": e.block.url,
|
|
2187
2435
|
type: "url",
|
|
2188
2436
|
placeholder: f(a).video.videoUrlPlaceholder,
|
|
2189
2437
|
"onUpdate:modelValue": n[0] ||= (e) => D("url", e)
|
|
2190
2438
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2191
|
-
e.block.url ? (o(), y(
|
|
2439
|
+
e.block.url ? (o(), y(K, {
|
|
2192
2440
|
key: 0,
|
|
2193
2441
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2194
2442
|
"model-value": e.block.openInNewTab ?? !1,
|
|
@@ -2196,17 +2444,17 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
2196
2444
|
"onUpdate:modelValue": n[1] ||= (e) => D("openInNewTab", e)
|
|
2197
2445
|
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
2198
2446
|
]),
|
|
2199
|
-
v.value ? (o(), g("div",
|
|
2447
|
+
v.value ? (o(), g("div", ka, [x("label", { class: m(f(V)) }, [E(w(f(a).video.placeholderUrl) + " ", 1), x("span", Aa, w(f(a).video.optional), 1)], 2), x("input", {
|
|
2200
2448
|
type: "url",
|
|
2201
|
-
class: m(f(
|
|
2449
|
+
class: m(f(W)),
|
|
2202
2450
|
value: e.block.placeholderUrl || "",
|
|
2203
2451
|
placeholder: f(a).video.placeholderUrlPlaceholder,
|
|
2204
2452
|
title: f(a).video.placeholderUrlTooltip,
|
|
2205
2453
|
onInput: n[2] ||= (e) => D("placeholderUrl", e.target.value)
|
|
2206
|
-
}, null, 42,
|
|
2207
|
-
x("div",
|
|
2208
|
-
x("label", { class: m(f(
|
|
2209
|
-
p(
|
|
2454
|
+
}, null, 42, ja)])) : _("", !0),
|
|
2455
|
+
x("div", Ma, [
|
|
2456
|
+
x("label", { class: m(f(V)) }, [E(w(f(a).video.customThumbnail) + " ", 1), x("span", Na, w(f(a).video.optional), 1)], 2),
|
|
2457
|
+
p(q, {
|
|
2210
2458
|
"model-value": e.block.thumbnailUrl,
|
|
2211
2459
|
type: "url",
|
|
2212
2460
|
placeholder: f(a).video.thumbnailPlaceholder,
|
|
@@ -2225,46 +2473,46 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
2225
2473
|
color: "var(--tpl-primary)",
|
|
2226
2474
|
"background-color": "var(--tpl-bg)"
|
|
2227
2475
|
},
|
|
2228
|
-
onClick:
|
|
2229
|
-
}, [p(f(
|
|
2476
|
+
onClick: A
|
|
2477
|
+
}, [p(f(Ne), {
|
|
2230
2478
|
size: 14,
|
|
2231
2479
|
"stroke-width": 1.5
|
|
2232
2480
|
}), E(" " + w(f(a).image.browseMedia), 1)])) : _("", !0)
|
|
2233
2481
|
]),
|
|
2234
|
-
x("div",
|
|
2482
|
+
x("div", Pa, [x("label", { class: m(f(V)) }, w(f(a).video.altText), 3), p(q, {
|
|
2235
2483
|
"model-value": e.block.alt,
|
|
2236
2484
|
type: "text",
|
|
2237
2485
|
placeholder: f(a).video.altTextPlaceholder,
|
|
2238
2486
|
"onUpdate:modelValue": n[4] ||= (e) => D("alt", e)
|
|
2239
2487
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2240
|
-
x("div",
|
|
2241
|
-
class: m(f(
|
|
2488
|
+
x("div", Fa, [x("label", { class: m(f(V)) }, w(f(a).video.width), 3), x("select", {
|
|
2489
|
+
class: m(f(W)),
|
|
2242
2490
|
value: e.block.width,
|
|
2243
2491
|
onChange: n[5] ||= (e) => D("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
2244
2492
|
}, [
|
|
2245
|
-
x("option",
|
|
2493
|
+
x("option", La, w(f(a).video.fullWidth), 1),
|
|
2246
2494
|
n[9] ||= x("option", { value: "300" }, "300px", -1),
|
|
2247
2495
|
n[10] ||= x("option", { value: "400" }, "400px", -1),
|
|
2248
2496
|
n[11] ||= x("option", { value: "500" }, "500px", -1)
|
|
2249
|
-
], 42,
|
|
2250
|
-
x("div",
|
|
2251
|
-
x("label", { class: m(f(
|
|
2497
|
+
], 42, Ia)]),
|
|
2498
|
+
x("div", Ra, [
|
|
2499
|
+
x("label", { class: m(f(V)) }, w(f(a).video.height), 3),
|
|
2252
2500
|
x("select", {
|
|
2253
|
-
class: m(f(
|
|
2501
|
+
class: m(f(W)),
|
|
2254
2502
|
"data-testid": "video-height-mode",
|
|
2255
2503
|
value: b.value,
|
|
2256
2504
|
onChange: n[6] ||= (e) => O(e.target.value)
|
|
2257
|
-
}, [x("option",
|
|
2258
|
-
b.value === "custom" ? (o(), g("div",
|
|
2505
|
+
}, [x("option", Ba, w(f(a).video.heightAuto), 1), x("option", Va, w(f(a).video.heightCustom), 1)], 42, za),
|
|
2506
|
+
b.value === "custom" ? (o(), g("div", Ha, [x("input", {
|
|
2259
2507
|
type: "number",
|
|
2260
2508
|
"data-testid": "video-height-input",
|
|
2261
|
-
class: m(f(
|
|
2509
|
+
class: m(f(U)),
|
|
2262
2510
|
value: e.block.height,
|
|
2263
2511
|
min: "20",
|
|
2264
2512
|
onInput: n[7] ||= (e) => k(e.target.value)
|
|
2265
|
-
}, null, 42,
|
|
2513
|
+
}, null, 42, Ua), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
|
|
2266
2514
|
]),
|
|
2267
|
-
x("div",
|
|
2515
|
+
x("div", Wa, [x("label", { class: m(f(V)) }, w(f(a).title.align), 3), p(J, {
|
|
2268
2516
|
options: [
|
|
2269
2517
|
{
|
|
2270
2518
|
value: "left",
|
|
@@ -2284,7 +2532,7 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
2284
2532
|
}, null, 8, ["options", "model-value"])])
|
|
2285
2533
|
], 64));
|
|
2286
2534
|
}
|
|
2287
|
-
}),
|
|
2535
|
+
}), qa = ["aria-label"], Ja = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Ya = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Xa = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Za = { class: "tpl:flex tpl:gap-1" }, Qa = ["title"], $a = ["title"], eo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, to = /*@__PURE__*/ l({
|
|
2288
2536
|
__name: "Toolbar",
|
|
2289
2537
|
props: { block: {} },
|
|
2290
2538
|
emits: [
|
|
@@ -2293,9 +2541,9 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
2293
2541
|
"duplicate"
|
|
2294
2542
|
],
|
|
2295
2543
|
setup(e, { emit: t }) {
|
|
2296
|
-
let r = T(() => import("./CountdownToolbar-
|
|
2544
|
+
let r = T(() => import("./CountdownToolbar-CIRx5w1U.js")), i = e, a = t, { t: s } = L(), l = se(ge, "Toolbar"), u = n(he, []), d = h(() => i.block.type), m = h(() => k(i.block)), v = h(() => {
|
|
2297
2545
|
if (m.value) return u.find((e) => e.type === i.block.customType);
|
|
2298
|
-
}), b = h(() => m.value ? v.value?.name ?? i.block.customType :
|
|
2546
|
+
}), b = h(() => m.value ? v.value?.name ?? i.block.customType : ae(d.value, s)), S = l.fonts;
|
|
2299
2547
|
function C(e) {
|
|
2300
2548
|
a("update", e);
|
|
2301
2549
|
}
|
|
@@ -2303,82 +2551,82 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
2303
2551
|
"data-testid": "block-toolbar",
|
|
2304
2552
|
"aria-label": f(s).landmarks.blockToolbar,
|
|
2305
2553
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2306
|
-
}, [x("div",
|
|
2554
|
+
}, [x("div", Ja, [x("div", Ya, [f(We)[d.value] ? (o(), y(c(f(We)[d.value]), {
|
|
2307
2555
|
key: 0,
|
|
2308
2556
|
size: 16,
|
|
2309
2557
|
"stroke-width": 1.5
|
|
2310
|
-
})) : m.value ? (o(), y(f(
|
|
2558
|
+
})) : m.value ? (o(), y(f(Ae), {
|
|
2311
2559
|
key: 1,
|
|
2312
2560
|
size: 16,
|
|
2313
2561
|
"stroke-width": 1.5
|
|
2314
|
-
})) : _("", !0), x("h3",
|
|
2562
|
+
})) : _("", !0), x("h3", Xa, w(b.value), 1)]), x("div", Za, [x("button", {
|
|
2315
2563
|
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)]",
|
|
2316
2564
|
title: f(s).toolbar.duplicate,
|
|
2317
2565
|
onClick: n[0] ||= (e) => a("duplicate")
|
|
2318
|
-
}, [p(f(
|
|
2566
|
+
}, [p(f(ye), {
|
|
2319
2567
|
size: 14,
|
|
2320
2568
|
"stroke-width": 2
|
|
2321
|
-
})], 8,
|
|
2569
|
+
})], 8, Qa), x("button", {
|
|
2322
2570
|
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)]",
|
|
2323
2571
|
title: f(s).toolbar.delete,
|
|
2324
2572
|
onClick: n[1] ||= (e) => a("delete")
|
|
2325
|
-
}, [p(f(
|
|
2573
|
+
}, [p(f(Ee), {
|
|
2326
2574
|
size: 14,
|
|
2327
2575
|
"stroke-width": 2
|
|
2328
|
-
})], 8,
|
|
2576
|
+
})], 8, $a)])]), x("div", eo, [m.value ? (o(), y(sr, {
|
|
2329
2577
|
key: 0,
|
|
2330
2578
|
block: e.block,
|
|
2331
2579
|
onUpdateFieldValues: n[2] ||= (e) => a("update", { fieldValues: e }),
|
|
2332
2580
|
onUpdateDataSourceFetched: n[3] ||= (e) => a("update", { dataSourceFetched: e })
|
|
2333
|
-
}, null, 8, ["block"])) : d.value === "section" ? (o(), y(
|
|
2581
|
+
}, null, 8, ["block"])) : d.value === "section" ? (o(), y(pi, {
|
|
2334
2582
|
key: 1,
|
|
2335
2583
|
block: e.block,
|
|
2336
2584
|
onUpdate: C
|
|
2337
|
-
}, null, 8, ["block"])) : d.value === "title" ? (o(), y(
|
|
2585
|
+
}, null, 8, ["block"])) : d.value === "title" ? (o(), y(Da, {
|
|
2338
2586
|
key: 2,
|
|
2339
2587
|
block: e.block,
|
|
2340
2588
|
"font-families": f(S),
|
|
2341
2589
|
onUpdate: C
|
|
2342
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), y(
|
|
2590
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), y(ri, {
|
|
2343
2591
|
key: 3,
|
|
2344
2592
|
block: e.block,
|
|
2345
2593
|
onUpdate: C
|
|
2346
|
-
}, null, 8, ["block"])) : d.value === "image" ? (o(), y(
|
|
2594
|
+
}, null, 8, ["block"])) : d.value === "image" ? (o(), y(Vr, {
|
|
2347
2595
|
key: 4,
|
|
2348
2596
|
block: e.block,
|
|
2349
2597
|
onUpdate: C
|
|
2350
|
-
}, null, 8, ["block"])) : d.value === "video" ? (o(), y(
|
|
2598
|
+
}, null, 8, ["block"])) : d.value === "video" ? (o(), y(Ka, {
|
|
2351
2599
|
key: 5,
|
|
2352
2600
|
block: e.block,
|
|
2353
2601
|
onUpdate: C
|
|
2354
|
-
}, null, 8, ["block"])) : d.value === "button" ? (o(), y(
|
|
2602
|
+
}, null, 8, ["block"])) : d.value === "button" ? (o(), y(jt, {
|
|
2355
2603
|
key: 6,
|
|
2356
2604
|
block: e.block,
|
|
2357
2605
|
"font-families": f(S),
|
|
2358
2606
|
onUpdate: C
|
|
2359
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), y(
|
|
2607
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), y(pr, {
|
|
2360
2608
|
key: 7,
|
|
2361
2609
|
block: e.block,
|
|
2362
2610
|
onUpdate: C
|
|
2363
|
-
}, null, 8, ["block"])) : d.value === "social" ? (o(), y(
|
|
2611
|
+
}, null, 8, ["block"])) : d.value === "social" ? (o(), y(Mi, {
|
|
2364
2612
|
key: 8,
|
|
2365
2613
|
block: e.block,
|
|
2366
2614
|
onUpdate: C
|
|
2367
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (o(), y(
|
|
2615
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (o(), y($r, {
|
|
2368
2616
|
key: 9,
|
|
2369
2617
|
block: e.block,
|
|
2370
2618
|
"font-families": f(S),
|
|
2371
2619
|
onUpdate: C
|
|
2372
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), y(
|
|
2620
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), y(ma, {
|
|
2373
2621
|
key: 10,
|
|
2374
2622
|
block: e.block,
|
|
2375
2623
|
"font-families": f(S),
|
|
2376
2624
|
onUpdate: C
|
|
2377
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), y(
|
|
2625
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), y(Li, {
|
|
2378
2626
|
key: 11,
|
|
2379
2627
|
block: e.block,
|
|
2380
2628
|
onUpdate: C
|
|
2381
|
-
}, null, 8, ["block"])) : d.value === "html" ? (o(), y(
|
|
2629
|
+
}, null, 8, ["block"])) : d.value === "html" ? (o(), y(_r, {
|
|
2382
2630
|
key: 12,
|
|
2383
2631
|
block: e.block,
|
|
2384
2632
|
onUpdate: C
|
|
@@ -2387,14 +2635,14 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
|
|
|
2387
2635
|
block: e.block,
|
|
2388
2636
|
"font-families": f(S),
|
|
2389
2637
|
onUpdate: C
|
|
2390
|
-
}, null, 8, ["block", "font-families"])) : _("", !0), p(
|
|
2638
|
+
}, null, 8, ["block", "font-families"])) : _("", !0), p(Sn, {
|
|
2391
2639
|
block: e.block,
|
|
2392
2640
|
"is-first-section": d.value === "paragraph",
|
|
2393
2641
|
onUpdate: C
|
|
2394
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
2642
|
+
}, null, 8, ["block", "is-first-section"])])], 8, qa));
|
|
2395
2643
|
}
|
|
2396
|
-
}),
|
|
2644
|
+
}), no = /* @__PURE__ */ e({ default: () => ro }), ro = /*#__PURE__*/ Le(to, [["__scopeId", "data-v-1038bf62"]]);
|
|
2397
2645
|
//#endregion
|
|
2398
|
-
export {
|
|
2646
|
+
export { ro as default, J as i, $ as n, Y as r, no as t };
|
|
2399
2647
|
|
|
2400
|
-
//# sourceMappingURL=Toolbar-
|
|
2648
|
+
//# sourceMappingURL=Toolbar-BDzhrmGV.js.map
|